1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for webpgp 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: courier-users@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='webpgp' 592PACKAGE_TARNAME='webpgp' 593PACKAGE_VERSION='0.10' 594PACKAGE_STRING='webpgp 0.10' 595PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="webgpg.in" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_SGML_FALSE 640HAVE_SGML_TRUE 641PERL 642GPG 643CPP 644LT_SYS_LIBRARY_PATH 645OTOOL64 646OTOOL 647LIPO 648NMEDIT 649DSYMUTIL 650MANIFEST_TOOL 651RANLIB 652ac_ct_AR 653AR 654DLLTOOL 655OBJDUMP 656LN_S 657NM 658ac_ct_DUMPBIN 659DUMPBIN 660LD 661FGREP 662EGREP 663GREP 664SED 665host_os 666host_vendor 667host_cpu 668host 669build_os 670build_vendor 671build_cpu 672build 673LIBTOOL 674am__fastdepCC_FALSE 675am__fastdepCC_TRUE 676CCDEPMODE 677am__nodep 678AMDEPBACKSLASH 679AMDEP_FALSE 680AMDEP_TRUE 681am__include 682DEPDIR 683OBJEXT 684EXEEXT 685ac_ct_CC 686CPPFLAGS 687LDFLAGS 688CFLAGS 689CC 690AM_BACKSLASH 691AM_DEFAULT_VERBOSITY 692AM_DEFAULT_V 693AM_V 694am__untar 695am__tar 696AMTAR 697am__leading_dot 698SET_MAKE 699AWK 700mkdir_p 701MKDIR_P 702INSTALL_STRIP_PROGRAM 703STRIP 704install_sh 705MAKEINFO 706AUTOHEADER 707AUTOMAKE 708AUTOCONF 709ACLOCAL 710VERSION 711PACKAGE 712CYGPATH_W 713am__isrc 714INSTALL_DATA 715INSTALL_SCRIPT 716INSTALL_PROGRAM 717target_alias 718host_alias 719build_alias 720LIBS 721ECHO_T 722ECHO_N 723ECHO_C 724DEFS 725mandir 726localedir 727libdir 728psdir 729pdfdir 730dvidir 731htmldir 732infodir 733docdir 734oldincludedir 735includedir 736localstatedir 737sharedstatedir 738sysconfdir 739datadir 740datarootdir 741libexecdir 742sbindir 743bindir 744program_transform_name 745prefix 746exec_prefix 747PACKAGE_URL 748PACKAGE_BUGREPORT 749PACKAGE_STRING 750PACKAGE_VERSION 751PACKAGE_TARNAME 752PACKAGE_NAME 753PATH_SEPARATOR 754SHELL 755am__quote' 756ac_subst_files='' 757ac_user_opts=' 758enable_option_checking 759enable_silent_rules 760enable_dependency_tracking 761enable_shared 762enable_static 763with_pic 764enable_fast_install 765with_aix_soname 766with_gnu_ld 767with_sysroot 768enable_libtool_lock 769with_gpg2 770enable_largefile 771' 772 ac_precious_vars='build_alias 773host_alias 774target_alias 775CC 776CFLAGS 777LDFLAGS 778LIBS 779CPPFLAGS 780LT_SYS_LIBRARY_PATH 781CPP' 782 783 784# Initialize some variables set by options. 785ac_init_help= 786ac_init_version=false 787ac_unrecognized_opts= 788ac_unrecognized_sep= 789# The variables have the same names as the options, with 790# dashes changed to underlines. 791cache_file=/dev/null 792exec_prefix=NONE 793no_create= 794no_recursion= 795prefix=NONE 796program_prefix=NONE 797program_suffix=NONE 798program_transform_name=s,x,x, 799silent= 800site= 801srcdir= 802verbose= 803x_includes=NONE 804x_libraries=NONE 805 806# Installation directory options. 807# These are left unexpanded so users can "make install exec_prefix=/foo" 808# and all the variables that are supposed to be based on exec_prefix 809# by default will actually change. 810# Use braces instead of parens because sh, perl, etc. also accept them. 811# (The list follows the same order as the GNU Coding Standards.) 812bindir='${exec_prefix}/bin' 813sbindir='${exec_prefix}/sbin' 814libexecdir='${exec_prefix}/libexec' 815datarootdir='${prefix}/share' 816datadir='${datarootdir}' 817sysconfdir='${prefix}/etc' 818sharedstatedir='${prefix}/com' 819localstatedir='${prefix}/var' 820includedir='${prefix}/include' 821oldincludedir='/usr/include' 822docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 823infodir='${datarootdir}/info' 824htmldir='${docdir}' 825dvidir='${docdir}' 826pdfdir='${docdir}' 827psdir='${docdir}' 828libdir='${exec_prefix}/lib' 829localedir='${datarootdir}/locale' 830mandir='${datarootdir}/man' 831 832ac_prev= 833ac_dashdash= 834for ac_option 835do 836 # If the previous option needs an argument, assign it. 837 if test -n "$ac_prev"; then 838 eval $ac_prev=\$ac_option 839 ac_prev= 840 continue 841 fi 842 843 case $ac_option in 844 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 845 *=) ac_optarg= ;; 846 *) ac_optarg=yes ;; 847 esac 848 849 # Accept the important Cygnus configure options, so we can diagnose typos. 850 851 case $ac_dashdash$ac_option in 852 --) 853 ac_dashdash=yes ;; 854 855 -bindir | --bindir | --bindi | --bind | --bin | --bi) 856 ac_prev=bindir ;; 857 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 858 bindir=$ac_optarg ;; 859 860 -build | --build | --buil | --bui | --bu) 861 ac_prev=build_alias ;; 862 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 863 build_alias=$ac_optarg ;; 864 865 -cache-file | --cache-file | --cache-fil | --cache-fi \ 866 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 867 ac_prev=cache_file ;; 868 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 869 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 870 cache_file=$ac_optarg ;; 871 872 --config-cache | -C) 873 cache_file=config.cache ;; 874 875 -datadir | --datadir | --datadi | --datad) 876 ac_prev=datadir ;; 877 -datadir=* | --datadir=* | --datadi=* | --datad=*) 878 datadir=$ac_optarg ;; 879 880 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 881 | --dataroo | --dataro | --datar) 882 ac_prev=datarootdir ;; 883 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 884 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 885 datarootdir=$ac_optarg ;; 886 887 -disable-* | --disable-*) 888 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 # Reject names that are not valid shell variable names. 890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 as_fn_error $? "invalid feature name: $ac_useropt" 892 ac_useropt_orig=$ac_useropt 893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 894 case $ac_user_opts in 895 *" 896"enable_$ac_useropt" 897"*) ;; 898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 899 ac_unrecognized_sep=', ';; 900 esac 901 eval enable_$ac_useropt=no ;; 902 903 -docdir | --docdir | --docdi | --doc | --do) 904 ac_prev=docdir ;; 905 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 906 docdir=$ac_optarg ;; 907 908 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 909 ac_prev=dvidir ;; 910 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 911 dvidir=$ac_optarg ;; 912 913 -enable-* | --enable-*) 914 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 # Reject names that are not valid shell variable names. 916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 as_fn_error $? "invalid feature name: $ac_useropt" 918 ac_useropt_orig=$ac_useropt 919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 case $ac_user_opts in 921 *" 922"enable_$ac_useropt" 923"*) ;; 924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 925 ac_unrecognized_sep=', ';; 926 esac 927 eval enable_$ac_useropt=\$ac_optarg ;; 928 929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 931 | --exec | --exe | --ex) 932 ac_prev=exec_prefix ;; 933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 935 | --exec=* | --exe=* | --ex=*) 936 exec_prefix=$ac_optarg ;; 937 938 -gas | --gas | --ga | --g) 939 # Obsolete; use --with-gas. 940 with_gas=yes ;; 941 942 -help | --help | --hel | --he | -h) 943 ac_init_help=long ;; 944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 945 ac_init_help=recursive ;; 946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 947 ac_init_help=short ;; 948 949 -host | --host | --hos | --ho) 950 ac_prev=host_alias ;; 951 -host=* | --host=* | --hos=* | --ho=*) 952 host_alias=$ac_optarg ;; 953 954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 955 ac_prev=htmldir ;; 956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 957 | --ht=*) 958 htmldir=$ac_optarg ;; 959 960 -includedir | --includedir | --includedi | --included | --include \ 961 | --includ | --inclu | --incl | --inc) 962 ac_prev=includedir ;; 963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 964 | --includ=* | --inclu=* | --incl=* | --inc=*) 965 includedir=$ac_optarg ;; 966 967 -infodir | --infodir | --infodi | --infod | --info | --inf) 968 ac_prev=infodir ;; 969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 970 infodir=$ac_optarg ;; 971 972 -libdir | --libdir | --libdi | --libd) 973 ac_prev=libdir ;; 974 -libdir=* | --libdir=* | --libdi=* | --libd=*) 975 libdir=$ac_optarg ;; 976 977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 978 | --libexe | --libex | --libe) 979 ac_prev=libexecdir ;; 980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 981 | --libexe=* | --libex=* | --libe=*) 982 libexecdir=$ac_optarg ;; 983 984 -localedir | --localedir | --localedi | --localed | --locale) 985 ac_prev=localedir ;; 986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 987 localedir=$ac_optarg ;; 988 989 -localstatedir | --localstatedir | --localstatedi | --localstated \ 990 | --localstate | --localstat | --localsta | --localst | --locals) 991 ac_prev=localstatedir ;; 992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 994 localstatedir=$ac_optarg ;; 995 996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 997 ac_prev=mandir ;; 998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 999 mandir=$ac_optarg ;; 1000 1001 -nfp | --nfp | --nf) 1002 # Obsolete; use --without-fp. 1003 with_fp=no ;; 1004 1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1006 | --no-cr | --no-c | -n) 1007 no_create=yes ;; 1008 1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1011 no_recursion=yes ;; 1012 1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1015 | --oldin | --oldi | --old | --ol | --o) 1016 ac_prev=oldincludedir ;; 1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1020 oldincludedir=$ac_optarg ;; 1021 1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1023 ac_prev=prefix ;; 1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1025 prefix=$ac_optarg ;; 1026 1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1028 | --program-pre | --program-pr | --program-p) 1029 ac_prev=program_prefix ;; 1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1032 program_prefix=$ac_optarg ;; 1033 1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1035 | --program-suf | --program-su | --program-s) 1036 ac_prev=program_suffix ;; 1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1039 program_suffix=$ac_optarg ;; 1040 1041 -program-transform-name | --program-transform-name \ 1042 | --program-transform-nam | --program-transform-na \ 1043 | --program-transform-n | --program-transform- \ 1044 | --program-transform | --program-transfor \ 1045 | --program-transfo | --program-transf \ 1046 | --program-trans | --program-tran \ 1047 | --progr-tra | --program-tr | --program-t) 1048 ac_prev=program_transform_name ;; 1049 -program-transform-name=* | --program-transform-name=* \ 1050 | --program-transform-nam=* | --program-transform-na=* \ 1051 | --program-transform-n=* | --program-transform-=* \ 1052 | --program-transform=* | --program-transfor=* \ 1053 | --program-transfo=* | --program-transf=* \ 1054 | --program-trans=* | --program-tran=* \ 1055 | --progr-tra=* | --program-tr=* | --program-t=*) 1056 program_transform_name=$ac_optarg ;; 1057 1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1059 ac_prev=pdfdir ;; 1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1061 pdfdir=$ac_optarg ;; 1062 1063 -psdir | --psdir | --psdi | --psd | --ps) 1064 ac_prev=psdir ;; 1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1066 psdir=$ac_optarg ;; 1067 1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1069 | -silent | --silent | --silen | --sile | --sil) 1070 silent=yes ;; 1071 1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1073 ac_prev=sbindir ;; 1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1075 | --sbi=* | --sb=*) 1076 sbindir=$ac_optarg ;; 1077 1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1080 | --sharedst | --shareds | --shared | --share | --shar \ 1081 | --sha | --sh) 1082 ac_prev=sharedstatedir ;; 1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1086 | --sha=* | --sh=*) 1087 sharedstatedir=$ac_optarg ;; 1088 1089 -site | --site | --sit) 1090 ac_prev=site ;; 1091 -site=* | --site=* | --sit=*) 1092 site=$ac_optarg ;; 1093 1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1095 ac_prev=srcdir ;; 1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1097 srcdir=$ac_optarg ;; 1098 1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1100 | --syscon | --sysco | --sysc | --sys | --sy) 1101 ac_prev=sysconfdir ;; 1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1104 sysconfdir=$ac_optarg ;; 1105 1106 -target | --target | --targe | --targ | --tar | --ta | --t) 1107 ac_prev=target_alias ;; 1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1109 target_alias=$ac_optarg ;; 1110 1111 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1112 verbose=yes ;; 1113 1114 -version | --version | --versio | --versi | --vers | -V) 1115 ac_init_version=: ;; 1116 1117 -with-* | --with-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error $? "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=\$ac_optarg ;; 1132 1133 -without-* | --without-*) 1134 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1135 # Reject names that are not valid shell variable names. 1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1137 as_fn_error $? "invalid package name: $ac_useropt" 1138 ac_useropt_orig=$ac_useropt 1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1140 case $ac_user_opts in 1141 *" 1142"with_$ac_useropt" 1143"*) ;; 1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1145 ac_unrecognized_sep=', ';; 1146 esac 1147 eval with_$ac_useropt=no ;; 1148 1149 --x) 1150 # Obsolete; use --with-x. 1151 with_x=yes ;; 1152 1153 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1154 | --x-incl | --x-inc | --x-in | --x-i) 1155 ac_prev=x_includes ;; 1156 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1157 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1158 x_includes=$ac_optarg ;; 1159 1160 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1161 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1162 ac_prev=x_libraries ;; 1163 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1164 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1165 x_libraries=$ac_optarg ;; 1166 1167 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1168Try \`$0 --help' for more information" 1169 ;; 1170 1171 *=*) 1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1173 # Reject names that are not valid shell variable names. 1174 case $ac_envvar in #( 1175 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1176 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1177 esac 1178 eval $ac_envvar=\$ac_optarg 1179 export $ac_envvar ;; 1180 1181 *) 1182 # FIXME: should be removed in autoconf 3.0. 1183 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1184 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1185 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1186 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1187 ;; 1188 1189 esac 1190done 1191 1192if test -n "$ac_prev"; then 1193 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1194 as_fn_error $? "missing argument to $ac_option" 1195fi 1196 1197if test -n "$ac_unrecognized_opts"; then 1198 case $enable_option_checking in 1199 no) ;; 1200 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1201 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1202 esac 1203fi 1204 1205# Check all directory arguments for consistency. 1206for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1207 datadir sysconfdir sharedstatedir localstatedir includedir \ 1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1209 libdir localedir mandir 1210do 1211 eval ac_val=\$$ac_var 1212 # Remove trailing slashes. 1213 case $ac_val in 1214 */ ) 1215 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1216 eval $ac_var=\$ac_val;; 1217 esac 1218 # Be sure to have absolute directory names. 1219 case $ac_val in 1220 [\\/$]* | ?:[\\/]* ) continue;; 1221 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1222 esac 1223 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1224done 1225 1226# There might be people who depend on the old broken behavior: `$host' 1227# used to hold the argument of --host etc. 1228# FIXME: To remove some day. 1229build=$build_alias 1230host=$host_alias 1231target=$target_alias 1232 1233# FIXME: To remove some day. 1234if test "x$host_alias" != x; then 1235 if test "x$build_alias" = x; then 1236 cross_compiling=maybe 1237 elif test "x$build_alias" != "x$host_alias"; then 1238 cross_compiling=yes 1239 fi 1240fi 1241 1242ac_tool_prefix= 1243test -n "$host_alias" && ac_tool_prefix=$host_alias- 1244 1245test "$silent" = yes && exec 6>/dev/null 1246 1247 1248ac_pwd=`pwd` && test -n "$ac_pwd" && 1249ac_ls_di=`ls -di .` && 1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1251 as_fn_error $? "working directory cannot be determined" 1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1253 as_fn_error $? "pwd does not report name of working directory" 1254 1255 1256# Find the source files, if location was not specified. 1257if test -z "$srcdir"; then 1258 ac_srcdir_defaulted=yes 1259 # Try the directory containing this script, then the parent directory. 1260 ac_confdir=`$as_dirname -- "$as_myself" || 1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1262 X"$as_myself" : 'X\(//\)[^/]' \| \ 1263 X"$as_myself" : 'X\(//\)$' \| \ 1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1265$as_echo X"$as_myself" | 1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)[^/].*/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\).*/{ 1279 s//\1/ 1280 q 1281 } 1282 s/.*/./; q'` 1283 srcdir=$ac_confdir 1284 if test ! -r "$srcdir/$ac_unique_file"; then 1285 srcdir=.. 1286 fi 1287else 1288 ac_srcdir_defaulted=no 1289fi 1290if test ! -r "$srcdir/$ac_unique_file"; then 1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1293fi 1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1295ac_abs_confdir=`( 1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1297 pwd)` 1298# When building in place, set srcdir=. 1299if test "$ac_abs_confdir" = "$ac_pwd"; then 1300 srcdir=. 1301fi 1302# Remove unnecessary trailing slashes from srcdir. 1303# Double slashes in file names in object file debugging info 1304# mess up M-x gdb in Emacs. 1305case $srcdir in 1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1307esac 1308for ac_var in $ac_precious_vars; do 1309 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_env_${ac_var}_value=\$${ac_var} 1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1313done 1314 1315# 1316# Report the --help message. 1317# 1318if test "$ac_init_help" = "long"; then 1319 # Omit some internal or obsolete options to make the list less imposing. 1320 # This message is too long to be a string in the A/UX 3.1 sh. 1321 cat <<_ACEOF 1322\`configure' configures webpgp 0.10 to adapt to many kinds of systems. 1323 1324Usage: $0 [OPTION]... [VAR=VALUE]... 1325 1326To assign environment variables (e.g., CC, CFLAGS...), specify them as 1327VAR=VALUE. See below for descriptions of some of the useful variables. 1328 1329Defaults for the options are specified in brackets. 1330 1331Configuration: 1332 -h, --help display this help and exit 1333 --help=short display options specific to this package 1334 --help=recursive display the short help of all the included packages 1335 -V, --version display version information and exit 1336 -q, --quiet, --silent do not print \`checking ...' messages 1337 --cache-file=FILE cache test results in FILE [disabled] 1338 -C, --config-cache alias for \`--cache-file=config.cache' 1339 -n, --no-create do not create output files 1340 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1341 1342Installation directories: 1343 --prefix=PREFIX install architecture-independent files in PREFIX 1344 [$ac_default_prefix] 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1346 [PREFIX] 1347 1348By default, \`make install' will install all the files in 1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1350an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1351for instance \`--prefix=\$HOME'. 1352 1353For better control, use the options below. 1354 1355Fine tuning of the installation directories: 1356 --bindir=DIR user executables [EPREFIX/bin] 1357 --sbindir=DIR system admin executables [EPREFIX/sbin] 1358 --libexecdir=DIR program executables [EPREFIX/libexec] 1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1362 --libdir=DIR object code libraries [EPREFIX/lib] 1363 --includedir=DIR C header files [PREFIX/include] 1364 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1367 --infodir=DIR info documentation [DATAROOTDIR/info] 1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1369 --mandir=DIR man documentation [DATAROOTDIR/man] 1370 --docdir=DIR documentation root [DATAROOTDIR/doc/webpgp] 1371 --htmldir=DIR html documentation [DOCDIR] 1372 --dvidir=DIR dvi documentation [DOCDIR] 1373 --pdfdir=DIR pdf documentation [DOCDIR] 1374 --psdir=DIR ps documentation [DOCDIR] 1375_ACEOF 1376 1377 cat <<\_ACEOF 1378 1379Program names: 1380 --program-prefix=PREFIX prepend PREFIX to installed program names 1381 --program-suffix=SUFFIX append SUFFIX to installed program names 1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1383 1384System types: 1385 --build=BUILD configure for building on BUILD [guessed] 1386 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1387_ACEOF 1388fi 1389 1390if test -n "$ac_init_help"; then 1391 case $ac_init_help in 1392 short | recursive ) echo "Configuration of webpgp 0.10:";; 1393 esac 1394 cat <<\_ACEOF 1395 1396Optional Features: 1397 --disable-option-checking ignore unrecognized --enable/--with options 1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1400 --enable-silent-rules less verbose build output (undo: "make V=1") 1401 --disable-silent-rules verbose build output (undo: "make V=0") 1402 --enable-dependency-tracking 1403 do not reject slow dependency extractors 1404 --disable-dependency-tracking 1405 speeds up one-time build 1406 --enable-shared[=PKGS] build shared libraries [default=yes] 1407 --enable-static[=PKGS] build static libraries [default=yes] 1408 --enable-fast-install[=PKGS] 1409 optimize for fast installation [default=yes] 1410 --disable-libtool-lock avoid locking (might break parallel builds) 1411 --disable-largefile omit support for large files 1412 1413Optional Packages: 1414 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1415 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1416 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1417 both] 1418 --with-aix-soname=aix|svr4|both 1419 shared library versioning (aka "SONAME") variant to 1420 provide on AIX, [default=aix]. 1421 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1422 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1423 compiler's sysroot if not specified). 1424 --with-gpg2 Use gpg2 instead of gpg 1425 1426Some influential environment variables: 1427 CC C compiler command 1428 CFLAGS C compiler flags 1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1430 nonstandard directory <lib dir> 1431 LIBS libraries to pass to the linker, e.g. -l<library> 1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1433 you have headers in a nonstandard directory <include dir> 1434 LT_SYS_LIBRARY_PATH 1435 User-defined run-time library search path. 1436 CPP C preprocessor 1437 1438Use these variables to override the choices made by `configure' or to help 1439it to find libraries and programs with nonstandard names/locations. 1440 1441Report bugs to <courier-users@lists.sourceforge.net>. 1442_ACEOF 1443ac_status=$? 1444fi 1445 1446if test "$ac_init_help" = "recursive"; then 1447 # If there are subdirs, report their specific --help. 1448 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1449 test -d "$ac_dir" || 1450 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1451 continue 1452 ac_builddir=. 1453 1454case "$ac_dir" in 1455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1456*) 1457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1458 # A ".." for each directory in $ac_dir_suffix. 1459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1460 case $ac_top_builddir_sub in 1461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1463 esac ;; 1464esac 1465ac_abs_top_builddir=$ac_pwd 1466ac_abs_builddir=$ac_pwd$ac_dir_suffix 1467# for backward compatibility: 1468ac_top_builddir=$ac_top_build_prefix 1469 1470case $srcdir in 1471 .) # We are building in place. 1472 ac_srcdir=. 1473 ac_top_srcdir=$ac_top_builddir_sub 1474 ac_abs_top_srcdir=$ac_pwd ;; 1475 [\\/]* | ?:[\\/]* ) # Absolute name. 1476 ac_srcdir=$srcdir$ac_dir_suffix; 1477 ac_top_srcdir=$srcdir 1478 ac_abs_top_srcdir=$srcdir ;; 1479 *) # Relative name. 1480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1481 ac_top_srcdir=$ac_top_build_prefix$srcdir 1482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1483esac 1484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1485 1486 cd "$ac_dir" || { ac_status=$?; continue; } 1487 # Check for guested configure. 1488 if test -f "$ac_srcdir/configure.gnu"; then 1489 echo && 1490 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1491 elif test -f "$ac_srcdir/configure"; then 1492 echo && 1493 $SHELL "$ac_srcdir/configure" --help=recursive 1494 else 1495 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1496 fi || ac_status=$? 1497 cd "$ac_pwd" || { ac_status=$?; break; } 1498 done 1499fi 1500 1501test -n "$ac_init_help" && exit $ac_status 1502if $ac_init_version; then 1503 cat <<\_ACEOF 1504webpgp configure 0.10 1505generated by GNU Autoconf 2.69 1506 1507Copyright (C) 2012 Free Software Foundation, Inc. 1508This configure script is free software; the Free Software Foundation 1509gives unlimited permission to copy, distribute and modify it. 1510_ACEOF 1511 exit 1512fi 1513 1514## ------------------------ ## 1515## Autoconf initialization. ## 1516## ------------------------ ## 1517 1518# ac_fn_c_try_compile LINENO 1519# -------------------------- 1520# Try to compile conftest.$ac_ext, and return whether this succeeded. 1521ac_fn_c_try_compile () 1522{ 1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1524 rm -f conftest.$ac_objext 1525 if { { ac_try="$ac_compile" 1526case "(($ac_try" in 1527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1528 *) ac_try_echo=$ac_try;; 1529esac 1530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1531$as_echo "$ac_try_echo"; } >&5 1532 (eval "$ac_compile") 2>conftest.err 1533 ac_status=$? 1534 if test -s conftest.err; then 1535 grep -v '^ *+' conftest.err >conftest.er1 1536 cat conftest.er1 >&5 1537 mv -f conftest.er1 conftest.err 1538 fi 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; } && { 1541 test -z "$ac_c_werror_flag" || 1542 test ! -s conftest.err 1543 } && test -s conftest.$ac_objext; then : 1544 ac_retval=0 1545else 1546 $as_echo "$as_me: failed program was:" >&5 1547sed 's/^/| /' conftest.$ac_ext >&5 1548 1549 ac_retval=1 1550fi 1551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1552 as_fn_set_status $ac_retval 1553 1554} # ac_fn_c_try_compile 1555 1556# ac_fn_c_try_link LINENO 1557# ----------------------- 1558# Try to link conftest.$ac_ext, and return whether this succeeded. 1559ac_fn_c_try_link () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 rm -f conftest.$ac_objext conftest$ac_exeext 1563 if { { ac_try="$ac_link" 1564case "(($ac_try" in 1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1566 *) ac_try_echo=$ac_try;; 1567esac 1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1569$as_echo "$ac_try_echo"; } >&5 1570 (eval "$ac_link") 2>conftest.err 1571 ac_status=$? 1572 if test -s conftest.err; then 1573 grep -v '^ *+' conftest.err >conftest.er1 1574 cat conftest.er1 >&5 1575 mv -f conftest.er1 conftest.err 1576 fi 1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1578 test $ac_status = 0; } && { 1579 test -z "$ac_c_werror_flag" || 1580 test ! -s conftest.err 1581 } && test -s conftest$ac_exeext && { 1582 test "$cross_compiling" = yes || 1583 test -x conftest$ac_exeext 1584 }; then : 1585 ac_retval=0 1586else 1587 $as_echo "$as_me: failed program was:" >&5 1588sed 's/^/| /' conftest.$ac_ext >&5 1589 1590 ac_retval=1 1591fi 1592 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1593 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1594 # interfere with the next link command; also delete a directory that is 1595 # left behind by Apple's compiler. We do this before executing the actions. 1596 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 as_fn_set_status $ac_retval 1599 1600} # ac_fn_c_try_link 1601 1602# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1603# ------------------------------------------------------- 1604# Tests whether HEADER exists and can be compiled using the include files in 1605# INCLUDES, setting the cache variable VAR accordingly. 1606ac_fn_c_check_header_compile () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1610$as_echo_n "checking for $2... " >&6; } 1611if eval \${$3+:} false; then : 1612 $as_echo_n "(cached) " >&6 1613else 1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1615/* end confdefs.h. */ 1616$4 1617#include <$2> 1618_ACEOF 1619if ac_fn_c_try_compile "$LINENO"; then : 1620 eval "$3=yes" 1621else 1622 eval "$3=no" 1623fi 1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1625fi 1626eval ac_res=\$$3 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1628$as_echo "$ac_res" >&6; } 1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1630 1631} # ac_fn_c_check_header_compile 1632 1633# ac_fn_c_try_cpp LINENO 1634# ---------------------- 1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1636ac_fn_c_try_cpp () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 if { { ac_try="$ac_cpp conftest.$ac_ext" 1640case "(($ac_try" in 1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1642 *) ac_try_echo=$ac_try;; 1643esac 1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1645$as_echo "$ac_try_echo"; } >&5 1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1647 ac_status=$? 1648 if test -s conftest.err; then 1649 grep -v '^ *+' conftest.err >conftest.er1 1650 cat conftest.er1 >&5 1651 mv -f conftest.er1 conftest.err 1652 fi 1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1654 test $ac_status = 0; } > conftest.i && { 1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1656 test ! -s conftest.err 1657 }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 as_fn_set_status $ac_retval 1667 1668} # ac_fn_c_try_cpp 1669 1670# ac_fn_c_try_run LINENO 1671# ---------------------- 1672# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1673# that executables *can* be run. 1674ac_fn_c_try_run () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 if { { ac_try="$ac_link" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_link") 2>&5 1685 ac_status=$? 1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1688 { { case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_try") 2>&5 1695 ac_status=$? 1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1697 test $ac_status = 0; }; }; then : 1698 ac_retval=0 1699else 1700 $as_echo "$as_me: program exited with status $ac_status" >&5 1701 $as_echo "$as_me: failed program was:" >&5 1702sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=$ac_status 1705fi 1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_run 1711 1712# ac_fn_c_check_func LINENO FUNC VAR 1713# ---------------------------------- 1714# Tests whether FUNC exists, setting the cache variable VAR accordingly 1715ac_fn_c_check_func () 1716{ 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1719$as_echo_n "checking for $2... " >&6; } 1720if eval \${$3+:} false; then : 1721 $as_echo_n "(cached) " >&6 1722else 1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1724/* end confdefs.h. */ 1725/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1726 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1727#define $2 innocuous_$2 1728 1729/* System header to define __stub macros and hopefully few prototypes, 1730 which can conflict with char $2 (); below. 1731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1732 <limits.h> exists even on freestanding compilers. */ 1733 1734#ifdef __STDC__ 1735# include <limits.h> 1736#else 1737# include <assert.h> 1738#endif 1739 1740#undef $2 1741 1742/* Override any GCC internal prototype to avoid an error. 1743 Use char because int might match the return type of a GCC 1744 builtin and then its argument prototype would still apply. */ 1745#ifdef __cplusplus 1746extern "C" 1747#endif 1748char $2 (); 1749/* The GNU C library defines this for functions which it implements 1750 to always fail with ENOSYS. Some functions are actually named 1751 something starting with __ and the normal name is an alias. */ 1752#if defined __stub_$2 || defined __stub___$2 1753choke me 1754#endif 1755 1756int 1757main () 1758{ 1759return $2 (); 1760 ; 1761 return 0; 1762} 1763_ACEOF 1764if ac_fn_c_try_link "$LINENO"; then : 1765 eval "$3=yes" 1766else 1767 eval "$3=no" 1768fi 1769rm -f core conftest.err conftest.$ac_objext \ 1770 conftest$ac_exeext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774$as_echo "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_func 1778 1779# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1780# ------------------------------------------------------- 1781# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1782# the include files in INCLUDES and setting the cache variable VAR 1783# accordingly. 1784ac_fn_c_check_header_mongrel () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 if eval \${$3+:} false; then : 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789$as_echo_n "checking for $2... " >&6; } 1790if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792fi 1793eval ac_res=\$$3 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1795$as_echo "$ac_res" >&6; } 1796else 1797 # Is the header compilable? 1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1799$as_echo_n "checking $2 usability... " >&6; } 1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802$4 1803#include <$2> 1804_ACEOF 1805if ac_fn_c_try_compile "$LINENO"; then : 1806 ac_header_compiler=yes 1807else 1808 ac_header_compiler=no 1809fi 1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1812$as_echo "$ac_header_compiler" >&6; } 1813 1814# Is the header present? 1815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1816$as_echo_n "checking $2 presence... " >&6; } 1817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819#include <$2> 1820_ACEOF 1821if ac_fn_c_try_cpp "$LINENO"; then : 1822 ac_header_preproc=yes 1823else 1824 ac_header_preproc=no 1825fi 1826rm -f conftest.err conftest.i conftest.$ac_ext 1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1828$as_echo "$ac_header_preproc" >&6; } 1829 1830# So? What about this header? 1831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1832 yes:no: ) 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1834$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1836$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1837 ;; 1838 no:yes:* ) 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1840$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1842$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1844$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1846$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1848$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1849( $as_echo "## -------------------------------------------------- ## 1850## Report this to courier-users@lists.sourceforge.net ## 1851## -------------------------------------------------- ##" 1852 ) | sed "s/^/$as_me: WARNING: /" >&2 1853 ;; 1854esac 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856$as_echo_n "checking for $2... " >&6; } 1857if eval \${$3+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859else 1860 eval "$3=\$ac_header_compiler" 1861fi 1862eval ac_res=\$$3 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1864$as_echo "$ac_res" >&6; } 1865fi 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1867 1868} # ac_fn_c_check_header_mongrel 1869 1870# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1871# ------------------------------------------- 1872# Tests whether TYPE exists after having included INCLUDES, setting cache 1873# variable VAR accordingly. 1874ac_fn_c_check_type () 1875{ 1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1878$as_echo_n "checking for $2... " >&6; } 1879if eval \${$3+:} false; then : 1880 $as_echo_n "(cached) " >&6 1881else 1882 eval "$3=no" 1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1884/* end confdefs.h. */ 1885$4 1886int 1887main () 1888{ 1889if (sizeof ($2)) 1890 return 0; 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_compile "$LINENO"; then : 1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899int 1900main () 1901{ 1902if (sizeof (($2))) 1903 return 0; 1904 ; 1905 return 0; 1906} 1907_ACEOF 1908if ac_fn_c_try_compile "$LINENO"; then : 1909 1910else 1911 eval "$3=yes" 1912fi 1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1914fi 1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1921 1922} # ac_fn_c_check_type 1923cat >config.log <<_ACEOF 1924This file contains any messages produced by compilers while 1925running configure, to aid debugging if configure makes a mistake. 1926 1927It was created by webpgp $as_me 0.10, which was 1928generated by GNU Autoconf 2.69. Invocation command line was 1929 1930 $ $0 $@ 1931 1932_ACEOF 1933exec 5>>config.log 1934{ 1935cat <<_ASUNAME 1936## --------- ## 1937## Platform. ## 1938## --------- ## 1939 1940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1941uname -m = `(uname -m) 2>/dev/null || echo unknown` 1942uname -r = `(uname -r) 2>/dev/null || echo unknown` 1943uname -s = `(uname -s) 2>/dev/null || echo unknown` 1944uname -v = `(uname -v) 2>/dev/null || echo unknown` 1945 1946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1947/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1948 1949/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1950/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1952/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1953/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1954/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1955/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1956 1957_ASUNAME 1958 1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1960for as_dir in $PATH 1961do 1962 IFS=$as_save_IFS 1963 test -z "$as_dir" && as_dir=. 1964 $as_echo "PATH: $as_dir" 1965 done 1966IFS=$as_save_IFS 1967 1968} >&5 1969 1970cat >&5 <<_ACEOF 1971 1972 1973## ----------- ## 1974## Core tests. ## 1975## ----------- ## 1976 1977_ACEOF 1978 1979 1980# Keep a trace of the command line. 1981# Strip out --no-create and --no-recursion so they do not pile up. 1982# Strip out --silent because we don't want to record it for future runs. 1983# Also quote any args containing shell meta-characters. 1984# Make two passes to allow for proper duplicate-argument suppression. 1985ac_configure_args= 1986ac_configure_args0= 1987ac_configure_args1= 1988ac_must_keep_next=false 1989for ac_pass in 1 2 1990do 1991 for ac_arg 1992 do 1993 case $ac_arg in 1994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1996 | -silent | --silent | --silen | --sile | --sil) 1997 continue ;; 1998 *\'*) 1999 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2000 esac 2001 case $ac_pass in 2002 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2003 2) 2004 as_fn_append ac_configure_args1 " '$ac_arg'" 2005 if test $ac_must_keep_next = true; then 2006 ac_must_keep_next=false # Got value, back to normal. 2007 else 2008 case $ac_arg in 2009 *=* | --config-cache | -C | -disable-* | --disable-* \ 2010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2012 | -with-* | --with-* | -without-* | --without-* | --x) 2013 case "$ac_configure_args0 " in 2014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2015 esac 2016 ;; 2017 -* ) ac_must_keep_next=true ;; 2018 esac 2019 fi 2020 as_fn_append ac_configure_args " '$ac_arg'" 2021 ;; 2022 esac 2023 done 2024done 2025{ ac_configure_args0=; unset ac_configure_args0;} 2026{ ac_configure_args1=; unset ac_configure_args1;} 2027 2028# When interrupted or exit'd, cleanup temporary files, and complete 2029# config.log. We remove comments because anyway the quotes in there 2030# would cause problems or look ugly. 2031# WARNING: Use '\'' to represent an apostrophe within the trap. 2032# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2033trap 'exit_status=$? 2034 # Save into config.log some information that might help in debugging. 2035 { 2036 echo 2037 2038 $as_echo "## ---------------- ## 2039## Cache variables. ## 2040## ---------------- ##" 2041 echo 2042 # The following way of writing the cache mishandles newlines in values, 2043( 2044 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2045 eval ac_val=\$$ac_var 2046 case $ac_val in #( 2047 *${as_nl}*) 2048 case $ac_var in #( 2049 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2050$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2051 esac 2052 case $ac_var in #( 2053 _ | IFS | as_nl) ;; #( 2054 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2055 *) { eval $ac_var=; unset $ac_var;} ;; 2056 esac ;; 2057 esac 2058 done 2059 (set) 2>&1 | 2060 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2061 *${as_nl}ac_space=\ *) 2062 sed -n \ 2063 "s/'\''/'\''\\\\'\'''\''/g; 2064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2065 ;; #( 2066 *) 2067 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2068 ;; 2069 esac | 2070 sort 2071) 2072 echo 2073 2074 $as_echo "## ----------------- ## 2075## Output variables. ## 2076## ----------------- ##" 2077 echo 2078 for ac_var in $ac_subst_vars 2079 do 2080 eval ac_val=\$$ac_var 2081 case $ac_val in 2082 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2083 esac 2084 $as_echo "$ac_var='\''$ac_val'\''" 2085 done | sort 2086 echo 2087 2088 if test -n "$ac_subst_files"; then 2089 $as_echo "## ------------------- ## 2090## File substitutions. ## 2091## ------------------- ##" 2092 echo 2093 for ac_var in $ac_subst_files 2094 do 2095 eval ac_val=\$$ac_var 2096 case $ac_val in 2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2098 esac 2099 $as_echo "$ac_var='\''$ac_val'\''" 2100 done | sort 2101 echo 2102 fi 2103 2104 if test -s confdefs.h; then 2105 $as_echo "## ----------- ## 2106## confdefs.h. ## 2107## ----------- ##" 2108 echo 2109 cat confdefs.h 2110 echo 2111 fi 2112 test "$ac_signal" != 0 && 2113 $as_echo "$as_me: caught signal $ac_signal" 2114 $as_echo "$as_me: exit $exit_status" 2115 } >&5 2116 rm -f core *.core core.conftest.* && 2117 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2118 exit $exit_status 2119' 0 2120for ac_signal in 1 2 13 15; do 2121 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2122done 2123ac_signal=0 2124 2125# confdefs.h avoids OS command line length limits that DEFS can exceed. 2126rm -f -r conftest* confdefs.h 2127 2128$as_echo "/* confdefs.h */" > confdefs.h 2129 2130# Predefined preprocessor variables. 2131 2132cat >>confdefs.h <<_ACEOF 2133#define PACKAGE_NAME "$PACKAGE_NAME" 2134_ACEOF 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_VERSION "$PACKAGE_VERSION" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_STRING "$PACKAGE_STRING" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2150_ACEOF 2151 2152cat >>confdefs.h <<_ACEOF 2153#define PACKAGE_URL "$PACKAGE_URL" 2154_ACEOF 2155 2156 2157# Let the site file select an alternate cache file if it wants to. 2158# Prefer an explicitly selected file to automatically selected ones. 2159ac_site_file1=NONE 2160ac_site_file2=NONE 2161if test -n "$CONFIG_SITE"; then 2162 # We do not want a PATH search for config.site. 2163 case $CONFIG_SITE in #(( 2164 -*) ac_site_file1=./$CONFIG_SITE;; 2165 */*) ac_site_file1=$CONFIG_SITE;; 2166 *) ac_site_file1=./$CONFIG_SITE;; 2167 esac 2168elif test "x$prefix" != xNONE; then 2169 ac_site_file1=$prefix/share/config.site 2170 ac_site_file2=$prefix/etc/config.site 2171else 2172 ac_site_file1=$ac_default_prefix/share/config.site 2173 ac_site_file2=$ac_default_prefix/etc/config.site 2174fi 2175for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2176do 2177 test "x$ac_site_file" = xNONE && continue 2178 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2180$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2181 sed 's/^/| /' "$ac_site_file" >&5 2182 . "$ac_site_file" \ 2183 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2185as_fn_error $? "failed to load site script $ac_site_file 2186See \`config.log' for more details" "$LINENO" 5; } 2187 fi 2188done 2189 2190if test -r "$cache_file"; then 2191 # Some versions of bash will fail to source /dev/null (special files 2192 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2193 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2195$as_echo "$as_me: loading cache $cache_file" >&6;} 2196 case $cache_file in 2197 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2198 *) . "./$cache_file";; 2199 esac 2200 fi 2201else 2202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2203$as_echo "$as_me: creating cache $cache_file" >&6;} 2204 >$cache_file 2205fi 2206 2207# Check that the precious variables saved in the cache have kept the same 2208# value. 2209ac_cache_corrupted=false 2210for ac_var in $ac_precious_vars; do 2211 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2212 eval ac_new_set=\$ac_env_${ac_var}_set 2213 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2214 eval ac_new_val=\$ac_env_${ac_var}_value 2215 case $ac_old_set,$ac_new_set in 2216 set,) 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2218$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2219 ac_cache_corrupted=: ;; 2220 ,set) 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2222$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2223 ac_cache_corrupted=: ;; 2224 ,);; 2225 *) 2226 if test "x$ac_old_val" != "x$ac_new_val"; then 2227 # differences in whitespace do not lead to failure. 2228 ac_old_val_w=`echo x $ac_old_val` 2229 ac_new_val_w=`echo x $ac_new_val` 2230 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2232$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2233 ac_cache_corrupted=: 2234 else 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2236$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2237 eval $ac_var=\$ac_old_val 2238 fi 2239 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2240$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2242$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2243 fi;; 2244 esac 2245 # Pass precious variables to config.status. 2246 if test "$ac_new_set" = set; then 2247 case $ac_new_val in 2248 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2249 *) ac_arg=$ac_var=$ac_new_val ;; 2250 esac 2251 case " $ac_configure_args " in 2252 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2253 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2254 esac 2255 fi 2256done 2257if $ac_cache_corrupted; then 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2261$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2262 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2263fi 2264## -------------------- ## 2265## Main body of script. ## 2266## -------------------- ## 2267 2268ac_ext=c 2269ac_cpp='$CPP $CPPFLAGS' 2270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2272ac_compiler_gnu=$ac_cv_c_compiler_gnu 2273 2274 2275 2276>confdefs.h # Kill PACKAGE_ macros 2277 2278 2279ac_aux_dir= 2280for ac_dir in ../.. "$srcdir"/../..; do 2281 if test -f "$ac_dir/install-sh"; then 2282 ac_aux_dir=$ac_dir 2283 ac_install_sh="$ac_aux_dir/install-sh -c" 2284 break 2285 elif test -f "$ac_dir/install.sh"; then 2286 ac_aux_dir=$ac_dir 2287 ac_install_sh="$ac_aux_dir/install.sh -c" 2288 break 2289 elif test -f "$ac_dir/shtool"; then 2290 ac_aux_dir=$ac_dir 2291 ac_install_sh="$ac_aux_dir/shtool install -c" 2292 break 2293 fi 2294done 2295if test -z "$ac_aux_dir"; then 2296 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2297fi 2298 2299# These three variables are undocumented and unsupported, 2300# and are intended to be withdrawn in a future Autoconf release. 2301# They can cause serious problems if a builder's source tree is in a directory 2302# whose full name contains unusual characters. 2303ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2304ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2305ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2306 2307 2308am__api_version='1.16' 2309 2310# Find a good install program. We prefer a C program (faster), 2311# so one script is as good as another. But avoid the broken or 2312# incompatible versions: 2313# SysV /etc/install, /usr/sbin/install 2314# SunOS /usr/etc/install 2315# IRIX /sbin/install 2316# AIX /bin/install 2317# AmigaOS /C/install, which installs bootblocks on floppy discs 2318# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2319# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2320# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2321# OS/2's system install, which has a completely different semantic 2322# ./install, which can be erroneously created by make from ./install.sh. 2323# Reject install programs that cannot install multiple files. 2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2325$as_echo_n "checking for a BSD-compatible install... " >&6; } 2326if test -z "$INSTALL"; then 2327if ${ac_cv_path_install+:} false; then : 2328 $as_echo_n "(cached) " >&6 2329else 2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2331for as_dir in $PATH 2332do 2333 IFS=$as_save_IFS 2334 test -z "$as_dir" && as_dir=. 2335 # Account for people who put trailing slashes in PATH elements. 2336case $as_dir/ in #(( 2337 ./ | .// | /[cC]/* | \ 2338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2339 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2340 /usr/ucb/* ) ;; 2341 *) 2342 # OSF1 and SCO ODT 3.0 have their own names for install. 2343 # Don't use installbsd from OSF since it installs stuff as root 2344 # by default. 2345 for ac_prog in ginstall scoinst install; do 2346 for ac_exec_ext in '' $ac_executable_extensions; do 2347 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2348 if test $ac_prog = install && 2349 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2350 # AIX install. It has an incompatible calling convention. 2351 : 2352 elif test $ac_prog = install && 2353 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2354 # program-specific install script used by HP pwplus--don't use. 2355 : 2356 else 2357 rm -rf conftest.one conftest.two conftest.dir 2358 echo one > conftest.one 2359 echo two > conftest.two 2360 mkdir conftest.dir 2361 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2362 test -s conftest.one && test -s conftest.two && 2363 test -s conftest.dir/conftest.one && 2364 test -s conftest.dir/conftest.two 2365 then 2366 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2367 break 3 2368 fi 2369 fi 2370 fi 2371 done 2372 done 2373 ;; 2374esac 2375 2376 done 2377IFS=$as_save_IFS 2378 2379rm -rf conftest.one conftest.two conftest.dir 2380 2381fi 2382 if test "${ac_cv_path_install+set}" = set; then 2383 INSTALL=$ac_cv_path_install 2384 else 2385 # As a last resort, use the slow shell script. Don't cache a 2386 # value for INSTALL within a source directory, because that will 2387 # break other packages using the cache if that directory is 2388 # removed, or if the value is a relative name. 2389 INSTALL=$ac_install_sh 2390 fi 2391fi 2392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2393$as_echo "$INSTALL" >&6; } 2394 2395# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2396# It thinks the first close brace ends the variable substitution. 2397test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2398 2399test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2400 2401test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2402 2403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2404$as_echo_n "checking whether build environment is sane... " >&6; } 2405# Reject unsafe characters in $srcdir or the absolute working directory 2406# name. Accept space and tab only in the latter. 2407am_lf=' 2408' 2409case `pwd` in 2410 *[\\\"\#\$\&\'\`$am_lf]*) 2411 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2412esac 2413case $srcdir in 2414 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2415 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2416esac 2417 2418# Do 'set' in a subshell so we don't clobber the current shell's 2419# arguments. Must try -L first in case configure is actually a 2420# symlink; some systems play weird games with the mod time of symlinks 2421# (eg FreeBSD returns the mod time of the symlink's containing 2422# directory). 2423if ( 2424 am_has_slept=no 2425 for am_try in 1 2; do 2426 echo "timestamp, slept: $am_has_slept" > conftest.file 2427 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2428 if test "$*" = "X"; then 2429 # -L didn't work. 2430 set X `ls -t "$srcdir/configure" conftest.file` 2431 fi 2432 if test "$*" != "X $srcdir/configure conftest.file" \ 2433 && test "$*" != "X conftest.file $srcdir/configure"; then 2434 2435 # If neither matched, then we have a broken ls. This can happen 2436 # if, for instance, CONFIG_SHELL is bash and it inherits a 2437 # broken ls alias from the environment. This has actually 2438 # happened. Such a system could not be considered "sane". 2439 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2440 alias in your environment" "$LINENO" 5 2441 fi 2442 if test "$2" = conftest.file || test $am_try -eq 2; then 2443 break 2444 fi 2445 # Just in case. 2446 sleep 1 2447 am_has_slept=yes 2448 done 2449 test "$2" = conftest.file 2450 ) 2451then 2452 # Ok. 2453 : 2454else 2455 as_fn_error $? "newly created file is older than distributed files! 2456Check your system clock" "$LINENO" 5 2457fi 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2459$as_echo "yes" >&6; } 2460# If we didn't sleep, we still need to ensure time stamps of config.status and 2461# generated files are strictly newer. 2462am_sleep_pid= 2463if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2464 ( sleep 1 ) & 2465 am_sleep_pid=$! 2466fi 2467 2468rm -f conftest.file 2469 2470test "$program_prefix" != NONE && 2471 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2472# Use a double $ so make ignores it. 2473test "$program_suffix" != NONE && 2474 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2475# Double any \ or $. 2476# By default was `s,x,x', remove it if useless. 2477ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2478program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2479 2480# Expand $ac_aux_dir to an absolute path. 2481am_aux_dir=`cd "$ac_aux_dir" && pwd` 2482 2483if test x"${MISSING+set}" != xset; then 2484 case $am_aux_dir in 2485 *\ * | *\ *) 2486 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2487 *) 2488 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2489 esac 2490fi 2491# Use eval to expand $SHELL 2492if eval "$MISSING --is-lightweight"; then 2493 am_missing_run="$MISSING " 2494else 2495 am_missing_run= 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2497$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2498fi 2499 2500if test x"${install_sh+set}" != xset; then 2501 case $am_aux_dir in 2502 *\ * | *\ *) 2503 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2504 *) 2505 install_sh="\${SHELL} $am_aux_dir/install-sh" 2506 esac 2507fi 2508 2509# Installed binaries are usually stripped using 'strip' when the user 2510# run "make install-strip". However 'strip' might not be the right 2511# tool to use in cross-compilation environments, therefore Automake 2512# will honor the 'STRIP' environment variable to overrule this program. 2513if test "$cross_compiling" != no; then 2514 if test -n "$ac_tool_prefix"; then 2515 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2516set dummy ${ac_tool_prefix}strip; ac_word=$2 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2518$as_echo_n "checking for $ac_word... " >&6; } 2519if ${ac_cv_prog_STRIP+:} false; then : 2520 $as_echo_n "(cached) " >&6 2521else 2522 if test -n "$STRIP"; then 2523 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2524else 2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2526for as_dir in $PATH 2527do 2528 IFS=$as_save_IFS 2529 test -z "$as_dir" && as_dir=. 2530 for ac_exec_ext in '' $ac_executable_extensions; do 2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2532 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2534 break 2 2535 fi 2536done 2537 done 2538IFS=$as_save_IFS 2539 2540fi 2541fi 2542STRIP=$ac_cv_prog_STRIP 2543if test -n "$STRIP"; then 2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2545$as_echo "$STRIP" >&6; } 2546else 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2548$as_echo "no" >&6; } 2549fi 2550 2551 2552fi 2553if test -z "$ac_cv_prog_STRIP"; then 2554 ac_ct_STRIP=$STRIP 2555 # Extract the first word of "strip", so it can be a program name with args. 2556set dummy strip; ac_word=$2 2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2558$as_echo_n "checking for $ac_word... " >&6; } 2559if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2560 $as_echo_n "(cached) " >&6 2561else 2562 if test -n "$ac_ct_STRIP"; then 2563 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2564else 2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2566for as_dir in $PATH 2567do 2568 IFS=$as_save_IFS 2569 test -z "$as_dir" && as_dir=. 2570 for ac_exec_ext in '' $ac_executable_extensions; do 2571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2572 ac_cv_prog_ac_ct_STRIP="strip" 2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2574 break 2 2575 fi 2576done 2577 done 2578IFS=$as_save_IFS 2579 2580fi 2581fi 2582ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2583if test -n "$ac_ct_STRIP"; then 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2585$as_echo "$ac_ct_STRIP" >&6; } 2586else 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2588$as_echo "no" >&6; } 2589fi 2590 2591 if test "x$ac_ct_STRIP" = x; then 2592 STRIP=":" 2593 else 2594 case $cross_compiling:$ac_tool_warned in 2595yes:) 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2598ac_tool_warned=yes ;; 2599esac 2600 STRIP=$ac_ct_STRIP 2601 fi 2602else 2603 STRIP="$ac_cv_prog_STRIP" 2604fi 2605 2606fi 2607INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2608 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2610$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2611if test -z "$MKDIR_P"; then 2612 if ${ac_cv_path_mkdir+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2616for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2617do 2618 IFS=$as_save_IFS 2619 test -z "$as_dir" && as_dir=. 2620 for ac_prog in mkdir gmkdir; do 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2623 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2624 'mkdir (GNU coreutils) '* | \ 2625 'mkdir (coreutils) '* | \ 2626 'mkdir (fileutils) '4.1*) 2627 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2628 break 3;; 2629 esac 2630 done 2631 done 2632 done 2633IFS=$as_save_IFS 2634 2635fi 2636 2637 test -d ./--version && rmdir ./--version 2638 if test "${ac_cv_path_mkdir+set}" = set; then 2639 MKDIR_P="$ac_cv_path_mkdir -p" 2640 else 2641 # As a last resort, use the slow shell script. Don't cache a 2642 # value for MKDIR_P within a source directory, because that will 2643 # break other packages using the cache if that directory is 2644 # removed, or if the value is a relative name. 2645 MKDIR_P="$ac_install_sh -d" 2646 fi 2647fi 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2649$as_echo "$MKDIR_P" >&6; } 2650 2651for ac_prog in gawk mawk nawk awk 2652do 2653 # Extract the first word of "$ac_prog", so it can be a program name with args. 2654set dummy $ac_prog; ac_word=$2 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2656$as_echo_n "checking for $ac_word... " >&6; } 2657if ${ac_cv_prog_AWK+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 if test -n "$AWK"; then 2661 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2662else 2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH 2665do 2666 IFS=$as_save_IFS 2667 test -z "$as_dir" && as_dir=. 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2670 ac_cv_prog_AWK="$ac_prog" 2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2672 break 2 2673 fi 2674done 2675 done 2676IFS=$as_save_IFS 2677 2678fi 2679fi 2680AWK=$ac_cv_prog_AWK 2681if test -n "$AWK"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2683$as_echo "$AWK" >&6; } 2684else 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2686$as_echo "no" >&6; } 2687fi 2688 2689 2690 test -n "$AWK" && break 2691done 2692 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2694$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2695set x ${MAKE-make} 2696ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2697if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2698 $as_echo_n "(cached) " >&6 2699else 2700 cat >conftest.make <<\_ACEOF 2701SHELL = /bin/sh 2702all: 2703 @echo '@@@%%%=$(MAKE)=@@@%%%' 2704_ACEOF 2705# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2706case `${MAKE-make} -f conftest.make 2>/dev/null` in 2707 *@@@%%%=?*=@@@%%%*) 2708 eval ac_cv_prog_make_${ac_make}_set=yes;; 2709 *) 2710 eval ac_cv_prog_make_${ac_make}_set=no;; 2711esac 2712rm -f conftest.make 2713fi 2714if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2716$as_echo "yes" >&6; } 2717 SET_MAKE= 2718else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2720$as_echo "no" >&6; } 2721 SET_MAKE="MAKE=${MAKE-make}" 2722fi 2723 2724rm -rf .tst 2>/dev/null 2725mkdir .tst 2>/dev/null 2726if test -d .tst; then 2727 am__leading_dot=. 2728else 2729 am__leading_dot=_ 2730fi 2731rmdir .tst 2>/dev/null 2732 2733# Check whether --enable-silent-rules was given. 2734if test "${enable_silent_rules+set}" = set; then : 2735 enableval=$enable_silent_rules; 2736fi 2737 2738case $enable_silent_rules in # ((( 2739 yes) AM_DEFAULT_VERBOSITY=0;; 2740 no) AM_DEFAULT_VERBOSITY=1;; 2741 *) AM_DEFAULT_VERBOSITY=1;; 2742esac 2743am_make=${MAKE-make} 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2745$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2746if ${am_cv_make_support_nested_variables+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 if $as_echo 'TRUE=$(BAR$(V)) 2750BAR0=false 2751BAR1=true 2752V=1 2753am__doit: 2754 @$(TRUE) 2755.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2756 am_cv_make_support_nested_variables=yes 2757else 2758 am_cv_make_support_nested_variables=no 2759fi 2760fi 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2762$as_echo "$am_cv_make_support_nested_variables" >&6; } 2763if test $am_cv_make_support_nested_variables = yes; then 2764 AM_V='$(V)' 2765 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2766else 2767 AM_V=$AM_DEFAULT_VERBOSITY 2768 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2769fi 2770AM_BACKSLASH='\' 2771 2772if test "`cd $srcdir && pwd`" != "`pwd`"; then 2773 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2774 # is not polluted with repeated "-I." 2775 am__isrc=' -I$(srcdir)' 2776 # test to see if srcdir already configured 2777 if test -f $srcdir/config.status; then 2778 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2779 fi 2780fi 2781 2782# test whether we have cygpath 2783if test -z "$CYGPATH_W"; then 2784 if (cygpath --version) >/dev/null 2>/dev/null; then 2785 CYGPATH_W='cygpath -w' 2786 else 2787 CYGPATH_W=echo 2788 fi 2789fi 2790 2791 2792# Define the identity of the package. 2793 PACKAGE='webpgp' 2794 VERSION='0.10' 2795 2796 2797# Some tools Automake needs. 2798 2799ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2800 2801 2802AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2803 2804 2805AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2806 2807 2808AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2809 2810 2811MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2812 2813# For better backward compatibility. To be removed once Automake 1.9.x 2814# dies out for good. For more background, see: 2815# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2816# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2817mkdir_p='$(MKDIR_P)' 2818 2819# We need awk for the "check" target (and possibly the TAP driver). The 2820# system "awk" is bad on some platforms. 2821# Always define AMTAR for backward compatibility. Yes, it's still used 2822# in the wild :-( We should find a proper way to deprecate it ... 2823AMTAR='$${TAR-tar}' 2824 2825 2826# We'll loop over all known methods to create a tar archive until one works. 2827_am_tools='gnutar pax cpio none' 2828 2829am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2830 2831 2832 2833 2834 2835 2836# POSIX will say in a future version that running "rm -f" with no argument 2837# is OK; and we want to be able to make that assumption in our Makefile 2838# recipes. So use an aggressive probe to check that the usage we want is 2839# actually supported "in the wild" to an acceptable degree. 2840# See automake bug#10828. 2841# To make any issue more visible, cause the running configure to be aborted 2842# by default if the 'rm' program in use doesn't match our expectations; the 2843# user can still override this though. 2844if rm -f && rm -fr && rm -rf; then : OK; else 2845 cat >&2 <<'END' 2846Oops! 2847 2848Your 'rm' program seems unable to run without file operands specified 2849on the command line, even when the '-f' option is present. This is contrary 2850to the behaviour of most rm programs out there, and not conforming with 2851the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2852 2853Please tell bug-automake@gnu.org about your system, including the value 2854of your $PATH and any error possibly output before this message. This 2855can help us improve future automake versions. 2856 2857END 2858 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2859 echo 'Configuration will proceed anyway, since you have set the' >&2 2860 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2861 echo >&2 2862 else 2863 cat >&2 <<'END' 2864Aborting the configuration process, to ensure you take notice of the issue. 2865 2866You can download and install GNU coreutils to get an 'rm' implementation 2867that behaves properly: <https://www.gnu.org/software/coreutils/>. 2868 2869If you want to complete the configuration process using your problematic 2870'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2871to "yes", and re-run configure. 2872 2873END 2874 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2875 fi 2876fi 2877 2878LPATH="$PATH:/usr/local/bin" 2879 2880ac_config_headers="$ac_config_headers config.h" 2881 2882 2883for ac_prog in gawk mawk nawk awk 2884do 2885 # Extract the first word of "$ac_prog", so it can be a program name with args. 2886set dummy $ac_prog; ac_word=$2 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2888$as_echo_n "checking for $ac_word... " >&6; } 2889if ${ac_cv_prog_AWK+:} false; then : 2890 $as_echo_n "(cached) " >&6 2891else 2892 if test -n "$AWK"; then 2893 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2894else 2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896for as_dir in $PATH 2897do 2898 IFS=$as_save_IFS 2899 test -z "$as_dir" && as_dir=. 2900 for ac_exec_ext in '' $ac_executable_extensions; do 2901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2902 ac_cv_prog_AWK="$ac_prog" 2903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2904 break 2 2905 fi 2906done 2907 done 2908IFS=$as_save_IFS 2909 2910fi 2911fi 2912AWK=$ac_cv_prog_AWK 2913if test -n "$AWK"; then 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2915$as_echo "$AWK" >&6; } 2916else 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2918$as_echo "no" >&6; } 2919fi 2920 2921 2922 test -n "$AWK" && break 2923done 2924 2925 2926ac_ext=c 2927ac_cpp='$CPP $CPPFLAGS' 2928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2930ac_compiler_gnu=$ac_cv_c_compiler_gnu 2931if test -n "$ac_tool_prefix"; then 2932 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2933set dummy ${ac_tool_prefix}gcc; ac_word=$2 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2935$as_echo_n "checking for $ac_word... " >&6; } 2936if ${ac_cv_prog_CC+:} false; then : 2937 $as_echo_n "(cached) " >&6 2938else 2939 if test -n "$CC"; then 2940 ac_cv_prog_CC="$CC" # Let the user override the test. 2941else 2942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2943for as_dir in $PATH 2944do 2945 IFS=$as_save_IFS 2946 test -z "$as_dir" && as_dir=. 2947 for ac_exec_ext in '' $ac_executable_extensions; do 2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2949 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2951 break 2 2952 fi 2953done 2954 done 2955IFS=$as_save_IFS 2956 2957fi 2958fi 2959CC=$ac_cv_prog_CC 2960if test -n "$CC"; then 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2962$as_echo "$CC" >&6; } 2963else 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965$as_echo "no" >&6; } 2966fi 2967 2968 2969fi 2970if test -z "$ac_cv_prog_CC"; then 2971 ac_ct_CC=$CC 2972 # Extract the first word of "gcc", so it can be a program name with args. 2973set dummy gcc; ac_word=$2 2974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2975$as_echo_n "checking for $ac_word... " >&6; } 2976if ${ac_cv_prog_ac_ct_CC+:} false; then : 2977 $as_echo_n "(cached) " >&6 2978else 2979 if test -n "$ac_ct_CC"; then 2980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2981else 2982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2983for as_dir in $PATH 2984do 2985 IFS=$as_save_IFS 2986 test -z "$as_dir" && as_dir=. 2987 for ac_exec_ext in '' $ac_executable_extensions; do 2988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2989 ac_cv_prog_ac_ct_CC="gcc" 2990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2991 break 2 2992 fi 2993done 2994 done 2995IFS=$as_save_IFS 2996 2997fi 2998fi 2999ac_ct_CC=$ac_cv_prog_ac_ct_CC 3000if test -n "$ac_ct_CC"; then 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3002$as_echo "$ac_ct_CC" >&6; } 3003else 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3005$as_echo "no" >&6; } 3006fi 3007 3008 if test "x$ac_ct_CC" = x; then 3009 CC="" 3010 else 3011 case $cross_compiling:$ac_tool_warned in 3012yes:) 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3015ac_tool_warned=yes ;; 3016esac 3017 CC=$ac_ct_CC 3018 fi 3019else 3020 CC="$ac_cv_prog_CC" 3021fi 3022 3023if test -z "$CC"; then 3024 if test -n "$ac_tool_prefix"; then 3025 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3026set dummy ${ac_tool_prefix}cc; ac_word=$2 3027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3028$as_echo_n "checking for $ac_word... " >&6; } 3029if ${ac_cv_prog_CC+:} false; then : 3030 $as_echo_n "(cached) " >&6 3031else 3032 if test -n "$CC"; then 3033 ac_cv_prog_CC="$CC" # Let the user override the test. 3034else 3035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3036for as_dir in $PATH 3037do 3038 IFS=$as_save_IFS 3039 test -z "$as_dir" && as_dir=. 3040 for ac_exec_ext in '' $ac_executable_extensions; do 3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3042 ac_cv_prog_CC="${ac_tool_prefix}cc" 3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3044 break 2 3045 fi 3046done 3047 done 3048IFS=$as_save_IFS 3049 3050fi 3051fi 3052CC=$ac_cv_prog_CC 3053if test -n "$CC"; then 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3055$as_echo "$CC" >&6; } 3056else 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3058$as_echo "no" >&6; } 3059fi 3060 3061 3062 fi 3063fi 3064if test -z "$CC"; then 3065 # Extract the first word of "cc", so it can be a program name with args. 3066set dummy cc; ac_word=$2 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3068$as_echo_n "checking for $ac_word... " >&6; } 3069if ${ac_cv_prog_CC+:} false; then : 3070 $as_echo_n "(cached) " >&6 3071else 3072 if test -n "$CC"; then 3073 ac_cv_prog_CC="$CC" # Let the user override the test. 3074else 3075 ac_prog_rejected=no 3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3077for as_dir in $PATH 3078do 3079 IFS=$as_save_IFS 3080 test -z "$as_dir" && as_dir=. 3081 for ac_exec_ext in '' $ac_executable_extensions; do 3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3083 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3084 ac_prog_rejected=yes 3085 continue 3086 fi 3087 ac_cv_prog_CC="cc" 3088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3089 break 2 3090 fi 3091done 3092 done 3093IFS=$as_save_IFS 3094 3095if test $ac_prog_rejected = yes; then 3096 # We found a bogon in the path, so make sure we never use it. 3097 set dummy $ac_cv_prog_CC 3098 shift 3099 if test $# != 0; then 3100 # We chose a different compiler from the bogus one. 3101 # However, it has the same basename, so the bogon will be chosen 3102 # first if we set CC to just the basename; use the full file name. 3103 shift 3104 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3105 fi 3106fi 3107fi 3108fi 3109CC=$ac_cv_prog_CC 3110if test -n "$CC"; then 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3112$as_echo "$CC" >&6; } 3113else 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115$as_echo "no" >&6; } 3116fi 3117 3118 3119fi 3120if test -z "$CC"; then 3121 if test -n "$ac_tool_prefix"; then 3122 for ac_prog in cl.exe 3123 do 3124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3125set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3127$as_echo_n "checking for $ac_word... " >&6; } 3128if ${ac_cv_prog_CC+:} false; then : 3129 $as_echo_n "(cached) " >&6 3130else 3131 if test -n "$CC"; then 3132 ac_cv_prog_CC="$CC" # Let the user override the test. 3133else 3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3135for as_dir in $PATH 3136do 3137 IFS=$as_save_IFS 3138 test -z "$as_dir" && as_dir=. 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3141 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3143 break 2 3144 fi 3145done 3146 done 3147IFS=$as_save_IFS 3148 3149fi 3150fi 3151CC=$ac_cv_prog_CC 3152if test -n "$CC"; then 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3154$as_echo "$CC" >&6; } 3155else 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157$as_echo "no" >&6; } 3158fi 3159 3160 3161 test -n "$CC" && break 3162 done 3163fi 3164if test -z "$CC"; then 3165 ac_ct_CC=$CC 3166 for ac_prog in cl.exe 3167do 3168 # Extract the first word of "$ac_prog", so it can be a program name with args. 3169set dummy $ac_prog; ac_word=$2 3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3171$as_echo_n "checking for $ac_word... " >&6; } 3172if ${ac_cv_prog_ac_ct_CC+:} false; then : 3173 $as_echo_n "(cached) " >&6 3174else 3175 if test -n "$ac_ct_CC"; then 3176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3177else 3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3179for as_dir in $PATH 3180do 3181 IFS=$as_save_IFS 3182 test -z "$as_dir" && as_dir=. 3183 for ac_exec_ext in '' $ac_executable_extensions; do 3184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3185 ac_cv_prog_ac_ct_CC="$ac_prog" 3186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3187 break 2 3188 fi 3189done 3190 done 3191IFS=$as_save_IFS 3192 3193fi 3194fi 3195ac_ct_CC=$ac_cv_prog_ac_ct_CC 3196if test -n "$ac_ct_CC"; then 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3198$as_echo "$ac_ct_CC" >&6; } 3199else 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3201$as_echo "no" >&6; } 3202fi 3203 3204 3205 test -n "$ac_ct_CC" && break 3206done 3207 3208 if test "x$ac_ct_CC" = x; then 3209 CC="" 3210 else 3211 case $cross_compiling:$ac_tool_warned in 3212yes:) 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3215ac_tool_warned=yes ;; 3216esac 3217 CC=$ac_ct_CC 3218 fi 3219fi 3220 3221fi 3222 3223 3224test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3226as_fn_error $? "no acceptable C compiler found in \$PATH 3227See \`config.log' for more details" "$LINENO" 5; } 3228 3229# Provide some information about the compiler. 3230$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3231set X $ac_compile 3232ac_compiler=$2 3233for ac_option in --version -v -V -qversion; do 3234 { { ac_try="$ac_compiler $ac_option >&5" 3235case "(($ac_try" in 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3237 *) ac_try_echo=$ac_try;; 3238esac 3239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3240$as_echo "$ac_try_echo"; } >&5 3241 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3242 ac_status=$? 3243 if test -s conftest.err; then 3244 sed '10a\ 3245... rest of stderr output deleted ... 3246 10q' conftest.err >conftest.er1 3247 cat conftest.er1 >&5 3248 fi 3249 rm -f conftest.er1 conftest.err 3250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3251 test $ac_status = 0; } 3252done 3253 3254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3255/* end confdefs.h. */ 3256 3257int 3258main () 3259{ 3260 3261 ; 3262 return 0; 3263} 3264_ACEOF 3265ac_clean_files_save=$ac_clean_files 3266ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3267# Try to create an executable without -o first, disregard a.out. 3268# It will help us diagnose broken compilers, and finding out an intuition 3269# of exeext. 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3271$as_echo_n "checking whether the C compiler works... " >&6; } 3272ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3273 3274# The possible output files: 3275ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3276 3277ac_rmfiles= 3278for ac_file in $ac_files 3279do 3280 case $ac_file in 3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3282 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3283 esac 3284done 3285rm -f $ac_rmfiles 3286 3287if { { ac_try="$ac_link_default" 3288case "(($ac_try" in 3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3290 *) ac_try_echo=$ac_try;; 3291esac 3292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3293$as_echo "$ac_try_echo"; } >&5 3294 (eval "$ac_link_default") 2>&5 3295 ac_status=$? 3296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3297 test $ac_status = 0; }; then : 3298 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3299# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3300# in a Makefile. We should not override ac_cv_exeext if it was cached, 3301# so that the user can short-circuit this test for compilers unknown to 3302# Autoconf. 3303for ac_file in $ac_files '' 3304do 3305 test -f "$ac_file" || continue 3306 case $ac_file in 3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3308 ;; 3309 [ab].out ) 3310 # We found the default executable, but exeext='' is most 3311 # certainly right. 3312 break;; 3313 *.* ) 3314 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3315 then :; else 3316 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3317 fi 3318 # We set ac_cv_exeext here because the later test for it is not 3319 # safe: cross compilers may not add the suffix if given an `-o' 3320 # argument, so we may need to know it at that point already. 3321 # Even if this section looks crufty: it has the advantage of 3322 # actually working. 3323 break;; 3324 * ) 3325 break;; 3326 esac 3327done 3328test "$ac_cv_exeext" = no && ac_cv_exeext= 3329 3330else 3331 ac_file='' 3332fi 3333if test -z "$ac_file"; then : 3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3335$as_echo "no" >&6; } 3336$as_echo "$as_me: failed program was:" >&5 3337sed 's/^/| /' conftest.$ac_ext >&5 3338 3339{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3341as_fn_error 77 "C compiler cannot create executables 3342See \`config.log' for more details" "$LINENO" 5; } 3343else 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3345$as_echo "yes" >&6; } 3346fi 3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3348$as_echo_n "checking for C compiler default output file name... " >&6; } 3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3350$as_echo "$ac_file" >&6; } 3351ac_exeext=$ac_cv_exeext 3352 3353rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3354ac_clean_files=$ac_clean_files_save 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3356$as_echo_n "checking for suffix of executables... " >&6; } 3357if { { ac_try="$ac_link" 3358case "(($ac_try" in 3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3360 *) ac_try_echo=$ac_try;; 3361esac 3362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3363$as_echo "$ac_try_echo"; } >&5 3364 (eval "$ac_link") 2>&5 3365 ac_status=$? 3366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3367 test $ac_status = 0; }; then : 3368 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3369# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3370# work properly (i.e., refer to `conftest.exe'), while it won't with 3371# `rm'. 3372for ac_file in conftest.exe conftest conftest.*; do 3373 test -f "$ac_file" || continue 3374 case $ac_file in 3375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3376 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3377 break;; 3378 * ) break;; 3379 esac 3380done 3381else 3382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3384as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3385See \`config.log' for more details" "$LINENO" 5; } 3386fi 3387rm -f conftest conftest$ac_cv_exeext 3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3389$as_echo "$ac_cv_exeext" >&6; } 3390 3391rm -f conftest.$ac_ext 3392EXEEXT=$ac_cv_exeext 3393ac_exeext=$EXEEXT 3394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3395/* end confdefs.h. */ 3396#include <stdio.h> 3397int 3398main () 3399{ 3400FILE *f = fopen ("conftest.out", "w"); 3401 return ferror (f) || fclose (f) != 0; 3402 3403 ; 3404 return 0; 3405} 3406_ACEOF 3407ac_clean_files="$ac_clean_files conftest.out" 3408# Check that the compiler produces executables we can run. If not, either 3409# the compiler is broken, or we cross compile. 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3411$as_echo_n "checking whether we are cross compiling... " >&6; } 3412if test "$cross_compiling" != yes; then 3413 { { ac_try="$ac_link" 3414case "(($ac_try" in 3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3416 *) ac_try_echo=$ac_try;; 3417esac 3418eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3419$as_echo "$ac_try_echo"; } >&5 3420 (eval "$ac_link") 2>&5 3421 ac_status=$? 3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3423 test $ac_status = 0; } 3424 if { ac_try='./conftest$ac_cv_exeext' 3425 { { case "(($ac_try" in 3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3427 *) ac_try_echo=$ac_try;; 3428esac 3429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3430$as_echo "$ac_try_echo"; } >&5 3431 (eval "$ac_try") 2>&5 3432 ac_status=$? 3433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3434 test $ac_status = 0; }; }; then 3435 cross_compiling=no 3436 else 3437 if test "$cross_compiling" = maybe; then 3438 cross_compiling=yes 3439 else 3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3442as_fn_error $? "cannot run C compiled programs. 3443If you meant to cross compile, use \`--host'. 3444See \`config.log' for more details" "$LINENO" 5; } 3445 fi 3446 fi 3447fi 3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3449$as_echo "$cross_compiling" >&6; } 3450 3451rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3452ac_clean_files=$ac_clean_files_save 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3454$as_echo_n "checking for suffix of object files... " >&6; } 3455if ${ac_cv_objext+:} false; then : 3456 $as_echo_n "(cached) " >&6 3457else 3458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3459/* end confdefs.h. */ 3460 3461int 3462main () 3463{ 3464 3465 ; 3466 return 0; 3467} 3468_ACEOF 3469rm -f conftest.o conftest.obj 3470if { { ac_try="$ac_compile" 3471case "(($ac_try" in 3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3473 *) ac_try_echo=$ac_try;; 3474esac 3475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3476$as_echo "$ac_try_echo"; } >&5 3477 (eval "$ac_compile") 2>&5 3478 ac_status=$? 3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3480 test $ac_status = 0; }; then : 3481 for ac_file in conftest.o conftest.obj conftest.*; do 3482 test -f "$ac_file" || continue; 3483 case $ac_file in 3484 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3485 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3486 break;; 3487 esac 3488done 3489else 3490 $as_echo "$as_me: failed program was:" >&5 3491sed 's/^/| /' conftest.$ac_ext >&5 3492 3493{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3495as_fn_error $? "cannot compute suffix of object files: cannot compile 3496See \`config.log' for more details" "$LINENO" 5; } 3497fi 3498rm -f conftest.$ac_cv_objext conftest.$ac_ext 3499fi 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3501$as_echo "$ac_cv_objext" >&6; } 3502OBJEXT=$ac_cv_objext 3503ac_objext=$OBJEXT 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3505$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3506if ${ac_cv_c_compiler_gnu+:} false; then : 3507 $as_echo_n "(cached) " >&6 3508else 3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3510/* end confdefs.h. */ 3511 3512int 3513main () 3514{ 3515#ifndef __GNUC__ 3516 choke me 3517#endif 3518 3519 ; 3520 return 0; 3521} 3522_ACEOF 3523if ac_fn_c_try_compile "$LINENO"; then : 3524 ac_compiler_gnu=yes 3525else 3526 ac_compiler_gnu=no 3527fi 3528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3529ac_cv_c_compiler_gnu=$ac_compiler_gnu 3530 3531fi 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3533$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3534if test $ac_compiler_gnu = yes; then 3535 GCC=yes 3536else 3537 GCC= 3538fi 3539ac_test_CFLAGS=${CFLAGS+set} 3540ac_save_CFLAGS=$CFLAGS 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3542$as_echo_n "checking whether $CC accepts -g... " >&6; } 3543if ${ac_cv_prog_cc_g+:} false; then : 3544 $as_echo_n "(cached) " >&6 3545else 3546 ac_save_c_werror_flag=$ac_c_werror_flag 3547 ac_c_werror_flag=yes 3548 ac_cv_prog_cc_g=no 3549 CFLAGS="-g" 3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3551/* end confdefs.h. */ 3552 3553int 3554main () 3555{ 3556 3557 ; 3558 return 0; 3559} 3560_ACEOF 3561if ac_fn_c_try_compile "$LINENO"; then : 3562 ac_cv_prog_cc_g=yes 3563else 3564 CFLAGS="" 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567 3568int 3569main () 3570{ 3571 3572 ; 3573 return 0; 3574} 3575_ACEOF 3576if ac_fn_c_try_compile "$LINENO"; then : 3577 3578else 3579 ac_c_werror_flag=$ac_save_c_werror_flag 3580 CFLAGS="-g" 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582/* end confdefs.h. */ 3583 3584int 3585main () 3586{ 3587 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592if ac_fn_c_try_compile "$LINENO"; then : 3593 ac_cv_prog_cc_g=yes 3594fi 3595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3596fi 3597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3598fi 3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3600 ac_c_werror_flag=$ac_save_c_werror_flag 3601fi 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3603$as_echo "$ac_cv_prog_cc_g" >&6; } 3604if test "$ac_test_CFLAGS" = set; then 3605 CFLAGS=$ac_save_CFLAGS 3606elif test $ac_cv_prog_cc_g = yes; then 3607 if test "$GCC" = yes; then 3608 CFLAGS="-g -O2" 3609 else 3610 CFLAGS="-g" 3611 fi 3612else 3613 if test "$GCC" = yes; then 3614 CFLAGS="-O2" 3615 else 3616 CFLAGS= 3617 fi 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3620$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3621if ${ac_cv_prog_cc_c89+:} false; then : 3622 $as_echo_n "(cached) " >&6 3623else 3624 ac_cv_prog_cc_c89=no 3625ac_save_CC=$CC 3626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3627/* end confdefs.h. */ 3628#include <stdarg.h> 3629#include <stdio.h> 3630struct stat; 3631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3632struct buf { int x; }; 3633FILE * (*rcsopen) (struct buf *, struct stat *, int); 3634static char *e (p, i) 3635 char **p; 3636 int i; 3637{ 3638 return p[i]; 3639} 3640static char *f (char * (*g) (char **, int), char **p, ...) 3641{ 3642 char *s; 3643 va_list v; 3644 va_start (v,p); 3645 s = g (p, va_arg (v,int)); 3646 va_end (v); 3647 return s; 3648} 3649 3650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3651 function prototypes and stuff, but not '\xHH' hex character constants. 3652 These don't provoke an error unfortunately, instead are silently treated 3653 as 'x'. The following induces an error, until -std is added to get 3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3655 array size at least. It's necessary to write '\x00'==0 to get something 3656 that's true only with -std. */ 3657int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3658 3659/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3660 inside strings and character constants. */ 3661#define FOO(x) 'x' 3662int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3663 3664int test (int i, double x); 3665struct s1 {int (*f) (int a);}; 3666struct s2 {int (*f) (double a);}; 3667int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3668int argc; 3669char **argv; 3670int 3671main () 3672{ 3673return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3679 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3680do 3681 CC="$ac_save_CC $ac_arg" 3682 if ac_fn_c_try_compile "$LINENO"; then : 3683 ac_cv_prog_cc_c89=$ac_arg 3684fi 3685rm -f core conftest.err conftest.$ac_objext 3686 test "x$ac_cv_prog_cc_c89" != "xno" && break 3687done 3688rm -f conftest.$ac_ext 3689CC=$ac_save_CC 3690 3691fi 3692# AC_CACHE_VAL 3693case "x$ac_cv_prog_cc_c89" in 3694 x) 3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3696$as_echo "none needed" >&6; } ;; 3697 xno) 3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3699$as_echo "unsupported" >&6; } ;; 3700 *) 3701 CC="$CC $ac_cv_prog_cc_c89" 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3703$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3704esac 3705if test "x$ac_cv_prog_cc_c89" != xno; then : 3706 3707fi 3708 3709ac_ext=c 3710ac_cpp='$CPP $CPPFLAGS' 3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3713ac_compiler_gnu=$ac_cv_c_compiler_gnu 3714 3715ac_ext=c 3716ac_cpp='$CPP $CPPFLAGS' 3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3719ac_compiler_gnu=$ac_cv_c_compiler_gnu 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3721$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3722if ${am_cv_prog_cc_c_o+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3726/* end confdefs.h. */ 3727 3728int 3729main () 3730{ 3731 3732 ; 3733 return 0; 3734} 3735_ACEOF 3736 # Make sure it works both with $CC and with simple cc. 3737 # Following AC_PROG_CC_C_O, we do the test twice because some 3738 # compilers refuse to overwrite an existing .o file with -o, 3739 # though they will create one. 3740 am_cv_prog_cc_c_o=yes 3741 for am_i in 1 2; do 3742 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3743 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3744 ac_status=$? 3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3746 (exit $ac_status); } \ 3747 && test -f conftest2.$ac_objext; then 3748 : OK 3749 else 3750 am_cv_prog_cc_c_o=no 3751 break 3752 fi 3753 done 3754 rm -f core conftest* 3755 unset am_i 3756fi 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3758$as_echo "$am_cv_prog_cc_c_o" >&6; } 3759if test "$am_cv_prog_cc_c_o" != yes; then 3760 # Losing compiler, so override with the script. 3761 # FIXME: It is wrong to rewrite CC. 3762 # But if we don't then we get into trouble of one sort or another. 3763 # A longer-term fix would be to have automake use am__CC in this case, 3764 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3765 CC="$am_aux_dir/compile $CC" 3766fi 3767ac_ext=c 3768ac_cpp='$CPP $CPPFLAGS' 3769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3771ac_compiler_gnu=$ac_cv_c_compiler_gnu 3772 3773DEPDIR="${am__leading_dot}deps" 3774 3775ac_config_commands="$ac_config_commands depfiles" 3776 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3778$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3779cat > confinc.mk << 'END' 3780am__doit: 3781 @echo this is the am__doit target >confinc.out 3782.PHONY: am__doit 3783END 3784am__include="#" 3785am__quote= 3786# BSD make does it like this. 3787echo '.include "confinc.mk" # ignored' > confmf.BSD 3788# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3789echo 'include confinc.mk # ignored' > confmf.GNU 3790_am_result=no 3791for s in GNU BSD; do 3792 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3793 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3794 ac_status=$? 3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3796 (exit $ac_status); } 3797 case $?:`cat confinc.out 2>/dev/null` in #( 3798 '0:this is the am__doit target') : 3799 case $s in #( 3800 BSD) : 3801 am__include='.include' am__quote='"' ;; #( 3802 *) : 3803 am__include='include' am__quote='' ;; 3804esac ;; #( 3805 *) : 3806 ;; 3807esac 3808 if test "$am__include" != "#"; then 3809 _am_result="yes ($s style)" 3810 break 3811 fi 3812done 3813rm -f confinc.* confmf.* 3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3815$as_echo "${_am_result}" >&6; } 3816 3817# Check whether --enable-dependency-tracking was given. 3818if test "${enable_dependency_tracking+set}" = set; then : 3819 enableval=$enable_dependency_tracking; 3820fi 3821 3822if test "x$enable_dependency_tracking" != xno; then 3823 am_depcomp="$ac_aux_dir/depcomp" 3824 AMDEPBACKSLASH='\' 3825 am__nodep='_no' 3826fi 3827 if test "x$enable_dependency_tracking" != xno; then 3828 AMDEP_TRUE= 3829 AMDEP_FALSE='#' 3830else 3831 AMDEP_TRUE='#' 3832 AMDEP_FALSE= 3833fi 3834 3835 3836 3837depcc="$CC" am_compiler_list= 3838 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3840$as_echo_n "checking dependency style of $depcc... " >&6; } 3841if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843else 3844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3845 # We make a subdir and do the tests there. Otherwise we can end up 3846 # making bogus files that we don't know about and never remove. For 3847 # instance it was reported that on HP-UX the gcc test will end up 3848 # making a dummy file named 'D' -- because '-MD' means "put the output 3849 # in D". 3850 rm -rf conftest.dir 3851 mkdir conftest.dir 3852 # Copy depcomp to subdir because otherwise we won't find it if we're 3853 # using a relative directory. 3854 cp "$am_depcomp" conftest.dir 3855 cd conftest.dir 3856 # We will build objects and dependencies in a subdirectory because 3857 # it helps to detect inapplicable dependency modes. For instance 3858 # both Tru64's cc and ICC support -MD to output dependencies as a 3859 # side effect of compilation, but ICC will put the dependencies in 3860 # the current directory while Tru64 will put them in the object 3861 # directory. 3862 mkdir sub 3863 3864 am_cv_CC_dependencies_compiler_type=none 3865 if test "$am_compiler_list" = ""; then 3866 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3867 fi 3868 am__universal=false 3869 case " $depcc " in #( 3870 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3871 esac 3872 3873 for depmode in $am_compiler_list; do 3874 # Setup a source with many dependencies, because some compilers 3875 # like to wrap large dependency lists on column 80 (with \), and 3876 # we should not choose a depcomp mode which is confused by this. 3877 # 3878 # We need to recreate these files for each test, as the compiler may 3879 # overwrite some of them when testing with obscure command lines. 3880 # This happens at least with the AIX C compiler. 3881 : > sub/conftest.c 3882 for i in 1 2 3 4 5 6; do 3883 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3884 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3885 # Solaris 10 /bin/sh. 3886 echo '/* dummy */' > sub/conftst$i.h 3887 done 3888 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3889 3890 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3891 # mode. It turns out that the SunPro C++ compiler does not properly 3892 # handle '-M -o', and we need to detect this. Also, some Intel 3893 # versions had trouble with output in subdirs. 3894 am__obj=sub/conftest.${OBJEXT-o} 3895 am__minus_obj="-o $am__obj" 3896 case $depmode in 3897 gcc) 3898 # This depmode causes a compiler race in universal mode. 3899 test "$am__universal" = false || continue 3900 ;; 3901 nosideeffect) 3902 # After this tag, mechanisms are not by side-effect, so they'll 3903 # only be used when explicitly requested. 3904 if test "x$enable_dependency_tracking" = xyes; then 3905 continue 3906 else 3907 break 3908 fi 3909 ;; 3910 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3911 # This compiler won't grok '-c -o', but also, the minuso test has 3912 # not run yet. These depmodes are late enough in the game, and 3913 # so weak that their functioning should not be impacted. 3914 am__obj=conftest.${OBJEXT-o} 3915 am__minus_obj= 3916 ;; 3917 none) break ;; 3918 esac 3919 if depmode=$depmode \ 3920 source=sub/conftest.c object=$am__obj \ 3921 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3922 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3923 >/dev/null 2>conftest.err && 3924 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3925 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3926 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3927 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3928 # icc doesn't choke on unknown options, it will just issue warnings 3929 # or remarks (even with -Werror). So we grep stderr for any message 3930 # that says an option was ignored or not supported. 3931 # When given -MP, icc 7.0 and 7.1 complain thusly: 3932 # icc: Command line warning: ignoring option '-M'; no argument required 3933 # The diagnosis changed in icc 8.0: 3934 # icc: Command line remark: option '-MP' not supported 3935 if (grep 'ignoring option' conftest.err || 3936 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3937 am_cv_CC_dependencies_compiler_type=$depmode 3938 break 3939 fi 3940 fi 3941 done 3942 3943 cd .. 3944 rm -rf conftest.dir 3945else 3946 am_cv_CC_dependencies_compiler_type=none 3947fi 3948 3949fi 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3951$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3952CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3953 3954 if 3955 test "x$enable_dependency_tracking" != xno \ 3956 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3957 am__fastdepCC_TRUE= 3958 am__fastdepCC_FALSE='#' 3959else 3960 am__fastdepCC_TRUE='#' 3961 am__fastdepCC_FALSE= 3962fi 3963 3964 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3966$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3967if ${ac_cv_prog_cc_c99+:} false; then : 3968 $as_echo_n "(cached) " >&6 3969else 3970 ac_cv_prog_cc_c99=no 3971ac_save_CC=$CC 3972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973/* end confdefs.h. */ 3974#include <stdarg.h> 3975#include <stdbool.h> 3976#include <stdlib.h> 3977#include <wchar.h> 3978#include <stdio.h> 3979 3980// Check varargs macros. These examples are taken from C99 6.10.3.5. 3981#define debug(...) fprintf (stderr, __VA_ARGS__) 3982#define showlist(...) puts (#__VA_ARGS__) 3983#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3984static void 3985test_varargs_macros (void) 3986{ 3987 int x = 1234; 3988 int y = 5678; 3989 debug ("Flag"); 3990 debug ("X = %d\n", x); 3991 showlist (The first, second, and third items.); 3992 report (x>y, "x is %d but y is %d", x, y); 3993} 3994 3995// Check long long types. 3996#define BIG64 18446744073709551615ull 3997#define BIG32 4294967295ul 3998#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3999#if !BIG_OK 4000 your preprocessor is broken; 4001#endif 4002#if BIG_OK 4003#else 4004 your preprocessor is broken; 4005#endif 4006static long long int bignum = -9223372036854775807LL; 4007static unsigned long long int ubignum = BIG64; 4008 4009struct incomplete_array 4010{ 4011 int datasize; 4012 double data[]; 4013}; 4014 4015struct named_init { 4016 int number; 4017 const wchar_t *name; 4018 double average; 4019}; 4020 4021typedef const char *ccp; 4022 4023static inline int 4024test_restrict (ccp restrict text) 4025{ 4026 // See if C++-style comments work. 4027 // Iterate through items via the restricted pointer. 4028 // Also check for declarations in for loops. 4029 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4030 continue; 4031 return 0; 4032} 4033 4034// Check varargs and va_copy. 4035static void 4036test_varargs (const char *format, ...) 4037{ 4038 va_list args; 4039 va_start (args, format); 4040 va_list args_copy; 4041 va_copy (args_copy, args); 4042 4043 const char *str; 4044 int number; 4045 float fnumber; 4046 4047 while (*format) 4048 { 4049 switch (*format++) 4050 { 4051 case 's': // string 4052 str = va_arg (args_copy, const char *); 4053 break; 4054 case 'd': // int 4055 number = va_arg (args_copy, int); 4056 break; 4057 case 'f': // float 4058 fnumber = va_arg (args_copy, double); 4059 break; 4060 default: 4061 break; 4062 } 4063 } 4064 va_end (args_copy); 4065 va_end (args); 4066} 4067 4068int 4069main () 4070{ 4071 4072 // Check bool. 4073 _Bool success = false; 4074 4075 // Check restrict. 4076 if (test_restrict ("String literal") == 0) 4077 success = true; 4078 char *restrict newvar = "Another string"; 4079 4080 // Check varargs. 4081 test_varargs ("s, d' f .", "string", 65, 34.234); 4082 test_varargs_macros (); 4083 4084 // Check flexible array members. 4085 struct incomplete_array *ia = 4086 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4087 ia->datasize = 10; 4088 for (int i = 0; i < ia->datasize; ++i) 4089 ia->data[i] = i * 1.234; 4090 4091 // Check named initializers. 4092 struct named_init ni = { 4093 .number = 34, 4094 .name = L"Test wide string", 4095 .average = 543.34343, 4096 }; 4097 4098 ni.number = 58; 4099 4100 int dynamic_array[ni.number]; 4101 dynamic_array[ni.number - 1] = 543; 4102 4103 // work around unused variable warnings 4104 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4105 || dynamic_array[ni.number - 1] != 543); 4106 4107 ; 4108 return 0; 4109} 4110_ACEOF 4111for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4112do 4113 CC="$ac_save_CC $ac_arg" 4114 if ac_fn_c_try_compile "$LINENO"; then : 4115 ac_cv_prog_cc_c99=$ac_arg 4116fi 4117rm -f core conftest.err conftest.$ac_objext 4118 test "x$ac_cv_prog_cc_c99" != "xno" && break 4119done 4120rm -f conftest.$ac_ext 4121CC=$ac_save_CC 4122 4123fi 4124# AC_CACHE_VAL 4125case "x$ac_cv_prog_cc_c99" in 4126 x) 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4128$as_echo "none needed" >&6; } ;; 4129 xno) 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4131$as_echo "unsupported" >&6; } ;; 4132 *) 4133 CC="$CC $ac_cv_prog_cc_c99" 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4135$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4136esac 4137if test "x$ac_cv_prog_cc_c99" != xno; then : 4138 4139fi 4140 4141 4142enable_dlopen=yes 4143 4144 4145 4146case `pwd` in 4147 *\ * | *\ *) 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4149$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4150esac 4151 4152 4153 4154macro_version='2.4.6' 4155macro_revision='2.4.6' 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169ltmain=$ac_aux_dir/ltmain.sh 4170 4171# Make sure we can run config.sub. 4172$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4173 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4174 4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4176$as_echo_n "checking build system type... " >&6; } 4177if ${ac_cv_build+:} false; then : 4178 $as_echo_n "(cached) " >&6 4179else 4180 ac_build_alias=$build_alias 4181test "x$ac_build_alias" = x && 4182 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4183test "x$ac_build_alias" = x && 4184 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4185ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4186 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4187 4188fi 4189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4190$as_echo "$ac_cv_build" >&6; } 4191case $ac_cv_build in 4192*-*-*) ;; 4193*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4194esac 4195build=$ac_cv_build 4196ac_save_IFS=$IFS; IFS='-' 4197set x $ac_cv_build 4198shift 4199build_cpu=$1 4200build_vendor=$2 4201shift; shift 4202# Remember, the first character of IFS is used to create $*, 4203# except with old shells: 4204build_os=$* 4205IFS=$ac_save_IFS 4206case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4207 4208 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4210$as_echo_n "checking host system type... " >&6; } 4211if ${ac_cv_host+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 if test "x$host_alias" = x; then 4215 ac_cv_host=$ac_cv_build 4216else 4217 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4218 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4219fi 4220 4221fi 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4223$as_echo "$ac_cv_host" >&6; } 4224case $ac_cv_host in 4225*-*-*) ;; 4226*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4227esac 4228host=$ac_cv_host 4229ac_save_IFS=$IFS; IFS='-' 4230set x $ac_cv_host 4231shift 4232host_cpu=$1 4233host_vendor=$2 4234shift; shift 4235# Remember, the first character of IFS is used to create $*, 4236# except with old shells: 4237host_os=$* 4238IFS=$ac_save_IFS 4239case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4240 4241 4242# Backslashify metacharacters that are still active within 4243# double-quoted strings. 4244sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4245 4246# Same as above, but do not quote variable references. 4247double_quote_subst='s/\(["`\\]\)/\\\1/g' 4248 4249# Sed substitution to delay expansion of an escaped shell variable in a 4250# double_quote_subst'ed string. 4251delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4252 4253# Sed substitution to delay expansion of an escaped single quote. 4254delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4255 4256# Sed substitution to avoid accidental globbing in evaled expressions 4257no_glob_subst='s/\*/\\\*/g' 4258 4259ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4260ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4261ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4262 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4264$as_echo_n "checking how to print strings... " >&6; } 4265# Test print first, because it will be a builtin if present. 4266if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4267 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4268 ECHO='print -r --' 4269elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4270 ECHO='printf %s\n' 4271else 4272 # Use this function as a fallback that always works. 4273 func_fallback_echo () 4274 { 4275 eval 'cat <<_LTECHO_EOF 4276$1 4277_LTECHO_EOF' 4278 } 4279 ECHO='func_fallback_echo' 4280fi 4281 4282# func_echo_all arg... 4283# Invoke $ECHO with all args, space-separated. 4284func_echo_all () 4285{ 4286 $ECHO "" 4287} 4288 4289case $ECHO in 4290 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4291$as_echo "printf" >&6; } ;; 4292 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4293$as_echo "print -r" >&6; } ;; 4294 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4295$as_echo "cat" >&6; } ;; 4296esac 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4312$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4313if ${ac_cv_path_SED+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4317 for ac_i in 1 2 3 4 5 6 7; do 4318 ac_script="$ac_script$as_nl$ac_script" 4319 done 4320 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4321 { ac_script=; unset ac_script;} 4322 if test -z "$SED"; then 4323 ac_path_SED_found=false 4324 # Loop through the user's path and test for each of PROGNAME-LIST 4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4326for as_dir in $PATH 4327do 4328 IFS=$as_save_IFS 4329 test -z "$as_dir" && as_dir=. 4330 for ac_prog in sed gsed; do 4331 for ac_exec_ext in '' $ac_executable_extensions; do 4332 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4333 as_fn_executable_p "$ac_path_SED" || continue 4334# Check for GNU ac_path_SED and select it if it is found. 4335 # Check for GNU $ac_path_SED 4336case `"$ac_path_SED" --version 2>&1` in 4337*GNU*) 4338 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4339*) 4340 ac_count=0 4341 $as_echo_n 0123456789 >"conftest.in" 4342 while : 4343 do 4344 cat "conftest.in" "conftest.in" >"conftest.tmp" 4345 mv "conftest.tmp" "conftest.in" 4346 cp "conftest.in" "conftest.nl" 4347 $as_echo '' >> "conftest.nl" 4348 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4350 as_fn_arith $ac_count + 1 && ac_count=$as_val 4351 if test $ac_count -gt ${ac_path_SED_max-0}; then 4352 # Best one so far, save it but keep looking for a better one 4353 ac_cv_path_SED="$ac_path_SED" 4354 ac_path_SED_max=$ac_count 4355 fi 4356 # 10*(2^10) chars as input seems more than enough 4357 test $ac_count -gt 10 && break 4358 done 4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4360esac 4361 4362 $ac_path_SED_found && break 3 4363 done 4364 done 4365 done 4366IFS=$as_save_IFS 4367 if test -z "$ac_cv_path_SED"; then 4368 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4369 fi 4370else 4371 ac_cv_path_SED=$SED 4372fi 4373 4374fi 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4376$as_echo "$ac_cv_path_SED" >&6; } 4377 SED="$ac_cv_path_SED" 4378 rm -f conftest.sed 4379 4380test -z "$SED" && SED=sed 4381Xsed="$SED -e 1s/^X//" 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4394$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4395if ${ac_cv_path_GREP+:} false; then : 4396 $as_echo_n "(cached) " >&6 4397else 4398 if test -z "$GREP"; then 4399 ac_path_GREP_found=false 4400 # Loop through the user's path and test for each of PROGNAME-LIST 4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4403do 4404 IFS=$as_save_IFS 4405 test -z "$as_dir" && as_dir=. 4406 for ac_prog in grep ggrep; do 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4409 as_fn_executable_p "$ac_path_GREP" || continue 4410# Check for GNU ac_path_GREP and select it if it is found. 4411 # Check for GNU $ac_path_GREP 4412case `"$ac_path_GREP" --version 2>&1` in 4413*GNU*) 4414 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4415*) 4416 ac_count=0 4417 $as_echo_n 0123456789 >"conftest.in" 4418 while : 4419 do 4420 cat "conftest.in" "conftest.in" >"conftest.tmp" 4421 mv "conftest.tmp" "conftest.in" 4422 cp "conftest.in" "conftest.nl" 4423 $as_echo 'GREP' >> "conftest.nl" 4424 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4425 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4426 as_fn_arith $ac_count + 1 && ac_count=$as_val 4427 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4428 # Best one so far, save it but keep looking for a better one 4429 ac_cv_path_GREP="$ac_path_GREP" 4430 ac_path_GREP_max=$ac_count 4431 fi 4432 # 10*(2^10) chars as input seems more than enough 4433 test $ac_count -gt 10 && break 4434 done 4435 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4436esac 4437 4438 $ac_path_GREP_found && break 3 4439 done 4440 done 4441 done 4442IFS=$as_save_IFS 4443 if test -z "$ac_cv_path_GREP"; then 4444 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4445 fi 4446else 4447 ac_cv_path_GREP=$GREP 4448fi 4449 4450fi 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4452$as_echo "$ac_cv_path_GREP" >&6; } 4453 GREP="$ac_cv_path_GREP" 4454 4455 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4457$as_echo_n "checking for egrep... " >&6; } 4458if ${ac_cv_path_EGREP+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4462 then ac_cv_path_EGREP="$GREP -E" 4463 else 4464 if test -z "$EGREP"; then 4465 ac_path_EGREP_found=false 4466 # Loop through the user's path and test for each of PROGNAME-LIST 4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4469do 4470 IFS=$as_save_IFS 4471 test -z "$as_dir" && as_dir=. 4472 for ac_prog in egrep; do 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4475 as_fn_executable_p "$ac_path_EGREP" || continue 4476# Check for GNU ac_path_EGREP and select it if it is found. 4477 # Check for GNU $ac_path_EGREP 4478case `"$ac_path_EGREP" --version 2>&1` in 4479*GNU*) 4480 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4481*) 4482 ac_count=0 4483 $as_echo_n 0123456789 >"conftest.in" 4484 while : 4485 do 4486 cat "conftest.in" "conftest.in" >"conftest.tmp" 4487 mv "conftest.tmp" "conftest.in" 4488 cp "conftest.in" "conftest.nl" 4489 $as_echo 'EGREP' >> "conftest.nl" 4490 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4492 as_fn_arith $ac_count + 1 && ac_count=$as_val 4493 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4494 # Best one so far, save it but keep looking for a better one 4495 ac_cv_path_EGREP="$ac_path_EGREP" 4496 ac_path_EGREP_max=$ac_count 4497 fi 4498 # 10*(2^10) chars as input seems more than enough 4499 test $ac_count -gt 10 && break 4500 done 4501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4502esac 4503 4504 $ac_path_EGREP_found && break 3 4505 done 4506 done 4507 done 4508IFS=$as_save_IFS 4509 if test -z "$ac_cv_path_EGREP"; then 4510 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4511 fi 4512else 4513 ac_cv_path_EGREP=$EGREP 4514fi 4515 4516 fi 4517fi 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4519$as_echo "$ac_cv_path_EGREP" >&6; } 4520 EGREP="$ac_cv_path_EGREP" 4521 4522 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4524$as_echo_n "checking for fgrep... " >&6; } 4525if ${ac_cv_path_FGREP+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4529 then ac_cv_path_FGREP="$GREP -F" 4530 else 4531 if test -z "$FGREP"; then 4532 ac_path_FGREP_found=false 4533 # Loop through the user's path and test for each of PROGNAME-LIST 4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4535for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4536do 4537 IFS=$as_save_IFS 4538 test -z "$as_dir" && as_dir=. 4539 for ac_prog in fgrep; do 4540 for ac_exec_ext in '' $ac_executable_extensions; do 4541 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4542 as_fn_executable_p "$ac_path_FGREP" || continue 4543# Check for GNU ac_path_FGREP and select it if it is found. 4544 # Check for GNU $ac_path_FGREP 4545case `"$ac_path_FGREP" --version 2>&1` in 4546*GNU*) 4547 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4548*) 4549 ac_count=0 4550 $as_echo_n 0123456789 >"conftest.in" 4551 while : 4552 do 4553 cat "conftest.in" "conftest.in" >"conftest.tmp" 4554 mv "conftest.tmp" "conftest.in" 4555 cp "conftest.in" "conftest.nl" 4556 $as_echo 'FGREP' >> "conftest.nl" 4557 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4559 as_fn_arith $ac_count + 1 && ac_count=$as_val 4560 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4561 # Best one so far, save it but keep looking for a better one 4562 ac_cv_path_FGREP="$ac_path_FGREP" 4563 ac_path_FGREP_max=$ac_count 4564 fi 4565 # 10*(2^10) chars as input seems more than enough 4566 test $ac_count -gt 10 && break 4567 done 4568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4569esac 4570 4571 $ac_path_FGREP_found && break 3 4572 done 4573 done 4574 done 4575IFS=$as_save_IFS 4576 if test -z "$ac_cv_path_FGREP"; then 4577 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4578 fi 4579else 4580 ac_cv_path_FGREP=$FGREP 4581fi 4582 4583 fi 4584fi 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4586$as_echo "$ac_cv_path_FGREP" >&6; } 4587 FGREP="$ac_cv_path_FGREP" 4588 4589 4590test -z "$GREP" && GREP=grep 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610# Check whether --with-gnu-ld was given. 4611if test "${with_gnu_ld+set}" = set; then : 4612 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4613else 4614 with_gnu_ld=no 4615fi 4616 4617ac_prog=ld 4618if test yes = "$GCC"; then 4619 # Check if gcc -print-prog-name=ld gives a path. 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4621$as_echo_n "checking for ld used by $CC... " >&6; } 4622 case $host in 4623 *-*-mingw*) 4624 # gcc leaves a trailing carriage return, which upsets mingw 4625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4626 *) 4627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4628 esac 4629 case $ac_prog in 4630 # Accept absolute paths. 4631 [\\/]* | ?:[\\/]*) 4632 re_direlt='/[^/][^/]*/\.\./' 4633 # Canonicalize the pathname of ld 4634 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4635 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4636 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4637 done 4638 test -z "$LD" && LD=$ac_prog 4639 ;; 4640 "") 4641 # If it fails, then pretend we aren't using GCC. 4642 ac_prog=ld 4643 ;; 4644 *) 4645 # If it is relative, then search for the first ld in PATH. 4646 with_gnu_ld=unknown 4647 ;; 4648 esac 4649elif test yes = "$with_gnu_ld"; then 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4651$as_echo_n "checking for GNU ld... " >&6; } 4652else 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4654$as_echo_n "checking for non-GNU ld... " >&6; } 4655fi 4656if ${lt_cv_path_LD+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 if test -z "$LD"; then 4660 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4661 for ac_dir in $PATH; do 4662 IFS=$lt_save_ifs 4663 test -z "$ac_dir" && ac_dir=. 4664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4665 lt_cv_path_LD=$ac_dir/$ac_prog 4666 # Check to see if the program is GNU ld. I'd rather use --version, 4667 # but apparently some variants of GNU ld only accept -v. 4668 # Break only if it was the GNU/non-GNU ld that we prefer. 4669 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4670 *GNU* | *'with BFD'*) 4671 test no != "$with_gnu_ld" && break 4672 ;; 4673 *) 4674 test yes != "$with_gnu_ld" && break 4675 ;; 4676 esac 4677 fi 4678 done 4679 IFS=$lt_save_ifs 4680else 4681 lt_cv_path_LD=$LD # Let the user override the test with a path. 4682fi 4683fi 4684 4685LD=$lt_cv_path_LD 4686if test -n "$LD"; then 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4688$as_echo "$LD" >&6; } 4689else 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4691$as_echo "no" >&6; } 4692fi 4693test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4695$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4696if ${lt_cv_prog_gnu_ld+:} false; then : 4697 $as_echo_n "(cached) " >&6 4698else 4699 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4700case `$LD -v 2>&1 </dev/null` in 4701*GNU* | *'with BFD'*) 4702 lt_cv_prog_gnu_ld=yes 4703 ;; 4704*) 4705 lt_cv_prog_gnu_ld=no 4706 ;; 4707esac 4708fi 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4710$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4711with_gnu_ld=$lt_cv_prog_gnu_ld 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4722$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4723if ${lt_cv_path_NM+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725else 4726 if test -n "$NM"; then 4727 # Let the user override the test. 4728 lt_cv_path_NM=$NM 4729else 4730 lt_nm_to_check=${ac_tool_prefix}nm 4731 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4732 lt_nm_to_check="$lt_nm_to_check nm" 4733 fi 4734 for lt_tmp_nm in $lt_nm_to_check; do 4735 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4736 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4737 IFS=$lt_save_ifs 4738 test -z "$ac_dir" && ac_dir=. 4739 tmp_nm=$ac_dir/$lt_tmp_nm 4740 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4741 # Check to see if the nm accepts a BSD-compat flag. 4742 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4743 # nm: unknown option "B" ignored 4744 # Tru64's nm complains that /dev/null is an invalid object file 4745 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4746 case $build_os in 4747 mingw*) lt_bad_file=conftest.nm/nofile ;; 4748 *) lt_bad_file=/dev/null ;; 4749 esac 4750 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4751 *$lt_bad_file* | *'Invalid file or object type'*) 4752 lt_cv_path_NM="$tmp_nm -B" 4753 break 2 4754 ;; 4755 *) 4756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4757 */dev/null*) 4758 lt_cv_path_NM="$tmp_nm -p" 4759 break 2 4760 ;; 4761 *) 4762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4763 continue # so that we can try to find one that supports BSD flags 4764 ;; 4765 esac 4766 ;; 4767 esac 4768 fi 4769 done 4770 IFS=$lt_save_ifs 4771 done 4772 : ${lt_cv_path_NM=no} 4773fi 4774fi 4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4776$as_echo "$lt_cv_path_NM" >&6; } 4777if test no != "$lt_cv_path_NM"; then 4778 NM=$lt_cv_path_NM 4779else 4780 # Didn't find any BSD compatible name lister, look for dumpbin. 4781 if test -n "$DUMPBIN"; then : 4782 # Let the user override the test. 4783 else 4784 if test -n "$ac_tool_prefix"; then 4785 for ac_prog in dumpbin "link -dump" 4786 do 4787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4788set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4790$as_echo_n "checking for $ac_word... " >&6; } 4791if ${ac_cv_prog_DUMPBIN+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 if test -n "$DUMPBIN"; then 4795 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4796else 4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH 4799do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4804 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4806 break 2 4807 fi 4808done 4809 done 4810IFS=$as_save_IFS 4811 4812fi 4813fi 4814DUMPBIN=$ac_cv_prog_DUMPBIN 4815if test -n "$DUMPBIN"; then 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4817$as_echo "$DUMPBIN" >&6; } 4818else 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4820$as_echo "no" >&6; } 4821fi 4822 4823 4824 test -n "$DUMPBIN" && break 4825 done 4826fi 4827if test -z "$DUMPBIN"; then 4828 ac_ct_DUMPBIN=$DUMPBIN 4829 for ac_prog in dumpbin "link -dump" 4830do 4831 # Extract the first word of "$ac_prog", so it can be a program name with args. 4832set dummy $ac_prog; ac_word=$2 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4834$as_echo_n "checking for $ac_word... " >&6; } 4835if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4836 $as_echo_n "(cached) " >&6 4837else 4838 if test -n "$ac_ct_DUMPBIN"; then 4839 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4840else 4841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4842for as_dir in $PATH 4843do 4844 IFS=$as_save_IFS 4845 test -z "$as_dir" && as_dir=. 4846 for ac_exec_ext in '' $ac_executable_extensions; do 4847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4848 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4850 break 2 4851 fi 4852done 4853 done 4854IFS=$as_save_IFS 4855 4856fi 4857fi 4858ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4859if test -n "$ac_ct_DUMPBIN"; then 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4861$as_echo "$ac_ct_DUMPBIN" >&6; } 4862else 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4864$as_echo "no" >&6; } 4865fi 4866 4867 4868 test -n "$ac_ct_DUMPBIN" && break 4869done 4870 4871 if test "x$ac_ct_DUMPBIN" = x; then 4872 DUMPBIN=":" 4873 else 4874 case $cross_compiling:$ac_tool_warned in 4875yes:) 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4877$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4878ac_tool_warned=yes ;; 4879esac 4880 DUMPBIN=$ac_ct_DUMPBIN 4881 fi 4882fi 4883 4884 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4885 *COFF*) 4886 DUMPBIN="$DUMPBIN -symbols -headers" 4887 ;; 4888 *) 4889 DUMPBIN=: 4890 ;; 4891 esac 4892 fi 4893 4894 if test : != "$DUMPBIN"; then 4895 NM=$DUMPBIN 4896 fi 4897fi 4898test -z "$NM" && NM=nm 4899 4900 4901 4902 4903 4904 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4906$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4907if ${lt_cv_nm_interface+:} false; then : 4908 $as_echo_n "(cached) " >&6 4909else 4910 lt_cv_nm_interface="BSD nm" 4911 echo "int some_variable = 0;" > conftest.$ac_ext 4912 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4913 (eval "$ac_compile" 2>conftest.err) 4914 cat conftest.err >&5 4915 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4916 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4917 cat conftest.err >&5 4918 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4919 cat conftest.out >&5 4920 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4921 lt_cv_nm_interface="MS dumpbin" 4922 fi 4923 rm -f conftest* 4924fi 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4926$as_echo "$lt_cv_nm_interface" >&6; } 4927 4928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4929$as_echo_n "checking whether ln -s works... " >&6; } 4930LN_S=$as_ln_s 4931if test "$LN_S" = "ln -s"; then 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4933$as_echo "yes" >&6; } 4934else 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4936$as_echo "no, using $LN_S" >&6; } 4937fi 4938 4939# find the maximum length of command line arguments 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4941$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4942if ${lt_cv_sys_max_cmd_len+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 i=0 4946 teststring=ABCD 4947 4948 case $build_os in 4949 msdosdjgpp*) 4950 # On DJGPP, this test can blow up pretty badly due to problems in libc 4951 # (any single argument exceeding 2000 bytes causes a buffer overrun 4952 # during glob expansion). Even if it were fixed, the result of this 4953 # check would be larger than it should be. 4954 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4955 ;; 4956 4957 gnu*) 4958 # Under GNU Hurd, this test is not required because there is 4959 # no limit to the length of command line arguments. 4960 # Libtool will interpret -1 as no limit whatsoever 4961 lt_cv_sys_max_cmd_len=-1; 4962 ;; 4963 4964 cygwin* | mingw* | cegcc*) 4965 # On Win9x/ME, this test blows up -- it succeeds, but takes 4966 # about 5 minutes as the teststring grows exponentially. 4967 # Worse, since 9x/ME are not pre-emptively multitasking, 4968 # you end up with a "frozen" computer, even though with patience 4969 # the test eventually succeeds (with a max line length of 256k). 4970 # Instead, let's just punt: use the minimum linelength reported by 4971 # all of the supported platforms: 8192 (on NT/2K/XP). 4972 lt_cv_sys_max_cmd_len=8192; 4973 ;; 4974 4975 mint*) 4976 # On MiNT this can take a long time and run out of memory. 4977 lt_cv_sys_max_cmd_len=8192; 4978 ;; 4979 4980 amigaos*) 4981 # On AmigaOS with pdksh, this test takes hours, literally. 4982 # So we just punt and use a minimum line length of 8192. 4983 lt_cv_sys_max_cmd_len=8192; 4984 ;; 4985 4986 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4987 # This has been around since 386BSD, at least. Likely further. 4988 if test -x /sbin/sysctl; then 4989 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4990 elif test -x /usr/sbin/sysctl; then 4991 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4992 else 4993 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4994 fi 4995 # And add a safety zone 4996 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4997 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4998 ;; 4999 5000 interix*) 5001 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5002 lt_cv_sys_max_cmd_len=196608 5003 ;; 5004 5005 os2*) 5006 # The test takes a long time on OS/2. 5007 lt_cv_sys_max_cmd_len=8192 5008 ;; 5009 5010 osf*) 5011 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5012 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5013 # nice to cause kernel panics so lets avoid the loop below. 5014 # First set a reasonable default. 5015 lt_cv_sys_max_cmd_len=16384 5016 # 5017 if test -x /sbin/sysconfig; then 5018 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5019 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5020 esac 5021 fi 5022 ;; 5023 sco3.2v5*) 5024 lt_cv_sys_max_cmd_len=102400 5025 ;; 5026 sysv5* | sco5v6* | sysv4.2uw2*) 5027 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5028 if test -n "$kargmax"; then 5029 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5030 else 5031 lt_cv_sys_max_cmd_len=32768 5032 fi 5033 ;; 5034 *) 5035 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5036 if test -n "$lt_cv_sys_max_cmd_len" && \ 5037 test undefined != "$lt_cv_sys_max_cmd_len"; then 5038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5039 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5040 else 5041 # Make teststring a little bigger before we do anything with it. 5042 # a 1K string should be a reasonable start. 5043 for i in 1 2 3 4 5 6 7 8; do 5044 teststring=$teststring$teststring 5045 done 5046 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5047 # If test is not a shell built-in, we'll probably end up computing a 5048 # maximum length that is only half of the actual maximum length, but 5049 # we can't tell. 5050 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5051 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5052 test 17 != "$i" # 1/2 MB should be enough 5053 do 5054 i=`expr $i + 1` 5055 teststring=$teststring$teststring 5056 done 5057 # Only check the string length outside the loop. 5058 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5059 teststring= 5060 # Add a significant safety factor because C++ compilers can tack on 5061 # massive amounts of additional arguments before passing them to the 5062 # linker. It appears as though 1/2 is a usable value. 5063 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5064 fi 5065 ;; 5066 esac 5067 5068fi 5069 5070if test -n "$lt_cv_sys_max_cmd_len"; then 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5072$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5073else 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5075$as_echo "none" >&6; } 5076fi 5077max_cmd_len=$lt_cv_sys_max_cmd_len 5078 5079 5080 5081 5082 5083 5084: ${CP="cp -f"} 5085: ${MV="mv -f"} 5086: ${RM="rm -f"} 5087 5088if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5089 lt_unset=unset 5090else 5091 lt_unset=false 5092fi 5093 5094 5095 5096 5097 5098# test EBCDIC or ASCII 5099case `echo X|tr X '\101'` in 5100 A) # ASCII based system 5101 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5102 lt_SP2NL='tr \040 \012' 5103 lt_NL2SP='tr \015\012 \040\040' 5104 ;; 5105 *) # EBCDIC based system 5106 lt_SP2NL='tr \100 \n' 5107 lt_NL2SP='tr \r\n \100\100' 5108 ;; 5109esac 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5120$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5121if ${lt_cv_to_host_file_cmd+:} false; then : 5122 $as_echo_n "(cached) " >&6 5123else 5124 case $host in 5125 *-*-mingw* ) 5126 case $build in 5127 *-*-mingw* ) # actually msys 5128 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5129 ;; 5130 *-*-cygwin* ) 5131 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5132 ;; 5133 * ) # otherwise, assume *nix 5134 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5135 ;; 5136 esac 5137 ;; 5138 *-*-cygwin* ) 5139 case $build in 5140 *-*-mingw* ) # actually msys 5141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5142 ;; 5143 *-*-cygwin* ) 5144 lt_cv_to_host_file_cmd=func_convert_file_noop 5145 ;; 5146 * ) # otherwise, assume *nix 5147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5148 ;; 5149 esac 5150 ;; 5151 * ) # unhandled hosts (and "normal" native builds) 5152 lt_cv_to_host_file_cmd=func_convert_file_noop 5153 ;; 5154esac 5155 5156fi 5157 5158to_host_file_cmd=$lt_cv_to_host_file_cmd 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5160$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5161 5162 5163 5164 5165 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5167$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5168if ${lt_cv_to_tool_file_cmd+:} false; then : 5169 $as_echo_n "(cached) " >&6 5170else 5171 #assume ordinary cross tools, or native build. 5172lt_cv_to_tool_file_cmd=func_convert_file_noop 5173case $host in 5174 *-*-mingw* ) 5175 case $build in 5176 *-*-mingw* ) # actually msys 5177 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5178 ;; 5179 esac 5180 ;; 5181esac 5182 5183fi 5184 5185to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5187$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5188 5189 5190 5191 5192 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5194$as_echo_n "checking for $LD option to reload object files... " >&6; } 5195if ${lt_cv_ld_reload_flag+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 lt_cv_ld_reload_flag='-r' 5199fi 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5201$as_echo "$lt_cv_ld_reload_flag" >&6; } 5202reload_flag=$lt_cv_ld_reload_flag 5203case $reload_flag in 5204"" | " "*) ;; 5205*) reload_flag=" $reload_flag" ;; 5206esac 5207reload_cmds='$LD$reload_flag -o $output$reload_objs' 5208case $host_os in 5209 cygwin* | mingw* | pw32* | cegcc*) 5210 if test yes != "$GCC"; then 5211 reload_cmds=false 5212 fi 5213 ;; 5214 darwin*) 5215 if test yes = "$GCC"; then 5216 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5217 else 5218 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5219 fi 5220 ;; 5221esac 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231if test -n "$ac_tool_prefix"; then 5232 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5233set dummy ${ac_tool_prefix}objdump; ac_word=$2 5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5235$as_echo_n "checking for $ac_word... " >&6; } 5236if ${ac_cv_prog_OBJDUMP+:} false; then : 5237 $as_echo_n "(cached) " >&6 5238else 5239 if test -n "$OBJDUMP"; then 5240 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5241else 5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5243for as_dir in $PATH 5244do 5245 IFS=$as_save_IFS 5246 test -z "$as_dir" && as_dir=. 5247 for ac_exec_ext in '' $ac_executable_extensions; do 5248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5249 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5251 break 2 5252 fi 5253done 5254 done 5255IFS=$as_save_IFS 5256 5257fi 5258fi 5259OBJDUMP=$ac_cv_prog_OBJDUMP 5260if test -n "$OBJDUMP"; then 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5262$as_echo "$OBJDUMP" >&6; } 5263else 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5265$as_echo "no" >&6; } 5266fi 5267 5268 5269fi 5270if test -z "$ac_cv_prog_OBJDUMP"; then 5271 ac_ct_OBJDUMP=$OBJDUMP 5272 # Extract the first word of "objdump", so it can be a program name with args. 5273set dummy objdump; ac_word=$2 5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5275$as_echo_n "checking for $ac_word... " >&6; } 5276if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278else 5279 if test -n "$ac_ct_OBJDUMP"; then 5280 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5281else 5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5283for as_dir in $PATH 5284do 5285 IFS=$as_save_IFS 5286 test -z "$as_dir" && as_dir=. 5287 for ac_exec_ext in '' $ac_executable_extensions; do 5288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5289 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5291 break 2 5292 fi 5293done 5294 done 5295IFS=$as_save_IFS 5296 5297fi 5298fi 5299ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5300if test -n "$ac_ct_OBJDUMP"; then 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5302$as_echo "$ac_ct_OBJDUMP" >&6; } 5303else 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5305$as_echo "no" >&6; } 5306fi 5307 5308 if test "x$ac_ct_OBJDUMP" = x; then 5309 OBJDUMP="false" 5310 else 5311 case $cross_compiling:$ac_tool_warned in 5312yes:) 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5315ac_tool_warned=yes ;; 5316esac 5317 OBJDUMP=$ac_ct_OBJDUMP 5318 fi 5319else 5320 OBJDUMP="$ac_cv_prog_OBJDUMP" 5321fi 5322 5323test -z "$OBJDUMP" && OBJDUMP=objdump 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5334$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5335if ${lt_cv_deplibs_check_method+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 lt_cv_file_magic_cmd='$MAGIC_CMD' 5339lt_cv_file_magic_test_file= 5340lt_cv_deplibs_check_method='unknown' 5341# Need to set the preceding variable on all platforms that support 5342# interlibrary dependencies. 5343# 'none' -- dependencies not supported. 5344# 'unknown' -- same as none, but documents that we really don't know. 5345# 'pass_all' -- all dependencies passed with no checks. 5346# 'test_compile' -- check by making test program. 5347# 'file_magic [[regex]]' -- check by looking for files in library path 5348# that responds to the $file_magic_cmd with a given extended regex. 5349# If you have 'file' or equivalent on your system and you're not sure 5350# whether 'pass_all' will *always* work, you probably want this one. 5351 5352case $host_os in 5353aix[4-9]*) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356 5357beos*) 5358 lt_cv_deplibs_check_method=pass_all 5359 ;; 5360 5361bsdi[45]*) 5362 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5363 lt_cv_file_magic_cmd='/usr/bin/file -L' 5364 lt_cv_file_magic_test_file=/shlib/libc.so 5365 ;; 5366 5367cygwin*) 5368 # func_win32_libid is a shell function defined in ltmain.sh 5369 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5370 lt_cv_file_magic_cmd='func_win32_libid' 5371 ;; 5372 5373mingw* | pw32*) 5374 # Base MSYS/MinGW do not provide the 'file' command needed by 5375 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5376 # unless we find 'file', for example because we are cross-compiling. 5377 if ( file / ) >/dev/null 2>&1; then 5378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5379 lt_cv_file_magic_cmd='func_win32_libid' 5380 else 5381 # Keep this pattern in sync with the one in func_win32_libid. 5382 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5383 lt_cv_file_magic_cmd='$OBJDUMP -f' 5384 fi 5385 ;; 5386 5387cegcc*) 5388 # use the weaker test based on 'objdump'. See mingw*. 5389 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5390 lt_cv_file_magic_cmd='$OBJDUMP -f' 5391 ;; 5392 5393darwin* | rhapsody*) 5394 lt_cv_deplibs_check_method=pass_all 5395 ;; 5396 5397freebsd* | dragonfly*) 5398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5399 case $host_cpu in 5400 i*86 ) 5401 # Not sure whether the presence of OpenBSD here was a mistake. 5402 # Let's accept both of them until this is cleared up. 5403 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5404 lt_cv_file_magic_cmd=/usr/bin/file 5405 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5406 ;; 5407 esac 5408 else 5409 lt_cv_deplibs_check_method=pass_all 5410 fi 5411 ;; 5412 5413haiku*) 5414 lt_cv_deplibs_check_method=pass_all 5415 ;; 5416 5417hpux10.20* | hpux11*) 5418 lt_cv_file_magic_cmd=/usr/bin/file 5419 case $host_cpu in 5420 ia64*) 5421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5423 ;; 5424 hppa*64*) 5425 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 5426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5427 ;; 5428 *) 5429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5430 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5431 ;; 5432 esac 5433 ;; 5434 5435interix[3-9]*) 5436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5438 ;; 5439 5440irix5* | irix6* | nonstopux*) 5441 case $LD in 5442 *-32|*"-32 ") libmagic=32-bit;; 5443 *-n32|*"-n32 ") libmagic=N32;; 5444 *-64|*"-64 ") libmagic=64-bit;; 5445 *) libmagic=never-match;; 5446 esac 5447 lt_cv_deplibs_check_method=pass_all 5448 ;; 5449 5450# This must be glibc/ELF. 5451linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 5455netbsd*) 5456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5458 else 5459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5460 fi 5461 ;; 5462 5463newos6*) 5464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5465 lt_cv_file_magic_cmd=/usr/bin/file 5466 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5467 ;; 5468 5469*nto* | *qnx*) 5470 lt_cv_deplibs_check_method=pass_all 5471 ;; 5472 5473openbsd* | bitrig*) 5474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5476 else 5477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5478 fi 5479 ;; 5480 5481osf3* | osf4* | osf5*) 5482 lt_cv_deplibs_check_method=pass_all 5483 ;; 5484 5485rdos*) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488 5489solaris*) 5490 lt_cv_deplibs_check_method=pass_all 5491 ;; 5492 5493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5494 lt_cv_deplibs_check_method=pass_all 5495 ;; 5496 5497sysv4 | sysv4.3*) 5498 case $host_vendor in 5499 motorola) 5500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 5501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5502 ;; 5503 ncr) 5504 lt_cv_deplibs_check_method=pass_all 5505 ;; 5506 sequent) 5507 lt_cv_file_magic_cmd='/bin/file' 5508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5509 ;; 5510 sni) 5511 lt_cv_file_magic_cmd='/bin/file' 5512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5513 lt_cv_file_magic_test_file=/lib/libc.so 5514 ;; 5515 siemens) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518 pc) 5519 lt_cv_deplibs_check_method=pass_all 5520 ;; 5521 esac 5522 ;; 5523 5524tpf*) 5525 lt_cv_deplibs_check_method=pass_all 5526 ;; 5527os2*) 5528 lt_cv_deplibs_check_method=pass_all 5529 ;; 5530esac 5531 5532fi 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5534$as_echo "$lt_cv_deplibs_check_method" >&6; } 5535 5536file_magic_glob= 5537want_nocaseglob=no 5538if test "$build" = "$host"; then 5539 case $host_os in 5540 mingw* | pw32*) 5541 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5542 want_nocaseglob=yes 5543 else 5544 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5545 fi 5546 ;; 5547 esac 5548fi 5549 5550file_magic_cmd=$lt_cv_file_magic_cmd 5551deplibs_check_method=$lt_cv_deplibs_check_method 5552test -z "$deplibs_check_method" && deplibs_check_method=unknown 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575if test -n "$ac_tool_prefix"; then 5576 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5577set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5579$as_echo_n "checking for $ac_word... " >&6; } 5580if ${ac_cv_prog_DLLTOOL+:} false; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 if test -n "$DLLTOOL"; then 5584 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5585else 5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5587for as_dir in $PATH 5588do 5589 IFS=$as_save_IFS 5590 test -z "$as_dir" && as_dir=. 5591 for ac_exec_ext in '' $ac_executable_extensions; do 5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5593 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5595 break 2 5596 fi 5597done 5598 done 5599IFS=$as_save_IFS 5600 5601fi 5602fi 5603DLLTOOL=$ac_cv_prog_DLLTOOL 5604if test -n "$DLLTOOL"; then 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5606$as_echo "$DLLTOOL" >&6; } 5607else 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5609$as_echo "no" >&6; } 5610fi 5611 5612 5613fi 5614if test -z "$ac_cv_prog_DLLTOOL"; then 5615 ac_ct_DLLTOOL=$DLLTOOL 5616 # Extract the first word of "dlltool", so it can be a program name with args. 5617set dummy dlltool; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$ac_ct_DLLTOOL"; then 5624 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5625else 5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5627for as_dir in $PATH 5628do 5629 IFS=$as_save_IFS 5630 test -z "$as_dir" && as_dir=. 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5633 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi 5642fi 5643ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5644if test -n "$ac_ct_DLLTOOL"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5646$as_echo "$ac_ct_DLLTOOL" >&6; } 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650fi 5651 5652 if test "x$ac_ct_DLLTOOL" = x; then 5653 DLLTOOL="false" 5654 else 5655 case $cross_compiling:$ac_tool_warned in 5656yes:) 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5659ac_tool_warned=yes ;; 5660esac 5661 DLLTOOL=$ac_ct_DLLTOOL 5662 fi 5663else 5664 DLLTOOL="$ac_cv_prog_DLLTOOL" 5665fi 5666 5667test -z "$DLLTOOL" && DLLTOOL=dlltool 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5679$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5680if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 lt_cv_sharedlib_from_linklib_cmd='unknown' 5684 5685case $host_os in 5686cygwin* | mingw* | pw32* | cegcc*) 5687 # two different shell functions defined in ltmain.sh; 5688 # decide which one to use based on capabilities of $DLLTOOL 5689 case `$DLLTOOL --help 2>&1` in 5690 *--identify-strict*) 5691 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5692 ;; 5693 *) 5694 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5695 ;; 5696 esac 5697 ;; 5698*) 5699 # fallback: assume linklib IS sharedlib 5700 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5701 ;; 5702esac 5703 5704fi 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5706$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5707sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5708test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5709 5710 5711 5712 5713 5714 5715 5716 5717if test -n "$ac_tool_prefix"; then 5718 for ac_prog in ar 5719 do 5720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5721set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5723$as_echo_n "checking for $ac_word... " >&6; } 5724if ${ac_cv_prog_AR+:} false; then : 5725 $as_echo_n "(cached) " >&6 5726else 5727 if test -n "$AR"; then 5728 ac_cv_prog_AR="$AR" # Let the user override the test. 5729else 5730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5731for as_dir in $PATH 5732do 5733 IFS=$as_save_IFS 5734 test -z "$as_dir" && as_dir=. 5735 for ac_exec_ext in '' $ac_executable_extensions; do 5736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5737 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5739 break 2 5740 fi 5741done 5742 done 5743IFS=$as_save_IFS 5744 5745fi 5746fi 5747AR=$ac_cv_prog_AR 5748if test -n "$AR"; then 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5750$as_echo "$AR" >&6; } 5751else 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5753$as_echo "no" >&6; } 5754fi 5755 5756 5757 test -n "$AR" && break 5758 done 5759fi 5760if test -z "$AR"; then 5761 ac_ct_AR=$AR 5762 for ac_prog in ar 5763do 5764 # Extract the first word of "$ac_prog", so it can be a program name with args. 5765set dummy $ac_prog; ac_word=$2 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5767$as_echo_n "checking for $ac_word... " >&6; } 5768if ${ac_cv_prog_ac_ct_AR+:} false; then : 5769 $as_echo_n "(cached) " >&6 5770else 5771 if test -n "$ac_ct_AR"; then 5772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5773else 5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5775for as_dir in $PATH 5776do 5777 IFS=$as_save_IFS 5778 test -z "$as_dir" && as_dir=. 5779 for ac_exec_ext in '' $ac_executable_extensions; do 5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5781 ac_cv_prog_ac_ct_AR="$ac_prog" 5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5783 break 2 5784 fi 5785done 5786 done 5787IFS=$as_save_IFS 5788 5789fi 5790fi 5791ac_ct_AR=$ac_cv_prog_ac_ct_AR 5792if test -n "$ac_ct_AR"; then 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5794$as_echo "$ac_ct_AR" >&6; } 5795else 5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5797$as_echo "no" >&6; } 5798fi 5799 5800 5801 test -n "$ac_ct_AR" && break 5802done 5803 5804 if test "x$ac_ct_AR" = x; then 5805 AR="false" 5806 else 5807 case $cross_compiling:$ac_tool_warned in 5808yes:) 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5810$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5811ac_tool_warned=yes ;; 5812esac 5813 AR=$ac_ct_AR 5814 fi 5815fi 5816 5817: ${AR=ar} 5818: ${AR_FLAGS=cru} 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5831$as_echo_n "checking for archiver @FILE support... " >&6; } 5832if ${lt_cv_ar_at_file+:} false; then : 5833 $as_echo_n "(cached) " >&6 5834else 5835 lt_cv_ar_at_file=no 5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5837/* end confdefs.h. */ 5838 5839int 5840main () 5841{ 5842 5843 ; 5844 return 0; 5845} 5846_ACEOF 5847if ac_fn_c_try_compile "$LINENO"; then : 5848 echo conftest.$ac_objext > conftest.lst 5849 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5851 (eval $lt_ar_try) 2>&5 5852 ac_status=$? 5853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5854 test $ac_status = 0; } 5855 if test 0 -eq "$ac_status"; then 5856 # Ensure the archiver fails upon bogus file names. 5857 rm -f conftest.$ac_objext libconftest.a 5858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5859 (eval $lt_ar_try) 2>&5 5860 ac_status=$? 5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5862 test $ac_status = 0; } 5863 if test 0 -ne "$ac_status"; then 5864 lt_cv_ar_at_file=@ 5865 fi 5866 fi 5867 rm -f conftest.* libconftest.a 5868 5869fi 5870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5871 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5874$as_echo "$lt_cv_ar_at_file" >&6; } 5875 5876if test no = "$lt_cv_ar_at_file"; then 5877 archiver_list_spec= 5878else 5879 archiver_list_spec=$lt_cv_ar_at_file 5880fi 5881 5882 5883 5884 5885 5886 5887 5888if test -n "$ac_tool_prefix"; then 5889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5890set dummy ${ac_tool_prefix}strip; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if ${ac_cv_prog_STRIP+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$STRIP"; then 5897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916STRIP=$ac_cv_prog_STRIP 5917if test -n "$STRIP"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5919$as_echo "$STRIP" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 5926fi 5927if test -z "$ac_cv_prog_STRIP"; then 5928 ac_ct_STRIP=$STRIP 5929 # Extract the first word of "strip", so it can be a program name with args. 5930set dummy strip; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$ac_ct_STRIP"; then 5937 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_prog_ac_ct_STRIP="strip" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5957if test -n "$ac_ct_STRIP"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5959$as_echo "$ac_ct_STRIP" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 if test "x$ac_ct_STRIP" = x; then 5966 STRIP=":" 5967 else 5968 case $cross_compiling:$ac_tool_warned in 5969yes:) 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5972ac_tool_warned=yes ;; 5973esac 5974 STRIP=$ac_ct_STRIP 5975 fi 5976else 5977 STRIP="$ac_cv_prog_STRIP" 5978fi 5979 5980test -z "$STRIP" && STRIP=: 5981 5982 5983 5984 5985 5986 5987if test -n "$ac_tool_prefix"; then 5988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5989set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5991$as_echo_n "checking for $ac_word... " >&6; } 5992if ${ac_cv_prog_RANLIB+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 if test -n "$RANLIB"; then 5996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5997else 5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5999for as_dir in $PATH 6000do 6001 IFS=$as_save_IFS 6002 test -z "$as_dir" && as_dir=. 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6007 break 2 6008 fi 6009done 6010 done 6011IFS=$as_save_IFS 6012 6013fi 6014fi 6015RANLIB=$ac_cv_prog_RANLIB 6016if test -n "$RANLIB"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6018$as_echo "$RANLIB" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6021$as_echo "no" >&6; } 6022fi 6023 6024 6025fi 6026if test -z "$ac_cv_prog_RANLIB"; then 6027 ac_ct_RANLIB=$RANLIB 6028 # Extract the first word of "ranlib", so it can be a program name with args. 6029set dummy ranlib; ac_word=$2 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6031$as_echo_n "checking for $ac_word... " >&6; } 6032if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 if test -n "$ac_ct_RANLIB"; then 6036 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6037else 6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6039for as_dir in $PATH 6040do 6041 IFS=$as_save_IFS 6042 test -z "$as_dir" && as_dir=. 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_ac_ct_RANLIB="ranlib" 6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi 6054fi 6055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6056if test -n "$ac_ct_RANLIB"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6058$as_echo "$ac_ct_RANLIB" >&6; } 6059else 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6061$as_echo "no" >&6; } 6062fi 6063 6064 if test "x$ac_ct_RANLIB" = x; then 6065 RANLIB=":" 6066 else 6067 case $cross_compiling:$ac_tool_warned in 6068yes:) 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6071ac_tool_warned=yes ;; 6072esac 6073 RANLIB=$ac_ct_RANLIB 6074 fi 6075else 6076 RANLIB="$ac_cv_prog_RANLIB" 6077fi 6078 6079test -z "$RANLIB" && RANLIB=: 6080 6081 6082 6083 6084 6085 6086# Determine commands to create old-style static archives. 6087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6088old_postinstall_cmds='chmod 644 $oldlib' 6089old_postuninstall_cmds= 6090 6091if test -n "$RANLIB"; then 6092 case $host_os in 6093 bitrig* | openbsd*) 6094 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6095 ;; 6096 *) 6097 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6098 ;; 6099 esac 6100 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6101fi 6102 6103case $host_os in 6104 darwin*) 6105 lock_old_archive_extraction=yes ;; 6106 *) 6107 lock_old_archive_extraction=no ;; 6108esac 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148# If no C compiler was specified, use CC. 6149LTCC=${LTCC-"$CC"} 6150 6151# If no C compiler flags were specified, use CFLAGS. 6152LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6153 6154# Allow CC to be a program name with arguments. 6155compiler=$CC 6156 6157 6158# Check for command to grab the raw symbol name followed by C symbol from nm. 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6160$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6161if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 6165# These are sane defaults that work on at least a few old systems. 6166# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6167 6168# Character class describing NM global symbol codes. 6169symcode='[BCDEGRST]' 6170 6171# Regexp to match symbols that can be accessed directly from C. 6172sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6173 6174# Define system-specific variables. 6175case $host_os in 6176aix*) 6177 symcode='[BCDT]' 6178 ;; 6179cygwin* | mingw* | pw32* | cegcc*) 6180 symcode='[ABCDGISTW]' 6181 ;; 6182hpux*) 6183 if test ia64 = "$host_cpu"; then 6184 symcode='[ABCDEGRST]' 6185 fi 6186 ;; 6187irix* | nonstopux*) 6188 symcode='[BCDEGRST]' 6189 ;; 6190osf*) 6191 symcode='[BCDEGQRST]' 6192 ;; 6193solaris*) 6194 symcode='[BDRT]' 6195 ;; 6196sco3.2v5*) 6197 symcode='[DT]' 6198 ;; 6199sysv4.2uw2*) 6200 symcode='[DT]' 6201 ;; 6202sysv5* | sco5v6* | unixware* | OpenUNIX*) 6203 symcode='[ABDT]' 6204 ;; 6205sysv4) 6206 symcode='[DFNSTU]' 6207 ;; 6208esac 6209 6210# If we're using GNU nm, then use its standard symbol codes. 6211case `$NM -V 2>&1` in 6212*GNU* | *'with BFD'*) 6213 symcode='[ABCDGIRSTW]' ;; 6214esac 6215 6216if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6217 # Gets list of data symbols to import. 6218 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6219 # Adjust the below global symbol transforms to fixup imported variables. 6220 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6221 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6222 lt_c_name_lib_hook="\ 6223 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6224 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6225else 6226 # Disable hooks by default. 6227 lt_cv_sys_global_symbol_to_import= 6228 lt_cdecl_hook= 6229 lt_c_name_hook= 6230 lt_c_name_lib_hook= 6231fi 6232 6233# Transform an extracted symbol line into a proper C declaration. 6234# Some systems (esp. on ia64) link data and code symbols differently, 6235# so use this general approach. 6236lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6237$lt_cdecl_hook\ 6238" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6239" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6240 6241# Transform an extracted symbol line into symbol name and symbol address 6242lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6243$lt_c_name_hook\ 6244" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6245" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6246 6247# Transform an extracted symbol line into symbol name with lib prefix and 6248# symbol address. 6249lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6250$lt_c_name_lib_hook\ 6251" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6252" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6253" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6254 6255# Handle CRLF in mingw tool chain 6256opt_cr= 6257case $build_os in 6258mingw*) 6259 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6260 ;; 6261esac 6262 6263# Try without a prefix underscore, then with it. 6264for ac_symprfx in "" "_"; do 6265 6266 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6267 symxfrm="\\1 $ac_symprfx\\2 \\2" 6268 6269 # Write the raw and C identifiers. 6270 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6271 # Fake it for dumpbin and say T for any non-static function, 6272 # D for any global variable and I for any imported variable. 6273 # Also find C++ and __fastcall symbols from MSVC++, 6274 # which start with @ or ?. 6275 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6276" {last_section=section; section=\$ 3};"\ 6277" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6278" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6279" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6280" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6281" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6282" \$ 0!~/External *\|/{next};"\ 6283" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6284" {if(hide[section]) next};"\ 6285" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6286" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6287" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6288" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6289" ' prfx=^$ac_symprfx" 6290 else 6291 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6292 fi 6293 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6294 6295 # Check to see that the pipe works correctly. 6296 pipe_works=no 6297 6298 rm -f conftest* 6299 cat > conftest.$ac_ext <<_LT_EOF 6300#ifdef __cplusplus 6301extern "C" { 6302#endif 6303char nm_test_var; 6304void nm_test_func(void); 6305void nm_test_func(void){} 6306#ifdef __cplusplus 6307} 6308#endif 6309int main(){nm_test_var='a';nm_test_func();return(0);} 6310_LT_EOF 6311 6312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6313 (eval $ac_compile) 2>&5 6314 ac_status=$? 6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6316 test $ac_status = 0; }; then 6317 # Now try to grab the symbols. 6318 nlist=conftest.nm 6319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6320 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6321 ac_status=$? 6322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6323 test $ac_status = 0; } && test -s "$nlist"; then 6324 # Try sorting and uniquifying the output. 6325 if sort "$nlist" | uniq > "$nlist"T; then 6326 mv -f "$nlist"T "$nlist" 6327 else 6328 rm -f "$nlist"T 6329 fi 6330 6331 # Make sure that we snagged all the symbols we need. 6332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6334 cat <<_LT_EOF > conftest.$ac_ext 6335/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6336#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6337/* DATA imports from DLLs on WIN32 can't be const, because runtime 6338 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6339# define LT_DLSYM_CONST 6340#elif defined __osf__ 6341/* This system does not cope well with relocations in const data. */ 6342# define LT_DLSYM_CONST 6343#else 6344# define LT_DLSYM_CONST const 6345#endif 6346 6347#ifdef __cplusplus 6348extern "C" { 6349#endif 6350 6351_LT_EOF 6352 # Now generate the symbol file. 6353 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6354 6355 cat <<_LT_EOF >> conftest.$ac_ext 6356 6357/* The mapping between symbol names and symbols. */ 6358LT_DLSYM_CONST struct { 6359 const char *name; 6360 void *address; 6361} 6362lt__PROGRAM__LTX_preloaded_symbols[] = 6363{ 6364 { "@PROGRAM@", (void *) 0 }, 6365_LT_EOF 6366 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6367 cat <<\_LT_EOF >> conftest.$ac_ext 6368 {0, (void *) 0} 6369}; 6370 6371/* This works around a problem in FreeBSD linker */ 6372#ifdef FREEBSD_WORKAROUND 6373static const void *lt_preloaded_setup() { 6374 return lt__PROGRAM__LTX_preloaded_symbols; 6375} 6376#endif 6377 6378#ifdef __cplusplus 6379} 6380#endif 6381_LT_EOF 6382 # Now try linking the two files. 6383 mv conftest.$ac_objext conftstm.$ac_objext 6384 lt_globsym_save_LIBS=$LIBS 6385 lt_globsym_save_CFLAGS=$CFLAGS 6386 LIBS=conftstm.$ac_objext 6387 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6389 (eval $ac_link) 2>&5 6390 ac_status=$? 6391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6392 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6393 pipe_works=yes 6394 fi 6395 LIBS=$lt_globsym_save_LIBS 6396 CFLAGS=$lt_globsym_save_CFLAGS 6397 else 6398 echo "cannot find nm_test_func in $nlist" >&5 6399 fi 6400 else 6401 echo "cannot find nm_test_var in $nlist" >&5 6402 fi 6403 else 6404 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6405 fi 6406 else 6407 echo "$progname: failed program was:" >&5 6408 cat conftest.$ac_ext >&5 6409 fi 6410 rm -rf conftest* conftst* 6411 6412 # Do not use the global_symbol_pipe unless it works. 6413 if test yes = "$pipe_works"; then 6414 break 6415 else 6416 lt_cv_sys_global_symbol_pipe= 6417 fi 6418done 6419 6420fi 6421 6422if test -z "$lt_cv_sys_global_symbol_pipe"; then 6423 lt_cv_sys_global_symbol_to_cdecl= 6424fi 6425if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6427$as_echo "failed" >&6; } 6428else 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6430$as_echo "ok" >&6; } 6431fi 6432 6433# Response file support. 6434if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6435 nm_file_list_spec='@' 6436elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6437 nm_file_list_spec='@' 6438fi 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6477$as_echo_n "checking for sysroot... " >&6; } 6478 6479# Check whether --with-sysroot was given. 6480if test "${with_sysroot+set}" = set; then : 6481 withval=$with_sysroot; 6482else 6483 with_sysroot=no 6484fi 6485 6486 6487lt_sysroot= 6488case $with_sysroot in #( 6489 yes) 6490 if test yes = "$GCC"; then 6491 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6492 fi 6493 ;; #( 6494 /*) 6495 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6496 ;; #( 6497 no|'') 6498 ;; #( 6499 *) 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6501$as_echo "$with_sysroot" >&6; } 6502 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6503 ;; 6504esac 6505 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6507$as_echo "${lt_sysroot:-no}" >&6; } 6508 6509 6510 6511 6512 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6514$as_echo_n "checking for a working dd... " >&6; } 6515if ${ac_cv_path_lt_DD+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 printf 0123456789abcdef0123456789abcdef >conftest.i 6519cat conftest.i conftest.i >conftest2.i 6520: ${lt_DD:=$DD} 6521if test -z "$lt_DD"; then 6522 ac_path_lt_DD_found=false 6523 # Loop through the user's path and test for each of PROGNAME-LIST 6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6525for as_dir in $PATH 6526do 6527 IFS=$as_save_IFS 6528 test -z "$as_dir" && as_dir=. 6529 for ac_prog in dd; do 6530 for ac_exec_ext in '' $ac_executable_extensions; do 6531 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6532 as_fn_executable_p "$ac_path_lt_DD" || continue 6533if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6534 cmp -s conftest.i conftest.out \ 6535 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6536fi 6537 $ac_path_lt_DD_found && break 3 6538 done 6539 done 6540 done 6541IFS=$as_save_IFS 6542 if test -z "$ac_cv_path_lt_DD"; then 6543 : 6544 fi 6545else 6546 ac_cv_path_lt_DD=$lt_DD 6547fi 6548 6549rm -f conftest.i conftest2.i conftest.out 6550fi 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6552$as_echo "$ac_cv_path_lt_DD" >&6; } 6553 6554 6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6556$as_echo_n "checking how to truncate binary pipes... " >&6; } 6557if ${lt_cv_truncate_bin+:} false; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 printf 0123456789abcdef0123456789abcdef >conftest.i 6561cat conftest.i conftest.i >conftest2.i 6562lt_cv_truncate_bin= 6563if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6564 cmp -s conftest.i conftest.out \ 6565 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6566fi 6567rm -f conftest.i conftest2.i conftest.out 6568test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6569fi 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6571$as_echo "$lt_cv_truncate_bin" >&6; } 6572 6573 6574 6575 6576 6577 6578 6579# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6580func_cc_basename () 6581{ 6582 for cc_temp in $*""; do 6583 case $cc_temp in 6584 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6585 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6586 \-*) ;; 6587 *) break;; 6588 esac 6589 done 6590 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6591} 6592 6593# Check whether --enable-libtool-lock was given. 6594if test "${enable_libtool_lock+set}" = set; then : 6595 enableval=$enable_libtool_lock; 6596fi 6597 6598test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6599 6600# Some flags need to be propagated to the compiler or linker for good 6601# libtool support. 6602case $host in 6603ia64-*-hpux*) 6604 # Find out what ABI is being produced by ac_compile, and set mode 6605 # options accordingly. 6606 echo 'int i;' > conftest.$ac_ext 6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6608 (eval $ac_compile) 2>&5 6609 ac_status=$? 6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6611 test $ac_status = 0; }; then 6612 case `/usr/bin/file conftest.$ac_objext` in 6613 *ELF-32*) 6614 HPUX_IA64_MODE=32 6615 ;; 6616 *ELF-64*) 6617 HPUX_IA64_MODE=64 6618 ;; 6619 esac 6620 fi 6621 rm -rf conftest* 6622 ;; 6623*-*-irix6*) 6624 # Find out what ABI is being produced by ac_compile, and set linker 6625 # options accordingly. 6626 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6628 (eval $ac_compile) 2>&5 6629 ac_status=$? 6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6631 test $ac_status = 0; }; then 6632 if test yes = "$lt_cv_prog_gnu_ld"; then 6633 case `/usr/bin/file conftest.$ac_objext` in 6634 *32-bit*) 6635 LD="${LD-ld} -melf32bsmip" 6636 ;; 6637 *N32*) 6638 LD="${LD-ld} -melf32bmipn32" 6639 ;; 6640 *64-bit*) 6641 LD="${LD-ld} -melf64bmip" 6642 ;; 6643 esac 6644 else 6645 case `/usr/bin/file conftest.$ac_objext` in 6646 *32-bit*) 6647 LD="${LD-ld} -32" 6648 ;; 6649 *N32*) 6650 LD="${LD-ld} -n32" 6651 ;; 6652 *64-bit*) 6653 LD="${LD-ld} -64" 6654 ;; 6655 esac 6656 fi 6657 fi 6658 rm -rf conftest* 6659 ;; 6660 6661mips64*-*linux*) 6662 # Find out what ABI is being produced by ac_compile, and set linker 6663 # options accordingly. 6664 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6666 (eval $ac_compile) 2>&5 6667 ac_status=$? 6668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6669 test $ac_status = 0; }; then 6670 emul=elf 6671 case `/usr/bin/file conftest.$ac_objext` in 6672 *32-bit*) 6673 emul="${emul}32" 6674 ;; 6675 *64-bit*) 6676 emul="${emul}64" 6677 ;; 6678 esac 6679 case `/usr/bin/file conftest.$ac_objext` in 6680 *MSB*) 6681 emul="${emul}btsmip" 6682 ;; 6683 *LSB*) 6684 emul="${emul}ltsmip" 6685 ;; 6686 esac 6687 case `/usr/bin/file conftest.$ac_objext` in 6688 *N32*) 6689 emul="${emul}n32" 6690 ;; 6691 esac 6692 LD="${LD-ld} -m $emul" 6693 fi 6694 rm -rf conftest* 6695 ;; 6696 6697x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6698s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6699 # Find out what ABI is being produced by ac_compile, and set linker 6700 # options accordingly. Note that the listed cases only cover the 6701 # situations where additional linker options are needed (such as when 6702 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6703 # vice versa); the common cases where no linker options are needed do 6704 # not appear in the list. 6705 echo 'int i;' > conftest.$ac_ext 6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6707 (eval $ac_compile) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; }; then 6711 case `/usr/bin/file conftest.o` in 6712 *32-bit*) 6713 case $host in 6714 x86_64-*kfreebsd*-gnu) 6715 LD="${LD-ld} -m elf_i386_fbsd" 6716 ;; 6717 x86_64-*linux*) 6718 case `/usr/bin/file conftest.o` in 6719 *x86-64*) 6720 LD="${LD-ld} -m elf32_x86_64" 6721 ;; 6722 *) 6723 LD="${LD-ld} -m elf_i386" 6724 ;; 6725 esac 6726 ;; 6727 powerpc64le-*linux*) 6728 LD="${LD-ld} -m elf32lppclinux" 6729 ;; 6730 powerpc64-*linux*) 6731 LD="${LD-ld} -m elf32ppclinux" 6732 ;; 6733 s390x-*linux*) 6734 LD="${LD-ld} -m elf_s390" 6735 ;; 6736 sparc64-*linux*) 6737 LD="${LD-ld} -m elf32_sparc" 6738 ;; 6739 esac 6740 ;; 6741 *64-bit*) 6742 case $host in 6743 x86_64-*kfreebsd*-gnu) 6744 LD="${LD-ld} -m elf_x86_64_fbsd" 6745 ;; 6746 x86_64-*linux*) 6747 LD="${LD-ld} -m elf_x86_64" 6748 ;; 6749 powerpcle-*linux*) 6750 LD="${LD-ld} -m elf64lppc" 6751 ;; 6752 powerpc-*linux*) 6753 LD="${LD-ld} -m elf64ppc" 6754 ;; 6755 s390*-*linux*|s390*-*tpf*) 6756 LD="${LD-ld} -m elf64_s390" 6757 ;; 6758 sparc*-*linux*) 6759 LD="${LD-ld} -m elf64_sparc" 6760 ;; 6761 esac 6762 ;; 6763 esac 6764 fi 6765 rm -rf conftest* 6766 ;; 6767 6768*-*-sco3.2v5*) 6769 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6770 SAVE_CFLAGS=$CFLAGS 6771 CFLAGS="$CFLAGS -belf" 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6773$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6774if ${lt_cv_cc_needs_belf+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776else 6777 ac_ext=c 6778ac_cpp='$CPP $CPPFLAGS' 6779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6781ac_compiler_gnu=$ac_cv_c_compiler_gnu 6782 6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6784/* end confdefs.h. */ 6785 6786int 6787main () 6788{ 6789 6790 ; 6791 return 0; 6792} 6793_ACEOF 6794if ac_fn_c_try_link "$LINENO"; then : 6795 lt_cv_cc_needs_belf=yes 6796else 6797 lt_cv_cc_needs_belf=no 6798fi 6799rm -f core conftest.err conftest.$ac_objext \ 6800 conftest$ac_exeext conftest.$ac_ext 6801 ac_ext=c 6802ac_cpp='$CPP $CPPFLAGS' 6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6805ac_compiler_gnu=$ac_cv_c_compiler_gnu 6806 6807fi 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6809$as_echo "$lt_cv_cc_needs_belf" >&6; } 6810 if test yes != "$lt_cv_cc_needs_belf"; then 6811 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6812 CFLAGS=$SAVE_CFLAGS 6813 fi 6814 ;; 6815*-*solaris*) 6816 # Find out what ABI is being produced by ac_compile, and set linker 6817 # options accordingly. 6818 echo 'int i;' > conftest.$ac_ext 6819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6820 (eval $ac_compile) 2>&5 6821 ac_status=$? 6822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6823 test $ac_status = 0; }; then 6824 case `/usr/bin/file conftest.o` in 6825 *64-bit*) 6826 case $lt_cv_prog_gnu_ld in 6827 yes*) 6828 case $host in 6829 i?86-*-solaris*|x86_64-*-solaris*) 6830 LD="${LD-ld} -m elf_x86_64" 6831 ;; 6832 sparc*-*-solaris*) 6833 LD="${LD-ld} -m elf64_sparc" 6834 ;; 6835 esac 6836 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6837 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6838 LD=${LD-ld}_sol2 6839 fi 6840 ;; 6841 *) 6842 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6843 LD="${LD-ld} -64" 6844 fi 6845 ;; 6846 esac 6847 ;; 6848 esac 6849 fi 6850 rm -rf conftest* 6851 ;; 6852esac 6853 6854need_locks=$enable_libtool_lock 6855 6856if test -n "$ac_tool_prefix"; then 6857 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6858set dummy ${ac_tool_prefix}mt; ac_word=$2 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6860$as_echo_n "checking for $ac_word... " >&6; } 6861if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 if test -n "$MANIFEST_TOOL"; then 6865 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6866else 6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6874 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878done 6879 done 6880IFS=$as_save_IFS 6881 6882fi 6883fi 6884MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6885if test -n "$MANIFEST_TOOL"; then 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6887$as_echo "$MANIFEST_TOOL" >&6; } 6888else 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890$as_echo "no" >&6; } 6891fi 6892 6893 6894fi 6895if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6896 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6897 # Extract the first word of "mt", so it can be a program name with args. 6898set dummy mt; ac_word=$2 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6900$as_echo_n "checking for $ac_word... " >&6; } 6901if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 if test -n "$ac_ct_MANIFEST_TOOL"; then 6905 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6914 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919 done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6925if test -n "$ac_ct_MANIFEST_TOOL"; then 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6927$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6928else 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930$as_echo "no" >&6; } 6931fi 6932 6933 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6934 MANIFEST_TOOL=":" 6935 else 6936 case $cross_compiling:$ac_tool_warned in 6937yes:) 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6943 fi 6944else 6945 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6946fi 6947 6948test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6950$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6951if ${lt_cv_path_mainfest_tool+:} false; then : 6952 $as_echo_n "(cached) " >&6 6953else 6954 lt_cv_path_mainfest_tool=no 6955 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6956 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6957 cat conftest.err >&5 6958 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6959 lt_cv_path_mainfest_tool=yes 6960 fi 6961 rm -f conftest* 6962fi 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6964$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6965if test yes != "$lt_cv_path_mainfest_tool"; then 6966 MANIFEST_TOOL=: 6967fi 6968 6969 6970 6971 6972 6973 6974 case $host_os in 6975 rhapsody* | darwin*) 6976 if test -n "$ac_tool_prefix"; then 6977 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6978set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6980$as_echo_n "checking for $ac_word... " >&6; } 6981if ${ac_cv_prog_DSYMUTIL+:} false; then : 6982 $as_echo_n "(cached) " >&6 6983else 6984 if test -n "$DSYMUTIL"; then 6985 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6986else 6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6988for as_dir in $PATH 6989do 6990 IFS=$as_save_IFS 6991 test -z "$as_dir" && as_dir=. 6992 for ac_exec_ext in '' $ac_executable_extensions; do 6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6994 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6996 break 2 6997 fi 6998done 6999 done 7000IFS=$as_save_IFS 7001 7002fi 7003fi 7004DSYMUTIL=$ac_cv_prog_DSYMUTIL 7005if test -n "$DSYMUTIL"; then 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7007$as_echo "$DSYMUTIL" >&6; } 7008else 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7010$as_echo "no" >&6; } 7011fi 7012 7013 7014fi 7015if test -z "$ac_cv_prog_DSYMUTIL"; then 7016 ac_ct_DSYMUTIL=$DSYMUTIL 7017 # Extract the first word of "dsymutil", so it can be a program name with args. 7018set dummy dsymutil; ac_word=$2 7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7020$as_echo_n "checking for $ac_word... " >&6; } 7021if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 if test -n "$ac_ct_DSYMUTIL"; then 7025 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7026else 7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7028for as_dir in $PATH 7029do 7030 IFS=$as_save_IFS 7031 test -z "$as_dir" && as_dir=. 7032 for ac_exec_ext in '' $ac_executable_extensions; do 7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7034 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7036 break 2 7037 fi 7038done 7039 done 7040IFS=$as_save_IFS 7041 7042fi 7043fi 7044ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7045if test -n "$ac_ct_DSYMUTIL"; then 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7047$as_echo "$ac_ct_DSYMUTIL" >&6; } 7048else 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7050$as_echo "no" >&6; } 7051fi 7052 7053 if test "x$ac_ct_DSYMUTIL" = x; then 7054 DSYMUTIL=":" 7055 else 7056 case $cross_compiling:$ac_tool_warned in 7057yes:) 7058{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7059$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7060ac_tool_warned=yes ;; 7061esac 7062 DSYMUTIL=$ac_ct_DSYMUTIL 7063 fi 7064else 7065 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7066fi 7067 7068 if test -n "$ac_tool_prefix"; then 7069 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7070set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7072$as_echo_n "checking for $ac_word... " >&6; } 7073if ${ac_cv_prog_NMEDIT+:} false; then : 7074 $as_echo_n "(cached) " >&6 7075else 7076 if test -n "$NMEDIT"; then 7077 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7078else 7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7080for as_dir in $PATH 7081do 7082 IFS=$as_save_IFS 7083 test -z "$as_dir" && as_dir=. 7084 for ac_exec_ext in '' $ac_executable_extensions; do 7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7086 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7088 break 2 7089 fi 7090done 7091 done 7092IFS=$as_save_IFS 7093 7094fi 7095fi 7096NMEDIT=$ac_cv_prog_NMEDIT 7097if test -n "$NMEDIT"; then 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7099$as_echo "$NMEDIT" >&6; } 7100else 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7102$as_echo "no" >&6; } 7103fi 7104 7105 7106fi 7107if test -z "$ac_cv_prog_NMEDIT"; then 7108 ac_ct_NMEDIT=$NMEDIT 7109 # Extract the first word of "nmedit", so it can be a program name with args. 7110set dummy nmedit; ac_word=$2 7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7112$as_echo_n "checking for $ac_word... " >&6; } 7113if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7114 $as_echo_n "(cached) " >&6 7115else 7116 if test -n "$ac_ct_NMEDIT"; then 7117 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7118else 7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7120for as_dir in $PATH 7121do 7122 IFS=$as_save_IFS 7123 test -z "$as_dir" && as_dir=. 7124 for ac_exec_ext in '' $ac_executable_extensions; do 7125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7126 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7128 break 2 7129 fi 7130done 7131 done 7132IFS=$as_save_IFS 7133 7134fi 7135fi 7136ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7137if test -n "$ac_ct_NMEDIT"; then 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7139$as_echo "$ac_ct_NMEDIT" >&6; } 7140else 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7142$as_echo "no" >&6; } 7143fi 7144 7145 if test "x$ac_ct_NMEDIT" = x; then 7146 NMEDIT=":" 7147 else 7148 case $cross_compiling:$ac_tool_warned in 7149yes:) 7150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7152ac_tool_warned=yes ;; 7153esac 7154 NMEDIT=$ac_ct_NMEDIT 7155 fi 7156else 7157 NMEDIT="$ac_cv_prog_NMEDIT" 7158fi 7159 7160 if test -n "$ac_tool_prefix"; then 7161 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7162set dummy ${ac_tool_prefix}lipo; ac_word=$2 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7164$as_echo_n "checking for $ac_word... " >&6; } 7165if ${ac_cv_prog_LIPO+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 if test -n "$LIPO"; then 7169 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7170else 7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7172for as_dir in $PATH 7173do 7174 IFS=$as_save_IFS 7175 test -z "$as_dir" && as_dir=. 7176 for ac_exec_ext in '' $ac_executable_extensions; do 7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7178 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7180 break 2 7181 fi 7182done 7183 done 7184IFS=$as_save_IFS 7185 7186fi 7187fi 7188LIPO=$ac_cv_prog_LIPO 7189if test -n "$LIPO"; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7191$as_echo "$LIPO" >&6; } 7192else 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7194$as_echo "no" >&6; } 7195fi 7196 7197 7198fi 7199if test -z "$ac_cv_prog_LIPO"; then 7200 ac_ct_LIPO=$LIPO 7201 # Extract the first word of "lipo", so it can be a program name with args. 7202set dummy lipo; ac_word=$2 7203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7204$as_echo_n "checking for $ac_word... " >&6; } 7205if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7206 $as_echo_n "(cached) " >&6 7207else 7208 if test -n "$ac_ct_LIPO"; then 7209 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7210else 7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7212for as_dir in $PATH 7213do 7214 IFS=$as_save_IFS 7215 test -z "$as_dir" && as_dir=. 7216 for ac_exec_ext in '' $ac_executable_extensions; do 7217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7218 ac_cv_prog_ac_ct_LIPO="lipo" 7219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7220 break 2 7221 fi 7222done 7223 done 7224IFS=$as_save_IFS 7225 7226fi 7227fi 7228ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7229if test -n "$ac_ct_LIPO"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7231$as_echo "$ac_ct_LIPO" >&6; } 7232else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234$as_echo "no" >&6; } 7235fi 7236 7237 if test "x$ac_ct_LIPO" = x; then 7238 LIPO=":" 7239 else 7240 case $cross_compiling:$ac_tool_warned in 7241yes:) 7242{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7244ac_tool_warned=yes ;; 7245esac 7246 LIPO=$ac_ct_LIPO 7247 fi 7248else 7249 LIPO="$ac_cv_prog_LIPO" 7250fi 7251 7252 if test -n "$ac_tool_prefix"; then 7253 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7254set dummy ${ac_tool_prefix}otool; ac_word=$2 7255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7256$as_echo_n "checking for $ac_word... " >&6; } 7257if ${ac_cv_prog_OTOOL+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 if test -n "$OTOOL"; then 7261 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7262else 7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7264for as_dir in $PATH 7265do 7266 IFS=$as_save_IFS 7267 test -z "$as_dir" && as_dir=. 7268 for ac_exec_ext in '' $ac_executable_extensions; do 7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7270 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7272 break 2 7273 fi 7274done 7275 done 7276IFS=$as_save_IFS 7277 7278fi 7279fi 7280OTOOL=$ac_cv_prog_OTOOL 7281if test -n "$OTOOL"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7283$as_echo "$OTOOL" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7286$as_echo "no" >&6; } 7287fi 7288 7289 7290fi 7291if test -z "$ac_cv_prog_OTOOL"; then 7292 ac_ct_OTOOL=$OTOOL 7293 # Extract the first word of "otool", so it can be a program name with args. 7294set dummy otool; ac_word=$2 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7296$as_echo_n "checking for $ac_word... " >&6; } 7297if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7298 $as_echo_n "(cached) " >&6 7299else 7300 if test -n "$ac_ct_OTOOL"; then 7301 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7302else 7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304for as_dir in $PATH 7305do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_prog_ac_ct_OTOOL="otool" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314done 7315 done 7316IFS=$as_save_IFS 7317 7318fi 7319fi 7320ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7321if test -n "$ac_ct_OTOOL"; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7323$as_echo "$ac_ct_OTOOL" >&6; } 7324else 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7326$as_echo "no" >&6; } 7327fi 7328 7329 if test "x$ac_ct_OTOOL" = x; then 7330 OTOOL=":" 7331 else 7332 case $cross_compiling:$ac_tool_warned in 7333yes:) 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7336ac_tool_warned=yes ;; 7337esac 7338 OTOOL=$ac_ct_OTOOL 7339 fi 7340else 7341 OTOOL="$ac_cv_prog_OTOOL" 7342fi 7343 7344 if test -n "$ac_tool_prefix"; then 7345 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7346set dummy ${ac_tool_prefix}otool64; ac_word=$2 7347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7348$as_echo_n "checking for $ac_word... " >&6; } 7349if ${ac_cv_prog_OTOOL64+:} false; then : 7350 $as_echo_n "(cached) " >&6 7351else 7352 if test -n "$OTOOL64"; then 7353 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7354else 7355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7356for as_dir in $PATH 7357do 7358 IFS=$as_save_IFS 7359 test -z "$as_dir" && as_dir=. 7360 for ac_exec_ext in '' $ac_executable_extensions; do 7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7362 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7364 break 2 7365 fi 7366done 7367 done 7368IFS=$as_save_IFS 7369 7370fi 7371fi 7372OTOOL64=$ac_cv_prog_OTOOL64 7373if test -n "$OTOOL64"; then 7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7375$as_echo "$OTOOL64" >&6; } 7376else 7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7378$as_echo "no" >&6; } 7379fi 7380 7381 7382fi 7383if test -z "$ac_cv_prog_OTOOL64"; then 7384 ac_ct_OTOOL64=$OTOOL64 7385 # Extract the first word of "otool64", so it can be a program name with args. 7386set dummy otool64; ac_word=$2 7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7388$as_echo_n "checking for $ac_word... " >&6; } 7389if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7390 $as_echo_n "(cached) " >&6 7391else 7392 if test -n "$ac_ct_OTOOL64"; then 7393 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7394else 7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7396for as_dir in $PATH 7397do 7398 IFS=$as_save_IFS 7399 test -z "$as_dir" && as_dir=. 7400 for ac_exec_ext in '' $ac_executable_extensions; do 7401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7402 ac_cv_prog_ac_ct_OTOOL64="otool64" 7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7404 break 2 7405 fi 7406done 7407 done 7408IFS=$as_save_IFS 7409 7410fi 7411fi 7412ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7413if test -n "$ac_ct_OTOOL64"; then 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7415$as_echo "$ac_ct_OTOOL64" >&6; } 7416else 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7418$as_echo "no" >&6; } 7419fi 7420 7421 if test "x$ac_ct_OTOOL64" = x; then 7422 OTOOL64=":" 7423 else 7424 case $cross_compiling:$ac_tool_warned in 7425yes:) 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7428ac_tool_warned=yes ;; 7429esac 7430 OTOOL64=$ac_ct_OTOOL64 7431 fi 7432else 7433 OTOOL64="$ac_cv_prog_OTOOL64" 7434fi 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7463$as_echo_n "checking for -single_module linker flag... " >&6; } 7464if ${lt_cv_apple_cc_single_mod+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 lt_cv_apple_cc_single_mod=no 7468 if test -z "$LT_MULTI_MODULE"; then 7469 # By default we will add the -single_module flag. You can override 7470 # by either setting the environment variable LT_MULTI_MODULE 7471 # non-empty at configure time, or by adding -multi_module to the 7472 # link flags. 7473 rm -rf libconftest.dylib* 7474 echo "int foo(void){return 1;}" > conftest.c 7475 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7476-dynamiclib -Wl,-single_module conftest.c" >&5 7477 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7478 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7479 _lt_result=$? 7480 # If there is a non-empty error log, and "single_module" 7481 # appears in it, assume the flag caused a linker warning 7482 if test -s conftest.err && $GREP single_module conftest.err; then 7483 cat conftest.err >&5 7484 # Otherwise, if the output was created with a 0 exit code from 7485 # the compiler, it worked. 7486 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7487 lt_cv_apple_cc_single_mod=yes 7488 else 7489 cat conftest.err >&5 7490 fi 7491 rm -rf libconftest.dylib* 7492 rm -f conftest.* 7493 fi 7494fi 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7496$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7497 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7499$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7500if ${lt_cv_ld_exported_symbols_list+:} false; then : 7501 $as_echo_n "(cached) " >&6 7502else 7503 lt_cv_ld_exported_symbols_list=no 7504 save_LDFLAGS=$LDFLAGS 7505 echo "_main" > conftest.sym 7506 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7508/* end confdefs.h. */ 7509 7510int 7511main () 7512{ 7513 7514 ; 7515 return 0; 7516} 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO"; then : 7519 lt_cv_ld_exported_symbols_list=yes 7520else 7521 lt_cv_ld_exported_symbols_list=no 7522fi 7523rm -f core conftest.err conftest.$ac_objext \ 7524 conftest$ac_exeext conftest.$ac_ext 7525 LDFLAGS=$save_LDFLAGS 7526 7527fi 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7529$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7530 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7532$as_echo_n "checking for -force_load linker flag... " >&6; } 7533if ${lt_cv_ld_force_load+:} false; then : 7534 $as_echo_n "(cached) " >&6 7535else 7536 lt_cv_ld_force_load=no 7537 cat > conftest.c << _LT_EOF 7538int forced_loaded() { return 2;} 7539_LT_EOF 7540 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7541 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7542 echo "$AR cru libconftest.a conftest.o" >&5 7543 $AR cru libconftest.a conftest.o 2>&5 7544 echo "$RANLIB libconftest.a" >&5 7545 $RANLIB libconftest.a 2>&5 7546 cat > conftest.c << _LT_EOF 7547int main() { return 0;} 7548_LT_EOF 7549 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7550 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7551 _lt_result=$? 7552 if test -s conftest.err && $GREP force_load conftest.err; then 7553 cat conftest.err >&5 7554 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7555 lt_cv_ld_force_load=yes 7556 else 7557 cat conftest.err >&5 7558 fi 7559 rm -f conftest.err libconftest.a conftest conftest.c 7560 rm -rf conftest.dSYM 7561 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7564$as_echo "$lt_cv_ld_force_load" >&6; } 7565 case $host_os in 7566 rhapsody* | darwin1.[012]) 7567 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7568 darwin1.*) 7569 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7570 darwin*) # darwin 5.x on 7571 # if running on 10.5 or later, the deployment target defaults 7572 # to the OS version, if on x86, and 10.4, the deployment 7573 # target defaults to 10.4. Don't you love it? 7574 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7575 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7576 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7577 10.[012][,.]*) 7578 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7579 10.*) 7580 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7581 esac 7582 ;; 7583 esac 7584 if test yes = "$lt_cv_apple_cc_single_mod"; then 7585 _lt_dar_single_mod='$single_module' 7586 fi 7587 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7588 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7589 else 7590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7591 fi 7592 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7593 _lt_dsymutil='~$DSYMUTIL $lib || :' 7594 else 7595 _lt_dsymutil= 7596 fi 7597 ;; 7598 esac 7599 7600# func_munge_path_list VARIABLE PATH 7601# ----------------------------------- 7602# VARIABLE is name of variable containing _space_ separated list of 7603# directories to be munged by the contents of PATH, which is string 7604# having a format: 7605# "DIR[:DIR]:" 7606# string "DIR[ DIR]" will be prepended to VARIABLE 7607# ":DIR[:DIR]" 7608# string "DIR[ DIR]" will be appended to VARIABLE 7609# "DIRP[:DIRP]::[DIRA:]DIRA" 7610# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7611# "DIRA[ DIRA]" will be appended to VARIABLE 7612# "DIR[:DIR]" 7613# VARIABLE will be replaced by "DIR[ DIR]" 7614func_munge_path_list () 7615{ 7616 case x$2 in 7617 x) 7618 ;; 7619 *:) 7620 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7621 ;; 7622 x:*) 7623 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7624 ;; 7625 *::*) 7626 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7627 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7628 ;; 7629 *) 7630 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7631 ;; 7632 esac 7633} 7634 7635ac_ext=c 7636ac_cpp='$CPP $CPPFLAGS' 7637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7639ac_compiler_gnu=$ac_cv_c_compiler_gnu 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7641$as_echo_n "checking how to run the C preprocessor... " >&6; } 7642# On Suns, sometimes $CPP names a directory. 7643if test -n "$CPP" && test -d "$CPP"; then 7644 CPP= 7645fi 7646if test -z "$CPP"; then 7647 if ${ac_cv_prog_CPP+:} false; then : 7648 $as_echo_n "(cached) " >&6 7649else 7650 # Double quotes because CPP needs to be expanded 7651 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7652 do 7653 ac_preproc_ok=false 7654for ac_c_preproc_warn_flag in '' yes 7655do 7656 # Use a header file that comes with gcc, so configuring glibc 7657 # with a fresh cross-compiler works. 7658 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7659 # <limits.h> exists even on freestanding compilers. 7660 # On the NeXT, cc -E runs the code through the compiler's parser, 7661 # not just through cpp. "Syntax error" is here to catch this case. 7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7663/* end confdefs.h. */ 7664#ifdef __STDC__ 7665# include <limits.h> 7666#else 7667# include <assert.h> 7668#endif 7669 Syntax error 7670_ACEOF 7671if ac_fn_c_try_cpp "$LINENO"; then : 7672 7673else 7674 # Broken: fails on valid input. 7675continue 7676fi 7677rm -f conftest.err conftest.i conftest.$ac_ext 7678 7679 # OK, works on sane cases. Now check whether nonexistent headers 7680 # can be detected and how. 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683#include <ac_nonexistent.h> 7684_ACEOF 7685if ac_fn_c_try_cpp "$LINENO"; then : 7686 # Broken: success on invalid input. 7687continue 7688else 7689 # Passes both tests. 7690ac_preproc_ok=: 7691break 7692fi 7693rm -f conftest.err conftest.i conftest.$ac_ext 7694 7695done 7696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7697rm -f conftest.i conftest.err conftest.$ac_ext 7698if $ac_preproc_ok; then : 7699 break 7700fi 7701 7702 done 7703 ac_cv_prog_CPP=$CPP 7704 7705fi 7706 CPP=$ac_cv_prog_CPP 7707else 7708 ac_cv_prog_CPP=$CPP 7709fi 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7711$as_echo "$CPP" >&6; } 7712ac_preproc_ok=false 7713for ac_c_preproc_warn_flag in '' yes 7714do 7715 # Use a header file that comes with gcc, so configuring glibc 7716 # with a fresh cross-compiler works. 7717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7718 # <limits.h> exists even on freestanding compilers. 7719 # On the NeXT, cc -E runs the code through the compiler's parser, 7720 # not just through cpp. "Syntax error" is here to catch this case. 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723#ifdef __STDC__ 7724# include <limits.h> 7725#else 7726# include <assert.h> 7727#endif 7728 Syntax error 7729_ACEOF 7730if ac_fn_c_try_cpp "$LINENO"; then : 7731 7732else 7733 # Broken: fails on valid input. 7734continue 7735fi 7736rm -f conftest.err conftest.i conftest.$ac_ext 7737 7738 # OK, works on sane cases. Now check whether nonexistent headers 7739 # can be detected and how. 7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7741/* end confdefs.h. */ 7742#include <ac_nonexistent.h> 7743_ACEOF 7744if ac_fn_c_try_cpp "$LINENO"; then : 7745 # Broken: success on invalid input. 7746continue 7747else 7748 # Passes both tests. 7749ac_preproc_ok=: 7750break 7751fi 7752rm -f conftest.err conftest.i conftest.$ac_ext 7753 7754done 7755# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7756rm -f conftest.i conftest.err conftest.$ac_ext 7757if $ac_preproc_ok; then : 7758 7759else 7760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7761$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7762as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7763See \`config.log' for more details" "$LINENO" 5; } 7764fi 7765 7766ac_ext=c 7767ac_cpp='$CPP $CPPFLAGS' 7768ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7769ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7770ac_compiler_gnu=$ac_cv_c_compiler_gnu 7771 7772 7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7774$as_echo_n "checking for ANSI C header files... " >&6; } 7775if ${ac_cv_header_stdc+:} false; then : 7776 $as_echo_n "(cached) " >&6 7777else 7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7779/* end confdefs.h. */ 7780#include <stdlib.h> 7781#include <stdarg.h> 7782#include <string.h> 7783#include <float.h> 7784 7785int 7786main () 7787{ 7788 7789 ; 7790 return 0; 7791} 7792_ACEOF 7793if ac_fn_c_try_compile "$LINENO"; then : 7794 ac_cv_header_stdc=yes 7795else 7796 ac_cv_header_stdc=no 7797fi 7798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7799 7800if test $ac_cv_header_stdc = yes; then 7801 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7803/* end confdefs.h. */ 7804#include <string.h> 7805 7806_ACEOF 7807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7808 $EGREP "memchr" >/dev/null 2>&1; then : 7809 7810else 7811 ac_cv_header_stdc=no 7812fi 7813rm -f conftest* 7814 7815fi 7816 7817if test $ac_cv_header_stdc = yes; then 7818 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7820/* end confdefs.h. */ 7821#include <stdlib.h> 7822 7823_ACEOF 7824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7825 $EGREP "free" >/dev/null 2>&1; then : 7826 7827else 7828 ac_cv_header_stdc=no 7829fi 7830rm -f conftest* 7831 7832fi 7833 7834if test $ac_cv_header_stdc = yes; then 7835 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7836 if test "$cross_compiling" = yes; then : 7837 : 7838else 7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7840/* end confdefs.h. */ 7841#include <ctype.h> 7842#include <stdlib.h> 7843#if ((' ' & 0x0FF) == 0x020) 7844# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7845# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7846#else 7847# define ISLOWER(c) \ 7848 (('a' <= (c) && (c) <= 'i') \ 7849 || ('j' <= (c) && (c) <= 'r') \ 7850 || ('s' <= (c) && (c) <= 'z')) 7851# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7852#endif 7853 7854#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7855int 7856main () 7857{ 7858 int i; 7859 for (i = 0; i < 256; i++) 7860 if (XOR (islower (i), ISLOWER (i)) 7861 || toupper (i) != TOUPPER (i)) 7862 return 2; 7863 return 0; 7864} 7865_ACEOF 7866if ac_fn_c_try_run "$LINENO"; then : 7867 7868else 7869 ac_cv_header_stdc=no 7870fi 7871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7872 conftest.$ac_objext conftest.beam conftest.$ac_ext 7873fi 7874 7875fi 7876fi 7877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7878$as_echo "$ac_cv_header_stdc" >&6; } 7879if test $ac_cv_header_stdc = yes; then 7880 7881$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7882 7883fi 7884 7885# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7886for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7887 inttypes.h stdint.h unistd.h 7888do : 7889 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7890ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7891" 7892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7893 cat >>confdefs.h <<_ACEOF 7894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7895_ACEOF 7896 7897fi 7898 7899done 7900 7901 7902for ac_header in dlfcn.h 7903do : 7904 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7905" 7906if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7907 cat >>confdefs.h <<_ACEOF 7908#define HAVE_DLFCN_H 1 7909_ACEOF 7910 7911fi 7912 7913done 7914 7915 7916 7917 7918 7919# Set options 7920 7921 7922 7923 7924 enable_win32_dll=no 7925 7926 7927 # Check whether --enable-shared was given. 7928if test "${enable_shared+set}" = set; then : 7929 enableval=$enable_shared; p=${PACKAGE-default} 7930 case $enableval in 7931 yes) enable_shared=yes ;; 7932 no) enable_shared=no ;; 7933 *) 7934 enable_shared=no 7935 # Look at the argument we got. We use all the common list separators. 7936 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7937 for pkg in $enableval; do 7938 IFS=$lt_save_ifs 7939 if test "X$pkg" = "X$p"; then 7940 enable_shared=yes 7941 fi 7942 done 7943 IFS=$lt_save_ifs 7944 ;; 7945 esac 7946else 7947 enable_shared=yes 7948fi 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 # Check whether --enable-static was given. 7959if test "${enable_static+set}" = set; then : 7960 enableval=$enable_static; p=${PACKAGE-default} 7961 case $enableval in 7962 yes) enable_static=yes ;; 7963 no) enable_static=no ;; 7964 *) 7965 enable_static=no 7966 # Look at the argument we got. We use all the common list separators. 7967 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7968 for pkg in $enableval; do 7969 IFS=$lt_save_ifs 7970 if test "X$pkg" = "X$p"; then 7971 enable_static=yes 7972 fi 7973 done 7974 IFS=$lt_save_ifs 7975 ;; 7976 esac 7977else 7978 enable_static=yes 7979fi 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990# Check whether --with-pic was given. 7991if test "${with_pic+set}" = set; then : 7992 withval=$with_pic; lt_p=${PACKAGE-default} 7993 case $withval in 7994 yes|no) pic_mode=$withval ;; 7995 *) 7996 pic_mode=default 7997 # Look at the argument we got. We use all the common list separators. 7998 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7999 for lt_pkg in $withval; do 8000 IFS=$lt_save_ifs 8001 if test "X$lt_pkg" = "X$lt_p"; then 8002 pic_mode=yes 8003 fi 8004 done 8005 IFS=$lt_save_ifs 8006 ;; 8007 esac 8008else 8009 pic_mode=default 8010fi 8011 8012 8013 8014 8015 8016 8017 8018 8019 # Check whether --enable-fast-install was given. 8020if test "${enable_fast_install+set}" = set; then : 8021 enableval=$enable_fast_install; p=${PACKAGE-default} 8022 case $enableval in 8023 yes) enable_fast_install=yes ;; 8024 no) enable_fast_install=no ;; 8025 *) 8026 enable_fast_install=no 8027 # Look at the argument we got. We use all the common list separators. 8028 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8029 for pkg in $enableval; do 8030 IFS=$lt_save_ifs 8031 if test "X$pkg" = "X$p"; then 8032 enable_fast_install=yes 8033 fi 8034 done 8035 IFS=$lt_save_ifs 8036 ;; 8037 esac 8038else 8039 enable_fast_install=yes 8040fi 8041 8042 8043 8044 8045 8046 8047 8048 8049 shared_archive_member_spec= 8050case $host,$enable_shared in 8051power*-*-aix[5-9]*,yes) 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8053$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8054 8055# Check whether --with-aix-soname was given. 8056if test "${with_aix_soname+set}" = set; then : 8057 withval=$with_aix_soname; case $withval in 8058 aix|svr4|both) 8059 ;; 8060 *) 8061 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8062 ;; 8063 esac 8064 lt_cv_with_aix_soname=$with_aix_soname 8065else 8066 if ${lt_cv_with_aix_soname+:} false; then : 8067 $as_echo_n "(cached) " >&6 8068else 8069 lt_cv_with_aix_soname=aix 8070fi 8071 8072 with_aix_soname=$lt_cv_with_aix_soname 8073fi 8074 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8076$as_echo "$with_aix_soname" >&6; } 8077 if test aix != "$with_aix_soname"; then 8078 # For the AIX way of multilib, we name the shared archive member 8079 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8080 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8081 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8082 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8083 if test 64 = "${OBJECT_MODE-32}"; then 8084 shared_archive_member_spec=shr_64 8085 else 8086 shared_archive_member_spec=shr 8087 fi 8088 fi 8089 ;; 8090*) 8091 with_aix_soname=aix 8092 ;; 8093esac 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104# This can be used to rebuild libtool when needed 8105LIBTOOL_DEPS=$ltmain 8106 8107# Always use our own libtool. 8108LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139test -z "$LN_S" && LN_S="ln -s" 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154if test -n "${ZSH_VERSION+set}"; then 8155 setopt NO_GLOB_SUBST 8156fi 8157 8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8159$as_echo_n "checking for objdir... " >&6; } 8160if ${lt_cv_objdir+:} false; then : 8161 $as_echo_n "(cached) " >&6 8162else 8163 rm -f .libs 2>/dev/null 8164mkdir .libs 2>/dev/null 8165if test -d .libs; then 8166 lt_cv_objdir=.libs 8167else 8168 # MS-DOS does not allow filenames that begin with a dot. 8169 lt_cv_objdir=_libs 8170fi 8171rmdir .libs 2>/dev/null 8172fi 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8174$as_echo "$lt_cv_objdir" >&6; } 8175objdir=$lt_cv_objdir 8176 8177 8178 8179 8180 8181cat >>confdefs.h <<_ACEOF 8182#define LT_OBJDIR "$lt_cv_objdir/" 8183_ACEOF 8184 8185 8186 8187 8188case $host_os in 8189aix3*) 8190 # AIX sometimes has problems with the GCC collect2 program. For some 8191 # reason, if we set the COLLECT_NAMES environment variable, the problems 8192 # vanish in a puff of smoke. 8193 if test set != "${COLLECT_NAMES+set}"; then 8194 COLLECT_NAMES= 8195 export COLLECT_NAMES 8196 fi 8197 ;; 8198esac 8199 8200# Global variables: 8201ofile=libtool 8202can_build_shared=yes 8203 8204# All known linkers require a '.a' archive for static linking (except MSVC, 8205# which needs '.lib'). 8206libext=a 8207 8208with_gnu_ld=$lt_cv_prog_gnu_ld 8209 8210old_CC=$CC 8211old_CFLAGS=$CFLAGS 8212 8213# Set sane defaults for various variables 8214test -z "$CC" && CC=cc 8215test -z "$LTCC" && LTCC=$CC 8216test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8217test -z "$LD" && LD=ld 8218test -z "$ac_objext" && ac_objext=o 8219 8220func_cc_basename $compiler 8221cc_basename=$func_cc_basename_result 8222 8223 8224# Only perform the check for file, if the check method requires it 8225test -z "$MAGIC_CMD" && MAGIC_CMD=file 8226case $deplibs_check_method in 8227file_magic*) 8228 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8230$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8231if ${lt_cv_path_MAGIC_CMD+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233else 8234 case $MAGIC_CMD in 8235[\\/*] | ?:[\\/]*) 8236 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8237 ;; 8238*) 8239 lt_save_MAGIC_CMD=$MAGIC_CMD 8240 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8241 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8242 for ac_dir in $ac_dummy; do 8243 IFS=$lt_save_ifs 8244 test -z "$ac_dir" && ac_dir=. 8245 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8246 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8247 if test -n "$file_magic_test_file"; then 8248 case $deplibs_check_method in 8249 "file_magic "*) 8250 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8251 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8252 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8253 $EGREP "$file_magic_regex" > /dev/null; then 8254 : 8255 else 8256 cat <<_LT_EOF 1>&2 8257 8258*** Warning: the command libtool uses to detect shared libraries, 8259*** $file_magic_cmd, produces output that libtool cannot recognize. 8260*** The result is that libtool may fail to recognize shared libraries 8261*** as such. This will affect the creation of libtool libraries that 8262*** depend on shared libraries, but programs linked with such libtool 8263*** libraries will work regardless of this problem. Nevertheless, you 8264*** may want to report the problem to your system manager and/or to 8265*** bug-libtool@gnu.org 8266 8267_LT_EOF 8268 fi ;; 8269 esac 8270 fi 8271 break 8272 fi 8273 done 8274 IFS=$lt_save_ifs 8275 MAGIC_CMD=$lt_save_MAGIC_CMD 8276 ;; 8277esac 8278fi 8279 8280MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8281if test -n "$MAGIC_CMD"; then 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8283$as_echo "$MAGIC_CMD" >&6; } 8284else 8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8286$as_echo "no" >&6; } 8287fi 8288 8289 8290 8291 8292 8293if test -z "$lt_cv_path_MAGIC_CMD"; then 8294 if test -n "$ac_tool_prefix"; then 8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8296$as_echo_n "checking for file... " >&6; } 8297if ${lt_cv_path_MAGIC_CMD+:} false; then : 8298 $as_echo_n "(cached) " >&6 8299else 8300 case $MAGIC_CMD in 8301[\\/*] | ?:[\\/]*) 8302 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8303 ;; 8304*) 8305 lt_save_MAGIC_CMD=$MAGIC_CMD 8306 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8307 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8308 for ac_dir in $ac_dummy; do 8309 IFS=$lt_save_ifs 8310 test -z "$ac_dir" && ac_dir=. 8311 if test -f "$ac_dir/file"; then 8312 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8313 if test -n "$file_magic_test_file"; then 8314 case $deplibs_check_method in 8315 "file_magic "*) 8316 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8317 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8319 $EGREP "$file_magic_regex" > /dev/null; then 8320 : 8321 else 8322 cat <<_LT_EOF 1>&2 8323 8324*** Warning: the command libtool uses to detect shared libraries, 8325*** $file_magic_cmd, produces output that libtool cannot recognize. 8326*** The result is that libtool may fail to recognize shared libraries 8327*** as such. This will affect the creation of libtool libraries that 8328*** depend on shared libraries, but programs linked with such libtool 8329*** libraries will work regardless of this problem. Nevertheless, you 8330*** may want to report the problem to your system manager and/or to 8331*** bug-libtool@gnu.org 8332 8333_LT_EOF 8334 fi ;; 8335 esac 8336 fi 8337 break 8338 fi 8339 done 8340 IFS=$lt_save_ifs 8341 MAGIC_CMD=$lt_save_MAGIC_CMD 8342 ;; 8343esac 8344fi 8345 8346MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8347if test -n "$MAGIC_CMD"; then 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8349$as_echo "$MAGIC_CMD" >&6; } 8350else 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8352$as_echo "no" >&6; } 8353fi 8354 8355 8356 else 8357 MAGIC_CMD=: 8358 fi 8359fi 8360 8361 fi 8362 ;; 8363esac 8364 8365# Use C for the default configuration in the libtool script 8366 8367lt_save_CC=$CC 8368ac_ext=c 8369ac_cpp='$CPP $CPPFLAGS' 8370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8372ac_compiler_gnu=$ac_cv_c_compiler_gnu 8373 8374 8375# Source file extension for C test sources. 8376ac_ext=c 8377 8378# Object file extension for compiled C test sources. 8379objext=o 8380objext=$objext 8381 8382# Code to be used in simple compile tests 8383lt_simple_compile_test_code="int some_variable = 0;" 8384 8385# Code to be used in simple link tests 8386lt_simple_link_test_code='int main(){return(0);}' 8387 8388 8389 8390 8391 8392 8393 8394# If no C compiler was specified, use CC. 8395LTCC=${LTCC-"$CC"} 8396 8397# If no C compiler flags were specified, use CFLAGS. 8398LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8399 8400# Allow CC to be a program name with arguments. 8401compiler=$CC 8402 8403# Save the default compiler, since it gets overwritten when the other 8404# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8405compiler_DEFAULT=$CC 8406 8407# save warnings/boilerplate of simple test code 8408ac_outfile=conftest.$ac_objext 8409echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8410eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8411_lt_compiler_boilerplate=`cat conftest.err` 8412$RM conftest* 8413 8414ac_outfile=conftest.$ac_objext 8415echo "$lt_simple_link_test_code" >conftest.$ac_ext 8416eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8417_lt_linker_boilerplate=`cat conftest.err` 8418$RM -r conftest* 8419 8420 8421if test -n "$compiler"; then 8422 8423lt_prog_compiler_no_builtin_flag= 8424 8425if test yes = "$GCC"; then 8426 case $cc_basename in 8427 nvcc*) 8428 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8429 *) 8430 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8431 esac 8432 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8434$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8435if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437else 8438 lt_cv_prog_compiler_rtti_exceptions=no 8439 ac_outfile=conftest.$ac_objext 8440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8441 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8442 # Insert the option either (1) after the last *FLAGS variable, or 8443 # (2) before a word containing "conftest.", or (3) at the end. 8444 # Note that $ac_compile itself does not contain backslashes and begins 8445 # with a dollar sign (not a hyphen), so the echo should work correctly. 8446 # The option is referenced via a variable to avoid confusing sed. 8447 lt_compile=`echo "$ac_compile" | $SED \ 8448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8450 -e 's:$: $lt_compiler_flag:'` 8451 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8452 (eval "$lt_compile" 2>conftest.err) 8453 ac_status=$? 8454 cat conftest.err >&5 8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8456 if (exit $ac_status) && test -s "$ac_outfile"; then 8457 # The compiler can only warn and ignore the option if not recognized 8458 # So say no if there are warnings other than the usual output. 8459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8462 lt_cv_prog_compiler_rtti_exceptions=yes 8463 fi 8464 fi 8465 $RM conftest* 8466 8467fi 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8469$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8470 8471if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8472 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8473else 8474 : 8475fi 8476 8477fi 8478 8479 8480 8481 8482 8483 8484 lt_prog_compiler_wl= 8485lt_prog_compiler_pic= 8486lt_prog_compiler_static= 8487 8488 8489 if test yes = "$GCC"; then 8490 lt_prog_compiler_wl='-Wl,' 8491 lt_prog_compiler_static='-static' 8492 8493 case $host_os in 8494 aix*) 8495 # All AIX code is PIC. 8496 if test ia64 = "$host_cpu"; then 8497 # AIX 5 now supports IA64 processor 8498 lt_prog_compiler_static='-Bstatic' 8499 fi 8500 lt_prog_compiler_pic='-fPIC' 8501 ;; 8502 8503 amigaos*) 8504 case $host_cpu in 8505 powerpc) 8506 # see comment about AmigaOS4 .so support 8507 lt_prog_compiler_pic='-fPIC' 8508 ;; 8509 m68k) 8510 # FIXME: we need at least 68020 code to build shared libraries, but 8511 # adding the '-m68020' flag to GCC prevents building anything better, 8512 # like '-m68040'. 8513 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8514 ;; 8515 esac 8516 ;; 8517 8518 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8519 # PIC is the default for these OSes. 8520 ;; 8521 8522 mingw* | cygwin* | pw32* | os2* | cegcc*) 8523 # This hack is so that the source file can tell whether it is being 8524 # built for inclusion in a dll (and should export symbols for example). 8525 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8526 # (--disable-auto-import) libraries 8527 lt_prog_compiler_pic='-DDLL_EXPORT' 8528 case $host_os in 8529 os2*) 8530 lt_prog_compiler_static='$wl-static' 8531 ;; 8532 esac 8533 ;; 8534 8535 darwin* | rhapsody*) 8536 # PIC is the default on this platform 8537 # Common symbols not allowed in MH_DYLIB files 8538 lt_prog_compiler_pic='-fno-common' 8539 ;; 8540 8541 haiku*) 8542 # PIC is the default for Haiku. 8543 # The "-static" flag exists, but is broken. 8544 lt_prog_compiler_static= 8545 ;; 8546 8547 hpux*) 8548 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8549 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8550 # sets the default TLS model and affects inlining. 8551 case $host_cpu in 8552 hppa*64*) 8553 # +Z the default 8554 ;; 8555 *) 8556 lt_prog_compiler_pic='-fPIC' 8557 ;; 8558 esac 8559 ;; 8560 8561 interix[3-9]*) 8562 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8563 # Instead, we relocate shared libraries at runtime. 8564 ;; 8565 8566 msdosdjgpp*) 8567 # Just because we use GCC doesn't mean we suddenly get shared libraries 8568 # on systems that don't support them. 8569 lt_prog_compiler_can_build_shared=no 8570 enable_shared=no 8571 ;; 8572 8573 *nto* | *qnx*) 8574 # QNX uses GNU C++, but need to define -shared option too, otherwise 8575 # it will coredump. 8576 lt_prog_compiler_pic='-fPIC -shared' 8577 ;; 8578 8579 sysv4*MP*) 8580 if test -d /usr/nec; then 8581 lt_prog_compiler_pic=-Kconform_pic 8582 fi 8583 ;; 8584 8585 *) 8586 lt_prog_compiler_pic='-fPIC' 8587 ;; 8588 esac 8589 8590 case $cc_basename in 8591 nvcc*) # Cuda Compiler Driver 2.2 8592 lt_prog_compiler_wl='-Xlinker ' 8593 if test -n "$lt_prog_compiler_pic"; then 8594 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8595 fi 8596 ;; 8597 esac 8598 else 8599 # PORTME Check for flag to pass linker flags through the system compiler. 8600 case $host_os in 8601 aix*) 8602 lt_prog_compiler_wl='-Wl,' 8603 if test ia64 = "$host_cpu"; then 8604 # AIX 5 now supports IA64 processor 8605 lt_prog_compiler_static='-Bstatic' 8606 else 8607 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8608 fi 8609 ;; 8610 8611 darwin* | rhapsody*) 8612 # PIC is the default on this platform 8613 # Common symbols not allowed in MH_DYLIB files 8614 lt_prog_compiler_pic='-fno-common' 8615 case $cc_basename in 8616 nagfor*) 8617 # NAG Fortran compiler 8618 lt_prog_compiler_wl='-Wl,-Wl,,' 8619 lt_prog_compiler_pic='-PIC' 8620 lt_prog_compiler_static='-Bstatic' 8621 ;; 8622 esac 8623 ;; 8624 8625 mingw* | cygwin* | pw32* | os2* | cegcc*) 8626 # This hack is so that the source file can tell whether it is being 8627 # built for inclusion in a dll (and should export symbols for example). 8628 lt_prog_compiler_pic='-DDLL_EXPORT' 8629 case $host_os in 8630 os2*) 8631 lt_prog_compiler_static='$wl-static' 8632 ;; 8633 esac 8634 ;; 8635 8636 hpux9* | hpux10* | hpux11*) 8637 lt_prog_compiler_wl='-Wl,' 8638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8639 # not for PA HP-UX. 8640 case $host_cpu in 8641 hppa*64*|ia64*) 8642 # +Z the default 8643 ;; 8644 *) 8645 lt_prog_compiler_pic='+Z' 8646 ;; 8647 esac 8648 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8649 lt_prog_compiler_static='$wl-a ${wl}archive' 8650 ;; 8651 8652 irix5* | irix6* | nonstopux*) 8653 lt_prog_compiler_wl='-Wl,' 8654 # PIC (with -KPIC) is the default. 8655 lt_prog_compiler_static='-non_shared' 8656 ;; 8657 8658 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8659 case $cc_basename in 8660 # old Intel for x86_64, which still supported -KPIC. 8661 ecc*) 8662 lt_prog_compiler_wl='-Wl,' 8663 lt_prog_compiler_pic='-KPIC' 8664 lt_prog_compiler_static='-static' 8665 ;; 8666 # icc used to be incompatible with GCC. 8667 # ICC 10 doesn't accept -KPIC any more. 8668 icc* | ifort*) 8669 lt_prog_compiler_wl='-Wl,' 8670 lt_prog_compiler_pic='-fPIC' 8671 lt_prog_compiler_static='-static' 8672 ;; 8673 # Lahey Fortran 8.1. 8674 lf95*) 8675 lt_prog_compiler_wl='-Wl,' 8676 lt_prog_compiler_pic='--shared' 8677 lt_prog_compiler_static='--static' 8678 ;; 8679 nagfor*) 8680 # NAG Fortran compiler 8681 lt_prog_compiler_wl='-Wl,-Wl,,' 8682 lt_prog_compiler_pic='-PIC' 8683 lt_prog_compiler_static='-Bstatic' 8684 ;; 8685 tcc*) 8686 # Fabrice Bellard et al's Tiny C Compiler 8687 lt_prog_compiler_wl='-Wl,' 8688 lt_prog_compiler_pic='-fPIC' 8689 lt_prog_compiler_static='-static' 8690 ;; 8691 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8692 # Portland Group compilers (*not* the Pentium gcc compiler, 8693 # which looks to be a dead project) 8694 lt_prog_compiler_wl='-Wl,' 8695 lt_prog_compiler_pic='-fpic' 8696 lt_prog_compiler_static='-Bstatic' 8697 ;; 8698 ccc*) 8699 lt_prog_compiler_wl='-Wl,' 8700 # All Alpha code is PIC. 8701 lt_prog_compiler_static='-non_shared' 8702 ;; 8703 xl* | bgxl* | bgf* | mpixl*) 8704 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8705 lt_prog_compiler_wl='-Wl,' 8706 lt_prog_compiler_pic='-qpic' 8707 lt_prog_compiler_static='-qstaticlink' 8708 ;; 8709 *) 8710 case `$CC -V 2>&1 | sed 5q` in 8711 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8712 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8713 lt_prog_compiler_pic='-KPIC' 8714 lt_prog_compiler_static='-Bstatic' 8715 lt_prog_compiler_wl='' 8716 ;; 8717 *Sun\ F* | *Sun*Fortran*) 8718 lt_prog_compiler_pic='-KPIC' 8719 lt_prog_compiler_static='-Bstatic' 8720 lt_prog_compiler_wl='-Qoption ld ' 8721 ;; 8722 *Sun\ C*) 8723 # Sun C 5.9 8724 lt_prog_compiler_pic='-KPIC' 8725 lt_prog_compiler_static='-Bstatic' 8726 lt_prog_compiler_wl='-Wl,' 8727 ;; 8728 *Intel*\ [CF]*Compiler*) 8729 lt_prog_compiler_wl='-Wl,' 8730 lt_prog_compiler_pic='-fPIC' 8731 lt_prog_compiler_static='-static' 8732 ;; 8733 *Portland\ Group*) 8734 lt_prog_compiler_wl='-Wl,' 8735 lt_prog_compiler_pic='-fpic' 8736 lt_prog_compiler_static='-Bstatic' 8737 ;; 8738 esac 8739 ;; 8740 esac 8741 ;; 8742 8743 newsos6) 8744 lt_prog_compiler_pic='-KPIC' 8745 lt_prog_compiler_static='-Bstatic' 8746 ;; 8747 8748 *nto* | *qnx*) 8749 # QNX uses GNU C++, but need to define -shared option too, otherwise 8750 # it will coredump. 8751 lt_prog_compiler_pic='-fPIC -shared' 8752 ;; 8753 8754 osf3* | osf4* | osf5*) 8755 lt_prog_compiler_wl='-Wl,' 8756 # All OSF/1 code is PIC. 8757 lt_prog_compiler_static='-non_shared' 8758 ;; 8759 8760 rdos*) 8761 lt_prog_compiler_static='-non_shared' 8762 ;; 8763 8764 solaris*) 8765 lt_prog_compiler_pic='-KPIC' 8766 lt_prog_compiler_static='-Bstatic' 8767 case $cc_basename in 8768 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8769 lt_prog_compiler_wl='-Qoption ld ';; 8770 *) 8771 lt_prog_compiler_wl='-Wl,';; 8772 esac 8773 ;; 8774 8775 sunos4*) 8776 lt_prog_compiler_wl='-Qoption ld ' 8777 lt_prog_compiler_pic='-PIC' 8778 lt_prog_compiler_static='-Bstatic' 8779 ;; 8780 8781 sysv4 | sysv4.2uw2* | sysv4.3*) 8782 lt_prog_compiler_wl='-Wl,' 8783 lt_prog_compiler_pic='-KPIC' 8784 lt_prog_compiler_static='-Bstatic' 8785 ;; 8786 8787 sysv4*MP*) 8788 if test -d /usr/nec; then 8789 lt_prog_compiler_pic='-Kconform_pic' 8790 lt_prog_compiler_static='-Bstatic' 8791 fi 8792 ;; 8793 8794 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8795 lt_prog_compiler_wl='-Wl,' 8796 lt_prog_compiler_pic='-KPIC' 8797 lt_prog_compiler_static='-Bstatic' 8798 ;; 8799 8800 unicos*) 8801 lt_prog_compiler_wl='-Wl,' 8802 lt_prog_compiler_can_build_shared=no 8803 ;; 8804 8805 uts4*) 8806 lt_prog_compiler_pic='-pic' 8807 lt_prog_compiler_static='-Bstatic' 8808 ;; 8809 8810 *) 8811 lt_prog_compiler_can_build_shared=no 8812 ;; 8813 esac 8814 fi 8815 8816case $host_os in 8817 # For platforms that do not support PIC, -DPIC is meaningless: 8818 *djgpp*) 8819 lt_prog_compiler_pic= 8820 ;; 8821 *) 8822 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8823 ;; 8824esac 8825 8826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8827$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8828if ${lt_cv_prog_compiler_pic+:} false; then : 8829 $as_echo_n "(cached) " >&6 8830else 8831 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8832fi 8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8834$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8835lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8836 8837# 8838# Check to make sure the PIC flag actually works. 8839# 8840if test -n "$lt_prog_compiler_pic"; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8842$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8843if ${lt_cv_prog_compiler_pic_works+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 lt_cv_prog_compiler_pic_works=no 8847 ac_outfile=conftest.$ac_objext 8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8849 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8850 # Insert the option either (1) after the last *FLAGS variable, or 8851 # (2) before a word containing "conftest.", or (3) at the end. 8852 # Note that $ac_compile itself does not contain backslashes and begins 8853 # with a dollar sign (not a hyphen), so the echo should work correctly. 8854 # The option is referenced via a variable to avoid confusing sed. 8855 lt_compile=`echo "$ac_compile" | $SED \ 8856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8858 -e 's:$: $lt_compiler_flag:'` 8859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8860 (eval "$lt_compile" 2>conftest.err) 8861 ac_status=$? 8862 cat conftest.err >&5 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 if (exit $ac_status) && test -s "$ac_outfile"; then 8865 # The compiler can only warn and ignore the option if not recognized 8866 # So say no if there are warnings other than the usual output. 8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8869 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8870 lt_cv_prog_compiler_pic_works=yes 8871 fi 8872 fi 8873 $RM conftest* 8874 8875fi 8876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8877$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8878 8879if test yes = "$lt_cv_prog_compiler_pic_works"; then 8880 case $lt_prog_compiler_pic in 8881 "" | " "*) ;; 8882 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8883 esac 8884else 8885 lt_prog_compiler_pic= 8886 lt_prog_compiler_can_build_shared=no 8887fi 8888 8889fi 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901# 8902# Check to make sure the static flag actually works. 8903# 8904wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8906$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8907if ${lt_cv_prog_compiler_static_works+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909else 8910 lt_cv_prog_compiler_static_works=no 8911 save_LDFLAGS=$LDFLAGS 8912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8913 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8915 # The linker can only warn and ignore the option if not recognized 8916 # So say no if there are warnings 8917 if test -s conftest.err; then 8918 # Append any errors to the config.log. 8919 cat conftest.err 1>&5 8920 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8922 if diff conftest.exp conftest.er2 >/dev/null; then 8923 lt_cv_prog_compiler_static_works=yes 8924 fi 8925 else 8926 lt_cv_prog_compiler_static_works=yes 8927 fi 8928 fi 8929 $RM -r conftest* 8930 LDFLAGS=$save_LDFLAGS 8931 8932fi 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8934$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8935 8936if test yes = "$lt_cv_prog_compiler_static_works"; then 8937 : 8938else 8939 lt_prog_compiler_static= 8940fi 8941 8942 8943 8944 8945 8946 8947 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8949$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8950if ${lt_cv_prog_compiler_c_o+:} false; then : 8951 $as_echo_n "(cached) " >&6 8952else 8953 lt_cv_prog_compiler_c_o=no 8954 $RM -r conftest 2>/dev/null 8955 mkdir conftest 8956 cd conftest 8957 mkdir out 8958 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8959 8960 lt_compiler_flag="-o out/conftest2.$ac_objext" 8961 # Insert the option either (1) after the last *FLAGS variable, or 8962 # (2) before a word containing "conftest.", or (3) at the end. 8963 # Note that $ac_compile itself does not contain backslashes and begins 8964 # with a dollar sign (not a hyphen), so the echo should work correctly. 8965 lt_compile=`echo "$ac_compile" | $SED \ 8966 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8967 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8968 -e 's:$: $lt_compiler_flag:'` 8969 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8970 (eval "$lt_compile" 2>out/conftest.err) 8971 ac_status=$? 8972 cat out/conftest.err >&5 8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8974 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8975 then 8976 # The compiler can only warn and ignore the option if not recognized 8977 # So say no if there are warnings 8978 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8979 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8980 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8981 lt_cv_prog_compiler_c_o=yes 8982 fi 8983 fi 8984 chmod u+w . 2>&5 8985 $RM conftest* 8986 # SGI C++ compiler will create directory out/ii_files/ for 8987 # template instantiation 8988 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8989 $RM out/* && rmdir out 8990 cd .. 8991 $RM -r conftest 8992 $RM conftest* 8993 8994fi 8995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8996$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8997 8998 8999 9000 9001 9002 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9004$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9005if ${lt_cv_prog_compiler_c_o+:} false; then : 9006 $as_echo_n "(cached) " >&6 9007else 9008 lt_cv_prog_compiler_c_o=no 9009 $RM -r conftest 2>/dev/null 9010 mkdir conftest 9011 cd conftest 9012 mkdir out 9013 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9014 9015 lt_compiler_flag="-o out/conftest2.$ac_objext" 9016 # Insert the option either (1) after the last *FLAGS variable, or 9017 # (2) before a word containing "conftest.", or (3) at the end. 9018 # Note that $ac_compile itself does not contain backslashes and begins 9019 # with a dollar sign (not a hyphen), so the echo should work correctly. 9020 lt_compile=`echo "$ac_compile" | $SED \ 9021 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9022 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9023 -e 's:$: $lt_compiler_flag:'` 9024 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9025 (eval "$lt_compile" 2>out/conftest.err) 9026 ac_status=$? 9027 cat out/conftest.err >&5 9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9029 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9030 then 9031 # The compiler can only warn and ignore the option if not recognized 9032 # So say no if there are warnings 9033 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9034 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9035 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9036 lt_cv_prog_compiler_c_o=yes 9037 fi 9038 fi 9039 chmod u+w . 2>&5 9040 $RM conftest* 9041 # SGI C++ compiler will create directory out/ii_files/ for 9042 # template instantiation 9043 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9044 $RM out/* && rmdir out 9045 cd .. 9046 $RM -r conftest 9047 $RM conftest* 9048 9049fi 9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9051$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9052 9053 9054 9055 9056hard_links=nottested 9057if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9058 # do not overwrite the value of need_locks provided by the user 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9060$as_echo_n "checking if we can lock with hard links... " >&6; } 9061 hard_links=yes 9062 $RM conftest* 9063 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9064 touch conftest.a 9065 ln conftest.a conftest.b 2>&5 || hard_links=no 9066 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9068$as_echo "$hard_links" >&6; } 9069 if test no = "$hard_links"; then 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9071$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9072 need_locks=warn 9073 fi 9074else 9075 need_locks=no 9076fi 9077 9078 9079 9080 9081 9082 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9084$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9085 9086 runpath_var= 9087 allow_undefined_flag= 9088 always_export_symbols=no 9089 archive_cmds= 9090 archive_expsym_cmds= 9091 compiler_needs_object=no 9092 enable_shared_with_static_runtimes=no 9093 export_dynamic_flag_spec= 9094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9095 hardcode_automatic=no 9096 hardcode_direct=no 9097 hardcode_direct_absolute=no 9098 hardcode_libdir_flag_spec= 9099 hardcode_libdir_separator= 9100 hardcode_minus_L=no 9101 hardcode_shlibpath_var=unsupported 9102 inherit_rpath=no 9103 link_all_deplibs=unknown 9104 module_cmds= 9105 module_expsym_cmds= 9106 old_archive_from_new_cmds= 9107 old_archive_from_expsyms_cmds= 9108 thread_safe_flag_spec= 9109 whole_archive_flag_spec= 9110 # include_expsyms should be a list of space-separated symbols to be *always* 9111 # included in the symbol list 9112 include_expsyms= 9113 # exclude_expsyms can be an extended regexp of symbols to exclude 9114 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9115 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9116 # as well as any symbol that contains 'd'. 9117 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9118 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9119 # platforms (ab)use it in PIC code, but their linkers get confused if 9120 # the symbol is explicitly referenced. Since portable code cannot 9121 # rely on this symbol name, it's probably fine to never include it in 9122 # preloaded symbol tables. 9123 # Exclude shared library initialization/finalization symbols. 9124 extract_expsyms_cmds= 9125 9126 case $host_os in 9127 cygwin* | mingw* | pw32* | cegcc*) 9128 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9129 # When not using gcc, we currently assume that we are using 9130 # Microsoft Visual C++. 9131 if test yes != "$GCC"; then 9132 with_gnu_ld=no 9133 fi 9134 ;; 9135 interix*) 9136 # we just hope/assume this is gcc and not c89 (= MSVC++) 9137 with_gnu_ld=yes 9138 ;; 9139 openbsd* | bitrig*) 9140 with_gnu_ld=no 9141 ;; 9142 esac 9143 9144 ld_shlibs=yes 9145 9146 # On some targets, GNU ld is compatible enough with the native linker 9147 # that we're better off using the native interface for both. 9148 lt_use_gnu_ld_interface=no 9149 if test yes = "$with_gnu_ld"; then 9150 case $host_os in 9151 aix*) 9152 # The AIX port of GNU ld has always aspired to compatibility 9153 # with the native linker. However, as the warning in the GNU ld 9154 # block says, versions before 2.19.5* couldn't really create working 9155 # shared libraries, regardless of the interface used. 9156 case `$LD -v 2>&1` in 9157 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9158 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9159 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9160 *) 9161 lt_use_gnu_ld_interface=yes 9162 ;; 9163 esac 9164 ;; 9165 *) 9166 lt_use_gnu_ld_interface=yes 9167 ;; 9168 esac 9169 fi 9170 9171 if test yes = "$lt_use_gnu_ld_interface"; then 9172 # If archive_cmds runs LD, not CC, wlarc should be empty 9173 wlarc='$wl' 9174 9175 # Set some defaults for GNU ld with shared library support. These 9176 # are reset later if shared libraries are not supported. Putting them 9177 # here allows them to be overridden if necessary. 9178 runpath_var=LD_RUN_PATH 9179 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9180 export_dynamic_flag_spec='$wl--export-dynamic' 9181 # ancient GNU ld didn't support --whole-archive et. al. 9182 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9183 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9184 else 9185 whole_archive_flag_spec= 9186 fi 9187 supports_anon_versioning=no 9188 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9189 *GNU\ gold*) supports_anon_versioning=yes ;; 9190 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9191 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9192 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9193 *\ 2.11.*) ;; # other 2.11 versions 9194 *) supports_anon_versioning=yes ;; 9195 esac 9196 9197 # See if GNU ld supports shared libraries. 9198 case $host_os in 9199 aix[3-9]*) 9200 # On AIX/PPC, the GNU linker is very broken 9201 if test ia64 != "$host_cpu"; then 9202 ld_shlibs=no 9203 cat <<_LT_EOF 1>&2 9204 9205*** Warning: the GNU linker, at least up to release 2.19, is reported 9206*** to be unable to reliably create shared libraries on AIX. 9207*** Therefore, libtool is disabling shared libraries support. If you 9208*** really care for shared libraries, you may want to install binutils 9209*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9210*** You will then need to restart the configuration process. 9211 9212_LT_EOF 9213 fi 9214 ;; 9215 9216 amigaos*) 9217 case $host_cpu in 9218 powerpc) 9219 # see comment about AmigaOS4 .so support 9220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9221 archive_expsym_cmds='' 9222 ;; 9223 m68k) 9224 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9225 hardcode_libdir_flag_spec='-L$libdir' 9226 hardcode_minus_L=yes 9227 ;; 9228 esac 9229 ;; 9230 9231 beos*) 9232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9233 allow_undefined_flag=unsupported 9234 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9235 # support --undefined. This deserves some investigation. FIXME 9236 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9237 else 9238 ld_shlibs=no 9239 fi 9240 ;; 9241 9242 cygwin* | mingw* | pw32* | cegcc*) 9243 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9244 # as there is no search path for DLLs. 9245 hardcode_libdir_flag_spec='-L$libdir' 9246 export_dynamic_flag_spec='$wl--export-all-symbols' 9247 allow_undefined_flag=unsupported 9248 always_export_symbols=no 9249 enable_shared_with_static_runtimes=yes 9250 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9251 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9252 9253 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9255 # If the export-symbols file already is a .def file, use it as 9256 # is; otherwise, prepend EXPORTS... 9257 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9258 cp $export_symbols $output_objdir/$soname.def; 9259 else 9260 echo EXPORTS > $output_objdir/$soname.def; 9261 cat $export_symbols >> $output_objdir/$soname.def; 9262 fi~ 9263 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9264 else 9265 ld_shlibs=no 9266 fi 9267 ;; 9268 9269 haiku*) 9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9271 link_all_deplibs=yes 9272 ;; 9273 9274 os2*) 9275 hardcode_libdir_flag_spec='-L$libdir' 9276 hardcode_minus_L=yes 9277 allow_undefined_flag=unsupported 9278 shrext_cmds=.dll 9279 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9280 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9281 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9282 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9283 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9284 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9285 emximp -o $lib $output_objdir/$libname.def' 9286 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9287 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9288 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9289 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9290 prefix_cmds="$SED"~ 9291 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9292 prefix_cmds="$prefix_cmds -e 1d"; 9293 fi~ 9294 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9295 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9296 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9297 emximp -o $lib $output_objdir/$libname.def' 9298 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9299 enable_shared_with_static_runtimes=yes 9300 ;; 9301 9302 interix[3-9]*) 9303 hardcode_direct=no 9304 hardcode_shlibpath_var=no 9305 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9306 export_dynamic_flag_spec='$wl-E' 9307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9308 # Instead, shared libraries are loaded at an image base (0x10000000 by 9309 # default) and relocated if they conflict, which is a slow very memory 9310 # consuming and fragmenting process. To avoid this, we pick a random, 9311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9312 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9313 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9314 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9315 ;; 9316 9317 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9318 tmp_diet=no 9319 if test linux-dietlibc = "$host_os"; then 9320 case $cc_basename in 9321 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9322 esac 9323 fi 9324 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9325 && test no = "$tmp_diet" 9326 then 9327 tmp_addflag=' $pic_flag' 9328 tmp_sharedflag='-shared' 9329 case $cc_basename,$host_cpu in 9330 pgcc*) # Portland Group C compiler 9331 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9332 tmp_addflag=' $pic_flag' 9333 ;; 9334 pgf77* | pgf90* | pgf95* | pgfortran*) 9335 # Portland Group f77 and f90 compilers 9336 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9337 tmp_addflag=' $pic_flag -Mnomain' ;; 9338 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9339 tmp_addflag=' -i_dynamic' ;; 9340 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9341 tmp_addflag=' -i_dynamic -nofor_main' ;; 9342 ifc* | ifort*) # Intel Fortran compiler 9343 tmp_addflag=' -nofor_main' ;; 9344 lf95*) # Lahey Fortran 8.1 9345 whole_archive_flag_spec= 9346 tmp_sharedflag='--shared' ;; 9347 nagfor*) # NAGFOR 5.3 9348 tmp_sharedflag='-Wl,-shared' ;; 9349 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9350 tmp_sharedflag='-qmkshrobj' 9351 tmp_addflag= ;; 9352 nvcc*) # Cuda Compiler Driver 2.2 9353 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9354 compiler_needs_object=yes 9355 ;; 9356 esac 9357 case `$CC -V 2>&1 | sed 5q` in 9358 *Sun\ C*) # Sun C 5.9 9359 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' 9360 compiler_needs_object=yes 9361 tmp_sharedflag='-G' ;; 9362 *Sun\ F*) # Sun Fortran 8.3 9363 tmp_sharedflag='-G' ;; 9364 esac 9365 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9366 9367 if test yes = "$supports_anon_versioning"; then 9368 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9369 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9370 echo "local: *; };" >> $output_objdir/$libname.ver~ 9371 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9372 fi 9373 9374 case $cc_basename in 9375 tcc*) 9376 export_dynamic_flag_spec='-rdynamic' 9377 ;; 9378 xlf* | bgf* | bgxlf* | mpixlf*) 9379 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9380 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9381 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9382 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9383 if test yes = "$supports_anon_versioning"; then 9384 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9385 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9386 echo "local: *; };" >> $output_objdir/$libname.ver~ 9387 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9388 fi 9389 ;; 9390 esac 9391 else 9392 ld_shlibs=no 9393 fi 9394 ;; 9395 9396 netbsd*) 9397 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9398 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9399 wlarc= 9400 else 9401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9402 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9403 fi 9404 ;; 9405 9406 solaris*) 9407 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9408 ld_shlibs=no 9409 cat <<_LT_EOF 1>&2 9410 9411*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9412*** create shared libraries on Solaris systems. Therefore, libtool 9413*** is disabling shared libraries support. We urge you to upgrade GNU 9414*** binutils to release 2.9.1 or newer. Another option is to modify 9415*** your PATH or compiler configuration so that the native linker is 9416*** used, and then restart. 9417 9418_LT_EOF 9419 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9420 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9421 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9422 else 9423 ld_shlibs=no 9424 fi 9425 ;; 9426 9427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9428 case `$LD -v 2>&1` in 9429 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9430 ld_shlibs=no 9431 cat <<_LT_EOF 1>&2 9432 9433*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9434*** reliably create shared libraries on SCO systems. Therefore, libtool 9435*** is disabling shared libraries support. We urge you to upgrade GNU 9436*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9437*** your PATH or compiler configuration so that the native linker is 9438*** used, and then restart. 9439 9440_LT_EOF 9441 ;; 9442 *) 9443 # For security reasons, it is highly recommended that you always 9444 # use absolute paths for naming shared libraries, and exclude the 9445 # DT_RUNPATH tag from executables and libraries. But doing so 9446 # requires that you compile everything twice, which is a pain. 9447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9448 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9450 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9451 else 9452 ld_shlibs=no 9453 fi 9454 ;; 9455 esac 9456 ;; 9457 9458 sunos4*) 9459 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9460 wlarc= 9461 hardcode_direct=yes 9462 hardcode_shlibpath_var=no 9463 ;; 9464 9465 *) 9466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9467 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9468 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9469 else 9470 ld_shlibs=no 9471 fi 9472 ;; 9473 esac 9474 9475 if test no = "$ld_shlibs"; then 9476 runpath_var= 9477 hardcode_libdir_flag_spec= 9478 export_dynamic_flag_spec= 9479 whole_archive_flag_spec= 9480 fi 9481 else 9482 # PORTME fill in a description of your system's linker (not GNU ld) 9483 case $host_os in 9484 aix3*) 9485 allow_undefined_flag=unsupported 9486 always_export_symbols=yes 9487 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9488 # Note: this linker hardcodes the directories in LIBPATH if there 9489 # are no directories specified by -L. 9490 hardcode_minus_L=yes 9491 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9492 # Neither direct hardcoding nor static linking is supported with a 9493 # broken collect2. 9494 hardcode_direct=unsupported 9495 fi 9496 ;; 9497 9498 aix[4-9]*) 9499 if test ia64 = "$host_cpu"; then 9500 # On IA64, the linker does run time linking by default, so we don't 9501 # have to do anything special. 9502 aix_use_runtimelinking=no 9503 exp_sym_flag='-Bexport' 9504 no_entry_flag= 9505 else 9506 # If we're using GNU nm, then we don't want the "-C" option. 9507 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9508 # Without the "-l" option, or with the "-B" option, AIX nm treats 9509 # weak defined symbols like other global defined symbols, whereas 9510 # GNU nm marks them as "W". 9511 # While the 'weak' keyword is ignored in the Export File, we need 9512 # it in the Import File for the 'aix-soname' feature, so we have 9513 # to replace the "-B" option with "-P" for AIX nm. 9514 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9515 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 9516 else 9517 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9518 fi 9519 aix_use_runtimelinking=no 9520 9521 # Test if we are trying to use run time linking or normal 9522 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9523 # have runtime linking enabled, and use it for executables. 9524 # For shared libraries, we enable/disable runtime linking 9525 # depending on the kind of the shared library created - 9526 # when "with_aix_soname,aix_use_runtimelinking" is: 9527 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9528 # "aix,yes" lib.so shared, rtl:yes, for executables 9529 # lib.a static archive 9530 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9531 # lib.a(lib.so.V) shared, rtl:no, for executables 9532 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9533 # lib.a(lib.so.V) shared, rtl:no 9534 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9535 # lib.a static archive 9536 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9537 for ld_flag in $LDFLAGS; do 9538 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9539 aix_use_runtimelinking=yes 9540 break 9541 fi 9542 done 9543 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9544 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9545 # so we don't have lib.a shared libs to link our executables. 9546 # We have to force runtime linking in this case. 9547 aix_use_runtimelinking=yes 9548 LDFLAGS="$LDFLAGS -Wl,-brtl" 9549 fi 9550 ;; 9551 esac 9552 9553 exp_sym_flag='-bexport' 9554 no_entry_flag='-bnoentry' 9555 fi 9556 9557 # When large executables or shared objects are built, AIX ld can 9558 # have problems creating the table of contents. If linking a library 9559 # or program results in "error TOC overflow" add -mminimal-toc to 9560 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9561 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9562 9563 archive_cmds='' 9564 hardcode_direct=yes 9565 hardcode_direct_absolute=yes 9566 hardcode_libdir_separator=':' 9567 link_all_deplibs=yes 9568 file_list_spec='$wl-f,' 9569 case $with_aix_soname,$aix_use_runtimelinking in 9570 aix,*) ;; # traditional, no import file 9571 svr4,* | *,yes) # use import file 9572 # The Import File defines what to hardcode. 9573 hardcode_direct=no 9574 hardcode_direct_absolute=no 9575 ;; 9576 esac 9577 9578 if test yes = "$GCC"; then 9579 case $host_os in aix4.[012]|aix4.[012].*) 9580 # We only want to do this on AIX 4.2 and lower, the check 9581 # below for broken collect2 doesn't work under 4.3+ 9582 collect2name=`$CC -print-prog-name=collect2` 9583 if test -f "$collect2name" && 9584 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9585 then 9586 # We have reworked collect2 9587 : 9588 else 9589 # We have old collect2 9590 hardcode_direct=unsupported 9591 # It fails to find uninstalled libraries when the uninstalled 9592 # path is not listed in the libpath. Setting hardcode_minus_L 9593 # to unsupported forces relinking 9594 hardcode_minus_L=yes 9595 hardcode_libdir_flag_spec='-L$libdir' 9596 hardcode_libdir_separator= 9597 fi 9598 ;; 9599 esac 9600 shared_flag='-shared' 9601 if test yes = "$aix_use_runtimelinking"; then 9602 shared_flag="$shared_flag "'$wl-G' 9603 fi 9604 # Need to ensure runtime linking is disabled for the traditional 9605 # shared library, or the linker may eventually find shared libraries 9606 # /with/ Import File - we do not want to mix them. 9607 shared_flag_aix='-shared' 9608 shared_flag_svr4='-shared $wl-G' 9609 else 9610 # not using gcc 9611 if test ia64 = "$host_cpu"; then 9612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9613 # chokes on -Wl,-G. The following line is correct: 9614 shared_flag='-G' 9615 else 9616 if test yes = "$aix_use_runtimelinking"; then 9617 shared_flag='$wl-G' 9618 else 9619 shared_flag='$wl-bM:SRE' 9620 fi 9621 shared_flag_aix='$wl-bM:SRE' 9622 shared_flag_svr4='$wl-G' 9623 fi 9624 fi 9625 9626 export_dynamic_flag_spec='$wl-bexpall' 9627 # It seems that -bexpall does not export symbols beginning with 9628 # underscore (_), so it is better to generate a list of symbols to export. 9629 always_export_symbols=yes 9630 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9631 # Warning - without using the other runtime loading flags (-brtl), 9632 # -berok will link without error, but may produce a broken library. 9633 allow_undefined_flag='-berok' 9634 # Determine the default libpath from the value encoded in an 9635 # empty executable. 9636 if test set = "${lt_cv_aix_libpath+set}"; then 9637 aix_libpath=$lt_cv_aix_libpath 9638else 9639 if ${lt_cv_aix_libpath_+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641else 9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9643/* end confdefs.h. */ 9644 9645int 9646main () 9647{ 9648 9649 ; 9650 return 0; 9651} 9652_ACEOF 9653if ac_fn_c_try_link "$LINENO"; then : 9654 9655 lt_aix_libpath_sed=' 9656 /Import File Strings/,/^$/ { 9657 /^0/ { 9658 s/^0 *\([^ ]*\) *$/\1/ 9659 p 9660 } 9661 }' 9662 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9663 # Check for a 64-bit object if we didn't find anything. 9664 if test -z "$lt_cv_aix_libpath_"; then 9665 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9666 fi 9667fi 9668rm -f core conftest.err conftest.$ac_objext \ 9669 conftest$ac_exeext conftest.$ac_ext 9670 if test -z "$lt_cv_aix_libpath_"; then 9671 lt_cv_aix_libpath_=/usr/lib:/lib 9672 fi 9673 9674fi 9675 9676 aix_libpath=$lt_cv_aix_libpath_ 9677fi 9678 9679 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9680 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 9681 else 9682 if test ia64 = "$host_cpu"; then 9683 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9684 allow_undefined_flag="-z nodefs" 9685 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" 9686 else 9687 # Determine the default libpath from the value encoded in an 9688 # empty executable. 9689 if test set = "${lt_cv_aix_libpath+set}"; then 9690 aix_libpath=$lt_cv_aix_libpath 9691else 9692 if ${lt_cv_aix_libpath_+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9696/* end confdefs.h. */ 9697 9698int 9699main () 9700{ 9701 9702 ; 9703 return 0; 9704} 9705_ACEOF 9706if ac_fn_c_try_link "$LINENO"; then : 9707 9708 lt_aix_libpath_sed=' 9709 /Import File Strings/,/^$/ { 9710 /^0/ { 9711 s/^0 *\([^ ]*\) *$/\1/ 9712 p 9713 } 9714 }' 9715 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9716 # Check for a 64-bit object if we didn't find anything. 9717 if test -z "$lt_cv_aix_libpath_"; then 9718 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9719 fi 9720fi 9721rm -f core conftest.err conftest.$ac_objext \ 9722 conftest$ac_exeext conftest.$ac_ext 9723 if test -z "$lt_cv_aix_libpath_"; then 9724 lt_cv_aix_libpath_=/usr/lib:/lib 9725 fi 9726 9727fi 9728 9729 aix_libpath=$lt_cv_aix_libpath_ 9730fi 9731 9732 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9733 # Warning - without using the other run time loading flags, 9734 # -berok will link without error, but may produce a broken library. 9735 no_undefined_flag=' $wl-bernotok' 9736 allow_undefined_flag=' $wl-berok' 9737 if test yes = "$with_gnu_ld"; then 9738 # We only use this code for GNU lds that support --whole-archive. 9739 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9740 else 9741 # Exported symbols can be pulled into shared objects from archives 9742 whole_archive_flag_spec='$convenience' 9743 fi 9744 archive_cmds_need_lc=yes 9745 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9746 # -brtl affects multiple linker settings, -berok does not and is overridden later 9747 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9748 if test svr4 != "$with_aix_soname"; then 9749 # This is similar to how AIX traditionally builds its shared libraries. 9750 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 9751 fi 9752 if test aix != "$with_aix_soname"; then 9753 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 9754 else 9755 # used by -dlpreopen to get the symbols 9756 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9757 fi 9758 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9759 fi 9760 fi 9761 ;; 9762 9763 amigaos*) 9764 case $host_cpu in 9765 powerpc) 9766 # see comment about AmigaOS4 .so support 9767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9768 archive_expsym_cmds='' 9769 ;; 9770 m68k) 9771 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 9772 hardcode_libdir_flag_spec='-L$libdir' 9773 hardcode_minus_L=yes 9774 ;; 9775 esac 9776 ;; 9777 9778 bsdi[45]*) 9779 export_dynamic_flag_spec=-rdynamic 9780 ;; 9781 9782 cygwin* | mingw* | pw32* | cegcc*) 9783 # When not using gcc, we currently assume that we are using 9784 # Microsoft Visual C++. 9785 # hardcode_libdir_flag_spec is actually meaningless, as there is 9786 # no search path for DLLs. 9787 case $cc_basename in 9788 cl*) 9789 # Native MSVC 9790 hardcode_libdir_flag_spec=' ' 9791 allow_undefined_flag=unsupported 9792 always_export_symbols=yes 9793 file_list_spec='@' 9794 # Tell ltmain to make .lib files, not .a files. 9795 libext=lib 9796 # Tell ltmain to make .dll files, not .so files. 9797 shrext_cmds=.dll 9798 # FIXME: Setting linknames here is a bad hack. 9799 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9800 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9801 cp "$export_symbols" "$output_objdir/$soname.def"; 9802 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9803 else 9804 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9805 fi~ 9806 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9807 linknames=' 9808 # The linker will not automatically build a static lib if we build a DLL. 9809 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9810 enable_shared_with_static_runtimes=yes 9811 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9812 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9813 # Don't use ranlib 9814 old_postinstall_cmds='chmod 644 $oldlib' 9815 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9816 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9817 case $lt_outputfile in 9818 *.exe|*.EXE) ;; 9819 *) 9820 lt_outputfile=$lt_outputfile.exe 9821 lt_tool_outputfile=$lt_tool_outputfile.exe 9822 ;; 9823 esac~ 9824 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9825 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9826 $RM "$lt_outputfile.manifest"; 9827 fi' 9828 ;; 9829 *) 9830 # Assume MSVC wrapper 9831 hardcode_libdir_flag_spec=' ' 9832 allow_undefined_flag=unsupported 9833 # Tell ltmain to make .lib files, not .a files. 9834 libext=lib 9835 # Tell ltmain to make .dll files, not .so files. 9836 shrext_cmds=.dll 9837 # FIXME: Setting linknames here is a bad hack. 9838 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9839 # The linker will automatically build a .lib file if we build a DLL. 9840 old_archive_from_new_cmds='true' 9841 # FIXME: Should let the user specify the lib program. 9842 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9843 enable_shared_with_static_runtimes=yes 9844 ;; 9845 esac 9846 ;; 9847 9848 darwin* | rhapsody*) 9849 9850 9851 archive_cmds_need_lc=no 9852 hardcode_direct=no 9853 hardcode_automatic=yes 9854 hardcode_shlibpath_var=unsupported 9855 if test yes = "$lt_cv_ld_force_load"; then 9856 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9857 9858 else 9859 whole_archive_flag_spec='' 9860 fi 9861 link_all_deplibs=yes 9862 allow_undefined_flag=$_lt_dar_allow_undefined 9863 case $cc_basename in 9864 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9865 *) _lt_dar_can_shared=$GCC ;; 9866 esac 9867 if test yes = "$_lt_dar_can_shared"; then 9868 output_verbose_link_cmd=func_echo_all 9869 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9870 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9871 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" 9872 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" 9873 9874 else 9875 ld_shlibs=no 9876 fi 9877 9878 ;; 9879 9880 dgux*) 9881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9882 hardcode_libdir_flag_spec='-L$libdir' 9883 hardcode_shlibpath_var=no 9884 ;; 9885 9886 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9887 # support. Future versions do this automatically, but an explicit c++rt0.o 9888 # does not break anything, and helps significantly (at the cost of a little 9889 # extra space). 9890 freebsd2.2*) 9891 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9892 hardcode_libdir_flag_spec='-R$libdir' 9893 hardcode_direct=yes 9894 hardcode_shlibpath_var=no 9895 ;; 9896 9897 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9898 freebsd2.*) 9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9900 hardcode_direct=yes 9901 hardcode_minus_L=yes 9902 hardcode_shlibpath_var=no 9903 ;; 9904 9905 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9906 freebsd* | dragonfly*) 9907 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9908 hardcode_libdir_flag_spec='-R$libdir' 9909 hardcode_direct=yes 9910 hardcode_shlibpath_var=no 9911 ;; 9912 9913 hpux9*) 9914 if test yes = "$GCC"; then 9915 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9916 else 9917 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 9918 fi 9919 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9920 hardcode_libdir_separator=: 9921 hardcode_direct=yes 9922 9923 # hardcode_minus_L: Not really in the search PATH, 9924 # but as the default location of the library. 9925 hardcode_minus_L=yes 9926 export_dynamic_flag_spec='$wl-E' 9927 ;; 9928 9929 hpux10*) 9930 if test yes,no = "$GCC,$with_gnu_ld"; then 9931 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9932 else 9933 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9934 fi 9935 if test no = "$with_gnu_ld"; then 9936 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9937 hardcode_libdir_separator=: 9938 hardcode_direct=yes 9939 hardcode_direct_absolute=yes 9940 export_dynamic_flag_spec='$wl-E' 9941 # hardcode_minus_L: Not really in the search PATH, 9942 # but as the default location of the library. 9943 hardcode_minus_L=yes 9944 fi 9945 ;; 9946 9947 hpux11*) 9948 if test yes,no = "$GCC,$with_gnu_ld"; then 9949 case $host_cpu in 9950 hppa*64*) 9951 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9952 ;; 9953 ia64*) 9954 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9955 ;; 9956 *) 9957 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9958 ;; 9959 esac 9960 else 9961 case $host_cpu in 9962 hppa*64*) 9963 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9964 ;; 9965 ia64*) 9966 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9967 ;; 9968 *) 9969 9970 # Older versions of the 11.00 compiler do not understand -b yet 9971 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9973$as_echo_n "checking if $CC understands -b... " >&6; } 9974if ${lt_cv_prog_compiler__b+:} false; then : 9975 $as_echo_n "(cached) " >&6 9976else 9977 lt_cv_prog_compiler__b=no 9978 save_LDFLAGS=$LDFLAGS 9979 LDFLAGS="$LDFLAGS -b" 9980 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9982 # The linker can only warn and ignore the option if not recognized 9983 # So say no if there are warnings 9984 if test -s conftest.err; then 9985 # Append any errors to the config.log. 9986 cat conftest.err 1>&5 9987 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9989 if diff conftest.exp conftest.er2 >/dev/null; then 9990 lt_cv_prog_compiler__b=yes 9991 fi 9992 else 9993 lt_cv_prog_compiler__b=yes 9994 fi 9995 fi 9996 $RM -r conftest* 9997 LDFLAGS=$save_LDFLAGS 9998 9999fi 10000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10001$as_echo "$lt_cv_prog_compiler__b" >&6; } 10002 10003if test yes = "$lt_cv_prog_compiler__b"; then 10004 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10005else 10006 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10007fi 10008 10009 ;; 10010 esac 10011 fi 10012 if test no = "$with_gnu_ld"; then 10013 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10014 hardcode_libdir_separator=: 10015 10016 case $host_cpu in 10017 hppa*64*|ia64*) 10018 hardcode_direct=no 10019 hardcode_shlibpath_var=no 10020 ;; 10021 *) 10022 hardcode_direct=yes 10023 hardcode_direct_absolute=yes 10024 export_dynamic_flag_spec='$wl-E' 10025 10026 # hardcode_minus_L: Not really in the search PATH, 10027 # but as the default location of the library. 10028 hardcode_minus_L=yes 10029 ;; 10030 esac 10031 fi 10032 ;; 10033 10034 irix5* | irix6* | nonstopux*) 10035 if test yes = "$GCC"; then 10036 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10037 # Try to use the -exported_symbol ld option, if it does not 10038 # work, assume that -exports_file does not work either and 10039 # implicitly export all symbols. 10040 # This should be the same for all languages, so no per-tag cache variable. 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10042$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10043if ${lt_cv_irix_exported_symbol+:} false; then : 10044 $as_echo_n "(cached) " >&6 10045else 10046 save_LDFLAGS=$LDFLAGS 10047 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10049/* end confdefs.h. */ 10050int foo (void) { return 0; } 10051_ACEOF 10052if ac_fn_c_try_link "$LINENO"; then : 10053 lt_cv_irix_exported_symbol=yes 10054else 10055 lt_cv_irix_exported_symbol=no 10056fi 10057rm -f core conftest.err conftest.$ac_objext \ 10058 conftest$ac_exeext conftest.$ac_ext 10059 LDFLAGS=$save_LDFLAGS 10060fi 10061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10062$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10063 if test yes = "$lt_cv_irix_exported_symbol"; then 10064 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 10065 fi 10066 else 10067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' 10069 fi 10070 archive_cmds_need_lc='no' 10071 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10072 hardcode_libdir_separator=: 10073 inherit_rpath=yes 10074 link_all_deplibs=yes 10075 ;; 10076 10077 linux*) 10078 case $cc_basename in 10079 tcc*) 10080 # Fabrice Bellard et al's Tiny C Compiler 10081 ld_shlibs=yes 10082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10083 ;; 10084 esac 10085 ;; 10086 10087 netbsd*) 10088 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10090 else 10091 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10092 fi 10093 hardcode_libdir_flag_spec='-R$libdir' 10094 hardcode_direct=yes 10095 hardcode_shlibpath_var=no 10096 ;; 10097 10098 newsos6) 10099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10100 hardcode_direct=yes 10101 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10102 hardcode_libdir_separator=: 10103 hardcode_shlibpath_var=no 10104 ;; 10105 10106 *nto* | *qnx*) 10107 ;; 10108 10109 openbsd* | bitrig*) 10110 if test -f /usr/libexec/ld.so; then 10111 hardcode_direct=yes 10112 hardcode_shlibpath_var=no 10113 hardcode_direct_absolute=yes 10114 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10115 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10116 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10117 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10118 export_dynamic_flag_spec='$wl-E' 10119 else 10120 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10121 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10122 fi 10123 else 10124 ld_shlibs=no 10125 fi 10126 ;; 10127 10128 os2*) 10129 hardcode_libdir_flag_spec='-L$libdir' 10130 hardcode_minus_L=yes 10131 allow_undefined_flag=unsupported 10132 shrext_cmds=.dll 10133 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10134 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10135 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10136 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10137 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10138 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10139 emximp -o $lib $output_objdir/$libname.def' 10140 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10141 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10142 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10143 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10144 prefix_cmds="$SED"~ 10145 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10146 prefix_cmds="$prefix_cmds -e 1d"; 10147 fi~ 10148 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10149 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10150 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10151 emximp -o $lib $output_objdir/$libname.def' 10152 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10153 enable_shared_with_static_runtimes=yes 10154 ;; 10155 10156 osf3*) 10157 if test yes = "$GCC"; then 10158 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10159 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10160 else 10161 allow_undefined_flag=' -expect_unresolved \*' 10162 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10163 fi 10164 archive_cmds_need_lc='no' 10165 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10166 hardcode_libdir_separator=: 10167 ;; 10168 10169 osf4* | osf5*) # as osf3* with the addition of -msym flag 10170 if test yes = "$GCC"; then 10171 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10172 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 10173 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10174 else 10175 allow_undefined_flag=' -expect_unresolved \*' 10176 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 10177 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 10178 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' 10179 10180 # Both c and cxx compiler support -rpath directly 10181 hardcode_libdir_flag_spec='-rpath $libdir' 10182 fi 10183 archive_cmds_need_lc='no' 10184 hardcode_libdir_separator=: 10185 ;; 10186 10187 solaris*) 10188 no_undefined_flag=' -z defs' 10189 if test yes = "$GCC"; then 10190 wlarc='$wl' 10191 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10192 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10193 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10194 else 10195 case `$CC -V 2>&1` in 10196 *"Compilers 5.0"*) 10197 wlarc='' 10198 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10199 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10200 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10201 ;; 10202 *) 10203 wlarc='$wl' 10204 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10205 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10206 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10207 ;; 10208 esac 10209 fi 10210 hardcode_libdir_flag_spec='-R$libdir' 10211 hardcode_shlibpath_var=no 10212 case $host_os in 10213 solaris2.[0-5] | solaris2.[0-5].*) ;; 10214 *) 10215 # The compiler driver will combine and reorder linker options, 10216 # but understands '-z linker_flag'. GCC discards it without '$wl', 10217 # but is careful enough not to reorder. 10218 # Supported since Solaris 2.6 (maybe 2.5.1?) 10219 if test yes = "$GCC"; then 10220 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10221 else 10222 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10223 fi 10224 ;; 10225 esac 10226 link_all_deplibs=yes 10227 ;; 10228 10229 sunos4*) 10230 if test sequent = "$host_vendor"; then 10231 # Use $CC to link under sequent, because it throws in some extra .o 10232 # files that make .init and .fini sections work. 10233 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10234 else 10235 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10236 fi 10237 hardcode_libdir_flag_spec='-L$libdir' 10238 hardcode_direct=yes 10239 hardcode_minus_L=yes 10240 hardcode_shlibpath_var=no 10241 ;; 10242 10243 sysv4) 10244 case $host_vendor in 10245 sni) 10246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10247 hardcode_direct=yes # is this really true??? 10248 ;; 10249 siemens) 10250 ## LD is ld it makes a PLAMLIB 10251 ## CC just makes a GrossModule. 10252 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10253 reload_cmds='$CC -r -o $output$reload_objs' 10254 hardcode_direct=no 10255 ;; 10256 motorola) 10257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10258 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10259 ;; 10260 esac 10261 runpath_var='LD_RUN_PATH' 10262 hardcode_shlibpath_var=no 10263 ;; 10264 10265 sysv4.3*) 10266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10267 hardcode_shlibpath_var=no 10268 export_dynamic_flag_spec='-Bexport' 10269 ;; 10270 10271 sysv4*MP*) 10272 if test -d /usr/nec; then 10273 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10274 hardcode_shlibpath_var=no 10275 runpath_var=LD_RUN_PATH 10276 hardcode_runpath_var=yes 10277 ld_shlibs=yes 10278 fi 10279 ;; 10280 10281 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10282 no_undefined_flag='$wl-z,text' 10283 archive_cmds_need_lc=no 10284 hardcode_shlibpath_var=no 10285 runpath_var='LD_RUN_PATH' 10286 10287 if test yes = "$GCC"; then 10288 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10289 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10290 else 10291 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10292 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10293 fi 10294 ;; 10295 10296 sysv5* | sco3.2v5* | sco5v6*) 10297 # Note: We CANNOT use -z defs as we might desire, because we do not 10298 # link with -lc, and that would cause any symbols used from libc to 10299 # always be unresolved, which means just about no library would 10300 # ever link correctly. If we're not using GNU ld we use -z text 10301 # though, which does catch some bad symbols but isn't as heavy-handed 10302 # as -z defs. 10303 no_undefined_flag='$wl-z,text' 10304 allow_undefined_flag='$wl-z,nodefs' 10305 archive_cmds_need_lc=no 10306 hardcode_shlibpath_var=no 10307 hardcode_libdir_flag_spec='$wl-R,$libdir' 10308 hardcode_libdir_separator=':' 10309 link_all_deplibs=yes 10310 export_dynamic_flag_spec='$wl-Bexport' 10311 runpath_var='LD_RUN_PATH' 10312 10313 if test yes = "$GCC"; then 10314 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10315 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10316 else 10317 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10318 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10319 fi 10320 ;; 10321 10322 uts4*) 10323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10324 hardcode_libdir_flag_spec='-L$libdir' 10325 hardcode_shlibpath_var=no 10326 ;; 10327 10328 *) 10329 ld_shlibs=no 10330 ;; 10331 esac 10332 10333 if test sni = "$host_vendor"; then 10334 case $host in 10335 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10336 export_dynamic_flag_spec='$wl-Blargedynsym' 10337 ;; 10338 esac 10339 fi 10340 fi 10341 10342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10343$as_echo "$ld_shlibs" >&6; } 10344test no = "$ld_shlibs" && can_build_shared=no 10345 10346with_gnu_ld=$with_gnu_ld 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362# 10363# Do we need to explicitly link libc? 10364# 10365case "x$archive_cmds_need_lc" in 10366x|xyes) 10367 # Assume -lc should be added 10368 archive_cmds_need_lc=yes 10369 10370 if test yes,yes = "$GCC,$enable_shared"; then 10371 case $archive_cmds in 10372 *'~'*) 10373 # FIXME: we may have to deal with multi-command sequences. 10374 ;; 10375 '$CC '*) 10376 # Test whether the compiler implicitly links with -lc since on some 10377 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10378 # to ld, don't add -lc before -lgcc. 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10380$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10381if ${lt_cv_archive_cmds_need_lc+:} false; then : 10382 $as_echo_n "(cached) " >&6 10383else 10384 $RM conftest* 10385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10386 10387 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10388 (eval $ac_compile) 2>&5 10389 ac_status=$? 10390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10391 test $ac_status = 0; } 2>conftest.err; then 10392 soname=conftest 10393 lib=conftest 10394 libobjs=conftest.$ac_objext 10395 deplibs= 10396 wl=$lt_prog_compiler_wl 10397 pic_flag=$lt_prog_compiler_pic 10398 compiler_flags=-v 10399 linker_flags=-v 10400 verstring= 10401 output_objdir=. 10402 libname=conftest 10403 lt_save_allow_undefined_flag=$allow_undefined_flag 10404 allow_undefined_flag= 10405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10406 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10407 ac_status=$? 10408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10409 test $ac_status = 0; } 10410 then 10411 lt_cv_archive_cmds_need_lc=no 10412 else 10413 lt_cv_archive_cmds_need_lc=yes 10414 fi 10415 allow_undefined_flag=$lt_save_allow_undefined_flag 10416 else 10417 cat conftest.err 1>&5 10418 fi 10419 $RM conftest* 10420 10421fi 10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10423$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10424 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10425 ;; 10426 esac 10427 fi 10428 ;; 10429esac 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10583$as_echo_n "checking dynamic linker characteristics... " >&6; } 10584 10585if test yes = "$GCC"; then 10586 case $host_os in 10587 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10588 *) lt_awk_arg='/^libraries:/' ;; 10589 esac 10590 case $host_os in 10591 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10592 *) lt_sed_strip_eq='s|=/|/|g' ;; 10593 esac 10594 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10595 case $lt_search_path_spec in 10596 *\;*) 10597 # if the path contains ";" then we assume it to be the separator 10598 # otherwise default to the standard path separator (i.e. ":") - it is 10599 # assumed that no part of a normal pathname contains ";" but that should 10600 # okay in the real world where ";" in dirpaths is itself problematic. 10601 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10602 ;; 10603 *) 10604 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10605 ;; 10606 esac 10607 # Ok, now we have the path, separated by spaces, we can step through it 10608 # and add multilib dir if necessary... 10609 lt_tmp_lt_search_path_spec= 10610 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10611 # ...but if some path component already ends with the multilib dir we assume 10612 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10613 case "$lt_multi_os_dir; $lt_search_path_spec " in 10614 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10615 lt_multi_os_dir= 10616 ;; 10617 esac 10618 for lt_sys_path in $lt_search_path_spec; do 10619 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10620 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10621 elif test -n "$lt_multi_os_dir"; then 10622 test -d "$lt_sys_path" && \ 10623 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10624 fi 10625 done 10626 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10627BEGIN {RS = " "; FS = "/|\n";} { 10628 lt_foo = ""; 10629 lt_count = 0; 10630 for (lt_i = NF; lt_i > 0; lt_i--) { 10631 if ($lt_i != "" && $lt_i != ".") { 10632 if ($lt_i == "..") { 10633 lt_count++; 10634 } else { 10635 if (lt_count == 0) { 10636 lt_foo = "/" $lt_i lt_foo; 10637 } else { 10638 lt_count--; 10639 } 10640 } 10641 } 10642 } 10643 if (lt_foo != "") { lt_freq[lt_foo]++; } 10644 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10645}'` 10646 # AWK program above erroneously prepends '/' to C:/dos/paths 10647 # for these hosts. 10648 case $host_os in 10649 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10650 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10651 esac 10652 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10653else 10654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10655fi 10656library_names_spec= 10657libname_spec='lib$name' 10658soname_spec= 10659shrext_cmds=.so 10660postinstall_cmds= 10661postuninstall_cmds= 10662finish_cmds= 10663finish_eval= 10664shlibpath_var= 10665shlibpath_overrides_runpath=unknown 10666version_type=none 10667dynamic_linker="$host_os ld.so" 10668sys_lib_dlsearch_path_spec="/lib /usr/lib" 10669need_lib_prefix=unknown 10670hardcode_into_libs=no 10671 10672# when you set need_version to no, make sure it does not cause -set_version 10673# flags to be left without arguments 10674need_version=unknown 10675 10676 10677 10678case $host_os in 10679aix3*) 10680 version_type=linux # correct to gnu/linux during the next big refactor 10681 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10682 shlibpath_var=LIBPATH 10683 10684 # AIX 3 has no versioning support, so we append a major version to the name. 10685 soname_spec='$libname$release$shared_ext$major' 10686 ;; 10687 10688aix[4-9]*) 10689 version_type=linux # correct to gnu/linux during the next big refactor 10690 need_lib_prefix=no 10691 need_version=no 10692 hardcode_into_libs=yes 10693 if test ia64 = "$host_cpu"; then 10694 # AIX 5 supports IA64 10695 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10696 shlibpath_var=LD_LIBRARY_PATH 10697 else 10698 # With GCC up to 2.95.x, collect2 would create an import file 10699 # for dependence libraries. The import file would start with 10700 # the line '#! .'. This would cause the generated library to 10701 # depend on '.', always an invalid library. This was fixed in 10702 # development snapshots of GCC prior to 3.0. 10703 case $host_os in 10704 aix4 | aix4.[01] | aix4.[01].*) 10705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10706 echo ' yes ' 10707 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10708 : 10709 else 10710 can_build_shared=no 10711 fi 10712 ;; 10713 esac 10714 # Using Import Files as archive members, it is possible to support 10715 # filename-based versioning of shared library archives on AIX. While 10716 # this would work for both with and without runtime linking, it will 10717 # prevent static linking of such archives. So we do filename-based 10718 # shared library versioning with .so extension only, which is used 10719 # when both runtime linking and shared linking is enabled. 10720 # Unfortunately, runtime linking may impact performance, so we do 10721 # not want this to be the default eventually. Also, we use the 10722 # versioned .so libs for executables only if there is the -brtl 10723 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10724 # To allow for filename-based versioning support, we need to create 10725 # libNAME.so.V as an archive file, containing: 10726 # *) an Import File, referring to the versioned filename of the 10727 # archive as well as the shared archive member, telling the 10728 # bitwidth (32 or 64) of that shared object, and providing the 10729 # list of exported symbols of that shared object, eventually 10730 # decorated with the 'weak' keyword 10731 # *) the shared object with the F_LOADONLY flag set, to really avoid 10732 # it being seen by the linker. 10733 # At run time we better use the real file rather than another symlink, 10734 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10735 10736 case $with_aix_soname,$aix_use_runtimelinking in 10737 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10738 # soname into executable. Probably we can add versioning support to 10739 # collect2, so additional links can be useful in future. 10740 aix,yes) # traditional libtool 10741 dynamic_linker='AIX unversionable lib.so' 10742 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10743 # instead of lib<name>.a to let people know that these are not 10744 # typical AIX shared libraries. 10745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10746 ;; 10747 aix,no) # traditional AIX only 10748 dynamic_linker='AIX lib.a(lib.so.V)' 10749 # We preserve .a as extension for shared libraries through AIX4.2 10750 # and later when we are not doing run time linking. 10751 library_names_spec='$libname$release.a $libname.a' 10752 soname_spec='$libname$release$shared_ext$major' 10753 ;; 10754 svr4,*) # full svr4 only 10755 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10756 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10757 # We do not specify a path in Import Files, so LIBPATH fires. 10758 shlibpath_overrides_runpath=yes 10759 ;; 10760 *,yes) # both, prefer svr4 10761 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10762 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10763 # unpreferred sharedlib libNAME.a needs extra handling 10764 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 10765 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 10766 # We do not specify a path in Import Files, so LIBPATH fires. 10767 shlibpath_overrides_runpath=yes 10768 ;; 10769 *,no) # both, prefer aix 10770 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10771 library_names_spec='$libname$release.a $libname.a' 10772 soname_spec='$libname$release$shared_ext$major' 10773 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10774 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 10775 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 10776 ;; 10777 esac 10778 shlibpath_var=LIBPATH 10779 fi 10780 ;; 10781 10782amigaos*) 10783 case $host_cpu in 10784 powerpc) 10785 # Since July 2007 AmigaOS4 officially supports .so libraries. 10786 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10787 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10788 ;; 10789 m68k) 10790 library_names_spec='$libname.ixlibrary $libname.a' 10791 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10792 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10793 ;; 10794 esac 10795 ;; 10796 10797beos*) 10798 library_names_spec='$libname$shared_ext' 10799 dynamic_linker="$host_os ld.so" 10800 shlibpath_var=LIBRARY_PATH 10801 ;; 10802 10803bsdi[45]*) 10804 version_type=linux # correct to gnu/linux during the next big refactor 10805 need_version=no 10806 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10807 soname_spec='$libname$release$shared_ext$major' 10808 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10809 shlibpath_var=LD_LIBRARY_PATH 10810 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10811 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10812 # the default ld.so.conf also contains /usr/contrib/lib and 10813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10814 # libtool to hard-code these into programs 10815 ;; 10816 10817cygwin* | mingw* | pw32* | cegcc*) 10818 version_type=windows 10819 shrext_cmds=.dll 10820 need_version=no 10821 need_lib_prefix=no 10822 10823 case $GCC,$cc_basename in 10824 yes,*) 10825 # gcc 10826 library_names_spec='$libname.dll.a' 10827 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10828 postinstall_cmds='base_file=`basename \$file`~ 10829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10830 dldir=$destdir/`dirname \$dlpath`~ 10831 test -d \$dldir || mkdir -p \$dldir~ 10832 $install_prog $dir/$dlname \$dldir/$dlname~ 10833 chmod a+x \$dldir/$dlname~ 10834 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10835 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10836 fi' 10837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10838 dlpath=$dir/\$dldll~ 10839 $RM \$dlpath' 10840 shlibpath_overrides_runpath=yes 10841 10842 case $host_os in 10843 cygwin*) 10844 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10845 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10846 10847 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10848 ;; 10849 mingw* | cegcc*) 10850 # MinGW DLLs use traditional 'lib' prefix 10851 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10852 ;; 10853 pw32*) 10854 # pw32 DLLs use 'pw' prefix rather than 'lib' 10855 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10856 ;; 10857 esac 10858 dynamic_linker='Win32 ld.exe' 10859 ;; 10860 10861 *,cl*) 10862 # Native MSVC 10863 libname_spec='$name' 10864 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10865 library_names_spec='$libname.dll.lib' 10866 10867 case $build_os in 10868 mingw*) 10869 sys_lib_search_path_spec= 10870 lt_save_ifs=$IFS 10871 IFS=';' 10872 for lt_path in $LIB 10873 do 10874 IFS=$lt_save_ifs 10875 # Let DOS variable expansion print the short 8.3 style file name. 10876 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10877 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10878 done 10879 IFS=$lt_save_ifs 10880 # Convert to MSYS style. 10881 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10882 ;; 10883 cygwin*) 10884 # Convert to unix form, then to dos form, then back to unix form 10885 # but this time dos style (no spaces!) so that the unix form looks 10886 # like /cygdrive/c/PROGRA~1:/cygdr... 10887 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10888 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10889 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10890 ;; 10891 *) 10892 sys_lib_search_path_spec=$LIB 10893 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10894 # It is most probably a Windows format PATH. 10895 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10896 else 10897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10898 fi 10899 # FIXME: find the short name or the path components, as spaces are 10900 # common. (e.g. "Program Files" -> "PROGRA~1") 10901 ;; 10902 esac 10903 10904 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10905 postinstall_cmds='base_file=`basename \$file`~ 10906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10907 dldir=$destdir/`dirname \$dlpath`~ 10908 test -d \$dldir || mkdir -p \$dldir~ 10909 $install_prog $dir/$dlname \$dldir/$dlname' 10910 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10911 dlpath=$dir/\$dldll~ 10912 $RM \$dlpath' 10913 shlibpath_overrides_runpath=yes 10914 dynamic_linker='Win32 link.exe' 10915 ;; 10916 10917 *) 10918 # Assume MSVC wrapper 10919 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10920 dynamic_linker='Win32 ld.exe' 10921 ;; 10922 esac 10923 # FIXME: first we should search . and the directory the executable is in 10924 shlibpath_var=PATH 10925 ;; 10926 10927darwin* | rhapsody*) 10928 dynamic_linker="$host_os dyld" 10929 version_type=darwin 10930 need_lib_prefix=no 10931 need_version=no 10932 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10933 soname_spec='$libname$release$major$shared_ext' 10934 shlibpath_overrides_runpath=yes 10935 shlibpath_var=DYLD_LIBRARY_PATH 10936 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10937 10938 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10940 ;; 10941 10942dgux*) 10943 version_type=linux # correct to gnu/linux during the next big refactor 10944 need_lib_prefix=no 10945 need_version=no 10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10947 soname_spec='$libname$release$shared_ext$major' 10948 shlibpath_var=LD_LIBRARY_PATH 10949 ;; 10950 10951freebsd* | dragonfly*) 10952 # DragonFly does not have aout. When/if they implement a new 10953 # versioning mechanism, adjust this. 10954 if test -x /usr/bin/objformat; then 10955 objformat=`/usr/bin/objformat` 10956 else 10957 case $host_os in 10958 freebsd[23].*) objformat=aout ;; 10959 *) objformat=elf ;; 10960 esac 10961 fi 10962 version_type=freebsd-$objformat 10963 case $version_type in 10964 freebsd-elf*) 10965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10966 soname_spec='$libname$release$shared_ext$major' 10967 need_version=no 10968 need_lib_prefix=no 10969 ;; 10970 freebsd-*) 10971 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10972 need_version=yes 10973 ;; 10974 esac 10975 shlibpath_var=LD_LIBRARY_PATH 10976 case $host_os in 10977 freebsd2.*) 10978 shlibpath_overrides_runpath=yes 10979 ;; 10980 freebsd3.[01]* | freebsdelf3.[01]*) 10981 shlibpath_overrides_runpath=yes 10982 hardcode_into_libs=yes 10983 ;; 10984 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10985 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10986 shlibpath_overrides_runpath=no 10987 hardcode_into_libs=yes 10988 ;; 10989 *) # from 4.6 on, and DragonFly 10990 shlibpath_overrides_runpath=yes 10991 hardcode_into_libs=yes 10992 ;; 10993 esac 10994 ;; 10995 10996haiku*) 10997 version_type=linux # correct to gnu/linux during the next big refactor 10998 need_lib_prefix=no 10999 need_version=no 11000 dynamic_linker="$host_os runtime_loader" 11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11002 soname_spec='$libname$release$shared_ext$major' 11003 shlibpath_var=LIBRARY_PATH 11004 shlibpath_overrides_runpath=no 11005 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11006 hardcode_into_libs=yes 11007 ;; 11008 11009hpux9* | hpux10* | hpux11*) 11010 # Give a soname corresponding to the major version so that dld.sl refuses to 11011 # link against other versions. 11012 version_type=sunos 11013 need_lib_prefix=no 11014 need_version=no 11015 case $host_cpu in 11016 ia64*) 11017 shrext_cmds='.so' 11018 hardcode_into_libs=yes 11019 dynamic_linker="$host_os dld.so" 11020 shlibpath_var=LD_LIBRARY_PATH 11021 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11023 soname_spec='$libname$release$shared_ext$major' 11024 if test 32 = "$HPUX_IA64_MODE"; then 11025 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11026 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11027 else 11028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11029 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11030 fi 11031 ;; 11032 hppa*64*) 11033 shrext_cmds='.sl' 11034 hardcode_into_libs=yes 11035 dynamic_linker="$host_os dld.sl" 11036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11038 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11039 soname_spec='$libname$release$shared_ext$major' 11040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11042 ;; 11043 *) 11044 shrext_cmds='.sl' 11045 dynamic_linker="$host_os dld.sl" 11046 shlibpath_var=SHLIB_PATH 11047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11049 soname_spec='$libname$release$shared_ext$major' 11050 ;; 11051 esac 11052 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11053 postinstall_cmds='chmod 555 $lib' 11054 # or fails outright, so override atomically: 11055 install_override_mode=555 11056 ;; 11057 11058interix[3-9]*) 11059 version_type=linux # correct to gnu/linux during the next big refactor 11060 need_lib_prefix=no 11061 need_version=no 11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11063 soname_spec='$libname$release$shared_ext$major' 11064 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 shlibpath_overrides_runpath=no 11067 hardcode_into_libs=yes 11068 ;; 11069 11070irix5* | irix6* | nonstopux*) 11071 case $host_os in 11072 nonstopux*) version_type=nonstopux ;; 11073 *) 11074 if test yes = "$lt_cv_prog_gnu_ld"; then 11075 version_type=linux # correct to gnu/linux during the next big refactor 11076 else 11077 version_type=irix 11078 fi ;; 11079 esac 11080 need_lib_prefix=no 11081 need_version=no 11082 soname_spec='$libname$release$shared_ext$major' 11083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11084 case $host_os in 11085 irix5* | nonstopux*) 11086 libsuff= shlibsuff= 11087 ;; 11088 *) 11089 case $LD in # libtool.m4 will add one of these switches to LD 11090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11091 libsuff= shlibsuff= libmagic=32-bit;; 11092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11093 libsuff=32 shlibsuff=N32 libmagic=N32;; 11094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11095 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11096 *) libsuff= shlibsuff= libmagic=never-match;; 11097 esac 11098 ;; 11099 esac 11100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11101 shlibpath_overrides_runpath=no 11102 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11103 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11104 hardcode_into_libs=yes 11105 ;; 11106 11107# No shared lib support for Linux oldld, aout, or coff. 11108linux*oldld* | linux*aout* | linux*coff*) 11109 dynamic_linker=no 11110 ;; 11111 11112linux*android*) 11113 version_type=none # Android doesn't support versioned libraries. 11114 need_lib_prefix=no 11115 need_version=no 11116 library_names_spec='$libname$release$shared_ext' 11117 soname_spec='$libname$release$shared_ext' 11118 finish_cmds= 11119 shlibpath_var=LD_LIBRARY_PATH 11120 shlibpath_overrides_runpath=yes 11121 11122 # This implies no fast_install, which is unacceptable. 11123 # Some rework will be needed to allow for fast_install 11124 # before this can be enabled. 11125 hardcode_into_libs=yes 11126 11127 dynamic_linker='Android linker' 11128 # Don't embed -rpath directories since the linker doesn't support them. 11129 hardcode_libdir_flag_spec='-L$libdir' 11130 ;; 11131 11132# This must be glibc/ELF. 11133linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11134 version_type=linux # correct to gnu/linux during the next big refactor 11135 need_lib_prefix=no 11136 need_version=no 11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11138 soname_spec='$libname$release$shared_ext$major' 11139 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11140 shlibpath_var=LD_LIBRARY_PATH 11141 shlibpath_overrides_runpath=no 11142 11143 # Some binutils ld are patched to set DT_RUNPATH 11144 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11145 $as_echo_n "(cached) " >&6 11146else 11147 lt_cv_shlibpath_overrides_runpath=no 11148 save_LDFLAGS=$LDFLAGS 11149 save_libdir=$libdir 11150 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11151 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11153/* end confdefs.h. */ 11154 11155int 11156main () 11157{ 11158 11159 ; 11160 return 0; 11161} 11162_ACEOF 11163if ac_fn_c_try_link "$LINENO"; then : 11164 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11165 lt_cv_shlibpath_overrides_runpath=yes 11166fi 11167fi 11168rm -f core conftest.err conftest.$ac_objext \ 11169 conftest$ac_exeext conftest.$ac_ext 11170 LDFLAGS=$save_LDFLAGS 11171 libdir=$save_libdir 11172 11173fi 11174 11175 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11176 11177 # This implies no fast_install, which is unacceptable. 11178 # Some rework will be needed to allow for fast_install 11179 # before this can be enabled. 11180 hardcode_into_libs=yes 11181 11182 # Add ABI-specific directories to the system library path. 11183 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11184 11185 # Ideally, we could use ldconfig to report *all* directores which are 11186 # searched for libraries, however this is still not possible. Aside from not 11187 # being certain /sbin/ldconfig is available, command 11188 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11189 # even though it is searched at run-time. Try to do the best guess by 11190 # appending ld.so.conf contents (and includes) to the search path. 11191 if test -f /etc/ld.so.conf; then 11192 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 11193 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11194 fi 11195 11196 # We used to test for /lib/ld.so.1 and disable shared libraries on 11197 # powerpc, because MkLinux only supported shared libraries with the 11198 # GNU dynamic linker. Since this was broken with cross compilers, 11199 # most powerpc-linux boxes support dynamic linking these days and 11200 # people can always --disable-shared, the test was removed, and we 11201 # assume the GNU/Linux dynamic linker is in use. 11202 dynamic_linker='GNU/Linux ld.so' 11203 ;; 11204 11205netbsd*) 11206 version_type=sunos 11207 need_lib_prefix=no 11208 need_version=no 11209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11210 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11212 dynamic_linker='NetBSD (a.out) ld.so' 11213 else 11214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11215 soname_spec='$libname$release$shared_ext$major' 11216 dynamic_linker='NetBSD ld.elf_so' 11217 fi 11218 shlibpath_var=LD_LIBRARY_PATH 11219 shlibpath_overrides_runpath=yes 11220 hardcode_into_libs=yes 11221 ;; 11222 11223newsos6) 11224 version_type=linux # correct to gnu/linux during the next big refactor 11225 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11226 shlibpath_var=LD_LIBRARY_PATH 11227 shlibpath_overrides_runpath=yes 11228 ;; 11229 11230*nto* | *qnx*) 11231 version_type=qnx 11232 need_lib_prefix=no 11233 need_version=no 11234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11235 soname_spec='$libname$release$shared_ext$major' 11236 shlibpath_var=LD_LIBRARY_PATH 11237 shlibpath_overrides_runpath=no 11238 hardcode_into_libs=yes 11239 dynamic_linker='ldqnx.so' 11240 ;; 11241 11242openbsd* | bitrig*) 11243 version_type=sunos 11244 sys_lib_dlsearch_path_spec=/usr/lib 11245 need_lib_prefix=no 11246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11247 need_version=no 11248 else 11249 need_version=yes 11250 fi 11251 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11253 shlibpath_var=LD_LIBRARY_PATH 11254 shlibpath_overrides_runpath=yes 11255 ;; 11256 11257os2*) 11258 libname_spec='$name' 11259 version_type=windows 11260 shrext_cmds=.dll 11261 need_version=no 11262 need_lib_prefix=no 11263 # OS/2 can only load a DLL with a base name of 8 characters or less. 11264 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11265 v=$($ECHO $release$versuffix | tr -d .-); 11266 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11267 $ECHO $n$v`$shared_ext' 11268 library_names_spec='${libname}_dll.$libext' 11269 dynamic_linker='OS/2 ld.exe' 11270 shlibpath_var=BEGINLIBPATH 11271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11273 postinstall_cmds='base_file=`basename \$file`~ 11274 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11275 dldir=$destdir/`dirname \$dlpath`~ 11276 test -d \$dldir || mkdir -p \$dldir~ 11277 $install_prog $dir/$dlname \$dldir/$dlname~ 11278 chmod a+x \$dldir/$dlname~ 11279 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11280 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11281 fi' 11282 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11283 dlpath=$dir/\$dldll~ 11284 $RM \$dlpath' 11285 ;; 11286 11287osf3* | osf4* | osf5*) 11288 version_type=osf 11289 need_lib_prefix=no 11290 need_version=no 11291 soname_spec='$libname$release$shared_ext$major' 11292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11293 shlibpath_var=LD_LIBRARY_PATH 11294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11296 ;; 11297 11298rdos*) 11299 dynamic_linker=no 11300 ;; 11301 11302solaris*) 11303 version_type=linux # correct to gnu/linux during the next big refactor 11304 need_lib_prefix=no 11305 need_version=no 11306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11307 soname_spec='$libname$release$shared_ext$major' 11308 shlibpath_var=LD_LIBRARY_PATH 11309 shlibpath_overrides_runpath=yes 11310 hardcode_into_libs=yes 11311 # ldd complains unless libraries are executable 11312 postinstall_cmds='chmod +x $lib' 11313 ;; 11314 11315sunos4*) 11316 version_type=sunos 11317 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11319 shlibpath_var=LD_LIBRARY_PATH 11320 shlibpath_overrides_runpath=yes 11321 if test yes = "$with_gnu_ld"; then 11322 need_lib_prefix=no 11323 fi 11324 need_version=yes 11325 ;; 11326 11327sysv4 | sysv4.3*) 11328 version_type=linux # correct to gnu/linux during the next big refactor 11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11330 soname_spec='$libname$release$shared_ext$major' 11331 shlibpath_var=LD_LIBRARY_PATH 11332 case $host_vendor in 11333 sni) 11334 shlibpath_overrides_runpath=no 11335 need_lib_prefix=no 11336 runpath_var=LD_RUN_PATH 11337 ;; 11338 siemens) 11339 need_lib_prefix=no 11340 ;; 11341 motorola) 11342 need_lib_prefix=no 11343 need_version=no 11344 shlibpath_overrides_runpath=no 11345 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11346 ;; 11347 esac 11348 ;; 11349 11350sysv4*MP*) 11351 if test -d /usr/nec; then 11352 version_type=linux # correct to gnu/linux during the next big refactor 11353 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11354 soname_spec='$libname$shared_ext.$major' 11355 shlibpath_var=LD_LIBRARY_PATH 11356 fi 11357 ;; 11358 11359sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11360 version_type=sco 11361 need_lib_prefix=no 11362 need_version=no 11363 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11364 soname_spec='$libname$release$shared_ext$major' 11365 shlibpath_var=LD_LIBRARY_PATH 11366 shlibpath_overrides_runpath=yes 11367 hardcode_into_libs=yes 11368 if test yes = "$with_gnu_ld"; then 11369 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11370 else 11371 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11372 case $host_os in 11373 sco3.2v5*) 11374 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11375 ;; 11376 esac 11377 fi 11378 sys_lib_dlsearch_path_spec='/usr/lib' 11379 ;; 11380 11381tpf*) 11382 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11383 version_type=linux # correct to gnu/linux during the next big refactor 11384 need_lib_prefix=no 11385 need_version=no 11386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11387 shlibpath_var=LD_LIBRARY_PATH 11388 shlibpath_overrides_runpath=no 11389 hardcode_into_libs=yes 11390 ;; 11391 11392uts4*) 11393 version_type=linux # correct to gnu/linux during the next big refactor 11394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11395 soname_spec='$libname$release$shared_ext$major' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 ;; 11398 11399*) 11400 dynamic_linker=no 11401 ;; 11402esac 11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11404$as_echo "$dynamic_linker" >&6; } 11405test no = "$dynamic_linker" && can_build_shared=no 11406 11407variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11408if test yes = "$GCC"; then 11409 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11410fi 11411 11412if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11413 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11414fi 11415 11416if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11417 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11418fi 11419 11420# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11421configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11422 11423# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11424func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11425 11426# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11427configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11526$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11527hardcode_action= 11528if test -n "$hardcode_libdir_flag_spec" || 11529 test -n "$runpath_var" || 11530 test yes = "$hardcode_automatic"; then 11531 11532 # We can hardcode non-existent directories. 11533 if test no != "$hardcode_direct" && 11534 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11535 # have to relink, otherwise we might link with an installed library 11536 # when we should be linking with a yet-to-be-installed one 11537 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11538 test no != "$hardcode_minus_L"; then 11539 # Linking always hardcodes the temporary library directory. 11540 hardcode_action=relink 11541 else 11542 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11543 hardcode_action=immediate 11544 fi 11545else 11546 # We cannot hardcode anything, or else we can only hardcode existing 11547 # directories. 11548 hardcode_action=unsupported 11549fi 11550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11551$as_echo "$hardcode_action" >&6; } 11552 11553if test relink = "$hardcode_action" || 11554 test yes = "$inherit_rpath"; then 11555 # Fast installation is not supported 11556 enable_fast_install=no 11557elif test yes = "$shlibpath_overrides_runpath" || 11558 test no = "$enable_shared"; then 11559 # Fast installation is not necessary 11560 enable_fast_install=needless 11561fi 11562 11563 11564 11565 11566 11567 11568 if test yes != "$enable_dlopen"; then 11569 enable_dlopen=unknown 11570 enable_dlopen_self=unknown 11571 enable_dlopen_self_static=unknown 11572else 11573 lt_cv_dlopen=no 11574 lt_cv_dlopen_libs= 11575 11576 case $host_os in 11577 beos*) 11578 lt_cv_dlopen=load_add_on 11579 lt_cv_dlopen_libs= 11580 lt_cv_dlopen_self=yes 11581 ;; 11582 11583 mingw* | pw32* | cegcc*) 11584 lt_cv_dlopen=LoadLibrary 11585 lt_cv_dlopen_libs= 11586 ;; 11587 11588 cygwin*) 11589 lt_cv_dlopen=dlopen 11590 lt_cv_dlopen_libs= 11591 ;; 11592 11593 darwin*) 11594 # if libdl is installed we need to link against it 11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11596$as_echo_n "checking for dlopen in -ldl... " >&6; } 11597if ${ac_cv_lib_dl_dlopen+:} false; then : 11598 $as_echo_n "(cached) " >&6 11599else 11600 ac_check_lib_save_LIBS=$LIBS 11601LIBS="-ldl $LIBS" 11602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11603/* end confdefs.h. */ 11604 11605/* Override any GCC internal prototype to avoid an error. 11606 Use char because int might match the return type of a GCC 11607 builtin and then its argument prototype would still apply. */ 11608#ifdef __cplusplus 11609extern "C" 11610#endif 11611char dlopen (); 11612int 11613main () 11614{ 11615return dlopen (); 11616 ; 11617 return 0; 11618} 11619_ACEOF 11620if ac_fn_c_try_link "$LINENO"; then : 11621 ac_cv_lib_dl_dlopen=yes 11622else 11623 ac_cv_lib_dl_dlopen=no 11624fi 11625rm -f core conftest.err conftest.$ac_objext \ 11626 conftest$ac_exeext conftest.$ac_ext 11627LIBS=$ac_check_lib_save_LIBS 11628fi 11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11630$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11631if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11632 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11633else 11634 11635 lt_cv_dlopen=dyld 11636 lt_cv_dlopen_libs= 11637 lt_cv_dlopen_self=yes 11638 11639fi 11640 11641 ;; 11642 11643 tpf*) 11644 # Don't try to run any link tests for TPF. We know it's impossible 11645 # because TPF is a cross-compiler, and we know how we open DSOs. 11646 lt_cv_dlopen=dlopen 11647 lt_cv_dlopen_libs= 11648 lt_cv_dlopen_self=no 11649 ;; 11650 11651 *) 11652 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11653if test "x$ac_cv_func_shl_load" = xyes; then : 11654 lt_cv_dlopen=shl_load 11655else 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11657$as_echo_n "checking for shl_load in -ldld... " >&6; } 11658if ${ac_cv_lib_dld_shl_load+:} false; then : 11659 $as_echo_n "(cached) " >&6 11660else 11661 ac_check_lib_save_LIBS=$LIBS 11662LIBS="-ldld $LIBS" 11663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11664/* end confdefs.h. */ 11665 11666/* Override any GCC internal prototype to avoid an error. 11667 Use char because int might match the return type of a GCC 11668 builtin and then its argument prototype would still apply. */ 11669#ifdef __cplusplus 11670extern "C" 11671#endif 11672char shl_load (); 11673int 11674main () 11675{ 11676return shl_load (); 11677 ; 11678 return 0; 11679} 11680_ACEOF 11681if ac_fn_c_try_link "$LINENO"; then : 11682 ac_cv_lib_dld_shl_load=yes 11683else 11684 ac_cv_lib_dld_shl_load=no 11685fi 11686rm -f core conftest.err conftest.$ac_objext \ 11687 conftest$ac_exeext conftest.$ac_ext 11688LIBS=$ac_check_lib_save_LIBS 11689fi 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11691$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11692if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11693 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11694else 11695 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11696if test "x$ac_cv_func_dlopen" = xyes; then : 11697 lt_cv_dlopen=dlopen 11698else 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11700$as_echo_n "checking for dlopen in -ldl... " >&6; } 11701if ${ac_cv_lib_dl_dlopen+:} false; then : 11702 $as_echo_n "(cached) " >&6 11703else 11704 ac_check_lib_save_LIBS=$LIBS 11705LIBS="-ldl $LIBS" 11706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11707/* end confdefs.h. */ 11708 11709/* Override any GCC internal prototype to avoid an error. 11710 Use char because int might match the return type of a GCC 11711 builtin and then its argument prototype would still apply. */ 11712#ifdef __cplusplus 11713extern "C" 11714#endif 11715char dlopen (); 11716int 11717main () 11718{ 11719return dlopen (); 11720 ; 11721 return 0; 11722} 11723_ACEOF 11724if ac_fn_c_try_link "$LINENO"; then : 11725 ac_cv_lib_dl_dlopen=yes 11726else 11727 ac_cv_lib_dl_dlopen=no 11728fi 11729rm -f core conftest.err conftest.$ac_objext \ 11730 conftest$ac_exeext conftest.$ac_ext 11731LIBS=$ac_check_lib_save_LIBS 11732fi 11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11734$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11735if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11736 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11737else 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11739$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11740if ${ac_cv_lib_svld_dlopen+:} false; then : 11741 $as_echo_n "(cached) " >&6 11742else 11743 ac_check_lib_save_LIBS=$LIBS 11744LIBS="-lsvld $LIBS" 11745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11746/* end confdefs.h. */ 11747 11748/* Override any GCC internal prototype to avoid an error. 11749 Use char because int might match the return type of a GCC 11750 builtin and then its argument prototype would still apply. */ 11751#ifdef __cplusplus 11752extern "C" 11753#endif 11754char dlopen (); 11755int 11756main () 11757{ 11758return dlopen (); 11759 ; 11760 return 0; 11761} 11762_ACEOF 11763if ac_fn_c_try_link "$LINENO"; then : 11764 ac_cv_lib_svld_dlopen=yes 11765else 11766 ac_cv_lib_svld_dlopen=no 11767fi 11768rm -f core conftest.err conftest.$ac_objext \ 11769 conftest$ac_exeext conftest.$ac_ext 11770LIBS=$ac_check_lib_save_LIBS 11771fi 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11773$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11774if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11775 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11776else 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11778$as_echo_n "checking for dld_link in -ldld... " >&6; } 11779if ${ac_cv_lib_dld_dld_link+:} false; then : 11780 $as_echo_n "(cached) " >&6 11781else 11782 ac_check_lib_save_LIBS=$LIBS 11783LIBS="-ldld $LIBS" 11784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11785/* end confdefs.h. */ 11786 11787/* Override any GCC internal prototype to avoid an error. 11788 Use char because int might match the return type of a GCC 11789 builtin and then its argument prototype would still apply. */ 11790#ifdef __cplusplus 11791extern "C" 11792#endif 11793char dld_link (); 11794int 11795main () 11796{ 11797return dld_link (); 11798 ; 11799 return 0; 11800} 11801_ACEOF 11802if ac_fn_c_try_link "$LINENO"; then : 11803 ac_cv_lib_dld_dld_link=yes 11804else 11805 ac_cv_lib_dld_dld_link=no 11806fi 11807rm -f core conftest.err conftest.$ac_objext \ 11808 conftest$ac_exeext conftest.$ac_ext 11809LIBS=$ac_check_lib_save_LIBS 11810fi 11811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11812$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11813if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11814 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11815fi 11816 11817 11818fi 11819 11820 11821fi 11822 11823 11824fi 11825 11826 11827fi 11828 11829 11830fi 11831 11832 ;; 11833 esac 11834 11835 if test no = "$lt_cv_dlopen"; then 11836 enable_dlopen=no 11837 else 11838 enable_dlopen=yes 11839 fi 11840 11841 case $lt_cv_dlopen in 11842 dlopen) 11843 save_CPPFLAGS=$CPPFLAGS 11844 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11845 11846 save_LDFLAGS=$LDFLAGS 11847 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11848 11849 save_LIBS=$LIBS 11850 LIBS="$lt_cv_dlopen_libs $LIBS" 11851 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11853$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11854if ${lt_cv_dlopen_self+:} false; then : 11855 $as_echo_n "(cached) " >&6 11856else 11857 if test yes = "$cross_compiling"; then : 11858 lt_cv_dlopen_self=cross 11859else 11860 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11861 lt_status=$lt_dlunknown 11862 cat > conftest.$ac_ext <<_LT_EOF 11863#line $LINENO "configure" 11864#include "confdefs.h" 11865 11866#if HAVE_DLFCN_H 11867#include <dlfcn.h> 11868#endif 11869 11870#include <stdio.h> 11871 11872#ifdef RTLD_GLOBAL 11873# define LT_DLGLOBAL RTLD_GLOBAL 11874#else 11875# ifdef DL_GLOBAL 11876# define LT_DLGLOBAL DL_GLOBAL 11877# else 11878# define LT_DLGLOBAL 0 11879# endif 11880#endif 11881 11882/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11883 find out it does not work in some platform. */ 11884#ifndef LT_DLLAZY_OR_NOW 11885# ifdef RTLD_LAZY 11886# define LT_DLLAZY_OR_NOW RTLD_LAZY 11887# else 11888# ifdef DL_LAZY 11889# define LT_DLLAZY_OR_NOW DL_LAZY 11890# else 11891# ifdef RTLD_NOW 11892# define LT_DLLAZY_OR_NOW RTLD_NOW 11893# else 11894# ifdef DL_NOW 11895# define LT_DLLAZY_OR_NOW DL_NOW 11896# else 11897# define LT_DLLAZY_OR_NOW 0 11898# endif 11899# endif 11900# endif 11901# endif 11902#endif 11903 11904/* When -fvisibility=hidden is used, assume the code has been annotated 11905 correspondingly for the symbols needed. */ 11906#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11907int fnord () __attribute__((visibility("default"))); 11908#endif 11909 11910int fnord () { return 42; } 11911int main () 11912{ 11913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11914 int status = $lt_dlunknown; 11915 11916 if (self) 11917 { 11918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11919 else 11920 { 11921 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11922 else puts (dlerror ()); 11923 } 11924 /* dlclose (self); */ 11925 } 11926 else 11927 puts (dlerror ()); 11928 11929 return status; 11930} 11931_LT_EOF 11932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11933 (eval $ac_link) 2>&5 11934 ac_status=$? 11935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11936 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11937 (./conftest; exit; ) >&5 2>/dev/null 11938 lt_status=$? 11939 case x$lt_status in 11940 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11941 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11942 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11943 esac 11944 else : 11945 # compilation failed 11946 lt_cv_dlopen_self=no 11947 fi 11948fi 11949rm -fr conftest* 11950 11951 11952fi 11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11954$as_echo "$lt_cv_dlopen_self" >&6; } 11955 11956 if test yes = "$lt_cv_dlopen_self"; then 11957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11959$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11960if ${lt_cv_dlopen_self_static+:} false; then : 11961 $as_echo_n "(cached) " >&6 11962else 11963 if test yes = "$cross_compiling"; then : 11964 lt_cv_dlopen_self_static=cross 11965else 11966 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11967 lt_status=$lt_dlunknown 11968 cat > conftest.$ac_ext <<_LT_EOF 11969#line $LINENO "configure" 11970#include "confdefs.h" 11971 11972#if HAVE_DLFCN_H 11973#include <dlfcn.h> 11974#endif 11975 11976#include <stdio.h> 11977 11978#ifdef RTLD_GLOBAL 11979# define LT_DLGLOBAL RTLD_GLOBAL 11980#else 11981# ifdef DL_GLOBAL 11982# define LT_DLGLOBAL DL_GLOBAL 11983# else 11984# define LT_DLGLOBAL 0 11985# endif 11986#endif 11987 11988/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11989 find out it does not work in some platform. */ 11990#ifndef LT_DLLAZY_OR_NOW 11991# ifdef RTLD_LAZY 11992# define LT_DLLAZY_OR_NOW RTLD_LAZY 11993# else 11994# ifdef DL_LAZY 11995# define LT_DLLAZY_OR_NOW DL_LAZY 11996# else 11997# ifdef RTLD_NOW 11998# define LT_DLLAZY_OR_NOW RTLD_NOW 11999# else 12000# ifdef DL_NOW 12001# define LT_DLLAZY_OR_NOW DL_NOW 12002# else 12003# define LT_DLLAZY_OR_NOW 0 12004# endif 12005# endif 12006# endif 12007# endif 12008#endif 12009 12010/* When -fvisibility=hidden is used, assume the code has been annotated 12011 correspondingly for the symbols needed. */ 12012#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12013int fnord () __attribute__((visibility("default"))); 12014#endif 12015 12016int fnord () { return 42; } 12017int main () 12018{ 12019 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12020 int status = $lt_dlunknown; 12021 12022 if (self) 12023 { 12024 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12025 else 12026 { 12027 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12028 else puts (dlerror ()); 12029 } 12030 /* dlclose (self); */ 12031 } 12032 else 12033 puts (dlerror ()); 12034 12035 return status; 12036} 12037_LT_EOF 12038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12039 (eval $ac_link) 2>&5 12040 ac_status=$? 12041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12042 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12043 (./conftest; exit; ) >&5 2>/dev/null 12044 lt_status=$? 12045 case x$lt_status in 12046 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12047 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12048 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12049 esac 12050 else : 12051 # compilation failed 12052 lt_cv_dlopen_self_static=no 12053 fi 12054fi 12055rm -fr conftest* 12056 12057 12058fi 12059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12060$as_echo "$lt_cv_dlopen_self_static" >&6; } 12061 fi 12062 12063 CPPFLAGS=$save_CPPFLAGS 12064 LDFLAGS=$save_LDFLAGS 12065 LIBS=$save_LIBS 12066 ;; 12067 esac 12068 12069 case $lt_cv_dlopen_self in 12070 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12071 *) enable_dlopen_self=unknown ;; 12072 esac 12073 12074 case $lt_cv_dlopen_self_static in 12075 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12076 *) enable_dlopen_self_static=unknown ;; 12077 esac 12078fi 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096striplib= 12097old_striplib= 12098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12099$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12100if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12101 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12102 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12104$as_echo "yes" >&6; } 12105else 12106# FIXME - insert some real tests, host_os isn't really good enough 12107 case $host_os in 12108 darwin*) 12109 if test -n "$STRIP"; then 12110 striplib="$STRIP -x" 12111 old_striplib="$STRIP -S" 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12113$as_echo "yes" >&6; } 12114 else 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12116$as_echo "no" >&6; } 12117 fi 12118 ;; 12119 *) 12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12121$as_echo "no" >&6; } 12122 ;; 12123 esac 12124fi 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 # Report what library types will actually be built 12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12139$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12141$as_echo "$can_build_shared" >&6; } 12142 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12144$as_echo_n "checking whether to build shared libraries... " >&6; } 12145 test no = "$can_build_shared" && enable_shared=no 12146 12147 # On AIX, shared libraries and static libraries use the same namespace, and 12148 # are all built from PIC. 12149 case $host_os in 12150 aix3*) 12151 test yes = "$enable_shared" && enable_static=no 12152 if test -n "$RANLIB"; then 12153 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12154 postinstall_cmds='$RANLIB $lib' 12155 fi 12156 ;; 12157 12158 aix[4-9]*) 12159 if test ia64 != "$host_cpu"; then 12160 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12161 yes,aix,yes) ;; # shared object as lib.so file only 12162 yes,svr4,*) ;; # shared object as lib.so archive member only 12163 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12164 esac 12165 fi 12166 ;; 12167 esac 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12169$as_echo "$enable_shared" >&6; } 12170 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12172$as_echo_n "checking whether to build static libraries... " >&6; } 12173 # Make sure either enable_shared or enable_static is yes. 12174 test yes = "$enable_shared" || enable_static=yes 12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12176$as_echo "$enable_static" >&6; } 12177 12178 12179 12180 12181fi 12182ac_ext=c 12183ac_cpp='$CPP $CPPFLAGS' 12184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12186ac_compiler_gnu=$ac_cv_c_compiler_gnu 12187 12188CC=$lt_save_CC 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 ac_config_commands="$ac_config_commands libtool" 12205 12206 12207 12208 12209# Only expand once: 12210 12211 12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12213$as_echo_n "checking whether ln -s works... " >&6; } 12214LN_S=$as_ln_s 12215if test "$LN_S" = "ln -s"; then 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12217$as_echo "yes" >&6; } 12218else 12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12220$as_echo "no, using $LN_S" >&6; } 12221fi 12222 12223 12224# Check whether --with-gpg2 was given. 12225if test "${with_gpg2+set}" = set; then : 12226 withval=$with_gpg2; gpg2_option="$withval" 12227else 12228 gpg2_option= 12229fi 12230 12231 12232case "$gpg2_option" in 12233y*|Y*) 12234 for ac_prog in gpg2 gpg 12235do 12236 # Extract the first word of "$ac_prog", so it can be a program name with args. 12237set dummy $ac_prog; ac_word=$2 12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12239$as_echo_n "checking for $ac_word... " >&6; } 12240if ${ac_cv_path_GPG+:} false; then : 12241 $as_echo_n "(cached) " >&6 12242else 12243 case $GPG in 12244 [\\/]* | ?:[\\/]*) 12245 ac_cv_path_GPG="$GPG" # Let the user override the test with a path. 12246 ;; 12247 *) 12248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12249for as_dir in $LPATH 12250do 12251 IFS=$as_save_IFS 12252 test -z "$as_dir" && as_dir=. 12253 for ac_exec_ext in '' $ac_executable_extensions; do 12254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12255 ac_cv_path_GPG="$as_dir/$ac_word$ac_exec_ext" 12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12257 break 2 12258 fi 12259done 12260 done 12261IFS=$as_save_IFS 12262 12263 ;; 12264esac 12265fi 12266GPG=$ac_cv_path_GPG 12267if test -n "$GPG"; then 12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG" >&5 12269$as_echo "$GPG" >&6; } 12270else 12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12272$as_echo "no" >&6; } 12273fi 12274 12275 12276 test -n "$GPG" && break 12277done 12278test -n "$GPG" || GPG="/usr/bin/gpg2" 12279 12280 ;; 12281*) 12282 for ac_prog in gpg gpg2 12283do 12284 # Extract the first word of "$ac_prog", so it can be a program name with args. 12285set dummy $ac_prog; ac_word=$2 12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12287$as_echo_n "checking for $ac_word... " >&6; } 12288if ${ac_cv_path_GPG+:} false; then : 12289 $as_echo_n "(cached) " >&6 12290else 12291 case $GPG in 12292 [\\/]* | ?:[\\/]*) 12293 ac_cv_path_GPG="$GPG" # Let the user override the test with a path. 12294 ;; 12295 *) 12296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12297for as_dir in $LPATH 12298do 12299 IFS=$as_save_IFS 12300 test -z "$as_dir" && as_dir=. 12301 for ac_exec_ext in '' $ac_executable_extensions; do 12302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12303 ac_cv_path_GPG="$as_dir/$ac_word$ac_exec_ext" 12304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12305 break 2 12306 fi 12307done 12308 done 12309IFS=$as_save_IFS 12310 12311 ;; 12312esac 12313fi 12314GPG=$ac_cv_path_GPG 12315if test -n "$GPG"; then 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG" >&5 12317$as_echo "$GPG" >&6; } 12318else 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12320$as_echo "no" >&6; } 12321fi 12322 12323 12324 test -n "$GPG" && break 12325done 12326test -n "$GPG" || GPG="/usr/bin/gpg" 12327 12328 ;; 12329esac 12330if test ! -x "$GPG" 12331then 12332 as_fn_error $? "$GPG not found" "$LINENO" 5 12333 exit 1 12334fi 12335for ac_prog in perl5 perl 12336do 12337 # Extract the first word of "$ac_prog", so it can be a program name with args. 12338set dummy $ac_prog; ac_word=$2 12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12340$as_echo_n "checking for $ac_word... " >&6; } 12341if ${ac_cv_path_PERL+:} false; then : 12342 $as_echo_n "(cached) " >&6 12343else 12344 case $PERL in 12345 [\\/]* | ?:[\\/]*) 12346 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 12347 ;; 12348 *) 12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12350for as_dir in $LPATH 12351do 12352 IFS=$as_save_IFS 12353 test -z "$as_dir" && as_dir=. 12354 for ac_exec_ext in '' $ac_executable_extensions; do 12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12356 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12358 break 2 12359 fi 12360done 12361 done 12362IFS=$as_save_IFS 12363 12364 ;; 12365esac 12366fi 12367PERL=$ac_cv_path_PERL 12368if test -n "$PERL"; then 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 12370$as_echo "$PERL" >&6; } 12371else 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12373$as_echo "no" >&6; } 12374fi 12375 12376 12377 test -n "$PERL" && break 12378done 12379test -n "$PERL" || PERL="perl" 12380 12381 12382if test "$PERL" = "perl" 12383then 12384 as_fn_error $? "Perl is required" "$LINENO" 5 12385fi 12386 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpg charset" >&5 12388$as_echo_n "checking for gpg charset... " >&6; } 12389if ${ac_cv_gpg_charset+:} false; then : 12390 $as_echo_n "(cached) " >&6 12391else 12392 rm -rf conftestdir 12393mkdir conftestdir 12394 12395GNUPGHOME=`pwd`/conftestdir 12396export GNUPGHOME 12397 12398if $GPG --charset utf-8 --list-keys >/dev/null 2>&1 12399then 12400 ac_cv_gpg_charset=utf-8 12401else 12402 ac_cv_gpg_charset=iso-8859-1 12403fi 12404rm -rf conftestdir 12405unset GNUPGHOME 12406 12407 12408fi 12409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gpg_charset" >&5 12410$as_echo "$ac_cv_gpg_charset" >&6; } 12411 12412 12413cat >>confdefs.h <<_ACEOF 12414#define GPG_CHARSET "$ac_cv_gpg_charset" 12415_ACEOF 12416 12417 12418rm -rf conftempdir 12419mkdir conftempdir 12420 12421if $GPG --homedir conftempdir --list-keys --allow-secret-key-import >/dev/null 12422then 12423 12424cat >>confdefs.h <<_ACEOF 12425#define GPG_HAS_ALLOW_SECRET_KEY_IMPORT 1 12426_ACEOF 12427 12428fi 12429 12430rm -rf conftempdir 12431 12432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --pinentry-mode option" >&5 12433$as_echo_n "checking for --pinentry-mode option... " >&6; } 12434if ${ac_cv_gpg_pinentry_mode+:} false; then : 12435 $as_echo_n "(cached) " >&6 12436else 12437 12438 12439if $GPG --list-keys --pinentry-mode loopback >/dev/null 2>&1 12440then 12441 ac_cv_gpg_pinentry_mode="yes" 12442else 12443 ac_cv_gpg_pinentry_mode="no" 12444fi 12445 12446fi 12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gpg_pinentry_mode" >&5 12448$as_echo "$ac_cv_gpg_pinentry_mode" >&6; } 12449 12450if test "$ac_cv_gpg_pinentry_mode" = "yes" 12451then 12452 12453cat >>confdefs.h <<_ACEOF 12454#define GPG_REQUIRES_PINENTRY_MODE_OPTION 1 12455_ACEOF 12456 12457fi 12458 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 12460$as_echo_n "checking for ANSI C header files... " >&6; } 12461if ${ac_cv_header_stdc+:} false; then : 12462 $as_echo_n "(cached) " >&6 12463else 12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12465/* end confdefs.h. */ 12466#include <stdlib.h> 12467#include <stdarg.h> 12468#include <string.h> 12469#include <float.h> 12470 12471int 12472main () 12473{ 12474 12475 ; 12476 return 0; 12477} 12478_ACEOF 12479if ac_fn_c_try_compile "$LINENO"; then : 12480 ac_cv_header_stdc=yes 12481else 12482 ac_cv_header_stdc=no 12483fi 12484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12485 12486if test $ac_cv_header_stdc = yes; then 12487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12489/* end confdefs.h. */ 12490#include <string.h> 12491 12492_ACEOF 12493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12494 $EGREP "memchr" >/dev/null 2>&1; then : 12495 12496else 12497 ac_cv_header_stdc=no 12498fi 12499rm -f conftest* 12500 12501fi 12502 12503if test $ac_cv_header_stdc = yes; then 12504 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12506/* end confdefs.h. */ 12507#include <stdlib.h> 12508 12509_ACEOF 12510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12511 $EGREP "free" >/dev/null 2>&1; then : 12512 12513else 12514 ac_cv_header_stdc=no 12515fi 12516rm -f conftest* 12517 12518fi 12519 12520if test $ac_cv_header_stdc = yes; then 12521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 12522 if test "$cross_compiling" = yes; then : 12523 : 12524else 12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12526/* end confdefs.h. */ 12527#include <ctype.h> 12528#include <stdlib.h> 12529#if ((' ' & 0x0FF) == 0x020) 12530# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 12531# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 12532#else 12533# define ISLOWER(c) \ 12534 (('a' <= (c) && (c) <= 'i') \ 12535 || ('j' <= (c) && (c) <= 'r') \ 12536 || ('s' <= (c) && (c) <= 'z')) 12537# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 12538#endif 12539 12540#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 12541int 12542main () 12543{ 12544 int i; 12545 for (i = 0; i < 256; i++) 12546 if (XOR (islower (i), ISLOWER (i)) 12547 || toupper (i) != TOUPPER (i)) 12548 return 2; 12549 return 0; 12550} 12551_ACEOF 12552if ac_fn_c_try_run "$LINENO"; then : 12553 12554else 12555 ac_cv_header_stdc=no 12556fi 12557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12558 conftest.$ac_objext conftest.beam conftest.$ac_ext 12559fi 12560 12561fi 12562fi 12563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12564$as_echo "$ac_cv_header_stdc" >&6; } 12565if test $ac_cv_header_stdc = yes; then 12566 12567$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12568 12569fi 12570 12571for ac_header in unistd.h sys/wait.h sys/time.h unistd.h fcntl.h 12572do : 12573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12574ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12575if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12576 cat >>confdefs.h <<_ACEOF 12577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12578_ACEOF 12579 12580fi 12581 12582done 12583 12584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12585$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12586if ${ac_cv_header_sys_wait_h+:} false; then : 12587 $as_echo_n "(cached) " >&6 12588else 12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12590/* end confdefs.h. */ 12591#include <sys/types.h> 12592#include <sys/wait.h> 12593#ifndef WEXITSTATUS 12594# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12595#endif 12596#ifndef WIFEXITED 12597# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12598#endif 12599 12600int 12601main () 12602{ 12603 int s; 12604 wait (&s); 12605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12606 ; 12607 return 0; 12608} 12609_ACEOF 12610if ac_fn_c_try_compile "$LINENO"; then : 12611 ac_cv_header_sys_wait_h=yes 12612else 12613 ac_cv_header_sys_wait_h=no 12614fi 12615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12616fi 12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12618$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12619if test $ac_cv_header_sys_wait_h = yes; then 12620 12621$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12622 12623fi 12624 12625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12626$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12627if ${ac_cv_header_time+:} false; then : 12628 $as_echo_n "(cached) " >&6 12629else 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12631/* end confdefs.h. */ 12632#include <sys/types.h> 12633#include <sys/time.h> 12634#include <time.h> 12635 12636int 12637main () 12638{ 12639if ((struct tm *) 0) 12640return 0; 12641 ; 12642 return 0; 12643} 12644_ACEOF 12645if ac_fn_c_try_compile "$LINENO"; then : 12646 ac_cv_header_time=yes 12647else 12648 ac_cv_header_time=no 12649fi 12650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12651fi 12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12653$as_echo "$ac_cv_header_time" >&6; } 12654if test $ac_cv_header_time = yes; then 12655 12656$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12657 12658fi 12659 12660 12661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12662$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12663if ${ac_cv_c_const+:} false; then : 12664 $as_echo_n "(cached) " >&6 12665else 12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12667/* end confdefs.h. */ 12668 12669int 12670main () 12671{ 12672 12673#ifndef __cplusplus 12674 /* Ultrix mips cc rejects this sort of thing. */ 12675 typedef int charset[2]; 12676 const charset cs = { 0, 0 }; 12677 /* SunOS 4.1.1 cc rejects this. */ 12678 char const *const *pcpcc; 12679 char **ppc; 12680 /* NEC SVR4.0.2 mips cc rejects this. */ 12681 struct point {int x, y;}; 12682 static struct point const zero = {0,0}; 12683 /* AIX XL C 1.02.0.0 rejects this. 12684 It does not let you subtract one const X* pointer from another in 12685 an arm of an if-expression whose if-part is not a constant 12686 expression */ 12687 const char *g = "string"; 12688 pcpcc = &g + (g ? g-g : 0); 12689 /* HPUX 7.0 cc rejects these. */ 12690 ++pcpcc; 12691 ppc = (char**) pcpcc; 12692 pcpcc = (char const *const *) ppc; 12693 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12694 char tx; 12695 char *t = &tx; 12696 char const *s = 0 ? (char *) 0 : (char const *) 0; 12697 12698 *t++ = 0; 12699 if (s) return 0; 12700 } 12701 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12702 int x[] = {25, 17}; 12703 const int *foo = &x[0]; 12704 ++foo; 12705 } 12706 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12707 typedef const int *iptr; 12708 iptr p = 0; 12709 ++p; 12710 } 12711 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12712 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12713 struct s { int j; const int *ap[3]; } bx; 12714 struct s *b = &bx; b->j = 5; 12715 } 12716 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12717 const int foo = 10; 12718 if (!foo) return 0; 12719 } 12720 return !cs[0] && !zero.x; 12721#endif 12722 12723 ; 12724 return 0; 12725} 12726_ACEOF 12727if ac_fn_c_try_compile "$LINENO"; then : 12728 ac_cv_c_const=yes 12729else 12730 ac_cv_c_const=no 12731fi 12732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12733fi 12734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12735$as_echo "$ac_cv_c_const" >&6; } 12736if test $ac_cv_c_const = no; then 12737 12738$as_echo "#define const /**/" >>confdefs.h 12739 12740fi 12741 12742ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12743if test "x$ac_cv_type_pid_t" = xyes; then : 12744 12745else 12746 12747cat >>confdefs.h <<_ACEOF 12748#define pid_t int 12749_ACEOF 12750 12751fi 12752 12753ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12754if test "x$ac_cv_type_size_t" = xyes; then : 12755 12756else 12757 12758cat >>confdefs.h <<_ACEOF 12759#define size_t unsigned int 12760_ACEOF 12761 12762fi 12763 12764# Check whether --enable-largefile was given. 12765if test "${enable_largefile+set}" = set; then : 12766 enableval=$enable_largefile; 12767fi 12768 12769if test "$enable_largefile" != no; then 12770 12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12772$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12773if ${ac_cv_sys_largefile_CC+:} false; then : 12774 $as_echo_n "(cached) " >&6 12775else 12776 ac_cv_sys_largefile_CC=no 12777 if test "$GCC" != yes; then 12778 ac_save_CC=$CC 12779 while :; do 12780 # IRIX 6.2 and later do not support large files by default, 12781 # so use the C compiler's -n32 option if that helps. 12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12783/* end confdefs.h. */ 12784#include <sys/types.h> 12785 /* Check that off_t can represent 2**63 - 1 correctly. 12786 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12787 since some C++ compilers masquerading as C compilers 12788 incorrectly reject 9223372036854775807. */ 12789#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12790 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12791 && LARGE_OFF_T % 2147483647 == 1) 12792 ? 1 : -1]; 12793int 12794main () 12795{ 12796 12797 ; 12798 return 0; 12799} 12800_ACEOF 12801 if ac_fn_c_try_compile "$LINENO"; then : 12802 break 12803fi 12804rm -f core conftest.err conftest.$ac_objext 12805 CC="$CC -n32" 12806 if ac_fn_c_try_compile "$LINENO"; then : 12807 ac_cv_sys_largefile_CC=' -n32'; break 12808fi 12809rm -f core conftest.err conftest.$ac_objext 12810 break 12811 done 12812 CC=$ac_save_CC 12813 rm -f conftest.$ac_ext 12814 fi 12815fi 12816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12817$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12818 if test "$ac_cv_sys_largefile_CC" != no; then 12819 CC=$CC$ac_cv_sys_largefile_CC 12820 fi 12821 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12823$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12824if ${ac_cv_sys_file_offset_bits+:} false; then : 12825 $as_echo_n "(cached) " >&6 12826else 12827 while :; do 12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12829/* end confdefs.h. */ 12830#include <sys/types.h> 12831 /* Check that off_t can represent 2**63 - 1 correctly. 12832 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12833 since some C++ compilers masquerading as C compilers 12834 incorrectly reject 9223372036854775807. */ 12835#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12837 && LARGE_OFF_T % 2147483647 == 1) 12838 ? 1 : -1]; 12839int 12840main () 12841{ 12842 12843 ; 12844 return 0; 12845} 12846_ACEOF 12847if ac_fn_c_try_compile "$LINENO"; then : 12848 ac_cv_sys_file_offset_bits=no; break 12849fi 12850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12852/* end confdefs.h. */ 12853#define _FILE_OFFSET_BITS 64 12854#include <sys/types.h> 12855 /* Check that off_t can represent 2**63 - 1 correctly. 12856 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12857 since some C++ compilers masquerading as C compilers 12858 incorrectly reject 9223372036854775807. */ 12859#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12861 && LARGE_OFF_T % 2147483647 == 1) 12862 ? 1 : -1]; 12863int 12864main () 12865{ 12866 12867 ; 12868 return 0; 12869} 12870_ACEOF 12871if ac_fn_c_try_compile "$LINENO"; then : 12872 ac_cv_sys_file_offset_bits=64; break 12873fi 12874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12875 ac_cv_sys_file_offset_bits=unknown 12876 break 12877done 12878fi 12879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12880$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12881case $ac_cv_sys_file_offset_bits in #( 12882 no | unknown) ;; 12883 *) 12884cat >>confdefs.h <<_ACEOF 12885#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12886_ACEOF 12887;; 12888esac 12889rm -rf conftest* 12890 if test $ac_cv_sys_file_offset_bits = unknown; then 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12892$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12893if ${ac_cv_sys_large_files+:} false; then : 12894 $as_echo_n "(cached) " >&6 12895else 12896 while :; do 12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12898/* end confdefs.h. */ 12899#include <sys/types.h> 12900 /* Check that off_t can represent 2**63 - 1 correctly. 12901 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12902 since some C++ compilers masquerading as C compilers 12903 incorrectly reject 9223372036854775807. */ 12904#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12905 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12906 && LARGE_OFF_T % 2147483647 == 1) 12907 ? 1 : -1]; 12908int 12909main () 12910{ 12911 12912 ; 12913 return 0; 12914} 12915_ACEOF 12916if ac_fn_c_try_compile "$LINENO"; then : 12917 ac_cv_sys_large_files=no; break 12918fi 12919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12921/* end confdefs.h. */ 12922#define _LARGE_FILES 1 12923#include <sys/types.h> 12924 /* Check that off_t can represent 2**63 - 1 correctly. 12925 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12926 since some C++ compilers masquerading as C compilers 12927 incorrectly reject 9223372036854775807. */ 12928#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 12929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12930 && LARGE_OFF_T % 2147483647 == 1) 12931 ? 1 : -1]; 12932int 12933main () 12934{ 12935 12936 ; 12937 return 0; 12938} 12939_ACEOF 12940if ac_fn_c_try_compile "$LINENO"; then : 12941 ac_cv_sys_large_files=1; break 12942fi 12943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12944 ac_cv_sys_large_files=unknown 12945 break 12946done 12947fi 12948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12949$as_echo "$ac_cv_sys_large_files" >&6; } 12950case $ac_cv_sys_large_files in #( 12951 no | unknown) ;; 12952 *) 12953cat >>confdefs.h <<_ACEOF 12954#define _LARGE_FILES $ac_cv_sys_large_files 12955_ACEOF 12956;; 12957esac 12958rm -rf conftest* 12959 fi 12960 12961 12962fi 12963 12964 12965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12966$as_echo_n "checking return type of signal handlers... " >&6; } 12967if ${ac_cv_type_signal+:} false; then : 12968 $as_echo_n "(cached) " >&6 12969else 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12971/* end confdefs.h. */ 12972#include <sys/types.h> 12973#include <signal.h> 12974 12975int 12976main () 12977{ 12978return *(signal (0, 0)) (0) == 1; 12979 ; 12980 return 0; 12981} 12982_ACEOF 12983if ac_fn_c_try_compile "$LINENO"; then : 12984 ac_cv_type_signal=int 12985else 12986 ac_cv_type_signal=void 12987fi 12988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12989fi 12990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12991$as_echo "$ac_cv_type_signal" >&6; } 12992 12993cat >>confdefs.h <<_ACEOF 12994#define RETSIGTYPE $ac_cv_type_signal 12995_ACEOF 12996 12997 12998for ac_func in gettimeofday 12999do : 13000 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 13001if test "x$ac_cv_func_gettimeofday" = xyes; then : 13002 cat >>confdefs.h <<_ACEOF 13003#define HAVE_GETTIMEOFDAY 1 13004_ACEOF 13005 13006fi 13007done 13008 13009 13010if test "$GCC" = yes ; then 13011 CFLAGS="$CFLAGS -Wall" 13012fi 13013 13014CFLAGS="-I.. -I$srcdir/.. $CFLAGS" 13015 13016 if test -d ${srcdir}/../docbook; then 13017 HAVE_SGML_TRUE= 13018 HAVE_SGML_FALSE='#' 13019else 13020 HAVE_SGML_TRUE='#' 13021 HAVE_SGML_FALSE= 13022fi 13023 13024 13025ac_config_files="$ac_config_files Makefile webgpg" 13026 13027cat >confcache <<\_ACEOF 13028# This file is a shell script that caches the results of configure 13029# tests run on this system so they can be shared between configure 13030# scripts and configure runs, see configure's option --config-cache. 13031# It is not useful on other systems. If it contains results you don't 13032# want to keep, you may remove or edit it. 13033# 13034# config.status only pays attention to the cache file if you give it 13035# the --recheck option to rerun configure. 13036# 13037# `ac_cv_env_foo' variables (set or unset) will be overridden when 13038# loading this file, other *unset* `ac_cv_foo' will be assigned the 13039# following values. 13040 13041_ACEOF 13042 13043# The following way of writing the cache mishandles newlines in values, 13044# but we know of no workaround that is simple, portable, and efficient. 13045# So, we kill variables containing newlines. 13046# Ultrix sh set writes to stderr and can't be redirected directly, 13047# and sets the high bit in the cache file unless we assign to the vars. 13048( 13049 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13050 eval ac_val=\$$ac_var 13051 case $ac_val in #( 13052 *${as_nl}*) 13053 case $ac_var in #( 13054 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13055$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13056 esac 13057 case $ac_var in #( 13058 _ | IFS | as_nl) ;; #( 13059 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13060 *) { eval $ac_var=; unset $ac_var;} ;; 13061 esac ;; 13062 esac 13063 done 13064 13065 (set) 2>&1 | 13066 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13067 *${as_nl}ac_space=\ *) 13068 # `set' does not quote correctly, so add quotes: double-quote 13069 # substitution turns \\\\ into \\, and sed turns \\ into \. 13070 sed -n \ 13071 "s/'/'\\\\''/g; 13072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13073 ;; #( 13074 *) 13075 # `set' quotes correctly as required by POSIX, so do not add quotes. 13076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13077 ;; 13078 esac | 13079 sort 13080) | 13081 sed ' 13082 /^ac_cv_env_/b end 13083 t clear 13084 :clear 13085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13086 t end 13087 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13088 :end' >>confcache 13089if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13090 if test -w "$cache_file"; then 13091 if test "x$cache_file" != "x/dev/null"; then 13092 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13093$as_echo "$as_me: updating cache $cache_file" >&6;} 13094 if test ! -f "$cache_file" || test -h "$cache_file"; then 13095 cat confcache >"$cache_file" 13096 else 13097 case $cache_file in #( 13098 */* | ?:*) 13099 mv -f confcache "$cache_file"$$ && 13100 mv -f "$cache_file"$$ "$cache_file" ;; #( 13101 *) 13102 mv -f confcache "$cache_file" ;; 13103 esac 13104 fi 13105 fi 13106 else 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13108$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13109 fi 13110fi 13111rm -f confcache 13112 13113test "x$prefix" = xNONE && prefix=$ac_default_prefix 13114# Let make expand exec_prefix. 13115test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13116 13117DEFS=-DHAVE_CONFIG_H 13118 13119ac_libobjs= 13120ac_ltlibobjs= 13121U= 13122for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13123 # 1. Remove the extension, and $U if already installed. 13124 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13125 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13126 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13127 # will be set to the directory where LIBOBJS objects are built. 13128 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13129 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13130done 13131LIBOBJS=$ac_libobjs 13132 13133LTLIBOBJS=$ac_ltlibobjs 13134 13135 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13137$as_echo_n "checking that generated files are newer than configure... " >&6; } 13138 if test -n "$am_sleep_pid"; then 13139 # Hide warnings about reused PIDs. 13140 wait $am_sleep_pid 2>/dev/null 13141 fi 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13143$as_echo "done" >&6; } 13144 if test -n "$EXEEXT"; then 13145 am__EXEEXT_TRUE= 13146 am__EXEEXT_FALSE='#' 13147else 13148 am__EXEEXT_TRUE='#' 13149 am__EXEEXT_FALSE= 13150fi 13151 13152if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13153 as_fn_error $? "conditional \"AMDEP\" was never defined. 13154Usually this means the macro was only invoked conditionally." "$LINENO" 5 13155fi 13156if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13157 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13158Usually this means the macro was only invoked conditionally." "$LINENO" 5 13159fi 13160if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 13161 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 13162Usually this means the macro was only invoked conditionally." "$LINENO" 5 13163fi 13164 13165: "${CONFIG_STATUS=./config.status}" 13166ac_write_fail=0 13167ac_clean_files_save=$ac_clean_files 13168ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13170$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13171as_write_fail=0 13172cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13173#! $SHELL 13174# Generated by $as_me. 13175# Run this file to recreate the current configuration. 13176# Compiler output produced by configure, useful for debugging 13177# configure, is in config.log if it exists. 13178 13179debug=false 13180ac_cs_recheck=false 13181ac_cs_silent=false 13182 13183SHELL=\${CONFIG_SHELL-$SHELL} 13184export SHELL 13185_ASEOF 13186cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13187## -------------------- ## 13188## M4sh Initialization. ## 13189## -------------------- ## 13190 13191# Be more Bourne compatible 13192DUALCASE=1; export DUALCASE # for MKS sh 13193if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13194 emulate sh 13195 NULLCMD=: 13196 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13197 # is contrary to our usage. Disable this feature. 13198 alias -g '${1+"$@"}'='"$@"' 13199 setopt NO_GLOB_SUBST 13200else 13201 case `(set -o) 2>/dev/null` in #( 13202 *posix*) : 13203 set -o posix ;; #( 13204 *) : 13205 ;; 13206esac 13207fi 13208 13209 13210as_nl=' 13211' 13212export as_nl 13213# Printing a long string crashes Solaris 7 /usr/bin/printf. 13214as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13215as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13216as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13217# Prefer a ksh shell builtin over an external printf program on Solaris, 13218# but without wasting forks for bash or zsh. 13219if test -z "$BASH_VERSION$ZSH_VERSION" \ 13220 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13221 as_echo='print -r --' 13222 as_echo_n='print -rn --' 13223elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13224 as_echo='printf %s\n' 13225 as_echo_n='printf %s' 13226else 13227 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13228 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13229 as_echo_n='/usr/ucb/echo -n' 13230 else 13231 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13232 as_echo_n_body='eval 13233 arg=$1; 13234 case $arg in #( 13235 *"$as_nl"*) 13236 expr "X$arg" : "X\\(.*\\)$as_nl"; 13237 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13238 esac; 13239 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13240 ' 13241 export as_echo_n_body 13242 as_echo_n='sh -c $as_echo_n_body as_echo' 13243 fi 13244 export as_echo_body 13245 as_echo='sh -c $as_echo_body as_echo' 13246fi 13247 13248# The user is always right. 13249if test "${PATH_SEPARATOR+set}" != set; then 13250 PATH_SEPARATOR=: 13251 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13252 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13253 PATH_SEPARATOR=';' 13254 } 13255fi 13256 13257 13258# IFS 13259# We need space, tab and new line, in precisely that order. Quoting is 13260# there to prevent editors from complaining about space-tab. 13261# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13262# splitting by setting IFS to empty value.) 13263IFS=" "" $as_nl" 13264 13265# Find who we are. Look in the path if we contain no directory separator. 13266as_myself= 13267case $0 in #(( 13268 *[\\/]* ) as_myself=$0 ;; 13269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13270for as_dir in $PATH 13271do 13272 IFS=$as_save_IFS 13273 test -z "$as_dir" && as_dir=. 13274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13275 done 13276IFS=$as_save_IFS 13277 13278 ;; 13279esac 13280# We did not find ourselves, most probably we were run as `sh COMMAND' 13281# in which case we are not to be found in the path. 13282if test "x$as_myself" = x; then 13283 as_myself=$0 13284fi 13285if test ! -f "$as_myself"; then 13286 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13287 exit 1 13288fi 13289 13290# Unset variables that we do not need and which cause bugs (e.g. in 13291# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13292# suppresses any "Segmentation fault" message there. '((' could 13293# trigger a bug in pdksh 5.2.14. 13294for as_var in BASH_ENV ENV MAIL MAILPATH 13295do eval test x\${$as_var+set} = xset \ 13296 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13297done 13298PS1='$ ' 13299PS2='> ' 13300PS4='+ ' 13301 13302# NLS nuisances. 13303LC_ALL=C 13304export LC_ALL 13305LANGUAGE=C 13306export LANGUAGE 13307 13308# CDPATH. 13309(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13310 13311 13312# as_fn_error STATUS ERROR [LINENO LOG_FD] 13313# ---------------------------------------- 13314# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13315# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13316# script with STATUS, using 1 if that was 0. 13317as_fn_error () 13318{ 13319 as_status=$1; test $as_status -eq 0 && as_status=1 13320 if test "$4"; then 13321 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13322 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13323 fi 13324 $as_echo "$as_me: error: $2" >&2 13325 as_fn_exit $as_status 13326} # as_fn_error 13327 13328 13329# as_fn_set_status STATUS 13330# ----------------------- 13331# Set $? to STATUS, without forking. 13332as_fn_set_status () 13333{ 13334 return $1 13335} # as_fn_set_status 13336 13337# as_fn_exit STATUS 13338# ----------------- 13339# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13340as_fn_exit () 13341{ 13342 set +e 13343 as_fn_set_status $1 13344 exit $1 13345} # as_fn_exit 13346 13347# as_fn_unset VAR 13348# --------------- 13349# Portably unset VAR. 13350as_fn_unset () 13351{ 13352 { eval $1=; unset $1;} 13353} 13354as_unset=as_fn_unset 13355# as_fn_append VAR VALUE 13356# ---------------------- 13357# Append the text in VALUE to the end of the definition contained in VAR. Take 13358# advantage of any shell optimizations that allow amortized linear growth over 13359# repeated appends, instead of the typical quadratic growth present in naive 13360# implementations. 13361if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13362 eval 'as_fn_append () 13363 { 13364 eval $1+=\$2 13365 }' 13366else 13367 as_fn_append () 13368 { 13369 eval $1=\$$1\$2 13370 } 13371fi # as_fn_append 13372 13373# as_fn_arith ARG... 13374# ------------------ 13375# Perform arithmetic evaluation on the ARGs, and store the result in the 13376# global $as_val. Take advantage of shells that can avoid forks. The arguments 13377# must be portable across $(()) and expr. 13378if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13379 eval 'as_fn_arith () 13380 { 13381 as_val=$(( $* )) 13382 }' 13383else 13384 as_fn_arith () 13385 { 13386 as_val=`expr "$@" || test $? -eq 1` 13387 } 13388fi # as_fn_arith 13389 13390 13391if expr a : '\(a\)' >/dev/null 2>&1 && 13392 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13393 as_expr=expr 13394else 13395 as_expr=false 13396fi 13397 13398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13399 as_basename=basename 13400else 13401 as_basename=false 13402fi 13403 13404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13405 as_dirname=dirname 13406else 13407 as_dirname=false 13408fi 13409 13410as_me=`$as_basename -- "$0" || 13411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13412 X"$0" : 'X\(//\)$' \| \ 13413 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13414$as_echo X/"$0" | 13415 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13416 s//\1/ 13417 q 13418 } 13419 /^X\/\(\/\/\)$/{ 13420 s//\1/ 13421 q 13422 } 13423 /^X\/\(\/\).*/{ 13424 s//\1/ 13425 q 13426 } 13427 s/.*/./; q'` 13428 13429# Avoid depending upon Character Ranges. 13430as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13432as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13433as_cr_digits='0123456789' 13434as_cr_alnum=$as_cr_Letters$as_cr_digits 13435 13436ECHO_C= ECHO_N= ECHO_T= 13437case `echo -n x` in #((((( 13438-n*) 13439 case `echo 'xy\c'` in 13440 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13441 xy) ECHO_C='\c';; 13442 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13443 ECHO_T=' ';; 13444 esac;; 13445*) 13446 ECHO_N='-n';; 13447esac 13448 13449rm -f conf$$ conf$$.exe conf$$.file 13450if test -d conf$$.dir; then 13451 rm -f conf$$.dir/conf$$.file 13452else 13453 rm -f conf$$.dir 13454 mkdir conf$$.dir 2>/dev/null 13455fi 13456if (echo >conf$$.file) 2>/dev/null; then 13457 if ln -s conf$$.file conf$$ 2>/dev/null; then 13458 as_ln_s='ln -s' 13459 # ... but there are two gotchas: 13460 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13461 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13462 # In both cases, we have to default to `cp -pR'. 13463 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13464 as_ln_s='cp -pR' 13465 elif ln conf$$.file conf$$ 2>/dev/null; then 13466 as_ln_s=ln 13467 else 13468 as_ln_s='cp -pR' 13469 fi 13470else 13471 as_ln_s='cp -pR' 13472fi 13473rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13474rmdir conf$$.dir 2>/dev/null 13475 13476 13477# as_fn_mkdir_p 13478# ------------- 13479# Create "$as_dir" as a directory, including parents if necessary. 13480as_fn_mkdir_p () 13481{ 13482 13483 case $as_dir in #( 13484 -*) as_dir=./$as_dir;; 13485 esac 13486 test -d "$as_dir" || eval $as_mkdir_p || { 13487 as_dirs= 13488 while :; do 13489 case $as_dir in #( 13490 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13491 *) as_qdir=$as_dir;; 13492 esac 13493 as_dirs="'$as_qdir' $as_dirs" 13494 as_dir=`$as_dirname -- "$as_dir" || 13495$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13496 X"$as_dir" : 'X\(//\)[^/]' \| \ 13497 X"$as_dir" : 'X\(//\)$' \| \ 13498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13499$as_echo X"$as_dir" | 13500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13501 s//\1/ 13502 q 13503 } 13504 /^X\(\/\/\)[^/].*/{ 13505 s//\1/ 13506 q 13507 } 13508 /^X\(\/\/\)$/{ 13509 s//\1/ 13510 q 13511 } 13512 /^X\(\/\).*/{ 13513 s//\1/ 13514 q 13515 } 13516 s/.*/./; q'` 13517 test -d "$as_dir" && break 13518 done 13519 test -z "$as_dirs" || eval "mkdir $as_dirs" 13520 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13521 13522 13523} # as_fn_mkdir_p 13524if mkdir -p . 2>/dev/null; then 13525 as_mkdir_p='mkdir -p "$as_dir"' 13526else 13527 test -d ./-p && rmdir ./-p 13528 as_mkdir_p=false 13529fi 13530 13531 13532# as_fn_executable_p FILE 13533# ----------------------- 13534# Test if FILE is an executable regular file. 13535as_fn_executable_p () 13536{ 13537 test -f "$1" && test -x "$1" 13538} # as_fn_executable_p 13539as_test_x='test -x' 13540as_executable_p=as_fn_executable_p 13541 13542# Sed expression to map a string onto a valid CPP name. 13543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13544 13545# Sed expression to map a string onto a valid variable name. 13546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13547 13548 13549exec 6>&1 13550## ----------------------------------- ## 13551## Main body of $CONFIG_STATUS script. ## 13552## ----------------------------------- ## 13553_ASEOF 13554test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13555 13556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13557# Save the log message, to keep $0 and so on meaningful, and to 13558# report actual input values of CONFIG_FILES etc. instead of their 13559# values after options handling. 13560ac_log=" 13561This file was extended by webpgp $as_me 0.10, which was 13562generated by GNU Autoconf 2.69. Invocation command line was 13563 13564 CONFIG_FILES = $CONFIG_FILES 13565 CONFIG_HEADERS = $CONFIG_HEADERS 13566 CONFIG_LINKS = $CONFIG_LINKS 13567 CONFIG_COMMANDS = $CONFIG_COMMANDS 13568 $ $0 $@ 13569 13570on `(hostname || uname -n) 2>/dev/null | sed 1q` 13571" 13572 13573_ACEOF 13574 13575case $ac_config_files in *" 13576"*) set x $ac_config_files; shift; ac_config_files=$*;; 13577esac 13578 13579case $ac_config_headers in *" 13580"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13581esac 13582 13583 13584cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13585# Files that config.status was made for. 13586config_files="$ac_config_files" 13587config_headers="$ac_config_headers" 13588config_commands="$ac_config_commands" 13589 13590_ACEOF 13591 13592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13593ac_cs_usage="\ 13594\`$as_me' instantiates files and other configuration actions 13595from templates according to the current configuration. Unless the files 13596and actions are specified as TAGs, all are instantiated by default. 13597 13598Usage: $0 [OPTION]... [TAG]... 13599 13600 -h, --help print this help, then exit 13601 -V, --version print version number and configuration settings, then exit 13602 --config print configuration, then exit 13603 -q, --quiet, --silent 13604 do not print progress messages 13605 -d, --debug don't remove temporary files 13606 --recheck update $as_me by reconfiguring in the same conditions 13607 --file=FILE[:TEMPLATE] 13608 instantiate the configuration file FILE 13609 --header=FILE[:TEMPLATE] 13610 instantiate the configuration header FILE 13611 13612Configuration files: 13613$config_files 13614 13615Configuration headers: 13616$config_headers 13617 13618Configuration commands: 13619$config_commands 13620 13621Report bugs to <courier-users@lists.sourceforge.net>." 13622 13623_ACEOF 13624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13625ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13626ac_cs_version="\\ 13627webpgp config.status 0.10 13628configured by $0, generated by GNU Autoconf 2.69, 13629 with options \\"\$ac_cs_config\\" 13630 13631Copyright (C) 2012 Free Software Foundation, Inc. 13632This config.status script is free software; the Free Software Foundation 13633gives unlimited permission to copy, distribute and modify it." 13634 13635ac_pwd='$ac_pwd' 13636srcdir='$srcdir' 13637INSTALL='$INSTALL' 13638MKDIR_P='$MKDIR_P' 13639AWK='$AWK' 13640test -n "\$AWK" || AWK=awk 13641_ACEOF 13642 13643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13644# The default lists apply if the user does not specify any file. 13645ac_need_defaults=: 13646while test $# != 0 13647do 13648 case $1 in 13649 --*=?*) 13650 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13651 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13652 ac_shift=: 13653 ;; 13654 --*=) 13655 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13656 ac_optarg= 13657 ac_shift=: 13658 ;; 13659 *) 13660 ac_option=$1 13661 ac_optarg=$2 13662 ac_shift=shift 13663 ;; 13664 esac 13665 13666 case $ac_option in 13667 # Handling of the options. 13668 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13669 ac_cs_recheck=: ;; 13670 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13671 $as_echo "$ac_cs_version"; exit ;; 13672 --config | --confi | --conf | --con | --co | --c ) 13673 $as_echo "$ac_cs_config"; exit ;; 13674 --debug | --debu | --deb | --de | --d | -d ) 13675 debug=: ;; 13676 --file | --fil | --fi | --f ) 13677 $ac_shift 13678 case $ac_optarg in 13679 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13680 '') as_fn_error $? "missing file argument" ;; 13681 esac 13682 as_fn_append CONFIG_FILES " '$ac_optarg'" 13683 ac_need_defaults=false;; 13684 --header | --heade | --head | --hea ) 13685 $ac_shift 13686 case $ac_optarg in 13687 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13688 esac 13689 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13690 ac_need_defaults=false;; 13691 --he | --h) 13692 # Conflict between --help and --header 13693 as_fn_error $? "ambiguous option: \`$1' 13694Try \`$0 --help' for more information.";; 13695 --help | --hel | -h ) 13696 $as_echo "$ac_cs_usage"; exit ;; 13697 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13698 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13699 ac_cs_silent=: ;; 13700 13701 # This is an error. 13702 -*) as_fn_error $? "unrecognized option: \`$1' 13703Try \`$0 --help' for more information." ;; 13704 13705 *) as_fn_append ac_config_targets " $1" 13706 ac_need_defaults=false ;; 13707 13708 esac 13709 shift 13710done 13711 13712ac_configure_extra_args= 13713 13714if $ac_cs_silent; then 13715 exec 6>/dev/null 13716 ac_configure_extra_args="$ac_configure_extra_args --silent" 13717fi 13718 13719_ACEOF 13720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13721if \$ac_cs_recheck; then 13722 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13723 shift 13724 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13725 CONFIG_SHELL='$SHELL' 13726 export CONFIG_SHELL 13727 exec "\$@" 13728fi 13729 13730_ACEOF 13731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13732exec 5>>config.log 13733{ 13734 echo 13735 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13736## Running $as_me. ## 13737_ASBOX 13738 $as_echo "$ac_log" 13739} >&5 13740 13741_ACEOF 13742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13743# 13744# INIT-COMMANDS 13745# 13746AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13747 13748 13749# The HP-UX ksh and POSIX shell print the target directory to stdout 13750# if CDPATH is set. 13751(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13752 13753sed_quote_subst='$sed_quote_subst' 13754double_quote_subst='$double_quote_subst' 13755delay_variable_subst='$delay_variable_subst' 13756macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13757macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13758enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13759enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13760pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13761enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13762shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13763SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13764ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13765PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13766host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13767host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13768host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13769build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13770build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13771build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13772SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13773Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13774GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13775EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13776FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13777LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13778NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13779LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13780max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13781ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13782exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13783lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13784lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13785lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13786lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13787lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13788reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13789reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13790OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13791deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13792file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13793file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13794want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13795DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13796sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13797AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13798AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13799archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13800STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13801RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13802old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13803old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13804old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13805lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13806CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13807CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13808compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13809GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13810lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13811lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13812lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13813lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13814lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 13815lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13816nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13817lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13818lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13819objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13820MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13821lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13822lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13823lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13824lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13825lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13826need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13827MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13828DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13829NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13830LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13831OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13832OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13833libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13834shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13835extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13836archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13837enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13838export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13839whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13840compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13841old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13842old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13843archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13844archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13845module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13846module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13847with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13848allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13849no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13850hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13851hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13852hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13853hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13854hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13855hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13856hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13857inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13858link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13859always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13860export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13861exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13862include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13863prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13864postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13865file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13866variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13867need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13868need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13869version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13870runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13871shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13872shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13873libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13874library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13875soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13876install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13877postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13878postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13879finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13880finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13881hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13882sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13883configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13884configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13885hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13886enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13887enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13888enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13889old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13890striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13891 13892LTCC='$LTCC' 13893LTCFLAGS='$LTCFLAGS' 13894compiler='$compiler_DEFAULT' 13895 13896# A function that is used when there is no print builtin or printf. 13897func_fallback_echo () 13898{ 13899 eval 'cat <<_LTECHO_EOF 13900\$1 13901_LTECHO_EOF' 13902} 13903 13904# Quote evaled strings. 13905for var in SHELL \ 13906ECHO \ 13907PATH_SEPARATOR \ 13908SED \ 13909GREP \ 13910EGREP \ 13911FGREP \ 13912LD \ 13913NM \ 13914LN_S \ 13915lt_SP2NL \ 13916lt_NL2SP \ 13917reload_flag \ 13918OBJDUMP \ 13919deplibs_check_method \ 13920file_magic_cmd \ 13921file_magic_glob \ 13922want_nocaseglob \ 13923DLLTOOL \ 13924sharedlib_from_linklib_cmd \ 13925AR \ 13926AR_FLAGS \ 13927archiver_list_spec \ 13928STRIP \ 13929RANLIB \ 13930CC \ 13931CFLAGS \ 13932compiler \ 13933lt_cv_sys_global_symbol_pipe \ 13934lt_cv_sys_global_symbol_to_cdecl \ 13935lt_cv_sys_global_symbol_to_import \ 13936lt_cv_sys_global_symbol_to_c_name_address \ 13937lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13938lt_cv_nm_interface \ 13939nm_file_list_spec \ 13940lt_cv_truncate_bin \ 13941lt_prog_compiler_no_builtin_flag \ 13942lt_prog_compiler_pic \ 13943lt_prog_compiler_wl \ 13944lt_prog_compiler_static \ 13945lt_cv_prog_compiler_c_o \ 13946need_locks \ 13947MANIFEST_TOOL \ 13948DSYMUTIL \ 13949NMEDIT \ 13950LIPO \ 13951OTOOL \ 13952OTOOL64 \ 13953shrext_cmds \ 13954export_dynamic_flag_spec \ 13955whole_archive_flag_spec \ 13956compiler_needs_object \ 13957with_gnu_ld \ 13958allow_undefined_flag \ 13959no_undefined_flag \ 13960hardcode_libdir_flag_spec \ 13961hardcode_libdir_separator \ 13962exclude_expsyms \ 13963include_expsyms \ 13964file_list_spec \ 13965variables_saved_for_relink \ 13966libname_spec \ 13967library_names_spec \ 13968soname_spec \ 13969install_override_mode \ 13970finish_eval \ 13971old_striplib \ 13972striplib; do 13973 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13974 *[\\\\\\\`\\"\\\$]*) 13975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13976 ;; 13977 *) 13978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13979 ;; 13980 esac 13981done 13982 13983# Double-quote double-evaled strings. 13984for var in reload_cmds \ 13985old_postinstall_cmds \ 13986old_postuninstall_cmds \ 13987old_archive_cmds \ 13988extract_expsyms_cmds \ 13989old_archive_from_new_cmds \ 13990old_archive_from_expsyms_cmds \ 13991archive_cmds \ 13992archive_expsym_cmds \ 13993module_cmds \ 13994module_expsym_cmds \ 13995export_symbols_cmds \ 13996prelink_cmds \ 13997postlink_cmds \ 13998postinstall_cmds \ 13999postuninstall_cmds \ 14000finish_cmds \ 14001sys_lib_search_path_spec \ 14002configure_time_dlsearch_path \ 14003configure_time_lt_sys_library_path; do 14004 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14005 *[\\\\\\\`\\"\\\$]*) 14006 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 14007 ;; 14008 *) 14009 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14010 ;; 14011 esac 14012done 14013 14014ac_aux_dir='$ac_aux_dir' 14015 14016# See if we are running on zsh, and set the options that allow our 14017# commands through without removal of \ escapes INIT. 14018if test -n "\${ZSH_VERSION+set}"; then 14019 setopt NO_GLOB_SUBST 14020fi 14021 14022 14023 PACKAGE='$PACKAGE' 14024 VERSION='$VERSION' 14025 RM='$RM' 14026 ofile='$ofile' 14027 14028 14029 14030 14031_ACEOF 14032 14033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14034 14035# Handling of arguments. 14036for ac_config_target in $ac_config_targets 14037do 14038 case $ac_config_target in 14039 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14040 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14041 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14042 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14043 "webgpg") CONFIG_FILES="$CONFIG_FILES webgpg" ;; 14044 14045 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14046 esac 14047done 14048 14049 14050# If the user did not use the arguments to specify the items to instantiate, 14051# then the envvar interface is used. Set only those that are not. 14052# We use the long form for the default assignment because of an extremely 14053# bizarre bug on SunOS 4.1.3. 14054if $ac_need_defaults; then 14055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14056 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14057 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14058fi 14059 14060# Have a temporary directory for convenience. Make it in the build tree 14061# simply because there is no reason against having it here, and in addition, 14062# creating and moving files from /tmp can sometimes cause problems. 14063# Hook for its removal unless debugging. 14064# Note that there is a small window in which the directory will not be cleaned: 14065# after its creation but before its name has been assigned to `$tmp'. 14066$debug || 14067{ 14068 tmp= ac_tmp= 14069 trap 'exit_status=$? 14070 : "${ac_tmp:=$tmp}" 14071 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14072' 0 14073 trap 'as_fn_exit 1' 1 2 13 15 14074} 14075# Create a (secure) tmp directory for tmp files. 14076 14077{ 14078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14079 test -d "$tmp" 14080} || 14081{ 14082 tmp=./conf$$-$RANDOM 14083 (umask 077 && mkdir "$tmp") 14084} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14085ac_tmp=$tmp 14086 14087# Set up the scripts for CONFIG_FILES section. 14088# No need to generate them if there are no CONFIG_FILES. 14089# This happens for instance with `./config.status config.h'. 14090if test -n "$CONFIG_FILES"; then 14091 14092 14093ac_cr=`echo X | tr X '\015'` 14094# On cygwin, bash can eat \r inside `` if the user requested igncr. 14095# But we know of no other shell where ac_cr would be empty at this 14096# point, so we can use a bashism as a fallback. 14097if test "x$ac_cr" = x; then 14098 eval ac_cr=\$\'\\r\' 14099fi 14100ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14101if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14102 ac_cs_awk_cr='\\r' 14103else 14104 ac_cs_awk_cr=$ac_cr 14105fi 14106 14107echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14108_ACEOF 14109 14110 14111{ 14112 echo "cat >conf$$subs.awk <<_ACEOF" && 14113 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14114 echo "_ACEOF" 14115} >conf$$subs.sh || 14116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14117ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14118ac_delim='%!_!# ' 14119for ac_last_try in false false false false false :; do 14120 . ./conf$$subs.sh || 14121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14122 14123 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14124 if test $ac_delim_n = $ac_delim_num; then 14125 break 14126 elif $ac_last_try; then 14127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14128 else 14129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14130 fi 14131done 14132rm -f conf$$subs.sh 14133 14134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14135cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14136_ACEOF 14137sed -n ' 14138h 14139s/^/S["/; s/!.*/"]=/ 14140p 14141g 14142s/^[^!]*!// 14143:repl 14144t repl 14145s/'"$ac_delim"'$// 14146t delim 14147:nl 14148h 14149s/\(.\{148\}\)..*/\1/ 14150t more1 14151s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14152p 14153n 14154b repl 14155:more1 14156s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14157p 14158g 14159s/.\{148\}// 14160t nl 14161:delim 14162h 14163s/\(.\{148\}\)..*/\1/ 14164t more2 14165s/["\\]/\\&/g; s/^/"/; s/$/"/ 14166p 14167b 14168:more2 14169s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14170p 14171g 14172s/.\{148\}// 14173t delim 14174' <conf$$subs.awk | sed ' 14175/^[^""]/{ 14176 N 14177 s/\n// 14178} 14179' >>$CONFIG_STATUS || ac_write_fail=1 14180rm -f conf$$subs.awk 14181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14182_ACAWK 14183cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14184 for (key in S) S_is_set[key] = 1 14185 FS = "" 14186 14187} 14188{ 14189 line = $ 0 14190 nfields = split(line, field, "@") 14191 substed = 0 14192 len = length(field[1]) 14193 for (i = 2; i < nfields; i++) { 14194 key = field[i] 14195 keylen = length(key) 14196 if (S_is_set[key]) { 14197 value = S[key] 14198 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14199 len += length(value) + length(field[++i]) 14200 substed = 1 14201 } else 14202 len += 1 + keylen 14203 } 14204 14205 print line 14206} 14207 14208_ACAWK 14209_ACEOF 14210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14211if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14212 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14213else 14214 cat 14215fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14216 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14217_ACEOF 14218 14219# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14220# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14221# trailing colons and then remove the whole line if VPATH becomes empty 14222# (actually we leave an empty line to preserve line numbers). 14223if test "x$srcdir" = x.; then 14224 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14225h 14226s/// 14227s/^/:/ 14228s/[ ]*$/:/ 14229s/:\$(srcdir):/:/g 14230s/:\${srcdir}:/:/g 14231s/:@srcdir@:/:/g 14232s/^:*// 14233s/:*$// 14234x 14235s/\(=[ ]*\).*/\1/ 14236G 14237s/\n// 14238s/^[^=]*=[ ]*$// 14239}' 14240fi 14241 14242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14243fi # test -n "$CONFIG_FILES" 14244 14245# Set up the scripts for CONFIG_HEADERS section. 14246# No need to generate them if there are no CONFIG_HEADERS. 14247# This happens for instance with `./config.status Makefile'. 14248if test -n "$CONFIG_HEADERS"; then 14249cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14250BEGIN { 14251_ACEOF 14252 14253# Transform confdefs.h into an awk script `defines.awk', embedded as 14254# here-document in config.status, that substitutes the proper values into 14255# config.h.in to produce config.h. 14256 14257# Create a delimiter string that does not exist in confdefs.h, to ease 14258# handling of long lines. 14259ac_delim='%!_!# ' 14260for ac_last_try in false false :; do 14261 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14262 if test -z "$ac_tt"; then 14263 break 14264 elif $ac_last_try; then 14265 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14266 else 14267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14268 fi 14269done 14270 14271# For the awk script, D is an array of macro values keyed by name, 14272# likewise P contains macro parameters if any. Preserve backslash 14273# newline sequences. 14274 14275ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14276sed -n ' 14277s/.\{148\}/&'"$ac_delim"'/g 14278t rset 14279:rset 14280s/^[ ]*#[ ]*define[ ][ ]*/ / 14281t def 14282d 14283:def 14284s/\\$// 14285t bsnl 14286s/["\\]/\\&/g 14287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14288D["\1"]=" \3"/p 14289s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14290d 14291:bsnl 14292s/["\\]/\\&/g 14293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14294D["\1"]=" \3\\\\\\n"\\/p 14295t cont 14296s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14297t cont 14298d 14299:cont 14300n 14301s/.\{148\}/&'"$ac_delim"'/g 14302t clear 14303:clear 14304s/\\$// 14305t bsnlc 14306s/["\\]/\\&/g; s/^/"/; s/$/"/p 14307d 14308:bsnlc 14309s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14310b cont 14311' <confdefs.h | sed ' 14312s/'"$ac_delim"'/"\\\ 14313"/g' >>$CONFIG_STATUS || ac_write_fail=1 14314 14315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14316 for (key in D) D_is_set[key] = 1 14317 FS = "" 14318} 14319/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14320 line = \$ 0 14321 split(line, arg, " ") 14322 if (arg[1] == "#") { 14323 defundef = arg[2] 14324 mac1 = arg[3] 14325 } else { 14326 defundef = substr(arg[1], 2) 14327 mac1 = arg[2] 14328 } 14329 split(mac1, mac2, "(") #) 14330 macro = mac2[1] 14331 prefix = substr(line, 1, index(line, defundef) - 1) 14332 if (D_is_set[macro]) { 14333 # Preserve the white space surrounding the "#". 14334 print prefix "define", macro P[macro] D[macro] 14335 next 14336 } else { 14337 # Replace #undef with comments. This is necessary, for example, 14338 # in the case of _POSIX_SOURCE, which is predefined and required 14339 # on some systems where configure will not decide to define it. 14340 if (defundef == "undef") { 14341 print "/*", prefix defundef, macro, "*/" 14342 next 14343 } 14344 } 14345} 14346{ print } 14347_ACAWK 14348_ACEOF 14349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14350 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14351fi # test -n "$CONFIG_HEADERS" 14352 14353 14354eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14355shift 14356for ac_tag 14357do 14358 case $ac_tag in 14359 :[FHLC]) ac_mode=$ac_tag; continue;; 14360 esac 14361 case $ac_mode$ac_tag in 14362 :[FHL]*:*);; 14363 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14364 :[FH]-) ac_tag=-:-;; 14365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14366 esac 14367 ac_save_IFS=$IFS 14368 IFS=: 14369 set x $ac_tag 14370 IFS=$ac_save_IFS 14371 shift 14372 ac_file=$1 14373 shift 14374 14375 case $ac_mode in 14376 :L) ac_source=$1;; 14377 :[FH]) 14378 ac_file_inputs= 14379 for ac_f 14380 do 14381 case $ac_f in 14382 -) ac_f="$ac_tmp/stdin";; 14383 *) # Look for the file first in the build tree, then in the source tree 14384 # (if the path is not absolute). The absolute path cannot be DOS-style, 14385 # because $ac_f cannot contain `:'. 14386 test -f "$ac_f" || 14387 case $ac_f in 14388 [\\/$]*) false;; 14389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14390 esac || 14391 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14392 esac 14393 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14394 as_fn_append ac_file_inputs " '$ac_f'" 14395 done 14396 14397 # Let's still pretend it is `configure' which instantiates (i.e., don't 14398 # use $as_me), people would be surprised to read: 14399 # /* config.h. Generated by config.status. */ 14400 configure_input='Generated from '` 14401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14402 `' by configure.' 14403 if test x"$ac_file" != x-; then 14404 configure_input="$ac_file. $configure_input" 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14406$as_echo "$as_me: creating $ac_file" >&6;} 14407 fi 14408 # Neutralize special characters interpreted by sed in replacement strings. 14409 case $configure_input in #( 14410 *\&* | *\|* | *\\* ) 14411 ac_sed_conf_input=`$as_echo "$configure_input" | 14412 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14413 *) ac_sed_conf_input=$configure_input;; 14414 esac 14415 14416 case $ac_tag in 14417 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14419 esac 14420 ;; 14421 esac 14422 14423 ac_dir=`$as_dirname -- "$ac_file" || 14424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14425 X"$ac_file" : 'X\(//\)[^/]' \| \ 14426 X"$ac_file" : 'X\(//\)$' \| \ 14427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14428$as_echo X"$ac_file" | 14429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14430 s//\1/ 14431 q 14432 } 14433 /^X\(\/\/\)[^/].*/{ 14434 s//\1/ 14435 q 14436 } 14437 /^X\(\/\/\)$/{ 14438 s//\1/ 14439 q 14440 } 14441 /^X\(\/\).*/{ 14442 s//\1/ 14443 q 14444 } 14445 s/.*/./; q'` 14446 as_dir="$ac_dir"; as_fn_mkdir_p 14447 ac_builddir=. 14448 14449case "$ac_dir" in 14450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14451*) 14452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14453 # A ".." for each directory in $ac_dir_suffix. 14454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14455 case $ac_top_builddir_sub in 14456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14458 esac ;; 14459esac 14460ac_abs_top_builddir=$ac_pwd 14461ac_abs_builddir=$ac_pwd$ac_dir_suffix 14462# for backward compatibility: 14463ac_top_builddir=$ac_top_build_prefix 14464 14465case $srcdir in 14466 .) # We are building in place. 14467 ac_srcdir=. 14468 ac_top_srcdir=$ac_top_builddir_sub 14469 ac_abs_top_srcdir=$ac_pwd ;; 14470 [\\/]* | ?:[\\/]* ) # Absolute name. 14471 ac_srcdir=$srcdir$ac_dir_suffix; 14472 ac_top_srcdir=$srcdir 14473 ac_abs_top_srcdir=$srcdir ;; 14474 *) # Relative name. 14475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14476 ac_top_srcdir=$ac_top_build_prefix$srcdir 14477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14478esac 14479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14480 14481 14482 case $ac_mode in 14483 :F) 14484 # 14485 # CONFIG_FILE 14486 # 14487 14488 case $INSTALL in 14489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14491 esac 14492 ac_MKDIR_P=$MKDIR_P 14493 case $MKDIR_P in 14494 [\\/$]* | ?:[\\/]* ) ;; 14495 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14496 esac 14497_ACEOF 14498 14499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14500# If the template does not know about datarootdir, expand it. 14501# FIXME: This hack should be removed a few years after 2.60. 14502ac_datarootdir_hack=; ac_datarootdir_seen= 14503ac_sed_dataroot=' 14504/datarootdir/ { 14505 p 14506 q 14507} 14508/@datadir@/p 14509/@docdir@/p 14510/@infodir@/p 14511/@localedir@/p 14512/@mandir@/p' 14513case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14514*datarootdir*) ac_datarootdir_seen=yes;; 14515*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14517$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14518_ACEOF 14519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14520 ac_datarootdir_hack=' 14521 s&@datadir@&$datadir&g 14522 s&@docdir@&$docdir&g 14523 s&@infodir@&$infodir&g 14524 s&@localedir@&$localedir&g 14525 s&@mandir@&$mandir&g 14526 s&\\\${datarootdir}&$datarootdir&g' ;; 14527esac 14528_ACEOF 14529 14530# Neutralize VPATH when `$srcdir' = `.'. 14531# Shell code in configure.ac might set extrasub. 14532# FIXME: do we really want to maintain this feature? 14533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14534ac_sed_extra="$ac_vpsub 14535$extrasub 14536_ACEOF 14537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14538:t 14539/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14540s|@configure_input@|$ac_sed_conf_input|;t t 14541s&@top_builddir@&$ac_top_builddir_sub&;t t 14542s&@top_build_prefix@&$ac_top_build_prefix&;t t 14543s&@srcdir@&$ac_srcdir&;t t 14544s&@abs_srcdir@&$ac_abs_srcdir&;t t 14545s&@top_srcdir@&$ac_top_srcdir&;t t 14546s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14547s&@builddir@&$ac_builddir&;t t 14548s&@abs_builddir@&$ac_abs_builddir&;t t 14549s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14550s&@INSTALL@&$ac_INSTALL&;t t 14551s&@MKDIR_P@&$ac_MKDIR_P&;t t 14552$ac_datarootdir_hack 14553" 14554eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14555 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14556 14557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14558 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14560 "$ac_tmp/out"`; test -z "$ac_out"; } && 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14562which seems to be undefined. Please make sure it is defined" >&5 14563$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14564which seems to be undefined. Please make sure it is defined" >&2;} 14565 14566 rm -f "$ac_tmp/stdin" 14567 case $ac_file in 14568 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14569 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14570 esac \ 14571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14572 ;; 14573 :H) 14574 # 14575 # CONFIG_HEADER 14576 # 14577 if test x"$ac_file" != x-; then 14578 { 14579 $as_echo "/* $configure_input */" \ 14580 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14581 } >"$ac_tmp/config.h" \ 14582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14583 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14585$as_echo "$as_me: $ac_file is unchanged" >&6;} 14586 else 14587 rm -f "$ac_file" 14588 mv "$ac_tmp/config.h" "$ac_file" \ 14589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14590 fi 14591 else 14592 $as_echo "/* $configure_input */" \ 14593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14594 || as_fn_error $? "could not create -" "$LINENO" 5 14595 fi 14596# Compute "$ac_file"'s index in $config_headers. 14597_am_arg="$ac_file" 14598_am_stamp_count=1 14599for _am_header in $config_headers :; do 14600 case $_am_header in 14601 $_am_arg | $_am_arg:* ) 14602 break ;; 14603 * ) 14604 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14605 esac 14606done 14607echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14608$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14609 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14610 X"$_am_arg" : 'X\(//\)$' \| \ 14611 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14612$as_echo X"$_am_arg" | 14613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14614 s//\1/ 14615 q 14616 } 14617 /^X\(\/\/\)[^/].*/{ 14618 s//\1/ 14619 q 14620 } 14621 /^X\(\/\/\)$/{ 14622 s//\1/ 14623 q 14624 } 14625 /^X\(\/\).*/{ 14626 s//\1/ 14627 q 14628 } 14629 s/.*/./; q'`/stamp-h$_am_stamp_count 14630 ;; 14631 14632 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14633$as_echo "$as_me: executing $ac_file commands" >&6;} 14634 ;; 14635 esac 14636 14637 14638 case $ac_file$ac_mode in 14639 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14640 # Older Autoconf quotes --file arguments for eval, but not when files 14641 # are listed without --file. Let's play safe and only enable the eval 14642 # if we detect the quoting. 14643 # TODO: see whether this extra hack can be removed once we start 14644 # requiring Autoconf 2.70 or later. 14645 case $CONFIG_FILES in #( 14646 *\'*) : 14647 eval set x "$CONFIG_FILES" ;; #( 14648 *) : 14649 set x $CONFIG_FILES ;; #( 14650 *) : 14651 ;; 14652esac 14653 shift 14654 # Used to flag and report bootstrapping failures. 14655 am_rc=0 14656 for am_mf 14657 do 14658 # Strip MF so we end up with the name of the file. 14659 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14660 # Check whether this is an Automake generated Makefile which includes 14661 # dependency-tracking related rules and includes. 14662 # Grep'ing the whole file directly is not great: AIX grep has a line 14663 # limit of 2048, but all sed's we know have understand at least 4000. 14664 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14665 || continue 14666 am_dirpart=`$as_dirname -- "$am_mf" || 14667$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14668 X"$am_mf" : 'X\(//\)[^/]' \| \ 14669 X"$am_mf" : 'X\(//\)$' \| \ 14670 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14671$as_echo X"$am_mf" | 14672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14673 s//\1/ 14674 q 14675 } 14676 /^X\(\/\/\)[^/].*/{ 14677 s//\1/ 14678 q 14679 } 14680 /^X\(\/\/\)$/{ 14681 s//\1/ 14682 q 14683 } 14684 /^X\(\/\).*/{ 14685 s//\1/ 14686 q 14687 } 14688 s/.*/./; q'` 14689 am_filepart=`$as_basename -- "$am_mf" || 14690$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14691 X"$am_mf" : 'X\(//\)$' \| \ 14692 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14693$as_echo X/"$am_mf" | 14694 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14695 s//\1/ 14696 q 14697 } 14698 /^X\/\(\/\/\)$/{ 14699 s//\1/ 14700 q 14701 } 14702 /^X\/\(\/\).*/{ 14703 s//\1/ 14704 q 14705 } 14706 s/.*/./; q'` 14707 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14708 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14709 | $MAKE -f - am--depfiles" >&5 14710 (cd "$am_dirpart" \ 14711 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14712 | $MAKE -f - am--depfiles) >&5 2>&5 14713 ac_status=$? 14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14715 (exit $ac_status); } || am_rc=$? 14716 done 14717 if test $am_rc -ne 0; then 14718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14720as_fn_error $? "Something went wrong bootstrapping makefile fragments 14721 for automatic dependency tracking. Try re-running configure with the 14722 '--disable-dependency-tracking' option to at least be able to build 14723 the package (albeit without support for automatic dependency tracking). 14724See \`config.log' for more details" "$LINENO" 5; } 14725 fi 14726 { am_dirpart=; unset am_dirpart;} 14727 { am_filepart=; unset am_filepart;} 14728 { am_mf=; unset am_mf;} 14729 { am_rc=; unset am_rc;} 14730 rm -f conftest-deps.mk 14731} 14732 ;; 14733 "libtool":C) 14734 14735 # See if we are running on zsh, and set the options that allow our 14736 # commands through without removal of \ escapes. 14737 if test -n "${ZSH_VERSION+set}"; then 14738 setopt NO_GLOB_SUBST 14739 fi 14740 14741 cfgfile=${ofile}T 14742 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14743 $RM "$cfgfile" 14744 14745 cat <<_LT_EOF >> "$cfgfile" 14746#! $SHELL 14747# Generated automatically by $as_me ($PACKAGE) $VERSION 14748# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14749# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14750 14751# Provide generalized library-building support services. 14752# Written by Gordon Matzigkeit, 1996 14753 14754# Copyright (C) 2014 Free Software Foundation, Inc. 14755# This is free software; see the source for copying conditions. There is NO 14756# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14757 14758# GNU Libtool is free software; you can redistribute it and/or modify 14759# it under the terms of the GNU General Public License as published by 14760# the Free Software Foundation; either version 2 of of the License, or 14761# (at your option) any later version. 14762# 14763# As a special exception to the GNU General Public License, if you 14764# distribute this file as part of a program or library that is built 14765# using GNU Libtool, you may include this file under the same 14766# distribution terms that you use for the rest of that program. 14767# 14768# GNU Libtool is distributed in the hope that it will be useful, but 14769# WITHOUT ANY WARRANTY; without even the implied warranty of 14770# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14771# GNU General Public License for more details. 14772# 14773# You should have received a copy of the GNU General Public License 14774# along with this program. If not, see <http://www.gnu.org/licenses/>. 14775 14776 14777# The names of the tagged configurations supported by this script. 14778available_tags='' 14779 14780# Configured defaults for sys_lib_dlsearch_path munging. 14781: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14782 14783# ### BEGIN LIBTOOL CONFIG 14784 14785# Which release of libtool.m4 was used? 14786macro_version=$macro_version 14787macro_revision=$macro_revision 14788 14789# Whether or not to build shared libraries. 14790build_libtool_libs=$enable_shared 14791 14792# Whether or not to build static libraries. 14793build_old_libs=$enable_static 14794 14795# What type of objects to build. 14796pic_mode=$pic_mode 14797 14798# Whether or not to optimize for fast installation. 14799fast_install=$enable_fast_install 14800 14801# Shared archive member basename,for filename based shared library versioning on AIX. 14802shared_archive_member_spec=$shared_archive_member_spec 14803 14804# Shell to use when invoking shell scripts. 14805SHELL=$lt_SHELL 14806 14807# An echo program that protects backslashes. 14808ECHO=$lt_ECHO 14809 14810# The PATH separator for the build system. 14811PATH_SEPARATOR=$lt_PATH_SEPARATOR 14812 14813# The host system. 14814host_alias=$host_alias 14815host=$host 14816host_os=$host_os 14817 14818# The build system. 14819build_alias=$build_alias 14820build=$build 14821build_os=$build_os 14822 14823# A sed program that does not truncate output. 14824SED=$lt_SED 14825 14826# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14827Xsed="\$SED -e 1s/^X//" 14828 14829# A grep program that handles long lines. 14830GREP=$lt_GREP 14831 14832# An ERE matcher. 14833EGREP=$lt_EGREP 14834 14835# A literal string matcher. 14836FGREP=$lt_FGREP 14837 14838# A BSD- or MS-compatible name lister. 14839NM=$lt_NM 14840 14841# Whether we need soft or hard links. 14842LN_S=$lt_LN_S 14843 14844# What is the maximum length of a command? 14845max_cmd_len=$max_cmd_len 14846 14847# Object file suffix (normally "o"). 14848objext=$ac_objext 14849 14850# Executable file suffix (normally ""). 14851exeext=$exeext 14852 14853# whether the shell understands "unset". 14854lt_unset=$lt_unset 14855 14856# turn spaces into newlines. 14857SP2NL=$lt_lt_SP2NL 14858 14859# turn newlines into spaces. 14860NL2SP=$lt_lt_NL2SP 14861 14862# convert \$build file names to \$host format. 14863to_host_file_cmd=$lt_cv_to_host_file_cmd 14864 14865# convert \$build files to toolchain format. 14866to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14867 14868# An object symbol dumper. 14869OBJDUMP=$lt_OBJDUMP 14870 14871# Method to check whether dependent libraries are shared objects. 14872deplibs_check_method=$lt_deplibs_check_method 14873 14874# Command to use when deplibs_check_method = "file_magic". 14875file_magic_cmd=$lt_file_magic_cmd 14876 14877# How to find potential files when deplibs_check_method = "file_magic". 14878file_magic_glob=$lt_file_magic_glob 14879 14880# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14881want_nocaseglob=$lt_want_nocaseglob 14882 14883# DLL creation program. 14884DLLTOOL=$lt_DLLTOOL 14885 14886# Command to associate shared and link libraries. 14887sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14888 14889# The archiver. 14890AR=$lt_AR 14891 14892# Flags to create an archive. 14893AR_FLAGS=$lt_AR_FLAGS 14894 14895# How to feed a file listing to the archiver. 14896archiver_list_spec=$lt_archiver_list_spec 14897 14898# A symbol stripping program. 14899STRIP=$lt_STRIP 14900 14901# Commands used to install an old-style archive. 14902RANLIB=$lt_RANLIB 14903old_postinstall_cmds=$lt_old_postinstall_cmds 14904old_postuninstall_cmds=$lt_old_postuninstall_cmds 14905 14906# Whether to use a lock for old archive extraction. 14907lock_old_archive_extraction=$lock_old_archive_extraction 14908 14909# A C compiler. 14910LTCC=$lt_CC 14911 14912# LTCC compiler flags. 14913LTCFLAGS=$lt_CFLAGS 14914 14915# Take the output of nm and produce a listing of raw symbols and C names. 14916global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14917 14918# Transform the output of nm in a proper C declaration. 14919global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14920 14921# Transform the output of nm into a list of symbols to manually relocate. 14922global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14923 14924# Transform the output of nm in a C name address pair. 14925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14926 14927# Transform the output of nm in a C name address pair when lib prefix is needed. 14928global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14929 14930# The name lister interface. 14931nm_interface=$lt_lt_cv_nm_interface 14932 14933# Specify filename containing input files for \$NM. 14934nm_file_list_spec=$lt_nm_file_list_spec 14935 14936# The root where to search for dependent libraries,and where our libraries should be installed. 14937lt_sysroot=$lt_sysroot 14938 14939# Command to truncate a binary pipe. 14940lt_truncate_bin=$lt_lt_cv_truncate_bin 14941 14942# The name of the directory that contains temporary libtool files. 14943objdir=$objdir 14944 14945# Used to examine libraries when file_magic_cmd begins with "file". 14946MAGIC_CMD=$MAGIC_CMD 14947 14948# Must we lock files when doing compilation? 14949need_locks=$lt_need_locks 14950 14951# Manifest tool. 14952MANIFEST_TOOL=$lt_MANIFEST_TOOL 14953 14954# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14955DSYMUTIL=$lt_DSYMUTIL 14956 14957# Tool to change global to local symbols on Mac OS X. 14958NMEDIT=$lt_NMEDIT 14959 14960# Tool to manipulate fat objects and archives on Mac OS X. 14961LIPO=$lt_LIPO 14962 14963# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14964OTOOL=$lt_OTOOL 14965 14966# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14967OTOOL64=$lt_OTOOL64 14968 14969# Old archive suffix (normally "a"). 14970libext=$libext 14971 14972# Shared library suffix (normally ".so"). 14973shrext_cmds=$lt_shrext_cmds 14974 14975# The commands to extract the exported symbol list from a shared archive. 14976extract_expsyms_cmds=$lt_extract_expsyms_cmds 14977 14978# Variables whose values should be saved in libtool wrapper scripts and 14979# restored at link time. 14980variables_saved_for_relink=$lt_variables_saved_for_relink 14981 14982# Do we need the "lib" prefix for modules? 14983need_lib_prefix=$need_lib_prefix 14984 14985# Do we need a version for libraries? 14986need_version=$need_version 14987 14988# Library versioning type. 14989version_type=$version_type 14990 14991# Shared library runtime path variable. 14992runpath_var=$runpath_var 14993 14994# Shared library path variable. 14995shlibpath_var=$shlibpath_var 14996 14997# Is shlibpath searched before the hard-coded library search path? 14998shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14999 15000# Format of library name prefix. 15001libname_spec=$lt_libname_spec 15002 15003# List of archive names. First name is the real one, the rest are links. 15004# The last name is the one that the linker finds with -lNAME 15005library_names_spec=$lt_library_names_spec 15006 15007# The coded name of the library, if different from the real name. 15008soname_spec=$lt_soname_spec 15009 15010# Permission mode override for installation of shared libraries. 15011install_override_mode=$lt_install_override_mode 15012 15013# Command to use after installation of a shared archive. 15014postinstall_cmds=$lt_postinstall_cmds 15015 15016# Command to use after uninstallation of a shared archive. 15017postuninstall_cmds=$lt_postuninstall_cmds 15018 15019# Commands used to finish a libtool library installation in a directory. 15020finish_cmds=$lt_finish_cmds 15021 15022# As "finish_cmds", except a single script fragment to be evaled but 15023# not shown. 15024finish_eval=$lt_finish_eval 15025 15026# Whether we should hardcode library paths into libraries. 15027hardcode_into_libs=$hardcode_into_libs 15028 15029# Compile-time system search path for libraries. 15030sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15031 15032# Detected run-time system search path for libraries. 15033sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 15034 15035# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 15036configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 15037 15038# Whether dlopen is supported. 15039dlopen_support=$enable_dlopen 15040 15041# Whether dlopen of programs is supported. 15042dlopen_self=$enable_dlopen_self 15043 15044# Whether dlopen of statically linked programs is supported. 15045dlopen_self_static=$enable_dlopen_self_static 15046 15047# Commands to strip libraries. 15048old_striplib=$lt_old_striplib 15049striplib=$lt_striplib 15050 15051 15052# The linker used to build libraries. 15053LD=$lt_LD 15054 15055# How to create reloadable object files. 15056reload_flag=$lt_reload_flag 15057reload_cmds=$lt_reload_cmds 15058 15059# Commands used to build an old-style archive. 15060old_archive_cmds=$lt_old_archive_cmds 15061 15062# A language specific compiler. 15063CC=$lt_compiler 15064 15065# Is the compiler the GNU compiler? 15066with_gcc=$GCC 15067 15068# Compiler flag to turn off builtin functions. 15069no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15070 15071# Additional compiler flags for building library objects. 15072pic_flag=$lt_lt_prog_compiler_pic 15073 15074# How to pass a linker flag through the compiler. 15075wl=$lt_lt_prog_compiler_wl 15076 15077# Compiler flag to prevent dynamic linking. 15078link_static_flag=$lt_lt_prog_compiler_static 15079 15080# Does compiler simultaneously support -c and -o options? 15081compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15082 15083# Whether or not to add -lc for building shared libraries. 15084build_libtool_need_lc=$archive_cmds_need_lc 15085 15086# Whether or not to disallow shared libs when runtime libs are static. 15087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15088 15089# Compiler flag to allow reflexive dlopens. 15090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15091 15092# Compiler flag to generate shared objects directly from archives. 15093whole_archive_flag_spec=$lt_whole_archive_flag_spec 15094 15095# Whether the compiler copes with passing no objects directly. 15096compiler_needs_object=$lt_compiler_needs_object 15097 15098# Create an old-style archive from a shared archive. 15099old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15100 15101# Create a temporary old-style archive to link instead of a shared archive. 15102old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15103 15104# Commands used to build a shared archive. 15105archive_cmds=$lt_archive_cmds 15106archive_expsym_cmds=$lt_archive_expsym_cmds 15107 15108# Commands used to build a loadable module if different from building 15109# a shared archive. 15110module_cmds=$lt_module_cmds 15111module_expsym_cmds=$lt_module_expsym_cmds 15112 15113# Whether we are building with GNU ld or not. 15114with_gnu_ld=$lt_with_gnu_ld 15115 15116# Flag that allows shared libraries with undefined symbols to be built. 15117allow_undefined_flag=$lt_allow_undefined_flag 15118 15119# Flag that enforces no undefined symbols. 15120no_undefined_flag=$lt_no_undefined_flag 15121 15122# Flag to hardcode \$libdir into a binary during linking. 15123# This must work even if \$libdir does not exist 15124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15125 15126# Whether we need a single "-rpath" flag with a separated argument. 15127hardcode_libdir_separator=$lt_hardcode_libdir_separator 15128 15129# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15130# DIR into the resulting binary. 15131hardcode_direct=$hardcode_direct 15132 15133# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 15134# DIR into the resulting binary and the resulting library dependency is 15135# "absolute",i.e impossible to change by setting \$shlibpath_var if the 15136# library is relocated. 15137hardcode_direct_absolute=$hardcode_direct_absolute 15138 15139# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15140# into the resulting binary. 15141hardcode_minus_L=$hardcode_minus_L 15142 15143# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15144# into the resulting binary. 15145hardcode_shlibpath_var=$hardcode_shlibpath_var 15146 15147# Set to "yes" if building a shared library automatically hardcodes DIR 15148# into the library and all subsequent libraries and executables linked 15149# against it. 15150hardcode_automatic=$hardcode_automatic 15151 15152# Set to yes if linker adds runtime paths of dependent libraries 15153# to runtime path list. 15154inherit_rpath=$inherit_rpath 15155 15156# Whether libtool must link a program against all its dependency libraries. 15157link_all_deplibs=$link_all_deplibs 15158 15159# Set to "yes" if exported symbols are required. 15160always_export_symbols=$always_export_symbols 15161 15162# The commands to list exported symbols. 15163export_symbols_cmds=$lt_export_symbols_cmds 15164 15165# Symbols that should not be listed in the preloaded symbols. 15166exclude_expsyms=$lt_exclude_expsyms 15167 15168# Symbols that must always be exported. 15169include_expsyms=$lt_include_expsyms 15170 15171# Commands necessary for linking programs (against libraries) with templates. 15172prelink_cmds=$lt_prelink_cmds 15173 15174# Commands necessary for finishing linking programs. 15175postlink_cmds=$lt_postlink_cmds 15176 15177# Specify filename containing input files. 15178file_list_spec=$lt_file_list_spec 15179 15180# How to hardcode a shared library path into an executable. 15181hardcode_action=$hardcode_action 15182 15183# ### END LIBTOOL CONFIG 15184 15185_LT_EOF 15186 15187 cat <<'_LT_EOF' >> "$cfgfile" 15188 15189# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 15190 15191# func_munge_path_list VARIABLE PATH 15192# ----------------------------------- 15193# VARIABLE is name of variable containing _space_ separated list of 15194# directories to be munged by the contents of PATH, which is string 15195# having a format: 15196# "DIR[:DIR]:" 15197# string "DIR[ DIR]" will be prepended to VARIABLE 15198# ":DIR[:DIR]" 15199# string "DIR[ DIR]" will be appended to VARIABLE 15200# "DIRP[:DIRP]::[DIRA:]DIRA" 15201# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 15202# "DIRA[ DIRA]" will be appended to VARIABLE 15203# "DIR[:DIR]" 15204# VARIABLE will be replaced by "DIR[ DIR]" 15205func_munge_path_list () 15206{ 15207 case x$2 in 15208 x) 15209 ;; 15210 *:) 15211 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 15212 ;; 15213 x:*) 15214 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 15215 ;; 15216 *::*) 15217 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 15218 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 15219 ;; 15220 *) 15221 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 15222 ;; 15223 esac 15224} 15225 15226 15227# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15228func_cc_basename () 15229{ 15230 for cc_temp in $*""; do 15231 case $cc_temp in 15232 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15233 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15234 \-*) ;; 15235 *) break;; 15236 esac 15237 done 15238 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15239} 15240 15241 15242# ### END FUNCTIONS SHARED WITH CONFIGURE 15243 15244_LT_EOF 15245 15246 case $host_os in 15247 aix3*) 15248 cat <<\_LT_EOF >> "$cfgfile" 15249# AIX sometimes has problems with the GCC collect2 program. For some 15250# reason, if we set the COLLECT_NAMES environment variable, the problems 15251# vanish in a puff of smoke. 15252if test set != "${COLLECT_NAMES+set}"; then 15253 COLLECT_NAMES= 15254 export COLLECT_NAMES 15255fi 15256_LT_EOF 15257 ;; 15258 esac 15259 15260 15261ltmain=$ac_aux_dir/ltmain.sh 15262 15263 15264 # We use sed instead of cat because bash on DJGPP gets confused if 15265 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15266 # text mode, it properly converts lines to CR/LF. This bash problem 15267 # is reportedly fixed, but why not run on old versions too? 15268 sed '$q' "$ltmain" >> "$cfgfile" \ 15269 || (rm -f "$cfgfile"; exit 1) 15270 15271 mv -f "$cfgfile" "$ofile" || 15272 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15273 chmod +x "$ofile" 15274 15275 ;; 15276 15277 esac 15278done # for ac_tag 15279 15280 15281as_fn_exit 0 15282_ACEOF 15283ac_clean_files=$ac_clean_files_save 15284 15285test $ac_write_fail = 0 || 15286 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15287 15288 15289# configure is writing to config.log, and then calls config.status. 15290# config.status does its own redirection, appending to config.log. 15291# Unfortunately, on DOS this fails, as config.log is still kept open 15292# by configure, so config.status won't be able to write to it; its 15293# output is simply discarded. So we exec the FD to /dev/null, 15294# effectively closing config.log, so it can be properly (re)opened and 15295# appended to by config.status. When coming back to configure, we 15296# need to make the FD available again. 15297if test "$no_create" != yes; then 15298 ac_cs_success=: 15299 ac_config_status_args= 15300 test "$silent" = yes && 15301 ac_config_status_args="$ac_config_status_args --quiet" 15302 exec 5>/dev/null 15303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15304 exec 5>>config.log 15305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15306 # would make configure fail if this is the last instruction. 15307 $ac_cs_success || as_fn_exit 1 15308fi 15309if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15311$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15312fi 15313 15314