github.com/prattmic/llgo-embedded@v0.0.0-20150820070356-41cfecea0e1e/third_party/gofrontend/libffi/configure (about) 1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.64 for libffi 3.99999. 4 # 5 # Report bugs to <http://github.com/atgreen/libffi/issues>. 6 # 7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9 # Foundation, Inc. 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95 for as_dir in $PATH 96 do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101 IFS=$as_save_IFS 102 103 ;; 104 esac 105 # We did not find ourselves, most probably we were run as `sh COMMAND' 106 # in which case we are not to be found in the path. 107 if test "x$as_myself" = x; then 108 as_myself=$0 109 fi 110 if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113 fi 114 115 # Unset variables that we do not need and which cause bugs (e.g. in 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117 # suppresses any "Segmentation fault" message there. '((' could 118 # trigger a bug in pdksh 5.2.14. 119 for as_var in BASH_ENV ENV MAIL MAILPATH 120 do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122 done 123 PS1='$ ' 124 PS2='> ' 125 PS4='+ ' 126 127 # NLS nuisances. 128 LC_ALL=C 129 export LC_ALL 130 LANGUAGE=C 131 export LANGUAGE 132 133 # CDPATH. 134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136 if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144 else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150 esac 151 fi 152 " 153 as_required="as_fn_return () { (exit \$1); } 154 as_fn_success () { as_fn_return 0; } 155 as_fn_failure () { as_fn_return 1; } 156 as_fn_ret_success () { return 0; } 157 as_fn_ret_failure () { return 1; } 158 159 exitcode=0 160 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166 else 167 exitcode=1; echo positional parameters were not saved. 168 fi 169 test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174 175 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 176 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 179 PATH=/empty FPATH=/empty; export PATH FPATH 180 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 181 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 182 test \$(( 1 + 1 )) = 2 || exit 1" 183 if (eval "$as_required") 2>/dev/null; then : 184 as_have_required=yes 185 else 186 as_have_required=no 187 fi 188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 189 190 else 191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 192 as_found=false 193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 194 do 195 IFS=$as_save_IFS 196 test -z "$as_dir" && as_dir=. 197 as_found=: 198 case $as_dir in #( 199 /*) 200 for as_base in sh bash ksh sh5; do 201 # Try only shells that exist, to save several forks. 202 as_shell=$as_dir/$as_base 203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 CONFIG_SHELL=$as_shell as_have_required=yes 206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 break 2 208 fi 209 fi 210 done;; 211 esac 212 as_found=false 213 done 214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 216 CONFIG_SHELL=$SHELL as_have_required=yes 217 fi; } 218 IFS=$as_save_IFS 219 220 221 if test "x$CONFIG_SHELL" != x; then : 222 # We cannot yet assume a decent shell, so we have to provide a 223 # neutralization value for shells without unset; and this also 224 # works around shells that cannot unset nonexistent variables. 225 BASH_ENV=/dev/null 226 ENV=/dev/null 227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 228 export CONFIG_SHELL 229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 230 fi 231 232 if test x$as_have_required = xno; then : 233 $as_echo "$0: This script requires a shell more modern than all" 234 $as_echo "$0: the shells that I found on your system." 235 if test x${ZSH_VERSION+set} = xset ; then 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 238 else 239 $as_echo "$0: Please tell bug-autoconf@gnu.org and 240 $0: http://github.com/atgreen/libffi/issues about your 241 $0: system, including any error possibly output before this 242 $0: message. Then install a modern shell, or manually run 243 $0: the script under such a shell if you do have one." 244 fi 245 exit 1 246 fi 247 fi 248 fi 249 SHELL=${CONFIG_SHELL-/bin/sh} 250 export SHELL 251 # Unset more variables known to interfere with behavior of common tools. 252 CLICOLOR_FORCE= GREP_OPTIONS= 253 unset CLICOLOR_FORCE GREP_OPTIONS 254 255 ## --------------------- ## 256 ## M4sh Shell Functions. ## 257 ## --------------------- ## 258 # as_fn_unset VAR 259 # --------------- 260 # Portably unset VAR. 261 as_fn_unset () 262 { 263 { eval $1=; unset $1;} 264 } 265 as_unset=as_fn_unset 266 267 # as_fn_set_status STATUS 268 # ----------------------- 269 # Set $? to STATUS, without forking. 270 as_fn_set_status () 271 { 272 return $1 273 } # as_fn_set_status 274 275 # as_fn_exit STATUS 276 # ----------------- 277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 278 as_fn_exit () 279 { 280 set +e 281 as_fn_set_status $1 282 exit $1 283 } # as_fn_exit 284 285 # as_fn_mkdir_p 286 # ------------- 287 # Create "$as_dir" as a directory, including parents if necessary. 288 as_fn_mkdir_p () 289 { 290 291 case $as_dir in #( 292 -*) as_dir=./$as_dir;; 293 esac 294 test -d "$as_dir" || eval $as_mkdir_p || { 295 as_dirs= 296 while :; do 297 case $as_dir in #( 298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 299 *) as_qdir=$as_dir;; 300 esac 301 as_dirs="'$as_qdir' $as_dirs" 302 as_dir=`$as_dirname -- "$as_dir" || 303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 304 X"$as_dir" : 'X\(//\)[^/]' \| \ 305 X"$as_dir" : 'X\(//\)$' \| \ 306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 307 $as_echo X"$as_dir" | 308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 309 s//\1/ 310 q 311 } 312 /^X\(\/\/\)[^/].*/{ 313 s//\1/ 314 q 315 } 316 /^X\(\/\/\)$/{ 317 s//\1/ 318 q 319 } 320 /^X\(\/\).*/{ 321 s//\1/ 322 q 323 } 324 s/.*/./; q'` 325 test -d "$as_dir" && break 326 done 327 test -z "$as_dirs" || eval "mkdir $as_dirs" 328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 329 330 331 } # as_fn_mkdir_p 332 # as_fn_append VAR VALUE 333 # ---------------------- 334 # Append the text in VALUE to the end of the definition contained in VAR. Take 335 # advantage of any shell optimizations that allow amortized linear growth over 336 # repeated appends, instead of the typical quadratic growth present in naive 337 # implementations. 338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 339 eval 'as_fn_append () 340 { 341 eval $1+=\$2 342 }' 343 else 344 as_fn_append () 345 { 346 eval $1=\$$1\$2 347 } 348 fi # as_fn_append 349 350 # as_fn_arith ARG... 351 # ------------------ 352 # Perform arithmetic evaluation on the ARGs, and store the result in the 353 # global $as_val. Take advantage of shells that can avoid forks. The arguments 354 # must be portable across $(()) and expr. 355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 356 eval 'as_fn_arith () 357 { 358 as_val=$(( $* )) 359 }' 360 else 361 as_fn_arith () 362 { 363 as_val=`expr "$@" || test $? -eq 1` 364 } 365 fi # as_fn_arith 366 367 368 # as_fn_error ERROR [LINENO LOG_FD] 369 # --------------------------------- 370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 372 # script with status $?, using 1 if that was 0. 373 as_fn_error () 374 { 375 as_status=$?; test $as_status -eq 0 && as_status=1 376 if test "$3"; then 377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 379 fi 380 $as_echo "$as_me: error: $1" >&2 381 as_fn_exit $as_status 382 } # as_fn_error 383 384 if expr a : '\(a\)' >/dev/null 2>&1 && 385 test "X`expr 00001 : '.*\(...\)'`" = X001; then 386 as_expr=expr 387 else 388 as_expr=false 389 fi 390 391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 392 as_basename=basename 393 else 394 as_basename=false 395 fi 396 397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 398 as_dirname=dirname 399 else 400 as_dirname=false 401 fi 402 403 as_me=`$as_basename -- "$0" || 404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 405 X"$0" : 'X\(//\)$' \| \ 406 X"$0" : 'X\(/\)' \| . 2>/dev/null || 407 $as_echo X/"$0" | 408 sed '/^.*\/\([^/][^/]*\)\/*$/{ 409 s//\1/ 410 q 411 } 412 /^X\/\(\/\/\)$/{ 413 s//\1/ 414 q 415 } 416 /^X\/\(\/\).*/{ 417 s//\1/ 418 q 419 } 420 s/.*/./; q'` 421 422 # Avoid depending upon Character Ranges. 423 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 426 as_cr_digits='0123456789' 427 as_cr_alnum=$as_cr_Letters$as_cr_digits 428 429 430 as_lineno_1=$LINENO as_lineno_1a=$LINENO 431 as_lineno_2=$LINENO as_lineno_2a=$LINENO 432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 435 sed -n ' 436 p 437 /[$]LINENO/= 438 ' <$as_myself | 439 sed ' 440 s/[$]LINENO.*/&-/ 441 t lineno 442 b 443 :lineno 444 N 445 :loop 446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 447 t loop 448 s/-\n.*// 449 ' >$as_me.lineno && 450 chmod +x "$as_me.lineno" || 451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 452 453 # Don't try to exec as it changes $[0], causing all sort of problems 454 # (the dirname of $[0] is not the place where we might find the 455 # original and so on. Autoconf is especially sensitive to this). 456 . "./$as_me.lineno" 457 # Exit status is that of the last command. 458 exit 459 } 460 461 ECHO_C= ECHO_N= ECHO_T= 462 case `echo -n x` in #((((( 463 -n*) 464 case `echo 'xy\c'` in 465 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 466 xy) ECHO_C='\c';; 467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 468 ECHO_T=' ';; 469 esac;; 470 *) 471 ECHO_N='-n';; 472 esac 473 474 rm -f conf$$ conf$$.exe conf$$.file 475 if test -d conf$$.dir; then 476 rm -f conf$$.dir/conf$$.file 477 else 478 rm -f conf$$.dir 479 mkdir conf$$.dir 2>/dev/null 480 fi 481 if (echo >conf$$.file) 2>/dev/null; then 482 if ln -s conf$$.file conf$$ 2>/dev/null; then 483 as_ln_s='ln -s' 484 # ... but there are two gotchas: 485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 487 # In both cases, we have to default to `cp -p'. 488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 489 as_ln_s='cp -p' 490 elif ln conf$$.file conf$$ 2>/dev/null; then 491 as_ln_s=ln 492 else 493 as_ln_s='cp -p' 494 fi 495 else 496 as_ln_s='cp -p' 497 fi 498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 499 rmdir conf$$.dir 2>/dev/null 500 501 if mkdir -p . 2>/dev/null; then 502 as_mkdir_p='mkdir -p "$as_dir"' 503 else 504 test -d ./-p && rmdir ./-p 505 as_mkdir_p=false 506 fi 507 508 if test -x / >/dev/null 2>&1; then 509 as_test_x='test -x' 510 else 511 if ls -dL / >/dev/null 2>&1; then 512 as_ls_L_option=L 513 else 514 as_ls_L_option= 515 fi 516 as_test_x=' 517 eval sh -c '\'' 518 if test -d "$1"; then 519 test -d "$1/."; 520 else 521 case $1 in #( 522 -*)set "./$1";; 523 esac; 524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 525 ???[sx]*):;;*)false;;esac;fi 526 '\'' sh 527 ' 528 fi 529 as_executable_p=$as_test_x 530 531 # Sed expression to map a string onto a valid CPP name. 532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 533 534 # Sed expression to map a string onto a valid variable name. 535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 536 537 SHELL=${CONFIG_SHELL-/bin/sh} 538 539 540 exec 7<&0 </dev/null 6>&1 541 542 # Name of the host. 543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 544 # so uname gets run too. 545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 546 547 # 548 # Initializations. 549 # 550 ac_default_prefix=/usr/local 551 ac_clean_files= 552 ac_config_libobj_dir=. 553 LIBOBJS= 554 cross_compiling=no 555 subdirs= 556 MFLAGS= 557 MAKEFLAGS= 558 559 # Identity of this package. 560 PACKAGE_NAME='libffi' 561 PACKAGE_TARNAME='libffi' 562 PACKAGE_VERSION='3.99999' 563 PACKAGE_STRING='libffi 3.99999' 564 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues' 565 PACKAGE_URL='' 566 567 # Factoring default headers for most tests. 568 ac_includes_default="\ 569 #include <stdio.h> 570 #ifdef HAVE_SYS_TYPES_H 571 # include <sys/types.h> 572 #endif 573 #ifdef HAVE_SYS_STAT_H 574 # include <sys/stat.h> 575 #endif 576 #ifdef STDC_HEADERS 577 # include <stdlib.h> 578 # include <stddef.h> 579 #else 580 # ifdef HAVE_STDLIB_H 581 # include <stdlib.h> 582 # endif 583 #endif 584 #ifdef HAVE_STRING_H 585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 586 # include <memory.h> 587 # endif 588 # include <string.h> 589 #endif 590 #ifdef HAVE_STRINGS_H 591 # include <strings.h> 592 #endif 593 #ifdef HAVE_INTTYPES_H 594 # include <inttypes.h> 595 #endif 596 #ifdef HAVE_STDINT_H 597 # include <stdint.h> 598 #endif 599 #ifdef HAVE_UNISTD_H 600 # include <unistd.h> 601 #endif" 602 603 ac_subst_vars='am__EXEEXT_FALSE 604 am__EXEEXT_TRUE 605 LTLIBOBJS 606 LIBOBJS 607 toolexeclibdir 608 toolexecdir 609 FFI_DEBUG_FALSE 610 FFI_DEBUG_TRUE 611 TARGET_OBJ 612 TARGETDIR 613 TARGET 614 FFI_EXEC_TRAMPOLINE_TABLE 615 FFI_EXEC_TRAMPOLINE_TABLE_FALSE 616 FFI_EXEC_TRAMPOLINE_TABLE_TRUE 617 HAVE_LONG_DOUBLE_VARIANT 618 HAVE_LONG_DOUBLE 619 ALLOCA 620 AM_LTLDFLAGS 621 AM_RUNTESTFLAGS 622 TESTSUBDIR_FALSE 623 TESTSUBDIR_TRUE 624 MAINT 625 MAINTAINER_MODE_FALSE 626 MAINTAINER_MODE_TRUE 627 CXXCPP 628 CPP 629 OTOOL64 630 OTOOL 631 LIPO 632 NMEDIT 633 DSYMUTIL 634 RANLIB 635 AR 636 OBJDUMP 637 LN_S 638 NM 639 ac_ct_DUMPBIN 640 DUMPBIN 641 LD 642 FGREP 643 EGREP 644 GREP 645 SED 646 LIBTOOL 647 am__fastdepCCAS_FALSE 648 am__fastdepCCAS_TRUE 649 CCASDEPMODE 650 CCASFLAGS 651 CCAS 652 am__fastdepCXX_FALSE 653 am__fastdepCXX_TRUE 654 CXXDEPMODE 655 ac_ct_CXX 656 CXXFLAGS 657 CXX 658 am__fastdepCC_FALSE 659 am__fastdepCC_TRUE 660 CCDEPMODE 661 AMDEPBACKSLASH 662 AMDEP_FALSE 663 AMDEP_TRUE 664 am__quote 665 am__include 666 DEPDIR 667 OBJEXT 668 EXEEXT 669 ac_ct_CC 670 CPPFLAGS 671 LDFLAGS 672 CFLAGS 673 CC 674 GENINSRC_FALSE 675 GENINSRC_TRUE 676 BUILD_INFO_FALSE 677 BUILD_INFO_TRUE 678 am__untar 679 am__tar 680 AMTAR 681 am__leading_dot 682 SET_MAKE 683 AWK 684 mkdir_p 685 MKDIR_P 686 INSTALL_STRIP_PROGRAM 687 STRIP 688 install_sh 689 MAKEINFO 690 AUTOHEADER 691 AUTOMAKE 692 AUTOCONF 693 ACLOCAL 694 VERSION 695 PACKAGE 696 CYGPATH_W 697 am__isrc 698 INSTALL_DATA 699 INSTALL_SCRIPT 700 INSTALL_PROGRAM 701 target_os 702 target_vendor 703 target_cpu 704 target 705 host_os 706 host_vendor 707 host_cpu 708 host 709 build_os 710 build_vendor 711 build_cpu 712 build 713 multi_basedir 714 target_alias 715 host_alias 716 build_alias 717 LIBS 718 ECHO_T 719 ECHO_N 720 ECHO_C 721 DEFS 722 mandir 723 localedir 724 libdir 725 psdir 726 pdfdir 727 dvidir 728 htmldir 729 infodir 730 docdir 731 oldincludedir 732 includedir 733 localstatedir 734 sharedstatedir 735 sysconfdir 736 datadir 737 datarootdir 738 libexecdir 739 sbindir 740 bindir 741 program_transform_name 742 prefix 743 exec_prefix 744 PACKAGE_URL 745 PACKAGE_BUGREPORT 746 PACKAGE_STRING 747 PACKAGE_VERSION 748 PACKAGE_TARNAME 749 PACKAGE_NAME 750 PATH_SEPARATOR 751 SHELL' 752 ac_subst_files='' 753 ac_user_opts=' 754 enable_option_checking 755 enable_multilib 756 enable_generated_files_in_srcdir 757 enable_dependency_tracking 758 enable_shared 759 enable_static 760 with_pic 761 enable_fast_install 762 with_gnu_ld 763 enable_libtool_lock 764 enable_maintainer_mode 765 enable_pax_emutramp 766 enable_debug 767 enable_structs 768 enable_raw_api 769 enable_purify_safety 770 ' 771 ac_precious_vars='build_alias 772 host_alias 773 target_alias 774 CCAS 775 CCASFLAGS 776 CPP 777 CPPFLAGS 778 CXXCPP' 779 780 781 # Initialize some variables set by options. 782 ac_init_help= 783 ac_init_version=false 784 ac_unrecognized_opts= 785 ac_unrecognized_sep= 786 # The variables have the same names as the options, with 787 # dashes changed to underlines. 788 cache_file=/dev/null 789 exec_prefix=NONE 790 no_create= 791 no_recursion= 792 prefix=NONE 793 program_prefix=NONE 794 program_suffix=NONE 795 program_transform_name=s,x,x, 796 silent= 797 site= 798 srcdir= 799 verbose= 800 x_includes=NONE 801 x_libraries=NONE 802 803 # Installation directory options. 804 # These are left unexpanded so users can "make install exec_prefix=/foo" 805 # and all the variables that are supposed to be based on exec_prefix 806 # by default will actually change. 807 # Use braces instead of parens because sh, perl, etc. also accept them. 808 # (The list follows the same order as the GNU Coding Standards.) 809 bindir='${exec_prefix}/bin' 810 sbindir='${exec_prefix}/sbin' 811 libexecdir='${exec_prefix}/libexec' 812 datarootdir='${prefix}/share' 813 datadir='${datarootdir}' 814 sysconfdir='${prefix}/etc' 815 sharedstatedir='${prefix}/com' 816 localstatedir='${prefix}/var' 817 includedir='${prefix}/include' 818 oldincludedir='/usr/include' 819 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 820 infodir='${datarootdir}/info' 821 htmldir='${docdir}' 822 dvidir='${docdir}' 823 pdfdir='${docdir}' 824 psdir='${docdir}' 825 libdir='${exec_prefix}/lib' 826 localedir='${datarootdir}/locale' 827 mandir='${datarootdir}/man' 828 829 ac_prev= 830 ac_dashdash= 831 for ac_option 832 do 833 # If the previous option needs an argument, assign it. 834 if test -n "$ac_prev"; then 835 eval $ac_prev=\$ac_option 836 ac_prev= 837 continue 838 fi 839 840 case $ac_option in 841 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892 "enable_$ac_useropt" 893 "*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918 "enable_$ac_useropt" 919 "*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1069 ac_prev=sbindir ;; 1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1071 | --sbi=* | --sb=*) 1072 sbindir=$ac_optarg ;; 1073 1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1076 | --sharedst | --shareds | --shared | --share | --shar \ 1077 | --sha | --sh) 1078 ac_prev=sharedstatedir ;; 1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1082 | --sha=* | --sh=*) 1083 sharedstatedir=$ac_optarg ;; 1084 1085 -site | --site | --sit) 1086 ac_prev=site ;; 1087 -site=* | --site=* | --sit=*) 1088 site=$ac_optarg ;; 1089 1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1091 ac_prev=srcdir ;; 1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1093 srcdir=$ac_optarg ;; 1094 1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1096 | --syscon | --sysco | --sysc | --sys | --sy) 1097 ac_prev=sysconfdir ;; 1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1100 sysconfdir=$ac_optarg ;; 1101 1102 -target | --target | --targe | --targ | --tar | --ta | --t) 1103 ac_prev=target_alias ;; 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1105 target_alias=$ac_optarg ;; 1106 1107 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1108 verbose=yes ;; 1109 1110 -version | --version | --versio | --versi | --vers | -V) 1111 ac_init_version=: ;; 1112 1113 -with-* | --with-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122 "with_$ac_useropt" 1123 "*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138 "with_$ac_useropt" 1139 "*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=no ;; 1144 1145 --x) 1146 # Obsolete; use --with-x. 1147 with_x=yes ;; 1148 1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1150 | --x-incl | --x-inc | --x-in | --x-i) 1151 ac_prev=x_includes ;; 1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1154 x_includes=$ac_optarg ;; 1155 1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1158 ac_prev=x_libraries ;; 1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1161 x_libraries=$ac_optarg ;; 1162 1163 -*) as_fn_error "unrecognized option: \`$ac_option' 1164 Try \`$0 --help' for more information." 1165 ;; 1166 1167 *=*) 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 # Reject names that are not valid shell variable names. 1170 case $ac_envvar in #( 1171 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1172 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1173 esac 1174 eval $ac_envvar=\$ac_optarg 1175 export $ac_envvar ;; 1176 1177 *) 1178 # FIXME: should be removed in autoconf 3.0. 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1183 ;; 1184 1185 esac 1186 done 1187 1188 if test -n "$ac_prev"; then 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1190 as_fn_error "missing argument to $ac_option" 1191 fi 1192 1193 if test -n "$ac_unrecognized_opts"; then 1194 case $enable_option_checking in 1195 no) ;; 1196 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199 fi 1200 1201 # Check all directory arguments for consistency. 1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206 do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1220 done 1221 1222 # There might be people who depend on the old broken behavior: `$host' 1223 # used to hold the argument of --host etc. 1224 # FIXME: To remove some day. 1225 build=$build_alias 1226 host=$host_alias 1227 target=$target_alias 1228 1229 # FIXME: To remove some day. 1230 if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1234 If a cross compiler is detected then cross compile mode will be used." >&2 1235 elif test "x$build_alias" != "x$host_alias"; then 1236 cross_compiling=yes 1237 fi 1238 fi 1239 1240 ac_tool_prefix= 1241 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1242 1243 test "$silent" = yes && exec 6>/dev/null 1244 1245 1246 ac_pwd=`pwd` && test -n "$ac_pwd" && 1247 ac_ls_di=`ls -di .` && 1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1249 as_fn_error "working directory cannot be determined" 1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1251 as_fn_error "pwd does not report name of working directory" 1252 1253 1254 # Find the source files, if location was not specified. 1255 if test -z "$srcdir"; then 1256 ac_srcdir_defaulted=yes 1257 # Try the directory containing this script, then the parent directory. 1258 ac_confdir=`$as_dirname -- "$as_myself" || 1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1260 X"$as_myself" : 'X\(//\)[^/]' \| \ 1261 X"$as_myself" : 'X\(//\)$' \| \ 1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1263 $as_echo X"$as_myself" | 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)[^/].*/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\).*/{ 1277 s//\1/ 1278 q 1279 } 1280 s/.*/./; q'` 1281 srcdir=$ac_confdir 1282 if test ! -r "$srcdir/$ac_unique_file"; then 1283 srcdir=.. 1284 fi 1285 else 1286 ac_srcdir_defaulted=no 1287 fi 1288 if test ! -r "$srcdir/$ac_unique_file"; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1290 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1291 fi 1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1293 ac_abs_confdir=`( 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1295 pwd)` 1296 # When building in place, set srcdir=. 1297 if test "$ac_abs_confdir" = "$ac_pwd"; then 1298 srcdir=. 1299 fi 1300 # Remove unnecessary trailing slashes from srcdir. 1301 # Double slashes in file names in object file debugging info 1302 # mess up M-x gdb in Emacs. 1303 case $srcdir in 1304 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1305 esac 1306 for ac_var in $ac_precious_vars; do 1307 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_env_${ac_var}_value=\$${ac_var} 1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1311 done 1312 1313 # 1314 # Report the --help message. 1315 # 1316 if test "$ac_init_help" = "long"; then 1317 # Omit some internal or obsolete options to make the list less imposing. 1318 # This message is too long to be a string in the A/UX 3.1 sh. 1319 cat <<_ACEOF 1320 \`configure' configures libffi 3.99999 to adapt to many kinds of systems. 1321 1322 Usage: $0 [OPTION]... [VAR=VALUE]... 1323 1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1325 VAR=VALUE. See below for descriptions of some of the useful variables. 1326 1327 Defaults for the options are specified in brackets. 1328 1329 Configuration: 1330 -h, --help display this help and exit 1331 --help=short display options specific to this package 1332 --help=recursive display the short help of all the included packages 1333 -V, --version display version information and exit 1334 -q, --quiet, --silent do not print \`checking...' messages 1335 --cache-file=FILE cache test results in FILE [disabled] 1336 -C, --config-cache alias for \`--cache-file=config.cache' 1337 -n, --no-create do not create output files 1338 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1339 1340 Installation directories: 1341 --prefix=PREFIX install architecture-independent files in PREFIX 1342 [$ac_default_prefix] 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1344 [PREFIX] 1345 1346 By default, \`make install' will install all the files in 1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1349 for instance \`--prefix=\$HOME'. 1350 1351 For better control, use the options below. 1352 1353 Fine tuning of the installation directories: 1354 --bindir=DIR user executables [EPREFIX/bin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin] 1356 --libexecdir=DIR program executables [EPREFIX/libexec] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1360 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --includedir=DIR C header files [PREFIX/include] 1362 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1365 --infodir=DIR info documentation [DATAROOTDIR/info] 1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1367 --mandir=DIR man documentation [DATAROOTDIR/man] 1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi] 1369 --htmldir=DIR html documentation [DOCDIR] 1370 --dvidir=DIR dvi documentation [DOCDIR] 1371 --pdfdir=DIR pdf documentation [DOCDIR] 1372 --psdir=DIR ps documentation [DOCDIR] 1373 _ACEOF 1374 1375 cat <<\_ACEOF 1376 1377 Program names: 1378 --program-prefix=PREFIX prepend PREFIX to installed program names 1379 --program-suffix=SUFFIX append SUFFIX to installed program names 1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1381 1382 System types: 1383 --build=BUILD configure for building on BUILD [guessed] 1384 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1385 --target=TARGET configure for building compilers for TARGET [HOST] 1386 _ACEOF 1387 fi 1388 1389 if test -n "$ac_init_help"; then 1390 case $ac_init_help in 1391 short | recursive ) echo "Configuration of libffi 3.99999:";; 1392 esac 1393 cat <<\_ACEOF 1394 1395 Optional Features: 1396 --disable-option-checking ignore unrecognized --enable/--with options 1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1399 --enable-multilib build many library versions (default) 1400 --enable-generated-files-in-srcdir 1401 put copies of generated files in source dir intended 1402 for creating source tarballs for users without 1403 texinfo bison or flex 1404 --disable-dependency-tracking speeds up one-time build 1405 --enable-dependency-tracking do not reject slow dependency extractors 1406 --enable-shared[=PKGS] build shared libraries [default=yes] 1407 --enable-static[=PKGS] build static libraries [default=yes] 1408 --enable-fast-install[=PKGS] 1409 optimize for fast installation [default=yes] 1410 --disable-libtool-lock avoid locking (might break parallel builds) 1411 --enable-maintainer-mode enable make rules and dependencies not useful 1412 (and sometimes confusing) to the casual installer 1413 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC 1414 --enable-debug debugging mode 1415 --disable-structs omit code for struct support 1416 --disable-raw-api make the raw api unavailable 1417 --enable-purify-safety purify-safe mode 1418 1419 Optional Packages: 1420 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1421 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1422 --with-pic try to use only PIC/non-PIC objects [default=use 1423 both] 1424 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1425 1426 Some influential environment variables: 1427 CC C compiler command 1428 CFLAGS C compiler flags 1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1430 nonstandard directory <lib dir> 1431 LIBS libraries to pass to the linker, e.g. -l<library> 1432 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1433 you have headers in a nonstandard directory <include dir> 1434 CXX C++ compiler command 1435 CXXFLAGS C++ compiler flags 1436 CCAS assembler compiler command (defaults to CC) 1437 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1438 CPP C preprocessor 1439 CXXCPP C++ preprocessor 1440 1441 Use these variables to override the choices made by `configure' or to help 1442 it to find libraries and programs with nonstandard names/locations. 1443 1444 Report bugs to <http://github.com/atgreen/libffi/issues>. 1445 _ACEOF 1446 ac_status=$? 1447 fi 1448 1449 if test "$ac_init_help" = "recursive"; then 1450 # If there are subdirs, report their specific --help. 1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1452 test -d "$ac_dir" || 1453 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1454 continue 1455 ac_builddir=. 1456 1457 case "$ac_dir" in 1458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1459 *) 1460 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1461 # A ".." for each directory in $ac_dir_suffix. 1462 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1463 case $ac_top_builddir_sub in 1464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1466 esac ;; 1467 esac 1468 ac_abs_top_builddir=$ac_pwd 1469 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1470 # for backward compatibility: 1471 ac_top_builddir=$ac_top_build_prefix 1472 1473 case $srcdir in 1474 .) # We are building in place. 1475 ac_srcdir=. 1476 ac_top_srcdir=$ac_top_builddir_sub 1477 ac_abs_top_srcdir=$ac_pwd ;; 1478 [\\/]* | ?:[\\/]* ) # Absolute name. 1479 ac_srcdir=$srcdir$ac_dir_suffix; 1480 ac_top_srcdir=$srcdir 1481 ac_abs_top_srcdir=$srcdir ;; 1482 *) # Relative name. 1483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1484 ac_top_srcdir=$ac_top_build_prefix$srcdir 1485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1486 esac 1487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1488 1489 cd "$ac_dir" || { ac_status=$?; continue; } 1490 # Check for guested configure. 1491 if test -f "$ac_srcdir/configure.gnu"; then 1492 echo && 1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1494 elif test -f "$ac_srcdir/configure"; then 1495 echo && 1496 $SHELL "$ac_srcdir/configure" --help=recursive 1497 else 1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1499 fi || ac_status=$? 1500 cd "$ac_pwd" || { ac_status=$?; break; } 1501 done 1502 fi 1503 1504 test -n "$ac_init_help" && exit $ac_status 1505 if $ac_init_version; then 1506 cat <<\_ACEOF 1507 libffi configure 3.99999 1508 generated by GNU Autoconf 2.64 1509 1510 Copyright (C) 2009 Free Software Foundation, Inc. 1511 This configure script is free software; the Free Software Foundation 1512 gives unlimited permission to copy, distribute and modify it. 1513 _ACEOF 1514 exit 1515 fi 1516 1517 ## ------------------------ ## 1518 ## Autoconf initialization. ## 1519 ## ------------------------ ## 1520 1521 # ac_fn_c_try_compile LINENO 1522 # -------------------------- 1523 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1524 ac_fn_c_try_compile () 1525 { 1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1527 rm -f conftest.$ac_objext 1528 if { { ac_try="$ac_compile" 1529 case "(($ac_try" in 1530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1531 *) ac_try_echo=$ac_try;; 1532 esac 1533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1534 $as_echo "$ac_try_echo"; } >&5 1535 (eval "$ac_compile") 2>conftest.err 1536 ac_status=$? 1537 if test -s conftest.err; then 1538 grep -v '^ *+' conftest.err >conftest.er1 1539 cat conftest.er1 >&5 1540 mv -f conftest.er1 conftest.err 1541 fi 1542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1543 test $ac_status = 0; } && { 1544 test -z "$ac_c_werror_flag" || 1545 test ! -s conftest.err 1546 } && test -s conftest.$ac_objext; then : 1547 ac_retval=0 1548 else 1549 $as_echo "$as_me: failed program was:" >&5 1550 sed 's/^/| /' conftest.$ac_ext >&5 1551 1552 ac_retval=1 1553 fi 1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1555 return $ac_retval 1556 1557 } # ac_fn_c_try_compile 1558 1559 # ac_fn_cxx_try_compile LINENO 1560 # ---------------------------- 1561 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1562 ac_fn_cxx_try_compile () 1563 { 1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1565 rm -f conftest.$ac_objext 1566 if { { ac_try="$ac_compile" 1567 case "(($ac_try" in 1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1569 *) ac_try_echo=$ac_try;; 1570 esac 1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1572 $as_echo "$ac_try_echo"; } >&5 1573 (eval "$ac_compile") 2>conftest.err 1574 ac_status=$? 1575 if test -s conftest.err; then 1576 grep -v '^ *+' conftest.err >conftest.er1 1577 cat conftest.er1 >&5 1578 mv -f conftest.er1 conftest.err 1579 fi 1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1581 test $ac_status = 0; } && { 1582 test -z "$ac_cxx_werror_flag" || 1583 test ! -s conftest.err 1584 } && test -s conftest.$ac_objext; then : 1585 ac_retval=0 1586 else 1587 $as_echo "$as_me: failed program was:" >&5 1588 sed 's/^/| /' conftest.$ac_ext >&5 1589 1590 ac_retval=1 1591 fi 1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1593 return $ac_retval 1594 1595 } # ac_fn_cxx_try_compile 1596 1597 # ac_fn_c_try_link LINENO 1598 # ----------------------- 1599 # Try to link conftest.$ac_ext, and return whether this succeeded. 1600 ac_fn_c_try_link () 1601 { 1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1603 rm -f conftest.$ac_objext conftest$ac_exeext 1604 if { { ac_try="$ac_link" 1605 case "(($ac_try" in 1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1607 *) ac_try_echo=$ac_try;; 1608 esac 1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1610 $as_echo "$ac_try_echo"; } >&5 1611 (eval "$ac_link") 2>conftest.err 1612 ac_status=$? 1613 if test -s conftest.err; then 1614 grep -v '^ *+' conftest.err >conftest.er1 1615 cat conftest.er1 >&5 1616 mv -f conftest.er1 conftest.err 1617 fi 1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1619 test $ac_status = 0; } && { 1620 test -z "$ac_c_werror_flag" || 1621 test ! -s conftest.err 1622 } && test -s conftest$ac_exeext && { 1623 test "$cross_compiling" = yes || 1624 $as_test_x conftest$ac_exeext 1625 }; then : 1626 ac_retval=0 1627 else 1628 $as_echo "$as_me: failed program was:" >&5 1629 sed 's/^/| /' conftest.$ac_ext >&5 1630 1631 ac_retval=1 1632 fi 1633 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1634 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1635 # interfere with the next link command; also delete a directory that is 1636 # left behind by Apple's compiler. We do this before executing the actions. 1637 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1639 return $ac_retval 1640 1641 } # ac_fn_c_try_link 1642 1643 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1644 # ------------------------------------------------------- 1645 # Tests whether HEADER exists and can be compiled using the include files in 1646 # INCLUDES, setting the cache variable VAR accordingly. 1647 ac_fn_c_check_header_compile () 1648 { 1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1651 $as_echo_n "checking for $2... " >&6; } 1652 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1653 $as_echo_n "(cached) " >&6 1654 else 1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1656 /* end confdefs.h. */ 1657 $4 1658 #include <$2> 1659 _ACEOF 1660 if ac_fn_c_try_compile "$LINENO"; then : 1661 eval "$3=yes" 1662 else 1663 eval "$3=no" 1664 fi 1665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1666 fi 1667 eval ac_res=\$$3 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1669 $as_echo "$ac_res" >&6; } 1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1671 1672 } # ac_fn_c_check_header_compile 1673 1674 # ac_fn_c_try_cpp LINENO 1675 # ---------------------- 1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1677 ac_fn_c_try_cpp () 1678 { 1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1680 if { { ac_try="$ac_cpp conftest.$ac_ext" 1681 case "(($ac_try" in 1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1683 *) ac_try_echo=$ac_try;; 1684 esac 1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1686 $as_echo "$ac_try_echo"; } >&5 1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1688 ac_status=$? 1689 if test -s conftest.err; then 1690 grep -v '^ *+' conftest.err >conftest.er1 1691 cat conftest.er1 >&5 1692 mv -f conftest.er1 conftest.err 1693 fi 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } >/dev/null && { 1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1697 test ! -s conftest.err 1698 }; then : 1699 ac_retval=0 1700 else 1701 $as_echo "$as_me: failed program was:" >&5 1702 sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 1705 fi 1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1707 return $ac_retval 1708 1709 } # ac_fn_c_try_cpp 1710 1711 # ac_fn_c_try_run LINENO 1712 # ---------------------- 1713 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1714 # that executables *can* be run. 1715 ac_fn_c_try_run () 1716 { 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 if { { ac_try="$ac_link" 1719 case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722 esac 1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724 $as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_link") 2>&5 1726 ac_status=$? 1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1728 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1729 { { case "(($ac_try" in 1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1731 *) ac_try_echo=$ac_try;; 1732 esac 1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1734 $as_echo "$ac_try_echo"; } >&5 1735 (eval "$ac_try") 2>&5 1736 ac_status=$? 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; }; }; then : 1739 ac_retval=0 1740 else 1741 $as_echo "$as_me: program exited with status $ac_status" >&5 1742 $as_echo "$as_me: failed program was:" >&5 1743 sed 's/^/| /' conftest.$ac_ext >&5 1744 1745 ac_retval=$ac_status 1746 fi 1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1749 return $ac_retval 1750 1751 } # ac_fn_c_try_run 1752 1753 # ac_fn_c_check_func LINENO FUNC VAR 1754 # ---------------------------------- 1755 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1756 ac_fn_c_check_func () 1757 { 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760 $as_echo_n "checking for $2... " >&6; } 1761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1762 $as_echo_n "(cached) " >&6 1763 else 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765 /* end confdefs.h. */ 1766 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1768 #define $2 innocuous_$2 1769 1770 /* System header to define __stub macros and hopefully few prototypes, 1771 which can conflict with char $2 (); below. 1772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1773 <limits.h> exists even on freestanding compilers. */ 1774 1775 #ifdef __STDC__ 1776 # include <limits.h> 1777 #else 1778 # include <assert.h> 1779 #endif 1780 1781 #undef $2 1782 1783 /* Override any GCC internal prototype to avoid an error. 1784 Use char because int might match the return type of a GCC 1785 builtin and then its argument prototype would still apply. */ 1786 #ifdef __cplusplus 1787 extern "C" 1788 #endif 1789 char $2 (); 1790 /* The GNU C library defines this for functions which it implements 1791 to always fail with ENOSYS. Some functions are actually named 1792 something starting with __ and the normal name is an alias. */ 1793 #if defined __stub_$2 || defined __stub___$2 1794 choke me 1795 #endif 1796 1797 int 1798 main () 1799 { 1800 return $2 (); 1801 ; 1802 return 0; 1803 } 1804 _ACEOF 1805 if ac_fn_c_try_link "$LINENO"; then : 1806 eval "$3=yes" 1807 else 1808 eval "$3=no" 1809 fi 1810 rm -f core conftest.err conftest.$ac_objext \ 1811 conftest$ac_exeext conftest.$ac_ext 1812 fi 1813 eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815 $as_echo "$ac_res" >&6; } 1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1817 1818 } # ac_fn_c_check_func 1819 1820 # ac_fn_cxx_try_cpp LINENO 1821 # ------------------------ 1822 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1823 ac_fn_cxx_try_cpp () 1824 { 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 if { { ac_try="$ac_cpp conftest.$ac_ext" 1827 case "(($ac_try" in 1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1829 *) ac_try_echo=$ac_try;; 1830 esac 1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1832 $as_echo "$ac_try_echo"; } >&5 1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1834 ac_status=$? 1835 if test -s conftest.err; then 1836 grep -v '^ *+' conftest.err >conftest.er1 1837 cat conftest.er1 >&5 1838 mv -f conftest.er1 conftest.err 1839 fi 1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1841 test $ac_status = 0; } >/dev/null && { 1842 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1843 test ! -s conftest.err 1844 }; then : 1845 ac_retval=0 1846 else 1847 $as_echo "$as_me: failed program was:" >&5 1848 sed 's/^/| /' conftest.$ac_ext >&5 1849 1850 ac_retval=1 1851 fi 1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1853 return $ac_retval 1854 1855 } # ac_fn_cxx_try_cpp 1856 1857 # ac_fn_cxx_try_link LINENO 1858 # ------------------------- 1859 # Try to link conftest.$ac_ext, and return whether this succeeded. 1860 ac_fn_cxx_try_link () 1861 { 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 rm -f conftest.$ac_objext conftest$ac_exeext 1864 if { { ac_try="$ac_link" 1865 case "(($ac_try" in 1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1867 *) ac_try_echo=$ac_try;; 1868 esac 1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1870 $as_echo "$ac_try_echo"; } >&5 1871 (eval "$ac_link") 2>conftest.err 1872 ac_status=$? 1873 if test -s conftest.err; then 1874 grep -v '^ *+' conftest.err >conftest.er1 1875 cat conftest.er1 >&5 1876 mv -f conftest.er1 conftest.err 1877 fi 1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1879 test $ac_status = 0; } && { 1880 test -z "$ac_cxx_werror_flag" || 1881 test ! -s conftest.err 1882 } && test -s conftest$ac_exeext && { 1883 test "$cross_compiling" = yes || 1884 $as_test_x conftest$ac_exeext 1885 }; then : 1886 ac_retval=0 1887 else 1888 $as_echo "$as_me: failed program was:" >&5 1889 sed 's/^/| /' conftest.$ac_ext >&5 1890 1891 ac_retval=1 1892 fi 1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1895 # interfere with the next link command; also delete a directory that is 1896 # left behind by Apple's compiler. We do this before executing the actions. 1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1899 return $ac_retval 1900 1901 } # ac_fn_cxx_try_link 1902 1903 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1904 # -------------------------------------------- 1905 # Tries to find the compile-time value of EXPR in a program that includes 1906 # INCLUDES, setting VAR accordingly. Returns whether the value could be 1907 # computed 1908 ac_fn_c_compute_int () 1909 { 1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 if test "$cross_compiling" = yes; then 1912 # Depending upon the size, compute the lo and hi bounds. 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914 /* end confdefs.h. */ 1915 $4 1916 int 1917 main () 1918 { 1919 static int test_array [1 - 2 * !(($2) >= 0)]; 1920 test_array [0] = 0 1921 1922 ; 1923 return 0; 1924 } 1925 _ACEOF 1926 if ac_fn_c_try_compile "$LINENO"; then : 1927 ac_lo=0 ac_mid=0 1928 while :; do 1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1930 /* end confdefs.h. */ 1931 $4 1932 int 1933 main () 1934 { 1935 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1936 test_array [0] = 0 1937 1938 ; 1939 return 0; 1940 } 1941 _ACEOF 1942 if ac_fn_c_try_compile "$LINENO"; then : 1943 ac_hi=$ac_mid; break 1944 else 1945 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1946 if test $ac_lo -le $ac_mid; then 1947 ac_lo= ac_hi= 1948 break 1949 fi 1950 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1951 fi 1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1953 done 1954 else 1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956 /* end confdefs.h. */ 1957 $4 1958 int 1959 main () 1960 { 1961 static int test_array [1 - 2 * !(($2) < 0)]; 1962 test_array [0] = 0 1963 1964 ; 1965 return 0; 1966 } 1967 _ACEOF 1968 if ac_fn_c_try_compile "$LINENO"; then : 1969 ac_hi=-1 ac_mid=-1 1970 while :; do 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972 /* end confdefs.h. */ 1973 $4 1974 int 1975 main () 1976 { 1977 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1978 test_array [0] = 0 1979 1980 ; 1981 return 0; 1982 } 1983 _ACEOF 1984 if ac_fn_c_try_compile "$LINENO"; then : 1985 ac_lo=$ac_mid; break 1986 else 1987 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1988 if test $ac_mid -le $ac_hi; then 1989 ac_lo= ac_hi= 1990 break 1991 fi 1992 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1993 fi 1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995 done 1996 else 1997 ac_lo= ac_hi= 1998 fi 1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2000 fi 2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2002 # Binary search between lo and hi bounds. 2003 while test "x$ac_lo" != "x$ac_hi"; do 2004 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2006 /* end confdefs.h. */ 2007 $4 2008 int 2009 main () 2010 { 2011 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2012 test_array [0] = 0 2013 2014 ; 2015 return 0; 2016 } 2017 _ACEOF 2018 if ac_fn_c_try_compile "$LINENO"; then : 2019 ac_hi=$ac_mid 2020 else 2021 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2022 fi 2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2024 done 2025 case $ac_lo in #(( 2026 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2027 '') ac_retval=1 ;; 2028 esac 2029 else 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031 /* end confdefs.h. */ 2032 $4 2033 static long int longval () { return $2; } 2034 static unsigned long int ulongval () { return $2; } 2035 #include <stdio.h> 2036 #include <stdlib.h> 2037 int 2038 main () 2039 { 2040 2041 FILE *f = fopen ("conftest.val", "w"); 2042 if (! f) 2043 return 1; 2044 if (($2) < 0) 2045 { 2046 long int i = longval (); 2047 if (i != ($2)) 2048 return 1; 2049 fprintf (f, "%ld", i); 2050 } 2051 else 2052 { 2053 unsigned long int i = ulongval (); 2054 if (i != ($2)) 2055 return 1; 2056 fprintf (f, "%lu", i); 2057 } 2058 /* Do not output a trailing newline, as this causes \r\n confusion 2059 on some platforms. */ 2060 return ferror (f) || fclose (f) != 0; 2061 2062 ; 2063 return 0; 2064 } 2065 _ACEOF 2066 if ac_fn_c_try_run "$LINENO"; then : 2067 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2068 else 2069 ac_retval=1 2070 fi 2071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2072 conftest.$ac_objext conftest.beam conftest.$ac_ext 2073 rm -f conftest.val 2074 2075 fi 2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2077 return $ac_retval 2078 2079 } # ac_fn_c_compute_int 2080 2081 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2082 # ------------------------------------------------------- 2083 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2084 # the include files in INCLUDES and setting the cache variable VAR 2085 # accordingly. 2086 ac_fn_c_check_header_mongrel () 2087 { 2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2089 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2091 $as_echo_n "checking for $2... " >&6; } 2092 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2093 $as_echo_n "(cached) " >&6 2094 fi 2095 eval ac_res=\$$3 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2097 $as_echo "$ac_res" >&6; } 2098 else 2099 # Is the header compilable? 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2101 $as_echo_n "checking $2 usability... " >&6; } 2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2103 /* end confdefs.h. */ 2104 $4 2105 #include <$2> 2106 _ACEOF 2107 if ac_fn_c_try_compile "$LINENO"; then : 2108 ac_header_compiler=yes 2109 else 2110 ac_header_compiler=no 2111 fi 2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2114 $as_echo "$ac_header_compiler" >&6; } 2115 2116 # Is the header present? 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2118 $as_echo_n "checking $2 presence... " >&6; } 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120 /* end confdefs.h. */ 2121 #include <$2> 2122 _ACEOF 2123 if ac_fn_c_try_cpp "$LINENO"; then : 2124 ac_header_preproc=yes 2125 else 2126 ac_header_preproc=no 2127 fi 2128 rm -f conftest.err conftest.$ac_ext 2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2130 $as_echo "$ac_header_preproc" >&6; } 2131 2132 # So? What about this header? 2133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2134 yes:no: ) 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2136 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2138 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2139 ;; 2140 no:yes:* ) 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2142 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2144 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2146 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2148 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2151 ( cat <<\_ASBOX 2152 ## ------------------------------------------------------ ## 2153 ## Report this to http://github.com/atgreen/libffi/issues ## 2154 ## ------------------------------------------------------ ## 2155 _ASBOX 2156 ) | sed "s/^/$as_me: WARNING: /" >&2 2157 ;; 2158 esac 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2160 $as_echo_n "checking for $2... " >&6; } 2161 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2162 $as_echo_n "(cached) " >&6 2163 else 2164 eval "$3=\$ac_header_compiler" 2165 fi 2166 eval ac_res=\$$3 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2168 $as_echo "$ac_res" >&6; } 2169 fi 2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2171 2172 } # ac_fn_c_check_header_mongrel 2173 cat >config.log <<_ACEOF 2174 This file contains any messages produced by compilers while 2175 running configure, to aid debugging if configure makes a mistake. 2176 2177 It was created by libffi $as_me 3.99999, which was 2178 generated by GNU Autoconf 2.64. Invocation command line was 2179 2180 $ $0 $@ 2181 2182 _ACEOF 2183 exec 5>>config.log 2184 { 2185 cat <<_ASUNAME 2186 ## --------- ## 2187 ## Platform. ## 2188 ## --------- ## 2189 2190 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2191 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2192 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2193 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2194 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2195 2196 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2197 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2198 2199 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2200 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2201 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2202 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2203 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2204 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2205 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2206 2207 _ASUNAME 2208 2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2210 for as_dir in $PATH 2211 do 2212 IFS=$as_save_IFS 2213 test -z "$as_dir" && as_dir=. 2214 $as_echo "PATH: $as_dir" 2215 done 2216 IFS=$as_save_IFS 2217 2218 } >&5 2219 2220 cat >&5 <<_ACEOF 2221 2222 2223 ## ----------- ## 2224 ## Core tests. ## 2225 ## ----------- ## 2226 2227 _ACEOF 2228 2229 2230 # Keep a trace of the command line. 2231 # Strip out --no-create and --no-recursion so they do not pile up. 2232 # Strip out --silent because we don't want to record it for future runs. 2233 # Also quote any args containing shell meta-characters. 2234 # Make two passes to allow for proper duplicate-argument suppression. 2235 ac_configure_args= 2236 ac_configure_args0= 2237 ac_configure_args1= 2238 ac_must_keep_next=false 2239 for ac_pass in 1 2 2240 do 2241 for ac_arg 2242 do 2243 case $ac_arg in 2244 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2246 | -silent | --silent | --silen | --sile | --sil) 2247 continue ;; 2248 *\'*) 2249 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2250 esac 2251 case $ac_pass in 2252 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2253 2) 2254 as_fn_append ac_configure_args1 " '$ac_arg'" 2255 if test $ac_must_keep_next = true; then 2256 ac_must_keep_next=false # Got value, back to normal. 2257 else 2258 case $ac_arg in 2259 *=* | --config-cache | -C | -disable-* | --disable-* \ 2260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2262 | -with-* | --with-* | -without-* | --without-* | --x) 2263 case "$ac_configure_args0 " in 2264 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2265 esac 2266 ;; 2267 -* ) ac_must_keep_next=true ;; 2268 esac 2269 fi 2270 as_fn_append ac_configure_args " '$ac_arg'" 2271 ;; 2272 esac 2273 done 2274 done 2275 { ac_configure_args0=; unset ac_configure_args0;} 2276 { ac_configure_args1=; unset ac_configure_args1;} 2277 2278 # When interrupted or exit'd, cleanup temporary files, and complete 2279 # config.log. We remove comments because anyway the quotes in there 2280 # would cause problems or look ugly. 2281 # WARNING: Use '\'' to represent an apostrophe within the trap. 2282 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2283 trap 'exit_status=$? 2284 # Save into config.log some information that might help in debugging. 2285 { 2286 echo 2287 2288 cat <<\_ASBOX 2289 ## ---------------- ## 2290 ## Cache variables. ## 2291 ## ---------------- ## 2292 _ASBOX 2293 echo 2294 # The following way of writing the cache mishandles newlines in values, 2295 ( 2296 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2297 eval ac_val=\$$ac_var 2298 case $ac_val in #( 2299 *${as_nl}*) 2300 case $ac_var in #( 2301 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2302 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2303 esac 2304 case $ac_var in #( 2305 _ | IFS | as_nl) ;; #( 2306 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2307 *) { eval $ac_var=; unset $ac_var;} ;; 2308 esac ;; 2309 esac 2310 done 2311 (set) 2>&1 | 2312 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2313 *${as_nl}ac_space=\ *) 2314 sed -n \ 2315 "s/'\''/'\''\\\\'\'''\''/g; 2316 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2317 ;; #( 2318 *) 2319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2320 ;; 2321 esac | 2322 sort 2323 ) 2324 echo 2325 2326 cat <<\_ASBOX 2327 ## ----------------- ## 2328 ## Output variables. ## 2329 ## ----------------- ## 2330 _ASBOX 2331 echo 2332 for ac_var in $ac_subst_vars 2333 do 2334 eval ac_val=\$$ac_var 2335 case $ac_val in 2336 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2337 esac 2338 $as_echo "$ac_var='\''$ac_val'\''" 2339 done | sort 2340 echo 2341 2342 if test -n "$ac_subst_files"; then 2343 cat <<\_ASBOX 2344 ## ------------------- ## 2345 ## File substitutions. ## 2346 ## ------------------- ## 2347 _ASBOX 2348 echo 2349 for ac_var in $ac_subst_files 2350 do 2351 eval ac_val=\$$ac_var 2352 case $ac_val in 2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2354 esac 2355 $as_echo "$ac_var='\''$ac_val'\''" 2356 done | sort 2357 echo 2358 fi 2359 2360 if test -s confdefs.h; then 2361 cat <<\_ASBOX 2362 ## ----------- ## 2363 ## confdefs.h. ## 2364 ## ----------- ## 2365 _ASBOX 2366 echo 2367 cat confdefs.h 2368 echo 2369 fi 2370 test "$ac_signal" != 0 && 2371 $as_echo "$as_me: caught signal $ac_signal" 2372 $as_echo "$as_me: exit $exit_status" 2373 } >&5 2374 rm -f core *.core core.conftest.* && 2375 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2376 exit $exit_status 2377 ' 0 2378 for ac_signal in 1 2 13 15; do 2379 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2380 done 2381 ac_signal=0 2382 2383 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2384 rm -f -r conftest* confdefs.h 2385 2386 $as_echo "/* confdefs.h */" > confdefs.h 2387 2388 # Predefined preprocessor variables. 2389 2390 cat >>confdefs.h <<_ACEOF 2391 #define PACKAGE_NAME "$PACKAGE_NAME" 2392 _ACEOF 2393 2394 cat >>confdefs.h <<_ACEOF 2395 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2396 _ACEOF 2397 2398 cat >>confdefs.h <<_ACEOF 2399 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2400 _ACEOF 2401 2402 cat >>confdefs.h <<_ACEOF 2403 #define PACKAGE_STRING "$PACKAGE_STRING" 2404 _ACEOF 2405 2406 cat >>confdefs.h <<_ACEOF 2407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2408 _ACEOF 2409 2410 cat >>confdefs.h <<_ACEOF 2411 #define PACKAGE_URL "$PACKAGE_URL" 2412 _ACEOF 2413 2414 2415 # Let the site file select an alternate cache file if it wants to. 2416 # Prefer an explicitly selected file to automatically selected ones. 2417 ac_site_file1=NONE 2418 ac_site_file2=NONE 2419 if test -n "$CONFIG_SITE"; then 2420 ac_site_file1=$CONFIG_SITE 2421 elif test "x$prefix" != xNONE; then 2422 ac_site_file1=$prefix/share/config.site 2423 ac_site_file2=$prefix/etc/config.site 2424 else 2425 ac_site_file1=$ac_default_prefix/share/config.site 2426 ac_site_file2=$ac_default_prefix/etc/config.site 2427 fi 2428 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2429 do 2430 test "x$ac_site_file" = xNONE && continue 2431 if test -r "$ac_site_file"; then 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2433 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2434 sed 's/^/| /' "$ac_site_file" >&5 2435 . "$ac_site_file" 2436 fi 2437 done 2438 2439 if test -r "$cache_file"; then 2440 # Some versions of bash will fail to source /dev/null (special 2441 # files actually), so we avoid doing that. 2442 if test -f "$cache_file"; then 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2444 $as_echo "$as_me: loading cache $cache_file" >&6;} 2445 case $cache_file in 2446 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2447 *) . "./$cache_file";; 2448 esac 2449 fi 2450 else 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2452 $as_echo "$as_me: creating cache $cache_file" >&6;} 2453 >$cache_file 2454 fi 2455 2456 # Check that the precious variables saved in the cache have kept the same 2457 # value. 2458 ac_cache_corrupted=false 2459 for ac_var in $ac_precious_vars; do 2460 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2461 eval ac_new_set=\$ac_env_${ac_var}_set 2462 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2463 eval ac_new_val=\$ac_env_${ac_var}_value 2464 case $ac_old_set,$ac_new_set in 2465 set,) 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2467 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2468 ac_cache_corrupted=: ;; 2469 ,set) 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2471 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2472 ac_cache_corrupted=: ;; 2473 ,);; 2474 *) 2475 if test "x$ac_old_val" != "x$ac_new_val"; then 2476 # differences in whitespace do not lead to failure. 2477 ac_old_val_w=`echo x $ac_old_val` 2478 ac_new_val_w=`echo x $ac_new_val` 2479 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2481 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2482 ac_cache_corrupted=: 2483 else 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2485 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2486 eval $ac_var=\$ac_old_val 2487 fi 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2489 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2491 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2492 fi;; 2493 esac 2494 # Pass precious variables to config.status. 2495 if test "$ac_new_set" = set; then 2496 case $ac_new_val in 2497 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2498 *) ac_arg=$ac_var=$ac_new_val ;; 2499 esac 2500 case " $ac_configure_args " in 2501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2502 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2503 esac 2504 fi 2505 done 2506 if $ac_cache_corrupted; then 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2510 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2511 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2512 fi 2513 ## -------------------- ## 2514 ## Main body of script. ## 2515 ## -------------------- ## 2516 2517 ac_ext=c 2518 ac_cpp='$CPP $CPPFLAGS' 2519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2521 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2522 2523 2524 2525 2526 2527 ac_config_headers="$ac_config_headers fficonfig.h" 2528 2529 2530 # Default to --enable-multilib 2531 # Check whether --enable-multilib was given. 2532 if test "${enable_multilib+set}" = set; then : 2533 enableval=$enable_multilib; case "$enableval" in 2534 yes) multilib=yes ;; 2535 no) multilib=no ;; 2536 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2537 esac 2538 else 2539 multilib=yes 2540 fi 2541 2542 2543 # We may get other options which we leave undocumented: 2544 # --with-target-subdir, --with-multisrctop, --with-multisubdir 2545 # See config-ml.in if you want the gory details. 2546 2547 if test "$srcdir" = "."; then 2548 if test "$with_target_subdir" != "."; then 2549 multi_basedir="$srcdir/$with_multisrctop../.." 2550 else 2551 multi_basedir="$srcdir/$with_multisrctop.." 2552 fi 2553 else 2554 multi_basedir="$srcdir/.." 2555 fi 2556 2557 2558 # Even if the default multilib is not a cross compilation, 2559 # it may be that some of the other multilibs are. 2560 if test $cross_compiling = no && test $multilib = yes \ 2561 && test "x${with_multisubdir}" != x ; then 2562 cross_compiling=maybe 2563 fi 2564 2565 ac_config_commands="$ac_config_commands default-1" 2566 2567 2568 ac_aux_dir= 2569 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2570 for ac_t in install-sh install.sh shtool; do 2571 if test -f "$ac_dir/$ac_t"; then 2572 ac_aux_dir=$ac_dir 2573 ac_install_sh="$ac_aux_dir/$ac_t -c" 2574 break 2 2575 fi 2576 done 2577 done 2578 if test -z "$ac_aux_dir"; then 2579 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2580 fi 2581 2582 # These three variables are undocumented and unsupported, 2583 # and are intended to be withdrawn in a future Autoconf release. 2584 # They can cause serious problems if a builder's source tree is in a directory 2585 # whose full name contains unusual characters. 2586 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2587 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2588 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2589 2590 2591 # Make sure we can run config.sub. 2592 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2593 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2594 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2596 $as_echo_n "checking build system type... " >&6; } 2597 if test "${ac_cv_build+set}" = set; then : 2598 $as_echo_n "(cached) " >&6 2599 else 2600 ac_build_alias=$build_alias 2601 test "x$ac_build_alias" = x && 2602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2603 test "x$ac_build_alias" = x && 2604 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2605 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2606 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2607 2608 fi 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2610 $as_echo "$ac_cv_build" >&6; } 2611 case $ac_cv_build in 2612 *-*-*) ;; 2613 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2614 esac 2615 build=$ac_cv_build 2616 ac_save_IFS=$IFS; IFS='-' 2617 set x $ac_cv_build 2618 shift 2619 build_cpu=$1 2620 build_vendor=$2 2621 shift; shift 2622 # Remember, the first character of IFS is used to create $*, 2623 # except with old shells: 2624 build_os=$* 2625 IFS=$ac_save_IFS 2626 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2627 2628 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2630 $as_echo_n "checking host system type... " >&6; } 2631 if test "${ac_cv_host+set}" = set; then : 2632 $as_echo_n "(cached) " >&6 2633 else 2634 if test "x$host_alias" = x; then 2635 ac_cv_host=$ac_cv_build 2636 else 2637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2638 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2639 fi 2640 2641 fi 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2643 $as_echo "$ac_cv_host" >&6; } 2644 case $ac_cv_host in 2645 *-*-*) ;; 2646 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2647 esac 2648 host=$ac_cv_host 2649 ac_save_IFS=$IFS; IFS='-' 2650 set x $ac_cv_host 2651 shift 2652 host_cpu=$1 2653 host_vendor=$2 2654 shift; shift 2655 # Remember, the first character of IFS is used to create $*, 2656 # except with old shells: 2657 host_os=$* 2658 IFS=$ac_save_IFS 2659 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2660 2661 2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2663 $as_echo_n "checking target system type... " >&6; } 2664 if test "${ac_cv_target+set}" = set; then : 2665 $as_echo_n "(cached) " >&6 2666 else 2667 if test "x$target_alias" = x; then 2668 ac_cv_target=$ac_cv_host 2669 else 2670 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2671 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2672 fi 2673 2674 fi 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2676 $as_echo "$ac_cv_target" >&6; } 2677 case $ac_cv_target in 2678 *-*-*) ;; 2679 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2680 esac 2681 target=$ac_cv_target 2682 ac_save_IFS=$IFS; IFS='-' 2683 set x $ac_cv_target 2684 shift 2685 target_cpu=$1 2686 target_vendor=$2 2687 shift; shift 2688 # Remember, the first character of IFS is used to create $*, 2689 # except with old shells: 2690 target_os=$* 2691 IFS=$ac_save_IFS 2692 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2693 2694 2695 # The aliases save the names the user supplied, while $host etc. 2696 # will get canonicalized. 2697 test -n "$target_alias" && 2698 test "$program_prefix$program_suffix$program_transform_name" = \ 2699 NONENONEs,x,x, && 2700 program_prefix=${target_alias}- 2701 2702 target_alias=${target_alias-$host_alias} 2703 2704 am__api_version='1.11' 2705 2706 # Find a good install program. We prefer a C program (faster), 2707 # so one script is as good as another. But avoid the broken or 2708 # incompatible versions: 2709 # SysV /etc/install, /usr/sbin/install 2710 # SunOS /usr/etc/install 2711 # IRIX /sbin/install 2712 # AIX /bin/install 2713 # AmigaOS /C/install, which installs bootblocks on floppy discs 2714 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2717 # OS/2's system install, which has a completely different semantic 2718 # ./install, which can be erroneously created by make from ./install.sh. 2719 # Reject install programs that cannot install multiple files. 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2721 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2722 if test -z "$INSTALL"; then 2723 if test "${ac_cv_path_install+set}" = set; then : 2724 $as_echo_n "(cached) " >&6 2725 else 2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727 for as_dir in $PATH 2728 do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 # Account for people who put trailing slashes in PATH elements. 2732 case $as_dir/ in #(( 2733 ./ | .// | /[cC]/* | \ 2734 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2735 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2736 /usr/ucb/* ) ;; 2737 *) 2738 # OSF1 and SCO ODT 3.0 have their own names for install. 2739 # Don't use installbsd from OSF since it installs stuff as root 2740 # by default. 2741 for ac_prog in ginstall scoinst install; do 2742 for ac_exec_ext in '' $ac_executable_extensions; do 2743 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2744 if test $ac_prog = install && 2745 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2746 # AIX install. It has an incompatible calling convention. 2747 : 2748 elif test $ac_prog = install && 2749 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2750 # program-specific install script used by HP pwplus--don't use. 2751 : 2752 else 2753 rm -rf conftest.one conftest.two conftest.dir 2754 echo one > conftest.one 2755 echo two > conftest.two 2756 mkdir conftest.dir 2757 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2758 test -s conftest.one && test -s conftest.two && 2759 test -s conftest.dir/conftest.one && 2760 test -s conftest.dir/conftest.two 2761 then 2762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2763 break 3 2764 fi 2765 fi 2766 fi 2767 done 2768 done 2769 ;; 2770 esac 2771 2772 done 2773 IFS=$as_save_IFS 2774 2775 rm -rf conftest.one conftest.two conftest.dir 2776 2777 fi 2778 if test "${ac_cv_path_install+set}" = set; then 2779 INSTALL=$ac_cv_path_install 2780 else 2781 # As a last resort, use the slow shell script. Don't cache a 2782 # value for INSTALL within a source directory, because that will 2783 # break other packages using the cache if that directory is 2784 # removed, or if the value is a relative name. 2785 INSTALL=$ac_install_sh 2786 fi 2787 fi 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2789 $as_echo "$INSTALL" >&6; } 2790 2791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2792 # It thinks the first close brace ends the variable substitution. 2793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2794 2795 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2796 2797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2798 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2800 $as_echo_n "checking whether build environment is sane... " >&6; } 2801 # Just in case 2802 sleep 1 2803 echo timestamp > conftest.file 2804 # Reject unsafe characters in $srcdir or the absolute working directory 2805 # name. Accept space and tab only in the latter. 2806 am_lf=' 2807 ' 2808 case `pwd` in 2809 *[\\\"\#\$\&\'\`$am_lf]*) 2810 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2811 esac 2812 case $srcdir in 2813 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2814 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2815 esac 2816 2817 # Do `set' in a subshell so we don't clobber the current shell's 2818 # arguments. Must try -L first in case configure is actually a 2819 # symlink; some systems play weird games with the mod time of symlinks 2820 # (eg FreeBSD returns the mod time of the symlink's containing 2821 # directory). 2822 if ( 2823 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2824 if test "$*" = "X"; then 2825 # -L didn't work. 2826 set X `ls -t "$srcdir/configure" conftest.file` 2827 fi 2828 rm -f conftest.file 2829 if test "$*" != "X $srcdir/configure conftest.file" \ 2830 && test "$*" != "X conftest.file $srcdir/configure"; then 2831 2832 # If neither matched, then we have a broken ls. This can happen 2833 # if, for instance, CONFIG_SHELL is bash and it inherits a 2834 # broken ls alias from the environment. This has actually 2835 # happened. Such a system could not be considered "sane". 2836 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2837 alias in your environment" "$LINENO" 5 2838 fi 2839 2840 test "$2" = conftest.file 2841 ) 2842 then 2843 # Ok. 2844 : 2845 else 2846 as_fn_error "newly created file is older than distributed files! 2847 Check your system clock" "$LINENO" 5 2848 fi 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2850 $as_echo "yes" >&6; } 2851 test "$program_prefix" != NONE && 2852 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2853 # Use a double $ so make ignores it. 2854 test "$program_suffix" != NONE && 2855 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2856 # Double any \ or $. 2857 # By default was `s,x,x', remove it if useless. 2858 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2859 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2860 2861 # expand $ac_aux_dir to an absolute path 2862 am_aux_dir=`cd $ac_aux_dir && pwd` 2863 2864 if test x"${MISSING+set}" != xset; then 2865 case $am_aux_dir in 2866 *\ * | *\ *) 2867 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2868 *) 2869 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2870 esac 2871 fi 2872 # Use eval to expand $SHELL 2873 if eval "$MISSING --run true"; then 2874 am_missing_run="$MISSING --run " 2875 else 2876 am_missing_run= 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2878 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2879 fi 2880 2881 if test x"${install_sh}" != xset; then 2882 case $am_aux_dir in 2883 *\ * | *\ *) 2884 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2885 *) 2886 install_sh="\${SHELL} $am_aux_dir/install-sh" 2887 esac 2888 fi 2889 2890 # Installed binaries are usually stripped using `strip' when the user 2891 # run `make install-strip'. However `strip' might not be the right 2892 # tool to use in cross-compilation environments, therefore Automake 2893 # will honor the `STRIP' environment variable to overrule this program. 2894 if test "$cross_compiling" != no; then 2895 if test -n "$ac_tool_prefix"; then 2896 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2897 set dummy ${ac_tool_prefix}strip; ac_word=$2 2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2899 $as_echo_n "checking for $ac_word... " >&6; } 2900 if test "${ac_cv_prog_STRIP+set}" = set; then : 2901 $as_echo_n "(cached) " >&6 2902 else 2903 if test -n "$STRIP"; then 2904 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2905 else 2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2907 for as_dir in $PATH 2908 do 2909 IFS=$as_save_IFS 2910 test -z "$as_dir" && as_dir=. 2911 for ac_exec_ext in '' $ac_executable_extensions; do 2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2913 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2915 break 2 2916 fi 2917 done 2918 done 2919 IFS=$as_save_IFS 2920 2921 fi 2922 fi 2923 STRIP=$ac_cv_prog_STRIP 2924 if test -n "$STRIP"; then 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2926 $as_echo "$STRIP" >&6; } 2927 else 2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2929 $as_echo "no" >&6; } 2930 fi 2931 2932 2933 fi 2934 if test -z "$ac_cv_prog_STRIP"; then 2935 ac_ct_STRIP=$STRIP 2936 # Extract the first word of "strip", so it can be a program name with args. 2937 set dummy strip; ac_word=$2 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2939 $as_echo_n "checking for $ac_word... " >&6; } 2940 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2941 $as_echo_n "(cached) " >&6 2942 else 2943 if test -n "$ac_ct_STRIP"; then 2944 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2945 else 2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947 for as_dir in $PATH 2948 do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 for ac_exec_ext in '' $ac_executable_extensions; do 2952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2953 ac_cv_prog_ac_ct_STRIP="strip" 2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2955 break 2 2956 fi 2957 done 2958 done 2959 IFS=$as_save_IFS 2960 2961 fi 2962 fi 2963 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2964 if test -n "$ac_ct_STRIP"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2966 $as_echo "$ac_ct_STRIP" >&6; } 2967 else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969 $as_echo "no" >&6; } 2970 fi 2971 2972 if test "x$ac_ct_STRIP" = x; then 2973 STRIP=":" 2974 else 2975 case $cross_compiling:$ac_tool_warned in 2976 yes:) 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2979 ac_tool_warned=yes ;; 2980 esac 2981 STRIP=$ac_ct_STRIP 2982 fi 2983 else 2984 STRIP="$ac_cv_prog_STRIP" 2985 fi 2986 2987 fi 2988 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2989 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2991 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2992 if test -z "$MKDIR_P"; then 2993 if test "${ac_cv_path_mkdir+set}" = set; then : 2994 $as_echo_n "(cached) " >&6 2995 else 2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2997 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2998 do 2999 IFS=$as_save_IFS 3000 test -z "$as_dir" && as_dir=. 3001 for ac_prog in mkdir gmkdir; do 3002 for ac_exec_ext in '' $ac_executable_extensions; do 3003 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3004 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3005 'mkdir (GNU coreutils) '* | \ 3006 'mkdir (coreutils) '* | \ 3007 'mkdir (fileutils) '4.1*) 3008 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3009 break 3;; 3010 esac 3011 done 3012 done 3013 done 3014 IFS=$as_save_IFS 3015 3016 fi 3017 3018 if test "${ac_cv_path_mkdir+set}" = set; then 3019 MKDIR_P="$ac_cv_path_mkdir -p" 3020 else 3021 # As a last resort, use the slow shell script. Don't cache a 3022 # value for MKDIR_P within a source directory, because that will 3023 # break other packages using the cache if that directory is 3024 # removed, or if the value is a relative name. 3025 test -d ./--version && rmdir ./--version 3026 MKDIR_P="$ac_install_sh -d" 3027 fi 3028 fi 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3030 $as_echo "$MKDIR_P" >&6; } 3031 3032 mkdir_p="$MKDIR_P" 3033 case $mkdir_p in 3034 [\\/$]* | ?:[\\/]*) ;; 3035 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3036 esac 3037 3038 for ac_prog in gawk mawk nawk awk 3039 do 3040 # Extract the first word of "$ac_prog", so it can be a program name with args. 3041 set dummy $ac_prog; ac_word=$2 3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3043 $as_echo_n "checking for $ac_word... " >&6; } 3044 if test "${ac_cv_prog_AWK+set}" = set; then : 3045 $as_echo_n "(cached) " >&6 3046 else 3047 if test -n "$AWK"; then 3048 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3049 else 3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051 for as_dir in $PATH 3052 do 3053 IFS=$as_save_IFS 3054 test -z "$as_dir" && as_dir=. 3055 for ac_exec_ext in '' $ac_executable_extensions; do 3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3057 ac_cv_prog_AWK="$ac_prog" 3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 break 2 3060 fi 3061 done 3062 done 3063 IFS=$as_save_IFS 3064 3065 fi 3066 fi 3067 AWK=$ac_cv_prog_AWK 3068 if test -n "$AWK"; then 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3070 $as_echo "$AWK" >&6; } 3071 else 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3073 $as_echo "no" >&6; } 3074 fi 3075 3076 3077 test -n "$AWK" && break 3078 done 3079 3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3081 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3082 set x ${MAKE-make} 3083 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3084 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3085 $as_echo_n "(cached) " >&6 3086 else 3087 cat >conftest.make <<\_ACEOF 3088 SHELL = /bin/sh 3089 all: 3090 @echo '@@@%%%=$(MAKE)=@@@%%%' 3091 _ACEOF 3092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3093 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3094 *@@@%%%=?*=@@@%%%*) 3095 eval ac_cv_prog_make_${ac_make}_set=yes;; 3096 *) 3097 eval ac_cv_prog_make_${ac_make}_set=no;; 3098 esac 3099 rm -f conftest.make 3100 fi 3101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3103 $as_echo "yes" >&6; } 3104 SET_MAKE= 3105 else 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107 $as_echo "no" >&6; } 3108 SET_MAKE="MAKE=${MAKE-make}" 3109 fi 3110 3111 rm -rf .tst 2>/dev/null 3112 mkdir .tst 2>/dev/null 3113 if test -d .tst; then 3114 am__leading_dot=. 3115 else 3116 am__leading_dot=_ 3117 fi 3118 rmdir .tst 2>/dev/null 3119 3120 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3122 # is not polluted with repeated "-I." 3123 am__isrc=' -I$(srcdir)' 3124 # test to see if srcdir already configured 3125 if test -f $srcdir/config.status; then 3126 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3127 fi 3128 fi 3129 3130 # test whether we have cygpath 3131 if test -z "$CYGPATH_W"; then 3132 if (cygpath --version) >/dev/null 2>/dev/null; then 3133 CYGPATH_W='cygpath -w' 3134 else 3135 CYGPATH_W=echo 3136 fi 3137 fi 3138 3139 3140 # Define the identity of the package. 3141 PACKAGE='libffi' 3142 VERSION='3.99999' 3143 3144 3145 cat >>confdefs.h <<_ACEOF 3146 #define PACKAGE "$PACKAGE" 3147 _ACEOF 3148 3149 3150 cat >>confdefs.h <<_ACEOF 3151 #define VERSION "$VERSION" 3152 _ACEOF 3153 3154 # Some tools Automake needs. 3155 3156 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3157 3158 3159 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3160 3161 3162 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3163 3164 3165 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3166 3167 3168 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3169 3170 # We need awk for the "check" target. The system "awk" is bad on 3171 # some platforms. 3172 # Always define AMTAR for backward compatibility. 3173 3174 AMTAR=${AMTAR-"${am_missing_run}tar"} 3175 3176 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3177 3178 3179 3180 3181 3182 3183 # See if makeinfo has been installed and is modern enough 3184 # that we can use it. 3185 3186 # Extract the first word of "makeinfo", so it can be a program name with args. 3187 set dummy makeinfo; ac_word=$2 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3189 $as_echo_n "checking for $ac_word... " >&6; } 3190 if test "${ac_cv_prog_MAKEINFO+set}" = set; then : 3191 $as_echo_n "(cached) " >&6 3192 else 3193 if test -n "$MAKEINFO"; then 3194 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 3195 else 3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197 for as_dir in $PATH 3198 do 3199 IFS=$as_save_IFS 3200 test -z "$as_dir" && as_dir=. 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3203 ac_cv_prog_MAKEINFO="makeinfo" 3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207 done 3208 done 3209 IFS=$as_save_IFS 3210 3211 fi 3212 fi 3213 MAKEINFO=$ac_cv_prog_MAKEINFO 3214 if test -n "$MAKEINFO"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 3216 $as_echo "$MAKEINFO" >&6; } 3217 else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219 $as_echo "no" >&6; } 3220 fi 3221 3222 3223 if test -n "$MAKEINFO"; then 3224 # Found it, now check the version. 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 3226 $as_echo_n "checking for modern makeinfo... " >&6; } 3227 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then : 3228 $as_echo_n "(cached) " >&6 3229 else 3230 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 3231 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 3232 3233 case $ac_prog_version in 3234 '') gcc_cv_prog_makeinfo_modern=no;; 3235 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 3236 *) gcc_cv_prog_makeinfo_modern=no;; 3237 esac 3238 3239 fi 3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 3241 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 3242 else 3243 gcc_cv_prog_makeinfo_modern=no 3244 fi 3245 if test $gcc_cv_prog_makeinfo_modern = no; then 3246 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 3247 fi 3248 3249 if test $gcc_cv_prog_makeinfo_modern = "yes"; then 3250 BUILD_INFO_TRUE= 3251 BUILD_INFO_FALSE='#' 3252 else 3253 BUILD_INFO_TRUE='#' 3254 BUILD_INFO_FALSE= 3255 fi 3256 3257 3258 # We would like our source tree to be readonly. However when releases or 3259 # pre-releases are generated, the flex/bison generated files as well as the 3260 # various formats of manuals need to be included along with the rest of the 3261 # sources. Therefore we have --enable-generated-files-in-srcdir to do 3262 # just that. 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5 3264 $as_echo_n "checking generated-files-in-srcdir... " >&6; } 3265 # Check whether --enable-generated-files-in-srcdir was given. 3266 if test "${enable_generated_files_in_srcdir+set}" = set; then : 3267 enableval=$enable_generated_files_in_srcdir; case "$enableval" in 3268 yes) enable_generated_files_in_srcdir=yes ;; 3269 no) enable_generated_files_in_srcdir=no ;; 3270 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 3271 esac 3272 else 3273 enable_generated_files_in_srcdir=no 3274 fi 3275 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 3277 $as_echo "$enable_generated_files_in_srcdir" >&6; } 3278 if test "$enable_generated_files_in_srcdir" = yes; then 3279 GENINSRC_TRUE= 3280 GENINSRC_FALSE='#' 3281 else 3282 GENINSRC_TRUE='#' 3283 GENINSRC_FALSE= 3284 fi 3285 3286 3287 # The same as in boehm-gc and libstdc++. Have to borrow it from there. 3288 # We must force CC to /not/ be precious variables; otherwise 3289 # the wrong, non-multilib-adjusted value will be used in multilibs. 3290 # As a side effect, we have to subst CFLAGS ourselves. 3291 # Also save and restore CFLAGS, since AC_PROG_CC will come up with 3292 # defaults of its own if none are provided. 3293 3294 3295 3296 save_CFLAGS=$CFLAGS 3297 ac_ext=c 3298 ac_cpp='$CPP $CPPFLAGS' 3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3302 if test -n "$ac_tool_prefix"; then 3303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3304 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3306 $as_echo_n "checking for $ac_word... " >&6; } 3307 if test "${ac_cv_prog_CC+set}" = set; then : 3308 $as_echo_n "(cached) " >&6 3309 else 3310 if test -n "$CC"; then 3311 ac_cv_prog_CC="$CC" # Let the user override the test. 3312 else 3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3314 for as_dir in $PATH 3315 do 3316 IFS=$as_save_IFS 3317 test -z "$as_dir" && as_dir=. 3318 for ac_exec_ext in '' $ac_executable_extensions; do 3319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3320 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3322 break 2 3323 fi 3324 done 3325 done 3326 IFS=$as_save_IFS 3327 3328 fi 3329 fi 3330 CC=$ac_cv_prog_CC 3331 if test -n "$CC"; then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3333 $as_echo "$CC" >&6; } 3334 else 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3336 $as_echo "no" >&6; } 3337 fi 3338 3339 3340 fi 3341 if test -z "$ac_cv_prog_CC"; then 3342 ac_ct_CC=$CC 3343 # Extract the first word of "gcc", so it can be a program name with args. 3344 set dummy gcc; ac_word=$2 3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3346 $as_echo_n "checking for $ac_word... " >&6; } 3347 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3348 $as_echo_n "(cached) " >&6 3349 else 3350 if test -n "$ac_ct_CC"; then 3351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3352 else 3353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3354 for as_dir in $PATH 3355 do 3356 IFS=$as_save_IFS 3357 test -z "$as_dir" && as_dir=. 3358 for ac_exec_ext in '' $ac_executable_extensions; do 3359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3360 ac_cv_prog_ac_ct_CC="gcc" 3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3362 break 2 3363 fi 3364 done 3365 done 3366 IFS=$as_save_IFS 3367 3368 fi 3369 fi 3370 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3371 if test -n "$ac_ct_CC"; then 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3373 $as_echo "$ac_ct_CC" >&6; } 3374 else 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3376 $as_echo "no" >&6; } 3377 fi 3378 3379 if test "x$ac_ct_CC" = x; then 3380 CC="" 3381 else 3382 case $cross_compiling:$ac_tool_warned in 3383 yes:) 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3386 ac_tool_warned=yes ;; 3387 esac 3388 CC=$ac_ct_CC 3389 fi 3390 else 3391 CC="$ac_cv_prog_CC" 3392 fi 3393 3394 if test -z "$CC"; then 3395 if test -n "$ac_tool_prefix"; then 3396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3397 set dummy ${ac_tool_prefix}cc; ac_word=$2 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3399 $as_echo_n "checking for $ac_word... " >&6; } 3400 if test "${ac_cv_prog_CC+set}" = set; then : 3401 $as_echo_n "(cached) " >&6 3402 else 3403 if test -n "$CC"; then 3404 ac_cv_prog_CC="$CC" # Let the user override the test. 3405 else 3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3407 for as_dir in $PATH 3408 do 3409 IFS=$as_save_IFS 3410 test -z "$as_dir" && as_dir=. 3411 for ac_exec_ext in '' $ac_executable_extensions; do 3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3413 ac_cv_prog_CC="${ac_tool_prefix}cc" 3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3415 break 2 3416 fi 3417 done 3418 done 3419 IFS=$as_save_IFS 3420 3421 fi 3422 fi 3423 CC=$ac_cv_prog_CC 3424 if test -n "$CC"; then 3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3426 $as_echo "$CC" >&6; } 3427 else 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3429 $as_echo "no" >&6; } 3430 fi 3431 3432 3433 fi 3434 fi 3435 if test -z "$CC"; then 3436 # Extract the first word of "cc", so it can be a program name with args. 3437 set dummy cc; ac_word=$2 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3439 $as_echo_n "checking for $ac_word... " >&6; } 3440 if test "${ac_cv_prog_CC+set}" = set; then : 3441 $as_echo_n "(cached) " >&6 3442 else 3443 if test -n "$CC"; then 3444 ac_cv_prog_CC="$CC" # Let the user override the test. 3445 else 3446 ac_prog_rejected=no 3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448 for as_dir in $PATH 3449 do 3450 IFS=$as_save_IFS 3451 test -z "$as_dir" && as_dir=. 3452 for ac_exec_ext in '' $ac_executable_extensions; do 3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3454 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3455 ac_prog_rejected=yes 3456 continue 3457 fi 3458 ac_cv_prog_CC="cc" 3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3460 break 2 3461 fi 3462 done 3463 done 3464 IFS=$as_save_IFS 3465 3466 if test $ac_prog_rejected = yes; then 3467 # We found a bogon in the path, so make sure we never use it. 3468 set dummy $ac_cv_prog_CC 3469 shift 3470 if test $# != 0; then 3471 # We chose a different compiler from the bogus one. 3472 # However, it has the same basename, so the bogon will be chosen 3473 # first if we set CC to just the basename; use the full file name. 3474 shift 3475 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3476 fi 3477 fi 3478 fi 3479 fi 3480 CC=$ac_cv_prog_CC 3481 if test -n "$CC"; then 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3483 $as_echo "$CC" >&6; } 3484 else 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486 $as_echo "no" >&6; } 3487 fi 3488 3489 3490 fi 3491 if test -z "$CC"; then 3492 if test -n "$ac_tool_prefix"; then 3493 for ac_prog in cl.exe 3494 do 3495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3498 $as_echo_n "checking for $ac_word... " >&6; } 3499 if test "${ac_cv_prog_CC+set}" = set; then : 3500 $as_echo_n "(cached) " >&6 3501 else 3502 if test -n "$CC"; then 3503 ac_cv_prog_CC="$CC" # Let the user override the test. 3504 else 3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3506 for as_dir in $PATH 3507 do 3508 IFS=$as_save_IFS 3509 test -z "$as_dir" && as_dir=. 3510 for ac_exec_ext in '' $ac_executable_extensions; do 3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3514 break 2 3515 fi 3516 done 3517 done 3518 IFS=$as_save_IFS 3519 3520 fi 3521 fi 3522 CC=$ac_cv_prog_CC 3523 if test -n "$CC"; then 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3525 $as_echo "$CC" >&6; } 3526 else 3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3528 $as_echo "no" >&6; } 3529 fi 3530 3531 3532 test -n "$CC" && break 3533 done 3534 fi 3535 if test -z "$CC"; then 3536 ac_ct_CC=$CC 3537 for ac_prog in cl.exe 3538 do 3539 # Extract the first word of "$ac_prog", so it can be a program name with args. 3540 set dummy $ac_prog; ac_word=$2 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3542 $as_echo_n "checking for $ac_word... " >&6; } 3543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3544 $as_echo_n "(cached) " >&6 3545 else 3546 if test -n "$ac_ct_CC"; then 3547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3548 else 3549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3550 for as_dir in $PATH 3551 do 3552 IFS=$as_save_IFS 3553 test -z "$as_dir" && as_dir=. 3554 for ac_exec_ext in '' $ac_executable_extensions; do 3555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3556 ac_cv_prog_ac_ct_CC="$ac_prog" 3557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3558 break 2 3559 fi 3560 done 3561 done 3562 IFS=$as_save_IFS 3563 3564 fi 3565 fi 3566 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3567 if test -n "$ac_ct_CC"; then 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3569 $as_echo "$ac_ct_CC" >&6; } 3570 else 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3572 $as_echo "no" >&6; } 3573 fi 3574 3575 3576 test -n "$ac_ct_CC" && break 3577 done 3578 3579 if test "x$ac_ct_CC" = x; then 3580 CC="" 3581 else 3582 case $cross_compiling:$ac_tool_warned in 3583 yes:) 3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3586 ac_tool_warned=yes ;; 3587 esac 3588 CC=$ac_ct_CC 3589 fi 3590 fi 3591 3592 fi 3593 3594 3595 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3597 as_fn_error "no acceptable C compiler found in \$PATH 3598 See \`config.log' for more details." "$LINENO" 5; } 3599 3600 # Provide some information about the compiler. 3601 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3602 set X $ac_compile 3603 ac_compiler=$2 3604 for ac_option in --version -v -V -qversion; do 3605 { { ac_try="$ac_compiler $ac_option >&5" 3606 case "(($ac_try" in 3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3608 *) ac_try_echo=$ac_try;; 3609 esac 3610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3611 $as_echo "$ac_try_echo"; } >&5 3612 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3613 ac_status=$? 3614 if test -s conftest.err; then 3615 sed '10a\ 3616 ... rest of stderr output deleted ... 3617 10q' conftest.err >conftest.er1 3618 cat conftest.er1 >&5 3619 rm -f conftest.er1 conftest.err 3620 fi 3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3622 test $ac_status = 0; } 3623 done 3624 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626 /* end confdefs.h. */ 3627 3628 int 3629 main () 3630 { 3631 3632 ; 3633 return 0; 3634 } 3635 _ACEOF 3636 ac_clean_files_save=$ac_clean_files 3637 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3638 # Try to create an executable without -o first, disregard a.out. 3639 # It will help us diagnose broken compilers, and finding out an intuition 3640 # of exeext. 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3642 $as_echo_n "checking for C compiler default output file name... " >&6; } 3643 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3644 3645 # The possible output files: 3646 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3647 3648 ac_rmfiles= 3649 for ac_file in $ac_files 3650 do 3651 case $ac_file in 3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3653 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3654 esac 3655 done 3656 rm -f $ac_rmfiles 3657 3658 if { { ac_try="$ac_link_default" 3659 case "(($ac_try" in 3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3661 *) ac_try_echo=$ac_try;; 3662 esac 3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3664 $as_echo "$ac_try_echo"; } >&5 3665 (eval "$ac_link_default") 2>&5 3666 ac_status=$? 3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3668 test $ac_status = 0; }; then : 3669 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3670 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3671 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3672 # so that the user can short-circuit this test for compilers unknown to 3673 # Autoconf. 3674 for ac_file in $ac_files '' 3675 do 3676 test -f "$ac_file" || continue 3677 case $ac_file in 3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3679 ;; 3680 [ab].out ) 3681 # We found the default executable, but exeext='' is most 3682 # certainly right. 3683 break;; 3684 *.* ) 3685 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3686 then :; else 3687 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3688 fi 3689 # We set ac_cv_exeext here because the later test for it is not 3690 # safe: cross compilers may not add the suffix if given an `-o' 3691 # argument, so we may need to know it at that point already. 3692 # Even if this section looks crufty: it has the advantage of 3693 # actually working. 3694 break;; 3695 * ) 3696 break;; 3697 esac 3698 done 3699 test "$ac_cv_exeext" = no && ac_cv_exeext= 3700 3701 else 3702 ac_file='' 3703 fi 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3705 $as_echo "$ac_file" >&6; } 3706 if test -z "$ac_file"; then : 3707 $as_echo "$as_me: failed program was:" >&5 3708 sed 's/^/| /' conftest.$ac_ext >&5 3709 3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3712 { as_fn_set_status 77 3713 as_fn_error "C compiler cannot create executables 3714 See \`config.log' for more details." "$LINENO" 5; }; } 3715 fi 3716 ac_exeext=$ac_cv_exeext 3717 3718 # Check that the compiler produces executables we can run. If not, either 3719 # the compiler is broken, or we cross compile. 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3721 $as_echo_n "checking whether the C compiler works... " >&6; } 3722 # If not cross compiling, check that we can run a simple program. 3723 if test "$cross_compiling" != yes; then 3724 if { ac_try='./$ac_file' 3725 { { case "(($ac_try" in 3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3727 *) ac_try_echo=$ac_try;; 3728 esac 3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3730 $as_echo "$ac_try_echo"; } >&5 3731 (eval "$ac_try") 2>&5 3732 ac_status=$? 3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3734 test $ac_status = 0; }; }; then 3735 cross_compiling=no 3736 else 3737 if test "$cross_compiling" = maybe; then 3738 cross_compiling=yes 3739 else 3740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3742 as_fn_error "cannot run C compiled programs. 3743 If you meant to cross compile, use \`--host'. 3744 See \`config.log' for more details." "$LINENO" 5; } 3745 fi 3746 fi 3747 fi 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3749 $as_echo "yes" >&6; } 3750 3751 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3752 ac_clean_files=$ac_clean_files_save 3753 # Check that the compiler produces executables we can run. If not, either 3754 # the compiler is broken, or we cross compile. 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3756 $as_echo_n "checking whether we are cross compiling... " >&6; } 3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3758 $as_echo "$cross_compiling" >&6; } 3759 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3761 $as_echo_n "checking for suffix of executables... " >&6; } 3762 if { { ac_try="$ac_link" 3763 case "(($ac_try" in 3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3765 *) ac_try_echo=$ac_try;; 3766 esac 3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3768 $as_echo "$ac_try_echo"; } >&5 3769 (eval "$ac_link") 2>&5 3770 ac_status=$? 3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3772 test $ac_status = 0; }; then : 3773 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3774 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3775 # work properly (i.e., refer to `conftest.exe'), while it won't with 3776 # `rm'. 3777 for ac_file in conftest.exe conftest conftest.*; do 3778 test -f "$ac_file" || continue 3779 case $ac_file in 3780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3781 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3782 break;; 3783 * ) break;; 3784 esac 3785 done 3786 else 3787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3789 as_fn_error "cannot compute suffix of executables: cannot compile and link 3790 See \`config.log' for more details." "$LINENO" 5; } 3791 fi 3792 rm -f conftest$ac_cv_exeext 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3794 $as_echo "$ac_cv_exeext" >&6; } 3795 3796 rm -f conftest.$ac_ext 3797 EXEEXT=$ac_cv_exeext 3798 ac_exeext=$EXEEXT 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3800 $as_echo_n "checking for suffix of object files... " >&6; } 3801 if test "${ac_cv_objext+set}" = set; then : 3802 $as_echo_n "(cached) " >&6 3803 else 3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3805 /* end confdefs.h. */ 3806 3807 int 3808 main () 3809 { 3810 3811 ; 3812 return 0; 3813 } 3814 _ACEOF 3815 rm -f conftest.o conftest.obj 3816 if { { ac_try="$ac_compile" 3817 case "(($ac_try" in 3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3819 *) ac_try_echo=$ac_try;; 3820 esac 3821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3822 $as_echo "$ac_try_echo"; } >&5 3823 (eval "$ac_compile") 2>&5 3824 ac_status=$? 3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3826 test $ac_status = 0; }; then : 3827 for ac_file in conftest.o conftest.obj conftest.*; do 3828 test -f "$ac_file" || continue; 3829 case $ac_file in 3830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3831 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3832 break;; 3833 esac 3834 done 3835 else 3836 $as_echo "$as_me: failed program was:" >&5 3837 sed 's/^/| /' conftest.$ac_ext >&5 3838 3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3841 as_fn_error "cannot compute suffix of object files: cannot compile 3842 See \`config.log' for more details." "$LINENO" 5; } 3843 fi 3844 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3845 fi 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3847 $as_echo "$ac_cv_objext" >&6; } 3848 OBJEXT=$ac_cv_objext 3849 ac_objext=$OBJEXT 3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3852 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3853 $as_echo_n "(cached) " >&6 3854 else 3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3856 /* end confdefs.h. */ 3857 3858 int 3859 main () 3860 { 3861 #ifndef __GNUC__ 3862 choke me 3863 #endif 3864 3865 ; 3866 return 0; 3867 } 3868 _ACEOF 3869 if ac_fn_c_try_compile "$LINENO"; then : 3870 ac_compiler_gnu=yes 3871 else 3872 ac_compiler_gnu=no 3873 fi 3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3876 3877 fi 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3879 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3880 if test $ac_compiler_gnu = yes; then 3881 GCC=yes 3882 else 3883 GCC= 3884 fi 3885 ac_test_CFLAGS=${CFLAGS+set} 3886 ac_save_CFLAGS=$CFLAGS 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3888 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3889 if test "${ac_cv_prog_cc_g+set}" = set; then : 3890 $as_echo_n "(cached) " >&6 3891 else 3892 ac_save_c_werror_flag=$ac_c_werror_flag 3893 ac_c_werror_flag=yes 3894 ac_cv_prog_cc_g=no 3895 CFLAGS="-g" 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3897 /* end confdefs.h. */ 3898 3899 int 3900 main () 3901 { 3902 3903 ; 3904 return 0; 3905 } 3906 _ACEOF 3907 if ac_fn_c_try_compile "$LINENO"; then : 3908 ac_cv_prog_cc_g=yes 3909 else 3910 CFLAGS="" 3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3912 /* end confdefs.h. */ 3913 3914 int 3915 main () 3916 { 3917 3918 ; 3919 return 0; 3920 } 3921 _ACEOF 3922 if ac_fn_c_try_compile "$LINENO"; then : 3923 3924 else 3925 ac_c_werror_flag=$ac_save_c_werror_flag 3926 CFLAGS="-g" 3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3928 /* end confdefs.h. */ 3929 3930 int 3931 main () 3932 { 3933 3934 ; 3935 return 0; 3936 } 3937 _ACEOF 3938 if ac_fn_c_try_compile "$LINENO"; then : 3939 ac_cv_prog_cc_g=yes 3940 fi 3941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3942 fi 3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3944 fi 3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3946 ac_c_werror_flag=$ac_save_c_werror_flag 3947 fi 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3949 $as_echo "$ac_cv_prog_cc_g" >&6; } 3950 if test "$ac_test_CFLAGS" = set; then 3951 CFLAGS=$ac_save_CFLAGS 3952 elif test $ac_cv_prog_cc_g = yes; then 3953 if test "$GCC" = yes; then 3954 CFLAGS="-g -O2" 3955 else 3956 CFLAGS="-g" 3957 fi 3958 else 3959 if test "$GCC" = yes; then 3960 CFLAGS="-O2" 3961 else 3962 CFLAGS= 3963 fi 3964 fi 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3967 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3968 $as_echo_n "(cached) " >&6 3969 else 3970 ac_cv_prog_cc_c89=no 3971 ac_save_CC=$CC 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973 /* end confdefs.h. */ 3974 #include <stdarg.h> 3975 #include <stdio.h> 3976 #include <sys/types.h> 3977 #include <sys/stat.h> 3978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3979 struct buf { int x; }; 3980 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3981 static char *e (p, i) 3982 char **p; 3983 int i; 3984 { 3985 return p[i]; 3986 } 3987 static char *f (char * (*g) (char **, int), char **p, ...) 3988 { 3989 char *s; 3990 va_list v; 3991 va_start (v,p); 3992 s = g (p, va_arg (v,int)); 3993 va_end (v); 3994 return s; 3995 } 3996 3997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3998 function prototypes and stuff, but not '\xHH' hex character constants. 3999 These don't provoke an error unfortunately, instead are silently treated 4000 as 'x'. The following induces an error, until -std is added to get 4001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4002 array size at least. It's necessary to write '\x00'==0 to get something 4003 that's true only with -std. */ 4004 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4005 4006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4007 inside strings and character constants. */ 4008 #define FOO(x) 'x' 4009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4010 4011 int test (int i, double x); 4012 struct s1 {int (*f) (int a);}; 4013 struct s2 {int (*f) (double a);}; 4014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4015 int argc; 4016 char **argv; 4017 int 4018 main () 4019 { 4020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4021 ; 4022 return 0; 4023 } 4024 _ACEOF 4025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4027 do 4028 CC="$ac_save_CC $ac_arg" 4029 if ac_fn_c_try_compile "$LINENO"; then : 4030 ac_cv_prog_cc_c89=$ac_arg 4031 fi 4032 rm -f core conftest.err conftest.$ac_objext 4033 test "x$ac_cv_prog_cc_c89" != "xno" && break 4034 done 4035 rm -f conftest.$ac_ext 4036 CC=$ac_save_CC 4037 4038 fi 4039 # AC_CACHE_VAL 4040 case "x$ac_cv_prog_cc_c89" in 4041 x) 4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4043 $as_echo "none needed" >&6; } ;; 4044 xno) 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4046 $as_echo "unsupported" >&6; } ;; 4047 *) 4048 CC="$CC $ac_cv_prog_cc_c89" 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4050 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4051 esac 4052 if test "x$ac_cv_prog_cc_c89" != xno; then : 4053 4054 fi 4055 4056 ac_ext=c 4057 ac_cpp='$CPP $CPPFLAGS' 4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4061 DEPDIR="${am__leading_dot}deps" 4062 4063 ac_config_commands="$ac_config_commands depfiles" 4064 4065 4066 am_make=${MAKE-make} 4067 cat > confinc << 'END' 4068 am__doit: 4069 @echo this is the am__doit target 4070 .PHONY: am__doit 4071 END 4072 # If we don't find an include directive, just comment out the code. 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4074 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4075 am__include="#" 4076 am__quote= 4077 _am_result=none 4078 # First try GNU make style include. 4079 echo "include confinc" > confmf 4080 # Ignore all kinds of additional output from `make'. 4081 case `$am_make -s -f confmf 2> /dev/null` in #( 4082 *the\ am__doit\ target*) 4083 am__include=include 4084 am__quote= 4085 _am_result=GNU 4086 ;; 4087 esac 4088 # Now try BSD make style include. 4089 if test "$am__include" = "#"; then 4090 echo '.include "confinc"' > confmf 4091 case `$am_make -s -f confmf 2> /dev/null` in #( 4092 *the\ am__doit\ target*) 4093 am__include=.include 4094 am__quote="\"" 4095 _am_result=BSD 4096 ;; 4097 esac 4098 fi 4099 4100 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4102 $as_echo "$_am_result" >&6; } 4103 rm -f confinc confmf 4104 4105 # Check whether --enable-dependency-tracking was given. 4106 if test "${enable_dependency_tracking+set}" = set; then : 4107 enableval=$enable_dependency_tracking; 4108 fi 4109 4110 if test "x$enable_dependency_tracking" != xno; then 4111 am_depcomp="$ac_aux_dir/depcomp" 4112 AMDEPBACKSLASH='\' 4113 fi 4114 if test "x$enable_dependency_tracking" != xno; then 4115 AMDEP_TRUE= 4116 AMDEP_FALSE='#' 4117 else 4118 AMDEP_TRUE='#' 4119 AMDEP_FALSE= 4120 fi 4121 4122 4123 4124 depcc="$CC" am_compiler_list= 4125 4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4127 $as_echo_n "checking dependency style of $depcc... " >&6; } 4128 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4129 $as_echo_n "(cached) " >&6 4130 else 4131 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4132 # We make a subdir and do the tests there. Otherwise we can end up 4133 # making bogus files that we don't know about and never remove. For 4134 # instance it was reported that on HP-UX the gcc test will end up 4135 # making a dummy file named `D' -- because `-MD' means `put the output 4136 # in D'. 4137 mkdir conftest.dir 4138 # Copy depcomp to subdir because otherwise we won't find it if we're 4139 # using a relative directory. 4140 cp "$am_depcomp" conftest.dir 4141 cd conftest.dir 4142 # We will build objects and dependencies in a subdirectory because 4143 # it helps to detect inapplicable dependency modes. For instance 4144 # both Tru64's cc and ICC support -MD to output dependencies as a 4145 # side effect of compilation, but ICC will put the dependencies in 4146 # the current directory while Tru64 will put them in the object 4147 # directory. 4148 mkdir sub 4149 4150 am_cv_CC_dependencies_compiler_type=none 4151 if test "$am_compiler_list" = ""; then 4152 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4153 fi 4154 am__universal=false 4155 case " $depcc " in #( 4156 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4157 esac 4158 4159 for depmode in $am_compiler_list; do 4160 # Setup a source with many dependencies, because some compilers 4161 # like to wrap large dependency lists on column 80 (with \), and 4162 # we should not choose a depcomp mode which is confused by this. 4163 # 4164 # We need to recreate these files for each test, as the compiler may 4165 # overwrite some of them when testing with obscure command lines. 4166 # This happens at least with the AIX C compiler. 4167 : > sub/conftest.c 4168 for i in 1 2 3 4 5 6; do 4169 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4170 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4171 # Solaris 8's {/usr,}/bin/sh. 4172 touch sub/conftst$i.h 4173 done 4174 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4175 4176 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4177 # mode. It turns out that the SunPro C++ compiler does not properly 4178 # handle `-M -o', and we need to detect this. Also, some Intel 4179 # versions had trouble with output in subdirs 4180 am__obj=sub/conftest.${OBJEXT-o} 4181 am__minus_obj="-o $am__obj" 4182 case $depmode in 4183 gcc) 4184 # This depmode causes a compiler race in universal mode. 4185 test "$am__universal" = false || continue 4186 ;; 4187 nosideeffect) 4188 # after this tag, mechanisms are not by side-effect, so they'll 4189 # only be used when explicitly requested 4190 if test "x$enable_dependency_tracking" = xyes; then 4191 continue 4192 else 4193 break 4194 fi 4195 ;; 4196 msvisualcpp | msvcmsys) 4197 # This compiler won't grok `-c -o', but also, the minuso test has 4198 # not run yet. These depmodes are late enough in the game, and 4199 # so weak that their functioning should not be impacted. 4200 am__obj=conftest.${OBJEXT-o} 4201 am__minus_obj= 4202 ;; 4203 none) break ;; 4204 esac 4205 if depmode=$depmode \ 4206 source=sub/conftest.c object=$am__obj \ 4207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4208 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4209 >/dev/null 2>conftest.err && 4210 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4211 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4212 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4213 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4214 # icc doesn't choke on unknown options, it will just issue warnings 4215 # or remarks (even with -Werror). So we grep stderr for any message 4216 # that says an option was ignored or not supported. 4217 # When given -MP, icc 7.0 and 7.1 complain thusly: 4218 # icc: Command line warning: ignoring option '-M'; no argument required 4219 # The diagnosis changed in icc 8.0: 4220 # icc: Command line remark: option '-MP' not supported 4221 if (grep 'ignoring option' conftest.err || 4222 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4223 am_cv_CC_dependencies_compiler_type=$depmode 4224 break 4225 fi 4226 fi 4227 done 4228 4229 cd .. 4230 rm -rf conftest.dir 4231 else 4232 am_cv_CC_dependencies_compiler_type=none 4233 fi 4234 4235 fi 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4237 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4238 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4239 4240 if 4241 test "x$enable_dependency_tracking" != xno \ 4242 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4243 am__fastdepCC_TRUE= 4244 am__fastdepCC_FALSE='#' 4245 else 4246 am__fastdepCC_TRUE='#' 4247 am__fastdepCC_FALSE= 4248 fi 4249 4250 4251 ac_ext=cpp 4252 ac_cpp='$CXXCPP $CPPFLAGS' 4253 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4254 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4255 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4256 if test -z "$CXX"; then 4257 if test -n "$CCC"; then 4258 CXX=$CCC 4259 else 4260 if test -n "$ac_tool_prefix"; then 4261 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4262 do 4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4266 $as_echo_n "checking for $ac_word... " >&6; } 4267 if test "${ac_cv_prog_CXX+set}" = set; then : 4268 $as_echo_n "(cached) " >&6 4269 else 4270 if test -n "$CXX"; then 4271 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4272 else 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274 for as_dir in $PATH 4275 do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4280 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4282 break 2 4283 fi 4284 done 4285 done 4286 IFS=$as_save_IFS 4287 4288 fi 4289 fi 4290 CXX=$ac_cv_prog_CXX 4291 if test -n "$CXX"; then 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4293 $as_echo "$CXX" >&6; } 4294 else 4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4296 $as_echo "no" >&6; } 4297 fi 4298 4299 4300 test -n "$CXX" && break 4301 done 4302 fi 4303 if test -z "$CXX"; then 4304 ac_ct_CXX=$CXX 4305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4306 do 4307 # Extract the first word of "$ac_prog", so it can be a program name with args. 4308 set dummy $ac_prog; ac_word=$2 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4310 $as_echo_n "checking for $ac_word... " >&6; } 4311 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4312 $as_echo_n "(cached) " >&6 4313 else 4314 if test -n "$ac_ct_CXX"; then 4315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4316 else 4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4318 for as_dir in $PATH 4319 do 4320 IFS=$as_save_IFS 4321 test -z "$as_dir" && as_dir=. 4322 for ac_exec_ext in '' $ac_executable_extensions; do 4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4324 ac_cv_prog_ac_ct_CXX="$ac_prog" 4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4326 break 2 4327 fi 4328 done 4329 done 4330 IFS=$as_save_IFS 4331 4332 fi 4333 fi 4334 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4335 if test -n "$ac_ct_CXX"; then 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4337 $as_echo "$ac_ct_CXX" >&6; } 4338 else 4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4340 $as_echo "no" >&6; } 4341 fi 4342 4343 4344 test -n "$ac_ct_CXX" && break 4345 done 4346 4347 if test "x$ac_ct_CXX" = x; then 4348 CXX="g++" 4349 else 4350 case $cross_compiling:$ac_tool_warned in 4351 yes:) 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4354 ac_tool_warned=yes ;; 4355 esac 4356 CXX=$ac_ct_CXX 4357 fi 4358 fi 4359 4360 fi 4361 fi 4362 # Provide some information about the compiler. 4363 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4364 set X $ac_compile 4365 ac_compiler=$2 4366 for ac_option in --version -v -V -qversion; do 4367 { { ac_try="$ac_compiler $ac_option >&5" 4368 case "(($ac_try" in 4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4370 *) ac_try_echo=$ac_try;; 4371 esac 4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4373 $as_echo "$ac_try_echo"; } >&5 4374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4375 ac_status=$? 4376 if test -s conftest.err; then 4377 sed '10a\ 4378 ... rest of stderr output deleted ... 4379 10q' conftest.err >conftest.er1 4380 cat conftest.er1 >&5 4381 rm -f conftest.er1 conftest.err 4382 fi 4383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4384 test $ac_status = 0; } 4385 done 4386 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4388 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4389 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4390 $as_echo_n "(cached) " >&6 4391 else 4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4393 /* end confdefs.h. */ 4394 4395 int 4396 main () 4397 { 4398 #ifndef __GNUC__ 4399 choke me 4400 #endif 4401 4402 ; 4403 return 0; 4404 } 4405 _ACEOF 4406 if ac_fn_cxx_try_compile "$LINENO"; then : 4407 ac_compiler_gnu=yes 4408 else 4409 ac_compiler_gnu=no 4410 fi 4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4412 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4413 4414 fi 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4416 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4417 if test $ac_compiler_gnu = yes; then 4418 GXX=yes 4419 else 4420 GXX= 4421 fi 4422 ac_test_CXXFLAGS=${CXXFLAGS+set} 4423 ac_save_CXXFLAGS=$CXXFLAGS 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4425 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4426 if test "${ac_cv_prog_cxx_g+set}" = set; then : 4427 $as_echo_n "(cached) " >&6 4428 else 4429 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4430 ac_cxx_werror_flag=yes 4431 ac_cv_prog_cxx_g=no 4432 CXXFLAGS="-g" 4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434 /* end confdefs.h. */ 4435 4436 int 4437 main () 4438 { 4439 4440 ; 4441 return 0; 4442 } 4443 _ACEOF 4444 if ac_fn_cxx_try_compile "$LINENO"; then : 4445 ac_cv_prog_cxx_g=yes 4446 else 4447 CXXFLAGS="" 4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4449 /* end confdefs.h. */ 4450 4451 int 4452 main () 4453 { 4454 4455 ; 4456 return 0; 4457 } 4458 _ACEOF 4459 if ac_fn_cxx_try_compile "$LINENO"; then : 4460 4461 else 4462 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4463 CXXFLAGS="-g" 4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4465 /* end confdefs.h. */ 4466 4467 int 4468 main () 4469 { 4470 4471 ; 4472 return 0; 4473 } 4474 _ACEOF 4475 if ac_fn_cxx_try_compile "$LINENO"; then : 4476 ac_cv_prog_cxx_g=yes 4477 fi 4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4479 fi 4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4481 fi 4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4483 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4484 fi 4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4486 $as_echo "$ac_cv_prog_cxx_g" >&6; } 4487 if test "$ac_test_CXXFLAGS" = set; then 4488 CXXFLAGS=$ac_save_CXXFLAGS 4489 elif test $ac_cv_prog_cxx_g = yes; then 4490 if test "$GXX" = yes; then 4491 CXXFLAGS="-g -O2" 4492 else 4493 CXXFLAGS="-g" 4494 fi 4495 else 4496 if test "$GXX" = yes; then 4497 CXXFLAGS="-O2" 4498 else 4499 CXXFLAGS= 4500 fi 4501 fi 4502 ac_ext=c 4503 ac_cpp='$CPP $CPPFLAGS' 4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4507 4508 depcc="$CXX" am_compiler_list= 4509 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4511 $as_echo_n "checking dependency style of $depcc... " >&6; } 4512 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 4513 $as_echo_n "(cached) " >&6 4514 else 4515 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4516 # We make a subdir and do the tests there. Otherwise we can end up 4517 # making bogus files that we don't know about and never remove. For 4518 # instance it was reported that on HP-UX the gcc test will end up 4519 # making a dummy file named `D' -- because `-MD' means `put the output 4520 # in D'. 4521 mkdir conftest.dir 4522 # Copy depcomp to subdir because otherwise we won't find it if we're 4523 # using a relative directory. 4524 cp "$am_depcomp" conftest.dir 4525 cd conftest.dir 4526 # We will build objects and dependencies in a subdirectory because 4527 # it helps to detect inapplicable dependency modes. For instance 4528 # both Tru64's cc and ICC support -MD to output dependencies as a 4529 # side effect of compilation, but ICC will put the dependencies in 4530 # the current directory while Tru64 will put them in the object 4531 # directory. 4532 mkdir sub 4533 4534 am_cv_CXX_dependencies_compiler_type=none 4535 if test "$am_compiler_list" = ""; then 4536 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4537 fi 4538 am__universal=false 4539 case " $depcc " in #( 4540 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4541 esac 4542 4543 for depmode in $am_compiler_list; do 4544 # Setup a source with many dependencies, because some compilers 4545 # like to wrap large dependency lists on column 80 (with \), and 4546 # we should not choose a depcomp mode which is confused by this. 4547 # 4548 # We need to recreate these files for each test, as the compiler may 4549 # overwrite some of them when testing with obscure command lines. 4550 # This happens at least with the AIX C compiler. 4551 : > sub/conftest.c 4552 for i in 1 2 3 4 5 6; do 4553 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4554 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4555 # Solaris 8's {/usr,}/bin/sh. 4556 touch sub/conftst$i.h 4557 done 4558 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4559 4560 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4561 # mode. It turns out that the SunPro C++ compiler does not properly 4562 # handle `-M -o', and we need to detect this. Also, some Intel 4563 # versions had trouble with output in subdirs 4564 am__obj=sub/conftest.${OBJEXT-o} 4565 am__minus_obj="-o $am__obj" 4566 case $depmode in 4567 gcc) 4568 # This depmode causes a compiler race in universal mode. 4569 test "$am__universal" = false || continue 4570 ;; 4571 nosideeffect) 4572 # after this tag, mechanisms are not by side-effect, so they'll 4573 # only be used when explicitly requested 4574 if test "x$enable_dependency_tracking" = xyes; then 4575 continue 4576 else 4577 break 4578 fi 4579 ;; 4580 msvisualcpp | msvcmsys) 4581 # This compiler won't grok `-c -o', but also, the minuso test has 4582 # not run yet. These depmodes are late enough in the game, and 4583 # so weak that their functioning should not be impacted. 4584 am__obj=conftest.${OBJEXT-o} 4585 am__minus_obj= 4586 ;; 4587 none) break ;; 4588 esac 4589 if depmode=$depmode \ 4590 source=sub/conftest.c object=$am__obj \ 4591 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4592 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4593 >/dev/null 2>conftest.err && 4594 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4595 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4596 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4597 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4598 # icc doesn't choke on unknown options, it will just issue warnings 4599 # or remarks (even with -Werror). So we grep stderr for any message 4600 # that says an option was ignored or not supported. 4601 # When given -MP, icc 7.0 and 7.1 complain thusly: 4602 # icc: Command line warning: ignoring option '-M'; no argument required 4603 # The diagnosis changed in icc 8.0: 4604 # icc: Command line remark: option '-MP' not supported 4605 if (grep 'ignoring option' conftest.err || 4606 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4607 am_cv_CXX_dependencies_compiler_type=$depmode 4608 break 4609 fi 4610 fi 4611 done 4612 4613 cd .. 4614 rm -rf conftest.dir 4615 else 4616 am_cv_CXX_dependencies_compiler_type=none 4617 fi 4618 4619 fi 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4621 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4622 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4623 4624 if 4625 test "x$enable_dependency_tracking" != xno \ 4626 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4627 am__fastdepCXX_TRUE= 4628 am__fastdepCXX_FALSE='#' 4629 else 4630 am__fastdepCXX_TRUE='#' 4631 am__fastdepCXX_FALSE= 4632 fi 4633 4634 4635 CFLAGS=$save_CFLAGS 4636 4637 4638 4639 4640 4641 # By default we simply use the C compiler to build assembly code. 4642 4643 test "${CCAS+set}" = set || CCAS=$CC 4644 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4645 4646 4647 4648 depcc="$CCAS" am_compiler_list= 4649 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4651 $as_echo_n "checking dependency style of $depcc... " >&6; } 4652 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then : 4653 $as_echo_n "(cached) " >&6 4654 else 4655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4656 # We make a subdir and do the tests there. Otherwise we can end up 4657 # making bogus files that we don't know about and never remove. For 4658 # instance it was reported that on HP-UX the gcc test will end up 4659 # making a dummy file named `D' -- because `-MD' means `put the output 4660 # in D'. 4661 mkdir conftest.dir 4662 # Copy depcomp to subdir because otherwise we won't find it if we're 4663 # using a relative directory. 4664 cp "$am_depcomp" conftest.dir 4665 cd conftest.dir 4666 # We will build objects and dependencies in a subdirectory because 4667 # it helps to detect inapplicable dependency modes. For instance 4668 # both Tru64's cc and ICC support -MD to output dependencies as a 4669 # side effect of compilation, but ICC will put the dependencies in 4670 # the current directory while Tru64 will put them in the object 4671 # directory. 4672 mkdir sub 4673 4674 am_cv_CCAS_dependencies_compiler_type=none 4675 if test "$am_compiler_list" = ""; then 4676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4677 fi 4678 am__universal=false 4679 4680 4681 for depmode in $am_compiler_list; do 4682 # Setup a source with many dependencies, because some compilers 4683 # like to wrap large dependency lists on column 80 (with \), and 4684 # we should not choose a depcomp mode which is confused by this. 4685 # 4686 # We need to recreate these files for each test, as the compiler may 4687 # overwrite some of them when testing with obscure command lines. 4688 # This happens at least with the AIX C compiler. 4689 : > sub/conftest.c 4690 for i in 1 2 3 4 5 6; do 4691 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4692 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4693 # Solaris 8's {/usr,}/bin/sh. 4694 touch sub/conftst$i.h 4695 done 4696 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4697 4698 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4699 # mode. It turns out that the SunPro C++ compiler does not properly 4700 # handle `-M -o', and we need to detect this. Also, some Intel 4701 # versions had trouble with output in subdirs 4702 am__obj=sub/conftest.${OBJEXT-o} 4703 am__minus_obj="-o $am__obj" 4704 case $depmode in 4705 gcc) 4706 # This depmode causes a compiler race in universal mode. 4707 test "$am__universal" = false || continue 4708 ;; 4709 nosideeffect) 4710 # after this tag, mechanisms are not by side-effect, so they'll 4711 # only be used when explicitly requested 4712 if test "x$enable_dependency_tracking" = xyes; then 4713 continue 4714 else 4715 break 4716 fi 4717 ;; 4718 msvisualcpp | msvcmsys) 4719 # This compiler won't grok `-c -o', but also, the minuso test has 4720 # not run yet. These depmodes are late enough in the game, and 4721 # so weak that their functioning should not be impacted. 4722 am__obj=conftest.${OBJEXT-o} 4723 am__minus_obj= 4724 ;; 4725 none) break ;; 4726 esac 4727 if depmode=$depmode \ 4728 source=sub/conftest.c object=$am__obj \ 4729 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4730 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4731 >/dev/null 2>conftest.err && 4732 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4733 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4734 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4735 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4736 # icc doesn't choke on unknown options, it will just issue warnings 4737 # or remarks (even with -Werror). So we grep stderr for any message 4738 # that says an option was ignored or not supported. 4739 # When given -MP, icc 7.0 and 7.1 complain thusly: 4740 # icc: Command line warning: ignoring option '-M'; no argument required 4741 # The diagnosis changed in icc 8.0: 4742 # icc: Command line remark: option '-MP' not supported 4743 if (grep 'ignoring option' conftest.err || 4744 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4745 am_cv_CCAS_dependencies_compiler_type=$depmode 4746 break 4747 fi 4748 fi 4749 done 4750 4751 cd .. 4752 rm -rf conftest.dir 4753 else 4754 am_cv_CCAS_dependencies_compiler_type=none 4755 fi 4756 4757 fi 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4759 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4760 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4761 4762 if 4763 test "x$enable_dependency_tracking" != xno \ 4764 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4765 am__fastdepCCAS_TRUE= 4766 am__fastdepCCAS_FALSE='#' 4767 else 4768 am__fastdepCCAS_TRUE='#' 4769 am__fastdepCCAS_FALSE= 4770 fi 4771 4772 4773 if test "x$CC" != xcc; then 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4775 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4776 else 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4778 $as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4779 fi 4780 set dummy $CC; ac_cc=`$as_echo "$2" | 4781 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4782 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 4783 $as_echo_n "(cached) " >&6 4784 else 4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4786 /* end confdefs.h. */ 4787 4788 int 4789 main () 4790 { 4791 4792 ; 4793 return 0; 4794 } 4795 _ACEOF 4796 # Make sure it works both with $CC and with simple cc. 4797 # We do the test twice because some compilers refuse to overwrite an 4798 # existing .o file with -o, though they will create one. 4799 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4800 rm -f conftest2.* 4801 if { { case "(($ac_try" in 4802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4803 *) ac_try_echo=$ac_try;; 4804 esac 4805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4806 $as_echo "$ac_try_echo"; } >&5 4807 (eval "$ac_try") 2>&5 4808 ac_status=$? 4809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4810 test $ac_status = 0; } && 4811 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4813 *) ac_try_echo=$ac_try;; 4814 esac 4815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4816 $as_echo "$ac_try_echo"; } >&5 4817 (eval "$ac_try") 2>&5 4818 ac_status=$? 4819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4820 test $ac_status = 0; }; 4821 then 4822 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4823 if test "x$CC" != xcc; then 4824 # Test first that cc exists at all. 4825 if { ac_try='cc -c conftest.$ac_ext >&5' 4826 { { case "(($ac_try" in 4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4828 *) ac_try_echo=$ac_try;; 4829 esac 4830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4831 $as_echo "$ac_try_echo"; } >&5 4832 (eval "$ac_try") 2>&5 4833 ac_status=$? 4834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4835 test $ac_status = 0; }; }; then 4836 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4837 rm -f conftest2.* 4838 if { { case "(($ac_try" in 4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4840 *) ac_try_echo=$ac_try;; 4841 esac 4842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4843 $as_echo "$ac_try_echo"; } >&5 4844 (eval "$ac_try") 2>&5 4845 ac_status=$? 4846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4847 test $ac_status = 0; } && 4848 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4850 *) ac_try_echo=$ac_try;; 4851 esac 4852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4853 $as_echo "$ac_try_echo"; } >&5 4854 (eval "$ac_try") 2>&5 4855 ac_status=$? 4856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4857 test $ac_status = 0; }; 4858 then 4859 # cc works too. 4860 : 4861 else 4862 # cc exists but doesn't like -o. 4863 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4864 fi 4865 fi 4866 fi 4867 else 4868 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4869 fi 4870 rm -f core conftest* 4871 4872 fi 4873 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4875 $as_echo "yes" >&6; } 4876 else 4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4878 $as_echo "no" >&6; } 4879 4880 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4881 4882 fi 4883 4884 # FIXME: we rely on the cache variable name because 4885 # there is no other way. 4886 set dummy $CC 4887 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4888 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4889 if test "$am_t" != yes; then 4890 # Losing compiler, so override with the script. 4891 # FIXME: It is wrong to rewrite CC. 4892 # But if we don't then we get into trouble of one sort or another. 4893 # A longer-term fix would be to have automake use am__CC in this case, 4894 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4895 CC="$am_aux_dir/compile $CC" 4896 fi 4897 4898 4899 case `pwd` in 4900 *\ * | *\ *) 4901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4902 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4903 esac 4904 4905 4906 4907 macro_version='2.2.7a' 4908 macro_revision='1.3134' 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 ltmain="$ac_aux_dir/ltmain.sh" 4923 4924 # Backslashify metacharacters that are still active within 4925 # double-quoted strings. 4926 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4927 4928 # Same as above, but do not quote variable references. 4929 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4930 4931 # Sed substitution to delay expansion of an escaped shell variable in a 4932 # double_quote_subst'ed string. 4933 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4934 4935 # Sed substitution to delay expansion of an escaped single quote. 4936 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4937 4938 # Sed substitution to avoid accidental globbing in evaled expressions 4939 no_glob_subst='s/\*/\\\*/g' 4940 4941 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4944 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4946 $as_echo_n "checking how to print strings... " >&6; } 4947 # Test print first, because it will be a builtin if present. 4948 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4949 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4950 ECHO='print -r --' 4951 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4952 ECHO='printf %s\n' 4953 else 4954 # Use this function as a fallback that always works. 4955 func_fallback_echo () 4956 { 4957 eval 'cat <<_LTECHO_EOF 4958 $1 4959 _LTECHO_EOF' 4960 } 4961 ECHO='func_fallback_echo' 4962 fi 4963 4964 # func_echo_all arg... 4965 # Invoke $ECHO with all args, space-separated. 4966 func_echo_all () 4967 { 4968 $ECHO "" 4969 } 4970 4971 case "$ECHO" in 4972 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4973 $as_echo "printf" >&6; } ;; 4974 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4975 $as_echo "print -r" >&6; } ;; 4976 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4977 $as_echo "cat" >&6; } ;; 4978 esac 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4994 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4995 if test "${ac_cv_path_SED+set}" = set; then : 4996 $as_echo_n "(cached) " >&6 4997 else 4998 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4999 for ac_i in 1 2 3 4 5 6 7; do 5000 ac_script="$ac_script$as_nl$ac_script" 5001 done 5002 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5003 { ac_script=; unset ac_script;} 5004 if test -z "$SED"; then 5005 ac_path_SED_found=false 5006 # Loop through the user's path and test for each of PROGNAME-LIST 5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5008 for as_dir in $PATH 5009 do 5010 IFS=$as_save_IFS 5011 test -z "$as_dir" && as_dir=. 5012 for ac_prog in sed gsed; do 5013 for ac_exec_ext in '' $ac_executable_extensions; do 5014 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5015 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5016 # Check for GNU ac_path_SED and select it if it is found. 5017 # Check for GNU $ac_path_SED 5018 case `"$ac_path_SED" --version 2>&1` in 5019 *GNU*) 5020 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5021 *) 5022 ac_count=0 5023 $as_echo_n 0123456789 >"conftest.in" 5024 while : 5025 do 5026 cat "conftest.in" "conftest.in" >"conftest.tmp" 5027 mv "conftest.tmp" "conftest.in" 5028 cp "conftest.in" "conftest.nl" 5029 $as_echo '' >> "conftest.nl" 5030 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5032 as_fn_arith $ac_count + 1 && ac_count=$as_val 5033 if test $ac_count -gt ${ac_path_SED_max-0}; then 5034 # Best one so far, save it but keep looking for a better one 5035 ac_cv_path_SED="$ac_path_SED" 5036 ac_path_SED_max=$ac_count 5037 fi 5038 # 10*(2^10) chars as input seems more than enough 5039 test $ac_count -gt 10 && break 5040 done 5041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5042 esac 5043 5044 $ac_path_SED_found && break 3 5045 done 5046 done 5047 done 5048 IFS=$as_save_IFS 5049 if test -z "$ac_cv_path_SED"; then 5050 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5051 fi 5052 else 5053 ac_cv_path_SED=$SED 5054 fi 5055 5056 fi 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5058 $as_echo "$ac_cv_path_SED" >&6; } 5059 SED="$ac_cv_path_SED" 5060 rm -f conftest.sed 5061 5062 test -z "$SED" && SED=sed 5063 Xsed="$SED -e 1s/^X//" 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5076 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5077 if test "${ac_cv_path_GREP+set}" = set; then : 5078 $as_echo_n "(cached) " >&6 5079 else 5080 if test -z "$GREP"; then 5081 ac_path_GREP_found=false 5082 # Loop through the user's path and test for each of PROGNAME-LIST 5083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5085 do 5086 IFS=$as_save_IFS 5087 test -z "$as_dir" && as_dir=. 5088 for ac_prog in grep ggrep; do 5089 for ac_exec_ext in '' $ac_executable_extensions; do 5090 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5091 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5092 # Check for GNU ac_path_GREP and select it if it is found. 5093 # Check for GNU $ac_path_GREP 5094 case `"$ac_path_GREP" --version 2>&1` in 5095 *GNU*) 5096 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5097 *) 5098 ac_count=0 5099 $as_echo_n 0123456789 >"conftest.in" 5100 while : 5101 do 5102 cat "conftest.in" "conftest.in" >"conftest.tmp" 5103 mv "conftest.tmp" "conftest.in" 5104 cp "conftest.in" "conftest.nl" 5105 $as_echo 'GREP' >> "conftest.nl" 5106 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5107 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5108 as_fn_arith $ac_count + 1 && ac_count=$as_val 5109 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5110 # Best one so far, save it but keep looking for a better one 5111 ac_cv_path_GREP="$ac_path_GREP" 5112 ac_path_GREP_max=$ac_count 5113 fi 5114 # 10*(2^10) chars as input seems more than enough 5115 test $ac_count -gt 10 && break 5116 done 5117 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5118 esac 5119 5120 $ac_path_GREP_found && break 3 5121 done 5122 done 5123 done 5124 IFS=$as_save_IFS 5125 if test -z "$ac_cv_path_GREP"; then 5126 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5127 fi 5128 else 5129 ac_cv_path_GREP=$GREP 5130 fi 5131 5132 fi 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5134 $as_echo "$ac_cv_path_GREP" >&6; } 5135 GREP="$ac_cv_path_GREP" 5136 5137 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5139 $as_echo_n "checking for egrep... " >&6; } 5140 if test "${ac_cv_path_EGREP+set}" = set; then : 5141 $as_echo_n "(cached) " >&6 5142 else 5143 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5144 then ac_cv_path_EGREP="$GREP -E" 5145 else 5146 if test -z "$EGREP"; then 5147 ac_path_EGREP_found=false 5148 # Loop through the user's path and test for each of PROGNAME-LIST 5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5151 do 5152 IFS=$as_save_IFS 5153 test -z "$as_dir" && as_dir=. 5154 for ac_prog in egrep; do 5155 for ac_exec_ext in '' $ac_executable_extensions; do 5156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5157 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5158 # Check for GNU ac_path_EGREP and select it if it is found. 5159 # Check for GNU $ac_path_EGREP 5160 case `"$ac_path_EGREP" --version 2>&1` in 5161 *GNU*) 5162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5163 *) 5164 ac_count=0 5165 $as_echo_n 0123456789 >"conftest.in" 5166 while : 5167 do 5168 cat "conftest.in" "conftest.in" >"conftest.tmp" 5169 mv "conftest.tmp" "conftest.in" 5170 cp "conftest.in" "conftest.nl" 5171 $as_echo 'EGREP' >> "conftest.nl" 5172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5174 as_fn_arith $ac_count + 1 && ac_count=$as_val 5175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5176 # Best one so far, save it but keep looking for a better one 5177 ac_cv_path_EGREP="$ac_path_EGREP" 5178 ac_path_EGREP_max=$ac_count 5179 fi 5180 # 10*(2^10) chars as input seems more than enough 5181 test $ac_count -gt 10 && break 5182 done 5183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5184 esac 5185 5186 $ac_path_EGREP_found && break 3 5187 done 5188 done 5189 done 5190 IFS=$as_save_IFS 5191 if test -z "$ac_cv_path_EGREP"; then 5192 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5193 fi 5194 else 5195 ac_cv_path_EGREP=$EGREP 5196 fi 5197 5198 fi 5199 fi 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5201 $as_echo "$ac_cv_path_EGREP" >&6; } 5202 EGREP="$ac_cv_path_EGREP" 5203 5204 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5206 $as_echo_n "checking for fgrep... " >&6; } 5207 if test "${ac_cv_path_FGREP+set}" = set; then : 5208 $as_echo_n "(cached) " >&6 5209 else 5210 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5211 then ac_cv_path_FGREP="$GREP -F" 5212 else 5213 if test -z "$FGREP"; then 5214 ac_path_FGREP_found=false 5215 # Loop through the user's path and test for each of PROGNAME-LIST 5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5218 do 5219 IFS=$as_save_IFS 5220 test -z "$as_dir" && as_dir=. 5221 for ac_prog in fgrep; do 5222 for ac_exec_ext in '' $ac_executable_extensions; do 5223 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5224 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5225 # Check for GNU ac_path_FGREP and select it if it is found. 5226 # Check for GNU $ac_path_FGREP 5227 case `"$ac_path_FGREP" --version 2>&1` in 5228 *GNU*) 5229 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5230 *) 5231 ac_count=0 5232 $as_echo_n 0123456789 >"conftest.in" 5233 while : 5234 do 5235 cat "conftest.in" "conftest.in" >"conftest.tmp" 5236 mv "conftest.tmp" "conftest.in" 5237 cp "conftest.in" "conftest.nl" 5238 $as_echo 'FGREP' >> "conftest.nl" 5239 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5241 as_fn_arith $ac_count + 1 && ac_count=$as_val 5242 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5243 # Best one so far, save it but keep looking for a better one 5244 ac_cv_path_FGREP="$ac_path_FGREP" 5245 ac_path_FGREP_max=$ac_count 5246 fi 5247 # 10*(2^10) chars as input seems more than enough 5248 test $ac_count -gt 10 && break 5249 done 5250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5251 esac 5252 5253 $ac_path_FGREP_found && break 3 5254 done 5255 done 5256 done 5257 IFS=$as_save_IFS 5258 if test -z "$ac_cv_path_FGREP"; then 5259 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5260 fi 5261 else 5262 ac_cv_path_FGREP=$FGREP 5263 fi 5264 5265 fi 5266 fi 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5268 $as_echo "$ac_cv_path_FGREP" >&6; } 5269 FGREP="$ac_cv_path_FGREP" 5270 5271 5272 test -z "$GREP" && GREP=grep 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 # Check whether --with-gnu-ld was given. 5293 if test "${with_gnu_ld+set}" = set; then : 5294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5295 else 5296 with_gnu_ld=no 5297 fi 5298 5299 ac_prog=ld 5300 if test "$GCC" = yes; then 5301 # Check if gcc -print-prog-name=ld gives a path. 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5303 $as_echo_n "checking for ld used by $CC... " >&6; } 5304 case $host in 5305 *-*-mingw*) 5306 # gcc leaves a trailing carriage return which upsets mingw 5307 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5308 *) 5309 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5310 esac 5311 case $ac_prog in 5312 # Accept absolute paths. 5313 [\\/]* | ?:[\\/]*) 5314 re_direlt='/[^/][^/]*/\.\./' 5315 # Canonicalize the pathname of ld 5316 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5317 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5318 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5319 done 5320 test -z "$LD" && LD="$ac_prog" 5321 ;; 5322 "") 5323 # If it fails, then pretend we aren't using GCC. 5324 ac_prog=ld 5325 ;; 5326 *) 5327 # If it is relative, then search for the first ld in PATH. 5328 with_gnu_ld=unknown 5329 ;; 5330 esac 5331 elif test "$with_gnu_ld" = yes; then 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5333 $as_echo_n "checking for GNU ld... " >&6; } 5334 else 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5336 $as_echo_n "checking for non-GNU ld... " >&6; } 5337 fi 5338 if test "${lt_cv_path_LD+set}" = set; then : 5339 $as_echo_n "(cached) " >&6 5340 else 5341 if test -z "$LD"; then 5342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5343 for ac_dir in $PATH; do 5344 IFS="$lt_save_ifs" 5345 test -z "$ac_dir" && ac_dir=. 5346 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5347 lt_cv_path_LD="$ac_dir/$ac_prog" 5348 # Check to see if the program is GNU ld. I'd rather use --version, 5349 # but apparently some variants of GNU ld only accept -v. 5350 # Break only if it was the GNU/non-GNU ld that we prefer. 5351 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5352 *GNU* | *'with BFD'*) 5353 test "$with_gnu_ld" != no && break 5354 ;; 5355 *) 5356 test "$with_gnu_ld" != yes && break 5357 ;; 5358 esac 5359 fi 5360 done 5361 IFS="$lt_save_ifs" 5362 else 5363 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5364 fi 5365 fi 5366 5367 LD="$lt_cv_path_LD" 5368 if test -n "$LD"; then 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5370 $as_echo "$LD" >&6; } 5371 else 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5373 $as_echo "no" >&6; } 5374 fi 5375 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5377 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5378 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5379 $as_echo_n "(cached) " >&6 5380 else 5381 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5382 case `$LD -v 2>&1 </dev/null` in 5383 *GNU* | *'with BFD'*) 5384 lt_cv_prog_gnu_ld=yes 5385 ;; 5386 *) 5387 lt_cv_prog_gnu_ld=no 5388 ;; 5389 esac 5390 fi 5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5392 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5393 with_gnu_ld=$lt_cv_prog_gnu_ld 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5404 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5405 if test "${lt_cv_path_NM+set}" = set; then : 5406 $as_echo_n "(cached) " >&6 5407 else 5408 if test -n "$NM"; then 5409 # Let the user override the test. 5410 lt_cv_path_NM="$NM" 5411 else 5412 lt_nm_to_check="${ac_tool_prefix}nm" 5413 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5414 lt_nm_to_check="$lt_nm_to_check nm" 5415 fi 5416 for lt_tmp_nm in $lt_nm_to_check; do 5417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5418 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5419 IFS="$lt_save_ifs" 5420 test -z "$ac_dir" && ac_dir=. 5421 tmp_nm="$ac_dir/$lt_tmp_nm" 5422 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5423 # Check to see if the nm accepts a BSD-compat flag. 5424 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5425 # nm: unknown option "B" ignored 5426 # Tru64's nm complains that /dev/null is an invalid object file 5427 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5428 */dev/null* | *'Invalid file or object type'*) 5429 lt_cv_path_NM="$tmp_nm -B" 5430 break 5431 ;; 5432 *) 5433 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5434 */dev/null*) 5435 lt_cv_path_NM="$tmp_nm -p" 5436 break 5437 ;; 5438 *) 5439 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5440 continue # so that we can try to find one that supports BSD flags 5441 ;; 5442 esac 5443 ;; 5444 esac 5445 fi 5446 done 5447 IFS="$lt_save_ifs" 5448 done 5449 : ${lt_cv_path_NM=no} 5450 fi 5451 fi 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5453 $as_echo "$lt_cv_path_NM" >&6; } 5454 if test "$lt_cv_path_NM" != "no"; then 5455 NM="$lt_cv_path_NM" 5456 else 5457 # Didn't find any BSD compatible name lister, look for dumpbin. 5458 if test -n "$DUMPBIN"; then : 5459 # Let the user override the test. 5460 else 5461 if test -n "$ac_tool_prefix"; then 5462 for ac_prog in dumpbin "link -dump" 5463 do 5464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5467 $as_echo_n "checking for $ac_word... " >&6; } 5468 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5469 $as_echo_n "(cached) " >&6 5470 else 5471 if test -n "$DUMPBIN"; then 5472 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5473 else 5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5475 for as_dir in $PATH 5476 do 5477 IFS=$as_save_IFS 5478 test -z "$as_dir" && as_dir=. 5479 for ac_exec_ext in '' $ac_executable_extensions; do 5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5481 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5483 break 2 5484 fi 5485 done 5486 done 5487 IFS=$as_save_IFS 5488 5489 fi 5490 fi 5491 DUMPBIN=$ac_cv_prog_DUMPBIN 5492 if test -n "$DUMPBIN"; then 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5494 $as_echo "$DUMPBIN" >&6; } 5495 else 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5497 $as_echo "no" >&6; } 5498 fi 5499 5500 5501 test -n "$DUMPBIN" && break 5502 done 5503 fi 5504 if test -z "$DUMPBIN"; then 5505 ac_ct_DUMPBIN=$DUMPBIN 5506 for ac_prog in dumpbin "link -dump" 5507 do 5508 # Extract the first word of "$ac_prog", so it can be a program name with args. 5509 set dummy $ac_prog; ac_word=$2 5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5511 $as_echo_n "checking for $ac_word... " >&6; } 5512 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5513 $as_echo_n "(cached) " >&6 5514 else 5515 if test -n "$ac_ct_DUMPBIN"; then 5516 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5517 else 5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5519 for as_dir in $PATH 5520 do 5521 IFS=$as_save_IFS 5522 test -z "$as_dir" && as_dir=. 5523 for ac_exec_ext in '' $ac_executable_extensions; do 5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5525 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5527 break 2 5528 fi 5529 done 5530 done 5531 IFS=$as_save_IFS 5532 5533 fi 5534 fi 5535 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5536 if test -n "$ac_ct_DUMPBIN"; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5538 $as_echo "$ac_ct_DUMPBIN" >&6; } 5539 else 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5541 $as_echo "no" >&6; } 5542 fi 5543 5544 5545 test -n "$ac_ct_DUMPBIN" && break 5546 done 5547 5548 if test "x$ac_ct_DUMPBIN" = x; then 5549 DUMPBIN=":" 5550 else 5551 case $cross_compiling:$ac_tool_warned in 5552 yes:) 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5555 ac_tool_warned=yes ;; 5556 esac 5557 DUMPBIN=$ac_ct_DUMPBIN 5558 fi 5559 fi 5560 5561 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5562 *COFF*) 5563 DUMPBIN="$DUMPBIN -symbols" 5564 ;; 5565 *) 5566 DUMPBIN=: 5567 ;; 5568 esac 5569 fi 5570 5571 if test "$DUMPBIN" != ":"; then 5572 NM="$DUMPBIN" 5573 fi 5574 fi 5575 test -z "$NM" && NM=nm 5576 5577 5578 5579 5580 5581 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5583 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5584 if test "${lt_cv_nm_interface+set}" = set; then : 5585 $as_echo_n "(cached) " >&6 5586 else 5587 lt_cv_nm_interface="BSD nm" 5588 echo "int some_variable = 0;" > conftest.$ac_ext 5589 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5590 (eval "$ac_compile" 2>conftest.err) 5591 cat conftest.err >&5 5592 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5593 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5594 cat conftest.err >&5 5595 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5596 cat conftest.out >&5 5597 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5598 lt_cv_nm_interface="MS dumpbin" 5599 fi 5600 rm -f conftest* 5601 fi 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5603 $as_echo "$lt_cv_nm_interface" >&6; } 5604 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5606 $as_echo_n "checking whether ln -s works... " >&6; } 5607 LN_S=$as_ln_s 5608 if test "$LN_S" = "ln -s"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5610 $as_echo "yes" >&6; } 5611 else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5613 $as_echo "no, using $LN_S" >&6; } 5614 fi 5615 5616 # find the maximum length of command line arguments 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5618 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5619 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5620 $as_echo_n "(cached) " >&6 5621 else 5622 i=0 5623 teststring="ABCD" 5624 5625 case $build_os in 5626 msdosdjgpp*) 5627 # On DJGPP, this test can blow up pretty badly due to problems in libc 5628 # (any single argument exceeding 2000 bytes causes a buffer overrun 5629 # during glob expansion). Even if it were fixed, the result of this 5630 # check would be larger than it should be. 5631 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5632 ;; 5633 5634 gnu*) 5635 # Under GNU Hurd, this test is not required because there is 5636 # no limit to the length of command line arguments. 5637 # Libtool will interpret -1 as no limit whatsoever 5638 lt_cv_sys_max_cmd_len=-1; 5639 ;; 5640 5641 cygwin* | mingw* | cegcc*) 5642 # On Win9x/ME, this test blows up -- it succeeds, but takes 5643 # about 5 minutes as the teststring grows exponentially. 5644 # Worse, since 9x/ME are not pre-emptively multitasking, 5645 # you end up with a "frozen" computer, even though with patience 5646 # the test eventually succeeds (with a max line length of 256k). 5647 # Instead, let's just punt: use the minimum linelength reported by 5648 # all of the supported platforms: 8192 (on NT/2K/XP). 5649 lt_cv_sys_max_cmd_len=8192; 5650 ;; 5651 5652 mint*) 5653 # On MiNT this can take a long time and run out of memory. 5654 lt_cv_sys_max_cmd_len=8192; 5655 ;; 5656 5657 amigaos*) 5658 # On AmigaOS with pdksh, this test takes hours, literally. 5659 # So we just punt and use a minimum line length of 8192. 5660 lt_cv_sys_max_cmd_len=8192; 5661 ;; 5662 5663 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5664 # This has been around since 386BSD, at least. Likely further. 5665 if test -x /sbin/sysctl; then 5666 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5667 elif test -x /usr/sbin/sysctl; then 5668 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5669 else 5670 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5671 fi 5672 # And add a safety zone 5673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5675 ;; 5676 5677 interix*) 5678 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5679 lt_cv_sys_max_cmd_len=196608 5680 ;; 5681 5682 osf*) 5683 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5684 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5685 # nice to cause kernel panics so lets avoid the loop below. 5686 # First set a reasonable default. 5687 lt_cv_sys_max_cmd_len=16384 5688 # 5689 if test -x /sbin/sysconfig; then 5690 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5691 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5692 esac 5693 fi 5694 ;; 5695 sco3.2v5*) 5696 lt_cv_sys_max_cmd_len=102400 5697 ;; 5698 sysv5* | sco5v6* | sysv4.2uw2*) 5699 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5700 if test -n "$kargmax"; then 5701 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5702 else 5703 lt_cv_sys_max_cmd_len=32768 5704 fi 5705 ;; 5706 *) 5707 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5708 if test -n "$lt_cv_sys_max_cmd_len"; then 5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5711 else 5712 # Make teststring a little bigger before we do anything with it. 5713 # a 1K string should be a reasonable start. 5714 for i in 1 2 3 4 5 6 7 8 ; do 5715 teststring=$teststring$teststring 5716 done 5717 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5718 # If test is not a shell built-in, we'll probably end up computing a 5719 # maximum length that is only half of the actual maximum length, but 5720 # we can't tell. 5721 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5722 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5723 test $i != 17 # 1/2 MB should be enough 5724 do 5725 i=`expr $i + 1` 5726 teststring=$teststring$teststring 5727 done 5728 # Only check the string length outside the loop. 5729 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5730 teststring= 5731 # Add a significant safety factor because C++ compilers can tack on 5732 # massive amounts of additional arguments before passing them to the 5733 # linker. It appears as though 1/2 is a usable value. 5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5735 fi 5736 ;; 5737 esac 5738 5739 fi 5740 5741 if test -n $lt_cv_sys_max_cmd_len ; then 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5743 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5744 else 5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5746 $as_echo "none" >&6; } 5747 fi 5748 max_cmd_len=$lt_cv_sys_max_cmd_len 5749 5750 5751 5752 5753 5754 5755 : ${CP="cp -f"} 5756 : ${MV="mv -f"} 5757 : ${RM="rm -f"} 5758 5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5760 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5761 # Try some XSI features 5762 xsi_shell=no 5763 ( _lt_dummy="a/b/c" 5764 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5765 = c,a/b,, \ 5766 && eval 'test $(( 1 + 1 )) -eq 2 \ 5767 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5768 && xsi_shell=yes 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5770 $as_echo "$xsi_shell" >&6; } 5771 5772 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5774 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5775 lt_shell_append=no 5776 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5777 >/dev/null 2>&1 \ 5778 && lt_shell_append=yes 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5780 $as_echo "$lt_shell_append" >&6; } 5781 5782 5783 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5784 lt_unset=unset 5785 else 5786 lt_unset=false 5787 fi 5788 5789 5790 5791 5792 5793 # test EBCDIC or ASCII 5794 case `echo X|tr X '\101'` in 5795 A) # ASCII based system 5796 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5797 lt_SP2NL='tr \040 \012' 5798 lt_NL2SP='tr \015\012 \040\040' 5799 ;; 5800 *) # EBCDIC based system 5801 lt_SP2NL='tr \100 \n' 5802 lt_NL2SP='tr \r\n \100\100' 5803 ;; 5804 esac 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5815 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5816 if test "${lt_cv_ld_reload_flag+set}" = set; then : 5817 $as_echo_n "(cached) " >&6 5818 else 5819 lt_cv_ld_reload_flag='-r' 5820 fi 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5822 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5823 reload_flag=$lt_cv_ld_reload_flag 5824 case $reload_flag in 5825 "" | " "*) ;; 5826 *) reload_flag=" $reload_flag" ;; 5827 esac 5828 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5829 case $host_os in 5830 darwin*) 5831 if test "$GCC" = yes; then 5832 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5833 else 5834 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5835 fi 5836 ;; 5837 esac 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 if test -n "$ac_tool_prefix"; then 5848 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5849 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5851 $as_echo_n "checking for $ac_word... " >&6; } 5852 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5853 $as_echo_n "(cached) " >&6 5854 else 5855 if test -n "$OBJDUMP"; then 5856 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5857 else 5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5859 for as_dir in $PATH 5860 do 5861 IFS=$as_save_IFS 5862 test -z "$as_dir" && as_dir=. 5863 for ac_exec_ext in '' $ac_executable_extensions; do 5864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5865 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5867 break 2 5868 fi 5869 done 5870 done 5871 IFS=$as_save_IFS 5872 5873 fi 5874 fi 5875 OBJDUMP=$ac_cv_prog_OBJDUMP 5876 if test -n "$OBJDUMP"; then 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5878 $as_echo "$OBJDUMP" >&6; } 5879 else 5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5881 $as_echo "no" >&6; } 5882 fi 5883 5884 5885 fi 5886 if test -z "$ac_cv_prog_OBJDUMP"; then 5887 ac_ct_OBJDUMP=$OBJDUMP 5888 # Extract the first word of "objdump", so it can be a program name with args. 5889 set dummy objdump; ac_word=$2 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5891 $as_echo_n "checking for $ac_word... " >&6; } 5892 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5893 $as_echo_n "(cached) " >&6 5894 else 5895 if test -n "$ac_ct_OBJDUMP"; then 5896 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5897 else 5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5899 for as_dir in $PATH 5900 do 5901 IFS=$as_save_IFS 5902 test -z "$as_dir" && as_dir=. 5903 for ac_exec_ext in '' $ac_executable_extensions; do 5904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5905 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5907 break 2 5908 fi 5909 done 5910 done 5911 IFS=$as_save_IFS 5912 5913 fi 5914 fi 5915 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5916 if test -n "$ac_ct_OBJDUMP"; then 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5918 $as_echo "$ac_ct_OBJDUMP" >&6; } 5919 else 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5921 $as_echo "no" >&6; } 5922 fi 5923 5924 if test "x$ac_ct_OBJDUMP" = x; then 5925 OBJDUMP="false" 5926 else 5927 case $cross_compiling:$ac_tool_warned in 5928 yes:) 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5931 ac_tool_warned=yes ;; 5932 esac 5933 OBJDUMP=$ac_ct_OBJDUMP 5934 fi 5935 else 5936 OBJDUMP="$ac_cv_prog_OBJDUMP" 5937 fi 5938 5939 test -z "$OBJDUMP" && OBJDUMP=objdump 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5950 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5951 if test "${lt_cv_deplibs_check_method+set}" = set; then : 5952 $as_echo_n "(cached) " >&6 5953 else 5954 lt_cv_file_magic_cmd='$MAGIC_CMD' 5955 lt_cv_file_magic_test_file= 5956 lt_cv_deplibs_check_method='unknown' 5957 # Need to set the preceding variable on all platforms that support 5958 # interlibrary dependencies. 5959 # 'none' -- dependencies not supported. 5960 # `unknown' -- same as none, but documents that we really don't know. 5961 # 'pass_all' -- all dependencies passed with no checks. 5962 # 'test_compile' -- check by making test program. 5963 # 'file_magic [[regex]]' -- check by looking for files in library path 5964 # which responds to the $file_magic_cmd with a given extended regex. 5965 # If you have `file' or equivalent on your system and you're not sure 5966 # whether `pass_all' will *always* work, you probably want this one. 5967 5968 case $host_os in 5969 aix[4-9]*) 5970 lt_cv_deplibs_check_method=pass_all 5971 ;; 5972 5973 beos*) 5974 lt_cv_deplibs_check_method=pass_all 5975 ;; 5976 5977 bsdi[45]*) 5978 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5979 lt_cv_file_magic_cmd='/usr/bin/file -L' 5980 lt_cv_file_magic_test_file=/shlib/libc.so 5981 ;; 5982 5983 cygwin*) 5984 # func_win32_libid is a shell function defined in ltmain.sh 5985 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5986 lt_cv_file_magic_cmd='func_win32_libid' 5987 ;; 5988 5989 mingw* | pw32*) 5990 # Base MSYS/MinGW do not provide the 'file' command needed by 5991 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5992 # unless we find 'file', for example because we are cross-compiling. 5993 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5994 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5995 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5996 lt_cv_file_magic_cmd='func_win32_libid' 5997 else 5998 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5999 lt_cv_file_magic_cmd='$OBJDUMP -f' 6000 fi 6001 ;; 6002 6003 cegcc*) 6004 # use the weaker test based on 'objdump'. See mingw*. 6005 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6006 lt_cv_file_magic_cmd='$OBJDUMP -f' 6007 ;; 6008 6009 darwin* | rhapsody*) 6010 lt_cv_deplibs_check_method=pass_all 6011 ;; 6012 6013 freebsd* | dragonfly*) 6014 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6015 case $host_cpu in 6016 i*86 ) 6017 # Not sure whether the presence of OpenBSD here was a mistake. 6018 # Let's accept both of them until this is cleared up. 6019 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6020 lt_cv_file_magic_cmd=/usr/bin/file 6021 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6022 ;; 6023 esac 6024 else 6025 lt_cv_deplibs_check_method=pass_all 6026 fi 6027 ;; 6028 6029 gnu*) 6030 lt_cv_deplibs_check_method=pass_all 6031 ;; 6032 6033 haiku*) 6034 lt_cv_deplibs_check_method=pass_all 6035 ;; 6036 6037 hpux10.20* | hpux11*) 6038 lt_cv_file_magic_cmd=/usr/bin/file 6039 case $host_cpu in 6040 ia64*) 6041 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6042 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6043 ;; 6044 hppa*64*) 6045 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]' 6046 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6047 ;; 6048 *) 6049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6050 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6051 ;; 6052 esac 6053 ;; 6054 6055 interix[3-9]*) 6056 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6057 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6058 ;; 6059 6060 irix5* | irix6* | nonstopux*) 6061 case $LD in 6062 *-32|*"-32 ") libmagic=32-bit;; 6063 *-n32|*"-n32 ") libmagic=N32;; 6064 *-64|*"-64 ") libmagic=64-bit;; 6065 *) libmagic=never-match;; 6066 esac 6067 lt_cv_deplibs_check_method=pass_all 6068 ;; 6069 6070 # This must be Linux ELF. 6071 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6072 lt_cv_deplibs_check_method=pass_all 6073 ;; 6074 6075 netbsd*) 6076 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6077 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6078 else 6079 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6080 fi 6081 ;; 6082 6083 newos6*) 6084 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6085 lt_cv_file_magic_cmd=/usr/bin/file 6086 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6087 ;; 6088 6089 *nto* | *qnx*) 6090 lt_cv_deplibs_check_method=pass_all 6091 ;; 6092 6093 openbsd*) 6094 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6095 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6096 else 6097 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6098 fi 6099 ;; 6100 6101 osf3* | osf4* | osf5*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105 rdos*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109 solaris*) 6110 lt_cv_deplibs_check_method=pass_all 6111 ;; 6112 6113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6114 lt_cv_deplibs_check_method=pass_all 6115 ;; 6116 6117 sysv4 | sysv4.3*) 6118 case $host_vendor in 6119 motorola) 6120 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]' 6121 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6122 ;; 6123 ncr) 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 sequent) 6127 lt_cv_file_magic_cmd='/bin/file' 6128 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6129 ;; 6130 sni) 6131 lt_cv_file_magic_cmd='/bin/file' 6132 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6133 lt_cv_file_magic_test_file=/lib/libc.so 6134 ;; 6135 siemens) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 pc) 6139 lt_cv_deplibs_check_method=pass_all 6140 ;; 6141 esac 6142 ;; 6143 6144 tpf*) 6145 lt_cv_deplibs_check_method=pass_all 6146 ;; 6147 esac 6148 6149 fi 6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6151 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6152 file_magic_cmd=$lt_cv_file_magic_cmd 6153 deplibs_check_method=$lt_cv_deplibs_check_method 6154 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 if test -n "$ac_tool_prefix"; then 6168 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6169 set dummy ${ac_tool_prefix}ar; ac_word=$2 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6171 $as_echo_n "checking for $ac_word... " >&6; } 6172 if test "${ac_cv_prog_AR+set}" = set; then : 6173 $as_echo_n "(cached) " >&6 6174 else 6175 if test -n "$AR"; then 6176 ac_cv_prog_AR="$AR" # Let the user override the test. 6177 else 6178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6179 for as_dir in $PATH 6180 do 6181 IFS=$as_save_IFS 6182 test -z "$as_dir" && as_dir=. 6183 for ac_exec_ext in '' $ac_executable_extensions; do 6184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6185 ac_cv_prog_AR="${ac_tool_prefix}ar" 6186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6187 break 2 6188 fi 6189 done 6190 done 6191 IFS=$as_save_IFS 6192 6193 fi 6194 fi 6195 AR=$ac_cv_prog_AR 6196 if test -n "$AR"; then 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6198 $as_echo "$AR" >&6; } 6199 else 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6201 $as_echo "no" >&6; } 6202 fi 6203 6204 6205 fi 6206 if test -z "$ac_cv_prog_AR"; then 6207 ac_ct_AR=$AR 6208 # Extract the first word of "ar", so it can be a program name with args. 6209 set dummy ar; ac_word=$2 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6211 $as_echo_n "checking for $ac_word... " >&6; } 6212 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6213 $as_echo_n "(cached) " >&6 6214 else 6215 if test -n "$ac_ct_AR"; then 6216 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6217 else 6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6219 for as_dir in $PATH 6220 do 6221 IFS=$as_save_IFS 6222 test -z "$as_dir" && as_dir=. 6223 for ac_exec_ext in '' $ac_executable_extensions; do 6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6225 ac_cv_prog_ac_ct_AR="ar" 6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6227 break 2 6228 fi 6229 done 6230 done 6231 IFS=$as_save_IFS 6232 6233 fi 6234 fi 6235 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6236 if test -n "$ac_ct_AR"; then 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6238 $as_echo "$ac_ct_AR" >&6; } 6239 else 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6241 $as_echo "no" >&6; } 6242 fi 6243 6244 if test "x$ac_ct_AR" = x; then 6245 AR="false" 6246 else 6247 case $cross_compiling:$ac_tool_warned in 6248 yes:) 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6251 ac_tool_warned=yes ;; 6252 esac 6253 AR=$ac_ct_AR 6254 fi 6255 else 6256 AR="$ac_cv_prog_AR" 6257 fi 6258 6259 test -z "$AR" && AR=ar 6260 test -z "$AR_FLAGS" && AR_FLAGS=cru 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 if test -n "$ac_tool_prefix"; then 6273 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6274 set dummy ${ac_tool_prefix}strip; ac_word=$2 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6276 $as_echo_n "checking for $ac_word... " >&6; } 6277 if test "${ac_cv_prog_STRIP+set}" = set; then : 6278 $as_echo_n "(cached) " >&6 6279 else 6280 if test -n "$STRIP"; then 6281 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6282 else 6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6284 for as_dir in $PATH 6285 do 6286 IFS=$as_save_IFS 6287 test -z "$as_dir" && as_dir=. 6288 for ac_exec_ext in '' $ac_executable_extensions; do 6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6290 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6292 break 2 6293 fi 6294 done 6295 done 6296 IFS=$as_save_IFS 6297 6298 fi 6299 fi 6300 STRIP=$ac_cv_prog_STRIP 6301 if test -n "$STRIP"; then 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6303 $as_echo "$STRIP" >&6; } 6304 else 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6306 $as_echo "no" >&6; } 6307 fi 6308 6309 6310 fi 6311 if test -z "$ac_cv_prog_STRIP"; then 6312 ac_ct_STRIP=$STRIP 6313 # Extract the first word of "strip", so it can be a program name with args. 6314 set dummy strip; ac_word=$2 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6316 $as_echo_n "checking for $ac_word... " >&6; } 6317 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6318 $as_echo_n "(cached) " >&6 6319 else 6320 if test -n "$ac_ct_STRIP"; then 6321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6322 else 6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6324 for as_dir in $PATH 6325 do 6326 IFS=$as_save_IFS 6327 test -z "$as_dir" && as_dir=. 6328 for ac_exec_ext in '' $ac_executable_extensions; do 6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6330 ac_cv_prog_ac_ct_STRIP="strip" 6331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6332 break 2 6333 fi 6334 done 6335 done 6336 IFS=$as_save_IFS 6337 6338 fi 6339 fi 6340 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6341 if test -n "$ac_ct_STRIP"; then 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6343 $as_echo "$ac_ct_STRIP" >&6; } 6344 else 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6346 $as_echo "no" >&6; } 6347 fi 6348 6349 if test "x$ac_ct_STRIP" = x; then 6350 STRIP=":" 6351 else 6352 case $cross_compiling:$ac_tool_warned in 6353 yes:) 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6356 ac_tool_warned=yes ;; 6357 esac 6358 STRIP=$ac_ct_STRIP 6359 fi 6360 else 6361 STRIP="$ac_cv_prog_STRIP" 6362 fi 6363 6364 test -z "$STRIP" && STRIP=: 6365 6366 6367 6368 6369 6370 6371 if test -n "$ac_tool_prefix"; then 6372 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6373 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6375 $as_echo_n "checking for $ac_word... " >&6; } 6376 if test "${ac_cv_prog_RANLIB+set}" = set; then : 6377 $as_echo_n "(cached) " >&6 6378 else 6379 if test -n "$RANLIB"; then 6380 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6381 else 6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6383 for as_dir in $PATH 6384 do 6385 IFS=$as_save_IFS 6386 test -z "$as_dir" && as_dir=. 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6391 break 2 6392 fi 6393 done 6394 done 6395 IFS=$as_save_IFS 6396 6397 fi 6398 fi 6399 RANLIB=$ac_cv_prog_RANLIB 6400 if test -n "$RANLIB"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6402 $as_echo "$RANLIB" >&6; } 6403 else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6405 $as_echo "no" >&6; } 6406 fi 6407 6408 6409 fi 6410 if test -z "$ac_cv_prog_RANLIB"; then 6411 ac_ct_RANLIB=$RANLIB 6412 # Extract the first word of "ranlib", so it can be a program name with args. 6413 set dummy ranlib; ac_word=$2 6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6415 $as_echo_n "checking for $ac_word... " >&6; } 6416 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6417 $as_echo_n "(cached) " >&6 6418 else 6419 if test -n "$ac_ct_RANLIB"; then 6420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6421 else 6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6423 for as_dir in $PATH 6424 do 6425 IFS=$as_save_IFS 6426 test -z "$as_dir" && as_dir=. 6427 for ac_exec_ext in '' $ac_executable_extensions; do 6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6429 ac_cv_prog_ac_ct_RANLIB="ranlib" 6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6431 break 2 6432 fi 6433 done 6434 done 6435 IFS=$as_save_IFS 6436 6437 fi 6438 fi 6439 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6440 if test -n "$ac_ct_RANLIB"; then 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6442 $as_echo "$ac_ct_RANLIB" >&6; } 6443 else 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6445 $as_echo "no" >&6; } 6446 fi 6447 6448 if test "x$ac_ct_RANLIB" = x; then 6449 RANLIB=":" 6450 else 6451 case $cross_compiling:$ac_tool_warned in 6452 yes:) 6453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6455 ac_tool_warned=yes ;; 6456 esac 6457 RANLIB=$ac_ct_RANLIB 6458 fi 6459 else 6460 RANLIB="$ac_cv_prog_RANLIB" 6461 fi 6462 6463 test -z "$RANLIB" && RANLIB=: 6464 6465 6466 6467 6468 6469 6470 # Determine commands to create old-style static archives. 6471 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6472 old_postinstall_cmds='chmod 644 $oldlib' 6473 old_postuninstall_cmds= 6474 6475 if test -n "$RANLIB"; then 6476 case $host_os in 6477 openbsd*) 6478 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6479 ;; 6480 *) 6481 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6482 ;; 6483 esac 6484 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6485 fi 6486 6487 case $host_os in 6488 darwin*) 6489 lock_old_archive_extraction=yes ;; 6490 *) 6491 lock_old_archive_extraction=no ;; 6492 esac 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 # If no C compiler was specified, use CC. 6533 LTCC=${LTCC-"$CC"} 6534 6535 # If no C compiler flags were specified, use CFLAGS. 6536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6537 6538 # Allow CC to be a program name with arguments. 6539 compiler=$CC 6540 6541 6542 # Check for command to grab the raw symbol name followed by C symbol from nm. 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6544 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6545 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6546 $as_echo_n "(cached) " >&6 6547 else 6548 6549 # These are sane defaults that work on at least a few old systems. 6550 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6551 6552 # Character class describing NM global symbol codes. 6553 symcode='[BCDEGRST]' 6554 6555 # Regexp to match symbols that can be accessed directly from C. 6556 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6557 6558 # Define system-specific variables. 6559 case $host_os in 6560 aix*) 6561 symcode='[BCDT]' 6562 ;; 6563 cygwin* | mingw* | pw32* | cegcc*) 6564 symcode='[ABCDGISTW]' 6565 ;; 6566 hpux*) 6567 if test "$host_cpu" = ia64; then 6568 symcode='[ABCDEGRST]' 6569 fi 6570 ;; 6571 irix* | nonstopux*) 6572 symcode='[BCDEGRST]' 6573 ;; 6574 osf*) 6575 symcode='[BCDEGQRST]' 6576 ;; 6577 solaris*) 6578 symcode='[BDRT]' 6579 ;; 6580 sco3.2v5*) 6581 symcode='[DT]' 6582 ;; 6583 sysv4.2uw2*) 6584 symcode='[DT]' 6585 ;; 6586 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6587 symcode='[ABDT]' 6588 ;; 6589 sysv4) 6590 symcode='[DFNSTU]' 6591 ;; 6592 esac 6593 6594 # If we're using GNU nm, then use its standard symbol codes. 6595 case `$NM -V 2>&1` in 6596 *GNU* | *'with BFD'*) 6597 symcode='[ABCDGIRSTW]' ;; 6598 esac 6599 6600 # Transform an extracted symbol line into a proper C declaration. 6601 # Some systems (esp. on ia64) link data and code symbols differently, 6602 # so use this general approach. 6603 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6604 6605 # Transform an extracted symbol line into symbol name and symbol address 6606 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6607 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'" 6608 6609 # Handle CRLF in mingw tool chain 6610 opt_cr= 6611 case $build_os in 6612 mingw*) 6613 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6614 ;; 6615 esac 6616 6617 # Try without a prefix underscore, then with it. 6618 for ac_symprfx in "" "_"; do 6619 6620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6621 symxfrm="\\1 $ac_symprfx\\2 \\2" 6622 6623 # Write the raw and C identifiers. 6624 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6625 # Fake it for dumpbin and say T for any non-static function 6626 # and D for any global variable. 6627 # Also find C++ and __fastcall symbols from MSVC++, 6628 # which start with @ or ?. 6629 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6630 " {last_section=section; section=\$ 3};"\ 6631 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6632 " \$ 0!~/External *\|/{next};"\ 6633 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6634 " {if(hide[section]) next};"\ 6635 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6636 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6637 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6638 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6639 " ' prfx=^$ac_symprfx" 6640 else 6641 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6642 fi 6643 6644 # Check to see that the pipe works correctly. 6645 pipe_works=no 6646 6647 rm -f conftest* 6648 cat > conftest.$ac_ext <<_LT_EOF 6649 #ifdef __cplusplus 6650 extern "C" { 6651 #endif 6652 char nm_test_var; 6653 void nm_test_func(void); 6654 void nm_test_func(void){} 6655 #ifdef __cplusplus 6656 } 6657 #endif 6658 int main(){nm_test_var='a';nm_test_func();return(0);} 6659 _LT_EOF 6660 6661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6662 (eval $ac_compile) 2>&5 6663 ac_status=$? 6664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6665 test $ac_status = 0; }; then 6666 # Now try to grab the symbols. 6667 nlist=conftest.nm 6668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6669 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6670 ac_status=$? 6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6672 test $ac_status = 0; } && test -s "$nlist"; then 6673 # Try sorting and uniquifying the output. 6674 if sort "$nlist" | uniq > "$nlist"T; then 6675 mv -f "$nlist"T "$nlist" 6676 else 6677 rm -f "$nlist"T 6678 fi 6679 6680 # Make sure that we snagged all the symbols we need. 6681 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6682 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6683 cat <<_LT_EOF > conftest.$ac_ext 6684 #ifdef __cplusplus 6685 extern "C" { 6686 #endif 6687 6688 _LT_EOF 6689 # Now generate the symbol file. 6690 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6691 6692 cat <<_LT_EOF >> conftest.$ac_ext 6693 6694 /* The mapping between symbol names and symbols. */ 6695 const struct { 6696 const char *name; 6697 void *address; 6698 } 6699 lt__PROGRAM__LTX_preloaded_symbols[] = 6700 { 6701 { "@PROGRAM@", (void *) 0 }, 6702 _LT_EOF 6703 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6704 cat <<\_LT_EOF >> conftest.$ac_ext 6705 {0, (void *) 0} 6706 }; 6707 6708 /* This works around a problem in FreeBSD linker */ 6709 #ifdef FREEBSD_WORKAROUND 6710 static const void *lt_preloaded_setup() { 6711 return lt__PROGRAM__LTX_preloaded_symbols; 6712 } 6713 #endif 6714 6715 #ifdef __cplusplus 6716 } 6717 #endif 6718 _LT_EOF 6719 # Now try linking the two files. 6720 mv conftest.$ac_objext conftstm.$ac_objext 6721 lt_save_LIBS="$LIBS" 6722 lt_save_CFLAGS="$CFLAGS" 6723 LIBS="conftstm.$ac_objext" 6724 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6726 (eval $ac_link) 2>&5 6727 ac_status=$? 6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6729 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6730 pipe_works=yes 6731 fi 6732 LIBS="$lt_save_LIBS" 6733 CFLAGS="$lt_save_CFLAGS" 6734 else 6735 echo "cannot find nm_test_func in $nlist" >&5 6736 fi 6737 else 6738 echo "cannot find nm_test_var in $nlist" >&5 6739 fi 6740 else 6741 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6742 fi 6743 else 6744 echo "$progname: failed program was:" >&5 6745 cat conftest.$ac_ext >&5 6746 fi 6747 rm -rf conftest* conftst* 6748 6749 # Do not use the global_symbol_pipe unless it works. 6750 if test "$pipe_works" = yes; then 6751 break 6752 else 6753 lt_cv_sys_global_symbol_pipe= 6754 fi 6755 done 6756 6757 fi 6758 6759 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6760 lt_cv_sys_global_symbol_to_cdecl= 6761 fi 6762 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6764 $as_echo "failed" >&6; } 6765 else 6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6767 $as_echo "ok" >&6; } 6768 fi 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 # Check whether --enable-libtool-lock was given. 6793 if test "${enable_libtool_lock+set}" = set; then : 6794 enableval=$enable_libtool_lock; 6795 fi 6796 6797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6798 6799 # Some flags need to be propagated to the compiler or linker for good 6800 # libtool support. 6801 case $host in 6802 ia64-*-hpux*) 6803 # Find out which ABI we are using. 6804 echo 'int i;' > conftest.$ac_ext 6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6806 (eval $ac_compile) 2>&5 6807 ac_status=$? 6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6809 test $ac_status = 0; }; then 6810 case `/usr/bin/file conftest.$ac_objext` in 6811 *ELF-32*) 6812 HPUX_IA64_MODE="32" 6813 ;; 6814 *ELF-64*) 6815 HPUX_IA64_MODE="64" 6816 ;; 6817 esac 6818 fi 6819 rm -rf conftest* 6820 ;; 6821 *-*-irix6*) 6822 # Find out which ABI we are using. 6823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6825 (eval $ac_compile) 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6828 test $ac_status = 0; }; then 6829 if test "$lt_cv_prog_gnu_ld" = yes; then 6830 case `/usr/bin/file conftest.$ac_objext` in 6831 *32-bit*) 6832 LD="${LD-ld} -melf32bsmip" 6833 ;; 6834 *N32*) 6835 LD="${LD-ld} -melf32bmipn32" 6836 ;; 6837 *64-bit*) 6838 LD="${LD-ld} -melf64bmip" 6839 ;; 6840 esac 6841 else 6842 case `/usr/bin/file conftest.$ac_objext` in 6843 *32-bit*) 6844 LD="${LD-ld} -32" 6845 ;; 6846 *N32*) 6847 LD="${LD-ld} -n32" 6848 ;; 6849 *64-bit*) 6850 LD="${LD-ld} -64" 6851 ;; 6852 esac 6853 fi 6854 fi 6855 rm -rf conftest* 6856 ;; 6857 6858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6860 # Find out which ABI we are using. 6861 echo 'int i;' > conftest.$ac_ext 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6863 (eval $ac_compile) 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6866 test $ac_status = 0; }; then 6867 case `/usr/bin/file conftest.o` in 6868 *32-bit*) 6869 case $host in 6870 x86_64-*kfreebsd*-gnu) 6871 LD="${LD-ld} -m elf_i386_fbsd" 6872 ;; 6873 x86_64-*linux*) 6874 case `/usr/bin/file conftest.o` in 6875 *x86-64*) 6876 LD="${LD-ld} -m elf32_x86_64" 6877 ;; 6878 *) 6879 LD="${LD-ld} -m elf_i386" 6880 ;; 6881 esac 6882 ;; 6883 powerpc64le-*linux*) 6884 LD="${LD-ld} -m elf32lppclinux" 6885 ;; 6886 powerpc64-*linux*) 6887 LD="${LD-ld} -m elf32ppclinux" 6888 ;; 6889 s390x-*linux*) 6890 LD="${LD-ld} -m elf_s390" 6891 ;; 6892 sparc64-*linux*) 6893 LD="${LD-ld} -m elf32_sparc" 6894 ;; 6895 esac 6896 ;; 6897 *64-bit*) 6898 case $host in 6899 x86_64-*kfreebsd*-gnu) 6900 LD="${LD-ld} -m elf_x86_64_fbsd" 6901 ;; 6902 x86_64-*linux*) 6903 LD="${LD-ld} -m elf_x86_64" 6904 ;; 6905 powerpcle-*linux*) 6906 LD="${LD-ld} -m elf64lppc" 6907 ;; 6908 powerpc-*linux*) 6909 LD="${LD-ld} -m elf64ppc" 6910 ;; 6911 s390*-*linux*|s390*-*tpf*) 6912 LD="${LD-ld} -m elf64_s390" 6913 ;; 6914 sparc*-*linux*) 6915 LD="${LD-ld} -m elf64_sparc" 6916 ;; 6917 esac 6918 ;; 6919 esac 6920 fi 6921 rm -rf conftest* 6922 ;; 6923 6924 *-*-sco3.2v5*) 6925 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6926 SAVE_CFLAGS="$CFLAGS" 6927 CFLAGS="$CFLAGS -belf" 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6929 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6930 if test "${lt_cv_cc_needs_belf+set}" = set; then : 6931 $as_echo_n "(cached) " >&6 6932 else 6933 ac_ext=c 6934 ac_cpp='$CPP $CPPFLAGS' 6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6938 6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6940 /* end confdefs.h. */ 6941 6942 int 6943 main () 6944 { 6945 6946 ; 6947 return 0; 6948 } 6949 _ACEOF 6950 if ac_fn_c_try_link "$LINENO"; then : 6951 lt_cv_cc_needs_belf=yes 6952 else 6953 lt_cv_cc_needs_belf=no 6954 fi 6955 rm -f core conftest.err conftest.$ac_objext \ 6956 conftest$ac_exeext conftest.$ac_ext 6957 ac_ext=c 6958 ac_cpp='$CPP $CPPFLAGS' 6959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6961 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6962 6963 fi 6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6965 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6968 CFLAGS="$SAVE_CFLAGS" 6969 fi 6970 ;; 6971 sparc*-*solaris*) 6972 # Find out which ABI we are using. 6973 echo 'int i;' > conftest.$ac_ext 6974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6975 (eval $ac_compile) 2>&5 6976 ac_status=$? 6977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6978 test $ac_status = 0; }; then 6979 case `/usr/bin/file conftest.o` in 6980 *64-bit*) 6981 case $lt_cv_prog_gnu_ld in 6982 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6983 *) 6984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6985 LD="${LD-ld} -64" 6986 fi 6987 ;; 6988 esac 6989 ;; 6990 esac 6991 fi 6992 rm -rf conftest* 6993 ;; 6994 esac 6995 6996 need_locks="$enable_libtool_lock" 6997 6998 6999 case $host_os in 7000 rhapsody* | darwin*) 7001 if test -n "$ac_tool_prefix"; then 7002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005 $as_echo_n "checking for $ac_word... " >&6; } 7006 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7007 $as_echo_n "(cached) " >&6 7008 else 7009 if test -n "$DSYMUTIL"; then 7010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7011 else 7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013 for as_dir in $PATH 7014 do 7015 IFS=$as_save_IFS 7016 test -z "$as_dir" && as_dir=. 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023 done 7024 done 7025 IFS=$as_save_IFS 7026 7027 fi 7028 fi 7029 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7030 if test -n "$DSYMUTIL"; then 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7032 $as_echo "$DSYMUTIL" >&6; } 7033 else 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7035 $as_echo "no" >&6; } 7036 fi 7037 7038 7039 fi 7040 if test -z "$ac_cv_prog_DSYMUTIL"; then 7041 ac_ct_DSYMUTIL=$DSYMUTIL 7042 # Extract the first word of "dsymutil", so it can be a program name with args. 7043 set dummy dsymutil; ac_word=$2 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7045 $as_echo_n "checking for $ac_word... " >&6; } 7046 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7047 $as_echo_n "(cached) " >&6 7048 else 7049 if test -n "$ac_ct_DSYMUTIL"; then 7050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7051 else 7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7053 for as_dir in $PATH 7054 do 7055 IFS=$as_save_IFS 7056 test -z "$as_dir" && as_dir=. 7057 for ac_exec_ext in '' $ac_executable_extensions; do 7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7061 break 2 7062 fi 7063 done 7064 done 7065 IFS=$as_save_IFS 7066 7067 fi 7068 fi 7069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7070 if test -n "$ac_ct_DSYMUTIL"; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7072 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7073 else 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7075 $as_echo "no" >&6; } 7076 fi 7077 7078 if test "x$ac_ct_DSYMUTIL" = x; then 7079 DSYMUTIL=":" 7080 else 7081 case $cross_compiling:$ac_tool_warned in 7082 yes:) 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7085 ac_tool_warned=yes ;; 7086 esac 7087 DSYMUTIL=$ac_ct_DSYMUTIL 7088 fi 7089 else 7090 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7091 fi 7092 7093 if test -n "$ac_tool_prefix"; then 7094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097 $as_echo_n "checking for $ac_word... " >&6; } 7098 if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7099 $as_echo_n "(cached) " >&6 7100 else 7101 if test -n "$NMEDIT"; then 7102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7103 else 7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105 for as_dir in $PATH 7106 do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115 done 7116 done 7117 IFS=$as_save_IFS 7118 7119 fi 7120 fi 7121 NMEDIT=$ac_cv_prog_NMEDIT 7122 if test -n "$NMEDIT"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7124 $as_echo "$NMEDIT" >&6; } 7125 else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127 $as_echo "no" >&6; } 7128 fi 7129 7130 7131 fi 7132 if test -z "$ac_cv_prog_NMEDIT"; then 7133 ac_ct_NMEDIT=$NMEDIT 7134 # Extract the first word of "nmedit", so it can be a program name with args. 7135 set dummy nmedit; ac_word=$2 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7137 $as_echo_n "checking for $ac_word... " >&6; } 7138 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7139 $as_echo_n "(cached) " >&6 7140 else 7141 if test -n "$ac_ct_NMEDIT"; then 7142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7143 else 7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145 for as_dir in $PATH 7146 do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7151 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155 done 7156 done 7157 IFS=$as_save_IFS 7158 7159 fi 7160 fi 7161 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7162 if test -n "$ac_ct_NMEDIT"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7164 $as_echo "$ac_ct_NMEDIT" >&6; } 7165 else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167 $as_echo "no" >&6; } 7168 fi 7169 7170 if test "x$ac_ct_NMEDIT" = x; then 7171 NMEDIT=":" 7172 else 7173 case $cross_compiling:$ac_tool_warned in 7174 yes:) 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7177 ac_tool_warned=yes ;; 7178 esac 7179 NMEDIT=$ac_ct_NMEDIT 7180 fi 7181 else 7182 NMEDIT="$ac_cv_prog_NMEDIT" 7183 fi 7184 7185 if test -n "$ac_tool_prefix"; then 7186 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7187 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7189 $as_echo_n "checking for $ac_word... " >&6; } 7190 if test "${ac_cv_prog_LIPO+set}" = set; then : 7191 $as_echo_n "(cached) " >&6 7192 else 7193 if test -n "$LIPO"; then 7194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7195 else 7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7197 for as_dir in $PATH 7198 do 7199 IFS=$as_save_IFS 7200 test -z "$as_dir" && as_dir=. 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7205 break 2 7206 fi 7207 done 7208 done 7209 IFS=$as_save_IFS 7210 7211 fi 7212 fi 7213 LIPO=$ac_cv_prog_LIPO 7214 if test -n "$LIPO"; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7216 $as_echo "$LIPO" >&6; } 7217 else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219 $as_echo "no" >&6; } 7220 fi 7221 7222 7223 fi 7224 if test -z "$ac_cv_prog_LIPO"; then 7225 ac_ct_LIPO=$LIPO 7226 # Extract the first word of "lipo", so it can be a program name with args. 7227 set dummy lipo; ac_word=$2 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229 $as_echo_n "checking for $ac_word... " >&6; } 7230 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7231 $as_echo_n "(cached) " >&6 7232 else 7233 if test -n "$ac_ct_LIPO"; then 7234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7235 else 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237 for as_dir in $PATH 7238 do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7243 ac_cv_prog_ac_ct_LIPO="lipo" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247 done 7248 done 7249 IFS=$as_save_IFS 7250 7251 fi 7252 fi 7253 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7254 if test -n "$ac_ct_LIPO"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7256 $as_echo "$ac_ct_LIPO" >&6; } 7257 else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259 $as_echo "no" >&6; } 7260 fi 7261 7262 if test "x$ac_ct_LIPO" = x; then 7263 LIPO=":" 7264 else 7265 case $cross_compiling:$ac_tool_warned in 7266 yes:) 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7269 ac_tool_warned=yes ;; 7270 esac 7271 LIPO=$ac_ct_LIPO 7272 fi 7273 else 7274 LIPO="$ac_cv_prog_LIPO" 7275 fi 7276 7277 if test -n "$ac_tool_prefix"; then 7278 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7279 set dummy ${ac_tool_prefix}otool; ac_word=$2 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281 $as_echo_n "checking for $ac_word... " >&6; } 7282 if test "${ac_cv_prog_OTOOL+set}" = set; then : 7283 $as_echo_n "(cached) " >&6 7284 else 7285 if test -n "$OTOOL"; then 7286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7287 else 7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7289 for as_dir in $PATH 7290 do 7291 IFS=$as_save_IFS 7292 test -z "$as_dir" && as_dir=. 7293 for ac_exec_ext in '' $ac_executable_extensions; do 7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7297 break 2 7298 fi 7299 done 7300 done 7301 IFS=$as_save_IFS 7302 7303 fi 7304 fi 7305 OTOOL=$ac_cv_prog_OTOOL 7306 if test -n "$OTOOL"; then 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7308 $as_echo "$OTOOL" >&6; } 7309 else 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311 $as_echo "no" >&6; } 7312 fi 7313 7314 7315 fi 7316 if test -z "$ac_cv_prog_OTOOL"; then 7317 ac_ct_OTOOL=$OTOOL 7318 # Extract the first word of "otool", so it can be a program name with args. 7319 set dummy otool; ac_word=$2 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321 $as_echo_n "checking for $ac_word... " >&6; } 7322 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7323 $as_echo_n "(cached) " >&6 7324 else 7325 if test -n "$ac_ct_OTOOL"; then 7326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7327 else 7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329 for as_dir in $PATH 7330 do 7331 IFS=$as_save_IFS 7332 test -z "$as_dir" && as_dir=. 7333 for ac_exec_ext in '' $ac_executable_extensions; do 7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7335 ac_cv_prog_ac_ct_OTOOL="otool" 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7337 break 2 7338 fi 7339 done 7340 done 7341 IFS=$as_save_IFS 7342 7343 fi 7344 fi 7345 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7346 if test -n "$ac_ct_OTOOL"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7348 $as_echo "$ac_ct_OTOOL" >&6; } 7349 else 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7351 $as_echo "no" >&6; } 7352 fi 7353 7354 if test "x$ac_ct_OTOOL" = x; then 7355 OTOOL=":" 7356 else 7357 case $cross_compiling:$ac_tool_warned in 7358 yes:) 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7361 ac_tool_warned=yes ;; 7362 esac 7363 OTOOL=$ac_ct_OTOOL 7364 fi 7365 else 7366 OTOOL="$ac_cv_prog_OTOOL" 7367 fi 7368 7369 if test -n "$ac_tool_prefix"; then 7370 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7371 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7373 $as_echo_n "checking for $ac_word... " >&6; } 7374 if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7375 $as_echo_n "(cached) " >&6 7376 else 7377 if test -n "$OTOOL64"; then 7378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7379 else 7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7381 for as_dir in $PATH 7382 do 7383 IFS=$as_save_IFS 7384 test -z "$as_dir" && as_dir=. 7385 for ac_exec_ext in '' $ac_executable_extensions; do 7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7389 break 2 7390 fi 7391 done 7392 done 7393 IFS=$as_save_IFS 7394 7395 fi 7396 fi 7397 OTOOL64=$ac_cv_prog_OTOOL64 7398 if test -n "$OTOOL64"; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7400 $as_echo "$OTOOL64" >&6; } 7401 else 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7403 $as_echo "no" >&6; } 7404 fi 7405 7406 7407 fi 7408 if test -z "$ac_cv_prog_OTOOL64"; then 7409 ac_ct_OTOOL64=$OTOOL64 7410 # Extract the first word of "otool64", so it can be a program name with args. 7411 set dummy otool64; ac_word=$2 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7413 $as_echo_n "checking for $ac_word... " >&6; } 7414 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7415 $as_echo_n "(cached) " >&6 7416 else 7417 if test -n "$ac_ct_OTOOL64"; then 7418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7419 else 7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7421 for as_dir in $PATH 7422 do 7423 IFS=$as_save_IFS 7424 test -z "$as_dir" && as_dir=. 7425 for ac_exec_ext in '' $ac_executable_extensions; do 7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7427 ac_cv_prog_ac_ct_OTOOL64="otool64" 7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7429 break 2 7430 fi 7431 done 7432 done 7433 IFS=$as_save_IFS 7434 7435 fi 7436 fi 7437 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7438 if test -n "$ac_ct_OTOOL64"; then 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7440 $as_echo "$ac_ct_OTOOL64" >&6; } 7441 else 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7443 $as_echo "no" >&6; } 7444 fi 7445 7446 if test "x$ac_ct_OTOOL64" = x; then 7447 OTOOL64=":" 7448 else 7449 case $cross_compiling:$ac_tool_warned in 7450 yes:) 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7453 ac_tool_warned=yes ;; 7454 esac 7455 OTOOL64=$ac_ct_OTOOL64 7456 fi 7457 else 7458 OTOOL64="$ac_cv_prog_OTOOL64" 7459 fi 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 7486 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7488 $as_echo_n "checking for -single_module linker flag... " >&6; } 7489 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7490 $as_echo_n "(cached) " >&6 7491 else 7492 lt_cv_apple_cc_single_mod=no 7493 if test -z "${LT_MULTI_MODULE}"; then 7494 # By default we will add the -single_module flag. You can override 7495 # by either setting the environment variable LT_MULTI_MODULE 7496 # non-empty at configure time, or by adding -multi_module to the 7497 # link flags. 7498 rm -rf libconftest.dylib* 7499 echo "int foo(void){return 1;}" > conftest.c 7500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7501 -dynamiclib -Wl,-single_module conftest.c" >&5 7502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7504 _lt_result=$? 7505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7506 lt_cv_apple_cc_single_mod=yes 7507 else 7508 cat conftest.err >&5 7509 fi 7510 rm -rf libconftest.dylib* 7511 rm -f conftest.* 7512 fi 7513 fi 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7517 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7519 $as_echo_n "(cached) " >&6 7520 else 7521 lt_cv_ld_exported_symbols_list=no 7522 save_LDFLAGS=$LDFLAGS 7523 echo "_main" > conftest.sym 7524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526 /* end confdefs.h. */ 7527 7528 int 7529 main () 7530 { 7531 7532 ; 7533 return 0; 7534 } 7535 _ACEOF 7536 if ac_fn_c_try_link "$LINENO"; then : 7537 lt_cv_ld_exported_symbols_list=yes 7538 else 7539 lt_cv_ld_exported_symbols_list=no 7540 fi 7541 rm -f core conftest.err conftest.$ac_objext \ 7542 conftest$ac_exeext conftest.$ac_ext 7543 LDFLAGS="$save_LDFLAGS" 7544 7545 fi 7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7547 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7549 $as_echo_n "checking for -force_load linker flag... " >&6; } 7550 if test "${lt_cv_ld_force_load+set}" = set; then : 7551 $as_echo_n "(cached) " >&6 7552 else 7553 lt_cv_ld_force_load=no 7554 cat > conftest.c << _LT_EOF 7555 int forced_loaded() { return 2;} 7556 _LT_EOF 7557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7559 echo "$AR cru libconftest.a conftest.o" >&5 7560 $AR cru libconftest.a conftest.o 2>&5 7561 cat > conftest.c << _LT_EOF 7562 int main() { return 0;} 7563 _LT_EOF 7564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7566 _lt_result=$? 7567 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7568 lt_cv_ld_force_load=yes 7569 else 7570 cat conftest.err >&5 7571 fi 7572 rm -f conftest.err libconftest.a conftest conftest.c 7573 rm -rf conftest.dSYM 7574 7575 fi 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7577 $as_echo "$lt_cv_ld_force_load" >&6; } 7578 case $host_os in 7579 rhapsody* | darwin1.[012]) 7580 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7581 darwin1.*) 7582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7583 darwin*) # darwin 5.x on 7584 # if running on 10.5 or later, the deployment target defaults 7585 # to the OS version, if on x86, and 10.4, the deployment 7586 # target defaults to 10.4. Don't you love it? 7587 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7588 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7590 10.[012][,.]*) 7591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7592 10.*) 7593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7594 esac 7595 ;; 7596 esac 7597 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7598 _lt_dar_single_mod='$single_module' 7599 fi 7600 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7601 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7602 else 7603 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7604 fi 7605 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7606 _lt_dsymutil='~$DSYMUTIL $lib || :' 7607 else 7608 _lt_dsymutil= 7609 fi 7610 ;; 7611 esac 7612 7613 ac_ext=c 7614 ac_cpp='$CPP $CPPFLAGS' 7615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7617 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7619 $as_echo_n "checking how to run the C preprocessor... " >&6; } 7620 # On Suns, sometimes $CPP names a directory. 7621 if test -n "$CPP" && test -d "$CPP"; then 7622 CPP= 7623 fi 7624 if test -z "$CPP"; then 7625 if test "${ac_cv_prog_CPP+set}" = set; then : 7626 $as_echo_n "(cached) " >&6 7627 else 7628 # Double quotes because CPP needs to be expanded 7629 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7630 do 7631 ac_preproc_ok=false 7632 for ac_c_preproc_warn_flag in '' yes 7633 do 7634 # Use a header file that comes with gcc, so configuring glibc 7635 # with a fresh cross-compiler works. 7636 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7637 # <limits.h> exists even on freestanding compilers. 7638 # On the NeXT, cc -E runs the code through the compiler's parser, 7639 # not just through cpp. "Syntax error" is here to catch this case. 7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7641 /* end confdefs.h. */ 7642 #ifdef __STDC__ 7643 # include <limits.h> 7644 #else 7645 # include <assert.h> 7646 #endif 7647 Syntax error 7648 _ACEOF 7649 if ac_fn_c_try_cpp "$LINENO"; then : 7650 7651 else 7652 # Broken: fails on valid input. 7653 continue 7654 fi 7655 rm -f conftest.err conftest.$ac_ext 7656 7657 # OK, works on sane cases. Now check whether nonexistent headers 7658 # can be detected and how. 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7660 /* end confdefs.h. */ 7661 #include <ac_nonexistent.h> 7662 _ACEOF 7663 if ac_fn_c_try_cpp "$LINENO"; then : 7664 # Broken: success on invalid input. 7665 continue 7666 else 7667 # Passes both tests. 7668 ac_preproc_ok=: 7669 break 7670 fi 7671 rm -f conftest.err conftest.$ac_ext 7672 7673 done 7674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7675 rm -f conftest.err conftest.$ac_ext 7676 if $ac_preproc_ok; then : 7677 break 7678 fi 7679 7680 done 7681 ac_cv_prog_CPP=$CPP 7682 7683 fi 7684 CPP=$ac_cv_prog_CPP 7685 else 7686 ac_cv_prog_CPP=$CPP 7687 fi 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7689 $as_echo "$CPP" >&6; } 7690 ac_preproc_ok=false 7691 for ac_c_preproc_warn_flag in '' yes 7692 do 7693 # Use a header file that comes with gcc, so configuring glibc 7694 # with a fresh cross-compiler works. 7695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7696 # <limits.h> exists even on freestanding compilers. 7697 # On the NeXT, cc -E runs the code through the compiler's parser, 7698 # not just through cpp. "Syntax error" is here to catch this case. 7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7700 /* end confdefs.h. */ 7701 #ifdef __STDC__ 7702 # include <limits.h> 7703 #else 7704 # include <assert.h> 7705 #endif 7706 Syntax error 7707 _ACEOF 7708 if ac_fn_c_try_cpp "$LINENO"; then : 7709 7710 else 7711 # Broken: fails on valid input. 7712 continue 7713 fi 7714 rm -f conftest.err conftest.$ac_ext 7715 7716 # OK, works on sane cases. Now check whether nonexistent headers 7717 # can be detected and how. 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719 /* end confdefs.h. */ 7720 #include <ac_nonexistent.h> 7721 _ACEOF 7722 if ac_fn_c_try_cpp "$LINENO"; then : 7723 # Broken: success on invalid input. 7724 continue 7725 else 7726 # Passes both tests. 7727 ac_preproc_ok=: 7728 break 7729 fi 7730 rm -f conftest.err conftest.$ac_ext 7731 7732 done 7733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7734 rm -f conftest.err conftest.$ac_ext 7735 if $ac_preproc_ok; then : 7736 7737 else 7738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7740 as_fn_error "C preprocessor \"$CPP\" fails sanity check 7741 See \`config.log' for more details." "$LINENO" 5; } 7742 fi 7743 7744 ac_ext=c 7745 ac_cpp='$CPP $CPPFLAGS' 7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7749 7750 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7752 $as_echo_n "checking for ANSI C header files... " >&6; } 7753 if test "${ac_cv_header_stdc+set}" = set; then : 7754 $as_echo_n "(cached) " >&6 7755 else 7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7757 /* end confdefs.h. */ 7758 #include <stdlib.h> 7759 #include <stdarg.h> 7760 #include <string.h> 7761 #include <float.h> 7762 7763 int 7764 main () 7765 { 7766 7767 ; 7768 return 0; 7769 } 7770 _ACEOF 7771 if ac_fn_c_try_compile "$LINENO"; then : 7772 ac_cv_header_stdc=yes 7773 else 7774 ac_cv_header_stdc=no 7775 fi 7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7777 7778 if test $ac_cv_header_stdc = yes; then 7779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7781 /* end confdefs.h. */ 7782 #include <string.h> 7783 7784 _ACEOF 7785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7786 $EGREP "memchr" >/dev/null 2>&1; then : 7787 7788 else 7789 ac_cv_header_stdc=no 7790 fi 7791 rm -f conftest* 7792 7793 fi 7794 7795 if test $ac_cv_header_stdc = yes; then 7796 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7798 /* end confdefs.h. */ 7799 #include <stdlib.h> 7800 7801 _ACEOF 7802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7803 $EGREP "free" >/dev/null 2>&1; then : 7804 7805 else 7806 ac_cv_header_stdc=no 7807 fi 7808 rm -f conftest* 7809 7810 fi 7811 7812 if test $ac_cv_header_stdc = yes; then 7813 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7814 if test "$cross_compiling" = yes; then : 7815 : 7816 else 7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7818 /* end confdefs.h. */ 7819 #include <ctype.h> 7820 #include <stdlib.h> 7821 #if ((' ' & 0x0FF) == 0x020) 7822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7824 #else 7825 # define ISLOWER(c) \ 7826 (('a' <= (c) && (c) <= 'i') \ 7827 || ('j' <= (c) && (c) <= 'r') \ 7828 || ('s' <= (c) && (c) <= 'z')) 7829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7830 #endif 7831 7832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7833 int 7834 main () 7835 { 7836 int i; 7837 for (i = 0; i < 256; i++) 7838 if (XOR (islower (i), ISLOWER (i)) 7839 || toupper (i) != TOUPPER (i)) 7840 return 2; 7841 return 0; 7842 } 7843 _ACEOF 7844 if ac_fn_c_try_run "$LINENO"; then : 7845 7846 else 7847 ac_cv_header_stdc=no 7848 fi 7849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7850 conftest.$ac_objext conftest.beam conftest.$ac_ext 7851 fi 7852 7853 fi 7854 fi 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7856 $as_echo "$ac_cv_header_stdc" >&6; } 7857 if test $ac_cv_header_stdc = yes; then 7858 7859 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7860 7861 fi 7862 7863 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 7864 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7865 inttypes.h stdint.h unistd.h 7866 do : 7867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7868 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7869 " 7870 eval as_val=\$$as_ac_Header 7871 if test "x$as_val" = x""yes; then : 7872 cat >>confdefs.h <<_ACEOF 7873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7874 _ACEOF 7875 7876 fi 7877 7878 done 7879 7880 7881 for ac_header in dlfcn.h 7882 do : 7883 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7884 " 7885 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7886 cat >>confdefs.h <<_ACEOF 7887 #define HAVE_DLFCN_H 1 7888 _ACEOF 7889 7890 fi 7891 7892 done 7893 7894 7895 7896 7897 7898 7899 # Set options 7900 7901 7902 7903 enable_dlopen=no 7904 7905 7906 enable_win32_dll=no 7907 7908 7909 # Check whether --enable-shared was given. 7910 if test "${enable_shared+set}" = set; then : 7911 enableval=$enable_shared; p=${PACKAGE-default} 7912 case $enableval in 7913 yes) enable_shared=yes ;; 7914 no) enable_shared=no ;; 7915 *) 7916 enable_shared=no 7917 # Look at the argument we got. We use all the common list separators. 7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7919 for pkg in $enableval; do 7920 IFS="$lt_save_ifs" 7921 if test "X$pkg" = "X$p"; then 7922 enable_shared=yes 7923 fi 7924 done 7925 IFS="$lt_save_ifs" 7926 ;; 7927 esac 7928 else 7929 enable_shared=yes 7930 fi 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 # Check whether --enable-static was given. 7941 if test "${enable_static+set}" = set; then : 7942 enableval=$enable_static; p=${PACKAGE-default} 7943 case $enableval in 7944 yes) enable_static=yes ;; 7945 no) enable_static=no ;; 7946 *) 7947 enable_static=no 7948 # Look at the argument we got. We use all the common list separators. 7949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7950 for pkg in $enableval; do 7951 IFS="$lt_save_ifs" 7952 if test "X$pkg" = "X$p"; then 7953 enable_static=yes 7954 fi 7955 done 7956 IFS="$lt_save_ifs" 7957 ;; 7958 esac 7959 else 7960 enable_static=yes 7961 fi 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 # Check whether --with-pic was given. 7973 if test "${with_pic+set}" = set; then : 7974 withval=$with_pic; pic_mode="$withval" 7975 else 7976 pic_mode=default 7977 fi 7978 7979 7980 test -z "$pic_mode" && pic_mode=default 7981 7982 7983 7984 7985 7986 7987 7988 # Check whether --enable-fast-install was given. 7989 if test "${enable_fast_install+set}" = set; then : 7990 enableval=$enable_fast_install; p=${PACKAGE-default} 7991 case $enableval in 7992 yes) enable_fast_install=yes ;; 7993 no) enable_fast_install=no ;; 7994 *) 7995 enable_fast_install=no 7996 # Look at the argument we got. We use all the common list separators. 7997 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7998 for pkg in $enableval; do 7999 IFS="$lt_save_ifs" 8000 if test "X$pkg" = "X$p"; then 8001 enable_fast_install=yes 8002 fi 8003 done 8004 IFS="$lt_save_ifs" 8005 ;; 8006 esac 8007 else 8008 enable_fast_install=yes 8009 fi 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 # This can be used to rebuild libtool when needed 8022 LIBTOOL_DEPS="$ltmain" 8023 8024 # Always use our own libtool. 8025 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 test -z "$LN_S" && LN_S="ln -s" 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 if test -n "${ZSH_VERSION+set}" ; then 8068 setopt NO_GLOB_SUBST 8069 fi 8070 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8072 $as_echo_n "checking for objdir... " >&6; } 8073 if test "${lt_cv_objdir+set}" = set; then : 8074 $as_echo_n "(cached) " >&6 8075 else 8076 rm -f .libs 2>/dev/null 8077 mkdir .libs 2>/dev/null 8078 if test -d .libs; then 8079 lt_cv_objdir=.libs 8080 else 8081 # MS-DOS does not allow filenames that begin with a dot. 8082 lt_cv_objdir=_libs 8083 fi 8084 rmdir .libs 2>/dev/null 8085 fi 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8087 $as_echo "$lt_cv_objdir" >&6; } 8088 objdir=$lt_cv_objdir 8089 8090 8091 8092 8093 8094 cat >>confdefs.h <<_ACEOF 8095 #define LT_OBJDIR "$lt_cv_objdir/" 8096 _ACEOF 8097 8098 8099 8100 8101 case $host_os in 8102 aix3*) 8103 # AIX sometimes has problems with the GCC collect2 program. For some 8104 # reason, if we set the COLLECT_NAMES environment variable, the problems 8105 # vanish in a puff of smoke. 8106 if test "X${COLLECT_NAMES+set}" != Xset; then 8107 COLLECT_NAMES= 8108 export COLLECT_NAMES 8109 fi 8110 ;; 8111 esac 8112 8113 # Global variables: 8114 ofile=libtool 8115 can_build_shared=yes 8116 8117 # All known linkers require a `.a' archive for static linking (except MSVC, 8118 # which needs '.lib'). 8119 libext=a 8120 8121 with_gnu_ld="$lt_cv_prog_gnu_ld" 8122 8123 old_CC="$CC" 8124 old_CFLAGS="$CFLAGS" 8125 8126 # Set sane defaults for various variables 8127 test -z "$CC" && CC=cc 8128 test -z "$LTCC" && LTCC=$CC 8129 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8130 test -z "$LD" && LD=ld 8131 test -z "$ac_objext" && ac_objext=o 8132 8133 for cc_temp in $compiler""; do 8134 case $cc_temp in 8135 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8136 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8137 \-*) ;; 8138 *) break;; 8139 esac 8140 done 8141 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8142 8143 8144 # Only perform the check for file, if the check method requires it 8145 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8146 case $deplibs_check_method in 8147 file_magic*) 8148 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8150 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8152 $as_echo_n "(cached) " >&6 8153 else 8154 case $MAGIC_CMD in 8155 [\\/*] | ?:[\\/]*) 8156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8157 ;; 8158 *) 8159 lt_save_MAGIC_CMD="$MAGIC_CMD" 8160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8162 for ac_dir in $ac_dummy; do 8163 IFS="$lt_save_ifs" 8164 test -z "$ac_dir" && ac_dir=. 8165 if test -f $ac_dir/${ac_tool_prefix}file; then 8166 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8167 if test -n "$file_magic_test_file"; then 8168 case $deplibs_check_method in 8169 "file_magic "*) 8170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8173 $EGREP "$file_magic_regex" > /dev/null; then 8174 : 8175 else 8176 cat <<_LT_EOF 1>&2 8177 8178 *** Warning: the command libtool uses to detect shared libraries, 8179 *** $file_magic_cmd, produces output that libtool cannot recognize. 8180 *** The result is that libtool may fail to recognize shared libraries 8181 *** as such. This will affect the creation of libtool libraries that 8182 *** depend on shared libraries, but programs linked with such libtool 8183 *** libraries will work regardless of this problem. Nevertheless, you 8184 *** may want to report the problem to your system manager and/or to 8185 *** bug-libtool@gnu.org 8186 8187 _LT_EOF 8188 fi ;; 8189 esac 8190 fi 8191 break 8192 fi 8193 done 8194 IFS="$lt_save_ifs" 8195 MAGIC_CMD="$lt_save_MAGIC_CMD" 8196 ;; 8197 esac 8198 fi 8199 8200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8201 if test -n "$MAGIC_CMD"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8203 $as_echo "$MAGIC_CMD" >&6; } 8204 else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206 $as_echo "no" >&6; } 8207 fi 8208 8209 8210 8211 8212 8213 if test -z "$lt_cv_path_MAGIC_CMD"; then 8214 if test -n "$ac_tool_prefix"; then 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8216 $as_echo_n "checking for file... " >&6; } 8217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8218 $as_echo_n "(cached) " >&6 8219 else 8220 case $MAGIC_CMD in 8221 [\\/*] | ?:[\\/]*) 8222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8223 ;; 8224 *) 8225 lt_save_MAGIC_CMD="$MAGIC_CMD" 8226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8228 for ac_dir in $ac_dummy; do 8229 IFS="$lt_save_ifs" 8230 test -z "$ac_dir" && ac_dir=. 8231 if test -f $ac_dir/file; then 8232 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8233 if test -n "$file_magic_test_file"; then 8234 case $deplibs_check_method in 8235 "file_magic "*) 8236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8239 $EGREP "$file_magic_regex" > /dev/null; then 8240 : 8241 else 8242 cat <<_LT_EOF 1>&2 8243 8244 *** Warning: the command libtool uses to detect shared libraries, 8245 *** $file_magic_cmd, produces output that libtool cannot recognize. 8246 *** The result is that libtool may fail to recognize shared libraries 8247 *** as such. This will affect the creation of libtool libraries that 8248 *** depend on shared libraries, but programs linked with such libtool 8249 *** libraries will work regardless of this problem. Nevertheless, you 8250 *** may want to report the problem to your system manager and/or to 8251 *** bug-libtool@gnu.org 8252 8253 _LT_EOF 8254 fi ;; 8255 esac 8256 fi 8257 break 8258 fi 8259 done 8260 IFS="$lt_save_ifs" 8261 MAGIC_CMD="$lt_save_MAGIC_CMD" 8262 ;; 8263 esac 8264 fi 8265 8266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8267 if test -n "$MAGIC_CMD"; then 8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8269 $as_echo "$MAGIC_CMD" >&6; } 8270 else 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8272 $as_echo "no" >&6; } 8273 fi 8274 8275 8276 else 8277 MAGIC_CMD=: 8278 fi 8279 fi 8280 8281 fi 8282 ;; 8283 esac 8284 8285 # Use C for the default configuration in the libtool script 8286 8287 lt_save_CC="$CC" 8288 ac_ext=c 8289 ac_cpp='$CPP $CPPFLAGS' 8290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8292 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8293 8294 8295 # Source file extension for C test sources. 8296 ac_ext=c 8297 8298 # Object file extension for compiled C test sources. 8299 objext=o 8300 objext=$objext 8301 8302 # Code to be used in simple compile tests 8303 lt_simple_compile_test_code="int some_variable = 0;" 8304 8305 # Code to be used in simple link tests 8306 lt_simple_link_test_code='int main(){return(0);}' 8307 8308 8309 8310 8311 8312 8313 8314 # If no C compiler was specified, use CC. 8315 LTCC=${LTCC-"$CC"} 8316 8317 # If no C compiler flags were specified, use CFLAGS. 8318 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8319 8320 # Allow CC to be a program name with arguments. 8321 compiler=$CC 8322 8323 # Save the default compiler, since it gets overwritten when the other 8324 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8325 compiler_DEFAULT=$CC 8326 8327 # save warnings/boilerplate of simple test code 8328 ac_outfile=conftest.$ac_objext 8329 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8330 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8331 _lt_compiler_boilerplate=`cat conftest.err` 8332 $RM conftest* 8333 8334 ac_outfile=conftest.$ac_objext 8335 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8336 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8337 _lt_linker_boilerplate=`cat conftest.err` 8338 $RM -r conftest* 8339 8340 8341 ## CAVEAT EMPTOR: 8342 ## There is no encapsulation within the following macros, do not change 8343 ## the running order or otherwise move them around unless you know exactly 8344 ## what you are doing... 8345 if test -n "$compiler"; then 8346 8347 lt_prog_compiler_no_builtin_flag= 8348 8349 if test "$GCC" = yes; then 8350 case $cc_basename in 8351 nvcc*) 8352 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8353 *) 8354 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8355 esac 8356 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8358 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8359 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8360 $as_echo_n "(cached) " >&6 8361 else 8362 lt_cv_prog_compiler_rtti_exceptions=no 8363 ac_outfile=conftest.$ac_objext 8364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8365 lt_compiler_flag="-fno-rtti -fno-exceptions" 8366 # Insert the option either (1) after the last *FLAGS variable, or 8367 # (2) before a word containing "conftest.", or (3) at the end. 8368 # Note that $ac_compile itself does not contain backslashes and begins 8369 # with a dollar sign (not a hyphen), so the echo should work correctly. 8370 # The option is referenced via a variable to avoid confusing sed. 8371 lt_compile=`echo "$ac_compile" | $SED \ 8372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8374 -e 's:$: $lt_compiler_flag:'` 8375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8376 (eval "$lt_compile" 2>conftest.err) 8377 ac_status=$? 8378 cat conftest.err >&5 8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8380 if (exit $ac_status) && test -s "$ac_outfile"; then 8381 # The compiler can only warn and ignore the option if not recognized 8382 # So say no if there are warnings other than the usual output. 8383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8386 lt_cv_prog_compiler_rtti_exceptions=yes 8387 fi 8388 fi 8389 $RM conftest* 8390 8391 fi 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8393 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8394 8395 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8396 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8397 else 8398 : 8399 fi 8400 8401 fi 8402 8403 8404 8405 8406 8407 8408 lt_prog_compiler_wl= 8409 lt_prog_compiler_pic= 8410 lt_prog_compiler_static= 8411 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8413 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8414 8415 if test "$GCC" = yes; then 8416 lt_prog_compiler_wl='-Wl,' 8417 lt_prog_compiler_static='-static' 8418 8419 case $host_os in 8420 aix*) 8421 # All AIX code is PIC. 8422 if test "$host_cpu" = ia64; then 8423 # AIX 5 now supports IA64 processor 8424 lt_prog_compiler_static='-Bstatic' 8425 fi 8426 lt_prog_compiler_pic='-fPIC' 8427 ;; 8428 8429 amigaos*) 8430 case $host_cpu in 8431 powerpc) 8432 # see comment about AmigaOS4 .so support 8433 lt_prog_compiler_pic='-fPIC' 8434 ;; 8435 m68k) 8436 # FIXME: we need at least 68020 code to build shared libraries, but 8437 # adding the `-m68020' flag to GCC prevents building anything better, 8438 # like `-m68040'. 8439 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8440 ;; 8441 esac 8442 ;; 8443 8444 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8445 # PIC is the default for these OSes. 8446 ;; 8447 8448 mingw* | cygwin* | pw32* | os2* | cegcc*) 8449 # This hack is so that the source file can tell whether it is being 8450 # built for inclusion in a dll (and should export symbols for example). 8451 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8452 # (--disable-auto-import) libraries 8453 lt_prog_compiler_pic='-DDLL_EXPORT' 8454 ;; 8455 8456 darwin* | rhapsody*) 8457 # PIC is the default on this platform 8458 # Common symbols not allowed in MH_DYLIB files 8459 lt_prog_compiler_pic='-fno-common' 8460 ;; 8461 8462 haiku*) 8463 # PIC is the default for Haiku. 8464 # The "-static" flag exists, but is broken. 8465 lt_prog_compiler_static= 8466 ;; 8467 8468 hpux*) 8469 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8470 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8471 # sets the default TLS model and affects inlining. 8472 case $host_cpu in 8473 hppa*64*) 8474 # +Z the default 8475 ;; 8476 *) 8477 lt_prog_compiler_pic='-fPIC' 8478 ;; 8479 esac 8480 ;; 8481 8482 interix[3-9]*) 8483 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8484 # Instead, we relocate shared libraries at runtime. 8485 ;; 8486 8487 msdosdjgpp*) 8488 # Just because we use GCC doesn't mean we suddenly get shared libraries 8489 # on systems that don't support them. 8490 lt_prog_compiler_can_build_shared=no 8491 enable_shared=no 8492 ;; 8493 8494 *nto* | *qnx*) 8495 # QNX uses GNU C++, but need to define -shared option too, otherwise 8496 # it will coredump. 8497 lt_prog_compiler_pic='-fPIC -shared' 8498 ;; 8499 8500 sysv4*MP*) 8501 if test -d /usr/nec; then 8502 lt_prog_compiler_pic=-Kconform_pic 8503 fi 8504 ;; 8505 8506 *) 8507 lt_prog_compiler_pic='-fPIC' 8508 ;; 8509 esac 8510 8511 case $cc_basename in 8512 nvcc*) # Cuda Compiler Driver 2.2 8513 lt_prog_compiler_wl='-Xlinker ' 8514 lt_prog_compiler_pic='-Xcompiler -fPIC' 8515 ;; 8516 esac 8517 else 8518 # PORTME Check for flag to pass linker flags through the system compiler. 8519 case $host_os in 8520 aix*) 8521 lt_prog_compiler_wl='-Wl,' 8522 if test "$host_cpu" = ia64; then 8523 # AIX 5 now supports IA64 processor 8524 lt_prog_compiler_static='-Bstatic' 8525 else 8526 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8527 fi 8528 ;; 8529 8530 mingw* | cygwin* | pw32* | os2* | cegcc*) 8531 # This hack is so that the source file can tell whether it is being 8532 # built for inclusion in a dll (and should export symbols for example). 8533 lt_prog_compiler_pic='-DDLL_EXPORT' 8534 ;; 8535 8536 hpux9* | hpux10* | hpux11*) 8537 lt_prog_compiler_wl='-Wl,' 8538 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8539 # not for PA HP-UX. 8540 case $host_cpu in 8541 hppa*64*|ia64*) 8542 # +Z the default 8543 ;; 8544 *) 8545 lt_prog_compiler_pic='+Z' 8546 ;; 8547 esac 8548 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8549 lt_prog_compiler_static='${wl}-a ${wl}archive' 8550 ;; 8551 8552 irix5* | irix6* | nonstopux*) 8553 lt_prog_compiler_wl='-Wl,' 8554 # PIC (with -KPIC) is the default. 8555 lt_prog_compiler_static='-non_shared' 8556 ;; 8557 8558 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8559 case $cc_basename in 8560 # old Intel for x86_64 which still supported -KPIC. 8561 ecc*) 8562 lt_prog_compiler_wl='-Wl,' 8563 lt_prog_compiler_pic='-KPIC' 8564 lt_prog_compiler_static='-static' 8565 ;; 8566 # icc used to be incompatible with GCC. 8567 # ICC 10 doesn't accept -KPIC any more. 8568 icc* | ifort*) 8569 lt_prog_compiler_wl='-Wl,' 8570 lt_prog_compiler_pic='-fPIC' 8571 lt_prog_compiler_static='-static' 8572 ;; 8573 # Lahey Fortran 8.1. 8574 lf95*) 8575 lt_prog_compiler_wl='-Wl,' 8576 lt_prog_compiler_pic='--shared' 8577 lt_prog_compiler_static='--static' 8578 ;; 8579 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8580 # Portland Group compilers (*not* the Pentium gcc compiler, 8581 # which looks to be a dead project) 8582 lt_prog_compiler_wl='-Wl,' 8583 lt_prog_compiler_pic='-fpic' 8584 lt_prog_compiler_static='-Bstatic' 8585 ;; 8586 ccc*) 8587 lt_prog_compiler_wl='-Wl,' 8588 # All Alpha code is PIC. 8589 lt_prog_compiler_static='-non_shared' 8590 ;; 8591 xl* | bgxl* | bgf* | mpixl*) 8592 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8593 lt_prog_compiler_wl='-Wl,' 8594 lt_prog_compiler_pic='-qpic' 8595 lt_prog_compiler_static='-qstaticlink' 8596 ;; 8597 *) 8598 case `$CC -V 2>&1 | sed 5q` in 8599 *Sun\ F* | *Sun*Fortran*) 8600 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8601 lt_prog_compiler_pic='-KPIC' 8602 lt_prog_compiler_static='-Bstatic' 8603 lt_prog_compiler_wl='' 8604 ;; 8605 *Sun\ C*) 8606 # Sun C 5.9 8607 lt_prog_compiler_pic='-KPIC' 8608 lt_prog_compiler_static='-Bstatic' 8609 lt_prog_compiler_wl='-Wl,' 8610 ;; 8611 esac 8612 ;; 8613 esac 8614 ;; 8615 8616 newsos6) 8617 lt_prog_compiler_pic='-KPIC' 8618 lt_prog_compiler_static='-Bstatic' 8619 ;; 8620 8621 *nto* | *qnx*) 8622 # QNX uses GNU C++, but need to define -shared option too, otherwise 8623 # it will coredump. 8624 lt_prog_compiler_pic='-fPIC -shared' 8625 ;; 8626 8627 osf3* | osf4* | osf5*) 8628 lt_prog_compiler_wl='-Wl,' 8629 # All OSF/1 code is PIC. 8630 lt_prog_compiler_static='-non_shared' 8631 ;; 8632 8633 rdos*) 8634 lt_prog_compiler_static='-non_shared' 8635 ;; 8636 8637 solaris*) 8638 lt_prog_compiler_pic='-KPIC' 8639 lt_prog_compiler_static='-Bstatic' 8640 case $cc_basename in 8641 f77* | f90* | f95*) 8642 lt_prog_compiler_wl='-Qoption ld ';; 8643 *) 8644 lt_prog_compiler_wl='-Wl,';; 8645 esac 8646 ;; 8647 8648 sunos4*) 8649 lt_prog_compiler_wl='-Qoption ld ' 8650 lt_prog_compiler_pic='-PIC' 8651 lt_prog_compiler_static='-Bstatic' 8652 ;; 8653 8654 sysv4 | sysv4.2uw2* | sysv4.3*) 8655 lt_prog_compiler_wl='-Wl,' 8656 lt_prog_compiler_pic='-KPIC' 8657 lt_prog_compiler_static='-Bstatic' 8658 ;; 8659 8660 sysv4*MP*) 8661 if test -d /usr/nec ;then 8662 lt_prog_compiler_pic='-Kconform_pic' 8663 lt_prog_compiler_static='-Bstatic' 8664 fi 8665 ;; 8666 8667 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8668 lt_prog_compiler_wl='-Wl,' 8669 lt_prog_compiler_pic='-KPIC' 8670 lt_prog_compiler_static='-Bstatic' 8671 ;; 8672 8673 unicos*) 8674 lt_prog_compiler_wl='-Wl,' 8675 lt_prog_compiler_can_build_shared=no 8676 ;; 8677 8678 uts4*) 8679 lt_prog_compiler_pic='-pic' 8680 lt_prog_compiler_static='-Bstatic' 8681 ;; 8682 8683 *) 8684 lt_prog_compiler_can_build_shared=no 8685 ;; 8686 esac 8687 fi 8688 8689 case $host_os in 8690 # For platforms which do not support PIC, -DPIC is meaningless: 8691 *djgpp*) 8692 lt_prog_compiler_pic= 8693 ;; 8694 *) 8695 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8696 ;; 8697 esac 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8699 $as_echo "$lt_prog_compiler_pic" >&6; } 8700 8701 8702 8703 8704 8705 8706 # 8707 # Check to make sure the PIC flag actually works. 8708 # 8709 if test -n "$lt_prog_compiler_pic"; then 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8711 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8712 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8713 $as_echo_n "(cached) " >&6 8714 else 8715 lt_cv_prog_compiler_pic_works=no 8716 ac_outfile=conftest.$ac_objext 8717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8718 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8719 # Insert the option either (1) after the last *FLAGS variable, or 8720 # (2) before a word containing "conftest.", or (3) at the end. 8721 # Note that $ac_compile itself does not contain backslashes and begins 8722 # with a dollar sign (not a hyphen), so the echo should work correctly. 8723 # The option is referenced via a variable to avoid confusing sed. 8724 lt_compile=`echo "$ac_compile" | $SED \ 8725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8727 -e 's:$: $lt_compiler_flag:'` 8728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8729 (eval "$lt_compile" 2>conftest.err) 8730 ac_status=$? 8731 cat conftest.err >&5 8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8733 if (exit $ac_status) && test -s "$ac_outfile"; then 8734 # The compiler can only warn and ignore the option if not recognized 8735 # So say no if there are warnings other than the usual output. 8736 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8738 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8739 lt_cv_prog_compiler_pic_works=yes 8740 fi 8741 fi 8742 $RM conftest* 8743 8744 fi 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8746 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8747 8748 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8749 case $lt_prog_compiler_pic in 8750 "" | " "*) ;; 8751 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8752 esac 8753 else 8754 lt_prog_compiler_pic= 8755 lt_prog_compiler_can_build_shared=no 8756 fi 8757 8758 fi 8759 8760 8761 8762 8763 8764 8765 # 8766 # Check to make sure the static flag actually works. 8767 # 8768 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8770 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8771 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8772 $as_echo_n "(cached) " >&6 8773 else 8774 lt_cv_prog_compiler_static_works=no 8775 save_LDFLAGS="$LDFLAGS" 8776 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8777 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8779 # The linker can only warn and ignore the option if not recognized 8780 # So say no if there are warnings 8781 if test -s conftest.err; then 8782 # Append any errors to the config.log. 8783 cat conftest.err 1>&5 8784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8786 if diff conftest.exp conftest.er2 >/dev/null; then 8787 lt_cv_prog_compiler_static_works=yes 8788 fi 8789 else 8790 lt_cv_prog_compiler_static_works=yes 8791 fi 8792 fi 8793 $RM -r conftest* 8794 LDFLAGS="$save_LDFLAGS" 8795 8796 fi 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8798 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8799 8800 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8801 : 8802 else 8803 lt_prog_compiler_static= 8804 fi 8805 8806 8807 8808 8809 8810 8811 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8813 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8814 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8815 $as_echo_n "(cached) " >&6 8816 else 8817 lt_cv_prog_compiler_c_o=no 8818 $RM -r conftest 2>/dev/null 8819 mkdir conftest 8820 cd conftest 8821 mkdir out 8822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8823 8824 lt_compiler_flag="-o out/conftest2.$ac_objext" 8825 # Insert the option either (1) after the last *FLAGS variable, or 8826 # (2) before a word containing "conftest.", or (3) at the end. 8827 # Note that $ac_compile itself does not contain backslashes and begins 8828 # with a dollar sign (not a hyphen), so the echo should work correctly. 8829 lt_compile=`echo "$ac_compile" | $SED \ 8830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8832 -e 's:$: $lt_compiler_flag:'` 8833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8834 (eval "$lt_compile" 2>out/conftest.err) 8835 ac_status=$? 8836 cat out/conftest.err >&5 8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8838 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8839 then 8840 # The compiler can only warn and ignore the option if not recognized 8841 # So say no if there are warnings 8842 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8843 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8844 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8845 lt_cv_prog_compiler_c_o=yes 8846 fi 8847 fi 8848 chmod u+w . 2>&5 8849 $RM conftest* 8850 # SGI C++ compiler will create directory out/ii_files/ for 8851 # template instantiation 8852 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8853 $RM out/* && rmdir out 8854 cd .. 8855 $RM -r conftest 8856 $RM conftest* 8857 8858 fi 8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8860 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8861 8862 8863 8864 8865 8866 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8868 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8869 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8870 $as_echo_n "(cached) " >&6 8871 else 8872 lt_cv_prog_compiler_c_o=no 8873 $RM -r conftest 2>/dev/null 8874 mkdir conftest 8875 cd conftest 8876 mkdir out 8877 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8878 8879 lt_compiler_flag="-o out/conftest2.$ac_objext" 8880 # Insert the option either (1) after the last *FLAGS variable, or 8881 # (2) before a word containing "conftest.", or (3) at the end. 8882 # Note that $ac_compile itself does not contain backslashes and begins 8883 # with a dollar sign (not a hyphen), so the echo should work correctly. 8884 lt_compile=`echo "$ac_compile" | $SED \ 8885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8887 -e 's:$: $lt_compiler_flag:'` 8888 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8889 (eval "$lt_compile" 2>out/conftest.err) 8890 ac_status=$? 8891 cat out/conftest.err >&5 8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8893 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8894 then 8895 # The compiler can only warn and ignore the option if not recognized 8896 # So say no if there are warnings 8897 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8898 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8899 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8900 lt_cv_prog_compiler_c_o=yes 8901 fi 8902 fi 8903 chmod u+w . 2>&5 8904 $RM conftest* 8905 # SGI C++ compiler will create directory out/ii_files/ for 8906 # template instantiation 8907 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8908 $RM out/* && rmdir out 8909 cd .. 8910 $RM -r conftest 8911 $RM conftest* 8912 8913 fi 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8915 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8916 8917 8918 8919 8920 hard_links="nottested" 8921 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8922 # do not overwrite the value of need_locks provided by the user 8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8924 $as_echo_n "checking if we can lock with hard links... " >&6; } 8925 hard_links=yes 8926 $RM conftest* 8927 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8928 touch conftest.a 8929 ln conftest.a conftest.b 2>&5 || hard_links=no 8930 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8932 $as_echo "$hard_links" >&6; } 8933 if test "$hard_links" = no; then 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8935 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8936 need_locks=warn 8937 fi 8938 else 8939 need_locks=no 8940 fi 8941 8942 8943 8944 8945 8946 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8948 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8949 8950 runpath_var= 8951 allow_undefined_flag= 8952 always_export_symbols=no 8953 archive_cmds= 8954 archive_expsym_cmds= 8955 compiler_needs_object=no 8956 enable_shared_with_static_runtimes=no 8957 export_dynamic_flag_spec= 8958 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8959 hardcode_automatic=no 8960 hardcode_direct=no 8961 hardcode_direct_absolute=no 8962 hardcode_libdir_flag_spec= 8963 hardcode_libdir_flag_spec_ld= 8964 hardcode_libdir_separator= 8965 hardcode_minus_L=no 8966 hardcode_shlibpath_var=unsupported 8967 inherit_rpath=no 8968 link_all_deplibs=unknown 8969 module_cmds= 8970 module_expsym_cmds= 8971 old_archive_from_new_cmds= 8972 old_archive_from_expsyms_cmds= 8973 thread_safe_flag_spec= 8974 whole_archive_flag_spec= 8975 # include_expsyms should be a list of space-separated symbols to be *always* 8976 # included in the symbol list 8977 include_expsyms= 8978 # exclude_expsyms can be an extended regexp of symbols to exclude 8979 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8980 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8981 # as well as any symbol that contains `d'. 8982 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8983 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8984 # platforms (ab)use it in PIC code, but their linkers get confused if 8985 # the symbol is explicitly referenced. Since portable code cannot 8986 # rely on this symbol name, it's probably fine to never include it in 8987 # preloaded symbol tables. 8988 # Exclude shared library initialization/finalization symbols. 8989 extract_expsyms_cmds= 8990 8991 case $host_os in 8992 cygwin* | mingw* | pw32* | cegcc*) 8993 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8994 # When not using gcc, we currently assume that we are using 8995 # Microsoft Visual C++. 8996 if test "$GCC" != yes; then 8997 with_gnu_ld=no 8998 fi 8999 ;; 9000 interix*) 9001 # we just hope/assume this is gcc and not c89 (= MSVC++) 9002 with_gnu_ld=yes 9003 ;; 9004 openbsd*) 9005 with_gnu_ld=no 9006 ;; 9007 esac 9008 9009 ld_shlibs=yes 9010 9011 # On some targets, GNU ld is compatible enough with the native linker 9012 # that we're better off using the native interface for both. 9013 lt_use_gnu_ld_interface=no 9014 if test "$with_gnu_ld" = yes; then 9015 case $host_os in 9016 aix*) 9017 # The AIX port of GNU ld has always aspired to compatibility 9018 # with the native linker. However, as the warning in the GNU ld 9019 # block says, versions before 2.19.5* couldn't really create working 9020 # shared libraries, regardless of the interface used. 9021 case `$LD -v 2>&1` in 9022 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9023 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9024 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9025 *) 9026 lt_use_gnu_ld_interface=yes 9027 ;; 9028 esac 9029 ;; 9030 *) 9031 lt_use_gnu_ld_interface=yes 9032 ;; 9033 esac 9034 fi 9035 9036 if test "$lt_use_gnu_ld_interface" = yes; then 9037 # If archive_cmds runs LD, not CC, wlarc should be empty 9038 wlarc='${wl}' 9039 9040 # Set some defaults for GNU ld with shared library support. These 9041 # are reset later if shared libraries are not supported. Putting them 9042 # here allows them to be overridden if necessary. 9043 runpath_var=LD_RUN_PATH 9044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9045 export_dynamic_flag_spec='${wl}--export-dynamic' 9046 # ancient GNU ld didn't support --whole-archive et. al. 9047 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9048 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9049 else 9050 whole_archive_flag_spec= 9051 fi 9052 supports_anon_versioning=no 9053 case `$LD -v 2>&1` in 9054 *GNU\ gold*) supports_anon_versioning=yes ;; 9055 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9056 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9057 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9058 *\ 2.11.*) ;; # other 2.11 versions 9059 *) supports_anon_versioning=yes ;; 9060 esac 9061 9062 # See if GNU ld supports shared libraries. 9063 case $host_os in 9064 aix[3-9]*) 9065 # On AIX/PPC, the GNU linker is very broken 9066 if test "$host_cpu" != ia64; then 9067 ld_shlibs=no 9068 cat <<_LT_EOF 1>&2 9069 9070 *** Warning: the GNU linker, at least up to release 2.19, is reported 9071 *** to be unable to reliably create shared libraries on AIX. 9072 *** Therefore, libtool is disabling shared libraries support. If you 9073 *** really care for shared libraries, you may want to install binutils 9074 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9075 *** You will then need to restart the configuration process. 9076 9077 _LT_EOF 9078 fi 9079 ;; 9080 9081 amigaos*) 9082 case $host_cpu in 9083 powerpc) 9084 # see comment about AmigaOS4 .so support 9085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9086 archive_expsym_cmds='' 9087 ;; 9088 m68k) 9089 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)' 9090 hardcode_libdir_flag_spec='-L$libdir' 9091 hardcode_minus_L=yes 9092 ;; 9093 esac 9094 ;; 9095 9096 beos*) 9097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9098 allow_undefined_flag=unsupported 9099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9100 # support --undefined. This deserves some investigation. FIXME 9101 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9102 else 9103 ld_shlibs=no 9104 fi 9105 ;; 9106 9107 cygwin* | mingw* | pw32* | cegcc*) 9108 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9109 # as there is no search path for DLLs. 9110 hardcode_libdir_flag_spec='-L$libdir' 9111 export_dynamic_flag_spec='${wl}--export-all-symbols' 9112 allow_undefined_flag=unsupported 9113 always_export_symbols=no 9114 enable_shared_with_static_runtimes=yes 9115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9116 9117 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9118 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9119 # If the export-symbols file already is a .def file (1st line 9120 # is EXPORTS), use it as is; otherwise, prepend... 9121 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9122 cp $export_symbols $output_objdir/$soname.def; 9123 else 9124 echo EXPORTS > $output_objdir/$soname.def; 9125 cat $export_symbols >> $output_objdir/$soname.def; 9126 fi~ 9127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9128 else 9129 ld_shlibs=no 9130 fi 9131 ;; 9132 9133 haiku*) 9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9135 link_all_deplibs=yes 9136 ;; 9137 9138 interix[3-9]*) 9139 hardcode_direct=no 9140 hardcode_shlibpath_var=no 9141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9142 export_dynamic_flag_spec='${wl}-E' 9143 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9144 # Instead, shared libraries are loaded at an image base (0x10000000 by 9145 # default) and relocated if they conflict, which is a slow very memory 9146 # consuming and fragmenting process. To avoid this, we pick a random, 9147 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9148 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9150 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' 9151 ;; 9152 9153 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9154 tmp_diet=no 9155 if test "$host_os" = linux-dietlibc; then 9156 case $cc_basename in 9157 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9158 esac 9159 fi 9160 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9161 && test "$tmp_diet" = no 9162 then 9163 tmp_addflag=' $pic_flag' 9164 tmp_sharedflag='-shared' 9165 case $cc_basename,$host_cpu in 9166 pgcc*) # Portland Group C compiler 9167 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9168 tmp_addflag=' $pic_flag' 9169 ;; 9170 pgf77* | pgf90* | pgf95* | pgfortran*) 9171 # Portland Group f77 and f90 compilers 9172 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9173 tmp_addflag=' $pic_flag -Mnomain' ;; 9174 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9175 tmp_addflag=' -i_dynamic' ;; 9176 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9177 tmp_addflag=' -i_dynamic -nofor_main' ;; 9178 ifc* | ifort*) # Intel Fortran compiler 9179 tmp_addflag=' -nofor_main' ;; 9180 lf95*) # Lahey Fortran 8.1 9181 whole_archive_flag_spec= 9182 tmp_sharedflag='--shared' ;; 9183 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9184 tmp_sharedflag='-qmkshrobj' 9185 tmp_addflag= ;; 9186 nvcc*) # Cuda Compiler Driver 2.2 9187 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9188 compiler_needs_object=yes 9189 ;; 9190 esac 9191 case `$CC -V 2>&1 | sed 5q` in 9192 *Sun\ C*) # Sun C 5.9 9193 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9194 compiler_needs_object=yes 9195 tmp_sharedflag='-G' ;; 9196 *Sun\ F*) # Sun Fortran 8.3 9197 tmp_sharedflag='-G' ;; 9198 esac 9199 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9200 9201 if test "x$supports_anon_versioning" = xyes; then 9202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9204 echo "local: *; };" >> $output_objdir/$libname.ver~ 9205 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9206 fi 9207 9208 case $cc_basename in 9209 xlf* | bgf* | bgxlf* | mpixlf*) 9210 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9211 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9212 hardcode_libdir_flag_spec= 9213 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9214 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9215 if test "x$supports_anon_versioning" = xyes; then 9216 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9217 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9218 echo "local: *; };" >> $output_objdir/$libname.ver~ 9219 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9220 fi 9221 ;; 9222 esac 9223 else 9224 ld_shlibs=no 9225 fi 9226 ;; 9227 9228 netbsd*) 9229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9230 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9231 wlarc= 9232 else 9233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9235 fi 9236 ;; 9237 9238 solaris*) 9239 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9240 ld_shlibs=no 9241 cat <<_LT_EOF 1>&2 9242 9243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9244 *** create shared libraries on Solaris systems. Therefore, libtool 9245 *** is disabling shared libraries support. We urge you to upgrade GNU 9246 *** binutils to release 2.9.1 or newer. Another option is to modify 9247 *** your PATH or compiler configuration so that the native linker is 9248 *** used, and then restart. 9249 9250 _LT_EOF 9251 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9253 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9254 else 9255 ld_shlibs=no 9256 fi 9257 ;; 9258 9259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9260 case `$LD -v 2>&1` in 9261 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9262 ld_shlibs=no 9263 cat <<_LT_EOF 1>&2 9264 9265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9266 *** reliably create shared libraries on SCO systems. Therefore, libtool 9267 *** is disabling shared libraries support. We urge you to upgrade GNU 9268 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9269 *** your PATH or compiler configuration so that the native linker is 9270 *** used, and then restart. 9271 9272 _LT_EOF 9273 ;; 9274 *) 9275 # For security reasons, it is highly recommended that you always 9276 # use absolute paths for naming shared libraries, and exclude the 9277 # DT_RUNPATH tag from executables and libraries. But doing so 9278 # requires that you compile everything twice, which is a pain. 9279 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9283 else 9284 ld_shlibs=no 9285 fi 9286 ;; 9287 esac 9288 ;; 9289 9290 sunos4*) 9291 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9292 wlarc= 9293 hardcode_direct=yes 9294 hardcode_shlibpath_var=no 9295 ;; 9296 9297 *) 9298 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9301 else 9302 ld_shlibs=no 9303 fi 9304 ;; 9305 esac 9306 9307 if test "$ld_shlibs" = no; then 9308 runpath_var= 9309 hardcode_libdir_flag_spec= 9310 export_dynamic_flag_spec= 9311 whole_archive_flag_spec= 9312 fi 9313 else 9314 # PORTME fill in a description of your system's linker (not GNU ld) 9315 case $host_os in 9316 aix3*) 9317 allow_undefined_flag=unsupported 9318 always_export_symbols=yes 9319 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 9320 # Note: this linker hardcodes the directories in LIBPATH if there 9321 # are no directories specified by -L. 9322 hardcode_minus_L=yes 9323 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9324 # Neither direct hardcoding nor static linking is supported with a 9325 # broken collect2. 9326 hardcode_direct=unsupported 9327 fi 9328 ;; 9329 9330 aix[4-9]*) 9331 if test "$host_cpu" = ia64; then 9332 # On IA64, the linker does run time linking by default, so we don't 9333 # have to do anything special. 9334 aix_use_runtimelinking=no 9335 exp_sym_flag='-Bexport' 9336 no_entry_flag="" 9337 else 9338 # If we're using GNU nm, then we don't want the "-C" option. 9339 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9340 # Also, AIX nm treats weak defined symbols like other global 9341 # defined symbols, whereas GNU nm marks them as "W". 9342 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9343 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9344 else 9345 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9346 fi 9347 aix_use_runtimelinking=no 9348 9349 # Test if we are trying to use run time linking or normal 9350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9351 # need to do runtime linking. 9352 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9353 for ld_flag in $LDFLAGS; do 9354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9355 aix_use_runtimelinking=yes 9356 break 9357 fi 9358 done 9359 ;; 9360 esac 9361 9362 exp_sym_flag='-bexport' 9363 no_entry_flag='-bnoentry' 9364 fi 9365 9366 # When large executables or shared objects are built, AIX ld can 9367 # have problems creating the table of contents. If linking a library 9368 # or program results in "error TOC overflow" add -mminimal-toc to 9369 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9370 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9371 9372 archive_cmds='' 9373 hardcode_direct=yes 9374 hardcode_direct_absolute=yes 9375 hardcode_libdir_separator=':' 9376 link_all_deplibs=yes 9377 file_list_spec='${wl}-f,' 9378 9379 if test "$GCC" = yes; then 9380 case $host_os in aix4.[012]|aix4.[012].*) 9381 # We only want to do this on AIX 4.2 and lower, the check 9382 # below for broken collect2 doesn't work under 4.3+ 9383 collect2name=`${CC} -print-prog-name=collect2` 9384 if test -f "$collect2name" && 9385 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9386 then 9387 # We have reworked collect2 9388 : 9389 else 9390 # We have old collect2 9391 hardcode_direct=unsupported 9392 # It fails to find uninstalled libraries when the uninstalled 9393 # path is not listed in the libpath. Setting hardcode_minus_L 9394 # to unsupported forces relinking 9395 hardcode_minus_L=yes 9396 hardcode_libdir_flag_spec='-L$libdir' 9397 hardcode_libdir_separator= 9398 fi 9399 ;; 9400 esac 9401 shared_flag='-shared' 9402 if test "$aix_use_runtimelinking" = yes; then 9403 shared_flag="$shared_flag "'${wl}-G' 9404 fi 9405 else 9406 # not using gcc 9407 if test "$host_cpu" = ia64; then 9408 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9409 # chokes on -Wl,-G. The following line is correct: 9410 shared_flag='-G' 9411 else 9412 if test "$aix_use_runtimelinking" = yes; then 9413 shared_flag='${wl}-G' 9414 else 9415 shared_flag='${wl}-bM:SRE' 9416 fi 9417 fi 9418 fi 9419 9420 export_dynamic_flag_spec='${wl}-bexpall' 9421 # It seems that -bexpall does not export symbols beginning with 9422 # underscore (_), so it is better to generate a list of symbols to export. 9423 always_export_symbols=yes 9424 if test "$aix_use_runtimelinking" = yes; then 9425 # Warning - without using the other runtime loading flags (-brtl), 9426 # -berok will link without error, but may produce a broken library. 9427 allow_undefined_flag='-berok' 9428 # Determine the default libpath from the value encoded in an 9429 # empty executable. 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431 /* end confdefs.h. */ 9432 9433 int 9434 main () 9435 { 9436 9437 ; 9438 return 0; 9439 } 9440 _ACEOF 9441 if ac_fn_c_try_link "$LINENO"; then : 9442 9443 lt_aix_libpath_sed=' 9444 /Import File Strings/,/^$/ { 9445 /^0/ { 9446 s/^0 *\(.*\)$/\1/ 9447 p 9448 } 9449 }' 9450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9451 # Check for a 64-bit object if we didn't find anything. 9452 if test -z "$aix_libpath"; then 9453 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9454 fi 9455 fi 9456 rm -f core conftest.err conftest.$ac_objext \ 9457 conftest$ac_exeext conftest.$ac_ext 9458 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9459 9460 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9461 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9462 else 9463 if test "$host_cpu" = ia64; then 9464 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9465 allow_undefined_flag="-z nodefs" 9466 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 9467 else 9468 # Determine the default libpath from the value encoded in an 9469 # empty executable. 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471 /* end confdefs.h. */ 9472 9473 int 9474 main () 9475 { 9476 9477 ; 9478 return 0; 9479 } 9480 _ACEOF 9481 if ac_fn_c_try_link "$LINENO"; then : 9482 9483 lt_aix_libpath_sed=' 9484 /Import File Strings/,/^$/ { 9485 /^0/ { 9486 s/^0 *\(.*\)$/\1/ 9487 p 9488 } 9489 }' 9490 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9491 # Check for a 64-bit object if we didn't find anything. 9492 if test -z "$aix_libpath"; then 9493 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9494 fi 9495 fi 9496 rm -f core conftest.err conftest.$ac_objext \ 9497 conftest$ac_exeext conftest.$ac_ext 9498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9499 9500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9501 # Warning - without using the other run time loading flags, 9502 # -berok will link without error, but may produce a broken library. 9503 no_undefined_flag=' ${wl}-bernotok' 9504 allow_undefined_flag=' ${wl}-berok' 9505 if test "$with_gnu_ld" = yes; then 9506 # We only use this code for GNU lds that support --whole-archive. 9507 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9508 else 9509 # Exported symbols can be pulled into shared objects from archives 9510 whole_archive_flag_spec='$convenience' 9511 fi 9512 archive_cmds_need_lc=yes 9513 # This is similar to how AIX traditionally builds its shared libraries. 9514 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9515 fi 9516 fi 9517 ;; 9518 9519 amigaos*) 9520 case $host_cpu in 9521 powerpc) 9522 # see comment about AmigaOS4 .so support 9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9524 archive_expsym_cmds='' 9525 ;; 9526 m68k) 9527 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)' 9528 hardcode_libdir_flag_spec='-L$libdir' 9529 hardcode_minus_L=yes 9530 ;; 9531 esac 9532 ;; 9533 9534 bsdi[45]*) 9535 export_dynamic_flag_spec=-rdynamic 9536 ;; 9537 9538 cygwin* | mingw* | pw32* | cegcc*) 9539 # When not using gcc, we currently assume that we are using 9540 # Microsoft Visual C++. 9541 # hardcode_libdir_flag_spec is actually meaningless, as there is 9542 # no search path for DLLs. 9543 hardcode_libdir_flag_spec=' ' 9544 allow_undefined_flag=unsupported 9545 # Tell ltmain to make .lib files, not .a files. 9546 libext=lib 9547 # Tell ltmain to make .dll files, not .so files. 9548 shrext_cmds=".dll" 9549 # FIXME: Setting linknames here is a bad hack. 9550 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9551 # The linker will automatically build a .lib file if we build a DLL. 9552 old_archive_from_new_cmds='true' 9553 # FIXME: Should let the user specify the lib program. 9554 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9555 fix_srcfile_path='`cygpath -w "$srcfile"`' 9556 enable_shared_with_static_runtimes=yes 9557 ;; 9558 9559 darwin* | rhapsody*) 9560 9561 9562 archive_cmds_need_lc=no 9563 hardcode_direct=no 9564 hardcode_automatic=yes 9565 hardcode_shlibpath_var=unsupported 9566 if test "$lt_cv_ld_force_load" = "yes"; then 9567 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9568 else 9569 whole_archive_flag_spec='' 9570 fi 9571 link_all_deplibs=yes 9572 allow_undefined_flag="$_lt_dar_allow_undefined" 9573 case $cc_basename in 9574 ifort*) _lt_dar_can_shared=yes ;; 9575 *) _lt_dar_can_shared=$GCC ;; 9576 esac 9577 if test "$_lt_dar_can_shared" = "yes"; then 9578 output_verbose_link_cmd=func_echo_all 9579 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9580 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9581 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9582 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9583 9584 else 9585 ld_shlibs=no 9586 fi 9587 9588 ;; 9589 9590 dgux*) 9591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9592 hardcode_libdir_flag_spec='-L$libdir' 9593 hardcode_shlibpath_var=no 9594 ;; 9595 9596 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9597 # support. Future versions do this automatically, but an explicit c++rt0.o 9598 # does not break anything, and helps significantly (at the cost of a little 9599 # extra space). 9600 freebsd2.2*) 9601 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9602 hardcode_libdir_flag_spec='-R$libdir' 9603 hardcode_direct=yes 9604 hardcode_shlibpath_var=no 9605 ;; 9606 9607 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9608 freebsd2.*) 9609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9610 hardcode_direct=yes 9611 hardcode_minus_L=yes 9612 hardcode_shlibpath_var=no 9613 ;; 9614 9615 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9616 freebsd* | dragonfly*) 9617 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9618 hardcode_libdir_flag_spec='-R$libdir' 9619 hardcode_direct=yes 9620 hardcode_shlibpath_var=no 9621 ;; 9622 9623 hpux9*) 9624 if test "$GCC" = yes; then 9625 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9626 else 9627 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9628 fi 9629 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9630 hardcode_libdir_separator=: 9631 hardcode_direct=yes 9632 9633 # hardcode_minus_L: Not really in the search PATH, 9634 # but as the default location of the library. 9635 hardcode_minus_L=yes 9636 export_dynamic_flag_spec='${wl}-E' 9637 ;; 9638 9639 hpux10*) 9640 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9641 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9642 else 9643 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9644 fi 9645 if test "$with_gnu_ld" = no; then 9646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9647 hardcode_libdir_flag_spec_ld='+b $libdir' 9648 hardcode_libdir_separator=: 9649 hardcode_direct=yes 9650 hardcode_direct_absolute=yes 9651 export_dynamic_flag_spec='${wl}-E' 9652 # hardcode_minus_L: Not really in the search PATH, 9653 # but as the default location of the library. 9654 hardcode_minus_L=yes 9655 fi 9656 ;; 9657 9658 hpux11*) 9659 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9660 case $host_cpu in 9661 hppa*64*) 9662 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9663 ;; 9664 ia64*) 9665 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9666 ;; 9667 *) 9668 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9669 ;; 9670 esac 9671 else 9672 case $host_cpu in 9673 hppa*64*) 9674 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9675 ;; 9676 ia64*) 9677 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9678 ;; 9679 *) 9680 9681 # Older versions of the 11.00 compiler do not understand -b yet 9682 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9684 $as_echo_n "checking if $CC understands -b... " >&6; } 9685 if test "${lt_cv_prog_compiler__b+set}" = set; then : 9686 $as_echo_n "(cached) " >&6 9687 else 9688 lt_cv_prog_compiler__b=no 9689 save_LDFLAGS="$LDFLAGS" 9690 LDFLAGS="$LDFLAGS -b" 9691 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9692 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9693 # The linker can only warn and ignore the option if not recognized 9694 # So say no if there are warnings 9695 if test -s conftest.err; then 9696 # Append any errors to the config.log. 9697 cat conftest.err 1>&5 9698 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9699 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9700 if diff conftest.exp conftest.er2 >/dev/null; then 9701 lt_cv_prog_compiler__b=yes 9702 fi 9703 else 9704 lt_cv_prog_compiler__b=yes 9705 fi 9706 fi 9707 $RM -r conftest* 9708 LDFLAGS="$save_LDFLAGS" 9709 9710 fi 9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9712 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9713 9714 if test x"$lt_cv_prog_compiler__b" = xyes; then 9715 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9716 else 9717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9718 fi 9719 9720 ;; 9721 esac 9722 fi 9723 if test "$with_gnu_ld" = no; then 9724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9725 hardcode_libdir_separator=: 9726 9727 case $host_cpu in 9728 hppa*64*|ia64*) 9729 hardcode_direct=no 9730 hardcode_shlibpath_var=no 9731 ;; 9732 *) 9733 hardcode_direct=yes 9734 hardcode_direct_absolute=yes 9735 export_dynamic_flag_spec='${wl}-E' 9736 9737 # hardcode_minus_L: Not really in the search PATH, 9738 # but as the default location of the library. 9739 hardcode_minus_L=yes 9740 ;; 9741 esac 9742 fi 9743 ;; 9744 9745 irix5* | irix6* | nonstopux*) 9746 if test "$GCC" = yes; then 9747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9748 # Try to use the -exported_symbol ld option, if it does not 9749 # work, assume that -exports_file does not work either and 9750 # implicitly export all symbols. 9751 save_LDFLAGS="$LDFLAGS" 9752 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9754 /* end confdefs.h. */ 9755 int foo(void) {} 9756 _ACEOF 9757 if ac_fn_c_try_link "$LINENO"; then : 9758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9759 9760 fi 9761 rm -f core conftest.err conftest.$ac_objext \ 9762 conftest$ac_exeext conftest.$ac_ext 9763 LDFLAGS="$save_LDFLAGS" 9764 else 9765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9767 fi 9768 archive_cmds_need_lc='no' 9769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9770 hardcode_libdir_separator=: 9771 inherit_rpath=yes 9772 link_all_deplibs=yes 9773 ;; 9774 9775 netbsd*) 9776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9778 else 9779 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9780 fi 9781 hardcode_libdir_flag_spec='-R$libdir' 9782 hardcode_direct=yes 9783 hardcode_shlibpath_var=no 9784 ;; 9785 9786 newsos6) 9787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9788 hardcode_direct=yes 9789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9790 hardcode_libdir_separator=: 9791 hardcode_shlibpath_var=no 9792 ;; 9793 9794 *nto* | *qnx*) 9795 ;; 9796 9797 openbsd*) 9798 if test -f /usr/libexec/ld.so; then 9799 hardcode_direct=yes 9800 hardcode_shlibpath_var=no 9801 hardcode_direct_absolute=yes 9802 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9804 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9806 export_dynamic_flag_spec='${wl}-E' 9807 else 9808 case $host_os in 9809 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9811 hardcode_libdir_flag_spec='-R$libdir' 9812 ;; 9813 *) 9814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9816 ;; 9817 esac 9818 fi 9819 else 9820 ld_shlibs=no 9821 fi 9822 ;; 9823 9824 os2*) 9825 hardcode_libdir_flag_spec='-L$libdir' 9826 hardcode_minus_L=yes 9827 allow_undefined_flag=unsupported 9828 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 9829 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9830 ;; 9831 9832 osf3*) 9833 if test "$GCC" = yes; then 9834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9835 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9836 else 9837 allow_undefined_flag=' -expect_unresolved \*' 9838 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9839 fi 9840 archive_cmds_need_lc='no' 9841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9842 hardcode_libdir_separator=: 9843 ;; 9844 9845 osf4* | osf5*) # as osf3* with the addition of -msym flag 9846 if test "$GCC" = yes; then 9847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9848 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9850 else 9851 allow_undefined_flag=' -expect_unresolved \*' 9852 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9853 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 9854 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9855 9856 # Both c and cxx compiler support -rpath directly 9857 hardcode_libdir_flag_spec='-rpath $libdir' 9858 fi 9859 archive_cmds_need_lc='no' 9860 hardcode_libdir_separator=: 9861 ;; 9862 9863 solaris*) 9864 no_undefined_flag=' -z defs' 9865 if test "$GCC" = yes; then 9866 wlarc='${wl}' 9867 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9868 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9869 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9870 else 9871 case `$CC -V 2>&1` in 9872 *"Compilers 5.0"*) 9873 wlarc='' 9874 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9876 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9877 ;; 9878 *) 9879 wlarc='${wl}' 9880 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9881 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9882 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9883 ;; 9884 esac 9885 fi 9886 hardcode_libdir_flag_spec='-R$libdir' 9887 hardcode_shlibpath_var=no 9888 case $host_os in 9889 solaris2.[0-5] | solaris2.[0-5].*) ;; 9890 *) 9891 # The compiler driver will combine and reorder linker options, 9892 # but understands `-z linker_flag'. GCC discards it without `$wl', 9893 # but is careful enough not to reorder. 9894 # Supported since Solaris 2.6 (maybe 2.5.1?) 9895 if test "$GCC" = yes; then 9896 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9897 else 9898 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9899 fi 9900 ;; 9901 esac 9902 link_all_deplibs=yes 9903 ;; 9904 9905 sunos4*) 9906 if test "x$host_vendor" = xsequent; then 9907 # Use $CC to link under sequent, because it throws in some extra .o 9908 # files that make .init and .fini sections work. 9909 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9910 else 9911 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9912 fi 9913 hardcode_libdir_flag_spec='-L$libdir' 9914 hardcode_direct=yes 9915 hardcode_minus_L=yes 9916 hardcode_shlibpath_var=no 9917 ;; 9918 9919 sysv4) 9920 case $host_vendor in 9921 sni) 9922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9923 hardcode_direct=yes # is this really true??? 9924 ;; 9925 siemens) 9926 ## LD is ld it makes a PLAMLIB 9927 ## CC just makes a GrossModule. 9928 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9929 reload_cmds='$CC -r -o $output$reload_objs' 9930 hardcode_direct=no 9931 ;; 9932 motorola) 9933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9934 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9935 ;; 9936 esac 9937 runpath_var='LD_RUN_PATH' 9938 hardcode_shlibpath_var=no 9939 ;; 9940 9941 sysv4.3*) 9942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9943 hardcode_shlibpath_var=no 9944 export_dynamic_flag_spec='-Bexport' 9945 ;; 9946 9947 sysv4*MP*) 9948 if test -d /usr/nec; then 9949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9950 hardcode_shlibpath_var=no 9951 runpath_var=LD_RUN_PATH 9952 hardcode_runpath_var=yes 9953 ld_shlibs=yes 9954 fi 9955 ;; 9956 9957 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9958 no_undefined_flag='${wl}-z,text' 9959 archive_cmds_need_lc=no 9960 hardcode_shlibpath_var=no 9961 runpath_var='LD_RUN_PATH' 9962 9963 if test "$GCC" = yes; then 9964 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9965 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9966 else 9967 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9968 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9969 fi 9970 ;; 9971 9972 sysv5* | sco3.2v5* | sco5v6*) 9973 # Note: We can NOT use -z defs as we might desire, because we do not 9974 # link with -lc, and that would cause any symbols used from libc to 9975 # always be unresolved, which means just about no library would 9976 # ever link correctly. If we're not using GNU ld we use -z text 9977 # though, which does catch some bad symbols but isn't as heavy-handed 9978 # as -z defs. 9979 no_undefined_flag='${wl}-z,text' 9980 allow_undefined_flag='${wl}-z,nodefs' 9981 archive_cmds_need_lc=no 9982 hardcode_shlibpath_var=no 9983 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9984 hardcode_libdir_separator=':' 9985 link_all_deplibs=yes 9986 export_dynamic_flag_spec='${wl}-Bexport' 9987 runpath_var='LD_RUN_PATH' 9988 9989 if test "$GCC" = yes; then 9990 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9991 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9992 else 9993 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9994 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9995 fi 9996 ;; 9997 9998 uts4*) 9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10000 hardcode_libdir_flag_spec='-L$libdir' 10001 hardcode_shlibpath_var=no 10002 ;; 10003 10004 *) 10005 ld_shlibs=no 10006 ;; 10007 esac 10008 10009 if test x$host_vendor = xsni; then 10010 case $host in 10011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10012 export_dynamic_flag_spec='${wl}-Blargedynsym' 10013 ;; 10014 esac 10015 fi 10016 fi 10017 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10019 $as_echo "$ld_shlibs" >&6; } 10020 test "$ld_shlibs" = no && can_build_shared=no 10021 10022 with_gnu_ld=$with_gnu_ld 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 # 10039 # Do we need to explicitly link libc? 10040 # 10041 case "x$archive_cmds_need_lc" in 10042 x|xyes) 10043 # Assume -lc should be added 10044 archive_cmds_need_lc=yes 10045 10046 if test "$enable_shared" = yes && test "$GCC" = yes; then 10047 case $archive_cmds in 10048 *'~'*) 10049 # FIXME: we may have to deal with multi-command sequences. 10050 ;; 10051 '$CC '*) 10052 # Test whether the compiler implicitly links with -lc since on some 10053 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10054 # to ld, don't add -lc before -lgcc. 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10056 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10057 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10058 $as_echo_n "(cached) " >&6 10059 else 10060 $RM conftest* 10061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10062 10063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10064 (eval $ac_compile) 2>&5 10065 ac_status=$? 10066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10067 test $ac_status = 0; } 2>conftest.err; then 10068 soname=conftest 10069 lib=conftest 10070 libobjs=conftest.$ac_objext 10071 deplibs= 10072 wl=$lt_prog_compiler_wl 10073 pic_flag=$lt_prog_compiler_pic 10074 compiler_flags=-v 10075 linker_flags=-v 10076 verstring= 10077 output_objdir=. 10078 libname=conftest 10079 lt_save_allow_undefined_flag=$allow_undefined_flag 10080 allow_undefined_flag= 10081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10082 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10083 ac_status=$? 10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10085 test $ac_status = 0; } 10086 then 10087 lt_cv_archive_cmds_need_lc=no 10088 else 10089 lt_cv_archive_cmds_need_lc=yes 10090 fi 10091 allow_undefined_flag=$lt_save_allow_undefined_flag 10092 else 10093 cat conftest.err 1>&5 10094 fi 10095 $RM conftest* 10096 10097 fi 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10099 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10100 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10101 ;; 10102 esac 10103 fi 10104 ;; 10105 esac 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10264 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10265 10266 if test "$GCC" = yes; then 10267 case $host_os in 10268 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10269 *) lt_awk_arg="/^libraries:/" ;; 10270 esac 10271 case $host_os in 10272 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10273 *) lt_sed_strip_eq="s,=/,/,g" ;; 10274 esac 10275 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10276 case $lt_search_path_spec in 10277 *\;*) 10278 # if the path contains ";" then we assume it to be the separator 10279 # otherwise default to the standard path separator (i.e. ":") - it is 10280 # assumed that no part of a normal pathname contains ";" but that should 10281 # okay in the real world where ";" in dirpaths is itself problematic. 10282 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10283 ;; 10284 *) 10285 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10286 ;; 10287 esac 10288 # Ok, now we have the path, separated by spaces, we can step through it 10289 # and add multilib dir if necessary. 10290 lt_tmp_lt_search_path_spec= 10291 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10292 for lt_sys_path in $lt_search_path_spec; do 10293 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10294 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10295 else 10296 test -d "$lt_sys_path" && \ 10297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10298 fi 10299 done 10300 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10301 BEGIN {RS=" "; FS="/|\n";} { 10302 lt_foo=""; 10303 lt_count=0; 10304 for (lt_i = NF; lt_i > 0; lt_i--) { 10305 if ($lt_i != "" && $lt_i != ".") { 10306 if ($lt_i == "..") { 10307 lt_count++; 10308 } else { 10309 if (lt_count == 0) { 10310 lt_foo="/" $lt_i lt_foo; 10311 } else { 10312 lt_count--; 10313 } 10314 } 10315 } 10316 } 10317 if (lt_foo != "") { lt_freq[lt_foo]++; } 10318 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10319 }'` 10320 # AWK program above erroneously prepends '/' to C:/dos/paths 10321 # for these hosts. 10322 case $host_os in 10323 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10324 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10325 esac 10326 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10327 else 10328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10329 fi 10330 library_names_spec= 10331 libname_spec='lib$name' 10332 soname_spec= 10333 shrext_cmds=".so" 10334 postinstall_cmds= 10335 postuninstall_cmds= 10336 finish_cmds= 10337 finish_eval= 10338 shlibpath_var= 10339 shlibpath_overrides_runpath=unknown 10340 version_type=none 10341 dynamic_linker="$host_os ld.so" 10342 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10343 need_lib_prefix=unknown 10344 hardcode_into_libs=no 10345 10346 # when you set need_version to no, make sure it does not cause -set_version 10347 # flags to be left without arguments 10348 need_version=unknown 10349 10350 case $host_os in 10351 aix3*) 10352 version_type=linux 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10354 shlibpath_var=LIBPATH 10355 10356 # AIX 3 has no versioning support, so we append a major version to the name. 10357 soname_spec='${libname}${release}${shared_ext}$major' 10358 ;; 10359 10360 aix[4-9]*) 10361 version_type=linux 10362 need_lib_prefix=no 10363 need_version=no 10364 hardcode_into_libs=yes 10365 if test "$host_cpu" = ia64; then 10366 # AIX 5 supports IA64 10367 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10368 shlibpath_var=LD_LIBRARY_PATH 10369 else 10370 # With GCC up to 2.95.x, collect2 would create an import file 10371 # for dependence libraries. The import file would start with 10372 # the line `#! .'. This would cause the generated library to 10373 # depend on `.', always an invalid library. This was fixed in 10374 # development snapshots of GCC prior to 3.0. 10375 case $host_os in 10376 aix4 | aix4.[01] | aix4.[01].*) 10377 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10378 echo ' yes ' 10379 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10380 : 10381 else 10382 can_build_shared=no 10383 fi 10384 ;; 10385 esac 10386 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10387 # soname into executable. Probably we can add versioning support to 10388 # collect2, so additional links can be useful in future. 10389 if test "$aix_use_runtimelinking" = yes; then 10390 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10391 # instead of lib<name>.a to let people know that these are not 10392 # typical AIX shared libraries. 10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10394 else 10395 # We preserve .a as extension for shared libraries through AIX4.2 10396 # and later when we are not doing run time linking. 10397 library_names_spec='${libname}${release}.a $libname.a' 10398 soname_spec='${libname}${release}${shared_ext}$major' 10399 fi 10400 shlibpath_var=LIBPATH 10401 fi 10402 ;; 10403 10404 amigaos*) 10405 case $host_cpu in 10406 powerpc) 10407 # Since July 2007 AmigaOS4 officially supports .so libraries. 10408 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10410 ;; 10411 m68k) 10412 library_names_spec='$libname.ixlibrary $libname.a' 10413 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10414 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10415 ;; 10416 esac 10417 ;; 10418 10419 beos*) 10420 library_names_spec='${libname}${shared_ext}' 10421 dynamic_linker="$host_os ld.so" 10422 shlibpath_var=LIBRARY_PATH 10423 ;; 10424 10425 bsdi[45]*) 10426 version_type=linux 10427 need_version=no 10428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10429 soname_spec='${libname}${release}${shared_ext}$major' 10430 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10431 shlibpath_var=LD_LIBRARY_PATH 10432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10434 # the default ld.so.conf also contains /usr/contrib/lib and 10435 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10436 # libtool to hard-code these into programs 10437 ;; 10438 10439 cygwin* | mingw* | pw32* | cegcc*) 10440 version_type=windows 10441 shrext_cmds=".dll" 10442 need_version=no 10443 need_lib_prefix=no 10444 10445 case $GCC,$host_os in 10446 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10447 library_names_spec='$libname.dll.a' 10448 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10449 postinstall_cmds='base_file=`basename \${file}`~ 10450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10451 dldir=$destdir/`dirname \$dlpath`~ 10452 test -d \$dldir || mkdir -p \$dldir~ 10453 $install_prog $dir/$dlname \$dldir/$dlname~ 10454 chmod a+x \$dldir/$dlname~ 10455 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10456 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10457 fi' 10458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10459 dlpath=$dir/\$dldll~ 10460 $RM \$dlpath' 10461 shlibpath_overrides_runpath=yes 10462 10463 case $host_os in 10464 cygwin*) 10465 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10467 10468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10469 ;; 10470 mingw* | cegcc*) 10471 # MinGW DLLs use traditional 'lib' prefix 10472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10473 ;; 10474 pw32*) 10475 # pw32 DLLs use 'pw' prefix rather than 'lib' 10476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10477 ;; 10478 esac 10479 ;; 10480 10481 *) 10482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10483 ;; 10484 esac 10485 dynamic_linker='Win32 ld.exe' 10486 # FIXME: first we should search . and the directory the executable is in 10487 shlibpath_var=PATH 10488 ;; 10489 10490 darwin* | rhapsody*) 10491 dynamic_linker="$host_os dyld" 10492 version_type=darwin 10493 need_lib_prefix=no 10494 need_version=no 10495 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10496 soname_spec='${libname}${release}${major}$shared_ext' 10497 shlibpath_overrides_runpath=yes 10498 shlibpath_var=DYLD_LIBRARY_PATH 10499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10500 10501 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10502 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10503 ;; 10504 10505 dgux*) 10506 version_type=linux 10507 need_lib_prefix=no 10508 need_version=no 10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10510 soname_spec='${libname}${release}${shared_ext}$major' 10511 shlibpath_var=LD_LIBRARY_PATH 10512 ;; 10513 10514 freebsd* | dragonfly*) 10515 # DragonFly does not have aout. When/if they implement a new 10516 # versioning mechanism, adjust this. 10517 if test -x /usr/bin/objformat; then 10518 objformat=`/usr/bin/objformat` 10519 else 10520 case $host_os in 10521 freebsd[23].*) objformat=aout ;; 10522 *) objformat=elf ;; 10523 esac 10524 fi 10525 version_type=freebsd-$objformat 10526 case $version_type in 10527 freebsd-elf*) 10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10529 need_version=no 10530 need_lib_prefix=no 10531 ;; 10532 freebsd-*) 10533 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10534 need_version=yes 10535 ;; 10536 esac 10537 shlibpath_var=LD_LIBRARY_PATH 10538 case $host_os in 10539 freebsd2.*) 10540 shlibpath_overrides_runpath=yes 10541 ;; 10542 freebsd3.[01]* | freebsdelf3.[01]*) 10543 shlibpath_overrides_runpath=yes 10544 hardcode_into_libs=yes 10545 ;; 10546 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10547 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10548 shlibpath_overrides_runpath=no 10549 hardcode_into_libs=yes 10550 ;; 10551 *) # from 4.6 on, and DragonFly 10552 shlibpath_overrides_runpath=yes 10553 hardcode_into_libs=yes 10554 ;; 10555 esac 10556 ;; 10557 10558 gnu*) 10559 version_type=linux 10560 need_lib_prefix=no 10561 need_version=no 10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10563 soname_spec='${libname}${release}${shared_ext}$major' 10564 shlibpath_var=LD_LIBRARY_PATH 10565 hardcode_into_libs=yes 10566 ;; 10567 10568 haiku*) 10569 version_type=linux 10570 need_lib_prefix=no 10571 need_version=no 10572 dynamic_linker="$host_os runtime_loader" 10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10574 soname_spec='${libname}${release}${shared_ext}$major' 10575 shlibpath_var=LIBRARY_PATH 10576 shlibpath_overrides_runpath=yes 10577 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10578 hardcode_into_libs=yes 10579 ;; 10580 10581 hpux9* | hpux10* | hpux11*) 10582 # Give a soname corresponding to the major version so that dld.sl refuses to 10583 # link against other versions. 10584 version_type=sunos 10585 need_lib_prefix=no 10586 need_version=no 10587 case $host_cpu in 10588 ia64*) 10589 shrext_cmds='.so' 10590 hardcode_into_libs=yes 10591 dynamic_linker="$host_os dld.so" 10592 shlibpath_var=LD_LIBRARY_PATH 10593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10595 soname_spec='${libname}${release}${shared_ext}$major' 10596 if test "X$HPUX_IA64_MODE" = X32; then 10597 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10598 else 10599 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10600 fi 10601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10602 ;; 10603 hppa*64*) 10604 shrext_cmds='.sl' 10605 hardcode_into_libs=yes 10606 dynamic_linker="$host_os dld.sl" 10607 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10610 soname_spec='${libname}${release}${shared_ext}$major' 10611 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10613 ;; 10614 *) 10615 shrext_cmds='.sl' 10616 dynamic_linker="$host_os dld.sl" 10617 shlibpath_var=SHLIB_PATH 10618 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10620 soname_spec='${libname}${release}${shared_ext}$major' 10621 ;; 10622 esac 10623 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10624 postinstall_cmds='chmod 555 $lib' 10625 # or fails outright, so override atomically: 10626 install_override_mode=555 10627 ;; 10628 10629 interix[3-9]*) 10630 version_type=linux 10631 need_lib_prefix=no 10632 need_version=no 10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10634 soname_spec='${libname}${release}${shared_ext}$major' 10635 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10636 shlibpath_var=LD_LIBRARY_PATH 10637 shlibpath_overrides_runpath=no 10638 hardcode_into_libs=yes 10639 ;; 10640 10641 irix5* | irix6* | nonstopux*) 10642 case $host_os in 10643 nonstopux*) version_type=nonstopux ;; 10644 *) 10645 if test "$lt_cv_prog_gnu_ld" = yes; then 10646 version_type=linux 10647 else 10648 version_type=irix 10649 fi ;; 10650 esac 10651 need_lib_prefix=no 10652 need_version=no 10653 soname_spec='${libname}${release}${shared_ext}$major' 10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10655 case $host_os in 10656 irix5* | nonstopux*) 10657 libsuff= shlibsuff= 10658 ;; 10659 *) 10660 case $LD in # libtool.m4 will add one of these switches to LD 10661 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10662 libsuff= shlibsuff= libmagic=32-bit;; 10663 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10664 libsuff=32 shlibsuff=N32 libmagic=N32;; 10665 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10666 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10667 *) libsuff= shlibsuff= libmagic=never-match;; 10668 esac 10669 ;; 10670 esac 10671 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10672 shlibpath_overrides_runpath=no 10673 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10674 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10675 hardcode_into_libs=yes 10676 ;; 10677 10678 # No shared lib support for Linux oldld, aout, or coff. 10679 linux*oldld* | linux*aout* | linux*coff*) 10680 dynamic_linker=no 10681 ;; 10682 10683 # This must be Linux ELF. 10684 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10685 version_type=linux 10686 need_lib_prefix=no 10687 need_version=no 10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10689 soname_spec='${libname}${release}${shared_ext}$major' 10690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10691 shlibpath_var=LD_LIBRARY_PATH 10692 shlibpath_overrides_runpath=no 10693 10694 # Some binutils ld are patched to set DT_RUNPATH 10695 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10696 $as_echo_n "(cached) " >&6 10697 else 10698 lt_cv_shlibpath_overrides_runpath=no 10699 save_LDFLAGS=$LDFLAGS 10700 save_libdir=$libdir 10701 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10702 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704 /* end confdefs.h. */ 10705 10706 int 10707 main () 10708 { 10709 10710 ; 10711 return 0; 10712 } 10713 _ACEOF 10714 if ac_fn_c_try_link "$LINENO"; then : 10715 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10716 lt_cv_shlibpath_overrides_runpath=yes 10717 fi 10718 fi 10719 rm -f core conftest.err conftest.$ac_objext \ 10720 conftest$ac_exeext conftest.$ac_ext 10721 LDFLAGS=$save_LDFLAGS 10722 libdir=$save_libdir 10723 10724 fi 10725 10726 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10727 10728 # This implies no fast_install, which is unacceptable. 10729 # Some rework will be needed to allow for fast_install 10730 # before this can be enabled. 10731 hardcode_into_libs=yes 10732 10733 # Append ld.so.conf contents to the search path 10734 if test -f /etc/ld.so.conf; then 10735 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10736 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10737 fi 10738 10739 # We used to test for /lib/ld.so.1 and disable shared libraries on 10740 # powerpc, because MkLinux only supported shared libraries with the 10741 # GNU dynamic linker. Since this was broken with cross compilers, 10742 # most powerpc-linux boxes support dynamic linking these days and 10743 # people can always --disable-shared, the test was removed, and we 10744 # assume the GNU/Linux dynamic linker is in use. 10745 dynamic_linker='GNU/Linux ld.so' 10746 ;; 10747 10748 netbsd*) 10749 version_type=sunos 10750 need_lib_prefix=no 10751 need_version=no 10752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10755 dynamic_linker='NetBSD (a.out) ld.so' 10756 else 10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10758 soname_spec='${libname}${release}${shared_ext}$major' 10759 dynamic_linker='NetBSD ld.elf_so' 10760 fi 10761 shlibpath_var=LD_LIBRARY_PATH 10762 shlibpath_overrides_runpath=yes 10763 hardcode_into_libs=yes 10764 ;; 10765 10766 newsos6) 10767 version_type=linux 10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10769 shlibpath_var=LD_LIBRARY_PATH 10770 shlibpath_overrides_runpath=yes 10771 ;; 10772 10773 *nto* | *qnx*) 10774 version_type=qnx 10775 need_lib_prefix=no 10776 need_version=no 10777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10778 soname_spec='${libname}${release}${shared_ext}$major' 10779 shlibpath_var=LD_LIBRARY_PATH 10780 shlibpath_overrides_runpath=no 10781 hardcode_into_libs=yes 10782 dynamic_linker='ldqnx.so' 10783 ;; 10784 10785 openbsd*) 10786 version_type=sunos 10787 sys_lib_dlsearch_path_spec="/usr/lib" 10788 need_lib_prefix=no 10789 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10790 case $host_os in 10791 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10792 *) need_version=no ;; 10793 esac 10794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10796 shlibpath_var=LD_LIBRARY_PATH 10797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10798 case $host_os in 10799 openbsd2.[89] | openbsd2.[89].*) 10800 shlibpath_overrides_runpath=no 10801 ;; 10802 *) 10803 shlibpath_overrides_runpath=yes 10804 ;; 10805 esac 10806 else 10807 shlibpath_overrides_runpath=yes 10808 fi 10809 ;; 10810 10811 os2*) 10812 libname_spec='$name' 10813 shrext_cmds=".dll" 10814 need_lib_prefix=no 10815 library_names_spec='$libname${shared_ext} $libname.a' 10816 dynamic_linker='OS/2 ld.exe' 10817 shlibpath_var=LIBPATH 10818 ;; 10819 10820 osf3* | osf4* | osf5*) 10821 version_type=osf 10822 need_lib_prefix=no 10823 need_version=no 10824 soname_spec='${libname}${release}${shared_ext}$major' 10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10826 shlibpath_var=LD_LIBRARY_PATH 10827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10829 ;; 10830 10831 rdos*) 10832 dynamic_linker=no 10833 ;; 10834 10835 solaris*) 10836 version_type=linux 10837 need_lib_prefix=no 10838 need_version=no 10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10840 soname_spec='${libname}${release}${shared_ext}$major' 10841 shlibpath_var=LD_LIBRARY_PATH 10842 shlibpath_overrides_runpath=yes 10843 hardcode_into_libs=yes 10844 # ldd complains unless libraries are executable 10845 postinstall_cmds='chmod +x $lib' 10846 ;; 10847 10848 sunos4*) 10849 version_type=sunos 10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10852 shlibpath_var=LD_LIBRARY_PATH 10853 shlibpath_overrides_runpath=yes 10854 if test "$with_gnu_ld" = yes; then 10855 need_lib_prefix=no 10856 fi 10857 need_version=yes 10858 ;; 10859 10860 sysv4 | sysv4.3*) 10861 version_type=linux 10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10863 soname_spec='${libname}${release}${shared_ext}$major' 10864 shlibpath_var=LD_LIBRARY_PATH 10865 case $host_vendor in 10866 sni) 10867 shlibpath_overrides_runpath=no 10868 need_lib_prefix=no 10869 runpath_var=LD_RUN_PATH 10870 ;; 10871 siemens) 10872 need_lib_prefix=no 10873 ;; 10874 motorola) 10875 need_lib_prefix=no 10876 need_version=no 10877 shlibpath_overrides_runpath=no 10878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10879 ;; 10880 esac 10881 ;; 10882 10883 sysv4*MP*) 10884 if test -d /usr/nec ;then 10885 version_type=linux 10886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10887 soname_spec='$libname${shared_ext}.$major' 10888 shlibpath_var=LD_LIBRARY_PATH 10889 fi 10890 ;; 10891 10892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10893 version_type=freebsd-elf 10894 need_lib_prefix=no 10895 need_version=no 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10897 soname_spec='${libname}${release}${shared_ext}$major' 10898 shlibpath_var=LD_LIBRARY_PATH 10899 shlibpath_overrides_runpath=yes 10900 hardcode_into_libs=yes 10901 if test "$with_gnu_ld" = yes; then 10902 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10903 else 10904 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10905 case $host_os in 10906 sco3.2v5*) 10907 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10908 ;; 10909 esac 10910 fi 10911 sys_lib_dlsearch_path_spec='/usr/lib' 10912 ;; 10913 10914 tpf*) 10915 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10916 version_type=linux 10917 need_lib_prefix=no 10918 need_version=no 10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10920 shlibpath_var=LD_LIBRARY_PATH 10921 shlibpath_overrides_runpath=no 10922 hardcode_into_libs=yes 10923 ;; 10924 10925 uts4*) 10926 version_type=linux 10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10928 soname_spec='${libname}${release}${shared_ext}$major' 10929 shlibpath_var=LD_LIBRARY_PATH 10930 ;; 10931 10932 *) 10933 dynamic_linker=no 10934 ;; 10935 esac 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10937 $as_echo "$dynamic_linker" >&6; } 10938 test "$dynamic_linker" = no && can_build_shared=no 10939 10940 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10941 if test "$GCC" = yes; then 10942 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10943 fi 10944 10945 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10946 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10947 fi 10948 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10949 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10950 fi 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11044 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11045 hardcode_action= 11046 if test -n "$hardcode_libdir_flag_spec" || 11047 test -n "$runpath_var" || 11048 test "X$hardcode_automatic" = "Xyes" ; then 11049 11050 # We can hardcode non-existent directories. 11051 if test "$hardcode_direct" != no && 11052 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11053 # have to relink, otherwise we might link with an installed library 11054 # when we should be linking with a yet-to-be-installed one 11055 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11056 test "$hardcode_minus_L" != no; then 11057 # Linking always hardcodes the temporary library directory. 11058 hardcode_action=relink 11059 else 11060 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11061 hardcode_action=immediate 11062 fi 11063 else 11064 # We cannot hardcode anything, or else we can only hardcode existing 11065 # directories. 11066 hardcode_action=unsupported 11067 fi 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11069 $as_echo "$hardcode_action" >&6; } 11070 11071 if test "$hardcode_action" = relink || 11072 test "$inherit_rpath" = yes; then 11073 # Fast installation is not supported 11074 enable_fast_install=no 11075 elif test "$shlibpath_overrides_runpath" = yes || 11076 test "$enable_shared" = no; then 11077 # Fast installation is not necessary 11078 enable_fast_install=needless 11079 fi 11080 11081 11082 11083 11084 11085 11086 if test "x$enable_dlopen" != xyes; then 11087 enable_dlopen=unknown 11088 enable_dlopen_self=unknown 11089 enable_dlopen_self_static=unknown 11090 else 11091 lt_cv_dlopen=no 11092 lt_cv_dlopen_libs= 11093 11094 case $host_os in 11095 beos*) 11096 lt_cv_dlopen="load_add_on" 11097 lt_cv_dlopen_libs= 11098 lt_cv_dlopen_self=yes 11099 ;; 11100 11101 mingw* | pw32* | cegcc*) 11102 lt_cv_dlopen="LoadLibrary" 11103 lt_cv_dlopen_libs= 11104 ;; 11105 11106 cygwin*) 11107 lt_cv_dlopen="dlopen" 11108 lt_cv_dlopen_libs= 11109 ;; 11110 11111 darwin*) 11112 # if libdl is installed we need to link against it 11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11114 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11115 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11116 $as_echo_n "(cached) " >&6 11117 else 11118 ac_check_lib_save_LIBS=$LIBS 11119 LIBS="-ldl $LIBS" 11120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11121 /* end confdefs.h. */ 11122 11123 /* Override any GCC internal prototype to avoid an error. 11124 Use char because int might match the return type of a GCC 11125 builtin and then its argument prototype would still apply. */ 11126 #ifdef __cplusplus 11127 extern "C" 11128 #endif 11129 char dlopen (); 11130 int 11131 main () 11132 { 11133 return dlopen (); 11134 ; 11135 return 0; 11136 } 11137 _ACEOF 11138 if ac_fn_c_try_link "$LINENO"; then : 11139 ac_cv_lib_dl_dlopen=yes 11140 else 11141 ac_cv_lib_dl_dlopen=no 11142 fi 11143 rm -f core conftest.err conftest.$ac_objext \ 11144 conftest$ac_exeext conftest.$ac_ext 11145 LIBS=$ac_check_lib_save_LIBS 11146 fi 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11149 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11151 else 11152 11153 lt_cv_dlopen="dyld" 11154 lt_cv_dlopen_libs= 11155 lt_cv_dlopen_self=yes 11156 11157 fi 11158 11159 ;; 11160 11161 *) 11162 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11163 if test "x$ac_cv_func_shl_load" = x""yes; then : 11164 lt_cv_dlopen="shl_load" 11165 else 11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11167 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11168 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11169 $as_echo_n "(cached) " >&6 11170 else 11171 ac_check_lib_save_LIBS=$LIBS 11172 LIBS="-ldld $LIBS" 11173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11174 /* end confdefs.h. */ 11175 11176 /* Override any GCC internal prototype to avoid an error. 11177 Use char because int might match the return type of a GCC 11178 builtin and then its argument prototype would still apply. */ 11179 #ifdef __cplusplus 11180 extern "C" 11181 #endif 11182 char shl_load (); 11183 int 11184 main () 11185 { 11186 return shl_load (); 11187 ; 11188 return 0; 11189 } 11190 _ACEOF 11191 if ac_fn_c_try_link "$LINENO"; then : 11192 ac_cv_lib_dld_shl_load=yes 11193 else 11194 ac_cv_lib_dld_shl_load=no 11195 fi 11196 rm -f core conftest.err conftest.$ac_objext \ 11197 conftest$ac_exeext conftest.$ac_ext 11198 LIBS=$ac_check_lib_save_LIBS 11199 fi 11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11201 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11202 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11203 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11204 else 11205 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11206 if test "x$ac_cv_func_dlopen" = x""yes; then : 11207 lt_cv_dlopen="dlopen" 11208 else 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11210 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11211 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11212 $as_echo_n "(cached) " >&6 11213 else 11214 ac_check_lib_save_LIBS=$LIBS 11215 LIBS="-ldl $LIBS" 11216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11217 /* end confdefs.h. */ 11218 11219 /* Override any GCC internal prototype to avoid an error. 11220 Use char because int might match the return type of a GCC 11221 builtin and then its argument prototype would still apply. */ 11222 #ifdef __cplusplus 11223 extern "C" 11224 #endif 11225 char dlopen (); 11226 int 11227 main () 11228 { 11229 return dlopen (); 11230 ; 11231 return 0; 11232 } 11233 _ACEOF 11234 if ac_fn_c_try_link "$LINENO"; then : 11235 ac_cv_lib_dl_dlopen=yes 11236 else 11237 ac_cv_lib_dl_dlopen=no 11238 fi 11239 rm -f core conftest.err conftest.$ac_objext \ 11240 conftest$ac_exeext conftest.$ac_ext 11241 LIBS=$ac_check_lib_save_LIBS 11242 fi 11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11244 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11245 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11246 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11247 else 11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11249 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11250 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11251 $as_echo_n "(cached) " >&6 11252 else 11253 ac_check_lib_save_LIBS=$LIBS 11254 LIBS="-lsvld $LIBS" 11255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11256 /* end confdefs.h. */ 11257 11258 /* Override any GCC internal prototype to avoid an error. 11259 Use char because int might match the return type of a GCC 11260 builtin and then its argument prototype would still apply. */ 11261 #ifdef __cplusplus 11262 extern "C" 11263 #endif 11264 char dlopen (); 11265 int 11266 main () 11267 { 11268 return dlopen (); 11269 ; 11270 return 0; 11271 } 11272 _ACEOF 11273 if ac_fn_c_try_link "$LINENO"; then : 11274 ac_cv_lib_svld_dlopen=yes 11275 else 11276 ac_cv_lib_svld_dlopen=no 11277 fi 11278 rm -f core conftest.err conftest.$ac_objext \ 11279 conftest$ac_exeext conftest.$ac_ext 11280 LIBS=$ac_check_lib_save_LIBS 11281 fi 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11283 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11284 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11286 else 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11288 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11289 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11290 $as_echo_n "(cached) " >&6 11291 else 11292 ac_check_lib_save_LIBS=$LIBS 11293 LIBS="-ldld $LIBS" 11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11295 /* end confdefs.h. */ 11296 11297 /* Override any GCC internal prototype to avoid an error. 11298 Use char because int might match the return type of a GCC 11299 builtin and then its argument prototype would still apply. */ 11300 #ifdef __cplusplus 11301 extern "C" 11302 #endif 11303 char dld_link (); 11304 int 11305 main () 11306 { 11307 return dld_link (); 11308 ; 11309 return 0; 11310 } 11311 _ACEOF 11312 if ac_fn_c_try_link "$LINENO"; then : 11313 ac_cv_lib_dld_dld_link=yes 11314 else 11315 ac_cv_lib_dld_dld_link=no 11316 fi 11317 rm -f core conftest.err conftest.$ac_objext \ 11318 conftest$ac_exeext conftest.$ac_ext 11319 LIBS=$ac_check_lib_save_LIBS 11320 fi 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11322 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11323 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11324 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11325 fi 11326 11327 11328 fi 11329 11330 11331 fi 11332 11333 11334 fi 11335 11336 11337 fi 11338 11339 11340 fi 11341 11342 ;; 11343 esac 11344 11345 if test "x$lt_cv_dlopen" != xno; then 11346 enable_dlopen=yes 11347 else 11348 enable_dlopen=no 11349 fi 11350 11351 case $lt_cv_dlopen in 11352 dlopen) 11353 save_CPPFLAGS="$CPPFLAGS" 11354 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11355 11356 save_LDFLAGS="$LDFLAGS" 11357 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11358 11359 save_LIBS="$LIBS" 11360 LIBS="$lt_cv_dlopen_libs $LIBS" 11361 11362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11363 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11364 if test "${lt_cv_dlopen_self+set}" = set; then : 11365 $as_echo_n "(cached) " >&6 11366 else 11367 if test "$cross_compiling" = yes; then : 11368 lt_cv_dlopen_self=cross 11369 else 11370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11371 lt_status=$lt_dlunknown 11372 cat > conftest.$ac_ext <<_LT_EOF 11373 #line 11373 "configure" 11374 #include "confdefs.h" 11375 11376 #if HAVE_DLFCN_H 11377 #include <dlfcn.h> 11378 #endif 11379 11380 #include <stdio.h> 11381 11382 #ifdef RTLD_GLOBAL 11383 # define LT_DLGLOBAL RTLD_GLOBAL 11384 #else 11385 # ifdef DL_GLOBAL 11386 # define LT_DLGLOBAL DL_GLOBAL 11387 # else 11388 # define LT_DLGLOBAL 0 11389 # endif 11390 #endif 11391 11392 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11393 find out it does not work in some platform. */ 11394 #ifndef LT_DLLAZY_OR_NOW 11395 # ifdef RTLD_LAZY 11396 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11397 # else 11398 # ifdef DL_LAZY 11399 # define LT_DLLAZY_OR_NOW DL_LAZY 11400 # else 11401 # ifdef RTLD_NOW 11402 # define LT_DLLAZY_OR_NOW RTLD_NOW 11403 # else 11404 # ifdef DL_NOW 11405 # define LT_DLLAZY_OR_NOW DL_NOW 11406 # else 11407 # define LT_DLLAZY_OR_NOW 0 11408 # endif 11409 # endif 11410 # endif 11411 # endif 11412 #endif 11413 11414 /* When -fvisbility=hidden is used, assume the code has been annotated 11415 correspondingly for the symbols needed. */ 11416 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11417 void fnord () __attribute__((visibility("default"))); 11418 #endif 11419 11420 void fnord () { int i=42; } 11421 int main () 11422 { 11423 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11424 int status = $lt_dlunknown; 11425 11426 if (self) 11427 { 11428 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11429 else 11430 { 11431 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11432 else puts (dlerror ()); 11433 } 11434 /* dlclose (self); */ 11435 } 11436 else 11437 puts (dlerror ()); 11438 11439 return status; 11440 } 11441 _LT_EOF 11442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11443 (eval $ac_link) 2>&5 11444 ac_status=$? 11445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11446 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11447 (./conftest; exit; ) >&5 2>/dev/null 11448 lt_status=$? 11449 case x$lt_status in 11450 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11451 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11452 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11453 esac 11454 else : 11455 # compilation failed 11456 lt_cv_dlopen_self=no 11457 fi 11458 fi 11459 rm -fr conftest* 11460 11461 11462 fi 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11464 $as_echo "$lt_cv_dlopen_self" >&6; } 11465 11466 if test "x$lt_cv_dlopen_self" = xyes; then 11467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11469 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11470 if test "${lt_cv_dlopen_self_static+set}" = set; then : 11471 $as_echo_n "(cached) " >&6 11472 else 11473 if test "$cross_compiling" = yes; then : 11474 lt_cv_dlopen_self_static=cross 11475 else 11476 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11477 lt_status=$lt_dlunknown 11478 cat > conftest.$ac_ext <<_LT_EOF 11479 #line 11479 "configure" 11480 #include "confdefs.h" 11481 11482 #if HAVE_DLFCN_H 11483 #include <dlfcn.h> 11484 #endif 11485 11486 #include <stdio.h> 11487 11488 #ifdef RTLD_GLOBAL 11489 # define LT_DLGLOBAL RTLD_GLOBAL 11490 #else 11491 # ifdef DL_GLOBAL 11492 # define LT_DLGLOBAL DL_GLOBAL 11493 # else 11494 # define LT_DLGLOBAL 0 11495 # endif 11496 #endif 11497 11498 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11499 find out it does not work in some platform. */ 11500 #ifndef LT_DLLAZY_OR_NOW 11501 # ifdef RTLD_LAZY 11502 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11503 # else 11504 # ifdef DL_LAZY 11505 # define LT_DLLAZY_OR_NOW DL_LAZY 11506 # else 11507 # ifdef RTLD_NOW 11508 # define LT_DLLAZY_OR_NOW RTLD_NOW 11509 # else 11510 # ifdef DL_NOW 11511 # define LT_DLLAZY_OR_NOW DL_NOW 11512 # else 11513 # define LT_DLLAZY_OR_NOW 0 11514 # endif 11515 # endif 11516 # endif 11517 # endif 11518 #endif 11519 11520 /* When -fvisbility=hidden is used, assume the code has been annotated 11521 correspondingly for the symbols needed. */ 11522 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11523 void fnord () __attribute__((visibility("default"))); 11524 #endif 11525 11526 void fnord () { int i=42; } 11527 int main () 11528 { 11529 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11530 int status = $lt_dlunknown; 11531 11532 if (self) 11533 { 11534 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11535 else 11536 { 11537 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11538 else puts (dlerror ()); 11539 } 11540 /* dlclose (self); */ 11541 } 11542 else 11543 puts (dlerror ()); 11544 11545 return status; 11546 } 11547 _LT_EOF 11548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11549 (eval $ac_link) 2>&5 11550 ac_status=$? 11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11552 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11553 (./conftest; exit; ) >&5 2>/dev/null 11554 lt_status=$? 11555 case x$lt_status in 11556 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11557 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11558 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11559 esac 11560 else : 11561 # compilation failed 11562 lt_cv_dlopen_self_static=no 11563 fi 11564 fi 11565 rm -fr conftest* 11566 11567 11568 fi 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11570 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11571 fi 11572 11573 CPPFLAGS="$save_CPPFLAGS" 11574 LDFLAGS="$save_LDFLAGS" 11575 LIBS="$save_LIBS" 11576 ;; 11577 esac 11578 11579 case $lt_cv_dlopen_self in 11580 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11581 *) enable_dlopen_self=unknown ;; 11582 esac 11583 11584 case $lt_cv_dlopen_self_static in 11585 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11586 *) enable_dlopen_self_static=unknown ;; 11587 esac 11588 fi 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 striplib= 11607 old_striplib= 11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11609 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11610 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11611 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11612 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11614 $as_echo "yes" >&6; } 11615 else 11616 # FIXME - insert some real tests, host_os isn't really good enough 11617 case $host_os in 11618 darwin*) 11619 if test -n "$STRIP" ; then 11620 striplib="$STRIP -x" 11621 old_striplib="$STRIP -S" 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11623 $as_echo "yes" >&6; } 11624 else 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11626 $as_echo "no" >&6; } 11627 fi 11628 ;; 11629 *) 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11631 $as_echo "no" >&6; } 11632 ;; 11633 esac 11634 fi 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 # Report which library types will actually be built 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11649 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11651 $as_echo "$can_build_shared" >&6; } 11652 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11654 $as_echo_n "checking whether to build shared libraries... " >&6; } 11655 test "$can_build_shared" = "no" && enable_shared=no 11656 11657 # On AIX, shared libraries and static libraries use the same namespace, and 11658 # are all built from PIC. 11659 case $host_os in 11660 aix3*) 11661 test "$enable_shared" = yes && enable_static=no 11662 if test -n "$RANLIB"; then 11663 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11664 postinstall_cmds='$RANLIB $lib' 11665 fi 11666 ;; 11667 11668 aix[4-9]*) 11669 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11670 test "$enable_shared" = yes && enable_static=no 11671 fi 11672 ;; 11673 esac 11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11675 $as_echo "$enable_shared" >&6; } 11676 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11678 $as_echo_n "checking whether to build static libraries... " >&6; } 11679 # Make sure either enable_shared or enable_static is yes. 11680 test "$enable_shared" = yes || enable_static=yes 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11682 $as_echo "$enable_static" >&6; } 11683 11684 11685 11686 11687 fi 11688 ac_ext=c 11689 ac_cpp='$CPP $CPPFLAGS' 11690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11692 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11693 11694 CC="$lt_save_CC" 11695 11696 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11697 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11698 (test "X$CXX" != "Xg++"))) ; then 11699 ac_ext=cpp 11700 ac_cpp='$CXXCPP $CPPFLAGS' 11701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11705 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11706 if test -z "$CXXCPP"; then 11707 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11708 $as_echo_n "(cached) " >&6 11709 else 11710 # Double quotes because CXXCPP needs to be expanded 11711 for CXXCPP in "$CXX -E" "/lib/cpp" 11712 do 11713 ac_preproc_ok=false 11714 for ac_cxx_preproc_warn_flag in '' yes 11715 do 11716 # Use a header file that comes with gcc, so configuring glibc 11717 # with a fresh cross-compiler works. 11718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11719 # <limits.h> exists even on freestanding compilers. 11720 # On the NeXT, cc -E runs the code through the compiler's parser, 11721 # not just through cpp. "Syntax error" is here to catch this case. 11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11723 /* end confdefs.h. */ 11724 #ifdef __STDC__ 11725 # include <limits.h> 11726 #else 11727 # include <assert.h> 11728 #endif 11729 Syntax error 11730 _ACEOF 11731 if ac_fn_cxx_try_cpp "$LINENO"; then : 11732 11733 else 11734 # Broken: fails on valid input. 11735 continue 11736 fi 11737 rm -f conftest.err conftest.$ac_ext 11738 11739 # OK, works on sane cases. Now check whether nonexistent headers 11740 # can be detected and how. 11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11742 /* end confdefs.h. */ 11743 #include <ac_nonexistent.h> 11744 _ACEOF 11745 if ac_fn_cxx_try_cpp "$LINENO"; then : 11746 # Broken: success on invalid input. 11747 continue 11748 else 11749 # Passes both tests. 11750 ac_preproc_ok=: 11751 break 11752 fi 11753 rm -f conftest.err conftest.$ac_ext 11754 11755 done 11756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11757 rm -f conftest.err conftest.$ac_ext 11758 if $ac_preproc_ok; then : 11759 break 11760 fi 11761 11762 done 11763 ac_cv_prog_CXXCPP=$CXXCPP 11764 11765 fi 11766 CXXCPP=$ac_cv_prog_CXXCPP 11767 else 11768 ac_cv_prog_CXXCPP=$CXXCPP 11769 fi 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11771 $as_echo "$CXXCPP" >&6; } 11772 ac_preproc_ok=false 11773 for ac_cxx_preproc_warn_flag in '' yes 11774 do 11775 # Use a header file that comes with gcc, so configuring glibc 11776 # with a fresh cross-compiler works. 11777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11778 # <limits.h> exists even on freestanding compilers. 11779 # On the NeXT, cc -E runs the code through the compiler's parser, 11780 # not just through cpp. "Syntax error" is here to catch this case. 11781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11782 /* end confdefs.h. */ 11783 #ifdef __STDC__ 11784 # include <limits.h> 11785 #else 11786 # include <assert.h> 11787 #endif 11788 Syntax error 11789 _ACEOF 11790 if ac_fn_cxx_try_cpp "$LINENO"; then : 11791 11792 else 11793 # Broken: fails on valid input. 11794 continue 11795 fi 11796 rm -f conftest.err conftest.$ac_ext 11797 11798 # OK, works on sane cases. Now check whether nonexistent headers 11799 # can be detected and how. 11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11801 /* end confdefs.h. */ 11802 #include <ac_nonexistent.h> 11803 _ACEOF 11804 if ac_fn_cxx_try_cpp "$LINENO"; then : 11805 # Broken: success on invalid input. 11806 continue 11807 else 11808 # Passes both tests. 11809 ac_preproc_ok=: 11810 break 11811 fi 11812 rm -f conftest.err conftest.$ac_ext 11813 11814 done 11815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11816 rm -f conftest.err conftest.$ac_ext 11817 if $ac_preproc_ok; then : 11818 11819 else 11820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11822 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 11823 See \`config.log' for more details." "$LINENO" 5; } 11824 fi 11825 11826 ac_ext=c 11827 ac_cpp='$CPP $CPPFLAGS' 11828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11830 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11831 11832 else 11833 _lt_caught_CXX_error=yes 11834 fi 11835 11836 ac_ext=cpp 11837 ac_cpp='$CXXCPP $CPPFLAGS' 11838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11841 11842 archive_cmds_need_lc_CXX=no 11843 allow_undefined_flag_CXX= 11844 always_export_symbols_CXX=no 11845 archive_expsym_cmds_CXX= 11846 compiler_needs_object_CXX=no 11847 export_dynamic_flag_spec_CXX= 11848 hardcode_direct_CXX=no 11849 hardcode_direct_absolute_CXX=no 11850 hardcode_libdir_flag_spec_CXX= 11851 hardcode_libdir_flag_spec_ld_CXX= 11852 hardcode_libdir_separator_CXX= 11853 hardcode_minus_L_CXX=no 11854 hardcode_shlibpath_var_CXX=unsupported 11855 hardcode_automatic_CXX=no 11856 inherit_rpath_CXX=no 11857 module_cmds_CXX= 11858 module_expsym_cmds_CXX= 11859 link_all_deplibs_CXX=unknown 11860 old_archive_cmds_CXX=$old_archive_cmds 11861 reload_flag_CXX=$reload_flag 11862 reload_cmds_CXX=$reload_cmds 11863 no_undefined_flag_CXX= 11864 whole_archive_flag_spec_CXX= 11865 enable_shared_with_static_runtimes_CXX=no 11866 11867 # Source file extension for C++ test sources. 11868 ac_ext=cpp 11869 11870 # Object file extension for compiled C++ test sources. 11871 objext=o 11872 objext_CXX=$objext 11873 11874 # No sense in running all these tests if we already determined that 11875 # the CXX compiler isn't working. Some variables (like enable_shared) 11876 # are currently assumed to apply to all compilers on this platform, 11877 # and will be corrupted by setting them based on a non-working compiler. 11878 if test "$_lt_caught_CXX_error" != yes; then 11879 # Code to be used in simple compile tests 11880 lt_simple_compile_test_code="int some_variable = 0;" 11881 11882 # Code to be used in simple link tests 11883 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11884 11885 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11886 11887 11888 11889 11890 11891 11892 # If no C compiler was specified, use CC. 11893 LTCC=${LTCC-"$CC"} 11894 11895 # If no C compiler flags were specified, use CFLAGS. 11896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11897 11898 # Allow CC to be a program name with arguments. 11899 compiler=$CC 11900 11901 11902 # save warnings/boilerplate of simple test code 11903 ac_outfile=conftest.$ac_objext 11904 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11905 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11906 _lt_compiler_boilerplate=`cat conftest.err` 11907 $RM conftest* 11908 11909 ac_outfile=conftest.$ac_objext 11910 echo "$lt_simple_link_test_code" >conftest.$ac_ext 11911 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11912 _lt_linker_boilerplate=`cat conftest.err` 11913 $RM -r conftest* 11914 11915 11916 # Allow CC to be a program name with arguments. 11917 lt_save_CC=$CC 11918 lt_save_LD=$LD 11919 lt_save_GCC=$GCC 11920 GCC=$GXX 11921 lt_save_with_gnu_ld=$with_gnu_ld 11922 lt_save_path_LD=$lt_cv_path_LD 11923 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11924 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11925 else 11926 $as_unset lt_cv_prog_gnu_ld 11927 fi 11928 if test -n "${lt_cv_path_LDCXX+set}"; then 11929 lt_cv_path_LD=$lt_cv_path_LDCXX 11930 else 11931 $as_unset lt_cv_path_LD 11932 fi 11933 test -z "${LDCXX+set}" || LD=$LDCXX 11934 CC=${CXX-"c++"} 11935 compiler=$CC 11936 compiler_CXX=$CC 11937 for cc_temp in $compiler""; do 11938 case $cc_temp in 11939 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11940 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11941 \-*) ;; 11942 *) break;; 11943 esac 11944 done 11945 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11946 11947 11948 if test -n "$compiler"; then 11949 # We don't want -fno-exception when compiling C++ code, so set the 11950 # no_builtin_flag separately 11951 if test "$GXX" = yes; then 11952 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11953 else 11954 lt_prog_compiler_no_builtin_flag_CXX= 11955 fi 11956 11957 if test "$GXX" = yes; then 11958 # Set up default GNU C++ configuration 11959 11960 11961 11962 # Check whether --with-gnu-ld was given. 11963 if test "${with_gnu_ld+set}" = set; then : 11964 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11965 else 11966 with_gnu_ld=no 11967 fi 11968 11969 ac_prog=ld 11970 if test "$GCC" = yes; then 11971 # Check if gcc -print-prog-name=ld gives a path. 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11973 $as_echo_n "checking for ld used by $CC... " >&6; } 11974 case $host in 11975 *-*-mingw*) 11976 # gcc leaves a trailing carriage return which upsets mingw 11977 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11978 *) 11979 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11980 esac 11981 case $ac_prog in 11982 # Accept absolute paths. 11983 [\\/]* | ?:[\\/]*) 11984 re_direlt='/[^/][^/]*/\.\./' 11985 # Canonicalize the pathname of ld 11986 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11987 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11988 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11989 done 11990 test -z "$LD" && LD="$ac_prog" 11991 ;; 11992 "") 11993 # If it fails, then pretend we aren't using GCC. 11994 ac_prog=ld 11995 ;; 11996 *) 11997 # If it is relative, then search for the first ld in PATH. 11998 with_gnu_ld=unknown 11999 ;; 12000 esac 12001 elif test "$with_gnu_ld" = yes; then 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12003 $as_echo_n "checking for GNU ld... " >&6; } 12004 else 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12006 $as_echo_n "checking for non-GNU ld... " >&6; } 12007 fi 12008 if test "${lt_cv_path_LD+set}" = set; then : 12009 $as_echo_n "(cached) " >&6 12010 else 12011 if test -z "$LD"; then 12012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12013 for ac_dir in $PATH; do 12014 IFS="$lt_save_ifs" 12015 test -z "$ac_dir" && ac_dir=. 12016 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12017 lt_cv_path_LD="$ac_dir/$ac_prog" 12018 # Check to see if the program is GNU ld. I'd rather use --version, 12019 # but apparently some variants of GNU ld only accept -v. 12020 # Break only if it was the GNU/non-GNU ld that we prefer. 12021 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12022 *GNU* | *'with BFD'*) 12023 test "$with_gnu_ld" != no && break 12024 ;; 12025 *) 12026 test "$with_gnu_ld" != yes && break 12027 ;; 12028 esac 12029 fi 12030 done 12031 IFS="$lt_save_ifs" 12032 else 12033 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12034 fi 12035 fi 12036 12037 LD="$lt_cv_path_LD" 12038 if test -n "$LD"; then 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12040 $as_echo "$LD" >&6; } 12041 else 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12043 $as_echo "no" >&6; } 12044 fi 12045 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12047 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12048 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12049 $as_echo_n "(cached) " >&6 12050 else 12051 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12052 case `$LD -v 2>&1 </dev/null` in 12053 *GNU* | *'with BFD'*) 12054 lt_cv_prog_gnu_ld=yes 12055 ;; 12056 *) 12057 lt_cv_prog_gnu_ld=no 12058 ;; 12059 esac 12060 fi 12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12062 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12063 with_gnu_ld=$lt_cv_prog_gnu_ld 12064 12065 12066 12067 12068 12069 12070 12071 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12072 # archiving commands below assume that GNU ld is being used. 12073 if test "$with_gnu_ld" = yes; then 12074 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12075 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12076 12077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12078 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12079 12080 # If archive_cmds runs LD, not CC, wlarc should be empty 12081 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12082 # investigate it a little bit more. (MM) 12083 wlarc='${wl}' 12084 12085 # ancient GNU ld didn't support --whole-archive et. al. 12086 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12087 $GREP 'no-whole-archive' > /dev/null; then 12088 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12089 else 12090 whole_archive_flag_spec_CXX= 12091 fi 12092 else 12093 with_gnu_ld=no 12094 wlarc= 12095 12096 # A generic and very simple default shared library creation 12097 # command for GNU C++ for the case where it uses the native 12098 # linker, instead of GNU ld. If possible, this setting should 12099 # overridden to take advantage of the native linker features on 12100 # the platform it is being used on. 12101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12102 fi 12103 12104 # Commands to make compiler produce verbose output that lists 12105 # what "hidden" libraries, object files and flags are used when 12106 # linking a shared library. 12107 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12108 12109 else 12110 GXX=no 12111 with_gnu_ld=no 12112 wlarc= 12113 fi 12114 12115 # PORTME: fill in a description of your system's C++ link characteristics 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12118 ld_shlibs_CXX=yes 12119 case $host_os in 12120 aix3*) 12121 # FIXME: insert proper C++ library support 12122 ld_shlibs_CXX=no 12123 ;; 12124 aix[4-9]*) 12125 if test "$host_cpu" = ia64; then 12126 # On IA64, the linker does run time linking by default, so we don't 12127 # have to do anything special. 12128 aix_use_runtimelinking=no 12129 exp_sym_flag='-Bexport' 12130 no_entry_flag="" 12131 else 12132 aix_use_runtimelinking=no 12133 12134 # Test if we are trying to use run time linking or normal 12135 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12136 # need to do runtime linking. 12137 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12138 for ld_flag in $LDFLAGS; do 12139 case $ld_flag in 12140 *-brtl*) 12141 aix_use_runtimelinking=yes 12142 break 12143 ;; 12144 esac 12145 done 12146 ;; 12147 esac 12148 12149 exp_sym_flag='-bexport' 12150 no_entry_flag='-bnoentry' 12151 fi 12152 12153 # When large executables or shared objects are built, AIX ld can 12154 # have problems creating the table of contents. If linking a library 12155 # or program results in "error TOC overflow" add -mminimal-toc to 12156 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12157 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12158 12159 archive_cmds_CXX='' 12160 hardcode_direct_CXX=yes 12161 hardcode_direct_absolute_CXX=yes 12162 hardcode_libdir_separator_CXX=':' 12163 link_all_deplibs_CXX=yes 12164 file_list_spec_CXX='${wl}-f,' 12165 12166 if test "$GXX" = yes; then 12167 case $host_os in aix4.[012]|aix4.[012].*) 12168 # We only want to do this on AIX 4.2 and lower, the check 12169 # below for broken collect2 doesn't work under 4.3+ 12170 collect2name=`${CC} -print-prog-name=collect2` 12171 if test -f "$collect2name" && 12172 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12173 then 12174 # We have reworked collect2 12175 : 12176 else 12177 # We have old collect2 12178 hardcode_direct_CXX=unsupported 12179 # It fails to find uninstalled libraries when the uninstalled 12180 # path is not listed in the libpath. Setting hardcode_minus_L 12181 # to unsupported forces relinking 12182 hardcode_minus_L_CXX=yes 12183 hardcode_libdir_flag_spec_CXX='-L$libdir' 12184 hardcode_libdir_separator_CXX= 12185 fi 12186 esac 12187 shared_flag='-shared' 12188 if test "$aix_use_runtimelinking" = yes; then 12189 shared_flag="$shared_flag "'${wl}-G' 12190 fi 12191 else 12192 # not using gcc 12193 if test "$host_cpu" = ia64; then 12194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12195 # chokes on -Wl,-G. The following line is correct: 12196 shared_flag='-G' 12197 else 12198 if test "$aix_use_runtimelinking" = yes; then 12199 shared_flag='${wl}-G' 12200 else 12201 shared_flag='${wl}-bM:SRE' 12202 fi 12203 fi 12204 fi 12205 12206 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12207 # It seems that -bexpall does not export symbols beginning with 12208 # underscore (_), so it is better to generate a list of symbols to 12209 # export. 12210 always_export_symbols_CXX=yes 12211 if test "$aix_use_runtimelinking" = yes; then 12212 # Warning - without using the other runtime loading flags (-brtl), 12213 # -berok will link without error, but may produce a broken library. 12214 allow_undefined_flag_CXX='-berok' 12215 # Determine the default libpath from the value encoded in an empty 12216 # executable. 12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12218 /* end confdefs.h. */ 12219 12220 int 12221 main () 12222 { 12223 12224 ; 12225 return 0; 12226 } 12227 _ACEOF 12228 if ac_fn_cxx_try_link "$LINENO"; then : 12229 12230 lt_aix_libpath_sed=' 12231 /Import File Strings/,/^$/ { 12232 /^0/ { 12233 s/^0 *\(.*\)$/\1/ 12234 p 12235 } 12236 }' 12237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12238 # Check for a 64-bit object if we didn't find anything. 12239 if test -z "$aix_libpath"; then 12240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12241 fi 12242 fi 12243 rm -f core conftest.err conftest.$ac_objext \ 12244 conftest$ac_exeext conftest.$ac_ext 12245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12246 12247 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12248 12249 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 12250 else 12251 if test "$host_cpu" = ia64; then 12252 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12253 allow_undefined_flag_CXX="-z nodefs" 12254 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 12255 else 12256 # Determine the default libpath from the value encoded in an 12257 # empty executable. 12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12259 /* end confdefs.h. */ 12260 12261 int 12262 main () 12263 { 12264 12265 ; 12266 return 0; 12267 } 12268 _ACEOF 12269 if ac_fn_cxx_try_link "$LINENO"; then : 12270 12271 lt_aix_libpath_sed=' 12272 /Import File Strings/,/^$/ { 12273 /^0/ { 12274 s/^0 *\(.*\)$/\1/ 12275 p 12276 } 12277 }' 12278 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12279 # Check for a 64-bit object if we didn't find anything. 12280 if test -z "$aix_libpath"; then 12281 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12282 fi 12283 fi 12284 rm -f core conftest.err conftest.$ac_objext \ 12285 conftest$ac_exeext conftest.$ac_ext 12286 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12287 12288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12289 # Warning - without using the other run time loading flags, 12290 # -berok will link without error, but may produce a broken library. 12291 no_undefined_flag_CXX=' ${wl}-bernotok' 12292 allow_undefined_flag_CXX=' ${wl}-berok' 12293 if test "$with_gnu_ld" = yes; then 12294 # We only use this code for GNU lds that support --whole-archive. 12295 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12296 else 12297 # Exported symbols can be pulled into shared objects from archives 12298 whole_archive_flag_spec_CXX='$convenience' 12299 fi 12300 archive_cmds_need_lc_CXX=yes 12301 # This is similar to how AIX traditionally builds its shared 12302 # libraries. 12303 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 12304 fi 12305 fi 12306 ;; 12307 12308 beos*) 12309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12310 allow_undefined_flag_CXX=unsupported 12311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12312 # support --undefined. This deserves some investigation. FIXME 12313 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12314 else 12315 ld_shlibs_CXX=no 12316 fi 12317 ;; 12318 12319 chorus*) 12320 case $cc_basename in 12321 *) 12322 # FIXME: insert proper C++ library support 12323 ld_shlibs_CXX=no 12324 ;; 12325 esac 12326 ;; 12327 12328 cygwin* | mingw* | pw32* | cegcc*) 12329 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12330 # as there is no search path for DLLs. 12331 hardcode_libdir_flag_spec_CXX='-L$libdir' 12332 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12333 allow_undefined_flag_CXX=unsupported 12334 always_export_symbols_CXX=no 12335 enable_shared_with_static_runtimes_CXX=yes 12336 12337 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12338 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12339 # If the export-symbols file already is a .def file (1st line 12340 # is EXPORTS), use it as is; otherwise, prepend... 12341 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12342 cp $export_symbols $output_objdir/$soname.def; 12343 else 12344 echo EXPORTS > $output_objdir/$soname.def; 12345 cat $export_symbols >> $output_objdir/$soname.def; 12346 fi~ 12347 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12348 else 12349 ld_shlibs_CXX=no 12350 fi 12351 ;; 12352 darwin* | rhapsody*) 12353 12354 12355 archive_cmds_need_lc_CXX=no 12356 hardcode_direct_CXX=no 12357 hardcode_automatic_CXX=yes 12358 hardcode_shlibpath_var_CXX=unsupported 12359 if test "$lt_cv_ld_force_load" = "yes"; then 12360 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12361 else 12362 whole_archive_flag_spec_CXX='' 12363 fi 12364 link_all_deplibs_CXX=yes 12365 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12366 case $cc_basename in 12367 ifort*) _lt_dar_can_shared=yes ;; 12368 *) _lt_dar_can_shared=$GCC ;; 12369 esac 12370 if test "$_lt_dar_can_shared" = "yes"; then 12371 output_verbose_link_cmd=func_echo_all 12372 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12373 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12374 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 12375 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 12376 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12377 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12378 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12379 fi 12380 12381 else 12382 ld_shlibs_CXX=no 12383 fi 12384 12385 ;; 12386 12387 dgux*) 12388 case $cc_basename in 12389 ec++*) 12390 # FIXME: insert proper C++ library support 12391 ld_shlibs_CXX=no 12392 ;; 12393 ghcx*) 12394 # Green Hills C++ Compiler 12395 # FIXME: insert proper C++ library support 12396 ld_shlibs_CXX=no 12397 ;; 12398 *) 12399 # FIXME: insert proper C++ library support 12400 ld_shlibs_CXX=no 12401 ;; 12402 esac 12403 ;; 12404 12405 freebsd2.*) 12406 # C++ shared libraries reported to be fairly broken before 12407 # switch to ELF 12408 ld_shlibs_CXX=no 12409 ;; 12410 12411 freebsd-elf*) 12412 archive_cmds_need_lc_CXX=no 12413 ;; 12414 12415 freebsd* | dragonfly*) 12416 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12417 # conventions 12418 ld_shlibs_CXX=yes 12419 ;; 12420 12421 gnu*) 12422 ;; 12423 12424 haiku*) 12425 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12426 link_all_deplibs_CXX=yes 12427 ;; 12428 12429 hpux9*) 12430 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12431 hardcode_libdir_separator_CXX=: 12432 export_dynamic_flag_spec_CXX='${wl}-E' 12433 hardcode_direct_CXX=yes 12434 hardcode_minus_L_CXX=yes # Not in the search PATH, 12435 # but as the default 12436 # location of the library. 12437 12438 case $cc_basename in 12439 CC*) 12440 # FIXME: insert proper C++ library support 12441 ld_shlibs_CXX=no 12442 ;; 12443 aCC*) 12444 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12445 # Commands to make compiler produce verbose output that lists 12446 # what "hidden" libraries, object files and flags are used when 12447 # linking a shared library. 12448 # 12449 # There doesn't appear to be a way to prevent this compiler from 12450 # explicitly linking system object files so we need to strip them 12451 # from the output so that they don't get included in the library 12452 # dependencies. 12453 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12454 ;; 12455 *) 12456 if test "$GXX" = yes; then 12457 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12458 else 12459 # FIXME: insert proper C++ library support 12460 ld_shlibs_CXX=no 12461 fi 12462 ;; 12463 esac 12464 ;; 12465 12466 hpux10*|hpux11*) 12467 if test $with_gnu_ld = no; then 12468 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12469 hardcode_libdir_separator_CXX=: 12470 12471 case $host_cpu in 12472 hppa*64*|ia64*) 12473 ;; 12474 *) 12475 export_dynamic_flag_spec_CXX='${wl}-E' 12476 ;; 12477 esac 12478 fi 12479 case $host_cpu in 12480 hppa*64*|ia64*) 12481 hardcode_direct_CXX=no 12482 hardcode_shlibpath_var_CXX=no 12483 ;; 12484 *) 12485 hardcode_direct_CXX=yes 12486 hardcode_direct_absolute_CXX=yes 12487 hardcode_minus_L_CXX=yes # Not in the search PATH, 12488 # but as the default 12489 # location of the library. 12490 ;; 12491 esac 12492 12493 case $cc_basename in 12494 CC*) 12495 # FIXME: insert proper C++ library support 12496 ld_shlibs_CXX=no 12497 ;; 12498 aCC*) 12499 case $host_cpu in 12500 hppa*64*) 12501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12502 ;; 12503 ia64*) 12504 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12505 ;; 12506 *) 12507 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12508 ;; 12509 esac 12510 # Commands to make compiler produce verbose output that lists 12511 # what "hidden" libraries, object files and flags are used when 12512 # linking a shared library. 12513 # 12514 # There doesn't appear to be a way to prevent this compiler from 12515 # explicitly linking system object files so we need to strip them 12516 # from the output so that they don't get included in the library 12517 # dependencies. 12518 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12519 ;; 12520 *) 12521 if test "$GXX" = yes; then 12522 if test $with_gnu_ld = no; then 12523 case $host_cpu in 12524 hppa*64*) 12525 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12526 ;; 12527 ia64*) 12528 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12529 ;; 12530 *) 12531 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12532 ;; 12533 esac 12534 fi 12535 else 12536 # FIXME: insert proper C++ library support 12537 ld_shlibs_CXX=no 12538 fi 12539 ;; 12540 esac 12541 ;; 12542 12543 interix[3-9]*) 12544 hardcode_direct_CXX=no 12545 hardcode_shlibpath_var_CXX=no 12546 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12547 export_dynamic_flag_spec_CXX='${wl}-E' 12548 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12549 # Instead, shared libraries are loaded at an image base (0x10000000 by 12550 # default) and relocated if they conflict, which is a slow very memory 12551 # consuming and fragmenting process. To avoid this, we pick a random, 12552 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12553 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12554 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12555 archive_expsym_cmds_CXX='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' 12556 ;; 12557 irix5* | irix6*) 12558 case $cc_basename in 12559 CC*) 12560 # SGI C++ 12561 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12562 12563 # Archives containing C++ object files must be created using 12564 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12565 # necessary to make sure instantiated templates are included 12566 # in the archive. 12567 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12568 ;; 12569 *) 12570 if test "$GXX" = yes; then 12571 if test "$with_gnu_ld" = no; then 12572 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12573 else 12574 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 12575 fi 12576 fi 12577 link_all_deplibs_CXX=yes 12578 ;; 12579 esac 12580 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12581 hardcode_libdir_separator_CXX=: 12582 inherit_rpath_CXX=yes 12583 ;; 12584 12585 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12586 case $cc_basename in 12587 KCC*) 12588 # Kuck and Associates, Inc. (KAI) C++ Compiler 12589 12590 # KCC will only create a shared library if the output file 12591 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12592 # to its proper name (with version) after linking. 12593 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12594 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 12595 # Commands to make compiler produce verbose output that lists 12596 # what "hidden" libraries, object files and flags are used when 12597 # linking a shared library. 12598 # 12599 # There doesn't appear to be a way to prevent this compiler from 12600 # explicitly linking system object files so we need to strip them 12601 # from the output so that they don't get included in the library 12602 # dependencies. 12603 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12604 12605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12606 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12607 12608 # Archives containing C++ object files must be created using 12609 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12610 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12611 ;; 12612 icpc* | ecpc* ) 12613 # Intel C++ 12614 with_gnu_ld=yes 12615 # version 8.0 and above of icpc choke on multiply defined symbols 12616 # if we add $predep_objects and $postdep_objects, however 7.1 and 12617 # earlier do not add the objects themselves. 12618 case `$CC -V 2>&1` in 12619 *"Version 7."*) 12620 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12621 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12622 ;; 12623 *) # Version 8.0 or newer 12624 tmp_idyn= 12625 case $host_cpu in 12626 ia64*) tmp_idyn=' -i_dynamic';; 12627 esac 12628 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12629 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12630 ;; 12631 esac 12632 archive_cmds_need_lc_CXX=no 12633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12635 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12636 ;; 12637 pgCC* | pgcpp*) 12638 # Portland Group C++ compiler 12639 case `$CC -V` in 12640 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12641 prelink_cmds_CXX='tpldir=Template.dir~ 12642 rm -rf $tpldir~ 12643 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12644 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12645 old_archive_cmds_CXX='tpldir=Template.dir~ 12646 rm -rf $tpldir~ 12647 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12648 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12649 $RANLIB $oldlib' 12650 archive_cmds_CXX='tpldir=Template.dir~ 12651 rm -rf $tpldir~ 12652 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12653 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12654 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12655 rm -rf $tpldir~ 12656 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12657 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12658 ;; 12659 *) # Version 6 and above use weak symbols 12660 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12661 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12662 ;; 12663 esac 12664 12665 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12666 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12667 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12668 ;; 12669 cxx*) 12670 # Compaq C++ 12671 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12672 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12673 12674 runpath_var=LD_RUN_PATH 12675 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12676 hardcode_libdir_separator_CXX=: 12677 12678 # Commands to make compiler produce verbose output that lists 12679 # what "hidden" libraries, object files and flags are used when 12680 # linking a shared library. 12681 # 12682 # There doesn't appear to be a way to prevent this compiler from 12683 # explicitly linking system object files so we need to strip them 12684 # from the output so that they don't get included in the library 12685 # dependencies. 12686 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 12687 ;; 12688 xl* | mpixl* | bgxl*) 12689 # IBM XL 8.0 on PPC, with GNU ld 12690 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12692 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12693 if test "x$supports_anon_versioning" = xyes; then 12694 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12696 echo "local: *; };" >> $output_objdir/$libname.ver~ 12697 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12698 fi 12699 ;; 12700 *) 12701 case `$CC -V 2>&1 | sed 5q` in 12702 *Sun\ C*) 12703 # Sun C++ 5.9 12704 no_undefined_flag_CXX=' -zdefs' 12705 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12706 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12707 hardcode_libdir_flag_spec_CXX='-R$libdir' 12708 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 12709 compiler_needs_object_CXX=yes 12710 12711 # Not sure whether something based on 12712 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12713 # would be better. 12714 output_verbose_link_cmd='func_echo_all' 12715 12716 # Archives containing C++ object files must be created using 12717 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12718 # necessary to make sure instantiated templates are included 12719 # in the archive. 12720 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12721 ;; 12722 esac 12723 ;; 12724 esac 12725 ;; 12726 12727 lynxos*) 12728 # FIXME: insert proper C++ library support 12729 ld_shlibs_CXX=no 12730 ;; 12731 12732 m88k*) 12733 # FIXME: insert proper C++ library support 12734 ld_shlibs_CXX=no 12735 ;; 12736 12737 mvs*) 12738 case $cc_basename in 12739 cxx*) 12740 # FIXME: insert proper C++ library support 12741 ld_shlibs_CXX=no 12742 ;; 12743 *) 12744 # FIXME: insert proper C++ library support 12745 ld_shlibs_CXX=no 12746 ;; 12747 esac 12748 ;; 12749 12750 netbsd*) 12751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12752 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12753 wlarc= 12754 hardcode_libdir_flag_spec_CXX='-R$libdir' 12755 hardcode_direct_CXX=yes 12756 hardcode_shlibpath_var_CXX=no 12757 fi 12758 # Workaround some broken pre-1.5 toolchains 12759 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12760 ;; 12761 12762 *nto* | *qnx*) 12763 ld_shlibs_CXX=yes 12764 ;; 12765 12766 openbsd2*) 12767 # C++ shared libraries are fairly broken 12768 ld_shlibs_CXX=no 12769 ;; 12770 12771 openbsd*) 12772 if test -f /usr/libexec/ld.so; then 12773 hardcode_direct_CXX=yes 12774 hardcode_shlibpath_var_CXX=no 12775 hardcode_direct_absolute_CXX=yes 12776 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12777 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12778 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12779 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12780 export_dynamic_flag_spec_CXX='${wl}-E' 12781 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12782 fi 12783 output_verbose_link_cmd=func_echo_all 12784 else 12785 ld_shlibs_CXX=no 12786 fi 12787 ;; 12788 12789 osf3* | osf4* | osf5*) 12790 case $cc_basename in 12791 KCC*) 12792 # Kuck and Associates, Inc. (KAI) C++ Compiler 12793 12794 # KCC will only create a shared library if the output file 12795 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12796 # to its proper name (with version) after linking. 12797 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12798 12799 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12800 hardcode_libdir_separator_CXX=: 12801 12802 # Archives containing C++ object files must be created using 12803 # the KAI C++ compiler. 12804 case $host in 12805 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12806 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12807 esac 12808 ;; 12809 RCC*) 12810 # Rational C++ 2.4.1 12811 # FIXME: insert proper C++ library support 12812 ld_shlibs_CXX=no 12813 ;; 12814 cxx*) 12815 case $host in 12816 osf3*) 12817 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12818 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12819 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12820 ;; 12821 *) 12822 allow_undefined_flag_CXX=' -expect_unresolved \*' 12823 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12824 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12825 echo "-hidden">> $lib.exp~ 12826 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 12827 $RM $lib.exp' 12828 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12829 ;; 12830 esac 12831 12832 hardcode_libdir_separator_CXX=: 12833 12834 # Commands to make compiler produce verbose output that lists 12835 # what "hidden" libraries, object files and flags are used when 12836 # linking a shared library. 12837 # 12838 # There doesn't appear to be a way to prevent this compiler from 12839 # explicitly linking system object files so we need to strip them 12840 # from the output so that they don't get included in the library 12841 # dependencies. 12842 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12843 ;; 12844 *) 12845 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12846 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12847 case $host in 12848 osf3*) 12849 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12850 ;; 12851 *) 12852 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12853 ;; 12854 esac 12855 12856 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12857 hardcode_libdir_separator_CXX=: 12858 12859 # Commands to make compiler produce verbose output that lists 12860 # what "hidden" libraries, object files and flags are used when 12861 # linking a shared library. 12862 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12863 12864 else 12865 # FIXME: insert proper C++ library support 12866 ld_shlibs_CXX=no 12867 fi 12868 ;; 12869 esac 12870 ;; 12871 12872 psos*) 12873 # FIXME: insert proper C++ library support 12874 ld_shlibs_CXX=no 12875 ;; 12876 12877 sunos4*) 12878 case $cc_basename in 12879 CC*) 12880 # Sun C++ 4.x 12881 # FIXME: insert proper C++ library support 12882 ld_shlibs_CXX=no 12883 ;; 12884 lcc*) 12885 # Lucid 12886 # FIXME: insert proper C++ library support 12887 ld_shlibs_CXX=no 12888 ;; 12889 *) 12890 # FIXME: insert proper C++ library support 12891 ld_shlibs_CXX=no 12892 ;; 12893 esac 12894 ;; 12895 12896 solaris*) 12897 case $cc_basename in 12898 CC*) 12899 # Sun C++ 4.2, 5.x and Centerline C++ 12900 archive_cmds_need_lc_CXX=yes 12901 no_undefined_flag_CXX=' -zdefs' 12902 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12903 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12904 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12905 12906 hardcode_libdir_flag_spec_CXX='-R$libdir' 12907 hardcode_shlibpath_var_CXX=no 12908 case $host_os in 12909 solaris2.[0-5] | solaris2.[0-5].*) ;; 12910 *) 12911 # The compiler driver will combine and reorder linker options, 12912 # but understands `-z linker_flag'. 12913 # Supported since Solaris 2.6 (maybe 2.5.1?) 12914 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12915 ;; 12916 esac 12917 link_all_deplibs_CXX=yes 12918 12919 output_verbose_link_cmd='func_echo_all' 12920 12921 # Archives containing C++ object files must be created using 12922 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12923 # necessary to make sure instantiated templates are included 12924 # in the archive. 12925 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12926 ;; 12927 gcx*) 12928 # Green Hills C++ Compiler 12929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12930 12931 # The C++ compiler must be used to create the archive. 12932 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12933 ;; 12934 *) 12935 # GNU C++ compiler with Solaris linker 12936 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12937 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12938 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12939 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12940 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12941 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12942 12943 # Commands to make compiler produce verbose output that lists 12944 # what "hidden" libraries, object files and flags are used when 12945 # linking a shared library. 12946 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12947 else 12948 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12949 # platform. 12950 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12951 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12952 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12953 12954 # Commands to make compiler produce verbose output that lists 12955 # what "hidden" libraries, object files and flags are used when 12956 # linking a shared library. 12957 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12958 fi 12959 12960 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12961 case $host_os in 12962 solaris2.[0-5] | solaris2.[0-5].*) ;; 12963 *) 12964 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12965 ;; 12966 esac 12967 fi 12968 ;; 12969 esac 12970 ;; 12971 12972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12973 no_undefined_flag_CXX='${wl}-z,text' 12974 archive_cmds_need_lc_CXX=no 12975 hardcode_shlibpath_var_CXX=no 12976 runpath_var='LD_RUN_PATH' 12977 12978 case $cc_basename in 12979 CC*) 12980 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12981 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12982 ;; 12983 *) 12984 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12985 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12986 ;; 12987 esac 12988 ;; 12989 12990 sysv5* | sco3.2v5* | sco5v6*) 12991 # Note: We can NOT use -z defs as we might desire, because we do not 12992 # link with -lc, and that would cause any symbols used from libc to 12993 # always be unresolved, which means just about no library would 12994 # ever link correctly. If we're not using GNU ld we use -z text 12995 # though, which does catch some bad symbols but isn't as heavy-handed 12996 # as -z defs. 12997 no_undefined_flag_CXX='${wl}-z,text' 12998 allow_undefined_flag_CXX='${wl}-z,nodefs' 12999 archive_cmds_need_lc_CXX=no 13000 hardcode_shlibpath_var_CXX=no 13001 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13002 hardcode_libdir_separator_CXX=':' 13003 link_all_deplibs_CXX=yes 13004 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13005 runpath_var='LD_RUN_PATH' 13006 13007 case $cc_basename in 13008 CC*) 13009 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13010 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13011 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13012 '"$old_archive_cmds_CXX" 13013 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13014 '"$reload_cmds_CXX" 13015 ;; 13016 *) 13017 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13018 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13019 ;; 13020 esac 13021 ;; 13022 13023 tandem*) 13024 case $cc_basename in 13025 NCC*) 13026 # NonStop-UX NCC 3.20 13027 # FIXME: insert proper C++ library support 13028 ld_shlibs_CXX=no 13029 ;; 13030 *) 13031 # FIXME: insert proper C++ library support 13032 ld_shlibs_CXX=no 13033 ;; 13034 esac 13035 ;; 13036 13037 vxworks*) 13038 # FIXME: insert proper C++ library support 13039 ld_shlibs_CXX=no 13040 ;; 13041 13042 *) 13043 # FIXME: insert proper C++ library support 13044 ld_shlibs_CXX=no 13045 ;; 13046 esac 13047 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13049 $as_echo "$ld_shlibs_CXX" >&6; } 13050 test "$ld_shlibs_CXX" = no && can_build_shared=no 13051 13052 GCC_CXX="$GXX" 13053 LD_CXX="$LD" 13054 13055 ## CAVEAT EMPTOR: 13056 ## There is no encapsulation within the following macros, do not change 13057 ## the running order or otherwise move them around unless you know exactly 13058 ## what you are doing... 13059 # Dependencies to place before and after the object being linked: 13060 predep_objects_CXX= 13061 postdep_objects_CXX= 13062 predeps_CXX= 13063 postdeps_CXX= 13064 compiler_lib_search_path_CXX= 13065 13066 cat > conftest.$ac_ext <<_LT_EOF 13067 class Foo 13068 { 13069 public: 13070 Foo (void) { a = 0; } 13071 private: 13072 int a; 13073 }; 13074 _LT_EOF 13075 13076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13077 (eval $ac_compile) 2>&5 13078 ac_status=$? 13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13080 test $ac_status = 0; }; then 13081 # Parse the compiler output and extract the necessary 13082 # objects, libraries and library flags. 13083 13084 # Sentinel used to keep track of whether or not we are before 13085 # the conftest object file. 13086 pre_test_object_deps_done=no 13087 13088 for p in `eval "$output_verbose_link_cmd"`; do 13089 case $p in 13090 13091 -L* | -R* | -l*) 13092 # Some compilers place space between "-{L,R}" and the path. 13093 # Remove the space. 13094 if test $p = "-L" || 13095 test $p = "-R"; then 13096 prev=$p 13097 continue 13098 else 13099 prev= 13100 fi 13101 13102 if test "$pre_test_object_deps_done" = no; then 13103 case $p in 13104 -L* | -R*) 13105 # Internal compiler library paths should come after those 13106 # provided the user. The postdeps already come after the 13107 # user supplied libs so there is no need to process them. 13108 if test -z "$compiler_lib_search_path_CXX"; then 13109 compiler_lib_search_path_CXX="${prev}${p}" 13110 else 13111 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13112 fi 13113 ;; 13114 # The "-l" case would never come before the object being 13115 # linked, so don't bother handling this case. 13116 esac 13117 else 13118 if test -z "$postdeps_CXX"; then 13119 postdeps_CXX="${prev}${p}" 13120 else 13121 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13122 fi 13123 fi 13124 ;; 13125 13126 *.$objext) 13127 # This assumes that the test object file only shows up 13128 # once in the compiler output. 13129 if test "$p" = "conftest.$objext"; then 13130 pre_test_object_deps_done=yes 13131 continue 13132 fi 13133 13134 if test "$pre_test_object_deps_done" = no; then 13135 if test -z "$predep_objects_CXX"; then 13136 predep_objects_CXX="$p" 13137 else 13138 predep_objects_CXX="$predep_objects_CXX $p" 13139 fi 13140 else 13141 if test -z "$postdep_objects_CXX"; then 13142 postdep_objects_CXX="$p" 13143 else 13144 postdep_objects_CXX="$postdep_objects_CXX $p" 13145 fi 13146 fi 13147 ;; 13148 13149 *) ;; # Ignore the rest. 13150 13151 esac 13152 done 13153 13154 # Clean up. 13155 rm -f a.out a.exe 13156 else 13157 echo "libtool.m4: error: problem compiling CXX test program" 13158 fi 13159 13160 $RM -f confest.$objext 13161 13162 # PORTME: override above test on systems where it is broken 13163 case $host_os in 13164 interix[3-9]*) 13165 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13166 # hack all around it, let's just trust "g++" to DTRT. 13167 predep_objects_CXX= 13168 postdep_objects_CXX= 13169 postdeps_CXX= 13170 ;; 13171 13172 linux*) 13173 case `$CC -V 2>&1 | sed 5q` in 13174 *Sun\ C*) 13175 # Sun C++ 5.9 13176 13177 # The more standards-conforming stlport4 library is 13178 # incompatible with the Cstd library. Avoid specifying 13179 # it if it's in CXXFLAGS. Ignore libCrun as 13180 # -library=stlport4 depends on it. 13181 case " $CXX $CXXFLAGS " in 13182 *" -library=stlport4 "*) 13183 solaris_use_stlport4=yes 13184 ;; 13185 esac 13186 13187 if test "$solaris_use_stlport4" != yes; then 13188 postdeps_CXX='-library=Cstd -library=Crun' 13189 fi 13190 ;; 13191 esac 13192 ;; 13193 13194 solaris*) 13195 case $cc_basename in 13196 CC*) 13197 # The more standards-conforming stlport4 library is 13198 # incompatible with the Cstd library. Avoid specifying 13199 # it if it's in CXXFLAGS. Ignore libCrun as 13200 # -library=stlport4 depends on it. 13201 case " $CXX $CXXFLAGS " in 13202 *" -library=stlport4 "*) 13203 solaris_use_stlport4=yes 13204 ;; 13205 esac 13206 13207 # Adding this requires a known-good setup of shared libraries for 13208 # Sun compiler versions before 5.6, else PIC objects from an old 13209 # archive will be linked into the output, leading to subtle bugs. 13210 if test "$solaris_use_stlport4" != yes; then 13211 postdeps_CXX='-library=Cstd -library=Crun' 13212 fi 13213 ;; 13214 esac 13215 ;; 13216 esac 13217 13218 13219 case " $postdeps_CXX " in 13220 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 13221 esac 13222 compiler_lib_search_dirs_CXX= 13223 if test -n "${compiler_lib_search_path_CXX}"; then 13224 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13225 fi 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 lt_prog_compiler_wl_CXX= 13258 lt_prog_compiler_pic_CXX= 13259 lt_prog_compiler_static_CXX= 13260 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13262 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13263 13264 # C++ specific cases for pic, static, wl, etc. 13265 if test "$GXX" = yes; then 13266 lt_prog_compiler_wl_CXX='-Wl,' 13267 lt_prog_compiler_static_CXX='-static' 13268 13269 case $host_os in 13270 aix*) 13271 # All AIX code is PIC. 13272 if test "$host_cpu" = ia64; then 13273 # AIX 5 now supports IA64 processor 13274 lt_prog_compiler_static_CXX='-Bstatic' 13275 fi 13276 lt_prog_compiler_pic_CXX='-fPIC' 13277 ;; 13278 13279 amigaos*) 13280 case $host_cpu in 13281 powerpc) 13282 # see comment about AmigaOS4 .so support 13283 lt_prog_compiler_pic_CXX='-fPIC' 13284 ;; 13285 m68k) 13286 # FIXME: we need at least 68020 code to build shared libraries, but 13287 # adding the `-m68020' flag to GCC prevents building anything better, 13288 # like `-m68040'. 13289 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13290 ;; 13291 esac 13292 ;; 13293 13294 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13295 # PIC is the default for these OSes. 13296 ;; 13297 mingw* | cygwin* | os2* | pw32* | cegcc*) 13298 # This hack is so that the source file can tell whether it is being 13299 # built for inclusion in a dll (and should export symbols for example). 13300 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13301 # (--disable-auto-import) libraries 13302 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13303 ;; 13304 darwin* | rhapsody*) 13305 # PIC is the default on this platform 13306 # Common symbols not allowed in MH_DYLIB files 13307 lt_prog_compiler_pic_CXX='-fno-common' 13308 ;; 13309 *djgpp*) 13310 # DJGPP does not support shared libraries at all 13311 lt_prog_compiler_pic_CXX= 13312 ;; 13313 haiku*) 13314 # PIC is the default for Haiku. 13315 # The "-static" flag exists, but is broken. 13316 lt_prog_compiler_static_CXX= 13317 ;; 13318 interix[3-9]*) 13319 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13320 # Instead, we relocate shared libraries at runtime. 13321 ;; 13322 sysv4*MP*) 13323 if test -d /usr/nec; then 13324 lt_prog_compiler_pic_CXX=-Kconform_pic 13325 fi 13326 ;; 13327 hpux*) 13328 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13329 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13330 # sets the default TLS model and affects inlining. 13331 case $host_cpu in 13332 hppa*64*) 13333 ;; 13334 *) 13335 lt_prog_compiler_pic_CXX='-fPIC' 13336 ;; 13337 esac 13338 ;; 13339 *qnx* | *nto*) 13340 # QNX uses GNU C++, but need to define -shared option too, otherwise 13341 # it will coredump. 13342 lt_prog_compiler_pic_CXX='-fPIC -shared' 13343 ;; 13344 *) 13345 lt_prog_compiler_pic_CXX='-fPIC' 13346 ;; 13347 esac 13348 else 13349 case $host_os in 13350 aix[4-9]*) 13351 # All AIX code is PIC. 13352 if test "$host_cpu" = ia64; then 13353 # AIX 5 now supports IA64 processor 13354 lt_prog_compiler_static_CXX='-Bstatic' 13355 else 13356 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13357 fi 13358 ;; 13359 chorus*) 13360 case $cc_basename in 13361 cxch68*) 13362 # Green Hills C++ Compiler 13363 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 13364 ;; 13365 esac 13366 ;; 13367 dgux*) 13368 case $cc_basename in 13369 ec++*) 13370 lt_prog_compiler_pic_CXX='-KPIC' 13371 ;; 13372 ghcx*) 13373 # Green Hills C++ Compiler 13374 lt_prog_compiler_pic_CXX='-pic' 13375 ;; 13376 *) 13377 ;; 13378 esac 13379 ;; 13380 freebsd* | dragonfly*) 13381 # FreeBSD uses GNU C++ 13382 ;; 13383 hpux9* | hpux10* | hpux11*) 13384 case $cc_basename in 13385 CC*) 13386 lt_prog_compiler_wl_CXX='-Wl,' 13387 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13388 if test "$host_cpu" != ia64; then 13389 lt_prog_compiler_pic_CXX='+Z' 13390 fi 13391 ;; 13392 aCC*) 13393 lt_prog_compiler_wl_CXX='-Wl,' 13394 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13395 case $host_cpu in 13396 hppa*64*|ia64*) 13397 # +Z the default 13398 ;; 13399 *) 13400 lt_prog_compiler_pic_CXX='+Z' 13401 ;; 13402 esac 13403 ;; 13404 *) 13405 ;; 13406 esac 13407 ;; 13408 interix*) 13409 # This is c89, which is MS Visual C++ (no shared libs) 13410 # Anyone wants to do a port? 13411 ;; 13412 irix5* | irix6* | nonstopux*) 13413 case $cc_basename in 13414 CC*) 13415 lt_prog_compiler_wl_CXX='-Wl,' 13416 lt_prog_compiler_static_CXX='-non_shared' 13417 # CC pic flag -KPIC is the default. 13418 ;; 13419 *) 13420 ;; 13421 esac 13422 ;; 13423 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13424 case $cc_basename in 13425 KCC*) 13426 # KAI C++ Compiler 13427 lt_prog_compiler_wl_CXX='--backend -Wl,' 13428 lt_prog_compiler_pic_CXX='-fPIC' 13429 ;; 13430 ecpc* ) 13431 # old Intel C++ for x86_64 which still supported -KPIC. 13432 lt_prog_compiler_wl_CXX='-Wl,' 13433 lt_prog_compiler_pic_CXX='-KPIC' 13434 lt_prog_compiler_static_CXX='-static' 13435 ;; 13436 icpc* ) 13437 # Intel C++, used to be incompatible with GCC. 13438 # ICC 10 doesn't accept -KPIC any more. 13439 lt_prog_compiler_wl_CXX='-Wl,' 13440 lt_prog_compiler_pic_CXX='-fPIC' 13441 lt_prog_compiler_static_CXX='-static' 13442 ;; 13443 pgCC* | pgcpp*) 13444 # Portland Group C++ compiler 13445 lt_prog_compiler_wl_CXX='-Wl,' 13446 lt_prog_compiler_pic_CXX='-fpic' 13447 lt_prog_compiler_static_CXX='-Bstatic' 13448 ;; 13449 cxx*) 13450 # Compaq C++ 13451 # Make sure the PIC flag is empty. It appears that all Alpha 13452 # Linux and Compaq Tru64 Unix objects are PIC. 13453 lt_prog_compiler_pic_CXX= 13454 lt_prog_compiler_static_CXX='-non_shared' 13455 ;; 13456 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13457 # IBM XL 8.0, 9.0 on PPC and BlueGene 13458 lt_prog_compiler_wl_CXX='-Wl,' 13459 lt_prog_compiler_pic_CXX='-qpic' 13460 lt_prog_compiler_static_CXX='-qstaticlink' 13461 ;; 13462 *) 13463 case `$CC -V 2>&1 | sed 5q` in 13464 *Sun\ C*) 13465 # Sun C++ 5.9 13466 lt_prog_compiler_pic_CXX='-KPIC' 13467 lt_prog_compiler_static_CXX='-Bstatic' 13468 lt_prog_compiler_wl_CXX='-Qoption ld ' 13469 ;; 13470 esac 13471 ;; 13472 esac 13473 ;; 13474 lynxos*) 13475 ;; 13476 m88k*) 13477 ;; 13478 mvs*) 13479 case $cc_basename in 13480 cxx*) 13481 lt_prog_compiler_pic_CXX='-W c,exportall' 13482 ;; 13483 *) 13484 ;; 13485 esac 13486 ;; 13487 netbsd*) 13488 ;; 13489 *qnx* | *nto*) 13490 # QNX uses GNU C++, but need to define -shared option too, otherwise 13491 # it will coredump. 13492 lt_prog_compiler_pic_CXX='-fPIC -shared' 13493 ;; 13494 osf3* | osf4* | osf5*) 13495 case $cc_basename in 13496 KCC*) 13497 lt_prog_compiler_wl_CXX='--backend -Wl,' 13498 ;; 13499 RCC*) 13500 # Rational C++ 2.4.1 13501 lt_prog_compiler_pic_CXX='-pic' 13502 ;; 13503 cxx*) 13504 # Digital/Compaq C++ 13505 lt_prog_compiler_wl_CXX='-Wl,' 13506 # Make sure the PIC flag is empty. It appears that all Alpha 13507 # Linux and Compaq Tru64 Unix objects are PIC. 13508 lt_prog_compiler_pic_CXX= 13509 lt_prog_compiler_static_CXX='-non_shared' 13510 ;; 13511 *) 13512 ;; 13513 esac 13514 ;; 13515 psos*) 13516 ;; 13517 solaris*) 13518 case $cc_basename in 13519 CC*) 13520 # Sun C++ 4.2, 5.x and Centerline C++ 13521 lt_prog_compiler_pic_CXX='-KPIC' 13522 lt_prog_compiler_static_CXX='-Bstatic' 13523 lt_prog_compiler_wl_CXX='-Qoption ld ' 13524 ;; 13525 gcx*) 13526 # Green Hills C++ Compiler 13527 lt_prog_compiler_pic_CXX='-PIC' 13528 ;; 13529 *) 13530 ;; 13531 esac 13532 ;; 13533 sunos4*) 13534 case $cc_basename in 13535 CC*) 13536 # Sun C++ 4.x 13537 lt_prog_compiler_pic_CXX='-pic' 13538 lt_prog_compiler_static_CXX='-Bstatic' 13539 ;; 13540 lcc*) 13541 # Lucid 13542 lt_prog_compiler_pic_CXX='-pic' 13543 ;; 13544 *) 13545 ;; 13546 esac 13547 ;; 13548 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13549 case $cc_basename in 13550 CC*) 13551 lt_prog_compiler_wl_CXX='-Wl,' 13552 lt_prog_compiler_pic_CXX='-KPIC' 13553 lt_prog_compiler_static_CXX='-Bstatic' 13554 ;; 13555 esac 13556 ;; 13557 tandem*) 13558 case $cc_basename in 13559 NCC*) 13560 # NonStop-UX NCC 3.20 13561 lt_prog_compiler_pic_CXX='-KPIC' 13562 ;; 13563 *) 13564 ;; 13565 esac 13566 ;; 13567 vxworks*) 13568 ;; 13569 *) 13570 lt_prog_compiler_can_build_shared_CXX=no 13571 ;; 13572 esac 13573 fi 13574 13575 case $host_os in 13576 # For platforms which do not support PIC, -DPIC is meaningless: 13577 *djgpp*) 13578 lt_prog_compiler_pic_CXX= 13579 ;; 13580 *) 13581 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13582 ;; 13583 esac 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13585 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13586 13587 13588 13589 # 13590 # Check to make sure the PIC flag actually works. 13591 # 13592 if test -n "$lt_prog_compiler_pic_CXX"; then 13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13594 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13595 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13596 $as_echo_n "(cached) " >&6 13597 else 13598 lt_cv_prog_compiler_pic_works_CXX=no 13599 ac_outfile=conftest.$ac_objext 13600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13601 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13602 # Insert the option either (1) after the last *FLAGS variable, or 13603 # (2) before a word containing "conftest.", or (3) at the end. 13604 # Note that $ac_compile itself does not contain backslashes and begins 13605 # with a dollar sign (not a hyphen), so the echo should work correctly. 13606 # The option is referenced via a variable to avoid confusing sed. 13607 lt_compile=`echo "$ac_compile" | $SED \ 13608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13610 -e 's:$: $lt_compiler_flag:'` 13611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13612 (eval "$lt_compile" 2>conftest.err) 13613 ac_status=$? 13614 cat conftest.err >&5 13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13616 if (exit $ac_status) && test -s "$ac_outfile"; then 13617 # The compiler can only warn and ignore the option if not recognized 13618 # So say no if there are warnings other than the usual output. 13619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13622 lt_cv_prog_compiler_pic_works_CXX=yes 13623 fi 13624 fi 13625 $RM conftest* 13626 13627 fi 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13629 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13630 13631 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13632 case $lt_prog_compiler_pic_CXX in 13633 "" | " "*) ;; 13634 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13635 esac 13636 else 13637 lt_prog_compiler_pic_CXX= 13638 lt_prog_compiler_can_build_shared_CXX=no 13639 fi 13640 13641 fi 13642 13643 13644 13645 # 13646 # Check to make sure the static flag actually works. 13647 # 13648 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13650 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13651 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13652 $as_echo_n "(cached) " >&6 13653 else 13654 lt_cv_prog_compiler_static_works_CXX=no 13655 save_LDFLAGS="$LDFLAGS" 13656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13657 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13659 # The linker can only warn and ignore the option if not recognized 13660 # So say no if there are warnings 13661 if test -s conftest.err; then 13662 # Append any errors to the config.log. 13663 cat conftest.err 1>&5 13664 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13666 if diff conftest.exp conftest.er2 >/dev/null; then 13667 lt_cv_prog_compiler_static_works_CXX=yes 13668 fi 13669 else 13670 lt_cv_prog_compiler_static_works_CXX=yes 13671 fi 13672 fi 13673 $RM -r conftest* 13674 LDFLAGS="$save_LDFLAGS" 13675 13676 fi 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13678 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13679 13680 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13681 : 13682 else 13683 lt_prog_compiler_static_CXX= 13684 fi 13685 13686 13687 13688 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13691 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13692 $as_echo_n "(cached) " >&6 13693 else 13694 lt_cv_prog_compiler_c_o_CXX=no 13695 $RM -r conftest 2>/dev/null 13696 mkdir conftest 13697 cd conftest 13698 mkdir out 13699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13700 13701 lt_compiler_flag="-o out/conftest2.$ac_objext" 13702 # Insert the option either (1) after the last *FLAGS variable, or 13703 # (2) before a word containing "conftest.", or (3) at the end. 13704 # Note that $ac_compile itself does not contain backslashes and begins 13705 # with a dollar sign (not a hyphen), so the echo should work correctly. 13706 lt_compile=`echo "$ac_compile" | $SED \ 13707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13709 -e 's:$: $lt_compiler_flag:'` 13710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13711 (eval "$lt_compile" 2>out/conftest.err) 13712 ac_status=$? 13713 cat out/conftest.err >&5 13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13715 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13716 then 13717 # The compiler can only warn and ignore the option if not recognized 13718 # So say no if there are warnings 13719 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13722 lt_cv_prog_compiler_c_o_CXX=yes 13723 fi 13724 fi 13725 chmod u+w . 2>&5 13726 $RM conftest* 13727 # SGI C++ compiler will create directory out/ii_files/ for 13728 # template instantiation 13729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13730 $RM out/* && rmdir out 13731 cd .. 13732 $RM -r conftest 13733 $RM conftest* 13734 13735 fi 13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13737 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13738 13739 13740 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13742 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13743 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13744 $as_echo_n "(cached) " >&6 13745 else 13746 lt_cv_prog_compiler_c_o_CXX=no 13747 $RM -r conftest 2>/dev/null 13748 mkdir conftest 13749 cd conftest 13750 mkdir out 13751 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13752 13753 lt_compiler_flag="-o out/conftest2.$ac_objext" 13754 # Insert the option either (1) after the last *FLAGS variable, or 13755 # (2) before a word containing "conftest.", or (3) at the end. 13756 # Note that $ac_compile itself does not contain backslashes and begins 13757 # with a dollar sign (not a hyphen), so the echo should work correctly. 13758 lt_compile=`echo "$ac_compile" | $SED \ 13759 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13760 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13761 -e 's:$: $lt_compiler_flag:'` 13762 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13763 (eval "$lt_compile" 2>out/conftest.err) 13764 ac_status=$? 13765 cat out/conftest.err >&5 13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13767 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13768 then 13769 # The compiler can only warn and ignore the option if not recognized 13770 # So say no if there are warnings 13771 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13772 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13773 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13774 lt_cv_prog_compiler_c_o_CXX=yes 13775 fi 13776 fi 13777 chmod u+w . 2>&5 13778 $RM conftest* 13779 # SGI C++ compiler will create directory out/ii_files/ for 13780 # template instantiation 13781 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13782 $RM out/* && rmdir out 13783 cd .. 13784 $RM -r conftest 13785 $RM conftest* 13786 13787 fi 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13789 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13790 13791 13792 13793 13794 hard_links="nottested" 13795 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13796 # do not overwrite the value of need_locks provided by the user 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13798 $as_echo_n "checking if we can lock with hard links... " >&6; } 13799 hard_links=yes 13800 $RM conftest* 13801 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13802 touch conftest.a 13803 ln conftest.a conftest.b 2>&5 || hard_links=no 13804 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13806 $as_echo "$hard_links" >&6; } 13807 if test "$hard_links" = no; then 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13809 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13810 need_locks=warn 13811 fi 13812 else 13813 need_locks=no 13814 fi 13815 13816 13817 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13819 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13820 13821 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13822 case $host_os in 13823 aix[4-9]*) 13824 # If we're using GNU nm, then we don't want the "-C" option. 13825 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13826 # Also, AIX nm treats weak defined symbols like other global defined 13827 # symbols, whereas GNU nm marks them as "W". 13828 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13829 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13830 else 13831 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13832 fi 13833 ;; 13834 pw32*) 13835 export_symbols_cmds_CXX="$ltdll_cmds" 13836 ;; 13837 cygwin* | mingw* | cegcc*) 13838 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13839 ;; 13840 *) 13841 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13842 ;; 13843 esac 13844 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13845 13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13847 $as_echo "$ld_shlibs_CXX" >&6; } 13848 test "$ld_shlibs_CXX" = no && can_build_shared=no 13849 13850 with_gnu_ld_CXX=$with_gnu_ld 13851 13852 13853 13854 13855 13856 13857 # 13858 # Do we need to explicitly link libc? 13859 # 13860 case "x$archive_cmds_need_lc_CXX" in 13861 x|xyes) 13862 # Assume -lc should be added 13863 archive_cmds_need_lc_CXX=yes 13864 13865 if test "$enable_shared" = yes && test "$GCC" = yes; then 13866 case $archive_cmds_CXX in 13867 *'~'*) 13868 # FIXME: we may have to deal with multi-command sequences. 13869 ;; 13870 '$CC '*) 13871 # Test whether the compiler implicitly links with -lc since on some 13872 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13873 # to ld, don't add -lc before -lgcc. 13874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13875 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13876 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 13877 $as_echo_n "(cached) " >&6 13878 else 13879 $RM conftest* 13880 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13881 13882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13883 (eval $ac_compile) 2>&5 13884 ac_status=$? 13885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13886 test $ac_status = 0; } 2>conftest.err; then 13887 soname=conftest 13888 lib=conftest 13889 libobjs=conftest.$ac_objext 13890 deplibs= 13891 wl=$lt_prog_compiler_wl_CXX 13892 pic_flag=$lt_prog_compiler_pic_CXX 13893 compiler_flags=-v 13894 linker_flags=-v 13895 verstring= 13896 output_objdir=. 13897 libname=conftest 13898 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13899 allow_undefined_flag_CXX= 13900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13901 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13902 ac_status=$? 13903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13904 test $ac_status = 0; } 13905 then 13906 lt_cv_archive_cmds_need_lc_CXX=no 13907 else 13908 lt_cv_archive_cmds_need_lc_CXX=yes 13909 fi 13910 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13911 else 13912 cat conftest.err 1>&5 13913 fi 13914 $RM conftest* 13915 13916 fi 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13918 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13919 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13920 ;; 13921 esac 13922 fi 13923 ;; 13924 esac 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13990 $as_echo_n "checking dynamic linker characteristics... " >&6; } 13991 13992 library_names_spec= 13993 libname_spec='lib$name' 13994 soname_spec= 13995 shrext_cmds=".so" 13996 postinstall_cmds= 13997 postuninstall_cmds= 13998 finish_cmds= 13999 finish_eval= 14000 shlibpath_var= 14001 shlibpath_overrides_runpath=unknown 14002 version_type=none 14003 dynamic_linker="$host_os ld.so" 14004 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14005 need_lib_prefix=unknown 14006 hardcode_into_libs=no 14007 14008 # when you set need_version to no, make sure it does not cause -set_version 14009 # flags to be left without arguments 14010 need_version=unknown 14011 14012 case $host_os in 14013 aix3*) 14014 version_type=linux 14015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14016 shlibpath_var=LIBPATH 14017 14018 # AIX 3 has no versioning support, so we append a major version to the name. 14019 soname_spec='${libname}${release}${shared_ext}$major' 14020 ;; 14021 14022 aix[4-9]*) 14023 version_type=linux 14024 need_lib_prefix=no 14025 need_version=no 14026 hardcode_into_libs=yes 14027 if test "$host_cpu" = ia64; then 14028 # AIX 5 supports IA64 14029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14030 shlibpath_var=LD_LIBRARY_PATH 14031 else 14032 # With GCC up to 2.95.x, collect2 would create an import file 14033 # for dependence libraries. The import file would start with 14034 # the line `#! .'. This would cause the generated library to 14035 # depend on `.', always an invalid library. This was fixed in 14036 # development snapshots of GCC prior to 3.0. 14037 case $host_os in 14038 aix4 | aix4.[01] | aix4.[01].*) 14039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14040 echo ' yes ' 14041 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14042 : 14043 else 14044 can_build_shared=no 14045 fi 14046 ;; 14047 esac 14048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14049 # soname into executable. Probably we can add versioning support to 14050 # collect2, so additional links can be useful in future. 14051 if test "$aix_use_runtimelinking" = yes; then 14052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14053 # instead of lib<name>.a to let people know that these are not 14054 # typical AIX shared libraries. 14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14056 else 14057 # We preserve .a as extension for shared libraries through AIX4.2 14058 # and later when we are not doing run time linking. 14059 library_names_spec='${libname}${release}.a $libname.a' 14060 soname_spec='${libname}${release}${shared_ext}$major' 14061 fi 14062 shlibpath_var=LIBPATH 14063 fi 14064 ;; 14065 14066 amigaos*) 14067 case $host_cpu in 14068 powerpc) 14069 # Since July 2007 AmigaOS4 officially supports .so libraries. 14070 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14072 ;; 14073 m68k) 14074 library_names_spec='$libname.ixlibrary $libname.a' 14075 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14076 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14077 ;; 14078 esac 14079 ;; 14080 14081 beos*) 14082 library_names_spec='${libname}${shared_ext}' 14083 dynamic_linker="$host_os ld.so" 14084 shlibpath_var=LIBRARY_PATH 14085 ;; 14086 14087 bsdi[45]*) 14088 version_type=linux 14089 need_version=no 14090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14091 soname_spec='${libname}${release}${shared_ext}$major' 14092 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14093 shlibpath_var=LD_LIBRARY_PATH 14094 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14095 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14096 # the default ld.so.conf also contains /usr/contrib/lib and 14097 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14098 # libtool to hard-code these into programs 14099 ;; 14100 14101 cygwin* | mingw* | pw32* | cegcc*) 14102 version_type=windows 14103 shrext_cmds=".dll" 14104 need_version=no 14105 need_lib_prefix=no 14106 14107 case $GCC,$host_os in 14108 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14109 library_names_spec='$libname.dll.a' 14110 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14111 postinstall_cmds='base_file=`basename \${file}`~ 14112 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14113 dldir=$destdir/`dirname \$dlpath`~ 14114 test -d \$dldir || mkdir -p \$dldir~ 14115 $install_prog $dir/$dlname \$dldir/$dlname~ 14116 chmod a+x \$dldir/$dlname~ 14117 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14118 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14119 fi' 14120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14121 dlpath=$dir/\$dldll~ 14122 $RM \$dlpath' 14123 shlibpath_overrides_runpath=yes 14124 14125 case $host_os in 14126 cygwin*) 14127 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14129 14130 ;; 14131 mingw* | cegcc*) 14132 # MinGW DLLs use traditional 'lib' prefix 14133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14134 ;; 14135 pw32*) 14136 # pw32 DLLs use 'pw' prefix rather than 'lib' 14137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14138 ;; 14139 esac 14140 ;; 14141 14142 *) 14143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14144 ;; 14145 esac 14146 dynamic_linker='Win32 ld.exe' 14147 # FIXME: first we should search . and the directory the executable is in 14148 shlibpath_var=PATH 14149 ;; 14150 14151 darwin* | rhapsody*) 14152 dynamic_linker="$host_os dyld" 14153 version_type=darwin 14154 need_lib_prefix=no 14155 need_version=no 14156 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14157 soname_spec='${libname}${release}${major}$shared_ext' 14158 shlibpath_overrides_runpath=yes 14159 shlibpath_var=DYLD_LIBRARY_PATH 14160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14161 14162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14163 ;; 14164 14165 dgux*) 14166 version_type=linux 14167 need_lib_prefix=no 14168 need_version=no 14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14170 soname_spec='${libname}${release}${shared_ext}$major' 14171 shlibpath_var=LD_LIBRARY_PATH 14172 ;; 14173 14174 freebsd* | dragonfly*) 14175 # DragonFly does not have aout. When/if they implement a new 14176 # versioning mechanism, adjust this. 14177 if test -x /usr/bin/objformat; then 14178 objformat=`/usr/bin/objformat` 14179 else 14180 case $host_os in 14181 freebsd[23].*) objformat=aout ;; 14182 *) objformat=elf ;; 14183 esac 14184 fi 14185 version_type=freebsd-$objformat 14186 case $version_type in 14187 freebsd-elf*) 14188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14189 need_version=no 14190 need_lib_prefix=no 14191 ;; 14192 freebsd-*) 14193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14194 need_version=yes 14195 ;; 14196 esac 14197 shlibpath_var=LD_LIBRARY_PATH 14198 case $host_os in 14199 freebsd2.*) 14200 shlibpath_overrides_runpath=yes 14201 ;; 14202 freebsd3.[01]* | freebsdelf3.[01]*) 14203 shlibpath_overrides_runpath=yes 14204 hardcode_into_libs=yes 14205 ;; 14206 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14207 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14208 shlibpath_overrides_runpath=no 14209 hardcode_into_libs=yes 14210 ;; 14211 *) # from 4.6 on, and DragonFly 14212 shlibpath_overrides_runpath=yes 14213 hardcode_into_libs=yes 14214 ;; 14215 esac 14216 ;; 14217 14218 gnu*) 14219 version_type=linux 14220 need_lib_prefix=no 14221 need_version=no 14222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14223 soname_spec='${libname}${release}${shared_ext}$major' 14224 shlibpath_var=LD_LIBRARY_PATH 14225 hardcode_into_libs=yes 14226 ;; 14227 14228 haiku*) 14229 version_type=linux 14230 need_lib_prefix=no 14231 need_version=no 14232 dynamic_linker="$host_os runtime_loader" 14233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14234 soname_spec='${libname}${release}${shared_ext}$major' 14235 shlibpath_var=LIBRARY_PATH 14236 shlibpath_overrides_runpath=yes 14237 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14238 hardcode_into_libs=yes 14239 ;; 14240 14241 hpux9* | hpux10* | hpux11*) 14242 # Give a soname corresponding to the major version so that dld.sl refuses to 14243 # link against other versions. 14244 version_type=sunos 14245 need_lib_prefix=no 14246 need_version=no 14247 case $host_cpu in 14248 ia64*) 14249 shrext_cmds='.so' 14250 hardcode_into_libs=yes 14251 dynamic_linker="$host_os dld.so" 14252 shlibpath_var=LD_LIBRARY_PATH 14253 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14255 soname_spec='${libname}${release}${shared_ext}$major' 14256 if test "X$HPUX_IA64_MODE" = X32; then 14257 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14258 else 14259 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14260 fi 14261 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14262 ;; 14263 hppa*64*) 14264 shrext_cmds='.sl' 14265 hardcode_into_libs=yes 14266 dynamic_linker="$host_os dld.sl" 14267 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14270 soname_spec='${libname}${release}${shared_ext}$major' 14271 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14272 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14273 ;; 14274 *) 14275 shrext_cmds='.sl' 14276 dynamic_linker="$host_os dld.sl" 14277 shlibpath_var=SHLIB_PATH 14278 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14280 soname_spec='${libname}${release}${shared_ext}$major' 14281 ;; 14282 esac 14283 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14284 postinstall_cmds='chmod 555 $lib' 14285 # or fails outright, so override atomically: 14286 install_override_mode=555 14287 ;; 14288 14289 interix[3-9]*) 14290 version_type=linux 14291 need_lib_prefix=no 14292 need_version=no 14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14294 soname_spec='${libname}${release}${shared_ext}$major' 14295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14296 shlibpath_var=LD_LIBRARY_PATH 14297 shlibpath_overrides_runpath=no 14298 hardcode_into_libs=yes 14299 ;; 14300 14301 irix5* | irix6* | nonstopux*) 14302 case $host_os in 14303 nonstopux*) version_type=nonstopux ;; 14304 *) 14305 if test "$lt_cv_prog_gnu_ld" = yes; then 14306 version_type=linux 14307 else 14308 version_type=irix 14309 fi ;; 14310 esac 14311 need_lib_prefix=no 14312 need_version=no 14313 soname_spec='${libname}${release}${shared_ext}$major' 14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14315 case $host_os in 14316 irix5* | nonstopux*) 14317 libsuff= shlibsuff= 14318 ;; 14319 *) 14320 case $LD in # libtool.m4 will add one of these switches to LD 14321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14322 libsuff= shlibsuff= libmagic=32-bit;; 14323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14324 libsuff=32 shlibsuff=N32 libmagic=N32;; 14325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14326 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14327 *) libsuff= shlibsuff= libmagic=never-match;; 14328 esac 14329 ;; 14330 esac 14331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14332 shlibpath_overrides_runpath=no 14333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14335 hardcode_into_libs=yes 14336 ;; 14337 14338 # No shared lib support for Linux oldld, aout, or coff. 14339 linux*oldld* | linux*aout* | linux*coff*) 14340 dynamic_linker=no 14341 ;; 14342 14343 # This must be Linux ELF. 14344 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14345 version_type=linux 14346 need_lib_prefix=no 14347 need_version=no 14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14349 soname_spec='${libname}${release}${shared_ext}$major' 14350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14351 shlibpath_var=LD_LIBRARY_PATH 14352 shlibpath_overrides_runpath=no 14353 14354 # Some binutils ld are patched to set DT_RUNPATH 14355 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 14356 $as_echo_n "(cached) " >&6 14357 else 14358 lt_cv_shlibpath_overrides_runpath=no 14359 save_LDFLAGS=$LDFLAGS 14360 save_libdir=$libdir 14361 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14362 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14364 /* end confdefs.h. */ 14365 14366 int 14367 main () 14368 { 14369 14370 ; 14371 return 0; 14372 } 14373 _ACEOF 14374 if ac_fn_cxx_try_link "$LINENO"; then : 14375 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14376 lt_cv_shlibpath_overrides_runpath=yes 14377 fi 14378 fi 14379 rm -f core conftest.err conftest.$ac_objext \ 14380 conftest$ac_exeext conftest.$ac_ext 14381 LDFLAGS=$save_LDFLAGS 14382 libdir=$save_libdir 14383 14384 fi 14385 14386 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14387 14388 # This implies no fast_install, which is unacceptable. 14389 # Some rework will be needed to allow for fast_install 14390 # before this can be enabled. 14391 hardcode_into_libs=yes 14392 14393 # Append ld.so.conf contents to the search path 14394 if test -f /etc/ld.so.conf; then 14395 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 14396 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14397 fi 14398 14399 # We used to test for /lib/ld.so.1 and disable shared libraries on 14400 # powerpc, because MkLinux only supported shared libraries with the 14401 # GNU dynamic linker. Since this was broken with cross compilers, 14402 # most powerpc-linux boxes support dynamic linking these days and 14403 # people can always --disable-shared, the test was removed, and we 14404 # assume the GNU/Linux dynamic linker is in use. 14405 dynamic_linker='GNU/Linux ld.so' 14406 ;; 14407 14408 netbsd*) 14409 version_type=sunos 14410 need_lib_prefix=no 14411 need_version=no 14412 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14415 dynamic_linker='NetBSD (a.out) ld.so' 14416 else 14417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14418 soname_spec='${libname}${release}${shared_ext}$major' 14419 dynamic_linker='NetBSD ld.elf_so' 14420 fi 14421 shlibpath_var=LD_LIBRARY_PATH 14422 shlibpath_overrides_runpath=yes 14423 hardcode_into_libs=yes 14424 ;; 14425 14426 newsos6) 14427 version_type=linux 14428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14429 shlibpath_var=LD_LIBRARY_PATH 14430 shlibpath_overrides_runpath=yes 14431 ;; 14432 14433 *nto* | *qnx*) 14434 version_type=qnx 14435 need_lib_prefix=no 14436 need_version=no 14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14438 soname_spec='${libname}${release}${shared_ext}$major' 14439 shlibpath_var=LD_LIBRARY_PATH 14440 shlibpath_overrides_runpath=no 14441 hardcode_into_libs=yes 14442 dynamic_linker='ldqnx.so' 14443 ;; 14444 14445 openbsd*) 14446 version_type=sunos 14447 sys_lib_dlsearch_path_spec="/usr/lib" 14448 need_lib_prefix=no 14449 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14450 case $host_os in 14451 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14452 *) need_version=no ;; 14453 esac 14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14456 shlibpath_var=LD_LIBRARY_PATH 14457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14458 case $host_os in 14459 openbsd2.[89] | openbsd2.[89].*) 14460 shlibpath_overrides_runpath=no 14461 ;; 14462 *) 14463 shlibpath_overrides_runpath=yes 14464 ;; 14465 esac 14466 else 14467 shlibpath_overrides_runpath=yes 14468 fi 14469 ;; 14470 14471 os2*) 14472 libname_spec='$name' 14473 shrext_cmds=".dll" 14474 need_lib_prefix=no 14475 library_names_spec='$libname${shared_ext} $libname.a' 14476 dynamic_linker='OS/2 ld.exe' 14477 shlibpath_var=LIBPATH 14478 ;; 14479 14480 osf3* | osf4* | osf5*) 14481 version_type=osf 14482 need_lib_prefix=no 14483 need_version=no 14484 soname_spec='${libname}${release}${shared_ext}$major' 14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14486 shlibpath_var=LD_LIBRARY_PATH 14487 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14488 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14489 ;; 14490 14491 rdos*) 14492 dynamic_linker=no 14493 ;; 14494 14495 solaris*) 14496 version_type=linux 14497 need_lib_prefix=no 14498 need_version=no 14499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14500 soname_spec='${libname}${release}${shared_ext}$major' 14501 shlibpath_var=LD_LIBRARY_PATH 14502 shlibpath_overrides_runpath=yes 14503 hardcode_into_libs=yes 14504 # ldd complains unless libraries are executable 14505 postinstall_cmds='chmod +x $lib' 14506 ;; 14507 14508 sunos4*) 14509 version_type=sunos 14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14511 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14512 shlibpath_var=LD_LIBRARY_PATH 14513 shlibpath_overrides_runpath=yes 14514 if test "$with_gnu_ld" = yes; then 14515 need_lib_prefix=no 14516 fi 14517 need_version=yes 14518 ;; 14519 14520 sysv4 | sysv4.3*) 14521 version_type=linux 14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14523 soname_spec='${libname}${release}${shared_ext}$major' 14524 shlibpath_var=LD_LIBRARY_PATH 14525 case $host_vendor in 14526 sni) 14527 shlibpath_overrides_runpath=no 14528 need_lib_prefix=no 14529 runpath_var=LD_RUN_PATH 14530 ;; 14531 siemens) 14532 need_lib_prefix=no 14533 ;; 14534 motorola) 14535 need_lib_prefix=no 14536 need_version=no 14537 shlibpath_overrides_runpath=no 14538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14539 ;; 14540 esac 14541 ;; 14542 14543 sysv4*MP*) 14544 if test -d /usr/nec ;then 14545 version_type=linux 14546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14547 soname_spec='$libname${shared_ext}.$major' 14548 shlibpath_var=LD_LIBRARY_PATH 14549 fi 14550 ;; 14551 14552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14553 version_type=freebsd-elf 14554 need_lib_prefix=no 14555 need_version=no 14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14557 soname_spec='${libname}${release}${shared_ext}$major' 14558 shlibpath_var=LD_LIBRARY_PATH 14559 shlibpath_overrides_runpath=yes 14560 hardcode_into_libs=yes 14561 if test "$with_gnu_ld" = yes; then 14562 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14563 else 14564 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14565 case $host_os in 14566 sco3.2v5*) 14567 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14568 ;; 14569 esac 14570 fi 14571 sys_lib_dlsearch_path_spec='/usr/lib' 14572 ;; 14573 14574 tpf*) 14575 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14576 version_type=linux 14577 need_lib_prefix=no 14578 need_version=no 14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14580 shlibpath_var=LD_LIBRARY_PATH 14581 shlibpath_overrides_runpath=no 14582 hardcode_into_libs=yes 14583 ;; 14584 14585 uts4*) 14586 version_type=linux 14587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14588 soname_spec='${libname}${release}${shared_ext}$major' 14589 shlibpath_var=LD_LIBRARY_PATH 14590 ;; 14591 14592 *) 14593 dynamic_linker=no 14594 ;; 14595 esac 14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14597 $as_echo "$dynamic_linker" >&6; } 14598 test "$dynamic_linker" = no && can_build_shared=no 14599 14600 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14601 if test "$GCC" = yes; then 14602 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14603 fi 14604 14605 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14606 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14607 fi 14608 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14609 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14610 fi 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14650 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14651 hardcode_action_CXX= 14652 if test -n "$hardcode_libdir_flag_spec_CXX" || 14653 test -n "$runpath_var_CXX" || 14654 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14655 14656 # We can hardcode non-existent directories. 14657 if test "$hardcode_direct_CXX" != no && 14658 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14659 # have to relink, otherwise we might link with an installed library 14660 # when we should be linking with a yet-to-be-installed one 14661 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14662 test "$hardcode_minus_L_CXX" != no; then 14663 # Linking always hardcodes the temporary library directory. 14664 hardcode_action_CXX=relink 14665 else 14666 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14667 hardcode_action_CXX=immediate 14668 fi 14669 else 14670 # We cannot hardcode anything, or else we can only hardcode existing 14671 # directories. 14672 hardcode_action_CXX=unsupported 14673 fi 14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14675 $as_echo "$hardcode_action_CXX" >&6; } 14676 14677 if test "$hardcode_action_CXX" = relink || 14678 test "$inherit_rpath_CXX" = yes; then 14679 # Fast installation is not supported 14680 enable_fast_install=no 14681 elif test "$shlibpath_overrides_runpath" = yes || 14682 test "$enable_shared" = no; then 14683 # Fast installation is not necessary 14684 enable_fast_install=needless 14685 fi 14686 14687 14688 14689 14690 14691 14692 14693 fi # test -n "$compiler" 14694 14695 CC=$lt_save_CC 14696 LDCXX=$LD 14697 LD=$lt_save_LD 14698 GCC=$lt_save_GCC 14699 with_gnu_ld=$lt_save_with_gnu_ld 14700 lt_cv_path_LDCXX=$lt_cv_path_LD 14701 lt_cv_path_LD=$lt_save_path_LD 14702 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14703 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14704 fi # test "$_lt_caught_CXX_error" != yes 14705 14706 ac_ext=c 14707 ac_cpp='$CPP $CPPFLAGS' 14708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14710 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 ac_config_commands="$ac_config_commands libtool" 14725 14726 14727 14728 14729 # Only expand once: 14730 14731 14732 14733 # Test for 64-bit build. 14734 # The cast to long int works around a bug in the HP C Compiler 14735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14737 # This bug is HP SR number 8606223364. 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 14739 $as_echo_n "checking size of size_t... " >&6; } 14740 if test "${ac_cv_sizeof_size_t+set}" = set; then : 14741 $as_echo_n "(cached) " >&6 14742 else 14743 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 14744 14745 else 14746 if test "$ac_cv_type_size_t" = yes; then 14747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14749 { as_fn_set_status 77 14750 as_fn_error "cannot compute sizeof (size_t) 14751 See \`config.log' for more details." "$LINENO" 5; }; } 14752 else 14753 ac_cv_sizeof_size_t=0 14754 fi 14755 fi 14756 14757 fi 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 14759 $as_echo "$ac_cv_sizeof_size_t" >&6; } 14760 14761 14762 14763 cat >>confdefs.h <<_ACEOF 14764 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 14765 _ACEOF 14766 14767 14768 14769 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 14771 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 14772 # Check whether --enable-maintainer-mode was given. 14773 if test "${enable_maintainer_mode+set}" = set; then : 14774 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 14775 else 14776 USE_MAINTAINER_MODE=no 14777 fi 14778 14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 14780 $as_echo "$USE_MAINTAINER_MODE" >&6; } 14781 if test $USE_MAINTAINER_MODE = yes; then 14782 MAINTAINER_MODE_TRUE= 14783 MAINTAINER_MODE_FALSE='#' 14784 else 14785 MAINTAINER_MODE_TRUE='#' 14786 MAINTAINER_MODE_FALSE= 14787 fi 14788 14789 MAINT=$MAINTAINER_MODE_TRUE 14790 14791 14792 14793 for ac_header in sys/mman.h 14794 do : 14795 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 14796 if test "x$ac_cv_header_sys_mman_h" = x""yes; then : 14797 cat >>confdefs.h <<_ACEOF 14798 #define HAVE_SYS_MMAN_H 1 14799 _ACEOF 14800 14801 fi 14802 14803 done 14804 14805 for ac_func in mmap mkostemp 14806 do : 14807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14809 eval as_val=\$$as_ac_var 14810 if test "x$as_val" = x""yes; then : 14811 cat >>confdefs.h <<_ACEOF 14812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14813 _ACEOF 14814 14815 fi 14816 done 14817 14818 14819 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 14820 if test "x$ac_cv_header_sys_mman_h" = x""yes; then : 14821 libffi_header_sys_mman_h=yes 14822 else 14823 libffi_header_sys_mman_h=no 14824 fi 14825 14826 14827 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 14828 if test "x$ac_cv_func_mmap" = x""yes; then : 14829 libffi_func_mmap=yes 14830 else 14831 libffi_func_mmap=no 14832 fi 14833 14834 if test "$libffi_header_sys_mman_h" != yes \ 14835 || test "$libffi_func_mmap" != yes; then 14836 ac_cv_func_mmap_file=no 14837 ac_cv_func_mmap_dev_zero=no 14838 ac_cv_func_mmap_anon=no 14839 else 14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5 14841 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; } 14842 if test "${ac_cv_func_mmap_file+set}" = set; then : 14843 $as_echo_n "(cached) " >&6 14844 else 14845 # Add a system to this blacklist if 14846 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 14847 # memory area containing the same data that you'd get if you applied 14848 # read() to the same fd. The only system known to have a problem here 14849 # is VMS, where text files have record structure. 14850 case "$host_os" in 14851 vms* | ultrix*) 14852 ac_cv_func_mmap_file=no ;; 14853 *) 14854 ac_cv_func_mmap_file=yes;; 14855 esac 14856 fi 14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5 14858 $as_echo "$ac_cv_func_mmap_file" >&6; } 14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5 14860 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; } 14861 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then : 14862 $as_echo_n "(cached) " >&6 14863 else 14864 # Add a system to this blacklist if it has mmap() but /dev/zero 14865 # does not exist, or if mmapping /dev/zero does not give anonymous 14866 # zeroed pages with both the following properties: 14867 # 1. If you map N consecutive pages in with one call, and then 14868 # unmap any subset of those pages, the pages that were not 14869 # explicitly unmapped remain accessible. 14870 # 2. If you map two adjacent blocks of memory and then unmap them 14871 # both at once, they must both go away. 14872 # Systems known to be in this category are Windows (all variants), 14873 # VMS, and Darwin. 14874 case "$host_os" in 14875 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 14876 ac_cv_func_mmap_dev_zero=no ;; 14877 *) 14878 ac_cv_func_mmap_dev_zero=yes;; 14879 esac 14880 fi 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5 14882 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; } 14883 14884 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5 14886 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; } 14887 if test "${ac_cv_decl_map_anon+set}" = set; then : 14888 $as_echo_n "(cached) " >&6 14889 else 14890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14891 /* end confdefs.h. */ 14892 #include <sys/types.h> 14893 #include <sys/mman.h> 14894 #include <unistd.h> 14895 14896 #ifndef MAP_ANONYMOUS 14897 #define MAP_ANONYMOUS MAP_ANON 14898 #endif 14899 14900 int 14901 main () 14902 { 14903 int n = MAP_ANONYMOUS; 14904 ; 14905 return 0; 14906 } 14907 _ACEOF 14908 if ac_fn_c_try_compile "$LINENO"; then : 14909 ac_cv_decl_map_anon=yes 14910 else 14911 ac_cv_decl_map_anon=no 14912 fi 14913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14914 fi 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5 14916 $as_echo "$ac_cv_decl_map_anon" >&6; } 14917 14918 if test $ac_cv_decl_map_anon = no; then 14919 ac_cv_func_mmap_anon=no 14920 else 14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5 14922 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; } 14923 if test "${ac_cv_func_mmap_anon+set}" = set; then : 14924 $as_echo_n "(cached) " >&6 14925 else 14926 # Add a system to this blacklist if it has mmap() and MAP_ANON or 14927 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 14928 # doesn't give anonymous zeroed pages with the same properties listed 14929 # above for use of /dev/zero. 14930 # Systems known to be in this category are Windows, VMS, and SCO Unix. 14931 case "$host_os" in 14932 vms* | cygwin* | pe | mingw* | sco* | udk* ) 14933 ac_cv_func_mmap_anon=no ;; 14934 *) 14935 ac_cv_func_mmap_anon=yes;; 14936 esac 14937 fi 14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5 14939 $as_echo "$ac_cv_func_mmap_anon" >&6; } 14940 fi 14941 fi 14942 14943 if test $ac_cv_func_mmap_file = yes; then 14944 14945 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h 14946 14947 fi 14948 if test $ac_cv_func_mmap_dev_zero = yes; then 14949 14950 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h 14951 14952 fi 14953 if test $ac_cv_func_mmap_anon = yes; then 14954 14955 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h 14956 14957 fi 14958 14959 14960 if test -d $srcdir/testsuite; then 14961 TESTSUBDIR_TRUE= 14962 TESTSUBDIR_FALSE='#' 14963 else 14964 TESTSUBDIR_TRUE='#' 14965 TESTSUBDIR_FALSE= 14966 fi 14967 14968 14969 TARGETDIR="unknown" 14970 HAVE_LONG_DOUBLE_VARIANT=0 14971 14972 . ${srcdir}/configure.host 14973 14974 if test -n "${UNSUPPORTED}"; then 14975 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5 14976 fi 14977 14978 14979 14980 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14982 $as_echo_n "checking for ANSI C header files... " >&6; } 14983 if test "${ac_cv_header_stdc+set}" = set; then : 14984 $as_echo_n "(cached) " >&6 14985 else 14986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14987 /* end confdefs.h. */ 14988 #include <stdlib.h> 14989 #include <stdarg.h> 14990 #include <string.h> 14991 #include <float.h> 14992 14993 int 14994 main () 14995 { 14996 14997 ; 14998 return 0; 14999 } 15000 _ACEOF 15001 if ac_fn_c_try_compile "$LINENO"; then : 15002 ac_cv_header_stdc=yes 15003 else 15004 ac_cv_header_stdc=no 15005 fi 15006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15007 15008 if test $ac_cv_header_stdc = yes; then 15009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15011 /* end confdefs.h. */ 15012 #include <string.h> 15013 15014 _ACEOF 15015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15016 $EGREP "memchr" >/dev/null 2>&1; then : 15017 15018 else 15019 ac_cv_header_stdc=no 15020 fi 15021 rm -f conftest* 15022 15023 fi 15024 15025 if test $ac_cv_header_stdc = yes; then 15026 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028 /* end confdefs.h. */ 15029 #include <stdlib.h> 15030 15031 _ACEOF 15032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15033 $EGREP "free" >/dev/null 2>&1; then : 15034 15035 else 15036 ac_cv_header_stdc=no 15037 fi 15038 rm -f conftest* 15039 15040 fi 15041 15042 if test $ac_cv_header_stdc = yes; then 15043 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15044 if test "$cross_compiling" = yes; then : 15045 : 15046 else 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048 /* end confdefs.h. */ 15049 #include <ctype.h> 15050 #include <stdlib.h> 15051 #if ((' ' & 0x0FF) == 0x020) 15052 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15053 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15054 #else 15055 # define ISLOWER(c) \ 15056 (('a' <= (c) && (c) <= 'i') \ 15057 || ('j' <= (c) && (c) <= 'r') \ 15058 || ('s' <= (c) && (c) <= 'z')) 15059 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15060 #endif 15061 15062 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15063 int 15064 main () 15065 { 15066 int i; 15067 for (i = 0; i < 256; i++) 15068 if (XOR (islower (i), ISLOWER (i)) 15069 || toupper (i) != TOUPPER (i)) 15070 return 2; 15071 return 0; 15072 } 15073 _ACEOF 15074 if ac_fn_c_try_run "$LINENO"; then : 15075 15076 else 15077 ac_cv_header_stdc=no 15078 fi 15079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15080 conftest.$ac_objext conftest.beam conftest.$ac_ext 15081 fi 15082 15083 fi 15084 fi 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15086 $as_echo "$ac_cv_header_stdc" >&6; } 15087 if test $ac_cv_header_stdc = yes; then 15088 15089 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 15090 15091 fi 15092 15093 for ac_func in memcpy 15094 do : 15095 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" 15096 if test "x$ac_cv_func_memcpy" = x""yes; then : 15097 cat >>confdefs.h <<_ACEOF 15098 #define HAVE_MEMCPY 1 15099 _ACEOF 15100 15101 fi 15102 done 15103 15104 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 15105 # for constant arguments. Useless! 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 15107 $as_echo_n "checking for working alloca.h... " >&6; } 15108 if test "${ac_cv_working_alloca_h+set}" = set; then : 15109 $as_echo_n "(cached) " >&6 15110 else 15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15112 /* end confdefs.h. */ 15113 #include <alloca.h> 15114 int 15115 main () 15116 { 15117 char *p = (char *) alloca (2 * sizeof (int)); 15118 if (p) return 0; 15119 ; 15120 return 0; 15121 } 15122 _ACEOF 15123 if ac_fn_c_try_link "$LINENO"; then : 15124 ac_cv_working_alloca_h=yes 15125 else 15126 ac_cv_working_alloca_h=no 15127 fi 15128 rm -f core conftest.err conftest.$ac_objext \ 15129 conftest$ac_exeext conftest.$ac_ext 15130 fi 15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 15132 $as_echo "$ac_cv_working_alloca_h" >&6; } 15133 if test $ac_cv_working_alloca_h = yes; then 15134 15135 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 15136 15137 fi 15138 15139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 15140 $as_echo_n "checking for alloca... " >&6; } 15141 if test "${ac_cv_func_alloca_works+set}" = set; then : 15142 $as_echo_n "(cached) " >&6 15143 else 15144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15145 /* end confdefs.h. */ 15146 #ifdef __GNUC__ 15147 # define alloca __builtin_alloca 15148 #else 15149 # ifdef _MSC_VER 15150 # include <malloc.h> 15151 # define alloca _alloca 15152 # else 15153 # ifdef HAVE_ALLOCA_H 15154 # include <alloca.h> 15155 # else 15156 # ifdef _AIX 15157 #pragma alloca 15158 # else 15159 # ifndef alloca /* predefined by HP cc +Olibcalls */ 15160 char *alloca (); 15161 # endif 15162 # endif 15163 # endif 15164 # endif 15165 #endif 15166 15167 int 15168 main () 15169 { 15170 char *p = (char *) alloca (1); 15171 if (p) return 0; 15172 ; 15173 return 0; 15174 } 15175 _ACEOF 15176 if ac_fn_c_try_link "$LINENO"; then : 15177 ac_cv_func_alloca_works=yes 15178 else 15179 ac_cv_func_alloca_works=no 15180 fi 15181 rm -f core conftest.err conftest.$ac_objext \ 15182 conftest$ac_exeext conftest.$ac_ext 15183 fi 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 15185 $as_echo "$ac_cv_func_alloca_works" >&6; } 15186 15187 if test $ac_cv_func_alloca_works = yes; then 15188 15189 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 15190 15191 else 15192 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 15193 # that cause trouble. Some versions do not even contain alloca or 15194 # contain a buggy version. If you still want to use their alloca, 15195 # use ar to extract alloca.o from them instead of compiling alloca.c. 15196 15197 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 15198 15199 $as_echo "#define C_ALLOCA 1" >>confdefs.h 15200 15201 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 15203 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 15204 if test "${ac_cv_os_cray+set}" = set; then : 15205 $as_echo_n "(cached) " >&6 15206 else 15207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15208 /* end confdefs.h. */ 15209 #if defined CRAY && ! defined CRAY2 15210 webecray 15211 #else 15212 wenotbecray 15213 #endif 15214 15215 _ACEOF 15216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15217 $EGREP "webecray" >/dev/null 2>&1; then : 15218 ac_cv_os_cray=yes 15219 else 15220 ac_cv_os_cray=no 15221 fi 15222 rm -f conftest* 15223 15224 fi 15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 15226 $as_echo "$ac_cv_os_cray" >&6; } 15227 if test $ac_cv_os_cray = yes; then 15228 for ac_func in _getb67 GETB67 getb67; do 15229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15231 eval as_val=\$$as_ac_var 15232 if test "x$as_val" = x""yes; then : 15233 15234 cat >>confdefs.h <<_ACEOF 15235 #define CRAY_STACKSEG_END $ac_func 15236 _ACEOF 15237 15238 break 15239 fi 15240 15241 done 15242 fi 15243 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 15245 $as_echo_n "checking stack direction for C alloca... " >&6; } 15246 if test "${ac_cv_c_stack_direction+set}" = set; then : 15247 $as_echo_n "(cached) " >&6 15248 else 15249 if test "$cross_compiling" = yes; then : 15250 ac_cv_c_stack_direction=0 15251 else 15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15253 /* end confdefs.h. */ 15254 $ac_includes_default 15255 int 15256 find_stack_direction () 15257 { 15258 static char *addr = 0; 15259 auto char dummy; 15260 if (addr == 0) 15261 { 15262 addr = &dummy; 15263 return find_stack_direction (); 15264 } 15265 else 15266 return (&dummy > addr) ? 1 : -1; 15267 } 15268 15269 int 15270 main () 15271 { 15272 return find_stack_direction () < 0; 15273 } 15274 _ACEOF 15275 if ac_fn_c_try_run "$LINENO"; then : 15276 ac_cv_c_stack_direction=1 15277 else 15278 ac_cv_c_stack_direction=-1 15279 fi 15280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15281 conftest.$ac_objext conftest.beam conftest.$ac_ext 15282 fi 15283 15284 fi 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 15286 $as_echo "$ac_cv_c_stack_direction" >&6; } 15287 cat >>confdefs.h <<_ACEOF 15288 #define STACK_DIRECTION $ac_cv_c_stack_direction 15289 _ACEOF 15290 15291 15292 fi 15293 15294 15295 # The cast to long int works around a bug in the HP C Compiler 15296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15298 # This bug is HP SR number 8606223364. 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 15300 $as_echo_n "checking size of double... " >&6; } 15301 if test "${ac_cv_sizeof_double+set}" = set; then : 15302 $as_echo_n "(cached) " >&6 15303 else 15304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 15305 15306 else 15307 if test "$ac_cv_type_double" = yes; then 15308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15310 { as_fn_set_status 77 15311 as_fn_error "cannot compute sizeof (double) 15312 See \`config.log' for more details." "$LINENO" 5; }; } 15313 else 15314 ac_cv_sizeof_double=0 15315 fi 15316 fi 15317 15318 fi 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 15320 $as_echo "$ac_cv_sizeof_double" >&6; } 15321 15322 15323 15324 cat >>confdefs.h <<_ACEOF 15325 #define SIZEOF_DOUBLE $ac_cv_sizeof_double 15326 _ACEOF 15327 15328 15329 # The cast to long int works around a bug in the HP C Compiler 15330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15332 # This bug is HP SR number 8606223364. 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 15334 $as_echo_n "checking size of long double... " >&6; } 15335 if test "${ac_cv_sizeof_long_double+set}" = set; then : 15336 $as_echo_n "(cached) " >&6 15337 else 15338 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 15339 15340 else 15341 if test "$ac_cv_type_long_double" = yes; then 15342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15344 { as_fn_set_status 77 15345 as_fn_error "cannot compute sizeof (long double) 15346 See \`config.log' for more details." "$LINENO" 5; }; } 15347 else 15348 ac_cv_sizeof_long_double=0 15349 fi 15350 fi 15351 15352 fi 15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 15354 $as_echo "$ac_cv_sizeof_long_double" >&6; } 15355 15356 15357 15358 cat >>confdefs.h <<_ACEOF 15359 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 15360 _ACEOF 15361 15362 15363 15364 # Also AC_SUBST this variable for ffi.h. 15365 if test -z "$HAVE_LONG_DOUBLE"; then 15366 HAVE_LONG_DOUBLE=0 15367 if test $ac_cv_sizeof_long_double != 0; then 15368 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then 15369 15370 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h 15371 15372 HAVE_LONG_DOUBLE=1 15373 else 15374 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then 15375 HAVE_LONG_DOUBLE=1 15376 15377 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 15378 15379 fi 15380 fi 15381 fi 15382 fi 15383 15384 15385 15386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15387 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15388 if test "${ac_cv_c_bigendian+set}" = set; then : 15389 $as_echo_n "(cached) " >&6 15390 else 15391 ac_cv_c_bigendian=unknown 15392 # See if we're dealing with a universal compiler. 15393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15394 /* end confdefs.h. */ 15395 #ifndef __APPLE_CC__ 15396 not a universal capable compiler 15397 #endif 15398 typedef int dummy; 15399 15400 _ACEOF 15401 if ac_fn_c_try_compile "$LINENO"; then : 15402 15403 # Check for potential -arch flags. It is not universal unless 15404 # there are at least two -arch flags with different values. 15405 ac_arch= 15406 ac_prev= 15407 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15408 if test -n "$ac_prev"; then 15409 case $ac_word in 15410 i?86 | x86_64 | ppc | ppc64) 15411 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15412 ac_arch=$ac_word 15413 else 15414 ac_cv_c_bigendian=universal 15415 break 15416 fi 15417 ;; 15418 esac 15419 ac_prev= 15420 elif test "x$ac_word" = "x-arch"; then 15421 ac_prev=arch 15422 fi 15423 done 15424 fi 15425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15426 if test $ac_cv_c_bigendian = unknown; then 15427 # See if sys/param.h defines the BYTE_ORDER macro. 15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15429 /* end confdefs.h. */ 15430 #include <sys/types.h> 15431 #include <sys/param.h> 15432 15433 int 15434 main () 15435 { 15436 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15437 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15438 && LITTLE_ENDIAN) 15439 bogus endian macros 15440 #endif 15441 15442 ; 15443 return 0; 15444 } 15445 _ACEOF 15446 if ac_fn_c_try_compile "$LINENO"; then : 15447 # It does; now see whether it defined to BIG_ENDIAN or not. 15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15449 /* end confdefs.h. */ 15450 #include <sys/types.h> 15451 #include <sys/param.h> 15452 15453 int 15454 main () 15455 { 15456 #if BYTE_ORDER != BIG_ENDIAN 15457 not big endian 15458 #endif 15459 15460 ; 15461 return 0; 15462 } 15463 _ACEOF 15464 if ac_fn_c_try_compile "$LINENO"; then : 15465 ac_cv_c_bigendian=yes 15466 else 15467 ac_cv_c_bigendian=no 15468 fi 15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15470 fi 15471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15472 fi 15473 if test $ac_cv_c_bigendian = unknown; then 15474 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15476 /* end confdefs.h. */ 15477 #include <limits.h> 15478 15479 int 15480 main () 15481 { 15482 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15483 bogus endian macros 15484 #endif 15485 15486 ; 15487 return 0; 15488 } 15489 _ACEOF 15490 if ac_fn_c_try_compile "$LINENO"; then : 15491 # It does; now see whether it defined to _BIG_ENDIAN or not. 15492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15493 /* end confdefs.h. */ 15494 #include <limits.h> 15495 15496 int 15497 main () 15498 { 15499 #ifndef _BIG_ENDIAN 15500 not big endian 15501 #endif 15502 15503 ; 15504 return 0; 15505 } 15506 _ACEOF 15507 if ac_fn_c_try_compile "$LINENO"; then : 15508 ac_cv_c_bigendian=yes 15509 else 15510 ac_cv_c_bigendian=no 15511 fi 15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15513 fi 15514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15515 fi 15516 if test $ac_cv_c_bigendian = unknown; then 15517 # Compile a test program. 15518 if test "$cross_compiling" = yes; then : 15519 # Try to guess by grepping values from an object file. 15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15521 /* end confdefs.h. */ 15522 short int ascii_mm[] = 15523 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15524 short int ascii_ii[] = 15525 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15526 int use_ascii (int i) { 15527 return ascii_mm[i] + ascii_ii[i]; 15528 } 15529 short int ebcdic_ii[] = 15530 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15531 short int ebcdic_mm[] = 15532 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15533 int use_ebcdic (int i) { 15534 return ebcdic_mm[i] + ebcdic_ii[i]; 15535 } 15536 extern int foo; 15537 15538 int 15539 main () 15540 { 15541 return use_ascii (foo) == use_ebcdic (foo); 15542 ; 15543 return 0; 15544 } 15545 _ACEOF 15546 if ac_fn_c_try_compile "$LINENO"; then : 15547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15548 ac_cv_c_bigendian=yes 15549 fi 15550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15551 if test "$ac_cv_c_bigendian" = unknown; then 15552 ac_cv_c_bigendian=no 15553 else 15554 # finding both strings is unlikely to happen, but who knows? 15555 ac_cv_c_bigendian=unknown 15556 fi 15557 fi 15558 fi 15559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15560 else 15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15562 /* end confdefs.h. */ 15563 $ac_includes_default 15564 int 15565 main () 15566 { 15567 15568 /* Are we little or big endian? From Harbison&Steele. */ 15569 union 15570 { 15571 long int l; 15572 char c[sizeof (long int)]; 15573 } u; 15574 u.l = 1; 15575 return u.c[sizeof (long int) - 1] == 1; 15576 15577 ; 15578 return 0; 15579 } 15580 _ACEOF 15581 if ac_fn_c_try_run "$LINENO"; then : 15582 ac_cv_c_bigendian=no 15583 else 15584 ac_cv_c_bigendian=yes 15585 fi 15586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15587 conftest.$ac_objext conftest.beam conftest.$ac_ext 15588 fi 15589 15590 fi 15591 fi 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15593 $as_echo "$ac_cv_c_bigendian" >&6; } 15594 case $ac_cv_c_bigendian in #( 15595 yes) 15596 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15597 ;; #( 15598 no) 15599 ;; #( 15600 universal) 15601 15602 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15603 15604 ;; #( 15605 *) 15606 as_fn_error "unknown endianness 15607 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15608 esac 15609 15610 15611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5 15612 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; } 15613 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then : 15614 $as_echo_n "(cached) " >&6 15615 else 15616 15617 gcc_cv_as_cfi_pseudo_op=unknown 15618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15619 /* end confdefs.h. */ 15620 asm (".cfi_startproc\n\t.cfi_endproc"); 15621 int 15622 main () 15623 { 15624 15625 ; 15626 return 0; 15627 } 15628 _ACEOF 15629 if ac_fn_c_try_compile "$LINENO"; then : 15630 gcc_cv_as_cfi_pseudo_op=yes 15631 else 15632 gcc_cv_as_cfi_pseudo_op=no 15633 fi 15634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15635 15636 fi 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5 15638 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; } 15639 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then 15640 15641 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h 15642 15643 fi 15644 15645 15646 if test x$TARGET = xSPARC; then 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5 15648 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; } 15649 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then : 15650 $as_echo_n "(cached) " >&6 15651 else 15652 15653 save_CFLAGS="$CFLAGS" 15654 save_LDFLAGS="$LDFLAGS" 15655 CFLAGS="$CFLAGS -fpic" 15656 LDFLAGS="$LDFLAGS -shared" 15657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15658 /* end confdefs.h. */ 15659 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text"); 15660 int 15661 main () 15662 { 15663 15664 ; 15665 return 0; 15666 } 15667 _ACEOF 15668 if ac_fn_c_try_link "$LINENO"; then : 15669 libffi_cv_as_sparc_ua_pcrel=yes 15670 else 15671 libffi_cv_as_sparc_ua_pcrel=no 15672 fi 15673 rm -f core conftest.err conftest.$ac_objext \ 15674 conftest$ac_exeext conftest.$ac_ext 15675 CFLAGS="$save_CFLAGS" 15676 LDFLAGS="$save_LDFLAGS" 15677 fi 15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5 15679 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; } 15680 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then 15681 15682 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h 15683 15684 fi 15685 15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5 15687 $as_echo_n "checking assembler .register pseudo-op support... " >&6; } 15688 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then : 15689 $as_echo_n "(cached) " >&6 15690 else 15691 15692 libffi_cv_as_register_pseudo_op=unknown 15693 # Check if we have .register 15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15695 /* end confdefs.h. */ 15696 15697 int 15698 main () 15699 { 15700 asm (".register %g2, #scratch"); 15701 ; 15702 return 0; 15703 } 15704 _ACEOF 15705 if ac_fn_c_try_compile "$LINENO"; then : 15706 libffi_cv_as_register_pseudo_op=yes 15707 else 15708 libffi_cv_as_register_pseudo_op=no 15709 fi 15710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15711 15712 fi 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5 15714 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; } 15715 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then 15716 15717 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h 15718 15719 fi 15720 fi 15721 15722 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5 15724 $as_echo_n "checking assembler supports pc related relocs... " >&6; } 15725 if test "${libffi_cv_as_x86_pcrel+set}" = set; then : 15726 $as_echo_n "(cached) " >&6 15727 else 15728 15729 libffi_cv_as_x86_pcrel=no 15730 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s 15731 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then 15732 libffi_cv_as_x86_pcrel=yes 15733 fi 15734 15735 fi 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5 15737 $as_echo "$libffi_cv_as_x86_pcrel" >&6; } 15738 if test "x$libffi_cv_as_x86_pcrel" = xyes; then 15739 15740 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h 15741 15742 fi 15743 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5 15745 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; } 15746 if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then : 15747 $as_echo_n "(cached) " >&6 15748 else 15749 15750 libffi_cv_as_ascii_pseudo_op=unknown 15751 # Check if we have .ascii 15752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15753 /* end confdefs.h. */ 15754 15755 int 15756 main () 15757 { 15758 asm (".ascii \\"string\\""); 15759 ; 15760 return 0; 15761 } 15762 _ACEOF 15763 if ac_fn_c_try_compile "$LINENO"; then : 15764 libffi_cv_as_ascii_pseudo_op=yes 15765 else 15766 libffi_cv_as_ascii_pseudo_op=no 15767 fi 15768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15769 15770 fi 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5 15772 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; } 15773 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then 15774 15775 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h 15776 15777 fi 15778 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5 15780 $as_echo_n "checking assembler .string pseudo-op support... " >&6; } 15781 if test "${libffi_cv_as_string_pseudo_op+set}" = set; then : 15782 $as_echo_n "(cached) " >&6 15783 else 15784 15785 libffi_cv_as_string_pseudo_op=unknown 15786 # Check if we have .string 15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15788 /* end confdefs.h. */ 15789 15790 int 15791 main () 15792 { 15793 asm (".string \\"string\\""); 15794 ; 15795 return 0; 15796 } 15797 _ACEOF 15798 if ac_fn_c_try_compile "$LINENO"; then : 15799 libffi_cv_as_string_pseudo_op=yes 15800 else 15801 libffi_cv_as_string_pseudo_op=no 15802 fi 15803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15804 15805 fi 15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5 15807 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; } 15808 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then 15809 15810 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h 15811 15812 fi 15813 fi 15814 15815 if test x$TARGET = xS390; then 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5 15817 $as_echo_n "checking compiler uses zarch features... " >&6; } 15818 if test "${libffi_cv_as_s390_zarch+set}" = set; then : 15819 $as_echo_n "(cached) " >&6 15820 else 15821 15822 libffi_cv_as_s390_zarch=no 15823 echo 'void foo(void) { bar(); bar(); }' > conftest.c 15824 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then 15825 if grep -q brasl conftest.s; then 15826 libffi_cv_as_s390_zarch=yes 15827 fi 15828 fi 15829 15830 fi 15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5 15832 $as_echo "$libffi_cv_as_s390_zarch" >&6; } 15833 if test "x$libffi_cv_as_s390_zarch" = xyes; then 15834 15835 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h 15836 15837 fi 15838 fi 15839 15840 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC. 15841 # Check whether --enable-pax_emutramp was given. 15842 if test "${enable_pax_emutramp+set}" = set; then : 15843 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then 15844 15845 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h 15846 15847 fi 15848 fi 15849 15850 15851 FFI_EXEC_TRAMPOLINE_TABLE=0 15852 case "$target" in 15853 *arm*-apple-darwin*) 15854 FFI_EXEC_TRAMPOLINE_TABLE=1 15855 15856 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h 15857 15858 ;; 15859 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*) 15860 15861 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h 15862 15863 ;; 15864 esac 15865 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then 15866 FFI_EXEC_TRAMPOLINE_TABLE_TRUE= 15867 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#' 15868 else 15869 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#' 15870 FFI_EXEC_TRAMPOLINE_TABLE_FALSE= 15871 fi 15872 15873 15874 15875 if test x$TARGET = xX86_64; then 15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5 15877 $as_echo_n "checking toolchain supports unwind section type... " >&6; } 15878 if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then : 15879 $as_echo_n "(cached) " >&6 15880 else 15881 15882 cat > conftest1.s << EOF 15883 .text 15884 .globl foo 15885 foo: 15886 jmp bar 15887 .section .eh_frame,"a",@unwind 15888 bar: 15889 EOF 15890 15891 cat > conftest2.c << EOF 15892 extern void foo(); 15893 int main(){foo();} 15894 EOF 15895 15896 libffi_cv_as_x86_64_unwind_section_type=no 15897 # we ensure that we can compile _and_ link an assembly file containing an @unwind section 15898 # since the compiler can support it and not the linker (ie old binutils) 15899 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \ 15900 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then 15901 libffi_cv_as_x86_64_unwind_section_type=yes 15902 fi 15903 15904 fi 15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5 15906 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; } 15907 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then 15908 15909 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h 15910 15911 fi 15912 fi 15913 15914 if test "x$GCC" = "xyes"; then 15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5 15916 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; } 15917 if test "${libffi_cv_ro_eh_frame+set}" = set; then : 15918 $as_echo_n "(cached) " >&6 15919 else 15920 15921 libffi_cv_ro_eh_frame=no 15922 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c 15923 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then 15924 objdump -h conftest.o > conftest.dump 2>&1 15925 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1` 15926 if test "x$libffi_eh_frame_line" != "x"; then 15927 libffi_test_line=`expr $libffi_eh_frame_line + 1`p 15928 sed -n $libffi_test_line conftest.dump > conftest.line 15929 if grep READONLY conftest.line > /dev/null; then 15930 libffi_cv_ro_eh_frame=yes 15931 fi 15932 fi 15933 fi 15934 rm -f conftest.* 15935 15936 fi 15937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5 15938 $as_echo "$libffi_cv_ro_eh_frame" >&6; } 15939 if test "x$libffi_cv_ro_eh_frame" = xyes; then 15940 15941 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h 15942 15943 15944 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h 15945 15946 else 15947 15948 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h 15949 15950 fi 15951 15952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5 15953 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; } 15954 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then : 15955 $as_echo_n "(cached) " >&6 15956 else 15957 15958 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c 15959 libffi_cv_hidden_visibility_attribute=no 15960 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5' 15961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 15962 (eval $ac_try) 2>&5 15963 ac_status=$? 15964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15965 test $ac_status = 0; }; }; then 15966 if grep '\.hidden.*foo' conftest.s >/dev/null; then 15967 libffi_cv_hidden_visibility_attribute=yes 15968 fi 15969 fi 15970 rm -f conftest.* 15971 15972 fi 15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5 15974 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; } 15975 if test $libffi_cv_hidden_visibility_attribute = yes; then 15976 15977 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h 15978 15979 fi 15980 fi 15981 15982 15983 15984 15985 15986 15987 15988 TARGET_OBJ= 15989 for i in $SOURCES; do 15990 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'` 15991 done 15992 15993 15994 15995 15996 15997 # Check whether --enable-debug was given. 15998 if test "${enable_debug+set}" = set; then : 15999 enableval=$enable_debug; if test "$enable_debug" = "yes"; then 16000 16001 $as_echo "#define FFI_DEBUG 1" >>confdefs.h 16002 16003 fi 16004 fi 16005 16006 if test "$enable_debug" = "yes"; then 16007 FFI_DEBUG_TRUE= 16008 FFI_DEBUG_FALSE='#' 16009 else 16010 FFI_DEBUG_TRUE='#' 16011 FFI_DEBUG_FALSE= 16012 fi 16013 16014 16015 # Check whether --enable-structs was given. 16016 if test "${enable_structs+set}" = set; then : 16017 enableval=$enable_structs; if test "$enable_structs" = "no"; then 16018 16019 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h 16020 16021 fi 16022 fi 16023 16024 if test "$enable_debug" = "yes"; then 16025 FFI_DEBUG_TRUE= 16026 FFI_DEBUG_FALSE='#' 16027 else 16028 FFI_DEBUG_TRUE='#' 16029 FFI_DEBUG_FALSE= 16030 fi 16031 16032 16033 # Check whether --enable-raw-api was given. 16034 if test "${enable_raw_api+set}" = set; then : 16035 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then 16036 16037 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h 16038 16039 fi 16040 fi 16041 16042 16043 # Check whether --enable-purify-safety was given. 16044 if test "${enable_purify_safety+set}" = set; then : 16045 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then 16046 16047 $as_echo "#define USING_PURIFY 1" >>confdefs.h 16048 16049 fi 16050 fi 16051 16052 16053 if test -n "$with_cross_host" && 16054 test x"$with_cross_host" != x"no"; then 16055 toolexecdir='$(exec_prefix)/$(target_alias)' 16056 toolexeclibdir='$(toolexecdir)/lib' 16057 else 16058 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 16059 toolexeclibdir='$(libdir)' 16060 fi 16061 multi_os_directory=`$CC -print-multi-os-directory` 16062 case $multi_os_directory in 16063 .) ;; # Avoid trailing /. 16064 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 16065 esac 16066 16067 16068 16069 if test "${multilib}" = "yes"; then 16070 multilib_arg="--enable-multilib" 16071 else 16072 multilib_arg= 16073 fi 16074 16075 ac_config_commands="$ac_config_commands include" 16076 16077 ac_config_commands="$ac_config_commands src" 16078 16079 16080 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h" 16081 16082 16083 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc" 16084 16085 16086 cat >confcache <<\_ACEOF 16087 # This file is a shell script that caches the results of configure 16088 # tests run on this system so they can be shared between configure 16089 # scripts and configure runs, see configure's option --config-cache. 16090 # It is not useful on other systems. If it contains results you don't 16091 # want to keep, you may remove or edit it. 16092 # 16093 # config.status only pays attention to the cache file if you give it 16094 # the --recheck option to rerun configure. 16095 # 16096 # `ac_cv_env_foo' variables (set or unset) will be overridden when 16097 # loading this file, other *unset* `ac_cv_foo' will be assigned the 16098 # following values. 16099 16100 _ACEOF 16101 16102 # The following way of writing the cache mishandles newlines in values, 16103 # but we know of no workaround that is simple, portable, and efficient. 16104 # So, we kill variables containing newlines. 16105 # Ultrix sh set writes to stderr and can't be redirected directly, 16106 # and sets the high bit in the cache file unless we assign to the vars. 16107 ( 16108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16109 eval ac_val=\$$ac_var 16110 case $ac_val in #( 16111 *${as_nl}*) 16112 case $ac_var in #( 16113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16114 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16115 esac 16116 case $ac_var in #( 16117 _ | IFS | as_nl) ;; #( 16118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16119 *) { eval $ac_var=; unset $ac_var;} ;; 16120 esac ;; 16121 esac 16122 done 16123 16124 (set) 2>&1 | 16125 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16126 *${as_nl}ac_space=\ *) 16127 # `set' does not quote correctly, so add quotes: double-quote 16128 # substitution turns \\\\ into \\, and sed turns \\ into \. 16129 sed -n \ 16130 "s/'/'\\\\''/g; 16131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16132 ;; #( 16133 *) 16134 # `set' quotes correctly as required by POSIX, so do not add quotes. 16135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16136 ;; 16137 esac | 16138 sort 16139 ) | 16140 sed ' 16141 /^ac_cv_env_/b end 16142 t clear 16143 :clear 16144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16145 t end 16146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16147 :end' >>confcache 16148 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16149 if test -w "$cache_file"; then 16150 test "x$cache_file" != "x/dev/null" && 16151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16152 $as_echo "$as_me: updating cache $cache_file" >&6;} 16153 cat confcache >$cache_file 16154 else 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16156 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16157 fi 16158 fi 16159 rm -f confcache 16160 16161 test "x$prefix" = xNONE && prefix=$ac_default_prefix 16162 # Let make expand exec_prefix. 16163 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16164 16165 DEFS=-DHAVE_CONFIG_H 16166 16167 ac_libobjs= 16168 ac_ltlibobjs= 16169 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16170 # 1. Remove the extension, and $U if already installed. 16171 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16172 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16173 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16174 # will be set to the directory where LIBOBJS objects are built. 16175 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16176 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16177 done 16178 LIBOBJS=$ac_libobjs 16179 16180 LTLIBOBJS=$ac_ltlibobjs 16181 16182 16183 if test -n "$EXEEXT"; then 16184 am__EXEEXT_TRUE= 16185 am__EXEEXT_FALSE='#' 16186 else 16187 am__EXEEXT_TRUE='#' 16188 am__EXEEXT_FALSE= 16189 fi 16190 16191 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 16192 as_fn_error "conditional \"BUILD_INFO\" was never defined. 16193 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16194 fi 16195 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 16196 as_fn_error "conditional \"GENINSRC\" was never defined. 16197 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16198 fi 16199 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16200 as_fn_error "conditional \"AMDEP\" was never defined. 16201 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16202 fi 16203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16204 as_fn_error "conditional \"am__fastdepCC\" was never defined. 16205 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16206 fi 16207 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16208 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 16209 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16210 fi 16211 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 16212 as_fn_error "conditional \"am__fastdepCCAS\" was never defined. 16213 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16214 fi 16215 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16216 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 16217 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16218 fi 16219 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then 16220 as_fn_error "conditional \"TESTSUBDIR\" was never defined. 16221 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16222 fi 16223 16224 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then 16225 as_fn_error "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined. 16226 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16227 fi 16228 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then 16229 as_fn_error "conditional \"FFI_DEBUG\" was never defined. 16230 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16231 fi 16232 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then 16233 as_fn_error "conditional \"FFI_DEBUG\" was never defined. 16234 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16235 fi 16236 16237 : ${CONFIG_STATUS=./config.status} 16238 ac_write_fail=0 16239 ac_clean_files_save=$ac_clean_files 16240 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16243 as_write_fail=0 16244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16245 #! $SHELL 16246 # Generated by $as_me. 16247 # Run this file to recreate the current configuration. 16248 # Compiler output produced by configure, useful for debugging 16249 # configure, is in config.log if it exists. 16250 16251 debug=false 16252 ac_cs_recheck=false 16253 ac_cs_silent=false 16254 16255 SHELL=\${CONFIG_SHELL-$SHELL} 16256 export SHELL 16257 _ASEOF 16258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16259 ## -------------------- ## 16260 ## M4sh Initialization. ## 16261 ## -------------------- ## 16262 16263 # Be more Bourne compatible 16264 DUALCASE=1; export DUALCASE # for MKS sh 16265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16266 emulate sh 16267 NULLCMD=: 16268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16269 # is contrary to our usage. Disable this feature. 16270 alias -g '${1+"$@"}'='"$@"' 16271 setopt NO_GLOB_SUBST 16272 else 16273 case `(set -o) 2>/dev/null` in #( 16274 *posix*) : 16275 set -o posix ;; #( 16276 *) : 16277 ;; 16278 esac 16279 fi 16280 16281 16282 as_nl=' 16283 ' 16284 export as_nl 16285 # Printing a long string crashes Solaris 7 /usr/bin/printf. 16286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16289 # Prefer a ksh shell builtin over an external printf program on Solaris, 16290 # but without wasting forks for bash or zsh. 16291 if test -z "$BASH_VERSION$ZSH_VERSION" \ 16292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16293 as_echo='print -r --' 16294 as_echo_n='print -rn --' 16295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16296 as_echo='printf %s\n' 16297 as_echo_n='printf %s' 16298 else 16299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16301 as_echo_n='/usr/ucb/echo -n' 16302 else 16303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16304 as_echo_n_body='eval 16305 arg=$1; 16306 case $arg in #( 16307 *"$as_nl"*) 16308 expr "X$arg" : "X\\(.*\\)$as_nl"; 16309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16310 esac; 16311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16312 ' 16313 export as_echo_n_body 16314 as_echo_n='sh -c $as_echo_n_body as_echo' 16315 fi 16316 export as_echo_body 16317 as_echo='sh -c $as_echo_body as_echo' 16318 fi 16319 16320 # The user is always right. 16321 if test "${PATH_SEPARATOR+set}" != set; then 16322 PATH_SEPARATOR=: 16323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16324 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16325 PATH_SEPARATOR=';' 16326 } 16327 fi 16328 16329 16330 # IFS 16331 # We need space, tab and new line, in precisely that order. Quoting is 16332 # there to prevent editors from complaining about space-tab. 16333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 16334 # splitting by setting IFS to empty value.) 16335 IFS=" "" $as_nl" 16336 16337 # Find who we are. Look in the path if we contain no directory separator. 16338 case $0 in #(( 16339 *[\\/]* ) as_myself=$0 ;; 16340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16341 for as_dir in $PATH 16342 do 16343 IFS=$as_save_IFS 16344 test -z "$as_dir" && as_dir=. 16345 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16346 done 16347 IFS=$as_save_IFS 16348 16349 ;; 16350 esac 16351 # We did not find ourselves, most probably we were run as `sh COMMAND' 16352 # in which case we are not to be found in the path. 16353 if test "x$as_myself" = x; then 16354 as_myself=$0 16355 fi 16356 if test ! -f "$as_myself"; then 16357 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16358 exit 1 16359 fi 16360 16361 # Unset variables that we do not need and which cause bugs (e.g. in 16362 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16363 # suppresses any "Segmentation fault" message there. '((' could 16364 # trigger a bug in pdksh 5.2.14. 16365 for as_var in BASH_ENV ENV MAIL MAILPATH 16366 do eval test x\${$as_var+set} = xset \ 16367 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16368 done 16369 PS1='$ ' 16370 PS2='> ' 16371 PS4='+ ' 16372 16373 # NLS nuisances. 16374 LC_ALL=C 16375 export LC_ALL 16376 LANGUAGE=C 16377 export LANGUAGE 16378 16379 # CDPATH. 16380 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16381 16382 16383 # as_fn_error ERROR [LINENO LOG_FD] 16384 # --------------------------------- 16385 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16386 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16387 # script with status $?, using 1 if that was 0. 16388 as_fn_error () 16389 { 16390 as_status=$?; test $as_status -eq 0 && as_status=1 16391 if test "$3"; then 16392 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16393 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 16394 fi 16395 $as_echo "$as_me: error: $1" >&2 16396 as_fn_exit $as_status 16397 } # as_fn_error 16398 16399 16400 # as_fn_set_status STATUS 16401 # ----------------------- 16402 # Set $? to STATUS, without forking. 16403 as_fn_set_status () 16404 { 16405 return $1 16406 } # as_fn_set_status 16407 16408 # as_fn_exit STATUS 16409 # ----------------- 16410 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16411 as_fn_exit () 16412 { 16413 set +e 16414 as_fn_set_status $1 16415 exit $1 16416 } # as_fn_exit 16417 16418 # as_fn_unset VAR 16419 # --------------- 16420 # Portably unset VAR. 16421 as_fn_unset () 16422 { 16423 { eval $1=; unset $1;} 16424 } 16425 as_unset=as_fn_unset 16426 # as_fn_append VAR VALUE 16427 # ---------------------- 16428 # Append the text in VALUE to the end of the definition contained in VAR. Take 16429 # advantage of any shell optimizations that allow amortized linear growth over 16430 # repeated appends, instead of the typical quadratic growth present in naive 16431 # implementations. 16432 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16433 eval 'as_fn_append () 16434 { 16435 eval $1+=\$2 16436 }' 16437 else 16438 as_fn_append () 16439 { 16440 eval $1=\$$1\$2 16441 } 16442 fi # as_fn_append 16443 16444 # as_fn_arith ARG... 16445 # ------------------ 16446 # Perform arithmetic evaluation on the ARGs, and store the result in the 16447 # global $as_val. Take advantage of shells that can avoid forks. The arguments 16448 # must be portable across $(()) and expr. 16449 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16450 eval 'as_fn_arith () 16451 { 16452 as_val=$(( $* )) 16453 }' 16454 else 16455 as_fn_arith () 16456 { 16457 as_val=`expr "$@" || test $? -eq 1` 16458 } 16459 fi # as_fn_arith 16460 16461 16462 if expr a : '\(a\)' >/dev/null 2>&1 && 16463 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16464 as_expr=expr 16465 else 16466 as_expr=false 16467 fi 16468 16469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16470 as_basename=basename 16471 else 16472 as_basename=false 16473 fi 16474 16475 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16476 as_dirname=dirname 16477 else 16478 as_dirname=false 16479 fi 16480 16481 as_me=`$as_basename -- "$0" || 16482 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16483 X"$0" : 'X\(//\)$' \| \ 16484 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16485 $as_echo X/"$0" | 16486 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16487 s//\1/ 16488 q 16489 } 16490 /^X\/\(\/\/\)$/{ 16491 s//\1/ 16492 q 16493 } 16494 /^X\/\(\/\).*/{ 16495 s//\1/ 16496 q 16497 } 16498 s/.*/./; q'` 16499 16500 # Avoid depending upon Character Ranges. 16501 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16504 as_cr_digits='0123456789' 16505 as_cr_alnum=$as_cr_Letters$as_cr_digits 16506 16507 ECHO_C= ECHO_N= ECHO_T= 16508 case `echo -n x` in #((((( 16509 -n*) 16510 case `echo 'xy\c'` in 16511 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16512 xy) ECHO_C='\c';; 16513 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16514 ECHO_T=' ';; 16515 esac;; 16516 *) 16517 ECHO_N='-n';; 16518 esac 16519 16520 rm -f conf$$ conf$$.exe conf$$.file 16521 if test -d conf$$.dir; then 16522 rm -f conf$$.dir/conf$$.file 16523 else 16524 rm -f conf$$.dir 16525 mkdir conf$$.dir 2>/dev/null 16526 fi 16527 if (echo >conf$$.file) 2>/dev/null; then 16528 if ln -s conf$$.file conf$$ 2>/dev/null; then 16529 as_ln_s='ln -s' 16530 # ... but there are two gotchas: 16531 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16532 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16533 # In both cases, we have to default to `cp -p'. 16534 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16535 as_ln_s='cp -p' 16536 elif ln conf$$.file conf$$ 2>/dev/null; then 16537 as_ln_s=ln 16538 else 16539 as_ln_s='cp -p' 16540 fi 16541 else 16542 as_ln_s='cp -p' 16543 fi 16544 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16545 rmdir conf$$.dir 2>/dev/null 16546 16547 16548 # as_fn_mkdir_p 16549 # ------------- 16550 # Create "$as_dir" as a directory, including parents if necessary. 16551 as_fn_mkdir_p () 16552 { 16553 16554 case $as_dir in #( 16555 -*) as_dir=./$as_dir;; 16556 esac 16557 test -d "$as_dir" || eval $as_mkdir_p || { 16558 as_dirs= 16559 while :; do 16560 case $as_dir in #( 16561 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16562 *) as_qdir=$as_dir;; 16563 esac 16564 as_dirs="'$as_qdir' $as_dirs" 16565 as_dir=`$as_dirname -- "$as_dir" || 16566 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16567 X"$as_dir" : 'X\(//\)[^/]' \| \ 16568 X"$as_dir" : 'X\(//\)$' \| \ 16569 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16570 $as_echo X"$as_dir" | 16571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16572 s//\1/ 16573 q 16574 } 16575 /^X\(\/\/\)[^/].*/{ 16576 s//\1/ 16577 q 16578 } 16579 /^X\(\/\/\)$/{ 16580 s//\1/ 16581 q 16582 } 16583 /^X\(\/\).*/{ 16584 s//\1/ 16585 q 16586 } 16587 s/.*/./; q'` 16588 test -d "$as_dir" && break 16589 done 16590 test -z "$as_dirs" || eval "mkdir $as_dirs" 16591 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 16592 16593 16594 } # as_fn_mkdir_p 16595 if mkdir -p . 2>/dev/null; then 16596 as_mkdir_p='mkdir -p "$as_dir"' 16597 else 16598 test -d ./-p && rmdir ./-p 16599 as_mkdir_p=false 16600 fi 16601 16602 if test -x / >/dev/null 2>&1; then 16603 as_test_x='test -x' 16604 else 16605 if ls -dL / >/dev/null 2>&1; then 16606 as_ls_L_option=L 16607 else 16608 as_ls_L_option= 16609 fi 16610 as_test_x=' 16611 eval sh -c '\'' 16612 if test -d "$1"; then 16613 test -d "$1/."; 16614 else 16615 case $1 in #( 16616 -*)set "./$1";; 16617 esac; 16618 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 16619 ???[sx]*):;;*)false;;esac;fi 16620 '\'' sh 16621 ' 16622 fi 16623 as_executable_p=$as_test_x 16624 16625 # Sed expression to map a string onto a valid CPP name. 16626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16627 16628 # Sed expression to map a string onto a valid variable name. 16629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16630 16631 16632 exec 6>&1 16633 ## ----------------------------------- ## 16634 ## Main body of $CONFIG_STATUS script. ## 16635 ## ----------------------------------- ## 16636 _ASEOF 16637 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16638 16639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16640 # Save the log message, to keep $0 and so on meaningful, and to 16641 # report actual input values of CONFIG_FILES etc. instead of their 16642 # values after options handling. 16643 ac_log=" 16644 This file was extended by libffi $as_me 3.99999, which was 16645 generated by GNU Autoconf 2.64. Invocation command line was 16646 16647 CONFIG_FILES = $CONFIG_FILES 16648 CONFIG_HEADERS = $CONFIG_HEADERS 16649 CONFIG_LINKS = $CONFIG_LINKS 16650 CONFIG_COMMANDS = $CONFIG_COMMANDS 16651 $ $0 $@ 16652 16653 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16654 " 16655 16656 _ACEOF 16657 16658 case $ac_config_files in *" 16659 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16660 esac 16661 16662 case $ac_config_headers in *" 16663 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16664 esac 16665 16666 16667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16668 # Files that config.status was made for. 16669 config_files="$ac_config_files" 16670 config_headers="$ac_config_headers" 16671 config_links="$ac_config_links" 16672 config_commands="$ac_config_commands" 16673 16674 _ACEOF 16675 16676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16677 ac_cs_usage="\ 16678 \`$as_me' instantiates files and other configuration actions 16679 from templates according to the current configuration. Unless the files 16680 and actions are specified as TAGs, all are instantiated by default. 16681 16682 Usage: $0 [OPTION]... [TAG]... 16683 16684 -h, --help print this help, then exit 16685 -V, --version print version number and configuration settings, then exit 16686 -q, --quiet, --silent 16687 do not print progress messages 16688 -d, --debug don't remove temporary files 16689 --recheck update $as_me by reconfiguring in the same conditions 16690 --file=FILE[:TEMPLATE] 16691 instantiate the configuration file FILE 16692 --header=FILE[:TEMPLATE] 16693 instantiate the configuration header FILE 16694 16695 Configuration files: 16696 $config_files 16697 16698 Configuration headers: 16699 $config_headers 16700 16701 Configuration links: 16702 $config_links 16703 16704 Configuration commands: 16705 $config_commands 16706 16707 Report bugs to <http://github.com/atgreen/libffi/issues>." 16708 16709 _ACEOF 16710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16711 ac_cs_version="\\ 16712 libffi config.status 3.99999 16713 configured by $0, generated by GNU Autoconf 2.64, 16714 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 16715 16716 Copyright (C) 2009 Free Software Foundation, Inc. 16717 This config.status script is free software; the Free Software Foundation 16718 gives unlimited permission to copy, distribute and modify it." 16719 16720 ac_pwd='$ac_pwd' 16721 srcdir='$srcdir' 16722 INSTALL='$INSTALL' 16723 MKDIR_P='$MKDIR_P' 16724 AWK='$AWK' 16725 test -n "\$AWK" || AWK=awk 16726 _ACEOF 16727 16728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16729 # The default lists apply if the user does not specify any file. 16730 ac_need_defaults=: 16731 while test $# != 0 16732 do 16733 case $1 in 16734 --*=*) 16735 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16736 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16737 ac_shift=: 16738 ;; 16739 *) 16740 ac_option=$1 16741 ac_optarg=$2 16742 ac_shift=shift 16743 ;; 16744 esac 16745 16746 case $ac_option in 16747 # Handling of the options. 16748 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16749 ac_cs_recheck=: ;; 16750 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16751 $as_echo "$ac_cs_version"; exit ;; 16752 --debug | --debu | --deb | --de | --d | -d ) 16753 debug=: ;; 16754 --file | --fil | --fi | --f ) 16755 $ac_shift 16756 case $ac_optarg in 16757 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16758 esac 16759 as_fn_append CONFIG_FILES " '$ac_optarg'" 16760 ac_need_defaults=false;; 16761 --header | --heade | --head | --hea ) 16762 $ac_shift 16763 case $ac_optarg in 16764 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16765 esac 16766 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16767 ac_need_defaults=false;; 16768 --he | --h) 16769 # Conflict between --help and --header 16770 as_fn_error "ambiguous option: \`$1' 16771 Try \`$0 --help' for more information.";; 16772 --help | --hel | -h ) 16773 $as_echo "$ac_cs_usage"; exit ;; 16774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16775 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16776 ac_cs_silent=: ;; 16777 16778 # This is an error. 16779 -*) as_fn_error "unrecognized option: \`$1' 16780 Try \`$0 --help' for more information." ;; 16781 16782 *) as_fn_append ac_config_targets " $1" 16783 ac_need_defaults=false ;; 16784 16785 esac 16786 shift 16787 done 16788 16789 ac_configure_extra_args= 16790 16791 if $ac_cs_silent; then 16792 exec 6>/dev/null 16793 ac_configure_extra_args="$ac_configure_extra_args --silent" 16794 fi 16795 16796 _ACEOF 16797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16798 if \$ac_cs_recheck; then 16799 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16800 shift 16801 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16802 CONFIG_SHELL='$SHELL' 16803 export CONFIG_SHELL 16804 exec "\$@" 16805 fi 16806 16807 _ACEOF 16808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16809 exec 5>>config.log 16810 { 16811 echo 16812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16813 ## Running $as_me. ## 16814 _ASBOX 16815 $as_echo "$ac_log" 16816 } >&5 16817 16818 _ACEOF 16819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16820 # 16821 # INIT-COMMANDS 16822 # 16823 16824 srcdir="$srcdir" 16825 host="$host" 16826 target="$target" 16827 with_multisubdir="$with_multisubdir" 16828 with_multisrctop="$with_multisrctop" 16829 with_target_subdir="$with_target_subdir" 16830 ac_configure_args="${multilib_arg} ${ac_configure_args}" 16831 multi_basedir="$multi_basedir" 16832 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 16833 CC="$CC" 16834 CXX="$CXX" 16835 GFORTRAN="$GFORTRAN" 16836 GCJ="$GCJ" 16837 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16838 16839 16840 # The HP-UX ksh and POSIX shell print the target directory to stdout 16841 # if CDPATH is set. 16842 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16843 16844 sed_quote_subst='$sed_quote_subst' 16845 double_quote_subst='$double_quote_subst' 16846 delay_variable_subst='$delay_variable_subst' 16847 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16848 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16849 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16850 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16851 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16852 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16853 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16854 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16855 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16856 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16857 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16858 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16859 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16860 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16861 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16862 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16863 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16864 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16865 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16866 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16867 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16868 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16869 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16870 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16871 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16872 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16873 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16874 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16875 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16876 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16877 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16878 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16879 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16880 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16881 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16882 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16883 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16884 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16885 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16886 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16887 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16888 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16889 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16890 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16891 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16892 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16893 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16894 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16895 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 16896 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16897 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16898 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16899 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16900 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16901 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16902 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16903 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16904 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16905 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16906 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16907 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16908 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16909 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16910 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16911 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16912 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16913 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16914 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16915 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16916 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16917 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16918 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16919 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16920 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16921 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16922 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16923 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16924 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16925 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16926 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16927 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16928 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16929 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16930 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16931 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16932 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16933 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16934 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16935 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16936 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16937 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16938 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16939 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16940 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16941 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16942 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16943 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16944 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16945 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16946 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16947 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16948 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16949 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16950 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16951 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16952 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16953 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16954 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16955 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16956 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16957 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16958 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16959 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16960 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16961 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16962 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16963 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16964 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16965 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16966 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16967 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16968 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16969 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16970 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16971 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16972 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16973 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16974 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16975 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16976 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16977 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16978 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16979 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16980 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16981 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16982 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16983 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16984 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16985 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16986 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16987 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16988 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16989 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16990 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16991 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16992 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16993 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16994 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16995 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16996 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16997 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16998 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16999 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 17000 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17001 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17002 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17003 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17004 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17005 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17006 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17007 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17008 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 17009 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17010 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17011 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17012 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17013 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17014 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17015 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17016 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17017 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17018 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17019 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17020 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17021 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17022 17023 LTCC='$LTCC' 17024 LTCFLAGS='$LTCFLAGS' 17025 compiler='$compiler_DEFAULT' 17026 17027 # A function that is used when there is no print builtin or printf. 17028 func_fallback_echo () 17029 { 17030 eval 'cat <<_LTECHO_EOF 17031 \$1 17032 _LTECHO_EOF' 17033 } 17034 17035 # Quote evaled strings. 17036 for var in SHELL \ 17037 ECHO \ 17038 SED \ 17039 GREP \ 17040 EGREP \ 17041 FGREP \ 17042 LD \ 17043 NM \ 17044 LN_S \ 17045 lt_SP2NL \ 17046 lt_NL2SP \ 17047 reload_flag \ 17048 OBJDUMP \ 17049 deplibs_check_method \ 17050 file_magic_cmd \ 17051 AR \ 17052 AR_FLAGS \ 17053 STRIP \ 17054 RANLIB \ 17055 CC \ 17056 CFLAGS \ 17057 compiler \ 17058 lt_cv_sys_global_symbol_pipe \ 17059 lt_cv_sys_global_symbol_to_cdecl \ 17060 lt_cv_sys_global_symbol_to_c_name_address \ 17061 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17062 lt_prog_compiler_no_builtin_flag \ 17063 lt_prog_compiler_wl \ 17064 lt_prog_compiler_pic \ 17065 lt_prog_compiler_static \ 17066 lt_cv_prog_compiler_c_o \ 17067 need_locks \ 17068 DSYMUTIL \ 17069 NMEDIT \ 17070 LIPO \ 17071 OTOOL \ 17072 OTOOL64 \ 17073 shrext_cmds \ 17074 export_dynamic_flag_spec \ 17075 whole_archive_flag_spec \ 17076 compiler_needs_object \ 17077 with_gnu_ld \ 17078 allow_undefined_flag \ 17079 no_undefined_flag \ 17080 hardcode_libdir_flag_spec \ 17081 hardcode_libdir_flag_spec_ld \ 17082 hardcode_libdir_separator \ 17083 fix_srcfile_path \ 17084 exclude_expsyms \ 17085 include_expsyms \ 17086 file_list_spec \ 17087 variables_saved_for_relink \ 17088 libname_spec \ 17089 library_names_spec \ 17090 soname_spec \ 17091 install_override_mode \ 17092 finish_eval \ 17093 old_striplib \ 17094 striplib \ 17095 compiler_lib_search_dirs \ 17096 predep_objects \ 17097 postdep_objects \ 17098 predeps \ 17099 postdeps \ 17100 compiler_lib_search_path \ 17101 LD_CXX \ 17102 reload_flag_CXX \ 17103 compiler_CXX \ 17104 lt_prog_compiler_no_builtin_flag_CXX \ 17105 lt_prog_compiler_wl_CXX \ 17106 lt_prog_compiler_pic_CXX \ 17107 lt_prog_compiler_static_CXX \ 17108 lt_cv_prog_compiler_c_o_CXX \ 17109 export_dynamic_flag_spec_CXX \ 17110 whole_archive_flag_spec_CXX \ 17111 compiler_needs_object_CXX \ 17112 with_gnu_ld_CXX \ 17113 allow_undefined_flag_CXX \ 17114 no_undefined_flag_CXX \ 17115 hardcode_libdir_flag_spec_CXX \ 17116 hardcode_libdir_flag_spec_ld_CXX \ 17117 hardcode_libdir_separator_CXX \ 17118 fix_srcfile_path_CXX \ 17119 exclude_expsyms_CXX \ 17120 include_expsyms_CXX \ 17121 file_list_spec_CXX \ 17122 compiler_lib_search_dirs_CXX \ 17123 predep_objects_CXX \ 17124 postdep_objects_CXX \ 17125 predeps_CXX \ 17126 postdeps_CXX \ 17127 compiler_lib_search_path_CXX; do 17128 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17129 *[\\\\\\\`\\"\\\$]*) 17130 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17131 ;; 17132 *) 17133 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17134 ;; 17135 esac 17136 done 17137 17138 # Double-quote double-evaled strings. 17139 for var in reload_cmds \ 17140 old_postinstall_cmds \ 17141 old_postuninstall_cmds \ 17142 old_archive_cmds \ 17143 extract_expsyms_cmds \ 17144 old_archive_from_new_cmds \ 17145 old_archive_from_expsyms_cmds \ 17146 archive_cmds \ 17147 archive_expsym_cmds \ 17148 module_cmds \ 17149 module_expsym_cmds \ 17150 export_symbols_cmds \ 17151 prelink_cmds \ 17152 postinstall_cmds \ 17153 postuninstall_cmds \ 17154 finish_cmds \ 17155 sys_lib_search_path_spec \ 17156 sys_lib_dlsearch_path_spec \ 17157 reload_cmds_CXX \ 17158 old_archive_cmds_CXX \ 17159 old_archive_from_new_cmds_CXX \ 17160 old_archive_from_expsyms_cmds_CXX \ 17161 archive_cmds_CXX \ 17162 archive_expsym_cmds_CXX \ 17163 module_cmds_CXX \ 17164 module_expsym_cmds_CXX \ 17165 export_symbols_cmds_CXX \ 17166 prelink_cmds_CXX; do 17167 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17168 *[\\\\\\\`\\"\\\$]*) 17169 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 17170 ;; 17171 *) 17172 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17173 ;; 17174 esac 17175 done 17176 17177 ac_aux_dir='$ac_aux_dir' 17178 xsi_shell='$xsi_shell' 17179 lt_shell_append='$lt_shell_append' 17180 17181 # See if we are running on zsh, and set the options which allow our 17182 # commands through without removal of \ escapes INIT. 17183 if test -n "\${ZSH_VERSION+set}" ; then 17184 setopt NO_GLOB_SUBST 17185 fi 17186 17187 17188 PACKAGE='$PACKAGE' 17189 VERSION='$VERSION' 17190 TIMESTAMP='$TIMESTAMP' 17191 RM='$RM' 17192 ofile='$ofile' 17193 17194 17195 17196 17197 17198 TARGETDIR="$TARGETDIR" 17199 17200 _ACEOF 17201 17202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17203 17204 # Handling of arguments. 17205 for ac_config_target in $ac_config_targets 17206 do 17207 case $ac_config_target in 17208 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;; 17209 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 17210 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17211 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17212 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;; 17213 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;; 17214 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;; 17215 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 17216 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;; 17217 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17218 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 17219 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 17220 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;; 17221 17222 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17223 esac 17224 done 17225 17226 17227 # If the user did not use the arguments to specify the items to instantiate, 17228 # then the envvar interface is used. Set only those that are not. 17229 # We use the long form for the default assignment because of an extremely 17230 # bizarre bug on SunOS 4.1.3. 17231 if $ac_need_defaults; then 17232 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17233 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17234 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 17235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17236 fi 17237 17238 # Have a temporary directory for convenience. Make it in the build tree 17239 # simply because there is no reason against having it here, and in addition, 17240 # creating and moving files from /tmp can sometimes cause problems. 17241 # Hook for its removal unless debugging. 17242 # Note that there is a small window in which the directory will not be cleaned: 17243 # after its creation but before its name has been assigned to `$tmp'. 17244 $debug || 17245 { 17246 tmp= 17247 trap 'exit_status=$? 17248 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 17249 ' 0 17250 trap 'as_fn_exit 1' 1 2 13 15 17251 } 17252 # Create a (secure) tmp directory for tmp files. 17253 17254 { 17255 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17256 test -n "$tmp" && test -d "$tmp" 17257 } || 17258 { 17259 tmp=./conf$$-$RANDOM 17260 (umask 077 && mkdir "$tmp") 17261 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 17262 17263 # Set up the scripts for CONFIG_FILES section. 17264 # No need to generate them if there are no CONFIG_FILES. 17265 # This happens for instance with `./config.status config.h'. 17266 if test -n "$CONFIG_FILES"; then 17267 17268 17269 ac_cr=`echo X | tr X '\015'` 17270 # On cygwin, bash can eat \r inside `` if the user requested igncr. 17271 # But we know of no other shell where ac_cr would be empty at this 17272 # point, so we can use a bashism as a fallback. 17273 if test "x$ac_cr" = x; then 17274 eval ac_cr=\$\'\\r\' 17275 fi 17276 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17277 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17278 ac_cs_awk_cr='\r' 17279 else 17280 ac_cs_awk_cr=$ac_cr 17281 fi 17282 17283 echo 'BEGIN {' >"$tmp/subs1.awk" && 17284 _ACEOF 17285 17286 17287 { 17288 echo "cat >conf$$subs.awk <<_ACEOF" && 17289 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17290 echo "_ACEOF" 17291 } >conf$$subs.sh || 17292 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 17293 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 17294 ac_delim='%!_!# ' 17295 for ac_last_try in false false false false false :; do 17296 . ./conf$$subs.sh || 17297 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 17298 17299 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17300 if test $ac_delim_n = $ac_delim_num; then 17301 break 17302 elif $ac_last_try; then 17303 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 17304 else 17305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17306 fi 17307 done 17308 rm -f conf$$subs.sh 17309 17310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17311 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 17312 _ACEOF 17313 sed -n ' 17314 h 17315 s/^/S["/; s/!.*/"]=/ 17316 p 17317 g 17318 s/^[^!]*!// 17319 :repl 17320 t repl 17321 s/'"$ac_delim"'$// 17322 t delim 17323 :nl 17324 h 17325 s/\(.\{148\}\).*/\1/ 17326 t more1 17327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17328 p 17329 n 17330 b repl 17331 :more1 17332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17333 p 17334 g 17335 s/.\{148\}// 17336 t nl 17337 :delim 17338 h 17339 s/\(.\{148\}\).*/\1/ 17340 t more2 17341 s/["\\]/\\&/g; s/^/"/; s/$/"/ 17342 p 17343 b 17344 :more2 17345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17346 p 17347 g 17348 s/.\{148\}// 17349 t delim 17350 ' <conf$$subs.awk | sed ' 17351 /^[^""]/{ 17352 N 17353 s/\n// 17354 } 17355 ' >>$CONFIG_STATUS || ac_write_fail=1 17356 rm -f conf$$subs.awk 17357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17358 _ACAWK 17359 cat >>"\$tmp/subs1.awk" <<_ACAWK && 17360 for (key in S) S_is_set[key] = 1 17361 FS = "" 17362 17363 } 17364 { 17365 line = $ 0 17366 nfields = split(line, field, "@") 17367 substed = 0 17368 len = length(field[1]) 17369 for (i = 2; i < nfields; i++) { 17370 key = field[i] 17371 keylen = length(key) 17372 if (S_is_set[key]) { 17373 value = S[key] 17374 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17375 len += length(value) + length(field[++i]) 17376 substed = 1 17377 } else 17378 len += 1 + keylen 17379 } 17380 17381 print line 17382 } 17383 17384 _ACAWK 17385 _ACEOF 17386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17389 else 17390 cat 17391 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 17392 || as_fn_error "could not setup config files machinery" "$LINENO" 5 17393 _ACEOF 17394 17395 # VPATH may cause trouble with some makes, so we remove $(srcdir), 17396 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 17397 # trailing colons and then remove the whole line if VPATH becomes empty 17398 # (actually we leave an empty line to preserve line numbers). 17399 if test "x$srcdir" = x.; then 17400 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 17401 s/:*\$(srcdir):*/:/ 17402 s/:*\${srcdir}:*/:/ 17403 s/:*@srcdir@:*/:/ 17404 s/^\([^=]*=[ ]*\):*/\1/ 17405 s/:*$// 17406 s/^[^=]*=[ ]*$// 17407 }' 17408 fi 17409 17410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17411 fi # test -n "$CONFIG_FILES" 17412 17413 # Set up the scripts for CONFIG_HEADERS section. 17414 # No need to generate them if there are no CONFIG_HEADERS. 17415 # This happens for instance with `./config.status Makefile'. 17416 if test -n "$CONFIG_HEADERS"; then 17417 cat >"$tmp/defines.awk" <<\_ACAWK || 17418 BEGIN { 17419 _ACEOF 17420 17421 # Transform confdefs.h into an awk script `defines.awk', embedded as 17422 # here-document in config.status, that substitutes the proper values into 17423 # config.h.in to produce config.h. 17424 17425 # Create a delimiter string that does not exist in confdefs.h, to ease 17426 # handling of long lines. 17427 ac_delim='%!_!# ' 17428 for ac_last_try in false false :; do 17429 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 17430 if test -z "$ac_t"; then 17431 break 17432 elif $ac_last_try; then 17433 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 17434 else 17435 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17436 fi 17437 done 17438 17439 # For the awk script, D is an array of macro values keyed by name, 17440 # likewise P contains macro parameters if any. Preserve backslash 17441 # newline sequences. 17442 17443 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17444 sed -n ' 17445 s/.\{148\}/&'"$ac_delim"'/g 17446 t rset 17447 :rset 17448 s/^[ ]*#[ ]*define[ ][ ]*/ / 17449 t def 17450 d 17451 :def 17452 s/\\$// 17453 t bsnl 17454 s/["\\]/\\&/g 17455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17456 D["\1"]=" \3"/p 17457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17458 d 17459 :bsnl 17460 s/["\\]/\\&/g 17461 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17462 D["\1"]=" \3\\\\\\n"\\/p 17463 t cont 17464 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17465 t cont 17466 d 17467 :cont 17468 n 17469 s/.\{148\}/&'"$ac_delim"'/g 17470 t clear 17471 :clear 17472 s/\\$// 17473 t bsnlc 17474 s/["\\]/\\&/g; s/^/"/; s/$/"/p 17475 d 17476 :bsnlc 17477 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17478 b cont 17479 ' <confdefs.h | sed ' 17480 s/'"$ac_delim"'/"\\\ 17481 "/g' >>$CONFIG_STATUS || ac_write_fail=1 17482 17483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17484 for (key in D) D_is_set[key] = 1 17485 FS = "" 17486 } 17487 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17488 line = \$ 0 17489 split(line, arg, " ") 17490 if (arg[1] == "#") { 17491 defundef = arg[2] 17492 mac1 = arg[3] 17493 } else { 17494 defundef = substr(arg[1], 2) 17495 mac1 = arg[2] 17496 } 17497 split(mac1, mac2, "(") #) 17498 macro = mac2[1] 17499 prefix = substr(line, 1, index(line, defundef) - 1) 17500 if (D_is_set[macro]) { 17501 # Preserve the white space surrounding the "#". 17502 print prefix "define", macro P[macro] D[macro] 17503 next 17504 } else { 17505 # Replace #undef with comments. This is necessary, for example, 17506 # in the case of _POSIX_SOURCE, which is predefined and required 17507 # on some systems where configure will not decide to define it. 17508 if (defundef == "undef") { 17509 print "/*", prefix defundef, macro, "*/" 17510 next 17511 } 17512 } 17513 } 17514 { print } 17515 _ACAWK 17516 _ACEOF 17517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17518 as_fn_error "could not setup config headers machinery" "$LINENO" 5 17519 fi # test -n "$CONFIG_HEADERS" 17520 17521 17522 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 17523 shift 17524 for ac_tag 17525 do 17526 case $ac_tag in 17527 :[FHLC]) ac_mode=$ac_tag; continue;; 17528 esac 17529 case $ac_mode$ac_tag in 17530 :[FHL]*:*);; 17531 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 17532 :[FH]-) ac_tag=-:-;; 17533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17534 esac 17535 ac_save_IFS=$IFS 17536 IFS=: 17537 set x $ac_tag 17538 IFS=$ac_save_IFS 17539 shift 17540 ac_file=$1 17541 shift 17542 17543 case $ac_mode in 17544 :L) ac_source=$1;; 17545 :[FH]) 17546 ac_file_inputs= 17547 for ac_f 17548 do 17549 case $ac_f in 17550 -) ac_f="$tmp/stdin";; 17551 *) # Look for the file first in the build tree, then in the source tree 17552 # (if the path is not absolute). The absolute path cannot be DOS-style, 17553 # because $ac_f cannot contain `:'. 17554 test -f "$ac_f" || 17555 case $ac_f in 17556 [\\/$]*) false;; 17557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17558 esac || 17559 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17560 esac 17561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17562 as_fn_append ac_file_inputs " '$ac_f'" 17563 done 17564 17565 # Let's still pretend it is `configure' which instantiates (i.e., don't 17566 # use $as_me), people would be surprised to read: 17567 # /* config.h. Generated by config.status. */ 17568 configure_input='Generated from '` 17569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17570 `' by configure.' 17571 if test x"$ac_file" != x-; then 17572 configure_input="$ac_file. $configure_input" 17573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17574 $as_echo "$as_me: creating $ac_file" >&6;} 17575 fi 17576 # Neutralize special characters interpreted by sed in replacement strings. 17577 case $configure_input in #( 17578 *\&* | *\|* | *\\* ) 17579 ac_sed_conf_input=`$as_echo "$configure_input" | 17580 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17581 *) ac_sed_conf_input=$configure_input;; 17582 esac 17583 17584 case $ac_tag in 17585 *:-:* | *:-) cat >"$tmp/stdin" \ 17586 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 17587 esac 17588 ;; 17589 esac 17590 17591 ac_dir=`$as_dirname -- "$ac_file" || 17592 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17593 X"$ac_file" : 'X\(//\)[^/]' \| \ 17594 X"$ac_file" : 'X\(//\)$' \| \ 17595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17596 $as_echo X"$ac_file" | 17597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17598 s//\1/ 17599 q 17600 } 17601 /^X\(\/\/\)[^/].*/{ 17602 s//\1/ 17603 q 17604 } 17605 /^X\(\/\/\)$/{ 17606 s//\1/ 17607 q 17608 } 17609 /^X\(\/\).*/{ 17610 s//\1/ 17611 q 17612 } 17613 s/.*/./; q'` 17614 as_dir="$ac_dir"; as_fn_mkdir_p 17615 ac_builddir=. 17616 17617 case "$ac_dir" in 17618 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17619 *) 17620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17621 # A ".." for each directory in $ac_dir_suffix. 17622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17623 case $ac_top_builddir_sub in 17624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17626 esac ;; 17627 esac 17628 ac_abs_top_builddir=$ac_pwd 17629 ac_abs_builddir=$ac_pwd$ac_dir_suffix 17630 # for backward compatibility: 17631 ac_top_builddir=$ac_top_build_prefix 17632 17633 case $srcdir in 17634 .) # We are building in place. 17635 ac_srcdir=. 17636 ac_top_srcdir=$ac_top_builddir_sub 17637 ac_abs_top_srcdir=$ac_pwd ;; 17638 [\\/]* | ?:[\\/]* ) # Absolute name. 17639 ac_srcdir=$srcdir$ac_dir_suffix; 17640 ac_top_srcdir=$srcdir 17641 ac_abs_top_srcdir=$srcdir ;; 17642 *) # Relative name. 17643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17644 ac_top_srcdir=$ac_top_build_prefix$srcdir 17645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17646 esac 17647 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17648 17649 17650 case $ac_mode in 17651 :F) 17652 # 17653 # CONFIG_FILE 17654 # 17655 17656 case $INSTALL in 17657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17659 esac 17660 ac_MKDIR_P=$MKDIR_P 17661 case $MKDIR_P in 17662 [\\/$]* | ?:[\\/]* ) ;; 17663 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17664 esac 17665 _ACEOF 17666 17667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17668 # If the template does not know about datarootdir, expand it. 17669 # FIXME: This hack should be removed a few years after 2.60. 17670 ac_datarootdir_hack=; ac_datarootdir_seen= 17671 ac_sed_dataroot=' 17672 /datarootdir/ { 17673 p 17674 q 17675 } 17676 /@datadir@/p 17677 /@docdir@/p 17678 /@infodir@/p 17679 /@localedir@/p 17680 /@mandir@/p' 17681 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17682 *datarootdir*) ac_datarootdir_seen=yes;; 17683 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17685 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17686 _ACEOF 17687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17688 ac_datarootdir_hack=' 17689 s&@datadir@&$datadir&g 17690 s&@docdir@&$docdir&g 17691 s&@infodir@&$infodir&g 17692 s&@localedir@&$localedir&g 17693 s&@mandir@&$mandir&g 17694 s&\\\${datarootdir}&$datarootdir&g' ;; 17695 esac 17696 _ACEOF 17697 17698 # Neutralize VPATH when `$srcdir' = `.'. 17699 # Shell code in configure.ac might set extrasub. 17700 # FIXME: do we really want to maintain this feature? 17701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17702 ac_sed_extra="$ac_vpsub 17703 $extrasub 17704 _ACEOF 17705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17706 :t 17707 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17708 s|@configure_input@|$ac_sed_conf_input|;t t 17709 s&@top_builddir@&$ac_top_builddir_sub&;t t 17710 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17711 s&@srcdir@&$ac_srcdir&;t t 17712 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17713 s&@top_srcdir@&$ac_top_srcdir&;t t 17714 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17715 s&@builddir@&$ac_builddir&;t t 17716 s&@abs_builddir@&$ac_abs_builddir&;t t 17717 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17718 s&@INSTALL@&$ac_INSTALL&;t t 17719 s&@MKDIR_P@&$ac_MKDIR_P&;t t 17720 $ac_datarootdir_hack 17721 " 17722 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 17723 || as_fn_error "could not create $ac_file" "$LINENO" 5 17724 17725 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17726 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 17727 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 17728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17729 which seems to be undefined. Please make sure it is defined." >&5 17730 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17731 which seems to be undefined. Please make sure it is defined." >&2;} 17732 17733 rm -f "$tmp/stdin" 17734 case $ac_file in 17735 -) cat "$tmp/out" && rm -f "$tmp/out";; 17736 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 17737 esac \ 17738 || as_fn_error "could not create $ac_file" "$LINENO" 5 17739 ;; 17740 :H) 17741 # 17742 # CONFIG_HEADER 17743 # 17744 if test x"$ac_file" != x-; then 17745 { 17746 $as_echo "/* $configure_input */" \ 17747 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 17748 } >"$tmp/config.h" \ 17749 || as_fn_error "could not create $ac_file" "$LINENO" 5 17750 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 17751 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17752 $as_echo "$as_me: $ac_file is unchanged" >&6;} 17753 else 17754 rm -f "$ac_file" 17755 mv "$tmp/config.h" "$ac_file" \ 17756 || as_fn_error "could not create $ac_file" "$LINENO" 5 17757 fi 17758 else 17759 $as_echo "/* $configure_input */" \ 17760 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 17761 || as_fn_error "could not create -" "$LINENO" 5 17762 fi 17763 # Compute "$ac_file"'s index in $config_headers. 17764 _am_arg="$ac_file" 17765 _am_stamp_count=1 17766 for _am_header in $config_headers :; do 17767 case $_am_header in 17768 $_am_arg | $_am_arg:* ) 17769 break ;; 17770 * ) 17771 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17772 esac 17773 done 17774 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 17775 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17776 X"$_am_arg" : 'X\(//\)[^/]' \| \ 17777 X"$_am_arg" : 'X\(//\)$' \| \ 17778 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 17779 $as_echo X"$_am_arg" | 17780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17781 s//\1/ 17782 q 17783 } 17784 /^X\(\/\/\)[^/].*/{ 17785 s//\1/ 17786 q 17787 } 17788 /^X\(\/\/\)$/{ 17789 s//\1/ 17790 q 17791 } 17792 /^X\(\/\).*/{ 17793 s//\1/ 17794 q 17795 } 17796 s/.*/./; q'`/stamp-h$_am_stamp_count 17797 ;; 17798 :L) 17799 # 17800 # CONFIG_LINK 17801 # 17802 17803 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 17804 : 17805 else 17806 # Prefer the file from the source tree if names are identical. 17807 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 17808 ac_source=$srcdir/$ac_source 17809 fi 17810 17811 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 17812 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 17813 17814 if test ! -r "$ac_source"; then 17815 as_fn_error "$ac_source: file not found" "$LINENO" 5 17816 fi 17817 rm -f "$ac_file" 17818 17819 # Try a relative symlink, then a hard link, then a copy. 17820 case $srcdir in 17821 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 17822 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 17823 esac 17824 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 17825 ln "$ac_source" "$ac_file" 2>/dev/null || 17826 cp -p "$ac_source" "$ac_file" || 17827 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 17828 fi 17829 ;; 17830 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17831 $as_echo "$as_me: executing $ac_file commands" >&6;} 17832 ;; 17833 esac 17834 17835 17836 case $ac_file$ac_mode in 17837 "default-1":C) 17838 # Only add multilib support code if we just rebuilt the top-level 17839 # Makefile. 17840 case " $CONFIG_FILES " in 17841 *" Makefile "*) 17842 ac_file=Makefile . ${multi_basedir}/config-ml.in 17843 ;; 17844 esac ;; 17845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17846 # Autoconf 2.62 quotes --file arguments for eval, but not when files 17847 # are listed without --file. Let's play safe and only enable the eval 17848 # if we detect the quoting. 17849 case $CONFIG_FILES in 17850 *\'*) eval set x "$CONFIG_FILES" ;; 17851 *) set x $CONFIG_FILES ;; 17852 esac 17853 shift 17854 for mf 17855 do 17856 # Strip MF so we end up with the name of the file. 17857 mf=`echo "$mf" | sed -e 's/:.*$//'` 17858 # Check whether this is an Automake generated Makefile or not. 17859 # We used to match only the files named `Makefile.in', but 17860 # some people rename them; so instead we look at the file content. 17861 # Grep'ing the first line is not enough: some people post-process 17862 # each Makefile.in and add a new line on top of each file to say so. 17863 # Grep'ing the whole file is not good either: AIX grep has a line 17864 # limit of 2048, but all sed's we know have understand at least 4000. 17865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17866 dirpart=`$as_dirname -- "$mf" || 17867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17868 X"$mf" : 'X\(//\)[^/]' \| \ 17869 X"$mf" : 'X\(//\)$' \| \ 17870 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17871 $as_echo X"$mf" | 17872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17873 s//\1/ 17874 q 17875 } 17876 /^X\(\/\/\)[^/].*/{ 17877 s//\1/ 17878 q 17879 } 17880 /^X\(\/\/\)$/{ 17881 s//\1/ 17882 q 17883 } 17884 /^X\(\/\).*/{ 17885 s//\1/ 17886 q 17887 } 17888 s/.*/./; q'` 17889 else 17890 continue 17891 fi 17892 # Extract the definition of DEPDIR, am__include, and am__quote 17893 # from the Makefile without running `make'. 17894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17895 test -z "$DEPDIR" && continue 17896 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17897 test -z "am__include" && continue 17898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17899 # When using ansi2knr, U may be empty or an underscore; expand it 17900 U=`sed -n 's/^U = //p' < "$mf"` 17901 # Find all dependency output files, they are included files with 17902 # $(DEPDIR) in their names. We invoke sed twice because it is the 17903 # simplest approach to changing $(DEPDIR) to its actual value in the 17904 # expansion. 17905 for file in `sed -n " 17906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 17908 # Make sure the directory exists. 17909 test -f "$dirpart/$file" && continue 17910 fdir=`$as_dirname -- "$file" || 17911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17912 X"$file" : 'X\(//\)[^/]' \| \ 17913 X"$file" : 'X\(//\)$' \| \ 17914 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17915 $as_echo X"$file" | 17916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17917 s//\1/ 17918 q 17919 } 17920 /^X\(\/\/\)[^/].*/{ 17921 s//\1/ 17922 q 17923 } 17924 /^X\(\/\/\)$/{ 17925 s//\1/ 17926 q 17927 } 17928 /^X\(\/\).*/{ 17929 s//\1/ 17930 q 17931 } 17932 s/.*/./; q'` 17933 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17934 # echo "creating $dirpart/$file" 17935 echo '# dummy' > "$dirpart/$file" 17936 done 17937 done 17938 } 17939 ;; 17940 "libtool":C) 17941 17942 # See if we are running on zsh, and set the options which allow our 17943 # commands through without removal of \ escapes. 17944 if test -n "${ZSH_VERSION+set}" ; then 17945 setopt NO_GLOB_SUBST 17946 fi 17947 17948 cfgfile="${ofile}T" 17949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17950 $RM "$cfgfile" 17951 17952 cat <<_LT_EOF >> "$cfgfile" 17953 #! $SHELL 17954 17955 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17956 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17958 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 17959 # 17960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17961 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 17962 # Written by Gordon Matzigkeit, 1996 17963 # 17964 # This file is part of GNU Libtool. 17965 # 17966 # GNU Libtool is free software; you can redistribute it and/or 17967 # modify it under the terms of the GNU General Public License as 17968 # published by the Free Software Foundation; either version 2 of 17969 # the License, or (at your option) any later version. 17970 # 17971 # As a special exception to the GNU General Public License, 17972 # if you distribute this file as part of a program or library that 17973 # is built using GNU Libtool, you may include this file under the 17974 # same distribution terms that you use for the rest of that program. 17975 # 17976 # GNU Libtool is distributed in the hope that it will be useful, 17977 # but WITHOUT ANY WARRANTY; without even the implied warranty of 17978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17979 # GNU General Public License for more details. 17980 # 17981 # You should have received a copy of the GNU General Public License 17982 # along with GNU Libtool; see the file COPYING. If not, a copy 17983 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17984 # obtained by writing to the Free Software Foundation, Inc., 17985 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17986 17987 17988 # The names of the tagged configurations supported by this script. 17989 available_tags="CXX " 17990 17991 # ### BEGIN LIBTOOL CONFIG 17992 17993 # Which release of libtool.m4 was used? 17994 macro_version=$macro_version 17995 macro_revision=$macro_revision 17996 17997 # Whether or not to build shared libraries. 17998 build_libtool_libs=$enable_shared 17999 18000 # Whether or not to build static libraries. 18001 build_old_libs=$enable_static 18002 18003 # What type of objects to build. 18004 pic_mode=$pic_mode 18005 18006 # Whether or not to optimize for fast installation. 18007 fast_install=$enable_fast_install 18008 18009 # Shell to use when invoking shell scripts. 18010 SHELL=$lt_SHELL 18011 18012 # An echo program that protects backslashes. 18013 ECHO=$lt_ECHO 18014 18015 # The host system. 18016 host_alias=$host_alias 18017 host=$host 18018 host_os=$host_os 18019 18020 # The build system. 18021 build_alias=$build_alias 18022 build=$build 18023 build_os=$build_os 18024 18025 # A sed program that does not truncate output. 18026 SED=$lt_SED 18027 18028 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18029 Xsed="\$SED -e 1s/^X//" 18030 18031 # A grep program that handles long lines. 18032 GREP=$lt_GREP 18033 18034 # An ERE matcher. 18035 EGREP=$lt_EGREP 18036 18037 # A literal string matcher. 18038 FGREP=$lt_FGREP 18039 18040 # A BSD- or MS-compatible name lister. 18041 NM=$lt_NM 18042 18043 # Whether we need soft or hard links. 18044 LN_S=$lt_LN_S 18045 18046 # What is the maximum length of a command? 18047 max_cmd_len=$max_cmd_len 18048 18049 # Object file suffix (normally "o"). 18050 objext=$ac_objext 18051 18052 # Executable file suffix (normally ""). 18053 exeext=$exeext 18054 18055 # whether the shell understands "unset". 18056 lt_unset=$lt_unset 18057 18058 # turn spaces into newlines. 18059 SP2NL=$lt_lt_SP2NL 18060 18061 # turn newlines into spaces. 18062 NL2SP=$lt_lt_NL2SP 18063 18064 # An object symbol dumper. 18065 OBJDUMP=$lt_OBJDUMP 18066 18067 # Method to check whether dependent libraries are shared objects. 18068 deplibs_check_method=$lt_deplibs_check_method 18069 18070 # Command to use when deplibs_check_method == "file_magic". 18071 file_magic_cmd=$lt_file_magic_cmd 18072 18073 # The archiver. 18074 AR=$lt_AR 18075 AR_FLAGS=$lt_AR_FLAGS 18076 18077 # A symbol stripping program. 18078 STRIP=$lt_STRIP 18079 18080 # Commands used to install an old-style archive. 18081 RANLIB=$lt_RANLIB 18082 old_postinstall_cmds=$lt_old_postinstall_cmds 18083 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18084 18085 # Whether to use a lock for old archive extraction. 18086 lock_old_archive_extraction=$lock_old_archive_extraction 18087 18088 # A C compiler. 18089 LTCC=$lt_CC 18090 18091 # LTCC compiler flags. 18092 LTCFLAGS=$lt_CFLAGS 18093 18094 # Take the output of nm and produce a listing of raw symbols and C names. 18095 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18096 18097 # Transform the output of nm in a proper C declaration. 18098 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18099 18100 # Transform the output of nm in a C name address pair. 18101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18102 18103 # Transform the output of nm in a C name address pair when lib prefix is needed. 18104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18105 18106 # The name of the directory that contains temporary libtool files. 18107 objdir=$objdir 18108 18109 # Used to examine libraries when file_magic_cmd begins with "file". 18110 MAGIC_CMD=$MAGIC_CMD 18111 18112 # Must we lock files when doing compilation? 18113 need_locks=$lt_need_locks 18114 18115 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18116 DSYMUTIL=$lt_DSYMUTIL 18117 18118 # Tool to change global to local symbols on Mac OS X. 18119 NMEDIT=$lt_NMEDIT 18120 18121 # Tool to manipulate fat objects and archives on Mac OS X. 18122 LIPO=$lt_LIPO 18123 18124 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 18125 OTOOL=$lt_OTOOL 18126 18127 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18128 OTOOL64=$lt_OTOOL64 18129 18130 # Old archive suffix (normally "a"). 18131 libext=$libext 18132 18133 # Shared library suffix (normally ".so"). 18134 shrext_cmds=$lt_shrext_cmds 18135 18136 # The commands to extract the exported symbol list from a shared archive. 18137 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18138 18139 # Variables whose values should be saved in libtool wrapper scripts and 18140 # restored at link time. 18141 variables_saved_for_relink=$lt_variables_saved_for_relink 18142 18143 # Do we need the "lib" prefix for modules? 18144 need_lib_prefix=$need_lib_prefix 18145 18146 # Do we need a version for libraries? 18147 need_version=$need_version 18148 18149 # Library versioning type. 18150 version_type=$version_type 18151 18152 # Shared library runtime path variable. 18153 runpath_var=$runpath_var 18154 18155 # Shared library path variable. 18156 shlibpath_var=$shlibpath_var 18157 18158 # Is shlibpath searched before the hard-coded library search path? 18159 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18160 18161 # Format of library name prefix. 18162 libname_spec=$lt_libname_spec 18163 18164 # List of archive names. First name is the real one, the rest are links. 18165 # The last name is the one that the linker finds with -lNAME 18166 library_names_spec=$lt_library_names_spec 18167 18168 # The coded name of the library, if different from the real name. 18169 soname_spec=$lt_soname_spec 18170 18171 # Permission mode override for installation of shared libraries. 18172 install_override_mode=$lt_install_override_mode 18173 18174 # Command to use after installation of a shared archive. 18175 postinstall_cmds=$lt_postinstall_cmds 18176 18177 # Command to use after uninstallation of a shared archive. 18178 postuninstall_cmds=$lt_postuninstall_cmds 18179 18180 # Commands used to finish a libtool library installation in a directory. 18181 finish_cmds=$lt_finish_cmds 18182 18183 # As "finish_cmds", except a single script fragment to be evaled but 18184 # not shown. 18185 finish_eval=$lt_finish_eval 18186 18187 # Whether we should hardcode library paths into libraries. 18188 hardcode_into_libs=$hardcode_into_libs 18189 18190 # Compile-time system search path for libraries. 18191 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18192 18193 # Run-time system search path for libraries. 18194 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18195 18196 # Whether dlopen is supported. 18197 dlopen_support=$enable_dlopen 18198 18199 # Whether dlopen of programs is supported. 18200 dlopen_self=$enable_dlopen_self 18201 18202 # Whether dlopen of statically linked programs is supported. 18203 dlopen_self_static=$enable_dlopen_self_static 18204 18205 # Commands to strip libraries. 18206 old_striplib=$lt_old_striplib 18207 striplib=$lt_striplib 18208 18209 18210 # The linker used to build libraries. 18211 LD=$lt_LD 18212 18213 # How to create reloadable object files. 18214 reload_flag=$lt_reload_flag 18215 reload_cmds=$lt_reload_cmds 18216 18217 # Commands used to build an old-style archive. 18218 old_archive_cmds=$lt_old_archive_cmds 18219 18220 # A language specific compiler. 18221 CC=$lt_compiler 18222 18223 # Is the compiler the GNU compiler? 18224 with_gcc=$GCC 18225 18226 # Compiler flag to turn off builtin functions. 18227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18228 18229 # How to pass a linker flag through the compiler. 18230 wl=$lt_lt_prog_compiler_wl 18231 18232 # Additional compiler flags for building library objects. 18233 pic_flag=$lt_lt_prog_compiler_pic 18234 18235 # Compiler flag to prevent dynamic linking. 18236 link_static_flag=$lt_lt_prog_compiler_static 18237 18238 # Does compiler simultaneously support -c and -o options? 18239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18240 18241 # Whether or not to add -lc for building shared libraries. 18242 build_libtool_need_lc=$archive_cmds_need_lc 18243 18244 # Whether or not to disallow shared libs when runtime libs are static. 18245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18246 18247 # Compiler flag to allow reflexive dlopens. 18248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18249 18250 # Compiler flag to generate shared objects directly from archives. 18251 whole_archive_flag_spec=$lt_whole_archive_flag_spec 18252 18253 # Whether the compiler copes with passing no objects directly. 18254 compiler_needs_object=$lt_compiler_needs_object 18255 18256 # Create an old-style archive from a shared archive. 18257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18258 18259 # Create a temporary old-style archive to link instead of a shared archive. 18260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18261 18262 # Commands used to build a shared archive. 18263 archive_cmds=$lt_archive_cmds 18264 archive_expsym_cmds=$lt_archive_expsym_cmds 18265 18266 # Commands used to build a loadable module if different from building 18267 # a shared archive. 18268 module_cmds=$lt_module_cmds 18269 module_expsym_cmds=$lt_module_expsym_cmds 18270 18271 # Whether we are building with GNU ld or not. 18272 with_gnu_ld=$lt_with_gnu_ld 18273 18274 # Flag that allows shared libraries with undefined symbols to be built. 18275 allow_undefined_flag=$lt_allow_undefined_flag 18276 18277 # Flag that enforces no undefined symbols. 18278 no_undefined_flag=$lt_no_undefined_flag 18279 18280 # Flag to hardcode \$libdir into a binary during linking. 18281 # This must work even if \$libdir does not exist 18282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18283 18284 # If ld is used when linking, flag to hardcode \$libdir into a binary 18285 # during linking. This must work even if \$libdir does not exist. 18286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 18287 18288 # Whether we need a single "-rpath" flag with a separated argument. 18289 hardcode_libdir_separator=$lt_hardcode_libdir_separator 18290 18291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18292 # DIR into the resulting binary. 18293 hardcode_direct=$hardcode_direct 18294 18295 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18296 # DIR into the resulting binary and the resulting library dependency is 18297 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18298 # library is relocated. 18299 hardcode_direct_absolute=$hardcode_direct_absolute 18300 18301 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18302 # into the resulting binary. 18303 hardcode_minus_L=$hardcode_minus_L 18304 18305 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18306 # into the resulting binary. 18307 hardcode_shlibpath_var=$hardcode_shlibpath_var 18308 18309 # Set to "yes" if building a shared library automatically hardcodes DIR 18310 # into the library and all subsequent libraries and executables linked 18311 # against it. 18312 hardcode_automatic=$hardcode_automatic 18313 18314 # Set to yes if linker adds runtime paths of dependent libraries 18315 # to runtime path list. 18316 inherit_rpath=$inherit_rpath 18317 18318 # Whether libtool must link a program against all its dependency libraries. 18319 link_all_deplibs=$link_all_deplibs 18320 18321 # Fix the shell variable \$srcfile for the compiler. 18322 fix_srcfile_path=$lt_fix_srcfile_path 18323 18324 # Set to "yes" if exported symbols are required. 18325 always_export_symbols=$always_export_symbols 18326 18327 # The commands to list exported symbols. 18328 export_symbols_cmds=$lt_export_symbols_cmds 18329 18330 # Symbols that should not be listed in the preloaded symbols. 18331 exclude_expsyms=$lt_exclude_expsyms 18332 18333 # Symbols that must always be exported. 18334 include_expsyms=$lt_include_expsyms 18335 18336 # Commands necessary for linking programs (against libraries) with templates. 18337 prelink_cmds=$lt_prelink_cmds 18338 18339 # Specify filename containing input files. 18340 file_list_spec=$lt_file_list_spec 18341 18342 # How to hardcode a shared library path into an executable. 18343 hardcode_action=$hardcode_action 18344 18345 # The directories searched by this compiler when creating a shared library. 18346 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18347 18348 # Dependencies to place before and after the objects being linked to 18349 # create a shared library. 18350 predep_objects=$lt_predep_objects 18351 postdep_objects=$lt_postdep_objects 18352 predeps=$lt_predeps 18353 postdeps=$lt_postdeps 18354 18355 # The library search path used internally by the compiler when linking 18356 # a shared library. 18357 compiler_lib_search_path=$lt_compiler_lib_search_path 18358 18359 # ### END LIBTOOL CONFIG 18360 18361 _LT_EOF 18362 18363 case $host_os in 18364 aix3*) 18365 cat <<\_LT_EOF >> "$cfgfile" 18366 # AIX sometimes has problems with the GCC collect2 program. For some 18367 # reason, if we set the COLLECT_NAMES environment variable, the problems 18368 # vanish in a puff of smoke. 18369 if test "X${COLLECT_NAMES+set}" != Xset; then 18370 COLLECT_NAMES= 18371 export COLLECT_NAMES 18372 fi 18373 _LT_EOF 18374 ;; 18375 esac 18376 18377 18378 ltmain="$ac_aux_dir/ltmain.sh" 18379 18380 18381 # We use sed instead of cat because bash on DJGPP gets confused if 18382 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18383 # text mode, it properly converts lines to CR/LF. This bash problem 18384 # is reportedly fixed, but why not run on old versions too? 18385 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 18386 || (rm -f "$cfgfile"; exit 1) 18387 18388 case $xsi_shell in 18389 yes) 18390 cat << \_LT_EOF >> "$cfgfile" 18391 18392 # func_dirname file append nondir_replacement 18393 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 18394 # otherwise set result to NONDIR_REPLACEMENT. 18395 func_dirname () 18396 { 18397 case ${1} in 18398 */*) func_dirname_result="${1%/*}${2}" ;; 18399 * ) func_dirname_result="${3}" ;; 18400 esac 18401 } 18402 18403 # func_basename file 18404 func_basename () 18405 { 18406 func_basename_result="${1##*/}" 18407 } 18408 18409 # func_dirname_and_basename file append nondir_replacement 18410 # perform func_basename and func_dirname in a single function 18411 # call: 18412 # dirname: Compute the dirname of FILE. If nonempty, 18413 # add APPEND to the result, otherwise set result 18414 # to NONDIR_REPLACEMENT. 18415 # value returned in "$func_dirname_result" 18416 # basename: Compute filename of FILE. 18417 # value retuned in "$func_basename_result" 18418 # Implementation must be kept synchronized with func_dirname 18419 # and func_basename. For efficiency, we do not delegate to 18420 # those functions but instead duplicate the functionality here. 18421 func_dirname_and_basename () 18422 { 18423 case ${1} in 18424 */*) func_dirname_result="${1%/*}${2}" ;; 18425 * ) func_dirname_result="${3}" ;; 18426 esac 18427 func_basename_result="${1##*/}" 18428 } 18429 18430 # func_stripname prefix suffix name 18431 # strip PREFIX and SUFFIX off of NAME. 18432 # PREFIX and SUFFIX must not contain globbing or regex special 18433 # characters, hashes, percent signs, but SUFFIX may contain a leading 18434 # dot (in which case that matches only a dot). 18435 func_stripname () 18436 { 18437 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 18438 # positional parameters, so assign one to ordinary parameter first. 18439 func_stripname_result=${3} 18440 func_stripname_result=${func_stripname_result#"${1}"} 18441 func_stripname_result=${func_stripname_result%"${2}"} 18442 } 18443 18444 # func_opt_split 18445 func_opt_split () 18446 { 18447 func_opt_split_opt=${1%%=*} 18448 func_opt_split_arg=${1#*=} 18449 } 18450 18451 # func_lo2o object 18452 func_lo2o () 18453 { 18454 case ${1} in 18455 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 18456 *) func_lo2o_result=${1} ;; 18457 esac 18458 } 18459 18460 # func_xform libobj-or-source 18461 func_xform () 18462 { 18463 func_xform_result=${1%.*}.lo 18464 } 18465 18466 # func_arith arithmetic-term... 18467 func_arith () 18468 { 18469 func_arith_result=$(( $* )) 18470 } 18471 18472 # func_len string 18473 # STRING may not start with a hyphen. 18474 func_len () 18475 { 18476 func_len_result=${#1} 18477 } 18478 18479 _LT_EOF 18480 ;; 18481 *) # Bourne compatible functions. 18482 cat << \_LT_EOF >> "$cfgfile" 18483 18484 # func_dirname file append nondir_replacement 18485 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 18486 # otherwise set result to NONDIR_REPLACEMENT. 18487 func_dirname () 18488 { 18489 # Extract subdirectory from the argument. 18490 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 18491 if test "X$func_dirname_result" = "X${1}"; then 18492 func_dirname_result="${3}" 18493 else 18494 func_dirname_result="$func_dirname_result${2}" 18495 fi 18496 } 18497 18498 # func_basename file 18499 func_basename () 18500 { 18501 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 18502 } 18503 18504 18505 # func_stripname prefix suffix name 18506 # strip PREFIX and SUFFIX off of NAME. 18507 # PREFIX and SUFFIX must not contain globbing or regex special 18508 # characters, hashes, percent signs, but SUFFIX may contain a leading 18509 # dot (in which case that matches only a dot). 18510 # func_strip_suffix prefix name 18511 func_stripname () 18512 { 18513 case ${2} in 18514 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 18515 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 18516 esac 18517 } 18518 18519 # sed scripts: 18520 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 18521 my_sed_long_arg='1s/^-[^=]*=//' 18522 18523 # func_opt_split 18524 func_opt_split () 18525 { 18526 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 18527 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 18528 } 18529 18530 # func_lo2o object 18531 func_lo2o () 18532 { 18533 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 18534 } 18535 18536 # func_xform libobj-or-source 18537 func_xform () 18538 { 18539 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 18540 } 18541 18542 # func_arith arithmetic-term... 18543 func_arith () 18544 { 18545 func_arith_result=`expr "$@"` 18546 } 18547 18548 # func_len string 18549 # STRING may not start with a hyphen. 18550 func_len () 18551 { 18552 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 18553 } 18554 18555 _LT_EOF 18556 esac 18557 18558 case $lt_shell_append in 18559 yes) 18560 cat << \_LT_EOF >> "$cfgfile" 18561 18562 # func_append var value 18563 # Append VALUE to the end of shell variable VAR. 18564 func_append () 18565 { 18566 eval "$1+=\$2" 18567 } 18568 _LT_EOF 18569 ;; 18570 *) 18571 cat << \_LT_EOF >> "$cfgfile" 18572 18573 # func_append var value 18574 # Append VALUE to the end of shell variable VAR. 18575 func_append () 18576 { 18577 eval "$1=\$$1\$2" 18578 } 18579 18580 _LT_EOF 18581 ;; 18582 esac 18583 18584 18585 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 18586 || (rm -f "$cfgfile"; exit 1) 18587 18588 mv -f "$cfgfile" "$ofile" || 18589 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18590 chmod +x "$ofile" 18591 18592 18593 cat <<_LT_EOF >> "$ofile" 18594 18595 # ### BEGIN LIBTOOL TAG CONFIG: CXX 18596 18597 # The linker used to build libraries. 18598 LD=$lt_LD_CXX 18599 18600 # How to create reloadable object files. 18601 reload_flag=$lt_reload_flag_CXX 18602 reload_cmds=$lt_reload_cmds_CXX 18603 18604 # Commands used to build an old-style archive. 18605 old_archive_cmds=$lt_old_archive_cmds_CXX 18606 18607 # A language specific compiler. 18608 CC=$lt_compiler_CXX 18609 18610 # Is the compiler the GNU compiler? 18611 with_gcc=$GCC_CXX 18612 18613 # Compiler flag to turn off builtin functions. 18614 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18615 18616 # How to pass a linker flag through the compiler. 18617 wl=$lt_lt_prog_compiler_wl_CXX 18618 18619 # Additional compiler flags for building library objects. 18620 pic_flag=$lt_lt_prog_compiler_pic_CXX 18621 18622 # Compiler flag to prevent dynamic linking. 18623 link_static_flag=$lt_lt_prog_compiler_static_CXX 18624 18625 # Does compiler simultaneously support -c and -o options? 18626 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18627 18628 # Whether or not to add -lc for building shared libraries. 18629 build_libtool_need_lc=$archive_cmds_need_lc_CXX 18630 18631 # Whether or not to disallow shared libs when runtime libs are static. 18632 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18633 18634 # Compiler flag to allow reflexive dlopens. 18635 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18636 18637 # Compiler flag to generate shared objects directly from archives. 18638 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18639 18640 # Whether the compiler copes with passing no objects directly. 18641 compiler_needs_object=$lt_compiler_needs_object_CXX 18642 18643 # Create an old-style archive from a shared archive. 18644 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18645 18646 # Create a temporary old-style archive to link instead of a shared archive. 18647 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18648 18649 # Commands used to build a shared archive. 18650 archive_cmds=$lt_archive_cmds_CXX 18651 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18652 18653 # Commands used to build a loadable module if different from building 18654 # a shared archive. 18655 module_cmds=$lt_module_cmds_CXX 18656 module_expsym_cmds=$lt_module_expsym_cmds_CXX 18657 18658 # Whether we are building with GNU ld or not. 18659 with_gnu_ld=$lt_with_gnu_ld_CXX 18660 18661 # Flag that allows shared libraries with undefined symbols to be built. 18662 allow_undefined_flag=$lt_allow_undefined_flag_CXX 18663 18664 # Flag that enforces no undefined symbols. 18665 no_undefined_flag=$lt_no_undefined_flag_CXX 18666 18667 # Flag to hardcode \$libdir into a binary during linking. 18668 # This must work even if \$libdir does not exist 18669 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18670 18671 # If ld is used when linking, flag to hardcode \$libdir into a binary 18672 # during linking. This must work even if \$libdir does not exist. 18673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 18674 18675 # Whether we need a single "-rpath" flag with a separated argument. 18676 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18677 18678 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18679 # DIR into the resulting binary. 18680 hardcode_direct=$hardcode_direct_CXX 18681 18682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 18683 # DIR into the resulting binary and the resulting library dependency is 18684 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 18685 # library is relocated. 18686 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18687 18688 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18689 # into the resulting binary. 18690 hardcode_minus_L=$hardcode_minus_L_CXX 18691 18692 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18693 # into the resulting binary. 18694 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18695 18696 # Set to "yes" if building a shared library automatically hardcodes DIR 18697 # into the library and all subsequent libraries and executables linked 18698 # against it. 18699 hardcode_automatic=$hardcode_automatic_CXX 18700 18701 # Set to yes if linker adds runtime paths of dependent libraries 18702 # to runtime path list. 18703 inherit_rpath=$inherit_rpath_CXX 18704 18705 # Whether libtool must link a program against all its dependency libraries. 18706 link_all_deplibs=$link_all_deplibs_CXX 18707 18708 # Fix the shell variable \$srcfile for the compiler. 18709 fix_srcfile_path=$lt_fix_srcfile_path_CXX 18710 18711 # Set to "yes" if exported symbols are required. 18712 always_export_symbols=$always_export_symbols_CXX 18713 18714 # The commands to list exported symbols. 18715 export_symbols_cmds=$lt_export_symbols_cmds_CXX 18716 18717 # Symbols that should not be listed in the preloaded symbols. 18718 exclude_expsyms=$lt_exclude_expsyms_CXX 18719 18720 # Symbols that must always be exported. 18721 include_expsyms=$lt_include_expsyms_CXX 18722 18723 # Commands necessary for linking programs (against libraries) with templates. 18724 prelink_cmds=$lt_prelink_cmds_CXX 18725 18726 # Specify filename containing input files. 18727 file_list_spec=$lt_file_list_spec_CXX 18728 18729 # How to hardcode a shared library path into an executable. 18730 hardcode_action=$hardcode_action_CXX 18731 18732 # The directories searched by this compiler when creating a shared library. 18733 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 18734 18735 # Dependencies to place before and after the objects being linked to 18736 # create a shared library. 18737 predep_objects=$lt_predep_objects_CXX 18738 postdep_objects=$lt_postdep_objects_CXX 18739 predeps=$lt_predeps_CXX 18740 postdeps=$lt_postdeps_CXX 18741 18742 # The library search path used internally by the compiler when linking 18743 # a shared library. 18744 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18745 18746 # ### END LIBTOOL TAG CONFIG: CXX 18747 _LT_EOF 18748 18749 ;; 18750 "include":C) test -d include || mkdir include ;; 18751 "src":C) 18752 test -d src || mkdir src 18753 test -d src/$TARGETDIR || mkdir src/$TARGETDIR 18754 ;; 18755 18756 esac 18757 done # for ac_tag 18758 18759 18760 as_fn_exit 0 18761 _ACEOF 18762 ac_clean_files=$ac_clean_files_save 18763 18764 test $ac_write_fail = 0 || 18765 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18766 18767 18768 # configure is writing to config.log, and then calls config.status. 18769 # config.status does its own redirection, appending to config.log. 18770 # Unfortunately, on DOS this fails, as config.log is still kept open 18771 # by configure, so config.status won't be able to write to it; its 18772 # output is simply discarded. So we exec the FD to /dev/null, 18773 # effectively closing config.log, so it can be properly (re)opened and 18774 # appended to by config.status. When coming back to configure, we 18775 # need to make the FD available again. 18776 if test "$no_create" != yes; then 18777 ac_cs_success=: 18778 ac_config_status_args= 18779 test "$silent" = yes && 18780 ac_config_status_args="$ac_config_status_args --quiet" 18781 exec 5>/dev/null 18782 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18783 exec 5>>config.log 18784 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18785 # would make configure fail if this is the last instruction. 18786 $ac_cs_success || as_fn_exit $? 18787 fi 18788 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18790 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18791 fi 18792