1 #! /bin/sh 2 # From configure.ac Revision: 1.3 . 3 # Guess values for system-dependent variables and create Makefiles. 4 # Generated by GNU Autoconf 2.68 for libcap-ng 0.7. 5 # 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 9 # Foundation, Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27 else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33 esac 34 fi 35 36 37 as_nl=' 38 ' 39 export as_nl 40 # Printing a long string crashes Solaris 7 /usr/bin/printf. 41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44 # Prefer a ksh shell builtin over an external printf program on Solaris, 45 # but without wasting forks for bash or zsh. 46 if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53 else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73 fi 74 75 # The user is always right. 76 if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82 fi 83 84 85 # IFS 86 # We need space, tab and new line, in precisely that order. Quoting is 87 # there to prevent editors from complaining about space-tab. 88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 89 # splitting by setting IFS to empty value.) 90 IFS=" "" $as_nl" 91 92 # Find who we are. Look in the path if we contain no directory separator. 93 as_myself= 94 case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97 for as_dir in $PATH 98 do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103 IFS=$as_save_IFS 104 105 ;; 106 esac 107 # We did not find ourselves, most probably we were run as `sh COMMAND' 108 # in which case we are not to be found in the path. 109 if test "x$as_myself" = x; then 110 as_myself=$0 111 fi 112 if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115 fi 116 117 # Unset variables that we do not need and which cause bugs (e.g. in 118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119 # suppresses any "Segmentation fault" message there. '((' could 120 # trigger a bug in pdksh 5.2.14. 121 for as_var in BASH_ENV ENV MAIL MAILPATH 122 do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124 done 125 PS1='$ ' 126 PS2='> ' 127 PS4='+ ' 128 129 # NLS nuisances. 130 LC_ALL=C 131 export LC_ALL 132 LANGUAGE=C 133 export LANGUAGE 134 135 # CDPATH. 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138 if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146 else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152 esac 153 fi 154 " 155 as_required="as_fn_return () { (exit \$1); } 156 as_fn_success () { as_fn_return 0; } 157 as_fn_failure () { as_fn_return 1; } 158 as_fn_ret_success () { return 0; } 159 as_fn_ret_failure () { return 1; } 160 161 exitcode=0 162 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168 else 169 exitcode=1; echo positional parameters were not saved. 170 fi 171 test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 PATH=/empty FPATH=/empty; export PATH FPATH 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 184 test \$(( 1 + 1 )) = 2 || exit 1" 185 if (eval "$as_required") 2>/dev/null; then : 186 as_have_required=yes 187 else 188 as_have_required=no 189 fi 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 192 else 193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194 as_found=false 195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 196 do 197 IFS=$as_save_IFS 198 test -z "$as_dir" && as_dir=. 199 as_found=: 200 case $as_dir in #( 201 /*) 202 for as_base in sh bash ksh sh5; do 203 # Try only shells that exist, to save several forks. 204 as_shell=$as_dir/$as_base 205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 CONFIG_SHELL=$as_shell as_have_required=yes 208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 209 break 2 210 fi 211 fi 212 done;; 213 esac 214 as_found=false 215 done 216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 218 CONFIG_SHELL=$SHELL as_have_required=yes 219 fi; } 220 IFS=$as_save_IFS 221 222 223 if test "x$CONFIG_SHELL" != x; then : 224 # We cannot yet assume a decent shell, so we have to provide a 225 # neutralization value for shells without unset; and this also 226 # works around shells that cannot unset nonexistent variables. 227 # Preserve -v and -x to the replacement shell. 228 BASH_ENV=/dev/null 229 ENV=/dev/null 230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 231 export CONFIG_SHELL 232 case $- in # (((( 233 *v*x* | *x*v* ) as_opts=-vx ;; 234 *v* ) as_opts=-v ;; 235 *x* ) as_opts=-x ;; 236 * ) as_opts= ;; 237 esac 238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 239 fi 240 241 if test x$as_have_required = xno; then : 242 $as_echo "$0: This script requires a shell more modern than all" 243 $as_echo "$0: the shells that I found on your system." 244 if test x${ZSH_VERSION+set} = xset ; then 245 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 246 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 247 else 248 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 249 $0: including any error possibly output before this 250 $0: message. Then install a modern shell, or manually run 251 $0: the script under such a shell if you do have one." 252 fi 253 exit 1 254 fi 255 fi 256 fi 257 SHELL=${CONFIG_SHELL-/bin/sh} 258 export SHELL 259 # Unset more variables known to interfere with behavior of common tools. 260 CLICOLOR_FORCE= GREP_OPTIONS= 261 unset CLICOLOR_FORCE GREP_OPTIONS 262 263 ## --------------------- ## 264 ## M4sh Shell Functions. ## 265 ## --------------------- ## 266 # as_fn_unset VAR 267 # --------------- 268 # Portably unset VAR. 269 as_fn_unset () 270 { 271 { eval $1=; unset $1;} 272 } 273 as_unset=as_fn_unset 274 275 # as_fn_set_status STATUS 276 # ----------------------- 277 # Set $? to STATUS, without forking. 278 as_fn_set_status () 279 { 280 return $1 281 } # as_fn_set_status 282 283 # as_fn_exit STATUS 284 # ----------------- 285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 286 as_fn_exit () 287 { 288 set +e 289 as_fn_set_status $1 290 exit $1 291 } # as_fn_exit 292 293 # as_fn_mkdir_p 294 # ------------- 295 # Create "$as_dir" as a directory, including parents if necessary. 296 as_fn_mkdir_p () 297 { 298 299 case $as_dir in #( 300 -*) as_dir=./$as_dir;; 301 esac 302 test -d "$as_dir" || eval $as_mkdir_p || { 303 as_dirs= 304 while :; do 305 case $as_dir in #( 306 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 307 *) as_qdir=$as_dir;; 308 esac 309 as_dirs="'$as_qdir' $as_dirs" 310 as_dir=`$as_dirname -- "$as_dir" || 311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 312 X"$as_dir" : 'X\(//\)[^/]' \| \ 313 X"$as_dir" : 'X\(//\)$' \| \ 314 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 315 $as_echo X"$as_dir" | 316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 317 s//\1/ 318 q 319 } 320 /^X\(\/\/\)[^/].*/{ 321 s//\1/ 322 q 323 } 324 /^X\(\/\/\)$/{ 325 s//\1/ 326 q 327 } 328 /^X\(\/\).*/{ 329 s//\1/ 330 q 331 } 332 s/.*/./; q'` 333 test -d "$as_dir" && break 334 done 335 test -z "$as_dirs" || eval "mkdir $as_dirs" 336 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 337 338 339 } # as_fn_mkdir_p 340 # as_fn_append VAR VALUE 341 # ---------------------- 342 # Append the text in VALUE to the end of the definition contained in VAR. Take 343 # advantage of any shell optimizations that allow amortized linear growth over 344 # repeated appends, instead of the typical quadratic growth present in naive 345 # implementations. 346 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 347 eval 'as_fn_append () 348 { 349 eval $1+=\$2 350 }' 351 else 352 as_fn_append () 353 { 354 eval $1=\$$1\$2 355 } 356 fi # as_fn_append 357 358 # as_fn_arith ARG... 359 # ------------------ 360 # Perform arithmetic evaluation on the ARGs, and store the result in the 361 # global $as_val. Take advantage of shells that can avoid forks. The arguments 362 # must be portable across $(()) and expr. 363 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 364 eval 'as_fn_arith () 365 { 366 as_val=$(( $* )) 367 }' 368 else 369 as_fn_arith () 370 { 371 as_val=`expr "$@" || test $? -eq 1` 372 } 373 fi # as_fn_arith 374 375 376 # as_fn_error STATUS ERROR [LINENO LOG_FD] 377 # ---------------------------------------- 378 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 379 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 380 # script with STATUS, using 1 if that was 0. 381 as_fn_error () 382 { 383 as_status=$1; test $as_status -eq 0 && as_status=1 384 if test "$4"; then 385 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 386 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 387 fi 388 $as_echo "$as_me: error: $2" >&2 389 as_fn_exit $as_status 390 } # as_fn_error 391 392 if expr a : '\(a\)' >/dev/null 2>&1 && 393 test "X`expr 00001 : '.*\(...\)'`" = X001; then 394 as_expr=expr 395 else 396 as_expr=false 397 fi 398 399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 400 as_basename=basename 401 else 402 as_basename=false 403 fi 404 405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 406 as_dirname=dirname 407 else 408 as_dirname=false 409 fi 410 411 as_me=`$as_basename -- "$0" || 412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 413 X"$0" : 'X\(//\)$' \| \ 414 X"$0" : 'X\(/\)' \| . 2>/dev/null || 415 $as_echo X/"$0" | 416 sed '/^.*\/\([^/][^/]*\)\/*$/{ 417 s//\1/ 418 q 419 } 420 /^X\/\(\/\/\)$/{ 421 s//\1/ 422 q 423 } 424 /^X\/\(\/\).*/{ 425 s//\1/ 426 q 427 } 428 s/.*/./; q'` 429 430 # Avoid depending upon Character Ranges. 431 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 434 as_cr_digits='0123456789' 435 as_cr_alnum=$as_cr_Letters$as_cr_digits 436 437 438 as_lineno_1=$LINENO as_lineno_1a=$LINENO 439 as_lineno_2=$LINENO as_lineno_2a=$LINENO 440 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 441 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 442 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 443 sed -n ' 444 p 445 /[$]LINENO/= 446 ' <$as_myself | 447 sed ' 448 s/[$]LINENO.*/&-/ 449 t lineno 450 b 451 :lineno 452 N 453 :loop 454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 455 t loop 456 s/-\n.*// 457 ' >$as_me.lineno && 458 chmod +x "$as_me.lineno" || 459 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 460 461 # Don't try to exec as it changes $[0], causing all sort of problems 462 # (the dirname of $[0] is not the place where we might find the 463 # original and so on. Autoconf is especially sensitive to this). 464 . "./$as_me.lineno" 465 # Exit status is that of the last command. 466 exit 467 } 468 469 ECHO_C= ECHO_N= ECHO_T= 470 case `echo -n x` in #((((( 471 -n*) 472 case `echo 'xy\c'` in 473 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 474 xy) ECHO_C='\c';; 475 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 476 ECHO_T=' ';; 477 esac;; 478 *) 479 ECHO_N='-n';; 480 esac 481 482 rm -f conf$$ conf$$.exe conf$$.file 483 if test -d conf$$.dir; then 484 rm -f conf$$.dir/conf$$.file 485 else 486 rm -f conf$$.dir 487 mkdir conf$$.dir 2>/dev/null 488 fi 489 if (echo >conf$$.file) 2>/dev/null; then 490 if ln -s conf$$.file conf$$ 2>/dev/null; then 491 as_ln_s='ln -s' 492 # ... but there are two gotchas: 493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 495 # In both cases, we have to default to `cp -p'. 496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 497 as_ln_s='cp -p' 498 elif ln conf$$.file conf$$ 2>/dev/null; then 499 as_ln_s=ln 500 else 501 as_ln_s='cp -p' 502 fi 503 else 504 as_ln_s='cp -p' 505 fi 506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 507 rmdir conf$$.dir 2>/dev/null 508 509 if mkdir -p . 2>/dev/null; then 510 as_mkdir_p='mkdir -p "$as_dir"' 511 else 512 test -d ./-p && rmdir ./-p 513 as_mkdir_p=false 514 fi 515 516 if test -x / >/dev/null 2>&1; then 517 as_test_x='test -x' 518 else 519 if ls -dL / >/dev/null 2>&1; then 520 as_ls_L_option=L 521 else 522 as_ls_L_option= 523 fi 524 as_test_x=' 525 eval sh -c '\'' 526 if test -d "$1"; then 527 test -d "$1/."; 528 else 529 case $1 in #( 530 -*)set "./$1";; 531 esac; 532 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 533 ???[sx]*):;;*)false;;esac;fi 534 '\'' sh 535 ' 536 fi 537 as_executable_p=$as_test_x 538 539 # Sed expression to map a string onto a valid CPP name. 540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 541 542 # Sed expression to map a string onto a valid variable name. 543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 544 545 SHELL=${CONFIG_SHELL-/bin/sh} 546 547 548 test -n "$DJDIR" || exec 7<&0 </dev/null 549 exec 6>&1 550 551 # Name of the host. 552 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 553 # so uname gets run too. 554 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 555 556 # 557 # Initializations. 558 # 559 ac_default_prefix=/usr/local 560 ac_clean_files= 561 ac_config_libobj_dir=. 562 LIBOBJS= 563 cross_compiling=no 564 subdirs= 565 MFLAGS= 566 MAKEFLAGS= 567 568 # Identity of this package. 569 PACKAGE_NAME='libcap-ng' 570 PACKAGE_TARNAME='libcap-ng' 571 PACKAGE_VERSION='0.7' 572 PACKAGE_STRING='libcap-ng 0.7' 573 PACKAGE_BUGREPORT='' 574 PACKAGE_URL='' 575 576 # Factoring default headers for most tests. 577 ac_includes_default="\ 578 #include <stdio.h> 579 #ifdef HAVE_SYS_TYPES_H 580 # include <sys/types.h> 581 #endif 582 #ifdef HAVE_SYS_STAT_H 583 # include <sys/stat.h> 584 #endif 585 #ifdef STDC_HEADERS 586 # include <stdlib.h> 587 # include <stddef.h> 588 #else 589 # ifdef HAVE_STDLIB_H 590 # include <stdlib.h> 591 # endif 592 #endif 593 #ifdef HAVE_STRING_H 594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 595 # include <memory.h> 596 # endif 597 # include <string.h> 598 #endif 599 #ifdef HAVE_STRINGS_H 600 # include <strings.h> 601 #endif 602 #ifdef HAVE_INTTYPES_H 603 # include <inttypes.h> 604 #endif 605 #ifdef HAVE_STDINT_H 606 # include <stdint.h> 607 #endif 608 #ifdef HAVE_UNISTD_H 609 # include <unistd.h> 610 #endif" 611 612 ac_subst_vars='am__EXEEXT_FALSE 613 am__EXEEXT_TRUE 614 LTLIBOBJS 615 LIBOBJS 616 HAVE_PYTHON_FALSE 617 HAVE_PYTHON_TRUE 618 pkgpyexecdir 619 pyexecdir 620 pkgpythondir 621 pythondir 622 PYTHON_PLATFORM 623 PYTHON_EXEC_PREFIX 624 PYTHON_PREFIX 625 PYTHON_VERSION 626 PYTHON 627 HAVE_SWIG_FALSE 628 HAVE_SWIG_TRUE 629 swig_found 630 DEBUG 631 DEBUG_FALSE 632 DEBUG_TRUE 633 LIBTOOL_DEPS 634 CPP 635 OTOOL64 636 OTOOL 637 LIPO 638 NMEDIT 639 DSYMUTIL 640 MANIFEST_TOOL 641 RANLIB 642 ac_ct_AR 643 AR 644 DLLTOOL 645 OBJDUMP 646 LN_S 647 NM 648 ac_ct_DUMPBIN 649 DUMPBIN 650 LD 651 FGREP 652 EGREP 653 GREP 654 SED 655 am__fastdepCC_FALSE 656 am__fastdepCC_TRUE 657 CCDEPMODE 658 am__nodep 659 AMDEPBACKSLASH 660 AMDEP_FALSE 661 AMDEP_TRUE 662 am__quote 663 am__include 664 DEPDIR 665 OBJEXT 666 EXEEXT 667 ac_ct_CC 668 CPPFLAGS 669 LDFLAGS 670 CFLAGS 671 CC 672 LIBTOOL 673 am__untar 674 am__tar 675 AMTAR 676 am__leading_dot 677 SET_MAKE 678 AWK 679 mkdir_p 680 MKDIR_P 681 INSTALL_STRIP_PROGRAM 682 STRIP 683 install_sh 684 MAKEINFO 685 AUTOHEADER 686 AUTOMAKE 687 AUTOCONF 688 ACLOCAL 689 VERSION 690 PACKAGE 691 CYGPATH_W 692 am__isrc 693 INSTALL_DATA 694 INSTALL_SCRIPT 695 INSTALL_PROGRAM 696 target_os 697 target_vendor 698 target_cpu 699 target 700 host_os 701 host_vendor 702 host_cpu 703 host 704 build_os 705 build_vendor 706 build_cpu 707 build 708 target_alias 709 host_alias 710 build_alias 711 LIBS 712 ECHO_T 713 ECHO_N 714 ECHO_C 715 DEFS 716 mandir 717 localedir 718 libdir 719 psdir 720 pdfdir 721 dvidir 722 htmldir 723 infodir 724 docdir 725 oldincludedir 726 includedir 727 localstatedir 728 sharedstatedir 729 sysconfdir 730 datadir 731 datarootdir 732 libexecdir 733 sbindir 734 bindir 735 program_transform_name 736 prefix 737 exec_prefix 738 PACKAGE_URL 739 PACKAGE_BUGREPORT 740 PACKAGE_STRING 741 PACKAGE_VERSION 742 PACKAGE_TARNAME 743 PACKAGE_NAME 744 PATH_SEPARATOR 745 SHELL' 746 ac_subst_files='' 747 ac_user_opts=' 748 enable_option_checking 749 enable_shared 750 enable_static 751 with_pic 752 enable_fast_install 753 enable_dependency_tracking 754 with_gnu_ld 755 with_sysroot 756 enable_libtool_lock 757 with_debug 758 with_warn 759 with_python 760 ' 761 ac_precious_vars='build_alias 762 host_alias 763 target_alias 764 CC 765 CFLAGS 766 LDFLAGS 767 LIBS 768 CPPFLAGS 769 CPP 770 PYTHON' 771 772 773 # Initialize some variables set by options. 774 ac_init_help= 775 ac_init_version=false 776 ac_unrecognized_opts= 777 ac_unrecognized_sep= 778 # The variables have the same names as the options, with 779 # dashes changed to underlines. 780 cache_file=/dev/null 781 exec_prefix=NONE 782 no_create= 783 no_recursion= 784 prefix=NONE 785 program_prefix=NONE 786 program_suffix=NONE 787 program_transform_name=s,x,x, 788 silent= 789 site= 790 srcdir= 791 verbose= 792 x_includes=NONE 793 x_libraries=NONE 794 795 # Installation directory options. 796 # These are left unexpanded so users can "make install exec_prefix=/foo" 797 # and all the variables that are supposed to be based on exec_prefix 798 # by default will actually change. 799 # Use braces instead of parens because sh, perl, etc. also accept them. 800 # (The list follows the same order as the GNU Coding Standards.) 801 bindir='${exec_prefix}/bin' 802 sbindir='${exec_prefix}/sbin' 803 libexecdir='${exec_prefix}/libexec' 804 datarootdir='${prefix}/share' 805 datadir='${datarootdir}' 806 sysconfdir='${prefix}/etc' 807 sharedstatedir='${prefix}/com' 808 localstatedir='${prefix}/var' 809 includedir='${prefix}/include' 810 oldincludedir='/usr/include' 811 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 812 infodir='${datarootdir}/info' 813 htmldir='${docdir}' 814 dvidir='${docdir}' 815 pdfdir='${docdir}' 816 psdir='${docdir}' 817 libdir='${exec_prefix}/lib' 818 localedir='${datarootdir}/locale' 819 mandir='${datarootdir}/man' 820 821 ac_prev= 822 ac_dashdash= 823 for ac_option 824 do 825 # If the previous option needs an argument, assign it. 826 if test -n "$ac_prev"; then 827 eval $ac_prev=\$ac_option 828 ac_prev= 829 continue 830 fi 831 832 case $ac_option in 833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 834 *=) ac_optarg= ;; 835 *) ac_optarg=yes ;; 836 esac 837 838 # Accept the important Cygnus configure options, so we can diagnose typos. 839 840 case $ac_dashdash$ac_option in 841 --) 842 ac_dashdash=yes ;; 843 844 -bindir | --bindir | --bindi | --bind | --bin | --bi) 845 ac_prev=bindir ;; 846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 847 bindir=$ac_optarg ;; 848 849 -build | --build | --buil | --bui | --bu) 850 ac_prev=build_alias ;; 851 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 852 build_alias=$ac_optarg ;; 853 854 -cache-file | --cache-file | --cache-fil | --cache-fi \ 855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 856 ac_prev=cache_file ;; 857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 859 cache_file=$ac_optarg ;; 860 861 --config-cache | -C) 862 cache_file=config.cache ;; 863 864 -datadir | --datadir | --datadi | --datad) 865 ac_prev=datadir ;; 866 -datadir=* | --datadir=* | --datadi=* | --datad=*) 867 datadir=$ac_optarg ;; 868 869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 870 | --dataroo | --dataro | --datar) 871 ac_prev=datarootdir ;; 872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 874 datarootdir=$ac_optarg ;; 875 876 -disable-* | --disable-*) 877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 878 # Reject names that are not valid shell variable names. 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 880 as_fn_error $? "invalid feature name: $ac_useropt" 881 ac_useropt_orig=$ac_useropt 882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 883 case $ac_user_opts in 884 *" 885 "enable_$ac_useropt" 886 "*) ;; 887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 888 ac_unrecognized_sep=', ';; 889 esac 890 eval enable_$ac_useropt=no ;; 891 892 -docdir | --docdir | --docdi | --doc | --do) 893 ac_prev=docdir ;; 894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 895 docdir=$ac_optarg ;; 896 897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 898 ac_prev=dvidir ;; 899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 900 dvidir=$ac_optarg ;; 901 902 -enable-* | --enable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error $? "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911 "enable_$ac_useropt" 912 "*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=\$ac_optarg ;; 917 918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 920 | --exec | --exe | --ex) 921 ac_prev=exec_prefix ;; 922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 924 | --exec=* | --exe=* | --ex=*) 925 exec_prefix=$ac_optarg ;; 926 927 -gas | --gas | --ga | --g) 928 # Obsolete; use --with-gas. 929 with_gas=yes ;; 930 931 -help | --help | --hel | --he | -h) 932 ac_init_help=long ;; 933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 934 ac_init_help=recursive ;; 935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 936 ac_init_help=short ;; 937 938 -host | --host | --hos | --ho) 939 ac_prev=host_alias ;; 940 -host=* | --host=* | --hos=* | --ho=*) 941 host_alias=$ac_optarg ;; 942 943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 944 ac_prev=htmldir ;; 945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 946 | --ht=*) 947 htmldir=$ac_optarg ;; 948 949 -includedir | --includedir | --includedi | --included | --include \ 950 | --includ | --inclu | --incl | --inc) 951 ac_prev=includedir ;; 952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 953 | --includ=* | --inclu=* | --incl=* | --inc=*) 954 includedir=$ac_optarg ;; 955 956 -infodir | --infodir | --infodi | --infod | --info | --inf) 957 ac_prev=infodir ;; 958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 959 infodir=$ac_optarg ;; 960 961 -libdir | --libdir | --libdi | --libd) 962 ac_prev=libdir ;; 963 -libdir=* | --libdir=* | --libdi=* | --libd=*) 964 libdir=$ac_optarg ;; 965 966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 967 | --libexe | --libex | --libe) 968 ac_prev=libexecdir ;; 969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 970 | --libexe=* | --libex=* | --libe=*) 971 libexecdir=$ac_optarg ;; 972 973 -localedir | --localedir | --localedi | --localed | --locale) 974 ac_prev=localedir ;; 975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 976 localedir=$ac_optarg ;; 977 978 -localstatedir | --localstatedir | --localstatedi | --localstated \ 979 | --localstate | --localstat | --localsta | --localst | --locals) 980 ac_prev=localstatedir ;; 981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 983 localstatedir=$ac_optarg ;; 984 985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 986 ac_prev=mandir ;; 987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 988 mandir=$ac_optarg ;; 989 990 -nfp | --nfp | --nf) 991 # Obsolete; use --without-fp. 992 with_fp=no ;; 993 994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 995 | --no-cr | --no-c | -n) 996 no_create=yes ;; 997 998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1000 no_recursion=yes ;; 1001 1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1004 | --oldin | --oldi | --old | --ol | --o) 1005 ac_prev=oldincludedir ;; 1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1009 oldincludedir=$ac_optarg ;; 1010 1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1012 ac_prev=prefix ;; 1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1014 prefix=$ac_optarg ;; 1015 1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1017 | --program-pre | --program-pr | --program-p) 1018 ac_prev=program_prefix ;; 1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1021 program_prefix=$ac_optarg ;; 1022 1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1024 | --program-suf | --program-su | --program-s) 1025 ac_prev=program_suffix ;; 1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1028 program_suffix=$ac_optarg ;; 1029 1030 -program-transform-name | --program-transform-name \ 1031 | --program-transform-nam | --program-transform-na \ 1032 | --program-transform-n | --program-transform- \ 1033 | --program-transform | --program-transfor \ 1034 | --program-transfo | --program-transf \ 1035 | --program-trans | --program-tran \ 1036 | --progr-tra | --program-tr | --program-t) 1037 ac_prev=program_transform_name ;; 1038 -program-transform-name=* | --program-transform-name=* \ 1039 | --program-transform-nam=* | --program-transform-na=* \ 1040 | --program-transform-n=* | --program-transform-=* \ 1041 | --program-transform=* | --program-transfor=* \ 1042 | --program-transfo=* | --program-transf=* \ 1043 | --program-trans=* | --program-tran=* \ 1044 | --progr-tra=* | --program-tr=* | --program-t=*) 1045 program_transform_name=$ac_optarg ;; 1046 1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1048 ac_prev=pdfdir ;; 1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1050 pdfdir=$ac_optarg ;; 1051 1052 -psdir | --psdir | --psdi | --psd | --ps) 1053 ac_prev=psdir ;; 1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1055 psdir=$ac_optarg ;; 1056 1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1058 | -silent | --silent | --silen | --sile | --sil) 1059 silent=yes ;; 1060 1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1062 ac_prev=sbindir ;; 1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1064 | --sbi=* | --sb=*) 1065 sbindir=$ac_optarg ;; 1066 1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1069 | --sharedst | --shareds | --shared | --share | --shar \ 1070 | --sha | --sh) 1071 ac_prev=sharedstatedir ;; 1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1075 | --sha=* | --sh=*) 1076 sharedstatedir=$ac_optarg ;; 1077 1078 -site | --site | --sit) 1079 ac_prev=site ;; 1080 -site=* | --site=* | --sit=*) 1081 site=$ac_optarg ;; 1082 1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1084 ac_prev=srcdir ;; 1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1086 srcdir=$ac_optarg ;; 1087 1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1089 | --syscon | --sysco | --sysc | --sys | --sy) 1090 ac_prev=sysconfdir ;; 1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1093 sysconfdir=$ac_optarg ;; 1094 1095 -target | --target | --targe | --targ | --tar | --ta | --t) 1096 ac_prev=target_alias ;; 1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1098 target_alias=$ac_optarg ;; 1099 1100 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1101 verbose=yes ;; 1102 1103 -version | --version | --versio | --versi | --vers | -V) 1104 ac_init_version=: ;; 1105 1106 -with-* | --with-*) 1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1110 as_fn_error $? "invalid package name: $ac_useropt" 1111 ac_useropt_orig=$ac_useropt 1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1113 case $ac_user_opts in 1114 *" 1115 "with_$ac_useropt" 1116 "*) ;; 1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1118 ac_unrecognized_sep=', ';; 1119 esac 1120 eval with_$ac_useropt=\$ac_optarg ;; 1121 1122 -without-* | --without-*) 1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1124 # Reject names that are not valid shell variable names. 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1126 as_fn_error $? "invalid package name: $ac_useropt" 1127 ac_useropt_orig=$ac_useropt 1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1129 case $ac_user_opts in 1130 *" 1131 "with_$ac_useropt" 1132 "*) ;; 1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1134 ac_unrecognized_sep=', ';; 1135 esac 1136 eval with_$ac_useropt=no ;; 1137 1138 --x) 1139 # Obsolete; use --with-x. 1140 with_x=yes ;; 1141 1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1143 | --x-incl | --x-inc | --x-in | --x-i) 1144 ac_prev=x_includes ;; 1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1147 x_includes=$ac_optarg ;; 1148 1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1151 ac_prev=x_libraries ;; 1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1154 x_libraries=$ac_optarg ;; 1155 1156 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1157 Try \`$0 --help' for more information" 1158 ;; 1159 1160 *=*) 1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1162 # Reject names that are not valid shell variable names. 1163 case $ac_envvar in #( 1164 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1166 esac 1167 eval $ac_envvar=\$ac_optarg 1168 export $ac_envvar ;; 1169 1170 *) 1171 # FIXME: should be removed in autoconf 3.0. 1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1176 ;; 1177 1178 esac 1179 done 1180 1181 if test -n "$ac_prev"; then 1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1183 as_fn_error $? "missing argument to $ac_option" 1184 fi 1185 1186 if test -n "$ac_unrecognized_opts"; then 1187 case $enable_option_checking in 1188 no) ;; 1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1191 esac 1192 fi 1193 1194 # Check all directory arguments for consistency. 1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1196 datadir sysconfdir sharedstatedir localstatedir includedir \ 1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1198 libdir localedir mandir 1199 do 1200 eval ac_val=\$$ac_var 1201 # Remove trailing slashes. 1202 case $ac_val in 1203 */ ) 1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1205 eval $ac_var=\$ac_val;; 1206 esac 1207 # Be sure to have absolute directory names. 1208 case $ac_val in 1209 [\\/$]* | ?:[\\/]* ) continue;; 1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1211 esac 1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1213 done 1214 1215 # There might be people who depend on the old broken behavior: `$host' 1216 # used to hold the argument of --host etc. 1217 # FIXME: To remove some day. 1218 build=$build_alias 1219 host=$host_alias 1220 target=$target_alias 1221 1222 # FIXME: To remove some day. 1223 if test "x$host_alias" != x; then 1224 if test "x$build_alias" = x; then 1225 cross_compiling=maybe 1226 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1227 If a cross compiler is detected then cross compile mode will be used" >&2 1228 elif test "x$build_alias" != "x$host_alias"; then 1229 cross_compiling=yes 1230 fi 1231 fi 1232 1233 ac_tool_prefix= 1234 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1235 1236 test "$silent" = yes && exec 6>/dev/null 1237 1238 1239 ac_pwd=`pwd` && test -n "$ac_pwd" && 1240 ac_ls_di=`ls -di .` && 1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1242 as_fn_error $? "working directory cannot be determined" 1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1244 as_fn_error $? "pwd does not report name of working directory" 1245 1246 1247 # Find the source files, if location was not specified. 1248 if test -z "$srcdir"; then 1249 ac_srcdir_defaulted=yes 1250 # Try the directory containing this script, then the parent directory. 1251 ac_confdir=`$as_dirname -- "$as_myself" || 1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1253 X"$as_myself" : 'X\(//\)[^/]' \| \ 1254 X"$as_myself" : 'X\(//\)$' \| \ 1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1256 $as_echo X"$as_myself" | 1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1258 s//\1/ 1259 q 1260 } 1261 /^X\(\/\/\)[^/].*/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)$/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\).*/{ 1270 s//\1/ 1271 q 1272 } 1273 s/.*/./; q'` 1274 srcdir=$ac_confdir 1275 if test ! -r "$srcdir/$ac_unique_file"; then 1276 srcdir=.. 1277 fi 1278 else 1279 ac_srcdir_defaulted=no 1280 fi 1281 if test ! -r "$srcdir/$ac_unique_file"; then 1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1284 fi 1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1286 ac_abs_confdir=`( 1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1288 pwd)` 1289 # When building in place, set srcdir=. 1290 if test "$ac_abs_confdir" = "$ac_pwd"; then 1291 srcdir=. 1292 fi 1293 # Remove unnecessary trailing slashes from srcdir. 1294 # Double slashes in file names in object file debugging info 1295 # mess up M-x gdb in Emacs. 1296 case $srcdir in 1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1298 esac 1299 for ac_var in $ac_precious_vars; do 1300 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_env_${ac_var}_value=\$${ac_var} 1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1303 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1304 done 1305 1306 # 1307 # Report the --help message. 1308 # 1309 if test "$ac_init_help" = "long"; then 1310 # Omit some internal or obsolete options to make the list less imposing. 1311 # This message is too long to be a string in the A/UX 3.1 sh. 1312 cat <<_ACEOF 1313 \`configure' configures libcap-ng 0.7 to adapt to many kinds of systems. 1314 1315 Usage: $0 [OPTION]... [VAR=VALUE]... 1316 1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1318 VAR=VALUE. See below for descriptions of some of the useful variables. 1319 1320 Defaults for the options are specified in brackets. 1321 1322 Configuration: 1323 -h, --help display this help and exit 1324 --help=short display options specific to this package 1325 --help=recursive display the short help of all the included packages 1326 -V, --version display version information and exit 1327 -q, --quiet, --silent do not print \`checking ...' messages 1328 --cache-file=FILE cache test results in FILE [disabled] 1329 -C, --config-cache alias for \`--cache-file=config.cache' 1330 -n, --no-create do not create output files 1331 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1332 1333 Installation directories: 1334 --prefix=PREFIX install architecture-independent files in PREFIX 1335 [$ac_default_prefix] 1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1337 [PREFIX] 1338 1339 By default, \`make install' will install all the files in 1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1342 for instance \`--prefix=\$HOME'. 1343 1344 For better control, use the options below. 1345 1346 Fine tuning of the installation directories: 1347 --bindir=DIR user executables [EPREFIX/bin] 1348 --sbindir=DIR system admin executables [EPREFIX/sbin] 1349 --libexecdir=DIR program executables [EPREFIX/libexec] 1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1353 --libdir=DIR object code libraries [EPREFIX/lib] 1354 --includedir=DIR C header files [PREFIX/include] 1355 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1358 --infodir=DIR info documentation [DATAROOTDIR/info] 1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1360 --mandir=DIR man documentation [DATAROOTDIR/man] 1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libcap-ng] 1362 --htmldir=DIR html documentation [DOCDIR] 1363 --dvidir=DIR dvi documentation [DOCDIR] 1364 --pdfdir=DIR pdf documentation [DOCDIR] 1365 --psdir=DIR ps documentation [DOCDIR] 1366 _ACEOF 1367 1368 cat <<\_ACEOF 1369 1370 Program names: 1371 --program-prefix=PREFIX prepend PREFIX to installed program names 1372 --program-suffix=SUFFIX append SUFFIX to installed program names 1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1374 1375 System types: 1376 --build=BUILD configure for building on BUILD [guessed] 1377 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1378 --target=TARGET configure for building compilers for TARGET [HOST] 1379 _ACEOF 1380 fi 1381 1382 if test -n "$ac_init_help"; then 1383 case $ac_init_help in 1384 short | recursive ) echo "Configuration of libcap-ng 0.7:";; 1385 esac 1386 cat <<\_ACEOF 1387 1388 Optional Features: 1389 --disable-option-checking ignore unrecognized --enable/--with options 1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1392 --enable-shared[=PKGS] build shared libraries [default=yes] 1393 --enable-static[=PKGS] build static libraries [default=yes] 1394 --enable-fast-install[=PKGS] 1395 optimize for fast installation [default=yes] 1396 --disable-dependency-tracking speeds up one-time build 1397 --enable-dependency-tracking do not reject slow dependency extractors 1398 --disable-libtool-lock avoid locking (might break parallel builds) 1399 1400 Optional Packages: 1401 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1402 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1403 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1404 both] 1405 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1406 --with-sysroot=DIR Search for dependent libraries within DIR 1407 (or the compiler's sysroot if not specified). 1408 --with-debug turn on debugging [default=no] 1409 --with-warn turn on warnings [default=yes] 1410 --with-python enable building python bindings 1411 1412 Some influential environment variables: 1413 CC C compiler command 1414 CFLAGS C compiler flags 1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1416 nonstandard directory <lib dir> 1417 LIBS libraries to pass to the linker, e.g. -l<library> 1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1419 you have headers in a nonstandard directory <include dir> 1420 CPP C preprocessor 1421 PYTHON the Python interpreter 1422 1423 Use these variables to override the choices made by `configure' or to help 1424 it to find libraries and programs with nonstandard names/locations. 1425 1426 Report bugs to the package provider. 1427 _ACEOF 1428 ac_status=$? 1429 fi 1430 1431 if test "$ac_init_help" = "recursive"; then 1432 # If there are subdirs, report their specific --help. 1433 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1434 test -d "$ac_dir" || 1435 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1436 continue 1437 ac_builddir=. 1438 1439 case "$ac_dir" in 1440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1441 *) 1442 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1443 # A ".." for each directory in $ac_dir_suffix. 1444 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1445 case $ac_top_builddir_sub in 1446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1448 esac ;; 1449 esac 1450 ac_abs_top_builddir=$ac_pwd 1451 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1452 # for backward compatibility: 1453 ac_top_builddir=$ac_top_build_prefix 1454 1455 case $srcdir in 1456 .) # We are building in place. 1457 ac_srcdir=. 1458 ac_top_srcdir=$ac_top_builddir_sub 1459 ac_abs_top_srcdir=$ac_pwd ;; 1460 [\\/]* | ?:[\\/]* ) # Absolute name. 1461 ac_srcdir=$srcdir$ac_dir_suffix; 1462 ac_top_srcdir=$srcdir 1463 ac_abs_top_srcdir=$srcdir ;; 1464 *) # Relative name. 1465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1466 ac_top_srcdir=$ac_top_build_prefix$srcdir 1467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1468 esac 1469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1470 1471 cd "$ac_dir" || { ac_status=$?; continue; } 1472 # Check for guested configure. 1473 if test -f "$ac_srcdir/configure.gnu"; then 1474 echo && 1475 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1476 elif test -f "$ac_srcdir/configure"; then 1477 echo && 1478 $SHELL "$ac_srcdir/configure" --help=recursive 1479 else 1480 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1481 fi || ac_status=$? 1482 cd "$ac_pwd" || { ac_status=$?; break; } 1483 done 1484 fi 1485 1486 test -n "$ac_init_help" && exit $ac_status 1487 if $ac_init_version; then 1488 cat <<\_ACEOF 1489 libcap-ng configure 0.7 1490 generated by GNU Autoconf 2.68 1491 1492 Copyright (C) 2010 Free Software Foundation, Inc. 1493 This configure script is free software; the Free Software Foundation 1494 gives unlimited permission to copy, distribute and modify it. 1495 _ACEOF 1496 exit 1497 fi 1498 1499 ## ------------------------ ## 1500 ## Autoconf initialization. ## 1501 ## ------------------------ ## 1502 1503 # ac_fn_c_try_compile LINENO 1504 # -------------------------- 1505 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1506 ac_fn_c_try_compile () 1507 { 1508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1509 rm -f conftest.$ac_objext 1510 if { { ac_try="$ac_compile" 1511 case "(($ac_try" in 1512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1513 *) ac_try_echo=$ac_try;; 1514 esac 1515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1516 $as_echo "$ac_try_echo"; } >&5 1517 (eval "$ac_compile") 2>conftest.err 1518 ac_status=$? 1519 if test -s conftest.err; then 1520 grep -v '^ *+' conftest.err >conftest.er1 1521 cat conftest.er1 >&5 1522 mv -f conftest.er1 conftest.err 1523 fi 1524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1525 test $ac_status = 0; } && { 1526 test -z "$ac_c_werror_flag" || 1527 test ! -s conftest.err 1528 } && test -s conftest.$ac_objext; then : 1529 ac_retval=0 1530 else 1531 $as_echo "$as_me: failed program was:" >&5 1532 sed 's/^/| /' conftest.$ac_ext >&5 1533 1534 ac_retval=1 1535 fi 1536 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1537 as_fn_set_status $ac_retval 1538 1539 } # ac_fn_c_try_compile 1540 1541 # ac_fn_c_try_link LINENO 1542 # ----------------------- 1543 # Try to link conftest.$ac_ext, and return whether this succeeded. 1544 ac_fn_c_try_link () 1545 { 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext conftest$ac_exeext 1548 if { { ac_try="$ac_link" 1549 case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552 esac 1553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554 $as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_link") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest$ac_exeext && { 1567 test "$cross_compiling" = yes || 1568 $as_test_x conftest$ac_exeext 1569 }; then : 1570 ac_retval=0 1571 else 1572 $as_echo "$as_me: failed program was:" >&5 1573 sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576 fi 1577 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1578 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1579 # interfere with the next link command; also delete a directory that is 1580 # left behind by Apple's compiler. We do this before executing the actions. 1581 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1583 as_fn_set_status $ac_retval 1584 1585 } # ac_fn_c_try_link 1586 1587 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1588 # ------------------------------------------------------- 1589 # Tests whether HEADER exists and can be compiled using the include files in 1590 # INCLUDES, setting the cache variable VAR accordingly. 1591 ac_fn_c_check_header_compile () 1592 { 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1595 $as_echo_n "checking for $2... " >&6; } 1596 if eval \${$3+:} false; then : 1597 $as_echo_n "(cached) " >&6 1598 else 1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1600 /* end confdefs.h. */ 1601 $4 1602 #include <$2> 1603 _ACEOF 1604 if ac_fn_c_try_compile "$LINENO"; then : 1605 eval "$3=yes" 1606 else 1607 eval "$3=no" 1608 fi 1609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1610 fi 1611 eval ac_res=\$$3 1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1613 $as_echo "$ac_res" >&6; } 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 1616 } # ac_fn_c_check_header_compile 1617 1618 # ac_fn_c_try_cpp LINENO 1619 # ---------------------- 1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1621 ac_fn_c_try_cpp () 1622 { 1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1624 if { { ac_try="$ac_cpp conftest.$ac_ext" 1625 case "(($ac_try" in 1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1627 *) ac_try_echo=$ac_try;; 1628 esac 1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1630 $as_echo "$ac_try_echo"; } >&5 1631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1632 ac_status=$? 1633 if test -s conftest.err; then 1634 grep -v '^ *+' conftest.err >conftest.er1 1635 cat conftest.er1 >&5 1636 mv -f conftest.er1 conftest.err 1637 fi 1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1639 test $ac_status = 0; } > conftest.i && { 1640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1641 test ! -s conftest.err 1642 }; then : 1643 ac_retval=0 1644 else 1645 $as_echo "$as_me: failed program was:" >&5 1646 sed 's/^/| /' conftest.$ac_ext >&5 1647 1648 ac_retval=1 1649 fi 1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1651 as_fn_set_status $ac_retval 1652 1653 } # ac_fn_c_try_cpp 1654 1655 # ac_fn_c_try_run LINENO 1656 # ---------------------- 1657 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1658 # that executables *can* be run. 1659 ac_fn_c_try_run () 1660 { 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_link" 1663 case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666 esac 1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668 $as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_link") 2>&5 1670 ac_status=$? 1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1673 { { case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676 esac 1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678 $as_echo "$ac_try_echo"; } >&5 1679 (eval "$ac_try") 2>&5 1680 ac_status=$? 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; }; }; then : 1683 ac_retval=0 1684 else 1685 $as_echo "$as_me: program exited with status $ac_status" >&5 1686 $as_echo "$as_me: failed program was:" >&5 1687 sed 's/^/| /' conftest.$ac_ext >&5 1688 1689 ac_retval=$ac_status 1690 fi 1691 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695 } # ac_fn_c_try_run 1696 1697 # ac_fn_c_check_func LINENO FUNC VAR 1698 # ---------------------------------- 1699 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1700 ac_fn_c_check_func () 1701 { 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1704 $as_echo_n "checking for $2... " >&6; } 1705 if eval \${$3+:} false; then : 1706 $as_echo_n "(cached) " >&6 1707 else 1708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1709 /* end confdefs.h. */ 1710 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1711 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1712 #define $2 innocuous_$2 1713 1714 /* System header to define __stub macros and hopefully few prototypes, 1715 which can conflict with char $2 (); below. 1716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1717 <limits.h> exists even on freestanding compilers. */ 1718 1719 #ifdef __STDC__ 1720 # include <limits.h> 1721 #else 1722 # include <assert.h> 1723 #endif 1724 1725 #undef $2 1726 1727 /* Override any GCC internal prototype to avoid an error. 1728 Use char because int might match the return type of a GCC 1729 builtin and then its argument prototype would still apply. */ 1730 #ifdef __cplusplus 1731 extern "C" 1732 #endif 1733 char $2 (); 1734 /* The GNU C library defines this for functions which it implements 1735 to always fail with ENOSYS. Some functions are actually named 1736 something starting with __ and the normal name is an alias. */ 1737 #if defined __stub_$2 || defined __stub___$2 1738 choke me 1739 #endif 1740 1741 int 1742 main () 1743 { 1744 return $2 (); 1745 ; 1746 return 0; 1747 } 1748 _ACEOF 1749 if ac_fn_c_try_link "$LINENO"; then : 1750 eval "$3=yes" 1751 else 1752 eval "$3=no" 1753 fi 1754 rm -f core conftest.err conftest.$ac_objext \ 1755 conftest$ac_exeext conftest.$ac_ext 1756 fi 1757 eval ac_res=\$$3 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759 $as_echo "$ac_res" >&6; } 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 1762 } # ac_fn_c_check_func 1763 1764 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1765 # ------------------------------------------------------- 1766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1767 # the include files in INCLUDES and setting the cache variable VAR 1768 # accordingly. 1769 ac_fn_c_check_header_mongrel () 1770 { 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 if eval \${$3+:} false; then : 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1774 $as_echo_n "checking for $2... " >&6; } 1775 if eval \${$3+:} false; then : 1776 $as_echo_n "(cached) " >&6 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 else 1782 # Is the header compilable? 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1784 $as_echo_n "checking $2 usability... " >&6; } 1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1786 /* end confdefs.h. */ 1787 $4 1788 #include <$2> 1789 _ACEOF 1790 if ac_fn_c_try_compile "$LINENO"; then : 1791 ac_header_compiler=yes 1792 else 1793 ac_header_compiler=no 1794 fi 1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1797 $as_echo "$ac_header_compiler" >&6; } 1798 1799 # Is the header present? 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1801 $as_echo_n "checking $2 presence... " >&6; } 1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803 /* end confdefs.h. */ 1804 #include <$2> 1805 _ACEOF 1806 if ac_fn_c_try_cpp "$LINENO"; then : 1807 ac_header_preproc=yes 1808 else 1809 ac_header_preproc=no 1810 fi 1811 rm -f conftest.err conftest.i conftest.$ac_ext 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1813 $as_echo "$ac_header_preproc" >&6; } 1814 1815 # So? What about this header? 1816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1817 yes:no: ) 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1822 ;; 1823 no:yes:* ) 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1834 ;; 1835 esac 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1837 $as_echo_n "checking for $2... " >&6; } 1838 if eval \${$3+:} false; then : 1839 $as_echo_n "(cached) " >&6 1840 else 1841 eval "$3=\$ac_header_compiler" 1842 fi 1843 eval ac_res=\$$3 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845 $as_echo "$ac_res" >&6; } 1846 fi 1847 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1848 1849 } # ac_fn_c_check_header_mongrel 1850 cat >config.log <<_ACEOF 1851 This file contains any messages produced by compilers while 1852 running configure, to aid debugging if configure makes a mistake. 1853 1854 It was created by libcap-ng $as_me 0.7, which was 1855 generated by GNU Autoconf 2.68. Invocation command line was 1856 1857 $ $0 $@ 1858 1859 _ACEOF 1860 exec 5>>config.log 1861 { 1862 cat <<_ASUNAME 1863 ## --------- ## 1864 ## Platform. ## 1865 ## --------- ## 1866 1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1868 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1869 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1870 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1871 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1872 1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1875 1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1883 1884 _ASUNAME 1885 1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1887 for as_dir in $PATH 1888 do 1889 IFS=$as_save_IFS 1890 test -z "$as_dir" && as_dir=. 1891 $as_echo "PATH: $as_dir" 1892 done 1893 IFS=$as_save_IFS 1894 1895 } >&5 1896 1897 cat >&5 <<_ACEOF 1898 1899 1900 ## ----------- ## 1901 ## Core tests. ## 1902 ## ----------- ## 1903 1904 _ACEOF 1905 1906 1907 # Keep a trace of the command line. 1908 # Strip out --no-create and --no-recursion so they do not pile up. 1909 # Strip out --silent because we don't want to record it for future runs. 1910 # Also quote any args containing shell meta-characters. 1911 # Make two passes to allow for proper duplicate-argument suppression. 1912 ac_configure_args= 1913 ac_configure_args0= 1914 ac_configure_args1= 1915 ac_must_keep_next=false 1916 for ac_pass in 1 2 1917 do 1918 for ac_arg 1919 do 1920 case $ac_arg in 1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1923 | -silent | --silent | --silen | --sile | --sil) 1924 continue ;; 1925 *\'*) 1926 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1927 esac 1928 case $ac_pass in 1929 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1930 2) 1931 as_fn_append ac_configure_args1 " '$ac_arg'" 1932 if test $ac_must_keep_next = true; then 1933 ac_must_keep_next=false # Got value, back to normal. 1934 else 1935 case $ac_arg in 1936 *=* | --config-cache | -C | -disable-* | --disable-* \ 1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1939 | -with-* | --with-* | -without-* | --without-* | --x) 1940 case "$ac_configure_args0 " in 1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1942 esac 1943 ;; 1944 -* ) ac_must_keep_next=true ;; 1945 esac 1946 fi 1947 as_fn_append ac_configure_args " '$ac_arg'" 1948 ;; 1949 esac 1950 done 1951 done 1952 { ac_configure_args0=; unset ac_configure_args0;} 1953 { ac_configure_args1=; unset ac_configure_args1;} 1954 1955 # When interrupted or exit'd, cleanup temporary files, and complete 1956 # config.log. We remove comments because anyway the quotes in there 1957 # would cause problems or look ugly. 1958 # WARNING: Use '\'' to represent an apostrophe within the trap. 1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1960 trap 'exit_status=$? 1961 # Save into config.log some information that might help in debugging. 1962 { 1963 echo 1964 1965 $as_echo "## ---------------- ## 1966 ## Cache variables. ## 1967 ## ---------------- ##" 1968 echo 1969 # The following way of writing the cache mishandles newlines in values, 1970 ( 1971 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1972 eval ac_val=\$$ac_var 1973 case $ac_val in #( 1974 *${as_nl}*) 1975 case $ac_var in #( 1976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1978 esac 1979 case $ac_var in #( 1980 _ | IFS | as_nl) ;; #( 1981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1982 *) { eval $ac_var=; unset $ac_var;} ;; 1983 esac ;; 1984 esac 1985 done 1986 (set) 2>&1 | 1987 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1988 *${as_nl}ac_space=\ *) 1989 sed -n \ 1990 "s/'\''/'\''\\\\'\'''\''/g; 1991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1992 ;; #( 1993 *) 1994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1995 ;; 1996 esac | 1997 sort 1998 ) 1999 echo 2000 2001 $as_echo "## ----------------- ## 2002 ## Output variables. ## 2003 ## ----------------- ##" 2004 echo 2005 for ac_var in $ac_subst_vars 2006 do 2007 eval ac_val=\$$ac_var 2008 case $ac_val in 2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2010 esac 2011 $as_echo "$ac_var='\''$ac_val'\''" 2012 done | sort 2013 echo 2014 2015 if test -n "$ac_subst_files"; then 2016 $as_echo "## ------------------- ## 2017 ## File substitutions. ## 2018 ## ------------------- ##" 2019 echo 2020 for ac_var in $ac_subst_files 2021 do 2022 eval ac_val=\$$ac_var 2023 case $ac_val in 2024 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2025 esac 2026 $as_echo "$ac_var='\''$ac_val'\''" 2027 done | sort 2028 echo 2029 fi 2030 2031 if test -s confdefs.h; then 2032 $as_echo "## ----------- ## 2033 ## confdefs.h. ## 2034 ## ----------- ##" 2035 echo 2036 cat confdefs.h 2037 echo 2038 fi 2039 test "$ac_signal" != 0 && 2040 $as_echo "$as_me: caught signal $ac_signal" 2041 $as_echo "$as_me: exit $exit_status" 2042 } >&5 2043 rm -f core *.core core.conftest.* && 2044 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2045 exit $exit_status 2046 ' 0 2047 for ac_signal in 1 2 13 15; do 2048 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2049 done 2050 ac_signal=0 2051 2052 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2053 rm -f -r conftest* confdefs.h 2054 2055 $as_echo "/* confdefs.h */" > confdefs.h 2056 2057 # Predefined preprocessor variables. 2058 2059 cat >>confdefs.h <<_ACEOF 2060 #define PACKAGE_NAME "$PACKAGE_NAME" 2061 _ACEOF 2062 2063 cat >>confdefs.h <<_ACEOF 2064 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2065 _ACEOF 2066 2067 cat >>confdefs.h <<_ACEOF 2068 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2069 _ACEOF 2070 2071 cat >>confdefs.h <<_ACEOF 2072 #define PACKAGE_STRING "$PACKAGE_STRING" 2073 _ACEOF 2074 2075 cat >>confdefs.h <<_ACEOF 2076 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2077 _ACEOF 2078 2079 cat >>confdefs.h <<_ACEOF 2080 #define PACKAGE_URL "$PACKAGE_URL" 2081 _ACEOF 2082 2083 2084 # Let the site file select an alternate cache file if it wants to. 2085 # Prefer an explicitly selected file to automatically selected ones. 2086 ac_site_file1=NONE 2087 ac_site_file2=NONE 2088 if test -n "$CONFIG_SITE"; then 2089 # We do not want a PATH search for config.site. 2090 case $CONFIG_SITE in #(( 2091 -*) ac_site_file1=./$CONFIG_SITE;; 2092 */*) ac_site_file1=$CONFIG_SITE;; 2093 *) ac_site_file1=./$CONFIG_SITE;; 2094 esac 2095 elif test "x$prefix" != xNONE; then 2096 ac_site_file1=$prefix/share/config.site 2097 ac_site_file2=$prefix/etc/config.site 2098 else 2099 ac_site_file1=$ac_default_prefix/share/config.site 2100 ac_site_file2=$ac_default_prefix/etc/config.site 2101 fi 2102 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2103 do 2104 test "x$ac_site_file" = xNONE && continue 2105 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2107 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2108 sed 's/^/| /' "$ac_site_file" >&5 2109 . "$ac_site_file" \ 2110 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2112 as_fn_error $? "failed to load site script $ac_site_file 2113 See \`config.log' for more details" "$LINENO" 5; } 2114 fi 2115 done 2116 2117 if test -r "$cache_file"; then 2118 # Some versions of bash will fail to source /dev/null (special files 2119 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2120 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2122 $as_echo "$as_me: loading cache $cache_file" >&6;} 2123 case $cache_file in 2124 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2125 *) . "./$cache_file";; 2126 esac 2127 fi 2128 else 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2130 $as_echo "$as_me: creating cache $cache_file" >&6;} 2131 >$cache_file 2132 fi 2133 2134 # Check that the precious variables saved in the cache have kept the same 2135 # value. 2136 ac_cache_corrupted=false 2137 for ac_var in $ac_precious_vars; do 2138 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2139 eval ac_new_set=\$ac_env_${ac_var}_set 2140 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2141 eval ac_new_val=\$ac_env_${ac_var}_value 2142 case $ac_old_set,$ac_new_set in 2143 set,) 2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2145 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2146 ac_cache_corrupted=: ;; 2147 ,set) 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2149 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2150 ac_cache_corrupted=: ;; 2151 ,);; 2152 *) 2153 if test "x$ac_old_val" != "x$ac_new_val"; then 2154 # differences in whitespace do not lead to failure. 2155 ac_old_val_w=`echo x $ac_old_val` 2156 ac_new_val_w=`echo x $ac_new_val` 2157 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2159 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2160 ac_cache_corrupted=: 2161 else 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2163 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2164 eval $ac_var=\$ac_old_val 2165 fi 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2167 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2169 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2170 fi;; 2171 esac 2172 # Pass precious variables to config.status. 2173 if test "$ac_new_set" = set; then 2174 case $ac_new_val in 2175 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2176 *) ac_arg=$ac_var=$ac_new_val ;; 2177 esac 2178 case " $ac_configure_args " in 2179 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2180 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2181 esac 2182 fi 2183 done 2184 if $ac_cache_corrupted; then 2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2188 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2189 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2190 fi 2191 ## -------------------- ## 2192 ## Main body of script. ## 2193 ## -------------------- ## 2194 2195 ac_ext=c 2196 ac_cpp='$CPP $CPPFLAGS' 2197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2199 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2200 2201 2202 ac_config_headers="$ac_config_headers config.h" 2203 2204 2205 2206 echo Configuring libcap-ng $VERSION 2207 2208 ac_aux_dir= 2209 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2210 if test -f "$ac_dir/install-sh"; then 2211 ac_aux_dir=$ac_dir 2212 ac_install_sh="$ac_aux_dir/install-sh -c" 2213 break 2214 elif test -f "$ac_dir/install.sh"; then 2215 ac_aux_dir=$ac_dir 2216 ac_install_sh="$ac_aux_dir/install.sh -c" 2217 break 2218 elif test -f "$ac_dir/shtool"; then 2219 ac_aux_dir=$ac_dir 2220 ac_install_sh="$ac_aux_dir/shtool install -c" 2221 break 2222 fi 2223 done 2224 if test -z "$ac_aux_dir"; then 2225 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2226 fi 2227 2228 # These three variables are undocumented and unsupported, 2229 # and are intended to be withdrawn in a future Autoconf release. 2230 # They can cause serious problems if a builder's source tree is in a directory 2231 # whose full name contains unusual characters. 2232 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2233 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2234 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2235 2236 2237 # Make sure we can run config.sub. 2238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2239 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2240 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2242 $as_echo_n "checking build system type... " >&6; } 2243 if ${ac_cv_build+:} false; then : 2244 $as_echo_n "(cached) " >&6 2245 else 2246 ac_build_alias=$build_alias 2247 test "x$ac_build_alias" = x && 2248 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2249 test "x$ac_build_alias" = x && 2250 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2251 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2252 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2253 2254 fi 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2256 $as_echo "$ac_cv_build" >&6; } 2257 case $ac_cv_build in 2258 *-*-*) ;; 2259 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2260 esac 2261 build=$ac_cv_build 2262 ac_save_IFS=$IFS; IFS='-' 2263 set x $ac_cv_build 2264 shift 2265 build_cpu=$1 2266 build_vendor=$2 2267 shift; shift 2268 # Remember, the first character of IFS is used to create $*, 2269 # except with old shells: 2270 build_os=$* 2271 IFS=$ac_save_IFS 2272 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2273 2274 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2276 $as_echo_n "checking host system type... " >&6; } 2277 if ${ac_cv_host+:} false; then : 2278 $as_echo_n "(cached) " >&6 2279 else 2280 if test "x$host_alias" = x; then 2281 ac_cv_host=$ac_cv_build 2282 else 2283 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2284 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2285 fi 2286 2287 fi 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2289 $as_echo "$ac_cv_host" >&6; } 2290 case $ac_cv_host in 2291 *-*-*) ;; 2292 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2293 esac 2294 host=$ac_cv_host 2295 ac_save_IFS=$IFS; IFS='-' 2296 set x $ac_cv_host 2297 shift 2298 host_cpu=$1 2299 host_vendor=$2 2300 shift; shift 2301 # Remember, the first character of IFS is used to create $*, 2302 # except with old shells: 2303 host_os=$* 2304 IFS=$ac_save_IFS 2305 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2306 2307 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2309 $as_echo_n "checking target system type... " >&6; } 2310 if ${ac_cv_target+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312 else 2313 if test "x$target_alias" = x; then 2314 ac_cv_target=$ac_cv_host 2315 else 2316 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2317 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2318 fi 2319 2320 fi 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2322 $as_echo "$ac_cv_target" >&6; } 2323 case $ac_cv_target in 2324 *-*-*) ;; 2325 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2326 esac 2327 target=$ac_cv_target 2328 ac_save_IFS=$IFS; IFS='-' 2329 set x $ac_cv_target 2330 shift 2331 target_cpu=$1 2332 target_vendor=$2 2333 shift; shift 2334 # Remember, the first character of IFS is used to create $*, 2335 # except with old shells: 2336 target_os=$* 2337 IFS=$ac_save_IFS 2338 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2339 2340 2341 # The aliases save the names the user supplied, while $host etc. 2342 # will get canonicalized. 2343 test -n "$target_alias" && 2344 test "$program_prefix$program_suffix$program_transform_name" = \ 2345 NONENONEs,x,x, && 2346 program_prefix=${target_alias}- 2347 am__api_version='1.11' 2348 2349 # Find a good install program. We prefer a C program (faster), 2350 # so one script is as good as another. But avoid the broken or 2351 # incompatible versions: 2352 # SysV /etc/install, /usr/sbin/install 2353 # SunOS /usr/etc/install 2354 # IRIX /sbin/install 2355 # AIX /bin/install 2356 # AmigaOS /C/install, which installs bootblocks on floppy discs 2357 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2358 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2359 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2360 # OS/2's system install, which has a completely different semantic 2361 # ./install, which can be erroneously created by make from ./install.sh. 2362 # Reject install programs that cannot install multiple files. 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2364 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2365 if test -z "$INSTALL"; then 2366 if ${ac_cv_path_install+:} false; then : 2367 $as_echo_n "(cached) " >&6 2368 else 2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2370 for as_dir in $PATH 2371 do 2372 IFS=$as_save_IFS 2373 test -z "$as_dir" && as_dir=. 2374 # Account for people who put trailing slashes in PATH elements. 2375 case $as_dir/ in #(( 2376 ./ | .// | /[cC]/* | \ 2377 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2378 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2379 /usr/ucb/* ) ;; 2380 *) 2381 # OSF1 and SCO ODT 3.0 have their own names for install. 2382 # Don't use installbsd from OSF since it installs stuff as root 2383 # by default. 2384 for ac_prog in ginstall scoinst install; do 2385 for ac_exec_ext in '' $ac_executable_extensions; do 2386 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2387 if test $ac_prog = install && 2388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2389 # AIX install. It has an incompatible calling convention. 2390 : 2391 elif test $ac_prog = install && 2392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2393 # program-specific install script used by HP pwplus--don't use. 2394 : 2395 else 2396 rm -rf conftest.one conftest.two conftest.dir 2397 echo one > conftest.one 2398 echo two > conftest.two 2399 mkdir conftest.dir 2400 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2401 test -s conftest.one && test -s conftest.two && 2402 test -s conftest.dir/conftest.one && 2403 test -s conftest.dir/conftest.two 2404 then 2405 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2406 break 3 2407 fi 2408 fi 2409 fi 2410 done 2411 done 2412 ;; 2413 esac 2414 2415 done 2416 IFS=$as_save_IFS 2417 2418 rm -rf conftest.one conftest.two conftest.dir 2419 2420 fi 2421 if test "${ac_cv_path_install+set}" = set; then 2422 INSTALL=$ac_cv_path_install 2423 else 2424 # As a last resort, use the slow shell script. Don't cache a 2425 # value for INSTALL within a source directory, because that will 2426 # break other packages using the cache if that directory is 2427 # removed, or if the value is a relative name. 2428 INSTALL=$ac_install_sh 2429 fi 2430 fi 2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2432 $as_echo "$INSTALL" >&6; } 2433 2434 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2435 # It thinks the first close brace ends the variable substitution. 2436 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2437 2438 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2439 2440 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2441 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2443 $as_echo_n "checking whether build environment is sane... " >&6; } 2444 # Just in case 2445 sleep 1 2446 echo timestamp > conftest.file 2447 # Reject unsafe characters in $srcdir or the absolute working directory 2448 # name. Accept space and tab only in the latter. 2449 am_lf=' 2450 ' 2451 case `pwd` in 2452 *[\\\"\#\$\&\'\`$am_lf]*) 2453 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2454 esac 2455 case $srcdir in 2456 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2457 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2458 esac 2459 2460 # Do `set' in a subshell so we don't clobber the current shell's 2461 # arguments. Must try -L first in case configure is actually a 2462 # symlink; some systems play weird games with the mod time of symlinks 2463 # (eg FreeBSD returns the mod time of the symlink's containing 2464 # directory). 2465 if ( 2466 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2467 if test "$*" = "X"; then 2468 # -L didn't work. 2469 set X `ls -t "$srcdir/configure" conftest.file` 2470 fi 2471 rm -f conftest.file 2472 if test "$*" != "X $srcdir/configure conftest.file" \ 2473 && test "$*" != "X conftest.file $srcdir/configure"; then 2474 2475 # If neither matched, then we have a broken ls. This can happen 2476 # if, for instance, CONFIG_SHELL is bash and it inherits a 2477 # broken ls alias from the environment. This has actually 2478 # happened. Such a system could not be considered "sane". 2479 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2480 alias in your environment" "$LINENO" 5 2481 fi 2482 2483 test "$2" = conftest.file 2484 ) 2485 then 2486 # Ok. 2487 : 2488 else 2489 as_fn_error $? "newly created file is older than distributed files! 2490 Check your system clock" "$LINENO" 5 2491 fi 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2493 $as_echo "yes" >&6; } 2494 test "$program_prefix" != NONE && 2495 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2496 # Use a double $ so make ignores it. 2497 test "$program_suffix" != NONE && 2498 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2499 # Double any \ or $. 2500 # By default was `s,x,x', remove it if useless. 2501 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2502 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2503 2504 # expand $ac_aux_dir to an absolute path 2505 am_aux_dir=`cd $ac_aux_dir && pwd` 2506 2507 if test x"${MISSING+set}" != xset; then 2508 case $am_aux_dir in 2509 *\ * | *\ *) 2510 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2511 *) 2512 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2513 esac 2514 fi 2515 # Use eval to expand $SHELL 2516 if eval "$MISSING --run true"; then 2517 am_missing_run="$MISSING --run " 2518 else 2519 am_missing_run= 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2521 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2522 fi 2523 2524 if test x"${install_sh}" != xset; then 2525 case $am_aux_dir in 2526 *\ * | *\ *) 2527 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2528 *) 2529 install_sh="\${SHELL} $am_aux_dir/install-sh" 2530 esac 2531 fi 2532 2533 # Installed binaries are usually stripped using `strip' when the user 2534 # run `make install-strip'. However `strip' might not be the right 2535 # tool to use in cross-compilation environments, therefore Automake 2536 # will honor the `STRIP' environment variable to overrule this program. 2537 if test "$cross_compiling" != no; then 2538 if test -n "$ac_tool_prefix"; then 2539 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2540 set dummy ${ac_tool_prefix}strip; ac_word=$2 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2542 $as_echo_n "checking for $ac_word... " >&6; } 2543 if ${ac_cv_prog_STRIP+:} false; then : 2544 $as_echo_n "(cached) " >&6 2545 else 2546 if test -n "$STRIP"; then 2547 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2548 else 2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2550 for as_dir in $PATH 2551 do 2552 IFS=$as_save_IFS 2553 test -z "$as_dir" && as_dir=. 2554 for ac_exec_ext in '' $ac_executable_extensions; do 2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2556 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2558 break 2 2559 fi 2560 done 2561 done 2562 IFS=$as_save_IFS 2563 2564 fi 2565 fi 2566 STRIP=$ac_cv_prog_STRIP 2567 if test -n "$STRIP"; then 2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2569 $as_echo "$STRIP" >&6; } 2570 else 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2572 $as_echo "no" >&6; } 2573 fi 2574 2575 2576 fi 2577 if test -z "$ac_cv_prog_STRIP"; then 2578 ac_ct_STRIP=$STRIP 2579 # Extract the first word of "strip", so it can be a program name with args. 2580 set dummy strip; ac_word=$2 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2582 $as_echo_n "checking for $ac_word... " >&6; } 2583 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2584 $as_echo_n "(cached) " >&6 2585 else 2586 if test -n "$ac_ct_STRIP"; then 2587 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2588 else 2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2590 for as_dir in $PATH 2591 do 2592 IFS=$as_save_IFS 2593 test -z "$as_dir" && as_dir=. 2594 for ac_exec_ext in '' $ac_executable_extensions; do 2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2596 ac_cv_prog_ac_ct_STRIP="strip" 2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2598 break 2 2599 fi 2600 done 2601 done 2602 IFS=$as_save_IFS 2603 2604 fi 2605 fi 2606 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2607 if test -n "$ac_ct_STRIP"; then 2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2609 $as_echo "$ac_ct_STRIP" >&6; } 2610 else 2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2612 $as_echo "no" >&6; } 2613 fi 2614 2615 if test "x$ac_ct_STRIP" = x; then 2616 STRIP=":" 2617 else 2618 case $cross_compiling:$ac_tool_warned in 2619 yes:) 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2622 ac_tool_warned=yes ;; 2623 esac 2624 STRIP=$ac_ct_STRIP 2625 fi 2626 else 2627 STRIP="$ac_cv_prog_STRIP" 2628 fi 2629 2630 fi 2631 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2632 2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2634 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2635 if test -z "$MKDIR_P"; then 2636 if ${ac_cv_path_mkdir+:} false; then : 2637 $as_echo_n "(cached) " >&6 2638 else 2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2640 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2641 do 2642 IFS=$as_save_IFS 2643 test -z "$as_dir" && as_dir=. 2644 for ac_prog in mkdir gmkdir; do 2645 for ac_exec_ext in '' $ac_executable_extensions; do 2646 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2647 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2648 'mkdir (GNU coreutils) '* | \ 2649 'mkdir (coreutils) '* | \ 2650 'mkdir (fileutils) '4.1*) 2651 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2652 break 3;; 2653 esac 2654 done 2655 done 2656 done 2657 IFS=$as_save_IFS 2658 2659 fi 2660 2661 test -d ./--version && rmdir ./--version 2662 if test "${ac_cv_path_mkdir+set}" = set; then 2663 MKDIR_P="$ac_cv_path_mkdir -p" 2664 else 2665 # As a last resort, use the slow shell script. Don't cache a 2666 # value for MKDIR_P within a source directory, because that will 2667 # break other packages using the cache if that directory is 2668 # removed, or if the value is a relative name. 2669 MKDIR_P="$ac_install_sh -d" 2670 fi 2671 fi 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2673 $as_echo "$MKDIR_P" >&6; } 2674 2675 mkdir_p="$MKDIR_P" 2676 case $mkdir_p in 2677 [\\/$]* | ?:[\\/]*) ;; 2678 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2679 esac 2680 2681 for ac_prog in gawk mawk nawk awk 2682 do 2683 # Extract the first word of "$ac_prog", so it can be a program name with args. 2684 set dummy $ac_prog; ac_word=$2 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2686 $as_echo_n "checking for $ac_word... " >&6; } 2687 if ${ac_cv_prog_AWK+:} false; then : 2688 $as_echo_n "(cached) " >&6 2689 else 2690 if test -n "$AWK"; then 2691 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2692 else 2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2694 for as_dir in $PATH 2695 do 2696 IFS=$as_save_IFS 2697 test -z "$as_dir" && as_dir=. 2698 for ac_exec_ext in '' $ac_executable_extensions; do 2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2700 ac_cv_prog_AWK="$ac_prog" 2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2702 break 2 2703 fi 2704 done 2705 done 2706 IFS=$as_save_IFS 2707 2708 fi 2709 fi 2710 AWK=$ac_cv_prog_AWK 2711 if test -n "$AWK"; then 2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2713 $as_echo "$AWK" >&6; } 2714 else 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2716 $as_echo "no" >&6; } 2717 fi 2718 2719 2720 test -n "$AWK" && break 2721 done 2722 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2724 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2725 set x ${MAKE-make} 2726 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2727 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2728 $as_echo_n "(cached) " >&6 2729 else 2730 cat >conftest.make <<\_ACEOF 2731 SHELL = /bin/sh 2732 all: 2733 @echo '@@@%%%=$(MAKE)=@@@%%%' 2734 _ACEOF 2735 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2736 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2737 *@@@%%%=?*=@@@%%%*) 2738 eval ac_cv_prog_make_${ac_make}_set=yes;; 2739 *) 2740 eval ac_cv_prog_make_${ac_make}_set=no;; 2741 esac 2742 rm -f conftest.make 2743 fi 2744 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2746 $as_echo "yes" >&6; } 2747 SET_MAKE= 2748 else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750 $as_echo "no" >&6; } 2751 SET_MAKE="MAKE=${MAKE-make}" 2752 fi 2753 2754 rm -rf .tst 2>/dev/null 2755 mkdir .tst 2>/dev/null 2756 if test -d .tst; then 2757 am__leading_dot=. 2758 else 2759 am__leading_dot=_ 2760 fi 2761 rmdir .tst 2>/dev/null 2762 2763 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2764 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2765 # is not polluted with repeated "-I." 2766 am__isrc=' -I$(srcdir)' 2767 # test to see if srcdir already configured 2768 if test -f $srcdir/config.status; then 2769 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2770 fi 2771 fi 2772 2773 # test whether we have cygpath 2774 if test -z "$CYGPATH_W"; then 2775 if (cygpath --version) >/dev/null 2>/dev/null; then 2776 CYGPATH_W='cygpath -w' 2777 else 2778 CYGPATH_W=echo 2779 fi 2780 fi 2781 2782 2783 # Define the identity of the package. 2784 PACKAGE='libcap-ng' 2785 VERSION='0.7' 2786 2787 2788 cat >>confdefs.h <<_ACEOF 2789 #define PACKAGE "$PACKAGE" 2790 _ACEOF 2791 2792 2793 cat >>confdefs.h <<_ACEOF 2794 #define VERSION "$VERSION" 2795 _ACEOF 2796 2797 # Some tools Automake needs. 2798 2799 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2800 2801 2802 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2803 2804 2805 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2806 2807 2808 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2809 2810 2811 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2812 2813 # We need awk for the "check" target. The system "awk" is bad on 2814 # some platforms. 2815 # Always define AMTAR for backward compatibility. Yes, it's still used 2816 # in the wild :-( We should find a proper way to deprecate it ... 2817 AMTAR='$${TAR-tar}' 2818 2819 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2820 2821 2822 2823 2824 2825 case `pwd` in 2826 *\ * | *\ *) 2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2828 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2829 esac 2830 2831 2832 2833 macro_version='2.4.2' 2834 macro_revision='1.3337' 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 ltmain="$ac_aux_dir/ltmain.sh" 2849 2850 # Backslashify metacharacters that are still active within 2851 # double-quoted strings. 2852 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2853 2854 # Same as above, but do not quote variable references. 2855 double_quote_subst='s/\(["`\\]\)/\\\1/g' 2856 2857 # Sed substitution to delay expansion of an escaped shell variable in a 2858 # double_quote_subst'ed string. 2859 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2860 2861 # Sed substitution to delay expansion of an escaped single quote. 2862 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2863 2864 # Sed substitution to avoid accidental globbing in evaled expressions 2865 no_glob_subst='s/\*/\\\*/g' 2866 2867 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2868 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2869 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2870 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2872 $as_echo_n "checking how to print strings... " >&6; } 2873 # Test print first, because it will be a builtin if present. 2874 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2875 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2876 ECHO='print -r --' 2877 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2878 ECHO='printf %s\n' 2879 else 2880 # Use this function as a fallback that always works. 2881 func_fallback_echo () 2882 { 2883 eval 'cat <<_LTECHO_EOF 2884 $1 2885 _LTECHO_EOF' 2886 } 2887 ECHO='func_fallback_echo' 2888 fi 2889 2890 # func_echo_all arg... 2891 # Invoke $ECHO with all args, space-separated. 2892 func_echo_all () 2893 { 2894 $ECHO "" 2895 } 2896 2897 case "$ECHO" in 2898 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2899 $as_echo "printf" >&6; } ;; 2900 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2901 $as_echo "print -r" >&6; } ;; 2902 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2903 $as_echo "cat" >&6; } ;; 2904 esac 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 DEPDIR="${am__leading_dot}deps" 2920 2921 ac_config_commands="$ac_config_commands depfiles" 2922 2923 2924 am_make=${MAKE-make} 2925 cat > confinc << 'END' 2926 am__doit: 2927 @echo this is the am__doit target 2928 .PHONY: am__doit 2929 END 2930 # If we don't find an include directive, just comment out the code. 2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2932 $as_echo_n "checking for style of include used by $am_make... " >&6; } 2933 am__include="#" 2934 am__quote= 2935 _am_result=none 2936 # First try GNU make style include. 2937 echo "include confinc" > confmf 2938 # Ignore all kinds of additional output from `make'. 2939 case `$am_make -s -f confmf 2> /dev/null` in #( 2940 *the\ am__doit\ target*) 2941 am__include=include 2942 am__quote= 2943 _am_result=GNU 2944 ;; 2945 esac 2946 # Now try BSD make style include. 2947 if test "$am__include" = "#"; then 2948 echo '.include "confinc"' > confmf 2949 case `$am_make -s -f confmf 2> /dev/null` in #( 2950 *the\ am__doit\ target*) 2951 am__include=.include 2952 am__quote="\"" 2953 _am_result=BSD 2954 ;; 2955 esac 2956 fi 2957 2958 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2960 $as_echo "$_am_result" >&6; } 2961 rm -f confinc confmf 2962 2963 # Check whether --enable-dependency-tracking was given. 2964 if test "${enable_dependency_tracking+set}" = set; then : 2965 enableval=$enable_dependency_tracking; 2966 fi 2967 2968 if test "x$enable_dependency_tracking" != xno; then 2969 am_depcomp="$ac_aux_dir/depcomp" 2970 AMDEPBACKSLASH='\' 2971 am__nodep='_no' 2972 fi 2973 if test "x$enable_dependency_tracking" != xno; then 2974 AMDEP_TRUE= 2975 AMDEP_FALSE='#' 2976 else 2977 AMDEP_TRUE='#' 2978 AMDEP_FALSE= 2979 fi 2980 2981 2982 ac_ext=c 2983 ac_cpp='$CPP $CPPFLAGS' 2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2987 if test -n "$ac_tool_prefix"; then 2988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2989 set dummy ${ac_tool_prefix}gcc; 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3005 ac_cv_prog_CC="${ac_tool_prefix}gcc" 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 fi 3026 if test -z "$ac_cv_prog_CC"; then 3027 ac_ct_CC=$CC 3028 # Extract the first word of "gcc", so it can be a program name with args. 3029 set dummy gcc; ac_word=$2 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031 $as_echo_n "checking for $ac_word... " >&6; } 3032 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3033 $as_echo_n "(cached) " >&6 3034 else 3035 if test -n "$ac_ct_CC"; then 3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3037 else 3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039 for as_dir in $PATH 3040 do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3045 ac_cv_prog_ac_ct_CC="gcc" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049 done 3050 done 3051 IFS=$as_save_IFS 3052 3053 fi 3054 fi 3055 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3056 if test -n "$ac_ct_CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3058 $as_echo "$ac_ct_CC" >&6; } 3059 else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061 $as_echo "no" >&6; } 3062 fi 3063 3064 if test "x$ac_ct_CC" = x; then 3065 CC="" 3066 else 3067 case $cross_compiling:$ac_tool_warned in 3068 yes:) 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3071 ac_tool_warned=yes ;; 3072 esac 3073 CC=$ac_ct_CC 3074 fi 3075 else 3076 CC="$ac_cv_prog_CC" 3077 fi 3078 3079 if test -z "$CC"; then 3080 if test -n "$ac_tool_prefix"; then 3081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3082 set dummy ${ac_tool_prefix}cc; ac_word=$2 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084 $as_echo_n "checking for $ac_word... " >&6; } 3085 if ${ac_cv_prog_CC+:} false; then : 3086 $as_echo_n "(cached) " >&6 3087 else 3088 if test -n "$CC"; then 3089 ac_cv_prog_CC="$CC" # Let the user override the test. 3090 else 3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092 for as_dir in $PATH 3093 do 3094 IFS=$as_save_IFS 3095 test -z "$as_dir" && as_dir=. 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3098 ac_cv_prog_CC="${ac_tool_prefix}cc" 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102 done 3103 done 3104 IFS=$as_save_IFS 3105 3106 fi 3107 fi 3108 CC=$ac_cv_prog_CC 3109 if test -n "$CC"; then 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3111 $as_echo "$CC" >&6; } 3112 else 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114 $as_echo "no" >&6; } 3115 fi 3116 3117 3118 fi 3119 fi 3120 if test -z "$CC"; then 3121 # Extract the first word of "cc", so it can be a program name with args. 3122 set dummy cc; ac_word=$2 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124 $as_echo_n "checking for $ac_word... " >&6; } 3125 if ${ac_cv_prog_CC+:} false; then : 3126 $as_echo_n "(cached) " >&6 3127 else 3128 if test -n "$CC"; then 3129 ac_cv_prog_CC="$CC" # Let the user override the test. 3130 else 3131 ac_prog_rejected=no 3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133 for as_dir in $PATH 3134 do 3135 IFS=$as_save_IFS 3136 test -z "$as_dir" && as_dir=. 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3140 ac_prog_rejected=yes 3141 continue 3142 fi 3143 ac_cv_prog_CC="cc" 3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147 done 3148 done 3149 IFS=$as_save_IFS 3150 3151 if test $ac_prog_rejected = yes; then 3152 # We found a bogon in the path, so make sure we never use it. 3153 set dummy $ac_cv_prog_CC 3154 shift 3155 if test $# != 0; then 3156 # We chose a different compiler from the bogus one. 3157 # However, it has the same basename, so the bogon will be chosen 3158 # first if we set CC to just the basename; use the full file name. 3159 shift 3160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3161 fi 3162 fi 3163 fi 3164 fi 3165 CC=$ac_cv_prog_CC 3166 if test -n "$CC"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3168 $as_echo "$CC" >&6; } 3169 else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171 $as_echo "no" >&6; } 3172 fi 3173 3174 3175 fi 3176 if test -z "$CC"; then 3177 if test -n "$ac_tool_prefix"; then 3178 for ac_prog in cl.exe 3179 do 3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183 $as_echo_n "checking for $ac_word... " >&6; } 3184 if ${ac_cv_prog_CC+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186 else 3187 if test -n "$CC"; then 3188 ac_cv_prog_CC="$CC" # Let the user override the test. 3189 else 3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191 for as_dir in $PATH 3192 do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3199 break 2 3200 fi 3201 done 3202 done 3203 IFS=$as_save_IFS 3204 3205 fi 3206 fi 3207 CC=$ac_cv_prog_CC 3208 if test -n "$CC"; then 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3210 $as_echo "$CC" >&6; } 3211 else 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3213 $as_echo "no" >&6; } 3214 fi 3215 3216 3217 test -n "$CC" && break 3218 done 3219 fi 3220 if test -z "$CC"; then 3221 ac_ct_CC=$CC 3222 for ac_prog in cl.exe 3223 do 3224 # Extract the first word of "$ac_prog", so it can be a program name with args. 3225 set dummy $ac_prog; ac_word=$2 3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3227 $as_echo_n "checking for $ac_word... " >&6; } 3228 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3229 $as_echo_n "(cached) " >&6 3230 else 3231 if test -n "$ac_ct_CC"; then 3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3233 else 3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235 for as_dir in $PATH 3236 do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for ac_exec_ext in '' $ac_executable_extensions; do 3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3241 ac_cv_prog_ac_ct_CC="$ac_prog" 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3243 break 2 3244 fi 3245 done 3246 done 3247 IFS=$as_save_IFS 3248 3249 fi 3250 fi 3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3252 if test -n "$ac_ct_CC"; then 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3254 $as_echo "$ac_ct_CC" >&6; } 3255 else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257 $as_echo "no" >&6; } 3258 fi 3259 3260 3261 test -n "$ac_ct_CC" && break 3262 done 3263 3264 if test "x$ac_ct_CC" = x; then 3265 CC="" 3266 else 3267 case $cross_compiling:$ac_tool_warned in 3268 yes:) 3269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3271 ac_tool_warned=yes ;; 3272 esac 3273 CC=$ac_ct_CC 3274 fi 3275 fi 3276 3277 fi 3278 3279 3280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3282 as_fn_error $? "no acceptable C compiler found in \$PATH 3283 See \`config.log' for more details" "$LINENO" 5; } 3284 3285 # Provide some information about the compiler. 3286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3287 set X $ac_compile 3288 ac_compiler=$2 3289 for ac_option in --version -v -V -qversion; do 3290 { { ac_try="$ac_compiler $ac_option >&5" 3291 case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294 esac 3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3296 $as_echo "$ac_try_echo"; } >&5 3297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3298 ac_status=$? 3299 if test -s conftest.err; then 3300 sed '10a\ 3301 ... rest of stderr output deleted ... 3302 10q' conftest.err >conftest.er1 3303 cat conftest.er1 >&5 3304 fi 3305 rm -f conftest.er1 conftest.err 3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3307 test $ac_status = 0; } 3308 done 3309 3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311 /* end confdefs.h. */ 3312 3313 int 3314 main () 3315 { 3316 3317 ; 3318 return 0; 3319 } 3320 _ACEOF 3321 ac_clean_files_save=$ac_clean_files 3322 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3323 # Try to create an executable without -o first, disregard a.out. 3324 # It will help us diagnose broken compilers, and finding out an intuition 3325 # of exeext. 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3327 $as_echo_n "checking whether the C compiler works... " >&6; } 3328 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3329 3330 # The possible output files: 3331 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3332 3333 ac_rmfiles= 3334 for ac_file in $ac_files 3335 do 3336 case $ac_file in 3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3338 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3339 esac 3340 done 3341 rm -f $ac_rmfiles 3342 3343 if { { ac_try="$ac_link_default" 3344 case "(($ac_try" in 3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3346 *) ac_try_echo=$ac_try;; 3347 esac 3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3349 $as_echo "$ac_try_echo"; } >&5 3350 (eval "$ac_link_default") 2>&5 3351 ac_status=$? 3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3353 test $ac_status = 0; }; then : 3354 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3355 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3356 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3357 # so that the user can short-circuit this test for compilers unknown to 3358 # Autoconf. 3359 for ac_file in $ac_files '' 3360 do 3361 test -f "$ac_file" || continue 3362 case $ac_file in 3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3364 ;; 3365 [ab].out ) 3366 # We found the default executable, but exeext='' is most 3367 # certainly right. 3368 break;; 3369 *.* ) 3370 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3371 then :; else 3372 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3373 fi 3374 # We set ac_cv_exeext here because the later test for it is not 3375 # safe: cross compilers may not add the suffix if given an `-o' 3376 # argument, so we may need to know it at that point already. 3377 # Even if this section looks crufty: it has the advantage of 3378 # actually working. 3379 break;; 3380 * ) 3381 break;; 3382 esac 3383 done 3384 test "$ac_cv_exeext" = no && ac_cv_exeext= 3385 3386 else 3387 ac_file='' 3388 fi 3389 if test -z "$ac_file"; then : 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391 $as_echo "no" >&6; } 3392 $as_echo "$as_me: failed program was:" >&5 3393 sed 's/^/| /' conftest.$ac_ext >&5 3394 3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3397 as_fn_error 77 "C compiler cannot create executables 3398 See \`config.log' for more details" "$LINENO" 5; } 3399 else 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3401 $as_echo "yes" >&6; } 3402 fi 3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3404 $as_echo_n "checking for C compiler default output file name... " >&6; } 3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3406 $as_echo "$ac_file" >&6; } 3407 ac_exeext=$ac_cv_exeext 3408 3409 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3410 ac_clean_files=$ac_clean_files_save 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3412 $as_echo_n "checking for suffix of executables... " >&6; } 3413 if { { ac_try="$ac_link" 3414 case "(($ac_try" in 3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3416 *) ac_try_echo=$ac_try;; 3417 esac 3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3419 $as_echo "$ac_try_echo"; } >&5 3420 (eval "$ac_link") 2>&5 3421 ac_status=$? 3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3423 test $ac_status = 0; }; then : 3424 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3425 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3426 # work properly (i.e., refer to `conftest.exe'), while it won't with 3427 # `rm'. 3428 for ac_file in conftest.exe conftest conftest.*; do 3429 test -f "$ac_file" || continue 3430 case $ac_file in 3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3432 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3433 break;; 3434 * ) break;; 3435 esac 3436 done 3437 else 3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3440 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3441 See \`config.log' for more details" "$LINENO" 5; } 3442 fi 3443 rm -f conftest conftest$ac_cv_exeext 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3445 $as_echo "$ac_cv_exeext" >&6; } 3446 3447 rm -f conftest.$ac_ext 3448 EXEEXT=$ac_cv_exeext 3449 ac_exeext=$EXEEXT 3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3451 /* end confdefs.h. */ 3452 #include <stdio.h> 3453 int 3454 main () 3455 { 3456 FILE *f = fopen ("conftest.out", "w"); 3457 return ferror (f) || fclose (f) != 0; 3458 3459 ; 3460 return 0; 3461 } 3462 _ACEOF 3463 ac_clean_files="$ac_clean_files conftest.out" 3464 # Check that the compiler produces executables we can run. If not, either 3465 # the compiler is broken, or we cross compile. 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3467 $as_echo_n "checking whether we are cross compiling... " >&6; } 3468 if test "$cross_compiling" != yes; then 3469 { { ac_try="$ac_link" 3470 case "(($ac_try" in 3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3472 *) ac_try_echo=$ac_try;; 3473 esac 3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3475 $as_echo "$ac_try_echo"; } >&5 3476 (eval "$ac_link") 2>&5 3477 ac_status=$? 3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3479 test $ac_status = 0; } 3480 if { ac_try='./conftest$ac_cv_exeext' 3481 { { case "(($ac_try" in 3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3483 *) ac_try_echo=$ac_try;; 3484 esac 3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3486 $as_echo "$ac_try_echo"; } >&5 3487 (eval "$ac_try") 2>&5 3488 ac_status=$? 3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3490 test $ac_status = 0; }; }; then 3491 cross_compiling=no 3492 else 3493 if test "$cross_compiling" = maybe; then 3494 cross_compiling=yes 3495 else 3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3498 as_fn_error $? "cannot run C compiled programs. 3499 If you meant to cross compile, use \`--host'. 3500 See \`config.log' for more details" "$LINENO" 5; } 3501 fi 3502 fi 3503 fi 3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3505 $as_echo "$cross_compiling" >&6; } 3506 3507 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3508 ac_clean_files=$ac_clean_files_save 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3510 $as_echo_n "checking for suffix of object files... " >&6; } 3511 if ${ac_cv_objext+:} false; then : 3512 $as_echo_n "(cached) " >&6 3513 else 3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3515 /* end confdefs.h. */ 3516 3517 int 3518 main () 3519 { 3520 3521 ; 3522 return 0; 3523 } 3524 _ACEOF 3525 rm -f conftest.o conftest.obj 3526 if { { ac_try="$ac_compile" 3527 case "(($ac_try" in 3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3529 *) ac_try_echo=$ac_try;; 3530 esac 3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3532 $as_echo "$ac_try_echo"; } >&5 3533 (eval "$ac_compile") 2>&5 3534 ac_status=$? 3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3536 test $ac_status = 0; }; then : 3537 for ac_file in conftest.o conftest.obj conftest.*; do 3538 test -f "$ac_file" || continue; 3539 case $ac_file in 3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3541 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3542 break;; 3543 esac 3544 done 3545 else 3546 $as_echo "$as_me: failed program was:" >&5 3547 sed 's/^/| /' conftest.$ac_ext >&5 3548 3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3551 as_fn_error $? "cannot compute suffix of object files: cannot compile 3552 See \`config.log' for more details" "$LINENO" 5; } 3553 fi 3554 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3555 fi 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3557 $as_echo "$ac_cv_objext" >&6; } 3558 OBJEXT=$ac_cv_objext 3559 ac_objext=$OBJEXT 3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3561 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3562 if ${ac_cv_c_compiler_gnu+:} false; then : 3563 $as_echo_n "(cached) " >&6 3564 else 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566 /* end confdefs.h. */ 3567 3568 int 3569 main () 3570 { 3571 #ifndef __GNUC__ 3572 choke me 3573 #endif 3574 3575 ; 3576 return 0; 3577 } 3578 _ACEOF 3579 if ac_fn_c_try_compile "$LINENO"; then : 3580 ac_compiler_gnu=yes 3581 else 3582 ac_compiler_gnu=no 3583 fi 3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3586 3587 fi 3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3590 if test $ac_compiler_gnu = yes; then 3591 GCC=yes 3592 else 3593 GCC= 3594 fi 3595 ac_test_CFLAGS=${CFLAGS+set} 3596 ac_save_CFLAGS=$CFLAGS 3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3598 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3599 if ${ac_cv_prog_cc_g+:} false; then : 3600 $as_echo_n "(cached) " >&6 3601 else 3602 ac_save_c_werror_flag=$ac_c_werror_flag 3603 ac_c_werror_flag=yes 3604 ac_cv_prog_cc_g=no 3605 CFLAGS="-g" 3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3607 /* end confdefs.h. */ 3608 3609 int 3610 main () 3611 { 3612 3613 ; 3614 return 0; 3615 } 3616 _ACEOF 3617 if ac_fn_c_try_compile "$LINENO"; then : 3618 ac_cv_prog_cc_g=yes 3619 else 3620 CFLAGS="" 3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3622 /* end confdefs.h. */ 3623 3624 int 3625 main () 3626 { 3627 3628 ; 3629 return 0; 3630 } 3631 _ACEOF 3632 if ac_fn_c_try_compile "$LINENO"; then : 3633 3634 else 3635 ac_c_werror_flag=$ac_save_c_werror_flag 3636 CFLAGS="-g" 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3638 /* end confdefs.h. */ 3639 3640 int 3641 main () 3642 { 3643 3644 ; 3645 return 0; 3646 } 3647 _ACEOF 3648 if ac_fn_c_try_compile "$LINENO"; then : 3649 ac_cv_prog_cc_g=yes 3650 fi 3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3652 fi 3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3654 fi 3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3656 ac_c_werror_flag=$ac_save_c_werror_flag 3657 fi 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3659 $as_echo "$ac_cv_prog_cc_g" >&6; } 3660 if test "$ac_test_CFLAGS" = set; then 3661 CFLAGS=$ac_save_CFLAGS 3662 elif test $ac_cv_prog_cc_g = yes; then 3663 if test "$GCC" = yes; then 3664 CFLAGS="-g -O2" 3665 else 3666 CFLAGS="-g" 3667 fi 3668 else 3669 if test "$GCC" = yes; then 3670 CFLAGS="-O2" 3671 else 3672 CFLAGS= 3673 fi 3674 fi 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3676 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3677 if ${ac_cv_prog_cc_c89+:} false; then : 3678 $as_echo_n "(cached) " >&6 3679 else 3680 ac_cv_prog_cc_c89=no 3681 ac_save_CC=$CC 3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3683 /* end confdefs.h. */ 3684 #include <stdarg.h> 3685 #include <stdio.h> 3686 #include <sys/types.h> 3687 #include <sys/stat.h> 3688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3689 struct buf { int x; }; 3690 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3691 static char *e (p, i) 3692 char **p; 3693 int i; 3694 { 3695 return p[i]; 3696 } 3697 static char *f (char * (*g) (char **, int), char **p, ...) 3698 { 3699 char *s; 3700 va_list v; 3701 va_start (v,p); 3702 s = g (p, va_arg (v,int)); 3703 va_end (v); 3704 return s; 3705 } 3706 3707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3708 function prototypes and stuff, but not '\xHH' hex character constants. 3709 These don't provoke an error unfortunately, instead are silently treated 3710 as 'x'. The following induces an error, until -std is added to get 3711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3712 array size at least. It's necessary to write '\x00'==0 to get something 3713 that's true only with -std. */ 3714 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3715 3716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3717 inside strings and character constants. */ 3718 #define FOO(x) 'x' 3719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3720 3721 int test (int i, double x); 3722 struct s1 {int (*f) (int a);}; 3723 struct s2 {int (*f) (double a);}; 3724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3725 int argc; 3726 char **argv; 3727 int 3728 main () 3729 { 3730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3731 ; 3732 return 0; 3733 } 3734 _ACEOF 3735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3737 do 3738 CC="$ac_save_CC $ac_arg" 3739 if ac_fn_c_try_compile "$LINENO"; then : 3740 ac_cv_prog_cc_c89=$ac_arg 3741 fi 3742 rm -f core conftest.err conftest.$ac_objext 3743 test "x$ac_cv_prog_cc_c89" != "xno" && break 3744 done 3745 rm -f conftest.$ac_ext 3746 CC=$ac_save_CC 3747 3748 fi 3749 # AC_CACHE_VAL 3750 case "x$ac_cv_prog_cc_c89" in 3751 x) 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3753 $as_echo "none needed" >&6; } ;; 3754 xno) 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3756 $as_echo "unsupported" >&6; } ;; 3757 *) 3758 CC="$CC $ac_cv_prog_cc_c89" 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3760 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3761 esac 3762 if test "x$ac_cv_prog_cc_c89" != xno; then : 3763 3764 fi 3765 3766 ac_ext=c 3767 ac_cpp='$CPP $CPPFLAGS' 3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3771 3772 depcc="$CC" am_compiler_list= 3773 3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3775 $as_echo_n "checking dependency style of $depcc... " >&6; } 3776 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3777 $as_echo_n "(cached) " >&6 3778 else 3779 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3780 # We make a subdir and do the tests there. Otherwise we can end up 3781 # making bogus files that we don't know about and never remove. For 3782 # instance it was reported that on HP-UX the gcc test will end up 3783 # making a dummy file named `D' -- because `-MD' means `put the output 3784 # in D'. 3785 rm -rf conftest.dir 3786 mkdir conftest.dir 3787 # Copy depcomp to subdir because otherwise we won't find it if we're 3788 # using a relative directory. 3789 cp "$am_depcomp" conftest.dir 3790 cd conftest.dir 3791 # We will build objects and dependencies in a subdirectory because 3792 # it helps to detect inapplicable dependency modes. For instance 3793 # both Tru64's cc and ICC support -MD to output dependencies as a 3794 # side effect of compilation, but ICC will put the dependencies in 3795 # the current directory while Tru64 will put them in the object 3796 # directory. 3797 mkdir sub 3798 3799 am_cv_CC_dependencies_compiler_type=none 3800 if test "$am_compiler_list" = ""; then 3801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3802 fi 3803 am__universal=false 3804 case " $depcc " in #( 3805 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3806 esac 3807 3808 for depmode in $am_compiler_list; do 3809 # Setup a source with many dependencies, because some compilers 3810 # like to wrap large dependency lists on column 80 (with \), and 3811 # we should not choose a depcomp mode which is confused by this. 3812 # 3813 # We need to recreate these files for each test, as the compiler may 3814 # overwrite some of them when testing with obscure command lines. 3815 # This happens at least with the AIX C compiler. 3816 : > sub/conftest.c 3817 for i in 1 2 3 4 5 6; do 3818 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3819 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3820 # Solaris 8's {/usr,}/bin/sh. 3821 touch sub/conftst$i.h 3822 done 3823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3824 3825 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3826 # mode. It turns out that the SunPro C++ compiler does not properly 3827 # handle `-M -o', and we need to detect this. Also, some Intel 3828 # versions had trouble with output in subdirs 3829 am__obj=sub/conftest.${OBJEXT-o} 3830 am__minus_obj="-o $am__obj" 3831 case $depmode in 3832 gcc) 3833 # This depmode causes a compiler race in universal mode. 3834 test "$am__universal" = false || continue 3835 ;; 3836 nosideeffect) 3837 # after this tag, mechanisms are not by side-effect, so they'll 3838 # only be used when explicitly requested 3839 if test "x$enable_dependency_tracking" = xyes; then 3840 continue 3841 else 3842 break 3843 fi 3844 ;; 3845 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3846 # This compiler won't grok `-c -o', but also, the minuso test has 3847 # not run yet. These depmodes are late enough in the game, and 3848 # so weak that their functioning should not be impacted. 3849 am__obj=conftest.${OBJEXT-o} 3850 am__minus_obj= 3851 ;; 3852 none) break ;; 3853 esac 3854 if depmode=$depmode \ 3855 source=sub/conftest.c object=$am__obj \ 3856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3857 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3858 >/dev/null 2>conftest.err && 3859 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3860 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3861 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3862 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3863 # icc doesn't choke on unknown options, it will just issue warnings 3864 # or remarks (even with -Werror). So we grep stderr for any message 3865 # that says an option was ignored or not supported. 3866 # When given -MP, icc 7.0 and 7.1 complain thusly: 3867 # icc: Command line warning: ignoring option '-M'; no argument required 3868 # The diagnosis changed in icc 8.0: 3869 # icc: Command line remark: option '-MP' not supported 3870 if (grep 'ignoring option' conftest.err || 3871 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3872 am_cv_CC_dependencies_compiler_type=$depmode 3873 break 3874 fi 3875 fi 3876 done 3877 3878 cd .. 3879 rm -rf conftest.dir 3880 else 3881 am_cv_CC_dependencies_compiler_type=none 3882 fi 3883 3884 fi 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3886 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3887 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3888 3889 if 3890 test "x$enable_dependency_tracking" != xno \ 3891 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3892 am__fastdepCC_TRUE= 3893 am__fastdepCC_FALSE='#' 3894 else 3895 am__fastdepCC_TRUE='#' 3896 am__fastdepCC_FALSE= 3897 fi 3898 3899 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3901 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 3902 if ${ac_cv_path_SED+:} false; then : 3903 $as_echo_n "(cached) " >&6 3904 else 3905 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3906 for ac_i in 1 2 3 4 5 6 7; do 3907 ac_script="$ac_script$as_nl$ac_script" 3908 done 3909 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3910 { ac_script=; unset ac_script;} 3911 if test -z "$SED"; then 3912 ac_path_SED_found=false 3913 # Loop through the user's path and test for each of PROGNAME-LIST 3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3915 for as_dir in $PATH 3916 do 3917 IFS=$as_save_IFS 3918 test -z "$as_dir" && as_dir=. 3919 for ac_prog in sed gsed; do 3920 for ac_exec_ext in '' $ac_executable_extensions; do 3921 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3922 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3923 # Check for GNU ac_path_SED and select it if it is found. 3924 # Check for GNU $ac_path_SED 3925 case `"$ac_path_SED" --version 2>&1` in 3926 *GNU*) 3927 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3928 *) 3929 ac_count=0 3930 $as_echo_n 0123456789 >"conftest.in" 3931 while : 3932 do 3933 cat "conftest.in" "conftest.in" >"conftest.tmp" 3934 mv "conftest.tmp" "conftest.in" 3935 cp "conftest.in" "conftest.nl" 3936 $as_echo '' >> "conftest.nl" 3937 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3939 as_fn_arith $ac_count + 1 && ac_count=$as_val 3940 if test $ac_count -gt ${ac_path_SED_max-0}; then 3941 # Best one so far, save it but keep looking for a better one 3942 ac_cv_path_SED="$ac_path_SED" 3943 ac_path_SED_max=$ac_count 3944 fi 3945 # 10*(2^10) chars as input seems more than enough 3946 test $ac_count -gt 10 && break 3947 done 3948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3949 esac 3950 3951 $ac_path_SED_found && break 3 3952 done 3953 done 3954 done 3955 IFS=$as_save_IFS 3956 if test -z "$ac_cv_path_SED"; then 3957 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3958 fi 3959 else 3960 ac_cv_path_SED=$SED 3961 fi 3962 3963 fi 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3965 $as_echo "$ac_cv_path_SED" >&6; } 3966 SED="$ac_cv_path_SED" 3967 rm -f conftest.sed 3968 3969 test -z "$SED" && SED=sed 3970 Xsed="$SED -e 1s/^X//" 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3983 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3984 if ${ac_cv_path_GREP+:} false; then : 3985 $as_echo_n "(cached) " >&6 3986 else 3987 if test -z "$GREP"; then 3988 ac_path_GREP_found=false 3989 # Loop through the user's path and test for each of PROGNAME-LIST 3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3992 do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_prog in grep ggrep; do 3996 for ac_exec_ext in '' $ac_executable_extensions; do 3997 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3998 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3999 # Check for GNU ac_path_GREP and select it if it is found. 4000 # Check for GNU $ac_path_GREP 4001 case `"$ac_path_GREP" --version 2>&1` in 4002 *GNU*) 4003 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4004 *) 4005 ac_count=0 4006 $as_echo_n 0123456789 >"conftest.in" 4007 while : 4008 do 4009 cat "conftest.in" "conftest.in" >"conftest.tmp" 4010 mv "conftest.tmp" "conftest.in" 4011 cp "conftest.in" "conftest.nl" 4012 $as_echo 'GREP' >> "conftest.nl" 4013 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4015 as_fn_arith $ac_count + 1 && ac_count=$as_val 4016 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4017 # Best one so far, save it but keep looking for a better one 4018 ac_cv_path_GREP="$ac_path_GREP" 4019 ac_path_GREP_max=$ac_count 4020 fi 4021 # 10*(2^10) chars as input seems more than enough 4022 test $ac_count -gt 10 && break 4023 done 4024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4025 esac 4026 4027 $ac_path_GREP_found && break 3 4028 done 4029 done 4030 done 4031 IFS=$as_save_IFS 4032 if test -z "$ac_cv_path_GREP"; then 4033 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4034 fi 4035 else 4036 ac_cv_path_GREP=$GREP 4037 fi 4038 4039 fi 4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4041 $as_echo "$ac_cv_path_GREP" >&6; } 4042 GREP="$ac_cv_path_GREP" 4043 4044 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4046 $as_echo_n "checking for egrep... " >&6; } 4047 if ${ac_cv_path_EGREP+:} false; then : 4048 $as_echo_n "(cached) " >&6 4049 else 4050 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4051 then ac_cv_path_EGREP="$GREP -E" 4052 else 4053 if test -z "$EGREP"; then 4054 ac_path_EGREP_found=false 4055 # Loop through the user's path and test for each of PROGNAME-LIST 4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4057 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4058 do 4059 IFS=$as_save_IFS 4060 test -z "$as_dir" && as_dir=. 4061 for ac_prog in egrep; do 4062 for ac_exec_ext in '' $ac_executable_extensions; do 4063 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4064 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4065 # Check for GNU ac_path_EGREP and select it if it is found. 4066 # Check for GNU $ac_path_EGREP 4067 case `"$ac_path_EGREP" --version 2>&1` in 4068 *GNU*) 4069 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4070 *) 4071 ac_count=0 4072 $as_echo_n 0123456789 >"conftest.in" 4073 while : 4074 do 4075 cat "conftest.in" "conftest.in" >"conftest.tmp" 4076 mv "conftest.tmp" "conftest.in" 4077 cp "conftest.in" "conftest.nl" 4078 $as_echo 'EGREP' >> "conftest.nl" 4079 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4080 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4081 as_fn_arith $ac_count + 1 && ac_count=$as_val 4082 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4083 # Best one so far, save it but keep looking for a better one 4084 ac_cv_path_EGREP="$ac_path_EGREP" 4085 ac_path_EGREP_max=$ac_count 4086 fi 4087 # 10*(2^10) chars as input seems more than enough 4088 test $ac_count -gt 10 && break 4089 done 4090 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4091 esac 4092 4093 $ac_path_EGREP_found && break 3 4094 done 4095 done 4096 done 4097 IFS=$as_save_IFS 4098 if test -z "$ac_cv_path_EGREP"; then 4099 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4100 fi 4101 else 4102 ac_cv_path_EGREP=$EGREP 4103 fi 4104 4105 fi 4106 fi 4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4108 $as_echo "$ac_cv_path_EGREP" >&6; } 4109 EGREP="$ac_cv_path_EGREP" 4110 4111 4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4113 $as_echo_n "checking for fgrep... " >&6; } 4114 if ${ac_cv_path_FGREP+:} false; then : 4115 $as_echo_n "(cached) " >&6 4116 else 4117 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4118 then ac_cv_path_FGREP="$GREP -F" 4119 else 4120 if test -z "$FGREP"; then 4121 ac_path_FGREP_found=false 4122 # Loop through the user's path and test for each of PROGNAME-LIST 4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4124 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4125 do 4126 IFS=$as_save_IFS 4127 test -z "$as_dir" && as_dir=. 4128 for ac_prog in fgrep; do 4129 for ac_exec_ext in '' $ac_executable_extensions; do 4130 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4131 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4132 # Check for GNU ac_path_FGREP and select it if it is found. 4133 # Check for GNU $ac_path_FGREP 4134 case `"$ac_path_FGREP" --version 2>&1` in 4135 *GNU*) 4136 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4137 *) 4138 ac_count=0 4139 $as_echo_n 0123456789 >"conftest.in" 4140 while : 4141 do 4142 cat "conftest.in" "conftest.in" >"conftest.tmp" 4143 mv "conftest.tmp" "conftest.in" 4144 cp "conftest.in" "conftest.nl" 4145 $as_echo 'FGREP' >> "conftest.nl" 4146 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4148 as_fn_arith $ac_count + 1 && ac_count=$as_val 4149 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4150 # Best one so far, save it but keep looking for a better one 4151 ac_cv_path_FGREP="$ac_path_FGREP" 4152 ac_path_FGREP_max=$ac_count 4153 fi 4154 # 10*(2^10) chars as input seems more than enough 4155 test $ac_count -gt 10 && break 4156 done 4157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4158 esac 4159 4160 $ac_path_FGREP_found && break 3 4161 done 4162 done 4163 done 4164 IFS=$as_save_IFS 4165 if test -z "$ac_cv_path_FGREP"; then 4166 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4167 fi 4168 else 4169 ac_cv_path_FGREP=$FGREP 4170 fi 4171 4172 fi 4173 fi 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4175 $as_echo "$ac_cv_path_FGREP" >&6; } 4176 FGREP="$ac_cv_path_FGREP" 4177 4178 4179 test -z "$GREP" && GREP=grep 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 # Check whether --with-gnu-ld was given. 4200 if test "${with_gnu_ld+set}" = set; then : 4201 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4202 else 4203 with_gnu_ld=no 4204 fi 4205 4206 ac_prog=ld 4207 if test "$GCC" = yes; then 4208 # Check if gcc -print-prog-name=ld gives a path. 4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4210 $as_echo_n "checking for ld used by $CC... " >&6; } 4211 case $host in 4212 *-*-mingw*) 4213 # gcc leaves a trailing carriage return which upsets mingw 4214 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4215 *) 4216 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4217 esac 4218 case $ac_prog in 4219 # Accept absolute paths. 4220 [\\/]* | ?:[\\/]*) 4221 re_direlt='/[^/][^/]*/\.\./' 4222 # Canonicalize the pathname of ld 4223 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4224 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4225 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4226 done 4227 test -z "$LD" && LD="$ac_prog" 4228 ;; 4229 "") 4230 # If it fails, then pretend we aren't using GCC. 4231 ac_prog=ld 4232 ;; 4233 *) 4234 # If it is relative, then search for the first ld in PATH. 4235 with_gnu_ld=unknown 4236 ;; 4237 esac 4238 elif test "$with_gnu_ld" = yes; then 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4240 $as_echo_n "checking for GNU ld... " >&6; } 4241 else 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4243 $as_echo_n "checking for non-GNU ld... " >&6; } 4244 fi 4245 if ${lt_cv_path_LD+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247 else 4248 if test -z "$LD"; then 4249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4250 for ac_dir in $PATH; do 4251 IFS="$lt_save_ifs" 4252 test -z "$ac_dir" && ac_dir=. 4253 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4254 lt_cv_path_LD="$ac_dir/$ac_prog" 4255 # Check to see if the program is GNU ld. I'd rather use --version, 4256 # but apparently some variants of GNU ld only accept -v. 4257 # Break only if it was the GNU/non-GNU ld that we prefer. 4258 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4259 *GNU* | *'with BFD'*) 4260 test "$with_gnu_ld" != no && break 4261 ;; 4262 *) 4263 test "$with_gnu_ld" != yes && break 4264 ;; 4265 esac 4266 fi 4267 done 4268 IFS="$lt_save_ifs" 4269 else 4270 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4271 fi 4272 fi 4273 4274 LD="$lt_cv_path_LD" 4275 if test -n "$LD"; then 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4277 $as_echo "$LD" >&6; } 4278 else 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4280 $as_echo "no" >&6; } 4281 fi 4282 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4284 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4285 if ${lt_cv_prog_gnu_ld+:} false; then : 4286 $as_echo_n "(cached) " >&6 4287 else 4288 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4289 case `$LD -v 2>&1 </dev/null` in 4290 *GNU* | *'with BFD'*) 4291 lt_cv_prog_gnu_ld=yes 4292 ;; 4293 *) 4294 lt_cv_prog_gnu_ld=no 4295 ;; 4296 esac 4297 fi 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4299 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 4300 with_gnu_ld=$lt_cv_prog_gnu_ld 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4311 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4312 if ${lt_cv_path_NM+:} false; then : 4313 $as_echo_n "(cached) " >&6 4314 else 4315 if test -n "$NM"; then 4316 # Let the user override the test. 4317 lt_cv_path_NM="$NM" 4318 else 4319 lt_nm_to_check="${ac_tool_prefix}nm" 4320 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4321 lt_nm_to_check="$lt_nm_to_check nm" 4322 fi 4323 for lt_tmp_nm in $lt_nm_to_check; do 4324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4325 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4326 IFS="$lt_save_ifs" 4327 test -z "$ac_dir" && ac_dir=. 4328 tmp_nm="$ac_dir/$lt_tmp_nm" 4329 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4330 # Check to see if the nm accepts a BSD-compat flag. 4331 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4332 # nm: unknown option "B" ignored 4333 # Tru64's nm complains that /dev/null is an invalid object file 4334 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4335 */dev/null* | *'Invalid file or object type'*) 4336 lt_cv_path_NM="$tmp_nm -B" 4337 break 4338 ;; 4339 *) 4340 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4341 */dev/null*) 4342 lt_cv_path_NM="$tmp_nm -p" 4343 break 4344 ;; 4345 *) 4346 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4347 continue # so that we can try to find one that supports BSD flags 4348 ;; 4349 esac 4350 ;; 4351 esac 4352 fi 4353 done 4354 IFS="$lt_save_ifs" 4355 done 4356 : ${lt_cv_path_NM=no} 4357 fi 4358 fi 4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4360 $as_echo "$lt_cv_path_NM" >&6; } 4361 if test "$lt_cv_path_NM" != "no"; then 4362 NM="$lt_cv_path_NM" 4363 else 4364 # Didn't find any BSD compatible name lister, look for dumpbin. 4365 if test -n "$DUMPBIN"; then : 4366 # Let the user override the test. 4367 else 4368 if test -n "$ac_tool_prefix"; then 4369 for ac_prog in dumpbin "link -dump" 4370 do 4371 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4372 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4374 $as_echo_n "checking for $ac_word... " >&6; } 4375 if ${ac_cv_prog_DUMPBIN+:} false; then : 4376 $as_echo_n "(cached) " >&6 4377 else 4378 if test -n "$DUMPBIN"; then 4379 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4380 else 4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4382 for as_dir in $PATH 4383 do 4384 IFS=$as_save_IFS 4385 test -z "$as_dir" && as_dir=. 4386 for ac_exec_ext in '' $ac_executable_extensions; do 4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4388 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4390 break 2 4391 fi 4392 done 4393 done 4394 IFS=$as_save_IFS 4395 4396 fi 4397 fi 4398 DUMPBIN=$ac_cv_prog_DUMPBIN 4399 if test -n "$DUMPBIN"; then 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4401 $as_echo "$DUMPBIN" >&6; } 4402 else 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4404 $as_echo "no" >&6; } 4405 fi 4406 4407 4408 test -n "$DUMPBIN" && break 4409 done 4410 fi 4411 if test -z "$DUMPBIN"; then 4412 ac_ct_DUMPBIN=$DUMPBIN 4413 for ac_prog in dumpbin "link -dump" 4414 do 4415 # Extract the first word of "$ac_prog", so it can be a program name with args. 4416 set dummy $ac_prog; ac_word=$2 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4418 $as_echo_n "checking for $ac_word... " >&6; } 4419 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421 else 4422 if test -n "$ac_ct_DUMPBIN"; then 4423 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4424 else 4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426 for as_dir in $PATH 4427 do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4432 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4434 break 2 4435 fi 4436 done 4437 done 4438 IFS=$as_save_IFS 4439 4440 fi 4441 fi 4442 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4443 if test -n "$ac_ct_DUMPBIN"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4445 $as_echo "$ac_ct_DUMPBIN" >&6; } 4446 else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448 $as_echo "no" >&6; } 4449 fi 4450 4451 4452 test -n "$ac_ct_DUMPBIN" && break 4453 done 4454 4455 if test "x$ac_ct_DUMPBIN" = x; then 4456 DUMPBIN=":" 4457 else 4458 case $cross_compiling:$ac_tool_warned in 4459 yes:) 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4462 ac_tool_warned=yes ;; 4463 esac 4464 DUMPBIN=$ac_ct_DUMPBIN 4465 fi 4466 fi 4467 4468 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4469 *COFF*) 4470 DUMPBIN="$DUMPBIN -symbols" 4471 ;; 4472 *) 4473 DUMPBIN=: 4474 ;; 4475 esac 4476 fi 4477 4478 if test "$DUMPBIN" != ":"; then 4479 NM="$DUMPBIN" 4480 fi 4481 fi 4482 test -z "$NM" && NM=nm 4483 4484 4485 4486 4487 4488 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4490 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 4491 if ${lt_cv_nm_interface+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493 else 4494 lt_cv_nm_interface="BSD nm" 4495 echo "int some_variable = 0;" > conftest.$ac_ext 4496 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4497 (eval "$ac_compile" 2>conftest.err) 4498 cat conftest.err >&5 4499 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4500 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4501 cat conftest.err >&5 4502 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4503 cat conftest.out >&5 4504 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4505 lt_cv_nm_interface="MS dumpbin" 4506 fi 4507 rm -f conftest* 4508 fi 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4510 $as_echo "$lt_cv_nm_interface" >&6; } 4511 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4513 $as_echo_n "checking whether ln -s works... " >&6; } 4514 LN_S=$as_ln_s 4515 if test "$LN_S" = "ln -s"; then 4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4517 $as_echo "yes" >&6; } 4518 else 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4520 $as_echo "no, using $LN_S" >&6; } 4521 fi 4522 4523 # find the maximum length of command line arguments 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4525 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 4526 if ${lt_cv_sys_max_cmd_len+:} false; then : 4527 $as_echo_n "(cached) " >&6 4528 else 4529 i=0 4530 teststring="ABCD" 4531 4532 case $build_os in 4533 msdosdjgpp*) 4534 # On DJGPP, this test can blow up pretty badly due to problems in libc 4535 # (any single argument exceeding 2000 bytes causes a buffer overrun 4536 # during glob expansion). Even if it were fixed, the result of this 4537 # check would be larger than it should be. 4538 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4539 ;; 4540 4541 gnu*) 4542 # Under GNU Hurd, this test is not required because there is 4543 # no limit to the length of command line arguments. 4544 # Libtool will interpret -1 as no limit whatsoever 4545 lt_cv_sys_max_cmd_len=-1; 4546 ;; 4547 4548 cygwin* | mingw* | cegcc*) 4549 # On Win9x/ME, this test blows up -- it succeeds, but takes 4550 # about 5 minutes as the teststring grows exponentially. 4551 # Worse, since 9x/ME are not pre-emptively multitasking, 4552 # you end up with a "frozen" computer, even though with patience 4553 # the test eventually succeeds (with a max line length of 256k). 4554 # Instead, let's just punt: use the minimum linelength reported by 4555 # all of the supported platforms: 8192 (on NT/2K/XP). 4556 lt_cv_sys_max_cmd_len=8192; 4557 ;; 4558 4559 mint*) 4560 # On MiNT this can take a long time and run out of memory. 4561 lt_cv_sys_max_cmd_len=8192; 4562 ;; 4563 4564 amigaos*) 4565 # On AmigaOS with pdksh, this test takes hours, literally. 4566 # So we just punt and use a minimum line length of 8192. 4567 lt_cv_sys_max_cmd_len=8192; 4568 ;; 4569 4570 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4571 # This has been around since 386BSD, at least. Likely further. 4572 if test -x /sbin/sysctl; then 4573 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4574 elif test -x /usr/sbin/sysctl; then 4575 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4576 else 4577 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4578 fi 4579 # And add a safety zone 4580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4582 ;; 4583 4584 interix*) 4585 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4586 lt_cv_sys_max_cmd_len=196608 4587 ;; 4588 4589 os2*) 4590 # The test takes a long time on OS/2. 4591 lt_cv_sys_max_cmd_len=8192 4592 ;; 4593 4594 osf*) 4595 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4596 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4597 # nice to cause kernel panics so lets avoid the loop below. 4598 # First set a reasonable default. 4599 lt_cv_sys_max_cmd_len=16384 4600 # 4601 if test -x /sbin/sysconfig; then 4602 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4603 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4604 esac 4605 fi 4606 ;; 4607 sco3.2v5*) 4608 lt_cv_sys_max_cmd_len=102400 4609 ;; 4610 sysv5* | sco5v6* | sysv4.2uw2*) 4611 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4612 if test -n "$kargmax"; then 4613 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4614 else 4615 lt_cv_sys_max_cmd_len=32768 4616 fi 4617 ;; 4618 *) 4619 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4620 if test -n "$lt_cv_sys_max_cmd_len"; then 4621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4623 else 4624 # Make teststring a little bigger before we do anything with it. 4625 # a 1K string should be a reasonable start. 4626 for i in 1 2 3 4 5 6 7 8 ; do 4627 teststring=$teststring$teststring 4628 done 4629 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4630 # If test is not a shell built-in, we'll probably end up computing a 4631 # maximum length that is only half of the actual maximum length, but 4632 # we can't tell. 4633 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 4634 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4635 test $i != 17 # 1/2 MB should be enough 4636 do 4637 i=`expr $i + 1` 4638 teststring=$teststring$teststring 4639 done 4640 # Only check the string length outside the loop. 4641 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4642 teststring= 4643 # Add a significant safety factor because C++ compilers can tack on 4644 # massive amounts of additional arguments before passing them to the 4645 # linker. It appears as though 1/2 is a usable value. 4646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4647 fi 4648 ;; 4649 esac 4650 4651 fi 4652 4653 if test -n $lt_cv_sys_max_cmd_len ; then 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4655 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4656 else 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4658 $as_echo "none" >&6; } 4659 fi 4660 max_cmd_len=$lt_cv_sys_max_cmd_len 4661 4662 4663 4664 4665 4666 4667 : ${CP="cp -f"} 4668 : ${MV="mv -f"} 4669 : ${RM="rm -f"} 4670 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4672 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4673 # Try some XSI features 4674 xsi_shell=no 4675 ( _lt_dummy="a/b/c" 4676 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4677 = c,a/b,b/c, \ 4678 && eval 'test $(( 1 + 1 )) -eq 2 \ 4679 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4680 && xsi_shell=yes 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4682 $as_echo "$xsi_shell" >&6; } 4683 4684 4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4686 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4687 lt_shell_append=no 4688 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4689 >/dev/null 2>&1 \ 4690 && lt_shell_append=yes 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4692 $as_echo "$lt_shell_append" >&6; } 4693 4694 4695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4696 lt_unset=unset 4697 else 4698 lt_unset=false 4699 fi 4700 4701 4702 4703 4704 4705 # test EBCDIC or ASCII 4706 case `echo X|tr X '\101'` in 4707 A) # ASCII based system 4708 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4709 lt_SP2NL='tr \040 \012' 4710 lt_NL2SP='tr \015\012 \040\040' 4711 ;; 4712 *) # EBCDIC based system 4713 lt_SP2NL='tr \100 \n' 4714 lt_NL2SP='tr \r\n \100\100' 4715 ;; 4716 esac 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4727 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4728 if ${lt_cv_to_host_file_cmd+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730 else 4731 case $host in 4732 *-*-mingw* ) 4733 case $build in 4734 *-*-mingw* ) # actually msys 4735 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4736 ;; 4737 *-*-cygwin* ) 4738 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4739 ;; 4740 * ) # otherwise, assume *nix 4741 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4742 ;; 4743 esac 4744 ;; 4745 *-*-cygwin* ) 4746 case $build in 4747 *-*-mingw* ) # actually msys 4748 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4749 ;; 4750 *-*-cygwin* ) 4751 lt_cv_to_host_file_cmd=func_convert_file_noop 4752 ;; 4753 * ) # otherwise, assume *nix 4754 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4755 ;; 4756 esac 4757 ;; 4758 * ) # unhandled hosts (and "normal" native builds) 4759 lt_cv_to_host_file_cmd=func_convert_file_noop 4760 ;; 4761 esac 4762 4763 fi 4764 4765 to_host_file_cmd=$lt_cv_to_host_file_cmd 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4767 $as_echo "$lt_cv_to_host_file_cmd" >&6; } 4768 4769 4770 4771 4772 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4774 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4775 if ${lt_cv_to_tool_file_cmd+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777 else 4778 #assume ordinary cross tools, or native build. 4779 lt_cv_to_tool_file_cmd=func_convert_file_noop 4780 case $host in 4781 *-*-mingw* ) 4782 case $build in 4783 *-*-mingw* ) # actually msys 4784 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4785 ;; 4786 esac 4787 ;; 4788 esac 4789 4790 fi 4791 4792 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4794 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4795 4796 4797 4798 4799 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4801 $as_echo_n "checking for $LD option to reload object files... " >&6; } 4802 if ${lt_cv_ld_reload_flag+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804 else 4805 lt_cv_ld_reload_flag='-r' 4806 fi 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4808 $as_echo "$lt_cv_ld_reload_flag" >&6; } 4809 reload_flag=$lt_cv_ld_reload_flag 4810 case $reload_flag in 4811 "" | " "*) ;; 4812 *) reload_flag=" $reload_flag" ;; 4813 esac 4814 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4815 case $host_os in 4816 cygwin* | mingw* | pw32* | cegcc*) 4817 if test "$GCC" != yes; then 4818 reload_cmds=false 4819 fi 4820 ;; 4821 darwin*) 4822 if test "$GCC" = yes; then 4823 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4824 else 4825 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4826 fi 4827 ;; 4828 esac 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 if test -n "$ac_tool_prefix"; then 4839 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4840 set dummy ${ac_tool_prefix}objdump; ac_word=$2 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4842 $as_echo_n "checking for $ac_word... " >&6; } 4843 if ${ac_cv_prog_OBJDUMP+:} false; then : 4844 $as_echo_n "(cached) " >&6 4845 else 4846 if test -n "$OBJDUMP"; then 4847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4848 else 4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4850 for as_dir in $PATH 4851 do 4852 IFS=$as_save_IFS 4853 test -z "$as_dir" && as_dir=. 4854 for ac_exec_ext in '' $ac_executable_extensions; do 4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4856 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4858 break 2 4859 fi 4860 done 4861 done 4862 IFS=$as_save_IFS 4863 4864 fi 4865 fi 4866 OBJDUMP=$ac_cv_prog_OBJDUMP 4867 if test -n "$OBJDUMP"; then 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4869 $as_echo "$OBJDUMP" >&6; } 4870 else 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4872 $as_echo "no" >&6; } 4873 fi 4874 4875 4876 fi 4877 if test -z "$ac_cv_prog_OBJDUMP"; then 4878 ac_ct_OBJDUMP=$OBJDUMP 4879 # Extract the first word of "objdump", so it can be a program name with args. 4880 set dummy objdump; ac_word=$2 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4882 $as_echo_n "checking for $ac_word... " >&6; } 4883 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4884 $as_echo_n "(cached) " >&6 4885 else 4886 if test -n "$ac_ct_OBJDUMP"; then 4887 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4888 else 4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4890 for as_dir in $PATH 4891 do 4892 IFS=$as_save_IFS 4893 test -z "$as_dir" && as_dir=. 4894 for ac_exec_ext in '' $ac_executable_extensions; do 4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4896 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4898 break 2 4899 fi 4900 done 4901 done 4902 IFS=$as_save_IFS 4903 4904 fi 4905 fi 4906 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4907 if test -n "$ac_ct_OBJDUMP"; then 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4909 $as_echo "$ac_ct_OBJDUMP" >&6; } 4910 else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4912 $as_echo "no" >&6; } 4913 fi 4914 4915 if test "x$ac_ct_OBJDUMP" = x; then 4916 OBJDUMP="false" 4917 else 4918 case $cross_compiling:$ac_tool_warned in 4919 yes:) 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4922 ac_tool_warned=yes ;; 4923 esac 4924 OBJDUMP=$ac_ct_OBJDUMP 4925 fi 4926 else 4927 OBJDUMP="$ac_cv_prog_OBJDUMP" 4928 fi 4929 4930 test -z "$OBJDUMP" && OBJDUMP=objdump 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4941 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 4942 if ${lt_cv_deplibs_check_method+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944 else 4945 lt_cv_file_magic_cmd='$MAGIC_CMD' 4946 lt_cv_file_magic_test_file= 4947 lt_cv_deplibs_check_method='unknown' 4948 # Need to set the preceding variable on all platforms that support 4949 # interlibrary dependencies. 4950 # 'none' -- dependencies not supported. 4951 # `unknown' -- same as none, but documents that we really don't know. 4952 # 'pass_all' -- all dependencies passed with no checks. 4953 # 'test_compile' -- check by making test program. 4954 # 'file_magic [[regex]]' -- check by looking for files in library path 4955 # which responds to the $file_magic_cmd with a given extended regex. 4956 # If you have `file' or equivalent on your system and you're not sure 4957 # whether `pass_all' will *always* work, you probably want this one. 4958 4959 case $host_os in 4960 aix[4-9]*) 4961 lt_cv_deplibs_check_method=pass_all 4962 ;; 4963 4964 beos*) 4965 lt_cv_deplibs_check_method=pass_all 4966 ;; 4967 4968 bsdi[45]*) 4969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4970 lt_cv_file_magic_cmd='/usr/bin/file -L' 4971 lt_cv_file_magic_test_file=/shlib/libc.so 4972 ;; 4973 4974 cygwin*) 4975 # func_win32_libid is a shell function defined in ltmain.sh 4976 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4977 lt_cv_file_magic_cmd='func_win32_libid' 4978 ;; 4979 4980 mingw* | pw32*) 4981 # Base MSYS/MinGW do not provide the 'file' command needed by 4982 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4983 # unless we find 'file', for example because we are cross-compiling. 4984 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4985 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4987 lt_cv_file_magic_cmd='func_win32_libid' 4988 else 4989 # Keep this pattern in sync with the one in func_win32_libid. 4990 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4991 lt_cv_file_magic_cmd='$OBJDUMP -f' 4992 fi 4993 ;; 4994 4995 cegcc*) 4996 # use the weaker test based on 'objdump'. See mingw*. 4997 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4998 lt_cv_file_magic_cmd='$OBJDUMP -f' 4999 ;; 5000 5001 darwin* | rhapsody*) 5002 lt_cv_deplibs_check_method=pass_all 5003 ;; 5004 5005 freebsd* | dragonfly*) 5006 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5007 case $host_cpu in 5008 i*86 ) 5009 # Not sure whether the presence of OpenBSD here was a mistake. 5010 # Let's accept both of them until this is cleared up. 5011 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5012 lt_cv_file_magic_cmd=/usr/bin/file 5013 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5014 ;; 5015 esac 5016 else 5017 lt_cv_deplibs_check_method=pass_all 5018 fi 5019 ;; 5020 5021 gnu*) 5022 lt_cv_deplibs_check_method=pass_all 5023 ;; 5024 5025 haiku*) 5026 lt_cv_deplibs_check_method=pass_all 5027 ;; 5028 5029 hpux10.20* | hpux11*) 5030 lt_cv_file_magic_cmd=/usr/bin/file 5031 case $host_cpu in 5032 ia64*) 5033 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5034 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5035 ;; 5036 hppa*64*) 5037 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]' 5038 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5039 ;; 5040 *) 5041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5042 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5043 ;; 5044 esac 5045 ;; 5046 5047 interix[3-9]*) 5048 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5050 ;; 5051 5052 irix5* | irix6* | nonstopux*) 5053 case $LD in 5054 *-32|*"-32 ") libmagic=32-bit;; 5055 *-n32|*"-n32 ") libmagic=N32;; 5056 *-64|*"-64 ") libmagic=64-bit;; 5057 *) libmagic=never-match;; 5058 esac 5059 lt_cv_deplibs_check_method=pass_all 5060 ;; 5061 5062 # This must be glibc/ELF. 5063 linux* | k*bsd*-gnu | kopensolaris*-gnu) 5064 lt_cv_deplibs_check_method=pass_all 5065 ;; 5066 5067 netbsd*) 5068 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5070 else 5071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5072 fi 5073 ;; 5074 5075 newos6*) 5076 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5077 lt_cv_file_magic_cmd=/usr/bin/file 5078 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5079 ;; 5080 5081 *nto* | *qnx*) 5082 lt_cv_deplibs_check_method=pass_all 5083 ;; 5084 5085 openbsd*) 5086 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5088 else 5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5090 fi 5091 ;; 5092 5093 osf3* | osf4* | osf5*) 5094 lt_cv_deplibs_check_method=pass_all 5095 ;; 5096 5097 rdos*) 5098 lt_cv_deplibs_check_method=pass_all 5099 ;; 5100 5101 solaris*) 5102 lt_cv_deplibs_check_method=pass_all 5103 ;; 5104 5105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5106 lt_cv_deplibs_check_method=pass_all 5107 ;; 5108 5109 sysv4 | sysv4.3*) 5110 case $host_vendor in 5111 motorola) 5112 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]' 5113 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5114 ;; 5115 ncr) 5116 lt_cv_deplibs_check_method=pass_all 5117 ;; 5118 sequent) 5119 lt_cv_file_magic_cmd='/bin/file' 5120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5121 ;; 5122 sni) 5123 lt_cv_file_magic_cmd='/bin/file' 5124 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5125 lt_cv_file_magic_test_file=/lib/libc.so 5126 ;; 5127 siemens) 5128 lt_cv_deplibs_check_method=pass_all 5129 ;; 5130 pc) 5131 lt_cv_deplibs_check_method=pass_all 5132 ;; 5133 esac 5134 ;; 5135 5136 tpf*) 5137 lt_cv_deplibs_check_method=pass_all 5138 ;; 5139 esac 5140 5141 fi 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5143 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5144 5145 file_magic_glob= 5146 want_nocaseglob=no 5147 if test "$build" = "$host"; then 5148 case $host_os in 5149 mingw* | pw32*) 5150 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5151 want_nocaseglob=yes 5152 else 5153 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5154 fi 5155 ;; 5156 esac 5157 fi 5158 5159 file_magic_cmd=$lt_cv_file_magic_cmd 5160 deplibs_check_method=$lt_cv_deplibs_check_method 5161 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 if test -n "$ac_tool_prefix"; then 5185 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5186 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5188 $as_echo_n "checking for $ac_word... " >&6; } 5189 if ${ac_cv_prog_DLLTOOL+:} false; then : 5190 $as_echo_n "(cached) " >&6 5191 else 5192 if test -n "$DLLTOOL"; then 5193 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5194 else 5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5196 for as_dir in $PATH 5197 do 5198 IFS=$as_save_IFS 5199 test -z "$as_dir" && as_dir=. 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5202 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5204 break 2 5205 fi 5206 done 5207 done 5208 IFS=$as_save_IFS 5209 5210 fi 5211 fi 5212 DLLTOOL=$ac_cv_prog_DLLTOOL 5213 if test -n "$DLLTOOL"; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5215 $as_echo "$DLLTOOL" >&6; } 5216 else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5218 $as_echo "no" >&6; } 5219 fi 5220 5221 5222 fi 5223 if test -z "$ac_cv_prog_DLLTOOL"; then 5224 ac_ct_DLLTOOL=$DLLTOOL 5225 # Extract the first word of "dlltool", so it can be a program name with args. 5226 set dummy dlltool; ac_word=$2 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5228 $as_echo_n "checking for $ac_word... " >&6; } 5229 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231 else 5232 if test -n "$ac_ct_DLLTOOL"; then 5233 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5234 else 5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5236 for as_dir in $PATH 5237 do 5238 IFS=$as_save_IFS 5239 test -z "$as_dir" && as_dir=. 5240 for ac_exec_ext in '' $ac_executable_extensions; do 5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5242 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5244 break 2 5245 fi 5246 done 5247 done 5248 IFS=$as_save_IFS 5249 5250 fi 5251 fi 5252 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5253 if test -n "$ac_ct_DLLTOOL"; then 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5255 $as_echo "$ac_ct_DLLTOOL" >&6; } 5256 else 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5258 $as_echo "no" >&6; } 5259 fi 5260 5261 if test "x$ac_ct_DLLTOOL" = x; then 5262 DLLTOOL="false" 5263 else 5264 case $cross_compiling:$ac_tool_warned in 5265 yes:) 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5268 ac_tool_warned=yes ;; 5269 esac 5270 DLLTOOL=$ac_ct_DLLTOOL 5271 fi 5272 else 5273 DLLTOOL="$ac_cv_prog_DLLTOOL" 5274 fi 5275 5276 test -z "$DLLTOOL" && DLLTOOL=dlltool 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5288 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5289 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291 else 5292 lt_cv_sharedlib_from_linklib_cmd='unknown' 5293 5294 case $host_os in 5295 cygwin* | mingw* | pw32* | cegcc*) 5296 # two different shell functions defined in ltmain.sh 5297 # decide which to use based on capabilities of $DLLTOOL 5298 case `$DLLTOOL --help 2>&1` in 5299 *--identify-strict*) 5300 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5301 ;; 5302 *) 5303 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5304 ;; 5305 esac 5306 ;; 5307 *) 5308 # fallback: assume linklib IS sharedlib 5309 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5310 ;; 5311 esac 5312 5313 fi 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5315 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5316 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5317 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5318 5319 5320 5321 5322 5323 5324 5325 5326 if test -n "$ac_tool_prefix"; then 5327 for ac_prog in ar 5328 do 5329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5332 $as_echo_n "checking for $ac_word... " >&6; } 5333 if ${ac_cv_prog_AR+:} false; then : 5334 $as_echo_n "(cached) " >&6 5335 else 5336 if test -n "$AR"; then 5337 ac_cv_prog_AR="$AR" # Let the user override the test. 5338 else 5339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5340 for as_dir in $PATH 5341 do 5342 IFS=$as_save_IFS 5343 test -z "$as_dir" && as_dir=. 5344 for ac_exec_ext in '' $ac_executable_extensions; do 5345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5346 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5348 break 2 5349 fi 5350 done 5351 done 5352 IFS=$as_save_IFS 5353 5354 fi 5355 fi 5356 AR=$ac_cv_prog_AR 5357 if test -n "$AR"; then 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5359 $as_echo "$AR" >&6; } 5360 else 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5362 $as_echo "no" >&6; } 5363 fi 5364 5365 5366 test -n "$AR" && break 5367 done 5368 fi 5369 if test -z "$AR"; then 5370 ac_ct_AR=$AR 5371 for ac_prog in ar 5372 do 5373 # Extract the first word of "$ac_prog", so it can be a program name with args. 5374 set dummy $ac_prog; ac_word=$2 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5376 $as_echo_n "checking for $ac_word... " >&6; } 5377 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5378 $as_echo_n "(cached) " >&6 5379 else 5380 if test -n "$ac_ct_AR"; then 5381 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5382 else 5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5384 for as_dir in $PATH 5385 do 5386 IFS=$as_save_IFS 5387 test -z "$as_dir" && as_dir=. 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5390 ac_cv_prog_ac_ct_AR="$ac_prog" 5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394 done 5395 done 5396 IFS=$as_save_IFS 5397 5398 fi 5399 fi 5400 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5401 if test -n "$ac_ct_AR"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5403 $as_echo "$ac_ct_AR" >&6; } 5404 else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406 $as_echo "no" >&6; } 5407 fi 5408 5409 5410 test -n "$ac_ct_AR" && break 5411 done 5412 5413 if test "x$ac_ct_AR" = x; then 5414 AR="false" 5415 else 5416 case $cross_compiling:$ac_tool_warned in 5417 yes:) 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5420 ac_tool_warned=yes ;; 5421 esac 5422 AR=$ac_ct_AR 5423 fi 5424 fi 5425 5426 : ${AR=ar} 5427 : ${AR_FLAGS=cru} 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5440 $as_echo_n "checking for archiver @FILE support... " >&6; } 5441 if ${lt_cv_ar_at_file+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443 else 5444 lt_cv_ar_at_file=no 5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5446 /* end confdefs.h. */ 5447 5448 int 5449 main () 5450 { 5451 5452 ; 5453 return 0; 5454 } 5455 _ACEOF 5456 if ac_fn_c_try_compile "$LINENO"; then : 5457 echo conftest.$ac_objext > conftest.lst 5458 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5460 (eval $lt_ar_try) 2>&5 5461 ac_status=$? 5462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5463 test $ac_status = 0; } 5464 if test "$ac_status" -eq 0; then 5465 # Ensure the archiver fails upon bogus file names. 5466 rm -f conftest.$ac_objext libconftest.a 5467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5468 (eval $lt_ar_try) 2>&5 5469 ac_status=$? 5470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5471 test $ac_status = 0; } 5472 if test "$ac_status" -ne 0; then 5473 lt_cv_ar_at_file=@ 5474 fi 5475 fi 5476 rm -f conftest.* libconftest.a 5477 5478 fi 5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5480 5481 fi 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5483 $as_echo "$lt_cv_ar_at_file" >&6; } 5484 5485 if test "x$lt_cv_ar_at_file" = xno; then 5486 archiver_list_spec= 5487 else 5488 archiver_list_spec=$lt_cv_ar_at_file 5489 fi 5490 5491 5492 5493 5494 5495 5496 5497 if test -n "$ac_tool_prefix"; then 5498 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5499 set dummy ${ac_tool_prefix}strip; ac_word=$2 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5501 $as_echo_n "checking for $ac_word... " >&6; } 5502 if ${ac_cv_prog_STRIP+:} false; then : 5503 $as_echo_n "(cached) " >&6 5504 else 5505 if test -n "$STRIP"; then 5506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5507 else 5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509 for as_dir in $PATH 5510 do 5511 IFS=$as_save_IFS 5512 test -z "$as_dir" && as_dir=. 5513 for ac_exec_ext in '' $ac_executable_extensions; do 5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5515 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 break 2 5518 fi 5519 done 5520 done 5521 IFS=$as_save_IFS 5522 5523 fi 5524 fi 5525 STRIP=$ac_cv_prog_STRIP 5526 if test -n "$STRIP"; then 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5528 $as_echo "$STRIP" >&6; } 5529 else 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5531 $as_echo "no" >&6; } 5532 fi 5533 5534 5535 fi 5536 if test -z "$ac_cv_prog_STRIP"; then 5537 ac_ct_STRIP=$STRIP 5538 # Extract the first word of "strip", so it can be a program name with args. 5539 set dummy strip; ac_word=$2 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5541 $as_echo_n "checking for $ac_word... " >&6; } 5542 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5543 $as_echo_n "(cached) " >&6 5544 else 5545 if test -n "$ac_ct_STRIP"; then 5546 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5547 else 5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5549 for as_dir in $PATH 5550 do 5551 IFS=$as_save_IFS 5552 test -z "$as_dir" && as_dir=. 5553 for ac_exec_ext in '' $ac_executable_extensions; do 5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5555 ac_cv_prog_ac_ct_STRIP="strip" 5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5557 break 2 5558 fi 5559 done 5560 done 5561 IFS=$as_save_IFS 5562 5563 fi 5564 fi 5565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5566 if test -n "$ac_ct_STRIP"; then 5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5568 $as_echo "$ac_ct_STRIP" >&6; } 5569 else 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5571 $as_echo "no" >&6; } 5572 fi 5573 5574 if test "x$ac_ct_STRIP" = x; then 5575 STRIP=":" 5576 else 5577 case $cross_compiling:$ac_tool_warned in 5578 yes:) 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5581 ac_tool_warned=yes ;; 5582 esac 5583 STRIP=$ac_ct_STRIP 5584 fi 5585 else 5586 STRIP="$ac_cv_prog_STRIP" 5587 fi 5588 5589 test -z "$STRIP" && STRIP=: 5590 5591 5592 5593 5594 5595 5596 if test -n "$ac_tool_prefix"; then 5597 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5598 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5600 $as_echo_n "checking for $ac_word... " >&6; } 5601 if ${ac_cv_prog_RANLIB+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603 else 5604 if test -n "$RANLIB"; then 5605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5606 else 5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5608 for as_dir in $PATH 5609 do 5610 IFS=$as_save_IFS 5611 test -z "$as_dir" && as_dir=. 5612 for ac_exec_ext in '' $ac_executable_extensions; do 5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5616 break 2 5617 fi 5618 done 5619 done 5620 IFS=$as_save_IFS 5621 5622 fi 5623 fi 5624 RANLIB=$ac_cv_prog_RANLIB 5625 if test -n "$RANLIB"; then 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5627 $as_echo "$RANLIB" >&6; } 5628 else 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5630 $as_echo "no" >&6; } 5631 fi 5632 5633 5634 fi 5635 if test -z "$ac_cv_prog_RANLIB"; then 5636 ac_ct_RANLIB=$RANLIB 5637 # Extract the first word of "ranlib", so it can be a program name with args. 5638 set dummy ranlib; ac_word=$2 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640 $as_echo_n "checking for $ac_word... " >&6; } 5641 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643 else 5644 if test -n "$ac_ct_RANLIB"; then 5645 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5646 else 5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648 for as_dir in $PATH 5649 do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5654 ac_cv_prog_ac_ct_RANLIB="ranlib" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658 done 5659 done 5660 IFS=$as_save_IFS 5661 5662 fi 5663 fi 5664 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5665 if test -n "$ac_ct_RANLIB"; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5667 $as_echo "$ac_ct_RANLIB" >&6; } 5668 else 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5670 $as_echo "no" >&6; } 5671 fi 5672 5673 if test "x$ac_ct_RANLIB" = x; then 5674 RANLIB=":" 5675 else 5676 case $cross_compiling:$ac_tool_warned in 5677 yes:) 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5680 ac_tool_warned=yes ;; 5681 esac 5682 RANLIB=$ac_ct_RANLIB 5683 fi 5684 else 5685 RANLIB="$ac_cv_prog_RANLIB" 5686 fi 5687 5688 test -z "$RANLIB" && RANLIB=: 5689 5690 5691 5692 5693 5694 5695 # Determine commands to create old-style static archives. 5696 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5697 old_postinstall_cmds='chmod 644 $oldlib' 5698 old_postuninstall_cmds= 5699 5700 if test -n "$RANLIB"; then 5701 case $host_os in 5702 openbsd*) 5703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5704 ;; 5705 *) 5706 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5707 ;; 5708 esac 5709 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5710 fi 5711 5712 case $host_os in 5713 darwin*) 5714 lock_old_archive_extraction=yes ;; 5715 *) 5716 lock_old_archive_extraction=no ;; 5717 esac 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 # If no C compiler was specified, use CC. 5758 LTCC=${LTCC-"$CC"} 5759 5760 # If no C compiler flags were specified, use CFLAGS. 5761 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5762 5763 # Allow CC to be a program name with arguments. 5764 compiler=$CC 5765 5766 5767 # Check for command to grab the raw symbol name followed by C symbol from nm. 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5769 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5770 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5771 $as_echo_n "(cached) " >&6 5772 else 5773 5774 # These are sane defaults that work on at least a few old systems. 5775 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5776 5777 # Character class describing NM global symbol codes. 5778 symcode='[BCDEGRST]' 5779 5780 # Regexp to match symbols that can be accessed directly from C. 5781 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5782 5783 # Define system-specific variables. 5784 case $host_os in 5785 aix*) 5786 symcode='[BCDT]' 5787 ;; 5788 cygwin* | mingw* | pw32* | cegcc*) 5789 symcode='[ABCDGISTW]' 5790 ;; 5791 hpux*) 5792 if test "$host_cpu" = ia64; then 5793 symcode='[ABCDEGRST]' 5794 fi 5795 ;; 5796 irix* | nonstopux*) 5797 symcode='[BCDEGRST]' 5798 ;; 5799 osf*) 5800 symcode='[BCDEGQRST]' 5801 ;; 5802 solaris*) 5803 symcode='[BDRT]' 5804 ;; 5805 sco3.2v5*) 5806 symcode='[DT]' 5807 ;; 5808 sysv4.2uw2*) 5809 symcode='[DT]' 5810 ;; 5811 sysv5* | sco5v6* | unixware* | OpenUNIX*) 5812 symcode='[ABDT]' 5813 ;; 5814 sysv4) 5815 symcode='[DFNSTU]' 5816 ;; 5817 esac 5818 5819 # If we're using GNU nm, then use its standard symbol codes. 5820 case `$NM -V 2>&1` in 5821 *GNU* | *'with BFD'*) 5822 symcode='[ABCDGIRSTW]' ;; 5823 esac 5824 5825 # Transform an extracted symbol line into a proper C declaration. 5826 # Some systems (esp. on ia64) link data and code symbols differently, 5827 # so use this general approach. 5828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5829 5830 # Transform an extracted symbol line into symbol name and symbol address 5831 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5832 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5833 5834 # Handle CRLF in mingw tool chain 5835 opt_cr= 5836 case $build_os in 5837 mingw*) 5838 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5839 ;; 5840 esac 5841 5842 # Try without a prefix underscore, then with it. 5843 for ac_symprfx in "" "_"; do 5844 5845 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5846 symxfrm="\\1 $ac_symprfx\\2 \\2" 5847 5848 # Write the raw and C identifiers. 5849 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5850 # Fake it for dumpbin and say T for any non-static function 5851 # and D for any global variable. 5852 # Also find C++ and __fastcall symbols from MSVC++, 5853 # which start with @ or ?. 5854 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5855 " {last_section=section; section=\$ 3};"\ 5856 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5857 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5858 " \$ 0!~/External *\|/{next};"\ 5859 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5860 " {if(hide[section]) next};"\ 5861 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5862 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5863 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5864 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5865 " ' prfx=^$ac_symprfx" 5866 else 5867 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5868 fi 5869 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5870 5871 # Check to see that the pipe works correctly. 5872 pipe_works=no 5873 5874 rm -f conftest* 5875 cat > conftest.$ac_ext <<_LT_EOF 5876 #ifdef __cplusplus 5877 extern "C" { 5878 #endif 5879 char nm_test_var; 5880 void nm_test_func(void); 5881 void nm_test_func(void){} 5882 #ifdef __cplusplus 5883 } 5884 #endif 5885 int main(){nm_test_var='a';nm_test_func();return(0);} 5886 _LT_EOF 5887 5888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5889 (eval $ac_compile) 2>&5 5890 ac_status=$? 5891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5892 test $ac_status = 0; }; then 5893 # Now try to grab the symbols. 5894 nlist=conftest.nm 5895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5896 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5897 ac_status=$? 5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5899 test $ac_status = 0; } && test -s "$nlist"; then 5900 # Try sorting and uniquifying the output. 5901 if sort "$nlist" | uniq > "$nlist"T; then 5902 mv -f "$nlist"T "$nlist" 5903 else 5904 rm -f "$nlist"T 5905 fi 5906 5907 # Make sure that we snagged all the symbols we need. 5908 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5909 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5910 cat <<_LT_EOF > conftest.$ac_ext 5911 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5912 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5913 /* DATA imports from DLLs on WIN32 con't be const, because runtime 5914 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5915 # define LT_DLSYM_CONST 5916 #elif defined(__osf__) 5917 /* This system does not cope well with relocations in const data. */ 5918 # define LT_DLSYM_CONST 5919 #else 5920 # define LT_DLSYM_CONST const 5921 #endif 5922 5923 #ifdef __cplusplus 5924 extern "C" { 5925 #endif 5926 5927 _LT_EOF 5928 # Now generate the symbol file. 5929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5930 5931 cat <<_LT_EOF >> conftest.$ac_ext 5932 5933 /* The mapping between symbol names and symbols. */ 5934 LT_DLSYM_CONST struct { 5935 const char *name; 5936 void *address; 5937 } 5938 lt__PROGRAM__LTX_preloaded_symbols[] = 5939 { 5940 { "@PROGRAM@", (void *) 0 }, 5941 _LT_EOF 5942 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5943 cat <<\_LT_EOF >> conftest.$ac_ext 5944 {0, (void *) 0} 5945 }; 5946 5947 /* This works around a problem in FreeBSD linker */ 5948 #ifdef FREEBSD_WORKAROUND 5949 static const void *lt_preloaded_setup() { 5950 return lt__PROGRAM__LTX_preloaded_symbols; 5951 } 5952 #endif 5953 5954 #ifdef __cplusplus 5955 } 5956 #endif 5957 _LT_EOF 5958 # Now try linking the two files. 5959 mv conftest.$ac_objext conftstm.$ac_objext 5960 lt_globsym_save_LIBS=$LIBS 5961 lt_globsym_save_CFLAGS=$CFLAGS 5962 LIBS="conftstm.$ac_objext" 5963 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5965 (eval $ac_link) 2>&5 5966 ac_status=$? 5967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5968 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5969 pipe_works=yes 5970 fi 5971 LIBS=$lt_globsym_save_LIBS 5972 CFLAGS=$lt_globsym_save_CFLAGS 5973 else 5974 echo "cannot find nm_test_func in $nlist" >&5 5975 fi 5976 else 5977 echo "cannot find nm_test_var in $nlist" >&5 5978 fi 5979 else 5980 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5981 fi 5982 else 5983 echo "$progname: failed program was:" >&5 5984 cat conftest.$ac_ext >&5 5985 fi 5986 rm -rf conftest* conftst* 5987 5988 # Do not use the global_symbol_pipe unless it works. 5989 if test "$pipe_works" = yes; then 5990 break 5991 else 5992 lt_cv_sys_global_symbol_pipe= 5993 fi 5994 done 5995 5996 fi 5997 5998 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5999 lt_cv_sys_global_symbol_to_cdecl= 6000 fi 6001 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6003 $as_echo "failed" >&6; } 6004 else 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6006 $as_echo "ok" >&6; } 6007 fi 6008 6009 # Response file support. 6010 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6011 nm_file_list_spec='@' 6012 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6013 nm_file_list_spec='@' 6014 fi 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6043 $as_echo_n "checking for sysroot... " >&6; } 6044 6045 # Check whether --with-sysroot was given. 6046 if test "${with_sysroot+set}" = set; then : 6047 withval=$with_sysroot; 6048 else 6049 with_sysroot=no 6050 fi 6051 6052 6053 lt_sysroot= 6054 case ${with_sysroot} in #( 6055 yes) 6056 if test "$GCC" = yes; then 6057 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6058 fi 6059 ;; #( 6060 /*) 6061 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6062 ;; #( 6063 no|'') 6064 ;; #( 6065 *) 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6067 $as_echo "${with_sysroot}" >&6; } 6068 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6069 ;; 6070 esac 6071 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6073 $as_echo "${lt_sysroot:-no}" >&6; } 6074 6075 6076 6077 6078 6079 # Check whether --enable-libtool-lock was given. 6080 if test "${enable_libtool_lock+set}" = set; then : 6081 enableval=$enable_libtool_lock; 6082 fi 6083 6084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6085 6086 # Some flags need to be propagated to the compiler or linker for good 6087 # libtool support. 6088 case $host in 6089 ia64-*-hpux*) 6090 # Find out which ABI we are using. 6091 echo 'int i;' > conftest.$ac_ext 6092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6093 (eval $ac_compile) 2>&5 6094 ac_status=$? 6095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6096 test $ac_status = 0; }; then 6097 case `/usr/bin/file conftest.$ac_objext` in 6098 *ELF-32*) 6099 HPUX_IA64_MODE="32" 6100 ;; 6101 *ELF-64*) 6102 HPUX_IA64_MODE="64" 6103 ;; 6104 esac 6105 fi 6106 rm -rf conftest* 6107 ;; 6108 *-*-irix6*) 6109 # Find out which ABI we are using. 6110 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6112 (eval $ac_compile) 2>&5 6113 ac_status=$? 6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6115 test $ac_status = 0; }; then 6116 if test "$lt_cv_prog_gnu_ld" = yes; then 6117 case `/usr/bin/file conftest.$ac_objext` in 6118 *32-bit*) 6119 LD="${LD-ld} -melf32bsmip" 6120 ;; 6121 *N32*) 6122 LD="${LD-ld} -melf32bmipn32" 6123 ;; 6124 *64-bit*) 6125 LD="${LD-ld} -melf64bmip" 6126 ;; 6127 esac 6128 else 6129 case `/usr/bin/file conftest.$ac_objext` in 6130 *32-bit*) 6131 LD="${LD-ld} -32" 6132 ;; 6133 *N32*) 6134 LD="${LD-ld} -n32" 6135 ;; 6136 *64-bit*) 6137 LD="${LD-ld} -64" 6138 ;; 6139 esac 6140 fi 6141 fi 6142 rm -rf conftest* 6143 ;; 6144 6145 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6146 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6147 # Find out which ABI we are using. 6148 echo 'int i;' > conftest.$ac_ext 6149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6150 (eval $ac_compile) 2>&5 6151 ac_status=$? 6152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6153 test $ac_status = 0; }; then 6154 case `/usr/bin/file conftest.o` in 6155 *32-bit*) 6156 case $host in 6157 x86_64-*kfreebsd*-gnu) 6158 LD="${LD-ld} -m elf_i386_fbsd" 6159 ;; 6160 x86_64-*linux*) 6161 LD="${LD-ld} -m elf_i386" 6162 ;; 6163 ppc64-*linux*|powerpc64-*linux*) 6164 LD="${LD-ld} -m elf32ppclinux" 6165 ;; 6166 s390x-*linux*) 6167 LD="${LD-ld} -m elf_s390" 6168 ;; 6169 sparc64-*linux*) 6170 LD="${LD-ld} -m elf32_sparc" 6171 ;; 6172 esac 6173 ;; 6174 *64-bit*) 6175 case $host in 6176 x86_64-*kfreebsd*-gnu) 6177 LD="${LD-ld} -m elf_x86_64_fbsd" 6178 ;; 6179 x86_64-*linux*) 6180 LD="${LD-ld} -m elf_x86_64" 6181 ;; 6182 ppc*-*linux*|powerpc*-*linux*) 6183 LD="${LD-ld} -m elf64ppc" 6184 ;; 6185 s390*-*linux*|s390*-*tpf*) 6186 LD="${LD-ld} -m elf64_s390" 6187 ;; 6188 sparc*-*linux*) 6189 LD="${LD-ld} -m elf64_sparc" 6190 ;; 6191 esac 6192 ;; 6193 esac 6194 fi 6195 rm -rf conftest* 6196 ;; 6197 6198 *-*-sco3.2v5*) 6199 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6200 SAVE_CFLAGS="$CFLAGS" 6201 CFLAGS="$CFLAGS -belf" 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6203 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6204 if ${lt_cv_cc_needs_belf+:} false; then : 6205 $as_echo_n "(cached) " >&6 6206 else 6207 ac_ext=c 6208 ac_cpp='$CPP $CPPFLAGS' 6209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6211 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6212 6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6214 /* end confdefs.h. */ 6215 6216 int 6217 main () 6218 { 6219 6220 ; 6221 return 0; 6222 } 6223 _ACEOF 6224 if ac_fn_c_try_link "$LINENO"; then : 6225 lt_cv_cc_needs_belf=yes 6226 else 6227 lt_cv_cc_needs_belf=no 6228 fi 6229 rm -f core conftest.err conftest.$ac_objext \ 6230 conftest$ac_exeext conftest.$ac_ext 6231 ac_ext=c 6232 ac_cpp='$CPP $CPPFLAGS' 6233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6235 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6236 6237 fi 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6239 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6242 CFLAGS="$SAVE_CFLAGS" 6243 fi 6244 ;; 6245 *-*solaris*) 6246 # Find out which ABI we are using. 6247 echo 'int i;' > conftest.$ac_ext 6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6249 (eval $ac_compile) 2>&5 6250 ac_status=$? 6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6252 test $ac_status = 0; }; then 6253 case `/usr/bin/file conftest.o` in 6254 *64-bit*) 6255 case $lt_cv_prog_gnu_ld in 6256 yes*) 6257 case $host in 6258 i?86-*-solaris*) 6259 LD="${LD-ld} -m elf_x86_64" 6260 ;; 6261 sparc*-*-solaris*) 6262 LD="${LD-ld} -m elf64_sparc" 6263 ;; 6264 esac 6265 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6266 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6267 LD="${LD-ld}_sol2" 6268 fi 6269 ;; 6270 *) 6271 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6272 LD="${LD-ld} -64" 6273 fi 6274 ;; 6275 esac 6276 ;; 6277 esac 6278 fi 6279 rm -rf conftest* 6280 ;; 6281 esac 6282 6283 need_locks="$enable_libtool_lock" 6284 6285 if test -n "$ac_tool_prefix"; then 6286 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6287 set dummy ${ac_tool_prefix}mt; ac_word=$2 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6289 $as_echo_n "checking for $ac_word... " >&6; } 6290 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292 else 6293 if test -n "$MANIFEST_TOOL"; then 6294 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6295 else 6296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6297 for as_dir in $PATH 6298 do 6299 IFS=$as_save_IFS 6300 test -z "$as_dir" && as_dir=. 6301 for ac_exec_ext in '' $ac_executable_extensions; do 6302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6303 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6305 break 2 6306 fi 6307 done 6308 done 6309 IFS=$as_save_IFS 6310 6311 fi 6312 fi 6313 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6314 if test -n "$MANIFEST_TOOL"; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6316 $as_echo "$MANIFEST_TOOL" >&6; } 6317 else 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6319 $as_echo "no" >&6; } 6320 fi 6321 6322 6323 fi 6324 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6325 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6326 # Extract the first word of "mt", so it can be a program name with args. 6327 set dummy mt; ac_word=$2 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6329 $as_echo_n "checking for $ac_word... " >&6; } 6330 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332 else 6333 if test -n "$ac_ct_MANIFEST_TOOL"; then 6334 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6335 else 6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6337 for as_dir in $PATH 6338 do 6339 IFS=$as_save_IFS 6340 test -z "$as_dir" && as_dir=. 6341 for ac_exec_ext in '' $ac_executable_extensions; do 6342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6343 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6345 break 2 6346 fi 6347 done 6348 done 6349 IFS=$as_save_IFS 6350 6351 fi 6352 fi 6353 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6354 if test -n "$ac_ct_MANIFEST_TOOL"; then 6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6356 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6357 else 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6359 $as_echo "no" >&6; } 6360 fi 6361 6362 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6363 MANIFEST_TOOL=":" 6364 else 6365 case $cross_compiling:$ac_tool_warned in 6366 yes:) 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6369 ac_tool_warned=yes ;; 6370 esac 6371 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6372 fi 6373 else 6374 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6375 fi 6376 6377 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6379 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6380 if ${lt_cv_path_mainfest_tool+:} false; then : 6381 $as_echo_n "(cached) " >&6 6382 else 6383 lt_cv_path_mainfest_tool=no 6384 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6385 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6386 cat conftest.err >&5 6387 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6388 lt_cv_path_mainfest_tool=yes 6389 fi 6390 rm -f conftest* 6391 fi 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6393 $as_echo "$lt_cv_path_mainfest_tool" >&6; } 6394 if test "x$lt_cv_path_mainfest_tool" != xyes; then 6395 MANIFEST_TOOL=: 6396 fi 6397 6398 6399 6400 6401 6402 6403 case $host_os in 6404 rhapsody* | darwin*) 6405 if test -n "$ac_tool_prefix"; then 6406 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6407 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6409 $as_echo_n "checking for $ac_word... " >&6; } 6410 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6411 $as_echo_n "(cached) " >&6 6412 else 6413 if test -n "$DSYMUTIL"; then 6414 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6415 else 6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6417 for as_dir in $PATH 6418 do 6419 IFS=$as_save_IFS 6420 test -z "$as_dir" && as_dir=. 6421 for ac_exec_ext in '' $ac_executable_extensions; do 6422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6423 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6425 break 2 6426 fi 6427 done 6428 done 6429 IFS=$as_save_IFS 6430 6431 fi 6432 fi 6433 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6434 if test -n "$DSYMUTIL"; then 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6436 $as_echo "$DSYMUTIL" >&6; } 6437 else 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6439 $as_echo "no" >&6; } 6440 fi 6441 6442 6443 fi 6444 if test -z "$ac_cv_prog_DSYMUTIL"; then 6445 ac_ct_DSYMUTIL=$DSYMUTIL 6446 # Extract the first word of "dsymutil", so it can be a program name with args. 6447 set dummy dsymutil; ac_word=$2 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449 $as_echo_n "checking for $ac_word... " >&6; } 6450 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452 else 6453 if test -n "$ac_ct_DSYMUTIL"; then 6454 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6455 else 6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6457 for as_dir in $PATH 6458 do 6459 IFS=$as_save_IFS 6460 test -z "$as_dir" && as_dir=. 6461 for ac_exec_ext in '' $ac_executable_extensions; do 6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6463 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6465 break 2 6466 fi 6467 done 6468 done 6469 IFS=$as_save_IFS 6470 6471 fi 6472 fi 6473 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6474 if test -n "$ac_ct_DSYMUTIL"; then 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6476 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6477 else 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479 $as_echo "no" >&6; } 6480 fi 6481 6482 if test "x$ac_ct_DSYMUTIL" = x; then 6483 DSYMUTIL=":" 6484 else 6485 case $cross_compiling:$ac_tool_warned in 6486 yes:) 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6489 ac_tool_warned=yes ;; 6490 esac 6491 DSYMUTIL=$ac_ct_DSYMUTIL 6492 fi 6493 else 6494 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6495 fi 6496 6497 if test -n "$ac_tool_prefix"; then 6498 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6499 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6501 $as_echo_n "checking for $ac_word... " >&6; } 6502 if ${ac_cv_prog_NMEDIT+:} false; then : 6503 $as_echo_n "(cached) " >&6 6504 else 6505 if test -n "$NMEDIT"; then 6506 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6507 else 6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6509 for as_dir in $PATH 6510 do 6511 IFS=$as_save_IFS 6512 test -z "$as_dir" && as_dir=. 6513 for ac_exec_ext in '' $ac_executable_extensions; do 6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6515 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6517 break 2 6518 fi 6519 done 6520 done 6521 IFS=$as_save_IFS 6522 6523 fi 6524 fi 6525 NMEDIT=$ac_cv_prog_NMEDIT 6526 if test -n "$NMEDIT"; then 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6528 $as_echo "$NMEDIT" >&6; } 6529 else 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6531 $as_echo "no" >&6; } 6532 fi 6533 6534 6535 fi 6536 if test -z "$ac_cv_prog_NMEDIT"; then 6537 ac_ct_NMEDIT=$NMEDIT 6538 # Extract the first word of "nmedit", so it can be a program name with args. 6539 set dummy nmedit; ac_word=$2 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6541 $as_echo_n "checking for $ac_word... " >&6; } 6542 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544 else 6545 if test -n "$ac_ct_NMEDIT"; then 6546 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6547 else 6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6549 for as_dir in $PATH 6550 do 6551 IFS=$as_save_IFS 6552 test -z "$as_dir" && as_dir=. 6553 for ac_exec_ext in '' $ac_executable_extensions; do 6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6555 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6557 break 2 6558 fi 6559 done 6560 done 6561 IFS=$as_save_IFS 6562 6563 fi 6564 fi 6565 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6566 if test -n "$ac_ct_NMEDIT"; then 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6568 $as_echo "$ac_ct_NMEDIT" >&6; } 6569 else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6571 $as_echo "no" >&6; } 6572 fi 6573 6574 if test "x$ac_ct_NMEDIT" = x; then 6575 NMEDIT=":" 6576 else 6577 case $cross_compiling:$ac_tool_warned in 6578 yes:) 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6581 ac_tool_warned=yes ;; 6582 esac 6583 NMEDIT=$ac_ct_NMEDIT 6584 fi 6585 else 6586 NMEDIT="$ac_cv_prog_NMEDIT" 6587 fi 6588 6589 if test -n "$ac_tool_prefix"; then 6590 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6591 set dummy ${ac_tool_prefix}lipo; ac_word=$2 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6593 $as_echo_n "checking for $ac_word... " >&6; } 6594 if ${ac_cv_prog_LIPO+:} false; then : 6595 $as_echo_n "(cached) " >&6 6596 else 6597 if test -n "$LIPO"; then 6598 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6599 else 6600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6601 for as_dir in $PATH 6602 do 6603 IFS=$as_save_IFS 6604 test -z "$as_dir" && as_dir=. 6605 for ac_exec_ext in '' $ac_executable_extensions; do 6606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6607 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6609 break 2 6610 fi 6611 done 6612 done 6613 IFS=$as_save_IFS 6614 6615 fi 6616 fi 6617 LIPO=$ac_cv_prog_LIPO 6618 if test -n "$LIPO"; then 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6620 $as_echo "$LIPO" >&6; } 6621 else 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6623 $as_echo "no" >&6; } 6624 fi 6625 6626 6627 fi 6628 if test -z "$ac_cv_prog_LIPO"; then 6629 ac_ct_LIPO=$LIPO 6630 # Extract the first word of "lipo", so it can be a program name with args. 6631 set dummy lipo; ac_word=$2 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633 $as_echo_n "checking for $ac_word... " >&6; } 6634 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6635 $as_echo_n "(cached) " >&6 6636 else 6637 if test -n "$ac_ct_LIPO"; then 6638 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6639 else 6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641 for as_dir in $PATH 6642 do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6647 ac_cv_prog_ac_ct_LIPO="lipo" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651 done 6652 done 6653 IFS=$as_save_IFS 6654 6655 fi 6656 fi 6657 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6658 if test -n "$ac_ct_LIPO"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6660 $as_echo "$ac_ct_LIPO" >&6; } 6661 else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663 $as_echo "no" >&6; } 6664 fi 6665 6666 if test "x$ac_ct_LIPO" = x; then 6667 LIPO=":" 6668 else 6669 case $cross_compiling:$ac_tool_warned in 6670 yes:) 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6673 ac_tool_warned=yes ;; 6674 esac 6675 LIPO=$ac_ct_LIPO 6676 fi 6677 else 6678 LIPO="$ac_cv_prog_LIPO" 6679 fi 6680 6681 if test -n "$ac_tool_prefix"; then 6682 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6683 set dummy ${ac_tool_prefix}otool; ac_word=$2 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6685 $as_echo_n "checking for $ac_word... " >&6; } 6686 if ${ac_cv_prog_OTOOL+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688 else 6689 if test -n "$OTOOL"; then 6690 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6691 else 6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6693 for as_dir in $PATH 6694 do 6695 IFS=$as_save_IFS 6696 test -z "$as_dir" && as_dir=. 6697 for ac_exec_ext in '' $ac_executable_extensions; do 6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6699 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6701 break 2 6702 fi 6703 done 6704 done 6705 IFS=$as_save_IFS 6706 6707 fi 6708 fi 6709 OTOOL=$ac_cv_prog_OTOOL 6710 if test -n "$OTOOL"; then 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6712 $as_echo "$OTOOL" >&6; } 6713 else 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6715 $as_echo "no" >&6; } 6716 fi 6717 6718 6719 fi 6720 if test -z "$ac_cv_prog_OTOOL"; then 6721 ac_ct_OTOOL=$OTOOL 6722 # Extract the first word of "otool", so it can be a program name with args. 6723 set dummy otool; ac_word=$2 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725 $as_echo_n "checking for $ac_word... " >&6; } 6726 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6727 $as_echo_n "(cached) " >&6 6728 else 6729 if test -n "$ac_ct_OTOOL"; then 6730 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6731 else 6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733 for as_dir in $PATH 6734 do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6739 ac_cv_prog_ac_ct_OTOOL="otool" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743 done 6744 done 6745 IFS=$as_save_IFS 6746 6747 fi 6748 fi 6749 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6750 if test -n "$ac_ct_OTOOL"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6752 $as_echo "$ac_ct_OTOOL" >&6; } 6753 else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755 $as_echo "no" >&6; } 6756 fi 6757 6758 if test "x$ac_ct_OTOOL" = x; then 6759 OTOOL=":" 6760 else 6761 case $cross_compiling:$ac_tool_warned in 6762 yes:) 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6765 ac_tool_warned=yes ;; 6766 esac 6767 OTOOL=$ac_ct_OTOOL 6768 fi 6769 else 6770 OTOOL="$ac_cv_prog_OTOOL" 6771 fi 6772 6773 if test -n "$ac_tool_prefix"; then 6774 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6775 set dummy ${ac_tool_prefix}otool64; ac_word=$2 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6777 $as_echo_n "checking for $ac_word... " >&6; } 6778 if ${ac_cv_prog_OTOOL64+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780 else 6781 if test -n "$OTOOL64"; then 6782 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6783 else 6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6785 for as_dir in $PATH 6786 do 6787 IFS=$as_save_IFS 6788 test -z "$as_dir" && as_dir=. 6789 for ac_exec_ext in '' $ac_executable_extensions; do 6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6791 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6793 break 2 6794 fi 6795 done 6796 done 6797 IFS=$as_save_IFS 6798 6799 fi 6800 fi 6801 OTOOL64=$ac_cv_prog_OTOOL64 6802 if test -n "$OTOOL64"; then 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6804 $as_echo "$OTOOL64" >&6; } 6805 else 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6807 $as_echo "no" >&6; } 6808 fi 6809 6810 6811 fi 6812 if test -z "$ac_cv_prog_OTOOL64"; then 6813 ac_ct_OTOOL64=$OTOOL64 6814 # Extract the first word of "otool64", so it can be a program name with args. 6815 set dummy otool64; ac_word=$2 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817 $as_echo_n "checking for $ac_word... " >&6; } 6818 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820 else 6821 if test -n "$ac_ct_OTOOL64"; then 6822 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6823 else 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825 for as_dir in $PATH 6826 do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6831 ac_cv_prog_ac_ct_OTOOL64="otool64" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835 done 6836 done 6837 IFS=$as_save_IFS 6838 6839 fi 6840 fi 6841 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6842 if test -n "$ac_ct_OTOOL64"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6844 $as_echo "$ac_ct_OTOOL64" >&6; } 6845 else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847 $as_echo "no" >&6; } 6848 fi 6849 6850 if test "x$ac_ct_OTOOL64" = x; then 6851 OTOOL64=":" 6852 else 6853 case $cross_compiling:$ac_tool_warned in 6854 yes:) 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6857 ac_tool_warned=yes ;; 6858 esac 6859 OTOOL64=$ac_ct_OTOOL64 6860 fi 6861 else 6862 OTOOL64="$ac_cv_prog_OTOOL64" 6863 fi 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6892 $as_echo_n "checking for -single_module linker flag... " >&6; } 6893 if ${lt_cv_apple_cc_single_mod+:} false; then : 6894 $as_echo_n "(cached) " >&6 6895 else 6896 lt_cv_apple_cc_single_mod=no 6897 if test -z "${LT_MULTI_MODULE}"; then 6898 # By default we will add the -single_module flag. You can override 6899 # by either setting the environment variable LT_MULTI_MODULE 6900 # non-empty at configure time, or by adding -multi_module to the 6901 # link flags. 6902 rm -rf libconftest.dylib* 6903 echo "int foo(void){return 1;}" > conftest.c 6904 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6905 -dynamiclib -Wl,-single_module conftest.c" >&5 6906 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6907 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6908 _lt_result=$? 6909 # If there is a non-empty error log, and "single_module" 6910 # appears in it, assume the flag caused a linker warning 6911 if test -s conftest.err && $GREP single_module conftest.err; then 6912 cat conftest.err >&5 6913 # Otherwise, if the output was created with a 0 exit code from 6914 # the compiler, it worked. 6915 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 6916 lt_cv_apple_cc_single_mod=yes 6917 else 6918 cat conftest.err >&5 6919 fi 6920 rm -rf libconftest.dylib* 6921 rm -f conftest.* 6922 fi 6923 fi 6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6925 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6926 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6928 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6929 if ${lt_cv_ld_exported_symbols_list+:} false; then : 6930 $as_echo_n "(cached) " >&6 6931 else 6932 lt_cv_ld_exported_symbols_list=no 6933 save_LDFLAGS=$LDFLAGS 6934 echo "_main" > conftest.sym 6935 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6937 /* end confdefs.h. */ 6938 6939 int 6940 main () 6941 { 6942 6943 ; 6944 return 0; 6945 } 6946 _ACEOF 6947 if ac_fn_c_try_link "$LINENO"; then : 6948 lt_cv_ld_exported_symbols_list=yes 6949 else 6950 lt_cv_ld_exported_symbols_list=no 6951 fi 6952 rm -f core conftest.err conftest.$ac_objext \ 6953 conftest$ac_exeext conftest.$ac_ext 6954 LDFLAGS="$save_LDFLAGS" 6955 6956 fi 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6958 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6959 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6961 $as_echo_n "checking for -force_load linker flag... " >&6; } 6962 if ${lt_cv_ld_force_load+:} false; then : 6963 $as_echo_n "(cached) " >&6 6964 else 6965 lt_cv_ld_force_load=no 6966 cat > conftest.c << _LT_EOF 6967 int forced_loaded() { return 2;} 6968 _LT_EOF 6969 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6970 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6971 echo "$AR cru libconftest.a conftest.o" >&5 6972 $AR cru libconftest.a conftest.o 2>&5 6973 echo "$RANLIB libconftest.a" >&5 6974 $RANLIB libconftest.a 2>&5 6975 cat > conftest.c << _LT_EOF 6976 int main() { return 0;} 6977 _LT_EOF 6978 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6979 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6980 _lt_result=$? 6981 if test -s conftest.err && $GREP force_load conftest.err; then 6982 cat conftest.err >&5 6983 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 6984 lt_cv_ld_force_load=yes 6985 else 6986 cat conftest.err >&5 6987 fi 6988 rm -f conftest.err libconftest.a conftest conftest.c 6989 rm -rf conftest.dSYM 6990 6991 fi 6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6993 $as_echo "$lt_cv_ld_force_load" >&6; } 6994 case $host_os in 6995 rhapsody* | darwin1.[012]) 6996 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6997 darwin1.*) 6998 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6999 darwin*) # darwin 5.x on 7000 # if running on 10.5 or later, the deployment target defaults 7001 # to the OS version, if on x86, and 10.4, the deployment 7002 # target defaults to 10.4. Don't you love it? 7003 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7004 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7005 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7006 10.[012]*) 7007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7008 10.*) 7009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7010 esac 7011 ;; 7012 esac 7013 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7014 _lt_dar_single_mod='$single_module' 7015 fi 7016 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7017 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7018 else 7019 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7020 fi 7021 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7022 _lt_dsymutil='~$DSYMUTIL $lib || :' 7023 else 7024 _lt_dsymutil= 7025 fi 7026 ;; 7027 esac 7028 7029 ac_ext=c 7030 ac_cpp='$CPP $CPPFLAGS' 7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7035 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7036 # On Suns, sometimes $CPP names a directory. 7037 if test -n "$CPP" && test -d "$CPP"; then 7038 CPP= 7039 fi 7040 if test -z "$CPP"; then 7041 if ${ac_cv_prog_CPP+:} false; then : 7042 $as_echo_n "(cached) " >&6 7043 else 7044 # Double quotes because CPP needs to be expanded 7045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7046 do 7047 ac_preproc_ok=false 7048 for ac_c_preproc_warn_flag in '' yes 7049 do 7050 # Use a header file that comes with gcc, so configuring glibc 7051 # with a fresh cross-compiler works. 7052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7053 # <limits.h> exists even on freestanding compilers. 7054 # On the NeXT, cc -E runs the code through the compiler's parser, 7055 # not just through cpp. "Syntax error" is here to catch this case. 7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7057 /* end confdefs.h. */ 7058 #ifdef __STDC__ 7059 # include <limits.h> 7060 #else 7061 # include <assert.h> 7062 #endif 7063 Syntax error 7064 _ACEOF 7065 if ac_fn_c_try_cpp "$LINENO"; then : 7066 7067 else 7068 # Broken: fails on valid input. 7069 continue 7070 fi 7071 rm -f conftest.err conftest.i conftest.$ac_ext 7072 7073 # OK, works on sane cases. Now check whether nonexistent headers 7074 # can be detected and how. 7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7076 /* end confdefs.h. */ 7077 #include <ac_nonexistent.h> 7078 _ACEOF 7079 if ac_fn_c_try_cpp "$LINENO"; then : 7080 # Broken: success on invalid input. 7081 continue 7082 else 7083 # Passes both tests. 7084 ac_preproc_ok=: 7085 break 7086 fi 7087 rm -f conftest.err conftest.i conftest.$ac_ext 7088 7089 done 7090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7091 rm -f conftest.i conftest.err conftest.$ac_ext 7092 if $ac_preproc_ok; then : 7093 break 7094 fi 7095 7096 done 7097 ac_cv_prog_CPP=$CPP 7098 7099 fi 7100 CPP=$ac_cv_prog_CPP 7101 else 7102 ac_cv_prog_CPP=$CPP 7103 fi 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7105 $as_echo "$CPP" >&6; } 7106 ac_preproc_ok=false 7107 for ac_c_preproc_warn_flag in '' yes 7108 do 7109 # Use a header file that comes with gcc, so configuring glibc 7110 # with a fresh cross-compiler works. 7111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7112 # <limits.h> exists even on freestanding compilers. 7113 # On the NeXT, cc -E runs the code through the compiler's parser, 7114 # not just through cpp. "Syntax error" is here to catch this case. 7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7116 /* end confdefs.h. */ 7117 #ifdef __STDC__ 7118 # include <limits.h> 7119 #else 7120 # include <assert.h> 7121 #endif 7122 Syntax error 7123 _ACEOF 7124 if ac_fn_c_try_cpp "$LINENO"; then : 7125 7126 else 7127 # Broken: fails on valid input. 7128 continue 7129 fi 7130 rm -f conftest.err conftest.i conftest.$ac_ext 7131 7132 # OK, works on sane cases. Now check whether nonexistent headers 7133 # can be detected and how. 7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7135 /* end confdefs.h. */ 7136 #include <ac_nonexistent.h> 7137 _ACEOF 7138 if ac_fn_c_try_cpp "$LINENO"; then : 7139 # Broken: success on invalid input. 7140 continue 7141 else 7142 # Passes both tests. 7143 ac_preproc_ok=: 7144 break 7145 fi 7146 rm -f conftest.err conftest.i conftest.$ac_ext 7147 7148 done 7149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7150 rm -f conftest.i conftest.err conftest.$ac_ext 7151 if $ac_preproc_ok; then : 7152 7153 else 7154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7156 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7157 See \`config.log' for more details" "$LINENO" 5; } 7158 fi 7159 7160 ac_ext=c 7161 ac_cpp='$CPP $CPPFLAGS' 7162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7164 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7165 7166 7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7168 $as_echo_n "checking for ANSI C header files... " >&6; } 7169 if ${ac_cv_header_stdc+:} false; then : 7170 $as_echo_n "(cached) " >&6 7171 else 7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7173 /* end confdefs.h. */ 7174 #include <stdlib.h> 7175 #include <stdarg.h> 7176 #include <string.h> 7177 #include <float.h> 7178 7179 int 7180 main () 7181 { 7182 7183 ; 7184 return 0; 7185 } 7186 _ACEOF 7187 if ac_fn_c_try_compile "$LINENO"; then : 7188 ac_cv_header_stdc=yes 7189 else 7190 ac_cv_header_stdc=no 7191 fi 7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7193 7194 if test $ac_cv_header_stdc = yes; then 7195 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7197 /* end confdefs.h. */ 7198 #include <string.h> 7199 7200 _ACEOF 7201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7202 $EGREP "memchr" >/dev/null 2>&1; then : 7203 7204 else 7205 ac_cv_header_stdc=no 7206 fi 7207 rm -f conftest* 7208 7209 fi 7210 7211 if test $ac_cv_header_stdc = yes; then 7212 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7214 /* end confdefs.h. */ 7215 #include <stdlib.h> 7216 7217 _ACEOF 7218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7219 $EGREP "free" >/dev/null 2>&1; then : 7220 7221 else 7222 ac_cv_header_stdc=no 7223 fi 7224 rm -f conftest* 7225 7226 fi 7227 7228 if test $ac_cv_header_stdc = yes; then 7229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7230 if test "$cross_compiling" = yes; then : 7231 : 7232 else 7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7234 /* end confdefs.h. */ 7235 #include <ctype.h> 7236 #include <stdlib.h> 7237 #if ((' ' & 0x0FF) == 0x020) 7238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7240 #else 7241 # define ISLOWER(c) \ 7242 (('a' <= (c) && (c) <= 'i') \ 7243 || ('j' <= (c) && (c) <= 'r') \ 7244 || ('s' <= (c) && (c) <= 'z')) 7245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7246 #endif 7247 7248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7249 int 7250 main () 7251 { 7252 int i; 7253 for (i = 0; i < 256; i++) 7254 if (XOR (islower (i), ISLOWER (i)) 7255 || toupper (i) != TOUPPER (i)) 7256 return 2; 7257 return 0; 7258 } 7259 _ACEOF 7260 if ac_fn_c_try_run "$LINENO"; then : 7261 7262 else 7263 ac_cv_header_stdc=no 7264 fi 7265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7266 conftest.$ac_objext conftest.beam conftest.$ac_ext 7267 fi 7268 7269 fi 7270 fi 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7272 $as_echo "$ac_cv_header_stdc" >&6; } 7273 if test $ac_cv_header_stdc = yes; then 7274 7275 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7276 7277 fi 7278 7279 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7280 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7281 inttypes.h stdint.h unistd.h 7282 do : 7283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7284 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7285 " 7286 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7287 cat >>confdefs.h <<_ACEOF 7288 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7289 _ACEOF 7290 7291 fi 7292 7293 done 7294 7295 7296 for ac_header in dlfcn.h 7297 do : 7298 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7299 " 7300 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7301 cat >>confdefs.h <<_ACEOF 7302 #define HAVE_DLFCN_H 1 7303 _ACEOF 7304 7305 fi 7306 7307 done 7308 7309 7310 7311 7312 7313 # Set options 7314 7315 7316 7317 enable_dlopen=no 7318 7319 7320 enable_win32_dll=no 7321 7322 7323 # Check whether --enable-shared was given. 7324 if test "${enable_shared+set}" = set; then : 7325 enableval=$enable_shared; p=${PACKAGE-default} 7326 case $enableval in 7327 yes) enable_shared=yes ;; 7328 no) enable_shared=no ;; 7329 *) 7330 enable_shared=no 7331 # Look at the argument we got. We use all the common list separators. 7332 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7333 for pkg in $enableval; do 7334 IFS="$lt_save_ifs" 7335 if test "X$pkg" = "X$p"; then 7336 enable_shared=yes 7337 fi 7338 done 7339 IFS="$lt_save_ifs" 7340 ;; 7341 esac 7342 else 7343 enable_shared=yes 7344 fi 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 # Check whether --enable-static was given. 7355 if test "${enable_static+set}" = set; then : 7356 enableval=$enable_static; p=${PACKAGE-default} 7357 case $enableval in 7358 yes) enable_static=yes ;; 7359 no) enable_static=no ;; 7360 *) 7361 enable_static=no 7362 # Look at the argument we got. We use all the common list separators. 7363 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7364 for pkg in $enableval; do 7365 IFS="$lt_save_ifs" 7366 if test "X$pkg" = "X$p"; then 7367 enable_static=yes 7368 fi 7369 done 7370 IFS="$lt_save_ifs" 7371 ;; 7372 esac 7373 else 7374 enable_static=yes 7375 fi 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 # Check whether --with-pic was given. 7387 if test "${with_pic+set}" = set; then : 7388 withval=$with_pic; lt_p=${PACKAGE-default} 7389 case $withval in 7390 yes|no) pic_mode=$withval ;; 7391 *) 7392 pic_mode=default 7393 # Look at the argument we got. We use all the common list separators. 7394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7395 for lt_pkg in $withval; do 7396 IFS="$lt_save_ifs" 7397 if test "X$lt_pkg" = "X$lt_p"; then 7398 pic_mode=yes 7399 fi 7400 done 7401 IFS="$lt_save_ifs" 7402 ;; 7403 esac 7404 else 7405 pic_mode=default 7406 fi 7407 7408 7409 test -z "$pic_mode" && pic_mode=default 7410 7411 7412 7413 7414 7415 7416 7417 # Check whether --enable-fast-install was given. 7418 if test "${enable_fast_install+set}" = set; then : 7419 enableval=$enable_fast_install; p=${PACKAGE-default} 7420 case $enableval in 7421 yes) enable_fast_install=yes ;; 7422 no) enable_fast_install=no ;; 7423 *) 7424 enable_fast_install=no 7425 # Look at the argument we got. We use all the common list separators. 7426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7427 for pkg in $enableval; do 7428 IFS="$lt_save_ifs" 7429 if test "X$pkg" = "X$p"; then 7430 enable_fast_install=yes 7431 fi 7432 done 7433 IFS="$lt_save_ifs" 7434 ;; 7435 esac 7436 else 7437 enable_fast_install=yes 7438 fi 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 # This can be used to rebuild libtool when needed 7451 LIBTOOL_DEPS="$ltmain" 7452 7453 # Always use our own libtool. 7454 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 test -z "$LN_S" && LN_S="ln -s" 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 if test -n "${ZSH_VERSION+set}" ; then 7501 setopt NO_GLOB_SUBST 7502 fi 7503 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7505 $as_echo_n "checking for objdir... " >&6; } 7506 if ${lt_cv_objdir+:} false; then : 7507 $as_echo_n "(cached) " >&6 7508 else 7509 rm -f .libs 2>/dev/null 7510 mkdir .libs 2>/dev/null 7511 if test -d .libs; then 7512 lt_cv_objdir=.libs 7513 else 7514 # MS-DOS does not allow filenames that begin with a dot. 7515 lt_cv_objdir=_libs 7516 fi 7517 rmdir .libs 2>/dev/null 7518 fi 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7520 $as_echo "$lt_cv_objdir" >&6; } 7521 objdir=$lt_cv_objdir 7522 7523 7524 7525 7526 7527 cat >>confdefs.h <<_ACEOF 7528 #define LT_OBJDIR "$lt_cv_objdir/" 7529 _ACEOF 7530 7531 7532 7533 7534 case $host_os in 7535 aix3*) 7536 # AIX sometimes has problems with the GCC collect2 program. For some 7537 # reason, if we set the COLLECT_NAMES environment variable, the problems 7538 # vanish in a puff of smoke. 7539 if test "X${COLLECT_NAMES+set}" != Xset; then 7540 COLLECT_NAMES= 7541 export COLLECT_NAMES 7542 fi 7543 ;; 7544 esac 7545 7546 # Global variables: 7547 ofile=libtool 7548 can_build_shared=yes 7549 7550 # All known linkers require a `.a' archive for static linking (except MSVC, 7551 # which needs '.lib'). 7552 libext=a 7553 7554 with_gnu_ld="$lt_cv_prog_gnu_ld" 7555 7556 old_CC="$CC" 7557 old_CFLAGS="$CFLAGS" 7558 7559 # Set sane defaults for various variables 7560 test -z "$CC" && CC=cc 7561 test -z "$LTCC" && LTCC=$CC 7562 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7563 test -z "$LD" && LD=ld 7564 test -z "$ac_objext" && ac_objext=o 7565 7566 for cc_temp in $compiler""; do 7567 case $cc_temp in 7568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7570 \-*) ;; 7571 *) break;; 7572 esac 7573 done 7574 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7575 7576 7577 # Only perform the check for file, if the check method requires it 7578 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7579 case $deplibs_check_method in 7580 file_magic*) 7581 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7583 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7584 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7585 $as_echo_n "(cached) " >&6 7586 else 7587 case $MAGIC_CMD in 7588 [\\/*] | ?:[\\/]*) 7589 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7590 ;; 7591 *) 7592 lt_save_MAGIC_CMD="$MAGIC_CMD" 7593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7594 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7595 for ac_dir in $ac_dummy; do 7596 IFS="$lt_save_ifs" 7597 test -z "$ac_dir" && ac_dir=. 7598 if test -f $ac_dir/${ac_tool_prefix}file; then 7599 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7600 if test -n "$file_magic_test_file"; then 7601 case $deplibs_check_method in 7602 "file_magic "*) 7603 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7605 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7606 $EGREP "$file_magic_regex" > /dev/null; then 7607 : 7608 else 7609 cat <<_LT_EOF 1>&2 7610 7611 *** Warning: the command libtool uses to detect shared libraries, 7612 *** $file_magic_cmd, produces output that libtool cannot recognize. 7613 *** The result is that libtool may fail to recognize shared libraries 7614 *** as such. This will affect the creation of libtool libraries that 7615 *** depend on shared libraries, but programs linked with such libtool 7616 *** libraries will work regardless of this problem. Nevertheless, you 7617 *** may want to report the problem to your system manager and/or to 7618 *** bug-libtool@gnu.org 7619 7620 _LT_EOF 7621 fi ;; 7622 esac 7623 fi 7624 break 7625 fi 7626 done 7627 IFS="$lt_save_ifs" 7628 MAGIC_CMD="$lt_save_MAGIC_CMD" 7629 ;; 7630 esac 7631 fi 7632 7633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7634 if test -n "$MAGIC_CMD"; then 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7636 $as_echo "$MAGIC_CMD" >&6; } 7637 else 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639 $as_echo "no" >&6; } 7640 fi 7641 7642 7643 7644 7645 7646 if test -z "$lt_cv_path_MAGIC_CMD"; then 7647 if test -n "$ac_tool_prefix"; then 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7649 $as_echo_n "checking for file... " >&6; } 7650 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652 else 7653 case $MAGIC_CMD in 7654 [\\/*] | ?:[\\/]*) 7655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7656 ;; 7657 *) 7658 lt_save_MAGIC_CMD="$MAGIC_CMD" 7659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7661 for ac_dir in $ac_dummy; do 7662 IFS="$lt_save_ifs" 7663 test -z "$ac_dir" && ac_dir=. 7664 if test -f $ac_dir/file; then 7665 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7666 if test -n "$file_magic_test_file"; then 7667 case $deplibs_check_method in 7668 "file_magic "*) 7669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7672 $EGREP "$file_magic_regex" > /dev/null; then 7673 : 7674 else 7675 cat <<_LT_EOF 1>&2 7676 7677 *** Warning: the command libtool uses to detect shared libraries, 7678 *** $file_magic_cmd, produces output that libtool cannot recognize. 7679 *** The result is that libtool may fail to recognize shared libraries 7680 *** as such. This will affect the creation of libtool libraries that 7681 *** depend on shared libraries, but programs linked with such libtool 7682 *** libraries will work regardless of this problem. Nevertheless, you 7683 *** may want to report the problem to your system manager and/or to 7684 *** bug-libtool@gnu.org 7685 7686 _LT_EOF 7687 fi ;; 7688 esac 7689 fi 7690 break 7691 fi 7692 done 7693 IFS="$lt_save_ifs" 7694 MAGIC_CMD="$lt_save_MAGIC_CMD" 7695 ;; 7696 esac 7697 fi 7698 7699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7700 if test -n "$MAGIC_CMD"; then 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7702 $as_echo "$MAGIC_CMD" >&6; } 7703 else 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7705 $as_echo "no" >&6; } 7706 fi 7707 7708 7709 else 7710 MAGIC_CMD=: 7711 fi 7712 fi 7713 7714 fi 7715 ;; 7716 esac 7717 7718 # Use C for the default configuration in the libtool script 7719 7720 lt_save_CC="$CC" 7721 ac_ext=c 7722 ac_cpp='$CPP $CPPFLAGS' 7723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7725 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7726 7727 7728 # Source file extension for C test sources. 7729 ac_ext=c 7730 7731 # Object file extension for compiled C test sources. 7732 objext=o 7733 objext=$objext 7734 7735 # Code to be used in simple compile tests 7736 lt_simple_compile_test_code="int some_variable = 0;" 7737 7738 # Code to be used in simple link tests 7739 lt_simple_link_test_code='int main(){return(0);}' 7740 7741 7742 7743 7744 7745 7746 7747 # If no C compiler was specified, use CC. 7748 LTCC=${LTCC-"$CC"} 7749 7750 # If no C compiler flags were specified, use CFLAGS. 7751 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7752 7753 # Allow CC to be a program name with arguments. 7754 compiler=$CC 7755 7756 # Save the default compiler, since it gets overwritten when the other 7757 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7758 compiler_DEFAULT=$CC 7759 7760 # save warnings/boilerplate of simple test code 7761 ac_outfile=conftest.$ac_objext 7762 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7763 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7764 _lt_compiler_boilerplate=`cat conftest.err` 7765 $RM conftest* 7766 7767 ac_outfile=conftest.$ac_objext 7768 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7769 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7770 _lt_linker_boilerplate=`cat conftest.err` 7771 $RM -r conftest* 7772 7773 7774 ## CAVEAT EMPTOR: 7775 ## There is no encapsulation within the following macros, do not change 7776 ## the running order or otherwise move them around unless you know exactly 7777 ## what you are doing... 7778 if test -n "$compiler"; then 7779 7780 lt_prog_compiler_no_builtin_flag= 7781 7782 if test "$GCC" = yes; then 7783 case $cc_basename in 7784 nvcc*) 7785 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7786 *) 7787 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7788 esac 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7791 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7792 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794 else 7795 lt_cv_prog_compiler_rtti_exceptions=no 7796 ac_outfile=conftest.$ac_objext 7797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7798 lt_compiler_flag="-fno-rtti -fno-exceptions" 7799 # Insert the option either (1) after the last *FLAGS variable, or 7800 # (2) before a word containing "conftest.", or (3) at the end. 7801 # Note that $ac_compile itself does not contain backslashes and begins 7802 # with a dollar sign (not a hyphen), so the echo should work correctly. 7803 # The option is referenced via a variable to avoid confusing sed. 7804 lt_compile=`echo "$ac_compile" | $SED \ 7805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7807 -e 's:$: $lt_compiler_flag:'` 7808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7809 (eval "$lt_compile" 2>conftest.err) 7810 ac_status=$? 7811 cat conftest.err >&5 7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7813 if (exit $ac_status) && test -s "$ac_outfile"; then 7814 # The compiler can only warn and ignore the option if not recognized 7815 # So say no if there are warnings other than the usual output. 7816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7819 lt_cv_prog_compiler_rtti_exceptions=yes 7820 fi 7821 fi 7822 $RM conftest* 7823 7824 fi 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7826 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7827 7828 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7829 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7830 else 7831 : 7832 fi 7833 7834 fi 7835 7836 7837 7838 7839 7840 7841 lt_prog_compiler_wl= 7842 lt_prog_compiler_pic= 7843 lt_prog_compiler_static= 7844 7845 7846 if test "$GCC" = yes; then 7847 lt_prog_compiler_wl='-Wl,' 7848 lt_prog_compiler_static='-static' 7849 7850 case $host_os in 7851 aix*) 7852 # All AIX code is PIC. 7853 if test "$host_cpu" = ia64; then 7854 # AIX 5 now supports IA64 processor 7855 lt_prog_compiler_static='-Bstatic' 7856 fi 7857 ;; 7858 7859 amigaos*) 7860 case $host_cpu in 7861 powerpc) 7862 # see comment about AmigaOS4 .so support 7863 lt_prog_compiler_pic='-fPIC' 7864 ;; 7865 m68k) 7866 # FIXME: we need at least 68020 code to build shared libraries, but 7867 # adding the `-m68020' flag to GCC prevents building anything better, 7868 # like `-m68040'. 7869 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7870 ;; 7871 esac 7872 ;; 7873 7874 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7875 # PIC is the default for these OSes. 7876 ;; 7877 7878 mingw* | cygwin* | pw32* | os2* | cegcc*) 7879 # This hack is so that the source file can tell whether it is being 7880 # built for inclusion in a dll (and should export symbols for example). 7881 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7882 # (--disable-auto-import) libraries 7883 lt_prog_compiler_pic='-DDLL_EXPORT' 7884 ;; 7885 7886 darwin* | rhapsody*) 7887 # PIC is the default on this platform 7888 # Common symbols not allowed in MH_DYLIB files 7889 lt_prog_compiler_pic='-fno-common' 7890 ;; 7891 7892 haiku*) 7893 # PIC is the default for Haiku. 7894 # The "-static" flag exists, but is broken. 7895 lt_prog_compiler_static= 7896 ;; 7897 7898 hpux*) 7899 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7900 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7901 # sets the default TLS model and affects inlining. 7902 case $host_cpu in 7903 hppa*64*) 7904 # +Z the default 7905 ;; 7906 *) 7907 lt_prog_compiler_pic='-fPIC' 7908 ;; 7909 esac 7910 ;; 7911 7912 interix[3-9]*) 7913 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7914 # Instead, we relocate shared libraries at runtime. 7915 ;; 7916 7917 msdosdjgpp*) 7918 # Just because we use GCC doesn't mean we suddenly get shared libraries 7919 # on systems that don't support them. 7920 lt_prog_compiler_can_build_shared=no 7921 enable_shared=no 7922 ;; 7923 7924 *nto* | *qnx*) 7925 # QNX uses GNU C++, but need to define -shared option too, otherwise 7926 # it will coredump. 7927 lt_prog_compiler_pic='-fPIC -shared' 7928 ;; 7929 7930 sysv4*MP*) 7931 if test -d /usr/nec; then 7932 lt_prog_compiler_pic=-Kconform_pic 7933 fi 7934 ;; 7935 7936 *) 7937 lt_prog_compiler_pic='-fPIC' 7938 ;; 7939 esac 7940 7941 case $cc_basename in 7942 nvcc*) # Cuda Compiler Driver 2.2 7943 lt_prog_compiler_wl='-Xlinker ' 7944 if test -n "$lt_prog_compiler_pic"; then 7945 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7946 fi 7947 ;; 7948 esac 7949 else 7950 # PORTME Check for flag to pass linker flags through the system compiler. 7951 case $host_os in 7952 aix*) 7953 lt_prog_compiler_wl='-Wl,' 7954 if test "$host_cpu" = ia64; then 7955 # AIX 5 now supports IA64 processor 7956 lt_prog_compiler_static='-Bstatic' 7957 else 7958 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7959 fi 7960 ;; 7961 7962 mingw* | cygwin* | pw32* | os2* | cegcc*) 7963 # This hack is so that the source file can tell whether it is being 7964 # built for inclusion in a dll (and should export symbols for example). 7965 lt_prog_compiler_pic='-DDLL_EXPORT' 7966 ;; 7967 7968 hpux9* | hpux10* | hpux11*) 7969 lt_prog_compiler_wl='-Wl,' 7970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7971 # not for PA HP-UX. 7972 case $host_cpu in 7973 hppa*64*|ia64*) 7974 # +Z the default 7975 ;; 7976 *) 7977 lt_prog_compiler_pic='+Z' 7978 ;; 7979 esac 7980 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7981 lt_prog_compiler_static='${wl}-a ${wl}archive' 7982 ;; 7983 7984 irix5* | irix6* | nonstopux*) 7985 lt_prog_compiler_wl='-Wl,' 7986 # PIC (with -KPIC) is the default. 7987 lt_prog_compiler_static='-non_shared' 7988 ;; 7989 7990 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7991 case $cc_basename in 7992 # old Intel for x86_64 which still supported -KPIC. 7993 ecc*) 7994 lt_prog_compiler_wl='-Wl,' 7995 lt_prog_compiler_pic='-KPIC' 7996 lt_prog_compiler_static='-static' 7997 ;; 7998 # icc used to be incompatible with GCC. 7999 # ICC 10 doesn't accept -KPIC any more. 8000 icc* | ifort*) 8001 lt_prog_compiler_wl='-Wl,' 8002 lt_prog_compiler_pic='-fPIC' 8003 lt_prog_compiler_static='-static' 8004 ;; 8005 # Lahey Fortran 8.1. 8006 lf95*) 8007 lt_prog_compiler_wl='-Wl,' 8008 lt_prog_compiler_pic='--shared' 8009 lt_prog_compiler_static='--static' 8010 ;; 8011 nagfor*) 8012 # NAG Fortran compiler 8013 lt_prog_compiler_wl='-Wl,-Wl,,' 8014 lt_prog_compiler_pic='-PIC' 8015 lt_prog_compiler_static='-Bstatic' 8016 ;; 8017 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8018 # Portland Group compilers (*not* the Pentium gcc compiler, 8019 # which looks to be a dead project) 8020 lt_prog_compiler_wl='-Wl,' 8021 lt_prog_compiler_pic='-fpic' 8022 lt_prog_compiler_static='-Bstatic' 8023 ;; 8024 ccc*) 8025 lt_prog_compiler_wl='-Wl,' 8026 # All Alpha code is PIC. 8027 lt_prog_compiler_static='-non_shared' 8028 ;; 8029 xl* | bgxl* | bgf* | mpixl*) 8030 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8031 lt_prog_compiler_wl='-Wl,' 8032 lt_prog_compiler_pic='-qpic' 8033 lt_prog_compiler_static='-qstaticlink' 8034 ;; 8035 *) 8036 case `$CC -V 2>&1 | sed 5q` in 8037 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8038 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8039 lt_prog_compiler_pic='-KPIC' 8040 lt_prog_compiler_static='-Bstatic' 8041 lt_prog_compiler_wl='' 8042 ;; 8043 *Sun\ F* | *Sun*Fortran*) 8044 lt_prog_compiler_pic='-KPIC' 8045 lt_prog_compiler_static='-Bstatic' 8046 lt_prog_compiler_wl='-Qoption ld ' 8047 ;; 8048 *Sun\ C*) 8049 # Sun C 5.9 8050 lt_prog_compiler_pic='-KPIC' 8051 lt_prog_compiler_static='-Bstatic' 8052 lt_prog_compiler_wl='-Wl,' 8053 ;; 8054 *Intel*\ [CF]*Compiler*) 8055 lt_prog_compiler_wl='-Wl,' 8056 lt_prog_compiler_pic='-fPIC' 8057 lt_prog_compiler_static='-static' 8058 ;; 8059 *Portland\ Group*) 8060 lt_prog_compiler_wl='-Wl,' 8061 lt_prog_compiler_pic='-fpic' 8062 lt_prog_compiler_static='-Bstatic' 8063 ;; 8064 esac 8065 ;; 8066 esac 8067 ;; 8068 8069 newsos6) 8070 lt_prog_compiler_pic='-KPIC' 8071 lt_prog_compiler_static='-Bstatic' 8072 ;; 8073 8074 *nto* | *qnx*) 8075 # QNX uses GNU C++, but need to define -shared option too, otherwise 8076 # it will coredump. 8077 lt_prog_compiler_pic='-fPIC -shared' 8078 ;; 8079 8080 osf3* | osf4* | osf5*) 8081 lt_prog_compiler_wl='-Wl,' 8082 # All OSF/1 code is PIC. 8083 lt_prog_compiler_static='-non_shared' 8084 ;; 8085 8086 rdos*) 8087 lt_prog_compiler_static='-non_shared' 8088 ;; 8089 8090 solaris*) 8091 lt_prog_compiler_pic='-KPIC' 8092 lt_prog_compiler_static='-Bstatic' 8093 case $cc_basename in 8094 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8095 lt_prog_compiler_wl='-Qoption ld ';; 8096 *) 8097 lt_prog_compiler_wl='-Wl,';; 8098 esac 8099 ;; 8100 8101 sunos4*) 8102 lt_prog_compiler_wl='-Qoption ld ' 8103 lt_prog_compiler_pic='-PIC' 8104 lt_prog_compiler_static='-Bstatic' 8105 ;; 8106 8107 sysv4 | sysv4.2uw2* | sysv4.3*) 8108 lt_prog_compiler_wl='-Wl,' 8109 lt_prog_compiler_pic='-KPIC' 8110 lt_prog_compiler_static='-Bstatic' 8111 ;; 8112 8113 sysv4*MP*) 8114 if test -d /usr/nec ;then 8115 lt_prog_compiler_pic='-Kconform_pic' 8116 lt_prog_compiler_static='-Bstatic' 8117 fi 8118 ;; 8119 8120 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8121 lt_prog_compiler_wl='-Wl,' 8122 lt_prog_compiler_pic='-KPIC' 8123 lt_prog_compiler_static='-Bstatic' 8124 ;; 8125 8126 unicos*) 8127 lt_prog_compiler_wl='-Wl,' 8128 lt_prog_compiler_can_build_shared=no 8129 ;; 8130 8131 uts4*) 8132 lt_prog_compiler_pic='-pic' 8133 lt_prog_compiler_static='-Bstatic' 8134 ;; 8135 8136 *) 8137 lt_prog_compiler_can_build_shared=no 8138 ;; 8139 esac 8140 fi 8141 8142 case $host_os in 8143 # For platforms which do not support PIC, -DPIC is meaningless: 8144 *djgpp*) 8145 lt_prog_compiler_pic= 8146 ;; 8147 *) 8148 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8149 ;; 8150 esac 8151 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8153 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8154 if ${lt_cv_prog_compiler_pic+:} false; then : 8155 $as_echo_n "(cached) " >&6 8156 else 8157 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8158 fi 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8160 $as_echo "$lt_cv_prog_compiler_pic" >&6; } 8161 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8162 8163 # 8164 # Check to make sure the PIC flag actually works. 8165 # 8166 if test -n "$lt_prog_compiler_pic"; then 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8168 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8169 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8170 $as_echo_n "(cached) " >&6 8171 else 8172 lt_cv_prog_compiler_pic_works=no 8173 ac_outfile=conftest.$ac_objext 8174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8175 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8176 # Insert the option either (1) after the last *FLAGS variable, or 8177 # (2) before a word containing "conftest.", or (3) at the end. 8178 # Note that $ac_compile itself does not contain backslashes and begins 8179 # with a dollar sign (not a hyphen), so the echo should work correctly. 8180 # The option is referenced via a variable to avoid confusing sed. 8181 lt_compile=`echo "$ac_compile" | $SED \ 8182 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8183 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8184 -e 's:$: $lt_compiler_flag:'` 8185 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8186 (eval "$lt_compile" 2>conftest.err) 8187 ac_status=$? 8188 cat conftest.err >&5 8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8190 if (exit $ac_status) && test -s "$ac_outfile"; then 8191 # The compiler can only warn and ignore the option if not recognized 8192 # So say no if there are warnings other than the usual output. 8193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8194 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8195 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8196 lt_cv_prog_compiler_pic_works=yes 8197 fi 8198 fi 8199 $RM conftest* 8200 8201 fi 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8203 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8204 8205 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8206 case $lt_prog_compiler_pic in 8207 "" | " "*) ;; 8208 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8209 esac 8210 else 8211 lt_prog_compiler_pic= 8212 lt_prog_compiler_can_build_shared=no 8213 fi 8214 8215 fi 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 # 8228 # Check to make sure the static flag actually works. 8229 # 8230 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8232 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8233 if ${lt_cv_prog_compiler_static_works+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235 else 8236 lt_cv_prog_compiler_static_works=no 8237 save_LDFLAGS="$LDFLAGS" 8238 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8239 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8241 # The linker can only warn and ignore the option if not recognized 8242 # So say no if there are warnings 8243 if test -s conftest.err; then 8244 # Append any errors to the config.log. 8245 cat conftest.err 1>&5 8246 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8248 if diff conftest.exp conftest.er2 >/dev/null; then 8249 lt_cv_prog_compiler_static_works=yes 8250 fi 8251 else 8252 lt_cv_prog_compiler_static_works=yes 8253 fi 8254 fi 8255 $RM -r conftest* 8256 LDFLAGS="$save_LDFLAGS" 8257 8258 fi 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8260 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8261 8262 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8263 : 8264 else 8265 lt_prog_compiler_static= 8266 fi 8267 8268 8269 8270 8271 8272 8273 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8275 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8276 if ${lt_cv_prog_compiler_c_o+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278 else 8279 lt_cv_prog_compiler_c_o=no 8280 $RM -r conftest 2>/dev/null 8281 mkdir conftest 8282 cd conftest 8283 mkdir out 8284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8285 8286 lt_compiler_flag="-o out/conftest2.$ac_objext" 8287 # Insert the option either (1) after the last *FLAGS variable, or 8288 # (2) before a word containing "conftest.", or (3) at the end. 8289 # Note that $ac_compile itself does not contain backslashes and begins 8290 # with a dollar sign (not a hyphen), so the echo should work correctly. 8291 lt_compile=`echo "$ac_compile" | $SED \ 8292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8294 -e 's:$: $lt_compiler_flag:'` 8295 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8296 (eval "$lt_compile" 2>out/conftest.err) 8297 ac_status=$? 8298 cat out/conftest.err >&5 8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8300 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8301 then 8302 # The compiler can only warn and ignore the option if not recognized 8303 # So say no if there are warnings 8304 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8307 lt_cv_prog_compiler_c_o=yes 8308 fi 8309 fi 8310 chmod u+w . 2>&5 8311 $RM conftest* 8312 # SGI C++ compiler will create directory out/ii_files/ for 8313 # template instantiation 8314 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8315 $RM out/* && rmdir out 8316 cd .. 8317 $RM -r conftest 8318 $RM conftest* 8319 8320 fi 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8322 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8323 8324 8325 8326 8327 8328 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8331 if ${lt_cv_prog_compiler_c_o+:} false; then : 8332 $as_echo_n "(cached) " >&6 8333 else 8334 lt_cv_prog_compiler_c_o=no 8335 $RM -r conftest 2>/dev/null 8336 mkdir conftest 8337 cd conftest 8338 mkdir out 8339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8340 8341 lt_compiler_flag="-o out/conftest2.$ac_objext" 8342 # Insert the option either (1) after the last *FLAGS variable, or 8343 # (2) before a word containing "conftest.", or (3) at the end. 8344 # Note that $ac_compile itself does not contain backslashes and begins 8345 # with a dollar sign (not a hyphen), so the echo should work correctly. 8346 lt_compile=`echo "$ac_compile" | $SED \ 8347 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8349 -e 's:$: $lt_compiler_flag:'` 8350 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8351 (eval "$lt_compile" 2>out/conftest.err) 8352 ac_status=$? 8353 cat out/conftest.err >&5 8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8355 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8356 then 8357 # The compiler can only warn and ignore the option if not recognized 8358 # So say no if there are warnings 8359 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8360 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8361 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8362 lt_cv_prog_compiler_c_o=yes 8363 fi 8364 fi 8365 chmod u+w . 2>&5 8366 $RM conftest* 8367 # SGI C++ compiler will create directory out/ii_files/ for 8368 # template instantiation 8369 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8370 $RM out/* && rmdir out 8371 cd .. 8372 $RM -r conftest 8373 $RM conftest* 8374 8375 fi 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8377 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8378 8379 8380 8381 8382 hard_links="nottested" 8383 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8384 # do not overwrite the value of need_locks provided by the user 8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8386 $as_echo_n "checking if we can lock with hard links... " >&6; } 8387 hard_links=yes 8388 $RM conftest* 8389 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8390 touch conftest.a 8391 ln conftest.a conftest.b 2>&5 || hard_links=no 8392 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8394 $as_echo "$hard_links" >&6; } 8395 if test "$hard_links" = no; then 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8397 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8398 need_locks=warn 8399 fi 8400 else 8401 need_locks=no 8402 fi 8403 8404 8405 8406 8407 8408 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8410 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8411 8412 runpath_var= 8413 allow_undefined_flag= 8414 always_export_symbols=no 8415 archive_cmds= 8416 archive_expsym_cmds= 8417 compiler_needs_object=no 8418 enable_shared_with_static_runtimes=no 8419 export_dynamic_flag_spec= 8420 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8421 hardcode_automatic=no 8422 hardcode_direct=no 8423 hardcode_direct_absolute=no 8424 hardcode_libdir_flag_spec= 8425 hardcode_libdir_separator= 8426 hardcode_minus_L=no 8427 hardcode_shlibpath_var=unsupported 8428 inherit_rpath=no 8429 link_all_deplibs=unknown 8430 module_cmds= 8431 module_expsym_cmds= 8432 old_archive_from_new_cmds= 8433 old_archive_from_expsyms_cmds= 8434 thread_safe_flag_spec= 8435 whole_archive_flag_spec= 8436 # include_expsyms should be a list of space-separated symbols to be *always* 8437 # included in the symbol list 8438 include_expsyms= 8439 # exclude_expsyms can be an extended regexp of symbols to exclude 8440 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8441 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8442 # as well as any symbol that contains `d'. 8443 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8444 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8445 # platforms (ab)use it in PIC code, but their linkers get confused if 8446 # the symbol is explicitly referenced. Since portable code cannot 8447 # rely on this symbol name, it's probably fine to never include it in 8448 # preloaded symbol tables. 8449 # Exclude shared library initialization/finalization symbols. 8450 extract_expsyms_cmds= 8451 8452 case $host_os in 8453 cygwin* | mingw* | pw32* | cegcc*) 8454 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8455 # When not using gcc, we currently assume that we are using 8456 # Microsoft Visual C++. 8457 if test "$GCC" != yes; then 8458 with_gnu_ld=no 8459 fi 8460 ;; 8461 interix*) 8462 # we just hope/assume this is gcc and not c89 (= MSVC++) 8463 with_gnu_ld=yes 8464 ;; 8465 openbsd*) 8466 with_gnu_ld=no 8467 ;; 8468 esac 8469 8470 ld_shlibs=yes 8471 8472 # On some targets, GNU ld is compatible enough with the native linker 8473 # that we're better off using the native interface for both. 8474 lt_use_gnu_ld_interface=no 8475 if test "$with_gnu_ld" = yes; then 8476 case $host_os in 8477 aix*) 8478 # The AIX port of GNU ld has always aspired to compatibility 8479 # with the native linker. However, as the warning in the GNU ld 8480 # block says, versions before 2.19.5* couldn't really create working 8481 # shared libraries, regardless of the interface used. 8482 case `$LD -v 2>&1` in 8483 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8484 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8485 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8486 *) 8487 lt_use_gnu_ld_interface=yes 8488 ;; 8489 esac 8490 ;; 8491 *) 8492 lt_use_gnu_ld_interface=yes 8493 ;; 8494 esac 8495 fi 8496 8497 if test "$lt_use_gnu_ld_interface" = yes; then 8498 # If archive_cmds runs LD, not CC, wlarc should be empty 8499 wlarc='${wl}' 8500 8501 # Set some defaults for GNU ld with shared library support. These 8502 # are reset later if shared libraries are not supported. Putting them 8503 # here allows them to be overridden if necessary. 8504 runpath_var=LD_RUN_PATH 8505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8506 export_dynamic_flag_spec='${wl}--export-dynamic' 8507 # ancient GNU ld didn't support --whole-archive et. al. 8508 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8509 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8510 else 8511 whole_archive_flag_spec= 8512 fi 8513 supports_anon_versioning=no 8514 case `$LD -v 2>&1` in 8515 *GNU\ gold*) supports_anon_versioning=yes ;; 8516 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8517 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8518 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8519 *\ 2.11.*) ;; # other 2.11 versions 8520 *) supports_anon_versioning=yes ;; 8521 esac 8522 8523 # See if GNU ld supports shared libraries. 8524 case $host_os in 8525 aix[3-9]*) 8526 # On AIX/PPC, the GNU linker is very broken 8527 if test "$host_cpu" != ia64; then 8528 ld_shlibs=no 8529 cat <<_LT_EOF 1>&2 8530 8531 *** Warning: the GNU linker, at least up to release 2.19, is reported 8532 *** to be unable to reliably create shared libraries on AIX. 8533 *** Therefore, libtool is disabling shared libraries support. If you 8534 *** really care for shared libraries, you may want to install binutils 8535 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8536 *** You will then need to restart the configuration process. 8537 8538 _LT_EOF 8539 fi 8540 ;; 8541 8542 amigaos*) 8543 case $host_cpu in 8544 powerpc) 8545 # see comment about AmigaOS4 .so support 8546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8547 archive_expsym_cmds='' 8548 ;; 8549 m68k) 8550 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)' 8551 hardcode_libdir_flag_spec='-L$libdir' 8552 hardcode_minus_L=yes 8553 ;; 8554 esac 8555 ;; 8556 8557 beos*) 8558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8559 allow_undefined_flag=unsupported 8560 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8561 # support --undefined. This deserves some investigation. FIXME 8562 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8563 else 8564 ld_shlibs=no 8565 fi 8566 ;; 8567 8568 cygwin* | mingw* | pw32* | cegcc*) 8569 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8570 # as there is no search path for DLLs. 8571 hardcode_libdir_flag_spec='-L$libdir' 8572 export_dynamic_flag_spec='${wl}--export-all-symbols' 8573 allow_undefined_flag=unsupported 8574 always_export_symbols=no 8575 enable_shared_with_static_runtimes=yes 8576 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' 8577 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8578 8579 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8581 # If the export-symbols file already is a .def file (1st line 8582 # is EXPORTS), use it as is; otherwise, prepend... 8583 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8584 cp $export_symbols $output_objdir/$soname.def; 8585 else 8586 echo EXPORTS > $output_objdir/$soname.def; 8587 cat $export_symbols >> $output_objdir/$soname.def; 8588 fi~ 8589 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8590 else 8591 ld_shlibs=no 8592 fi 8593 ;; 8594 8595 haiku*) 8596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8597 link_all_deplibs=yes 8598 ;; 8599 8600 interix[3-9]*) 8601 hardcode_direct=no 8602 hardcode_shlibpath_var=no 8603 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8604 export_dynamic_flag_spec='${wl}-E' 8605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8606 # Instead, shared libraries are loaded at an image base (0x10000000 by 8607 # default) and relocated if they conflict, which is a slow very memory 8608 # consuming and fragmenting process. To avoid this, we pick a random, 8609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8610 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8612 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' 8613 ;; 8614 8615 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8616 tmp_diet=no 8617 if test "$host_os" = linux-dietlibc; then 8618 case $cc_basename in 8619 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8620 esac 8621 fi 8622 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8623 && test "$tmp_diet" = no 8624 then 8625 tmp_addflag=' $pic_flag' 8626 tmp_sharedflag='-shared' 8627 case $cc_basename,$host_cpu in 8628 pgcc*) # Portland Group C compiler 8629 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new