File indexing completed on 2024-12-22 04:04:18
0001 #! /bin/sh 0002 # Guess values for system-dependent variables and create Makefiles. 0003 # Generated by GNU Autoconf 2.69 for potrace 1.16. 0004 # 0005 # Report bugs to <selinger at users.sourceforge.net>. 0006 # 0007 # 0008 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 0009 # 0010 # 0011 # This configure script is free software; the Free Software Foundation 0012 # gives unlimited permission to copy, distribute and modify it. 0013 ## -------------------- ## 0014 ## M4sh Initialization. ## 0015 ## -------------------- ## 0016 0017 # Be more Bourne compatible 0018 DUALCASE=1; export DUALCASE # for MKS sh 0019 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 0020 emulate sh 0021 NULLCMD=: 0022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 0023 # is contrary to our usage. Disable this feature. 0024 alias -g '${1+"$@"}'='"$@"' 0025 setopt NO_GLOB_SUBST 0026 else 0027 case `(set -o) 2>/dev/null` in #( 0028 *posix*) : 0029 set -o posix ;; #( 0030 *) : 0031 ;; 0032 esac 0033 fi 0034 0035 0036 as_nl=' 0037 ' 0038 export as_nl 0039 # Printing a long string crashes Solaris 7 /usr/bin/printf. 0040 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 0041 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 0042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 0043 # Prefer a ksh shell builtin over an external printf program on Solaris, 0044 # but without wasting forks for bash or zsh. 0045 if test -z "$BASH_VERSION$ZSH_VERSION" \ 0046 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 0047 as_echo='print -r --' 0048 as_echo_n='print -rn --' 0049 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 0050 as_echo='printf %s\n' 0051 as_echo_n='printf %s' 0052 else 0053 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 0054 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 0055 as_echo_n='/usr/ucb/echo -n' 0056 else 0057 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 0058 as_echo_n_body='eval 0059 arg=$1; 0060 case $arg in #( 0061 *"$as_nl"*) 0062 expr "X$arg" : "X\\(.*\\)$as_nl"; 0063 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 0064 esac; 0065 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 0066 ' 0067 export as_echo_n_body 0068 as_echo_n='sh -c $as_echo_n_body as_echo' 0069 fi 0070 export as_echo_body 0071 as_echo='sh -c $as_echo_body as_echo' 0072 fi 0073 0074 # The user is always right. 0075 if test "${PATH_SEPARATOR+set}" != set; then 0076 PATH_SEPARATOR=: 0077 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 0078 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 0079 PATH_SEPARATOR=';' 0080 } 0081 fi 0082 0083 0084 # IFS 0085 # We need space, tab and new line, in precisely that order. Quoting is 0086 # there to prevent editors from complaining about space-tab. 0087 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 0088 # splitting by setting IFS to empty value.) 0089 IFS=" "" $as_nl" 0090 0091 # Find who we are. Look in the path if we contain no directory separator. 0092 as_myself= 0093 case $0 in #(( 0094 *[\\/]* ) as_myself=$0 ;; 0095 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 0096 for as_dir in $PATH 0097 do 0098 IFS=$as_save_IFS 0099 test -z "$as_dir" && as_dir=. 0100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 0101 done 0102 IFS=$as_save_IFS 0103 0104 ;; 0105 esac 0106 # We did not find ourselves, most probably we were run as `sh COMMAND' 0107 # in which case we are not to be found in the path. 0108 if test "x$as_myself" = x; then 0109 as_myself=$0 0110 fi 0111 if test ! -f "$as_myself"; then 0112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 0113 exit 1 0114 fi 0115 0116 # Unset variables that we do not need and which cause bugs (e.g. in 0117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 0118 # suppresses any "Segmentation fault" message there. '((' could 0119 # trigger a bug in pdksh 5.2.14. 0120 for as_var in BASH_ENV ENV MAIL MAILPATH 0121 do eval test x\${$as_var+set} = xset \ 0122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 0123 done 0124 PS1='$ ' 0125 PS2='> ' 0126 PS4='+ ' 0127 0128 # NLS nuisances. 0129 LC_ALL=C 0130 export LC_ALL 0131 LANGUAGE=C 0132 export LANGUAGE 0133 0134 # CDPATH. 0135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 0136 0137 # Use a proper internal environment variable to ensure we don't fall 0138 # into an infinite loop, continuously re-executing ourselves. 0139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 0140 _as_can_reexec=no; export _as_can_reexec; 0141 # We cannot yet assume a decent shell, so we have to provide a 0142 # neutralization value for shells without unset; and this also 0143 # works around shells that cannot unset nonexistent variables. 0144 # Preserve -v and -x to the replacement shell. 0145 BASH_ENV=/dev/null 0146 ENV=/dev/null 0147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 0148 case $- in # (((( 0149 *v*x* | *x*v* ) as_opts=-vx ;; 0150 *v* ) as_opts=-v ;; 0151 *x* ) as_opts=-x ;; 0152 * ) as_opts= ;; 0153 esac 0154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 0155 # Admittedly, this is quite paranoid, since all the known shells bail 0156 # out after a failed `exec'. 0157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 0158 as_fn_exit 255 0159 fi 0160 # We don't want this to propagate to other subprocesses. 0161 { _as_can_reexec=; unset _as_can_reexec;} 0162 if test "x$CONFIG_SHELL" = x; then 0163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 0164 emulate sh 0165 NULLCMD=: 0166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 0167 # is contrary to our usage. Disable this feature. 0168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 0169 setopt NO_GLOB_SUBST 0170 else 0171 case \`(set -o) 2>/dev/null\` in #( 0172 *posix*) : 0173 set -o posix ;; #( 0174 *) : 0175 ;; 0176 esac 0177 fi 0178 " 0179 as_required="as_fn_return () { (exit \$1); } 0180 as_fn_success () { as_fn_return 0; } 0181 as_fn_failure () { as_fn_return 1; } 0182 as_fn_ret_success () { return 0; } 0183 as_fn_ret_failure () { return 1; } 0184 0185 exitcode=0 0186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 0187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 0188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 0189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 0190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 0191 0192 else 0193 exitcode=1; echo positional parameters were not saved. 0194 fi 0195 test x\$exitcode = x0 || exit 1 0196 test -x / || exit 1" 0197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 0198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 0199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 0200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 0201 test \$(( 1 + 1 )) = 2 || exit 1 0202 0203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 0204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 0205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 0206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 0207 PATH=/empty FPATH=/empty; export PATH FPATH 0208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 0209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 0210 if (eval "$as_required") 2>/dev/null; then : 0211 as_have_required=yes 0212 else 0213 as_have_required=no 0214 fi 0215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 0216 0217 else 0218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 0219 as_found=false 0220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 0221 do 0222 IFS=$as_save_IFS 0223 test -z "$as_dir" && as_dir=. 0224 as_found=: 0225 case $as_dir in #( 0226 /*) 0227 for as_base in sh bash ksh sh5; do 0228 # Try only shells that exist, to save several forks. 0229 as_shell=$as_dir/$as_base 0230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 0231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 0232 CONFIG_SHELL=$as_shell as_have_required=yes 0233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 0234 break 2 0235 fi 0236 fi 0237 done;; 0238 esac 0239 as_found=false 0240 done 0241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 0242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 0243 CONFIG_SHELL=$SHELL as_have_required=yes 0244 fi; } 0245 IFS=$as_save_IFS 0246 0247 0248 if test "x$CONFIG_SHELL" != x; then : 0249 export CONFIG_SHELL 0250 # We cannot yet assume a decent shell, so we have to provide a 0251 # neutralization value for shells without unset; and this also 0252 # works around shells that cannot unset nonexistent variables. 0253 # Preserve -v and -x to the replacement shell. 0254 BASH_ENV=/dev/null 0255 ENV=/dev/null 0256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 0257 case $- in # (((( 0258 *v*x* | *x*v* ) as_opts=-vx ;; 0259 *v* ) as_opts=-v ;; 0260 *x* ) as_opts=-x ;; 0261 * ) as_opts= ;; 0262 esac 0263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 0264 # Admittedly, this is quite paranoid, since all the known shells bail 0265 # out after a failed `exec'. 0266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 0267 exit 255 0268 fi 0269 0270 if test x$as_have_required = xno; then : 0271 $as_echo "$0: This script requires a shell more modern than all" 0272 $as_echo "$0: the shells that I found on your system." 0273 if test x${ZSH_VERSION+set} = xset ; then 0274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 0275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 0276 else 0277 $as_echo "$0: Please tell bug-autoconf@gnu.org and selinger at 0278 $0: users.sourceforge.net about your system, including any 0279 $0: error possibly output before this message. Then install 0280 $0: a modern shell, or manually run the script under such a 0281 $0: shell if you do have one." 0282 fi 0283 exit 1 0284 fi 0285 fi 0286 fi 0287 SHELL=${CONFIG_SHELL-/bin/sh} 0288 export SHELL 0289 # Unset more variables known to interfere with behavior of common tools. 0290 CLICOLOR_FORCE= GREP_OPTIONS= 0291 unset CLICOLOR_FORCE GREP_OPTIONS 0292 0293 ## --------------------- ## 0294 ## M4sh Shell Functions. ## 0295 ## --------------------- ## 0296 # as_fn_unset VAR 0297 # --------------- 0298 # Portably unset VAR. 0299 as_fn_unset () 0300 { 0301 { eval $1=; unset $1;} 0302 } 0303 as_unset=as_fn_unset 0304 0305 # as_fn_set_status STATUS 0306 # ----------------------- 0307 # Set $? to STATUS, without forking. 0308 as_fn_set_status () 0309 { 0310 return $1 0311 } # as_fn_set_status 0312 0313 # as_fn_exit STATUS 0314 # ----------------- 0315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 0316 as_fn_exit () 0317 { 0318 set +e 0319 as_fn_set_status $1 0320 exit $1 0321 } # as_fn_exit 0322 0323 # as_fn_mkdir_p 0324 # ------------- 0325 # Create "$as_dir" as a directory, including parents if necessary. 0326 as_fn_mkdir_p () 0327 { 0328 0329 case $as_dir in #( 0330 -*) as_dir=./$as_dir;; 0331 esac 0332 test -d "$as_dir" || eval $as_mkdir_p || { 0333 as_dirs= 0334 while :; do 0335 case $as_dir in #( 0336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 0337 *) as_qdir=$as_dir;; 0338 esac 0339 as_dirs="'$as_qdir' $as_dirs" 0340 as_dir=`$as_dirname -- "$as_dir" || 0341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 0342 X"$as_dir" : 'X\(//\)[^/]' \| \ 0343 X"$as_dir" : 'X\(//\)$' \| \ 0344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 0345 $as_echo X"$as_dir" | 0346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 0347 s//\1/ 0348 q 0349 } 0350 /^X\(\/\/\)[^/].*/{ 0351 s//\1/ 0352 q 0353 } 0354 /^X\(\/\/\)$/{ 0355 s//\1/ 0356 q 0357 } 0358 /^X\(\/\).*/{ 0359 s//\1/ 0360 q 0361 } 0362 s/.*/./; q'` 0363 test -d "$as_dir" && break 0364 done 0365 test -z "$as_dirs" || eval "mkdir $as_dirs" 0366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 0367 0368 0369 } # as_fn_mkdir_p 0370 0371 # as_fn_executable_p FILE 0372 # ----------------------- 0373 # Test if FILE is an executable regular file. 0374 as_fn_executable_p () 0375 { 0376 test -f "$1" && test -x "$1" 0377 } # as_fn_executable_p 0378 # as_fn_append VAR VALUE 0379 # ---------------------- 0380 # Append the text in VALUE to the end of the definition contained in VAR. Take 0381 # advantage of any shell optimizations that allow amortized linear growth over 0382 # repeated appends, instead of the typical quadratic growth present in naive 0383 # implementations. 0384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 0385 eval 'as_fn_append () 0386 { 0387 eval $1+=\$2 0388 }' 0389 else 0390 as_fn_append () 0391 { 0392 eval $1=\$$1\$2 0393 } 0394 fi # as_fn_append 0395 0396 # as_fn_arith ARG... 0397 # ------------------ 0398 # Perform arithmetic evaluation on the ARGs, and store the result in the 0399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 0400 # must be portable across $(()) and expr. 0401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 0402 eval 'as_fn_arith () 0403 { 0404 as_val=$(( $* )) 0405 }' 0406 else 0407 as_fn_arith () 0408 { 0409 as_val=`expr "$@" || test $? -eq 1` 0410 } 0411 fi # as_fn_arith 0412 0413 0414 # as_fn_error STATUS ERROR [LINENO LOG_FD] 0415 # ---------------------------------------- 0416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 0417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 0418 # script with STATUS, using 1 if that was 0. 0419 as_fn_error () 0420 { 0421 as_status=$1; test $as_status -eq 0 && as_status=1 0422 if test "$4"; then 0423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 0424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 0425 fi 0426 $as_echo "$as_me: error: $2" >&2 0427 as_fn_exit $as_status 0428 } # as_fn_error 0429 0430 if expr a : '\(a\)' >/dev/null 2>&1 && 0431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 0432 as_expr=expr 0433 else 0434 as_expr=false 0435 fi 0436 0437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 0438 as_basename=basename 0439 else 0440 as_basename=false 0441 fi 0442 0443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 0444 as_dirname=dirname 0445 else 0446 as_dirname=false 0447 fi 0448 0449 as_me=`$as_basename -- "$0" || 0450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 0451 X"$0" : 'X\(//\)$' \| \ 0452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 0453 $as_echo X/"$0" | 0454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 0455 s//\1/ 0456 q 0457 } 0458 /^X\/\(\/\/\)$/{ 0459 s//\1/ 0460 q 0461 } 0462 /^X\/\(\/\).*/{ 0463 s//\1/ 0464 q 0465 } 0466 s/.*/./; q'` 0467 0468 # Avoid depending upon Character Ranges. 0469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 0470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 0471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 0472 as_cr_digits='0123456789' 0473 as_cr_alnum=$as_cr_Letters$as_cr_digits 0474 0475 0476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 0477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 0478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 0479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 0480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 0481 sed -n ' 0482 p 0483 /[$]LINENO/= 0484 ' <$as_myself | 0485 sed ' 0486 s/[$]LINENO.*/&-/ 0487 t lineno 0488 b 0489 :lineno 0490 N 0491 :loop 0492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 0493 t loop 0494 s/-\n.*// 0495 ' >$as_me.lineno && 0496 chmod +x "$as_me.lineno" || 0497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 0498 0499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 0500 # already done that, so ensure we don't try to do so again and fall 0501 # in an infinite loop. This has already happened in practice. 0502 _as_can_reexec=no; export _as_can_reexec 0503 # Don't try to exec as it changes $[0], causing all sort of problems 0504 # (the dirname of $[0] is not the place where we might find the 0505 # original and so on. Autoconf is especially sensitive to this). 0506 . "./$as_me.lineno" 0507 # Exit status is that of the last command. 0508 exit 0509 } 0510 0511 ECHO_C= ECHO_N= ECHO_T= 0512 case `echo -n x` in #((((( 0513 -n*) 0514 case `echo 'xy\c'` in 0515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 0516 xy) ECHO_C='\c';; 0517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 0518 ECHO_T=' ';; 0519 esac;; 0520 *) 0521 ECHO_N='-n';; 0522 esac 0523 0524 rm -f conf$$ conf$$.exe conf$$.file 0525 if test -d conf$$.dir; then 0526 rm -f conf$$.dir/conf$$.file 0527 else 0528 rm -f conf$$.dir 0529 mkdir conf$$.dir 2>/dev/null 0530 fi 0531 if (echo >conf$$.file) 2>/dev/null; then 0532 if ln -s conf$$.file conf$$ 2>/dev/null; then 0533 as_ln_s='ln -s' 0534 # ... but there are two gotchas: 0535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 0536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 0537 # In both cases, we have to default to `cp -pR'. 0538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 0539 as_ln_s='cp -pR' 0540 elif ln conf$$.file conf$$ 2>/dev/null; then 0541 as_ln_s=ln 0542 else 0543 as_ln_s='cp -pR' 0544 fi 0545 else 0546 as_ln_s='cp -pR' 0547 fi 0548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 0549 rmdir conf$$.dir 2>/dev/null 0550 0551 if mkdir -p . 2>/dev/null; then 0552 as_mkdir_p='mkdir -p "$as_dir"' 0553 else 0554 test -d ./-p && rmdir ./-p 0555 as_mkdir_p=false 0556 fi 0557 0558 as_test_x='test -x' 0559 as_executable_p=as_fn_executable_p 0560 0561 # Sed expression to map a string onto a valid CPP name. 0562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 0563 0564 # Sed expression to map a string onto a valid variable name. 0565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 0566 0567 SHELL=${CONFIG_SHELL-/bin/sh} 0568 0569 0570 test -n "$DJDIR" || exec 7<&0 </dev/null 0571 exec 6>&1 0572 0573 # Name of the host. 0574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 0575 # so uname gets run too. 0576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 0577 0578 # 0579 # Initializations. 0580 # 0581 ac_default_prefix=/usr/local 0582 ac_clean_files= 0583 ac_config_libobj_dir=. 0584 LIBOBJS= 0585 cross_compiling=no 0586 subdirs= 0587 MFLAGS= 0588 MAKEFLAGS= 0589 0590 # Identity of this package. 0591 PACKAGE_NAME='potrace' 0592 PACKAGE_TARNAME='potrace' 0593 PACKAGE_VERSION='1.16' 0594 PACKAGE_STRING='potrace 1.16' 0595 PACKAGE_BUGREPORT='selinger at users.sourceforge.net' 0596 PACKAGE_URL='' 0597 0598 ac_unique_file="src/trace.c" 0599 # Factoring default headers for most tests. 0600 ac_includes_default="\ 0601 #include <stdio.h> 0602 #ifdef HAVE_SYS_TYPES_H 0603 # include <sys/types.h> 0604 #endif 0605 #ifdef HAVE_SYS_STAT_H 0606 # include <sys/stat.h> 0607 #endif 0608 #ifdef STDC_HEADERS 0609 # include <stdlib.h> 0610 # include <stddef.h> 0611 #else 0612 # ifdef HAVE_STDLIB_H 0613 # include <stdlib.h> 0614 # endif 0615 #endif 0616 #ifdef HAVE_STRING_H 0617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 0618 # include <memory.h> 0619 # endif 0620 # include <string.h> 0621 #endif 0622 #ifdef HAVE_STRINGS_H 0623 # include <strings.h> 0624 #endif 0625 #ifdef HAVE_INTTYPES_H 0626 # include <inttypes.h> 0627 #endif 0628 #ifdef HAVE_STDINT_H 0629 # include <stdint.h> 0630 #endif 0631 #ifdef HAVE_UNISTD_H 0632 # include <unistd.h> 0633 #endif" 0634 0635 ac_subst_vars='am__EXEEXT_FALSE 0636 am__EXEEXT_TRUE 0637 LTLIBOBJS 0638 LIBOBJS 0639 POTRACELIB_VERSION 0640 AM_CPPFLAGS 0641 EXTRA_LIBS 0642 EXTRA_INCLUDES 0643 EXTRA_OBJS 0644 MKBITMAP 0645 POTRACE 0646 DATE 0647 INSTHEADERS 0648 INSTLIBS 0649 LT_SYS_LIBRARY_PATH 0650 OTOOL64 0651 OTOOL 0652 LIPO 0653 NMEDIT 0654 DSYMUTIL 0655 MANIFEST_TOOL 0656 RANLIB 0657 ac_ct_AR 0658 AR 0659 LN_S 0660 NM 0661 ac_ct_DUMPBIN 0662 DUMPBIN 0663 LD 0664 FGREP 0665 SED 0666 LIBTOOL 0667 OBJDUMP 0668 DLLTOOL 0669 AS 0670 host_os 0671 host_vendor 0672 host_cpu 0673 host 0674 build_os 0675 build_vendor 0676 build_cpu 0677 build 0678 CADD 0679 EGREP 0680 GREP 0681 CPP 0682 am__fastdepCC_FALSE 0683 am__fastdepCC_TRUE 0684 CCDEPMODE 0685 am__nodep 0686 AMDEPBACKSLASH 0687 AMDEP_FALSE 0688 AMDEP_TRUE 0689 am__include 0690 DEPDIR 0691 OBJEXT 0692 EXEEXT 0693 ac_ct_CC 0694 CPPFLAGS 0695 LDFLAGS 0696 CFLAGS 0697 CC 0698 AM_BACKSLASH 0699 AM_DEFAULT_VERBOSITY 0700 AM_DEFAULT_V 0701 AM_V 0702 am__untar 0703 am__tar 0704 AMTAR 0705 am__leading_dot 0706 SET_MAKE 0707 AWK 0708 mkdir_p 0709 MKDIR_P 0710 INSTALL_STRIP_PROGRAM 0711 STRIP 0712 install_sh 0713 MAKEINFO 0714 AUTOHEADER 0715 AUTOMAKE 0716 AUTOCONF 0717 ACLOCAL 0718 VERSION 0719 PACKAGE 0720 CYGPATH_W 0721 am__isrc 0722 INSTALL_DATA 0723 INSTALL_SCRIPT 0724 INSTALL_PROGRAM 0725 target_alias 0726 host_alias 0727 build_alias 0728 LIBS 0729 ECHO_T 0730 ECHO_N 0731 ECHO_C 0732 DEFS 0733 mandir 0734 localedir 0735 libdir 0736 psdir 0737 pdfdir 0738 dvidir 0739 htmldir 0740 infodir 0741 docdir 0742 oldincludedir 0743 includedir 0744 runstatedir 0745 localstatedir 0746 sharedstatedir 0747 sysconfdir 0748 datadir 0749 datarootdir 0750 libexecdir 0751 sbindir 0752 bindir 0753 program_transform_name 0754 prefix 0755 exec_prefix 0756 PACKAGE_URL 0757 PACKAGE_BUGREPORT 0758 PACKAGE_STRING 0759 PACKAGE_VERSION 0760 PACKAGE_TARNAME 0761 PACKAGE_NAME 0762 PATH_SEPARATOR 0763 SHELL 0764 am__quote' 0765 ac_subst_files='' 0766 ac_user_opts=' 0767 enable_option_checking 0768 enable_silent_rules 0769 enable_dependency_tracking 0770 with_libpotrace 0771 enable_shared 0772 enable_static 0773 with_pic 0774 enable_fast_install 0775 with_aix_soname 0776 with_gnu_ld 0777 with_sysroot 0778 enable_libtool_lock 0779 enable_zlib 0780 enable_metric 0781 enable_a4 0782 enable_dumb_tty 0783 with_included_getopt 0784 ' 0785 ac_precious_vars='build_alias 0786 host_alias 0787 target_alias 0788 CC 0789 CFLAGS 0790 LDFLAGS 0791 LIBS 0792 CPPFLAGS 0793 CPP 0794 LT_SYS_LIBRARY_PATH' 0795 0796 0797 # Initialize some variables set by options. 0798 ac_init_help= 0799 ac_init_version=false 0800 ac_unrecognized_opts= 0801 ac_unrecognized_sep= 0802 # The variables have the same names as the options, with 0803 # dashes changed to underlines. 0804 cache_file=/dev/null 0805 exec_prefix=NONE 0806 no_create= 0807 no_recursion= 0808 prefix=NONE 0809 program_prefix=NONE 0810 program_suffix=NONE 0811 program_transform_name=s,x,x, 0812 silent= 0813 site= 0814 srcdir= 0815 verbose= 0816 x_includes=NONE 0817 x_libraries=NONE 0818 0819 # Installation directory options. 0820 # These are left unexpanded so users can "make install exec_prefix=/foo" 0821 # and all the variables that are supposed to be based on exec_prefix 0822 # by default will actually change. 0823 # Use braces instead of parens because sh, perl, etc. also accept them. 0824 # (The list follows the same order as the GNU Coding Standards.) 0825 bindir='${exec_prefix}/bin' 0826 sbindir='${exec_prefix}/sbin' 0827 libexecdir='${exec_prefix}/libexec' 0828 datarootdir='${prefix}/share' 0829 datadir='${datarootdir}' 0830 sysconfdir='${prefix}/etc' 0831 sharedstatedir='${prefix}/com' 0832 localstatedir='${prefix}/var' 0833 runstatedir='${localstatedir}/run' 0834 includedir='${prefix}/include' 0835 oldincludedir='/usr/include' 0836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 0837 infodir='${datarootdir}/info' 0838 htmldir='${docdir}' 0839 dvidir='${docdir}' 0840 pdfdir='${docdir}' 0841 psdir='${docdir}' 0842 libdir='${exec_prefix}/lib' 0843 localedir='${datarootdir}/locale' 0844 mandir='${datarootdir}/man' 0845 0846 ac_prev= 0847 ac_dashdash= 0848 for ac_option 0849 do 0850 # If the previous option needs an argument, assign it. 0851 if test -n "$ac_prev"; then 0852 eval $ac_prev=\$ac_option 0853 ac_prev= 0854 continue 0855 fi 0856 0857 case $ac_option in 0858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 0859 *=) ac_optarg= ;; 0860 *) ac_optarg=yes ;; 0861 esac 0862 0863 # Accept the important Cygnus configure options, so we can diagnose typos. 0864 0865 case $ac_dashdash$ac_option in 0866 --) 0867 ac_dashdash=yes ;; 0868 0869 -bindir | --bindir | --bindi | --bind | --bin | --bi) 0870 ac_prev=bindir ;; 0871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 0872 bindir=$ac_optarg ;; 0873 0874 -build | --build | --buil | --bui | --bu) 0875 ac_prev=build_alias ;; 0876 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 0877 build_alias=$ac_optarg ;; 0878 0879 -cache-file | --cache-file | --cache-fil | --cache-fi \ 0880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 0881 ac_prev=cache_file ;; 0882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 0883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 0884 cache_file=$ac_optarg ;; 0885 0886 --config-cache | -C) 0887 cache_file=config.cache ;; 0888 0889 -datadir | --datadir | --datadi | --datad) 0890 ac_prev=datadir ;; 0891 -datadir=* | --datadir=* | --datadi=* | --datad=*) 0892 datadir=$ac_optarg ;; 0893 0894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 0895 | --dataroo | --dataro | --datar) 0896 ac_prev=datarootdir ;; 0897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 0898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 0899 datarootdir=$ac_optarg ;; 0900 0901 -disable-* | --disable-*) 0902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 0903 # Reject names that are not valid shell variable names. 0904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 0905 as_fn_error $? "invalid feature name: $ac_useropt" 0906 ac_useropt_orig=$ac_useropt 0907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 0908 case $ac_user_opts in 0909 *" 0910 "enable_$ac_useropt" 0911 "*) ;; 0912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 0913 ac_unrecognized_sep=', ';; 0914 esac 0915 eval enable_$ac_useropt=no ;; 0916 0917 -docdir | --docdir | --docdi | --doc | --do) 0918 ac_prev=docdir ;; 0919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 0920 docdir=$ac_optarg ;; 0921 0922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 0923 ac_prev=dvidir ;; 0924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 0925 dvidir=$ac_optarg ;; 0926 0927 -enable-* | --enable-*) 0928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 0929 # Reject names that are not valid shell variable names. 0930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 0931 as_fn_error $? "invalid feature name: $ac_useropt" 0932 ac_useropt_orig=$ac_useropt 0933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 0934 case $ac_user_opts in 0935 *" 0936 "enable_$ac_useropt" 0937 "*) ;; 0938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 0939 ac_unrecognized_sep=', ';; 0940 esac 0941 eval enable_$ac_useropt=\$ac_optarg ;; 0942 0943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 0944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 0945 | --exec | --exe | --ex) 0946 ac_prev=exec_prefix ;; 0947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 0948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 0949 | --exec=* | --exe=* | --ex=*) 0950 exec_prefix=$ac_optarg ;; 0951 0952 -gas | --gas | --ga | --g) 0953 # Obsolete; use --with-gas. 0954 with_gas=yes ;; 0955 0956 -help | --help | --hel | --he | -h) 0957 ac_init_help=long ;; 0958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 0959 ac_init_help=recursive ;; 0960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 0961 ac_init_help=short ;; 0962 0963 -host | --host | --hos | --ho) 0964 ac_prev=host_alias ;; 0965 -host=* | --host=* | --hos=* | --ho=*) 0966 host_alias=$ac_optarg ;; 0967 0968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 0969 ac_prev=htmldir ;; 0970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 0971 | --ht=*) 0972 htmldir=$ac_optarg ;; 0973 0974 -includedir | --includedir | --includedi | --included | --include \ 0975 | --includ | --inclu | --incl | --inc) 0976 ac_prev=includedir ;; 0977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 0978 | --includ=* | --inclu=* | --incl=* | --inc=*) 0979 includedir=$ac_optarg ;; 0980 0981 -infodir | --infodir | --infodi | --infod | --info | --inf) 0982 ac_prev=infodir ;; 0983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 0984 infodir=$ac_optarg ;; 0985 0986 -libdir | --libdir | --libdi | --libd) 0987 ac_prev=libdir ;; 0988 -libdir=* | --libdir=* | --libdi=* | --libd=*) 0989 libdir=$ac_optarg ;; 0990 0991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 0992 | --libexe | --libex | --libe) 0993 ac_prev=libexecdir ;; 0994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 0995 | --libexe=* | --libex=* | --libe=*) 0996 libexecdir=$ac_optarg ;; 0997 0998 -localedir | --localedir | --localedi | --localed | --locale) 0999 ac_prev=localedir ;; 1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1001 localedir=$ac_optarg ;; 1002 1003 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1004 | --localstate | --localstat | --localsta | --localst | --locals) 1005 ac_prev=localstatedir ;; 1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1008 localstatedir=$ac_optarg ;; 1009 1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1011 ac_prev=mandir ;; 1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1013 mandir=$ac_optarg ;; 1014 1015 -nfp | --nfp | --nf) 1016 # Obsolete; use --without-fp. 1017 with_fp=no ;; 1018 1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1020 | --no-cr | --no-c | -n) 1021 no_create=yes ;; 1022 1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1025 no_recursion=yes ;; 1026 1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1029 | --oldin | --oldi | --old | --ol | --o) 1030 ac_prev=oldincludedir ;; 1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1034 oldincludedir=$ac_optarg ;; 1035 1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1037 ac_prev=prefix ;; 1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1039 prefix=$ac_optarg ;; 1040 1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1042 | --program-pre | --program-pr | --program-p) 1043 ac_prev=program_prefix ;; 1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1046 program_prefix=$ac_optarg ;; 1047 1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1049 | --program-suf | --program-su | --program-s) 1050 ac_prev=program_suffix ;; 1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1053 program_suffix=$ac_optarg ;; 1054 1055 -program-transform-name | --program-transform-name \ 1056 | --program-transform-nam | --program-transform-na \ 1057 | --program-transform-n | --program-transform- \ 1058 | --program-transform | --program-transfor \ 1059 | --program-transfo | --program-transf \ 1060 | --program-trans | --program-tran \ 1061 | --progr-tra | --program-tr | --program-t) 1062 ac_prev=program_transform_name ;; 1063 -program-transform-name=* | --program-transform-name=* \ 1064 | --program-transform-nam=* | --program-transform-na=* \ 1065 | --program-transform-n=* | --program-transform-=* \ 1066 | --program-transform=* | --program-transfor=* \ 1067 | --program-transfo=* | --program-transf=* \ 1068 | --program-trans=* | --program-tran=* \ 1069 | --progr-tra=* | --program-tr=* | --program-t=*) 1070 program_transform_name=$ac_optarg ;; 1071 1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1073 ac_prev=pdfdir ;; 1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1075 pdfdir=$ac_optarg ;; 1076 1077 -psdir | --psdir | --psdi | --psd | --ps) 1078 ac_prev=psdir ;; 1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1080 psdir=$ac_optarg ;; 1081 1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1083 | -silent | --silent | --silen | --sile | --sil) 1084 silent=yes ;; 1085 1086 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1087 | --runstate | --runstat | --runsta | --runst | --runs \ 1088 | --run | --ru | --r) 1089 ac_prev=runstatedir ;; 1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1092 | --run=* | --ru=* | --r=*) 1093 runstatedir=$ac_optarg ;; 1094 1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1096 ac_prev=sbindir ;; 1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1098 | --sbi=* | --sb=*) 1099 sbindir=$ac_optarg ;; 1100 1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1103 | --sharedst | --shareds | --shared | --share | --shar \ 1104 | --sha | --sh) 1105 ac_prev=sharedstatedir ;; 1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1109 | --sha=* | --sh=*) 1110 sharedstatedir=$ac_optarg ;; 1111 1112 -site | --site | --sit) 1113 ac_prev=site ;; 1114 -site=* | --site=* | --sit=*) 1115 site=$ac_optarg ;; 1116 1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1118 ac_prev=srcdir ;; 1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1120 srcdir=$ac_optarg ;; 1121 1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1123 | --syscon | --sysco | --sysc | --sys | --sy) 1124 ac_prev=sysconfdir ;; 1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1127 sysconfdir=$ac_optarg ;; 1128 1129 -target | --target | --targe | --targ | --tar | --ta | --t) 1130 ac_prev=target_alias ;; 1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1132 target_alias=$ac_optarg ;; 1133 1134 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1135 verbose=yes ;; 1136 1137 -version | --version | --versio | --versi | --vers | -V) 1138 ac_init_version=: ;; 1139 1140 -with-* | --with-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149 "with_$ac_useropt" 1150 "*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=\$ac_optarg ;; 1155 1156 -without-* | --without-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165 "with_$ac_useropt" 1166 "*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=no ;; 1171 1172 --x) 1173 # Obsolete; use --with-x. 1174 with_x=yes ;; 1175 1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1177 | --x-incl | --x-inc | --x-in | --x-i) 1178 ac_prev=x_includes ;; 1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1181 x_includes=$ac_optarg ;; 1182 1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1185 ac_prev=x_libraries ;; 1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1188 x_libraries=$ac_optarg ;; 1189 1190 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1191 Try \`$0 --help' for more information" 1192 ;; 1193 1194 *=*) 1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1196 # Reject names that are not valid shell variable names. 1197 case $ac_envvar in #( 1198 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1200 esac 1201 eval $ac_envvar=\$ac_optarg 1202 export $ac_envvar ;; 1203 1204 *) 1205 # FIXME: should be removed in autoconf 3.0. 1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1210 ;; 1211 1212 esac 1213 done 1214 1215 if test -n "$ac_prev"; then 1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1217 as_fn_error $? "missing argument to $ac_option" 1218 fi 1219 1220 if test -n "$ac_unrecognized_opts"; then 1221 case $enable_option_checking in 1222 no) ;; 1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1225 esac 1226 fi 1227 1228 # Check all directory arguments for consistency. 1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1230 datadir sysconfdir sharedstatedir localstatedir includedir \ 1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1232 libdir localedir mandir runstatedir 1233 do 1234 eval ac_val=\$$ac_var 1235 # Remove trailing slashes. 1236 case $ac_val in 1237 */ ) 1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1239 eval $ac_var=\$ac_val;; 1240 esac 1241 # Be sure to have absolute directory names. 1242 case $ac_val in 1243 [\\/$]* | ?:[\\/]* ) continue;; 1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1245 esac 1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1247 done 1248 1249 # There might be people who depend on the old broken behavior: `$host' 1250 # used to hold the argument of --host etc. 1251 # FIXME: To remove some day. 1252 build=$build_alias 1253 host=$host_alias 1254 target=$target_alias 1255 1256 # FIXME: To remove some day. 1257 if test "x$host_alias" != x; then 1258 if test "x$build_alias" = x; then 1259 cross_compiling=maybe 1260 elif test "x$build_alias" != "x$host_alias"; then 1261 cross_compiling=yes 1262 fi 1263 fi 1264 1265 ac_tool_prefix= 1266 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1267 1268 test "$silent" = yes && exec 6>/dev/null 1269 1270 1271 ac_pwd=`pwd` && test -n "$ac_pwd" && 1272 ac_ls_di=`ls -di .` && 1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1274 as_fn_error $? "working directory cannot be determined" 1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1276 as_fn_error $? "pwd does not report name of working directory" 1277 1278 1279 # Find the source files, if location was not specified. 1280 if test -z "$srcdir"; then 1281 ac_srcdir_defaulted=yes 1282 # Try the directory containing this script, then the parent directory. 1283 ac_confdir=`$as_dirname -- "$as_myself" || 1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1285 X"$as_myself" : 'X\(//\)[^/]' \| \ 1286 X"$as_myself" : 'X\(//\)$' \| \ 1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1288 $as_echo X"$as_myself" | 1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1290 s//\1/ 1291 q 1292 } 1293 /^X\(\/\/\)[^/].*/{ 1294 s//\1/ 1295 q 1296 } 1297 /^X\(\/\/\)$/{ 1298 s//\1/ 1299 q 1300 } 1301 /^X\(\/\).*/{ 1302 s//\1/ 1303 q 1304 } 1305 s/.*/./; q'` 1306 srcdir=$ac_confdir 1307 if test ! -r "$srcdir/$ac_unique_file"; then 1308 srcdir=.. 1309 fi 1310 else 1311 ac_srcdir_defaulted=no 1312 fi 1313 if test ! -r "$srcdir/$ac_unique_file"; then 1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1316 fi 1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1318 ac_abs_confdir=`( 1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1320 pwd)` 1321 # When building in place, set srcdir=. 1322 if test "$ac_abs_confdir" = "$ac_pwd"; then 1323 srcdir=. 1324 fi 1325 # Remove unnecessary trailing slashes from srcdir. 1326 # Double slashes in file names in object file debugging info 1327 # mess up M-x gdb in Emacs. 1328 case $srcdir in 1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1330 esac 1331 for ac_var in $ac_precious_vars; do 1332 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1333 eval ac_env_${ac_var}_value=\$${ac_var} 1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1336 done 1337 1338 # 1339 # Report the --help message. 1340 # 1341 if test "$ac_init_help" = "long"; then 1342 # Omit some internal or obsolete options to make the list less imposing. 1343 # This message is too long to be a string in the A/UX 3.1 sh. 1344 cat <<_ACEOF 1345 \`configure' configures potrace 1.16 to adapt to many kinds of systems. 1346 1347 Usage: $0 [OPTION]... [VAR=VALUE]... 1348 1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1350 VAR=VALUE. See below for descriptions of some of the useful variables. 1351 1352 Defaults for the options are specified in brackets. 1353 1354 Configuration: 1355 -h, --help display this help and exit 1356 --help=short display options specific to this package 1357 --help=recursive display the short help of all the included packages 1358 -V, --version display version information and exit 1359 -q, --quiet, --silent do not print \`checking ...' messages 1360 --cache-file=FILE cache test results in FILE [disabled] 1361 -C, --config-cache alias for \`--cache-file=config.cache' 1362 -n, --no-create do not create output files 1363 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1364 1365 Installation directories: 1366 --prefix=PREFIX install architecture-independent files in PREFIX 1367 [$ac_default_prefix] 1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1369 [PREFIX] 1370 1371 By default, \`make install' will install all the files in 1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1374 for instance \`--prefix=\$HOME'. 1375 1376 For better control, use the options below. 1377 1378 Fine tuning of the installation directories: 1379 --bindir=DIR user executables [EPREFIX/bin] 1380 --sbindir=DIR system admin executables [EPREFIX/sbin] 1381 --libexecdir=DIR program executables [EPREFIX/libexec] 1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1386 --libdir=DIR object code libraries [EPREFIX/lib] 1387 --includedir=DIR C header files [PREFIX/include] 1388 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1391 --infodir=DIR info documentation [DATAROOTDIR/info] 1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1393 --mandir=DIR man documentation [DATAROOTDIR/man] 1394 --docdir=DIR documentation root [DATAROOTDIR/doc/potrace] 1395 --htmldir=DIR html documentation [DOCDIR] 1396 --dvidir=DIR dvi documentation [DOCDIR] 1397 --pdfdir=DIR pdf documentation [DOCDIR] 1398 --psdir=DIR ps documentation [DOCDIR] 1399 _ACEOF 1400 1401 cat <<\_ACEOF 1402 1403 Program names: 1404 --program-prefix=PREFIX prepend PREFIX to installed program names 1405 --program-suffix=SUFFIX append SUFFIX to installed program names 1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1407 1408 System types: 1409 --build=BUILD configure for building on BUILD [guessed] 1410 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1411 _ACEOF 1412 fi 1413 1414 if test -n "$ac_init_help"; then 1415 case $ac_init_help in 1416 short | recursive ) echo "Configuration of potrace 1.16:";; 1417 esac 1418 cat <<\_ACEOF 1419 1420 Optional Features: 1421 --disable-option-checking ignore unrecognized --enable/--with options 1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1424 --enable-silent-rules less verbose build output (undo: "make V=1") 1425 --disable-silent-rules verbose build output (undo: "make V=0") 1426 --enable-dependency-tracking 1427 do not reject slow dependency extractors 1428 --disable-dependency-tracking 1429 speeds up one-time build 1430 --enable-shared[=PKGS] build shared libraries [default=yes] 1431 --enable-static[=PKGS] build static libraries [default=yes] 1432 --enable-fast-install[=PKGS] 1433 optimize for fast installation [default=yes] 1434 --disable-libtool-lock avoid locking (might break parallel builds) 1435 --disable-zlib disable PostScript level 3 compression 1436 --enable-metric use metric units (centimeters) as default 1437 --enable-a4 use a4 as the default papersize 1438 --enable-dumb-tty use simplified ASCII-only progress bar 1439 1440 Optional Packages: 1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1443 --with-libpotrace install Potrace library and headers [default=no] 1444 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1445 both] 1446 --with-aix-soname=aix|svr4|both 1447 shared library versioning (aka "SONAME") variant to 1448 provide on AIX, [default=aix]. 1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1450 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1451 compiler's sysroot if not specified). 1452 --with-included-getopt avoid using the system-wide getopt library 1453 1454 Some influential environment variables: 1455 CC C compiler command 1456 CFLAGS C compiler flags 1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1458 nonstandard directory <lib dir> 1459 LIBS libraries to pass to the linker, e.g. -l<library> 1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1461 you have headers in a nonstandard directory <include dir> 1462 CPP C preprocessor 1463 LT_SYS_LIBRARY_PATH 1464 User-defined run-time library search path. 1465 1466 Use these variables to override the choices made by `configure' or to help 1467 it to find libraries and programs with nonstandard names/locations. 1468 1469 Report bugs to <selinger at users.sourceforge.net>. 1470 _ACEOF 1471 ac_status=$? 1472 fi 1473 1474 if test "$ac_init_help" = "recursive"; then 1475 # If there are subdirs, report their specific --help. 1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1477 test -d "$ac_dir" || 1478 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1479 continue 1480 ac_builddir=. 1481 1482 case "$ac_dir" in 1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1484 *) 1485 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1486 # A ".." for each directory in $ac_dir_suffix. 1487 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1488 case $ac_top_builddir_sub in 1489 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1490 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1491 esac ;; 1492 esac 1493 ac_abs_top_builddir=$ac_pwd 1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1495 # for backward compatibility: 1496 ac_top_builddir=$ac_top_build_prefix 1497 1498 case $srcdir in 1499 .) # We are building in place. 1500 ac_srcdir=. 1501 ac_top_srcdir=$ac_top_builddir_sub 1502 ac_abs_top_srcdir=$ac_pwd ;; 1503 [\\/]* | ?:[\\/]* ) # Absolute name. 1504 ac_srcdir=$srcdir$ac_dir_suffix; 1505 ac_top_srcdir=$srcdir 1506 ac_abs_top_srcdir=$srcdir ;; 1507 *) # Relative name. 1508 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1509 ac_top_srcdir=$ac_top_build_prefix$srcdir 1510 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1511 esac 1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1513 1514 cd "$ac_dir" || { ac_status=$?; continue; } 1515 # Check for guested configure. 1516 if test -f "$ac_srcdir/configure.gnu"; then 1517 echo && 1518 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1519 elif test -f "$ac_srcdir/configure"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure" --help=recursive 1522 else 1523 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1524 fi || ac_status=$? 1525 cd "$ac_pwd" || { ac_status=$?; break; } 1526 done 1527 fi 1528 1529 test -n "$ac_init_help" && exit $ac_status 1530 if $ac_init_version; then 1531 cat <<\_ACEOF 1532 potrace configure 1.16 1533 generated by GNU Autoconf 2.69 1534 1535 Copyright (C) 2012 Free Software Foundation, Inc. 1536 This configure script is free software; the Free Software Foundation 1537 gives unlimited permission to copy, distribute and modify it. 1538 _ACEOF 1539 exit 1540 fi 1541 1542 ## ------------------------ ## 1543 ## Autoconf initialization. ## 1544 ## ------------------------ ## 1545 1546 # ac_fn_c_try_compile LINENO 1547 # -------------------------- 1548 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1549 ac_fn_c_try_compile () 1550 { 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 rm -f conftest.$ac_objext 1553 if { { ac_try="$ac_compile" 1554 case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557 esac 1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559 $as_echo "$ac_try_echo"; } >&5 1560 (eval "$ac_compile") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } && { 1569 test -z "$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 } && test -s conftest.$ac_objext; then : 1572 ac_retval=0 1573 else 1574 $as_echo "$as_me: failed program was:" >&5 1575 sed 's/^/| /' conftest.$ac_ext >&5 1576 1577 ac_retval=1 1578 fi 1579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1580 as_fn_set_status $ac_retval 1581 1582 } # ac_fn_c_try_compile 1583 1584 # ac_fn_c_try_cpp LINENO 1585 # ---------------------- 1586 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1587 ac_fn_c_try_cpp () 1588 { 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 if { { ac_try="$ac_cpp conftest.$ac_ext" 1591 case "(($ac_try" in 1592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1593 *) ac_try_echo=$ac_try;; 1594 esac 1595 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1596 $as_echo "$ac_try_echo"; } >&5 1597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1598 ac_status=$? 1599 if test -s conftest.err; then 1600 grep -v '^ *+' conftest.err >conftest.er1 1601 cat conftest.er1 >&5 1602 mv -f conftest.er1 conftest.err 1603 fi 1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1605 test $ac_status = 0; } > conftest.i && { 1606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1607 test ! -s conftest.err 1608 }; then : 1609 ac_retval=0 1610 else 1611 $as_echo "$as_me: failed program was:" >&5 1612 sed 's/^/| /' conftest.$ac_ext >&5 1613 1614 ac_retval=1 1615 fi 1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 as_fn_set_status $ac_retval 1618 1619 } # ac_fn_c_try_cpp 1620 1621 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1622 # ------------------------------------------------------- 1623 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1624 # the include files in INCLUDES and setting the cache variable VAR 1625 # accordingly. 1626 ac_fn_c_check_header_mongrel () 1627 { 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if eval \${$3+:} false; then : 1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1631 $as_echo_n "checking for $2... " >&6; } 1632 if eval \${$3+:} false; then : 1633 $as_echo_n "(cached) " >&6 1634 fi 1635 eval ac_res=\$$3 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1637 $as_echo "$ac_res" >&6; } 1638 else 1639 # Is the header compilable? 1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1641 $as_echo_n "checking $2 usability... " >&6; } 1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643 /* end confdefs.h. */ 1644 $4 1645 #include <$2> 1646 _ACEOF 1647 if ac_fn_c_try_compile "$LINENO"; then : 1648 ac_header_compiler=yes 1649 else 1650 ac_header_compiler=no 1651 fi 1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1654 $as_echo "$ac_header_compiler" >&6; } 1655 1656 # Is the header present? 1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1658 $as_echo_n "checking $2 presence... " >&6; } 1659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1660 /* end confdefs.h. */ 1661 #include <$2> 1662 _ACEOF 1663 if ac_fn_c_try_cpp "$LINENO"; then : 1664 ac_header_preproc=yes 1665 else 1666 ac_header_preproc=no 1667 fi 1668 rm -f conftest.err conftest.i conftest.$ac_ext 1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1670 $as_echo "$ac_header_preproc" >&6; } 1671 1672 # So? What about this header? 1673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1674 yes:no: ) 1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1676 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1678 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1679 ;; 1680 no:yes:* ) 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1682 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1684 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1686 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1688 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1691 ( $as_echo "## ------------------------------------------------ ## 1692 ## Report this to selinger at users.sourceforge.net ## 1693 ## ------------------------------------------------ ##" 1694 ) | sed "s/^/$as_me: WARNING: /" >&2 1695 ;; 1696 esac 1697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1698 $as_echo_n "checking for $2... " >&6; } 1699 if eval \${$3+:} false; then : 1700 $as_echo_n "(cached) " >&6 1701 else 1702 eval "$3=\$ac_header_compiler" 1703 fi 1704 eval ac_res=\$$3 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1706 $as_echo "$ac_res" >&6; } 1707 fi 1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1709 1710 } # ac_fn_c_check_header_mongrel 1711 1712 # ac_fn_c_try_run LINENO 1713 # ---------------------- 1714 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1715 # that executables *can* be run. 1716 ac_fn_c_try_run () 1717 { 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 if { { ac_try="$ac_link" 1720 case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723 esac 1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725 $as_echo "$ac_try_echo"; } >&5 1726 (eval "$ac_link") 2>&5 1727 ac_status=$? 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1730 { { case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733 esac 1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735 $as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_try") 2>&5 1737 ac_status=$? 1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; }; }; then : 1740 ac_retval=0 1741 else 1742 $as_echo "$as_me: program exited with status $ac_status" >&5 1743 $as_echo "$as_me: failed program was:" >&5 1744 sed 's/^/| /' conftest.$ac_ext >&5 1745 1746 ac_retval=$ac_status 1747 fi 1748 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752 } # ac_fn_c_try_run 1753 1754 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1755 # ------------------------------------------------------- 1756 # Tests whether HEADER exists and can be compiled using the include files in 1757 # INCLUDES, setting the cache variable VAR accordingly. 1758 ac_fn_c_check_header_compile () 1759 { 1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1762 $as_echo_n "checking for $2... " >&6; } 1763 if eval \${$3+:} false; then : 1764 $as_echo_n "(cached) " >&6 1765 else 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767 /* end confdefs.h. */ 1768 $4 1769 #include <$2> 1770 _ACEOF 1771 if ac_fn_c_try_compile "$LINENO"; then : 1772 eval "$3=yes" 1773 else 1774 eval "$3=no" 1775 fi 1776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777 fi 1778 eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780 $as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783 } # ac_fn_c_check_header_compile 1784 1785 # ac_fn_c_try_link LINENO 1786 # ----------------------- 1787 # Try to link conftest.$ac_ext, and return whether this succeeded. 1788 ac_fn_c_try_link () 1789 { 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 rm -f conftest.$ac_objext conftest$ac_exeext 1792 if { { ac_try="$ac_link" 1793 case "(($ac_try" in 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1795 *) ac_try_echo=$ac_try;; 1796 esac 1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1798 $as_echo "$ac_try_echo"; } >&5 1799 (eval "$ac_link") 2>conftest.err 1800 ac_status=$? 1801 if test -s conftest.err; then 1802 grep -v '^ *+' conftest.err >conftest.er1 1803 cat conftest.er1 >&5 1804 mv -f conftest.er1 conftest.err 1805 fi 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { 1808 test -z "$ac_c_werror_flag" || 1809 test ! -s conftest.err 1810 } && test -s conftest$ac_exeext && { 1811 test "$cross_compiling" = yes || 1812 test -x conftest$ac_exeext 1813 }; then : 1814 ac_retval=0 1815 else 1816 $as_echo "$as_me: failed program was:" >&5 1817 sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820 fi 1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1823 # interfere with the next link command; also delete a directory that is 1824 # left behind by Apple's compiler. We do this before executing the actions. 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829 } # ac_fn_c_try_link 1830 1831 # ac_fn_c_check_func LINENO FUNC VAR 1832 # ---------------------------------- 1833 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1834 ac_fn_c_check_func () 1835 { 1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1838 $as_echo_n "checking for $2... " >&6; } 1839 if eval \${$3+:} false; then : 1840 $as_echo_n "(cached) " >&6 1841 else 1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843 /* end confdefs.h. */ 1844 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1845 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1846 #define $2 innocuous_$2 1847 1848 /* System header to define __stub macros and hopefully few prototypes, 1849 which can conflict with char $2 (); below. 1850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1851 <limits.h> exists even on freestanding compilers. */ 1852 1853 #ifdef __STDC__ 1854 # include <limits.h> 1855 #else 1856 # include <assert.h> 1857 #endif 1858 1859 #undef $2 1860 1861 /* Override any GCC internal prototype to avoid an error. 1862 Use char because int might match the return type of a GCC 1863 builtin and then its argument prototype would still apply. */ 1864 #ifdef __cplusplus 1865 extern "C" 1866 #endif 1867 char $2 (); 1868 /* The GNU C library defines this for functions which it implements 1869 to always fail with ENOSYS. Some functions are actually named 1870 something starting with __ and the normal name is an alias. */ 1871 #if defined __stub_$2 || defined __stub___$2 1872 choke me 1873 #endif 1874 1875 int 1876 main () 1877 { 1878 return $2 (); 1879 ; 1880 return 0; 1881 } 1882 _ACEOF 1883 if ac_fn_c_try_link "$LINENO"; then : 1884 eval "$3=yes" 1885 else 1886 eval "$3=no" 1887 fi 1888 rm -f core conftest.err conftest.$ac_objext \ 1889 conftest$ac_exeext conftest.$ac_ext 1890 fi 1891 eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893 $as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896 } # ac_fn_c_check_func 1897 1898 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1899 # --------------------------------------------- 1900 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1901 # accordingly. 1902 ac_fn_c_check_decl () 1903 { 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 as_decl_name=`echo $2|sed 's/ *(.*//'` 1906 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1908 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1909 if eval \${$3+:} false; then : 1910 $as_echo_n "(cached) " >&6 1911 else 1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1913 /* end confdefs.h. */ 1914 $4 1915 int 1916 main () 1917 { 1918 #ifndef $as_decl_name 1919 #ifdef __cplusplus 1920 (void) $as_decl_use; 1921 #else 1922 (void) $as_decl_name; 1923 #endif 1924 #endif 1925 1926 ; 1927 return 0; 1928 } 1929 _ACEOF 1930 if ac_fn_c_try_compile "$LINENO"; then : 1931 eval "$3=yes" 1932 else 1933 eval "$3=no" 1934 fi 1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1936 fi 1937 eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939 $as_echo "$ac_res" >&6; } 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 1942 } # ac_fn_c_check_decl 1943 1944 # ac_fn_c_find_uintX_t LINENO BITS VAR 1945 # ------------------------------------ 1946 # Finds an unsigned integer type with width BITS, setting cache variable VAR 1947 # accordingly. 1948 ac_fn_c_find_uintX_t () 1949 { 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1952 $as_echo_n "checking for uint$2_t... " >&6; } 1953 if eval \${$3+:} false; then : 1954 $as_echo_n "(cached) " >&6 1955 else 1956 eval "$3=no" 1957 # Order is important - never check a type that is potentially smaller 1958 # than half of the expected target width. 1959 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1960 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962 /* end confdefs.h. */ 1963 $ac_includes_default 1964 int 1965 main () 1966 { 1967 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1968 test_array [0] = 0; 1969 return test_array [0]; 1970 1971 ; 1972 return 0; 1973 } 1974 _ACEOF 1975 if ac_fn_c_try_compile "$LINENO"; then : 1976 case $ac_type in #( 1977 uint$2_t) : 1978 eval "$3=yes" ;; #( 1979 *) : 1980 eval "$3=\$ac_type" ;; 1981 esac 1982 fi 1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1984 if eval test \"x\$"$3"\" = x"no"; then : 1985 1986 else 1987 break 1988 fi 1989 done 1990 fi 1991 eval ac_res=\$$3 1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1993 $as_echo "$ac_res" >&6; } 1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1995 1996 } # ac_fn_c_find_uintX_t 1997 cat >config.log <<_ACEOF 1998 This file contains any messages produced by compilers while 1999 running configure, to aid debugging if configure makes a mistake. 2000 2001 It was created by potrace $as_me 1.16, which was 2002 generated by GNU Autoconf 2.69. Invocation command line was 2003 2004 $ $0 $@ 2005 2006 _ACEOF 2007 exec 5>>config.log 2008 { 2009 cat <<_ASUNAME 2010 ## --------- ## 2011 ## Platform. ## 2012 ## --------- ## 2013 2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2015 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2016 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2017 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2018 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2019 2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2022 2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2030 2031 _ASUNAME 2032 2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2034 for as_dir in $PATH 2035 do 2036 IFS=$as_save_IFS 2037 test -z "$as_dir" && as_dir=. 2038 $as_echo "PATH: $as_dir" 2039 done 2040 IFS=$as_save_IFS 2041 2042 } >&5 2043 2044 cat >&5 <<_ACEOF 2045 2046 2047 ## ----------- ## 2048 ## Core tests. ## 2049 ## ----------- ## 2050 2051 _ACEOF 2052 2053 2054 # Keep a trace of the command line. 2055 # Strip out --no-create and --no-recursion so they do not pile up. 2056 # Strip out --silent because we don't want to record it for future runs. 2057 # Also quote any args containing shell meta-characters. 2058 # Make two passes to allow for proper duplicate-argument suppression. 2059 ac_configure_args= 2060 ac_configure_args0= 2061 ac_configure_args1= 2062 ac_must_keep_next=false 2063 for ac_pass in 1 2 2064 do 2065 for ac_arg 2066 do 2067 case $ac_arg in 2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2070 | -silent | --silent | --silen | --sile | --sil) 2071 continue ;; 2072 *\'*) 2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2074 esac 2075 case $ac_pass in 2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2077 2) 2078 as_fn_append ac_configure_args1 " '$ac_arg'" 2079 if test $ac_must_keep_next = true; then 2080 ac_must_keep_next=false # Got value, back to normal. 2081 else 2082 case $ac_arg in 2083 *=* | --config-cache | -C | -disable-* | --disable-* \ 2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2086 | -with-* | --with-* | -without-* | --without-* | --x) 2087 case "$ac_configure_args0 " in 2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2089 esac 2090 ;; 2091 -* ) ac_must_keep_next=true ;; 2092 esac 2093 fi 2094 as_fn_append ac_configure_args " '$ac_arg'" 2095 ;; 2096 esac 2097 done 2098 done 2099 { ac_configure_args0=; unset ac_configure_args0;} 2100 { ac_configure_args1=; unset ac_configure_args1;} 2101 2102 # When interrupted or exit'd, cleanup temporary files, and complete 2103 # config.log. We remove comments because anyway the quotes in there 2104 # would cause problems or look ugly. 2105 # WARNING: Use '\'' to represent an apostrophe within the trap. 2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2107 trap 'exit_status=$? 2108 # Save into config.log some information that might help in debugging. 2109 { 2110 echo 2111 2112 $as_echo "## ---------------- ## 2113 ## Cache variables. ## 2114 ## ---------------- ##" 2115 echo 2116 # The following way of writing the cache mishandles newlines in values, 2117 ( 2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2119 eval ac_val=\$$ac_var 2120 case $ac_val in #( 2121 *${as_nl}*) 2122 case $ac_var in #( 2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2125 esac 2126 case $ac_var in #( 2127 _ | IFS | as_nl) ;; #( 2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2129 *) { eval $ac_var=; unset $ac_var;} ;; 2130 esac ;; 2131 esac 2132 done 2133 (set) 2>&1 | 2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2135 *${as_nl}ac_space=\ *) 2136 sed -n \ 2137 "s/'\''/'\''\\\\'\'''\''/g; 2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2139 ;; #( 2140 *) 2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2142 ;; 2143 esac | 2144 sort 2145 ) 2146 echo 2147 2148 $as_echo "## ----------------- ## 2149 ## Output variables. ## 2150 ## ----------------- ##" 2151 echo 2152 for ac_var in $ac_subst_vars 2153 do 2154 eval ac_val=\$$ac_var 2155 case $ac_val in 2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2157 esac 2158 $as_echo "$ac_var='\''$ac_val'\''" 2159 done | sort 2160 echo 2161 2162 if test -n "$ac_subst_files"; then 2163 $as_echo "## ------------------- ## 2164 ## File substitutions. ## 2165 ## ------------------- ##" 2166 echo 2167 for ac_var in $ac_subst_files 2168 do 2169 eval ac_val=\$$ac_var 2170 case $ac_val in 2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2172 esac 2173 $as_echo "$ac_var='\''$ac_val'\''" 2174 done | sort 2175 echo 2176 fi 2177 2178 if test -s confdefs.h; then 2179 $as_echo "## ----------- ## 2180 ## confdefs.h. ## 2181 ## ----------- ##" 2182 echo 2183 cat confdefs.h 2184 echo 2185 fi 2186 test "$ac_signal" != 0 && 2187 $as_echo "$as_me: caught signal $ac_signal" 2188 $as_echo "$as_me: exit $exit_status" 2189 } >&5 2190 rm -f core *.core core.conftest.* && 2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2192 exit $exit_status 2193 ' 0 2194 for ac_signal in 1 2 13 15; do 2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2196 done 2197 ac_signal=0 2198 2199 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2200 rm -f -r conftest* confdefs.h 2201 2202 $as_echo "/* confdefs.h */" > confdefs.h 2203 2204 # Predefined preprocessor variables. 2205 2206 cat >>confdefs.h <<_ACEOF 2207 #define PACKAGE_NAME "$PACKAGE_NAME" 2208 _ACEOF 2209 2210 cat >>confdefs.h <<_ACEOF 2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2212 _ACEOF 2213 2214 cat >>confdefs.h <<_ACEOF 2215 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2216 _ACEOF 2217 2218 cat >>confdefs.h <<_ACEOF 2219 #define PACKAGE_STRING "$PACKAGE_STRING" 2220 _ACEOF 2221 2222 cat >>confdefs.h <<_ACEOF 2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2224 _ACEOF 2225 2226 cat >>confdefs.h <<_ACEOF 2227 #define PACKAGE_URL "$PACKAGE_URL" 2228 _ACEOF 2229 2230 2231 # Let the site file select an alternate cache file if it wants to. 2232 # Prefer an explicitly selected file to automatically selected ones. 2233 ac_site_file1=NONE 2234 ac_site_file2=NONE 2235 if test -n "$CONFIG_SITE"; then 2236 # We do not want a PATH search for config.site. 2237 case $CONFIG_SITE in #(( 2238 -*) ac_site_file1=./$CONFIG_SITE;; 2239 */*) ac_site_file1=$CONFIG_SITE;; 2240 *) ac_site_file1=./$CONFIG_SITE;; 2241 esac 2242 elif test "x$prefix" != xNONE; then 2243 ac_site_file1=$prefix/share/config.site 2244 ac_site_file2=$prefix/etc/config.site 2245 else 2246 ac_site_file1=$ac_default_prefix/share/config.site 2247 ac_site_file2=$ac_default_prefix/etc/config.site 2248 fi 2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2250 do 2251 test "x$ac_site_file" = xNONE && continue 2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2255 sed 's/^/| /' "$ac_site_file" >&5 2256 . "$ac_site_file" \ 2257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2259 as_fn_error $? "failed to load site script $ac_site_file 2260 See \`config.log' for more details" "$LINENO" 5; } 2261 fi 2262 done 2263 2264 if test -r "$cache_file"; then 2265 # Some versions of bash will fail to source /dev/null (special files 2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2269 $as_echo "$as_me: loading cache $cache_file" >&6;} 2270 case $cache_file in 2271 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2272 *) . "./$cache_file";; 2273 esac 2274 fi 2275 else 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2277 $as_echo "$as_me: creating cache $cache_file" >&6;} 2278 >$cache_file 2279 fi 2280 2281 # Check that the precious variables saved in the cache have kept the same 2282 # value. 2283 ac_cache_corrupted=false 2284 for ac_var in $ac_precious_vars; do 2285 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2286 eval ac_new_set=\$ac_env_${ac_var}_set 2287 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2288 eval ac_new_val=\$ac_env_${ac_var}_value 2289 case $ac_old_set,$ac_new_set in 2290 set,) 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2293 ac_cache_corrupted=: ;; 2294 ,set) 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2297 ac_cache_corrupted=: ;; 2298 ,);; 2299 *) 2300 if test "x$ac_old_val" != "x$ac_new_val"; then 2301 # differences in whitespace do not lead to failure. 2302 ac_old_val_w=`echo x $ac_old_val` 2303 ac_new_val_w=`echo x $ac_new_val` 2304 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2307 ac_cache_corrupted=: 2308 else 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2311 eval $ac_var=\$ac_old_val 2312 fi 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2314 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2316 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2317 fi;; 2318 esac 2319 # Pass precious variables to config.status. 2320 if test "$ac_new_set" = set; then 2321 case $ac_new_val in 2322 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2323 *) ac_arg=$ac_var=$ac_new_val ;; 2324 esac 2325 case " $ac_configure_args " in 2326 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2327 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2328 esac 2329 fi 2330 done 2331 if $ac_cache_corrupted; then 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2336 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2337 fi 2338 ## -------------------- ## 2339 ## Main body of script. ## 2340 ## -------------------- ## 2341 2342 ac_ext=c 2343 ac_cpp='$CPP $CPPFLAGS' 2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2347 2348 2349 2350 am__api_version='1.16' 2351 2352 ac_aux_dir= 2353 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2354 if test -f "$ac_dir/install-sh"; then 2355 ac_aux_dir=$ac_dir 2356 ac_install_sh="$ac_aux_dir/install-sh -c" 2357 break 2358 elif test -f "$ac_dir/install.sh"; then 2359 ac_aux_dir=$ac_dir 2360 ac_install_sh="$ac_aux_dir/install.sh -c" 2361 break 2362 elif test -f "$ac_dir/shtool"; then 2363 ac_aux_dir=$ac_dir 2364 ac_install_sh="$ac_aux_dir/shtool install -c" 2365 break 2366 fi 2367 done 2368 if test -z "$ac_aux_dir"; then 2369 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2370 fi 2371 2372 # These three variables are undocumented and unsupported, 2373 # and are intended to be withdrawn in a future Autoconf release. 2374 # They can cause serious problems if a builder's source tree is in a directory 2375 # whose full name contains unusual characters. 2376 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2377 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2378 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2379 2380 2381 # Find a good install program. We prefer a C program (faster), 2382 # so one script is as good as another. But avoid the broken or 2383 # incompatible versions: 2384 # SysV /etc/install, /usr/sbin/install 2385 # SunOS /usr/etc/install 2386 # IRIX /sbin/install 2387 # AIX /bin/install 2388 # AmigaOS /C/install, which installs bootblocks on floppy discs 2389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2392 # OS/2's system install, which has a completely different semantic 2393 # ./install, which can be erroneously created by make from ./install.sh. 2394 # Reject install programs that cannot install multiple files. 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2396 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2397 if test -z "$INSTALL"; then 2398 if ${ac_cv_path_install+:} false; then : 2399 $as_echo_n "(cached) " >&6 2400 else 2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2402 for as_dir in $PATH 2403 do 2404 IFS=$as_save_IFS 2405 test -z "$as_dir" && as_dir=. 2406 # Account for people who put trailing slashes in PATH elements. 2407 case $as_dir/ in #(( 2408 ./ | .// | /[cC]/* | \ 2409 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2410 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2411 /usr/ucb/* ) ;; 2412 *) 2413 # OSF1 and SCO ODT 3.0 have their own names for install. 2414 # Don't use installbsd from OSF since it installs stuff as root 2415 # by default. 2416 for ac_prog in ginstall scoinst install; do 2417 for ac_exec_ext in '' $ac_executable_extensions; do 2418 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2419 if test $ac_prog = install && 2420 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2421 # AIX install. It has an incompatible calling convention. 2422 : 2423 elif test $ac_prog = install && 2424 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2425 # program-specific install script used by HP pwplus--don't use. 2426 : 2427 else 2428 rm -rf conftest.one conftest.two conftest.dir 2429 echo one > conftest.one 2430 echo two > conftest.two 2431 mkdir conftest.dir 2432 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2433 test -s conftest.one && test -s conftest.two && 2434 test -s conftest.dir/conftest.one && 2435 test -s conftest.dir/conftest.two 2436 then 2437 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2438 break 3 2439 fi 2440 fi 2441 fi 2442 done 2443 done 2444 ;; 2445 esac 2446 2447 done 2448 IFS=$as_save_IFS 2449 2450 rm -rf conftest.one conftest.two conftest.dir 2451 2452 fi 2453 if test "${ac_cv_path_install+set}" = set; then 2454 INSTALL=$ac_cv_path_install 2455 else 2456 # As a last resort, use the slow shell script. Don't cache a 2457 # value for INSTALL within a source directory, because that will 2458 # break other packages using the cache if that directory is 2459 # removed, or if the value is a relative name. 2460 INSTALL=$ac_install_sh 2461 fi 2462 fi 2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2464 $as_echo "$INSTALL" >&6; } 2465 2466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2467 # It thinks the first close brace ends the variable substitution. 2468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2469 2470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2471 2472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2473 2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2475 $as_echo_n "checking whether build environment is sane... " >&6; } 2476 # Reject unsafe characters in $srcdir or the absolute working directory 2477 # name. Accept space and tab only in the latter. 2478 am_lf=' 2479 ' 2480 case `pwd` in 2481 *[\\\"\#\$\&\'\`$am_lf]*) 2482 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2483 esac 2484 case $srcdir in 2485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2486 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2487 esac 2488 2489 # Do 'set' in a subshell so we don't clobber the current shell's 2490 # arguments. Must try -L first in case configure is actually a 2491 # symlink; some systems play weird games with the mod time of symlinks 2492 # (eg FreeBSD returns the mod time of the symlink's containing 2493 # directory). 2494 if ( 2495 am_has_slept=no 2496 for am_try in 1 2; do 2497 echo "timestamp, slept: $am_has_slept" > conftest.file 2498 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2499 if test "$*" = "X"; then 2500 # -L didn't work. 2501 set X `ls -t "$srcdir/configure" conftest.file` 2502 fi 2503 if test "$*" != "X $srcdir/configure conftest.file" \ 2504 && test "$*" != "X conftest.file $srcdir/configure"; then 2505 2506 # If neither matched, then we have a broken ls. This can happen 2507 # if, for instance, CONFIG_SHELL is bash and it inherits a 2508 # broken ls alias from the environment. This has actually 2509 # happened. Such a system could not be considered "sane". 2510 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2511 alias in your environment" "$LINENO" 5 2512 fi 2513 if test "$2" = conftest.file || test $am_try -eq 2; then 2514 break 2515 fi 2516 # Just in case. 2517 sleep 1 2518 am_has_slept=yes 2519 done 2520 test "$2" = conftest.file 2521 ) 2522 then 2523 # Ok. 2524 : 2525 else 2526 as_fn_error $? "newly created file is older than distributed files! 2527 Check your system clock" "$LINENO" 5 2528 fi 2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2530 $as_echo "yes" >&6; } 2531 # If we didn't sleep, we still need to ensure time stamps of config.status and 2532 # generated files are strictly newer. 2533 am_sleep_pid= 2534 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2535 ( sleep 1 ) & 2536 am_sleep_pid=$! 2537 fi 2538 2539 rm -f conftest.file 2540 2541 test "$program_prefix" != NONE && 2542 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2543 # Use a double $ so make ignores it. 2544 test "$program_suffix" != NONE && 2545 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2546 # Double any \ or $. 2547 # By default was `s,x,x', remove it if useless. 2548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2550 2551 # Expand $ac_aux_dir to an absolute path. 2552 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2553 2554 if test x"${MISSING+set}" != xset; then 2555 case $am_aux_dir in 2556 *\ * | *\ *) 2557 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2558 *) 2559 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2560 esac 2561 fi 2562 # Use eval to expand $SHELL 2563 if eval "$MISSING --is-lightweight"; then 2564 am_missing_run="$MISSING " 2565 else 2566 am_missing_run= 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2568 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2569 fi 2570 2571 if test x"${install_sh+set}" != xset; then 2572 case $am_aux_dir in 2573 *\ * | *\ *) 2574 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2575 *) 2576 install_sh="\${SHELL} $am_aux_dir/install-sh" 2577 esac 2578 fi 2579 2580 # Installed binaries are usually stripped using 'strip' when the user 2581 # run "make install-strip". However 'strip' might not be the right 2582 # tool to use in cross-compilation environments, therefore Automake 2583 # will honor the 'STRIP' environment variable to overrule this program. 2584 if test "$cross_compiling" != no; then 2585 if test -n "$ac_tool_prefix"; then 2586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2587 set dummy ${ac_tool_prefix}strip; ac_word=$2 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2589 $as_echo_n "checking for $ac_word... " >&6; } 2590 if ${ac_cv_prog_STRIP+:} false; then : 2591 $as_echo_n "(cached) " >&6 2592 else 2593 if test -n "$STRIP"; then 2594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2595 else 2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2597 for as_dir in $PATH 2598 do 2599 IFS=$as_save_IFS 2600 test -z "$as_dir" && as_dir=. 2601 for ac_exec_ext in '' $ac_executable_extensions; do 2602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2603 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2605 break 2 2606 fi 2607 done 2608 done 2609 IFS=$as_save_IFS 2610 2611 fi 2612 fi 2613 STRIP=$ac_cv_prog_STRIP 2614 if test -n "$STRIP"; then 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2616 $as_echo "$STRIP" >&6; } 2617 else 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2619 $as_echo "no" >&6; } 2620 fi 2621 2622 2623 fi 2624 if test -z "$ac_cv_prog_STRIP"; then 2625 ac_ct_STRIP=$STRIP 2626 # Extract the first word of "strip", so it can be a program name with args. 2627 set dummy strip; ac_word=$2 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2629 $as_echo_n "checking for $ac_word... " >&6; } 2630 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2631 $as_echo_n "(cached) " >&6 2632 else 2633 if test -n "$ac_ct_STRIP"; then 2634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2635 else 2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2637 for as_dir in $PATH 2638 do 2639 IFS=$as_save_IFS 2640 test -z "$as_dir" && as_dir=. 2641 for ac_exec_ext in '' $ac_executable_extensions; do 2642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2643 ac_cv_prog_ac_ct_STRIP="strip" 2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2645 break 2 2646 fi 2647 done 2648 done 2649 IFS=$as_save_IFS 2650 2651 fi 2652 fi 2653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2654 if test -n "$ac_ct_STRIP"; then 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2656 $as_echo "$ac_ct_STRIP" >&6; } 2657 else 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2659 $as_echo "no" >&6; } 2660 fi 2661 2662 if test "x$ac_ct_STRIP" = x; then 2663 STRIP=":" 2664 else 2665 case $cross_compiling:$ac_tool_warned in 2666 yes:) 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2669 ac_tool_warned=yes ;; 2670 esac 2671 STRIP=$ac_ct_STRIP 2672 fi 2673 else 2674 STRIP="$ac_cv_prog_STRIP" 2675 fi 2676 2677 fi 2678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2679 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2682 if test -z "$MKDIR_P"; then 2683 if ${ac_cv_path_mkdir+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685 else 2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2688 do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 for ac_prog in mkdir gmkdir; do 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2694 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2695 'mkdir (GNU coreutils) '* | \ 2696 'mkdir (coreutils) '* | \ 2697 'mkdir (fileutils) '4.1*) 2698 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2699 break 3;; 2700 esac 2701 done 2702 done 2703 done 2704 IFS=$as_save_IFS 2705 2706 fi 2707 2708 test -d ./--version && rmdir ./--version 2709 if test "${ac_cv_path_mkdir+set}" = set; then 2710 MKDIR_P="$ac_cv_path_mkdir -p" 2711 else 2712 # As a last resort, use the slow shell script. Don't cache a 2713 # value for MKDIR_P within a source directory, because that will 2714 # break other packages using the cache if that directory is 2715 # removed, or if the value is a relative name. 2716 MKDIR_P="$ac_install_sh -d" 2717 fi 2718 fi 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2720 $as_echo "$MKDIR_P" >&6; } 2721 2722 for ac_prog in gawk mawk nawk awk 2723 do 2724 # Extract the first word of "$ac_prog", so it can be a program name with args. 2725 set dummy $ac_prog; ac_word=$2 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2727 $as_echo_n "checking for $ac_word... " >&6; } 2728 if ${ac_cv_prog_AWK+:} false; then : 2729 $as_echo_n "(cached) " >&6 2730 else 2731 if test -n "$AWK"; then 2732 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2733 else 2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735 for as_dir in $PATH 2736 do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2741 ac_cv_prog_AWK="$ac_prog" 2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2743 break 2 2744 fi 2745 done 2746 done 2747 IFS=$as_save_IFS 2748 2749 fi 2750 fi 2751 AWK=$ac_cv_prog_AWK 2752 if test -n "$AWK"; then 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2754 $as_echo "$AWK" >&6; } 2755 else 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757 $as_echo "no" >&6; } 2758 fi 2759 2760 2761 test -n "$AWK" && break 2762 done 2763 2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2765 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2766 set x ${MAKE-make} 2767 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2768 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2769 $as_echo_n "(cached) " >&6 2770 else 2771 cat >conftest.make <<\_ACEOF 2772 SHELL = /bin/sh 2773 all: 2774 @echo '@@@%%%=$(MAKE)=@@@%%%' 2775 _ACEOF 2776 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2777 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2778 *@@@%%%=?*=@@@%%%*) 2779 eval ac_cv_prog_make_${ac_make}_set=yes;; 2780 *) 2781 eval ac_cv_prog_make_${ac_make}_set=no;; 2782 esac 2783 rm -f conftest.make 2784 fi 2785 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2787 $as_echo "yes" >&6; } 2788 SET_MAKE= 2789 else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791 $as_echo "no" >&6; } 2792 SET_MAKE="MAKE=${MAKE-make}" 2793 fi 2794 2795 rm -rf .tst 2>/dev/null 2796 mkdir .tst 2>/dev/null 2797 if test -d .tst; then 2798 am__leading_dot=. 2799 else 2800 am__leading_dot=_ 2801 fi 2802 rmdir .tst 2>/dev/null 2803 2804 # Check whether --enable-silent-rules was given. 2805 if test "${enable_silent_rules+set}" = set; then : 2806 enableval=$enable_silent_rules; 2807 fi 2808 2809 case $enable_silent_rules in # ((( 2810 yes) AM_DEFAULT_VERBOSITY=0;; 2811 no) AM_DEFAULT_VERBOSITY=1;; 2812 *) AM_DEFAULT_VERBOSITY=1;; 2813 esac 2814 am_make=${MAKE-make} 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2816 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2817 if ${am_cv_make_support_nested_variables+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819 else 2820 if $as_echo 'TRUE=$(BAR$(V)) 2821 BAR0=false 2822 BAR1=true 2823 V=1 2824 am__doit: 2825 @$(TRUE) 2826 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2827 am_cv_make_support_nested_variables=yes 2828 else 2829 am_cv_make_support_nested_variables=no 2830 fi 2831 fi 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2833 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2834 if test $am_cv_make_support_nested_variables = yes; then 2835 AM_V='$(V)' 2836 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2837 else 2838 AM_V=$AM_DEFAULT_VERBOSITY 2839 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2840 fi 2841 AM_BACKSLASH='\' 2842 2843 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2844 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2845 # is not polluted with repeated "-I." 2846 am__isrc=' -I$(srcdir)' 2847 # test to see if srcdir already configured 2848 if test -f $srcdir/config.status; then 2849 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2850 fi 2851 fi 2852 2853 # test whether we have cygpath 2854 if test -z "$CYGPATH_W"; then 2855 if (cygpath --version) >/dev/null 2>/dev/null; then 2856 CYGPATH_W='cygpath -w' 2857 else 2858 CYGPATH_W=echo 2859 fi 2860 fi 2861 2862 2863 # Define the identity of the package. 2864 PACKAGE='potrace' 2865 VERSION='1.16' 2866 2867 2868 cat >>confdefs.h <<_ACEOF 2869 #define PACKAGE "$PACKAGE" 2870 _ACEOF 2871 2872 2873 cat >>confdefs.h <<_ACEOF 2874 #define VERSION "$VERSION" 2875 _ACEOF 2876 2877 # Some tools Automake needs. 2878 2879 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2880 2881 2882 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2883 2884 2885 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2886 2887 2888 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2889 2890 2891 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2892 2893 # For better backward compatibility. To be removed once Automake 1.9.x 2894 # dies out for good. For more background, see: 2895 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2896 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2897 mkdir_p='$(MKDIR_P)' 2898 2899 # We need awk for the "check" target (and possibly the TAP driver). The 2900 # system "awk" is bad on some platforms. 2901 # Always define AMTAR for backward compatibility. Yes, it's still used 2902 # in the wild :-( We should find a proper way to deprecate it ... 2903 AMTAR='$${TAR-tar}' 2904 2905 2906 # We'll loop over all known methods to create a tar archive until one works. 2907 _am_tools='gnutar pax cpio none' 2908 2909 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2910 2911 2912 2913 2914 2915 2916 # POSIX will say in a future version that running "rm -f" with no argument 2917 # is OK; and we want to be able to make that assumption in our Makefile 2918 # recipes. So use an aggressive probe to check that the usage we want is 2919 # actually supported "in the wild" to an acceptable degree. 2920 # See automake bug#10828. 2921 # To make any issue more visible, cause the running configure to be aborted 2922 # by default if the 'rm' program in use doesn't match our expectations; the 2923 # user can still override this though. 2924 if rm -f && rm -fr && rm -rf; then : OK; else 2925 cat >&2 <<'END' 2926 Oops! 2927 2928 Your 'rm' program seems unable to run without file operands specified 2929 on the command line, even when the '-f' option is present. This is contrary 2930 to the behaviour of most rm programs out there, and not conforming with 2931 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2932 2933 Please tell bug-automake@gnu.org about your system, including the value 2934 of your $PATH and any error possibly output before this message. This 2935 can help us improve future automake versions. 2936 2937 END 2938 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2939 echo 'Configuration will proceed anyway, since you have set the' >&2 2940 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2941 echo >&2 2942 else 2943 cat >&2 <<'END' 2944 Aborting the configuration process, to ensure you take notice of the issue. 2945 2946 You can download and install GNU coreutils to get an 'rm' implementation 2947 that behaves properly: <https://www.gnu.org/software/coreutils/>. 2948 2949 If you want to complete the configuration process using your problematic 2950 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2951 to "yes", and re-run configure. 2952 2953 END 2954 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2955 fi 2956 fi 2957 2958 ac_config_headers="$ac_config_headers config.h" 2959 2960 2961 2962 DATE="September 2019" 2963 2964 2965 POTRACE=potrace 2966 2967 cat >>confdefs.h <<_ACEOF 2968 #define POTRACE "$POTRACE" 2969 _ACEOF 2970 2971 2972 MKBITMAP=mkbitmap 2973 2974 cat >>confdefs.h <<_ACEOF 2975 #define MKBITMAP "$MKBITMAP" 2976 _ACEOF 2977 2978 2979 2980 ac_ext=c 2981 ac_cpp='$CPP $CPPFLAGS' 2982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2984 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2985 if test -n "$ac_tool_prefix"; then 2986 for ac_prog in clang gcc cc c99 mgcc c89 pcc opencc sunc99 suncc 2987 do 2988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991 $as_echo_n "checking for $ac_word... " >&6; } 2992 if ${ac_cv_prog_CC+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994 else 2995 if test -n "$CC"; then 2996 ac_cv_prog_CC="$CC" # Let the user override the test. 2997 else 2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999 for as_dir in $PATH 3000 do 3001 IFS=$as_save_IFS 3002 test -z "$as_dir" && as_dir=. 3003 for ac_exec_ext in '' $ac_executable_extensions; do 3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3007 break 2 3008 fi 3009 done 3010 done 3011 IFS=$as_save_IFS 3012 3013 fi 3014 fi 3015 CC=$ac_cv_prog_CC 3016 if test -n "$CC"; then 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3018 $as_echo "$CC" >&6; } 3019 else 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3021 $as_echo "no" >&6; } 3022 fi 3023 3024 3025 test -n "$CC" && break 3026 done 3027 fi 3028 if test -z "$CC"; then 3029 ac_ct_CC=$CC 3030 for ac_prog in clang gcc cc c99 mgcc c89 pcc opencc sunc99 suncc 3031 do 3032 # Extract the first word of "$ac_prog", so it can be a program name with args. 3033 set dummy $ac_prog; ac_word=$2 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035 $as_echo_n "checking for $ac_word... " >&6; } 3036 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038 else 3039 if test -n "$ac_ct_CC"; then 3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3041 else 3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043 for as_dir in $PATH 3044 do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3049 ac_cv_prog_ac_ct_CC="$ac_prog" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053 done 3054 done 3055 IFS=$as_save_IFS 3056 3057 fi 3058 fi 3059 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3060 if test -n "$ac_ct_CC"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3062 $as_echo "$ac_ct_CC" >&6; } 3063 else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065 $as_echo "no" >&6; } 3066 fi 3067 3068 3069 test -n "$ac_ct_CC" && break 3070 done 3071 3072 if test "x$ac_ct_CC" = x; then 3073 CC="" 3074 else 3075 case $cross_compiling:$ac_tool_warned in 3076 yes:) 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3079 ac_tool_warned=yes ;; 3080 esac 3081 CC=$ac_ct_CC 3082 fi 3083 fi 3084 3085 3086 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3088 as_fn_error $? "no acceptable C compiler found in \$PATH 3089 See \`config.log' for more details" "$LINENO" 5; } 3090 3091 # Provide some information about the compiler. 3092 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3093 set X $ac_compile 3094 ac_compiler=$2 3095 for ac_option in --version -v -V -qversion; do 3096 { { ac_try="$ac_compiler $ac_option >&5" 3097 case "(($ac_try" in 3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3099 *) ac_try_echo=$ac_try;; 3100 esac 3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3102 $as_echo "$ac_try_echo"; } >&5 3103 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3104 ac_status=$? 3105 if test -s conftest.err; then 3106 sed '10a\ 3107 ... rest of stderr output deleted ... 3108 10q' conftest.err >conftest.er1 3109 cat conftest.er1 >&5 3110 fi 3111 rm -f conftest.er1 conftest.err 3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3113 test $ac_status = 0; } 3114 done 3115 3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3117 /* end confdefs.h. */ 3118 3119 int 3120 main () 3121 { 3122 3123 ; 3124 return 0; 3125 } 3126 _ACEOF 3127 ac_clean_files_save=$ac_clean_files 3128 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3129 # Try to create an executable without -o first, disregard a.out. 3130 # It will help us diagnose broken compilers, and finding out an intuition 3131 # of exeext. 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3133 $as_echo_n "checking whether the C compiler works... " >&6; } 3134 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3135 3136 # The possible output files: 3137 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3138 3139 ac_rmfiles= 3140 for ac_file in $ac_files 3141 do 3142 case $ac_file in 3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3144 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3145 esac 3146 done 3147 rm -f $ac_rmfiles 3148 3149 if { { ac_try="$ac_link_default" 3150 case "(($ac_try" in 3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3152 *) ac_try_echo=$ac_try;; 3153 esac 3154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3155 $as_echo "$ac_try_echo"; } >&5 3156 (eval "$ac_link_default") 2>&5 3157 ac_status=$? 3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3159 test $ac_status = 0; }; then : 3160 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3161 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3162 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3163 # so that the user can short-circuit this test for compilers unknown to 3164 # Autoconf. 3165 for ac_file in $ac_files '' 3166 do 3167 test -f "$ac_file" || continue 3168 case $ac_file in 3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3170 ;; 3171 [ab].out ) 3172 # We found the default executable, but exeext='' is most 3173 # certainly right. 3174 break;; 3175 *.* ) 3176 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3177 then :; else 3178 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3179 fi 3180 # We set ac_cv_exeext here because the later test for it is not 3181 # safe: cross compilers may not add the suffix if given an `-o' 3182 # argument, so we may need to know it at that point already. 3183 # Even if this section looks crufty: it has the advantage of 3184 # actually working. 3185 break;; 3186 * ) 3187 break;; 3188 esac 3189 done 3190 test "$ac_cv_exeext" = no && ac_cv_exeext= 3191 3192 else 3193 ac_file='' 3194 fi 3195 if test -z "$ac_file"; then : 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3197 $as_echo "no" >&6; } 3198 $as_echo "$as_me: failed program was:" >&5 3199 sed 's/^/| /' conftest.$ac_ext >&5 3200 3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3203 as_fn_error 77 "C compiler cannot create executables 3204 See \`config.log' for more details" "$LINENO" 5; } 3205 else 3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3207 $as_echo "yes" >&6; } 3208 fi 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3210 $as_echo_n "checking for C compiler default output file name... " >&6; } 3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3212 $as_echo "$ac_file" >&6; } 3213 ac_exeext=$ac_cv_exeext 3214 3215 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3216 ac_clean_files=$ac_clean_files_save 3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3218 $as_echo_n "checking for suffix of executables... " >&6; } 3219 if { { ac_try="$ac_link" 3220 case "(($ac_try" in 3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3222 *) ac_try_echo=$ac_try;; 3223 esac 3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3225 $as_echo "$ac_try_echo"; } >&5 3226 (eval "$ac_link") 2>&5 3227 ac_status=$? 3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3229 test $ac_status = 0; }; then : 3230 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3231 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3232 # work properly (i.e., refer to `conftest.exe'), while it won't with 3233 # `rm'. 3234 for ac_file in conftest.exe conftest conftest.*; do 3235 test -f "$ac_file" || continue 3236 case $ac_file in 3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3238 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3239 break;; 3240 * ) break;; 3241 esac 3242 done 3243 else 3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3246 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3247 See \`config.log' for more details" "$LINENO" 5; } 3248 fi 3249 rm -f conftest conftest$ac_cv_exeext 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3251 $as_echo "$ac_cv_exeext" >&6; } 3252 3253 rm -f conftest.$ac_ext 3254 EXEEXT=$ac_cv_exeext 3255 ac_exeext=$EXEEXT 3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3257 /* end confdefs.h. */ 3258 #include <stdio.h> 3259 int 3260 main () 3261 { 3262 FILE *f = fopen ("conftest.out", "w"); 3263 return ferror (f) || fclose (f) != 0; 3264 3265 ; 3266 return 0; 3267 } 3268 _ACEOF 3269 ac_clean_files="$ac_clean_files conftest.out" 3270 # Check that the compiler produces executables we can run. If not, either 3271 # the compiler is broken, or we cross compile. 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3273 $as_echo_n "checking whether we are cross compiling... " >&6; } 3274 if test "$cross_compiling" != yes; then 3275 { { ac_try="$ac_link" 3276 case "(($ac_try" in 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3278 *) ac_try_echo=$ac_try;; 3279 esac 3280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3281 $as_echo "$ac_try_echo"; } >&5 3282 (eval "$ac_link") 2>&5 3283 ac_status=$? 3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; } 3286 if { ac_try='./conftest$ac_cv_exeext' 3287 { { case "(($ac_try" in 3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3289 *) ac_try_echo=$ac_try;; 3290 esac 3291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3292 $as_echo "$ac_try_echo"; } >&5 3293 (eval "$ac_try") 2>&5 3294 ac_status=$? 3295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3296 test $ac_status = 0; }; }; then 3297 cross_compiling=no 3298 else 3299 if test "$cross_compiling" = maybe; then 3300 cross_compiling=yes 3301 else 3302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3304 as_fn_error $? "cannot run C compiled programs. 3305 If you meant to cross compile, use \`--host'. 3306 See \`config.log' for more details" "$LINENO" 5; } 3307 fi 3308 fi 3309 fi 3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3311 $as_echo "$cross_compiling" >&6; } 3312 3313 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3314 ac_clean_files=$ac_clean_files_save 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3316 $as_echo_n "checking for suffix of object files... " >&6; } 3317 if ${ac_cv_objext+:} false; then : 3318 $as_echo_n "(cached) " >&6 3319 else 3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321 /* end confdefs.h. */ 3322 3323 int 3324 main () 3325 { 3326 3327 ; 3328 return 0; 3329 } 3330 _ACEOF 3331 rm -f conftest.o conftest.obj 3332 if { { ac_try="$ac_compile" 3333 case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336 esac 3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3338 $as_echo "$ac_try_echo"; } >&5 3339 (eval "$ac_compile") 2>&5 3340 ac_status=$? 3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; }; then : 3343 for ac_file in conftest.o conftest.obj conftest.*; do 3344 test -f "$ac_file" || continue; 3345 case $ac_file in 3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3348 break;; 3349 esac 3350 done 3351 else 3352 $as_echo "$as_me: failed program was:" >&5 3353 sed 's/^/| /' conftest.$ac_ext >&5 3354 3355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3357 as_fn_error $? "cannot compute suffix of object files: cannot compile 3358 See \`config.log' for more details" "$LINENO" 5; } 3359 fi 3360 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3361 fi 3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3363 $as_echo "$ac_cv_objext" >&6; } 3364 OBJEXT=$ac_cv_objext 3365 ac_objext=$OBJEXT 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3367 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3368 if ${ac_cv_c_compiler_gnu+:} false; then : 3369 $as_echo_n "(cached) " >&6 3370 else 3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3372 /* end confdefs.h. */ 3373 3374 int 3375 main () 3376 { 3377 #ifndef __GNUC__ 3378 choke me 3379 #endif 3380 3381 ; 3382 return 0; 3383 } 3384 _ACEOF 3385 if ac_fn_c_try_compile "$LINENO"; then : 3386 ac_compiler_gnu=yes 3387 else 3388 ac_compiler_gnu=no 3389 fi 3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3391 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3392 3393 fi 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3395 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3396 if test $ac_compiler_gnu = yes; then 3397 GCC=yes 3398 else 3399 GCC= 3400 fi 3401 ac_test_CFLAGS=${CFLAGS+set} 3402 ac_save_CFLAGS=$CFLAGS 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3404 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3405 if ${ac_cv_prog_cc_g+:} false; then : 3406 $as_echo_n "(cached) " >&6 3407 else 3408 ac_save_c_werror_flag=$ac_c_werror_flag 3409 ac_c_werror_flag=yes 3410 ac_cv_prog_cc_g=no 3411 CFLAGS="-g" 3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3413 /* end confdefs.h. */ 3414 3415 int 3416 main () 3417 { 3418 3419 ; 3420 return 0; 3421 } 3422 _ACEOF 3423 if ac_fn_c_try_compile "$LINENO"; then : 3424 ac_cv_prog_cc_g=yes 3425 else 3426 CFLAGS="" 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428 /* end confdefs.h. */ 3429 3430 int 3431 main () 3432 { 3433 3434 ; 3435 return 0; 3436 } 3437 _ACEOF 3438 if ac_fn_c_try_compile "$LINENO"; then : 3439 3440 else 3441 ac_c_werror_flag=$ac_save_c_werror_flag 3442 CFLAGS="-g" 3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3444 /* end confdefs.h. */ 3445 3446 int 3447 main () 3448 { 3449 3450 ; 3451 return 0; 3452 } 3453 _ACEOF 3454 if ac_fn_c_try_compile "$LINENO"; then : 3455 ac_cv_prog_cc_g=yes 3456 fi 3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3458 fi 3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3460 fi 3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3462 ac_c_werror_flag=$ac_save_c_werror_flag 3463 fi 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3465 $as_echo "$ac_cv_prog_cc_g" >&6; } 3466 if test "$ac_test_CFLAGS" = set; then 3467 CFLAGS=$ac_save_CFLAGS 3468 elif test $ac_cv_prog_cc_g = yes; then 3469 if test "$GCC" = yes; then 3470 CFLAGS="-g -O2" 3471 else 3472 CFLAGS="-g" 3473 fi 3474 else 3475 if test "$GCC" = yes; then 3476 CFLAGS="-O2" 3477 else 3478 CFLAGS= 3479 fi 3480 fi 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3483 if ${ac_cv_prog_cc_c89+:} false; then : 3484 $as_echo_n "(cached) " >&6 3485 else 3486 ac_cv_prog_cc_c89=no 3487 ac_save_CC=$CC 3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489 /* end confdefs.h. */ 3490 #include <stdarg.h> 3491 #include <stdio.h> 3492 struct stat; 3493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3494 struct buf { int x; }; 3495 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3496 static char *e (p, i) 3497 char **p; 3498 int i; 3499 { 3500 return p[i]; 3501 } 3502 static char *f (char * (*g) (char **, int), char **p, ...) 3503 { 3504 char *s; 3505 va_list v; 3506 va_start (v,p); 3507 s = g (p, va_arg (v,int)); 3508 va_end (v); 3509 return s; 3510 } 3511 3512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3513 function prototypes and stuff, but not '\xHH' hex character constants. 3514 These don't provoke an error unfortunately, instead are silently treated 3515 as 'x'. The following induces an error, until -std is added to get 3516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3517 array size at least. It's necessary to write '\x00'==0 to get something 3518 that's true only with -std. */ 3519 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3520 3521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3522 inside strings and character constants. */ 3523 #define FOO(x) 'x' 3524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3525 3526 int test (int i, double x); 3527 struct s1 {int (*f) (int a);}; 3528 struct s2 {int (*f) (double a);}; 3529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3530 int argc; 3531 char **argv; 3532 int 3533 main () 3534 { 3535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3536 ; 3537 return 0; 3538 } 3539 _ACEOF 3540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3542 do 3543 CC="$ac_save_CC $ac_arg" 3544 if ac_fn_c_try_compile "$LINENO"; then : 3545 ac_cv_prog_cc_c89=$ac_arg 3546 fi 3547 rm -f core conftest.err conftest.$ac_objext 3548 test "x$ac_cv_prog_cc_c89" != "xno" && break 3549 done 3550 rm -f conftest.$ac_ext 3551 CC=$ac_save_CC 3552 3553 fi 3554 # AC_CACHE_VAL 3555 case "x$ac_cv_prog_cc_c89" in 3556 x) 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3558 $as_echo "none needed" >&6; } ;; 3559 xno) 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3561 $as_echo "unsupported" >&6; } ;; 3562 *) 3563 CC="$CC $ac_cv_prog_cc_c89" 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3566 esac 3567 if test "x$ac_cv_prog_cc_c89" != xno; then : 3568 3569 fi 3570 3571 ac_ext=c 3572 ac_cpp='$CPP $CPPFLAGS' 3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3576 3577 ac_ext=c 3578 ac_cpp='$CPP $CPPFLAGS' 3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3583 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3584 if ${am_cv_prog_cc_c_o+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586 else 3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3588 /* end confdefs.h. */ 3589 3590 int 3591 main () 3592 { 3593 3594 ; 3595 return 0; 3596 } 3597 _ACEOF 3598 # Make sure it works both with $CC and with simple cc. 3599 # Following AC_PROG_CC_C_O, we do the test twice because some 3600 # compilers refuse to overwrite an existing .o file with -o, 3601 # though they will create one. 3602 am_cv_prog_cc_c_o=yes 3603 for am_i in 1 2; do 3604 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3605 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3606 ac_status=$? 3607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3608 (exit $ac_status); } \ 3609 && test -f conftest2.$ac_objext; then 3610 : OK 3611 else 3612 am_cv_prog_cc_c_o=no 3613 break 3614 fi 3615 done 3616 rm -f core conftest* 3617 unset am_i 3618 fi 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3620 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3621 if test "$am_cv_prog_cc_c_o" != yes; then 3622 # Losing compiler, so override with the script. 3623 # FIXME: It is wrong to rewrite CC. 3624 # But if we don't then we get into trouble of one sort or another. 3625 # A longer-term fix would be to have automake use am__CC in this case, 3626 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3627 CC="$am_aux_dir/compile $CC" 3628 fi 3629 ac_ext=c 3630 ac_cpp='$CPP $CPPFLAGS' 3631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3633 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3634 3635 DEPDIR="${am__leading_dot}deps" 3636 3637 ac_config_commands="$ac_config_commands depfiles" 3638 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3640 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3641 cat > confinc.mk << 'END' 3642 am__doit: 3643 @echo this is the am__doit target >confinc.out 3644 .PHONY: am__doit 3645 END 3646 am__include="#" 3647 am__quote= 3648 # BSD make does it like this. 3649 echo '.include "confinc.mk" # ignored' > confmf.BSD 3650 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 3651 echo 'include confinc.mk # ignored' > confmf.GNU 3652 _am_result=no 3653 for s in GNU BSD; do 3654 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3655 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3656 ac_status=$? 3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3658 (exit $ac_status); } 3659 case $?:`cat confinc.out 2>/dev/null` in #( 3660 '0:this is the am__doit target') : 3661 case $s in #( 3662 BSD) : 3663 am__include='.include' am__quote='"' ;; #( 3664 *) : 3665 am__include='include' am__quote='' ;; 3666 esac ;; #( 3667 *) : 3668 ;; 3669 esac 3670 if test "$am__include" != "#"; then 3671 _am_result="yes ($s style)" 3672 break 3673 fi 3674 done 3675 rm -f confinc.* confmf.* 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3677 $as_echo "${_am_result}" >&6; } 3678 3679 # Check whether --enable-dependency-tracking was given. 3680 if test "${enable_dependency_tracking+set}" = set; then : 3681 enableval=$enable_dependency_tracking; 3682 fi 3683 3684 if test "x$enable_dependency_tracking" != xno; then 3685 am_depcomp="$ac_aux_dir/depcomp" 3686 AMDEPBACKSLASH='\' 3687 am__nodep='_no' 3688 fi 3689 if test "x$enable_dependency_tracking" != xno; then 3690 AMDEP_TRUE= 3691 AMDEP_FALSE='#' 3692 else 3693 AMDEP_TRUE='#' 3694 AMDEP_FALSE= 3695 fi 3696 3697 3698 3699 depcc="$CC" am_compiler_list= 3700 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3702 $as_echo_n "checking dependency style of $depcc... " >&6; } 3703 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705 else 3706 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3707 # We make a subdir and do the tests there. Otherwise we can end up 3708 # making bogus files that we don't know about and never remove. For 3709 # instance it was reported that on HP-UX the gcc test will end up 3710 # making a dummy file named 'D' -- because '-MD' means "put the output 3711 # in D". 3712 rm -rf conftest.dir 3713 mkdir conftest.dir 3714 # Copy depcomp to subdir because otherwise we won't find it if we're 3715 # using a relative directory. 3716 cp "$am_depcomp" conftest.dir 3717 cd conftest.dir 3718 # We will build objects and dependencies in a subdirectory because 3719 # it helps to detect inapplicable dependency modes. For instance 3720 # both Tru64's cc and ICC support -MD to output dependencies as a 3721 # side effect of compilation, but ICC will put the dependencies in 3722 # the current directory while Tru64 will put them in the object 3723 # directory. 3724 mkdir sub 3725 3726 am_cv_CC_dependencies_compiler_type=none 3727 if test "$am_compiler_list" = ""; then 3728 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3729 fi 3730 am__universal=false 3731 case " $depcc " in #( 3732 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3733 esac 3734 3735 for depmode in $am_compiler_list; do 3736 # Setup a source with many dependencies, because some compilers 3737 # like to wrap large dependency lists on column 80 (with \), and 3738 # we should not choose a depcomp mode which is confused by this. 3739 # 3740 # We need to recreate these files for each test, as the compiler may 3741 # overwrite some of them when testing with obscure command lines. 3742 # This happens at least with the AIX C compiler. 3743 : > sub/conftest.c 3744 for i in 1 2 3 4 5 6; do 3745 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3746 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3747 # Solaris 10 /bin/sh. 3748 echo '/* dummy */' > sub/conftst$i.h 3749 done 3750 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3751 3752 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3753 # mode. It turns out that the SunPro C++ compiler does not properly 3754 # handle '-M -o', and we need to detect this. Also, some Intel 3755 # versions had trouble with output in subdirs. 3756 am__obj=sub/conftest.${OBJEXT-o} 3757 am__minus_obj="-o $am__obj" 3758 case $depmode in 3759 gcc) 3760 # This depmode causes a compiler race in universal mode. 3761 test "$am__universal" = false || continue 3762 ;; 3763 nosideeffect) 3764 # After this tag, mechanisms are not by side-effect, so they'll 3765 # only be used when explicitly requested. 3766 if test "x$enable_dependency_tracking" = xyes; then 3767 continue 3768 else 3769 break 3770 fi 3771 ;; 3772 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3773 # This compiler won't grok '-c -o', but also, the minuso test has 3774 # not run yet. These depmodes are late enough in the game, and 3775 # so weak that their functioning should not be impacted. 3776 am__obj=conftest.${OBJEXT-o} 3777 am__minus_obj= 3778 ;; 3779 none) break ;; 3780 esac 3781 if depmode=$depmode \ 3782 source=sub/conftest.c object=$am__obj \ 3783 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3784 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3785 >/dev/null 2>conftest.err && 3786 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3788 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3790 # icc doesn't choke on unknown options, it will just issue warnings 3791 # or remarks (even with -Werror). So we grep stderr for any message 3792 # that says an option was ignored or not supported. 3793 # When given -MP, icc 7.0 and 7.1 complain thusly: 3794 # icc: Command line warning: ignoring option '-M'; no argument required 3795 # The diagnosis changed in icc 8.0: 3796 # icc: Command line remark: option '-MP' not supported 3797 if (grep 'ignoring option' conftest.err || 3798 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3799 am_cv_CC_dependencies_compiler_type=$depmode 3800 break 3801 fi 3802 fi 3803 done 3804 3805 cd .. 3806 rm -rf conftest.dir 3807 else 3808 am_cv_CC_dependencies_compiler_type=none 3809 fi 3810 3811 fi 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3813 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3814 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3815 3816 if 3817 test "x$enable_dependency_tracking" != xno \ 3818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3819 am__fastdepCC_TRUE= 3820 am__fastdepCC_FALSE='#' 3821 else 3822 am__fastdepCC_TRUE='#' 3823 am__fastdepCC_FALSE= 3824 fi 3825 3826 3827 3828 ac_ext=c 3829 ac_cpp='$CPP $CPPFLAGS' 3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3834 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3835 # On Suns, sometimes $CPP names a directory. 3836 if test -n "$CPP" && test -d "$CPP"; then 3837 CPP= 3838 fi 3839 if test -z "$CPP"; then 3840 if ${ac_cv_prog_CPP+:} false; then : 3841 $as_echo_n "(cached) " >&6 3842 else 3843 # Double quotes because CPP needs to be expanded 3844 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3845 do 3846 ac_preproc_ok=false 3847 for ac_c_preproc_warn_flag in '' yes 3848 do 3849 # Use a header file that comes with gcc, so configuring glibc 3850 # with a fresh cross-compiler works. 3851 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3852 # <limits.h> exists even on freestanding compilers. 3853 # On the NeXT, cc -E runs the code through the compiler's parser, 3854 # not just through cpp. "Syntax error" is here to catch this case. 3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3856 /* end confdefs.h. */ 3857 #ifdef __STDC__ 3858 # include <limits.h> 3859 #else 3860 # include <assert.h> 3861 #endif 3862 Syntax error 3863 _ACEOF 3864 if ac_fn_c_try_cpp "$LINENO"; then : 3865 3866 else 3867 # Broken: fails on valid input. 3868 continue 3869 fi 3870 rm -f conftest.err conftest.i conftest.$ac_ext 3871 3872 # OK, works on sane cases. Now check whether nonexistent headers 3873 # can be detected and how. 3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3875 /* end confdefs.h. */ 3876 #include <ac_nonexistent.h> 3877 _ACEOF 3878 if ac_fn_c_try_cpp "$LINENO"; then : 3879 # Broken: success on invalid input. 3880 continue 3881 else 3882 # Passes both tests. 3883 ac_preproc_ok=: 3884 break 3885 fi 3886 rm -f conftest.err conftest.i conftest.$ac_ext 3887 3888 done 3889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3890 rm -f conftest.i conftest.err conftest.$ac_ext 3891 if $ac_preproc_ok; then : 3892 break 3893 fi 3894 3895 done 3896 ac_cv_prog_CPP=$CPP 3897 3898 fi 3899 CPP=$ac_cv_prog_CPP 3900 else 3901 ac_cv_prog_CPP=$CPP 3902 fi 3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3904 $as_echo "$CPP" >&6; } 3905 ac_preproc_ok=false 3906 for ac_c_preproc_warn_flag in '' yes 3907 do 3908 # Use a header file that comes with gcc, so configuring glibc 3909 # with a fresh cross-compiler works. 3910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3911 # <limits.h> exists even on freestanding compilers. 3912 # On the NeXT, cc -E runs the code through the compiler's parser, 3913 # not just through cpp. "Syntax error" is here to catch this case. 3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3915 /* end confdefs.h. */ 3916 #ifdef __STDC__ 3917 # include <limits.h> 3918 #else 3919 # include <assert.h> 3920 #endif 3921 Syntax error 3922 _ACEOF 3923 if ac_fn_c_try_cpp "$LINENO"; then : 3924 3925 else 3926 # Broken: fails on valid input. 3927 continue 3928 fi 3929 rm -f conftest.err conftest.i conftest.$ac_ext 3930 3931 # OK, works on sane cases. Now check whether nonexistent headers 3932 # can be detected and how. 3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3934 /* end confdefs.h. */ 3935 #include <ac_nonexistent.h> 3936 _ACEOF 3937 if ac_fn_c_try_cpp "$LINENO"; then : 3938 # Broken: success on invalid input. 3939 continue 3940 else 3941 # Passes both tests. 3942 ac_preproc_ok=: 3943 break 3944 fi 3945 rm -f conftest.err conftest.i conftest.$ac_ext 3946 3947 done 3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3949 rm -f conftest.i conftest.err conftest.$ac_ext 3950 if $ac_preproc_ok; then : 3951 3952 else 3953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3955 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3956 See \`config.log' for more details" "$LINENO" 5; } 3957 fi 3958 3959 ac_ext=c 3960 ac_cpp='$CPP $CPPFLAGS' 3961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3963 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3964 3965 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3967 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3968 if ${ac_cv_path_GREP+:} false; then : 3969 $as_echo_n "(cached) " >&6 3970 else 3971 if test -z "$GREP"; then 3972 ac_path_GREP_found=false 3973 # Loop through the user's path and test for each of PROGNAME-LIST 3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3976 do 3977 IFS=$as_save_IFS 3978 test -z "$as_dir" && as_dir=. 3979 for ac_prog in grep ggrep; do 3980 for ac_exec_ext in '' $ac_executable_extensions; do 3981 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3982 as_fn_executable_p "$ac_path_GREP" || continue 3983 # Check for GNU ac_path_GREP and select it if it is found. 3984 # Check for GNU $ac_path_GREP 3985 case `"$ac_path_GREP" --version 2>&1` in 3986 *GNU*) 3987 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3988 *) 3989 ac_count=0 3990 $as_echo_n 0123456789 >"conftest.in" 3991 while : 3992 do 3993 cat "conftest.in" "conftest.in" >"conftest.tmp" 3994 mv "conftest.tmp" "conftest.in" 3995 cp "conftest.in" "conftest.nl" 3996 $as_echo 'GREP' >> "conftest.nl" 3997 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3999 as_fn_arith $ac_count + 1 && ac_count=$as_val 4000 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4001 # Best one so far, save it but keep looking for a better one 4002 ac_cv_path_GREP="$ac_path_GREP" 4003 ac_path_GREP_max=$ac_count 4004 fi 4005 # 10*(2^10) chars as input seems more than enough 4006 test $ac_count -gt 10 && break 4007 done 4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4009 esac 4010 4011 $ac_path_GREP_found && break 3 4012 done 4013 done 4014 done 4015 IFS=$as_save_IFS 4016 if test -z "$ac_cv_path_GREP"; then 4017 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4018 fi 4019 else 4020 ac_cv_path_GREP=$GREP 4021 fi 4022 4023 fi 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4025 $as_echo "$ac_cv_path_GREP" >&6; } 4026 GREP="$ac_cv_path_GREP" 4027 4028 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4030 $as_echo_n "checking for egrep... " >&6; } 4031 if ${ac_cv_path_EGREP+:} false; then : 4032 $as_echo_n "(cached) " >&6 4033 else 4034 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4035 then ac_cv_path_EGREP="$GREP -E" 4036 else 4037 if test -z "$EGREP"; then 4038 ac_path_EGREP_found=false 4039 # Loop through the user's path and test for each of PROGNAME-LIST 4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4041 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4042 do 4043 IFS=$as_save_IFS 4044 test -z "$as_dir" && as_dir=. 4045 for ac_prog in egrep; do 4046 for ac_exec_ext in '' $ac_executable_extensions; do 4047 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4048 as_fn_executable_p "$ac_path_EGREP" || continue 4049 # Check for GNU ac_path_EGREP and select it if it is found. 4050 # Check for GNU $ac_path_EGREP 4051 case `"$ac_path_EGREP" --version 2>&1` in 4052 *GNU*) 4053 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4054 *) 4055 ac_count=0 4056 $as_echo_n 0123456789 >"conftest.in" 4057 while : 4058 do 4059 cat "conftest.in" "conftest.in" >"conftest.tmp" 4060 mv "conftest.tmp" "conftest.in" 4061 cp "conftest.in" "conftest.nl" 4062 $as_echo 'EGREP' >> "conftest.nl" 4063 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4064 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4065 as_fn_arith $ac_count + 1 && ac_count=$as_val 4066 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4067 # Best one so far, save it but keep looking for a better one 4068 ac_cv_path_EGREP="$ac_path_EGREP" 4069 ac_path_EGREP_max=$ac_count 4070 fi 4071 # 10*(2^10) chars as input seems more than enough 4072 test $ac_count -gt 10 && break 4073 done 4074 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4075 esac 4076 4077 $ac_path_EGREP_found && break 3 4078 done 4079 done 4080 done 4081 IFS=$as_save_IFS 4082 if test -z "$ac_cv_path_EGREP"; then 4083 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4084 fi 4085 else 4086 ac_cv_path_EGREP=$EGREP 4087 fi 4088 4089 fi 4090 fi 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4092 $as_echo "$ac_cv_path_EGREP" >&6; } 4093 EGREP="$ac_cv_path_EGREP" 4094 4095 4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4097 $as_echo_n "checking for ANSI C header files... " >&6; } 4098 if ${ac_cv_header_stdc+:} false; then : 4099 $as_echo_n "(cached) " >&6 4100 else 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102 /* end confdefs.h. */ 4103 #include <stdlib.h> 4104 #include <stdarg.h> 4105 #include <string.h> 4106 #include <float.h> 4107 4108 int 4109 main () 4110 { 4111 4112 ; 4113 return 0; 4114 } 4115 _ACEOF 4116 if ac_fn_c_try_compile "$LINENO"; then : 4117 ac_cv_header_stdc=yes 4118 else 4119 ac_cv_header_stdc=no 4120 fi 4121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4122 4123 if test $ac_cv_header_stdc = yes; then 4124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126 /* end confdefs.h. */ 4127 #include <string.h> 4128 4129 _ACEOF 4130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4131 $EGREP "memchr" >/dev/null 2>&1; then : 4132 4133 else 4134 ac_cv_header_stdc=no 4135 fi 4136 rm -f conftest* 4137 4138 fi 4139 4140 if test $ac_cv_header_stdc = yes; then 4141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4143 /* end confdefs.h. */ 4144 #include <stdlib.h> 4145 4146 _ACEOF 4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4148 $EGREP "free" >/dev/null 2>&1; then : 4149 4150 else 4151 ac_cv_header_stdc=no 4152 fi 4153 rm -f conftest* 4154 4155 fi 4156 4157 if test $ac_cv_header_stdc = yes; then 4158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4159 if test "$cross_compiling" = yes; then : 4160 : 4161 else 4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163 /* end confdefs.h. */ 4164 #include <ctype.h> 4165 #include <stdlib.h> 4166 #if ((' ' & 0x0FF) == 0x020) 4167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4169 #else 4170 # define ISLOWER(c) \ 4171 (('a' <= (c) && (c) <= 'i') \ 4172 || ('j' <= (c) && (c) <= 'r') \ 4173 || ('s' <= (c) && (c) <= 'z')) 4174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4175 #endif 4176 4177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4178 int 4179 main () 4180 { 4181 int i; 4182 for (i = 0; i < 256; i++) 4183 if (XOR (islower (i), ISLOWER (i)) 4184 || toupper (i) != TOUPPER (i)) 4185 return 2; 4186 return 0; 4187 } 4188 _ACEOF 4189 if ac_fn_c_try_run "$LINENO"; then : 4190 4191 else 4192 ac_cv_header_stdc=no 4193 fi 4194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4195 conftest.$ac_objext conftest.beam conftest.$ac_ext 4196 fi 4197 4198 fi 4199 fi 4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4201 $as_echo "$ac_cv_header_stdc" >&6; } 4202 if test $ac_cv_header_stdc = yes; then 4203 4204 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4205 4206 fi 4207 4208 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4209 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4210 inttypes.h stdint.h unistd.h 4211 do : 4212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4213 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4214 " 4215 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4216 cat >>confdefs.h <<_ACEOF 4217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4218 _ACEOF 4219 4220 fi 4221 4222 done 4223 4224 4225 4226 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4227 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4228 MINIX=yes 4229 else 4230 MINIX= 4231 fi 4232 4233 4234 if test "$MINIX" = yes; then 4235 4236 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4237 4238 4239 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4240 4241 4242 $as_echo "#define _MINIX 1" >>confdefs.h 4243 4244 fi 4245 4246 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4248 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4249 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4250 $as_echo_n "(cached) " >&6 4251 else 4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4253 /* end confdefs.h. */ 4254 4255 # define __EXTENSIONS__ 1 4256 $ac_includes_default 4257 int 4258 main () 4259 { 4260 4261 ; 4262 return 0; 4263 } 4264 _ACEOF 4265 if ac_fn_c_try_compile "$LINENO"; then : 4266 ac_cv_safe_to_define___extensions__=yes 4267 else 4268 ac_cv_safe_to_define___extensions__=no 4269 fi 4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4271 fi 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4273 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4274 test $ac_cv_safe_to_define___extensions__ = yes && 4275 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4276 4277 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4278 4279 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4280 4281 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4282 4283 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4284 4285 4286 4287 4288 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what compiler options to use" >&5 4290 $as_echo_n "checking what compiler options to use... " >&6; } 4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CADD $CFLAGS" >&5 4292 $as_echo "$CADD $CFLAGS" >&6; } 4293 4294 4295 4296 # Check whether --with-libpotrace was given. 4297 if test "${with_libpotrace+set}" = set; then : 4298 withval=$with_libpotrace; 4299 fi 4300 4301 4302 if test "$with_libpotrace" != yes; then 4303 enable_shared=no 4304 fi 4305 4306 4307 # Make sure we can run config.sub. 4308 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4309 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4310 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4312 $as_echo_n "checking build system type... " >&6; } 4313 if ${ac_cv_build+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315 else 4316 ac_build_alias=$build_alias 4317 test "x$ac_build_alias" = x && 4318 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4319 test "x$ac_build_alias" = x && 4320 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4322 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4323 4324 fi 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4326 $as_echo "$ac_cv_build" >&6; } 4327 case $ac_cv_build in 4328 *-*-*) ;; 4329 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4330 esac 4331 build=$ac_cv_build 4332 ac_save_IFS=$IFS; IFS='-' 4333 set x $ac_cv_build 4334 shift 4335 build_cpu=$1 4336 build_vendor=$2 4337 shift; shift 4338 # Remember, the first character of IFS is used to create $*, 4339 # except with old shells: 4340 build_os=$* 4341 IFS=$ac_save_IFS 4342 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4343 4344 4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4346 $as_echo_n "checking host system type... " >&6; } 4347 if ${ac_cv_host+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349 else 4350 if test "x$host_alias" = x; then 4351 ac_cv_host=$ac_cv_build 4352 else 4353 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4355 fi 4356 4357 fi 4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4359 $as_echo "$ac_cv_host" >&6; } 4360 case $ac_cv_host in 4361 *-*-*) ;; 4362 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4363 esac 4364 host=$ac_cv_host 4365 ac_save_IFS=$IFS; IFS='-' 4366 set x $ac_cv_host 4367 shift 4368 host_cpu=$1 4369 host_vendor=$2 4370 shift; shift 4371 # Remember, the first character of IFS is used to create $*, 4372 # except with old shells: 4373 host_os=$* 4374 IFS=$ac_save_IFS 4375 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4376 4377 4378 enable_win32_dll=yes 4379 4380 case $host in 4381 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 4382 if test -n "$ac_tool_prefix"; then 4383 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4384 set dummy ${ac_tool_prefix}as; ac_word=$2 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4386 $as_echo_n "checking for $ac_word... " >&6; } 4387 if ${ac_cv_prog_AS+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389 else 4390 if test -n "$AS"; then 4391 ac_cv_prog_AS="$AS" # Let the user override the test. 4392 else 4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4394 for as_dir in $PATH 4395 do 4396 IFS=$as_save_IFS 4397 test -z "$as_dir" && as_dir=. 4398 for ac_exec_ext in '' $ac_executable_extensions; do 4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4400 ac_cv_prog_AS="${ac_tool_prefix}as" 4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4402 break 2 4403 fi 4404 done 4405 done 4406 IFS=$as_save_IFS 4407 4408 fi 4409 fi 4410 AS=$ac_cv_prog_AS 4411 if test -n "$AS"; then 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4413 $as_echo "$AS" >&6; } 4414 else 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4416 $as_echo "no" >&6; } 4417 fi 4418 4419 4420 fi 4421 if test -z "$ac_cv_prog_AS"; then 4422 ac_ct_AS=$AS 4423 # Extract the first word of "as", so it can be a program name with args. 4424 set dummy as; ac_word=$2 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4426 $as_echo_n "checking for $ac_word... " >&6; } 4427 if ${ac_cv_prog_ac_ct_AS+:} false; then : 4428 $as_echo_n "(cached) " >&6 4429 else 4430 if test -n "$ac_ct_AS"; then 4431 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4432 else 4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434 for as_dir in $PATH 4435 do 4436 IFS=$as_save_IFS 4437 test -z "$as_dir" && as_dir=. 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4440 ac_cv_prog_ac_ct_AS="as" 4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4442 break 2 4443 fi 4444 done 4445 done 4446 IFS=$as_save_IFS 4447 4448 fi 4449 fi 4450 ac_ct_AS=$ac_cv_prog_ac_ct_AS 4451 if test -n "$ac_ct_AS"; then 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4453 $as_echo "$ac_ct_AS" >&6; } 4454 else 4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4456 $as_echo "no" >&6; } 4457 fi 4458 4459 if test "x$ac_ct_AS" = x; then 4460 AS="false" 4461 else 4462 case $cross_compiling:$ac_tool_warned in 4463 yes:) 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4466 ac_tool_warned=yes ;; 4467 esac 4468 AS=$ac_ct_AS 4469 fi 4470 else 4471 AS="$ac_cv_prog_AS" 4472 fi 4473 4474 if test -n "$ac_tool_prefix"; then 4475 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4476 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4478 $as_echo_n "checking for $ac_word... " >&6; } 4479 if ${ac_cv_prog_DLLTOOL+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481 else 4482 if test -n "$DLLTOOL"; then 4483 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4484 else 4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4486 for as_dir in $PATH 4487 do 4488 IFS=$as_save_IFS 4489 test -z "$as_dir" && as_dir=. 4490 for ac_exec_ext in '' $ac_executable_extensions; do 4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4492 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4494 break 2 4495 fi 4496 done 4497 done 4498 IFS=$as_save_IFS 4499 4500 fi 4501 fi 4502 DLLTOOL=$ac_cv_prog_DLLTOOL 4503 if test -n "$DLLTOOL"; then 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4505 $as_echo "$DLLTOOL" >&6; } 4506 else 4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4508 $as_echo "no" >&6; } 4509 fi 4510 4511 4512 fi 4513 if test -z "$ac_cv_prog_DLLTOOL"; then 4514 ac_ct_DLLTOOL=$DLLTOOL 4515 # Extract the first word of "dlltool", so it can be a program name with args. 4516 set dummy dlltool; ac_word=$2 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4518 $as_echo_n "checking for $ac_word... " >&6; } 4519 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4520 $as_echo_n "(cached) " >&6 4521 else 4522 if test -n "$ac_ct_DLLTOOL"; then 4523 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4524 else 4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4526 for as_dir in $PATH 4527 do 4528 IFS=$as_save_IFS 4529 test -z "$as_dir" && as_dir=. 4530 for ac_exec_ext in '' $ac_executable_extensions; do 4531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4532 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4534 break 2 4535 fi 4536 done 4537 done 4538 IFS=$as_save_IFS 4539 4540 fi 4541 fi 4542 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4543 if test -n "$ac_ct_DLLTOOL"; then 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4545 $as_echo "$ac_ct_DLLTOOL" >&6; } 4546 else 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4548 $as_echo "no" >&6; } 4549 fi 4550 4551 if test "x$ac_ct_DLLTOOL" = x; then 4552 DLLTOOL="false" 4553 else 4554 case $cross_compiling:$ac_tool_warned in 4555 yes:) 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4558 ac_tool_warned=yes ;; 4559 esac 4560 DLLTOOL=$ac_ct_DLLTOOL 4561 fi 4562 else 4563 DLLTOOL="$ac_cv_prog_DLLTOOL" 4564 fi 4565 4566 if test -n "$ac_tool_prefix"; then 4567 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4568 set dummy ${ac_tool_prefix}objdump; ac_word=$2 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4570 $as_echo_n "checking for $ac_word... " >&6; } 4571 if ${ac_cv_prog_OBJDUMP+:} false; then : 4572 $as_echo_n "(cached) " >&6 4573 else 4574 if test -n "$OBJDUMP"; then 4575 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4576 else 4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4578 for as_dir in $PATH 4579 do 4580 IFS=$as_save_IFS 4581 test -z "$as_dir" && as_dir=. 4582 for ac_exec_ext in '' $ac_executable_extensions; do 4583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4584 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4586 break 2 4587 fi 4588 done 4589 done 4590 IFS=$as_save_IFS 4591 4592 fi 4593 fi 4594 OBJDUMP=$ac_cv_prog_OBJDUMP 4595 if test -n "$OBJDUMP"; then 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4597 $as_echo "$OBJDUMP" >&6; } 4598 else 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4600 $as_echo "no" >&6; } 4601 fi 4602 4603 4604 fi 4605 if test -z "$ac_cv_prog_OBJDUMP"; then 4606 ac_ct_OBJDUMP=$OBJDUMP 4607 # Extract the first word of "objdump", so it can be a program name with args. 4608 set dummy objdump; ac_word=$2 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4610 $as_echo_n "checking for $ac_word... " >&6; } 4611 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4612 $as_echo_n "(cached) " >&6 4613 else 4614 if test -n "$ac_ct_OBJDUMP"; then 4615 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4616 else 4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4618 for as_dir in $PATH 4619 do 4620 IFS=$as_save_IFS 4621 test -z "$as_dir" && as_dir=. 4622 for ac_exec_ext in '' $ac_executable_extensions; do 4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4624 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4626 break 2 4627 fi 4628 done 4629 done 4630 IFS=$as_save_IFS 4631 4632 fi 4633 fi 4634 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4635 if test -n "$ac_ct_OBJDUMP"; then 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4637 $as_echo "$ac_ct_OBJDUMP" >&6; } 4638 else 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4640 $as_echo "no" >&6; } 4641 fi 4642 4643 if test "x$ac_ct_OBJDUMP" = x; then 4644 OBJDUMP="false" 4645 else 4646 case $cross_compiling:$ac_tool_warned in 4647 yes:) 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4650 ac_tool_warned=yes ;; 4651 esac 4652 OBJDUMP=$ac_ct_OBJDUMP 4653 fi 4654 else 4655 OBJDUMP="$ac_cv_prog_OBJDUMP" 4656 fi 4657 4658 ;; 4659 esac 4660 4661 test -z "$AS" && AS=as 4662 4663 4664 4665 4666 4667 test -z "$DLLTOOL" && DLLTOOL=dlltool 4668 4669 4670 4671 4672 4673 test -z "$OBJDUMP" && OBJDUMP=objdump 4674 4675 4676 4677 4678 4679 4680 4681 case `pwd` in 4682 *\ * | *\ *) 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4684 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4685 esac 4686 4687 4688 4689 macro_version='2.4.6' 4690 macro_revision='2.4.6' 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 ltmain=$ac_aux_dir/ltmain.sh 4705 4706 # Backslashify metacharacters that are still active within 4707 # double-quoted strings. 4708 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4709 4710 # Same as above, but do not quote variable references. 4711 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4712 4713 # Sed substitution to delay expansion of an escaped shell variable in a 4714 # double_quote_subst'ed string. 4715 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4716 4717 # Sed substitution to delay expansion of an escaped single quote. 4718 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4719 4720 # Sed substitution to avoid accidental globbing in evaled expressions 4721 no_glob_subst='s/\*/\\\*/g' 4722 4723 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4724 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4725 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4726 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4728 $as_echo_n "checking how to print strings... " >&6; } 4729 # Test print first, because it will be a builtin if present. 4730 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4731 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4732 ECHO='print -r --' 4733 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4734 ECHO='printf %s\n' 4735 else 4736 # Use this function as a fallback that always works. 4737 func_fallback_echo () 4738 { 4739 eval 'cat <<_LTECHO_EOF 4740 $1 4741 _LTECHO_EOF' 4742 } 4743 ECHO='func_fallback_echo' 4744 fi 4745 4746 # func_echo_all arg... 4747 # Invoke $ECHO with all args, space-separated. 4748 func_echo_all () 4749 { 4750 $ECHO "" 4751 } 4752 4753 case $ECHO in 4754 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4755 $as_echo "printf" >&6; } ;; 4756 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4757 $as_echo "print -r" >&6; } ;; 4758 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4759 $as_echo "cat" >&6; } ;; 4760 esac 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4776 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4777 if ${ac_cv_path_SED+:} false; then : 4778 $as_echo_n "(cached) " >&6 4779 else 4780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4781 for ac_i in 1 2 3 4 5 6 7; do 4782 ac_script="$ac_script$as_nl$ac_script" 4783 done 4784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4785 { ac_script=; unset ac_script;} 4786 if test -z "$SED"; then 4787 ac_path_SED_found=false 4788 # Loop through the user's path and test for each of PROGNAME-LIST 4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4790 for as_dir in $PATH 4791 do 4792 IFS=$as_save_IFS 4793 test -z "$as_dir" && as_dir=. 4794 for ac_prog in sed gsed; do 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4797 as_fn_executable_p "$ac_path_SED" || continue 4798 # Check for GNU ac_path_SED and select it if it is found. 4799 # Check for GNU $ac_path_SED 4800 case `"$ac_path_SED" --version 2>&1` in 4801 *GNU*) 4802 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4803 *) 4804 ac_count=0 4805 $as_echo_n 0123456789 >"conftest.in" 4806 while : 4807 do 4808 cat "conftest.in" "conftest.in" >"conftest.tmp" 4809 mv "conftest.tmp" "conftest.in" 4810 cp "conftest.in" "conftest.nl" 4811 $as_echo '' >> "conftest.nl" 4812 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4814 as_fn_arith $ac_count + 1 && ac_count=$as_val 4815 if test $ac_count -gt ${ac_path_SED_max-0}; then 4816 # Best one so far, save it but keep looking for a better one 4817 ac_cv_path_SED="$ac_path_SED" 4818 ac_path_SED_max=$ac_count 4819 fi 4820 # 10*(2^10) chars as input seems more than enough 4821 test $ac_count -gt 10 && break 4822 done 4823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4824 esac 4825 4826 $ac_path_SED_found && break 3 4827 done 4828 done 4829 done 4830 IFS=$as_save_IFS 4831 if test -z "$ac_cv_path_SED"; then 4832 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4833 fi 4834 else 4835 ac_cv_path_SED=$SED 4836 fi 4837 4838 fi 4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4840 $as_echo "$ac_cv_path_SED" >&6; } 4841 SED="$ac_cv_path_SED" 4842 rm -f conftest.sed 4843 4844 test -z "$SED" && SED=sed 4845 Xsed="$SED -e 1s/^X//" 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4858 $as_echo_n "checking for fgrep... " >&6; } 4859 if ${ac_cv_path_FGREP+:} false; then : 4860 $as_echo_n "(cached) " >&6 4861 else 4862 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4863 then ac_cv_path_FGREP="$GREP -F" 4864 else 4865 if test -z "$FGREP"; then 4866 ac_path_FGREP_found=false 4867 # Loop through the user's path and test for each of PROGNAME-LIST 4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4870 do 4871 IFS=$as_save_IFS 4872 test -z "$as_dir" && as_dir=. 4873 for ac_prog in fgrep; do 4874 for ac_exec_ext in '' $ac_executable_extensions; do 4875 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4876 as_fn_executable_p "$ac_path_FGREP" || continue 4877 # Check for GNU ac_path_FGREP and select it if it is found. 4878 # Check for GNU $ac_path_FGREP 4879 case `"$ac_path_FGREP" --version 2>&1` in 4880 *GNU*) 4881 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4882 *) 4883 ac_count=0 4884 $as_echo_n 0123456789 >"conftest.in" 4885 while : 4886 do 4887 cat "conftest.in" "conftest.in" >"conftest.tmp" 4888 mv "conftest.tmp" "conftest.in" 4889 cp "conftest.in" "conftest.nl" 4890 $as_echo 'FGREP' >> "conftest.nl" 4891 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4893 as_fn_arith $ac_count + 1 && ac_count=$as_val 4894 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4895 # Best one so far, save it but keep looking for a better one 4896 ac_cv_path_FGREP="$ac_path_FGREP" 4897 ac_path_FGREP_max=$ac_count 4898 fi 4899 # 10*(2^10) chars as input seems more than enough 4900 test $ac_count -gt 10 && break 4901 done 4902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4903 esac 4904 4905 $ac_path_FGREP_found && break 3 4906 done 4907 done 4908 done 4909 IFS=$as_save_IFS 4910 if test -z "$ac_cv_path_FGREP"; then 4911 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4912 fi 4913 else 4914 ac_cv_path_FGREP=$FGREP 4915 fi 4916 4917 fi 4918 fi 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4920 $as_echo "$ac_cv_path_FGREP" >&6; } 4921 FGREP="$ac_cv_path_FGREP" 4922 4923 4924 test -z "$GREP" && GREP=grep 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 # Check whether --with-gnu-ld was given. 4945 if test "${with_gnu_ld+set}" = set; then : 4946 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4947 else 4948 with_gnu_ld=no 4949 fi 4950 4951 ac_prog=ld 4952 if test yes = "$GCC"; then 4953 # Check if gcc -print-prog-name=ld gives a path. 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4955 $as_echo_n "checking for ld used by $CC... " >&6; } 4956 case $host in 4957 *-*-mingw*) 4958 # gcc leaves a trailing carriage return, which upsets mingw 4959 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4960 *) 4961 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4962 esac 4963 case $ac_prog in 4964 # Accept absolute paths. 4965 [\\/]* | ?:[\\/]*) 4966 re_direlt='/[^/][^/]*/\.\./' 4967 # Canonicalize the pathname of ld 4968 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4969 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4970 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4971 done 4972 test -z "$LD" && LD=$ac_prog 4973 ;; 4974 "") 4975 # If it fails, then pretend we aren't using GCC. 4976 ac_prog=ld 4977 ;; 4978 *) 4979 # If it is relative, then search for the first ld in PATH. 4980 with_gnu_ld=unknown 4981 ;; 4982 esac 4983 elif test yes = "$with_gnu_ld"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4985 $as_echo_n "checking for GNU ld... " >&6; } 4986 else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4988 $as_echo_n "checking for non-GNU ld... " >&6; } 4989 fi 4990 if ${lt_cv_path_LD+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992 else 4993 if test -z "$LD"; then 4994 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4995 for ac_dir in $PATH; do 4996 IFS=$lt_save_ifs 4997 test -z "$ac_dir" && ac_dir=. 4998 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4999 lt_cv_path_LD=$ac_dir/$ac_prog 5000 # Check to see if the program is GNU ld. I'd rather use --version, 5001 # but apparently some variants of GNU ld only accept -v. 5002 # Break only if it was the GNU/non-GNU ld that we prefer. 5003 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5004 *GNU* | *'with BFD'*) 5005 test no != "$with_gnu_ld" && break 5006 ;; 5007 *) 5008 test yes != "$with_gnu_ld" && break 5009 ;; 5010 esac 5011 fi 5012 done 5013 IFS=$lt_save_ifs 5014 else 5015 lt_cv_path_LD=$LD # Let the user override the test with a path. 5016 fi 5017 fi 5018 5019 LD=$lt_cv_path_LD 5020 if test -n "$LD"; then 5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5022 $as_echo "$LD" >&6; } 5023 else 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5025 $as_echo "no" >&6; } 5026 fi 5027 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5029 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5030 if ${lt_cv_prog_gnu_ld+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032 else 5033 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5034 case `$LD -v 2>&1 </dev/null` in 5035 *GNU* | *'with BFD'*) 5036 lt_cv_prog_gnu_ld=yes 5037 ;; 5038 *) 5039 lt_cv_prog_gnu_ld=no 5040 ;; 5041 esac 5042 fi 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5044 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5045 with_gnu_ld=$lt_cv_prog_gnu_ld 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5056 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5057 if ${lt_cv_path_NM+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059 else 5060 if test -n "$NM"; then 5061 # Let the user override the test. 5062 lt_cv_path_NM=$NM 5063 else 5064 lt_nm_to_check=${ac_tool_prefix}nm 5065 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5066 lt_nm_to_check="$lt_nm_to_check nm" 5067 fi 5068 for lt_tmp_nm in $lt_nm_to_check; do 5069 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5070 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5071 IFS=$lt_save_ifs 5072 test -z "$ac_dir" && ac_dir=. 5073 tmp_nm=$ac_dir/$lt_tmp_nm 5074 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5075 # Check to see if the nm accepts a BSD-compat flag. 5076 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5077 # nm: unknown option "B" ignored 5078 # Tru64's nm complains that /dev/null is an invalid object file 5079 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5080 case $build_os in 5081 mingw*) lt_bad_file=conftest.nm/nofile ;; 5082 *) lt_bad_file=/dev/null ;; 5083 esac 5084 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5085 *$lt_bad_file* | *'Invalid file or object type'*) 5086 lt_cv_path_NM="$tmp_nm -B" 5087 break 2 5088 ;; 5089 *) 5090 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5091 */dev/null*) 5092 lt_cv_path_NM="$tmp_nm -p" 5093 break 2 5094 ;; 5095 *) 5096 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5097 continue # so that we can try to find one that supports BSD flags 5098 ;; 5099 esac 5100 ;; 5101 esac 5102 fi 5103 done 5104 IFS=$lt_save_ifs 5105 done 5106 : ${lt_cv_path_NM=no} 5107 fi 5108 fi 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5110 $as_echo "$lt_cv_path_NM" >&6; } 5111 if test no != "$lt_cv_path_NM"; then 5112 NM=$lt_cv_path_NM 5113 else 5114 # Didn't find any BSD compatible name lister, look for dumpbin. 5115 if test -n "$DUMPBIN"; then : 5116 # Let the user override the test. 5117 else 5118 if test -n "$ac_tool_prefix"; then 5119 for ac_prog in dumpbin "link -dump" 5120 do 5121 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5124 $as_echo_n "checking for $ac_word... " >&6; } 5125 if ${ac_cv_prog_DUMPBIN+:} false; then : 5126 $as_echo_n "(cached) " >&6 5127 else 5128 if test -n "$DUMPBIN"; then 5129 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5130 else 5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5132 for as_dir in $PATH 5133 do 5134 IFS=$as_save_IFS 5135 test -z "$as_dir" && as_dir=. 5136 for ac_exec_ext in '' $ac_executable_extensions; do 5137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5138 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5140 break 2 5141 fi 5142 done 5143 done 5144 IFS=$as_save_IFS 5145 5146 fi 5147 fi 5148 DUMPBIN=$ac_cv_prog_DUMPBIN 5149 if test -n "$DUMPBIN"; then 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5151 $as_echo "$DUMPBIN" >&6; } 5152 else 5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5154 $as_echo "no" >&6; } 5155 fi 5156 5157 5158 test -n "$DUMPBIN" && break 5159 done 5160 fi 5161 if test -z "$DUMPBIN"; then 5162 ac_ct_DUMPBIN=$DUMPBIN 5163 for ac_prog in dumpbin "link -dump" 5164 do 5165 # Extract the first word of "$ac_prog", so it can be a program name with args. 5166 set dummy $ac_prog; ac_word=$2 5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5168 $as_echo_n "checking for $ac_word... " >&6; } 5169 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5170 $as_echo_n "(cached) " >&6 5171 else 5172 if test -n "$ac_ct_DUMPBIN"; then 5173 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5174 else 5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5176 for as_dir in $PATH 5177 do 5178 IFS=$as_save_IFS 5179 test -z "$as_dir" && as_dir=. 5180 for ac_exec_ext in '' $ac_executable_extensions; do 5181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5182 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5184 break 2 5185 fi 5186 done 5187 done 5188 IFS=$as_save_IFS 5189 5190 fi 5191 fi 5192 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5193 if test -n "$ac_ct_DUMPBIN"; then 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5195 $as_echo "$ac_ct_DUMPBIN" >&6; } 5196 else 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5198 $as_echo "no" >&6; } 5199 fi 5200 5201 5202 test -n "$ac_ct_DUMPBIN" && break 5203 done 5204 5205 if test "x$ac_ct_DUMPBIN" = x; then 5206 DUMPBIN=":" 5207 else 5208 case $cross_compiling:$ac_tool_warned in 5209 yes:) 5210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5212 ac_tool_warned=yes ;; 5213 esac 5214 DUMPBIN=$ac_ct_DUMPBIN 5215 fi 5216 fi 5217 5218 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5219 *COFF*) 5220 DUMPBIN="$DUMPBIN -symbols -headers" 5221 ;; 5222 *) 5223 DUMPBIN=: 5224 ;; 5225 esac 5226 fi 5227 5228 if test : != "$DUMPBIN"; then 5229 NM=$DUMPBIN 5230 fi 5231 fi 5232 test -z "$NM" && NM=nm 5233 5234 5235 5236 5237 5238 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5240 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5241 if ${lt_cv_nm_interface+:} false; then : 5242 $as_echo_n "(cached) " >&6 5243 else 5244 lt_cv_nm_interface="BSD nm" 5245 echo "int some_variable = 0;" > conftest.$ac_ext 5246 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5247 (eval "$ac_compile" 2>conftest.err) 5248 cat conftest.err >&5 5249 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5250 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5251 cat conftest.err >&5 5252 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5253 cat conftest.out >&5 5254 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5255 lt_cv_nm_interface="MS dumpbin" 5256 fi 5257 rm -f conftest* 5258 fi 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5260 $as_echo "$lt_cv_nm_interface" >&6; } 5261 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5263 $as_echo_n "checking whether ln -s works... " >&6; } 5264 LN_S=$as_ln_s 5265 if test "$LN_S" = "ln -s"; then 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5267 $as_echo "yes" >&6; } 5268 else 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5270 $as_echo "no, using $LN_S" >&6; } 5271 fi 5272 5273 # find the maximum length of command line arguments 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5275 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5276 if ${lt_cv_sys_max_cmd_len+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278 else 5279 i=0 5280 teststring=ABCD 5281 5282 case $build_os in 5283 msdosdjgpp*) 5284 # On DJGPP, this test can blow up pretty badly due to problems in libc 5285 # (any single argument exceeding 2000 bytes causes a buffer overrun 5286 # during glob expansion). Even if it were fixed, the result of this 5287 # check would be larger than it should be. 5288 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5289 ;; 5290 5291 gnu*) 5292 # Under GNU Hurd, this test is not required because there is 5293 # no limit to the length of command line arguments. 5294 # Libtool will interpret -1 as no limit whatsoever 5295 lt_cv_sys_max_cmd_len=-1; 5296 ;; 5297 5298 cygwin* | mingw* | cegcc*) 5299 # On Win9x/ME, this test blows up -- it succeeds, but takes 5300 # about 5 minutes as the teststring grows exponentially. 5301 # Worse, since 9x/ME are not pre-emptively multitasking, 5302 # you end up with a "frozen" computer, even though with patience 5303 # the test eventually succeeds (with a max line length of 256k). 5304 # Instead, let's just punt: use the minimum linelength reported by 5305 # all of the supported platforms: 8192 (on NT/2K/XP). 5306 lt_cv_sys_max_cmd_len=8192; 5307 ;; 5308 5309 mint*) 5310 # On MiNT this can take a long time and run out of memory. 5311 lt_cv_sys_max_cmd_len=8192; 5312 ;; 5313 5314 amigaos*) 5315 # On AmigaOS with pdksh, this test takes hours, literally. 5316 # So we just punt and use a minimum line length of 8192. 5317 lt_cv_sys_max_cmd_len=8192; 5318 ;; 5319 5320 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5321 # This has been around since 386BSD, at least. Likely further. 5322 if test -x /sbin/sysctl; then 5323 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5324 elif test -x /usr/sbin/sysctl; then 5325 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5326 else 5327 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5328 fi 5329 # And add a safety zone 5330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5331 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5332 ;; 5333 5334 interix*) 5335 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5336 lt_cv_sys_max_cmd_len=196608 5337 ;; 5338 5339 os2*) 5340 # The test takes a long time on OS/2. 5341 lt_cv_sys_max_cmd_len=8192 5342 ;; 5343 5344 osf*) 5345 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5346 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5347 # nice to cause kernel panics so lets avoid the loop below. 5348 # First set a reasonable default. 5349 lt_cv_sys_max_cmd_len=16384 5350 # 5351 if test -x /sbin/sysconfig; then 5352 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5353 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5354 esac 5355 fi 5356 ;; 5357 sco3.2v5*) 5358 lt_cv_sys_max_cmd_len=102400 5359 ;; 5360 sysv5* | sco5v6* | sysv4.2uw2*) 5361 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5362 if test -n "$kargmax"; then 5363 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5364 else 5365 lt_cv_sys_max_cmd_len=32768 5366 fi 5367 ;; 5368 *) 5369 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5370 if test -n "$lt_cv_sys_max_cmd_len" && \ 5371 test undefined != "$lt_cv_sys_max_cmd_len"; then 5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5374 else 5375 # Make teststring a little bigger before we do anything with it. 5376 # a 1K string should be a reasonable start. 5377 for i in 1 2 3 4 5 6 7 8; do 5378 teststring=$teststring$teststring 5379 done 5380 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5381 # If test is not a shell built-in, we'll probably end up computing a 5382 # maximum length that is only half of the actual maximum length, but 5383 # we can't tell. 5384 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5385 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5386 test 17 != "$i" # 1/2 MB should be enough 5387 do 5388 i=`expr $i + 1` 5389 teststring=$teststring$teststring 5390 done 5391 # Only check the string length outside the loop. 5392 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5393 teststring= 5394 # Add a significant safety factor because C++ compilers can tack on 5395 # massive amounts of additional arguments before passing them to the 5396 # linker. It appears as though 1/2 is a usable value. 5397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5398 fi 5399 ;; 5400 esac 5401 5402 fi 5403 5404 if test -n "$lt_cv_sys_max_cmd_len"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5406 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5407 else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5409 $as_echo "none" >&6; } 5410 fi 5411 max_cmd_len=$lt_cv_sys_max_cmd_len 5412 5413 5414 5415 5416 5417 5418 : ${CP="cp -f"} 5419 : ${MV="mv -f"} 5420 : ${RM="rm -f"} 5421 5422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5423 lt_unset=unset 5424 else 5425 lt_unset=false 5426 fi 5427 5428 5429 5430 5431 5432 # test EBCDIC or ASCII 5433 case `echo X|tr X '\101'` in 5434 A) # ASCII based system 5435 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5436 lt_SP2NL='tr \040 \012' 5437 lt_NL2SP='tr \015\012 \040\040' 5438 ;; 5439 *) # EBCDIC based system 5440 lt_SP2NL='tr \100 \n' 5441 lt_NL2SP='tr \r\n \100\100' 5442 ;; 5443 esac 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5454 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5455 if ${lt_cv_to_host_file_cmd+:} false; then : 5456 $as_echo_n "(cached) " >&6 5457 else 5458 case $host in 5459 *-*-mingw* ) 5460 case $build in 5461 *-*-mingw* ) # actually msys 5462 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5463 ;; 5464 *-*-cygwin* ) 5465 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5466 ;; 5467 * ) # otherwise, assume *nix 5468 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5469 ;; 5470 esac 5471 ;; 5472 *-*-cygwin* ) 5473 case $build in 5474 *-*-mingw* ) # actually msys 5475 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5476 ;; 5477 *-*-cygwin* ) 5478 lt_cv_to_host_file_cmd=func_convert_file_noop 5479 ;; 5480 * ) # otherwise, assume *nix 5481 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5482 ;; 5483 esac 5484 ;; 5485 * ) # unhandled hosts (and "normal" native builds) 5486 lt_cv_to_host_file_cmd=func_convert_file_noop 5487 ;; 5488 esac 5489 5490 fi 5491 5492 to_host_file_cmd=$lt_cv_to_host_file_cmd 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5494 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 5495 5496 5497 5498 5499 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5501 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5502 if ${lt_cv_to_tool_file_cmd+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504 else 5505 #assume ordinary cross tools, or native build. 5506 lt_cv_to_tool_file_cmd=func_convert_file_noop 5507 case $host in 5508 *-*-mingw* ) 5509 case $build in 5510 *-*-mingw* ) # actually msys 5511 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5512 ;; 5513 esac 5514 ;; 5515 esac 5516 5517 fi 5518 5519 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5521 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5522 5523 5524 5525 5526 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5528 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5529 if ${lt_cv_ld_reload_flag+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531 else 5532 lt_cv_ld_reload_flag='-r' 5533 fi 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5535 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5536 reload_flag=$lt_cv_ld_reload_flag 5537 case $reload_flag in 5538 "" | " "*) ;; 5539 *) reload_flag=" $reload_flag" ;; 5540 esac 5541 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5542 case $host_os in 5543 cygwin* | mingw* | pw32* | cegcc*) 5544 if test yes != "$GCC"; then 5545 reload_cmds=false 5546 fi 5547 ;; 5548 darwin*) 5549 if test yes = "$GCC"; then 5550 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5551 else 5552 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5553 fi 5554 ;; 5555 esac 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 if test -n "$ac_tool_prefix"; then 5566 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5567 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5569 $as_echo_n "checking for $ac_word... " >&6; } 5570 if ${ac_cv_prog_OBJDUMP+:} false; then : 5571 $as_echo_n "(cached) " >&6 5572 else 5573 if test -n "$OBJDUMP"; then 5574 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5575 else 5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5577 for as_dir in $PATH 5578 do 5579 IFS=$as_save_IFS 5580 test -z "$as_dir" && as_dir=. 5581 for ac_exec_ext in '' $ac_executable_extensions; do 5582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5583 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5585 break 2 5586 fi 5587 done 5588 done 5589 IFS=$as_save_IFS 5590 5591 fi 5592 fi 5593 OBJDUMP=$ac_cv_prog_OBJDUMP 5594 if test -n "$OBJDUMP"; then 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5596 $as_echo "$OBJDUMP" >&6; } 5597 else 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5599 $as_echo "no" >&6; } 5600 fi 5601 5602 5603 fi 5604 if test -z "$ac_cv_prog_OBJDUMP"; then 5605 ac_ct_OBJDUMP=$OBJDUMP 5606 # Extract the first word of "objdump", so it can be a program name with args. 5607 set dummy objdump; ac_word=$2 5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5609 $as_echo_n "checking for $ac_word... " >&6; } 5610 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5611 $as_echo_n "(cached) " >&6 5612 else 5613 if test -n "$ac_ct_OBJDUMP"; then 5614 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5615 else 5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5617 for as_dir in $PATH 5618 do 5619 IFS=$as_save_IFS 5620 test -z "$as_dir" && as_dir=. 5621 for ac_exec_ext in '' $ac_executable_extensions; do 5622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5623 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5625 break 2 5626 fi 5627 done 5628 done 5629 IFS=$as_save_IFS 5630 5631 fi 5632 fi 5633 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5634 if test -n "$ac_ct_OBJDUMP"; then 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5636 $as_echo "$ac_ct_OBJDUMP" >&6; } 5637 else 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5639 $as_echo "no" >&6; } 5640 fi 5641 5642 if test "x$ac_ct_OBJDUMP" = x; then 5643 OBJDUMP="false" 5644 else 5645 case $cross_compiling:$ac_tool_warned in 5646 yes:) 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5649 ac_tool_warned=yes ;; 5650 esac 5651 OBJDUMP=$ac_ct_OBJDUMP 5652 fi 5653 else 5654 OBJDUMP="$ac_cv_prog_OBJDUMP" 5655 fi 5656 5657 test -z "$OBJDUMP" && OBJDUMP=objdump 5658 5659 5660 5661 5662 5663 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5665 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5666 if ${lt_cv_deplibs_check_method+:} false; then : 5667 $as_echo_n "(cached) " >&6 5668 else 5669 lt_cv_file_magic_cmd='$MAGIC_CMD' 5670 lt_cv_file_magic_test_file= 5671 lt_cv_deplibs_check_method='unknown' 5672 # Need to set the preceding variable on all platforms that support 5673 # interlibrary dependencies. 5674 # 'none' -- dependencies not supported. 5675 # 'unknown' -- same as none, but documents that we really don't know. 5676 # 'pass_all' -- all dependencies passed with no checks. 5677 # 'test_compile' -- check by making test program. 5678 # 'file_magic [[regex]]' -- check by looking for files in library path 5679 # that responds to the $file_magic_cmd with a given extended regex. 5680 # If you have 'file' or equivalent on your system and you're not sure 5681 # whether 'pass_all' will *always* work, you probably want this one. 5682 5683 case $host_os in 5684 aix[4-9]*) 5685 lt_cv_deplibs_check_method=pass_all 5686 ;; 5687 5688 beos*) 5689 lt_cv_deplibs_check_method=pass_all 5690 ;; 5691 5692 bsdi[45]*) 5693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5694 lt_cv_file_magic_cmd='/usr/bin/file -L' 5695 lt_cv_file_magic_test_file=/shlib/libc.so 5696 ;; 5697 5698 cygwin*) 5699 # func_win32_libid is a shell function defined in ltmain.sh 5700 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5701 lt_cv_file_magic_cmd='func_win32_libid' 5702 ;; 5703 5704 mingw* | pw32*) 5705 # Base MSYS/MinGW do not provide the 'file' command needed by 5706 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5707 # unless we find 'file', for example because we are cross-compiling. 5708 if ( file / ) >/dev/null 2>&1; then 5709 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5710 lt_cv_file_magic_cmd='func_win32_libid' 5711 else 5712 # Keep this pattern in sync with the one in func_win32_libid. 5713 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5714 lt_cv_file_magic_cmd='$OBJDUMP -f' 5715 fi 5716 ;; 5717 5718 cegcc*) 5719 # use the weaker test based on 'objdump'. See mingw*. 5720 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5721 lt_cv_file_magic_cmd='$OBJDUMP -f' 5722 ;; 5723 5724 darwin* | rhapsody*) 5725 lt_cv_deplibs_check_method=pass_all 5726 ;; 5727 5728 freebsd* | dragonfly*) 5729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5730 case $host_cpu in 5731 i*86 ) 5732 # Not sure whether the presence of OpenBSD here was a mistake. 5733 # Let's accept both of them until this is cleared up. 5734 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5735 lt_cv_file_magic_cmd=/usr/bin/file 5736 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5737 ;; 5738 esac 5739 else 5740 lt_cv_deplibs_check_method=pass_all 5741 fi 5742 ;; 5743 5744 haiku*) 5745 lt_cv_deplibs_check_method=pass_all 5746 ;; 5747 5748 hpux10.20* | hpux11*) 5749 lt_cv_file_magic_cmd=/usr/bin/file 5750 case $host_cpu in 5751 ia64*) 5752 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5753 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5754 ;; 5755 hppa*64*) 5756 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]' 5757 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5758 ;; 5759 *) 5760 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5761 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5762 ;; 5763 esac 5764 ;; 5765 5766 interix[3-9]*) 5767 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5768 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5769 ;; 5770 5771 irix5* | irix6* | nonstopux*) 5772 case $LD in 5773 *-32|*"-32 ") libmagic=32-bit;; 5774 *-n32|*"-n32 ") libmagic=N32;; 5775 *-64|*"-64 ") libmagic=64-bit;; 5776 *) libmagic=never-match;; 5777 esac 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 5781 # This must be glibc/ELF. 5782 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5783 lt_cv_deplibs_check_method=pass_all 5784 ;; 5785 5786 netbsd* | netbsdelf*-gnu) 5787 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5788 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5789 else 5790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5791 fi 5792 ;; 5793 5794 newos6*) 5795 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5796 lt_cv_file_magic_cmd=/usr/bin/file 5797 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5798 ;; 5799 5800 *nto* | *qnx*) 5801 lt_cv_deplibs_check_method=pass_all 5802 ;; 5803 5804 openbsd* | bitrig*) 5805 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5807 else 5808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5809 fi 5810 ;; 5811 5812 osf3* | osf4* | osf5*) 5813 lt_cv_deplibs_check_method=pass_all 5814 ;; 5815 5816 rdos*) 5817 lt_cv_deplibs_check_method=pass_all 5818 ;; 5819 5820 solaris*) 5821 lt_cv_deplibs_check_method=pass_all 5822 ;; 5823 5824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5825 lt_cv_deplibs_check_method=pass_all 5826 ;; 5827 5828 sysv4 | sysv4.3*) 5829 case $host_vendor in 5830 motorola) 5831 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]' 5832 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5833 ;; 5834 ncr) 5835 lt_cv_deplibs_check_method=pass_all 5836 ;; 5837 sequent) 5838 lt_cv_file_magic_cmd='/bin/file' 5839 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5840 ;; 5841 sni) 5842 lt_cv_file_magic_cmd='/bin/file' 5843 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5844 lt_cv_file_magic_test_file=/lib/libc.so 5845 ;; 5846 siemens) 5847 lt_cv_deplibs_check_method=pass_all 5848 ;; 5849 pc) 5850 lt_cv_deplibs_check_method=pass_all 5851 ;; 5852 esac 5853 ;; 5854 5855 tpf*) 5856 lt_cv_deplibs_check_method=pass_all 5857 ;; 5858 os2*) 5859 lt_cv_deplibs_check_method=pass_all 5860 ;; 5861 esac 5862 5863 fi 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5865 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5866 5867 file_magic_glob= 5868 want_nocaseglob=no 5869 if test "$build" = "$host"; then 5870 case $host_os in 5871 mingw* | pw32*) 5872 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5873 want_nocaseglob=yes 5874 else 5875 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5876 fi 5877 ;; 5878 esac 5879 fi 5880 5881 file_magic_cmd=$lt_cv_file_magic_cmd 5882 deplibs_check_method=$lt_cv_deplibs_check_method 5883 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 if test -n "$ac_tool_prefix"; then 5907 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5908 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5910 $as_echo_n "checking for $ac_word... " >&6; } 5911 if ${ac_cv_prog_DLLTOOL+:} false; then : 5912 $as_echo_n "(cached) " >&6 5913 else 5914 if test -n "$DLLTOOL"; then 5915 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5916 else 5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5918 for as_dir in $PATH 5919 do 5920 IFS=$as_save_IFS 5921 test -z "$as_dir" && as_dir=. 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5924 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928 done 5929 done 5930 IFS=$as_save_IFS 5931 5932 fi 5933 fi 5934 DLLTOOL=$ac_cv_prog_DLLTOOL 5935 if test -n "$DLLTOOL"; then 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5937 $as_echo "$DLLTOOL" >&6; } 5938 else 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5940 $as_echo "no" >&6; } 5941 fi 5942 5943 5944 fi 5945 if test -z "$ac_cv_prog_DLLTOOL"; then 5946 ac_ct_DLLTOOL=$DLLTOOL 5947 # Extract the first word of "dlltool", so it can be a program name with args. 5948 set dummy dlltool; ac_word=$2 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5950 $as_echo_n "checking for $ac_word... " >&6; } 5951 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5952 $as_echo_n "(cached) " >&6 5953 else 5954 if test -n "$ac_ct_DLLTOOL"; then 5955 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5956 else 5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5958 for as_dir in $PATH 5959 do 5960 IFS=$as_save_IFS 5961 test -z "$as_dir" && as_dir=. 5962 for ac_exec_ext in '' $ac_executable_extensions; do 5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5964 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5966 break 2 5967 fi 5968 done 5969 done 5970 IFS=$as_save_IFS 5971 5972 fi 5973 fi 5974 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5975 if test -n "$ac_ct_DLLTOOL"; then 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5977 $as_echo "$ac_ct_DLLTOOL" >&6; } 5978 else 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5980 $as_echo "no" >&6; } 5981 fi 5982 5983 if test "x$ac_ct_DLLTOOL" = x; then 5984 DLLTOOL="false" 5985 else 5986 case $cross_compiling:$ac_tool_warned in 5987 yes:) 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5990 ac_tool_warned=yes ;; 5991 esac 5992 DLLTOOL=$ac_ct_DLLTOOL 5993 fi 5994 else 5995 DLLTOOL="$ac_cv_prog_DLLTOOL" 5996 fi 5997 5998 test -z "$DLLTOOL" && DLLTOOL=dlltool 5999 6000 6001 6002 6003 6004 6005 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6007 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6008 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6009 $as_echo_n "(cached) " >&6 6010 else 6011 lt_cv_sharedlib_from_linklib_cmd='unknown' 6012 6013 case $host_os in 6014 cygwin* | mingw* | pw32* | cegcc*) 6015 # two different shell functions defined in ltmain.sh; 6016 # decide which one to use based on capabilities of $DLLTOOL 6017 case `$DLLTOOL --help 2>&1` in 6018 *--identify-strict*) 6019 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6020 ;; 6021 *) 6022 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6023 ;; 6024 esac 6025 ;; 6026 *) 6027 # fallback: assume linklib IS sharedlib 6028 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6029 ;; 6030 esac 6031 6032 fi 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6034 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6035 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6036 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6037 6038 6039 6040 6041 6042 6043 6044 if test -n "$ac_tool_prefix"; then 6045 for ac_prog in ar 6046 do 6047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6050 $as_echo_n "checking for $ac_word... " >&6; } 6051 if ${ac_cv_prog_AR+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053 else 6054 if test -n "$AR"; then 6055 ac_cv_prog_AR="$AR" # Let the user override the test. 6056 else 6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6058 for as_dir in $PATH 6059 do 6060 IFS=$as_save_IFS 6061 test -z "$as_dir" && as_dir=. 6062 for ac_exec_ext in '' $ac_executable_extensions; do 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6064 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6066 break 2 6067 fi 6068 done 6069 done 6070 IFS=$as_save_IFS 6071 6072 fi 6073 fi 6074 AR=$ac_cv_prog_AR 6075 if test -n "$AR"; then 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6077 $as_echo "$AR" >&6; } 6078 else 6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6080 $as_echo "no" >&6; } 6081 fi 6082 6083 6084 test -n "$AR" && break 6085 done 6086 fi 6087 if test -z "$AR"; then 6088 ac_ct_AR=$AR 6089 for ac_prog in ar 6090 do 6091 # Extract the first word of "$ac_prog", so it can be a program name with args. 6092 set dummy $ac_prog; ac_word=$2 6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6094 $as_echo_n "checking for $ac_word... " >&6; } 6095 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6096 $as_echo_n "(cached) " >&6 6097 else 6098 if test -n "$ac_ct_AR"; then 6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6100 else 6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6102 for as_dir in $PATH 6103 do 6104 IFS=$as_save_IFS 6105 test -z "$as_dir" && as_dir=. 6106 for ac_exec_ext in '' $ac_executable_extensions; do 6107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6108 ac_cv_prog_ac_ct_AR="$ac_prog" 6109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6110 break 2 6111 fi 6112 done 6113 done 6114 IFS=$as_save_IFS 6115 6116 fi 6117 fi 6118 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6119 if test -n "$ac_ct_AR"; then 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6121 $as_echo "$ac_ct_AR" >&6; } 6122 else 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6124 $as_echo "no" >&6; } 6125 fi 6126 6127 6128 test -n "$ac_ct_AR" && break 6129 done 6130 6131 if test "x$ac_ct_AR" = x; then 6132 AR="false" 6133 else 6134 case $cross_compiling:$ac_tool_warned in 6135 yes:) 6136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6138 ac_tool_warned=yes ;; 6139 esac 6140 AR=$ac_ct_AR 6141 fi 6142 fi 6143 6144 : ${AR=ar} 6145 : ${AR_FLAGS=cru} 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6158 $as_echo_n "checking for archiver @FILE support... " >&6; } 6159 if ${lt_cv_ar_at_file+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161 else 6162 lt_cv_ar_at_file=no 6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6164 /* end confdefs.h. */ 6165 6166 int 6167 main () 6168 { 6169 6170 ; 6171 return 0; 6172 } 6173 _ACEOF 6174 if ac_fn_c_try_compile "$LINENO"; then : 6175 echo conftest.$ac_objext > conftest.lst 6176 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6178 (eval $lt_ar_try) 2>&5 6179 ac_status=$? 6180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6181 test $ac_status = 0; } 6182 if test 0 -eq "$ac_status"; then 6183 # Ensure the archiver fails upon bogus file names. 6184 rm -f conftest.$ac_objext libconftest.a 6185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6186 (eval $lt_ar_try) 2>&5 6187 ac_status=$? 6188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6189 test $ac_status = 0; } 6190 if test 0 -ne "$ac_status"; then 6191 lt_cv_ar_at_file=@ 6192 fi 6193 fi 6194 rm -f conftest.* libconftest.a 6195 6196 fi 6197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6198 6199 fi 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6201 $as_echo "$lt_cv_ar_at_file" >&6; } 6202 6203 if test no = "$lt_cv_ar_at_file"; then 6204 archiver_list_spec= 6205 else 6206 archiver_list_spec=$lt_cv_ar_at_file 6207 fi 6208 6209 6210 6211 6212 6213 6214 6215 if test -n "$ac_tool_prefix"; then 6216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6217 set dummy ${ac_tool_prefix}strip; ac_word=$2 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6219 $as_echo_n "checking for $ac_word... " >&6; } 6220 if ${ac_cv_prog_STRIP+:} false; then : 6221 $as_echo_n "(cached) " >&6 6222 else 6223 if test -n "$STRIP"; then 6224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6225 else 6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6227 for as_dir in $PATH 6228 do 6229 IFS=$as_save_IFS 6230 test -z "$as_dir" && as_dir=. 6231 for ac_exec_ext in '' $ac_executable_extensions; do 6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6233 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6235 break 2 6236 fi 6237 done 6238 done 6239 IFS=$as_save_IFS 6240 6241 fi 6242 fi 6243 STRIP=$ac_cv_prog_STRIP 6244 if test -n "$STRIP"; then 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6246 $as_echo "$STRIP" >&6; } 6247 else 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6249 $as_echo "no" >&6; } 6250 fi 6251 6252 6253 fi 6254 if test -z "$ac_cv_prog_STRIP"; then 6255 ac_ct_STRIP=$STRIP 6256 # Extract the first word of "strip", so it can be a program name with args. 6257 set dummy strip; ac_word=$2 6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6259 $as_echo_n "checking for $ac_word... " >&6; } 6260 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6261 $as_echo_n "(cached) " >&6 6262 else 6263 if test -n "$ac_ct_STRIP"; then 6264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6265 else 6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6267 for as_dir in $PATH 6268 do 6269 IFS=$as_save_IFS 6270 test -z "$as_dir" && as_dir=. 6271 for ac_exec_ext in '' $ac_executable_extensions; do 6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6273 ac_cv_prog_ac_ct_STRIP="strip" 6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6275 break 2 6276 fi 6277 done 6278 done 6279 IFS=$as_save_IFS 6280 6281 fi 6282 fi 6283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6284 if test -n "$ac_ct_STRIP"; then 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6286 $as_echo "$ac_ct_STRIP" >&6; } 6287 else 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6289 $as_echo "no" >&6; } 6290 fi 6291 6292 if test "x$ac_ct_STRIP" = x; then 6293 STRIP=":" 6294 else 6295 case $cross_compiling:$ac_tool_warned in 6296 yes:) 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6299 ac_tool_warned=yes ;; 6300 esac 6301 STRIP=$ac_ct_STRIP 6302 fi 6303 else 6304 STRIP="$ac_cv_prog_STRIP" 6305 fi 6306 6307 test -z "$STRIP" && STRIP=: 6308 6309 6310 6311 6312 6313 6314 if test -n "$ac_tool_prefix"; then 6315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6318 $as_echo_n "checking for $ac_word... " >&6; } 6319 if ${ac_cv_prog_RANLIB+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321 else 6322 if test -n "$RANLIB"; then 6323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6324 else 6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6326 for as_dir in $PATH 6327 do 6328 IFS=$as_save_IFS 6329 test -z "$as_dir" && as_dir=. 6330 for ac_exec_ext in '' $ac_executable_extensions; do 6331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6334 break 2 6335 fi 6336 done 6337 done 6338 IFS=$as_save_IFS 6339 6340 fi 6341 fi 6342 RANLIB=$ac_cv_prog_RANLIB 6343 if test -n "$RANLIB"; then 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6345 $as_echo "$RANLIB" >&6; } 6346 else 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6348 $as_echo "no" >&6; } 6349 fi 6350 6351 6352 fi 6353 if test -z "$ac_cv_prog_RANLIB"; then 6354 ac_ct_RANLIB=$RANLIB 6355 # Extract the first word of "ranlib", so it can be a program name with args. 6356 set dummy ranlib; ac_word=$2 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6358 $as_echo_n "checking for $ac_word... " >&6; } 6359 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361 else 6362 if test -n "$ac_ct_RANLIB"; then 6363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6364 else 6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6366 for as_dir in $PATH 6367 do 6368 IFS=$as_save_IFS 6369 test -z "$as_dir" && as_dir=. 6370 for ac_exec_ext in '' $ac_executable_extensions; do 6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6372 ac_cv_prog_ac_ct_RANLIB="ranlib" 6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6374 break 2 6375 fi 6376 done 6377 done 6378 IFS=$as_save_IFS 6379 6380 fi 6381 fi 6382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6383 if test -n "$ac_ct_RANLIB"; then 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6385 $as_echo "$ac_ct_RANLIB" >&6; } 6386 else 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6388 $as_echo "no" >&6; } 6389 fi 6390 6391 if test "x$ac_ct_RANLIB" = x; then 6392 RANLIB=":" 6393 else 6394 case $cross_compiling:$ac_tool_warned in 6395 yes:) 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6398 ac_tool_warned=yes ;; 6399 esac 6400 RANLIB=$ac_ct_RANLIB 6401 fi 6402 else 6403 RANLIB="$ac_cv_prog_RANLIB" 6404 fi 6405 6406 test -z "$RANLIB" && RANLIB=: 6407 6408 6409 6410 6411 6412 6413 # Determine commands to create old-style static archives. 6414 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6415 old_postinstall_cmds='chmod 644 $oldlib' 6416 old_postuninstall_cmds= 6417 6418 if test -n "$RANLIB"; then 6419 case $host_os in 6420 bitrig* | openbsd*) 6421 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6422 ;; 6423 *) 6424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6425 ;; 6426 esac 6427 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6428 fi 6429 6430 case $host_os in 6431 darwin*) 6432 lock_old_archive_extraction=yes ;; 6433 *) 6434 lock_old_archive_extraction=no ;; 6435 esac 6436 6437 6438 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 # If no C compiler was specified, use CC. 6476 LTCC=${LTCC-"$CC"} 6477 6478 # If no C compiler flags were specified, use CFLAGS. 6479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6480 6481 # Allow CC to be a program name with arguments. 6482 compiler=$CC 6483 6484 6485 # Check for command to grab the raw symbol name followed by C symbol from nm. 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6487 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6488 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490 else 6491 6492 # These are sane defaults that work on at least a few old systems. 6493 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6494 6495 # Character class describing NM global symbol codes. 6496 symcode='[BCDEGRST]' 6497 6498 # Regexp to match symbols that can be accessed directly from C. 6499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6500 6501 # Define system-specific variables. 6502 case $host_os in 6503 aix*) 6504 symcode='[BCDT]' 6505 ;; 6506 cygwin* | mingw* | pw32* | cegcc*) 6507 symcode='[ABCDGISTW]' 6508 ;; 6509 hpux*) 6510 if test ia64 = "$host_cpu"; then 6511 symcode='[ABCDEGRST]' 6512 fi 6513 ;; 6514 irix* | nonstopux*) 6515 symcode='[BCDEGRST]' 6516 ;; 6517 osf*) 6518 symcode='[BCDEGQRST]' 6519 ;; 6520 solaris*) 6521 symcode='[BDRT]' 6522 ;; 6523 sco3.2v5*) 6524 symcode='[DT]' 6525 ;; 6526 sysv4.2uw2*) 6527 symcode='[DT]' 6528 ;; 6529 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6530 symcode='[ABDT]' 6531 ;; 6532 sysv4) 6533 symcode='[DFNSTU]' 6534 ;; 6535 esac 6536 6537 # If we're using GNU nm, then use its standard symbol codes. 6538 case `$NM -V 2>&1` in 6539 *GNU* | *'with BFD'*) 6540 symcode='[ABCDGIRSTW]' ;; 6541 esac 6542 6543 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6544 # Gets list of data symbols to import. 6545 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6546 # Adjust the below global symbol transforms to fixup imported variables. 6547 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6548 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6549 lt_c_name_lib_hook="\ 6550 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6551 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6552 else 6553 # Disable hooks by default. 6554 lt_cv_sys_global_symbol_to_import= 6555 lt_cdecl_hook= 6556 lt_c_name_hook= 6557 lt_c_name_lib_hook= 6558 fi 6559 6560 # Transform an extracted symbol line into a proper C declaration. 6561 # Some systems (esp. on ia64) link data and code symbols differently, 6562 # so use this general approach. 6563 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6564 $lt_cdecl_hook\ 6565 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6566 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6567 6568 # Transform an extracted symbol line into symbol name and symbol address 6569 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6570 $lt_c_name_hook\ 6571 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6572 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6573 6574 # Transform an extracted symbol line into symbol name with lib prefix and 6575 # symbol address. 6576 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6577 $lt_c_name_lib_hook\ 6578 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6579 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6580 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6581 6582 # Handle CRLF in mingw tool chain 6583 opt_cr= 6584 case $build_os in 6585 mingw*) 6586 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6587 ;; 6588 esac 6589 6590 # Try without a prefix underscore, then with it. 6591 for ac_symprfx in "" "_"; do 6592 6593 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6594 symxfrm="\\1 $ac_symprfx\\2 \\2" 6595 6596 # Write the raw and C identifiers. 6597 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6598 # Fake it for dumpbin and say T for any non-static function, 6599 # D for any global variable and I for any imported variable. 6600 # Also find C++ and __fastcall symbols from MSVC++, 6601 # which start with @ or ?. 6602 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6603 " {last_section=section; section=\$ 3};"\ 6604 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6605 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6606 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6607 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6608 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6609 " \$ 0!~/External *\|/{next};"\ 6610 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6611 " {if(hide[section]) next};"\ 6612 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6613 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6614 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6615 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6616 " ' prfx=^$ac_symprfx" 6617 else 6618 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6619 fi 6620 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6621 6622 # Check to see that the pipe works correctly. 6623 pipe_works=no 6624 6625 rm -f conftest* 6626 cat > conftest.$ac_ext <<_LT_EOF 6627 #ifdef __cplusplus 6628 extern "C" { 6629 #endif 6630 char nm_test_var; 6631 void nm_test_func(void); 6632 void nm_test_func(void){} 6633 #ifdef __cplusplus 6634 } 6635 #endif 6636 int main(){nm_test_var='a';nm_test_func();return(0);} 6637 _LT_EOF 6638 6639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6640 (eval $ac_compile) 2>&5 6641 ac_status=$? 6642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6643 test $ac_status = 0; }; then 6644 # Now try to grab the symbols. 6645 nlist=conftest.nm 6646 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6647 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6648 # Try sorting and uniquifying the output. 6649 if sort "$nlist" | uniq > "$nlist"T; then 6650 mv -f "$nlist"T "$nlist" 6651 else 6652 rm -f "$nlist"T 6653 fi 6654 6655 # Make sure that we snagged all the symbols we need. 6656 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6657 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6658 cat <<_LT_EOF > conftest.$ac_ext 6659 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6660 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6661 /* DATA imports from DLLs on WIN32 can't be const, because runtime 6662 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6663 # define LT_DLSYM_CONST 6664 #elif defined __osf__ 6665 /* This system does not cope well with relocations in const data. */ 6666 # define LT_DLSYM_CONST 6667 #else 6668 # define LT_DLSYM_CONST const 6669 #endif 6670 6671 #ifdef __cplusplus 6672 extern "C" { 6673 #endif 6674 6675 _LT_EOF 6676 # Now generate the symbol file. 6677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6678 6679 cat <<_LT_EOF >> conftest.$ac_ext 6680 6681 /* The mapping between symbol names and symbols. */ 6682 LT_DLSYM_CONST struct { 6683 const char *name; 6684 void *address; 6685 } 6686 lt__PROGRAM__LTX_preloaded_symbols[] = 6687 { 6688 { "@PROGRAM@", (void *) 0 }, 6689 _LT_EOF 6690 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6691 cat <<\_LT_EOF >> conftest.$ac_ext 6692 {0, (void *) 0} 6693 }; 6694 6695 /* This works around a problem in FreeBSD linker */ 6696 #ifdef FREEBSD_WORKAROUND 6697 static const void *lt_preloaded_setup() { 6698 return lt__PROGRAM__LTX_preloaded_symbols; 6699 } 6700 #endif 6701 6702 #ifdef __cplusplus 6703 } 6704 #endif 6705 _LT_EOF 6706 # Now try linking the two files. 6707 mv conftest.$ac_objext conftstm.$ac_objext 6708 lt_globsym_save_LIBS=$LIBS 6709 lt_globsym_save_CFLAGS=$CFLAGS 6710 LIBS=conftstm.$ac_objext 6711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6713 (eval $ac_link) 2>&5 6714 ac_status=$? 6715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6716 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6717 pipe_works=yes 6718 fi 6719 LIBS=$lt_globsym_save_LIBS 6720 CFLAGS=$lt_globsym_save_CFLAGS 6721 else 6722 echo "cannot find nm_test_func in $nlist" >&5 6723 fi 6724 else 6725 echo "cannot find nm_test_var in $nlist" >&5 6726 fi 6727 else 6728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6729 fi 6730 else 6731 echo "$progname: failed program was:" >&5 6732 cat conftest.$ac_ext >&5 6733 fi 6734 rm -rf conftest* conftst* 6735 6736 # Do not use the global_symbol_pipe unless it works. 6737 if test yes = "$pipe_works"; then 6738 break 6739 else 6740 lt_cv_sys_global_symbol_pipe= 6741 fi 6742 done 6743 6744 fi 6745 6746 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6747 lt_cv_sys_global_symbol_to_cdecl= 6748 fi 6749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6751 $as_echo "failed" >&6; } 6752 else 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6754 $as_echo "ok" >&6; } 6755 fi 6756 6757 # Response file support. 6758 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6759 nm_file_list_spec='@' 6760 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6761 nm_file_list_spec='@' 6762 fi 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6801 $as_echo_n "checking for sysroot... " >&6; } 6802 6803 # Check whether --with-sysroot was given. 6804 if test "${with_sysroot+set}" = set; then : 6805 withval=$with_sysroot; 6806 else 6807 with_sysroot=no 6808 fi 6809 6810 6811 lt_sysroot= 6812 case $with_sysroot in #( 6813 yes) 6814 if test yes = "$GCC"; then 6815 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6816 fi 6817 ;; #( 6818 /*) 6819 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6820 ;; #( 6821 no|'') 6822 ;; #( 6823 *) 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6825 $as_echo "$with_sysroot" >&6; } 6826 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6827 ;; 6828 esac 6829 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6831 $as_echo "${lt_sysroot:-no}" >&6; } 6832 6833 6834 6835 6836 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6838 $as_echo_n "checking for a working dd... " >&6; } 6839 if ${ac_cv_path_lt_DD+:} false; then : 6840 $as_echo_n "(cached) " >&6 6841 else 6842 printf 0123456789abcdef0123456789abcdef >conftest.i 6843 cat conftest.i conftest.i >conftest2.i 6844 : ${lt_DD:=$DD} 6845 if test -z "$lt_DD"; then 6846 ac_path_lt_DD_found=false 6847 # Loop through the user's path and test for each of PROGNAME-LIST 6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6849 for as_dir in $PATH 6850 do 6851 IFS=$as_save_IFS 6852 test -z "$as_dir" && as_dir=. 6853 for ac_prog in dd; do 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6856 as_fn_executable_p "$ac_path_lt_DD" || continue 6857 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6858 cmp -s conftest.i conftest.out \ 6859 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6860 fi 6861 $ac_path_lt_DD_found && break 3 6862 done 6863 done 6864 done 6865 IFS=$as_save_IFS 6866 if test -z "$ac_cv_path_lt_DD"; then 6867 : 6868 fi 6869 else 6870 ac_cv_path_lt_DD=$lt_DD 6871 fi 6872 6873 rm -f conftest.i conftest2.i conftest.out 6874 fi 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6876 $as_echo "$ac_cv_path_lt_DD" >&6; } 6877 6878 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6880 $as_echo_n "checking how to truncate binary pipes... " >&6; } 6881 if ${lt_cv_truncate_bin+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883 else 6884 printf 0123456789abcdef0123456789abcdef >conftest.i 6885 cat conftest.i conftest.i >conftest2.i 6886 lt_cv_truncate_bin= 6887 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6888 cmp -s conftest.i conftest.out \ 6889 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6890 fi 6891 rm -f conftest.i conftest2.i conftest.out 6892 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6893 fi 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6895 $as_echo "$lt_cv_truncate_bin" >&6; } 6896 6897 6898 6899 6900 6901 6902 6903 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6904 func_cc_basename () 6905 { 6906 for cc_temp in $*""; do 6907 case $cc_temp in 6908 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6909 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6910 \-*) ;; 6911 *) break;; 6912 esac 6913 done 6914 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6915 } 6916 6917 # Check whether --enable-libtool-lock was given. 6918 if test "${enable_libtool_lock+set}" = set; then : 6919 enableval=$enable_libtool_lock; 6920 fi 6921 6922 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6923 6924 # Some flags need to be propagated to the compiler or linker for good 6925 # libtool support. 6926 case $host in 6927 ia64-*-hpux*) 6928 # Find out what ABI is being produced by ac_compile, and set mode 6929 # options accordingly. 6930 echo 'int i;' > conftest.$ac_ext 6931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6932 (eval $ac_compile) 2>&5 6933 ac_status=$? 6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6935 test $ac_status = 0; }; then 6936 case `/usr/bin/file conftest.$ac_objext` in 6937 *ELF-32*) 6938 HPUX_IA64_MODE=32 6939 ;; 6940 *ELF-64*) 6941 HPUX_IA64_MODE=64 6942 ;; 6943 esac 6944 fi 6945 rm -rf conftest* 6946 ;; 6947 *-*-irix6*) 6948 # Find out what ABI is being produced by ac_compile, and set linker 6949 # options accordingly. 6950 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6952 (eval $ac_compile) 2>&5 6953 ac_status=$? 6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6955 test $ac_status = 0; }; then 6956 if test yes = "$lt_cv_prog_gnu_ld"; then 6957 case `/usr/bin/file conftest.$ac_objext` in 6958 *32-bit*) 6959 LD="${LD-ld} -melf32bsmip" 6960 ;; 6961 *N32*) 6962 LD="${LD-ld} -melf32bmipn32" 6963 ;; 6964 *64-bit*) 6965 LD="${LD-ld} -melf64bmip" 6966 ;; 6967 esac 6968 else 6969 case `/usr/bin/file conftest.$ac_objext` in 6970 *32-bit*) 6971 LD="${LD-ld} -32" 6972 ;; 6973 *N32*) 6974 LD="${LD-ld} -n32" 6975 ;; 6976 *64-bit*) 6977 LD="${LD-ld} -64" 6978 ;; 6979 esac 6980 fi 6981 fi 6982 rm -rf conftest* 6983 ;; 6984 6985 mips64*-*linux*) 6986 # Find out what ABI is being produced by ac_compile, and set linker 6987 # options accordingly. 6988 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6990 (eval $ac_compile) 2>&5 6991 ac_status=$? 6992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6993 test $ac_status = 0; }; then 6994 emul=elf 6995 case `/usr/bin/file conftest.$ac_objext` in 6996 *32-bit*) 6997 emul="${emul}32" 6998 ;; 6999 *64-bit*) 7000 emul="${emul}64" 7001 ;; 7002 esac 7003 case `/usr/bin/file conftest.$ac_objext` in 7004 *MSB*) 7005 emul="${emul}btsmip" 7006 ;; 7007 *LSB*) 7008 emul="${emul}ltsmip" 7009 ;; 7010 esac 7011 case `/usr/bin/file conftest.$ac_objext` in 7012 *N32*) 7013 emul="${emul}n32" 7014 ;; 7015 esac 7016 LD="${LD-ld} -m $emul" 7017 fi 7018 rm -rf conftest* 7019 ;; 7020 7021 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7022 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7023 # Find out what ABI is being produced by ac_compile, and set linker 7024 # options accordingly. Note that the listed cases only cover the 7025 # situations where additional linker options are needed (such as when 7026 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7027 # vice versa); the common cases where no linker options are needed do 7028 # not appear in the list. 7029 echo 'int i;' > conftest.$ac_ext 7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7031 (eval $ac_compile) 2>&5 7032 ac_status=$? 7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7034 test $ac_status = 0; }; then 7035 case `/usr/bin/file conftest.o` in 7036 *32-bit*) 7037 case $host in 7038 x86_64-*kfreebsd*-gnu) 7039 LD="${LD-ld} -m elf_i386_fbsd" 7040 ;; 7041 x86_64-*linux*) 7042 case `/usr/bin/file conftest.o` in 7043 *x86-64*) 7044 LD="${LD-ld} -m elf32_x86_64" 7045 ;; 7046 *) 7047 LD="${LD-ld} -m elf_i386" 7048 ;; 7049 esac 7050 ;; 7051 powerpc64le-*linux*) 7052 LD="${LD-ld} -m elf32lppclinux" 7053 ;; 7054 powerpc64-*linux*) 7055 LD="${LD-ld} -m elf32ppclinux" 7056 ;; 7057 s390x-*linux*) 7058 LD="${LD-ld} -m elf_s390" 7059 ;; 7060 sparc64-*linux*) 7061 LD="${LD-ld} -m elf32_sparc" 7062 ;; 7063 esac 7064 ;; 7065 *64-bit*) 7066 case $host in 7067 x86_64-*kfreebsd*-gnu) 7068 LD="${LD-ld} -m elf_x86_64_fbsd" 7069 ;; 7070 x86_64-*linux*) 7071 LD="${LD-ld} -m elf_x86_64" 7072 ;; 7073 powerpcle-*linux*) 7074 LD="${LD-ld} -m elf64lppc" 7075 ;; 7076 powerpc-*linux*) 7077 LD="${LD-ld} -m elf64ppc" 7078 ;; 7079 s390*-*linux*|s390*-*tpf*) 7080 LD="${LD-ld} -m elf64_s390" 7081 ;; 7082 sparc*-*linux*) 7083 LD="${LD-ld} -m elf64_sparc" 7084 ;; 7085 esac 7086 ;; 7087 esac 7088 fi 7089 rm -rf conftest* 7090 ;; 7091 7092 *-*-sco3.2v5*) 7093 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7094 SAVE_CFLAGS=$CFLAGS 7095 CFLAGS="$CFLAGS -belf" 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7097 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7098 if ${lt_cv_cc_needs_belf+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100 else 7101 ac_ext=c 7102 ac_cpp='$CPP $CPPFLAGS' 7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7106 7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7108 /* end confdefs.h. */ 7109 7110 int 7111 main () 7112 { 7113 7114 ; 7115 return 0; 7116 } 7117 _ACEOF 7118 if ac_fn_c_try_link "$LINENO"; then : 7119 lt_cv_cc_needs_belf=yes 7120 else 7121 lt_cv_cc_needs_belf=no 7122 fi 7123 rm -f core conftest.err conftest.$ac_objext \ 7124 conftest$ac_exeext conftest.$ac_ext 7125 ac_ext=c 7126 ac_cpp='$CPP $CPPFLAGS' 7127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7129 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7130 7131 fi 7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7133 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7134 if test yes != "$lt_cv_cc_needs_belf"; then 7135 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7136 CFLAGS=$SAVE_CFLAGS 7137 fi 7138 ;; 7139 *-*solaris*) 7140 # Find out what ABI is being produced by ac_compile, and set linker 7141 # options accordingly. 7142 echo 'int i;' > conftest.$ac_ext 7143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7144 (eval $ac_compile) 2>&5 7145 ac_status=$? 7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7147 test $ac_status = 0; }; then 7148 case `/usr/bin/file conftest.o` in 7149 *64-bit*) 7150 case $lt_cv_prog_gnu_ld in 7151 yes*) 7152 case $host in 7153 i?86-*-solaris*|x86_64-*-solaris*) 7154 LD="${LD-ld} -m elf_x86_64" 7155 ;; 7156 sparc*-*-solaris*) 7157 LD="${LD-ld} -m elf64_sparc" 7158 ;; 7159 esac 7160 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7161 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7162 LD=${LD-ld}_sol2 7163 fi 7164 ;; 7165 *) 7166 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7167 LD="${LD-ld} -64" 7168 fi 7169 ;; 7170 esac 7171 ;; 7172 esac 7173 fi 7174 rm -rf conftest* 7175 ;; 7176 esac 7177 7178 need_locks=$enable_libtool_lock 7179 7180 if test -n "$ac_tool_prefix"; then 7181 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7182 set dummy ${ac_tool_prefix}mt; ac_word=$2 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7184 $as_echo_n "checking for $ac_word... " >&6; } 7185 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7186 $as_echo_n "(cached) " >&6 7187 else 7188 if test -n "$MANIFEST_TOOL"; then 7189 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7190 else 7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7192 for as_dir in $PATH 7193 do 7194 IFS=$as_save_IFS 7195 test -z "$as_dir" && as_dir=. 7196 for ac_exec_ext in '' $ac_executable_extensions; do 7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7198 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7200 break 2 7201 fi 7202 done 7203 done 7204 IFS=$as_save_IFS 7205 7206 fi 7207 fi 7208 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7209 if test -n "$MANIFEST_TOOL"; then 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7211 $as_echo "$MANIFEST_TOOL" >&6; } 7212 else 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7214 $as_echo "no" >&6; } 7215 fi 7216 7217 7218 fi 7219 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7220 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7221 # Extract the first word of "mt", so it can be a program name with args. 7222 set dummy mt; ac_word=$2 7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7224 $as_echo_n "checking for $ac_word... " >&6; } 7225 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227 else 7228 if test -n "$ac_ct_MANIFEST_TOOL"; then 7229 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7230 else 7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7232 for as_dir in $PATH 7233 do 7234 IFS=$as_save_IFS 7235 test -z "$as_dir" && as_dir=. 7236 for ac_exec_ext in '' $ac_executable_extensions; do 7237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7238 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7240 break 2 7241 fi 7242 done 7243 done 7244 IFS=$as_save_IFS 7245 7246 fi 7247 fi 7248 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7249 if test -n "$ac_ct_MANIFEST_TOOL"; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7251 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7252 else 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7254 $as_echo "no" >&6; } 7255 fi 7256 7257 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7258 MANIFEST_TOOL=":" 7259 else 7260 case $cross_compiling:$ac_tool_warned in 7261 yes:) 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7264 ac_tool_warned=yes ;; 7265 esac 7266 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7267 fi 7268 else 7269 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7270 fi 7271 7272 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7274 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7275 if ${lt_cv_path_mainfest_tool+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277 else 7278 lt_cv_path_mainfest_tool=no 7279 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7280 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7281 cat conftest.err >&5 7282 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7283 lt_cv_path_mainfest_tool=yes 7284 fi 7285 rm -f conftest* 7286 fi 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7288 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 7289 if test yes != "$lt_cv_path_mainfest_tool"; then 7290 MANIFEST_TOOL=: 7291 fi 7292 7293 7294 7295 7296 7297 7298 case $host_os in 7299 rhapsody* | darwin*) 7300 if test -n "$ac_tool_prefix"; then 7301 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7302 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7304 $as_echo_n "checking for $ac_word... " >&6; } 7305 if ${ac_cv_prog_DSYMUTIL+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307 else 7308 if test -n "$DSYMUTIL"; then 7309 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7310 else 7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7312 for as_dir in $PATH 7313 do 7314 IFS=$as_save_IFS 7315 test -z "$as_dir" && as_dir=. 7316 for ac_exec_ext in '' $ac_executable_extensions; do 7317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7318 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7320 break 2 7321 fi 7322 done 7323 done 7324 IFS=$as_save_IFS 7325 7326 fi 7327 fi 7328 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7329 if test -n "$DSYMUTIL"; then 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7331 $as_echo "$DSYMUTIL" >&6; } 7332 else 7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7334 $as_echo "no" >&6; } 7335 fi 7336 7337 7338 fi 7339 if test -z "$ac_cv_prog_DSYMUTIL"; then 7340 ac_ct_DSYMUTIL=$DSYMUTIL 7341 # Extract the first word of "dsymutil", so it can be a program name with args. 7342 set dummy dsymutil; ac_word=$2 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7344 $as_echo_n "checking for $ac_word... " >&6; } 7345 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7346 $as_echo_n "(cached) " >&6 7347 else 7348 if test -n "$ac_ct_DSYMUTIL"; then 7349 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7350 else 7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7352 for as_dir in $PATH 7353 do 7354 IFS=$as_save_IFS 7355 test -z "$as_dir" && as_dir=. 7356 for ac_exec_ext in '' $ac_executable_extensions; do 7357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7358 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7360 break 2 7361 fi 7362 done 7363 done 7364 IFS=$as_save_IFS 7365 7366 fi 7367 fi 7368 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7369 if test -n "$ac_ct_DSYMUTIL"; then 7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7371 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7372 else 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7374 $as_echo "no" >&6; } 7375 fi 7376 7377 if test "x$ac_ct_DSYMUTIL" = x; then 7378 DSYMUTIL=":" 7379 else 7380 case $cross_compiling:$ac_tool_warned in 7381 yes:) 7382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7384 ac_tool_warned=yes ;; 7385 esac 7386 DSYMUTIL=$ac_ct_DSYMUTIL 7387 fi 7388 else 7389 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7390 fi 7391 7392 if test -n "$ac_tool_prefix"; then 7393 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7394 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7396 $as_echo_n "checking for $ac_word... " >&6; } 7397 if ${ac_cv_prog_NMEDIT+:} false; then : 7398 $as_echo_n "(cached) " >&6 7399 else 7400 if test -n "$NMEDIT"; then 7401 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7402 else 7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404 for as_dir in $PATH 7405 do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414 done 7415 done 7416 IFS=$as_save_IFS 7417 7418 fi 7419 fi 7420 NMEDIT=$ac_cv_prog_NMEDIT 7421 if test -n "$NMEDIT"; then 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7423 $as_echo "$NMEDIT" >&6; } 7424 else 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7426 $as_echo "no" >&6; } 7427 fi 7428 7429 7430 fi 7431 if test -z "$ac_cv_prog_NMEDIT"; then 7432 ac_ct_NMEDIT=$NMEDIT 7433 # Extract the first word of "nmedit", so it can be a program name with args. 7434 set dummy nmedit; ac_word=$2 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7436 $as_echo_n "checking for $ac_word... " >&6; } 7437 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7438 $as_echo_n "(cached) " >&6 7439 else 7440 if test -n "$ac_ct_NMEDIT"; then 7441 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7442 else 7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7444 for as_dir in $PATH 7445 do 7446 IFS=$as_save_IFS 7447 test -z "$as_dir" && as_dir=. 7448 for ac_exec_ext in '' $ac_executable_extensions; do 7449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7450 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7452 break 2 7453 fi 7454 done 7455 done 7456 IFS=$as_save_IFS 7457 7458 fi 7459 fi 7460 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7461 if test -n "$ac_ct_NMEDIT"; then 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7463 $as_echo "$ac_ct_NMEDIT" >&6; } 7464 else 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7466 $as_echo "no" >&6; } 7467 fi 7468 7469 if test "x$ac_ct_NMEDIT" = x; then 7470 NMEDIT=":" 7471 else 7472 case $cross_compiling:$ac_tool_warned in 7473 yes:) 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7476 ac_tool_warned=yes ;; 7477 esac 7478 NMEDIT=$ac_ct_NMEDIT 7479 fi 7480 else 7481 NMEDIT="$ac_cv_prog_NMEDIT" 7482 fi 7483 7484 if test -n "$ac_tool_prefix"; then 7485 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7486 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7488 $as_echo_n "checking for $ac_word... " >&6; } 7489 if ${ac_cv_prog_LIPO+:} false; then : 7490 $as_echo_n "(cached) " >&6 7491 else 7492 if test -n "$LIPO"; then 7493 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7494 else 7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7496 for as_dir in $PATH 7497 do 7498 IFS=$as_save_IFS 7499 test -z "$as_dir" && as_dir=. 7500 for ac_exec_ext in '' $ac_executable_extensions; do 7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7502 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7504 break 2 7505 fi 7506 done 7507 done 7508 IFS=$as_save_IFS 7509 7510 fi 7511 fi 7512 LIPO=$ac_cv_prog_LIPO 7513 if test -n "$LIPO"; then 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7515 $as_echo "$LIPO" >&6; } 7516 else 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7518 $as_echo "no" >&6; } 7519 fi 7520 7521 7522 fi 7523 if test -z "$ac_cv_prog_LIPO"; then 7524 ac_ct_LIPO=$LIPO 7525 # Extract the first word of "lipo", so it can be a program name with args. 7526 set dummy lipo; ac_word=$2 7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7528 $as_echo_n "checking for $ac_word... " >&6; } 7529 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7530 $as_echo_n "(cached) " >&6 7531 else 7532 if test -n "$ac_ct_LIPO"; then 7533 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7534 else 7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7536 for as_dir in $PATH 7537 do 7538 IFS=$as_save_IFS 7539 test -z "$as_dir" && as_dir=. 7540 for ac_exec_ext in '' $ac_executable_extensions; do 7541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7542 ac_cv_prog_ac_ct_LIPO="lipo" 7543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7544 break 2 7545 fi 7546 done 7547 done 7548 IFS=$as_save_IFS 7549 7550 fi 7551 fi 7552 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7553 if test -n "$ac_ct_LIPO"; then 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7555 $as_echo "$ac_ct_LIPO" >&6; } 7556 else 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7558 $as_echo "no" >&6; } 7559 fi 7560 7561 if test "x$ac_ct_LIPO" = x; then 7562 LIPO=":" 7563 else 7564 case $cross_compiling:$ac_tool_warned in 7565 yes:) 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7568 ac_tool_warned=yes ;; 7569 esac 7570 LIPO=$ac_ct_LIPO 7571 fi 7572 else 7573 LIPO="$ac_cv_prog_LIPO" 7574 fi 7575 7576 if test -n "$ac_tool_prefix"; then 7577 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7578 set dummy ${ac_tool_prefix}otool; ac_word=$2 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7580 $as_echo_n "checking for $ac_word... " >&6; } 7581 if ${ac_cv_prog_OTOOL+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583 else 7584 if test -n "$OTOOL"; then 7585 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7586 else 7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7588 for as_dir in $PATH 7589 do 7590 IFS=$as_save_IFS 7591 test -z "$as_dir" && as_dir=. 7592 for ac_exec_ext in '' $ac_executable_extensions; do 7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7594 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7596 break 2 7597 fi 7598 done 7599 done 7600 IFS=$as_save_IFS 7601 7602 fi 7603 fi 7604 OTOOL=$ac_cv_prog_OTOOL 7605 if test -n "$OTOOL"; then 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7607 $as_echo "$OTOOL" >&6; } 7608 else 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7610 $as_echo "no" >&6; } 7611 fi 7612 7613 7614 fi 7615 if test -z "$ac_cv_prog_OTOOL"; then 7616 ac_ct_OTOOL=$OTOOL 7617 # Extract the first word of "otool", so it can be a program name with args. 7618 set dummy otool; ac_word=$2 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7620 $as_echo_n "checking for $ac_word... " >&6; } 7621 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7622 $as_echo_n "(cached) " >&6 7623 else 7624 if test -n "$ac_ct_OTOOL"; then 7625 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7626 else 7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7628 for as_dir in $PATH 7629 do 7630 IFS=$as_save_IFS 7631 test -z "$as_dir" && as_dir=. 7632 for ac_exec_ext in '' $ac_executable_extensions; do 7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7634 ac_cv_prog_ac_ct_OTOOL="otool" 7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7636 break 2 7637 fi 7638 done 7639 done 7640 IFS=$as_save_IFS 7641 7642 fi 7643 fi 7644 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7645 if test -n "$ac_ct_OTOOL"; then 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7647 $as_echo "$ac_ct_OTOOL" >&6; } 7648 else 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7650 $as_echo "no" >&6; } 7651 fi 7652 7653 if test "x$ac_ct_OTOOL" = x; then 7654 OTOOL=":" 7655 else 7656 case $cross_compiling:$ac_tool_warned in 7657 yes:) 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7660 ac_tool_warned=yes ;; 7661 esac 7662 OTOOL=$ac_ct_OTOOL 7663 fi 7664 else 7665 OTOOL="$ac_cv_prog_OTOOL" 7666 fi 7667 7668 if test -n "$ac_tool_prefix"; then 7669 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7670 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7672 $as_echo_n "checking for $ac_word... " >&6; } 7673 if ${ac_cv_prog_OTOOL64+:} false; then : 7674 $as_echo_n "(cached) " >&6 7675 else 7676 if test -n "$OTOOL64"; then 7677 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7678 else 7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7680 for as_dir in $PATH 7681 do 7682 IFS=$as_save_IFS 7683 test -z "$as_dir" && as_dir=. 7684 for ac_exec_ext in '' $ac_executable_extensions; do 7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7686 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7688 break 2 7689 fi 7690 done 7691 done 7692 IFS=$as_save_IFS 7693 7694 fi 7695 fi 7696 OTOOL64=$ac_cv_prog_OTOOL64 7697 if test -n "$OTOOL64"; then 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7699 $as_echo "$OTOOL64" >&6; } 7700 else 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7702 $as_echo "no" >&6; } 7703 fi 7704 7705 7706 fi 7707 if test -z "$ac_cv_prog_OTOOL64"; then 7708 ac_ct_OTOOL64=$OTOOL64 7709 # Extract the first word of "otool64", so it can be a program name with args. 7710 set dummy otool64; ac_word=$2 7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7712 $as_echo_n "checking for $ac_word... " >&6; } 7713 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715 else 7716 if test -n "$ac_ct_OTOOL64"; then 7717 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7718 else 7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7720 for as_dir in $PATH 7721 do 7722 IFS=$as_save_IFS 7723 test -z "$as_dir" && as_dir=. 7724 for ac_exec_ext in '' $ac_executable_extensions; do 7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7726 ac_cv_prog_ac_ct_OTOOL64="otool64" 7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7728 break 2 7729 fi 7730 done 7731 done 7732 IFS=$as_save_IFS 7733 7734 fi 7735 fi 7736 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7737 if test -n "$ac_ct_OTOOL64"; then 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7739 $as_echo "$ac_ct_OTOOL64" >&6; } 7740 else 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7742 $as_echo "no" >&6; } 7743 fi 7744 7745 if test "x$ac_ct_OTOOL64" = x; then 7746 OTOOL64=":" 7747 else 7748 case $cross_compiling:$ac_tool_warned in 7749 yes:) 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7752 ac_tool_warned=yes ;; 7753 esac 7754 OTOOL64=$ac_ct_OTOOL64 7755 fi 7756 else 7757 OTOOL64="$ac_cv_prog_OTOOL64" 7758 fi 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7787 $as_echo_n "checking for -single_module linker flag... " >&6; } 7788 if ${lt_cv_apple_cc_single_mod+:} false; then : 7789 $as_echo_n "(cached) " >&6 7790 else 7791 lt_cv_apple_cc_single_mod=no 7792 if test -z "$LT_MULTI_MODULE"; then 7793 # By default we will add the -single_module flag. You can override 7794 # by either setting the environment variable LT_MULTI_MODULE 7795 # non-empty at configure time, or by adding -multi_module to the 7796 # link flags. 7797 rm -rf libconftest.dylib* 7798 echo "int foo(void){return 1;}" > conftest.c 7799 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7800 -dynamiclib -Wl,-single_module conftest.c" >&5 7801 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7802 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7803 _lt_result=$? 7804 # If there is a non-empty error log, and "single_module" 7805 # appears in it, assume the flag caused a linker warning 7806 if test -s conftest.err && $GREP single_module conftest.err; then 7807 cat conftest.err >&5 7808 # Otherwise, if the output was created with a 0 exit code from 7809 # the compiler, it worked. 7810 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7811 lt_cv_apple_cc_single_mod=yes 7812 else 7813 cat conftest.err >&5 7814 fi 7815 rm -rf libconftest.dylib* 7816 rm -f conftest.* 7817 fi 7818 fi 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7820 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7821 7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7823 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7824 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7825 $as_echo_n "(cached) " >&6 7826 else 7827 lt_cv_ld_exported_symbols_list=no 7828 save_LDFLAGS=$LDFLAGS 7829 echo "_main" > conftest.sym 7830 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7832 /* end confdefs.h. */ 7833 7834 int 7835 main () 7836 { 7837 7838 ; 7839 return 0; 7840 } 7841 _ACEOF 7842 if ac_fn_c_try_link "$LINENO"; then : 7843 lt_cv_ld_exported_symbols_list=yes 7844 else 7845 lt_cv_ld_exported_symbols_list=no 7846 fi 7847 rm -f core conftest.err conftest.$ac_objext \ 7848 conftest$ac_exeext conftest.$ac_ext 7849 LDFLAGS=$save_LDFLAGS 7850 7851 fi 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7853 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7854 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7856 $as_echo_n "checking for -force_load linker flag... " >&6; } 7857 if ${lt_cv_ld_force_load+:} false; then : 7858 $as_echo_n "(cached) " >&6 7859 else 7860 lt_cv_ld_force_load=no 7861 cat > conftest.c << _LT_EOF 7862 int forced_loaded() { return 2;} 7863 _LT_EOF 7864 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7865 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7866 echo "$AR cru libconftest.a conftest.o" >&5 7867 $AR cru libconftest.a conftest.o 2>&5 7868 echo "$RANLIB libconftest.a" >&5 7869 $RANLIB libconftest.a 2>&5 7870 cat > conftest.c << _LT_EOF 7871 int main() { return 0;} 7872 _LT_EOF 7873 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7874 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7875 _lt_result=$? 7876 if test -s conftest.err && $GREP force_load conftest.err; then 7877 cat conftest.err >&5 7878 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7879 lt_cv_ld_force_load=yes 7880 else 7881 cat conftest.err >&5 7882 fi 7883 rm -f conftest.err libconftest.a conftest conftest.c 7884 rm -rf conftest.dSYM 7885 7886 fi 7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7888 $as_echo "$lt_cv_ld_force_load" >&6; } 7889 case $host_os in 7890 rhapsody* | darwin1.[012]) 7891 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7892 darwin1.*) 7893 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7894 darwin*) # darwin 5.x on 7895 # if running on 10.5 or later, the deployment target defaults 7896 # to the OS version, if on x86, and 10.4, the deployment 7897 # target defaults to 10.4. Don't you love it? 7898 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7899 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7900 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7901 10.[012][,.]*) 7902 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7903 10.*) 7904 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7905 esac 7906 ;; 7907 esac 7908 if test yes = "$lt_cv_apple_cc_single_mod"; then 7909 _lt_dar_single_mod='$single_module' 7910 fi 7911 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7912 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7913 else 7914 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7915 fi 7916 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7917 _lt_dsymutil='~$DSYMUTIL $lib || :' 7918 else 7919 _lt_dsymutil= 7920 fi 7921 ;; 7922 esac 7923 7924 # func_munge_path_list VARIABLE PATH 7925 # ----------------------------------- 7926 # VARIABLE is name of variable containing _space_ separated list of 7927 # directories to be munged by the contents of PATH, which is string 7928 # having a format: 7929 # "DIR[:DIR]:" 7930 # string "DIR[ DIR]" will be prepended to VARIABLE 7931 # ":DIR[:DIR]" 7932 # string "DIR[ DIR]" will be appended to VARIABLE 7933 # "DIRP[:DIRP]::[DIRA:]DIRA" 7934 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7935 # "DIRA[ DIRA]" will be appended to VARIABLE 7936 # "DIR[:DIR]" 7937 # VARIABLE will be replaced by "DIR[ DIR]" 7938 func_munge_path_list () 7939 { 7940 case x$2 in 7941 x) 7942 ;; 7943 *:) 7944 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7945 ;; 7946 x:*) 7947 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7948 ;; 7949 *::*) 7950 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7951 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7952 ;; 7953 *) 7954 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7955 ;; 7956 esac 7957 } 7958 7959 for ac_header in dlfcn.h 7960 do : 7961 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7962 " 7963 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7964 cat >>confdefs.h <<_ACEOF 7965 #define HAVE_DLFCN_H 1 7966 _ACEOF 7967 7968 fi 7969 7970 done 7971 7972 7973 7974 7975 7976 # Set options 7977 7978 7979 7980 enable_dlopen=no 7981 7982 7983 7984 # Check whether --enable-shared was given. 7985 if test "${enable_shared+set}" = set; then : 7986 enableval=$enable_shared; p=${PACKAGE-default} 7987 case $enableval in 7988 yes) enable_shared=yes ;; 7989 no) enable_shared=no ;; 7990 *) 7991 enable_shared=no 7992 # Look at the argument we got. We use all the common list separators. 7993 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7994 for pkg in $enableval; do 7995 IFS=$lt_save_ifs 7996 if test "X$pkg" = "X$p"; then 7997 enable_shared=yes 7998 fi 7999 done 8000 IFS=$lt_save_ifs 8001 ;; 8002 esac 8003 else 8004 enable_shared=yes 8005 fi 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 # Check whether --enable-static was given. 8016 if test "${enable_static+set}" = set; then : 8017 enableval=$enable_static; p=${PACKAGE-default} 8018 case $enableval in 8019 yes) enable_static=yes ;; 8020 no) enable_static=no ;; 8021 *) 8022 enable_static=no 8023 # Look at the argument we got. We use all the common list separators. 8024 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8025 for pkg in $enableval; do 8026 IFS=$lt_save_ifs 8027 if test "X$pkg" = "X$p"; then 8028 enable_static=yes 8029 fi 8030 done 8031 IFS=$lt_save_ifs 8032 ;; 8033 esac 8034 else 8035 enable_static=yes 8036 fi 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 # Check whether --with-pic was given. 8048 if test "${with_pic+set}" = set; then : 8049 withval=$with_pic; lt_p=${PACKAGE-default} 8050 case $withval in 8051 yes|no) pic_mode=$withval ;; 8052 *) 8053 pic_mode=default 8054 # Look at the argument we got. We use all the common list separators. 8055 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8056 for lt_pkg in $withval; do 8057 IFS=$lt_save_ifs 8058 if test "X$lt_pkg" = "X$lt_p"; then 8059 pic_mode=yes 8060 fi 8061 done 8062 IFS=$lt_save_ifs 8063 ;; 8064 esac 8065 else 8066 pic_mode=default 8067 fi 8068 8069 8070 8071 8072 8073 8074 8075 8076 # Check whether --enable-fast-install was given. 8077 if test "${enable_fast_install+set}" = set; then : 8078 enableval=$enable_fast_install; p=${PACKAGE-default} 8079 case $enableval in 8080 yes) enable_fast_install=yes ;; 8081 no) enable_fast_install=no ;; 8082 *) 8083 enable_fast_install=no 8084 # Look at the argument we got. We use all the common list separators. 8085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8086 for pkg in $enableval; do 8087 IFS=$lt_save_ifs 8088 if test "X$pkg" = "X$p"; then 8089 enable_fast_install=yes 8090 fi 8091 done 8092 IFS=$lt_save_ifs 8093 ;; 8094 esac 8095 else 8096 enable_fast_install=yes 8097 fi 8098 8099 8100 8101 8102 8103 8104 8105 8106 shared_archive_member_spec= 8107 case $host,$enable_shared in 8108 power*-*-aix[5-9]*,yes) 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8110 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8111 8112 # Check whether --with-aix-soname was given. 8113 if test "${with_aix_soname+set}" = set; then : 8114 withval=$with_aix_soname; case $withval in 8115 aix|svr4|both) 8116 ;; 8117 *) 8118 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8119 ;; 8120 esac 8121 lt_cv_with_aix_soname=$with_aix_soname 8122 else 8123 if ${lt_cv_with_aix_soname+:} false; then : 8124 $as_echo_n "(cached) " >&6 8125 else 8126 lt_cv_with_aix_soname=aix 8127 fi 8128 8129 with_aix_soname=$lt_cv_with_aix_soname 8130 fi 8131 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8133 $as_echo "$with_aix_soname" >&6; } 8134 if test aix != "$with_aix_soname"; then 8135 # For the AIX way of multilib, we name the shared archive member 8136 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8137 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8138 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8139 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8140 if test 64 = "${OBJECT_MODE-32}"; then 8141 shared_archive_member_spec=shr_64 8142 else 8143 shared_archive_member_spec=shr 8144 fi 8145 fi 8146 ;; 8147 *) 8148 with_aix_soname=aix 8149 ;; 8150 esac 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 # This can be used to rebuild libtool when needed 8162 LIBTOOL_DEPS=$ltmain 8163 8164 # Always use our own libtool. 8165 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 test -z "$LN_S" && LN_S="ln -s" 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 if test -n "${ZSH_VERSION+set}"; then 8212 setopt NO_GLOB_SUBST 8213 fi 8214 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8216 $as_echo_n "checking for objdir... " >&6; } 8217 if ${lt_cv_objdir+:} false; then : 8218 $as_echo_n "(cached) " >&6 8219 else 8220 rm -f .libs 2>/dev/null 8221 mkdir .libs 2>/dev/null 8222 if test -d .libs; then 8223 lt_cv_objdir=.libs 8224 else 8225 # MS-DOS does not allow filenames that begin with a dot. 8226 lt_cv_objdir=_libs 8227 fi 8228 rmdir .libs 2>/dev/null 8229 fi 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8231 $as_echo "$lt_cv_objdir" >&6; } 8232 objdir=$lt_cv_objdir 8233 8234 8235 8236 8237 8238 cat >>confdefs.h <<_ACEOF 8239 #define LT_OBJDIR "$lt_cv_objdir/" 8240 _ACEOF 8241 8242 8243 8244 8245 case $host_os in 8246 aix3*) 8247 # AIX sometimes has problems with the GCC collect2 program. For some 8248 # reason, if we set the COLLECT_NAMES environment variable, the problems 8249 # vanish in a puff of smoke. 8250 if test set != "${COLLECT_NAMES+set}"; then 8251 COLLECT_NAMES= 8252 export COLLECT_NAMES 8253 fi 8254 ;; 8255 esac 8256 8257 # Global variables: 8258 ofile=libtool 8259 can_build_shared=yes 8260 8261 # All known linkers require a '.a' archive for static linking (except MSVC, 8262 # which needs '.lib'). 8263 libext=a 8264 8265 with_gnu_ld=$lt_cv_prog_gnu_ld 8266 8267 old_CC=$CC 8268 old_CFLAGS=$CFLAGS 8269 8270 # Set sane defaults for various variables 8271 test -z "$CC" && CC=cc 8272 test -z "$LTCC" && LTCC=$CC 8273 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8274 test -z "$LD" && LD=ld 8275 test -z "$ac_objext" && ac_objext=o 8276 8277 func_cc_basename $compiler 8278 cc_basename=$func_cc_basename_result 8279 8280 8281 # Only perform the check for file, if the check method requires it 8282 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8283 case $deplibs_check_method in 8284 file_magic*) 8285 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8287 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8288 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8289 $as_echo_n "(cached) " >&6 8290 else 8291 case $MAGIC_CMD in 8292 [\\/*] | ?:[\\/]*) 8293 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8294 ;; 8295 *) 8296 lt_save_MAGIC_CMD=$MAGIC_CMD 8297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8298 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8299 for ac_dir in $ac_dummy; do 8300 IFS=$lt_save_ifs 8301 test -z "$ac_dir" && ac_dir=. 8302 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8303 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8304 if test -n "$file_magic_test_file"; then 8305 case $deplibs_check_method in 8306 "file_magic "*) 8307 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8308 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8309 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8310 $EGREP "$file_magic_regex" > /dev/null; then 8311 : 8312 else 8313 cat <<_LT_EOF 1>&2 8314 8315 *** Warning: the command libtool uses to detect shared libraries, 8316 *** $file_magic_cmd, produces output that libtool cannot recognize. 8317 *** The result is that libtool may fail to recognize shared libraries 8318 *** as such. This will affect the creation of libtool libraries that 8319 *** depend on shared libraries, but programs linked with such libtool 8320 *** libraries will work regardless of this problem. Nevertheless, you 8321 *** may want to report the problem to your system manager and/or to 8322 *** bug-libtool@gnu.org 8323 8324 _LT_EOF 8325 fi ;; 8326 esac 8327 fi 8328 break 8329 fi 8330 done 8331 IFS=$lt_save_ifs 8332 MAGIC_CMD=$lt_save_MAGIC_CMD 8333 ;; 8334 esac 8335 fi 8336 8337 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8338 if test -n "$MAGIC_CMD"; then 8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8340 $as_echo "$MAGIC_CMD" >&6; } 8341 else 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8343 $as_echo "no" >&6; } 8344 fi 8345 8346 8347 8348 8349 8350 if test -z "$lt_cv_path_MAGIC_CMD"; then 8351 if test -n "$ac_tool_prefix"; then 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8353 $as_echo_n "checking for file... " >&6; } 8354 if ${lt_cv_path_MAGIC_CMD+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356 else 8357 case $MAGIC_CMD in 8358 [\\/*] | ?:[\\/]*) 8359 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8360 ;; 8361 *) 8362 lt_save_MAGIC_CMD=$MAGIC_CMD 8363 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8364 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8365 for ac_dir in $ac_dummy; do 8366 IFS=$lt_save_ifs 8367 test -z "$ac_dir" && ac_dir=. 8368 if test -f "$ac_dir/file"; then 8369 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8370 if test -n "$file_magic_test_file"; then 8371 case $deplibs_check_method in 8372 "file_magic "*) 8373 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8374 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8375 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8376 $EGREP "$file_magic_regex" > /dev/null; then 8377 : 8378 else 8379 cat <<_LT_EOF 1>&2 8380 8381 *** Warning: the command libtool uses to detect shared libraries, 8382 *** $file_magic_cmd, produces output that libtool cannot recognize. 8383 *** The result is that libtool may fail to recognize shared libraries 8384 *** as such. This will affect the creation of libtool libraries that 8385 *** depend on shared libraries, but programs linked with such libtool 8386 *** libraries will work regardless of this problem. Nevertheless, you 8387 *** may want to report the problem to your system manager and/or to 8388 *** bug-libtool@gnu.org 8389 8390 _LT_EOF 8391 fi ;; 8392 esac 8393 fi 8394 break 8395 fi 8396 done 8397 IFS=$lt_save_ifs 8398 MAGIC_CMD=$lt_save_MAGIC_CMD 8399 ;; 8400 esac 8401 fi 8402 8403 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8404 if test -n "$MAGIC_CMD"; then 8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8406 $as_echo "$MAGIC_CMD" >&6; } 8407 else 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8409 $as_echo "no" >&6; } 8410 fi 8411 8412 8413 else 8414 MAGIC_CMD=: 8415 fi 8416 fi 8417 8418 fi 8419 ;; 8420 esac 8421 8422 # Use C for the default configuration in the libtool script 8423 8424 lt_save_CC=$CC 8425 ac_ext=c 8426 ac_cpp='$CPP $CPPFLAGS' 8427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8429 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8430 8431 8432 # Source file extension for C test sources. 8433 ac_ext=c 8434 8435 # Object file extension for compiled C test sources. 8436 objext=o 8437 objext=$objext 8438 8439 # Code to be used in simple compile tests 8440 lt_simple_compile_test_code="int some_variable = 0;" 8441 8442 # Code to be used in simple link tests 8443 lt_simple_link_test_code='int main(){return(0);}' 8444 8445 8446 8447 8448 8449 8450 8451 # If no C compiler was specified, use CC. 8452 LTCC=${LTCC-"$CC"} 8453 8454 # If no C compiler flags were specified, use CFLAGS. 8455 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8456 8457 # Allow CC to be a program name with arguments. 8458 compiler=$CC 8459 8460 # Save the default compiler, since it gets overwritten when the other 8461 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8462 compiler_DEFAULT=$CC 8463 8464 # save warnings/boilerplate of simple test code 8465 ac_outfile=conftest.$ac_objext 8466 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8467 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8468 _lt_compiler_boilerplate=`cat conftest.err` 8469 $RM conftest* 8470 8471 ac_outfile=conftest.$ac_objext 8472 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8473 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8474 _lt_linker_boilerplate=`cat conftest.err` 8475 $RM -r conftest* 8476 8477 8478 ## CAVEAT EMPTOR: 8479 ## There is no encapsulation within the following macros, do not change 8480 ## the running order or otherwise move them around unless you know exactly 8481 ## what you are doing... 8482 if test -n "$compiler"; then 8483 8484 lt_prog_compiler_no_builtin_flag= 8485 8486 if test yes = "$GCC"; then 8487 case $cc_basename in 8488 nvcc*) 8489 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8490 *) 8491 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8492 esac 8493 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8495 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8496 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498 else 8499 lt_cv_prog_compiler_rtti_exceptions=no 8500 ac_outfile=conftest.$ac_objext 8501 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8502 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8503 # Insert the option either (1) after the last *FLAGS variable, or 8504 # (2) before a word containing "conftest.", or (3) at the end. 8505 # Note that $ac_compile itself does not contain backslashes and begins 8506 # with a dollar sign (not a hyphen), so the echo should work correctly. 8507 # The option is referenced via a variable to avoid confusing sed. 8508 lt_compile=`echo "$ac_compile" | $SED \ 8509 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8511 -e 's:$: $lt_compiler_flag:'` 8512 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8513 (eval "$lt_compile" 2>conftest.err) 8514 ac_status=$? 8515 cat conftest.err >&5 8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8517 if (exit $ac_status) && test -s "$ac_outfile"; then 8518 # The compiler can only warn and ignore the option if not recognized 8519 # So say no if there are warnings other than the usual output. 8520 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8522 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8523 lt_cv_prog_compiler_rtti_exceptions=yes 8524 fi 8525 fi 8526 $RM conftest* 8527 8528 fi 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8530 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8531 8532 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8533 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8534 else 8535 : 8536 fi 8537 8538 fi 8539 8540 8541 8542 8543 8544 8545 lt_prog_compiler_wl= 8546 lt_prog_compiler_pic= 8547 lt_prog_compiler_static= 8548 8549 8550 if test yes = "$GCC"; then 8551 lt_prog_compiler_wl='-Wl,' 8552 lt_prog_compiler_static='-static' 8553 8554 case $host_os in 8555 aix*) 8556 # All AIX code is PIC. 8557 if test ia64 = "$host_cpu"; then 8558 # AIX 5 now supports IA64 processor 8559 lt_prog_compiler_static='-Bstatic' 8560 fi 8561 lt_prog_compiler_pic='-fPIC' 8562 ;; 8563 8564 amigaos*) 8565 case $host_cpu in 8566 powerpc) 8567 # see comment about AmigaOS4 .so support 8568 lt_prog_compiler_pic='-fPIC' 8569 ;; 8570 m68k) 8571 # FIXME: we need at least 68020 code to build shared libraries, but 8572 # adding the '-m68020' flag to GCC prevents building anything better, 8573 # like '-m68040'. 8574 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8575 ;; 8576 esac 8577 ;; 8578 8579 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8580 # PIC is the default for these OSes. 8581 ;; 8582 8583 mingw* | cygwin* | pw32* | os2* | cegcc*) 8584 # This hack is so that the source file can tell whether it is being 8585 # built for inclusion in a dll (and should export symbols for example). 8586 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8587 # (--disable-auto-import) libraries 8588 lt_prog_compiler_pic='-DDLL_EXPORT' 8589 case $host_os in 8590 os2*) 8591 lt_prog_compiler_static='$wl-static' 8592 ;; 8593 esac 8594 ;; 8595 8596 darwin* | rhapsody*) 8597 # PIC is the default on this platform 8598 # Common symbols not allowed in MH_DYLIB files 8599 lt_prog_compiler_pic='-fno-common' 8600 ;; 8601 8602 haiku*) 8603 # PIC is the default for Haiku. 8604 # The "-static" flag exists, but is broken. 8605 lt_prog_compiler_static= 8606 ;; 8607 8608 hpux*) 8609 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8610 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8611 # sets the default TLS model and affects inlining. 8612 case $host_cpu in 8613 hppa*64*) 8614 # +Z the default 8615 ;; 8616 *) 8617 lt_prog_compiler_pic='-fPIC' 8618 ;; 8619 esac 8620 ;; 8621 8622 interix[3-9]*) 8623 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8624 # Instead, we relocate shared libraries at runtime. 8625 ;; 8626 8627 msdosdjgpp*) 8628 # Just because we use GCC doesn't mean we suddenly get shared libraries 8629 # on systems that don't support them. 8630 lt_prog_compiler_can_build_shared=no 8631 enable_shared=no 8632 ;; 8633 8634 *nto* | *qnx*) 8635 # QNX uses GNU C++, but need to define -shared option too, otherwise 8636 # it will coredump. 8637 lt_prog_compiler_pic='-fPIC -shared' 8638 ;; 8639 8640 sysv4*MP*) 8641 if test -d /usr/nec; then 8642 lt_prog_compiler_pic=-Kconform_pic 8643 fi 8644 ;; 8645 8646 *) 8647 lt_prog_compiler_pic='-fPIC' 8648 ;; 8649 esac 8650 8651 case $cc_basename in 8652 nvcc*) # Cuda Compiler Driver 2.2 8653 lt_prog_compiler_wl='-Xlinker ' 8654 if test -n "$lt_prog_compiler_pic"; then 8655 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8656 fi 8657 ;; 8658 esac 8659 else 8660 # PORTME Check for flag to pass linker flags through the system compiler. 8661 case $host_os in 8662 aix*) 8663 lt_prog_compiler_wl='-Wl,' 8664 if test ia64 = "$host_cpu"; then 8665 # AIX 5 now supports IA64 processor 8666 lt_prog_compiler_static='-Bstatic' 8667 else 8668 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8669 fi 8670 ;; 8671 8672 darwin* | rhapsody*) 8673 # PIC is the default on this platform 8674 # Common symbols not allowed in MH_DYLIB files 8675 lt_prog_compiler_pic='-fno-common' 8676 case $cc_basename in 8677 nagfor*) 8678 # NAG Fortran compiler 8679 lt_prog_compiler_wl='-Wl,-Wl,,' 8680 lt_prog_compiler_pic='-PIC' 8681 lt_prog_compiler_static='-Bstatic' 8682 ;; 8683 esac 8684 ;; 8685 8686 mingw* | cygwin* | pw32* | os2* | cegcc*) 8687 # This hack is so that the source file can tell whether it is being 8688 # built for inclusion in a dll (and should export symbols for example). 8689 lt_prog_compiler_pic='-DDLL_EXPORT' 8690 case $host_os in 8691 os2*) 8692 lt_prog_compiler_static='$wl-static' 8693 ;; 8694 esac 8695 ;; 8696 8697 hpux9* | hpux10* | hpux11*) 8698 lt_prog_compiler_wl='-Wl,' 8699 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8700 # not for PA HP-UX. 8701 case $host_cpu in 8702 hppa*64*|ia64*) 8703 # +Z the default 8704 ;; 8705 *) 8706 lt_prog_compiler_pic='+Z' 8707 ;; 8708 esac 8709 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8710 lt_prog_compiler_static='$wl-a ${wl}archive' 8711 ;; 8712 8713 irix5* | irix6* | nonstopux*) 8714 lt_prog_compiler_wl='-Wl,' 8715 # PIC (with -KPIC) is the default. 8716 lt_prog_compiler_static='-non_shared' 8717 ;; 8718 8719 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8720 case $cc_basename in 8721 # old Intel for x86_64, which still supported -KPIC. 8722 ecc*) 8723 lt_prog_compiler_wl='-Wl,' 8724 lt_prog_compiler_pic='-KPIC' 8725 lt_prog_compiler_static='-static' 8726 ;; 8727 # flang / f18. f95 an alias for gfortran or flang on Debian 8728 flang* | f18* | f95*) 8729 lt_prog_compiler_wl='-Wl,' 8730 lt_prog_compiler_pic='-fPIC' 8731 lt_prog_compiler_static='-static' 8732 ;; 8733 # icc used to be incompatible with GCC. 8734 # ICC 10 doesn't accept -KPIC any more. 8735 icc* | ifort*) 8736 lt_prog_compiler_wl='-Wl,' 8737 lt_prog_compiler_pic='-fPIC' 8738 lt_prog_compiler_static='-static' 8739 ;; 8740 # Lahey Fortran 8.1. 8741 lf95*) 8742 lt_prog_compiler_wl='-Wl,' 8743 lt_prog_compiler_pic='--shared' 8744 lt_prog_compiler_static='--static' 8745 ;; 8746 nagfor*) 8747 # NAG Fortran compiler 8748 lt_prog_compiler_wl='-Wl,-Wl,,' 8749 lt_prog_compiler_pic='-PIC' 8750 lt_prog_compiler_static='-Bstatic' 8751 ;; 8752 tcc*) 8753 # Fabrice Bellard et al's Tiny C Compiler 8754 lt_prog_compiler_wl='-Wl,' 8755 lt_prog_compiler_pic='-fPIC' 8756 lt_prog_compiler_static='-static' 8757 ;; 8758 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8759 # Portland Group compilers (*not* the Pentium gcc compiler, 8760 # which looks to be a dead project) 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_pic='-fpic' 8763 lt_prog_compiler_static='-Bstatic' 8764 ;; 8765 ccc*) 8766 lt_prog_compiler_wl='-Wl,' 8767 # All Alpha code is PIC. 8768 lt_prog_compiler_static='-non_shared' 8769 ;; 8770 xl* | bgxl* | bgf* | mpixl*) 8771 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8772 lt_prog_compiler_wl='-Wl,' 8773 lt_prog_compiler_pic='-qpic' 8774 lt_prog_compiler_static='-qstaticlink' 8775 ;; 8776 *) 8777 case `$CC -V 2>&1 | sed 5q` in 8778 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8779 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8780 lt_prog_compiler_pic='-KPIC' 8781 lt_prog_compiler_static='-Bstatic' 8782 lt_prog_compiler_wl='' 8783 ;; 8784 *Sun\ F* | *Sun*Fortran*) 8785 lt_prog_compiler_pic='-KPIC' 8786 lt_prog_compiler_static='-Bstatic' 8787 lt_prog_compiler_wl='-Qoption ld ' 8788 ;; 8789 *Sun\ C*) 8790 # Sun C 5.9 8791 lt_prog_compiler_pic='-KPIC' 8792 lt_prog_compiler_static='-Bstatic' 8793 lt_prog_compiler_wl='-Wl,' 8794 ;; 8795 *Intel*\ [CF]*Compiler*) 8796 lt_prog_compiler_wl='-Wl,' 8797 lt_prog_compiler_pic='-fPIC' 8798 lt_prog_compiler_static='-static' 8799 ;; 8800 *Portland\ Group*) 8801 lt_prog_compiler_wl='-Wl,' 8802 lt_prog_compiler_pic='-fpic' 8803 lt_prog_compiler_static='-Bstatic' 8804 ;; 8805 esac 8806 ;; 8807 esac 8808 ;; 8809 8810 newsos6) 8811 lt_prog_compiler_pic='-KPIC' 8812 lt_prog_compiler_static='-Bstatic' 8813 ;; 8814 8815 *nto* | *qnx*) 8816 # QNX uses GNU C++, but need to define -shared option too, otherwise 8817 # it will coredump. 8818 lt_prog_compiler_pic='-fPIC -shared' 8819 ;; 8820 8821 osf3* | osf4* | osf5*) 8822 lt_prog_compiler_wl='-Wl,' 8823 # All OSF/1 code is PIC. 8824 lt_prog_compiler_static='-non_shared' 8825 ;; 8826 8827 rdos*) 8828 lt_prog_compiler_static='-non_shared' 8829 ;; 8830 8831 solaris*) 8832 lt_prog_compiler_pic='-KPIC' 8833 lt_prog_compiler_static='-Bstatic' 8834 case $cc_basename in 8835 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8836 lt_prog_compiler_wl='-Qoption ld ';; 8837 *) 8838 lt_prog_compiler_wl='-Wl,';; 8839 esac 8840 ;; 8841 8842 sunos4*) 8843 lt_prog_compiler_wl='-Qoption ld ' 8844 lt_prog_compiler_pic='-PIC' 8845 lt_prog_compiler_static='-Bstatic' 8846 ;; 8847 8848 sysv4 | sysv4.2uw2* | sysv4.3*) 8849 lt_prog_compiler_wl='-Wl,' 8850 lt_prog_compiler_pic='-KPIC' 8851 lt_prog_compiler_static='-Bstatic' 8852 ;; 8853 8854 sysv4*MP*) 8855 if test -d /usr/nec; then 8856 lt_prog_compiler_pic='-Kconform_pic' 8857 lt_prog_compiler_static='-Bstatic' 8858 fi 8859 ;; 8860 8861 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8862 lt_prog_compiler_wl='-Wl,' 8863 lt_prog_compiler_pic='-KPIC' 8864 lt_prog_compiler_static='-Bstatic' 8865 ;; 8866 8867 unicos*) 8868 lt_prog_compiler_wl='-Wl,' 8869 lt_prog_compiler_can_build_shared=no 8870 ;; 8871 8872 uts4*) 8873 lt_prog_compiler_pic='-pic' 8874 lt_prog_compiler_static='-Bstatic' 8875 ;; 8876 8877 *) 8878 lt_prog_compiler_can_build_shared=no 8879 ;; 8880 esac 8881 fi 8882 8883 case $host_os in 8884 # For platforms that do not support PIC, -DPIC is meaningless: 8885 *djgpp*) 8886 lt_prog_compiler_pic= 8887 ;; 8888 *) 8889 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8890 ;; 8891 esac 8892 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8894 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8895 if ${lt_cv_prog_compiler_pic+:} false; then : 8896 $as_echo_n "(cached) " >&6 8897 else 8898 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8899 fi 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8901 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8902 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8903 8904 # 8905 # Check to make sure the PIC flag actually works. 8906 # 8907 if test -n "$lt_prog_compiler_pic"; then 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8909 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8910 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8911 $as_echo_n "(cached) " >&6 8912 else 8913 lt_cv_prog_compiler_pic_works=no 8914 ac_outfile=conftest.$ac_objext 8915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8916 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8917 # Insert the option either (1) after the last *FLAGS variable, or 8918 # (2) before a word containing "conftest.", or (3) at the end. 8919 # Note that $ac_compile itself does not contain backslashes and begins 8920 # with a dollar sign (not a hyphen), so the echo should work correctly. 8921 # The option is referenced via a variable to avoid confusing sed. 8922 lt_compile=`echo "$ac_compile" | $SED \ 8923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8925 -e 's:$: $lt_compiler_flag:'` 8926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8927 (eval "$lt_compile" 2>conftest.err) 8928 ac_status=$? 8929 cat conftest.err >&5 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 if (exit $ac_status) && test -s "$ac_outfile"; then 8932 # The compiler can only warn and ignore the option if not recognized 8933 # So say no if there are warnings other than the usual output. 8934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8937 lt_cv_prog_compiler_pic_works=yes 8938 fi 8939 fi 8940 $RM conftest* 8941 8942 fi 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8944 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8945 8946 if test yes = "$lt_cv_prog_compiler_pic_works"; then 8947 case $lt_prog_compiler_pic in 8948 "" | " "*) ;; 8949 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8950 esac 8951 else 8952 lt_prog_compiler_pic= 8953 lt_prog_compiler_can_build_shared=no 8954 fi 8955 8956 fi 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 # 8969 # Check to make sure the static flag actually works. 8970 # 8971 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8973 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8974 if ${lt_cv_prog_compiler_static_works+:} false; then : 8975 $as_echo_n "(cached) " >&6 8976 else 8977 lt_cv_prog_compiler_static_works=no 8978 save_LDFLAGS=$LDFLAGS 8979 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8980 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8981 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8982 # The linker can only warn and ignore the option if not recognized 8983 # So say no if there are warnings 8984 if test -s conftest.err; then 8985 # Append any errors to the config.log. 8986 cat conftest.err 1>&5 8987 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8988 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8989 if diff conftest.exp conftest.er2 >/dev/null; then 8990 lt_cv_prog_compiler_static_works=yes 8991 fi 8992 else 8993 lt_cv_prog_compiler_static_works=yes 8994 fi 8995 fi 8996 $RM -r conftest* 8997 LDFLAGS=$save_LDFLAGS 8998 8999 fi 9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9001 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9002 9003 if test yes = "$lt_cv_prog_compiler_static_works"; then 9004 : 9005 else 9006 lt_prog_compiler_static= 9007 fi 9008 9009 9010 9011 9012 9013 9014 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9017 if ${lt_cv_prog_compiler_c_o+:} false; then : 9018 $as_echo_n "(cached) " >&6 9019 else 9020 lt_cv_prog_compiler_c_o=no 9021 $RM -r conftest 2>/dev/null 9022 mkdir conftest 9023 cd conftest 9024 mkdir out 9025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9026 9027 lt_compiler_flag="-o out/conftest2.$ac_objext" 9028 # Insert the option either (1) after the last *FLAGS variable, or 9029 # (2) before a word containing "conftest.", or (3) at the end. 9030 # Note that $ac_compile itself does not contain backslashes and begins 9031 # with a dollar sign (not a hyphen), so the echo should work correctly. 9032 lt_compile=`echo "$ac_compile" | $SED \ 9033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9035 -e 's:$: $lt_compiler_flag:'` 9036 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9037 (eval "$lt_compile" 2>out/conftest.err) 9038 ac_status=$? 9039 cat out/conftest.err >&5 9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9041 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9042 then 9043 # The compiler can only warn and ignore the option if not recognized 9044 # So say no if there are warnings 9045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9048 lt_cv_prog_compiler_c_o=yes 9049 fi 9050 fi 9051 chmod u+w . 2>&5 9052 $RM conftest* 9053 # SGI C++ compiler will create directory out/ii_files/ for 9054 # template instantiation 9055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9056 $RM out/* && rmdir out 9057 cd .. 9058 $RM -r conftest 9059 $RM conftest* 9060 9061 fi 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9063 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9064 9065 9066 9067 9068 9069 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9072 if ${lt_cv_prog_compiler_c_o+:} false; then : 9073 $as_echo_n "(cached) " >&6 9074 else 9075 lt_cv_prog_compiler_c_o=no 9076 $RM -r conftest 2>/dev/null 9077 mkdir conftest 9078 cd conftest 9079 mkdir out 9080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9081 9082 lt_compiler_flag="-o out/conftest2.$ac_objext" 9083 # Insert the option either (1) after the last *FLAGS variable, or 9084 # (2) before a word containing "conftest.", or (3) at the end. 9085 # Note that $ac_compile itself does not contain backslashes and begins 9086 # with a dollar sign (not a hyphen), so the echo should work correctly. 9087 lt_compile=`echo "$ac_compile" | $SED \ 9088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9090 -e 's:$: $lt_compiler_flag:'` 9091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9092 (eval "$lt_compile" 2>out/conftest.err) 9093 ac_status=$? 9094 cat out/conftest.err >&5 9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9096 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9097 then 9098 # The compiler can only warn and ignore the option if not recognized 9099 # So say no if there are warnings 9100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9103 lt_cv_prog_compiler_c_o=yes 9104 fi 9105 fi 9106 chmod u+w . 2>&5 9107 $RM conftest* 9108 # SGI C++ compiler will create directory out/ii_files/ for 9109 # template instantiation 9110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9111 $RM out/* && rmdir out 9112 cd .. 9113 $RM -r conftest 9114 $RM conftest* 9115 9116 fi 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9119 9120 9121 9122 9123 hard_links=nottested 9124 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9125 # do not overwrite the value of need_locks provided by the user 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9127 $as_echo_n "checking if we can lock with hard links... " >&6; } 9128 hard_links=yes 9129 $RM conftest* 9130 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9131 touch conftest.a 9132 ln conftest.a conftest.b 2>&5 || hard_links=no 9133 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9135 $as_echo "$hard_links" >&6; } 9136 if test no = "$hard_links"; then 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9138 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9139 need_locks=warn 9140 fi 9141 else 9142 need_locks=no 9143 fi 9144 9145 9146 9147 9148 9149 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9151 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9152 9153 runpath_var= 9154 allow_undefined_flag= 9155 always_export_symbols=no 9156 archive_cmds= 9157 archive_expsym_cmds= 9158 compiler_needs_object=no 9159 enable_shared_with_static_runtimes=no 9160 export_dynamic_flag_spec= 9161 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9162 hardcode_automatic=no 9163 hardcode_direct=no 9164 hardcode_direct_absolute=no 9165 hardcode_libdir_flag_spec= 9166 hardcode_libdir_separator= 9167 hardcode_minus_L=no 9168 hardcode_shlibpath_var=unsupported 9169 inherit_rpath=no 9170 link_all_deplibs=unknown 9171 module_cmds= 9172 module_expsym_cmds= 9173 old_archive_from_new_cmds= 9174 old_archive_from_expsyms_cmds= 9175 thread_safe_flag_spec= 9176 whole_archive_flag_spec= 9177 # include_expsyms should be a list of space-separated symbols to be *always* 9178 # included in the symbol list 9179 include_expsyms= 9180 # exclude_expsyms can be an extended regexp of symbols to exclude 9181 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9182 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9183 # as well as any symbol that contains 'd'. 9184 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9185 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9186 # platforms (ab)use it in PIC code, but their linkers get confused if 9187 # the symbol is explicitly referenced. Since portable code cannot 9188 # rely on this symbol name, it's probably fine to never include it in 9189 # preloaded symbol tables. 9190 # Exclude shared library initialization/finalization symbols. 9191 extract_expsyms_cmds= 9192 9193 case $host_os in 9194 cygwin* | mingw* | pw32* | cegcc*) 9195 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9196 # When not using gcc, we currently assume that we are using 9197 # Microsoft Visual C++. 9198 if test yes != "$GCC"; then 9199 with_gnu_ld=no 9200 fi 9201 ;; 9202 interix*) 9203 # we just hope/assume this is gcc and not c89 (= MSVC++) 9204 with_gnu_ld=yes 9205 ;; 9206 openbsd* | bitrig*) 9207 with_gnu_ld=no 9208 ;; 9209 linux* | k*bsd*-gnu | gnu*) 9210 link_all_deplibs=no 9211 ;; 9212 esac 9213 9214 ld_shlibs=yes 9215 9216 # On some targets, GNU ld is compatible enough with the native linker 9217 # that we're better off using the native interface for both. 9218 lt_use_gnu_ld_interface=no 9219 if test yes = "$with_gnu_ld"; then 9220 case $host_os in 9221 aix*) 9222 # The AIX port of GNU ld has always aspired to compatibility 9223 # with the native linker. However, as the warning in the GNU ld 9224 # block says, versions before 2.19.5* couldn't really create working 9225 # shared libraries, regardless of the interface used. 9226 case `$LD -v 2>&1` in 9227 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9228 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9229 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9230 *) 9231 lt_use_gnu_ld_interface=yes 9232 ;; 9233 esac 9234 ;; 9235 *) 9236 lt_use_gnu_ld_interface=yes 9237 ;; 9238 esac 9239 fi 9240 9241 if test yes = "$lt_use_gnu_ld_interface"; then 9242 # If archive_cmds runs LD, not CC, wlarc should be empty 9243 wlarc='$wl' 9244 9245 # Set some defaults for GNU ld with shared library support. These 9246 # are reset later if shared libraries are not supported. Putting them 9247 # here allows them to be overridden if necessary. 9248 runpath_var=LD_RUN_PATH 9249 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9250 export_dynamic_flag_spec='$wl--export-dynamic' 9251 # ancient GNU ld didn't support --whole-archive et. al. 9252 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9253 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9254 else 9255 whole_archive_flag_spec= 9256 fi 9257 supports_anon_versioning=no 9258 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9259 *GNU\ gold*) supports_anon_versioning=yes ;; 9260 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9261 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9262 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9263 *\ 2.11.*) ;; # other 2.11 versions 9264 *) supports_anon_versioning=yes ;; 9265 esac 9266 9267 # See if GNU ld supports shared libraries. 9268 case $host_os in 9269 aix[3-9]*) 9270 # On AIX/PPC, the GNU linker is very broken 9271 if test ia64 != "$host_cpu"; then 9272 ld_shlibs=no 9273 cat <<_LT_EOF 1>&2 9274 9275 *** Warning: the GNU linker, at least up to release 2.19, is reported 9276 *** to be unable to reliably create shared libraries on AIX. 9277 *** Therefore, libtool is disabling shared libraries support. If you 9278 *** really care for shared libraries, you may want to install binutils 9279 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9280 *** You will then need to restart the configuration process. 9281 9282 _LT_EOF 9283 fi 9284 ;; 9285 9286 amigaos*) 9287 case $host_cpu in 9288 powerpc) 9289 # see comment about AmigaOS4 .so support 9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9291 archive_expsym_cmds='' 9292 ;; 9293 m68k) 9294 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)' 9295 hardcode_libdir_flag_spec='-L$libdir' 9296 hardcode_minus_L=yes 9297 ;; 9298 esac 9299 ;; 9300 9301 beos*) 9302 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9303 allow_undefined_flag=unsupported 9304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9305 # support --undefined. This deserves some investigation. FIXME 9306 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9307 else 9308 ld_shlibs=no 9309 fi 9310 ;; 9311 9312 cygwin* | mingw* | pw32* | cegcc*) 9313 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9314 # as there is no search path for DLLs. 9315 hardcode_libdir_flag_spec='-L$libdir' 9316 export_dynamic_flag_spec='$wl--export-all-symbols' 9317 allow_undefined_flag=unsupported 9318 always_export_symbols=no 9319 enable_shared_with_static_runtimes=yes 9320 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' 9321 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9322 9323 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9325 # If the export-symbols file already is a .def file, use it as 9326 # is; otherwise, prepend EXPORTS... 9327 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9328 cp $export_symbols $output_objdir/$soname.def; 9329 else 9330 echo EXPORTS > $output_objdir/$soname.def; 9331 cat $export_symbols >> $output_objdir/$soname.def; 9332 fi~ 9333 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9334 else 9335 ld_shlibs=no 9336 fi 9337 ;; 9338 9339 haiku*) 9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9341 link_all_deplibs=yes 9342 ;; 9343 9344 os2*) 9345 hardcode_libdir_flag_spec='-L$libdir' 9346 hardcode_minus_L=yes 9347 allow_undefined_flag=unsupported 9348 shrext_cmds=.dll 9349 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9350 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9351 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9352 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9353 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9354 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9355 emximp -o $lib $output_objdir/$libname.def' 9356 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9357 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9358 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9359 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9360 prefix_cmds="$SED"~ 9361 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9362 prefix_cmds="$prefix_cmds -e 1d"; 9363 fi~ 9364 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9365 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9366 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9367 emximp -o $lib $output_objdir/$libname.def' 9368 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9369 enable_shared_with_static_runtimes=yes 9370 ;; 9371 9372 interix[3-9]*) 9373 hardcode_direct=no 9374 hardcode_shlibpath_var=no 9375 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9376 export_dynamic_flag_spec='$wl-E' 9377 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9378 # Instead, shared libraries are loaded at an image base (0x10000000 by 9379 # default) and relocated if they conflict, which is a slow very memory 9380 # consuming and fragmenting process. To avoid this, we pick a random, 9381 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9382 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9383 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9384 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' 9385 ;; 9386 9387 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9388 tmp_diet=no 9389 if test linux-dietlibc = "$host_os"; then 9390 case $cc_basename in 9391 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9392 esac 9393 fi 9394 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9395 && test no = "$tmp_diet" 9396 then 9397 tmp_addflag=' $pic_flag' 9398 tmp_sharedflag='-shared' 9399 case $cc_basename,$host_cpu in 9400 pgcc*) # Portland Group C compiler 9401 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' 9402 tmp_addflag=' $pic_flag' 9403 ;; 9404 pgf77* | pgf90* | pgf95* | pgfortran*) 9405 # Portland Group f77 and f90 compilers 9406 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' 9407 tmp_addflag=' $pic_flag -Mnomain' ;; 9408 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9409 tmp_addflag=' -i_dynamic' ;; 9410 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9411 tmp_addflag=' -i_dynamic -nofor_main' ;; 9412 ifc* | ifort*) # Intel Fortran compiler 9413 tmp_addflag=' -nofor_main' ;; 9414 lf95*) # Lahey Fortran 8.1 9415 whole_archive_flag_spec= 9416 tmp_sharedflag='--shared' ;; 9417 nagfor*) # NAGFOR 5.3 9418 tmp_sharedflag='-Wl,-shared' ;; 9419 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9420 tmp_sharedflag='-qmkshrobj' 9421 tmp_addflag= ;; 9422 nvcc*) # Cuda Compiler Driver 2.2 9423 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' 9424 compiler_needs_object=yes 9425 ;; 9426 esac 9427 case `$CC -V 2>&1 | sed 5q` in 9428 *Sun\ C*) # Sun C 5.9 9429 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' 9430 compiler_needs_object=yes 9431 tmp_sharedflag='-G' ;; 9432 *Sun\ F*) # Sun Fortran 8.3 9433 tmp_sharedflag='-G' ;; 9434 esac 9435 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9436 9437 if test yes = "$supports_anon_versioning"; then 9438 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9440 echo "local: *; };" >> $output_objdir/$libname.ver~ 9441 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9442 fi 9443 9444 case $cc_basename in 9445 tcc*) 9446 export_dynamic_flag_spec='-rdynamic' 9447 ;; 9448 xlf* | bgf* | bgxlf* | mpixlf*) 9449 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9450 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9451 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9452 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9453 if test yes = "$supports_anon_versioning"; then 9454 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9456 echo "local: *; };" >> $output_objdir/$libname.ver~ 9457 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9458 fi 9459 ;; 9460 esac 9461 else 9462 ld_shlibs=no 9463 fi 9464 ;; 9465 9466 netbsd* | netbsdelf*-gnu) 9467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9468 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9469 wlarc= 9470 else 9471 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9472 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9473 fi 9474 ;; 9475 9476 solaris*) 9477 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9478 ld_shlibs=no 9479 cat <<_LT_EOF 1>&2 9480 9481 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9482 *** create shared libraries on Solaris systems. Therefore, libtool 9483 *** is disabling shared libraries support. We urge you to upgrade GNU 9484 *** binutils to release 2.9.1 or newer. Another option is to modify 9485 *** your PATH or compiler configuration so that the native linker is 9486 *** used, and then restart. 9487 9488 _LT_EOF 9489 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9490 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9491 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9492 else 9493 ld_shlibs=no 9494 fi 9495 ;; 9496 9497 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9498 case `$LD -v 2>&1` in 9499 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9500 ld_shlibs=no 9501 cat <<_LT_EOF 1>&2 9502 9503 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9504 *** reliably create shared libraries on SCO systems. Therefore, libtool 9505 *** is disabling shared libraries support. We urge you to upgrade GNU 9506 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9507 *** your PATH or compiler configuration so that the native linker is 9508 *** used, and then restart. 9509 9510 _LT_EOF 9511 ;; 9512 *) 9513 # For security reasons, it is highly recommended that you always 9514 # use absolute paths for naming shared libraries, and exclude the 9515 # DT_RUNPATH tag from executables and libraries. But doing so 9516 # requires that you compile everything twice, which is a pain. 9517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9518 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9519 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9520 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9521 else 9522 ld_shlibs=no 9523 fi 9524 ;; 9525 esac 9526 ;; 9527 9528 sunos4*) 9529 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9530 wlarc= 9531 hardcode_direct=yes 9532 hardcode_shlibpath_var=no 9533 ;; 9534 9535 *) 9536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9537 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9538 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9539 else 9540 ld_shlibs=no 9541 fi 9542 ;; 9543 esac 9544 9545 if test no = "$ld_shlibs"; then 9546 runpath_var= 9547 hardcode_libdir_flag_spec= 9548 export_dynamic_flag_spec= 9549 whole_archive_flag_spec= 9550 fi 9551 else 9552 # PORTME fill in a description of your system's linker (not GNU ld) 9553 case $host_os in 9554 aix3*) 9555 allow_undefined_flag=unsupported 9556 always_export_symbols=yes 9557 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' 9558 # Note: this linker hardcodes the directories in LIBPATH if there 9559 # are no directories specified by -L. 9560 hardcode_minus_L=yes 9561 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9562 # Neither direct hardcoding nor static linking is supported with a 9563 # broken collect2. 9564 hardcode_direct=unsupported 9565 fi 9566 ;; 9567 9568 aix[4-9]*) 9569 if test ia64 = "$host_cpu"; then 9570 # On IA64, the linker does run time linking by default, so we don't 9571 # have to do anything special. 9572 aix_use_runtimelinking=no 9573 exp_sym_flag='-Bexport' 9574 no_entry_flag= 9575 else 9576 # If we're using GNU nm, then we don't want the "-C" option. 9577 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9578 # Without the "-l" option, or with the "-B" option, AIX nm treats 9579 # weak defined symbols like other global defined symbols, whereas 9580 # GNU nm marks them as "W". 9581 # While the 'weak' keyword is ignored in the Export File, we need 9582 # it in the Import File for the 'aix-soname' feature, so we have 9583 # to replace the "-B" option with "-P" for AIX nm. 9584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9585 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' 9586 else 9587 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' 9588 fi 9589 aix_use_runtimelinking=no 9590 9591 # Test if we are trying to use run time linking or normal 9592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9593 # have runtime linking enabled, and use it for executables. 9594 # For shared libraries, we enable/disable runtime linking 9595 # depending on the kind of the shared library created - 9596 # when "with_aix_soname,aix_use_runtimelinking" is: 9597 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9598 # "aix,yes" lib.so shared, rtl:yes, for executables 9599 # lib.a static archive 9600 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9601 # lib.a(lib.so.V) shared, rtl:no, for executables 9602 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9603 # lib.a(lib.so.V) shared, rtl:no 9604 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9605 # lib.a static archive 9606 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9607 for ld_flag in $LDFLAGS; do 9608 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9609 aix_use_runtimelinking=yes 9610 break 9611 fi 9612 done 9613 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9614 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9615 # so we don't have lib.a shared libs to link our executables. 9616 # We have to force runtime linking in this case. 9617 aix_use_runtimelinking=yes 9618 LDFLAGS="$LDFLAGS -Wl,-brtl" 9619 fi 9620 ;; 9621 esac 9622 9623 exp_sym_flag='-bexport' 9624 no_entry_flag='-bnoentry' 9625 fi 9626 9627 # When large executables or shared objects are built, AIX ld can 9628 # have problems creating the table of contents. If linking a library 9629 # or program results in "error TOC overflow" add -mminimal-toc to 9630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9632 9633 archive_cmds='' 9634 hardcode_direct=yes 9635 hardcode_direct_absolute=yes 9636 hardcode_libdir_separator=':' 9637 link_all_deplibs=yes 9638 file_list_spec='$wl-f,' 9639 case $with_aix_soname,$aix_use_runtimelinking in 9640 aix,*) ;; # traditional, no import file 9641 svr4,* | *,yes) # use import file 9642 # The Import File defines what to hardcode. 9643 hardcode_direct=no 9644 hardcode_direct_absolute=no 9645 ;; 9646 esac 9647 9648 if test yes = "$GCC"; then 9649 case $host_os in aix4.[012]|aix4.[012].*) 9650 # We only want to do this on AIX 4.2 and lower, the check 9651 # below for broken collect2 doesn't work under 4.3+ 9652 collect2name=`$CC -print-prog-name=collect2` 9653 if test -f "$collect2name" && 9654 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9655 then 9656 # We have reworked collect2 9657 : 9658 else 9659 # We have old collect2 9660 hardcode_direct=unsupported 9661 # It fails to find uninstalled libraries when the uninstalled 9662 # path is not listed in the libpath. Setting hardcode_minus_L 9663 # to unsupported forces relinking 9664 hardcode_minus_L=yes 9665 hardcode_libdir_flag_spec='-L$libdir' 9666 hardcode_libdir_separator= 9667 fi 9668 ;; 9669 esac 9670 shared_flag='-shared' 9671 if test yes = "$aix_use_runtimelinking"; then 9672 shared_flag="$shared_flag "'$wl-G' 9673 fi 9674 # Need to ensure runtime linking is disabled for the traditional 9675 # shared library, or the linker may eventually find shared libraries 9676 # /with/ Import File - we do not want to mix them. 9677 shared_flag_aix='-shared' 9678 shared_flag_svr4='-shared $wl-G' 9679 else 9680 # not using gcc 9681 if test ia64 = "$host_cpu"; then 9682 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9683 # chokes on -Wl,-G. The following line is correct: 9684 shared_flag='-G' 9685 else 9686 if test yes = "$aix_use_runtimelinking"; then 9687 shared_flag='$wl-G' 9688 else 9689 shared_flag='$wl-bM:SRE' 9690 fi 9691 shared_flag_aix='$wl-bM:SRE' 9692 shared_flag_svr4='$wl-G' 9693 fi 9694 fi 9695 9696 export_dynamic_flag_spec='$wl-bexpall' 9697 # It seems that -bexpall does not export symbols beginning with 9698 # underscore (_), so it is better to generate a list of symbols to export. 9699 always_export_symbols=yes 9700 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9701 # Warning - without using the other runtime loading flags (-brtl), 9702 # -berok will link without error, but may produce a broken library. 9703 allow_undefined_flag='-berok' 9704 # Determine the default libpath from the value encoded in an 9705 # empty executable. 9706 if test set = "${lt_cv_aix_libpath+set}"; then 9707 aix_libpath=$lt_cv_aix_libpath 9708 else 9709 if ${lt_cv_aix_libpath_+:} false; then : 9710 $as_echo_n "(cached) " >&6 9711 else 9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9713 /* end confdefs.h. */ 9714 9715 int 9716 main () 9717 { 9718 9719 ; 9720 return 0; 9721 } 9722 _ACEOF 9723 if ac_fn_c_try_link "$LINENO"; then : 9724 9725 lt_aix_libpath_sed=' 9726 /Import File Strings/,/^$/ { 9727 /^0/ { 9728 s/^0 *\([^ ]*\) *$/\1/ 9729 p 9730 } 9731 }' 9732 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9733 # Check for a 64-bit object if we didn't find anything. 9734 if test -z "$lt_cv_aix_libpath_"; then 9735 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9736 fi 9737 fi 9738 rm -f core conftest.err conftest.$ac_objext \ 9739 conftest$ac_exeext conftest.$ac_ext 9740 if test -z "$lt_cv_aix_libpath_"; then 9741 lt_cv_aix_libpath_=/usr/lib:/lib 9742 fi 9743 9744 fi 9745 9746 aix_libpath=$lt_cv_aix_libpath_ 9747 fi 9748 9749 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9750 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 9751 else 9752 if test ia64 = "$host_cpu"; then 9753 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9754 allow_undefined_flag="-z nodefs" 9755 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" 9756 else 9757 # Determine the default libpath from the value encoded in an 9758 # empty executable. 9759 if test set = "${lt_cv_aix_libpath+set}"; then 9760 aix_libpath=$lt_cv_aix_libpath 9761 else 9762 if ${lt_cv_aix_libpath_+:} false; then : 9763 $as_echo_n "(cached) " >&6 9764 else 9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9766 /* end confdefs.h. */ 9767 9768 int 9769 main () 9770 { 9771 9772 ; 9773 return 0; 9774 } 9775 _ACEOF 9776 if ac_fn_c_try_link "$LINENO"; then : 9777 9778 lt_aix_libpath_sed=' 9779 /Import File Strings/,/^$/ { 9780 /^0/ { 9781 s/^0 *\([^ ]*\) *$/\1/ 9782 p 9783 } 9784 }' 9785 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9786 # Check for a 64-bit object if we didn't find anything. 9787 if test -z "$lt_cv_aix_libpath_"; then 9788 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9789 fi 9790 fi 9791 rm -f core conftest.err conftest.$ac_objext \ 9792 conftest$ac_exeext conftest.$ac_ext 9793 if test -z "$lt_cv_aix_libpath_"; then 9794 lt_cv_aix_libpath_=/usr/lib:/lib 9795 fi 9796 9797 fi 9798 9799 aix_libpath=$lt_cv_aix_libpath_ 9800 fi 9801 9802 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9803 # Warning - without using the other run time loading flags, 9804 # -berok will link without error, but may produce a broken library. 9805 no_undefined_flag=' $wl-bernotok' 9806 allow_undefined_flag=' $wl-berok' 9807 if test yes = "$with_gnu_ld"; then 9808 # We only use this code for GNU lds that support --whole-archive. 9809 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9810 else 9811 # Exported symbols can be pulled into shared objects from archives 9812 whole_archive_flag_spec='$convenience' 9813 fi 9814 archive_cmds_need_lc=yes 9815 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9816 # -brtl affects multiple linker settings, -berok does not and is overridden later 9817 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9818 if test svr4 != "$with_aix_soname"; then 9819 # This is similar to how AIX traditionally builds its shared libraries. 9820 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' 9821 fi 9822 if test aix != "$with_aix_soname"; then 9823 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' 9824 else 9825 # used by -dlpreopen to get the symbols 9826 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9827 fi 9828 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9829 fi 9830 fi 9831 ;; 9832 9833 amigaos*) 9834 case $host_cpu in 9835 powerpc) 9836 # see comment about AmigaOS4 .so support 9837 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9838 archive_expsym_cmds='' 9839 ;; 9840 m68k) 9841 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)' 9842 hardcode_libdir_flag_spec='-L$libdir' 9843 hardcode_minus_L=yes 9844 ;; 9845 esac 9846 ;; 9847 9848 bsdi[45]*) 9849 export_dynamic_flag_spec=-rdynamic 9850 ;; 9851 9852 cygwin* | mingw* | pw32* | cegcc*) 9853 # When not using gcc, we currently assume that we are using 9854 # Microsoft Visual C++. 9855 # hardcode_libdir_flag_spec is actually meaningless, as there is 9856 # no search path for DLLs. 9857 case $cc_basename in 9858 cl*) 9859 # Native MSVC 9860 hardcode_libdir_flag_spec=' ' 9861 allow_undefined_flag=unsupported 9862 always_export_symbols=yes 9863 file_list_spec='@' 9864 # Tell ltmain to make .lib files, not .a files. 9865 libext=lib 9866 # Tell ltmain to make .dll files, not .so files. 9867 shrext_cmds=.dll 9868 # FIXME: Setting linknames here is a bad hack. 9869 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9870 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9871 cp "$export_symbols" "$output_objdir/$soname.def"; 9872 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9873 else 9874 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9875 fi~ 9876 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9877 linknames=' 9878 # The linker will not automatically build a static lib if we build a DLL. 9879 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9880 enable_shared_with_static_runtimes=yes 9881 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9883 # Don't use ranlib 9884 old_postinstall_cmds='chmod 644 $oldlib' 9885 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9886 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9887 case $lt_outputfile in 9888 *.exe|*.EXE) ;; 9889 *) 9890 lt_outputfile=$lt_outputfile.exe 9891 lt_tool_outputfile=$lt_tool_outputfile.exe 9892 ;; 9893 esac~ 9894 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9895 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9896 $RM "$lt_outputfile.manifest"; 9897 fi' 9898 ;; 9899 *) 9900 # Assume MSVC wrapper 9901 hardcode_libdir_flag_spec=' ' 9902 allow_undefined_flag=unsupported 9903 # Tell ltmain to make .lib files, not .a files. 9904 libext=lib 9905 # Tell ltmain to make .dll files, not .so files. 9906 shrext_cmds=.dll 9907 # FIXME: Setting linknames here is a bad hack. 9908 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9909 # The linker will automatically build a .lib file if we build a DLL. 9910 old_archive_from_new_cmds='true' 9911 # FIXME: Should let the user specify the lib program. 9912 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9913 enable_shared_with_static_runtimes=yes 9914 ;; 9915 esac 9916 ;; 9917 9918 darwin* | rhapsody*) 9919 9920 9921 archive_cmds_need_lc=no 9922 hardcode_direct=no 9923 hardcode_automatic=yes 9924 hardcode_shlibpath_var=unsupported 9925 if test yes = "$lt_cv_ld_force_load"; then 9926 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\"`' 9927 9928 else 9929 whole_archive_flag_spec='' 9930 fi 9931 link_all_deplibs=yes 9932 allow_undefined_flag=$_lt_dar_allow_undefined 9933 case $cc_basename in 9934 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9935 *) _lt_dar_can_shared=$GCC ;; 9936 esac 9937 if test yes = "$_lt_dar_can_shared"; then 9938 output_verbose_link_cmd=func_echo_all 9939 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9940 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9941 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" 9942 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" 9943 9944 else 9945 ld_shlibs=no 9946 fi 9947 9948 ;; 9949 9950 dgux*) 9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9952 hardcode_libdir_flag_spec='-L$libdir' 9953 hardcode_shlibpath_var=no 9954 ;; 9955 9956 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9957 # support. Future versions do this automatically, but an explicit c++rt0.o 9958 # does not break anything, and helps significantly (at the cost of a little 9959 # extra space). 9960 freebsd2.2*) 9961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9962 hardcode_libdir_flag_spec='-R$libdir' 9963 hardcode_direct=yes 9964 hardcode_shlibpath_var=no 9965 ;; 9966 9967 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9968 freebsd2.*) 9969 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9970 hardcode_direct=yes 9971 hardcode_minus_L=yes 9972 hardcode_shlibpath_var=no 9973 ;; 9974 9975 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9976 freebsd* | dragonfly*) 9977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9978 hardcode_libdir_flag_spec='-R$libdir' 9979 hardcode_direct=yes 9980 hardcode_shlibpath_var=no 9981 ;; 9982 9983 hpux9*) 9984 if test yes = "$GCC"; then 9985 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' 9986 else 9987 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' 9988 fi 9989 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9990 hardcode_libdir_separator=: 9991 hardcode_direct=yes 9992 9993 # hardcode_minus_L: Not really in the search PATH, 9994 # but as the default location of the library. 9995 hardcode_minus_L=yes 9996 export_dynamic_flag_spec='$wl-E' 9997 ;; 9998 9999 hpux10*) 10000 if test yes,no = "$GCC,$with_gnu_ld"; then 10001 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10002 else 10003 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10004 fi 10005 if test no = "$with_gnu_ld"; then 10006 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10007 hardcode_libdir_separator=: 10008 hardcode_direct=yes 10009 hardcode_direct_absolute=yes 10010 export_dynamic_flag_spec='$wl-E' 10011 # hardcode_minus_L: Not really in the search PATH, 10012 # but as the default location of the library. 10013 hardcode_minus_L=yes 10014 fi 10015 ;; 10016 10017 hpux11*) 10018 if test yes,no = "$GCC,$with_gnu_ld"; then 10019 case $host_cpu in 10020 hppa*64*) 10021 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10022 ;; 10023 ia64*) 10024 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10025 ;; 10026 *) 10027 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10028 ;; 10029 esac 10030 else 10031 case $host_cpu in 10032 hppa*64*) 10033 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10034 ;; 10035 ia64*) 10036 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10037 ;; 10038 *) 10039 10040 # Older versions of the 11.00 compiler do not understand -b yet 10041 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10043 $as_echo_n "checking if $CC understands -b... " >&6; } 10044 if ${lt_cv_prog_compiler__b+:} false; then : 10045 $as_echo_n "(cached) " >&6 10046 else 10047 lt_cv_prog_compiler__b=no 10048 save_LDFLAGS=$LDFLAGS 10049 LDFLAGS="$LDFLAGS -b" 10050 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10051 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10052 # The linker can only warn and ignore the option if not recognized 10053 # So say no if there are warnings 10054 if test -s conftest.err; then 10055 # Append any errors to the config.log. 10056 cat conftest.err 1>&5 10057 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10058 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10059 if diff conftest.exp conftest.er2 >/dev/null; then 10060 lt_cv_prog_compiler__b=yes 10061 fi 10062 else 10063 lt_cv_prog_compiler__b=yes 10064 fi 10065 fi 10066 $RM -r conftest* 10067 LDFLAGS=$save_LDFLAGS 10068 10069 fi 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10071 $as_echo "$lt_cv_prog_compiler__b" >&6; } 10072 10073 if test yes = "$lt_cv_prog_compiler__b"; then 10074 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10075 else 10076 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10077 fi 10078 10079 ;; 10080 esac 10081 fi 10082 if test no = "$with_gnu_ld"; then 10083 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10084 hardcode_libdir_separator=: 10085 10086 case $host_cpu in 10087 hppa*64*|ia64*) 10088 hardcode_direct=no 10089 hardcode_shlibpath_var=no 10090 ;; 10091 *) 10092 hardcode_direct=yes 10093 hardcode_direct_absolute=yes 10094 export_dynamic_flag_spec='$wl-E' 10095 10096 # hardcode_minus_L: Not really in the search PATH, 10097 # but as the default location of the library. 10098 hardcode_minus_L=yes 10099 ;; 10100 esac 10101 fi 10102 ;; 10103 10104 irix5* | irix6* | nonstopux*) 10105 if test yes = "$GCC"; then 10106 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' 10107 # Try to use the -exported_symbol ld option, if it does not 10108 # work, assume that -exports_file does not work either and 10109 # implicitly export all symbols. 10110 # This should be the same for all languages, so no per-tag cache variable. 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10112 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10113 if ${lt_cv_irix_exported_symbol+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115 else 10116 save_LDFLAGS=$LDFLAGS 10117 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10119 /* end confdefs.h. */ 10120 int foo (void) { return 0; } 10121 _ACEOF 10122 if ac_fn_c_try_link "$LINENO"; then : 10123 lt_cv_irix_exported_symbol=yes 10124 else 10125 lt_cv_irix_exported_symbol=no 10126 fi 10127 rm -f core conftest.err conftest.$ac_objext \ 10128 conftest$ac_exeext conftest.$ac_ext 10129 LDFLAGS=$save_LDFLAGS 10130 fi 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10132 $as_echo "$lt_cv_irix_exported_symbol" >&6; } 10133 if test yes = "$lt_cv_irix_exported_symbol"; then 10134 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' 10135 fi 10136 link_all_deplibs=no 10137 else 10138 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' 10139 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' 10140 fi 10141 archive_cmds_need_lc='no' 10142 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10143 hardcode_libdir_separator=: 10144 inherit_rpath=yes 10145 link_all_deplibs=yes 10146 ;; 10147 10148 linux*) 10149 case $cc_basename in 10150 tcc*) 10151 # Fabrice Bellard et al's Tiny C Compiler 10152 ld_shlibs=yes 10153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10154 ;; 10155 esac 10156 ;; 10157 10158 netbsd* | netbsdelf*-gnu) 10159 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10161 else 10162 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10163 fi 10164 hardcode_libdir_flag_spec='-R$libdir' 10165 hardcode_direct=yes 10166 hardcode_shlibpath_var=no 10167 ;; 10168 10169 newsos6) 10170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10171 hardcode_direct=yes 10172 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10173 hardcode_libdir_separator=: 10174 hardcode_shlibpath_var=no 10175 ;; 10176 10177 *nto* | *qnx*) 10178 ;; 10179 10180 openbsd* | bitrig*) 10181 if test -f /usr/libexec/ld.so; then 10182 hardcode_direct=yes 10183 hardcode_shlibpath_var=no 10184 hardcode_direct_absolute=yes 10185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10187 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10188 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10189 export_dynamic_flag_spec='$wl-E' 10190 else 10191 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10192 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10193 fi 10194 else 10195 ld_shlibs=no 10196 fi 10197 ;; 10198 10199 os2*) 10200 hardcode_libdir_flag_spec='-L$libdir' 10201 hardcode_minus_L=yes 10202 allow_undefined_flag=unsupported 10203 shrext_cmds=.dll 10204 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10205 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10206 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10207 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10208 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10209 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10210 emximp -o $lib $output_objdir/$libname.def' 10211 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10212 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10213 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10214 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10215 prefix_cmds="$SED"~ 10216 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10217 prefix_cmds="$prefix_cmds -e 1d"; 10218 fi~ 10219 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10220 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10221 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10222 emximp -o $lib $output_objdir/$libname.def' 10223 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10224 enable_shared_with_static_runtimes=yes 10225 ;; 10226 10227 osf3*) 10228 if test yes = "$GCC"; then 10229 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10230 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' 10231 else 10232 allow_undefined_flag=' -expect_unresolved \*' 10233 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' 10234 fi 10235 archive_cmds_need_lc='no' 10236 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10237 hardcode_libdir_separator=: 10238 ;; 10239 10240 osf4* | osf5*) # as osf3* with the addition of -msym flag 10241 if test yes = "$GCC"; then 10242 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10243 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' 10244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10245 else 10246 allow_undefined_flag=' -expect_unresolved \*' 10247 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' 10248 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~ 10249 $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' 10250 10251 # Both c and cxx compiler support -rpath directly 10252 hardcode_libdir_flag_spec='-rpath $libdir' 10253 fi 10254 archive_cmds_need_lc='no' 10255 hardcode_libdir_separator=: 10256 ;; 10257 10258 solaris*) 10259 no_undefined_flag=' -z defs' 10260 if test yes = "$GCC"; then 10261 wlarc='$wl' 10262 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10263 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10264 $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' 10265 else 10266 case `$CC -V 2>&1` in 10267 *"Compilers 5.0"*) 10268 wlarc='' 10269 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10270 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10271 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10272 ;; 10273 *) 10274 wlarc='$wl' 10275 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10277 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10278 ;; 10279 esac 10280 fi 10281 hardcode_libdir_flag_spec='-R$libdir' 10282 hardcode_shlibpath_var=no 10283 case $host_os in 10284 solaris2.[0-5] | solaris2.[0-5].*) ;; 10285 *) 10286 # The compiler driver will combine and reorder linker options, 10287 # but understands '-z linker_flag'. GCC discards it without '$wl', 10288 # but is careful enough not to reorder. 10289 # Supported since Solaris 2.6 (maybe 2.5.1?) 10290 if test yes = "$GCC"; then 10291 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10292 else 10293 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10294 fi 10295 ;; 10296 esac 10297 link_all_deplibs=yes 10298 ;; 10299 10300 sunos4*) 10301 if test sequent = "$host_vendor"; then 10302 # Use $CC to link under sequent, because it throws in some extra .o 10303 # files that make .init and .fini sections work. 10304 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10305 else 10306 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10307 fi 10308 hardcode_libdir_flag_spec='-L$libdir' 10309 hardcode_direct=yes 10310 hardcode_minus_L=yes 10311 hardcode_shlibpath_var=no 10312 ;; 10313 10314 sysv4) 10315 case $host_vendor in 10316 sni) 10317 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10318 hardcode_direct=yes # is this really true??? 10319 ;; 10320 siemens) 10321 ## LD is ld it makes a PLAMLIB 10322 ## CC just makes a GrossModule. 10323 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10324 reload_cmds='$CC -r -o $output$reload_objs' 10325 hardcode_direct=no 10326 ;; 10327 motorola) 10328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10329 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10330 ;; 10331 esac 10332 runpath_var='LD_RUN_PATH' 10333 hardcode_shlibpath_var=no 10334 ;; 10335 10336 sysv4.3*) 10337 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10338 hardcode_shlibpath_var=no 10339 export_dynamic_flag_spec='-Bexport' 10340 ;; 10341 10342 sysv4*MP*) 10343 if test -d /usr/nec; then 10344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10345 hardcode_shlibpath_var=no 10346 runpath_var=LD_RUN_PATH 10347 hardcode_runpath_var=yes 10348 ld_shlibs=yes 10349 fi 10350 ;; 10351 10352 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10353 no_undefined_flag='$wl-z,text' 10354 archive_cmds_need_lc=no 10355 hardcode_shlibpath_var=no 10356 runpath_var='LD_RUN_PATH' 10357 10358 if test yes = "$GCC"; then 10359 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10360 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10361 else 10362 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10363 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10364 fi 10365 ;; 10366 10367 sysv5* | sco3.2v5* | sco5v6*) 10368 # Note: We CANNOT use -z defs as we might desire, because we do not 10369 # link with -lc, and that would cause any symbols used from libc to 10370 # always be unresolved, which means just about no library would 10371 # ever link correctly. If we're not using GNU ld we use -z text 10372 # though, which does catch some bad symbols but isn't as heavy-handed 10373 # as -z defs. 10374 no_undefined_flag='$wl-z,text' 10375 allow_undefined_flag='$wl-z,nodefs' 10376 archive_cmds_need_lc=no 10377 hardcode_shlibpath_var=no 10378 hardcode_libdir_flag_spec='$wl-R,$libdir' 10379 hardcode_libdir_separator=':' 10380 link_all_deplibs=yes 10381 export_dynamic_flag_spec='$wl-Bexport' 10382 runpath_var='LD_RUN_PATH' 10383 10384 if test yes = "$GCC"; then 10385 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10386 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10387 else 10388 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10389 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10390 fi 10391 ;; 10392 10393 uts4*) 10394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10395 hardcode_libdir_flag_spec='-L$libdir' 10396 hardcode_shlibpath_var=no 10397 ;; 10398 10399 *) 10400 ld_shlibs=no 10401 ;; 10402 esac 10403 10404 if test sni = "$host_vendor"; then 10405 case $host in 10406 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10407 export_dynamic_flag_spec='$wl-Blargedynsym' 10408 ;; 10409 esac 10410 fi 10411 fi 10412 10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10414 $as_echo "$ld_shlibs" >&6; } 10415 test no = "$ld_shlibs" && can_build_shared=no 10416 10417 with_gnu_ld=$with_gnu_ld 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 # 10434 # Do we need to explicitly link libc? 10435 # 10436 case "x$archive_cmds_need_lc" in 10437 x|xyes) 10438 # Assume -lc should be added 10439 archive_cmds_need_lc=yes 10440 10441 if test yes,yes = "$GCC,$enable_shared"; then 10442 case $archive_cmds in 10443 *'~'*) 10444 # FIXME: we may have to deal with multi-command sequences. 10445 ;; 10446 '$CC '*) 10447 # Test whether the compiler implicitly links with -lc since on some 10448 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10449 # to ld, don't add -lc before -lgcc. 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10451 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10452 if ${lt_cv_archive_cmds_need_lc+:} false; then : 10453 $as_echo_n "(cached) " >&6 10454 else 10455 $RM conftest* 10456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10457 10458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10459 (eval $ac_compile) 2>&5 10460 ac_status=$? 10461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10462 test $ac_status = 0; } 2>conftest.err; then 10463 soname=conftest 10464 lib=conftest 10465 libobjs=conftest.$ac_objext 10466 deplibs= 10467 wl=$lt_prog_compiler_wl 10468 pic_flag=$lt_prog_compiler_pic 10469 compiler_flags=-v 10470 linker_flags=-v 10471 verstring= 10472 output_objdir=. 10473 libname=conftest 10474 lt_save_allow_undefined_flag=$allow_undefined_flag 10475 allow_undefined_flag= 10476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10477 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10478 ac_status=$? 10479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10480 test $ac_status = 0; } 10481 then 10482 lt_cv_archive_cmds_need_lc=no 10483 else 10484 lt_cv_archive_cmds_need_lc=yes 10485 fi 10486 allow_undefined_flag=$lt_save_allow_undefined_flag 10487 else 10488 cat conftest.err 1>&5 10489 fi 10490 $RM conftest* 10491 10492 fi 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10494 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10495 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10496 ;; 10497 esac 10498 fi 10499 ;; 10500 esac 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 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10654 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10655 10656 if test yes = "$GCC"; then 10657 case $host_os in 10658 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10659 *) lt_awk_arg='/^libraries:/' ;; 10660 esac 10661 case $host_os in 10662 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10663 *) lt_sed_strip_eq='s|=/|/|g' ;; 10664 esac 10665 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10666 case $lt_search_path_spec in 10667 *\;*) 10668 # if the path contains ";" then we assume it to be the separator 10669 # otherwise default to the standard path separator (i.e. ":") - it is 10670 # assumed that no part of a normal pathname contains ";" but that should 10671 # okay in the real world where ";" in dirpaths is itself problematic. 10672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10673 ;; 10674 *) 10675 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10676 ;; 10677 esac 10678 # Ok, now we have the path, separated by spaces, we can step through it 10679 # and add multilib dir if necessary... 10680 lt_tmp_lt_search_path_spec= 10681 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10682 # ...but if some path component already ends with the multilib dir we assume 10683 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10684 case "$lt_multi_os_dir; $lt_search_path_spec " in 10685 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10686 lt_multi_os_dir= 10687 ;; 10688 esac 10689 for lt_sys_path in $lt_search_path_spec; do 10690 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10691 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10692 elif test -n "$lt_multi_os_dir"; then 10693 test -d "$lt_sys_path" && \ 10694 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10695 fi 10696 done 10697 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10698 BEGIN {RS = " "; FS = "/|\n";} { 10699 lt_foo = ""; 10700 lt_count = 0; 10701 for (lt_i = NF; lt_i > 0; lt_i--) { 10702 if ($lt_i != "" && $lt_i != ".") { 10703 if ($lt_i == "..") { 10704 lt_count++; 10705 } else { 10706 if (lt_count == 0) { 10707 lt_foo = "/" $lt_i lt_foo; 10708 } else { 10709 lt_count--; 10710 } 10711 } 10712 } 10713 } 10714 if (lt_foo != "") { lt_freq[lt_foo]++; } 10715 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10716 }'` 10717 # AWK program above erroneously prepends '/' to C:/dos/paths 10718 # for these hosts. 10719 case $host_os in 10720 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10721 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10722 esac 10723 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10724 else 10725 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10726 fi 10727 library_names_spec= 10728 libname_spec='lib$name' 10729 soname_spec= 10730 shrext_cmds=.so 10731 postinstall_cmds= 10732 postuninstall_cmds= 10733 finish_cmds= 10734 finish_eval= 10735 shlibpath_var= 10736 shlibpath_overrides_runpath=unknown 10737 version_type=none 10738 dynamic_linker="$host_os ld.so" 10739 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10740 need_lib_prefix=unknown 10741 hardcode_into_libs=no 10742 10743 # when you set need_version to no, make sure it does not cause -set_version 10744 # flags to be left without arguments 10745 need_version=unknown 10746 10747 10748 10749 case $host_os in 10750 aix3*) 10751 version_type=linux # correct to gnu/linux during the next big refactor 10752 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10753 shlibpath_var=LIBPATH 10754 10755 # AIX 3 has no versioning support, so we append a major version to the name. 10756 soname_spec='$libname$release$shared_ext$major' 10757 ;; 10758 10759 aix[4-9]*) 10760 version_type=linux # correct to gnu/linux during the next big refactor 10761 need_lib_prefix=no 10762 need_version=no 10763 hardcode_into_libs=yes 10764 if test ia64 = "$host_cpu"; then 10765 # AIX 5 supports IA64 10766 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10767 shlibpath_var=LD_LIBRARY_PATH 10768 else 10769 # With GCC up to 2.95.x, collect2 would create an import file 10770 # for dependence libraries. The import file would start with 10771 # the line '#! .'. This would cause the generated library to 10772 # depend on '.', always an invalid library. This was fixed in 10773 # development snapshots of GCC prior to 3.0. 10774 case $host_os in 10775 aix4 | aix4.[01] | aix4.[01].*) 10776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10777 echo ' yes ' 10778 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10779 : 10780 else 10781 can_build_shared=no 10782 fi 10783 ;; 10784 esac 10785 # Using Import Files as archive members, it is possible to support 10786 # filename-based versioning of shared library archives on AIX. While 10787 # this would work for both with and without runtime linking, it will 10788 # prevent static linking of such archives. So we do filename-based 10789 # shared library versioning with .so extension only, which is used 10790 # when both runtime linking and shared linking is enabled. 10791 # Unfortunately, runtime linking may impact performance, so we do 10792 # not want this to be the default eventually. Also, we use the 10793 # versioned .so libs for executables only if there is the -brtl 10794 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10795 # To allow for filename-based versioning support, we need to create 10796 # libNAME.so.V as an archive file, containing: 10797 # *) an Import File, referring to the versioned filename of the 10798 # archive as well as the shared archive member, telling the 10799 # bitwidth (32 or 64) of that shared object, and providing the 10800 # list of exported symbols of that shared object, eventually 10801 # decorated with the 'weak' keyword 10802 # *) the shared object with the F_LOADONLY flag set, to really avoid 10803 # it being seen by the linker. 10804 # At run time we better use the real file rather than another symlink, 10805 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10806 10807 case $with_aix_soname,$aix_use_runtimelinking in 10808 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10809 # soname into executable. Probably we can add versioning support to 10810 # collect2, so additional links can be useful in future. 10811 aix,yes) # traditional libtool 10812 dynamic_linker='AIX unversionable lib.so' 10813 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10814 # instead of lib<name>.a to let people know that these are not 10815 # typical AIX shared libraries. 10816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10817 ;; 10818 aix,no) # traditional AIX only 10819 dynamic_linker='AIX lib.a(lib.so.V)' 10820 # We preserve .a as extension for shared libraries through AIX4.2 10821 # and later when we are not doing run time linking. 10822 library_names_spec='$libname$release.a $libname.a' 10823 soname_spec='$libname$release$shared_ext$major' 10824 ;; 10825 svr4,*) # full svr4 only 10826 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10827 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10828 # We do not specify a path in Import Files, so LIBPATH fires. 10829 shlibpath_overrides_runpath=yes 10830 ;; 10831 *,yes) # both, prefer svr4 10832 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10833 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10834 # unpreferred sharedlib libNAME.a needs extra handling 10835 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"' 10836 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"' 10837 # We do not specify a path in Import Files, so LIBPATH fires. 10838 shlibpath_overrides_runpath=yes 10839 ;; 10840 *,no) # both, prefer aix 10841 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10842 library_names_spec='$libname$release.a $libname.a' 10843 soname_spec='$libname$release$shared_ext$major' 10844 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10845 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)' 10846 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"' 10847 ;; 10848 esac 10849 shlibpath_var=LIBPATH 10850 fi 10851 ;; 10852 10853 amigaos*) 10854 case $host_cpu in 10855 powerpc) 10856 # Since July 2007 AmigaOS4 officially supports .so libraries. 10857 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10858 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10859 ;; 10860 m68k) 10861 library_names_spec='$libname.ixlibrary $libname.a' 10862 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10863 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' 10864 ;; 10865 esac 10866 ;; 10867 10868 beos*) 10869 library_names_spec='$libname$shared_ext' 10870 dynamic_linker="$host_os ld.so" 10871 shlibpath_var=LIBRARY_PATH 10872 ;; 10873 10874 bsdi[45]*) 10875 version_type=linux # correct to gnu/linux during the next big refactor 10876 need_version=no 10877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10878 soname_spec='$libname$release$shared_ext$major' 10879 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10880 shlibpath_var=LD_LIBRARY_PATH 10881 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10882 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10883 # the default ld.so.conf also contains /usr/contrib/lib and 10884 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10885 # libtool to hard-code these into programs 10886 ;; 10887 10888 cygwin* | mingw* | pw32* | cegcc*) 10889 version_type=windows 10890 shrext_cmds=.dll 10891 need_version=no 10892 need_lib_prefix=no 10893 10894 case $GCC,$cc_basename in 10895 yes,*) 10896 # gcc 10897 library_names_spec='$libname.dll.a' 10898 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10899 postinstall_cmds='base_file=`basename \$file`~ 10900 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10901 dldir=$destdir/`dirname \$dlpath`~ 10902 test -d \$dldir || mkdir -p \$dldir~ 10903 $install_prog $dir/$dlname \$dldir/$dlname~ 10904 chmod a+x \$dldir/$dlname~ 10905 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10906 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10907 fi' 10908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10909 dlpath=$dir/\$dldll~ 10910 $RM \$dlpath' 10911 shlibpath_overrides_runpath=yes 10912 10913 case $host_os in 10914 cygwin*) 10915 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10916 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10917 10918 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10919 ;; 10920 mingw* | cegcc*) 10921 # MinGW DLLs use traditional 'lib' prefix 10922 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10923 ;; 10924 pw32*) 10925 # pw32 DLLs use 'pw' prefix rather than 'lib' 10926 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10927 ;; 10928 esac 10929 dynamic_linker='Win32 ld.exe' 10930 ;; 10931 10932 *,cl*) 10933 # Native MSVC 10934 libname_spec='$name' 10935 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10936 library_names_spec='$libname.dll.lib' 10937 10938 case $build_os in 10939 mingw*) 10940 sys_lib_search_path_spec= 10941 lt_save_ifs=$IFS 10942 IFS=';' 10943 for lt_path in $LIB 10944 do 10945 IFS=$lt_save_ifs 10946 # Let DOS variable expansion print the short 8.3 style file name. 10947 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10948 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10949 done 10950 IFS=$lt_save_ifs 10951 # Convert to MSYS style. 10952 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10953 ;; 10954 cygwin*) 10955 # Convert to unix form, then to dos form, then back to unix form 10956 # but this time dos style (no spaces!) so that the unix form looks 10957 # like /cygdrive/c/PROGRA~1:/cygdr... 10958 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10959 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10960 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10961 ;; 10962 *) 10963 sys_lib_search_path_spec=$LIB 10964 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10965 # It is most probably a Windows format PATH. 10966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10967 else 10968 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10969 fi 10970 # FIXME: find the short name or the path components, as spaces are 10971 # common. (e.g. "Program Files" -> "PROGRA~1") 10972 ;; 10973 esac 10974 10975 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10976 postinstall_cmds='base_file=`basename \$file`~ 10977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10978 dldir=$destdir/`dirname \$dlpath`~ 10979 test -d \$dldir || mkdir -p \$dldir~ 10980 $install_prog $dir/$dlname \$dldir/$dlname' 10981 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10982 dlpath=$dir/\$dldll~ 10983 $RM \$dlpath' 10984 shlibpath_overrides_runpath=yes 10985 dynamic_linker='Win32 link.exe' 10986 ;; 10987 10988 *) 10989 # Assume MSVC wrapper 10990 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10991 dynamic_linker='Win32 ld.exe' 10992 ;; 10993 esac 10994 # FIXME: first we should search . and the directory the executable is in 10995 shlibpath_var=PATH 10996 ;; 10997 10998 darwin* | rhapsody*) 10999 dynamic_linker="$host_os dyld" 11000 version_type=darwin 11001 need_lib_prefix=no 11002 need_version=no 11003 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11004 soname_spec='$libname$release$major$shared_ext' 11005 shlibpath_overrides_runpath=yes 11006 shlibpath_var=DYLD_LIBRARY_PATH 11007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11008 11009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11011 ;; 11012 11013 dgux*) 11014 version_type=linux # correct to gnu/linux during the next big refactor 11015 need_lib_prefix=no 11016 need_version=no 11017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11018 soname_spec='$libname$release$shared_ext$major' 11019 shlibpath_var=LD_LIBRARY_PATH 11020 ;; 11021 11022 freebsd* | dragonfly*) 11023 # DragonFly does not have aout. When/if they implement a new 11024 # versioning mechanism, adjust this. 11025 if test -x /usr/bin/objformat; then 11026 objformat=`/usr/bin/objformat` 11027 else 11028 case $host_os in 11029 freebsd[23].*) objformat=aout ;; 11030 *) objformat=elf ;; 11031 esac 11032 fi 11033 version_type=freebsd-$objformat 11034 case $version_type in 11035 freebsd-elf*) 11036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11037 soname_spec='$libname$release$shared_ext$major' 11038 need_version=no 11039 need_lib_prefix=no 11040 ;; 11041 freebsd-*) 11042 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11043 need_version=yes 11044 ;; 11045 esac 11046 shlibpath_var=LD_LIBRARY_PATH 11047 case $host_os in 11048 freebsd2.*) 11049 shlibpath_overrides_runpath=yes 11050 ;; 11051 freebsd3.[01]* | freebsdelf3.[01]*) 11052 shlibpath_overrides_runpath=yes 11053 hardcode_into_libs=yes 11054 ;; 11055 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11056 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11057 shlibpath_overrides_runpath=no 11058 hardcode_into_libs=yes 11059 ;; 11060 *) # from 4.6 on, and DragonFly 11061 shlibpath_overrides_runpath=yes 11062 hardcode_into_libs=yes 11063 ;; 11064 esac 11065 ;; 11066 11067 haiku*) 11068 version_type=linux # correct to gnu/linux during the next big refactor 11069 need_lib_prefix=no 11070 need_version=no 11071 dynamic_linker="$host_os runtime_loader" 11072 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11073 soname_spec='$libname$release$shared_ext$major' 11074 shlibpath_var=LIBRARY_PATH 11075 shlibpath_overrides_runpath=no 11076 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11077 hardcode_into_libs=yes 11078 ;; 11079 11080 hpux9* | hpux10* | hpux11*) 11081 # Give a soname corresponding to the major version so that dld.sl refuses to 11082 # link against other versions. 11083 version_type=sunos 11084 need_lib_prefix=no 11085 need_version=no 11086 case $host_cpu in 11087 ia64*) 11088 shrext_cmds='.so' 11089 hardcode_into_libs=yes 11090 dynamic_linker="$host_os dld.so" 11091 shlibpath_var=LD_LIBRARY_PATH 11092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11094 soname_spec='$libname$release$shared_ext$major' 11095 if test 32 = "$HPUX_IA64_MODE"; then 11096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11097 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11098 else 11099 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11100 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11101 fi 11102 ;; 11103 hppa*64*) 11104 shrext_cmds='.sl' 11105 hardcode_into_libs=yes 11106 dynamic_linker="$host_os dld.sl" 11107 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11108 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11110 soname_spec='$libname$release$shared_ext$major' 11111 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11112 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11113 ;; 11114 *) 11115 shrext_cmds='.sl' 11116 dynamic_linker="$host_os dld.sl" 11117 shlibpath_var=SHLIB_PATH 11118 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11120 soname_spec='$libname$release$shared_ext$major' 11121 ;; 11122 esac 11123 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11124 postinstall_cmds='chmod 555 $lib' 11125 # or fails outright, so override atomically: 11126 install_override_mode=555 11127 ;; 11128 11129 interix[3-9]*) 11130 version_type=linux # correct to gnu/linux during the next big refactor 11131 need_lib_prefix=no 11132 need_version=no 11133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11134 soname_spec='$libname$release$shared_ext$major' 11135 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11136 shlibpath_var=LD_LIBRARY_PATH 11137 shlibpath_overrides_runpath=no 11138 hardcode_into_libs=yes 11139 ;; 11140 11141 irix5* | irix6* | nonstopux*) 11142 case $host_os in 11143 nonstopux*) version_type=nonstopux ;; 11144 *) 11145 if test yes = "$lt_cv_prog_gnu_ld"; then 11146 version_type=linux # correct to gnu/linux during the next big refactor 11147 else 11148 version_type=irix 11149 fi ;; 11150 esac 11151 need_lib_prefix=no 11152 need_version=no 11153 soname_spec='$libname$release$shared_ext$major' 11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11155 case $host_os in 11156 irix5* | nonstopux*) 11157 libsuff= shlibsuff= 11158 ;; 11159 *) 11160 case $LD in # libtool.m4 will add one of these switches to LD 11161 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11162 libsuff= shlibsuff= libmagic=32-bit;; 11163 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11164 libsuff=32 shlibsuff=N32 libmagic=N32;; 11165 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11166 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11167 *) libsuff= shlibsuff= libmagic=never-match;; 11168 esac 11169 ;; 11170 esac 11171 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11172 shlibpath_overrides_runpath=no 11173 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11174 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11175 hardcode_into_libs=yes 11176 ;; 11177 11178 # No shared lib support for Linux oldld, aout, or coff. 11179 linux*oldld* | linux*aout* | linux*coff*) 11180 dynamic_linker=no 11181 ;; 11182 11183 linux*android*) 11184 version_type=none # Android doesn't support versioned libraries. 11185 need_lib_prefix=no 11186 need_version=no 11187 library_names_spec='$libname$release$shared_ext' 11188 soname_spec='$libname$release$shared_ext' 11189 finish_cmds= 11190 shlibpath_var=LD_LIBRARY_PATH 11191 shlibpath_overrides_runpath=yes 11192 11193 # This implies no fast_install, which is unacceptable. 11194 # Some rework will be needed to allow for fast_install 11195 # before this can be enabled. 11196 hardcode_into_libs=yes 11197 11198 dynamic_linker='Android linker' 11199 # Don't embed -rpath directories since the linker doesn't support them. 11200 hardcode_libdir_flag_spec='-L$libdir' 11201 ;; 11202 11203 # This must be glibc/ELF. 11204 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11205 version_type=linux # correct to gnu/linux during the next big refactor 11206 need_lib_prefix=no 11207 need_version=no 11208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11209 soname_spec='$libname$release$shared_ext$major' 11210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11211 shlibpath_var=LD_LIBRARY_PATH 11212 shlibpath_overrides_runpath=no 11213 11214 # Some binutils ld are patched to set DT_RUNPATH 11215 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11216 $as_echo_n "(cached) " >&6 11217 else 11218 lt_cv_shlibpath_overrides_runpath=no 11219 save_LDFLAGS=$LDFLAGS 11220 save_libdir=$libdir 11221 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11222 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11224 /* end confdefs.h. */ 11225 11226 int 11227 main () 11228 { 11229 11230 ; 11231 return 0; 11232 } 11233 _ACEOF 11234 if ac_fn_c_try_link "$LINENO"; then : 11235 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11236 lt_cv_shlibpath_overrides_runpath=yes 11237 fi 11238 fi 11239 rm -f core conftest.err conftest.$ac_objext \ 11240 conftest$ac_exeext conftest.$ac_ext 11241 LDFLAGS=$save_LDFLAGS 11242 libdir=$save_libdir 11243 11244 fi 11245 11246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11247 11248 # This implies no fast_install, which is unacceptable. 11249 # Some rework will be needed to allow for fast_install 11250 # before this can be enabled. 11251 hardcode_into_libs=yes 11252 11253 # Ideally, we could use ldconfig to report *all* directores which are 11254 # searched for libraries, however this is still not possible. Aside from not 11255 # being certain /sbin/ldconfig is available, command 11256 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11257 # even though it is searched at run-time. Try to do the best guess by 11258 # appending ld.so.conf contents (and includes) to the search path. 11259 if test -f /etc/ld.so.conf; then 11260 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' ' '` 11261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11262 fi 11263 11264 # We used to test for /lib/ld.so.1 and disable shared libraries on 11265 # powerpc, because MkLinux only supported shared libraries with the 11266 # GNU dynamic linker. Since this was broken with cross compilers, 11267 # most powerpc-linux boxes support dynamic linking these days and 11268 # people can always --disable-shared, the test was removed, and we 11269 # assume the GNU/Linux dynamic linker is in use. 11270 dynamic_linker='GNU/Linux ld.so' 11271 ;; 11272 11273 netbsdelf*-gnu) 11274 version_type=linux 11275 need_lib_prefix=no 11276 need_version=no 11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11278 soname_spec='${libname}${release}${shared_ext}$major' 11279 shlibpath_var=LD_LIBRARY_PATH 11280 shlibpath_overrides_runpath=no 11281 hardcode_into_libs=yes 11282 dynamic_linker='NetBSD ld.elf_so' 11283 ;; 11284 11285 netbsd*) 11286 version_type=sunos 11287 need_lib_prefix=no 11288 need_version=no 11289 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11290 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11292 dynamic_linker='NetBSD (a.out) ld.so' 11293 else 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11295 soname_spec='$libname$release$shared_ext$major' 11296 dynamic_linker='NetBSD ld.elf_so' 11297 fi 11298 shlibpath_var=LD_LIBRARY_PATH 11299 shlibpath_overrides_runpath=yes 11300 hardcode_into_libs=yes 11301 ;; 11302 11303 newsos6) 11304 version_type=linux # correct to gnu/linux during the next big refactor 11305 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11306 shlibpath_var=LD_LIBRARY_PATH 11307 shlibpath_overrides_runpath=yes 11308 ;; 11309 11310 *nto* | *qnx*) 11311 version_type=qnx 11312 need_lib_prefix=no 11313 need_version=no 11314 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11315 soname_spec='$libname$release$shared_ext$major' 11316 shlibpath_var=LD_LIBRARY_PATH 11317 shlibpath_overrides_runpath=no 11318 hardcode_into_libs=yes 11319 dynamic_linker='ldqnx.so' 11320 ;; 11321 11322 openbsd* | bitrig*) 11323 version_type=sunos 11324 sys_lib_dlsearch_path_spec=/usr/lib 11325 need_lib_prefix=no 11326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11327 need_version=no 11328 else 11329 need_version=yes 11330 fi 11331 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11333 shlibpath_var=LD_LIBRARY_PATH 11334 shlibpath_overrides_runpath=yes 11335 ;; 11336 11337 os2*) 11338 libname_spec='$name' 11339 version_type=windows 11340 shrext_cmds=.dll 11341 need_version=no 11342 need_lib_prefix=no 11343 # OS/2 can only load a DLL with a base name of 8 characters or less. 11344 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11345 v=$($ECHO $release$versuffix | tr -d .-); 11346 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11347 $ECHO $n$v`$shared_ext' 11348 library_names_spec='${libname}_dll.$libext' 11349 dynamic_linker='OS/2 ld.exe' 11350 shlibpath_var=BEGINLIBPATH 11351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11352 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11353 postinstall_cmds='base_file=`basename \$file`~ 11354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11355 dldir=$destdir/`dirname \$dlpath`~ 11356 test -d \$dldir || mkdir -p \$dldir~ 11357 $install_prog $dir/$dlname \$dldir/$dlname~ 11358 chmod a+x \$dldir/$dlname~ 11359 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11360 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11361 fi' 11362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11363 dlpath=$dir/\$dldll~ 11364 $RM \$dlpath' 11365 ;; 11366 11367 osf3* | osf4* | osf5*) 11368 version_type=osf 11369 need_lib_prefix=no 11370 need_version=no 11371 soname_spec='$libname$release$shared_ext$major' 11372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11373 shlibpath_var=LD_LIBRARY_PATH 11374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11376 ;; 11377 11378 rdos*) 11379 dynamic_linker=no 11380 ;; 11381 11382 solaris*) 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 soname_spec='$libname$release$shared_ext$major' 11388 shlibpath_var=LD_LIBRARY_PATH 11389 shlibpath_overrides_runpath=yes 11390 hardcode_into_libs=yes 11391 # ldd complains unless libraries are executable 11392 postinstall_cmds='chmod +x $lib' 11393 ;; 11394 11395 sunos4*) 11396 version_type=sunos 11397 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11399 shlibpath_var=LD_LIBRARY_PATH 11400 shlibpath_overrides_runpath=yes 11401 if test yes = "$with_gnu_ld"; then 11402 need_lib_prefix=no 11403 fi 11404 need_version=yes 11405 ;; 11406 11407 sysv4 | sysv4.3*) 11408 version_type=linux # correct to gnu/linux during the next big refactor 11409 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11410 soname_spec='$libname$release$shared_ext$major' 11411 shlibpath_var=LD_LIBRARY_PATH 11412 case $host_vendor in 11413 sni) 11414 shlibpath_overrides_runpath=no 11415 need_lib_prefix=no 11416 runpath_var=LD_RUN_PATH 11417 ;; 11418 siemens) 11419 need_lib_prefix=no 11420 ;; 11421 motorola) 11422 need_lib_prefix=no 11423 need_version=no 11424 shlibpath_overrides_runpath=no 11425 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11426 ;; 11427 esac 11428 ;; 11429 11430 sysv4*MP*) 11431 if test -d /usr/nec; then 11432 version_type=linux # correct to gnu/linux during the next big refactor 11433 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11434 soname_spec='$libname$shared_ext.$major' 11435 shlibpath_var=LD_LIBRARY_PATH 11436 fi 11437 ;; 11438 11439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11440 version_type=sco 11441 need_lib_prefix=no 11442 need_version=no 11443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11444 soname_spec='$libname$release$shared_ext$major' 11445 shlibpath_var=LD_LIBRARY_PATH 11446 shlibpath_overrides_runpath=yes 11447 hardcode_into_libs=yes 11448 if test yes = "$with_gnu_ld"; then 11449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11450 else 11451 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11452 case $host_os in 11453 sco3.2v5*) 11454 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11455 ;; 11456 esac 11457 fi 11458 sys_lib_dlsearch_path_spec='/usr/lib' 11459 ;; 11460 11461 tpf*) 11462 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11463 version_type=linux # correct to gnu/linux during the next big refactor 11464 need_lib_prefix=no 11465 need_version=no 11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11467 shlibpath_var=LD_LIBRARY_PATH 11468 shlibpath_overrides_runpath=no 11469 hardcode_into_libs=yes 11470 ;; 11471 11472 uts4*) 11473 version_type=linux # correct to gnu/linux during the next big refactor 11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11475 soname_spec='$libname$release$shared_ext$major' 11476 shlibpath_var=LD_LIBRARY_PATH 11477 ;; 11478 11479 *) 11480 dynamic_linker=no 11481 ;; 11482 esac 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11484 $as_echo "$dynamic_linker" >&6; } 11485 test no = "$dynamic_linker" && can_build_shared=no 11486 11487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11488 if test yes = "$GCC"; then 11489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11490 fi 11491 11492 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11493 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11494 fi 11495 11496 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11497 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11498 fi 11499 11500 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11501 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11502 11503 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11504 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11505 11506 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11507 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11606 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11607 hardcode_action= 11608 if test -n "$hardcode_libdir_flag_spec" || 11609 test -n "$runpath_var" || 11610 test yes = "$hardcode_automatic"; then 11611 11612 # We can hardcode non-existent directories. 11613 if test no != "$hardcode_direct" && 11614 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11615 # have to relink, otherwise we might link with an installed library 11616 # when we should be linking with a yet-to-be-installed one 11617 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11618 test no != "$hardcode_minus_L"; then 11619 # Linking always hardcodes the temporary library directory. 11620 hardcode_action=relink 11621 else 11622 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11623 hardcode_action=immediate 11624 fi 11625 else 11626 # We cannot hardcode anything, or else we can only hardcode existing 11627 # directories. 11628 hardcode_action=unsupported 11629 fi 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11631 $as_echo "$hardcode_action" >&6; } 11632 11633 if test relink = "$hardcode_action" || 11634 test yes = "$inherit_rpath"; then 11635 # Fast installation is not supported 11636 enable_fast_install=no 11637 elif test yes = "$shlibpath_overrides_runpath" || 11638 test no = "$enable_shared"; then 11639 # Fast installation is not necessary 11640 enable_fast_install=needless 11641 fi 11642 11643 11644 11645 11646 11647 11648 if test yes != "$enable_dlopen"; then 11649 enable_dlopen=unknown 11650 enable_dlopen_self=unknown 11651 enable_dlopen_self_static=unknown 11652 else 11653 lt_cv_dlopen=no 11654 lt_cv_dlopen_libs= 11655 11656 case $host_os in 11657 beos*) 11658 lt_cv_dlopen=load_add_on 11659 lt_cv_dlopen_libs= 11660 lt_cv_dlopen_self=yes 11661 ;; 11662 11663 mingw* | pw32* | cegcc*) 11664 lt_cv_dlopen=LoadLibrary 11665 lt_cv_dlopen_libs= 11666 ;; 11667 11668 cygwin*) 11669 lt_cv_dlopen=dlopen 11670 lt_cv_dlopen_libs= 11671 ;; 11672 11673 darwin*) 11674 # if libdl is installed we need to link against it 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11676 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11677 if ${ac_cv_lib_dl_dlopen+:} false; then : 11678 $as_echo_n "(cached) " >&6 11679 else 11680 ac_check_lib_save_LIBS=$LIBS 11681 LIBS="-ldl $LIBS" 11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11683 /* end confdefs.h. */ 11684 11685 /* Override any GCC internal prototype to avoid an error. 11686 Use char because int might match the return type of a GCC 11687 builtin and then its argument prototype would still apply. */ 11688 #ifdef __cplusplus 11689 extern "C" 11690 #endif 11691 char dlopen (); 11692 int 11693 main () 11694 { 11695 return dlopen (); 11696 ; 11697 return 0; 11698 } 11699 _ACEOF 11700 if ac_fn_c_try_link "$LINENO"; then : 11701 ac_cv_lib_dl_dlopen=yes 11702 else 11703 ac_cv_lib_dl_dlopen=no 11704 fi 11705 rm -f core conftest.err conftest.$ac_objext \ 11706 conftest$ac_exeext conftest.$ac_ext 11707 LIBS=$ac_check_lib_save_LIBS 11708 fi 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11712 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11713 else 11714 11715 lt_cv_dlopen=dyld 11716 lt_cv_dlopen_libs= 11717 lt_cv_dlopen_self=yes 11718 11719 fi 11720 11721 ;; 11722 11723 tpf*) 11724 # Don't try to run any link tests for TPF. We know it's impossible 11725 # because TPF is a cross-compiler, and we know how we open DSOs. 11726 lt_cv_dlopen=dlopen 11727 lt_cv_dlopen_libs= 11728 lt_cv_dlopen_self=no 11729 ;; 11730 11731 *) 11732 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11733 if test "x$ac_cv_func_shl_load" = xyes; then : 11734 lt_cv_dlopen=shl_load 11735 else 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11737 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11738 if ${ac_cv_lib_dld_shl_load+:} false; then : 11739 $as_echo_n "(cached) " >&6 11740 else 11741 ac_check_lib_save_LIBS=$LIBS 11742 LIBS="-ldld $LIBS" 11743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11744 /* end confdefs.h. */ 11745 11746 /* Override any GCC internal prototype to avoid an error. 11747 Use char because int might match the return type of a GCC 11748 builtin and then its argument prototype would still apply. */ 11749 #ifdef __cplusplus 11750 extern "C" 11751 #endif 11752 char shl_load (); 11753 int 11754 main () 11755 { 11756 return shl_load (); 11757 ; 11758 return 0; 11759 } 11760 _ACEOF 11761 if ac_fn_c_try_link "$LINENO"; then : 11762 ac_cv_lib_dld_shl_load=yes 11763 else 11764 ac_cv_lib_dld_shl_load=no 11765 fi 11766 rm -f core conftest.err conftest.$ac_objext \ 11767 conftest$ac_exeext conftest.$ac_ext 11768 LIBS=$ac_check_lib_save_LIBS 11769 fi 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11771 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11772 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11773 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11774 else 11775 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11776 if test "x$ac_cv_func_dlopen" = xyes; then : 11777 lt_cv_dlopen=dlopen 11778 else 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11780 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11781 if ${ac_cv_lib_dl_dlopen+:} false; then : 11782 $as_echo_n "(cached) " >&6 11783 else 11784 ac_check_lib_save_LIBS=$LIBS 11785 LIBS="-ldl $LIBS" 11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11787 /* end confdefs.h. */ 11788 11789 /* Override any GCC internal prototype to avoid an error. 11790 Use char because int might match the return type of a GCC 11791 builtin and then its argument prototype would still apply. */ 11792 #ifdef __cplusplus 11793 extern "C" 11794 #endif 11795 char dlopen (); 11796 int 11797 main () 11798 { 11799 return dlopen (); 11800 ; 11801 return 0; 11802 } 11803 _ACEOF 11804 if ac_fn_c_try_link "$LINENO"; then : 11805 ac_cv_lib_dl_dlopen=yes 11806 else 11807 ac_cv_lib_dl_dlopen=no 11808 fi 11809 rm -f core conftest.err conftest.$ac_objext \ 11810 conftest$ac_exeext conftest.$ac_ext 11811 LIBS=$ac_check_lib_save_LIBS 11812 fi 11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11814 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11815 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11816 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11817 else 11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11819 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11820 if ${ac_cv_lib_svld_dlopen+:} false; then : 11821 $as_echo_n "(cached) " >&6 11822 else 11823 ac_check_lib_save_LIBS=$LIBS 11824 LIBS="-lsvld $LIBS" 11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11826 /* end confdefs.h. */ 11827 11828 /* Override any GCC internal prototype to avoid an error. 11829 Use char because int might match the return type of a GCC 11830 builtin and then its argument prototype would still apply. */ 11831 #ifdef __cplusplus 11832 extern "C" 11833 #endif 11834 char dlopen (); 11835 int 11836 main () 11837 { 11838 return dlopen (); 11839 ; 11840 return 0; 11841 } 11842 _ACEOF 11843 if ac_fn_c_try_link "$LINENO"; then : 11844 ac_cv_lib_svld_dlopen=yes 11845 else 11846 ac_cv_lib_svld_dlopen=no 11847 fi 11848 rm -f core conftest.err conftest.$ac_objext \ 11849 conftest$ac_exeext conftest.$ac_ext 11850 LIBS=$ac_check_lib_save_LIBS 11851 fi 11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11853 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11854 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11855 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11856 else 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11858 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11859 if ${ac_cv_lib_dld_dld_link+:} false; then : 11860 $as_echo_n "(cached) " >&6 11861 else 11862 ac_check_lib_save_LIBS=$LIBS 11863 LIBS="-ldld $LIBS" 11864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11865 /* end confdefs.h. */ 11866 11867 /* Override any GCC internal prototype to avoid an error. 11868 Use char because int might match the return type of a GCC 11869 builtin and then its argument prototype would still apply. */ 11870 #ifdef __cplusplus 11871 extern "C" 11872 #endif 11873 char dld_link (); 11874 int 11875 main () 11876 { 11877 return dld_link (); 11878 ; 11879 return 0; 11880 } 11881 _ACEOF 11882 if ac_fn_c_try_link "$LINENO"; then : 11883 ac_cv_lib_dld_dld_link=yes 11884 else 11885 ac_cv_lib_dld_dld_link=no 11886 fi 11887 rm -f core conftest.err conftest.$ac_objext \ 11888 conftest$ac_exeext conftest.$ac_ext 11889 LIBS=$ac_check_lib_save_LIBS 11890 fi 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11892 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11893 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11894 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11895 fi 11896 11897 11898 fi 11899 11900 11901 fi 11902 11903 11904 fi 11905 11906 11907 fi 11908 11909 11910 fi 11911 11912 ;; 11913 esac 11914 11915 if test no = "$lt_cv_dlopen"; then 11916 enable_dlopen=no 11917 else 11918 enable_dlopen=yes 11919 fi 11920 11921 case $lt_cv_dlopen in 11922 dlopen) 11923 save_CPPFLAGS=$CPPFLAGS 11924 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11925 11926 save_LDFLAGS=$LDFLAGS 11927 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11928 11929 save_LIBS=$LIBS 11930 LIBS="$lt_cv_dlopen_libs $LIBS" 11931 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11933 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11934 if ${lt_cv_dlopen_self+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936 else 11937 if test yes = "$cross_compiling"; then : 11938 lt_cv_dlopen_self=cross 11939 else 11940 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11941 lt_status=$lt_dlunknown 11942 cat > conftest.$ac_ext <<_LT_EOF 11943 #line $LINENO "configure" 11944 #include "confdefs.h" 11945 11946 #if HAVE_DLFCN_H 11947 #include <dlfcn.h> 11948 #endif 11949 11950 #include <stdio.h> 11951 11952 #ifdef RTLD_GLOBAL 11953 # define LT_DLGLOBAL RTLD_GLOBAL 11954 #else 11955 # ifdef DL_GLOBAL 11956 # define LT_DLGLOBAL DL_GLOBAL 11957 # else 11958 # define LT_DLGLOBAL 0 11959 # endif 11960 #endif 11961 11962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11963 find out it does not work in some platform. */ 11964 #ifndef LT_DLLAZY_OR_NOW 11965 # ifdef RTLD_LAZY 11966 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11967 # else 11968 # ifdef DL_LAZY 11969 # define LT_DLLAZY_OR_NOW DL_LAZY 11970 # else 11971 # ifdef RTLD_NOW 11972 # define LT_DLLAZY_OR_NOW RTLD_NOW 11973 # else 11974 # ifdef DL_NOW 11975 # define LT_DLLAZY_OR_NOW DL_NOW 11976 # else 11977 # define LT_DLLAZY_OR_NOW 0 11978 # endif 11979 # endif 11980 # endif 11981 # endif 11982 #endif 11983 11984 /* When -fvisibility=hidden is used, assume the code has been annotated 11985 correspondingly for the symbols needed. */ 11986 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11987 int fnord () __attribute__((visibility("default"))); 11988 #endif 11989 11990 int fnord () { return 42; } 11991 int main () 11992 { 11993 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11994 int status = $lt_dlunknown; 11995 11996 if (self) 11997 { 11998 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11999 else 12000 { 12001 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12002 else puts (dlerror ()); 12003 } 12004 /* dlclose (self); */ 12005 } 12006 else 12007 puts (dlerror ()); 12008 12009 return status; 12010 } 12011 _LT_EOF 12012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12013 (eval $ac_link) 2>&5 12014 ac_status=$? 12015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12016 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12017 (./conftest; exit; ) >&5 2>/dev/null 12018 lt_status=$? 12019 case x$lt_status in 12020 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12021 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12022 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12023 esac 12024 else : 12025 # compilation failed 12026 lt_cv_dlopen_self=no 12027 fi 12028 fi 12029 rm -fr conftest* 12030 12031 12032 fi 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12034 $as_echo "$lt_cv_dlopen_self" >&6; } 12035 12036 if test yes = "$lt_cv_dlopen_self"; then 12037 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12039 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12040 if ${lt_cv_dlopen_self_static+:} false; then : 12041 $as_echo_n "(cached) " >&6 12042 else 12043 if test yes = "$cross_compiling"; then : 12044 lt_cv_dlopen_self_static=cross 12045 else 12046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12047 lt_status=$lt_dlunknown 12048 cat > conftest.$ac_ext <<_LT_EOF 12049 #line $LINENO "configure" 12050 #include "confdefs.h" 12051 12052 #if HAVE_DLFCN_H 12053 #include <dlfcn.h> 12054 #endif 12055 12056 #include <stdio.h> 12057 12058 #ifdef RTLD_GLOBAL 12059 # define LT_DLGLOBAL RTLD_GLOBAL 12060 #else 12061 # ifdef DL_GLOBAL 12062 # define LT_DLGLOBAL DL_GLOBAL 12063 # else 12064 # define LT_DLGLOBAL 0 12065 # endif 12066 #endif 12067 12068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12069 find out it does not work in some platform. */ 12070 #ifndef LT_DLLAZY_OR_NOW 12071 # ifdef RTLD_LAZY 12072 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12073 # else 12074 # ifdef DL_LAZY 12075 # define LT_DLLAZY_OR_NOW DL_LAZY 12076 # else 12077 # ifdef RTLD_NOW 12078 # define LT_DLLAZY_OR_NOW RTLD_NOW 12079 # else 12080 # ifdef DL_NOW 12081 # define LT_DLLAZY_OR_NOW DL_NOW 12082 # else 12083 # define LT_DLLAZY_OR_NOW 0 12084 # endif 12085 # endif 12086 # endif 12087 # endif 12088 #endif 12089 12090 /* When -fvisibility=hidden is used, assume the code has been annotated 12091 correspondingly for the symbols needed. */ 12092 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12093 int fnord () __attribute__((visibility("default"))); 12094 #endif 12095 12096 int fnord () { return 42; } 12097 int main () 12098 { 12099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12100 int status = $lt_dlunknown; 12101 12102 if (self) 12103 { 12104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12105 else 12106 { 12107 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12108 else puts (dlerror ()); 12109 } 12110 /* dlclose (self); */ 12111 } 12112 else 12113 puts (dlerror ()); 12114 12115 return status; 12116 } 12117 _LT_EOF 12118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12119 (eval $ac_link) 2>&5 12120 ac_status=$? 12121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12122 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12123 (./conftest; exit; ) >&5 2>/dev/null 12124 lt_status=$? 12125 case x$lt_status in 12126 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12127 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12128 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12129 esac 12130 else : 12131 # compilation failed 12132 lt_cv_dlopen_self_static=no 12133 fi 12134 fi 12135 rm -fr conftest* 12136 12137 12138 fi 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12140 $as_echo "$lt_cv_dlopen_self_static" >&6; } 12141 fi 12142 12143 CPPFLAGS=$save_CPPFLAGS 12144 LDFLAGS=$save_LDFLAGS 12145 LIBS=$save_LIBS 12146 ;; 12147 esac 12148 12149 case $lt_cv_dlopen_self in 12150 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12151 *) enable_dlopen_self=unknown ;; 12152 esac 12153 12154 case $lt_cv_dlopen_self_static in 12155 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12156 *) enable_dlopen_self_static=unknown ;; 12157 esac 12158 fi 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 striplib= 12177 old_striplib= 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12179 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 12180 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12181 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12182 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12184 $as_echo "yes" >&6; } 12185 else 12186 # FIXME - insert some real tests, host_os isn't really good enough 12187 case $host_os in 12188 darwin*) 12189 if test -n "$STRIP"; then 12190 striplib="$STRIP -x" 12191 old_striplib="$STRIP -S" 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12193 $as_echo "yes" >&6; } 12194 else 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12196 $as_echo "no" >&6; } 12197 fi 12198 ;; 12199 *) 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12201 $as_echo "no" >&6; } 12202 ;; 12203 esac 12204 fi 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 # Report what library types will actually be built 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12219 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12221 $as_echo "$can_build_shared" >&6; } 12222 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12224 $as_echo_n "checking whether to build shared libraries... " >&6; } 12225 test no = "$can_build_shared" && enable_shared=no 12226 12227 # On AIX, shared libraries and static libraries use the same namespace, and 12228 # are all built from PIC. 12229 case $host_os in 12230 aix3*) 12231 test yes = "$enable_shared" && enable_static=no 12232 if test -n "$RANLIB"; then 12233 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12234 postinstall_cmds='$RANLIB $lib' 12235 fi 12236 ;; 12237 12238 aix[4-9]*) 12239 if test ia64 != "$host_cpu"; then 12240 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12241 yes,aix,yes) ;; # shared object as lib.so file only 12242 yes,svr4,*) ;; # shared object as lib.so archive member only 12243 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12244 esac 12245 fi 12246 ;; 12247 esac 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12249 $as_echo "$enable_shared" >&6; } 12250 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12252 $as_echo_n "checking whether to build static libraries... " >&6; } 12253 # Make sure either enable_shared or enable_static is yes. 12254 test yes = "$enable_shared" || enable_static=yes 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12256 $as_echo "$enable_static" >&6; } 12257 12258 12259 12260 12261 fi 12262 ac_ext=c 12263 ac_cpp='$CPP $CPPFLAGS' 12264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12266 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12267 12268 CC=$lt_save_CC 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 ac_config_commands="$ac_config_commands libtool" 12285 12286 12287 12288 12289 # Only expand once: 12290 12291 12292 12293 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the Potrace library" >&5 12295 $as_echo_n "checking whether to install the Potrace library... " >&6; } 12296 if test "$with_libpotrace" = yes; then 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12298 $as_echo "yes" >&6; } 12299 INSTLIBS="libpotrace.la" 12300 INSTHEADERS="potracelib.h" 12301 else 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12303 $as_echo "no" >&6; } 12304 fi 12305 12306 12307 12308 12309 12310 if test "$GCC" = "yes"; then 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc has bug number 12243" >&5 12312 $as_echo_n "checking whether gcc has bug number 12243... " >&6; } 12313 12314 $as_echo "#define HAVE_GCC_LOOP_BUG /**/" >>confdefs.h 12315 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe" >&5 12317 $as_echo "maybe" >&6; } 12318 fi 12319 12320 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use zlib" >&5 12322 $as_echo_n "checking whether to use zlib... " >&6; } 12323 # Check whether --enable-zlib was given. 12324 if test "${enable_zlib+set}" = set; then : 12325 enableval=$enable_zlib; 12326 fi 12327 12328 if test "$enable_zlib" != no; then 12329 12330 $as_echo "#define HAVE_ZLIB /**/" >>confdefs.h 12331 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12333 $as_echo "yes" >&6; } 12334 else 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12336 $as_echo "no" >&6; } 12337 fi 12338 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to default to metric units" >&5 12340 $as_echo_n "checking whether to default to metric units... " >&6; } 12341 # Check whether --enable-metric was given. 12342 if test "${enable_metric+set}" = set; then : 12343 enableval=$enable_metric; 12344 fi 12345 12346 if test "$enable_metric" = yes; then 12347 12348 $as_echo "#define USE_METRIC /**/" >>confdefs.h 12349 12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12351 $as_echo "yes" >&6; } 12352 else 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12354 $as_echo "no" >&6; } 12355 fi 12356 12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to default to a4 paper size" >&5 12358 $as_echo_n "checking whether to default to a4 paper size... " >&6; } 12359 # Check whether --enable-a4 was given. 12360 if test "${enable_a4+set}" = set; then : 12361 enableval=$enable_a4; 12362 fi 12363 12364 if test "$enable_a4" = yes; then 12365 12366 $as_echo "#define USE_A4 /**/" >>confdefs.h 12367 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12369 $as_echo "yes" >&6; } 12370 else 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12372 $as_echo "no" >&6; } 12373 fi 12374 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the simplified progress bar" >&5 12376 $as_echo_n "checking whether to use the simplified progress bar... " >&6; } 12377 # Check whether --enable-dumb-tty was given. 12378 if test "${enable_dumb_tty+set}" = set; then : 12379 enableval=$enable_dumb_tty; 12380 fi 12381 12382 dumb_tty="$enable_dumb_tty" 12383 if test -z "$dumb_tty"; then 12384 12385 if test "$host_os" = "mingw32"; then 12386 dumb_tty="yes" 12387 fi 12388 fi 12389 if test "$dumb_tty" = "yes"; then 12390 12391 $as_echo "#define DUMB_TTY /**/" >>confdefs.h 12392 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12394 $as_echo "yes" >&6; } 12395 else 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12397 $as_echo "no" >&6; } 12398 fi 12399 12400 12401 USERPREFIX="$prefix" 12402 if test "$USERPREFIX" = "NONE"; then 12403 USERPREFIX="$ac_default_prefix" 12404 fi 12405 12406 12407 if test "$enable_zlib" != no; then 12408 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12409 if test "x$ac_cv_header_zlib_h" = xyes; then : 12410 true 12411 else 12412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib.h not found in standard location. 12413 Trying again with -I$USERPREFIX/include" >&5 12414 $as_echo "$as_me: WARNING: zlib.h not found in standard location. 12415 Trying again with -I$USERPREFIX/include" >&2;} 12416 CPPFLAGS="$CPPFLAGS -I$USERPREFIX/include" 12417 unset ac_cv_header_zlib_h 12418 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 12419 if test "x$ac_cv_header_zlib_h" = xyes; then : 12420 true 12421 else 12422 as_fn_error $? "cannot find zlib.h. 12423 Rerun ./configure with CPPFLAGS=-I<include dir> if you have the header 12424 file in a non-standard directory, or with --disable-zlib to disable 12425 support for PostScript level 3 compression." "$LINENO" 5 12426 12427 fi 12428 12429 12430 12431 fi 12432 12433 12434 fi 12435 12436 ac_fn_c_check_decl "$LINENO" "M_PI" "ac_cv_have_decl_M_PI" "#include <math.h> 12437 " 12438 if test "x$ac_cv_have_decl_M_PI" = xyes; then : 12439 12440 else 12441 12442 $as_echo "#define M_PI 3.14159265358979323846" >>confdefs.h 12443 12444 fi 12445 12446 12447 12448 if test "$enable_zlib" != no; then 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 12450 $as_echo_n "checking for deflate in -lz... " >&6; } 12451 if ${ac_cv_lib_z_deflate+:} false; then : 12452 $as_echo_n "(cached) " >&6 12453 else 12454 ac_check_lib_save_LIBS=$LIBS 12455 LIBS="-lz $LIBS" 12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12457 /* end confdefs.h. */ 12458 12459 /* Override any GCC internal prototype to avoid an error. 12460 Use char because int might match the return type of a GCC 12461 builtin and then its argument prototype would still apply. */ 12462 #ifdef __cplusplus 12463 extern "C" 12464 #endif 12465 char deflate (); 12466 int 12467 main () 12468 { 12469 return deflate (); 12470 ; 12471 return 0; 12472 } 12473 _ACEOF 12474 if ac_fn_c_try_link "$LINENO"; then : 12475 ac_cv_lib_z_deflate=yes 12476 else 12477 ac_cv_lib_z_deflate=no 12478 fi 12479 rm -f core conftest.err conftest.$ac_objext \ 12480 conftest$ac_exeext conftest.$ac_ext 12481 LIBS=$ac_check_lib_save_LIBS 12482 fi 12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 12484 $as_echo "$ac_cv_lib_z_deflate" >&6; } 12485 if test "x$ac_cv_lib_z_deflate" = xyes; then : 12486 EXTRA_LIBS="$EXTRA_LIBS -lz" 12487 else 12488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libz library not found in standard location. 12489 Trying again with -L$USERPREFIX/lib" >&5 12490 $as_echo "$as_me: WARNING: libz library not found in standard location. 12491 Trying again with -L$USERPREFIX/lib" >&2;} 12492 LDFLAGS="$LDFLAGS -L$USERPREFIX/lib" 12493 unset ac_cv_lib_z_deflate 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 12495 $as_echo_n "checking for deflate in -lz... " >&6; } 12496 if ${ac_cv_lib_z_deflate+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498 else 12499 ac_check_lib_save_LIBS=$LIBS 12500 LIBS="-lz $LIBS" 12501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12502 /* end confdefs.h. */ 12503 12504 /* Override any GCC internal prototype to avoid an error. 12505 Use char because int might match the return type of a GCC 12506 builtin and then its argument prototype would still apply. */ 12507 #ifdef __cplusplus 12508 extern "C" 12509 #endif 12510 char deflate (); 12511 int 12512 main () 12513 { 12514 return deflate (); 12515 ; 12516 return 0; 12517 } 12518 _ACEOF 12519 if ac_fn_c_try_link "$LINENO"; then : 12520 ac_cv_lib_z_deflate=yes 12521 else 12522 ac_cv_lib_z_deflate=no 12523 fi 12524 rm -f core conftest.err conftest.$ac_objext \ 12525 conftest$ac_exeext conftest.$ac_ext 12526 LIBS=$ac_check_lib_save_LIBS 12527 fi 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 12529 $as_echo "$ac_cv_lib_z_deflate" >&6; } 12530 if test "x$ac_cv_lib_z_deflate" = xyes; then : 12531 EXTRA_LIBS="$EXTRA_LIBS -lz" 12532 else 12533 as_fn_error $? "cannot find the libz library (-lz). 12534 Rerun ./configure with LDFLAGS=-L<lib dir> if you have the library in 12535 a non-standard directory, or with --disable-zlib to disable support 12536 for PostScript level 3 compression." "$LINENO" 5 12537 12538 fi 12539 12540 12541 fi 12542 12543 fi 12544 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 12546 $as_echo_n "checking for floor in -lm... " >&6; } 12547 if ${ac_cv_lib_m_floor+:} false; then : 12548 $as_echo_n "(cached) " >&6 12549 else 12550 ac_check_lib_save_LIBS=$LIBS 12551 LIBS="-lm $LIBS" 12552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12553 /* end confdefs.h. */ 12554 12555 /* Override any GCC internal prototype to avoid an error. 12556 Use char because int might match the return type of a GCC 12557 builtin and then its argument prototype would still apply. */ 12558 #ifdef __cplusplus 12559 extern "C" 12560 #endif 12561 char floor (); 12562 int 12563 main () 12564 { 12565 return floor (); 12566 ; 12567 return 0; 12568 } 12569 _ACEOF 12570 if ac_fn_c_try_link "$LINENO"; then : 12571 ac_cv_lib_m_floor=yes 12572 else 12573 ac_cv_lib_m_floor=no 12574 fi 12575 rm -f core conftest.err conftest.$ac_objext \ 12576 conftest$ac_exeext conftest.$ac_ext 12577 LIBS=$ac_check_lib_save_LIBS 12578 fi 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 12580 $as_echo "$ac_cv_lib_m_floor" >&6; } 12581 if test "x$ac_cv_lib_m_floor" = xyes; then : 12582 true 12583 else 12584 as_fn_error $? "cannot find the m library (-lm)" "$LINENO" 5 12585 fi 12586 12587 12588 12589 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 12590 case $ac_cv_c_uint64_t in #( 12591 no|yes) ;; #( 12592 *) 12593 12594 $as_echo "#define _UINT64_T 1" >>confdefs.h 12595 12596 12597 cat >>confdefs.h <<_ACEOF 12598 #define uint64_t $ac_cv_c_uint64_t 12599 _ACEOF 12600 ;; 12601 esac 12602 12603 12604 12605 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 12606 if test "x$ac_cv_func_getopt_long" = xyes; then : 12607 have_getopt_long=yes 12608 else 12609 have_getopt_long=no 12610 fi 12611 12612 if test "$have_getopt_long" = "yes"; then 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt_long reorders its arguments" >&5 12614 $as_echo_n "checking whether getopt_long reorders its arguments... " >&6; } 12615 if test "$cross_compiling" = yes; then : 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: maybe (cross-compiling)" >&5 12617 $as_echo "maybe (cross-compiling)" >&6; } 12618 have_getopt_long=no 12619 else 12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12621 /* end confdefs.h. */ 12622 #include <getopt.h> 12623 static struct option longopts[] = { 12624 {"help", 0, 0, 'h'}, 12625 {0, 0, 0, 0} 12626 }; 12627 12628 int 12629 main () 12630 { 12631 int ac = 3; 12632 char *av[] = { "main", "file", "-h" }; 12633 return 'h' == getopt_long(ac, av, "h", longopts, (int *)0) ? 0 : 1; 12634 12635 ; 12636 return 0; 12637 } 12638 _ACEOF 12639 if ac_fn_c_try_run "$LINENO"; then : 12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12641 $as_echo "yes" >&6; } 12642 else 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12644 $as_echo "no" >&6; } 12645 have_getopt_long=no 12646 fi 12647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12648 conftest.$ac_objext conftest.beam conftest.$ac_ext 12649 fi 12650 12651 fi 12652 12653 12654 # Check whether --with-included-getopt was given. 12655 if test "${with_included_getopt+set}" = set; then : 12656 withval=$with_included_getopt; 12657 fi 12658 12659 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use included getopt" >&5 12661 $as_echo_n "checking whether to use included getopt... " >&6; } 12662 if test "$have_getopt_long" != "yes" || test "$with_included_getopt" = yes; then 12663 EXTRA_OBJS="$EXTRA_OBJS getopt.o getopt1.o" 12664 EXTRA_INCLUDES="$EXTRA_INCLUDES -I\$(srcdir)/include/getopt" 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12666 $as_echo "yes" >&6; } 12667 else 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12669 $as_echo "no" >&6; } 12670 fi 12671 12672 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 12673 if test "x$ac_cv_func_strcasecmp" = xyes; then : 12674 12675 else 12676 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp" 12677 if test "x$ac_cv_func_stricmp" = xyes; then : 12678 12679 cat >>confdefs.h <<_ACEOF 12680 #define strcasecmp stricmp 12681 _ACEOF 12682 12683 else 12684 as_fn_error $? "cannot find a replacement for strcasecmp" "$LINENO" 5 12685 12686 fi 12687 12688 12689 fi 12690 12691 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" 12692 if test "x$ac_cv_func_strncasecmp" = xyes; then : 12693 12694 else 12695 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp" 12696 if test "x$ac_cv_func_strnicmp" = xyes; then : 12697 12698 cat >>confdefs.h <<_ACEOF 12699 #define strncasecmp strnicmp 12700 _ACEOF 12701 12702 else 12703 as_fn_error $? "cannot find a replacement for strncasecmp" "$LINENO" 5 12704 12705 fi 12706 12707 12708 fi 12709 12710 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel 386" >&5 12712 $as_echo_n "checking for Intel 386... " >&6; } 12713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12714 /* end confdefs.h. */ 12715 12716 int 12717 main () 12718 { 12719 int x; 12720 asm("bsf %1,%0\njnz 0f\nmovl $32,%0\n0:":"=r"(x):"r"(x)); 12721 return x; /* need this so that -O2 does not optimize the asm away */ 12722 12723 ; 12724 return 0; 12725 } 12726 _ACEOF 12727 if ac_fn_c_try_compile "$LINENO"; then : 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12729 $as_echo "yes" >&6; } 12730 12731 $as_echo "#define HAVE_I386 /**/" >>confdefs.h 12732 12733 12734 else 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12736 $as_echo "no" >&6; } 12737 fi 12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12739 12740 12741 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12743 $as_echo_n "checking for inline... " >&6; } 12744 if ${ac_cv_c_inline+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746 else 12747 ac_cv_c_inline=no 12748 for ac_kw in inline __inline__ __inline; do 12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12750 /* end confdefs.h. */ 12751 #ifndef __cplusplus 12752 typedef int foo_t; 12753 static $ac_kw foo_t static_foo () {return 0; } 12754 $ac_kw foo_t foo () {return 0; } 12755 #endif 12756 12757 _ACEOF 12758 if ac_fn_c_try_compile "$LINENO"; then : 12759 ac_cv_c_inline=$ac_kw 12760 fi 12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12762 test "$ac_cv_c_inline" != no && break 12763 done 12764 12765 fi 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12767 $as_echo "$ac_cv_c_inline" >&6; } 12768 12769 case $ac_cv_c_inline in 12770 inline | yes) ;; 12771 *) 12772 case $ac_cv_c_inline in 12773 no) ac_val=;; 12774 *) ac_val=$ac_cv_c_inline;; 12775 esac 12776 cat >>confdefs.h <<_ACEOF 12777 #ifndef __cplusplus 12778 #define inline $ac_val 12779 #endif 12780 _ACEOF 12781 ;; 12782 esac 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile check/Makefile doc/potrace.1 doc/mkbitmap.1" 12795 12796 cat >confcache <<\_ACEOF 12797 # This file is a shell script that caches the results of configure 12798 # tests run on this system so they can be shared between configure 12799 # scripts and configure runs, see configure's option --config-cache. 12800 # It is not useful on other systems. If it contains results you don't 12801 # want to keep, you may remove or edit it. 12802 # 12803 # config.status only pays attention to the cache file if you give it 12804 # the --recheck option to rerun configure. 12805 # 12806 # `ac_cv_env_foo' variables (set or unset) will be overridden when 12807 # loading this file, other *unset* `ac_cv_foo' will be assigned the 12808 # following values. 12809 12810 _ACEOF 12811 12812 # The following way of writing the cache mishandles newlines in values, 12813 # but we know of no workaround that is simple, portable, and efficient. 12814 # So, we kill variables containing newlines. 12815 # Ultrix sh set writes to stderr and can't be redirected directly, 12816 # and sets the high bit in the cache file unless we assign to the vars. 12817 ( 12818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12819 eval ac_val=\$$ac_var 12820 case $ac_val in #( 12821 *${as_nl}*) 12822 case $ac_var in #( 12823 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12825 esac 12826 case $ac_var in #( 12827 _ | IFS | as_nl) ;; #( 12828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12829 *) { eval $ac_var=; unset $ac_var;} ;; 12830 esac ;; 12831 esac 12832 done 12833 12834 (set) 2>&1 | 12835 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12836 *${as_nl}ac_space=\ *) 12837 # `set' does not quote correctly, so add quotes: double-quote 12838 # substitution turns \\\\ into \\, and sed turns \\ into \. 12839 sed -n \ 12840 "s/'/'\\\\''/g; 12841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12842 ;; #( 12843 *) 12844 # `set' quotes correctly as required by POSIX, so do not add quotes. 12845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12846 ;; 12847 esac | 12848 sort 12849 ) | 12850 sed ' 12851 /^ac_cv_env_/b end 12852 t clear 12853 :clear 12854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12855 t end 12856 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12857 :end' >>confcache 12858 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12859 if test -w "$cache_file"; then 12860 if test "x$cache_file" != "x/dev/null"; then 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12862 $as_echo "$as_me: updating cache $cache_file" >&6;} 12863 if test ! -f "$cache_file" || test -h "$cache_file"; then 12864 cat confcache >"$cache_file" 12865 else 12866 case $cache_file in #( 12867 */* | ?:*) 12868 mv -f confcache "$cache_file"$$ && 12869 mv -f "$cache_file"$$ "$cache_file" ;; #( 12870 *) 12871 mv -f confcache "$cache_file" ;; 12872 esac 12873 fi 12874 fi 12875 else 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12877 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12878 fi 12879 fi 12880 rm -f confcache 12881 12882 test "x$prefix" = xNONE && prefix=$ac_default_prefix 12883 # Let make expand exec_prefix. 12884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12885 12886 DEFS=-DHAVE_CONFIG_H 12887 12888 ac_libobjs= 12889 ac_ltlibobjs= 12890 U= 12891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12892 # 1. Remove the extension, and $U if already installed. 12893 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12894 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12896 # will be set to the directory where LIBOBJS objects are built. 12897 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12898 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12899 done 12900 LIBOBJS=$ac_libobjs 12901 12902 LTLIBOBJS=$ac_ltlibobjs 12903 12904 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 12906 $as_echo_n "checking that generated files are newer than configure... " >&6; } 12907 if test -n "$am_sleep_pid"; then 12908 # Hide warnings about reused PIDs. 12909 wait $am_sleep_pid 2>/dev/null 12910 fi 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 12912 $as_echo "done" >&6; } 12913 if test -n "$EXEEXT"; then 12914 am__EXEEXT_TRUE= 12915 am__EXEEXT_FALSE='#' 12916 else 12917 am__EXEEXT_TRUE='#' 12918 am__EXEEXT_FALSE= 12919 fi 12920 12921 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12922 as_fn_error $? "conditional \"AMDEP\" was never defined. 12923 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12924 fi 12925 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12926 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12927 Usually this means the macro was only invoked conditionally." "$LINENO" 5 12928 fi 12929 12930 : "${CONFIG_STATUS=./config.status}" 12931 ac_write_fail=0 12932 ac_clean_files_save=$ac_clean_files 12933 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12935 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12936 as_write_fail=0 12937 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12938 #! $SHELL 12939 # Generated by $as_me. 12940 # Run this file to recreate the current configuration. 12941 # Compiler output produced by configure, useful for debugging 12942 # configure, is in config.log if it exists. 12943 12944 debug=false 12945 ac_cs_recheck=false 12946 ac_cs_silent=false 12947 12948 SHELL=\${CONFIG_SHELL-$SHELL} 12949 export SHELL 12950 _ASEOF 12951 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12952 ## -------------------- ## 12953 ## M4sh Initialization. ## 12954 ## -------------------- ## 12955 12956 # Be more Bourne compatible 12957 DUALCASE=1; export DUALCASE # for MKS sh 12958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12959 emulate sh 12960 NULLCMD=: 12961 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12962 # is contrary to our usage. Disable this feature. 12963 alias -g '${1+"$@"}'='"$@"' 12964 setopt NO_GLOB_SUBST 12965 else 12966 case `(set -o) 2>/dev/null` in #( 12967 *posix*) : 12968 set -o posix ;; #( 12969 *) : 12970 ;; 12971 esac 12972 fi 12973 12974 12975 as_nl=' 12976 ' 12977 export as_nl 12978 # Printing a long string crashes Solaris 7 /usr/bin/printf. 12979 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12980 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12981 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12982 # Prefer a ksh shell builtin over an external printf program on Solaris, 12983 # but without wasting forks for bash or zsh. 12984 if test -z "$BASH_VERSION$ZSH_VERSION" \ 12985 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12986 as_echo='print -r --' 12987 as_echo_n='print -rn --' 12988 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12989 as_echo='printf %s\n' 12990 as_echo_n='printf %s' 12991 else 12992 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12993 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12994 as_echo_n='/usr/ucb/echo -n' 12995 else 12996 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12997 as_echo_n_body='eval 12998 arg=$1; 12999 case $arg in #( 13000 *"$as_nl"*) 13001 expr "X$arg" : "X\\(.*\\)$as_nl"; 13002 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13003 esac; 13004 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13005 ' 13006 export as_echo_n_body 13007 as_echo_n='sh -c $as_echo_n_body as_echo' 13008 fi 13009 export as_echo_body 13010 as_echo='sh -c $as_echo_body as_echo' 13011 fi 13012 13013 # The user is always right. 13014 if test "${PATH_SEPARATOR+set}" != set; then 13015 PATH_SEPARATOR=: 13016 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13017 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13018 PATH_SEPARATOR=';' 13019 } 13020 fi 13021 13022 13023 # IFS 13024 # We need space, tab and new line, in precisely that order. Quoting is 13025 # there to prevent editors from complaining about space-tab. 13026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 13027 # splitting by setting IFS to empty value.) 13028 IFS=" "" $as_nl" 13029 13030 # Find who we are. Look in the path if we contain no directory separator. 13031 as_myself= 13032 case $0 in #(( 13033 *[\\/]* ) as_myself=$0 ;; 13034 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13035 for as_dir in $PATH 13036 do 13037 IFS=$as_save_IFS 13038 test -z "$as_dir" && as_dir=. 13039 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13040 done 13041 IFS=$as_save_IFS 13042 13043 ;; 13044 esac 13045 # We did not find ourselves, most probably we were run as `sh COMMAND' 13046 # in which case we are not to be found in the path. 13047 if test "x$as_myself" = x; then 13048 as_myself=$0 13049 fi 13050 if test ! -f "$as_myself"; then 13051 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13052 exit 1 13053 fi 13054 13055 # Unset variables that we do not need and which cause bugs (e.g. in 13056 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13057 # suppresses any "Segmentation fault" message there. '((' could 13058 # trigger a bug in pdksh 5.2.14. 13059 for as_var in BASH_ENV ENV MAIL MAILPATH 13060 do eval test x\${$as_var+set} = xset \ 13061 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13062 done 13063 PS1='$ ' 13064 PS2='> ' 13065 PS4='+ ' 13066 13067 # NLS nuisances. 13068 LC_ALL=C 13069 export LC_ALL 13070 LANGUAGE=C 13071 export LANGUAGE 13072 13073 # CDPATH. 13074 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13075 13076 13077 # as_fn_error STATUS ERROR [LINENO LOG_FD] 13078 # ---------------------------------------- 13079 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13080 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13081 # script with STATUS, using 1 if that was 0. 13082 as_fn_error () 13083 { 13084 as_status=$1; test $as_status -eq 0 && as_status=1 13085 if test "$4"; then 13086 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13087 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13088 fi 13089 $as_echo "$as_me: error: $2" >&2 13090 as_fn_exit $as_status 13091 } # as_fn_error 13092 13093 13094 # as_fn_set_status STATUS 13095 # ----------------------- 13096 # Set $? to STATUS, without forking. 13097 as_fn_set_status () 13098 { 13099 return $1 13100 } # as_fn_set_status 13101 13102 # as_fn_exit STATUS 13103 # ----------------- 13104 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13105 as_fn_exit () 13106 { 13107 set +e 13108 as_fn_set_status $1 13109 exit $1 13110 } # as_fn_exit 13111 13112 # as_fn_unset VAR 13113 # --------------- 13114 # Portably unset VAR. 13115 as_fn_unset () 13116 { 13117 { eval $1=; unset $1;} 13118 } 13119 as_unset=as_fn_unset 13120 # as_fn_append VAR VALUE 13121 # ---------------------- 13122 # Append the text in VALUE to the end of the definition contained in VAR. Take 13123 # advantage of any shell optimizations that allow amortized linear growth over 13124 # repeated appends, instead of the typical quadratic growth present in naive 13125 # implementations. 13126 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13127 eval 'as_fn_append () 13128 { 13129 eval $1+=\$2 13130 }' 13131 else 13132 as_fn_append () 13133 { 13134 eval $1=\$$1\$2 13135 } 13136 fi # as_fn_append 13137 13138 # as_fn_arith ARG... 13139 # ------------------ 13140 # Perform arithmetic evaluation on the ARGs, and store the result in the 13141 # global $as_val. Take advantage of shells that can avoid forks. The arguments 13142 # must be portable across $(()) and expr. 13143 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13144 eval 'as_fn_arith () 13145 { 13146 as_val=$(( $* )) 13147 }' 13148 else 13149 as_fn_arith () 13150 { 13151 as_val=`expr "$@" || test $? -eq 1` 13152 } 13153 fi # as_fn_arith 13154 13155 13156 if expr a : '\(a\)' >/dev/null 2>&1 && 13157 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13158 as_expr=expr 13159 else 13160 as_expr=false 13161 fi 13162 13163 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13164 as_basename=basename 13165 else 13166 as_basename=false 13167 fi 13168 13169 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13170 as_dirname=dirname 13171 else 13172 as_dirname=false 13173 fi 13174 13175 as_me=`$as_basename -- "$0" || 13176 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13177 X"$0" : 'X\(//\)$' \| \ 13178 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13179 $as_echo X/"$0" | 13180 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13181 s//\1/ 13182 q 13183 } 13184 /^X\/\(\/\/\)$/{ 13185 s//\1/ 13186 q 13187 } 13188 /^X\/\(\/\).*/{ 13189 s//\1/ 13190 q 13191 } 13192 s/.*/./; q'` 13193 13194 # Avoid depending upon Character Ranges. 13195 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13196 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13197 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13198 as_cr_digits='0123456789' 13199 as_cr_alnum=$as_cr_Letters$as_cr_digits 13200 13201 ECHO_C= ECHO_N= ECHO_T= 13202 case `echo -n x` in #((((( 13203 -n*) 13204 case `echo 'xy\c'` in 13205 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13206 xy) ECHO_C='\c';; 13207 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13208 ECHO_T=' ';; 13209 esac;; 13210 *) 13211 ECHO_N='-n';; 13212 esac 13213 13214 rm -f conf$$ conf$$.exe conf$$.file 13215 if test -d conf$$.dir; then 13216 rm -f conf$$.dir/conf$$.file 13217 else 13218 rm -f conf$$.dir 13219 mkdir conf$$.dir 2>/dev/null 13220 fi 13221 if (echo >conf$$.file) 2>/dev/null; then 13222 if ln -s conf$$.file conf$$ 2>/dev/null; then 13223 as_ln_s='ln -s' 13224 # ... but there are two gotchas: 13225 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13226 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13227 # In both cases, we have to default to `cp -pR'. 13228 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13229 as_ln_s='cp -pR' 13230 elif ln conf$$.file conf$$ 2>/dev/null; then 13231 as_ln_s=ln 13232 else 13233 as_ln_s='cp -pR' 13234 fi 13235 else 13236 as_ln_s='cp -pR' 13237 fi 13238 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13239 rmdir conf$$.dir 2>/dev/null 13240 13241 13242 # as_fn_mkdir_p 13243 # ------------- 13244 # Create "$as_dir" as a directory, including parents if necessary. 13245 as_fn_mkdir_p () 13246 { 13247 13248 case $as_dir in #( 13249 -*) as_dir=./$as_dir;; 13250 esac 13251 test -d "$as_dir" || eval $as_mkdir_p || { 13252 as_dirs= 13253 while :; do 13254 case $as_dir in #( 13255 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13256 *) as_qdir=$as_dir;; 13257 esac 13258 as_dirs="'$as_qdir' $as_dirs" 13259 as_dir=`$as_dirname -- "$as_dir" || 13260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13261 X"$as_dir" : 'X\(//\)[^/]' \| \ 13262 X"$as_dir" : 'X\(//\)$' \| \ 13263 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13264 $as_echo X"$as_dir" | 13265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13266 s//\1/ 13267 q 13268 } 13269 /^X\(\/\/\)[^/].*/{ 13270 s//\1/ 13271 q 13272 } 13273 /^X\(\/\/\)$/{ 13274 s//\1/ 13275 q 13276 } 13277 /^X\(\/\).*/{ 13278 s//\1/ 13279 q 13280 } 13281 s/.*/./; q'` 13282 test -d "$as_dir" && break 13283 done 13284 test -z "$as_dirs" || eval "mkdir $as_dirs" 13285 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13286 13287 13288 } # as_fn_mkdir_p 13289 if mkdir -p . 2>/dev/null; then 13290 as_mkdir_p='mkdir -p "$as_dir"' 13291 else 13292 test -d ./-p && rmdir ./-p 13293 as_mkdir_p=false 13294 fi 13295 13296 13297 # as_fn_executable_p FILE 13298 # ----------------------- 13299 # Test if FILE is an executable regular file. 13300 as_fn_executable_p () 13301 { 13302 test -f "$1" && test -x "$1" 13303 } # as_fn_executable_p 13304 as_test_x='test -x' 13305 as_executable_p=as_fn_executable_p 13306 13307 # Sed expression to map a string onto a valid CPP name. 13308 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13309 13310 # Sed expression to map a string onto a valid variable name. 13311 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13312 13313 13314 exec 6>&1 13315 ## ----------------------------------- ## 13316 ## Main body of $CONFIG_STATUS script. ## 13317 ## ----------------------------------- ## 13318 _ASEOF 13319 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13320 13321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13322 # Save the log message, to keep $0 and so on meaningful, and to 13323 # report actual input values of CONFIG_FILES etc. instead of their 13324 # values after options handling. 13325 ac_log=" 13326 This file was extended by potrace $as_me 1.16, which was 13327 generated by GNU Autoconf 2.69. Invocation command line was 13328 13329 CONFIG_FILES = $CONFIG_FILES 13330 CONFIG_HEADERS = $CONFIG_HEADERS 13331 CONFIG_LINKS = $CONFIG_LINKS 13332 CONFIG_COMMANDS = $CONFIG_COMMANDS 13333 $ $0 $@ 13334 13335 on `(hostname || uname -n) 2>/dev/null | sed 1q` 13336 " 13337 13338 _ACEOF 13339 13340 case $ac_config_files in *" 13341 "*) set x $ac_config_files; shift; ac_config_files=$*;; 13342 esac 13343 13344 case $ac_config_headers in *" 13345 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13346 esac 13347 13348 13349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13350 # Files that config.status was made for. 13351 config_files="$ac_config_files" 13352 config_headers="$ac_config_headers" 13353 config_commands="$ac_config_commands" 13354 13355 _ACEOF 13356 13357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13358 ac_cs_usage="\ 13359 \`$as_me' instantiates files and other configuration actions 13360 from templates according to the current configuration. Unless the files 13361 and actions are specified as TAGs, all are instantiated by default. 13362 13363 Usage: $0 [OPTION]... [TAG]... 13364 13365 -h, --help print this help, then exit 13366 -V, --version print version number and configuration settings, then exit 13367 --config print configuration, then exit 13368 -q, --quiet, --silent 13369 do not print progress messages 13370 -d, --debug don't remove temporary files 13371 --recheck update $as_me by reconfiguring in the same conditions 13372 --file=FILE[:TEMPLATE] 13373 instantiate the configuration file FILE 13374 --header=FILE[:TEMPLATE] 13375 instantiate the configuration header FILE 13376 13377 Configuration files: 13378 $config_files 13379 13380 Configuration headers: 13381 $config_headers 13382 13383 Configuration commands: 13384 $config_commands 13385 13386 Report bugs to <selinger at users.sourceforge.net>." 13387 13388 _ACEOF 13389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13390 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13391 ac_cs_version="\\ 13392 potrace config.status 1.16 13393 configured by $0, generated by GNU Autoconf 2.69, 13394 with options \\"\$ac_cs_config\\" 13395 13396 Copyright (C) 2012 Free Software Foundation, Inc. 13397 This config.status script is free software; the Free Software Foundation 13398 gives unlimited permission to copy, distribute and modify it." 13399 13400 ac_pwd='$ac_pwd' 13401 srcdir='$srcdir' 13402 INSTALL='$INSTALL' 13403 MKDIR_P='$MKDIR_P' 13404 AWK='$AWK' 13405 test -n "\$AWK" || AWK=awk 13406 _ACEOF 13407 13408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13409 # The default lists apply if the user does not specify any file. 13410 ac_need_defaults=: 13411 while test $# != 0 13412 do 13413 case $1 in 13414 --*=?*) 13415 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13416 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13417 ac_shift=: 13418 ;; 13419 --*=) 13420 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13421 ac_optarg= 13422 ac_shift=: 13423 ;; 13424 *) 13425 ac_option=$1 13426 ac_optarg=$2 13427 ac_shift=shift 13428 ;; 13429 esac 13430 13431 case $ac_option in 13432 # Handling of the options. 13433 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13434 ac_cs_recheck=: ;; 13435 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13436 $as_echo "$ac_cs_version"; exit ;; 13437 --config | --confi | --conf | --con | --co | --c ) 13438 $as_echo "$ac_cs_config"; exit ;; 13439 --debug | --debu | --deb | --de | --d | -d ) 13440 debug=: ;; 13441 --file | --fil | --fi | --f ) 13442 $ac_shift 13443 case $ac_optarg in 13444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13445 '') as_fn_error $? "missing file argument" ;; 13446 esac 13447 as_fn_append CONFIG_FILES " '$ac_optarg'" 13448 ac_need_defaults=false;; 13449 --header | --heade | --head | --hea ) 13450 $ac_shift 13451 case $ac_optarg in 13452 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13453 esac 13454 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13455 ac_need_defaults=false;; 13456 --he | --h) 13457 # Conflict between --help and --header 13458 as_fn_error $? "ambiguous option: \`$1' 13459 Try \`$0 --help' for more information.";; 13460 --help | --hel | -h ) 13461 $as_echo "$ac_cs_usage"; exit ;; 13462 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13463 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13464 ac_cs_silent=: ;; 13465 13466 # This is an error. 13467 -*) as_fn_error $? "unrecognized option: \`$1' 13468 Try \`$0 --help' for more information." ;; 13469 13470 *) as_fn_append ac_config_targets " $1" 13471 ac_need_defaults=false ;; 13472 13473 esac 13474 shift 13475 done 13476 13477 ac_configure_extra_args= 13478 13479 if $ac_cs_silent; then 13480 exec 6>/dev/null 13481 ac_configure_extra_args="$ac_configure_extra_args --silent" 13482 fi 13483 13484 _ACEOF 13485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13486 if \$ac_cs_recheck; then 13487 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13488 shift 13489 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13490 CONFIG_SHELL='$SHELL' 13491 export CONFIG_SHELL 13492 exec "\$@" 13493 fi 13494 13495 _ACEOF 13496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13497 exec 5>>config.log 13498 { 13499 echo 13500 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13501 ## Running $as_me. ## 13502 _ASBOX 13503 $as_echo "$ac_log" 13504 } >&5 13505 13506 _ACEOF 13507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13508 # 13509 # INIT-COMMANDS 13510 # 13511 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13512 13513 13514 # The HP-UX ksh and POSIX shell print the target directory to stdout 13515 # if CDPATH is set. 13516 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13517 13518 sed_quote_subst='$sed_quote_subst' 13519 double_quote_subst='$double_quote_subst' 13520 delay_variable_subst='$delay_variable_subst' 13521 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13522 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13523 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13524 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13525 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13526 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13527 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13528 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13529 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13530 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 13531 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13532 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13533 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 13534 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13535 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13536 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13537 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13538 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13539 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13540 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13541 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13542 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13543 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13544 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13545 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13546 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13547 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13548 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13549 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13550 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13551 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13552 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13553 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13554 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 13555 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 13556 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13557 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13558 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13559 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13560 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 13561 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 13562 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 13563 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13564 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13565 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 13566 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13567 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13568 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13569 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13570 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13571 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13572 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13573 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13574 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13575 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13576 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13577 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13578 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 13579 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13580 lt_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"`' 13581 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 13582 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 13583 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 13584 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 13585 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13586 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13587 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13588 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13589 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13590 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13591 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13592 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13593 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 13594 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13595 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13596 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13597 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13598 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13599 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13600 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13601 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13602 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13603 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13604 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13605 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13606 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13607 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13608 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13609 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13610 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13611 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13612 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13613 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13614 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13615 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13616 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13617 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13618 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13619 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13620 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13621 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13622 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13623 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13624 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13625 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13626 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13627 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13628 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13629 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13630 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 13631 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13632 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13633 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13634 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13635 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13636 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13637 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13638 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13639 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13640 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13641 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13642 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13643 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13644 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13645 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13646 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13647 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13648 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13649 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 13650 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 13651 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13652 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13653 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13654 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13655 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13656 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13657 13658 LTCC='$LTCC' 13659 LTCFLAGS='$LTCFLAGS' 13660 compiler='$compiler_DEFAULT' 13661 13662 # A function that is used when there is no print builtin or printf. 13663 func_fallback_echo () 13664 { 13665 eval 'cat <<_LTECHO_EOF 13666 \$1 13667 _LTECHO_EOF' 13668 } 13669 13670 # Quote evaled strings. 13671 for var in AS \ 13672 DLLTOOL \ 13673 OBJDUMP \ 13674 SHELL \ 13675 ECHO \ 13676 PATH_SEPARATOR \ 13677 SED \ 13678 GREP \ 13679 EGREP \ 13680 FGREP \ 13681 LD \ 13682 NM \ 13683 LN_S \ 13684 lt_SP2NL \ 13685 lt_NL2SP \ 13686 reload_flag \ 13687 deplibs_check_method \ 13688 file_magic_cmd \ 13689 file_magic_glob \ 13690 want_nocaseglob \ 13691 sharedlib_from_linklib_cmd \ 13692 AR \ 13693 AR_FLAGS \ 13694 archiver_list_spec \ 13695 STRIP \ 13696 RANLIB \ 13697 CC \ 13698 CFLAGS \ 13699 compiler \ 13700 lt_cv_sys_global_symbol_pipe \ 13701 lt_cv_sys_global_symbol_to_cdecl \ 13702 lt_cv_sys_global_symbol_to_import \ 13703 lt_cv_sys_global_symbol_to_c_name_address \ 13704 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13705 lt_cv_nm_interface \ 13706 nm_file_list_spec \ 13707 lt_cv_truncate_bin \ 13708 lt_prog_compiler_no_builtin_flag \ 13709 lt_prog_compiler_pic \ 13710 lt_prog_compiler_wl \ 13711 lt_prog_compiler_static \ 13712 lt_cv_prog_compiler_c_o \ 13713 need_locks \ 13714 MANIFEST_TOOL \ 13715 DSYMUTIL \ 13716 NMEDIT \ 13717 LIPO \ 13718 OTOOL \ 13719 OTOOL64 \ 13720 shrext_cmds \ 13721 export_dynamic_flag_spec \ 13722 whole_archive_flag_spec \ 13723 compiler_needs_object \ 13724 with_gnu_ld \ 13725 allow_undefined_flag \ 13726 no_undefined_flag \ 13727 hardcode_libdir_flag_spec \ 13728 hardcode_libdir_separator \ 13729 exclude_expsyms \ 13730 include_expsyms \ 13731 file_list_spec \ 13732 variables_saved_for_relink \ 13733 libname_spec \ 13734 library_names_spec \ 13735 soname_spec \ 13736 install_override_mode \ 13737 finish_eval \ 13738 old_striplib \ 13739 striplib; do 13740 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13741 *[\\\\\\\`\\"\\\$]*) 13742 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13743 ;; 13744 *) 13745 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13746 ;; 13747 esac 13748 done 13749 13750 # Double-quote double-evaled strings. 13751 for var in reload_cmds \ 13752 old_postinstall_cmds \ 13753 old_postuninstall_cmds \ 13754 old_archive_cmds \ 13755 extract_expsyms_cmds \ 13756 old_archive_from_new_cmds \ 13757 old_archive_from_expsyms_cmds \ 13758 archive_cmds \ 13759 archive_expsym_cmds \ 13760 module_cmds \ 13761 module_expsym_cmds \ 13762 export_symbols_cmds \ 13763 prelink_cmds \ 13764 postlink_cmds \ 13765 postinstall_cmds \ 13766 postuninstall_cmds \ 13767 finish_cmds \ 13768 sys_lib_search_path_spec \ 13769 configure_time_dlsearch_path \ 13770 configure_time_lt_sys_library_path; do 13771 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13772 *[\\\\\\\`\\"\\\$]*) 13773 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 13774 ;; 13775 *) 13776 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13777 ;; 13778 esac 13779 done 13780 13781 ac_aux_dir='$ac_aux_dir' 13782 13783 # See if we are running on zsh, and set the options that allow our 13784 # commands through without removal of \ escapes INIT. 13785 if test -n "\${ZSH_VERSION+set}"; then 13786 setopt NO_GLOB_SUBST 13787 fi 13788 13789 13790 PACKAGE='$PACKAGE' 13791 VERSION='$VERSION' 13792 RM='$RM' 13793 ofile='$ofile' 13794 13795 13796 13797 13798 _ACEOF 13799 13800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13801 13802 # Handling of arguments. 13803 for ac_config_target in $ac_config_targets 13804 do 13805 case $ac_config_target in 13806 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13807 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13808 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13809 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13810 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13811 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13812 "check/Makefile") CONFIG_FILES="$CONFIG_FILES check/Makefile" ;; 13813 "doc/potrace.1") CONFIG_FILES="$CONFIG_FILES doc/potrace.1" ;; 13814 "doc/mkbitmap.1") CONFIG_FILES="$CONFIG_FILES doc/mkbitmap.1" ;; 13815 13816 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13817 esac 13818 done 13819 13820 13821 # If the user did not use the arguments to specify the items to instantiate, 13822 # then the envvar interface is used. Set only those that are not. 13823 # We use the long form for the default assignment because of an extremely 13824 # bizarre bug on SunOS 4.1.3. 13825 if $ac_need_defaults; then 13826 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13827 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13828 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13829 fi 13830 13831 # Have a temporary directory for convenience. Make it in the build tree 13832 # simply because there is no reason against having it here, and in addition, 13833 # creating and moving files from /tmp can sometimes cause problems. 13834 # Hook for its removal unless debugging. 13835 # Note that there is a small window in which the directory will not be cleaned: 13836 # after its creation but before its name has been assigned to `$tmp'. 13837 $debug || 13838 { 13839 tmp= ac_tmp= 13840 trap 'exit_status=$? 13841 : "${ac_tmp:=$tmp}" 13842 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13843 ' 0 13844 trap 'as_fn_exit 1' 1 2 13 15 13845 } 13846 # Create a (secure) tmp directory for tmp files. 13847 13848 { 13849 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13850 test -d "$tmp" 13851 } || 13852 { 13853 tmp=./conf$$-$RANDOM 13854 (umask 077 && mkdir "$tmp") 13855 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13856 ac_tmp=$tmp 13857 13858 # Set up the scripts for CONFIG_FILES section. 13859 # No need to generate them if there are no CONFIG_FILES. 13860 # This happens for instance with `./config.status config.h'. 13861 if test -n "$CONFIG_FILES"; then 13862 13863 13864 ac_cr=`echo X | tr X '\015'` 13865 # On cygwin, bash can eat \r inside `` if the user requested igncr. 13866 # But we know of no other shell where ac_cr would be empty at this 13867 # point, so we can use a bashism as a fallback. 13868 if test "x$ac_cr" = x; then 13869 eval ac_cr=\$\'\\r\' 13870 fi 13871 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13872 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13873 ac_cs_awk_cr='\\r' 13874 else 13875 ac_cs_awk_cr=$ac_cr 13876 fi 13877 13878 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13879 _ACEOF 13880 13881 13882 { 13883 echo "cat >conf$$subs.awk <<_ACEOF" && 13884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13885 echo "_ACEOF" 13886 } >conf$$subs.sh || 13887 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13888 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13889 ac_delim='%!_!# ' 13890 for ac_last_try in false false false false false :; do 13891 . ./conf$$subs.sh || 13892 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13893 13894 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13895 if test $ac_delim_n = $ac_delim_num; then 13896 break 13897 elif $ac_last_try; then 13898 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13899 else 13900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13901 fi 13902 done 13903 rm -f conf$$subs.sh 13904 13905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13906 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13907 _ACEOF 13908 sed -n ' 13909 h 13910 s/^/S["/; s/!.*/"]=/ 13911 p 13912 g 13913 s/^[^!]*!// 13914 :repl 13915 t repl 13916 s/'"$ac_delim"'$// 13917 t delim 13918 :nl 13919 h 13920 s/\(.\{148\}\)..*/\1/ 13921 t more1 13922 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13923 p 13924 n 13925 b repl 13926 :more1 13927 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13928 p 13929 g 13930 s/.\{148\}// 13931 t nl 13932 :delim 13933 h 13934 s/\(.\{148\}\)..*/\1/ 13935 t more2 13936 s/["\\]/\\&/g; s/^/"/; s/$/"/ 13937 p 13938 b 13939 :more2 13940 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13941 p 13942 g 13943 s/.\{148\}// 13944 t delim 13945 ' <conf$$subs.awk | sed ' 13946 /^[^""]/{ 13947 N 13948 s/\n// 13949 } 13950 ' >>$CONFIG_STATUS || ac_write_fail=1 13951 rm -f conf$$subs.awk 13952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13953 _ACAWK 13954 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13955 for (key in S) S_is_set[key] = 1 13956 FS = "" 13957 13958 } 13959 { 13960 line = $ 0 13961 nfields = split(line, field, "@") 13962 substed = 0 13963 len = length(field[1]) 13964 for (i = 2; i < nfields; i++) { 13965 key = field[i] 13966 keylen = length(key) 13967 if (S_is_set[key]) { 13968 value = S[key] 13969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13970 len += length(value) + length(field[++i]) 13971 substed = 1 13972 } else 13973 len += 1 + keylen 13974 } 13975 13976 print line 13977 } 13978 13979 _ACAWK 13980 _ACEOF 13981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13982 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13983 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13984 else 13985 cat 13986 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13987 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13988 _ACEOF 13989 13990 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13991 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13992 # trailing colons and then remove the whole line if VPATH becomes empty 13993 # (actually we leave an empty line to preserve line numbers). 13994 if test "x$srcdir" = x.; then 13995 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13996 h 13997 s/// 13998 s/^/:/ 13999 s/[ ]*$/:/ 14000 s/:\$(srcdir):/:/g 14001 s/:\${srcdir}:/:/g 14002 s/:@srcdir@:/:/g 14003 s/^:*// 14004 s/:*$// 14005 x 14006 s/\(=[ ]*\).*/\1/ 14007 G 14008 s/\n// 14009 s/^[^=]*=[ ]*$// 14010 }' 14011 fi 14012 14013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14014 fi # test -n "$CONFIG_FILES" 14015 14016 # Set up the scripts for CONFIG_HEADERS section. 14017 # No need to generate them if there are no CONFIG_HEADERS. 14018 # This happens for instance with `./config.status Makefile'. 14019 if test -n "$CONFIG_HEADERS"; then 14020 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14021 BEGIN { 14022 _ACEOF 14023 14024 # Transform confdefs.h into an awk script `defines.awk', embedded as 14025 # here-document in config.status, that substitutes the proper values into 14026 # config.h.in to produce config.h. 14027 14028 # Create a delimiter string that does not exist in confdefs.h, to ease 14029 # handling of long lines. 14030 ac_delim='%!_!# ' 14031 for ac_last_try in false false :; do 14032 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14033 if test -z "$ac_tt"; then 14034 break 14035 elif $ac_last_try; then 14036 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14037 else 14038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14039 fi 14040 done 14041 14042 # For the awk script, D is an array of macro values keyed by name, 14043 # likewise P contains macro parameters if any. Preserve backslash 14044 # newline sequences. 14045 14046 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14047 sed -n ' 14048 s/.\{148\}/&'"$ac_delim"'/g 14049 t rset 14050 :rset 14051 s/^[ ]*#[ ]*define[ ][ ]*/ / 14052 t def 14053 d 14054 :def 14055 s/\\$// 14056 t bsnl 14057 s/["\\]/\\&/g 14058 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14059 D["\1"]=" \3"/p 14060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14061 d 14062 :bsnl 14063 s/["\\]/\\&/g 14064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14065 D["\1"]=" \3\\\\\\n"\\/p 14066 t cont 14067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14068 t cont 14069 d 14070 :cont 14071 n 14072 s/.\{148\}/&'"$ac_delim"'/g 14073 t clear 14074 :clear 14075 s/\\$// 14076 t bsnlc 14077 s/["\\]/\\&/g; s/^/"/; s/$/"/p 14078 d 14079 :bsnlc 14080 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14081 b cont 14082 ' <confdefs.h | sed ' 14083 s/'"$ac_delim"'/"\\\ 14084 "/g' >>$CONFIG_STATUS || ac_write_fail=1 14085 14086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14087 for (key in D) D_is_set[key] = 1 14088 FS = "" 14089 } 14090 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14091 line = \$ 0 14092 split(line, arg, " ") 14093 if (arg[1] == "#") { 14094 defundef = arg[2] 14095 mac1 = arg[3] 14096 } else { 14097 defundef = substr(arg[1], 2) 14098 mac1 = arg[2] 14099 } 14100 split(mac1, mac2, "(") #) 14101 macro = mac2[1] 14102 prefix = substr(line, 1, index(line, defundef) - 1) 14103 if (D_is_set[macro]) { 14104 # Preserve the white space surrounding the "#". 14105 print prefix "define", macro P[macro] D[macro] 14106 next 14107 } else { 14108 # Replace #undef with comments. This is necessary, for example, 14109 # in the case of _POSIX_SOURCE, which is predefined and required 14110 # on some systems where configure will not decide to define it. 14111 if (defundef == "undef") { 14112 print "/*", prefix defundef, macro, "*/" 14113 next 14114 } 14115 } 14116 } 14117 { print } 14118 _ACAWK 14119 _ACEOF 14120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14121 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14122 fi # test -n "$CONFIG_HEADERS" 14123 14124 14125 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14126 shift 14127 for ac_tag 14128 do 14129 case $ac_tag in 14130 :[FHLC]) ac_mode=$ac_tag; continue;; 14131 esac 14132 case $ac_mode$ac_tag in 14133 :[FHL]*:*);; 14134 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14135 :[FH]-) ac_tag=-:-;; 14136 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14137 esac 14138 ac_save_IFS=$IFS 14139 IFS=: 14140 set x $ac_tag 14141 IFS=$ac_save_IFS 14142 shift 14143 ac_file=$1 14144 shift 14145 14146 case $ac_mode in 14147 :L) ac_source=$1;; 14148 :[FH]) 14149 ac_file_inputs= 14150 for ac_f 14151 do 14152 case $ac_f in 14153 -) ac_f="$ac_tmp/stdin";; 14154 *) # Look for the file first in the build tree, then in the source tree 14155 # (if the path is not absolute). The absolute path cannot be DOS-style, 14156 # because $ac_f cannot contain `:'. 14157 test -f "$ac_f" || 14158 case $ac_f in 14159 [\\/$]*) false;; 14160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14161 esac || 14162 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14163 esac 14164 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14165 as_fn_append ac_file_inputs " '$ac_f'" 14166 done 14167 14168 # Let's still pretend it is `configure' which instantiates (i.e., don't 14169 # use $as_me), people would be surprised to read: 14170 # /* config.h. Generated by config.status. */ 14171 configure_input='Generated from '` 14172 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14173 `' by configure.' 14174 if test x"$ac_file" != x-; then 14175 configure_input="$ac_file. $configure_input" 14176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14177 $as_echo "$as_me: creating $ac_file" >&6;} 14178 fi 14179 # Neutralize special characters interpreted by sed in replacement strings. 14180 case $configure_input in #( 14181 *\&* | *\|* | *\\* ) 14182 ac_sed_conf_input=`$as_echo "$configure_input" | 14183 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14184 *) ac_sed_conf_input=$configure_input;; 14185 esac 14186 14187 case $ac_tag in 14188 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14190 esac 14191 ;; 14192 esac 14193 14194 ac_dir=`$as_dirname -- "$ac_file" || 14195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14196 X"$ac_file" : 'X\(//\)[^/]' \| \ 14197 X"$ac_file" : 'X\(//\)$' \| \ 14198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14199 $as_echo X"$ac_file" | 14200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14201 s//\1/ 14202 q 14203 } 14204 /^X\(\/\/\)[^/].*/{ 14205 s//\1/ 14206 q 14207 } 14208 /^X\(\/\/\)$/{ 14209 s//\1/ 14210 q 14211 } 14212 /^X\(\/\).*/{ 14213 s//\1/ 14214 q 14215 } 14216 s/.*/./; q'` 14217 as_dir="$ac_dir"; as_fn_mkdir_p 14218 ac_builddir=. 14219 14220 case "$ac_dir" in 14221 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14222 *) 14223 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14224 # A ".." for each directory in $ac_dir_suffix. 14225 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14226 case $ac_top_builddir_sub in 14227 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14228 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14229 esac ;; 14230 esac 14231 ac_abs_top_builddir=$ac_pwd 14232 ac_abs_builddir=$ac_pwd$ac_dir_suffix 14233 # for backward compatibility: 14234 ac_top_builddir=$ac_top_build_prefix 14235 14236 case $srcdir in 14237 .) # We are building in place. 14238 ac_srcdir=. 14239 ac_top_srcdir=$ac_top_builddir_sub 14240 ac_abs_top_srcdir=$ac_pwd ;; 14241 [\\/]* | ?:[\\/]* ) # Absolute name. 14242 ac_srcdir=$srcdir$ac_dir_suffix; 14243 ac_top_srcdir=$srcdir 14244 ac_abs_top_srcdir=$srcdir ;; 14245 *) # Relative name. 14246 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14247 ac_top_srcdir=$ac_top_build_prefix$srcdir 14248 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14249 esac 14250 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14251 14252 14253 case $ac_mode in 14254 :F) 14255 # 14256 # CONFIG_FILE 14257 # 14258 14259 case $INSTALL in 14260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14261 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14262 esac 14263 ac_MKDIR_P=$MKDIR_P 14264 case $MKDIR_P in 14265 [\\/$]* | ?:[\\/]* ) ;; 14266 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14267 esac 14268 _ACEOF 14269 14270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14271 # If the template does not know about datarootdir, expand it. 14272 # FIXME: This hack should be removed a few years after 2.60. 14273 ac_datarootdir_hack=; ac_datarootdir_seen= 14274 ac_sed_dataroot=' 14275 /datarootdir/ { 14276 p 14277 q 14278 } 14279 /@datadir@/p 14280 /@docdir@/p 14281 /@infodir@/p 14282 /@localedir@/p 14283 /@mandir@/p' 14284 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14285 *datarootdir*) ac_datarootdir_seen=yes;; 14286 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14288 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14289 _ACEOF 14290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14291 ac_datarootdir_hack=' 14292 s&@datadir@&$datadir&g 14293 s&@docdir@&$docdir&g 14294 s&@infodir@&$infodir&g 14295 s&@localedir@&$localedir&g 14296 s&@mandir@&$mandir&g 14297 s&\\\${datarootdir}&$datarootdir&g' ;; 14298 esac 14299 _ACEOF 14300 14301 # Neutralize VPATH when `$srcdir' = `.'. 14302 # Shell code in configure.ac might set extrasub. 14303 # FIXME: do we really want to maintain this feature? 14304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14305 ac_sed_extra="$ac_vpsub 14306 $extrasub 14307 _ACEOF 14308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14309 :t 14310 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14311 s|@configure_input@|$ac_sed_conf_input|;t t 14312 s&@top_builddir@&$ac_top_builddir_sub&;t t 14313 s&@top_build_prefix@&$ac_top_build_prefix&;t t 14314 s&@srcdir@&$ac_srcdir&;t t 14315 s&@abs_srcdir@&$ac_abs_srcdir&;t t 14316 s&@top_srcdir@&$ac_top_srcdir&;t t 14317 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14318 s&@builddir@&$ac_builddir&;t t 14319 s&@abs_builddir@&$ac_abs_builddir&;t t 14320 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14321 s&@INSTALL@&$ac_INSTALL&;t t 14322 s&@MKDIR_P@&$ac_MKDIR_P&;t t 14323 $ac_datarootdir_hack 14324 " 14325 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14326 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14327 14328 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14329 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14330 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14331 "$ac_tmp/out"`; test -z "$ac_out"; } && 14332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14333 which seems to be undefined. Please make sure it is defined" >&5 14334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14335 which seems to be undefined. Please make sure it is defined" >&2;} 14336 14337 rm -f "$ac_tmp/stdin" 14338 case $ac_file in 14339 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14340 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14341 esac \ 14342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14343 ;; 14344 :H) 14345 # 14346 # CONFIG_HEADER 14347 # 14348 if test x"$ac_file" != x-; then 14349 { 14350 $as_echo "/* $configure_input */" \ 14351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14352 } >"$ac_tmp/config.h" \ 14353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14354 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14355 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14356 $as_echo "$as_me: $ac_file is unchanged" >&6;} 14357 else 14358 rm -f "$ac_file" 14359 mv "$ac_tmp/config.h" "$ac_file" \ 14360 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14361 fi 14362 else 14363 $as_echo "/* $configure_input */" \ 14364 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14365 || as_fn_error $? "could not create -" "$LINENO" 5 14366 fi 14367 # Compute "$ac_file"'s index in $config_headers. 14368 _am_arg="$ac_file" 14369 _am_stamp_count=1 14370 for _am_header in $config_headers :; do 14371 case $_am_header in 14372 $_am_arg | $_am_arg:* ) 14373 break ;; 14374 * ) 14375 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14376 esac 14377 done 14378 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14379 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14380 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14381 X"$_am_arg" : 'X\(//\)$' \| \ 14382 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14383 $as_echo X"$_am_arg" | 14384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14385 s//\1/ 14386 q 14387 } 14388 /^X\(\/\/\)[^/].*/{ 14389 s//\1/ 14390 q 14391 } 14392 /^X\(\/\/\)$/{ 14393 s//\1/ 14394 q 14395 } 14396 /^X\(\/\).*/{ 14397 s//\1/ 14398 q 14399 } 14400 s/.*/./; q'`/stamp-h$_am_stamp_count 14401 ;; 14402 14403 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14404 $as_echo "$as_me: executing $ac_file commands" >&6;} 14405 ;; 14406 esac 14407 14408 14409 case $ac_file$ac_mode in 14410 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14411 # Older Autoconf quotes --file arguments for eval, but not when files 14412 # are listed without --file. Let's play safe and only enable the eval 14413 # if we detect the quoting. 14414 # TODO: see whether this extra hack can be removed once we start 14415 # requiring Autoconf 2.70 or later. 14416 case $CONFIG_FILES in #( 14417 *\'*) : 14418 eval set x "$CONFIG_FILES" ;; #( 14419 *) : 14420 set x $CONFIG_FILES ;; #( 14421 *) : 14422 ;; 14423 esac 14424 shift 14425 # Used to flag and report bootstrapping failures. 14426 am_rc=0 14427 for am_mf 14428 do 14429 # Strip MF so we end up with the name of the file. 14430 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14431 # Check whether this is an Automake generated Makefile which includes 14432 # dependency-tracking related rules and includes. 14433 # Grep'ing the whole file directly is not great: AIX grep has a line 14434 # limit of 2048, but all sed's we know have understand at least 4000. 14435 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14436 || continue 14437 am_dirpart=`$as_dirname -- "$am_mf" || 14438 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14439 X"$am_mf" : 'X\(//\)[^/]' \| \ 14440 X"$am_mf" : 'X\(//\)$' \| \ 14441 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14442 $as_echo X"$am_mf" | 14443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14444 s//\1/ 14445 q 14446 } 14447 /^X\(\/\/\)[^/].*/{ 14448 s//\1/ 14449 q 14450 } 14451 /^X\(\/\/\)$/{ 14452 s//\1/ 14453 q 14454 } 14455 /^X\(\/\).*/{ 14456 s//\1/ 14457 q 14458 } 14459 s/.*/./; q'` 14460 am_filepart=`$as_basename -- "$am_mf" || 14461 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14462 X"$am_mf" : 'X\(//\)$' \| \ 14463 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14464 $as_echo X/"$am_mf" | 14465 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14466 s//\1/ 14467 q 14468 } 14469 /^X\/\(\/\/\)$/{ 14470 s//\1/ 14471 q 14472 } 14473 /^X\/\(\/\).*/{ 14474 s//\1/ 14475 q 14476 } 14477 s/.*/./; q'` 14478 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14479 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14480 | $MAKE -f - am--depfiles" >&5 14481 (cd "$am_dirpart" \ 14482 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14483 | $MAKE -f - am--depfiles) >&5 2>&5 14484 ac_status=$? 14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14486 (exit $ac_status); } || am_rc=$? 14487 done 14488 if test $am_rc -ne 0; then 14489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14491 as_fn_error $? "Something went wrong bootstrapping makefile fragments 14492 for automatic dependency tracking. Try re-running configure with the 14493 '--disable-dependency-tracking' option to at least be able to build 14494 the package (albeit without support for automatic dependency tracking). 14495 See \`config.log' for more details" "$LINENO" 5; } 14496 fi 14497 { am_dirpart=; unset am_dirpart;} 14498 { am_filepart=; unset am_filepart;} 14499 { am_mf=; unset am_mf;} 14500 { am_rc=; unset am_rc;} 14501 rm -f conftest-deps.mk 14502 } 14503 ;; 14504 "libtool":C) 14505 14506 # See if we are running on zsh, and set the options that allow our 14507 # commands through without removal of \ escapes. 14508 if test -n "${ZSH_VERSION+set}"; then 14509 setopt NO_GLOB_SUBST 14510 fi 14511 14512 cfgfile=${ofile}T 14513 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14514 $RM "$cfgfile" 14515 14516 cat <<_LT_EOF >> "$cfgfile" 14517 #! $SHELL 14518 # Generated automatically by $as_me ($PACKAGE) $VERSION 14519 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 14520 14521 # Provide generalized library-building support services. 14522 # Written by Gordon Matzigkeit, 1996 14523 14524 # Copyright (C) 2014 Free Software Foundation, Inc. 14525 # This is free software; see the source for copying conditions. There is NO 14526 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 14527 14528 # GNU Libtool is free software; you can redistribute it and/or modify 14529 # it under the terms of the GNU General Public License as published by 14530 # the Free Software Foundation; either version 2 of of the License, or 14531 # (at your option) any later version. 14532 # 14533 # As a special exception to the GNU General Public License, if you 14534 # distribute this file as part of a program or library that is built 14535 # using GNU Libtool, you may include this file under the same 14536 # distribution terms that you use for the rest of that program. 14537 # 14538 # GNU Libtool is distributed in the hope that it will be useful, but 14539 # WITHOUT ANY WARRANTY; without even the implied warranty of 14540 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14541 # GNU General Public License for more details. 14542 # 14543 # You should have received a copy of the GNU General Public License 14544 # along with this program. If not, see <http://www.gnu.org/licenses/>. 14545 14546 14547 # The names of the tagged configurations supported by this script. 14548 available_tags='' 14549 14550 # Configured defaults for sys_lib_dlsearch_path munging. 14551 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 14552 14553 # ### BEGIN LIBTOOL CONFIG 14554 14555 # Assembler program. 14556 AS=$lt_AS 14557 14558 # DLL creation program. 14559 DLLTOOL=$lt_DLLTOOL 14560 14561 # Object dumper program. 14562 OBJDUMP=$lt_OBJDUMP 14563 14564 # Which release of libtool.m4 was used? 14565 macro_version=$macro_version 14566 macro_revision=$macro_revision 14567 14568 # Whether or not to build shared libraries. 14569 build_libtool_libs=$enable_shared 14570 14571 # Whether or not to build static libraries. 14572 build_old_libs=$enable_static 14573 14574 # What type of objects to build. 14575 pic_mode=$pic_mode 14576 14577 # Whether or not to optimize for fast installation. 14578 fast_install=$enable_fast_install 14579 14580 # Shared archive member basename,for filename based shared library versioning on AIX. 14581 shared_archive_member_spec=$shared_archive_member_spec 14582 14583 # Shell to use when invoking shell scripts. 14584 SHELL=$lt_SHELL 14585 14586 # An echo program that protects backslashes. 14587 ECHO=$lt_ECHO 14588 14589 # The PATH separator for the build system. 14590 PATH_SEPARATOR=$lt_PATH_SEPARATOR 14591 14592 # The host system. 14593 host_alias=$host_alias 14594 host=$host 14595 host_os=$host_os 14596 14597 # The build system. 14598 build_alias=$build_alias 14599 build=$build 14600 build_os=$build_os 14601 14602 # A sed program that does not truncate output. 14603 SED=$lt_SED 14604 14605 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 14606 Xsed="\$SED -e 1s/^X//" 14607 14608 # A grep program that handles long lines. 14609 GREP=$lt_GREP 14610 14611 # An ERE matcher. 14612 EGREP=$lt_EGREP 14613 14614 # A literal string matcher. 14615 FGREP=$lt_FGREP 14616 14617 # A BSD- or MS-compatible name lister. 14618 NM=$lt_NM 14619 14620 # Whether we need soft or hard links. 14621 LN_S=$lt_LN_S 14622 14623 # What is the maximum length of a command? 14624 max_cmd_len=$max_cmd_len 14625 14626 # Object file suffix (normally "o"). 14627 objext=$ac_objext 14628 14629 # Executable file suffix (normally ""). 14630 exeext=$exeext 14631 14632 # whether the shell understands "unset". 14633 lt_unset=$lt_unset 14634 14635 # turn spaces into newlines. 14636 SP2NL=$lt_lt_SP2NL 14637 14638 # turn newlines into spaces. 14639 NL2SP=$lt_lt_NL2SP 14640 14641 # convert \$build file names to \$host format. 14642 to_host_file_cmd=$lt_cv_to_host_file_cmd 14643 14644 # convert \$build files to toolchain format. 14645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 14646 14647 # Method to check whether dependent libraries are shared objects. 14648 deplibs_check_method=$lt_deplibs_check_method 14649 14650 # Command to use when deplibs_check_method = "file_magic". 14651 file_magic_cmd=$lt_file_magic_cmd 14652 14653 # How to find potential files when deplibs_check_method = "file_magic". 14654 file_magic_glob=$lt_file_magic_glob 14655 14656 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 14657 want_nocaseglob=$lt_want_nocaseglob 14658 14659 # Command to associate shared and link libraries. 14660 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 14661 14662 # The archiver. 14663 AR=$lt_AR 14664 14665 # Flags to create an archive. 14666 AR_FLAGS=$lt_AR_FLAGS 14667 14668 # How to feed a file listing to the archiver. 14669 archiver_list_spec=$lt_archiver_list_spec 14670 14671 # A symbol stripping program. 14672 STRIP=$lt_STRIP 14673 14674 # Commands used to install an old-style archive. 14675 RANLIB=$lt_RANLIB 14676 old_postinstall_cmds=$lt_old_postinstall_cmds 14677 old_postuninstall_cmds=$lt_old_postuninstall_cmds 14678 14679 # Whether to use a lock for old archive extraction. 14680 lock_old_archive_extraction=$lock_old_archive_extraction 14681 14682 # A C compiler. 14683 LTCC=$lt_CC 14684 14685 # LTCC compiler flags. 14686 LTCFLAGS=$lt_CFLAGS 14687 14688 # Take the output of nm and produce a listing of raw symbols and C names. 14689 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14690 14691 # Transform the output of nm in a proper C declaration. 14692 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14693 14694 # Transform the output of nm into a list of symbols to manually relocate. 14695 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 14696 14697 # Transform the output of nm in a C name address pair. 14698 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14699 14700 # Transform the output of nm in a C name address pair when lib prefix is needed. 14701 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14702 14703 # The name lister interface. 14704 nm_interface=$lt_lt_cv_nm_interface 14705 14706 # Specify filename containing input files for \$NM. 14707 nm_file_list_spec=$lt_nm_file_list_spec 14708 14709 # The root where to search for dependent libraries,and where our libraries should be installed. 14710 lt_sysroot=$lt_sysroot 14711 14712 # Command to truncate a binary pipe. 14713 lt_truncate_bin=$lt_lt_cv_truncate_bin 14714 14715 # The name of the directory that contains temporary libtool files. 14716 objdir=$objdir 14717 14718 # Used to examine libraries when file_magic_cmd begins with "file". 14719 MAGIC_CMD=$MAGIC_CMD 14720 14721 # Must we lock files when doing compilation? 14722 need_locks=$lt_need_locks 14723 14724 # Manifest tool. 14725 MANIFEST_TOOL=$lt_MANIFEST_TOOL 14726 14727 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14728 DSYMUTIL=$lt_DSYMUTIL 14729 14730 # Tool to change global to local symbols on Mac OS X. 14731 NMEDIT=$lt_NMEDIT 14732 14733 # Tool to manipulate fat objects and archives on Mac OS X. 14734 LIPO=$lt_LIPO 14735 14736 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 14737 OTOOL=$lt_OTOOL 14738 14739 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14740 OTOOL64=$lt_OTOOL64 14741 14742 # Old archive suffix (normally "a"). 14743 libext=$libext 14744 14745 # Shared library suffix (normally ".so"). 14746 shrext_cmds=$lt_shrext_cmds 14747 14748 # The commands to extract the exported symbol list from a shared archive. 14749 extract_expsyms_cmds=$lt_extract_expsyms_cmds 14750 14751 # Variables whose values should be saved in libtool wrapper scripts and 14752 # restored at link time. 14753 variables_saved_for_relink=$lt_variables_saved_for_relink 14754 14755 # Do we need the "lib" prefix for modules? 14756 need_lib_prefix=$need_lib_prefix 14757 14758 # Do we need a version for libraries? 14759 need_version=$need_version 14760 14761 # Library versioning type. 14762 version_type=$version_type 14763 14764 # Shared library runtime path variable. 14765 runpath_var=$runpath_var 14766 14767 # Shared library path variable. 14768 shlibpath_var=$shlibpath_var 14769 14770 # Is shlibpath searched before the hard-coded library search path? 14771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14772 14773 # Format of library name prefix. 14774 libname_spec=$lt_libname_spec 14775 14776 # List of archive names. First name is the real one, the rest are links. 14777 # The last name is the one that the linker finds with -lNAME 14778 library_names_spec=$lt_library_names_spec 14779 14780 # The coded name of the library, if different from the real name. 14781 soname_spec=$lt_soname_spec 14782 14783 # Permission mode override for installation of shared libraries. 14784 install_override_mode=$lt_install_override_mode 14785 14786 # Command to use after installation of a shared archive. 14787 postinstall_cmds=$lt_postinstall_cmds 14788 14789 # Command to use after uninstallation of a shared archive. 14790 postuninstall_cmds=$lt_postuninstall_cmds 14791 14792 # Commands used to finish a libtool library installation in a directory. 14793 finish_cmds=$lt_finish_cmds 14794 14795 # As "finish_cmds", except a single script fragment to be evaled but 14796 # not shown. 14797 finish_eval=$lt_finish_eval 14798 14799 # Whether we should hardcode library paths into libraries. 14800 hardcode_into_libs=$hardcode_into_libs 14801 14802 # Compile-time system search path for libraries. 14803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14804 14805 # Detected run-time system search path for libraries. 14806 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 14807 14808 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 14809 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 14810 14811 # Whether dlopen is supported. 14812 dlopen_support=$enable_dlopen 14813 14814 # Whether dlopen of programs is supported. 14815 dlopen_self=$enable_dlopen_self 14816 14817 # Whether dlopen of statically linked programs is supported. 14818 dlopen_self_static=$enable_dlopen_self_static 14819 14820 # Commands to strip libraries. 14821 old_striplib=$lt_old_striplib 14822 striplib=$lt_striplib 14823 14824 14825 # The linker used to build libraries. 14826 LD=$lt_LD 14827 14828 # How to create reloadable object files. 14829 reload_flag=$lt_reload_flag 14830 reload_cmds=$lt_reload_cmds 14831 14832 # Commands used to build an old-style archive. 14833 old_archive_cmds=$lt_old_archive_cmds 14834 14835 # A language specific compiler. 14836 CC=$lt_compiler 14837 14838 # Is the compiler the GNU compiler? 14839 with_gcc=$GCC 14840 14841 # Compiler flag to turn off builtin functions. 14842 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14843 14844 # Additional compiler flags for building library objects. 14845 pic_flag=$lt_lt_prog_compiler_pic 14846 14847 # How to pass a linker flag through the compiler. 14848 wl=$lt_lt_prog_compiler_wl 14849 14850 # Compiler flag to prevent dynamic linking. 14851 link_static_flag=$lt_lt_prog_compiler_static 14852 14853 # Does compiler simultaneously support -c and -o options? 14854 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14855 14856 # Whether or not to add -lc for building shared libraries. 14857 build_libtool_need_lc=$archive_cmds_need_lc 14858 14859 # Whether or not to disallow shared libs when runtime libs are static. 14860 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14861 14862 # Compiler flag to allow reflexive dlopens. 14863 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14864 14865 # Compiler flag to generate shared objects directly from archives. 14866 whole_archive_flag_spec=$lt_whole_archive_flag_spec 14867 14868 # Whether the compiler copes with passing no objects directly. 14869 compiler_needs_object=$lt_compiler_needs_object 14870 14871 # Create an old-style archive from a shared archive. 14872 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14873 14874 # Create a temporary old-style archive to link instead of a shared archive. 14875 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14876 14877 # Commands used to build a shared archive. 14878 archive_cmds=$lt_archive_cmds 14879 archive_expsym_cmds=$lt_archive_expsym_cmds 14880 14881 # Commands used to build a loadable module if different from building 14882 # a shared archive. 14883 module_cmds=$lt_module_cmds 14884 module_expsym_cmds=$lt_module_expsym_cmds 14885 14886 # Whether we are building with GNU ld or not. 14887 with_gnu_ld=$lt_with_gnu_ld 14888 14889 # Flag that allows shared libraries with undefined symbols to be built. 14890 allow_undefined_flag=$lt_allow_undefined_flag 14891 14892 # Flag that enforces no undefined symbols. 14893 no_undefined_flag=$lt_no_undefined_flag 14894 14895 # Flag to hardcode \$libdir into a binary during linking. 14896 # This must work even if \$libdir does not exist 14897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14898 14899 # Whether we need a single "-rpath" flag with a separated argument. 14900 hardcode_libdir_separator=$lt_hardcode_libdir_separator 14901 14902 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14903 # DIR into the resulting binary. 14904 hardcode_direct=$hardcode_direct 14905 14906 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 14907 # DIR into the resulting binary and the resulting library dependency is 14908 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 14909 # library is relocated. 14910 hardcode_direct_absolute=$hardcode_direct_absolute 14911 14912 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14913 # into the resulting binary. 14914 hardcode_minus_L=$hardcode_minus_L 14915 14916 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14917 # into the resulting binary. 14918 hardcode_shlibpath_var=$hardcode_shlibpath_var 14919 14920 # Set to "yes" if building a shared library automatically hardcodes DIR 14921 # into the library and all subsequent libraries and executables linked 14922 # against it. 14923 hardcode_automatic=$hardcode_automatic 14924 14925 # Set to yes if linker adds runtime paths of dependent libraries 14926 # to runtime path list. 14927 inherit_rpath=$inherit_rpath 14928 14929 # Whether libtool must link a program against all its dependency libraries. 14930 link_all_deplibs=$link_all_deplibs 14931 14932 # Set to "yes" if exported symbols are required. 14933 always_export_symbols=$always_export_symbols 14934 14935 # The commands to list exported symbols. 14936 export_symbols_cmds=$lt_export_symbols_cmds 14937 14938 # Symbols that should not be listed in the preloaded symbols. 14939 exclude_expsyms=$lt_exclude_expsyms 14940 14941 # Symbols that must always be exported. 14942 include_expsyms=$lt_include_expsyms 14943 14944 # Commands necessary for linking programs (against libraries) with templates. 14945 prelink_cmds=$lt_prelink_cmds 14946 14947 # Commands necessary for finishing linking programs. 14948 postlink_cmds=$lt_postlink_cmds 14949 14950 # Specify filename containing input files. 14951 file_list_spec=$lt_file_list_spec 14952 14953 # How to hardcode a shared library path into an executable. 14954 hardcode_action=$hardcode_action 14955 14956 # ### END LIBTOOL CONFIG 14957 14958 _LT_EOF 14959 14960 cat <<'_LT_EOF' >> "$cfgfile" 14961 14962 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 14963 14964 # func_munge_path_list VARIABLE PATH 14965 # ----------------------------------- 14966 # VARIABLE is name of variable containing _space_ separated list of 14967 # directories to be munged by the contents of PATH, which is string 14968 # having a format: 14969 # "DIR[:DIR]:" 14970 # string "DIR[ DIR]" will be prepended to VARIABLE 14971 # ":DIR[:DIR]" 14972 # string "DIR[ DIR]" will be appended to VARIABLE 14973 # "DIRP[:DIRP]::[DIRA:]DIRA" 14974 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 14975 # "DIRA[ DIRA]" will be appended to VARIABLE 14976 # "DIR[:DIR]" 14977 # VARIABLE will be replaced by "DIR[ DIR]" 14978 func_munge_path_list () 14979 { 14980 case x$2 in 14981 x) 14982 ;; 14983 *:) 14984 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 14985 ;; 14986 x:*) 14987 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 14988 ;; 14989 *::*) 14990 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 14991 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 14992 ;; 14993 *) 14994 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 14995 ;; 14996 esac 14997 } 14998 14999 15000 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 15001 func_cc_basename () 15002 { 15003 for cc_temp in $*""; do 15004 case $cc_temp in 15005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 15006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 15007 \-*) ;; 15008 *) break;; 15009 esac 15010 done 15011 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 15012 } 15013 15014 15015 # ### END FUNCTIONS SHARED WITH CONFIGURE 15016 15017 _LT_EOF 15018 15019 case $host_os in 15020 aix3*) 15021 cat <<\_LT_EOF >> "$cfgfile" 15022 # AIX sometimes has problems with the GCC collect2 program. For some 15023 # reason, if we set the COLLECT_NAMES environment variable, the problems 15024 # vanish in a puff of smoke. 15025 if test set != "${COLLECT_NAMES+set}"; then 15026 COLLECT_NAMES= 15027 export COLLECT_NAMES 15028 fi 15029 _LT_EOF 15030 ;; 15031 esac 15032 15033 15034 ltmain=$ac_aux_dir/ltmain.sh 15035 15036 15037 # We use sed instead of cat because bash on DJGPP gets confused if 15038 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15039 # text mode, it properly converts lines to CR/LF. This bash problem 15040 # is reportedly fixed, but why not run on old versions too? 15041 sed '$q' "$ltmain" >> "$cfgfile" \ 15042 || (rm -f "$cfgfile"; exit 1) 15043 15044 mv -f "$cfgfile" "$ofile" || 15045 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15046 chmod +x "$ofile" 15047 15048 ;; 15049 15050 esac 15051 done # for ac_tag 15052 15053 15054 as_fn_exit 0 15055 _ACEOF 15056 ac_clean_files=$ac_clean_files_save 15057 15058 test $ac_write_fail = 0 || 15059 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15060 15061 15062 # configure is writing to config.log, and then calls config.status. 15063 # config.status does its own redirection, appending to config.log. 15064 # Unfortunately, on DOS this fails, as config.log is still kept open 15065 # by configure, so config.status won't be able to write to it; its 15066 # output is simply discarded. So we exec the FD to /dev/null, 15067 # effectively closing config.log, so it can be properly (re)opened and 15068 # appended to by config.status. When coming back to configure, we 15069 # need to make the FD available again. 15070 if test "$no_create" != yes; then 15071 ac_cs_success=: 15072 ac_config_status_args= 15073 test "$silent" = yes && 15074 ac_config_status_args="$ac_config_status_args --quiet" 15075 exec 5>/dev/null 15076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15077 exec 5>>config.log 15078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15079 # would make configure fail if this is the last instruction. 15080 $ac_cs_success || as_fn_exit 1 15081 fi 15082 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15084 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15085 fi 15086