1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.64 for ld 2.27.0. 4 # 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7 # Foundation, Inc. 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93 for as_dir in $PATH 94 do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99 IFS=$as_save_IFS 100 101 ;; 102 esac 103 # We did not find ourselves, most probably we were run as `sh COMMAND' 104 # in which case we are not to be found in the path. 105 if test "x$as_myself" = x; then 106 as_myself=$0 107 fi 108 if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111 fi 112 113 # Unset variables that we do not need and which cause bugs (e.g. in 114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115 # suppresses any "Segmentation fault" message there. '((' could 116 # trigger a bug in pdksh 5.2.14. 117 for as_var in BASH_ENV ENV MAIL MAILPATH 118 do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120 done 121 PS1='$ ' 122 PS2='> ' 123 PS4='+ ' 124 125 # NLS nuisances. 126 LC_ALL=C 127 export LC_ALL 128 LANGUAGE=C 129 export LANGUAGE 130 131 # CDPATH. 132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134 if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142 else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148 esac 149 fi 150 " 151 as_required="as_fn_return () { (exit \$1); } 152 as_fn_success () { as_fn_return 0; } 153 as_fn_failure () { as_fn_return 1; } 154 as_fn_ret_success () { return 0; } 155 as_fn_ret_failure () { return 1; } 156 157 exitcode=0 158 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164 else 165 exitcode=1; echo positional parameters were not saved. 166 fi 167 test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172 test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183 else 184 as_have_required=no 185 fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188 else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190 as_found=false 191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192 do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206 fi 207 fi 208 done;; 209 esac 210 as_found=false 211 done 212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215 fi; } 216 IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228 fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 238 $0: including any error possibly output before this 239 $0: message. Then install a modern shell, or manually run 240 $0: the script under such a shell if you do have one." 241 fi 242 exit 1 243 fi 244 fi 245 fi 246 SHELL=${CONFIG_SHELL-/bin/sh} 247 export SHELL 248 # Unset more variables known to interfere with behavior of common tools. 249 CLICOLOR_FORCE= GREP_OPTIONS= 250 unset CLICOLOR_FORCE GREP_OPTIONS 251 252 ## --------------------- ## 253 ## M4sh Shell Functions. ## 254 ## --------------------- ## 255 # as_fn_unset VAR 256 # --------------- 257 # Portably unset VAR. 258 as_fn_unset () 259 { 260 { eval $1=; unset $1;} 261 } 262 as_unset=as_fn_unset 263 264 # as_fn_set_status STATUS 265 # ----------------------- 266 # Set $? to STATUS, without forking. 267 as_fn_set_status () 268 { 269 return $1 270 } # as_fn_set_status 271 272 # as_fn_exit STATUS 273 # ----------------- 274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275 as_fn_exit () 276 { 277 set +e 278 as_fn_set_status $1 279 exit $1 280 } # as_fn_exit 281 282 # as_fn_mkdir_p 283 # ------------- 284 # Create "$as_dir" as a directory, including parents if necessary. 285 as_fn_mkdir_p () 286 { 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304 $as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328 } # as_fn_mkdir_p 329 # as_fn_append VAR VALUE 330 # ---------------------- 331 # Append the text in VALUE to the end of the definition contained in VAR. Take 332 # advantage of any shell optimizations that allow amortized linear growth over 333 # repeated appends, instead of the typical quadratic growth present in naive 334 # implementations. 335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340 else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345 fi # as_fn_append 346 347 # as_fn_arith ARG... 348 # ------------------ 349 # Perform arithmetic evaluation on the ARGs, and store the result in the 350 # global $as_val. Take advantage of shells that can avoid forks. The arguments 351 # must be portable across $(()) and expr. 352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357 else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362 fi # as_fn_arith 363 364 365 # as_fn_error ERROR [LINENO LOG_FD] 366 # --------------------------------- 367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369 # script with status $?, using 1 if that was 0. 370 as_fn_error () 371 { 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379 } # as_fn_error 380 381 if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384 else 385 as_expr=false 386 fi 387 388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390 else 391 as_basename=false 392 fi 393 394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396 else 397 as_dirname=false 398 fi 399 400 as_me=`$as_basename -- "$0" || 401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404 $as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419 # Avoid depending upon Character Ranges. 420 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423 as_cr_digits='0123456789' 424 as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456 } 457 458 ECHO_C= ECHO_N= ECHO_T= 459 case `echo -n x` in #((((( 460 -n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467 *) 468 ECHO_N='-n';; 469 esac 470 471 rm -f conf$$ conf$$.exe conf$$.file 472 if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474 else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477 fi 478 if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492 else 493 as_ln_s='cp -p' 494 fi 495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496 rmdir conf$$.dir 2>/dev/null 497 498 if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500 else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503 fi 504 505 if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507 else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525 fi 526 as_executable_p=$as_test_x 527 528 # Sed expression to map a string onto a valid CPP name. 529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531 # Sed expression to map a string onto a valid variable name. 532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534 SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537 exec 7<&0 </dev/null 6>&1 538 539 # Name of the host. 540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541 # so uname gets run too. 542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544 # 545 # Initializations. 546 # 547 ac_default_prefix=/usr/local 548 ac_clean_files= 549 ac_config_libobj_dir=. 550 LIBOBJS= 551 cross_compiling=no 552 subdirs= 553 MFLAGS= 554 MAKEFLAGS= 555 556 # Identity of this package. 557 PACKAGE_NAME='ld' 558 PACKAGE_TARNAME='ld' 559 PACKAGE_VERSION='2.27.0' 560 PACKAGE_STRING='ld 2.27.0' 561 PACKAGE_BUGREPORT='' 562 PACKAGE_URL='' 563 564 ac_unique_file="ldmain.c" 565 # Factoring default headers for most tests. 566 ac_includes_default="\ 567 #include <stdio.h> 568 #ifdef HAVE_SYS_TYPES_H 569 # include <sys/types.h> 570 #endif 571 #ifdef HAVE_SYS_STAT_H 572 # include <sys/stat.h> 573 #endif 574 #ifdef STDC_HEADERS 575 # include <stdlib.h> 576 # include <stddef.h> 577 #else 578 # ifdef HAVE_STDLIB_H 579 # include <stdlib.h> 580 # endif 581 #endif 582 #ifdef HAVE_STRING_H 583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584 # include <memory.h> 585 # endif 586 # include <string.h> 587 #endif 588 #ifdef HAVE_STRINGS_H 589 # include <strings.h> 590 #endif 591 #ifdef HAVE_INTTYPES_H 592 # include <inttypes.h> 593 #endif 594 #ifdef HAVE_STDINT_H 595 # include <stdint.h> 596 #endif 597 #ifdef HAVE_UNISTD_H 598 # include <unistd.h> 599 #endif" 600 601 ac_subst_vars='am__EXEEXT_FALSE 602 am__EXEEXT_TRUE 603 LTLIBOBJS 604 LIBOBJS 605 TESTBFDLIB 606 EMULATION_LIBPATH 607 LIB_PATH 608 EMUL_EXTRA_OFILES 609 EMULATION_OFILES 610 EMUL 611 elf_plt_unwind_list_options 612 elf_shlib_list_options 613 elf_list_options 614 STRINGIFY 615 enable_initfini_array 616 ENABLE_PLUGINS_FALSE 617 ENABLE_PLUGINS_TRUE 618 NATIVE_LIB_DIRS 619 HOSTING_SLIBS 620 HOSTING_LIBS 621 HOSTING_SCRT0 622 HOSTING_CRT0 623 HDEFINES 624 do_compare 625 GENINSRC_NEVER_FALSE 626 GENINSRC_NEVER_TRUE 627 LEXLIB 628 LEX_OUTPUT_ROOT 629 LEX 630 YFLAGS 631 YACC 632 MSGMERGE 633 MSGFMT 634 MKINSTALLDIRS 635 CATOBJEXT 636 GENCAT 637 INSTOBJEXT 638 DATADIRNAME 639 CATALOGS 640 POSUB 641 GMSGFMT 642 XGETTEXT 643 INCINTL 644 LIBINTL_DEP 645 LIBINTL 646 USE_NLS 647 WARN_WRITE_STRINGS 648 NO_WERROR 649 WARN_CFLAGS 650 installed_linker 651 install_as_default 652 TARGET_SYSTEM_ROOT_DEFINE 653 TARGET_SYSTEM_ROOT 654 use_sysroot 655 CXXCPP 656 OTOOL64 657 OTOOL 658 LIPO 659 NMEDIT 660 DSYMUTIL 661 RANLIB 662 AR 663 OBJDUMP 664 LN_S 665 NM 666 ac_ct_DUMPBIN 667 DUMPBIN 668 LD 669 FGREP 670 SED 671 LIBTOOL 672 EGREP 673 CPP 674 GREP 675 am__fastdepCXX_FALSE 676 am__fastdepCXX_TRUE 677 CXXDEPMODE 678 ac_ct_CXX 679 CXXFLAGS 680 CXX 681 MAINT 682 MAINTAINER_MODE_FALSE 683 MAINTAINER_MODE_TRUE 684 am__fastdepCC_FALSE 685 am__fastdepCC_TRUE 686 CCDEPMODE 687 am__nodep 688 AMDEPBACKSLASH 689 AMDEP_FALSE 690 AMDEP_TRUE 691 am__quote 692 am__include 693 DEPDIR 694 am__untar 695 am__tar 696 AMTAR 697 am__leading_dot 698 SET_MAKE 699 AWK 700 mkdir_p 701 MKDIR_P 702 INSTALL_STRIP_PROGRAM 703 STRIP 704 install_sh 705 MAKEINFO 706 AUTOHEADER 707 AUTOMAKE 708 AUTOCONF 709 ACLOCAL 710 VERSION 711 PACKAGE 712 CYGPATH_W 713 am__isrc 714 INSTALL_DATA 715 INSTALL_SCRIPT 716 INSTALL_PROGRAM 717 OBJEXT 718 EXEEXT 719 ac_ct_CC 720 CPPFLAGS 721 LDFLAGS 722 CFLAGS 723 CC 724 target_os 725 target_vendor 726 target_cpu 727 target 728 host_os 729 host_vendor 730 host_cpu 731 host 732 build_os 733 build_vendor 734 build_cpu 735 build 736 target_alias 737 host_alias 738 build_alias 739 LIBS 740 ECHO_T 741 ECHO_N 742 ECHO_C 743 DEFS 744 mandir 745 localedir 746 libdir 747 psdir 748 pdfdir 749 dvidir 750 htmldir 751 infodir 752 docdir 753 oldincludedir 754 includedir 755 localstatedir 756 sharedstatedir 757 sysconfdir 758 datadir 759 datarootdir 760 libexecdir 761 sbindir 762 bindir 763 program_transform_name 764 prefix 765 exec_prefix 766 PACKAGE_URL 767 PACKAGE_BUGREPORT 768 PACKAGE_STRING 769 PACKAGE_VERSION 770 PACKAGE_TARNAME 771 PACKAGE_NAME 772 PATH_SEPARATOR 773 SHELL' 774 ac_subst_files='TDIRS' 775 ac_user_opts=' 776 enable_option_checking 777 enable_dependency_tracking 778 enable_maintainer_mode 779 enable_shared 780 enable_static 781 with_pic 782 enable_fast_install 783 with_gnu_ld 784 enable_libtool_lock 785 enable_plugins 786 enable_largefile 787 with_lib_path 788 enable_targets 789 enable_64_bit_bfd 790 with_sysroot 791 enable_poison_system_directories 792 enable_gold 793 enable_got 794 enable_compressed_debug_sections 795 enable_relro 796 enable_werror 797 enable_build_warnings 798 enable_nls 799 enable_initfini_array 800 ' 801 ac_precious_vars='build_alias 802 host_alias 803 target_alias 804 CC 805 CFLAGS 806 LDFLAGS 807 LIBS 808 CPPFLAGS 809 CXX 810 CXXFLAGS 811 CCC 812 CPP 813 CXXCPP 814 YACC 815 YFLAGS' 816 817 818 # Initialize some variables set by options. 819 ac_init_help= 820 ac_init_version=false 821 ac_unrecognized_opts= 822 ac_unrecognized_sep= 823 # The variables have the same names as the options, with 824 # dashes changed to underlines. 825 cache_file=/dev/null 826 exec_prefix=NONE 827 no_create= 828 no_recursion= 829 prefix=NONE 830 program_prefix=NONE 831 program_suffix=NONE 832 program_transform_name=s,x,x, 833 silent= 834 site= 835 srcdir= 836 verbose= 837 x_includes=NONE 838 x_libraries=NONE 839 840 # Installation directory options. 841 # These are left unexpanded so users can "make install exec_prefix=/foo" 842 # and all the variables that are supposed to be based on exec_prefix 843 # by default will actually change. 844 # Use braces instead of parens because sh, perl, etc. also accept them. 845 # (The list follows the same order as the GNU Coding Standards.) 846 bindir='${exec_prefix}/bin' 847 sbindir='${exec_prefix}/sbin' 848 libexecdir='${exec_prefix}/libexec' 849 datarootdir='${prefix}/share' 850 datadir='${datarootdir}' 851 sysconfdir='${prefix}/etc' 852 sharedstatedir='${prefix}/com' 853 localstatedir='${prefix}/var' 854 includedir='${prefix}/include' 855 oldincludedir='/usr/include' 856 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 857 infodir='${datarootdir}/info' 858 htmldir='${docdir}' 859 dvidir='${docdir}' 860 pdfdir='${docdir}' 861 psdir='${docdir}' 862 libdir='${exec_prefix}/lib' 863 localedir='${datarootdir}/locale' 864 mandir='${datarootdir}/man' 865 866 ac_prev= 867 ac_dashdash= 868 for ac_option 869 do 870 # If the previous option needs an argument, assign it. 871 if test -n "$ac_prev"; then 872 eval $ac_prev=\$ac_option 873 ac_prev= 874 continue 875 fi 876 877 case $ac_option in 878 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 879 *) ac_optarg=yes ;; 880 esac 881 882 # Accept the important Cygnus configure options, so we can diagnose typos. 883 884 case $ac_dashdash$ac_option in 885 --) 886 ac_dashdash=yes ;; 887 888 -bindir | --bindir | --bindi | --bind | --bin | --bi) 889 ac_prev=bindir ;; 890 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 891 bindir=$ac_optarg ;; 892 893 -build | --build | --buil | --bui | --bu) 894 ac_prev=build_alias ;; 895 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 896 build_alias=$ac_optarg ;; 897 898 -cache-file | --cache-file | --cache-fil | --cache-fi \ 899 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 900 ac_prev=cache_file ;; 901 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 902 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 903 cache_file=$ac_optarg ;; 904 905 --config-cache | -C) 906 cache_file=config.cache ;; 907 908 -datadir | --datadir | --datadi | --datad) 909 ac_prev=datadir ;; 910 -datadir=* | --datadir=* | --datadi=* | --datad=*) 911 datadir=$ac_optarg ;; 912 913 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 914 | --dataroo | --dataro | --datar) 915 ac_prev=datarootdir ;; 916 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 917 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 918 datarootdir=$ac_optarg ;; 919 920 -disable-* | --disable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929 "enable_$ac_useropt" 930 "*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=no ;; 935 936 -docdir | --docdir | --docdi | --doc | --do) 937 ac_prev=docdir ;; 938 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 939 docdir=$ac_optarg ;; 940 941 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 942 ac_prev=dvidir ;; 943 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 944 dvidir=$ac_optarg ;; 945 946 -enable-* | --enable-*) 947 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 948 # Reject names that are not valid shell variable names. 949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 950 as_fn_error "invalid feature name: $ac_useropt" 951 ac_useropt_orig=$ac_useropt 952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 953 case $ac_user_opts in 954 *" 955 "enable_$ac_useropt" 956 "*) ;; 957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 958 ac_unrecognized_sep=', ';; 959 esac 960 eval enable_$ac_useropt=\$ac_optarg ;; 961 962 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 963 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 964 | --exec | --exe | --ex) 965 ac_prev=exec_prefix ;; 966 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 967 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 968 | --exec=* | --exe=* | --ex=*) 969 exec_prefix=$ac_optarg ;; 970 971 -gas | --gas | --ga | --g) 972 # Obsolete; use --with-gas. 973 with_gas=yes ;; 974 975 -help | --help | --hel | --he | -h) 976 ac_init_help=long ;; 977 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 978 ac_init_help=recursive ;; 979 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 980 ac_init_help=short ;; 981 982 -host | --host | --hos | --ho) 983 ac_prev=host_alias ;; 984 -host=* | --host=* | --hos=* | --ho=*) 985 host_alias=$ac_optarg ;; 986 987 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 988 ac_prev=htmldir ;; 989 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 990 | --ht=*) 991 htmldir=$ac_optarg ;; 992 993 -includedir | --includedir | --includedi | --included | --include \ 994 | --includ | --inclu | --incl | --inc) 995 ac_prev=includedir ;; 996 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 997 | --includ=* | --inclu=* | --incl=* | --inc=*) 998 includedir=$ac_optarg ;; 999 1000 -infodir | --infodir | --infodi | --infod | --info | --inf) 1001 ac_prev=infodir ;; 1002 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1003 infodir=$ac_optarg ;; 1004 1005 -libdir | --libdir | --libdi | --libd) 1006 ac_prev=libdir ;; 1007 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1008 libdir=$ac_optarg ;; 1009 1010 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1011 | --libexe | --libex | --libe) 1012 ac_prev=libexecdir ;; 1013 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1014 | --libexe=* | --libex=* | --libe=*) 1015 libexecdir=$ac_optarg ;; 1016 1017 -localedir | --localedir | --localedi | --localed | --locale) 1018 ac_prev=localedir ;; 1019 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1020 localedir=$ac_optarg ;; 1021 1022 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1023 | --localstate | --localstat | --localsta | --localst | --locals) 1024 ac_prev=localstatedir ;; 1025 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1026 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1027 localstatedir=$ac_optarg ;; 1028 1029 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1030 ac_prev=mandir ;; 1031 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1032 mandir=$ac_optarg ;; 1033 1034 -nfp | --nfp | --nf) 1035 # Obsolete; use --without-fp. 1036 with_fp=no ;; 1037 1038 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1039 | --no-cr | --no-c | -n) 1040 no_create=yes ;; 1041 1042 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1043 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1044 no_recursion=yes ;; 1045 1046 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1047 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1048 | --oldin | --oldi | --old | --ol | --o) 1049 ac_prev=oldincludedir ;; 1050 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1051 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1052 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1053 oldincludedir=$ac_optarg ;; 1054 1055 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1056 ac_prev=prefix ;; 1057 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1058 prefix=$ac_optarg ;; 1059 1060 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1061 | --program-pre | --program-pr | --program-p) 1062 ac_prev=program_prefix ;; 1063 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1064 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1065 program_prefix=$ac_optarg ;; 1066 1067 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1068 | --program-suf | --program-su | --program-s) 1069 ac_prev=program_suffix ;; 1070 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1071 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1072 program_suffix=$ac_optarg ;; 1073 1074 -program-transform-name | --program-transform-name \ 1075 | --program-transform-nam | --program-transform-na \ 1076 | --program-transform-n | --program-transform- \ 1077 | --program-transform | --program-transfor \ 1078 | --program-transfo | --program-transf \ 1079 | --program-trans | --program-tran \ 1080 | --progr-tra | --program-tr | --program-t) 1081 ac_prev=program_transform_name ;; 1082 -program-transform-name=* | --program-transform-name=* \ 1083 | --program-transform-nam=* | --program-transform-na=* \ 1084 | --program-transform-n=* | --program-transform-=* \ 1085 | --program-transform=* | --program-transfor=* \ 1086 | --program-transfo=* | --program-transf=* \ 1087 | --program-trans=* | --program-tran=* \ 1088 | --progr-tra=* | --program-tr=* | --program-t=*) 1089 program_transform_name=$ac_optarg ;; 1090 1091 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1092 ac_prev=pdfdir ;; 1093 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1094 pdfdir=$ac_optarg ;; 1095 1096 -psdir | --psdir | --psdi | --psd | --ps) 1097 ac_prev=psdir ;; 1098 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1099 psdir=$ac_optarg ;; 1100 1101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1102 | -silent | --silent | --silen | --sile | --sil) 1103 silent=yes ;; 1104 1105 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1106 ac_prev=sbindir ;; 1107 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1108 | --sbi=* | --sb=*) 1109 sbindir=$ac_optarg ;; 1110 1111 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1112 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1113 | --sharedst | --shareds | --shared | --share | --shar \ 1114 | --sha | --sh) 1115 ac_prev=sharedstatedir ;; 1116 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1117 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1118 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1119 | --sha=* | --sh=*) 1120 sharedstatedir=$ac_optarg ;; 1121 1122 -site | --site | --sit) 1123 ac_prev=site ;; 1124 -site=* | --site=* | --sit=*) 1125 site=$ac_optarg ;; 1126 1127 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1128 ac_prev=srcdir ;; 1129 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1130 srcdir=$ac_optarg ;; 1131 1132 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1133 | --syscon | --sysco | --sysc | --sys | --sy) 1134 ac_prev=sysconfdir ;; 1135 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1136 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1137 sysconfdir=$ac_optarg ;; 1138 1139 -target | --target | --targe | --targ | --tar | --ta | --t) 1140 ac_prev=target_alias ;; 1141 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1142 target_alias=$ac_optarg ;; 1143 1144 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1145 verbose=yes ;; 1146 1147 -version | --version | --versio | --versi | --vers | -V) 1148 ac_init_version=: ;; 1149 1150 -with-* | --with-*) 1151 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1152 # Reject names that are not valid shell variable names. 1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1154 as_fn_error "invalid package name: $ac_useropt" 1155 ac_useropt_orig=$ac_useropt 1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1157 case $ac_user_opts in 1158 *" 1159 "with_$ac_useropt" 1160 "*) ;; 1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1162 ac_unrecognized_sep=', ';; 1163 esac 1164 eval with_$ac_useropt=\$ac_optarg ;; 1165 1166 -without-* | --without-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1168 # Reject names that are not valid shell variable names. 1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1170 as_fn_error "invalid package name: $ac_useropt" 1171 ac_useropt_orig=$ac_useropt 1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1173 case $ac_user_opts in 1174 *" 1175 "with_$ac_useropt" 1176 "*) ;; 1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=no ;; 1181 1182 --x) 1183 # Obsolete; use --with-x. 1184 with_x=yes ;; 1185 1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1187 | --x-incl | --x-inc | --x-in | --x-i) 1188 ac_prev=x_includes ;; 1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1191 x_includes=$ac_optarg ;; 1192 1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1195 ac_prev=x_libraries ;; 1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1198 x_libraries=$ac_optarg ;; 1199 1200 -*) as_fn_error "unrecognized option: \`$ac_option' 1201 Try \`$0 --help' for more information." 1202 ;; 1203 1204 *=*) 1205 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1206 # Reject names that are not valid shell variable names. 1207 case $ac_envvar in #( 1208 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1209 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1210 esac 1211 eval $ac_envvar=\$ac_optarg 1212 export $ac_envvar ;; 1213 1214 *) 1215 # FIXME: should be removed in autoconf 3.0. 1216 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1218 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1220 ;; 1221 1222 esac 1223 done 1224 1225 if test -n "$ac_prev"; then 1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1227 as_fn_error "missing argument to $ac_option" 1228 fi 1229 1230 if test -n "$ac_unrecognized_opts"; then 1231 case $enable_option_checking in 1232 no) ;; 1233 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1234 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1235 esac 1236 fi 1237 1238 # Check all directory arguments for consistency. 1239 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1240 datadir sysconfdir sharedstatedir localstatedir includedir \ 1241 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1242 libdir localedir mandir 1243 do 1244 eval ac_val=\$$ac_var 1245 # Remove trailing slashes. 1246 case $ac_val in 1247 */ ) 1248 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1249 eval $ac_var=\$ac_val;; 1250 esac 1251 # Be sure to have absolute directory names. 1252 case $ac_val in 1253 [\\/$]* | ?:[\\/]* ) continue;; 1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1255 esac 1256 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1257 done 1258 1259 # There might be people who depend on the old broken behavior: `$host' 1260 # used to hold the argument of --host etc. 1261 # FIXME: To remove some day. 1262 build=$build_alias 1263 host=$host_alias 1264 target=$target_alias 1265 1266 # FIXME: To remove some day. 1267 if test "x$host_alias" != x; then 1268 if test "x$build_alias" = x; then 1269 cross_compiling=maybe 1270 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1271 If a cross compiler is detected then cross compile mode will be used." >&2 1272 elif test "x$build_alias" != "x$host_alias"; then 1273 cross_compiling=yes 1274 fi 1275 fi 1276 1277 ac_tool_prefix= 1278 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1279 1280 test "$silent" = yes && exec 6>/dev/null 1281 1282 1283 ac_pwd=`pwd` && test -n "$ac_pwd" && 1284 ac_ls_di=`ls -di .` && 1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1286 as_fn_error "working directory cannot be determined" 1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1288 as_fn_error "pwd does not report name of working directory" 1289 1290 1291 # Find the source files, if location was not specified. 1292 if test -z "$srcdir"; then 1293 ac_srcdir_defaulted=yes 1294 # Try the directory containing this script, then the parent directory. 1295 ac_confdir=`$as_dirname -- "$as_myself" || 1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1297 X"$as_myself" : 'X\(//\)[^/]' \| \ 1298 X"$as_myself" : 'X\(//\)$' \| \ 1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1300 $as_echo X"$as_myself" | 1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1302 s//\1/ 1303 q 1304 } 1305 /^X\(\/\/\)[^/].*/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\).*/{ 1314 s//\1/ 1315 q 1316 } 1317 s/.*/./; q'` 1318 srcdir=$ac_confdir 1319 if test ! -r "$srcdir/$ac_unique_file"; then 1320 srcdir=.. 1321 fi 1322 else 1323 ac_srcdir_defaulted=no 1324 fi 1325 if test ! -r "$srcdir/$ac_unique_file"; then 1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1327 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1328 fi 1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1330 ac_abs_confdir=`( 1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1332 pwd)` 1333 # When building in place, set srcdir=. 1334 if test "$ac_abs_confdir" = "$ac_pwd"; then 1335 srcdir=. 1336 fi 1337 # Remove unnecessary trailing slashes from srcdir. 1338 # Double slashes in file names in object file debugging info 1339 # mess up M-x gdb in Emacs. 1340 case $srcdir in 1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1342 esac 1343 for ac_var in $ac_precious_vars; do 1344 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1345 eval ac_env_${ac_var}_value=\$${ac_var} 1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1347 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1348 done 1349 1350 # 1351 # Report the --help message. 1352 # 1353 if test "$ac_init_help" = "long"; then 1354 # Omit some internal or obsolete options to make the list less imposing. 1355 # This message is too long to be a string in the A/UX 3.1 sh. 1356 cat <<_ACEOF 1357 \`configure' configures ld 2.27.0 to adapt to many kinds of systems. 1358 1359 Usage: $0 [OPTION]... [VAR=VALUE]... 1360 1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1362 VAR=VALUE. See below for descriptions of some of the useful variables. 1363 1364 Defaults for the options are specified in brackets. 1365 1366 Configuration: 1367 -h, --help display this help and exit 1368 --help=short display options specific to this package 1369 --help=recursive display the short help of all the included packages 1370 -V, --version display version information and exit 1371 -q, --quiet, --silent do not print \`checking...' messages 1372 --cache-file=FILE cache test results in FILE [disabled] 1373 -C, --config-cache alias for \`--cache-file=config.cache' 1374 -n, --no-create do not create output files 1375 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1376 1377 Installation directories: 1378 --prefix=PREFIX install architecture-independent files in PREFIX 1379 [$ac_default_prefix] 1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1381 [PREFIX] 1382 1383 By default, \`make install' will install all the files in 1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1386 for instance \`--prefix=\$HOME'. 1387 1388 For better control, use the options below. 1389 1390 Fine tuning of the installation directories: 1391 --bindir=DIR user executables [EPREFIX/bin] 1392 --sbindir=DIR system admin executables [EPREFIX/sbin] 1393 --libexecdir=DIR program executables [EPREFIX/libexec] 1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1397 --libdir=DIR object code libraries [EPREFIX/lib] 1398 --includedir=DIR C header files [PREFIX/include] 1399 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1400 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1401 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1402 --infodir=DIR info documentation [DATAROOTDIR/info] 1403 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1404 --mandir=DIR man documentation [DATAROOTDIR/man] 1405 --docdir=DIR documentation root [DATAROOTDIR/doc/ld] 1406 --htmldir=DIR html documentation [DOCDIR] 1407 --dvidir=DIR dvi documentation [DOCDIR] 1408 --pdfdir=DIR pdf documentation [DOCDIR] 1409 --psdir=DIR ps documentation [DOCDIR] 1410 _ACEOF 1411 1412 cat <<\_ACEOF 1413 1414 Program names: 1415 --program-prefix=PREFIX prepend PREFIX to installed program names 1416 --program-suffix=SUFFIX append SUFFIX to installed program names 1417 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1418 1419 System types: 1420 --build=BUILD configure for building on BUILD [guessed] 1421 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1422 --target=TARGET configure for building compilers for TARGET [HOST] 1423 _ACEOF 1424 fi 1425 1426 if test -n "$ac_init_help"; then 1427 case $ac_init_help in 1428 short | recursive ) echo "Configuration of ld 2.27.0:";; 1429 esac 1430 cat <<\_ACEOF 1431 1432 Optional Features: 1433 --disable-option-checking ignore unrecognized --enable/--with options 1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1436 --disable-dependency-tracking speeds up one-time build 1437 --enable-dependency-tracking do not reject slow dependency extractors 1438 --enable-maintainer-mode enable make rules and dependencies not useful 1439 (and sometimes confusing) to the casual installer 1440 --enable-shared[=PKGS] build shared libraries [default=yes] 1441 --enable-static[=PKGS] build static libraries [default=yes] 1442 --enable-fast-install[=PKGS] 1443 optimize for fast installation [default=yes] 1444 --disable-libtool-lock avoid locking (might break parallel builds) 1445 --enable-plugins Enable support for plugins 1446 --disable-largefile omit support for large files 1447 --enable-targets alternative target configurations 1448 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) 1449 --enable-poison-system-directories 1450 warn for use of native system library directories 1451 --enable-gold[=ARG] build gold [ARG={default,yes,no}] 1452 --enable-got=<type> GOT handling scheme (target, single, negative, 1453 multigot) 1454 --enable-compressed-debug-sections={all,ld,none} 1455 compress debug sections by default] 1456 --enable-relro enable -z relro in ELF linker by default 1457 --enable-werror treat compile warnings as errors 1458 --enable-build-warnings enable build-time compiler warnings 1459 --disable-nls do not use Native Language Support 1460 --disable-initfini-array do not use .init_array/.fini_array sections 1461 1462 Optional Packages: 1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1465 --with-pic try to use only PIC/non-PIC objects [default=use 1466 both] 1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1468 --with-lib-path=dir1:dir2... set default LIB_PATH 1469 --with-sysroot=DIR Search for usr/lib et al within DIR. 1470 1471 Some influential environment variables: 1472 CC C compiler command 1473 CFLAGS C compiler flags 1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 nonstandard directory <lib dir> 1476 LIBS libraries to pass to the linker, e.g. -l<library> 1477 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1478 you have headers in a nonstandard directory <include dir> 1479 CXX C++ compiler command 1480 CXXFLAGS C++ compiler flags 1481 CPP C preprocessor 1482 CXXCPP C++ preprocessor 1483 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1484 the first program found out of: `bison -y', `byacc', `yacc'. 1485 YFLAGS The list of arguments that will be passed by default to $YACC. 1486 This script will default YFLAGS to the empty string to avoid a 1487 default value of `-d' given by some make applications. 1488 1489 Use these variables to override the choices made by `configure' or to help 1490 it to find libraries and programs with nonstandard names/locations. 1491 1492 Report bugs to the package provider. 1493 _ACEOF 1494 ac_status=$? 1495 fi 1496 1497 if test "$ac_init_help" = "recursive"; then 1498 # If there are subdirs, report their specific --help. 1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1500 test -d "$ac_dir" || 1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1502 continue 1503 ac_builddir=. 1504 1505 case "$ac_dir" in 1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1507 *) 1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1509 # A ".." for each directory in $ac_dir_suffix. 1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1511 case $ac_top_builddir_sub in 1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1514 esac ;; 1515 esac 1516 ac_abs_top_builddir=$ac_pwd 1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1518 # for backward compatibility: 1519 ac_top_builddir=$ac_top_build_prefix 1520 1521 case $srcdir in 1522 .) # We are building in place. 1523 ac_srcdir=. 1524 ac_top_srcdir=$ac_top_builddir_sub 1525 ac_abs_top_srcdir=$ac_pwd ;; 1526 [\\/]* | ?:[\\/]* ) # Absolute name. 1527 ac_srcdir=$srcdir$ac_dir_suffix; 1528 ac_top_srcdir=$srcdir 1529 ac_abs_top_srcdir=$srcdir ;; 1530 *) # Relative name. 1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1532 ac_top_srcdir=$ac_top_build_prefix$srcdir 1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1534 esac 1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1536 1537 cd "$ac_dir" || { ac_status=$?; continue; } 1538 # Check for guested configure. 1539 if test -f "$ac_srcdir/configure.gnu"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1542 elif test -f "$ac_srcdir/configure"; then 1543 echo && 1544 $SHELL "$ac_srcdir/configure" --help=recursive 1545 else 1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1547 fi || ac_status=$? 1548 cd "$ac_pwd" || { ac_status=$?; break; } 1549 done 1550 fi 1551 1552 test -n "$ac_init_help" && exit $ac_status 1553 if $ac_init_version; then 1554 cat <<\_ACEOF 1555 ld configure 2.27.0 1556 generated by GNU Autoconf 2.64 1557 1558 Copyright (C) 2009 Free Software Foundation, Inc. 1559 This configure script is free software; the Free Software Foundation 1560 gives unlimited permission to copy, distribute and modify it. 1561 _ACEOF 1562 exit 1563 fi 1564 1565 ## ------------------------ ## 1566 ## Autoconf initialization. ## 1567 ## ------------------------ ## 1568 1569 # ac_fn_c_try_compile LINENO 1570 # -------------------------- 1571 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1572 ac_fn_c_try_compile () 1573 { 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 rm -f conftest.$ac_objext 1576 if { { ac_try="$ac_compile" 1577 case "(($ac_try" in 1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1579 *) ac_try_echo=$ac_try;; 1580 esac 1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1582 $as_echo "$ac_try_echo"; } >&5 1583 (eval "$ac_compile") 2>conftest.err 1584 ac_status=$? 1585 if test -s conftest.err; then 1586 grep -v '^ *+' conftest.err >conftest.er1 1587 cat conftest.er1 >&5 1588 mv -f conftest.er1 conftest.err 1589 fi 1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1591 test $ac_status = 0; } && { 1592 test -z "$ac_c_werror_flag" || 1593 test ! -s conftest.err 1594 } && test -s conftest.$ac_objext; then : 1595 ac_retval=0 1596 else 1597 $as_echo "$as_me: failed program was:" >&5 1598 sed 's/^/| /' conftest.$ac_ext >&5 1599 1600 ac_retval=1 1601 fi 1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1603 return $ac_retval 1604 1605 } # ac_fn_c_try_compile 1606 1607 # ac_fn_c_try_link LINENO 1608 # ----------------------- 1609 # Try to link conftest.$ac_ext, and return whether this succeeded. 1610 ac_fn_c_try_link () 1611 { 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 rm -f conftest.$ac_objext conftest$ac_exeext 1614 if { { ac_try="$ac_link" 1615 case "(($ac_try" in 1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1617 *) ac_try_echo=$ac_try;; 1618 esac 1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1620 $as_echo "$ac_try_echo"; } >&5 1621 (eval "$ac_link") 2>conftest.err 1622 ac_status=$? 1623 if test -s conftest.err; then 1624 grep -v '^ *+' conftest.err >conftest.er1 1625 cat conftest.er1 >&5 1626 mv -f conftest.er1 conftest.err 1627 fi 1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1629 test $ac_status = 0; } && { 1630 test -z "$ac_c_werror_flag" || 1631 test ! -s conftest.err 1632 } && test -s conftest$ac_exeext && { 1633 test "$cross_compiling" = yes || 1634 $as_test_x conftest$ac_exeext 1635 }; then : 1636 ac_retval=0 1637 else 1638 $as_echo "$as_me: failed program was:" >&5 1639 sed 's/^/| /' conftest.$ac_ext >&5 1640 1641 ac_retval=1 1642 fi 1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1645 # interfere with the next link command; also delete a directory that is 1646 # left behind by Apple's compiler. We do this before executing the actions. 1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1649 return $ac_retval 1650 1651 } # ac_fn_c_try_link 1652 1653 # ac_fn_cxx_try_compile LINENO 1654 # ---------------------------- 1655 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1656 ac_fn_cxx_try_compile () 1657 { 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 rm -f conftest.$ac_objext 1660 if { { ac_try="$ac_compile" 1661 case "(($ac_try" in 1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1663 *) ac_try_echo=$ac_try;; 1664 esac 1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1666 $as_echo "$ac_try_echo"; } >&5 1667 (eval "$ac_compile") 2>conftest.err 1668 ac_status=$? 1669 if test -s conftest.err; then 1670 grep -v '^ *+' conftest.err >conftest.er1 1671 cat conftest.er1 >&5 1672 mv -f conftest.er1 conftest.err 1673 fi 1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1675 test $ac_status = 0; } && { 1676 test -z "$ac_cxx_werror_flag" || 1677 test ! -s conftest.err 1678 } && test -s conftest.$ac_objext; then : 1679 ac_retval=0 1680 else 1681 $as_echo "$as_me: failed program was:" >&5 1682 sed 's/^/| /' conftest.$ac_ext >&5 1683 1684 ac_retval=1 1685 fi 1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1687 return $ac_retval 1688 1689 } # ac_fn_cxx_try_compile 1690 1691 # ac_fn_c_try_cpp LINENO 1692 # ---------------------- 1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1694 ac_fn_c_try_cpp () 1695 { 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if { { ac_try="$ac_cpp conftest.$ac_ext" 1698 case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701 esac 1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703 $as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1705 ac_status=$? 1706 if test -s conftest.err; then 1707 grep -v '^ *+' conftest.err >conftest.er1 1708 cat conftest.er1 >&5 1709 mv -f conftest.er1 conftest.err 1710 fi 1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1712 test $ac_status = 0; } >/dev/null && { 1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1714 test ! -s conftest.err 1715 }; then : 1716 ac_retval=0 1717 else 1718 $as_echo "$as_me: failed program was:" >&5 1719 sed 's/^/| /' conftest.$ac_ext >&5 1720 1721 ac_retval=1 1722 fi 1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1724 return $ac_retval 1725 1726 } # ac_fn_c_try_cpp 1727 1728 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1729 # ------------------------------------------------------- 1730 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1731 # the include files in INCLUDES and setting the cache variable VAR 1732 # accordingly. 1733 ac_fn_c_check_header_mongrel () 1734 { 1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1738 $as_echo_n "checking for $2... " >&6; } 1739 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1740 $as_echo_n "(cached) " >&6 1741 fi 1742 eval ac_res=\$$3 1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1744 $as_echo "$ac_res" >&6; } 1745 else 1746 # Is the header compilable? 1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1748 $as_echo_n "checking $2 usability... " >&6; } 1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1750 /* end confdefs.h. */ 1751 $4 1752 #include <$2> 1753 _ACEOF 1754 if ac_fn_c_try_compile "$LINENO"; then : 1755 ac_header_compiler=yes 1756 else 1757 ac_header_compiler=no 1758 fi 1759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1761 $as_echo "$ac_header_compiler" >&6; } 1762 1763 # Is the header present? 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1765 $as_echo_n "checking $2 presence... " >&6; } 1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1767 /* end confdefs.h. */ 1768 #include <$2> 1769 _ACEOF 1770 if ac_fn_c_try_cpp "$LINENO"; then : 1771 ac_header_preproc=yes 1772 else 1773 ac_header_preproc=no 1774 fi 1775 rm -f conftest.err conftest.$ac_ext 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1777 $as_echo "$ac_header_preproc" >&6; } 1778 1779 # So? What about this header? 1780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1781 yes:no: ) 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1783 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1785 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1786 ;; 1787 no:yes:* ) 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1789 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1791 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1793 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1795 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1798 ;; 1799 esac 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1801 $as_echo_n "checking for $2... " >&6; } 1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1803 $as_echo_n "(cached) " >&6 1804 else 1805 eval "$3=\$ac_header_compiler" 1806 fi 1807 eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809 $as_echo "$ac_res" >&6; } 1810 fi 1811 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1812 1813 } # ac_fn_c_check_header_mongrel 1814 1815 # ac_fn_c_try_run LINENO 1816 # ---------------------- 1817 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1818 # that executables *can* be run. 1819 ac_fn_c_try_run () 1820 { 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 if { { ac_try="$ac_link" 1823 case "(($ac_try" in 1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1825 *) ac_try_echo=$ac_try;; 1826 esac 1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1828 $as_echo "$ac_try_echo"; } >&5 1829 (eval "$ac_link") 2>&5 1830 ac_status=$? 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1833 { { case "(($ac_try" in 1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1835 *) ac_try_echo=$ac_try;; 1836 esac 1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1838 $as_echo "$ac_try_echo"; } >&5 1839 (eval "$ac_try") 2>&5 1840 ac_status=$? 1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1842 test $ac_status = 0; }; }; then : 1843 ac_retval=0 1844 else 1845 $as_echo "$as_me: program exited with status $ac_status" >&5 1846 $as_echo "$as_me: failed program was:" >&5 1847 sed 's/^/| /' conftest.$ac_ext >&5 1848 1849 ac_retval=$ac_status 1850 fi 1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1853 return $ac_retval 1854 1855 } # ac_fn_c_try_run 1856 1857 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1858 # ------------------------------------------------------- 1859 # Tests whether HEADER exists and can be compiled using the include files in 1860 # INCLUDES, setting the cache variable VAR accordingly. 1861 ac_fn_c_check_header_compile () 1862 { 1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865 $as_echo_n "checking for $2... " >&6; } 1866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1867 $as_echo_n "(cached) " >&6 1868 else 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870 /* end confdefs.h. */ 1871 $4 1872 #include <$2> 1873 _ACEOF 1874 if ac_fn_c_try_compile "$LINENO"; then : 1875 eval "$3=yes" 1876 else 1877 eval "$3=no" 1878 fi 1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1880 fi 1881 eval ac_res=\$$3 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1883 $as_echo "$ac_res" >&6; } 1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1885 1886 } # ac_fn_c_check_header_compile 1887 1888 # ac_fn_c_check_func LINENO FUNC VAR 1889 # ---------------------------------- 1890 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1891 ac_fn_c_check_func () 1892 { 1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1895 $as_echo_n "checking for $2... " >&6; } 1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1897 $as_echo_n "(cached) " >&6 1898 else 1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1900 /* end confdefs.h. */ 1901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1903 #define $2 innocuous_$2 1904 1905 /* System header to define __stub macros and hopefully few prototypes, 1906 which can conflict with char $2 (); below. 1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1908 <limits.h> exists even on freestanding compilers. */ 1909 1910 #ifdef __STDC__ 1911 # include <limits.h> 1912 #else 1913 # include <assert.h> 1914 #endif 1915 1916 #undef $2 1917 1918 /* Override any GCC internal prototype to avoid an error. 1919 Use char because int might match the return type of a GCC 1920 builtin and then its argument prototype would still apply. */ 1921 #ifdef __cplusplus 1922 extern "C" 1923 #endif 1924 char $2 (); 1925 /* The GNU C library defines this for functions which it implements 1926 to always fail with ENOSYS. Some functions are actually named 1927 something starting with __ and the normal name is an alias. */ 1928 #if defined __stub_$2 || defined __stub___$2 1929 choke me 1930 #endif 1931 1932 int 1933 main () 1934 { 1935 return $2 (); 1936 ; 1937 return 0; 1938 } 1939 _ACEOF 1940 if ac_fn_c_try_link "$LINENO"; then : 1941 eval "$3=yes" 1942 else 1943 eval "$3=no" 1944 fi 1945 rm -f core conftest.err conftest.$ac_objext \ 1946 conftest$ac_exeext conftest.$ac_ext 1947 fi 1948 eval ac_res=\$$3 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1950 $as_echo "$ac_res" >&6; } 1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1952 1953 } # ac_fn_c_check_func 1954 1955 # ac_fn_cxx_try_cpp LINENO 1956 # ------------------------ 1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1958 ac_fn_cxx_try_cpp () 1959 { 1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1961 if { { ac_try="$ac_cpp conftest.$ac_ext" 1962 case "(($ac_try" in 1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1964 *) ac_try_echo=$ac_try;; 1965 esac 1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1967 $as_echo "$ac_try_echo"; } >&5 1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1969 ac_status=$? 1970 if test -s conftest.err; then 1971 grep -v '^ *+' conftest.err >conftest.er1 1972 cat conftest.er1 >&5 1973 mv -f conftest.er1 conftest.err 1974 fi 1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1976 test $ac_status = 0; } >/dev/null && { 1977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1978 test ! -s conftest.err 1979 }; then : 1980 ac_retval=0 1981 else 1982 $as_echo "$as_me: failed program was:" >&5 1983 sed 's/^/| /' conftest.$ac_ext >&5 1984 1985 ac_retval=1 1986 fi 1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1988 return $ac_retval 1989 1990 } # ac_fn_cxx_try_cpp 1991 1992 # ac_fn_cxx_try_link LINENO 1993 # ------------------------- 1994 # Try to link conftest.$ac_ext, and return whether this succeeded. 1995 ac_fn_cxx_try_link () 1996 { 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 rm -f conftest.$ac_objext conftest$ac_exeext 1999 if { { ac_try="$ac_link" 2000 case "(($ac_try" in 2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2002 *) ac_try_echo=$ac_try;; 2003 esac 2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2005 $as_echo "$ac_try_echo"; } >&5 2006 (eval "$ac_link") 2>conftest.err 2007 ac_status=$? 2008 if test -s conftest.err; then 2009 grep -v '^ *+' conftest.err >conftest.er1 2010 cat conftest.er1 >&5 2011 mv -f conftest.er1 conftest.err 2012 fi 2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2014 test $ac_status = 0; } && { 2015 test -z "$ac_cxx_werror_flag" || 2016 test ! -s conftest.err 2017 } && test -s conftest$ac_exeext && { 2018 test "$cross_compiling" = yes || 2019 $as_test_x conftest$ac_exeext 2020 }; then : 2021 ac_retval=0 2022 else 2023 $as_echo "$as_me: failed program was:" >&5 2024 sed 's/^/| /' conftest.$ac_ext >&5 2025 2026 ac_retval=1 2027 fi 2028 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2029 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2030 # interfere with the next link command; also delete a directory that is 2031 # left behind by Apple's compiler. We do this before executing the actions. 2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2034 return $ac_retval 2035 2036 } # ac_fn_cxx_try_link 2037 2038 # ac_fn_c_check_decl LINENO SYMBOL VAR 2039 # ------------------------------------ 2040 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2041 ac_fn_c_check_decl () 2042 { 2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2044 as_decl_name=`echo $2|sed 's/ *(.*//'` 2045 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2047 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2048 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2049 $as_echo_n "(cached) " >&6 2050 else 2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2052 /* end confdefs.h. */ 2053 $4 2054 int 2055 main () 2056 { 2057 #ifndef $as_decl_name 2058 #ifdef __cplusplus 2059 (void) $as_decl_use; 2060 #else 2061 (void) $as_decl_name; 2062 #endif 2063 #endif 2064 2065 ; 2066 return 0; 2067 } 2068 _ACEOF 2069 if ac_fn_c_try_compile "$LINENO"; then : 2070 eval "$3=yes" 2071 else 2072 eval "$3=no" 2073 fi 2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2075 fi 2076 eval ac_res=\$$3 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2078 $as_echo "$ac_res" >&6; } 2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2080 2081 } # ac_fn_c_check_decl 2082 2083 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2084 # -------------------------------------------- 2085 # Tries to find the compile-time value of EXPR in a program that includes 2086 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2087 # computed 2088 ac_fn_c_compute_int () 2089 { 2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2091 if test "$cross_compiling" = yes; then 2092 # Depending upon the size, compute the lo and hi bounds. 2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2094 /* end confdefs.h. */ 2095 $4 2096 int 2097 main () 2098 { 2099 static int test_array [1 - 2 * !(($2) >= 0)]; 2100 test_array [0] = 0 2101 2102 ; 2103 return 0; 2104 } 2105 _ACEOF 2106 if ac_fn_c_try_compile "$LINENO"; then : 2107 ac_lo=0 ac_mid=0 2108 while :; do 2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2110 /* end confdefs.h. */ 2111 $4 2112 int 2113 main () 2114 { 2115 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2116 test_array [0] = 0 2117 2118 ; 2119 return 0; 2120 } 2121 _ACEOF 2122 if ac_fn_c_try_compile "$LINENO"; then : 2123 ac_hi=$ac_mid; break 2124 else 2125 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2126 if test $ac_lo -le $ac_mid; then 2127 ac_lo= ac_hi= 2128 break 2129 fi 2130 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2131 fi 2132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2133 done 2134 else 2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2136 /* end confdefs.h. */ 2137 $4 2138 int 2139 main () 2140 { 2141 static int test_array [1 - 2 * !(($2) < 0)]; 2142 test_array [0] = 0 2143 2144 ; 2145 return 0; 2146 } 2147 _ACEOF 2148 if ac_fn_c_try_compile "$LINENO"; then : 2149 ac_hi=-1 ac_mid=-1 2150 while :; do 2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2152 /* end confdefs.h. */ 2153 $4 2154 int 2155 main () 2156 { 2157 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2158 test_array [0] = 0 2159 2160 ; 2161 return 0; 2162 } 2163 _ACEOF 2164 if ac_fn_c_try_compile "$LINENO"; then : 2165 ac_lo=$ac_mid; break 2166 else 2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2168 if test $ac_mid -le $ac_hi; then 2169 ac_lo= ac_hi= 2170 break 2171 fi 2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2173 fi 2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2175 done 2176 else 2177 ac_lo= ac_hi= 2178 fi 2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2180 fi 2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2182 # Binary search between lo and hi bounds. 2183 while test "x$ac_lo" != "x$ac_hi"; do 2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186 /* end confdefs.h. */ 2187 $4 2188 int 2189 main () 2190 { 2191 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2192 test_array [0] = 0 2193 2194 ; 2195 return 0; 2196 } 2197 _ACEOF 2198 if ac_fn_c_try_compile "$LINENO"; then : 2199 ac_hi=$ac_mid 2200 else 2201 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2202 fi 2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2204 done 2205 case $ac_lo in #(( 2206 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2207 '') ac_retval=1 ;; 2208 esac 2209 else 2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2211 /* end confdefs.h. */ 2212 $4 2213 static long int longval () { return $2; } 2214 static unsigned long int ulongval () { return $2; } 2215 #include <stdio.h> 2216 #include <stdlib.h> 2217 int 2218 main () 2219 { 2220 2221 FILE *f = fopen ("conftest.val", "w"); 2222 if (! f) 2223 return 1; 2224 if (($2) < 0) 2225 { 2226 long int i = longval (); 2227 if (i != ($2)) 2228 return 1; 2229 fprintf (f, "%ld", i); 2230 } 2231 else 2232 { 2233 unsigned long int i = ulongval (); 2234 if (i != ($2)) 2235 return 1; 2236 fprintf (f, "%lu", i); 2237 } 2238 /* Do not output a trailing newline, as this causes \r\n confusion 2239 on some platforms. */ 2240 return ferror (f) || fclose (f) != 0; 2241 2242 ; 2243 return 0; 2244 } 2245 _ACEOF 2246 if ac_fn_c_try_run "$LINENO"; then : 2247 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2248 else 2249 ac_retval=1 2250 fi 2251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2252 conftest.$ac_objext conftest.beam conftest.$ac_ext 2253 rm -f conftest.val 2254 2255 fi 2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2257 return $ac_retval 2258 2259 } # ac_fn_c_compute_int 2260 cat >config.log <<_ACEOF 2261 This file contains any messages produced by compilers while 2262 running configure, to aid debugging if configure makes a mistake. 2263 2264 It was created by ld $as_me 2.27.0, which was 2265 generated by GNU Autoconf 2.64. Invocation command line was 2266 2267 $ $0 $@ 2268 2269 _ACEOF 2270 exec 5>>config.log 2271 { 2272 cat <<_ASUNAME 2273 ## --------- ## 2274 ## Platform. ## 2275 ## --------- ## 2276 2277 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2278 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2279 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2280 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2281 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2282 2283 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2284 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2285 2286 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2287 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2288 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2289 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2290 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2291 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2292 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2293 2294 _ASUNAME 2295 2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2297 for as_dir in $PATH 2298 do 2299 IFS=$as_save_IFS 2300 test -z "$as_dir" && as_dir=. 2301 $as_echo "PATH: $as_dir" 2302 done 2303 IFS=$as_save_IFS 2304 2305 } >&5 2306 2307 cat >&5 <<_ACEOF 2308 2309 2310 ## ----------- ## 2311 ## Core tests. ## 2312 ## ----------- ## 2313 2314 _ACEOF 2315 2316 2317 # Keep a trace of the command line. 2318 # Strip out --no-create and --no-recursion so they do not pile up. 2319 # Strip out --silent because we don't want to record it for future runs. 2320 # Also quote any args containing shell meta-characters. 2321 # Make two passes to allow for proper duplicate-argument suppression. 2322 ac_configure_args= 2323 ac_configure_args0= 2324 ac_configure_args1= 2325 ac_must_keep_next=false 2326 for ac_pass in 1 2 2327 do 2328 for ac_arg 2329 do 2330 case $ac_arg in 2331 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2333 | -silent | --silent | --silen | --sile | --sil) 2334 continue ;; 2335 *\'*) 2336 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2337 esac 2338 case $ac_pass in 2339 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2340 2) 2341 as_fn_append ac_configure_args1 " '$ac_arg'" 2342 if test $ac_must_keep_next = true; then 2343 ac_must_keep_next=false # Got value, back to normal. 2344 else 2345 case $ac_arg in 2346 *=* | --config-cache | -C | -disable-* | --disable-* \ 2347 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2348 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2349 | -with-* | --with-* | -without-* | --without-* | --x) 2350 case "$ac_configure_args0 " in 2351 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2352 esac 2353 ;; 2354 -* ) ac_must_keep_next=true ;; 2355 esac 2356 fi 2357 as_fn_append ac_configure_args " '$ac_arg'" 2358 ;; 2359 esac 2360 done 2361 done 2362 { ac_configure_args0=; unset ac_configure_args0;} 2363 { ac_configure_args1=; unset ac_configure_args1;} 2364 2365 # When interrupted or exit'd, cleanup temporary files, and complete 2366 # config.log. We remove comments because anyway the quotes in there 2367 # would cause problems or look ugly. 2368 # WARNING: Use '\'' to represent an apostrophe within the trap. 2369 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2370 trap 'exit_status=$? 2371 # Save into config.log some information that might help in debugging. 2372 { 2373 echo 2374 2375 cat <<\_ASBOX 2376 ## ---------------- ## 2377 ## Cache variables. ## 2378 ## ---------------- ## 2379 _ASBOX 2380 echo 2381 # The following way of writing the cache mishandles newlines in values, 2382 ( 2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2384 eval ac_val=\$$ac_var 2385 case $ac_val in #( 2386 *${as_nl}*) 2387 case $ac_var in #( 2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2389 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2390 esac 2391 case $ac_var in #( 2392 _ | IFS | as_nl) ;; #( 2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2394 *) { eval $ac_var=; unset $ac_var;} ;; 2395 esac ;; 2396 esac 2397 done 2398 (set) 2>&1 | 2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2400 *${as_nl}ac_space=\ *) 2401 sed -n \ 2402 "s/'\''/'\''\\\\'\'''\''/g; 2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2404 ;; #( 2405 *) 2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2407 ;; 2408 esac | 2409 sort 2410 ) 2411 echo 2412 2413 cat <<\_ASBOX 2414 ## ----------------- ## 2415 ## Output variables. ## 2416 ## ----------------- ## 2417 _ASBOX 2418 echo 2419 for ac_var in $ac_subst_vars 2420 do 2421 eval ac_val=\$$ac_var 2422 case $ac_val in 2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2424 esac 2425 $as_echo "$ac_var='\''$ac_val'\''" 2426 done | sort 2427 echo 2428 2429 if test -n "$ac_subst_files"; then 2430 cat <<\_ASBOX 2431 ## ------------------- ## 2432 ## File substitutions. ## 2433 ## ------------------- ## 2434 _ASBOX 2435 echo 2436 for ac_var in $ac_subst_files 2437 do 2438 eval ac_val=\$$ac_var 2439 case $ac_val in 2440 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2441 esac 2442 $as_echo "$ac_var='\''$ac_val'\''" 2443 done | sort 2444 echo 2445 fi 2446 2447 if test -s confdefs.h; then 2448 cat <<\_ASBOX 2449 ## ----------- ## 2450 ## confdefs.h. ## 2451 ## ----------- ## 2452 _ASBOX 2453 echo 2454 cat confdefs.h 2455 echo 2456 fi 2457 test "$ac_signal" != 0 && 2458 $as_echo "$as_me: caught signal $ac_signal" 2459 $as_echo "$as_me: exit $exit_status" 2460 } >&5 2461 rm -f core *.core core.conftest.* && 2462 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2463 exit $exit_status 2464 ' 0 2465 for ac_signal in 1 2 13 15; do 2466 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2467 done 2468 ac_signal=0 2469 2470 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2471 rm -f -r conftest* confdefs.h 2472 2473 $as_echo "/* confdefs.h */" > confdefs.h 2474 2475 # Predefined preprocessor variables. 2476 2477 cat >>confdefs.h <<_ACEOF 2478 #define PACKAGE_NAME "$PACKAGE_NAME" 2479 _ACEOF 2480 2481 cat >>confdefs.h <<_ACEOF 2482 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2483 _ACEOF 2484 2485 cat >>confdefs.h <<_ACEOF 2486 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2487 _ACEOF 2488 2489 cat >>confdefs.h <<_ACEOF 2490 #define PACKAGE_STRING "$PACKAGE_STRING" 2491 _ACEOF 2492 2493 cat >>confdefs.h <<_ACEOF 2494 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2495 _ACEOF 2496 2497 cat >>confdefs.h <<_ACEOF 2498 #define PACKAGE_URL "$PACKAGE_URL" 2499 _ACEOF 2500 2501 2502 # Let the site file select an alternate cache file if it wants to. 2503 # Prefer an explicitly selected file to automatically selected ones. 2504 ac_site_file1=NONE 2505 ac_site_file2=NONE 2506 if test -n "$CONFIG_SITE"; then 2507 ac_site_file1=$CONFIG_SITE 2508 elif test "x$prefix" != xNONE; then 2509 ac_site_file1=$prefix/share/config.site 2510 ac_site_file2=$prefix/etc/config.site 2511 else 2512 ac_site_file1=$ac_default_prefix/share/config.site 2513 ac_site_file2=$ac_default_prefix/etc/config.site 2514 fi 2515 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2516 do 2517 test "x$ac_site_file" = xNONE && continue 2518 if test -r "$ac_site_file"; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2520 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2521 sed 's/^/| /' "$ac_site_file" >&5 2522 . "$ac_site_file" 2523 fi 2524 done 2525 2526 if test -r "$cache_file"; then 2527 # Some versions of bash will fail to source /dev/null (special 2528 # files actually), so we avoid doing that. 2529 if test -f "$cache_file"; then 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2531 $as_echo "$as_me: loading cache $cache_file" >&6;} 2532 case $cache_file in 2533 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2534 *) . "./$cache_file";; 2535 esac 2536 fi 2537 else 2538 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2539 $as_echo "$as_me: creating cache $cache_file" >&6;} 2540 >$cache_file 2541 fi 2542 2543 # Check that the precious variables saved in the cache have kept the same 2544 # value. 2545 ac_cache_corrupted=false 2546 for ac_var in $ac_precious_vars; do 2547 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2548 eval ac_new_set=\$ac_env_${ac_var}_set 2549 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2550 eval ac_new_val=\$ac_env_${ac_var}_value 2551 case $ac_old_set,$ac_new_set in 2552 set,) 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2554 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2555 ac_cache_corrupted=: ;; 2556 ,set) 2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2558 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2559 ac_cache_corrupted=: ;; 2560 ,);; 2561 *) 2562 if test "x$ac_old_val" != "x$ac_new_val"; then 2563 # differences in whitespace do not lead to failure. 2564 ac_old_val_w=`echo x $ac_old_val` 2565 ac_new_val_w=`echo x $ac_new_val` 2566 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2568 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2569 ac_cache_corrupted=: 2570 else 2571 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2572 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2573 eval $ac_var=\$ac_old_val 2574 fi 2575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2576 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2578 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2579 fi;; 2580 esac 2581 # Pass precious variables to config.status. 2582 if test "$ac_new_set" = set; then 2583 case $ac_new_val in 2584 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2585 *) ac_arg=$ac_var=$ac_new_val ;; 2586 esac 2587 case " $ac_configure_args " in 2588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2589 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2590 esac 2591 fi 2592 done 2593 if $ac_cache_corrupted; then 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2597 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2598 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2599 fi 2600 ## -------------------- ## 2601 ## Main body of script. ## 2602 ## -------------------- ## 2603 2604 ac_ext=c 2605 ac_cpp='$CPP $CPPFLAGS' 2606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2608 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2609 2610 2611 2612 2613 2614 2615 2616 ac_aux_dir= 2617 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2618 for ac_t in install-sh install.sh shtool; do 2619 if test -f "$ac_dir/$ac_t"; then 2620 ac_aux_dir=$ac_dir 2621 ac_install_sh="$ac_aux_dir/$ac_t -c" 2622 break 2 2623 fi 2624 done 2625 done 2626 if test -z "$ac_aux_dir"; then 2627 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2628 fi 2629 2630 # These three variables are undocumented and unsupported, 2631 # and are intended to be withdrawn in a future Autoconf release. 2632 # They can cause serious problems if a builder's source tree is in a directory 2633 # whose full name contains unusual characters. 2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2637 2638 2639 # Make sure we can run config.sub. 2640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2641 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2642 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2644 $as_echo_n "checking build system type... " >&6; } 2645 if test "${ac_cv_build+set}" = set; then : 2646 $as_echo_n "(cached) " >&6 2647 else 2648 ac_build_alias=$build_alias 2649 test "x$ac_build_alias" = x && 2650 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2651 test "x$ac_build_alias" = x && 2652 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2653 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2654 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2655 2656 fi 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2658 $as_echo "$ac_cv_build" >&6; } 2659 case $ac_cv_build in 2660 *-*-*) ;; 2661 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2662 esac 2663 build=$ac_cv_build 2664 ac_save_IFS=$IFS; IFS='-' 2665 set x $ac_cv_build 2666 shift 2667 build_cpu=$1 2668 build_vendor=$2 2669 shift; shift 2670 # Remember, the first character of IFS is used to create $*, 2671 # except with old shells: 2672 build_os=$* 2673 IFS=$ac_save_IFS 2674 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2675 2676 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2678 $as_echo_n "checking host system type... " >&6; } 2679 if test "${ac_cv_host+set}" = set; then : 2680 $as_echo_n "(cached) " >&6 2681 else 2682 if test "x$host_alias" = x; then 2683 ac_cv_host=$ac_cv_build 2684 else 2685 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2686 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2687 fi 2688 2689 fi 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2691 $as_echo "$ac_cv_host" >&6; } 2692 case $ac_cv_host in 2693 *-*-*) ;; 2694 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2695 esac 2696 host=$ac_cv_host 2697 ac_save_IFS=$IFS; IFS='-' 2698 set x $ac_cv_host 2699 shift 2700 host_cpu=$1 2701 host_vendor=$2 2702 shift; shift 2703 # Remember, the first character of IFS is used to create $*, 2704 # except with old shells: 2705 host_os=$* 2706 IFS=$ac_save_IFS 2707 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2708 2709 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2711 $as_echo_n "checking target system type... " >&6; } 2712 if test "${ac_cv_target+set}" = set; then : 2713 $as_echo_n "(cached) " >&6 2714 else 2715 if test "x$target_alias" = x; then 2716 ac_cv_target=$ac_cv_host 2717 else 2718 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2719 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2720 fi 2721 2722 fi 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2724 $as_echo "$ac_cv_target" >&6; } 2725 case $ac_cv_target in 2726 *-*-*) ;; 2727 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2728 esac 2729 target=$ac_cv_target 2730 ac_save_IFS=$IFS; IFS='-' 2731 set x $ac_cv_target 2732 shift 2733 target_cpu=$1 2734 target_vendor=$2 2735 shift; shift 2736 # Remember, the first character of IFS is used to create $*, 2737 # except with old shells: 2738 target_os=$* 2739 IFS=$ac_save_IFS 2740 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2741 2742 2743 # The aliases save the names the user supplied, while $host etc. 2744 # will get canonicalized. 2745 test -n "$target_alias" && 2746 test "$program_prefix$program_suffix$program_transform_name" = \ 2747 NONENONEs,x,x, && 2748 program_prefix=${target_alias}- 2749 2750 ac_ext=c 2751 ac_cpp='$CPP $CPPFLAGS' 2752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2754 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2755 if test -n "$ac_tool_prefix"; then 2756 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2757 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2759 $as_echo_n "checking for $ac_word... " >&6; } 2760 if test "${ac_cv_prog_CC+set}" = set; then : 2761 $as_echo_n "(cached) " >&6 2762 else 2763 if test -n "$CC"; then 2764 ac_cv_prog_CC="$CC" # Let the user override the test. 2765 else 2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767 for as_dir in $PATH 2768 do 2769 IFS=$as_save_IFS 2770 test -z "$as_dir" && as_dir=. 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2773 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2775 break 2 2776 fi 2777 done 2778 done 2779 IFS=$as_save_IFS 2780 2781 fi 2782 fi 2783 CC=$ac_cv_prog_CC 2784 if test -n "$CC"; then 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2786 $as_echo "$CC" >&6; } 2787 else 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2789 $as_echo "no" >&6; } 2790 fi 2791 2792 2793 fi 2794 if test -z "$ac_cv_prog_CC"; then 2795 ac_ct_CC=$CC 2796 # Extract the first word of "gcc", so it can be a program name with args. 2797 set dummy gcc; ac_word=$2 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2799 $as_echo_n "checking for $ac_word... " >&6; } 2800 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2801 $as_echo_n "(cached) " >&6 2802 else 2803 if test -n "$ac_ct_CC"; then 2804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2805 else 2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2807 for as_dir in $PATH 2808 do 2809 IFS=$as_save_IFS 2810 test -z "$as_dir" && as_dir=. 2811 for ac_exec_ext in '' $ac_executable_extensions; do 2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2813 ac_cv_prog_ac_ct_CC="gcc" 2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2815 break 2 2816 fi 2817 done 2818 done 2819 IFS=$as_save_IFS 2820 2821 fi 2822 fi 2823 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2824 if test -n "$ac_ct_CC"; then 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2826 $as_echo "$ac_ct_CC" >&6; } 2827 else 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2829 $as_echo "no" >&6; } 2830 fi 2831 2832 if test "x$ac_ct_CC" = x; then 2833 CC="" 2834 else 2835 case $cross_compiling:$ac_tool_warned in 2836 yes:) 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2839 ac_tool_warned=yes ;; 2840 esac 2841 CC=$ac_ct_CC 2842 fi 2843 else 2844 CC="$ac_cv_prog_CC" 2845 fi 2846 2847 if test -z "$CC"; then 2848 if test -n "$ac_tool_prefix"; then 2849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2850 set dummy ${ac_tool_prefix}cc; ac_word=$2 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2852 $as_echo_n "checking for $ac_word... " >&6; } 2853 if test "${ac_cv_prog_CC+set}" = set; then : 2854 $as_echo_n "(cached) " >&6 2855 else 2856 if test -n "$CC"; then 2857 ac_cv_prog_CC="$CC" # Let the user override the test. 2858 else 2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2860 for as_dir in $PATH 2861 do 2862 IFS=$as_save_IFS 2863 test -z "$as_dir" && as_dir=. 2864 for ac_exec_ext in '' $ac_executable_extensions; do 2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2866 ac_cv_prog_CC="${ac_tool_prefix}cc" 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2868 break 2 2869 fi 2870 done 2871 done 2872 IFS=$as_save_IFS 2873 2874 fi 2875 fi 2876 CC=$ac_cv_prog_CC 2877 if test -n "$CC"; then 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2879 $as_echo "$CC" >&6; } 2880 else 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2882 $as_echo "no" >&6; } 2883 fi 2884 2885 2886 fi 2887 fi 2888 if test -z "$CC"; then 2889 # Extract the first word of "cc", so it can be a program name with args. 2890 set dummy cc; ac_word=$2 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2892 $as_echo_n "checking for $ac_word... " >&6; } 2893 if test "${ac_cv_prog_CC+set}" = set; then : 2894 $as_echo_n "(cached) " >&6 2895 else 2896 if test -n "$CC"; then 2897 ac_cv_prog_CC="$CC" # Let the user override the test. 2898 else 2899 ac_prog_rejected=no 2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2901 for as_dir in $PATH 2902 do 2903 IFS=$as_save_IFS 2904 test -z "$as_dir" && as_dir=. 2905 for ac_exec_ext in '' $ac_executable_extensions; do 2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2908 ac_prog_rejected=yes 2909 continue 2910 fi 2911 ac_cv_prog_CC="cc" 2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915 done 2916 done 2917 IFS=$as_save_IFS 2918 2919 if test $ac_prog_rejected = yes; then 2920 # We found a bogon in the path, so make sure we never use it. 2921 set dummy $ac_cv_prog_CC 2922 shift 2923 if test $# != 0; then 2924 # We chose a different compiler from the bogus one. 2925 # However, it has the same basename, so the bogon will be chosen 2926 # first if we set CC to just the basename; use the full file name. 2927 shift 2928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2929 fi 2930 fi 2931 fi 2932 fi 2933 CC=$ac_cv_prog_CC 2934 if test -n "$CC"; then 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2936 $as_echo "$CC" >&6; } 2937 else 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2939 $as_echo "no" >&6; } 2940 fi 2941 2942 2943 fi 2944 if test -z "$CC"; then 2945 if test -n "$ac_tool_prefix"; then 2946 for ac_prog in cl.exe 2947 do 2948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2951 $as_echo_n "checking for $ac_word... " >&6; } 2952 if test "${ac_cv_prog_CC+set}" = set; then : 2953 $as_echo_n "(cached) " >&6 2954 else 2955 if test -n "$CC"; then 2956 ac_cv_prog_CC="$CC" # Let the user override the test. 2957 else 2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2959 for as_dir in $PATH 2960 do 2961 IFS=$as_save_IFS 2962 test -z "$as_dir" && as_dir=. 2963 for ac_exec_ext in '' $ac_executable_extensions; do 2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2967 break 2 2968 fi 2969 done 2970 done 2971 IFS=$as_save_IFS 2972 2973 fi 2974 fi 2975 CC=$ac_cv_prog_CC 2976 if test -n "$CC"; then 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2978 $as_echo "$CC" >&6; } 2979 else 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2981 $as_echo "no" >&6; } 2982 fi 2983 2984 2985 test -n "$CC" && break 2986 done 2987 fi 2988 if test -z "$CC"; then 2989 ac_ct_CC=$CC 2990 for ac_prog in cl.exe 2991 do 2992 # Extract the first word of "$ac_prog", so it can be a program name with args. 2993 set dummy $ac_prog; ac_word=$2 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2995 $as_echo_n "checking for $ac_word... " >&6; } 2996 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2997 $as_echo_n "(cached) " >&6 2998 else 2999 if test -n "$ac_ct_CC"; then 3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3001 else 3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003 for as_dir in $PATH 3004 do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3009 ac_cv_prog_ac_ct_CC="$ac_prog" 3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3011 break 2 3012 fi 3013 done 3014 done 3015 IFS=$as_save_IFS 3016 3017 fi 3018 fi 3019 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3020 if test -n "$ac_ct_CC"; then 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3022 $as_echo "$ac_ct_CC" >&6; } 3023 else 3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3025 $as_echo "no" >&6; } 3026 fi 3027 3028 3029 test -n "$ac_ct_CC" && break 3030 done 3031 3032 if test "x$ac_ct_CC" = x; then 3033 CC="" 3034 else 3035 case $cross_compiling:$ac_tool_warned in 3036 yes:) 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3039 ac_tool_warned=yes ;; 3040 esac 3041 CC=$ac_ct_CC 3042 fi 3043 fi 3044 3045 fi 3046 3047 3048 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3050 as_fn_error "no acceptable C compiler found in \$PATH 3051 See \`config.log' for more details." "$LINENO" 5; } 3052 3053 # Provide some information about the compiler. 3054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3055 set X $ac_compile 3056 ac_compiler=$2 3057 for ac_option in --version -v -V -qversion; do 3058 { { ac_try="$ac_compiler $ac_option >&5" 3059 case "(($ac_try" in 3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3061 *) ac_try_echo=$ac_try;; 3062 esac 3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3064 $as_echo "$ac_try_echo"; } >&5 3065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3066 ac_status=$? 3067 if test -s conftest.err; then 3068 sed '10a\ 3069 ... rest of stderr output deleted ... 3070 10q' conftest.err >conftest.er1 3071 cat conftest.er1 >&5 3072 rm -f conftest.er1 conftest.err 3073 fi 3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3075 test $ac_status = 0; } 3076 done 3077 3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3079 /* end confdefs.h. */ 3080 3081 int 3082 main () 3083 { 3084 3085 ; 3086 return 0; 3087 } 3088 _ACEOF 3089 ac_clean_files_save=$ac_clean_files 3090 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3091 # Try to create an executable without -o first, disregard a.out. 3092 # It will help us diagnose broken compilers, and finding out an intuition 3093 # of exeext. 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3095 $as_echo_n "checking for C compiler default output file name... " >&6; } 3096 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3097 3098 # The possible output files: 3099 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3100 3101 ac_rmfiles= 3102 for ac_file in $ac_files 3103 do 3104 case $ac_file in 3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3106 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3107 esac 3108 done 3109 rm -f $ac_rmfiles 3110 3111 if { { ac_try="$ac_link_default" 3112 case "(($ac_try" in 3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3114 *) ac_try_echo=$ac_try;; 3115 esac 3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3117 $as_echo "$ac_try_echo"; } >&5 3118 (eval "$ac_link_default") 2>&5 3119 ac_status=$? 3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3121 test $ac_status = 0; }; then : 3122 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3123 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3124 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3125 # so that the user can short-circuit this test for compilers unknown to 3126 # Autoconf. 3127 for ac_file in $ac_files '' 3128 do 3129 test -f "$ac_file" || continue 3130 case $ac_file in 3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3132 ;; 3133 [ab].out ) 3134 # We found the default executable, but exeext='' is most 3135 # certainly right. 3136 break;; 3137 *.* ) 3138 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3139 then :; else 3140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3141 fi 3142 # We set ac_cv_exeext here because the later test for it is not 3143 # safe: cross compilers may not add the suffix if given an `-o' 3144 # argument, so we may need to know it at that point already. 3145 # Even if this section looks crufty: it has the advantage of 3146 # actually working. 3147 break;; 3148 * ) 3149 break;; 3150 esac 3151 done 3152 test "$ac_cv_exeext" = no && ac_cv_exeext= 3153 3154 else 3155 ac_file='' 3156 fi 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3158 $as_echo "$ac_file" >&6; } 3159 if test -z "$ac_file"; then : 3160 $as_echo "$as_me: failed program was:" >&5 3161 sed 's/^/| /' conftest.$ac_ext >&5 3162 3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3165 { as_fn_set_status 77 3166 as_fn_error "C compiler cannot create executables 3167 See \`config.log' for more details." "$LINENO" 5; }; } 3168 fi 3169 ac_exeext=$ac_cv_exeext 3170 3171 # Check that the compiler produces executables we can run. If not, either 3172 # the compiler is broken, or we cross compile. 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3174 $as_echo_n "checking whether the C compiler works... " >&6; } 3175 # If not cross compiling, check that we can run a simple program. 3176 if test "$cross_compiling" != yes; then 3177 if { ac_try='./$ac_file' 3178 { { case "(($ac_try" in 3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *) ac_try_echo=$ac_try;; 3181 esac 3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3183 $as_echo "$ac_try_echo"; } >&5 3184 (eval "$ac_try") 2>&5 3185 ac_status=$? 3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3187 test $ac_status = 0; }; }; then 3188 cross_compiling=no 3189 else 3190 if test "$cross_compiling" = maybe; then 3191 cross_compiling=yes 3192 else 3193 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3195 as_fn_error "cannot run C compiled programs. 3196 If you meant to cross compile, use \`--host'. 3197 See \`config.log' for more details." "$LINENO" 5; } 3198 fi 3199 fi 3200 fi 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3202 $as_echo "yes" >&6; } 3203 3204 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3205 ac_clean_files=$ac_clean_files_save 3206 # Check that the compiler produces executables we can run. If not, either 3207 # the compiler is broken, or we cross compile. 3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3209 $as_echo_n "checking whether we are cross compiling... " >&6; } 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3211 $as_echo "$cross_compiling" >&6; } 3212 3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3214 $as_echo_n "checking for suffix of executables... " >&6; } 3215 if { { ac_try="$ac_link" 3216 case "(($ac_try" in 3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3218 *) ac_try_echo=$ac_try;; 3219 esac 3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3221 $as_echo "$ac_try_echo"; } >&5 3222 (eval "$ac_link") 2>&5 3223 ac_status=$? 3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3225 test $ac_status = 0; }; then : 3226 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3227 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3228 # work properly (i.e., refer to `conftest.exe'), while it won't with 3229 # `rm'. 3230 for ac_file in conftest.exe conftest conftest.*; do 3231 test -f "$ac_file" || continue 3232 case $ac_file in 3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3234 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3235 break;; 3236 * ) break;; 3237 esac 3238 done 3239 else 3240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3242 as_fn_error "cannot compute suffix of executables: cannot compile and link 3243 See \`config.log' for more details." "$LINENO" 5; } 3244 fi 3245 rm -f conftest$ac_cv_exeext 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3247 $as_echo "$ac_cv_exeext" >&6; } 3248 3249 rm -f conftest.$ac_ext 3250 EXEEXT=$ac_cv_exeext 3251 ac_exeext=$EXEEXT 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3253 $as_echo_n "checking for suffix of object files... " >&6; } 3254 if test "${ac_cv_objext+set}" = set; then : 3255 $as_echo_n "(cached) " >&6 3256 else 3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3258 /* end confdefs.h. */ 3259 3260 int 3261 main () 3262 { 3263 3264 ; 3265 return 0; 3266 } 3267 _ACEOF 3268 rm -f conftest.o conftest.obj 3269 if { { ac_try="$ac_compile" 3270 case "(($ac_try" in 3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3272 *) ac_try_echo=$ac_try;; 3273 esac 3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3275 $as_echo "$ac_try_echo"; } >&5 3276 (eval "$ac_compile") 2>&5 3277 ac_status=$? 3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3279 test $ac_status = 0; }; then : 3280 for ac_file in conftest.o conftest.obj conftest.*; do 3281 test -f "$ac_file" || continue; 3282 case $ac_file in 3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3284 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3285 break;; 3286 esac 3287 done 3288 else 3289 $as_echo "$as_me: failed program was:" >&5 3290 sed 's/^/| /' conftest.$ac_ext >&5 3291 3292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3294 as_fn_error "cannot compute suffix of object files: cannot compile 3295 See \`config.log' for more details." "$LINENO" 5; } 3296 fi 3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3298 fi 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3300 $as_echo "$ac_cv_objext" >&6; } 3301 OBJEXT=$ac_cv_objext 3302 ac_objext=$OBJEXT 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3304 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3305 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3306 $as_echo_n "(cached) " >&6 3307 else 3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309 /* end confdefs.h. */ 3310 3311 int 3312 main () 3313 { 3314 #ifndef __GNUC__ 3315 choke me 3316 #endif 3317 3318 ; 3319 return 0; 3320 } 3321 _ACEOF 3322 if ac_fn_c_try_compile "$LINENO"; then : 3323 ac_compiler_gnu=yes 3324 else 3325 ac_compiler_gnu=no 3326 fi 3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3328 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3329 3330 fi 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3332 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3333 if test $ac_compiler_gnu = yes; then 3334 GCC=yes 3335 else 3336 GCC= 3337 fi 3338 ac_test_CFLAGS=${CFLAGS+set} 3339 ac_save_CFLAGS=$CFLAGS 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3341 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3342 if test "${ac_cv_prog_cc_g+set}" = set; then : 3343 $as_echo_n "(cached) " >&6 3344 else 3345 ac_save_c_werror_flag=$ac_c_werror_flag 3346 ac_c_werror_flag=yes 3347 ac_cv_prog_cc_g=no 3348 CFLAGS="-g" 3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3350 /* end confdefs.h. */ 3351 3352 int 3353 main () 3354 { 3355 3356 ; 3357 return 0; 3358 } 3359 _ACEOF 3360 if ac_fn_c_try_compile "$LINENO"; then : 3361 ac_cv_prog_cc_g=yes 3362 else 3363 CFLAGS="" 3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3365 /* end confdefs.h. */ 3366 3367 int 3368 main () 3369 { 3370 3371 ; 3372 return 0; 3373 } 3374 _ACEOF 3375 if ac_fn_c_try_compile "$LINENO"; then : 3376 3377 else 3378 ac_c_werror_flag=$ac_save_c_werror_flag 3379 CFLAGS="-g" 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381 /* end confdefs.h. */ 3382 3383 int 3384 main () 3385 { 3386 3387 ; 3388 return 0; 3389 } 3390 _ACEOF 3391 if ac_fn_c_try_compile "$LINENO"; then : 3392 ac_cv_prog_cc_g=yes 3393 fi 3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3395 fi 3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3397 fi 3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3399 ac_c_werror_flag=$ac_save_c_werror_flag 3400 fi 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3402 $as_echo "$ac_cv_prog_cc_g" >&6; } 3403 if test "$ac_test_CFLAGS" = set; then 3404 CFLAGS=$ac_save_CFLAGS 3405 elif test $ac_cv_prog_cc_g = yes; then 3406 if test "$GCC" = yes; then 3407 CFLAGS="-g -O2" 3408 else 3409 CFLAGS="-g" 3410 fi 3411 else 3412 if test "$GCC" = yes; then 3413 CFLAGS="-O2" 3414 else 3415 CFLAGS= 3416 fi 3417 fi 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3419 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3420 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3421 $as_echo_n "(cached) " >&6 3422 else 3423 ac_cv_prog_cc_c89=no 3424 ac_save_CC=$CC 3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3426 /* end confdefs.h. */ 3427 #include <stdarg.h> 3428 #include <stdio.h> 3429 #include <sys/types.h> 3430 #include <sys/stat.h> 3431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3432 struct buf { int x; }; 3433 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3434 static char *e (p, i) 3435 char **p; 3436 int i; 3437 { 3438 return p[i]; 3439 } 3440 static char *f (char * (*g) (char **, int), char **p, ...) 3441 { 3442 char *s; 3443 va_list v; 3444 va_start (v,p); 3445 s = g (p, va_arg (v,int)); 3446 va_end (v); 3447 return s; 3448 } 3449 3450 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3451 function prototypes and stuff, but not '\xHH' hex character constants. 3452 These don't provoke an error unfortunately, instead are silently treated 3453 as 'x'. The following induces an error, until -std is added to get 3454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3455 array size at least. It's necessary to write '\x00'==0 to get something 3456 that's true only with -std. */ 3457 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3458 3459 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3460 inside strings and character constants. */ 3461 #define FOO(x) 'x' 3462 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3463 3464 int test (int i, double x); 3465 struct s1 {int (*f) (int a);}; 3466 struct s2 {int (*f) (double a);}; 3467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3468 int argc; 3469 char **argv; 3470 int 3471 main () 3472 { 3473 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3474 ; 3475 return 0; 3476 } 3477 _ACEOF 3478 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3480 do 3481 CC="$ac_save_CC $ac_arg" 3482 if ac_fn_c_try_compile "$LINENO"; then : 3483 ac_cv_prog_cc_c89=$ac_arg 3484 fi 3485 rm -f core conftest.err conftest.$ac_objext 3486 test "x$ac_cv_prog_cc_c89" != "xno" && break 3487 done 3488 rm -f conftest.$ac_ext 3489 CC=$ac_save_CC 3490 3491 fi 3492 # AC_CACHE_VAL 3493 case "x$ac_cv_prog_cc_c89" in 3494 x) 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3496 $as_echo "none needed" >&6; } ;; 3497 xno) 3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3499 $as_echo "unsupported" >&6; } ;; 3500 *) 3501 CC="$CC $ac_cv_prog_cc_c89" 3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3503 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3504 esac 3505 if test "x$ac_cv_prog_cc_c89" != xno; then : 3506 3507 fi 3508 3509 ac_ext=c 3510 ac_cpp='$CPP $CPPFLAGS' 3511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3513 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3514 3515 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3517 $as_echo_n "checking for library containing strerror... " >&6; } 3518 if test "${ac_cv_search_strerror+set}" = set; then : 3519 $as_echo_n "(cached) " >&6 3520 else 3521 ac_func_search_save_LIBS=$LIBS 3522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3523 /* end confdefs.h. */ 3524 3525 /* Override any GCC internal prototype to avoid an error. 3526 Use char because int might match the return type of a GCC 3527 builtin and then its argument prototype would still apply. */ 3528 #ifdef __cplusplus 3529 extern "C" 3530 #endif 3531 char strerror (); 3532 int 3533 main () 3534 { 3535 return strerror (); 3536 ; 3537 return 0; 3538 } 3539 _ACEOF 3540 for ac_lib in '' cposix; do 3541 if test -z "$ac_lib"; then 3542 ac_res="none required" 3543 else 3544 ac_res=-l$ac_lib 3545 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3546 fi 3547 if ac_fn_c_try_link "$LINENO"; then : 3548 ac_cv_search_strerror=$ac_res 3549 fi 3550 rm -f core conftest.err conftest.$ac_objext \ 3551 conftest$ac_exeext 3552 if test "${ac_cv_search_strerror+set}" = set; then : 3553 break 3554 fi 3555 done 3556 if test "${ac_cv_search_strerror+set}" = set; then : 3557 3558 else 3559 ac_cv_search_strerror=no 3560 fi 3561 rm conftest.$ac_ext 3562 LIBS=$ac_func_search_save_LIBS 3563 fi 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3565 $as_echo "$ac_cv_search_strerror" >&6; } 3566 ac_res=$ac_cv_search_strerror 3567 if test "$ac_res" != no; then : 3568 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3569 3570 fi 3571 3572 3573 am__api_version='1.11' 3574 3575 # Find a good install program. We prefer a C program (faster), 3576 # so one script is as good as another. But avoid the broken or 3577 # incompatible versions: 3578 # SysV /etc/install, /usr/sbin/install 3579 # SunOS /usr/etc/install 3580 # IRIX /sbin/install 3581 # AIX /bin/install 3582 # AmigaOS /C/install, which installs bootblocks on floppy discs 3583 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3584 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3585 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3586 # OS/2's system install, which has a completely different semantic 3587 # ./install, which can be erroneously created by make from ./install.sh. 3588 # Reject install programs that cannot install multiple files. 3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3590 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3591 if test -z "$INSTALL"; then 3592 if test "${ac_cv_path_install+set}" = set; then : 3593 $as_echo_n "(cached) " >&6 3594 else 3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596 for as_dir in $PATH 3597 do 3598 IFS=$as_save_IFS 3599 test -z "$as_dir" && as_dir=. 3600 # Account for people who put trailing slashes in PATH elements. 3601 case $as_dir/ in #(( 3602 ./ | .// | /[cC]/* | \ 3603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3604 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3605 /usr/ucb/* ) ;; 3606 *) 3607 # OSF1 and SCO ODT 3.0 have their own names for install. 3608 # Don't use installbsd from OSF since it installs stuff as root 3609 # by default. 3610 for ac_prog in ginstall scoinst install; do 3611 for ac_exec_ext in '' $ac_executable_extensions; do 3612 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3613 if test $ac_prog = install && 3614 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3615 # AIX install. It has an incompatible calling convention. 3616 : 3617 elif test $ac_prog = install && 3618 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3619 # program-specific install script used by HP pwplus--don't use. 3620 : 3621 else 3622 rm -rf conftest.one conftest.two conftest.dir 3623 echo one > conftest.one 3624 echo two > conftest.two 3625 mkdir conftest.dir 3626 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3627 test -s conftest.one && test -s conftest.two && 3628 test -s conftest.dir/conftest.one && 3629 test -s conftest.dir/conftest.two 3630 then 3631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3632 break 3 3633 fi 3634 fi 3635 fi 3636 done 3637 done 3638 ;; 3639 esac 3640 3641 done 3642 IFS=$as_save_IFS 3643 3644 rm -rf conftest.one conftest.two conftest.dir 3645 3646 fi 3647 if test "${ac_cv_path_install+set}" = set; then 3648 INSTALL=$ac_cv_path_install 3649 else 3650 # As a last resort, use the slow shell script. Don't cache a 3651 # value for INSTALL within a source directory, because that will 3652 # break other packages using the cache if that directory is 3653 # removed, or if the value is a relative name. 3654 INSTALL=$ac_install_sh 3655 fi 3656 fi 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3658 $as_echo "$INSTALL" >&6; } 3659 3660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3661 # It thinks the first close brace ends the variable substitution. 3662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3663 3664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3665 3666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3667 3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3669 $as_echo_n "checking whether build environment is sane... " >&6; } 3670 # Just in case 3671 sleep 1 3672 echo timestamp > conftest.file 3673 # Reject unsafe characters in $srcdir or the absolute working directory 3674 # name. Accept space and tab only in the latter. 3675 am_lf=' 3676 ' 3677 case `pwd` in 3678 *[\\\"\#\$\&\'\`$am_lf]*) 3679 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3680 esac 3681 case $srcdir in 3682 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3683 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3684 esac 3685 3686 # Do `set' in a subshell so we don't clobber the current shell's 3687 # arguments. Must try -L first in case configure is actually a 3688 # symlink; some systems play weird games with the mod time of symlinks 3689 # (eg FreeBSD returns the mod time of the symlink's containing 3690 # directory). 3691 if ( 3692 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3693 if test "$*" = "X"; then 3694 # -L didn't work. 3695 set X `ls -t "$srcdir/configure" conftest.file` 3696 fi 3697 rm -f conftest.file 3698 if test "$*" != "X $srcdir/configure conftest.file" \ 3699 && test "$*" != "X conftest.file $srcdir/configure"; then 3700 3701 # If neither matched, then we have a broken ls. This can happen 3702 # if, for instance, CONFIG_SHELL is bash and it inherits a 3703 # broken ls alias from the environment. This has actually 3704 # happened. Such a system could not be considered "sane". 3705 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3706 alias in your environment" "$LINENO" 5 3707 fi 3708 3709 test "$2" = conftest.file 3710 ) 3711 then 3712 # Ok. 3713 : 3714 else 3715 as_fn_error "newly created file is older than distributed files! 3716 Check your system clock" "$LINENO" 5 3717 fi 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3719 $as_echo "yes" >&6; } 3720 test "$program_prefix" != NONE && 3721 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3722 # Use a double $ so make ignores it. 3723 test "$program_suffix" != NONE && 3724 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3725 # Double any \ or $. 3726 # By default was `s,x,x', remove it if useless. 3727 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3728 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3729 3730 # expand $ac_aux_dir to an absolute path 3731 am_aux_dir=`cd $ac_aux_dir && pwd` 3732 3733 if test x"${MISSING+set}" != xset; then 3734 case $am_aux_dir in 3735 *\ * | *\ *) 3736 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3737 *) 3738 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3739 esac 3740 fi 3741 # Use eval to expand $SHELL 3742 if eval "$MISSING --run true"; then 3743 am_missing_run="$MISSING --run " 3744 else 3745 am_missing_run= 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3747 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3748 fi 3749 3750 if test x"${install_sh}" != xset; then 3751 case $am_aux_dir in 3752 *\ * | *\ *) 3753 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3754 *) 3755 install_sh="\${SHELL} $am_aux_dir/install-sh" 3756 esac 3757 fi 3758 3759 # Installed binaries are usually stripped using `strip' when the user 3760 # run `make install-strip'. However `strip' might not be the right 3761 # tool to use in cross-compilation environments, therefore Automake 3762 # will honor the `STRIP' environment variable to overrule this program. 3763 if test "$cross_compiling" != no; then 3764 if test -n "$ac_tool_prefix"; then 3765 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3766 set dummy ${ac_tool_prefix}strip; ac_word=$2 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3768 $as_echo_n "checking for $ac_word... " >&6; } 3769 if test "${ac_cv_prog_STRIP+set}" = set; then : 3770 $as_echo_n "(cached) " >&6 3771 else 3772 if test -n "$STRIP"; then 3773 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3774 else 3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3776 for as_dir in $PATH 3777 do 3778 IFS=$as_save_IFS 3779 test -z "$as_dir" && as_dir=. 3780 for ac_exec_ext in '' $ac_executable_extensions; do 3781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3782 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3784 break 2 3785 fi 3786 done 3787 done 3788 IFS=$as_save_IFS 3789 3790 fi 3791 fi 3792 STRIP=$ac_cv_prog_STRIP 3793 if test -n "$STRIP"; then 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3795 $as_echo "$STRIP" >&6; } 3796 else 3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3798 $as_echo "no" >&6; } 3799 fi 3800 3801 3802 fi 3803 if test -z "$ac_cv_prog_STRIP"; then 3804 ac_ct_STRIP=$STRIP 3805 # Extract the first word of "strip", so it can be a program name with args. 3806 set dummy strip; ac_word=$2 3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3808 $as_echo_n "checking for $ac_word... " >&6; } 3809 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3810 $as_echo_n "(cached) " >&6 3811 else 3812 if test -n "$ac_ct_STRIP"; then 3813 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3814 else 3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3816 for as_dir in $PATH 3817 do 3818 IFS=$as_save_IFS 3819 test -z "$as_dir" && as_dir=. 3820 for ac_exec_ext in '' $ac_executable_extensions; do 3821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3822 ac_cv_prog_ac_ct_STRIP="strip" 3823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3824 break 2 3825 fi 3826 done 3827 done 3828 IFS=$as_save_IFS 3829 3830 fi 3831 fi 3832 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3833 if test -n "$ac_ct_STRIP"; then 3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3835 $as_echo "$ac_ct_STRIP" >&6; } 3836 else 3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3838 $as_echo "no" >&6; } 3839 fi 3840 3841 if test "x$ac_ct_STRIP" = x; then 3842 STRIP=":" 3843 else 3844 case $cross_compiling:$ac_tool_warned in 3845 yes:) 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3848 ac_tool_warned=yes ;; 3849 esac 3850 STRIP=$ac_ct_STRIP 3851 fi 3852 else 3853 STRIP="$ac_cv_prog_STRIP" 3854 fi 3855 3856 fi 3857 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3858 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3860 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3861 if test -z "$MKDIR_P"; then 3862 if test "${ac_cv_path_mkdir+set}" = set; then : 3863 $as_echo_n "(cached) " >&6 3864 else 3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3866 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3867 do 3868 IFS=$as_save_IFS 3869 test -z "$as_dir" && as_dir=. 3870 for ac_prog in mkdir gmkdir; do 3871 for ac_exec_ext in '' $ac_executable_extensions; do 3872 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3873 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3874 'mkdir (GNU coreutils) '* | \ 3875 'mkdir (coreutils) '* | \ 3876 'mkdir (fileutils) '4.1*) 3877 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3878 break 3;; 3879 esac 3880 done 3881 done 3882 done 3883 IFS=$as_save_IFS 3884 3885 fi 3886 3887 if test "${ac_cv_path_mkdir+set}" = set; then 3888 MKDIR_P="$ac_cv_path_mkdir -p" 3889 else 3890 # As a last resort, use the slow shell script. Don't cache a 3891 # value for MKDIR_P within a source directory, because that will 3892 # break other packages using the cache if that directory is 3893 # removed, or if the value is a relative name. 3894 test -d ./--version && rmdir ./--version 3895 MKDIR_P="$ac_install_sh -d" 3896 fi 3897 fi 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3899 $as_echo "$MKDIR_P" >&6; } 3900 3901 mkdir_p="$MKDIR_P" 3902 case $mkdir_p in 3903 [\\/$]* | ?:[\\/]*) ;; 3904 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3905 esac 3906 3907 for ac_prog in gawk mawk nawk awk 3908 do 3909 # Extract the first word of "$ac_prog", so it can be a program name with args. 3910 set dummy $ac_prog; ac_word=$2 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3912 $as_echo_n "checking for $ac_word... " >&6; } 3913 if test "${ac_cv_prog_AWK+set}" = set; then : 3914 $as_echo_n "(cached) " >&6 3915 else 3916 if test -n "$AWK"; then 3917 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3918 else 3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3920 for as_dir in $PATH 3921 do 3922 IFS=$as_save_IFS 3923 test -z "$as_dir" && as_dir=. 3924 for ac_exec_ext in '' $ac_executable_extensions; do 3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3926 ac_cv_prog_AWK="$ac_prog" 3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3928 break 2 3929 fi 3930 done 3931 done 3932 IFS=$as_save_IFS 3933 3934 fi 3935 fi 3936 AWK=$ac_cv_prog_AWK 3937 if test -n "$AWK"; then 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3939 $as_echo "$AWK" >&6; } 3940 else 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3942 $as_echo "no" >&6; } 3943 fi 3944 3945 3946 test -n "$AWK" && break 3947 done 3948 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3950 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3951 set x ${MAKE-make} 3952 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3953 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3954 $as_echo_n "(cached) " >&6 3955 else 3956 cat >conftest.make <<\_ACEOF 3957 SHELL = /bin/sh 3958 all: 3959 @echo '@@@%%%=$(MAKE)=@@@%%%' 3960 _ACEOF 3961 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3962 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3963 *@@@%%%=?*=@@@%%%*) 3964 eval ac_cv_prog_make_${ac_make}_set=yes;; 3965 *) 3966 eval ac_cv_prog_make_${ac_make}_set=no;; 3967 esac 3968 rm -f conftest.make 3969 fi 3970 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3972 $as_echo "yes" >&6; } 3973 SET_MAKE= 3974 else 3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3976 $as_echo "no" >&6; } 3977 SET_MAKE="MAKE=${MAKE-make}" 3978 fi 3979 3980 rm -rf .tst 2>/dev/null 3981 mkdir .tst 2>/dev/null 3982 if test -d .tst; then 3983 am__leading_dot=. 3984 else 3985 am__leading_dot=_ 3986 fi 3987 rmdir .tst 2>/dev/null 3988 3989 DEPDIR="${am__leading_dot}deps" 3990 3991 ac_config_commands="$ac_config_commands depfiles" 3992 3993 3994 am_make=${MAKE-make} 3995 cat > confinc << 'END' 3996 am__doit: 3997 @echo this is the am__doit target 3998 .PHONY: am__doit 3999 END 4000 # If we don't find an include directive, just comment out the code. 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4002 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4003 am__include="#" 4004 am__quote= 4005 _am_result=none 4006 # First try GNU make style include. 4007 echo "include confinc" > confmf 4008 # Ignore all kinds of additional output from `make'. 4009 case `$am_make -s -f confmf 2> /dev/null` in #( 4010 *the\ am__doit\ target*) 4011 am__include=include 4012 am__quote= 4013 _am_result=GNU 4014 ;; 4015 esac 4016 # Now try BSD make style include. 4017 if test "$am__include" = "#"; then 4018 echo '.include "confinc"' > confmf 4019 case `$am_make -s -f confmf 2> /dev/null` in #( 4020 *the\ am__doit\ target*) 4021 am__include=.include 4022 am__quote="\"" 4023 _am_result=BSD 4024 ;; 4025 esac 4026 fi 4027 4028 4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4030 $as_echo "$_am_result" >&6; } 4031 rm -f confinc confmf 4032 4033 # Check whether --enable-dependency-tracking was given. 4034 if test "${enable_dependency_tracking+set}" = set; then : 4035 enableval=$enable_dependency_tracking; 4036 fi 4037 4038 if test "x$enable_dependency_tracking" != xno; then 4039 am_depcomp="$ac_aux_dir/depcomp" 4040 AMDEPBACKSLASH='\' 4041 am__nodep='_no' 4042 fi 4043 if test "x$enable_dependency_tracking" != xno; then 4044 AMDEP_TRUE= 4045 AMDEP_FALSE='#' 4046 else 4047 AMDEP_TRUE='#' 4048 AMDEP_FALSE= 4049 fi 4050 4051 4052 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4053 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4054 # is not polluted with repeated "-I." 4055 am__isrc=' -I$(srcdir)' 4056 # test to see if srcdir already configured 4057 if test -f $srcdir/config.status; then 4058 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4059 fi 4060 fi 4061 4062 # test whether we have cygpath 4063 if test -z "$CYGPATH_W"; then 4064 if (cygpath --version) >/dev/null 2>/dev/null; then 4065 CYGPATH_W='cygpath -w' 4066 else 4067 CYGPATH_W=echo 4068 fi 4069 fi 4070 4071 4072 # Define the identity of the package. 4073 PACKAGE='ld' 4074 VERSION='2.27.0' 4075 4076 4077 cat >>confdefs.h <<_ACEOF 4078 #define PACKAGE "$PACKAGE" 4079 _ACEOF 4080 4081 4082 cat >>confdefs.h <<_ACEOF 4083 #define VERSION "$VERSION" 4084 _ACEOF 4085 4086 # Some tools Automake needs. 4087 4088 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4089 4090 4091 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4092 4093 4094 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4095 4096 4097 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4098 4099 4100 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4101 4102 # We need awk for the "check" target. The system "awk" is bad on 4103 # some platforms. 4104 # Always define AMTAR for backward compatibility. Yes, it's still used 4105 # in the wild :-( We should find a proper way to deprecate it ... 4106 AMTAR='$${TAR-tar}' 4107 4108 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4109 4110 4111 4112 4113 depcc="$CC" am_compiler_list= 4114 4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4116 $as_echo_n "checking dependency style of $depcc... " >&6; } 4117 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4118 $as_echo_n "(cached) " >&6 4119 else 4120 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4121 # We make a subdir and do the tests there. Otherwise we can end up 4122 # making bogus files that we don't know about and never remove. For 4123 # instance it was reported that on HP-UX the gcc test will end up 4124 # making a dummy file named `D' -- because `-MD' means `put the output 4125 # in D'. 4126 rm -rf conftest.dir 4127 mkdir conftest.dir 4128 # Copy depcomp to subdir because otherwise we won't find it if we're 4129 # using a relative directory. 4130 cp "$am_depcomp" conftest.dir 4131 cd conftest.dir 4132 # We will build objects and dependencies in a subdirectory because 4133 # it helps to detect inapplicable dependency modes. For instance 4134 # both Tru64's cc and ICC support -MD to output dependencies as a 4135 # side effect of compilation, but ICC will put the dependencies in 4136 # the current directory while Tru64 will put them in the object 4137 # directory. 4138 mkdir sub 4139 4140 am_cv_CC_dependencies_compiler_type=none 4141 if test "$am_compiler_list" = ""; then 4142 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4143 fi 4144 am__universal=false 4145 case " $depcc " in #( 4146 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4147 esac 4148 4149 for depmode in $am_compiler_list; do 4150 # Setup a source with many dependencies, because some compilers 4151 # like to wrap large dependency lists on column 80 (with \), and 4152 # we should not choose a depcomp mode which is confused by this. 4153 # 4154 # We need to recreate these files for each test, as the compiler may 4155 # overwrite some of them when testing with obscure command lines. 4156 # This happens at least with the AIX C compiler. 4157 : > sub/conftest.c 4158 for i in 1 2 3 4 5 6; do 4159 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4160 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4161 # Solaris 8's {/usr,}/bin/sh. 4162 touch sub/conftst$i.h 4163 done 4164 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4165 4166 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4167 # mode. It turns out that the SunPro C++ compiler does not properly 4168 # handle `-M -o', and we need to detect this. Also, some Intel 4169 # versions had trouble with output in subdirs 4170 am__obj=sub/conftest.${OBJEXT-o} 4171 am__minus_obj="-o $am__obj" 4172 case $depmode in 4173 gcc) 4174 # This depmode causes a compiler race in universal mode. 4175 test "$am__universal" = false || continue 4176 ;; 4177 nosideeffect) 4178 # after this tag, mechanisms are not by side-effect, so they'll 4179 # only be used when explicitly requested 4180 if test "x$enable_dependency_tracking" = xyes; then 4181 continue 4182 else 4183 break 4184 fi 4185 ;; 4186 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4187 # This compiler won't grok `-c -o', but also, the minuso test has 4188 # not run yet. These depmodes are late enough in the game, and 4189 # so weak that their functioning should not be impacted. 4190 am__obj=conftest.${OBJEXT-o} 4191 am__minus_obj= 4192 ;; 4193 none) break ;; 4194 esac 4195 if depmode=$depmode \ 4196 source=sub/conftest.c object=$am__obj \ 4197 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4198 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4199 >/dev/null 2>conftest.err && 4200 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4202 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4204 # icc doesn't choke on unknown options, it will just issue warnings 4205 # or remarks (even with -Werror). So we grep stderr for any message 4206 # that says an option was ignored or not supported. 4207 # When given -MP, icc 7.0 and 7.1 complain thusly: 4208 # icc: Command line warning: ignoring option '-M'; no argument required 4209 # The diagnosis changed in icc 8.0: 4210 # icc: Command line remark: option '-MP' not supported 4211 if (grep 'ignoring option' conftest.err || 4212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4213 am_cv_CC_dependencies_compiler_type=$depmode 4214 break 4215 fi 4216 fi 4217 done 4218 4219 cd .. 4220 rm -rf conftest.dir 4221 else 4222 am_cv_CC_dependencies_compiler_type=none 4223 fi 4224 4225 fi 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4227 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4228 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4229 4230 if 4231 test "x$enable_dependency_tracking" != xno \ 4232 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4233 am__fastdepCC_TRUE= 4234 am__fastdepCC_FALSE='#' 4235 else 4236 am__fastdepCC_TRUE='#' 4237 am__fastdepCC_FALSE= 4238 fi 4239 4240 4241 4242 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4244 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4245 # Check whether --enable-maintainer-mode was given. 4246 if test "${enable_maintainer_mode+set}" = set; then : 4247 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4248 else 4249 USE_MAINTAINER_MODE=no 4250 fi 4251 4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4253 $as_echo "$USE_MAINTAINER_MODE" >&6; } 4254 if test $USE_MAINTAINER_MODE = yes; then 4255 MAINTAINER_MODE_TRUE= 4256 MAINTAINER_MODE_FALSE='#' 4257 else 4258 MAINTAINER_MODE_TRUE='#' 4259 MAINTAINER_MODE_FALSE= 4260 fi 4261 4262 MAINT=$MAINTAINER_MODE_TRUE 4263 4264 4265 4266 ac_ext=c 4267 ac_cpp='$CPP $CPPFLAGS' 4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4271 if test -n "$ac_tool_prefix"; then 4272 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4273 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4275 $as_echo_n "checking for $ac_word... " >&6; } 4276 if test "${ac_cv_prog_CC+set}" = set; then : 4277 $as_echo_n "(cached) " >&6 4278 else 4279 if test -n "$CC"; then 4280 ac_cv_prog_CC="$CC" # Let the user override the test. 4281 else 4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4283 for as_dir in $PATH 4284 do 4285 IFS=$as_save_IFS 4286 test -z "$as_dir" && as_dir=. 4287 for ac_exec_ext in '' $ac_executable_extensions; do 4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4289 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4291 break 2 4292 fi 4293 done 4294 done 4295 IFS=$as_save_IFS 4296 4297 fi 4298 fi 4299 CC=$ac_cv_prog_CC 4300 if test -n "$CC"; then 4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4302 $as_echo "$CC" >&6; } 4303 else 4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4305 $as_echo "no" >&6; } 4306 fi 4307 4308 4309 fi 4310 if test -z "$ac_cv_prog_CC"; then 4311 ac_ct_CC=$CC 4312 # Extract the first word of "gcc", so it can be a program name with args. 4313 set dummy gcc; ac_word=$2 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4315 $as_echo_n "checking for $ac_word... " >&6; } 4316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4317 $as_echo_n "(cached) " >&6 4318 else 4319 if test -n "$ac_ct_CC"; then 4320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4321 else 4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4323 for as_dir in $PATH 4324 do 4325 IFS=$as_save_IFS 4326 test -z "$as_dir" && as_dir=. 4327 for ac_exec_ext in '' $ac_executable_extensions; do 4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4329 ac_cv_prog_ac_ct_CC="gcc" 4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4331 break 2 4332 fi 4333 done 4334 done 4335 IFS=$as_save_IFS 4336 4337 fi 4338 fi 4339 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4340 if test -n "$ac_ct_CC"; then 4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4342 $as_echo "$ac_ct_CC" >&6; } 4343 else 4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4345 $as_echo "no" >&6; } 4346 fi 4347 4348 if test "x$ac_ct_CC" = x; then 4349 CC="" 4350 else 4351 case $cross_compiling:$ac_tool_warned in 4352 yes:) 4353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4355 ac_tool_warned=yes ;; 4356 esac 4357 CC=$ac_ct_CC 4358 fi 4359 else 4360 CC="$ac_cv_prog_CC" 4361 fi 4362 4363 if test -z "$CC"; then 4364 if test -n "$ac_tool_prefix"; then 4365 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4366 set dummy ${ac_tool_prefix}cc; ac_word=$2 4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4368 $as_echo_n "checking for $ac_word... " >&6; } 4369 if test "${ac_cv_prog_CC+set}" = set; then : 4370 $as_echo_n "(cached) " >&6 4371 else 4372 if test -n "$CC"; then 4373 ac_cv_prog_CC="$CC" # Let the user override the test. 4374 else 4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4376 for as_dir in $PATH 4377 do 4378 IFS=$as_save_IFS 4379 test -z "$as_dir" && as_dir=. 4380 for ac_exec_ext in '' $ac_executable_extensions; do 4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4382 ac_cv_prog_CC="${ac_tool_prefix}cc" 4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4384 break 2 4385 fi 4386 done 4387 done 4388 IFS=$as_save_IFS 4389 4390 fi 4391 fi 4392 CC=$ac_cv_prog_CC 4393 if test -n "$CC"; then 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4395 $as_echo "$CC" >&6; } 4396 else 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4398 $as_echo "no" >&6; } 4399 fi 4400 4401 4402 fi 4403 fi 4404 if test -z "$CC"; then 4405 # Extract the first word of "cc", so it can be a program name with args. 4406 set dummy cc; ac_word=$2 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4408 $as_echo_n "checking for $ac_word... " >&6; } 4409 if test "${ac_cv_prog_CC+set}" = set; then : 4410 $as_echo_n "(cached) " >&6 4411 else 4412 if test -n "$CC"; then 4413 ac_cv_prog_CC="$CC" # Let the user override the test. 4414 else 4415 ac_prog_rejected=no 4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4417 for as_dir in $PATH 4418 do 4419 IFS=$as_save_IFS 4420 test -z "$as_dir" && as_dir=. 4421 for ac_exec_ext in '' $ac_executable_extensions; do 4422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4423 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4424 ac_prog_rejected=yes 4425 continue 4426 fi 4427 ac_cv_prog_CC="cc" 4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4429 break 2 4430 fi 4431 done 4432 done 4433 IFS=$as_save_IFS 4434 4435 if test $ac_prog_rejected = yes; then 4436 # We found a bogon in the path, so make sure we never use it. 4437 set dummy $ac_cv_prog_CC 4438 shift 4439 if test $# != 0; then 4440 # We chose a different compiler from the bogus one. 4441 # However, it has the same basename, so the bogon will be chosen 4442 # first if we set CC to just the basename; use the full file name. 4443 shift 4444 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4445 fi 4446 fi 4447 fi 4448 fi 4449 CC=$ac_cv_prog_CC 4450 if test -n "$CC"; then 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4452 $as_echo "$CC" >&6; } 4453 else 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4455 $as_echo "no" >&6; } 4456 fi 4457 4458 4459 fi 4460 if test -z "$CC"; then 4461 if test -n "$ac_tool_prefix"; then 4462 for ac_prog in cl.exe 4463 do 4464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4467 $as_echo_n "checking for $ac_word... " >&6; } 4468 if test "${ac_cv_prog_CC+set}" = set; then : 4469 $as_echo_n "(cached) " >&6 4470 else 4471 if test -n "$CC"; then 4472 ac_cv_prog_CC="$CC" # Let the user override the test. 4473 else 4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4475 for as_dir in $PATH 4476 do 4477 IFS=$as_save_IFS 4478 test -z "$as_dir" && as_dir=. 4479 for ac_exec_ext in '' $ac_executable_extensions; do 4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4481 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4483 break 2 4484 fi 4485 done 4486 done 4487 IFS=$as_save_IFS 4488 4489 fi 4490 fi 4491 CC=$ac_cv_prog_CC 4492 if test -n "$CC"; then 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4494 $as_echo "$CC" >&6; } 4495 else 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4497 $as_echo "no" >&6; } 4498 fi 4499 4500 4501 test -n "$CC" && break 4502 done 4503 fi 4504 if test -z "$CC"; then 4505 ac_ct_CC=$CC 4506 for ac_prog in cl.exe 4507 do 4508 # Extract the first word of "$ac_prog", so it can be a program name with args. 4509 set dummy $ac_prog; ac_word=$2 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4511 $as_echo_n "checking for $ac_word... " >&6; } 4512 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4513 $as_echo_n "(cached) " >&6 4514 else 4515 if test -n "$ac_ct_CC"; then 4516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4517 else 4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4519 for as_dir in $PATH 4520 do 4521 IFS=$as_save_IFS 4522 test -z "$as_dir" && as_dir=. 4523 for ac_exec_ext in '' $ac_executable_extensions; do 4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4525 ac_cv_prog_ac_ct_CC="$ac_prog" 4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4527 break 2 4528 fi 4529 done 4530 done 4531 IFS=$as_save_IFS 4532 4533 fi 4534 fi 4535 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4536 if test -n "$ac_ct_CC"; then 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4538 $as_echo "$ac_ct_CC" >&6; } 4539 else 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541 $as_echo "no" >&6; } 4542 fi 4543 4544 4545 test -n "$ac_ct_CC" && break 4546 done 4547 4548 if test "x$ac_ct_CC" = x; then 4549 CC="" 4550 else 4551 case $cross_compiling:$ac_tool_warned in 4552 yes:) 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4555 ac_tool_warned=yes ;; 4556 esac 4557 CC=$ac_ct_CC 4558 fi 4559 fi 4560 4561 fi 4562 4563 4564 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4566 as_fn_error "no acceptable C compiler found in \$PATH 4567 See \`config.log' for more details." "$LINENO" 5; } 4568 4569 # Provide some information about the compiler. 4570 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4571 set X $ac_compile 4572 ac_compiler=$2 4573 for ac_option in --version -v -V -qversion; do 4574 { { ac_try="$ac_compiler $ac_option >&5" 4575 case "(($ac_try" in 4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4577 *) ac_try_echo=$ac_try;; 4578 esac 4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4580 $as_echo "$ac_try_echo"; } >&5 4581 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4582 ac_status=$? 4583 if test -s conftest.err; then 4584 sed '10a\ 4585 ... rest of stderr output deleted ... 4586 10q' conftest.err >conftest.er1 4587 cat conftest.er1 >&5 4588 rm -f conftest.er1 conftest.err 4589 fi 4590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4591 test $ac_status = 0; } 4592 done 4593 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4595 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4596 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4597 $as_echo_n "(cached) " >&6 4598 else 4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4600 /* end confdefs.h. */ 4601 4602 int 4603 main () 4604 { 4605 #ifndef __GNUC__ 4606 choke me 4607 #endif 4608 4609 ; 4610 return 0; 4611 } 4612 _ACEOF 4613 if ac_fn_c_try_compile "$LINENO"; then : 4614 ac_compiler_gnu=yes 4615 else 4616 ac_compiler_gnu=no 4617 fi 4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4619 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4620 4621 fi 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4623 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4624 if test $ac_compiler_gnu = yes; then 4625 GCC=yes 4626 else 4627 GCC= 4628 fi 4629 ac_test_CFLAGS=${CFLAGS+set} 4630 ac_save_CFLAGS=$CFLAGS 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4632 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4633 if test "${ac_cv_prog_cc_g+set}" = set; then : 4634 $as_echo_n "(cached) " >&6 4635 else 4636 ac_save_c_werror_flag=$ac_c_werror_flag 4637 ac_c_werror_flag=yes 4638 ac_cv_prog_cc_g=no 4639 CFLAGS="-g" 4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641 /* end confdefs.h. */ 4642 4643 int 4644 main () 4645 { 4646 4647 ; 4648 return 0; 4649 } 4650 _ACEOF 4651 if ac_fn_c_try_compile "$LINENO"; then : 4652 ac_cv_prog_cc_g=yes 4653 else 4654 CFLAGS="" 4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4656 /* end confdefs.h. */ 4657 4658 int 4659 main () 4660 { 4661 4662 ; 4663 return 0; 4664 } 4665 _ACEOF 4666 if ac_fn_c_try_compile "$LINENO"; then : 4667 4668 else 4669 ac_c_werror_flag=$ac_save_c_werror_flag 4670 CFLAGS="-g" 4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4672 /* end confdefs.h. */ 4673 4674 int 4675 main () 4676 { 4677 4678 ; 4679 return 0; 4680 } 4681 _ACEOF 4682 if ac_fn_c_try_compile "$LINENO"; then : 4683 ac_cv_prog_cc_g=yes 4684 fi 4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4686 fi 4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4688 fi 4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4690 ac_c_werror_flag=$ac_save_c_werror_flag 4691 fi 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4693 $as_echo "$ac_cv_prog_cc_g" >&6; } 4694 if test "$ac_test_CFLAGS" = set; then 4695 CFLAGS=$ac_save_CFLAGS 4696 elif test $ac_cv_prog_cc_g = yes; then 4697 if test "$GCC" = yes; then 4698 CFLAGS="-g -O2" 4699 else 4700 CFLAGS="-g" 4701 fi 4702 else 4703 if test "$GCC" = yes; then 4704 CFLAGS="-O2" 4705 else 4706 CFLAGS= 4707 fi 4708 fi 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4710 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4711 if test "${ac_cv_prog_cc_c89+set}" = set; then : 4712 $as_echo_n "(cached) " >&6 4713 else 4714 ac_cv_prog_cc_c89=no 4715 ac_save_CC=$CC 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717 /* end confdefs.h. */ 4718 #include <stdarg.h> 4719 #include <stdio.h> 4720 #include <sys/types.h> 4721 #include <sys/stat.h> 4722 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4723 struct buf { int x; }; 4724 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4725 static char *e (p, i) 4726 char **p; 4727 int i; 4728 { 4729 return p[i]; 4730 } 4731 static char *f (char * (*g) (char **, int), char **p, ...) 4732 { 4733 char *s; 4734 va_list v; 4735 va_start (v,p); 4736 s = g (p, va_arg (v,int)); 4737 va_end (v); 4738 return s; 4739 } 4740 4741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4742 function prototypes and stuff, but not '\xHH' hex character constants. 4743 These don't provoke an error unfortunately, instead are silently treated 4744 as 'x'. The following induces an error, until -std is added to get 4745 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4746 array size at least. It's necessary to write '\x00'==0 to get something 4747 that's true only with -std. */ 4748 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4749 4750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4751 inside strings and character constants. */ 4752 #define FOO(x) 'x' 4753 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4754 4755 int test (int i, double x); 4756 struct s1 {int (*f) (int a);}; 4757 struct s2 {int (*f) (double a);}; 4758 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4759 int argc; 4760 char **argv; 4761 int 4762 main () 4763 { 4764 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4765 ; 4766 return 0; 4767 } 4768 _ACEOF 4769 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4770 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4771 do 4772 CC="$ac_save_CC $ac_arg" 4773 if ac_fn_c_try_compile "$LINENO"; then : 4774 ac_cv_prog_cc_c89=$ac_arg 4775 fi 4776 rm -f core conftest.err conftest.$ac_objext 4777 test "x$ac_cv_prog_cc_c89" != "xno" && break 4778 done 4779 rm -f conftest.$ac_ext 4780 CC=$ac_save_CC 4781 4782 fi 4783 # AC_CACHE_VAL 4784 case "x$ac_cv_prog_cc_c89" in 4785 x) 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4787 $as_echo "none needed" >&6; } ;; 4788 xno) 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4790 $as_echo "unsupported" >&6; } ;; 4791 *) 4792 CC="$CC $ac_cv_prog_cc_c89" 4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4794 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4795 esac 4796 if test "x$ac_cv_prog_cc_c89" != xno; then : 4797 4798 fi 4799 4800 ac_ext=c 4801 ac_cpp='$CPP $CPPFLAGS' 4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4805 4806 ac_ext=cpp 4807 ac_cpp='$CXXCPP $CPPFLAGS' 4808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4811 if test -z "$CXX"; then 4812 if test -n "$CCC"; then 4813 CXX=$CCC 4814 else 4815 if test -n "$ac_tool_prefix"; then 4816 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4817 do 4818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4821 $as_echo_n "checking for $ac_word... " >&6; } 4822 if test "${ac_cv_prog_CXX+set}" = set; then : 4823 $as_echo_n "(cached) " >&6 4824 else 4825 if test -n "$CXX"; then 4826 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4827 else 4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4829 for as_dir in $PATH 4830 do 4831 IFS=$as_save_IFS 4832 test -z "$as_dir" && as_dir=. 4833 for ac_exec_ext in '' $ac_executable_extensions; do 4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4835 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4837 break 2 4838 fi 4839 done 4840 done 4841 IFS=$as_save_IFS 4842 4843 fi 4844 fi 4845 CXX=$ac_cv_prog_CXX 4846 if test -n "$CXX"; then 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4848 $as_echo "$CXX" >&6; } 4849 else 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4851 $as_echo "no" >&6; } 4852 fi 4853 4854 4855 test -n "$CXX" && break 4856 done 4857 fi 4858 if test -z "$CXX"; then 4859 ac_ct_CXX=$CXX 4860 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4861 do 4862 # Extract the first word of "$ac_prog", so it can be a program name with args. 4863 set dummy $ac_prog; ac_word=$2 4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4865 $as_echo_n "checking for $ac_word... " >&6; } 4866 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 4867 $as_echo_n "(cached) " >&6 4868 else 4869 if test -n "$ac_ct_CXX"; then 4870 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4871 else 4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4873 for as_dir in $PATH 4874 do 4875 IFS=$as_save_IFS 4876 test -z "$as_dir" && as_dir=. 4877 for ac_exec_ext in '' $ac_executable_extensions; do 4878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4879 ac_cv_prog_ac_ct_CXX="$ac_prog" 4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4881 break 2 4882 fi 4883 done 4884 done 4885 IFS=$as_save_IFS 4886 4887 fi 4888 fi 4889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4890 if test -n "$ac_ct_CXX"; then 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4892 $as_echo "$ac_ct_CXX" >&6; } 4893 else 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4895 $as_echo "no" >&6; } 4896 fi 4897 4898 4899 test -n "$ac_ct_CXX" && break 4900 done 4901 4902 if test "x$ac_ct_CXX" = x; then 4903 CXX="g++" 4904 else 4905 case $cross_compiling:$ac_tool_warned in 4906 yes:) 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4909 ac_tool_warned=yes ;; 4910 esac 4911 CXX=$ac_ct_CXX 4912 fi 4913 fi 4914 4915 fi 4916 fi 4917 # Provide some information about the compiler. 4918 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4919 set X $ac_compile 4920 ac_compiler=$2 4921 for ac_option in --version -v -V -qversion; do 4922 { { ac_try="$ac_compiler $ac_option >&5" 4923 case "(($ac_try" in 4924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4925 *) ac_try_echo=$ac_try;; 4926 esac 4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4928 $as_echo "$ac_try_echo"; } >&5 4929 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4930 ac_status=$? 4931 if test -s conftest.err; then 4932 sed '10a\ 4933 ... rest of stderr output deleted ... 4934 10q' conftest.err >conftest.er1 4935 cat conftest.er1 >&5 4936 rm -f conftest.er1 conftest.err 4937 fi 4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4939 test $ac_status = 0; } 4940 done 4941 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4943 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4944 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4945 $as_echo_n "(cached) " >&6 4946 else 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948 /* end confdefs.h. */ 4949 4950 int 4951 main () 4952 { 4953 #ifndef __GNUC__ 4954 choke me 4955 #endif 4956 4957 ; 4958 return 0; 4959 } 4960 _ACEOF 4961 if ac_fn_cxx_try_compile "$LINENO"; then : 4962 ac_compiler_gnu=yes 4963 else 4964 ac_compiler_gnu=no 4965 fi 4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4967 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4968 4969 fi 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4971 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4972 if test $ac_compiler_gnu = yes; then 4973 GXX=yes 4974 else 4975 GXX= 4976 fi 4977 ac_test_CXXFLAGS=${CXXFLAGS+set} 4978 ac_save_CXXFLAGS=$CXXFLAGS 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4980 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 4981 if test "${ac_cv_prog_cxx_g+set}" = set; then : 4982 $as_echo_n "(cached) " >&6 4983 else 4984 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4985 ac_cxx_werror_flag=yes 4986 ac_cv_prog_cxx_g=no 4987 CXXFLAGS="-g" 4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4989 /* end confdefs.h. */ 4990 4991 int 4992 main () 4993 { 4994 4995 ; 4996 return 0; 4997 } 4998 _ACEOF 4999 if ac_fn_cxx_try_compile "$LINENO"; then : 5000 ac_cv_prog_cxx_g=yes 5001 else 5002 CXXFLAGS="" 5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5004 /* end confdefs.h. */ 5005 5006 int 5007 main () 5008 { 5009 5010 ; 5011 return 0; 5012 } 5013 _ACEOF 5014 if ac_fn_cxx_try_compile "$LINENO"; then : 5015 5016 else 5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5018 CXXFLAGS="-g" 5019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5020 /* end confdefs.h. */ 5021 5022 int 5023 main () 5024 { 5025 5026 ; 5027 return 0; 5028 } 5029 _ACEOF 5030 if ac_fn_cxx_try_compile "$LINENO"; then : 5031 ac_cv_prog_cxx_g=yes 5032 fi 5033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5034 fi 5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5036 fi 5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5038 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5039 fi 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5041 $as_echo "$ac_cv_prog_cxx_g" >&6; } 5042 if test "$ac_test_CXXFLAGS" = set; then 5043 CXXFLAGS=$ac_save_CXXFLAGS 5044 elif test $ac_cv_prog_cxx_g = yes; then 5045 if test "$GXX" = yes; then 5046 CXXFLAGS="-g -O2" 5047 else 5048 CXXFLAGS="-g" 5049 fi 5050 else 5051 if test "$GXX" = yes; then 5052 CXXFLAGS="-O2" 5053 else 5054 CXXFLAGS= 5055 fi 5056 fi 5057 ac_ext=c 5058 ac_cpp='$CPP $CPPFLAGS' 5059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5061 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5062 5063 depcc="$CXX" am_compiler_list= 5064 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5066 $as_echo_n "checking dependency style of $depcc... " >&6; } 5067 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5068 $as_echo_n "(cached) " >&6 5069 else 5070 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5071 # We make a subdir and do the tests there. Otherwise we can end up 5072 # making bogus files that we don't know about and never remove. For 5073 # instance it was reported that on HP-UX the gcc test will end up 5074 # making a dummy file named `D' -- because `-MD' means `put the output 5075 # in D'. 5076 rm -rf conftest.dir 5077 mkdir conftest.dir 5078 # Copy depcomp to subdir because otherwise we won't find it if we're 5079 # using a relative directory. 5080 cp "$am_depcomp" conftest.dir 5081 cd conftest.dir 5082 # We will build objects and dependencies in a subdirectory because 5083 # it helps to detect inapplicable dependency modes. For instance 5084 # both Tru64's cc and ICC support -MD to output dependencies as a 5085 # side effect of compilation, but ICC will put the dependencies in 5086 # the current directory while Tru64 will put them in the object 5087 # directory. 5088 mkdir sub 5089 5090 am_cv_CXX_dependencies_compiler_type=none 5091 if test "$am_compiler_list" = ""; then 5092 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5093 fi 5094 am__universal=false 5095 case " $depcc " in #( 5096 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5097 esac 5098 5099 for depmode in $am_compiler_list; do 5100 # Setup a source with many dependencies, because some compilers 5101 # like to wrap large dependency lists on column 80 (with \), and 5102 # we should not choose a depcomp mode which is confused by this. 5103 # 5104 # We need to recreate these files for each test, as the compiler may 5105 # overwrite some of them when testing with obscure command lines. 5106 # This happens at least with the AIX C compiler. 5107 : > sub/conftest.c 5108 for i in 1 2 3 4 5 6; do 5109 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5110 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5111 # Solaris 8's {/usr,}/bin/sh. 5112 touch sub/conftst$i.h 5113 done 5114 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5115 5116 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5117 # mode. It turns out that the SunPro C++ compiler does not properly 5118 # handle `-M -o', and we need to detect this. Also, some Intel 5119 # versions had trouble with output in subdirs 5120 am__obj=sub/conftest.${OBJEXT-o} 5121 am__minus_obj="-o $am__obj" 5122 case $depmode in 5123 gcc) 5124 # This depmode causes a compiler race in universal mode. 5125 test "$am__universal" = false || continue 5126 ;; 5127 nosideeffect) 5128 # after this tag, mechanisms are not by side-effect, so they'll 5129 # only be used when explicitly requested 5130 if test "x$enable_dependency_tracking" = xyes; then 5131 continue 5132 else 5133 break 5134 fi 5135 ;; 5136 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5137 # This compiler won't grok `-c -o', but also, the minuso test has 5138 # not run yet. These depmodes are late enough in the game, and 5139 # so weak that their functioning should not be impacted. 5140 am__obj=conftest.${OBJEXT-o} 5141 am__minus_obj= 5142 ;; 5143 none) break ;; 5144 esac 5145 if depmode=$depmode \ 5146 source=sub/conftest.c object=$am__obj \ 5147 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5148 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5149 >/dev/null 2>conftest.err && 5150 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5151 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5152 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5153 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5154 # icc doesn't choke on unknown options, it will just issue warnings 5155 # or remarks (even with -Werror). So we grep stderr for any message 5156 # that says an option was ignored or not supported. 5157 # When given -MP, icc 7.0 and 7.1 complain thusly: 5158 # icc: Command line warning: ignoring option '-M'; no argument required 5159 # The diagnosis changed in icc 8.0: 5160 # icc: Command line remark: option '-MP' not supported 5161 if (grep 'ignoring option' conftest.err || 5162 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5163 am_cv_CXX_dependencies_compiler_type=$depmode 5164 break 5165 fi 5166 fi 5167 done 5168 5169 cd .. 5170 rm -rf conftest.dir 5171 else 5172 am_cv_CXX_dependencies_compiler_type=none 5173 fi 5174 5175 fi 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5177 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5178 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5179 5180 if 5181 test "x$enable_dependency_tracking" != xno \ 5182 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5183 am__fastdepCXX_TRUE= 5184 am__fastdepCXX_FALSE='#' 5185 else 5186 am__fastdepCXX_TRUE='#' 5187 am__fastdepCXX_FALSE= 5188 fi 5189 5190 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5192 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5193 if test "${ac_cv_path_GREP+set}" = set; then : 5194 $as_echo_n "(cached) " >&6 5195 else 5196 if test -z "$GREP"; then 5197 ac_path_GREP_found=false 5198 # Loop through the user's path and test for each of PROGNAME-LIST 5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5201 do 5202 IFS=$as_save_IFS 5203 test -z "$as_dir" && as_dir=. 5204 for ac_prog in grep ggrep; do 5205 for ac_exec_ext in '' $ac_executable_extensions; do 5206 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5207 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 5208 # Check for GNU ac_path_GREP and select it if it is found. 5209 # Check for GNU $ac_path_GREP 5210 case `"$ac_path_GREP" --version 2>&1` in 5211 *GNU*) 5212 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5213 *) 5214 ac_count=0 5215 $as_echo_n 0123456789 >"conftest.in" 5216 while : 5217 do 5218 cat "conftest.in" "conftest.in" >"conftest.tmp" 5219 mv "conftest.tmp" "conftest.in" 5220 cp "conftest.in" "conftest.nl" 5221 $as_echo 'GREP' >> "conftest.nl" 5222 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5224 as_fn_arith $ac_count + 1 && ac_count=$as_val 5225 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5226 # Best one so far, save it but keep looking for a better one 5227 ac_cv_path_GREP="$ac_path_GREP" 5228 ac_path_GREP_max=$ac_count 5229 fi 5230 # 10*(2^10) chars as input seems more than enough 5231 test $ac_count -gt 10 && break 5232 done 5233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5234 esac 5235 5236 $ac_path_GREP_found && break 3 5237 done 5238 done 5239 done 5240 IFS=$as_save_IFS 5241 if test -z "$ac_cv_path_GREP"; then 5242 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5243 fi 5244 else 5245 ac_cv_path_GREP=$GREP 5246 fi 5247 5248 fi 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5250 $as_echo "$ac_cv_path_GREP" >&6; } 5251 GREP="$ac_cv_path_GREP" 5252 5253 5254 ac_ext=c 5255 ac_cpp='$CPP $CPPFLAGS' 5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5258 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5260 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5261 # On Suns, sometimes $CPP names a directory. 5262 if test -n "$CPP" && test -d "$CPP"; then 5263 CPP= 5264 fi 5265 if test -z "$CPP"; then 5266 if test "${ac_cv_prog_CPP+set}" = set; then : 5267 $as_echo_n "(cached) " >&6 5268 else 5269 # Double quotes because CPP needs to be expanded 5270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5271 do 5272 ac_preproc_ok=false 5273 for ac_c_preproc_warn_flag in '' yes 5274 do 5275 # Use a header file that comes with gcc, so configuring glibc 5276 # with a fresh cross-compiler works. 5277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5278 # <limits.h> exists even on freestanding compilers. 5279 # On the NeXT, cc -E runs the code through the compiler's parser, 5280 # not just through cpp. "Syntax error" is here to catch this case. 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282 /* end confdefs.h. */ 5283 #ifdef __STDC__ 5284 # include <limits.h> 5285 #else 5286 # include <assert.h> 5287 #endif 5288 Syntax error 5289 _ACEOF 5290 if ac_fn_c_try_cpp "$LINENO"; then : 5291 5292 else 5293 # Broken: fails on valid input. 5294 continue 5295 fi 5296 rm -f conftest.err conftest.$ac_ext 5297 5298 # OK, works on sane cases. Now check whether nonexistent headers 5299 # can be detected and how. 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5301 /* end confdefs.h. */ 5302 #include <ac_nonexistent.h> 5303 _ACEOF 5304 if ac_fn_c_try_cpp "$LINENO"; then : 5305 # Broken: success on invalid input. 5306 continue 5307 else 5308 # Passes both tests. 5309 ac_preproc_ok=: 5310 break 5311 fi 5312 rm -f conftest.err conftest.$ac_ext 5313 5314 done 5315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5316 rm -f conftest.err conftest.$ac_ext 5317 if $ac_preproc_ok; then : 5318 break 5319 fi 5320 5321 done 5322 ac_cv_prog_CPP=$CPP 5323 5324 fi 5325 CPP=$ac_cv_prog_CPP 5326 else 5327 ac_cv_prog_CPP=$CPP 5328 fi 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5330 $as_echo "$CPP" >&6; } 5331 ac_preproc_ok=false 5332 for ac_c_preproc_warn_flag in '' yes 5333 do 5334 # Use a header file that comes with gcc, so configuring glibc 5335 # with a fresh cross-compiler works. 5336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5337 # <limits.h> exists even on freestanding compilers. 5338 # On the NeXT, cc -E runs the code through the compiler's parser, 5339 # not just through cpp. "Syntax error" is here to catch this case. 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341 /* end confdefs.h. */ 5342 #ifdef __STDC__ 5343 # include <limits.h> 5344 #else 5345 # include <assert.h> 5346 #endif 5347 Syntax error 5348 _ACEOF 5349 if ac_fn_c_try_cpp "$LINENO"; then : 5350 5351 else 5352 # Broken: fails on valid input. 5353 continue 5354 fi 5355 rm -f conftest.err conftest.$ac_ext 5356 5357 # OK, works on sane cases. Now check whether nonexistent headers 5358 # can be detected and how. 5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5360 /* end confdefs.h. */ 5361 #include <ac_nonexistent.h> 5362 _ACEOF 5363 if ac_fn_c_try_cpp "$LINENO"; then : 5364 # Broken: success on invalid input. 5365 continue 5366 else 5367 # Passes both tests. 5368 ac_preproc_ok=: 5369 break 5370 fi 5371 rm -f conftest.err conftest.$ac_ext 5372 5373 done 5374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5375 rm -f conftest.err conftest.$ac_ext 5376 if $ac_preproc_ok; then : 5377 5378 else 5379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5381 as_fn_error "C preprocessor \"$CPP\" fails sanity check 5382 See \`config.log' for more details." "$LINENO" 5; } 5383 fi 5384 5385 ac_ext=c 5386 ac_cpp='$CPP $CPPFLAGS' 5387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5389 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5390 5391 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5393 $as_echo_n "checking for egrep... " >&6; } 5394 if test "${ac_cv_path_EGREP+set}" = set; then : 5395 $as_echo_n "(cached) " >&6 5396 else 5397 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5398 then ac_cv_path_EGREP="$GREP -E" 5399 else 5400 if test -z "$EGREP"; then 5401 ac_path_EGREP_found=false 5402 # Loop through the user's path and test for each of PROGNAME-LIST 5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5405 do 5406 IFS=$as_save_IFS 5407 test -z "$as_dir" && as_dir=. 5408 for ac_prog in egrep; do 5409 for ac_exec_ext in '' $ac_executable_extensions; do 5410 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5411 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 5412 # Check for GNU ac_path_EGREP and select it if it is found. 5413 # Check for GNU $ac_path_EGREP 5414 case `"$ac_path_EGREP" --version 2>&1` in 5415 *GNU*) 5416 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5417 *) 5418 ac_count=0 5419 $as_echo_n 0123456789 >"conftest.in" 5420 while : 5421 do 5422 cat "conftest.in" "conftest.in" >"conftest.tmp" 5423 mv "conftest.tmp" "conftest.in" 5424 cp "conftest.in" "conftest.nl" 5425 $as_echo 'EGREP' >> "conftest.nl" 5426 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5428 as_fn_arith $ac_count + 1 && ac_count=$as_val 5429 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5430 # Best one so far, save it but keep looking for a better one 5431 ac_cv_path_EGREP="$ac_path_EGREP" 5432 ac_path_EGREP_max=$ac_count 5433 fi 5434 # 10*(2^10) chars as input seems more than enough 5435 test $ac_count -gt 10 && break 5436 done 5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5438 esac 5439 5440 $ac_path_EGREP_found && break 3 5441 done 5442 done 5443 done 5444 IFS=$as_save_IFS 5445 if test -z "$ac_cv_path_EGREP"; then 5446 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5447 fi 5448 else 5449 ac_cv_path_EGREP=$EGREP 5450 fi 5451 5452 fi 5453 fi 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5455 $as_echo "$ac_cv_path_EGREP" >&6; } 5456 EGREP="$ac_cv_path_EGREP" 5457 5458 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5460 $as_echo_n "checking for ANSI C header files... " >&6; } 5461 if test "${ac_cv_header_stdc+set}" = set; then : 5462 $as_echo_n "(cached) " >&6 5463 else 5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5465 /* end confdefs.h. */ 5466 #include <stdlib.h> 5467 #include <stdarg.h> 5468 #include <string.h> 5469 #include <float.h> 5470 5471 int 5472 main () 5473 { 5474 5475 ; 5476 return 0; 5477 } 5478 _ACEOF 5479 if ac_fn_c_try_compile "$LINENO"; then : 5480 ac_cv_header_stdc=yes 5481 else 5482 ac_cv_header_stdc=no 5483 fi 5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5485 5486 if test $ac_cv_header_stdc = yes; then 5487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489 /* end confdefs.h. */ 5490 #include <string.h> 5491 5492 _ACEOF 5493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5494 $EGREP "memchr" >/dev/null 2>&1; then : 5495 5496 else 5497 ac_cv_header_stdc=no 5498 fi 5499 rm -f conftest* 5500 5501 fi 5502 5503 if test $ac_cv_header_stdc = yes; then 5504 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506 /* end confdefs.h. */ 5507 #include <stdlib.h> 5508 5509 _ACEOF 5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5511 $EGREP "free" >/dev/null 2>&1; then : 5512 5513 else 5514 ac_cv_header_stdc=no 5515 fi 5516 rm -f conftest* 5517 5518 fi 5519 5520 if test $ac_cv_header_stdc = yes; then 5521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5522 if test "$cross_compiling" = yes; then : 5523 : 5524 else 5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5526 /* end confdefs.h. */ 5527 #include <ctype.h> 5528 #include <stdlib.h> 5529 #if ((' ' & 0x0FF) == 0x020) 5530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5532 #else 5533 # define ISLOWER(c) \ 5534 (('a' <= (c) && (c) <= 'i') \ 5535 || ('j' <= (c) && (c) <= 'r') \ 5536 || ('s' <= (c) && (c) <= 'z')) 5537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5538 #endif 5539 5540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5541 int 5542 main () 5543 { 5544 int i; 5545 for (i = 0; i < 256; i++) 5546 if (XOR (islower (i), ISLOWER (i)) 5547 || toupper (i) != TOUPPER (i)) 5548 return 2; 5549 return 0; 5550 } 5551 _ACEOF 5552 if ac_fn_c_try_run "$LINENO"; then : 5553 5554 else 5555 ac_cv_header_stdc=no 5556 fi 5557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5558 conftest.$ac_objext conftest.beam conftest.$ac_ext 5559 fi 5560 5561 fi 5562 fi 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5564 $as_echo "$ac_cv_header_stdc" >&6; } 5565 if test $ac_cv_header_stdc = yes; then 5566 5567 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 5568 5569 fi 5570 5571 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 5572 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5573 inttypes.h stdint.h unistd.h 5574 do : 5575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5576 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5577 " 5578 eval as_val=\$$as_ac_Header 5579 if test "x$as_val" = x""yes; then : 5580 cat >>confdefs.h <<_ACEOF 5581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5582 _ACEOF 5583 5584 fi 5585 5586 done 5587 5588 5589 5590 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5591 if test "x$ac_cv_header_minix_config_h" = x""yes; then : 5592 MINIX=yes 5593 else 5594 MINIX= 5595 fi 5596 5597 5598 if test "$MINIX" = yes; then 5599 5600 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5601 5602 5603 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5604 5605 5606 $as_echo "#define _MINIX 1" >>confdefs.h 5607 5608 fi 5609 5610 5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5612 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5613 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 5614 $as_echo_n "(cached) " >&6 5615 else 5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617 /* end confdefs.h. */ 5618 5619 # define __EXTENSIONS__ 1 5620 $ac_includes_default 5621 int 5622 main () 5623 { 5624 5625 ; 5626 return 0; 5627 } 5628 _ACEOF 5629 if ac_fn_c_try_compile "$LINENO"; then : 5630 ac_cv_safe_to_define___extensions__=yes 5631 else 5632 ac_cv_safe_to_define___extensions__=no 5633 fi 5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5635 fi 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5637 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5638 test $ac_cv_safe_to_define___extensions__ = yes && 5639 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5640 5641 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5642 5643 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5644 5645 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5646 5647 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5648 5649 5650 5651 5652 5653 5654 case `pwd` in 5655 *\ * | *\ *) 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5657 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5658 esac 5659 5660 5661 5662 macro_version='2.2.7a' 5663 macro_revision='1.3134' 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 ltmain="$ac_aux_dir/ltmain.sh" 5678 5679 # Backslashify metacharacters that are still active within 5680 # double-quoted strings. 5681 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5682 5683 # Same as above, but do not quote variable references. 5684 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5685 5686 # Sed substitution to delay expansion of an escaped shell variable in a 5687 # double_quote_subst'ed string. 5688 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5689 5690 # Sed substitution to delay expansion of an escaped single quote. 5691 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5692 5693 # Sed substitution to avoid accidental globbing in evaled expressions 5694 no_glob_subst='s/\*/\\\*/g' 5695 5696 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5697 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5698 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5699 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5701 $as_echo_n "checking how to print strings... " >&6; } 5702 # Test print first, because it will be a builtin if present. 5703 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5704 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5705 ECHO='print -r --' 5706 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5707 ECHO='printf %s\n' 5708 else 5709 # Use this function as a fallback that always works. 5710 func_fallback_echo () 5711 { 5712 eval 'cat <<_LTECHO_EOF 5713 $1 5714 _LTECHO_EOF' 5715 } 5716 ECHO='func_fallback_echo' 5717 fi 5718 5719 # func_echo_all arg... 5720 # Invoke $ECHO with all args, space-separated. 5721 func_echo_all () 5722 { 5723 $ECHO "" 5724 } 5725 5726 case "$ECHO" in 5727 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5728 $as_echo "printf" >&6; } ;; 5729 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5730 $as_echo "print -r" >&6; } ;; 5731 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5732 $as_echo "cat" >&6; } ;; 5733 esac 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5749 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5750 if test "${ac_cv_path_SED+set}" = set; then : 5751 $as_echo_n "(cached) " >&6 5752 else 5753 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5754 for ac_i in 1 2 3 4 5 6 7; do 5755 ac_script="$ac_script$as_nl$ac_script" 5756 done 5757 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5758 { ac_script=; unset ac_script;} 5759 if test -z "$SED"; then 5760 ac_path_SED_found=false 5761 # Loop through the user's path and test for each of PROGNAME-LIST 5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5763 for as_dir in $PATH 5764 do 5765 IFS=$as_save_IFS 5766 test -z "$as_dir" && as_dir=. 5767 for ac_prog in sed gsed; do 5768 for ac_exec_ext in '' $ac_executable_extensions; do 5769 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5770 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5771 # Check for GNU ac_path_SED and select it if it is found. 5772 # Check for GNU $ac_path_SED 5773 case `"$ac_path_SED" --version 2>&1` in 5774 *GNU*) 5775 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5776 *) 5777 ac_count=0 5778 $as_echo_n 0123456789 >"conftest.in" 5779 while : 5780 do 5781 cat "conftest.in" "conftest.in" >"conftest.tmp" 5782 mv "conftest.tmp" "conftest.in" 5783 cp "conftest.in" "conftest.nl" 5784 $as_echo '' >> "conftest.nl" 5785 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5787 as_fn_arith $ac_count + 1 && ac_count=$as_val 5788 if test $ac_count -gt ${ac_path_SED_max-0}; then 5789 # Best one so far, save it but keep looking for a better one 5790 ac_cv_path_SED="$ac_path_SED" 5791 ac_path_SED_max=$ac_count 5792 fi 5793 # 10*(2^10) chars as input seems more than enough 5794 test $ac_count -gt 10 && break 5795 done 5796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5797 esac 5798 5799 $ac_path_SED_found && break 3 5800 done 5801 done 5802 done 5803 IFS=$as_save_IFS 5804 if test -z "$ac_cv_path_SED"; then 5805 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5806 fi 5807 else 5808 ac_cv_path_SED=$SED 5809 fi 5810 5811 fi 5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5813 $as_echo "$ac_cv_path_SED" >&6; } 5814 SED="$ac_cv_path_SED" 5815 rm -f conftest.sed 5816 5817 test -z "$SED" && SED=sed 5818 Xsed="$SED -e 1s/^X//" 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5831 $as_echo_n "checking for fgrep... " >&6; } 5832 if test "${ac_cv_path_FGREP+set}" = set; then : 5833 $as_echo_n "(cached) " >&6 5834 else 5835 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5836 then ac_cv_path_FGREP="$GREP -F" 5837 else 5838 if test -z "$FGREP"; then 5839 ac_path_FGREP_found=false 5840 # Loop through the user's path and test for each of PROGNAME-LIST 5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5842 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5843 do 5844 IFS=$as_save_IFS 5845 test -z "$as_dir" && as_dir=. 5846 for ac_prog in fgrep; do 5847 for ac_exec_ext in '' $ac_executable_extensions; do 5848 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5849 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5850 # Check for GNU ac_path_FGREP and select it if it is found. 5851 # Check for GNU $ac_path_FGREP 5852 case `"$ac_path_FGREP" --version 2>&1` in 5853 *GNU*) 5854 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5855 *) 5856 ac_count=0 5857 $as_echo_n 0123456789 >"conftest.in" 5858 while : 5859 do 5860 cat "conftest.in" "conftest.in" >"conftest.tmp" 5861 mv "conftest.tmp" "conftest.in" 5862 cp "conftest.in" "conftest.nl" 5863 $as_echo 'FGREP' >> "conftest.nl" 5864 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5866 as_fn_arith $ac_count + 1 && ac_count=$as_val 5867 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5868 # Best one so far, save it but keep looking for a better one 5869 ac_cv_path_FGREP="$ac_path_FGREP" 5870 ac_path_FGREP_max=$ac_count 5871 fi 5872 # 10*(2^10) chars as input seems more than enough 5873 test $ac_count -gt 10 && break 5874 done 5875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5876 esac 5877 5878 $ac_path_FGREP_found && break 3 5879 done 5880 done 5881 done 5882 IFS=$as_save_IFS 5883 if test -z "$ac_cv_path_FGREP"; then 5884 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5885 fi 5886 else 5887 ac_cv_path_FGREP=$FGREP 5888 fi 5889 5890 fi 5891 fi 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5893 $as_echo "$ac_cv_path_FGREP" >&6; } 5894 FGREP="$ac_cv_path_FGREP" 5895 5896 5897 test -z "$GREP" && GREP=grep 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 # Check whether --with-gnu-ld was given. 5918 if test "${with_gnu_ld+set}" = set; then : 5919 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5920 else 5921 with_gnu_ld=no 5922 fi 5923 5924 ac_prog=ld 5925 if test "$GCC" = yes; then 5926 # Check if gcc -print-prog-name=ld gives a path. 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5928 $as_echo_n "checking for ld used by $CC... " >&6; } 5929 case $host in 5930 *-*-mingw*) 5931 # gcc leaves a trailing carriage return which upsets mingw 5932 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5933 *) 5934 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5935 esac 5936 case $ac_prog in 5937 # Accept absolute paths. 5938 [\\/]* | ?:[\\/]*) 5939 re_direlt='/[^/][^/]*/\.\./' 5940 # Canonicalize the pathname of ld 5941 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5942 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5943 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5944 done 5945 test -z "$LD" && LD="$ac_prog" 5946 ;; 5947 "") 5948 # If it fails, then pretend we aren't using GCC. 5949 ac_prog=ld 5950 ;; 5951 *) 5952 # If it is relative, then search for the first ld in PATH. 5953 with_gnu_ld=unknown 5954 ;; 5955 esac 5956 elif test "$with_gnu_ld" = yes; then 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5958 $as_echo_n "checking for GNU ld... " >&6; } 5959 else 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5961 $as_echo_n "checking for non-GNU ld... " >&6; } 5962 fi 5963 if test "${lt_cv_path_LD+set}" = set; then : 5964 $as_echo_n "(cached) " >&6 5965 else 5966 if test -z "$LD"; then 5967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5968 for ac_dir in $PATH; do 5969 IFS="$lt_save_ifs" 5970 test -z "$ac_dir" && ac_dir=. 5971 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5972 lt_cv_path_LD="$ac_dir/$ac_prog" 5973 # Check to see if the program is GNU ld. I'd rather use --version, 5974 # but apparently some variants of GNU ld only accept -v. 5975 # Break only if it was the GNU/non-GNU ld that we prefer. 5976 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5977 *GNU* | *'with BFD'*) 5978 test "$with_gnu_ld" != no && break 5979 ;; 5980 *) 5981 test "$with_gnu_ld" != yes && break 5982 ;; 5983 esac 5984 fi 5985 done 5986 IFS="$lt_save_ifs" 5987 else 5988 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5989 fi 5990 fi 5991 5992 LD="$lt_cv_path_LD" 5993 if test -n "$LD"; then 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5995 $as_echo "$LD" >&6; } 5996 else 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5998 $as_echo "no" >&6; } 5999 fi 6000 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6002 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6003 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 6004 $as_echo_n "(cached) " >&6 6005 else 6006 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6007 case `$LD -v 2>&1 </dev/null` in 6008 *GNU* | *'with BFD'*) 6009 lt_cv_prog_gnu_ld=yes 6010 ;; 6011 *) 6012 lt_cv_prog_gnu_ld=no 6013 ;; 6014 esac 6015 fi 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6017 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 6018 with_gnu_ld=$lt_cv_prog_gnu_ld 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6029 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6030 if test "${lt_cv_path_NM+set}" = set; then : 6031 $as_echo_n "(cached) " >&6 6032 else 6033 if test -n "$NM"; then 6034 # Let the user override the test. 6035 lt_cv_path_NM="$NM" 6036 else 6037 lt_nm_to_check="${ac_tool_prefix}nm" 6038 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6039 lt_nm_to_check="$lt_nm_to_check nm" 6040 fi 6041 for lt_tmp_nm in $lt_nm_to_check; do 6042 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6043 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6044 IFS="$lt_save_ifs" 6045 test -z "$ac_dir" && ac_dir=. 6046 tmp_nm="$ac_dir/$lt_tmp_nm" 6047 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6048 # Check to see if the nm accepts a BSD-compat flag. 6049 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6050 # nm: unknown option "B" ignored 6051 # Tru64's nm complains that /dev/null is an invalid object file 6052 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6053 */dev/null* | *'Invalid file or object type'*) 6054 lt_cv_path_NM="$tmp_nm -B" 6055 break 6056 ;; 6057 *) 6058 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6059 */dev/null*) 6060 lt_cv_path_NM="$tmp_nm -p" 6061 break 6062 ;; 6063 *) 6064 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6065 continue # so that we can try to find one that supports BSD flags 6066 ;; 6067 esac 6068 ;; 6069 esac 6070 fi 6071 done 6072 IFS="$lt_save_ifs" 6073 done 6074 : ${lt_cv_path_NM=no} 6075 fi 6076 fi 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6078 $as_echo "$lt_cv_path_NM" >&6; } 6079 if test "$lt_cv_path_NM" != "no"; then 6080 NM="$lt_cv_path_NM" 6081 else 6082 # Didn't find any BSD compatible name lister, look for dumpbin. 6083 if test -n "$DUMPBIN"; then : 6084 # Let the user override the test. 6085 else 6086 if test -n "$ac_tool_prefix"; then 6087 for ac_prog in dumpbin "link -dump" 6088 do 6089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6092 $as_echo_n "checking for $ac_word... " >&6; } 6093 if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6094 $as_echo_n "(cached) " >&6 6095 else 6096 if test -n "$DUMPBIN"; then 6097 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6098 else 6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6100 for as_dir in $PATH 6101 do 6102 IFS=$as_save_IFS 6103 test -z "$as_dir" && as_dir=. 6104 for ac_exec_ext in '' $ac_executable_extensions; do 6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6106 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6108 break 2 6109 fi 6110 done 6111 done 6112 IFS=$as_save_IFS 6113 6114 fi 6115 fi 6116 DUMPBIN=$ac_cv_prog_DUMPBIN 6117 if test -n "$DUMPBIN"; then 6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6119 $as_echo "$DUMPBIN" >&6; } 6120 else 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6122 $as_echo "no" >&6; } 6123 fi 6124 6125 6126 test -n "$DUMPBIN" && break 6127 done 6128 fi 6129 if test -z "$DUMPBIN"; then 6130 ac_ct_DUMPBIN=$DUMPBIN 6131 for ac_prog in dumpbin "link -dump" 6132 do 6133 # Extract the first word of "$ac_prog", so it can be a program name with args. 6134 set dummy $ac_prog; ac_word=$2 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136 $as_echo_n "checking for $ac_word... " >&6; } 6137 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6138 $as_echo_n "(cached) " >&6 6139 else 6140 if test -n "$ac_ct_DUMPBIN"; then 6141 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6142 else 6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6144 for as_dir in $PATH 6145 do 6146 IFS=$as_save_IFS 6147 test -z "$as_dir" && as_dir=. 6148 for ac_exec_ext in '' $ac_executable_extensions; do 6149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6150 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6152 break 2 6153 fi 6154 done 6155 done 6156 IFS=$as_save_IFS 6157 6158 fi 6159 fi 6160 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6161 if test -n "$ac_ct_DUMPBIN"; then 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6163 $as_echo "$ac_ct_DUMPBIN" >&6; } 6164 else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166 $as_echo "no" >&6; } 6167 fi 6168 6169 6170 test -n "$ac_ct_DUMPBIN" && break 6171 done 6172 6173 if test "x$ac_ct_DUMPBIN" = x; then 6174 DUMPBIN=":" 6175 else 6176 case $cross_compiling:$ac_tool_warned in 6177 yes:) 6178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6180 ac_tool_warned=yes ;; 6181 esac 6182 DUMPBIN=$ac_ct_DUMPBIN 6183 fi 6184 fi 6185 6186 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6187 *COFF*) 6188 DUMPBIN="$DUMPBIN -symbols" 6189 ;; 6190 *) 6191 DUMPBIN=: 6192 ;; 6193 esac 6194 fi 6195 6196 if test "$DUMPBIN" != ":"; then 6197 NM="$DUMPBIN" 6198 fi 6199 fi 6200 test -z "$NM" && NM=nm 6201 6202 6203 6204 6205 6206 6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6208 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 6209 if test "${lt_cv_nm_interface+set}" = set; then : 6210 $as_echo_n "(cached) " >&6 6211 else 6212 lt_cv_nm_interface="BSD nm" 6213 echo "int some_variable = 0;" > conftest.$ac_ext 6214 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6215 (eval "$ac_compile" 2>conftest.err) 6216 cat conftest.err >&5 6217 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6218 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6219 cat conftest.err >&5 6220 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6221 cat conftest.out >&5 6222 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6223 lt_cv_nm_interface="MS dumpbin" 6224 fi 6225 rm -f conftest* 6226 fi 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6228 $as_echo "$lt_cv_nm_interface" >&6; } 6229 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6231 $as_echo_n "checking whether ln -s works... " >&6; } 6232 LN_S=$as_ln_s 6233 if test "$LN_S" = "ln -s"; then 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6235 $as_echo "yes" >&6; } 6236 else 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6238 $as_echo "no, using $LN_S" >&6; } 6239 fi 6240 6241 # find the maximum length of command line arguments 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6243 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 6244 if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6245 $as_echo_n "(cached) " >&6 6246 else 6247 i=0 6248 teststring="ABCD" 6249 6250 case $build_os in 6251 msdosdjgpp*) 6252 # On DJGPP, this test can blow up pretty badly due to problems in libc 6253 # (any single argument exceeding 2000 bytes causes a buffer overrun 6254 # during glob expansion). Even if it were fixed, the result of this 6255 # check would be larger than it should be. 6256 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6257 ;; 6258 6259 gnu*) 6260 # Under GNU Hurd, this test is not required because there is 6261 # no limit to the length of command line arguments. 6262 # Libtool will interpret -1 as no limit whatsoever 6263 lt_cv_sys_max_cmd_len=-1; 6264 ;; 6265 6266 cygwin* | mingw* | cegcc*) 6267 # On Win9x/ME, this test blows up -- it succeeds, but takes 6268 # about 5 minutes as the teststring grows exponentially. 6269 # Worse, since 9x/ME are not pre-emptively multitasking, 6270 # you end up with a "frozen" computer, even though with patience 6271 # the test eventually succeeds (with a max line length of 256k). 6272 # Instead, let's just punt: use the minimum linelength reported by 6273 # all of the supported platforms: 8192 (on NT/2K/XP). 6274 lt_cv_sys_max_cmd_len=8192; 6275 ;; 6276 6277 mint*) 6278 # On MiNT this can take a long time and run out of memory. 6279 lt_cv_sys_max_cmd_len=8192; 6280 ;; 6281 6282 amigaos*) 6283 # On AmigaOS with pdksh, this test takes hours, literally. 6284 # So we just punt and use a minimum line length of 8192. 6285 lt_cv_sys_max_cmd_len=8192; 6286 ;; 6287 6288 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6289 # This has been around since 386BSD, at least. Likely further. 6290 if test -x /sbin/sysctl; then 6291 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6292 elif test -x /usr/sbin/sysctl; then 6293 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6294 else 6295 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6296 fi 6297 # And add a safety zone 6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6300 ;; 6301 6302 interix*) 6303 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6304 lt_cv_sys_max_cmd_len=196608 6305 ;; 6306 6307 osf*) 6308 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6309 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6310 # nice to cause kernel panics so lets avoid the loop below. 6311 # First set a reasonable default. 6312 lt_cv_sys_max_cmd_len=16384 6313 # 6314 if test -x /sbin/sysconfig; then 6315 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6316 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6317 esac 6318 fi 6319 ;; 6320 sco3.2v5*) 6321 lt_cv_sys_max_cmd_len=102400 6322 ;; 6323 sysv5* | sco5v6* | sysv4.2uw2*) 6324 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6325 if test -n "$kargmax"; then 6326 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6327 else 6328 lt_cv_sys_max_cmd_len=32768 6329 fi 6330 ;; 6331 *) 6332 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6333 if test -n "$lt_cv_sys_max_cmd_len"; then 6334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6336 else 6337 # Make teststring a little bigger before we do anything with it. 6338 # a 1K string should be a reasonable start. 6339 for i in 1 2 3 4 5 6 7 8 ; do 6340 teststring=$teststring$teststring 6341 done 6342 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6343 # If test is not a shell built-in, we'll probably end up computing a 6344 # maximum length that is only half of the actual maximum length, but 6345 # we can't tell. 6346 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6347 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6348 test $i != 17 # 1/2 MB should be enough 6349 do 6350 i=`expr $i + 1` 6351 teststring=$teststring$teststring 6352 done 6353 # Only check the string length outside the loop. 6354 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6355 teststring= 6356 # Add a significant safety factor because C++ compilers can tack on 6357 # massive amounts of additional arguments before passing them to the 6358 # linker. It appears as though 1/2 is a usable value. 6359 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6360 fi 6361 ;; 6362 esac 6363 6364 fi 6365 6366 if test -n $lt_cv_sys_max_cmd_len ; then 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6368 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6369 else 6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6371 $as_echo "none" >&6; } 6372 fi 6373 max_cmd_len=$lt_cv_sys_max_cmd_len 6374 6375 6376 6377 6378 6379 6380 : ${CP="cp -f"} 6381 : ${MV="mv -f"} 6382 : ${RM="rm -f"} 6383 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6385 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6386 # Try some XSI features 6387 xsi_shell=no 6388 ( _lt_dummy="a/b/c" 6389 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6390 = c,a/b,, \ 6391 && eval 'test $(( 1 + 1 )) -eq 2 \ 6392 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6393 && xsi_shell=yes 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6395 $as_echo "$xsi_shell" >&6; } 6396 6397 6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6399 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6400 lt_shell_append=no 6401 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6402 >/dev/null 2>&1 \ 6403 && lt_shell_append=yes 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6405 $as_echo "$lt_shell_append" >&6; } 6406 6407 6408 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6409 lt_unset=unset 6410 else 6411 lt_unset=false 6412 fi 6413 6414 6415 6416 6417 6418 # test EBCDIC or ASCII 6419 case `echo X|tr X '\101'` in 6420 A) # ASCII based system 6421 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6422 lt_SP2NL='tr \040 \012' 6423 lt_NL2SP='tr \015\012 \040\040' 6424 ;; 6425 *) # EBCDIC based system 6426 lt_SP2NL='tr \100 \n' 6427 lt_NL2SP='tr \r\n \100\100' 6428 ;; 6429 esac 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6440 $as_echo_n "checking for $LD option to reload object files... " >&6; } 6441 if test "${lt_cv_ld_reload_flag+set}" = set; then : 6442 $as_echo_n "(cached) " >&6 6443 else 6444 lt_cv_ld_reload_flag='-r' 6445 fi 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6447 $as_echo "$lt_cv_ld_reload_flag" >&6; } 6448 reload_flag=$lt_cv_ld_reload_flag 6449 case $reload_flag in 6450 "" | " "*) ;; 6451 *) reload_flag=" $reload_flag" ;; 6452 esac 6453 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6454 case $host_os in 6455 darwin*) 6456 if test "$GCC" = yes; then 6457 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6458 else 6459 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6460 fi 6461 ;; 6462 esac 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 if test -n "$ac_tool_prefix"; then 6473 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6474 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6476 $as_echo_n "checking for $ac_word... " >&6; } 6477 if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6478 $as_echo_n "(cached) " >&6 6479 else 6480 if test -n "$OBJDUMP"; then 6481 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6482 else 6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6484 for as_dir in $PATH 6485 do 6486 IFS=$as_save_IFS 6487 test -z "$as_dir" && as_dir=. 6488 for ac_exec_ext in '' $ac_executable_extensions; do 6489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6490 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6492 break 2 6493 fi 6494 done 6495 done 6496 IFS=$as_save_IFS 6497 6498 fi 6499 fi 6500 OBJDUMP=$ac_cv_prog_OBJDUMP 6501 if test -n "$OBJDUMP"; then 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6503 $as_echo "$OBJDUMP" >&6; } 6504 else 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6506 $as_echo "no" >&6; } 6507 fi 6508 6509 6510 fi 6511 if test -z "$ac_cv_prog_OBJDUMP"; then 6512 ac_ct_OBJDUMP=$OBJDUMP 6513 # Extract the first word of "objdump", so it can be a program name with args. 6514 set dummy objdump; ac_word=$2 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6516 $as_echo_n "checking for $ac_word... " >&6; } 6517 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6518 $as_echo_n "(cached) " >&6 6519 else 6520 if test -n "$ac_ct_OBJDUMP"; then 6521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6522 else 6523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6524 for as_dir in $PATH 6525 do 6526 IFS=$as_save_IFS 6527 test -z "$as_dir" && as_dir=. 6528 for ac_exec_ext in '' $ac_executable_extensions; do 6529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6530 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6532 break 2 6533 fi 6534 done 6535 done 6536 IFS=$as_save_IFS 6537 6538 fi 6539 fi 6540 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6541 if test -n "$ac_ct_OBJDUMP"; then 6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6543 $as_echo "$ac_ct_OBJDUMP" >&6; } 6544 else 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6546 $as_echo "no" >&6; } 6547 fi 6548 6549 if test "x$ac_ct_OBJDUMP" = x; then 6550 OBJDUMP="false" 6551 else 6552 case $cross_compiling:$ac_tool_warned in 6553 yes:) 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6556 ac_tool_warned=yes ;; 6557 esac 6558 OBJDUMP=$ac_ct_OBJDUMP 6559 fi 6560 else 6561 OBJDUMP="$ac_cv_prog_OBJDUMP" 6562 fi 6563 6564 test -z "$OBJDUMP" && OBJDUMP=objdump 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6575 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 6576 if test "${lt_cv_deplibs_check_method+set}" = set; then : 6577 $as_echo_n "(cached) " >&6 6578 else 6579 lt_cv_file_magic_cmd='$MAGIC_CMD' 6580 lt_cv_file_magic_test_file= 6581 lt_cv_deplibs_check_method='unknown' 6582 # Need to set the preceding variable on all platforms that support 6583 # interlibrary dependencies. 6584 # 'none' -- dependencies not supported. 6585 # `unknown' -- same as none, but documents that we really don't know. 6586 # 'pass_all' -- all dependencies passed with no checks. 6587 # 'test_compile' -- check by making test program. 6588 # 'file_magic [[regex]]' -- check by looking for files in library path 6589 # which responds to the $file_magic_cmd with a given extended regex. 6590 # If you have `file' or equivalent on your system and you're not sure 6591 # whether `pass_all' will *always* work, you probably want this one. 6592 6593 case $host_os in 6594 aix[4-9]*) 6595 lt_cv_deplibs_check_method=pass_all 6596 ;; 6597 6598 beos*) 6599 lt_cv_deplibs_check_method=pass_all 6600 ;; 6601 6602 bsdi[45]*) 6603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6604 lt_cv_file_magic_cmd='/usr/bin/file -L' 6605 lt_cv_file_magic_test_file=/shlib/libc.so 6606 ;; 6607 6608 cygwin*) 6609 # func_win32_libid is a shell function defined in ltmain.sh 6610 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6611 lt_cv_file_magic_cmd='func_win32_libid' 6612 ;; 6613 6614 mingw* | pw32*) 6615 # Base MSYS/MinGW do not provide the 'file' command needed by 6616 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6617 # unless we find 'file', for example because we are cross-compiling. 6618 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6619 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6620 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6621 lt_cv_file_magic_cmd='func_win32_libid' 6622 else 6623 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6624 lt_cv_file_magic_cmd='$OBJDUMP -f' 6625 fi 6626 ;; 6627 6628 cegcc*) 6629 # use the weaker test based on 'objdump'. See mingw*. 6630 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6631 lt_cv_file_magic_cmd='$OBJDUMP -f' 6632 ;; 6633 6634 darwin* | rhapsody*) 6635 lt_cv_deplibs_check_method=pass_all 6636 ;; 6637 6638 freebsd* | dragonfly*) 6639 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6640 case $host_cpu in 6641 i*86 ) 6642 # Not sure whether the presence of OpenBSD here was a mistake. 6643 # Let's accept both of them until this is cleared up. 6644 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6645 lt_cv_file_magic_cmd=/usr/bin/file 6646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6647 ;; 6648 esac 6649 else 6650 lt_cv_deplibs_check_method=pass_all 6651 fi 6652 ;; 6653 6654 gnu*) 6655 lt_cv_deplibs_check_method=pass_all 6656 ;; 6657 6658 haiku*) 6659 lt_cv_deplibs_check_method=pass_all 6660 ;; 6661 6662 hpux10.20* | hpux11*) 6663 lt_cv_file_magic_cmd=/usr/bin/file 6664 case $host_cpu in 6665 ia64*) 6666 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6667 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6668 ;; 6669 hppa*64*) 6670 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]' 6671 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6672 ;; 6673 *) 6674 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6675 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6676 ;; 6677 esac 6678 ;; 6679 6680 interix[3-9]*) 6681 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6683 ;; 6684 6685 irix5* | irix6* | nonstopux*) 6686 case $LD in 6687 *-32|*"-32 ") libmagic=32-bit;; 6688 *-n32|*"-n32 ") libmagic=N32;; 6689 *-64|*"-64 ") libmagic=64-bit;; 6690 *) libmagic=never-match;; 6691 esac 6692 lt_cv_deplibs_check_method=pass_all 6693 ;; 6694 6695 # This must be Linux ELF. 6696 linux* | k*bsd*-gnu | kopensolaris*-gnu) 6697 lt_cv_deplibs_check_method=pass_all 6698 ;; 6699 6700 netbsd*) 6701 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6702 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6703 else 6704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6705 fi 6706 ;; 6707 6708 newos6*) 6709 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6710 lt_cv_file_magic_cmd=/usr/bin/file 6711 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6712 ;; 6713 6714 *nto* | *qnx*) 6715 lt_cv_deplibs_check_method=pass_all 6716 ;; 6717 6718 openbsd*) 6719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6721 else 6722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6723 fi 6724 ;; 6725 6726 osf3* | osf4* | osf5*) 6727 lt_cv_deplibs_check_method=pass_all 6728 ;; 6729 6730 rdos*) 6731 lt_cv_deplibs_check_method=pass_all 6732 ;; 6733 6734 solaris*) 6735 lt_cv_deplibs_check_method=pass_all 6736 ;; 6737 6738 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6739 lt_cv_deplibs_check_method=pass_all 6740 ;; 6741 6742 sysv4 | sysv4.3*) 6743 case $host_vendor in 6744 motorola) 6745 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]' 6746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6747 ;; 6748 ncr) 6749 lt_cv_deplibs_check_method=pass_all 6750 ;; 6751 sequent) 6752 lt_cv_file_magic_cmd='/bin/file' 6753 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6754 ;; 6755 sni) 6756 lt_cv_file_magic_cmd='/bin/file' 6757 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6758 lt_cv_file_magic_test_file=/lib/libc.so 6759 ;; 6760 siemens) 6761 lt_cv_deplibs_check_method=pass_all 6762 ;; 6763 pc) 6764 lt_cv_deplibs_check_method=pass_all 6765 ;; 6766 esac 6767 ;; 6768 6769 tpf*) 6770 lt_cv_deplibs_check_method=pass_all 6771 ;; 6772 esac 6773 6774 fi 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6776 $as_echo "$lt_cv_deplibs_check_method" >&6; } 6777 file_magic_cmd=$lt_cv_file_magic_cmd 6778 deplibs_check_method=$lt_cv_deplibs_check_method 6779 test -z "$deplibs_check_method" && deplibs_check_method=unknown 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 if test -n "$ac_tool_prefix"; then 6793 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6794 set dummy ${ac_tool_prefix}ar; ac_word=$2 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6796 $as_echo_n "checking for $ac_word... " >&6; } 6797 if test "${ac_cv_prog_AR+set}" = set; then : 6798 $as_echo_n "(cached) " >&6 6799 else 6800 if test -n "$AR"; then 6801 ac_cv_prog_AR="$AR" # Let the user override the test. 6802 else 6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6804 for as_dir in $PATH 6805 do 6806 IFS=$as_save_IFS 6807 test -z "$as_dir" && as_dir=. 6808 for ac_exec_ext in '' $ac_executable_extensions; do 6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6810 ac_cv_prog_AR="${ac_tool_prefix}ar" 6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6812 break 2 6813 fi 6814 done 6815 done 6816 IFS=$as_save_IFS 6817 6818 fi 6819 fi 6820 AR=$ac_cv_prog_AR 6821 if test -n "$AR"; then 6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6823 $as_echo "$AR" >&6; } 6824 else 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6826 $as_echo "no" >&6; } 6827 fi 6828 6829 6830 fi 6831 if test -z "$ac_cv_prog_AR"; then 6832 ac_ct_AR=$AR 6833 # Extract the first word of "ar", so it can be a program name with args. 6834 set dummy ar; ac_word=$2 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6836 $as_echo_n "checking for $ac_word... " >&6; } 6837 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6838 $as_echo_n "(cached) " >&6 6839 else 6840 if test -n "$ac_ct_AR"; then 6841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6842 else 6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6844 for as_dir in $PATH 6845 do 6846 IFS=$as_save_IFS 6847 test -z "$as_dir" && as_dir=. 6848 for ac_exec_ext in '' $ac_executable_extensions; do 6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6850 ac_cv_prog_ac_ct_AR="ar" 6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6852 break 2 6853 fi 6854 done 6855 done 6856 IFS=$as_save_IFS 6857 6858 fi 6859 fi 6860 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6861 if test -n "$ac_ct_AR"; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6863 $as_echo "$ac_ct_AR" >&6; } 6864 else 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6866 $as_echo "no" >&6; } 6867 fi 6868 6869 if test "x$ac_ct_AR" = x; then 6870 AR="false" 6871 else 6872 case $cross_compiling:$ac_tool_warned in 6873 yes:) 6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6876 ac_tool_warned=yes ;; 6877 esac 6878 AR=$ac_ct_AR 6879 fi 6880 else 6881 AR="$ac_cv_prog_AR" 6882 fi 6883 6884 test -z "$AR" && AR=ar 6885 test -z "$AR_FLAGS" && AR_FLAGS=cru 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 if test -n "$ac_tool_prefix"; then 6898 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6899 set dummy ${ac_tool_prefix}strip; ac_word=$2 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6901 $as_echo_n "checking for $ac_word... " >&6; } 6902 if test "${ac_cv_prog_STRIP+set}" = set; then : 6903 $as_echo_n "(cached) " >&6 6904 else 6905 if test -n "$STRIP"; then 6906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6907 else 6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6909 for as_dir in $PATH 6910 do 6911 IFS=$as_save_IFS 6912 test -z "$as_dir" && as_dir=. 6913 for ac_exec_ext in '' $ac_executable_extensions; do 6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6915 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6917 break 2 6918 fi 6919 done 6920 done 6921 IFS=$as_save_IFS 6922 6923 fi 6924 fi 6925 STRIP=$ac_cv_prog_STRIP 6926 if test -n "$STRIP"; then 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6928 $as_echo "$STRIP" >&6; } 6929 else 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6931 $as_echo "no" >&6; } 6932 fi 6933 6934 6935 fi 6936 if test -z "$ac_cv_prog_STRIP"; then 6937 ac_ct_STRIP=$STRIP 6938 # Extract the first word of "strip", so it can be a program name with args. 6939 set dummy strip; ac_word=$2 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6941 $as_echo_n "checking for $ac_word... " >&6; } 6942 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6943 $as_echo_n "(cached) " >&6 6944 else 6945 if test -n "$ac_ct_STRIP"; then 6946 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6947 else 6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6949 for as_dir in $PATH 6950 do 6951 IFS=$as_save_IFS 6952 test -z "$as_dir" && as_dir=. 6953 for ac_exec_ext in '' $ac_executable_extensions; do 6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6955 ac_cv_prog_ac_ct_STRIP="strip" 6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6957 break 2 6958 fi 6959 done 6960 done 6961 IFS=$as_save_IFS 6962 6963 fi 6964 fi 6965 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6966 if test -n "$ac_ct_STRIP"; then 6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6968 $as_echo "$ac_ct_STRIP" >&6; } 6969 else 6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6971 $as_echo "no" >&6; } 6972 fi 6973 6974 if test "x$ac_ct_STRIP" = x; then 6975 STRIP=":" 6976 else 6977 case $cross_compiling:$ac_tool_warned in 6978 yes:) 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6981 ac_tool_warned=yes ;; 6982 esac 6983 STRIP=$ac_ct_STRIP 6984 fi 6985 else 6986 STRIP="$ac_cv_prog_STRIP" 6987 fi 6988 6989 test -z "$STRIP" && STRIP=: 6990 6991 6992 6993 6994 6995 6996 if test -n "$ac_tool_prefix"; then 6997 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6998 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7000 $as_echo_n "checking for $ac_word... " >&6; } 7001 if test "${ac_cv_prog_RANLIB+set}" = set; then : 7002 $as_echo_n "(cached) " >&6 7003 else 7004 if test -n "$RANLIB"; then 7005 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7006 else 7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7008 for as_dir in $PATH 7009 do 7010 IFS=$as_save_IFS 7011 test -z "$as_dir" && as_dir=. 7012 for ac_exec_ext in '' $ac_executable_extensions; do 7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7014 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7016 break 2 7017 fi 7018 done 7019 done 7020 IFS=$as_save_IFS 7021 7022 fi 7023 fi 7024 RANLIB=$ac_cv_prog_RANLIB 7025 if test -n "$RANLIB"; then 7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7027 $as_echo "$RANLIB" >&6; } 7028 else 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7030 $as_echo "no" >&6; } 7031 fi 7032 7033 7034 fi 7035 if test -z "$ac_cv_prog_RANLIB"; then 7036 ac_ct_RANLIB=$RANLIB 7037 # Extract the first word of "ranlib", so it can be a program name with args. 7038 set dummy ranlib; ac_word=$2 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7040 $as_echo_n "checking for $ac_word... " >&6; } 7041 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 7042 $as_echo_n "(cached) " >&6 7043 else 7044 if test -n "$ac_ct_RANLIB"; then 7045 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7046 else 7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7048 for as_dir in $PATH 7049 do 7050 IFS=$as_save_IFS 7051 test -z "$as_dir" && as_dir=. 7052 for ac_exec_ext in '' $ac_executable_extensions; do 7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7054 ac_cv_prog_ac_ct_RANLIB="ranlib" 7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7056 break 2 7057 fi 7058 done 7059 done 7060 IFS=$as_save_IFS 7061 7062 fi 7063 fi 7064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7065 if test -n "$ac_ct_RANLIB"; then 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7067 $as_echo "$ac_ct_RANLIB" >&6; } 7068 else 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7070 $as_echo "no" >&6; } 7071 fi 7072 7073 if test "x$ac_ct_RANLIB" = x; then 7074 RANLIB=":" 7075 else 7076 case $cross_compiling:$ac_tool_warned in 7077 yes:) 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7080 ac_tool_warned=yes ;; 7081 esac 7082 RANLIB=$ac_ct_RANLIB 7083 fi 7084 else 7085 RANLIB="$ac_cv_prog_RANLIB" 7086 fi 7087 7088 test -z "$RANLIB" && RANLIB=: 7089 7090 7091 7092 7093 7094 7095 # Determine commands to create old-style static archives. 7096 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7097 old_postinstall_cmds='chmod 644 $oldlib' 7098 old_postuninstall_cmds= 7099 7100 if test -n "$RANLIB"; then 7101 case $host_os in 7102 openbsd*) 7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7104 ;; 7105 *) 7106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7107 ;; 7108 esac 7109 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7110 fi 7111 7112 case $host_os in 7113 darwin*) 7114 lock_old_archive_extraction=yes ;; 7115 *) 7116 lock_old_archive_extraction=no ;; 7117 esac 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 # If no C compiler was specified, use CC. 7158 LTCC=${LTCC-"$CC"} 7159 7160 # If no C compiler flags were specified, use CFLAGS. 7161 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7162 7163 # Allow CC to be a program name with arguments. 7164 compiler=$CC 7165 7166 7167 # Check for command to grab the raw symbol name followed by C symbol from nm. 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7169 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7170 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7171 $as_echo_n "(cached) " >&6 7172 else 7173 7174 # These are sane defaults that work on at least a few old systems. 7175 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7176 7177 # Character class describing NM global symbol codes. 7178 symcode='[BCDEGRST]' 7179 7180 # Regexp to match symbols that can be accessed directly from C. 7181 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7182 7183 # Define system-specific variables. 7184 case $host_os in 7185 aix*) 7186 symcode='[BCDT]' 7187 ;; 7188 cygwin* | mingw* | pw32* | cegcc*) 7189 symcode='[ABCDGISTW]' 7190 ;; 7191 hpux*) 7192 if test "$host_cpu" = ia64; then 7193 symcode='[ABCDEGRST]' 7194 fi 7195 ;; 7196 irix* | nonstopux*) 7197 symcode='[BCDEGRST]' 7198 ;; 7199 osf*) 7200 symcode='[BCDEGQRST]' 7201 ;; 7202 solaris*) 7203 symcode='[BDRT]' 7204 ;; 7205 sco3.2v5*) 7206 symcode='[DT]' 7207 ;; 7208 sysv4.2uw2*) 7209 symcode='[DT]' 7210 ;; 7211 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7212 symcode='[ABDT]' 7213 ;; 7214 sysv4) 7215 symcode='[DFNSTU]' 7216 ;; 7217 esac 7218 7219 # If we're using GNU nm, then use its standard symbol codes. 7220 case `$NM -V 2>&1` in 7221 *GNU* | *'with BFD'*) 7222 symcode='[ABCDGIRSTW]' ;; 7223 esac 7224 7225 # Transform an extracted symbol line into a proper C declaration. 7226 # Some systems (esp. on ia64) link data and code symbols differently, 7227 # so use this general approach. 7228 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7229 7230 # Transform an extracted symbol line into symbol name and symbol address 7231 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7232 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'" 7233 7234 # Handle CRLF in mingw tool chain 7235 opt_cr= 7236 case $build_os in 7237 mingw*) 7238 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7239 ;; 7240 esac 7241 7242 # Try without a prefix underscore, then with it. 7243 for ac_symprfx in "" "_"; do 7244 7245 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7246 symxfrm="\\1 $ac_symprfx\\2 \\2" 7247 7248 # Write the raw and C identifiers. 7249 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7250 # Fake it for dumpbin and say T for any non-static function 7251 # and D for any global variable. 7252 # Also find C++ and __fastcall symbols from MSVC++, 7253 # which start with @ or ?. 7254 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7255 " {last_section=section; section=\$ 3};"\ 7256 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7257 " \$ 0!~/External *\|/{next};"\ 7258 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7259 " {if(hide[section]) next};"\ 7260 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7261 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7262 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7263 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7264 " ' prfx=^$ac_symprfx" 7265 else 7266 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7267 fi 7268 7269 # Check to see that the pipe works correctly. 7270 pipe_works=no 7271 7272 rm -f conftest* 7273 cat > conftest.$ac_ext <<_LT_EOF 7274 #ifdef __cplusplus 7275 extern "C" { 7276 #endif 7277 char nm_test_var; 7278 void nm_test_func(void); 7279 void nm_test_func(void){} 7280 #ifdef __cplusplus 7281 } 7282 #endif 7283 int main(){nm_test_var='a';nm_test_func();return(0);} 7284 _LT_EOF 7285 7286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7287 (eval $ac_compile) 2>&5 7288 ac_status=$? 7289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7290 test $ac_status = 0; }; then 7291 # Now try to grab the symbols. 7292 nlist=conftest.nm 7293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7294 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7295 ac_status=$? 7296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7297 test $ac_status = 0; } && test -s "$nlist"; then 7298 # Try sorting and uniquifying the output. 7299 if sort "$nlist" | uniq > "$nlist"T; then 7300 mv -f "$nlist"T "$nlist" 7301 else 7302 rm -f "$nlist"T 7303 fi 7304 7305 # Make sure that we snagged all the symbols we need. 7306 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7307 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7308 cat <<_LT_EOF > conftest.$ac_ext 7309 #ifdef __cplusplus 7310 extern "C" { 7311 #endif 7312 7313 _LT_EOF 7314 # Now generate the symbol file. 7315 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7316 7317 cat <<_LT_EOF >> conftest.$ac_ext 7318 7319 /* The mapping between symbol names and symbols. */ 7320 const struct { 7321 const char *name; 7322 void *address; 7323 } 7324 lt__PROGRAM__LTX_preloaded_symbols[] = 7325 { 7326 { "@PROGRAM@", (void *) 0 }, 7327 _LT_EOF 7328 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7329 cat <<\_LT_EOF >> conftest.$ac_ext 7330 {0, (void *) 0} 7331 }; 7332 7333 /* This works around a problem in FreeBSD linker */ 7334 #ifdef FREEBSD_WORKAROUND 7335 static const void *lt_preloaded_setup() { 7336 return lt__PROGRAM__LTX_preloaded_symbols; 7337 } 7338 #endif 7339 7340 #ifdef __cplusplus 7341 } 7342 #endif 7343 _LT_EOF 7344 # Now try linking the two files. 7345 mv conftest.$ac_objext conftstm.$ac_objext 7346 lt_save_LIBS="$LIBS" 7347 lt_save_CFLAGS="$CFLAGS" 7348 LIBS="conftstm.$ac_objext" 7349 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7350 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7351 (eval $ac_link) 2>&5 7352 ac_status=$? 7353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7354 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7355 pipe_works=yes 7356 fi 7357 LIBS="$lt_save_LIBS" 7358 CFLAGS="$lt_save_CFLAGS" 7359 else 7360 echo "cannot find nm_test_func in $nlist" >&5 7361 fi 7362 else 7363 echo "cannot find nm_test_var in $nlist" >&5 7364 fi 7365 else 7366 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7367 fi 7368 else 7369 echo "$progname: failed program was:" >&5 7370 cat conftest.$ac_ext >&5 7371 fi 7372 rm -rf conftest* conftst* 7373 7374 # Do not use the global_symbol_pipe unless it works. 7375 if test "$pipe_works" = yes; then 7376 break 7377 else 7378 lt_cv_sys_global_symbol_pipe= 7379 fi 7380 done 7381 7382 fi 7383 7384 if test -z "$lt_cv_sys_global_symbol_pipe"; then 7385 lt_cv_sys_global_symbol_to_cdecl= 7386 fi 7387 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7389 $as_echo "failed" >&6; } 7390 else 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7392 $as_echo "ok" >&6; } 7393 fi 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 # Check whether --enable-libtool-lock was given. 7417 if test "${enable_libtool_lock+set}" = set; then : 7418 enableval=$enable_libtool_lock; 7419 fi 7420 7421 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7422 7423 # Some flags need to be propagated to the compiler or linker for good 7424 # libtool support. 7425 case $host in 7426 ia64-*-hpux*) 7427 # Find out which ABI we are using. 7428 echo 'int i;' > conftest.$ac_ext 7429 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7430 (eval $ac_compile) 2>&5 7431 ac_status=$? 7432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7433 test $ac_status = 0; }; then 7434 case `/usr/bin/file conftest.$ac_objext` in 7435 *ELF-32*) 7436 HPUX_IA64_MODE="32" 7437 ;; 7438 *ELF-64*) 7439 HPUX_IA64_MODE="64" 7440 ;; 7441 esac 7442 fi 7443 rm -rf conftest* 7444 ;; 7445 *-*-irix6*) 7446 # Find out which ABI we are using. 7447 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7449 (eval $ac_compile) 2>&5 7450 ac_status=$? 7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7452 test $ac_status = 0; }; then 7453 if test "$lt_cv_prog_gnu_ld" = yes; then 7454 case `/usr/bin/file conftest.$ac_objext` in 7455 *32-bit*) 7456 LD="${LD-ld} -melf32bsmip" 7457 ;; 7458 *N32*) 7459 LD="${LD-ld} -melf32bmipn32" 7460 ;; 7461 *64-bit*) 7462 LD="${LD-ld} -melf64bmip" 7463 ;; 7464 esac 7465 else 7466 case `/usr/bin/file conftest.$ac_objext` in 7467 *32-bit*) 7468 LD="${LD-ld} -32" 7469 ;; 7470 *N32*) 7471 LD="${LD-ld} -n32" 7472 ;; 7473 *64-bit*) 7474 LD="${LD-ld} -64" 7475 ;; 7476 esac 7477 fi 7478 fi 7479 rm -rf conftest* 7480 ;; 7481 7482 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7483 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7484 # Find out which ABI we are using. 7485 echo 'int i;' > conftest.$ac_ext 7486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7487 (eval $ac_compile) 2>&5 7488 ac_status=$? 7489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7490 test $ac_status = 0; }; then 7491 case `/usr/bin/file conftest.o` in 7492 *32-bit*) 7493 case $host in 7494 x86_64-*kfreebsd*-gnu) 7495 LD="${LD-ld} -m elf_i386_fbsd" 7496 ;; 7497 x86_64-*linux*) 7498 case `/usr/bin/file conftest.o` in 7499 *x86-64*) 7500 LD="${LD-ld} -m elf32_x86_64" 7501 ;; 7502 *) 7503 LD="${LD-ld} -m elf_i386" 7504 ;; 7505 esac 7506 ;; 7507 powerpc64le-*linux*) 7508 LD="${LD-ld} -m elf32lppclinux" 7509 ;; 7510 powerpc64-*linux*) 7511 LD="${LD-ld} -m elf32ppclinux" 7512 ;; 7513 s390x-*linux*) 7514 LD="${LD-ld} -m elf_s390" 7515 ;; 7516 sparc64-*linux*) 7517 LD="${LD-ld} -m elf32_sparc" 7518 ;; 7519 esac 7520 ;; 7521 *64-bit*) 7522 case $host in 7523 x86_64-*kfreebsd*-gnu) 7524 LD="${LD-ld} -m elf_x86_64_fbsd" 7525 ;; 7526 x86_64-*linux*) 7527 LD="${LD-ld} -m elf_x86_64" 7528 ;; 7529 powerpcle-*linux*) 7530 LD="${LD-ld} -m elf64lppc" 7531 ;; 7532 powerpc-*linux*) 7533 LD="${LD-ld} -m elf64ppc" 7534 ;; 7535 s390*-*linux*|s390*-*tpf*) 7536 LD="${LD-ld} -m elf64_s390" 7537 ;; 7538 sparc*-*linux*) 7539 LD="${LD-ld} -m elf64_sparc" 7540 ;; 7541 esac 7542 ;; 7543 esac 7544 fi 7545 rm -rf conftest* 7546 ;; 7547 7548 *-*-sco3.2v5*) 7549 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7550 SAVE_CFLAGS="$CFLAGS" 7551 CFLAGS="$CFLAGS -belf" 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7553 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7554 if test "${lt_cv_cc_needs_belf+set}" = set; then : 7555 $as_echo_n "(cached) " >&6 7556 else 7557 ac_ext=c 7558 ac_cpp='$CPP $CPPFLAGS' 7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7562 7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564 /* end confdefs.h. */ 7565 7566 int 7567 main () 7568 { 7569 7570 ; 7571 return 0; 7572 } 7573 _ACEOF 7574 if ac_fn_c_try_link "$LINENO"; then : 7575 lt_cv_cc_needs_belf=yes 7576 else 7577 lt_cv_cc_needs_belf=no 7578 fi 7579 rm -f core conftest.err conftest.$ac_objext \ 7580 conftest$ac_exeext conftest.$ac_ext 7581 ac_ext=c 7582 ac_cpp='$CPP $CPPFLAGS' 7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7586 7587 fi 7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7589 $as_echo "$lt_cv_cc_needs_belf" >&6; } 7590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7592 CFLAGS="$SAVE_CFLAGS" 7593 fi 7594 ;; 7595 sparc*-*solaris*) 7596 # Find out which ABI we are using. 7597 echo 'int i;' > conftest.$ac_ext 7598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7599 (eval $ac_compile) 2>&5 7600 ac_status=$? 7601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7602 test $ac_status = 0; }; then 7603 case `/usr/bin/file conftest.o` in 7604 *64-bit*) 7605 case $lt_cv_prog_gnu_ld in 7606 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7607 *) 7608 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7609 LD="${LD-ld} -64" 7610 fi 7611 ;; 7612 esac 7613 ;; 7614 esac 7615 fi 7616 rm -rf conftest* 7617 ;; 7618 esac 7619 7620 need_locks="$enable_libtool_lock" 7621 7622 7623 case $host_os in 7624 rhapsody* | darwin*) 7625 if test -n "$ac_tool_prefix"; then 7626 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7627 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7629 $as_echo_n "checking for $ac_word... " >&6; } 7630 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7631 $as_echo_n "(cached) " >&6 7632 else 7633 if test -n "$DSYMUTIL"; then 7634 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7635 else 7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7637 for as_dir in $PATH 7638 do 7639 IFS=$as_save_IFS 7640 test -z "$as_dir" && as_dir=. 7641 for ac_exec_ext in '' $ac_executable_extensions; do 7642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7643 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7645 break 2 7646 fi 7647 done 7648 done 7649 IFS=$as_save_IFS 7650 7651 fi 7652 fi 7653 DSYMUTIL=$ac_cv_prog_DSYMUTIL 7654 if test -n "$DSYMUTIL"; then 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7656 $as_echo "$DSYMUTIL" >&6; } 7657 else 7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7659 $as_echo "no" >&6; } 7660 fi 7661 7662 7663 fi 7664 if test -z "$ac_cv_prog_DSYMUTIL"; then 7665 ac_ct_DSYMUTIL=$DSYMUTIL 7666 # Extract the first word of "dsymutil", so it can be a program name with args. 7667 set dummy dsymutil; ac_word=$2 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7669 $as_echo_n "checking for $ac_word... " >&6; } 7670 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7671 $as_echo_n "(cached) " >&6 7672 else 7673 if test -n "$ac_ct_DSYMUTIL"; then 7674 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7675 else 7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7677 for as_dir in $PATH 7678 do 7679 IFS=$as_save_IFS 7680 test -z "$as_dir" && as_dir=. 7681 for ac_exec_ext in '' $ac_executable_extensions; do 7682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7683 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7685 break 2 7686 fi 7687 done 7688 done 7689 IFS=$as_save_IFS 7690 7691 fi 7692 fi 7693 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7694 if test -n "$ac_ct_DSYMUTIL"; then 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7696 $as_echo "$ac_ct_DSYMUTIL" >&6; } 7697 else 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7699 $as_echo "no" >&6; } 7700 fi 7701 7702 if test "x$ac_ct_DSYMUTIL" = x; then 7703 DSYMUTIL=":" 7704 else 7705 case $cross_compiling:$ac_tool_warned in 7706 yes:) 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7709 ac_tool_warned=yes ;; 7710 esac 7711 DSYMUTIL=$ac_ct_DSYMUTIL 7712 fi 7713 else 7714 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7715 fi 7716 7717 if test -n "$ac_tool_prefix"; then 7718 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7719 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7721 $as_echo_n "checking for $ac_word... " >&6; } 7722 if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7723 $as_echo_n "(cached) " >&6 7724 else 7725 if test -n "$NMEDIT"; then 7726 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7727 else 7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7729 for as_dir in $PATH 7730 do 7731 IFS=$as_save_IFS 7732 test -z "$as_dir" && as_dir=. 7733 for ac_exec_ext in '' $ac_executable_extensions; do 7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7735 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7737 break 2 7738 fi 7739 done 7740 done 7741 IFS=$as_save_IFS 7742 7743 fi 7744 fi 7745 NMEDIT=$ac_cv_prog_NMEDIT 7746 if test -n "$NMEDIT"; then 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7748 $as_echo "$NMEDIT" >&6; } 7749 else 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7751 $as_echo "no" >&6; } 7752 fi 7753 7754 7755 fi 7756 if test -z "$ac_cv_prog_NMEDIT"; then 7757 ac_ct_NMEDIT=$NMEDIT 7758 # Extract the first word of "nmedit", so it can be a program name with args. 7759 set dummy nmedit; ac_word=$2 7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7761 $as_echo_n "checking for $ac_word... " >&6; } 7762 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7763 $as_echo_n "(cached) " >&6 7764 else 7765 if test -n "$ac_ct_NMEDIT"; then 7766 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7767 else 7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7769 for as_dir in $PATH 7770 do 7771 IFS=$as_save_IFS 7772 test -z "$as_dir" && as_dir=. 7773 for ac_exec_ext in '' $ac_executable_extensions; do 7774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7775 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7777 break 2 7778 fi 7779 done 7780 done 7781 IFS=$as_save_IFS 7782 7783 fi 7784 fi 7785 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7786 if test -n "$ac_ct_NMEDIT"; then 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7788 $as_echo "$ac_ct_NMEDIT" >&6; } 7789 else 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7791 $as_echo "no" >&6; } 7792 fi 7793 7794 if test "x$ac_ct_NMEDIT" = x; then 7795 NMEDIT=":" 7796 else 7797 case $cross_compiling:$ac_tool_warned in 7798 yes:) 7799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7801 ac_tool_warned=yes ;; 7802 esac 7803 NMEDIT=$ac_ct_NMEDIT 7804 fi 7805 else 7806 NMEDIT="$ac_cv_prog_NMEDIT" 7807 fi 7808 7809 if test -n "$ac_tool_prefix"; then 7810 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7811 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7813 $as_echo_n "checking for $ac_word... " >&6; } 7814 if test "${ac_cv_prog_LIPO+set}" = set; then : 7815 $as_echo_n "(cached) " >&6 7816 else 7817 if test -n "$LIPO"; then 7818 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7819 else 7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7821 for as_dir in $PATH 7822 do 7823 IFS=$as_save_IFS 7824 test -z "$as_dir" && as_dir=. 7825 for ac_exec_ext in '' $ac_executable_extensions; do 7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7827 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7829 break 2 7830 fi 7831 done 7832 done 7833 IFS=$as_save_IFS 7834 7835 fi 7836 fi 7837 LIPO=$ac_cv_prog_LIPO 7838 if test -n "$LIPO"; then 7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7840 $as_echo "$LIPO" >&6; } 7841 else 7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7843 $as_echo "no" >&6; } 7844 fi 7845 7846 7847 fi 7848 if test -z "$ac_cv_prog_LIPO"; then 7849 ac_ct_LIPO=$LIPO 7850 # Extract the first word of "lipo", so it can be a program name with args. 7851 set dummy lipo; ac_word=$2 7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7853 $as_echo_n "checking for $ac_word... " >&6; } 7854 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7855 $as_echo_n "(cached) " >&6 7856 else 7857 if test -n "$ac_ct_LIPO"; then 7858 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7859 else 7860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7861 for as_dir in $PATH 7862 do 7863 IFS=$as_save_IFS 7864 test -z "$as_dir" && as_dir=. 7865 for ac_exec_ext in '' $ac_executable_extensions; do 7866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7867 ac_cv_prog_ac_ct_LIPO="lipo" 7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7869 break 2 7870 fi 7871 done 7872 done 7873 IFS=$as_save_IFS 7874 7875 fi 7876 fi 7877 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7878 if test -n "$ac_ct_LIPO"; then 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7880 $as_echo "$ac_ct_LIPO" >&6; } 7881 else 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7883 $as_echo "no" >&6; } 7884 fi 7885 7886 if test "x$ac_ct_LIPO" = x; then 7887 LIPO=":" 7888 else 7889 case $cross_compiling:$ac_tool_warned in 7890 yes:) 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7893 ac_tool_warned=yes ;; 7894 esac 7895 LIPO=$ac_ct_LIPO 7896 fi 7897 else 7898 LIPO="$ac_cv_prog_LIPO" 7899 fi 7900 7901 if test -n "$ac_tool_prefix"; then 7902 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7903 set dummy ${ac_tool_prefix}otool; ac_word=$2 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7905 $as_echo_n "checking for $ac_word... " >&6; } 7906 if test "${ac_cv_prog_OTOOL+set}" = set; then : 7907 $as_echo_n "(cached) " >&6 7908 else 7909 if test -n "$OTOOL"; then 7910 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7911 else 7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7913 for as_dir in $PATH 7914 do 7915 IFS=$as_save_IFS 7916 test -z "$as_dir" && as_dir=. 7917 for ac_exec_ext in '' $ac_executable_extensions; do 7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7919 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7921 break 2 7922 fi 7923 done 7924 done 7925 IFS=$as_save_IFS 7926 7927 fi 7928 fi 7929 OTOOL=$ac_cv_prog_OTOOL 7930 if test -n "$OTOOL"; then 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7932 $as_echo "$OTOOL" >&6; } 7933 else 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7935 $as_echo "no" >&6; } 7936 fi 7937 7938 7939 fi 7940 if test -z "$ac_cv_prog_OTOOL"; then 7941 ac_ct_OTOOL=$OTOOL 7942 # Extract the first word of "otool", so it can be a program name with args. 7943 set dummy otool; ac_word=$2 7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7945 $as_echo_n "checking for $ac_word... " >&6; } 7946 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7947 $as_echo_n "(cached) " >&6 7948 else 7949 if test -n "$ac_ct_OTOOL"; then 7950 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7951 else 7952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7953 for as_dir in $PATH 7954 do 7955 IFS=$as_save_IFS 7956 test -z "$as_dir" && as_dir=. 7957 for ac_exec_ext in '' $ac_executable_extensions; do 7958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7959 ac_cv_prog_ac_ct_OTOOL="otool" 7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7961 break 2 7962 fi 7963 done 7964 done 7965 IFS=$as_save_IFS 7966 7967 fi 7968 fi 7969 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7970 if test -n "$ac_ct_OTOOL"; then 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7972 $as_echo "$ac_ct_OTOOL" >&6; } 7973 else 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7975 $as_echo "no" >&6; } 7976 fi 7977 7978 if test "x$ac_ct_OTOOL" = x; then 7979 OTOOL=":" 7980 else 7981 case $cross_compiling:$ac_tool_warned in 7982 yes:) 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7985 ac_tool_warned=yes ;; 7986 esac 7987 OTOOL=$ac_ct_OTOOL 7988 fi 7989 else 7990 OTOOL="$ac_cv_prog_OTOOL" 7991 fi 7992 7993 if test -n "$ac_tool_prefix"; then 7994 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7995 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7997 $as_echo_n "checking for $ac_word... " >&6; } 7998 if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7999 $as_echo_n "(cached) " >&6 8000 else 8001 if test -n "$OTOOL64"; then 8002 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8003 else 8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8005 for as_dir in $PATH 8006 do 8007 IFS=$as_save_IFS 8008 test -z "$as_dir" && as_dir=. 8009 for ac_exec_ext in '' $ac_executable_extensions; do 8010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8011 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8013 break 2 8014 fi 8015 done 8016 done 8017 IFS=$as_save_IFS 8018 8019 fi 8020 fi 8021 OTOOL64=$ac_cv_prog_OTOOL64 8022 if test -n "$OTOOL64"; then 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8024 $as_echo "$OTOOL64" >&6; } 8025 else 8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8027 $as_echo "no" >&6; } 8028 fi 8029 8030 8031 fi 8032 if test -z "$ac_cv_prog_OTOOL64"; then 8033 ac_ct_OTOOL64=$OTOOL64 8034 # Extract the first word of "otool64", so it can be a program name with args. 8035 set dummy otool64; ac_word=$2 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8037 $as_echo_n "checking for $ac_word... " >&6; } 8038 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 8039 $as_echo_n "(cached) " >&6 8040 else 8041 if test -n "$ac_ct_OTOOL64"; then 8042 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8043 else 8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8045 for as_dir in $PATH 8046 do 8047 IFS=$as_save_IFS 8048 test -z "$as_dir" && as_dir=. 8049 for ac_exec_ext in '' $ac_executable_extensions; do 8050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8051 ac_cv_prog_ac_ct_OTOOL64="otool64" 8052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8053 break 2 8054 fi 8055 done 8056 done 8057 IFS=$as_save_IFS 8058 8059 fi 8060 fi 8061 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8062 if test -n "$ac_ct_OTOOL64"; then 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8064 $as_echo "$ac_ct_OTOOL64" >&6; } 8065 else 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8067 $as_echo "no" >&6; } 8068 fi 8069 8070 if test "x$ac_ct_OTOOL64" = x; then 8071 OTOOL64=":" 8072 else 8073 case $cross_compiling:$ac_tool_warned in 8074 yes:) 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8077 ac_tool_warned=yes ;; 8078 esac 8079 OTOOL64=$ac_ct_OTOOL64 8080 fi 8081 else 8082 OTOOL64="$ac_cv_prog_OTOOL64" 8083 fi 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8112 $as_echo_n "checking for -single_module linker flag... " >&6; } 8113 if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8114 $as_echo_n "(cached) " >&6 8115 else 8116 lt_cv_apple_cc_single_mod=no 8117 if test -z "${LT_MULTI_MODULE}"; then 8118 # By default we will add the -single_module flag. You can override 8119 # by either setting the environment variable LT_MULTI_MODULE 8120 # non-empty at configure time, or by adding -multi_module to the 8121 # link flags. 8122 rm -rf libconftest.dylib* 8123 echo "int foo(void){return 1;}" > conftest.c 8124 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8125 -dynamiclib -Wl,-single_module conftest.c" >&5 8126 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8127 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8128 _lt_result=$? 8129 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8130 lt_cv_apple_cc_single_mod=yes 8131 else 8132 cat conftest.err >&5 8133 fi 8134 rm -rf libconftest.dylib* 8135 rm -f conftest.* 8136 fi 8137 fi 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8139 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8141 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8142 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8143 $as_echo_n "(cached) " >&6 8144 else 8145 lt_cv_ld_exported_symbols_list=no 8146 save_LDFLAGS=$LDFLAGS 8147 echo "_main" > conftest.sym 8148 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8150 /* end confdefs.h. */ 8151 8152 int 8153 main () 8154 { 8155 8156 ; 8157 return 0; 8158 } 8159 _ACEOF 8160 if ac_fn_c_try_link "$LINENO"; then : 8161 lt_cv_ld_exported_symbols_list=yes 8162 else 8163 lt_cv_ld_exported_symbols_list=no 8164 fi 8165 rm -f core conftest.err conftest.$ac_objext \ 8166 conftest$ac_exeext conftest.$ac_ext 8167 LDFLAGS="$save_LDFLAGS" 8168 8169 fi 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8171 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8173 $as_echo_n "checking for -force_load linker flag... " >&6; } 8174 if test "${lt_cv_ld_force_load+set}" = set; then : 8175 $as_echo_n "(cached) " >&6 8176 else 8177 lt_cv_ld_force_load=no 8178 cat > conftest.c << _LT_EOF 8179 int forced_loaded() { return 2;} 8180 _LT_EOF 8181 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8182 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8183 echo "$AR cru libconftest.a conftest.o" >&5 8184 $AR cru libconftest.a conftest.o 2>&5 8185 cat > conftest.c << _LT_EOF 8186 int main() { return 0;} 8187 _LT_EOF 8188 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8189 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8190 _lt_result=$? 8191 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8192 lt_cv_ld_force_load=yes 8193 else 8194 cat conftest.err >&5 8195 fi 8196 rm -f conftest.err libconftest.a conftest conftest.c 8197 rm -rf conftest.dSYM 8198 8199 fi 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8201 $as_echo "$lt_cv_ld_force_load" >&6; } 8202 case $host_os in 8203 rhapsody* | darwin1.[012]) 8204 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8205 darwin1.*) 8206 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8207 darwin*) # darwin 5.x on 8208 # if running on 10.5 or later, the deployment target defaults 8209 # to the OS version, if on x86, and 10.4, the deployment 8210 # target defaults to 10.4. Don't you love it? 8211 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8212 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8213 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8214 10.[012][,.]*) 8215 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8216 10.*) 8217 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8218 esac 8219 ;; 8220 esac 8221 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8222 _lt_dar_single_mod='$single_module' 8223 fi 8224 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8225 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8226 else 8227 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8228 fi 8229 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8230 _lt_dsymutil='~$DSYMUTIL $lib || :' 8231 else 8232 _lt_dsymutil= 8233 fi 8234 ;; 8235 esac 8236 8237 for ac_header in dlfcn.h 8238 do : 8239 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8240 " 8241 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8242 cat >>confdefs.h <<_ACEOF 8243 #define HAVE_DLFCN_H 1 8244 _ACEOF 8245 8246 fi 8247 8248 done 8249 8250 8251 8252 8253 8254 8255 # Set options 8256 8257 8258 8259 enable_dlopen=no 8260 8261 8262 enable_win32_dll=no 8263 8264 8265 # Check whether --enable-shared was given. 8266 if test "${enable_shared+set}" = set; then : 8267 enableval=$enable_shared; p=${PACKAGE-default} 8268 case $enableval in 8269 yes) enable_shared=yes ;; 8270 no) enable_shared=no ;; 8271 *) 8272 enable_shared=no 8273 # Look at the argument we got. We use all the common list separators. 8274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8275 for pkg in $enableval; do 8276 IFS="$lt_save_ifs" 8277 if test "X$pkg" = "X$p"; then 8278 enable_shared=yes 8279 fi 8280 done 8281 IFS="$lt_save_ifs" 8282 ;; 8283 esac 8284 else 8285 enable_shared=yes 8286 fi 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 # Check whether --enable-static was given. 8297 if test "${enable_static+set}" = set; then : 8298 enableval=$enable_static; p=${PACKAGE-default} 8299 case $enableval in 8300 yes) enable_static=yes ;; 8301 no) enable_static=no ;; 8302 *) 8303 enable_static=no 8304 # Look at the argument we got. We use all the common list separators. 8305 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8306 for pkg in $enableval; do 8307 IFS="$lt_save_ifs" 8308 if test "X$pkg" = "X$p"; then 8309 enable_static=yes 8310 fi 8311 done 8312 IFS="$lt_save_ifs" 8313 ;; 8314 esac 8315 else 8316 enable_static=yes 8317 fi 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 # Check whether --with-pic was given. 8329 if test "${with_pic+set}" = set; then : 8330 withval=$with_pic; pic_mode="$withval" 8331 else 8332 pic_mode=default 8333 fi 8334 8335 8336 test -z "$pic_mode" && pic_mode=default 8337 8338 8339 8340 8341 8342 8343 8344 # Check whether --enable-fast-install was given. 8345 if test "${enable_fast_install+set}" = set; then : 8346 enableval=$enable_fast_install; p=${PACKAGE-default} 8347 case $enableval in 8348 yes) enable_fast_install=yes ;; 8349 no) enable_fast_install=no ;; 8350 *) 8351 enable_fast_install=no 8352 # Look at the argument we got. We use all the common list separators. 8353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8354 for pkg in $enableval; do 8355 IFS="$lt_save_ifs" 8356 if test "X$pkg" = "X$p"; then 8357 enable_fast_install=yes 8358 fi 8359 done 8360 IFS="$lt_save_ifs" 8361 ;; 8362 esac 8363 else 8364 enable_fast_install=yes 8365 fi 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 # This can be used to rebuild libtool when needed 8378 LIBTOOL_DEPS="$ltmain" 8379 8380 # Always use our own libtool. 8381 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 test -z "$LN_S" && LN_S="ln -s" 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 if test -n "${ZSH_VERSION+set}" ; then 8424 setopt NO_GLOB_SUBST 8425 fi 8426 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8428 $as_echo_n "checking for objdir... " >&6; } 8429 if test "${lt_cv_objdir+set}" = set; then : 8430 $as_echo_n "(cached) " >&6 8431 else 8432 rm -f .libs 2>/dev/null 8433 mkdir .libs 2>/dev/null 8434 if test -d .libs; then 8435 lt_cv_objdir=.libs 8436 else 8437 # MS-DOS does not allow filenames that begin with a dot. 8438 lt_cv_objdir=_libs 8439 fi 8440 rmdir .libs 2>/dev/null 8441 fi 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8443 $as_echo "$lt_cv_objdir" >&6; } 8444 objdir=$lt_cv_objdir 8445 8446 8447 8448 8449 8450 cat >>confdefs.h <<_ACEOF 8451 #define LT_OBJDIR "$lt_cv_objdir/" 8452 _ACEOF 8453 8454 8455 8456 8457 case $host_os in 8458 aix3*) 8459 # AIX sometimes has problems with the GCC collect2 program. For some 8460 # reason, if we set the COLLECT_NAMES environment variable, the problems 8461 # vanish in a puff of smoke. 8462 if test "X${COLLECT_NAMES+set}" != Xset; then 8463 COLLECT_NAMES= 8464 export COLLECT_NAMES 8465 fi 8466 ;; 8467 esac 8468 8469 # Global variables: 8470 ofile=libtool 8471 can_build_shared=yes 8472 8473 # All known linkers require a `.a' archive for static linking (except MSVC, 8474 # which needs '.lib'). 8475 libext=a 8476 8477 with_gnu_ld="$lt_cv_prog_gnu_ld" 8478 8479 old_CC="$CC" 8480 old_CFLAGS="$CFLAGS" 8481 8482 # Set sane defaults for various variables 8483 test -z "$CC" && CC=cc 8484 test -z "$LTCC" && LTCC=$CC 8485 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8486 test -z "$LD" && LD=ld 8487 test -z "$ac_objext" && ac_objext=o 8488 8489 for cc_temp in $compiler""; do 8490 case $cc_temp in 8491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8493 \-*) ;; 8494 *) break;; 8495 esac 8496 done 8497 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8498 8499 8500 # Only perform the check for file, if the check method requires it 8501 test -z "$MAGIC_CMD" && MAGIC_CMD=file 8502 case $deplibs_check_method in 8503 file_magic*) 8504 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8506 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8507 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8508 $as_echo_n "(cached) " >&6 8509 else 8510 case $MAGIC_CMD in 8511 [\\/*] | ?:[\\/]*) 8512 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8513 ;; 8514 *) 8515 lt_save_MAGIC_CMD="$MAGIC_CMD" 8516 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8517 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8518 for ac_dir in $ac_dummy; do 8519 IFS="$lt_save_ifs" 8520 test -z "$ac_dir" && ac_dir=. 8521 if test -f $ac_dir/${ac_tool_prefix}file; then 8522 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8523 if test -n "$file_magic_test_file"; then 8524 case $deplibs_check_method in 8525 "file_magic "*) 8526 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8528 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8529 $EGREP "$file_magic_regex" > /dev/null; then 8530 : 8531 else 8532 cat <<_LT_EOF 1>&2 8533 8534 *** Warning: the command libtool uses to detect shared libraries, 8535 *** $file_magic_cmd, produces output that libtool cannot recognize. 8536 *** The result is that libtool may fail to recognize shared libraries 8537 *** as such. This will affect the creation of libtool libraries that 8538 *** depend on shared libraries, but programs linked with such libtool 8539 *** libraries will work regardless of this problem. Nevertheless, you 8540 *** may want to report the problem to your system manager and/or to 8541 *** bug-libtool@gnu.org 8542 8543 _LT_EOF 8544 fi ;; 8545 esac 8546 fi 8547 break 8548 fi 8549 done 8550 IFS="$lt_save_ifs" 8551 MAGIC_CMD="$lt_save_MAGIC_CMD" 8552 ;; 8553 esac 8554 fi 8555 8556 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8557 if test -n "$MAGIC_CMD"; then 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8559 $as_echo "$MAGIC_CMD" >&6; } 8560 else 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8562 $as_echo "no" >&6; } 8563 fi 8564 8565 8566 8567 8568 8569 if test -z "$lt_cv_path_MAGIC_CMD"; then 8570 if test -n "$ac_tool_prefix"; then 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8572 $as_echo_n "checking for file... " >&6; } 8573 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8574 $as_echo_n "(cached) " >&6 8575 else 8576 case $MAGIC_CMD in 8577 [\\/*] | ?:[\\/]*) 8578 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8579 ;; 8580 *) 8581 lt_save_MAGIC_CMD="$MAGIC_CMD" 8582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8583 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8584 for ac_dir in $ac_dummy; do 8585 IFS="$lt_save_ifs" 8586 test -z "$ac_dir" && ac_dir=. 8587 if test -f $ac_dir/file; then 8588 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8589 if test -n "$file_magic_test_file"; then 8590 case $deplibs_check_method in 8591 "file_magic "*) 8592 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8594 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8595 $EGREP "$file_magic_regex" > /dev/null; then 8596 : 8597 else 8598 cat <<_LT_EOF 1>&2 8599 8600 *** Warning: the command libtool uses to detect shared libraries, 8601 *** $file_magic_cmd, produces output that libtool cannot recognize. 8602 *** The result is that libtool may fail to recognize shared libraries 8603 *** as such. This will affect the creation of libtool libraries that 8604 *** depend on shared libraries, but programs linked with such libtool 8605 *** libraries will work regardless of this problem. Nevertheless, you 8606 *** may want to report the problem to your system manager and/or to 8607 *** bug-libtool@gnu.org 8608 8609 _LT_EOF 8610 fi ;; 8611 esac 8612 fi 8613 break 8614 fi 8615 done 8616 IFS="$lt_save_ifs" 8617 MAGIC_CMD="$lt_save_MAGIC_CMD" 8618 ;; 8619 esac 8620 fi 8621 8622 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8623 if test -n "$MAGIC_CMD"; then 8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8625 $as_echo "$MAGIC_CMD" >&6; } 8626 else 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8628 $as_echo "no" >&6; } 8629 fi 8630 8631 8632 else 8633 MAGIC_CMD=: 8634 fi 8635 fi 8636 8637 fi 8638 ;; 8639 esac 8640 8641 # Use C for the default configuration in the libtool script 8642 8643 lt_save_CC="$CC" 8644 ac_ext=c 8645 ac_cpp='$CPP $CPPFLAGS' 8646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8648 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8649 8650 8651 # Source file extension for C test sources. 8652 ac_ext=c 8653 8654 # Object file extension for compiled C test sources. 8655 objext=o 8656 objext=$objext 8657 8658 # Code to be used in simple compile tests 8659 lt_simple_compile_test_code="int some_variable = 0;" 8660 8661 # Code to be used in simple link tests 8662 lt_simple_link_test_code='int main(){return(0);}' 8663 8664 8665 8666 8667 8668 8669 8670 # If no C compiler was specified, use CC. 8671 LTCC=${LTCC-"$CC"} 8672 8673 # If no C compiler flags were specified, use CFLAGS. 8674 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8675 8676 # Allow CC to be a program name with arguments. 8677 compiler=$CC 8678 8679 # Save the default compiler, since it gets overwritten when the other 8680 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8681 compiler_DEFAULT=$CC 8682 8683 # save warnings/boilerplate of simple test code 8684 ac_outfile=conftest.$ac_objext 8685 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8686 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8687 _lt_compiler_boilerplate=`cat conftest.err` 8688 $RM conftest* 8689 8690 ac_outfile=conftest.$ac_objext 8691 echo "$lt_simple_link_test_code" >conftest.$ac_ext 8692 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8693 _lt_linker_boilerplate=`cat conftest.err` 8694 $RM -r conftest* 8695 8696 8697 ## CAVEAT EMPTOR: 8698 ## There is no encapsulation within the following macros, do not change 8699 ## the running order or otherwise move them around unless you know exactly 8700 ## what you are doing... 8701 if test -n "$compiler"; then 8702 8703 lt_prog_compiler_no_builtin_flag= 8704 8705 if test "$GCC" = yes; then 8706 case $cc_basename in 8707 nvcc*) 8708 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8709 *) 8710 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8711 esac 8712 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8714 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8715 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8716 $as_echo_n "(cached) " >&6 8717 else 8718 lt_cv_prog_compiler_rtti_exceptions=no 8719 ac_outfile=conftest.$ac_objext 8720 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8721 lt_compiler_flag="-fno-rtti -fno-exceptions" 8722 # Insert the option either (1) after the last *FLAGS variable, or 8723 # (2) before a word containing "conftest.", or (3) at the end. 8724 # Note that $ac_compile itself does not contain backslashes and begins 8725 # with a dollar sign (not a hyphen), so the echo should work correctly. 8726 # The option is referenced via a variable to avoid confusing sed. 8727 lt_compile=`echo "$ac_compile" | $SED \ 8728 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8729 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8730 -e 's:$: $lt_compiler_flag:'` 8731 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8732 (eval "$lt_compile" 2>conftest.err) 8733 ac_status=$? 8734 cat conftest.err >&5 8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8736 if (exit $ac_status) && test -s "$ac_outfile"; then 8737 # The compiler can only warn and ignore the option if not recognized 8738 # So say no if there are warnings other than the usual output. 8739 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8741 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8742 lt_cv_prog_compiler_rtti_exceptions=yes 8743 fi 8744 fi 8745 $RM conftest* 8746 8747 fi 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8749 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8750 8751 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8752 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8753 else 8754 : 8755 fi 8756 8757 fi 8758 8759 8760 8761 8762 8763 8764 lt_prog_compiler_wl= 8765 lt_prog_compiler_pic= 8766 lt_prog_compiler_static= 8767 8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8769 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8770 8771 if test "$GCC" = yes; then 8772 lt_prog_compiler_wl='-Wl,' 8773 lt_prog_compiler_static='-static' 8774 8775 case $host_os in 8776 aix*) 8777 # All AIX code is PIC. 8778 if test "$host_cpu" = ia64; then 8779 # AIX 5 now supports IA64 processor 8780 lt_prog_compiler_static='-Bstatic' 8781 fi 8782 lt_prog_compiler_pic='-fPIC' 8783 ;; 8784 8785 amigaos*) 8786 case $host_cpu in 8787 powerpc) 8788 # see comment about AmigaOS4 .so support 8789 lt_prog_compiler_pic='-fPIC' 8790 ;; 8791 m68k) 8792 # FIXME: we need at least 68020 code to build shared libraries, but 8793 # adding the `-m68020' flag to GCC prevents building anything better, 8794 # like `-m68040'. 8795 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8796 ;; 8797 esac 8798 ;; 8799 8800 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8801 # PIC is the default for these OSes. 8802 ;; 8803 8804 mingw* | cygwin* | pw32* | os2* | cegcc*) 8805 # This hack is so that the source file can tell whether it is being 8806 # built for inclusion in a dll (and should export symbols for example). 8807 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8808 # (--disable-auto-import) libraries 8809 lt_prog_compiler_pic='-DDLL_EXPORT' 8810 ;; 8811 8812 darwin* | rhapsody*) 8813 # PIC is the default on this platform 8814 # Common symbols not allowed in MH_DYLIB files 8815 lt_prog_compiler_pic='-fno-common' 8816 ;; 8817 8818 haiku*) 8819 # PIC is the default for Haiku. 8820 # The "-static" flag exists, but is broken. 8821 lt_prog_compiler_static= 8822 ;; 8823 8824 hpux*) 8825 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8826 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8827 # sets the default TLS model and affects inlining. 8828 case $host_cpu in 8829 hppa*64*) 8830 # +Z the default 8831 ;; 8832 *) 8833 lt_prog_compiler_pic='-fPIC' 8834 ;; 8835 esac 8836 ;; 8837 8838 interix[3-9]*) 8839 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8840 # Instead, we relocate shared libraries at runtime. 8841 ;; 8842 8843 msdosdjgpp*) 8844 # Just because we use GCC doesn't mean we suddenly get shared libraries 8845 # on systems that don't support them. 8846 lt_prog_compiler_can_build_shared=no 8847 enable_shared=no 8848 ;; 8849 8850 *nto* | *qnx*) 8851 # QNX uses GNU C++, but need to define -shared option too, otherwise 8852 # it will coredump. 8853 lt_prog_compiler_pic='-fPIC -shared' 8854 ;; 8855 8856 sysv4*MP*) 8857 if test -d /usr/nec; then 8858 lt_prog_compiler_pic=-Kconform_pic 8859 fi 8860 ;; 8861 8862 *) 8863 lt_prog_compiler_pic='-fPIC' 8864 ;; 8865 esac 8866 8867 case $cc_basename in 8868 nvcc*) # Cuda Compiler Driver 2.2 8869 lt_prog_compiler_wl='-Xlinker ' 8870 lt_prog_compiler_pic='-Xcompiler -fPIC' 8871 ;; 8872 esac 8873 else 8874 # PORTME Check for flag to pass linker flags through the system compiler. 8875 case $host_os in 8876 aix*) 8877 lt_prog_compiler_wl='-Wl,' 8878 if test "$host_cpu" = ia64; then 8879 # AIX 5 now supports IA64 processor 8880 lt_prog_compiler_static='-Bstatic' 8881 else 8882 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8883 fi 8884 ;; 8885 8886 mingw* | cygwin* | pw32* | os2* | cegcc*) 8887 # This hack is so that the source file can tell whether it is being 8888 # built for inclusion in a dll (and should export symbols for example). 8889 lt_prog_compiler_pic='-DDLL_EXPORT' 8890 ;; 8891 8892 hpux9* | hpux10* | hpux11*) 8893 lt_prog_compiler_wl='-Wl,' 8894 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8895 # not for PA HP-UX. 8896 case $host_cpu in 8897 hppa*64*|ia64*) 8898 # +Z the default 8899 ;; 8900 *) 8901 lt_prog_compiler_pic='+Z' 8902 ;; 8903 esac 8904 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8905 lt_prog_compiler_static='${wl}-a ${wl}archive' 8906 ;; 8907 8908 irix5* | irix6* | nonstopux*) 8909 lt_prog_compiler_wl='-Wl,' 8910 # PIC (with -KPIC) is the default. 8911 lt_prog_compiler_static='-non_shared' 8912 ;; 8913 8914 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8915 case $cc_basename in 8916 # old Intel for x86_64 which still supported -KPIC. 8917 ecc*) 8918 lt_prog_compiler_wl='-Wl,' 8919 lt_prog_compiler_pic='-KPIC' 8920 lt_prog_compiler_static='-static' 8921 ;; 8922 # icc used to be incompatible with GCC. 8923 # ICC 10 doesn't accept -KPIC any more. 8924 icc* | ifort*) 8925 lt_prog_compiler_wl='-Wl,' 8926 lt_prog_compiler_pic='-fPIC' 8927 lt_prog_compiler_static='-static' 8928 ;; 8929 # Lahey Fortran 8.1. 8930 lf95*) 8931 lt_prog_compiler_wl='-Wl,' 8932 lt_prog_compiler_pic='--shared' 8933 lt_prog_compiler_static='--static' 8934 ;; 8935 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8936 # Portland Group compilers (*not* the Pentium gcc compiler, 8937 # which looks to be a dead project) 8938 lt_prog_compiler_wl='-Wl,' 8939 lt_prog_compiler_pic='-fpic' 8940 lt_prog_compiler_static='-Bstatic' 8941 ;; 8942 ccc*) 8943 lt_prog_compiler_wl='-Wl,' 8944 # All Alpha code is PIC. 8945 lt_prog_compiler_static='-non_shared' 8946 ;; 8947 xl* | bgxl* | bgf* | mpixl*) 8948 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8949 lt_prog_compiler_wl='-Wl,' 8950 lt_prog_compiler_pic='-qpic' 8951 lt_prog_compiler_static='-qstaticlink' 8952 ;; 8953 *) 8954 case `$CC -V 2>&1 | sed 5q` in 8955 *Sun\ F* | *Sun*Fortran*) 8956 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8957 lt_prog_compiler_pic='-KPIC' 8958 lt_prog_compiler_static='-Bstatic' 8959 lt_prog_compiler_wl='' 8960 ;; 8961 *Sun\ C*) 8962 # Sun C 5.9 8963 lt_prog_compiler_pic='-KPIC' 8964 lt_prog_compiler_static='-Bstatic' 8965 lt_prog_compiler_wl='-Wl,' 8966 ;; 8967 esac 8968 ;; 8969 esac 8970 ;; 8971 8972 newsos6) 8973 lt_prog_compiler_pic='-KPIC' 8974 lt_prog_compiler_static='-Bstatic' 8975 ;; 8976 8977 *nto* | *qnx*) 8978 # QNX uses GNU C++, but need to define -shared option too, otherwise 8979 # it will coredump. 8980 lt_prog_compiler_pic='-fPIC -shared' 8981 ;; 8982 8983 osf3* | osf4* | osf5*) 8984 lt_prog_compiler_wl='-Wl,' 8985 # All OSF/1 code is PIC. 8986 lt_prog_compiler_static='-non_shared' 8987 ;; 8988 8989 rdos*) 8990 lt_prog_compiler_static='-non_shared' 8991 ;; 8992 8993 solaris*) 8994 lt_prog_compiler_pic='-KPIC' 8995 lt_prog_compiler_static='-Bstatic' 8996 case $cc_basename in 8997 f77* | f90* | f95*) 8998 lt_prog_compiler_wl='-Qoption ld ';; 8999 *) 9000 lt_prog_compiler_wl='-Wl,';; 9001 esac 9002 ;; 9003 9004 sunos4*) 9005 lt_prog_compiler_wl='-Qoption ld ' 9006 lt_prog_compiler_pic='-PIC' 9007 lt_prog_compiler_static='-Bstatic' 9008 ;; 9009 9010 sysv4 | sysv4.2uw2* | sysv4.3*) 9011 lt_prog_compiler_wl='-Wl,' 9012 lt_prog_compiler_pic='-KPIC' 9013 lt_prog_compiler_static='-Bstatic' 9014 ;; 9015 9016 sysv4*MP*) 9017 if test -d /usr/nec ;then 9018 lt_prog_compiler_pic='-Kconform_pic' 9019 lt_prog_compiler_static='-Bstatic' 9020 fi 9021 ;; 9022 9023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9024 lt_prog_compiler_wl='-Wl,' 9025 lt_prog_compiler_pic='-KPIC' 9026 lt_prog_compiler_static='-Bstatic' 9027 ;; 9028 9029 unicos*) 9030 lt_prog_compiler_wl='-Wl,' 9031 lt_prog_compiler_can_build_shared=no 9032 ;; 9033 9034 uts4*) 9035 lt_prog_compiler_pic='-pic' 9036 lt_prog_compiler_static='-Bstatic' 9037 ;; 9038 9039 *) 9040 lt_prog_compiler_can_build_shared=no 9041 ;; 9042 esac 9043 fi 9044 9045 case $host_os in 9046 # For platforms which do not support PIC, -DPIC is meaningless: 9047 *djgpp*) 9048 lt_prog_compiler_pic= 9049 ;; 9050 *) 9051 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9052 ;; 9053 esac 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9055 $as_echo "$lt_prog_compiler_pic" >&6; } 9056 9057 9058 9059 9060 9061 9062 # 9063 # Check to make sure the PIC flag actually works. 9064 # 9065 if test -n "$lt_prog_compiler_pic"; then 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9067 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9068 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 9069 $as_echo_n "(cached) " >&6 9070 else 9071 lt_cv_prog_compiler_pic_works=no 9072 ac_outfile=conftest.$ac_objext 9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9074 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9075 # Insert the option either (1) after the last *FLAGS variable, or 9076 # (2) before a word containing "conftest.", or (3) at the end. 9077 # Note that $ac_compile itself does not contain backslashes and begins 9078 # with a dollar sign (not a hyphen), so the echo should work correctly. 9079 # The option is referenced via a variable to avoid confusing sed. 9080 lt_compile=`echo "$ac_compile" | $SED \ 9081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9083 -e 's:$: $lt_compiler_flag:'` 9084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9085 (eval "$lt_compile" 2>conftest.err) 9086 ac_status=$? 9087 cat conftest.err >&5 9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9089 if (exit $ac_status) && test -s "$ac_outfile"; then 9090 # The compiler can only warn and ignore the option if not recognized 9091 # So say no if there are warnings other than the usual output. 9092 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9094 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9095 lt_cv_prog_compiler_pic_works=yes 9096 fi 9097 fi 9098 $RM conftest* 9099 9100 fi 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9102 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9103 9104 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9105 case $lt_prog_compiler_pic in 9106 "" | " "*) ;; 9107 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9108 esac 9109 else 9110 lt_prog_compiler_pic= 9111 lt_prog_compiler_can_build_shared=no 9112 fi 9113 9114 fi 9115 9116 9117 9118 9119 9120 9121 # 9122 # Check to make sure the static flag actually works. 9123 # 9124 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9126 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9127 if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9128 $as_echo_n "(cached) " >&6 9129 else 9130 lt_cv_prog_compiler_static_works=no 9131 save_LDFLAGS="$LDFLAGS" 9132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9133 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9135 # The linker can only warn and ignore the option if not recognized 9136 # So say no if there are warnings 9137 if test -s conftest.err; then 9138 # Append any errors to the config.log. 9139 cat conftest.err 1>&5 9140 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9142 if diff conftest.exp conftest.er2 >/dev/null; then 9143 lt_cv_prog_compiler_static_works=yes 9144 fi 9145 else 9146 lt_cv_prog_compiler_static_works=yes 9147 fi 9148 fi 9149 $RM -r conftest* 9150 LDFLAGS="$save_LDFLAGS" 9151 9152 fi 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9154 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9155 9156 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9157 : 9158 else 9159 lt_prog_compiler_static= 9160 fi 9161 9162 9163 9164 9165 9166 9167 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9169 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9170 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9171 $as_echo_n "(cached) " >&6 9172 else 9173 lt_cv_prog_compiler_c_o=no 9174 $RM -r conftest 2>/dev/null 9175 mkdir conftest 9176 cd conftest 9177 mkdir out 9178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9179 9180 lt_compiler_flag="-o out/conftest2.$ac_objext" 9181 # Insert the option either (1) after the last *FLAGS variable, or 9182 # (2) before a word containing "conftest.", or (3) at the end. 9183 # Note that $ac_compile itself does not contain backslashes and begins 9184 # with a dollar sign (not a hyphen), so the echo should work correctly. 9185 lt_compile=`echo "$ac_compile" | $SED \ 9186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9188 -e 's:$: $lt_compiler_flag:'` 9189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9190 (eval "$lt_compile" 2>out/conftest.err) 9191 ac_status=$? 9192 cat out/conftest.err >&5 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9195 then 9196 # The compiler can only warn and ignore the option if not recognized 9197 # So say no if there are warnings 9198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9201 lt_cv_prog_compiler_c_o=yes 9202 fi 9203 fi 9204 chmod u+w . 2>&5 9205 $RM conftest* 9206 # SGI C++ compiler will create directory out/ii_files/ for 9207 # template instantiation 9208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9209 $RM out/* && rmdir out 9210 cd .. 9211 $RM -r conftest 9212 $RM conftest* 9213 9214 fi 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9216 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9217 9218 9219 9220 9221 9222 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9224 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9225 if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9226 $as_echo_n "(cached) " >&6 9227 else 9228 lt_cv_prog_compiler_c_o=no 9229 $RM -r conftest 2>/dev/null 9230 mkdir conftest 9231 cd conftest 9232 mkdir out 9233 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9234 9235 lt_compiler_flag="-o out/conftest2.$ac_objext" 9236 # Insert the option either (1) after the last *FLAGS variable, or 9237 # (2) before a word containing "conftest.", or (3) at the end. 9238 # Note that $ac_compile itself does not contain backslashes and begins 9239 # with a dollar sign (not a hyphen), so the echo should work correctly. 9240 lt_compile=`echo "$ac_compile" | $SED \ 9241 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9243 -e 's:$: $lt_compiler_flag:'` 9244 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9245 (eval "$lt_compile" 2>out/conftest.err) 9246 ac_status=$? 9247 cat out/conftest.err >&5 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9249 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9250 then 9251 # The compiler can only warn and ignore the option if not recognized 9252 # So say no if there are warnings 9253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9254 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9255 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9256 lt_cv_prog_compiler_c_o=yes 9257 fi 9258 fi 9259 chmod u+w . 2>&5 9260 $RM conftest* 9261 # SGI C++ compiler will create directory out/ii_files/ for 9262 # template instantiation 9263 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9264 $RM out/* && rmdir out 9265 cd .. 9266 $RM -r conftest 9267 $RM conftest* 9268 9269 fi 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9271 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9272 9273 9274 9275 9276 hard_links="nottested" 9277 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9278 # do not overwrite the value of need_locks provided by the user 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9280 $as_echo_n "checking if we can lock with hard links... " >&6; } 9281 hard_links=yes 9282 $RM conftest* 9283 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9284 touch conftest.a 9285 ln conftest.a conftest.b 2>&5 || hard_links=no 9286 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9288 $as_echo "$hard_links" >&6; } 9289 if test "$hard_links" = no; then 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9291 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9292 need_locks=warn 9293 fi 9294 else 9295 need_locks=no 9296 fi 9297 9298 9299 9300 9301 9302 9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9304 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9305 9306 runpath_var= 9307 allow_undefined_flag= 9308 always_export_symbols=no 9309 archive_cmds= 9310 archive_expsym_cmds= 9311 compiler_needs_object=no 9312 enable_shared_with_static_runtimes=no 9313 export_dynamic_flag_spec= 9314 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9315 hardcode_automatic=no 9316 hardcode_direct=no 9317 hardcode_direct_absolute=no 9318 hardcode_libdir_flag_spec= 9319 hardcode_libdir_flag_spec_ld= 9320 hardcode_libdir_separator= 9321 hardcode_minus_L=no 9322 hardcode_shlibpath_var=unsupported 9323 inherit_rpath=no 9324 link_all_deplibs=unknown 9325 module_cmds= 9326 module_expsym_cmds= 9327 old_archive_from_new_cmds= 9328 old_archive_from_expsyms_cmds= 9329 thread_safe_flag_spec= 9330 whole_archive_flag_spec= 9331 # include_expsyms should be a list of space-separated symbols to be *always* 9332 # included in the symbol list 9333 include_expsyms= 9334 # exclude_expsyms can be an extended regexp of symbols to exclude 9335 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9336 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9337 # as well as any symbol that contains `d'. 9338 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9339 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9340 # platforms (ab)use it in PIC code, but their linkers get confused if 9341 # the symbol is explicitly referenced. Since portable code cannot 9342 # rely on this symbol name, it's probably fine to never include it in 9343 # preloaded symbol tables. 9344 # Exclude shared library initialization/finalization symbols. 9345 extract_expsyms_cmds= 9346 9347 case $host_os in 9348 cygwin* | mingw* | pw32* | cegcc*) 9349 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9350 # When not using gcc, we currently assume that we are using 9351 # Microsoft Visual C++. 9352 if test "$GCC" != yes; then 9353 with_gnu_ld=no 9354 fi 9355 ;; 9356 interix*) 9357 # we just hope/assume this is gcc and not c89 (= MSVC++) 9358 with_gnu_ld=yes 9359 ;; 9360 openbsd*) 9361 with_gnu_ld=no 9362 ;; 9363 esac 9364 9365 ld_shlibs=yes 9366 9367 # On some targets, GNU ld is compatible enough with the native linker 9368 # that we're better off using the native interface for both. 9369 lt_use_gnu_ld_interface=no 9370 if test "$with_gnu_ld" = yes; then 9371 case $host_os in 9372 aix*) 9373 # The AIX port of GNU ld has always aspired to compatibility 9374 # with the native linker. However, as the warning in the GNU ld 9375 # block says, versions before 2.19.5* couldn't really create working 9376 # shared libraries, regardless of the interface used. 9377 case `$LD -v 2>&1` in 9378 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9379 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9380 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9381 *) 9382 lt_use_gnu_ld_interface=yes 9383 ;; 9384 esac 9385 ;; 9386 *) 9387 lt_use_gnu_ld_interface=yes 9388 ;; 9389 esac 9390 fi 9391 9392 if test "$lt_use_gnu_ld_interface" = yes; then 9393 # If archive_cmds runs LD, not CC, wlarc should be empty 9394 wlarc='${wl}' 9395 9396 # Set some defaults for GNU ld with shared library support. These 9397 # are reset later if shared libraries are not supported. Putting them 9398 # here allows them to be overridden if necessary. 9399 runpath_var=LD_RUN_PATH 9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9401 export_dynamic_flag_spec='${wl}--export-dynamic' 9402 # ancient GNU ld didn't support --whole-archive et. al. 9403 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9404 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9405 else 9406 whole_archive_flag_spec= 9407 fi 9408 supports_anon_versioning=no 9409 case `$LD -v 2>&1` in 9410 *GNU\ gold*) supports_anon_versioning=yes ;; 9411 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9412 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9413 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9414 *\ 2.11.*) ;; # other 2.11 versions 9415 *) supports_anon_versioning=yes ;; 9416 esac 9417 9418 # See if GNU ld supports shared libraries. 9419 case $host_os in 9420 aix[3-9]*) 9421 # On AIX/PPC, the GNU linker is very broken 9422 if test "$host_cpu" != ia64; then 9423 ld_shlibs=no 9424 cat <<_LT_EOF 1>&2 9425 9426 *** Warning: the GNU linker, at least up to release 2.19, is reported 9427 *** to be unable to reliably create shared libraries on AIX. 9428 *** Therefore, libtool is disabling shared libraries support. If you 9429 *** really care for shared libraries, you may want to install binutils 9430 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9431 *** You will then need to restart the configuration process. 9432 9433 _LT_EOF 9434 fi 9435 ;; 9436 9437 amigaos*) 9438 case $host_cpu in 9439 powerpc) 9440 # see comment about AmigaOS4 .so support 9441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9442 archive_expsym_cmds='' 9443 ;; 9444 m68k) 9445 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)' 9446 hardcode_libdir_flag_spec='-L$libdir' 9447 hardcode_minus_L=yes 9448 ;; 9449 esac 9450 ;; 9451 9452 beos*) 9453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9454 allow_undefined_flag=unsupported 9455 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 9456 # support --undefined. This deserves some investigation. FIXME 9457 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9458 else 9459 ld_shlibs=no 9460 fi 9461 ;; 9462 9463 cygwin* | mingw* | pw32* | cegcc*) 9464 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9465 # as there is no search path for DLLs. 9466 hardcode_libdir_flag_spec='-L$libdir' 9467 export_dynamic_flag_spec='${wl}--export-all-symbols' 9468 allow_undefined_flag=unsupported 9469 always_export_symbols=no 9470 enable_shared_with_static_runtimes=yes 9471 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9472 9473 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9475 # If the export-symbols file already is a .def file (1st line 9476 # is EXPORTS), use it as is; otherwise, prepend... 9477 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9478 cp $export_symbols $output_objdir/$soname.def; 9479 else 9480 echo EXPORTS > $output_objdir/$soname.def; 9481 cat $export_symbols >> $output_objdir/$soname.def; 9482 fi~ 9483 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9484 else 9485 ld_shlibs=no 9486 fi 9487 ;; 9488 9489 haiku*) 9490 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9491 link_all_deplibs=yes 9492 ;; 9493 9494 interix[3-9]*) 9495 hardcode_direct=no 9496 hardcode_shlibpath_var=no 9497 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9498 export_dynamic_flag_spec='${wl}-E' 9499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9500 # Instead, shared libraries are loaded at an image base (0x10000000 by 9501 # default) and relocated if they conflict, which is a slow very memory 9502 # consuming and fragmenting process. To avoid this, we pick a random, 9503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9504 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9506 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' 9507 ;; 9508 9509 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9510 tmp_diet=no 9511 if test "$host_os" = linux-dietlibc; then 9512 case $cc_basename in 9513 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9514 esac 9515 fi 9516 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9517 && test "$tmp_diet" = no 9518 then 9519 tmp_addflag=' $pic_flag' 9520 tmp_sharedflag='-shared' 9521 case $cc_basename,$host_cpu in 9522 pgcc*) # Portland Group C compiler 9523 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' 9524 tmp_addflag=' $pic_flag' 9525 ;; 9526 pgf77* | pgf90* | pgf95* | pgfortran*) 9527 # Portland Group f77 and f90 compilers 9528 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' 9529 tmp_addflag=' $pic_flag -Mnomain' ;; 9530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9531 tmp_addflag=' -i_dynamic' ;; 9532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9533 tmp_addflag=' -i_dynamic -nofor_main' ;; 9534 ifc* | ifort*) # Intel Fortran compiler 9535 tmp_addflag=' -nofor_main' ;; 9536 lf95*) # Lahey Fortran 8.1 9537 whole_archive_flag_spec= 9538 tmp_sharedflag='--shared' ;; 9539 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9540 tmp_sharedflag='-qmkshrobj' 9541 tmp_addflag= ;; 9542 nvcc*) # Cuda Compiler Driver 2.2 9543 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' 9544 compiler_needs_object=yes 9545 ;; 9546 esac 9547 case `$CC -V 2>&1 | sed 5q` in 9548 *Sun\ C*) # Sun C 5.9 9549 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' 9550 compiler_needs_object=yes 9551 tmp_sharedflag='-G' ;; 9552 *Sun\ F*) # Sun Fortran 8.3 9553 tmp_sharedflag='-G' ;; 9554 esac 9555 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9556 9557 if test "x$supports_anon_versioning" = xyes; then 9558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9560 echo "local: *; };" >> $output_objdir/$libname.ver~ 9561 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9562 fi 9563 9564 case $cc_basename in 9565 xlf* | bgf* | bgxlf* | mpixlf*) 9566 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9567 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9568 hardcode_libdir_flag_spec= 9569 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9570 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9571 if test "x$supports_anon_versioning" = xyes; then 9572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9574 echo "local: *; };" >> $output_objdir/$libname.ver~ 9575 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9576 fi 9577 ;; 9578 esac 9579 else 9580 ld_shlibs=no 9581 fi 9582 ;; 9583 9584 netbsd*) 9585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9586 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9587 wlarc= 9588 else 9589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9590 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9591 fi 9592 ;; 9593 9594 solaris*) 9595 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9596 ld_shlibs=no 9597 cat <<_LT_EOF 1>&2 9598 9599 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 9600 *** create shared libraries on Solaris systems. Therefore, libtool 9601 *** is disabling shared libraries support. We urge you to upgrade GNU 9602 *** binutils to release 2.9.1 or newer. Another option is to modify 9603 *** your PATH or compiler configuration so that the native linker is 9604 *** used, and then restart. 9605 9606 _LT_EOF 9607 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9610 else 9611 ld_shlibs=no 9612 fi 9613 ;; 9614 9615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9616 case `$LD -v 2>&1` in 9617 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9618 ld_shlibs=no 9619 cat <<_LT_EOF 1>&2 9620 9621 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9622 *** reliably create shared libraries on SCO systems. Therefore, libtool 9623 *** is disabling shared libraries support. We urge you to upgrade GNU 9624 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9625 *** your PATH or compiler configuration so that the native linker is 9626 *** used, and then restart. 9627 9628 _LT_EOF 9629 ;; 9630 *) 9631 # For security reasons, it is highly recommended that you always 9632 # use absolute paths for naming shared libraries, and exclude the 9633 # DT_RUNPATH tag from executables and libraries. But doing so 9634 # requires that you compile everything twice, which is a pain. 9635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9639 else 9640 ld_shlibs=no 9641 fi 9642 ;; 9643 esac 9644 ;; 9645 9646 sunos4*) 9647 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9648 wlarc= 9649 hardcode_direct=yes 9650 hardcode_shlibpath_var=no 9651 ;; 9652 9653 *) 9654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9657 else 9658 ld_shlibs=no 9659 fi 9660 ;; 9661 esac 9662 9663 if test "$ld_shlibs" = no; then 9664 runpath_var= 9665 hardcode_libdir_flag_spec= 9666 export_dynamic_flag_spec= 9667 whole_archive_flag_spec= 9668 fi 9669 else 9670 # PORTME fill in a description of your system's linker (not GNU ld) 9671 case $host_os in 9672 aix3*) 9673 allow_undefined_flag=unsupported 9674 always_export_symbols=yes 9675 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' 9676 # Note: this linker hardcodes the directories in LIBPATH if there 9677 # are no directories specified by -L. 9678 hardcode_minus_L=yes 9679 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9680 # Neither direct hardcoding nor static linking is supported with a 9681 # broken collect2. 9682 hardcode_direct=unsupported 9683 fi 9684 ;; 9685 9686 aix[4-9]*) 9687 if test "$host_cpu" = ia64; then 9688 # On IA64, the linker does run time linking by default, so we don't 9689 # have to do anything special. 9690 aix_use_runtimelinking=no 9691 exp_sym_flag='-Bexport' 9692 no_entry_flag="" 9693 else 9694 # If we're using GNU nm, then we don't want the "-C" option. 9695 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9696 # Also, AIX nm treats weak defined symbols like other global 9697 # defined symbols, whereas GNU nm marks them as "W". 9698 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9699 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' 9700 else 9701 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9702 fi 9703 aix_use_runtimelinking=no 9704 9705 # Test if we are trying to use run time linking or normal 9706 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9707 # need to do runtime linking. 9708 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9709 for ld_flag in $LDFLAGS; do 9710 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9711 aix_use_runtimelinking=yes 9712 break 9713 fi 9714 done 9715 ;; 9716 esac 9717 9718 exp_sym_flag='-bexport' 9719 no_entry_flag='-bnoentry' 9720 fi 9721 9722 # When large executables or shared objects are built, AIX ld can 9723 # have problems creating the table of contents. If linking a library 9724 # or program results in "error TOC overflow" add -mminimal-toc to 9725 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9726 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9727 9728 archive_cmds='' 9729 hardcode_direct=yes 9730 hardcode_direct_absolute=yes 9731 hardcode_libdir_separator=':' 9732 link_all_deplibs=yes 9733 file_list_spec='${wl}-f,' 9734 9735 if test "$GCC" = yes; then 9736 case $host_os in aix4.[012]|aix4.[012].*) 9737 # We only want to do this on AIX 4.2 and lower, the check 9738 # below for broken collect2 doesn't work under 4.3+ 9739 collect2name=`${CC} -print-prog-name=collect2` 9740 if test -f "$collect2name" && 9741 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9742 then 9743 # We have reworked collect2 9744 : 9745 else 9746 # We have old collect2 9747 hardcode_direct=unsupported 9748 # It fails to find uninstalled libraries when the uninstalled 9749 # path is not listed in the libpath. Setting hardcode_minus_L 9750 # to unsupported forces relinking 9751 hardcode_minus_L=yes 9752 hardcode_libdir_flag_spec='-L$libdir' 9753 hardcode_libdir_separator= 9754 fi 9755 ;; 9756 esac 9757 shared_flag='-shared' 9758 if test "$aix_use_runtimelinking" = yes; then 9759 shared_flag="$shared_flag "'${wl}-G' 9760 fi 9761 else 9762 # not using gcc 9763 if test "$host_cpu" = ia64; then 9764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9765 # chokes on -Wl,-G. The following line is correct: 9766 shared_flag='-G' 9767 else 9768 if test "$aix_use_runtimelinking" = yes; then 9769 shared_flag='${wl}-G' 9770 else 9771 shared_flag='${wl}-bM:SRE' 9772 fi 9773 fi 9774 fi 9775 9776 export_dynamic_flag_spec='${wl}-bexpall' 9777 # It seems that -bexpall does not export symbols beginning with 9778 # underscore (_), so it is better to generate a list of symbols to export. 9779 always_export_symbols=yes 9780 if test "$aix_use_runtimelinking" = yes; then 9781 # Warning - without using the other runtime loading flags (-brtl), 9782 # -berok will link without error, but may produce a broken library. 9783 allow_undefined_flag='-berok' 9784 # Determine the default libpath from the value encoded in an 9785 # empty executable. 9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9787 /* end confdefs.h. */ 9788 9789 int 9790 main () 9791 { 9792 9793 ; 9794 return 0; 9795 } 9796 _ACEOF 9797 if ac_fn_c_try_link "$LINENO"; then : 9798 9799 lt_aix_libpath_sed=' 9800 /Import File Strings/,/^$/ { 9801 /^0/ { 9802 s/^0 *\(.*\)$/\1/ 9803 p 9804 } 9805 }' 9806 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9807 # Check for a 64-bit object if we didn't find anything. 9808 if test -z "$aix_libpath"; then 9809 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9810 fi 9811 fi 9812 rm -f core conftest.err conftest.$ac_objext \ 9813 conftest$ac_exeext conftest.$ac_ext 9814 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9815 9816 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9817 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" 9818 else 9819 if test "$host_cpu" = ia64; then 9820 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9821 allow_undefined_flag="-z nodefs" 9822 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" 9823 else 9824 # Determine the default libpath from the value encoded in an 9825 # empty executable. 9826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9827 /* end confdefs.h. */ 9828 9829 int 9830 main () 9831 { 9832 9833 ; 9834 return 0; 9835 } 9836 _ACEOF 9837 if ac_fn_c_try_link "$LINENO"; then : 9838 9839 lt_aix_libpath_sed=' 9840 /Import File Strings/,/^$/ { 9841 /^0/ { 9842 s/^0 *\(.*\)$/\1/ 9843 p 9844 } 9845 }' 9846 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9847 # Check for a 64-bit object if we didn't find anything. 9848 if test -z "$aix_libpath"; then 9849 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9850 fi 9851 fi 9852 rm -f core conftest.err conftest.$ac_objext \ 9853 conftest$ac_exeext conftest.$ac_ext 9854 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9855 9856 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9857 # Warning - without using the other run time loading flags, 9858 # -berok will link without error, but may produce a broken library. 9859 no_undefined_flag=' ${wl}-bernotok' 9860 allow_undefined_flag=' ${wl}-berok' 9861 if test "$with_gnu_ld" = yes; then 9862 # We only use this code for GNU lds that support --whole-archive. 9863 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9864 else 9865 # Exported symbols can be pulled into shared objects from archives 9866 whole_archive_flag_spec='$convenience' 9867 fi 9868 archive_cmds_need_lc=yes 9869 # This is similar to how AIX traditionally builds its shared libraries. 9870 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' 9871 fi 9872 fi 9873 ;; 9874 9875 amigaos*) 9876 case $host_cpu in 9877 powerpc) 9878 # see comment about AmigaOS4 .so support 9879 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9880 archive_expsym_cmds='' 9881 ;; 9882 m68k) 9883 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)' 9884 hardcode_libdir_flag_spec='-L$libdir' 9885 hardcode_minus_L=yes 9886 ;; 9887 esac 9888 ;; 9889 9890 bsdi[45]*) 9891 export_dynamic_flag_spec=-rdynamic 9892 ;; 9893 9894 cygwin* | mingw* | pw32* | cegcc*) 9895 # When not using gcc, we currently assume that we are using 9896 # Microsoft Visual C++. 9897 # hardcode_libdir_flag_spec is actually meaningless, as there is 9898 # no search path for DLLs. 9899 hardcode_libdir_flag_spec=' ' 9900 allow_undefined_flag=unsupported 9901 # Tell ltmain to make .lib files, not .a files. 9902 libext=lib 9903 # Tell ltmain to make .dll files, not .so files. 9904 shrext_cmds=".dll" 9905 # FIXME: Setting linknames here is a bad hack. 9906 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9907 # The linker will automatically build a .lib file if we build a DLL. 9908 old_archive_from_new_cmds='true' 9909 # FIXME: Should let the user specify the lib program. 9910 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9911 fix_srcfile_path='`cygpath -w "$srcfile"`' 9912 enable_shared_with_static_runtimes=yes 9913 ;; 9914 9915 darwin* | rhapsody*) 9916 9917 9918 archive_cmds_need_lc=no 9919 hardcode_direct=no 9920 hardcode_automatic=yes 9921 hardcode_shlibpath_var=unsupported 9922 if test "$lt_cv_ld_force_load" = "yes"; then 9923 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\"`' 9924 else 9925 whole_archive_flag_spec='' 9926 fi 9927 link_all_deplibs=yes 9928 allow_undefined_flag="$_lt_dar_allow_undefined" 9929 case $cc_basename in 9930 ifort*) _lt_dar_can_shared=yes ;; 9931 *) _lt_dar_can_shared=$GCC ;; 9932 esac 9933 if test "$_lt_dar_can_shared" = "yes"; then 9934 output_verbose_link_cmd=func_echo_all 9935 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9936 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9937 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}" 9938 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}" 9939 9940 else 9941 ld_shlibs=no 9942 fi 9943 9944 ;; 9945 9946 dgux*) 9947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9948 hardcode_libdir_flag_spec='-L$libdir' 9949 hardcode_shlibpath_var=no 9950 ;; 9951 9952 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9953 # support. Future versions do this automatically, but an explicit c++rt0.o 9954 # does not break anything, and helps significantly (at the cost of a little 9955 # extra space). 9956 freebsd2.2*) 9957 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9958 hardcode_libdir_flag_spec='-R$libdir' 9959 hardcode_direct=yes 9960 hardcode_shlibpath_var=no 9961 ;; 9962 9963 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9964 freebsd2.*) 9965 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9966 hardcode_direct=yes 9967 hardcode_minus_L=yes 9968 hardcode_shlibpath_var=no 9969 ;; 9970 9971 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9972 freebsd* | dragonfly*) 9973 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9974 hardcode_libdir_flag_spec='-R$libdir' 9975 hardcode_direct=yes 9976 hardcode_shlibpath_var=no 9977 ;; 9978 9979 hpux9*) 9980 if test "$GCC" = yes; then 9981 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' 9982 else 9983 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' 9984 fi 9985 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9986 hardcode_libdir_separator=: 9987 hardcode_direct=yes 9988 9989 # hardcode_minus_L: Not really in the search PATH, 9990 # but as the default location of the library. 9991 hardcode_minus_L=yes 9992 export_dynamic_flag_spec='${wl}-E' 9993 ;; 9994 9995 hpux10*) 9996 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9997 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9998 else 9999 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10000 fi 10001 if test "$with_gnu_ld" = no; then 10002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10003 hardcode_libdir_flag_spec_ld='+b $libdir' 10004 hardcode_libdir_separator=: 10005 hardcode_direct=yes 10006 hardcode_direct_absolute=yes 10007 export_dynamic_flag_spec='${wl}-E' 10008 # hardcode_minus_L: Not really in the search PATH, 10009 # but as the default location of the library. 10010 hardcode_minus_L=yes 10011 fi 10012 ;; 10013 10014 hpux11*) 10015 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10016 case $host_cpu in 10017 hppa*64*) 10018 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10019 ;; 10020 ia64*) 10021 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10022 ;; 10023 *) 10024 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10025 ;; 10026 esac 10027 else 10028 case $host_cpu in 10029 hppa*64*) 10030 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10031 ;; 10032 ia64*) 10033 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10034 ;; 10035 *) 10036 10037 # Older versions of the 11.00 compiler do not understand -b yet 10038 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10040 $as_echo_n "checking if $CC understands -b... " >&6; } 10041 if test "${lt_cv_prog_compiler__b+set}" = set; then : 10042 $as_echo_n "(cached) " >&6 10043 else 10044 lt_cv_prog_compiler__b=no 10045 save_LDFLAGS="$LDFLAGS" 10046 LDFLAGS="$LDFLAGS -b" 10047 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10048 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10049 # The linker can only warn and ignore the option if not recognized 10050 # So say no if there are warnings 10051 if test -s conftest.err; then 10052 # Append any errors to the config.log. 10053 cat conftest.err 1>&5 10054 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10056 if diff conftest.exp conftest.er2 >/dev/null; then 10057 lt_cv_prog_compiler__b=yes 10058 fi 10059 else 10060 lt_cv_prog_compiler__b=yes 10061 fi 10062 fi 10063 $RM -r conftest* 10064 LDFLAGS="$save_LDFLAGS" 10065 10066 fi 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10068 $as_echo "$lt_cv_prog_compiler__b" >&6; } 10069 10070 if test x"$lt_cv_prog_compiler__b" = xyes; then 10071 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10072 else 10073 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10074 fi 10075 10076 ;; 10077 esac 10078 fi 10079 if test "$with_gnu_ld" = no; then 10080 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10081 hardcode_libdir_separator=: 10082 10083 case $host_cpu in 10084 hppa*64*|ia64*) 10085 hardcode_direct=no 10086 hardcode_shlibpath_var=no 10087 ;; 10088 *) 10089 hardcode_direct=yes 10090 hardcode_direct_absolute=yes 10091 export_dynamic_flag_spec='${wl}-E' 10092 10093 # hardcode_minus_L: Not really in the search PATH, 10094 # but as the default location of the library. 10095 hardcode_minus_L=yes 10096 ;; 10097 esac 10098 fi 10099 ;; 10100 10101 irix5* | irix6* | nonstopux*) 10102 if test "$GCC" = yes; then 10103 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' 10104 # Try to use the -exported_symbol ld option, if it does not 10105 # work, assume that -exports_file does not work either and 10106 # implicitly export all symbols. 10107 save_LDFLAGS="$LDFLAGS" 10108 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10110 /* end confdefs.h. */ 10111 int foo(void) {} 10112 _ACEOF 10113 if ac_fn_c_try_link "$LINENO"; then : 10114 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' 10115 10116 fi 10117 rm -f core conftest.err conftest.$ac_objext \ 10118 conftest$ac_exeext conftest.$ac_ext 10119 LDFLAGS="$save_LDFLAGS" 10120 else 10121 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' 10122 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' 10123 fi 10124 archive_cmds_need_lc='no' 10125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10126 hardcode_libdir_separator=: 10127 inherit_rpath=yes 10128 link_all_deplibs=yes 10129 ;; 10130 10131 netbsd*) 10132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10134 else 10135 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10136 fi 10137 hardcode_libdir_flag_spec='-R$libdir' 10138 hardcode_direct=yes 10139 hardcode_shlibpath_var=no 10140 ;; 10141 10142 newsos6) 10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10144 hardcode_direct=yes 10145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10146 hardcode_libdir_separator=: 10147 hardcode_shlibpath_var=no 10148 ;; 10149 10150 *nto* | *qnx*) 10151 ;; 10152 10153 openbsd*) 10154 if test -f /usr/libexec/ld.so; then 10155 hardcode_direct=yes 10156 hardcode_shlibpath_var=no 10157 hardcode_direct_absolute=yes 10158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10159 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10160 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10161 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10162 export_dynamic_flag_spec='${wl}-E' 10163 else 10164 case $host_os in 10165 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10166 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10167 hardcode_libdir_flag_spec='-R$libdir' 10168 ;; 10169 *) 10170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10171 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10172 ;; 10173 esac 10174 fi 10175 else 10176 ld_shlibs=no 10177 fi 10178 ;; 10179 10180 os2*) 10181 hardcode_libdir_flag_spec='-L$libdir' 10182 hardcode_minus_L=yes 10183 allow_undefined_flag=unsupported 10184 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' 10185 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10186 ;; 10187 10188 osf3*) 10189 if test "$GCC" = yes; then 10190 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10191 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' 10192 else 10193 allow_undefined_flag=' -expect_unresolved \*' 10194 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' 10195 fi 10196 archive_cmds_need_lc='no' 10197 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10198 hardcode_libdir_separator=: 10199 ;; 10200 10201 osf4* | osf5*) # as osf3* with the addition of -msym flag 10202 if test "$GCC" = yes; then 10203 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10204 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' 10205 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10206 else 10207 allow_undefined_flag=' -expect_unresolved \*' 10208 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' 10209 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~ 10210 $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' 10211 10212 # Both c and cxx compiler support -rpath directly 10213 hardcode_libdir_flag_spec='-rpath $libdir' 10214 fi 10215 archive_cmds_need_lc='no' 10216 hardcode_libdir_separator=: 10217 ;; 10218 10219 solaris*) 10220 no_undefined_flag=' -z defs' 10221 if test "$GCC" = yes; then 10222 wlarc='${wl}' 10223 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10224 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10225 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10226 else 10227 case `$CC -V 2>&1` in 10228 *"Compilers 5.0"*) 10229 wlarc='' 10230 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10232 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10233 ;; 10234 *) 10235 wlarc='${wl}' 10236 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10237 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10238 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10239 ;; 10240 esac 10241 fi 10242 hardcode_libdir_flag_spec='-R$libdir' 10243 hardcode_shlibpath_var=no 10244 case $host_os in 10245 solaris2.[0-5] | solaris2.[0-5].*) ;; 10246 *) 10247 # The compiler driver will combine and reorder linker options, 10248 # but understands `-z linker_flag'. GCC discards it without `$wl', 10249 # but is careful enough not to reorder. 10250 # Supported since Solaris 2.6 (maybe 2.5.1?) 10251 if test "$GCC" = yes; then 10252 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10253 else 10254 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10255 fi 10256 ;; 10257 esac 10258 link_all_deplibs=yes 10259 ;; 10260 10261 sunos4*) 10262 if test "x$host_vendor" = xsequent; then 10263 # Use $CC to link under sequent, because it throws in some extra .o 10264 # files that make .init and .fini sections work. 10265 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10266 else 10267 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10268 fi 10269 hardcode_libdir_flag_spec='-L$libdir' 10270 hardcode_direct=yes 10271 hardcode_minus_L=yes 10272 hardcode_shlibpath_var=no 10273 ;; 10274 10275 sysv4) 10276 case $host_vendor in 10277 sni) 10278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10279 hardcode_direct=yes # is this really true??? 10280 ;; 10281 siemens) 10282 ## LD is ld it makes a PLAMLIB 10283 ## CC just makes a GrossModule. 10284 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10285 reload_cmds='$CC -r -o $output$reload_objs' 10286 hardcode_direct=no 10287 ;; 10288 motorola) 10289 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10290 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10291 ;; 10292 esac 10293 runpath_var='LD_RUN_PATH' 10294 hardcode_shlibpath_var=no 10295 ;; 10296 10297 sysv4.3*) 10298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10299 hardcode_shlibpath_var=no 10300 export_dynamic_flag_spec='-Bexport' 10301 ;; 10302 10303 sysv4*MP*) 10304 if test -d /usr/nec; then 10305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10306 hardcode_shlibpath_var=no 10307 runpath_var=LD_RUN_PATH 10308 hardcode_runpath_var=yes 10309 ld_shlibs=yes 10310 fi 10311 ;; 10312 10313 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10314 no_undefined_flag='${wl}-z,text' 10315 archive_cmds_need_lc=no 10316 hardcode_shlibpath_var=no 10317 runpath_var='LD_RUN_PATH' 10318 10319 if test "$GCC" = yes; then 10320 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10321 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10322 else 10323 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10324 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10325 fi 10326 ;; 10327 10328 sysv5* | sco3.2v5* | sco5v6*) 10329 # Note: We can NOT use -z defs as we might desire, because we do not 10330 # link with -lc, and that would cause any symbols used from libc to 10331 # always be unresolved, which means just about no library would 10332 # ever link correctly. If we're not using GNU ld we use -z text 10333 # though, which does catch some bad symbols but isn't as heavy-handed 10334 # as -z defs. 10335 no_undefined_flag='${wl}-z,text' 10336 allow_undefined_flag='${wl}-z,nodefs' 10337 archive_cmds_need_lc=no 10338 hardcode_shlibpath_var=no 10339 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10340 hardcode_libdir_separator=':' 10341 link_all_deplibs=yes 10342 export_dynamic_flag_spec='${wl}-Bexport' 10343 runpath_var='LD_RUN_PATH' 10344 10345 if test "$GCC" = yes; then 10346 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10347 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10348 else 10349 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10350 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10351 fi 10352 ;; 10353 10354 uts4*) 10355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10356 hardcode_libdir_flag_spec='-L$libdir' 10357 hardcode_shlibpath_var=no 10358 ;; 10359 10360 *) 10361 ld_shlibs=no 10362 ;; 10363 esac 10364 10365 if test x$host_vendor = xsni; then 10366 case $host in 10367 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10368 export_dynamic_flag_spec='${wl}-Blargedynsym' 10369 ;; 10370 esac 10371 fi 10372 fi 10373 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10375 $as_echo "$ld_shlibs" >&6; } 10376 test "$ld_shlibs" = no && can_build_shared=no 10377 10378 with_gnu_ld=$with_gnu_ld 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 # 10395 # Do we need to explicitly link libc? 10396 # 10397 case "x$archive_cmds_need_lc" in 10398 x|xyes) 10399 # Assume -lc should be added 10400 archive_cmds_need_lc=yes 10401 10402 if test "$enable_shared" = yes && test "$GCC" = yes; then 10403 case $archive_cmds in 10404 *'~'*) 10405 # FIXME: we may have to deal with multi-command sequences. 10406 ;; 10407 '$CC '*) 10408 # Test whether the compiler implicitly links with -lc since on some 10409 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10410 # to ld, don't add -lc before -lgcc. 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10412 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10413 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10414 $as_echo_n "(cached) " >&6 10415 else 10416 $RM conftest* 10417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10418 10419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10420 (eval $ac_compile) 2>&5 10421 ac_status=$? 10422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10423 test $ac_status = 0; } 2>conftest.err; then 10424 soname=conftest 10425 lib=conftest 10426 libobjs=conftest.$ac_objext 10427 deplibs= 10428 wl=$lt_prog_compiler_wl 10429 pic_flag=$lt_prog_compiler_pic 10430 compiler_flags=-v 10431 linker_flags=-v 10432 verstring= 10433 output_objdir=. 10434 libname=conftest 10435 lt_save_allow_undefined_flag=$allow_undefined_flag 10436 allow_undefined_flag= 10437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10438 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10439 ac_status=$? 10440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10441 test $ac_status = 0; } 10442 then 10443 lt_cv_archive_cmds_need_lc=no 10444 else 10445 lt_cv_archive_cmds_need_lc=yes 10446 fi 10447 allow_undefined_flag=$lt_save_allow_undefined_flag 10448 else 10449 cat conftest.err 1>&5 10450 fi 10451 $RM conftest* 10452 10453 fi 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10455 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10456 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10457 ;; 10458 esac 10459 fi 10460 ;; 10461 esac 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10620 $as_echo_n "checking dynamic linker characteristics... " >&6; } 10621 10622 if test "$GCC" = yes; then 10623 case $host_os in 10624 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10625 *) lt_awk_arg="/^libraries:/" ;; 10626 esac 10627 case $host_os in 10628 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10629 *) lt_sed_strip_eq="s,=/,/,g" ;; 10630 esac 10631 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10632 case $lt_search_path_spec in 10633 *\;*) 10634 # if the path contains ";" then we assume it to be the separator 10635 # otherwise default to the standard path separator (i.e. ":") - it is 10636 # assumed that no part of a normal pathname contains ";" but that should 10637 # okay in the real world where ";" in dirpaths is itself problematic. 10638 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10639 ;; 10640 *) 10641 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10642 ;; 10643 esac 10644 # Ok, now we have the path, separated by spaces, we can step through it 10645 # and add multilib dir if necessary. 10646 lt_tmp_lt_search_path_spec= 10647 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10648 for lt_sys_path in $lt_search_path_spec; do 10649 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10650 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10651 else 10652 test -d "$lt_sys_path" && \ 10653 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10654 fi 10655 done 10656 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10657 BEGIN {RS=" "; FS="/|\n";} { 10658 lt_foo=""; 10659 lt_count=0; 10660 for (lt_i = NF; lt_i > 0; lt_i--) { 10661 if ($lt_i != "" && $lt_i != ".") { 10662 if ($lt_i == "..") { 10663 lt_count++; 10664 } else { 10665 if (lt_count == 0) { 10666 lt_foo="/" $lt_i lt_foo; 10667 } else { 10668 lt_count--; 10669 } 10670 } 10671 } 10672 } 10673 if (lt_foo != "") { lt_freq[lt_foo]++; } 10674 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10675 }'` 10676 # AWK program above erroneously prepends '/' to C:/dos/paths 10677 # for these hosts. 10678 case $host_os in 10679 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10680 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10681 esac 10682 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10683 else 10684 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10685 fi 10686 library_names_spec= 10687 libname_spec='lib$name' 10688 soname_spec= 10689 shrext_cmds=".so" 10690 postinstall_cmds= 10691 postuninstall_cmds= 10692 finish_cmds= 10693 finish_eval= 10694 shlibpath_var= 10695 shlibpath_overrides_runpath=unknown 10696 version_type=none 10697 dynamic_linker="$host_os ld.so" 10698 sys_lib_dlsearch_path_spec="/lib /usr/lib" 10699 need_lib_prefix=unknown 10700 hardcode_into_libs=no 10701 10702 # when you set need_version to no, make sure it does not cause -set_version 10703 # flags to be left without arguments 10704 need_version=unknown 10705 10706 case $host_os in 10707 aix3*) 10708 version_type=linux 10709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10710 shlibpath_var=LIBPATH 10711 10712 # AIX 3 has no versioning support, so we append a major version to the name. 10713 soname_spec='${libname}${release}${shared_ext}$major' 10714 ;; 10715 10716 aix[4-9]*) 10717 version_type=linux 10718 need_lib_prefix=no 10719 need_version=no 10720 hardcode_into_libs=yes 10721 if test "$host_cpu" = ia64; then 10722 # AIX 5 supports IA64 10723 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10724 shlibpath_var=LD_LIBRARY_PATH 10725 else 10726 # With GCC up to 2.95.x, collect2 would create an import file 10727 # for dependence libraries. The import file would start with 10728 # the line `#! .'. This would cause the generated library to 10729 # depend on `.', always an invalid library. This was fixed in 10730 # development snapshots of GCC prior to 3.0. 10731 case $host_os in 10732 aix4 | aix4.[01] | aix4.[01].*) 10733 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10734 echo ' yes ' 10735 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10736 : 10737 else 10738 can_build_shared=no 10739 fi 10740 ;; 10741 esac 10742 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10743 # soname into executable. Probably we can add versioning support to 10744 # collect2, so additional links can be useful in future. 10745 if test "$aix_use_runtimelinking" = yes; then 10746 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10747 # instead of lib<name>.a to let people know that these are not 10748 # typical AIX shared libraries. 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10750 else 10751 # We preserve .a as extension for shared libraries through AIX4.2 10752 # and later when we are not doing run time linking. 10753 library_names_spec='${libname}${release}.a $libname.a' 10754 soname_spec='${libname}${release}${shared_ext}$major' 10755 fi 10756 shlibpath_var=LIBPATH 10757 fi 10758 ;; 10759 10760 amigaos*) 10761 case $host_cpu in 10762 powerpc) 10763 # Since July 2007 AmigaOS4 officially supports .so libraries. 10764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10766 ;; 10767 m68k) 10768 library_names_spec='$libname.ixlibrary $libname.a' 10769 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10770 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' 10771 ;; 10772 esac 10773 ;; 10774 10775 beos*) 10776 library_names_spec='${libname}${shared_ext}' 10777 dynamic_linker="$host_os ld.so" 10778 shlibpath_var=LIBRARY_PATH 10779 ;; 10780 10781 bsdi[45]*) 10782 version_type=linux 10783 need_version=no 10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10785 soname_spec='${libname}${release}${shared_ext}$major' 10786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10787 shlibpath_var=LD_LIBRARY_PATH 10788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10790 # the default ld.so.conf also contains /usr/contrib/lib and 10791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10792 # libtool to hard-code these into programs 10793 ;; 10794 10795 cygwin* | mingw* | pw32* | cegcc*) 10796 version_type=windows 10797 shrext_cmds=".dll" 10798 need_version=no 10799 need_lib_prefix=no 10800 10801 case $GCC,$host_os in 10802 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10803 library_names_spec='$libname.dll.a' 10804 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10805 postinstall_cmds='base_file=`basename \${file}`~ 10806 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10807 dldir=$destdir/`dirname \$dlpath`~ 10808 test -d \$dldir || mkdir -p \$dldir~ 10809 $install_prog $dir/$dlname \$dldir/$dlname~ 10810 chmod a+x \$dldir/$dlname~ 10811 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10812 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10813 fi' 10814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10815 dlpath=$dir/\$dldll~ 10816 $RM \$dlpath' 10817 shlibpath_overrides_runpath=yes 10818 10819 case $host_os in 10820 cygwin*) 10821 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10823 10824 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10825 ;; 10826 mingw* | cegcc*) 10827 # MinGW DLLs use traditional 'lib' prefix 10828 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10829 ;; 10830 pw32*) 10831 # pw32 DLLs use 'pw' prefix rather than 'lib' 10832 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10833 ;; 10834 esac 10835 ;; 10836 10837 *) 10838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10839 ;; 10840 esac 10841 dynamic_linker='Win32 ld.exe' 10842 # FIXME: first we should search . and the directory the executable is in 10843 shlibpath_var=PATH 10844 ;; 10845 10846 darwin* | rhapsody*) 10847 dynamic_linker="$host_os dyld" 10848 version_type=darwin 10849 need_lib_prefix=no 10850 need_version=no 10851 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10852 soname_spec='${libname}${release}${major}$shared_ext' 10853 shlibpath_overrides_runpath=yes 10854 shlibpath_var=DYLD_LIBRARY_PATH 10855 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10856 10857 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10859 ;; 10860 10861 dgux*) 10862 version_type=linux 10863 need_lib_prefix=no 10864 need_version=no 10865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10866 soname_spec='${libname}${release}${shared_ext}$major' 10867 shlibpath_var=LD_LIBRARY_PATH 10868 ;; 10869 10870 freebsd* | dragonfly*) 10871 # DragonFly does not have aout. When/if they implement a new 10872 # versioning mechanism, adjust this. 10873 if test -x /usr/bin/objformat; then 10874 objformat=`/usr/bin/objformat` 10875 else 10876 case $host_os in 10877 freebsd[23].*) objformat=aout ;; 10878 *) objformat=elf ;; 10879 esac 10880 fi 10881 version_type=freebsd-$objformat 10882 case $version_type in 10883 freebsd-elf*) 10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10885 need_version=no 10886 need_lib_prefix=no 10887 ;; 10888 freebsd-*) 10889 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10890 need_version=yes 10891 ;; 10892 esac 10893 shlibpath_var=LD_LIBRARY_PATH 10894 case $host_os in 10895 freebsd2.*) 10896 shlibpath_overrides_runpath=yes 10897 ;; 10898 freebsd3.[01]* | freebsdelf3.[01]*) 10899 shlibpath_overrides_runpath=yes 10900 hardcode_into_libs=yes 10901 ;; 10902 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10903 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10904 shlibpath_overrides_runpath=no 10905 hardcode_into_libs=yes 10906 ;; 10907 *) # from 4.6 on, and DragonFly 10908 shlibpath_overrides_runpath=yes 10909 hardcode_into_libs=yes 10910 ;; 10911 esac 10912 ;; 10913 10914 gnu*) 10915 version_type=linux 10916 need_lib_prefix=no 10917 need_version=no 10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10919 soname_spec='${libname}${release}${shared_ext}$major' 10920 shlibpath_var=LD_LIBRARY_PATH 10921 hardcode_into_libs=yes 10922 ;; 10923 10924 haiku*) 10925 version_type=linux 10926 need_lib_prefix=no 10927 need_version=no 10928 dynamic_linker="$host_os runtime_loader" 10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10930 soname_spec='${libname}${release}${shared_ext}$major' 10931 shlibpath_var=LIBRARY_PATH 10932 shlibpath_overrides_runpath=yes 10933 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10934 hardcode_into_libs=yes 10935 ;; 10936 10937 hpux9* | hpux10* | hpux11*) 10938 # Give a soname corresponding to the major version so that dld.sl refuses to 10939 # link against other versions. 10940 version_type=sunos 10941 need_lib_prefix=no 10942 need_version=no 10943 case $host_cpu in 10944 ia64*) 10945 shrext_cmds='.so' 10946 hardcode_into_libs=yes 10947 dynamic_linker="$host_os dld.so" 10948 shlibpath_var=LD_LIBRARY_PATH 10949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10951 soname_spec='${libname}${release}${shared_ext}$major' 10952 if test "X$HPUX_IA64_MODE" = X32; then 10953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10954 else 10955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10956 fi 10957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10958 ;; 10959 hppa*64*) 10960 shrext_cmds='.sl' 10961 hardcode_into_libs=yes 10962 dynamic_linker="$host_os dld.sl" 10963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10966 soname_spec='${libname}${release}${shared_ext}$major' 10967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10969 ;; 10970 *) 10971 shrext_cmds='.sl' 10972 dynamic_linker="$host_os dld.sl" 10973 shlibpath_var=SHLIB_PATH 10974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10976 soname_spec='${libname}${release}${shared_ext}$major' 10977 ;; 10978 esac 10979 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10980 postinstall_cmds='chmod 555 $lib' 10981 # or fails outright, so override atomically: 10982 install_override_mode=555 10983 ;; 10984 10985 interix[3-9]*) 10986 version_type=linux 10987 need_lib_prefix=no 10988 need_version=no 10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10990 soname_spec='${libname}${release}${shared_ext}$major' 10991 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10992 shlibpath_var=LD_LIBRARY_PATH 10993 shlibpath_overrides_runpath=no 10994 hardcode_into_libs=yes 10995 ;; 10996 10997 irix5* | irix6* | nonstopux*) 10998 case $host_os in 10999 nonstopux*) version_type=nonstopux ;; 11000 *) 11001 if test "$lt_cv_prog_gnu_ld" = yes; then 11002 version_type=linux 11003 else 11004 version_type=irix 11005 fi ;; 11006 esac 11007 need_lib_prefix=no 11008 need_version=no 11009 soname_spec='${libname}${release}${shared_ext}$major' 11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11011 case $host_os in 11012 irix5* | nonstopux*) 11013 libsuff= shlibsuff= 11014 ;; 11015 *) 11016 case $LD in # libtool.m4 will add one of these switches to LD 11017 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11018 libsuff= shlibsuff= libmagic=32-bit;; 11019 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11020 libsuff=32 shlibsuff=N32 libmagic=N32;; 11021 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11022 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11023 *) libsuff= shlibsuff= libmagic=never-match;; 11024 esac 11025 ;; 11026 esac 11027 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11028 shlibpath_overrides_runpath=no 11029 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11030 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11031 hardcode_into_libs=yes 11032 ;; 11033 11034 # No shared lib support for Linux oldld, aout, or coff. 11035 linux*oldld* | linux*aout* | linux*coff*) 11036 dynamic_linker=no 11037 ;; 11038 11039 # This must be Linux ELF. 11040 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11041 version_type=linux 11042 need_lib_prefix=no 11043 need_version=no 11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11045 soname_spec='${libname}${release}${shared_ext}$major' 11046 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11047 shlibpath_var=LD_LIBRARY_PATH 11048 shlibpath_overrides_runpath=no 11049 11050 # Some binutils ld are patched to set DT_RUNPATH 11051 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 11052 $as_echo_n "(cached) " >&6 11053 else 11054 lt_cv_shlibpath_overrides_runpath=no 11055 save_LDFLAGS=$LDFLAGS 11056 save_libdir=$libdir 11057 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11058 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11060 /* end confdefs.h. */ 11061 11062 int 11063 main () 11064 { 11065 11066 ; 11067 return 0; 11068 } 11069 _ACEOF 11070 if ac_fn_c_try_link "$LINENO"; then : 11071 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11072 lt_cv_shlibpath_overrides_runpath=yes 11073 fi 11074 fi 11075 rm -f core conftest.err conftest.$ac_objext \ 11076 conftest$ac_exeext conftest.$ac_ext 11077 LDFLAGS=$save_LDFLAGS 11078 libdir=$save_libdir 11079 11080 fi 11081 11082 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11083 11084 # This implies no fast_install, which is unacceptable. 11085 # Some rework will be needed to allow for fast_install 11086 # before this can be enabled. 11087 hardcode_into_libs=yes 11088 11089 # Append ld.so.conf contents to the search path 11090 if test -f /etc/ld.so.conf; then 11091 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' ' '` 11092 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11093 fi 11094 11095 # We used to test for /lib/ld.so.1 and disable shared libraries on 11096 # powerpc, because MkLinux only supported shared libraries with the 11097 # GNU dynamic linker. Since this was broken with cross compilers, 11098 # most powerpc-linux boxes support dynamic linking these days and 11099 # people can always --disable-shared, the test was removed, and we 11100 # assume the GNU/Linux dynamic linker is in use. 11101 dynamic_linker='GNU/Linux ld.so' 11102 ;; 11103 11104 netbsd*) 11105 version_type=sunos 11106 need_lib_prefix=no 11107 need_version=no 11108 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11111 dynamic_linker='NetBSD (a.out) ld.so' 11112 else 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11114 soname_spec='${libname}${release}${shared_ext}$major' 11115 dynamic_linker='NetBSD ld.elf_so' 11116 fi 11117 shlibpath_var=LD_LIBRARY_PATH 11118 shlibpath_overrides_runpath=yes 11119 hardcode_into_libs=yes 11120 ;; 11121 11122 newsos6) 11123 version_type=linux 11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11125 shlibpath_var=LD_LIBRARY_PATH 11126 shlibpath_overrides_runpath=yes 11127 ;; 11128 11129 *nto* | *qnx*) 11130 version_type=qnx 11131 need_lib_prefix=no 11132 need_version=no 11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11134 soname_spec='${libname}${release}${shared_ext}$major' 11135 shlibpath_var=LD_LIBRARY_PATH 11136 shlibpath_overrides_runpath=no 11137 hardcode_into_libs=yes 11138 dynamic_linker='ldqnx.so' 11139 ;; 11140 11141 openbsd*) 11142 version_type=sunos 11143 sys_lib_dlsearch_path_spec="/usr/lib" 11144 need_lib_prefix=no 11145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11146 case $host_os in 11147 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11148 *) need_version=no ;; 11149 esac 11150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11152 shlibpath_var=LD_LIBRARY_PATH 11153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11154 case $host_os in 11155 openbsd2.[89] | openbsd2.[89].*) 11156 shlibpath_overrides_runpath=no 11157 ;; 11158 *) 11159 shlibpath_overrides_runpath=yes 11160 ;; 11161 esac 11162 else 11163 shlibpath_overrides_runpath=yes 11164 fi 11165 ;; 11166 11167 os2*) 11168 libname_spec='$name' 11169 shrext_cmds=".dll" 11170 need_lib_prefix=no 11171 library_names_spec='$libname${shared_ext} $libname.a' 11172 dynamic_linker='OS/2 ld.exe' 11173 shlibpath_var=LIBPATH 11174 ;; 11175 11176 osf3* | osf4* | osf5*) 11177 version_type=osf 11178 need_lib_prefix=no 11179 need_version=no 11180 soname_spec='${libname}${release}${shared_ext}$major' 11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11182 shlibpath_var=LD_LIBRARY_PATH 11183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11185 ;; 11186 11187 rdos*) 11188 dynamic_linker=no 11189 ;; 11190 11191 solaris*) 11192 version_type=linux 11193 need_lib_prefix=no 11194 need_version=no 11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11196 soname_spec='${libname}${release}${shared_ext}$major' 11197 shlibpath_var=LD_LIBRARY_PATH 11198 shlibpath_overrides_runpath=yes 11199 hardcode_into_libs=yes 11200 # ldd complains unless libraries are executable 11201 postinstall_cmds='chmod +x $lib' 11202 ;; 11203 11204 sunos4*) 11205 version_type=sunos 11206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11208 shlibpath_var=LD_LIBRARY_PATH 11209 shlibpath_overrides_runpath=yes 11210 if test "$with_gnu_ld" = yes; then 11211 need_lib_prefix=no 11212 fi 11213 need_version=yes 11214 ;; 11215 11216 sysv4 | sysv4.3*) 11217 version_type=linux 11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11219 soname_spec='${libname}${release}${shared_ext}$major' 11220 shlibpath_var=LD_LIBRARY_PATH 11221 case $host_vendor in 11222 sni) 11223 shlibpath_overrides_runpath=no 11224 need_lib_prefix=no 11225 runpath_var=LD_RUN_PATH 11226 ;; 11227 siemens) 11228 need_lib_prefix=no 11229 ;; 11230 motorola) 11231 need_lib_prefix=no 11232 need_version=no 11233 shlibpath_overrides_runpath=no 11234 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11235 ;; 11236 esac 11237 ;; 11238 11239 sysv4*MP*) 11240 if test -d /usr/nec ;then 11241 version_type=linux 11242 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11243 soname_spec='$libname${shared_ext}.$major' 11244 shlibpath_var=LD_LIBRARY_PATH 11245 fi 11246 ;; 11247 11248 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11249 version_type=freebsd-elf 11250 need_lib_prefix=no 11251 need_version=no 11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11253 soname_spec='${libname}${release}${shared_ext}$major' 11254 shlibpath_var=LD_LIBRARY_PATH 11255 shlibpath_overrides_runpath=yes 11256 hardcode_into_libs=yes 11257 if test "$with_gnu_ld" = yes; then 11258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11259 else 11260 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11261 case $host_os in 11262 sco3.2v5*) 11263 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11264 ;; 11265 esac 11266 fi 11267 sys_lib_dlsearch_path_spec='/usr/lib' 11268 ;; 11269 11270 tpf*) 11271 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11272 version_type=linux 11273 need_lib_prefix=no 11274 need_version=no 11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11276 shlibpath_var=LD_LIBRARY_PATH 11277 shlibpath_overrides_runpath=no 11278 hardcode_into_libs=yes 11279 ;; 11280 11281 uts4*) 11282 version_type=linux 11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11284 soname_spec='${libname}${release}${shared_ext}$major' 11285 shlibpath_var=LD_LIBRARY_PATH 11286 ;; 11287 11288 *) 11289 dynamic_linker=no 11290 ;; 11291 esac 11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11293 $as_echo "$dynamic_linker" >&6; } 11294 test "$dynamic_linker" = no && can_build_shared=no 11295 11296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11297 if test "$GCC" = yes; then 11298 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11299 fi 11300 11301 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11302 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11303 fi 11304 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11305 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11306 fi 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11400 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11401 hardcode_action= 11402 if test -n "$hardcode_libdir_flag_spec" || 11403 test -n "$runpath_var" || 11404 test "X$hardcode_automatic" = "Xyes" ; then 11405 11406 # We can hardcode non-existent directories. 11407 if test "$hardcode_direct" != no && 11408 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11409 # have to relink, otherwise we might link with an installed library 11410 # when we should be linking with a yet-to-be-installed one 11411 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11412 test "$hardcode_minus_L" != no; then 11413 # Linking always hardcodes the temporary library directory. 11414 hardcode_action=relink 11415 else 11416 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11417 hardcode_action=immediate 11418 fi 11419 else 11420 # We cannot hardcode anything, or else we can only hardcode existing 11421 # directories. 11422 hardcode_action=unsupported 11423 fi 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11425 $as_echo "$hardcode_action" >&6; } 11426 11427 if test "$hardcode_action" = relink || 11428 test "$inherit_rpath" = yes; then 11429 # Fast installation is not supported 11430 enable_fast_install=no 11431 elif test "$shlibpath_overrides_runpath" = yes || 11432 test "$enable_shared" = no; then 11433 # Fast installation is not necessary 11434 enable_fast_install=needless 11435 fi 11436 11437 11438 11439 11440 11441 11442 if test "x$enable_dlopen" != xyes; then 11443 enable_dlopen=unknown 11444 enable_dlopen_self=unknown 11445 enable_dlopen_self_static=unknown 11446 else 11447 lt_cv_dlopen=no 11448 lt_cv_dlopen_libs= 11449 11450 case $host_os in 11451 beos*) 11452 lt_cv_dlopen="load_add_on" 11453 lt_cv_dlopen_libs= 11454 lt_cv_dlopen_self=yes 11455 ;; 11456 11457 mingw* | pw32* | cegcc*) 11458 lt_cv_dlopen="LoadLibrary" 11459 lt_cv_dlopen_libs= 11460 ;; 11461 11462 cygwin*) 11463 lt_cv_dlopen="dlopen" 11464 lt_cv_dlopen_libs= 11465 ;; 11466 11467 darwin*) 11468 # if libdl is installed we need to link against it 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11470 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11471 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11472 $as_echo_n "(cached) " >&6 11473 else 11474 ac_check_lib_save_LIBS=$LIBS 11475 LIBS="-ldl $LIBS" 11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11477 /* end confdefs.h. */ 11478 11479 /* Override any GCC internal prototype to avoid an error. 11480 Use char because int might match the return type of a GCC 11481 builtin and then its argument prototype would still apply. */ 11482 #ifdef __cplusplus 11483 extern "C" 11484 #endif 11485 char dlopen (); 11486 int 11487 main () 11488 { 11489 return dlopen (); 11490 ; 11491 return 0; 11492 } 11493 _ACEOF 11494 if ac_fn_c_try_link "$LINENO"; then : 11495 ac_cv_lib_dl_dlopen=yes 11496 else 11497 ac_cv_lib_dl_dlopen=no 11498 fi 11499 rm -f core conftest.err conftest.$ac_objext \ 11500 conftest$ac_exeext conftest.$ac_ext 11501 LIBS=$ac_check_lib_save_LIBS 11502 fi 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11504 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11505 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11507 else 11508 11509 lt_cv_dlopen="dyld" 11510 lt_cv_dlopen_libs= 11511 lt_cv_dlopen_self=yes 11512 11513 fi 11514 11515 ;; 11516 11517 *) 11518 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11519 if test "x$ac_cv_func_shl_load" = x""yes; then : 11520 lt_cv_dlopen="shl_load" 11521 else 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11523 $as_echo_n "checking for shl_load in -ldld... " >&6; } 11524 if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11525 $as_echo_n "(cached) " >&6 11526 else 11527 ac_check_lib_save_LIBS=$LIBS 11528 LIBS="-ldld $LIBS" 11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11530 /* end confdefs.h. */ 11531 11532 /* Override any GCC internal prototype to avoid an error. 11533 Use char because int might match the return type of a GCC 11534 builtin and then its argument prototype would still apply. */ 11535 #ifdef __cplusplus 11536 extern "C" 11537 #endif 11538 char shl_load (); 11539 int 11540 main () 11541 { 11542 return shl_load (); 11543 ; 11544 return 0; 11545 } 11546 _ACEOF 11547 if ac_fn_c_try_link "$LINENO"; then : 11548 ac_cv_lib_dld_shl_load=yes 11549 else 11550 ac_cv_lib_dld_shl_load=no 11551 fi 11552 rm -f core conftest.err conftest.$ac_objext \ 11553 conftest$ac_exeext conftest.$ac_ext 11554 LIBS=$ac_check_lib_save_LIBS 11555 fi 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11557 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11558 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11559 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11560 else 11561 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11562 if test "x$ac_cv_func_dlopen" = x""yes; then : 11563 lt_cv_dlopen="dlopen" 11564 else 11565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11566 $as_echo_n "checking for dlopen in -ldl... " >&6; } 11567 if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11568 $as_echo_n "(cached) " >&6 11569 else 11570 ac_check_lib_save_LIBS=$LIBS 11571 LIBS="-ldl $LIBS" 11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11573 /* end confdefs.h. */ 11574 11575 /* Override any GCC internal prototype to avoid an error. 11576 Use char because int might match the return type of a GCC 11577 builtin and then its argument prototype would still apply. */ 11578 #ifdef __cplusplus 11579 extern "C" 11580 #endif 11581 char dlopen (); 11582 int 11583 main () 11584 { 11585 return dlopen (); 11586 ; 11587 return 0; 11588 } 11589 _ACEOF 11590 if ac_fn_c_try_link "$LINENO"; then : 11591 ac_cv_lib_dl_dlopen=yes 11592 else 11593 ac_cv_lib_dl_dlopen=no 11594 fi 11595 rm -f core conftest.err conftest.$ac_objext \ 11596 conftest$ac_exeext conftest.$ac_ext 11597 LIBS=$ac_check_lib_save_LIBS 11598 fi 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11600 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11601 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11602 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11603 else 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11605 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 11606 if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11607 $as_echo_n "(cached) " >&6 11608 else 11609 ac_check_lib_save_LIBS=$LIBS 11610 LIBS="-lsvld $LIBS" 11611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11612 /* end confdefs.h. */ 11613 11614 /* Override any GCC internal prototype to avoid an error. 11615 Use char because int might match the return type of a GCC 11616 builtin and then its argument prototype would still apply. */ 11617 #ifdef __cplusplus 11618 extern "C" 11619 #endif 11620 char dlopen (); 11621 int 11622 main () 11623 { 11624 return dlopen (); 11625 ; 11626 return 0; 11627 } 11628 _ACEOF 11629 if ac_fn_c_try_link "$LINENO"; then : 11630 ac_cv_lib_svld_dlopen=yes 11631 else 11632 ac_cv_lib_svld_dlopen=no 11633 fi 11634 rm -f core conftest.err conftest.$ac_objext \ 11635 conftest$ac_exeext conftest.$ac_ext 11636 LIBS=$ac_check_lib_save_LIBS 11637 fi 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11639 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11640 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11641 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11642 else 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11644 $as_echo_n "checking for dld_link in -ldld... " >&6; } 11645 if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11646 $as_echo_n "(cached) " >&6 11647 else 11648 ac_check_lib_save_LIBS=$LIBS 11649 LIBS="-ldld $LIBS" 11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11651 /* end confdefs.h. */ 11652 11653 /* Override any GCC internal prototype to avoid an error. 11654 Use char because int might match the return type of a GCC 11655 builtin and then its argument prototype would still apply. */ 11656 #ifdef __cplusplus 11657 extern "C" 11658 #endif 11659 char dld_link (); 11660 int 11661 main () 11662 { 11663 return dld_link (); 11664 ; 11665 return 0; 11666 } 11667 _ACEOF 11668 if ac_fn_c_try_link "$LINENO"; then : 11669 ac_cv_lib_dld_dld_link=yes 11670 else 11671 ac_cv_lib_dld_dld_link=no 11672 fi 11673 rm -f core conftest.err conftest.$ac_objext \ 11674 conftest$ac_exeext conftest.$ac_ext 11675 LIBS=$ac_check_lib_save_LIBS 11676 fi 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11678 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11679 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11680 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11681 fi 11682 11683 11684 fi 11685 11686 11687 fi 11688 11689 11690 fi 11691 11692 11693 fi 11694 11695 11696 fi 11697 11698 ;; 11699 esac 11700 11701 if test "x$lt_cv_dlopen" != xno; then 11702 enable_dlopen=yes 11703 else 11704 enable_dlopen=no 11705 fi 11706 11707 case $lt_cv_dlopen in 11708 dlopen) 11709 save_CPPFLAGS="$CPPFLAGS" 11710 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11711 11712 save_LDFLAGS="$LDFLAGS" 11713 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11714 11715 save_LIBS="$LIBS" 11716 LIBS="$lt_cv_dlopen_libs $LIBS" 11717 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11719 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 11720 if test "${lt_cv_dlopen_self+set}" = set; then : 11721 $as_echo_n "(cached) " >&6 11722 else 11723 if test "$cross_compiling" = yes; then : 11724 lt_cv_dlopen_self=cross 11725 else 11726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11727 lt_status=$lt_dlunknown 11728 cat > conftest.$ac_ext <<_LT_EOF 11729 #line 11726 "configure" 11730 #include "confdefs.h" 11731 11732 #if HAVE_DLFCN_H 11733 #include <dlfcn.h> 11734 #endif 11735 11736 #include <stdio.h> 11737 11738 #ifdef RTLD_GLOBAL 11739 # define LT_DLGLOBAL RTLD_GLOBAL 11740 #else 11741 # ifdef DL_GLOBAL 11742 # define LT_DLGLOBAL DL_GLOBAL 11743 # else 11744 # define LT_DLGLOBAL 0 11745 # endif 11746 #endif 11747 11748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11749 find out it does not work in some platform. */ 11750 #ifndef LT_DLLAZY_OR_NOW 11751 # ifdef RTLD_LAZY 11752 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11753 # else 11754 # ifdef DL_LAZY 11755 # define LT_DLLAZY_OR_NOW DL_LAZY 11756 # else 11757 # ifdef RTLD_NOW 11758 # define LT_DLLAZY_OR_NOW RTLD_NOW 11759 # else 11760 # ifdef DL_NOW 11761 # define LT_DLLAZY_OR_NOW DL_NOW 11762 # else 11763 # define LT_DLLAZY_OR_NOW 0 11764 # endif 11765 # endif 11766 # endif 11767 # endif 11768 #endif 11769 11770 /* When -fvisbility=hidden is used, assume the code has been annotated 11771 correspondingly for the symbols needed. */ 11772 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11773 void fnord () __attribute__((visibility("default"))); 11774 #endif 11775 11776 void fnord () { int i=42; } 11777 int main () 11778 { 11779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11780 int status = $lt_dlunknown; 11781 11782 if (self) 11783 { 11784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11785 else 11786 { 11787 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11788 else puts (dlerror ()); 11789 } 11790 /* dlclose (self); */ 11791 } 11792 else 11793 puts (dlerror ()); 11794 11795 return status; 11796 } 11797 _LT_EOF 11798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11799 (eval $ac_link) 2>&5 11800 ac_status=$? 11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11802 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11803 (./conftest; exit; ) >&5 2>/dev/null 11804 lt_status=$? 11805 case x$lt_status in 11806 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11807 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11808 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11809 esac 11810 else : 11811 # compilation failed 11812 lt_cv_dlopen_self=no 11813 fi 11814 fi 11815 rm -fr conftest* 11816 11817 11818 fi 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11820 $as_echo "$lt_cv_dlopen_self" >&6; } 11821 11822 if test "x$lt_cv_dlopen_self" = xyes; then 11823 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11825 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11826 if test "${lt_cv_dlopen_self_static+set}" = set; then : 11827 $as_echo_n "(cached) " >&6 11828 else 11829 if test "$cross_compiling" = yes; then : 11830 lt_cv_dlopen_self_static=cross 11831 else 11832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11833 lt_status=$lt_dlunknown 11834 cat > conftest.$ac_ext <<_LT_EOF 11835 #line 11832 "configure" 11836 #include "confdefs.h" 11837 11838 #if HAVE_DLFCN_H 11839 #include <dlfcn.h> 11840 #endif 11841 11842 #include <stdio.h> 11843 11844 #ifdef RTLD_GLOBAL 11845 # define LT_DLGLOBAL RTLD_GLOBAL 11846 #else 11847 # ifdef DL_GLOBAL 11848 # define LT_DLGLOBAL DL_GLOBAL 11849 # else 11850 # define LT_DLGLOBAL 0 11851 # endif 11852 #endif 11853 11854 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11855 find out it does not work in some platform. */ 11856 #ifndef LT_DLLAZY_OR_NOW 11857 # ifdef RTLD_LAZY 11858 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11859 # else 11860 # ifdef DL_LAZY 11861 # define LT_DLLAZY_OR_NOW DL_LAZY 11862 # else 11863 # ifdef RTLD_NOW 11864 # define LT_DLLAZY_OR_NOW RTLD_NOW 11865 # else 11866 # ifdef DL_NOW 11867 # define LT_DLLAZY_OR_NOW DL_NOW 11868 # else 11869 # define LT_DLLAZY_OR_NOW 0 11870 # endif 11871 # endif 11872 # endif 11873 # endif 11874 #endif 11875 11876 /* When -fvisbility=hidden is used, assume the code has been annotated 11877 correspondingly for the symbols needed. */ 11878 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11879 void fnord () __attribute__((visibility("default"))); 11880 #endif 11881 11882 void fnord () { int i=42; } 11883 int main () 11884 { 11885 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11886 int status = $lt_dlunknown; 11887 11888 if (self) 11889 { 11890 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11891 else 11892 { 11893 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11894 else puts (dlerror ()); 11895 } 11896 /* dlclose (self); */ 11897 } 11898 else 11899 puts (dlerror ()); 11900 11901 return status; 11902 } 11903 _LT_EOF 11904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11905 (eval $ac_link) 2>&5 11906 ac_status=$? 11907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11908 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11909 (./conftest; exit; ) >&5 2>/dev/null 11910 lt_status=$? 11911 case x$lt_status in 11912 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11913 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11914 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11915 esac 11916 else : 11917 # compilation failed 11918 lt_cv_dlopen_self_static=no 11919 fi 11920 fi 11921 rm -fr conftest* 11922 11923 11924 fi 11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11926 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11927 fi 11928 11929 CPPFLAGS="$save_CPPFLAGS" 11930 LDFLAGS="$save_LDFLAGS" 11931 LIBS="$save_LIBS" 11932 ;; 11933 esac 11934 11935 case $lt_cv_dlopen_self in 11936 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11937 *) enable_dlopen_self=unknown ;; 11938 esac 11939 11940 case $lt_cv_dlopen_self_static in 11941 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11942 *) enable_dlopen_self_static=unknown ;; 11943 esac 11944 fi 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 striplib= 11963 old_striplib= 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11965 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11966 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11967 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11968 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11970 $as_echo "yes" >&6; } 11971 else 11972 # FIXME - insert some real tests, host_os isn't really good enough 11973 case $host_os in 11974 darwin*) 11975 if test -n "$STRIP" ; then 11976 striplib="$STRIP -x" 11977 old_striplib="$STRIP -S" 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11979 $as_echo "yes" >&6; } 11980 else 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11982 $as_echo "no" >&6; } 11983 fi 11984 ;; 11985 *) 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11987 $as_echo "no" >&6; } 11988 ;; 11989 esac 11990 fi 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 # Report which library types will actually be built 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12005 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12007 $as_echo "$can_build_shared" >&6; } 12008 12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12010 $as_echo_n "checking whether to build shared libraries... " >&6; } 12011 test "$can_build_shared" = "no" && enable_shared=no 12012 12013 # On AIX, shared libraries and static libraries use the same namespace, and 12014 # are all built from PIC. 12015 case $host_os in 12016 aix3*) 12017 test "$enable_shared" = yes && enable_static=no 12018 if test -n "$RANLIB"; then 12019 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12020 postinstall_cmds='$RANLIB $lib' 12021 fi 12022 ;; 12023 12024 aix[4-9]*) 12025 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12026 test "$enable_shared" = yes && enable_static=no 12027 fi 12028 ;; 12029 esac 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12031 $as_echo "$enable_shared" >&6; } 12032 12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12034 $as_echo_n "checking whether to build static libraries... " >&6; } 12035 # Make sure either enable_shared or enable_static is yes. 12036 test "$enable_shared" = yes || enable_static=yes 12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12038 $as_echo "$enable_static" >&6; } 12039 12040 12041 12042 12043 fi 12044 ac_ext=c 12045 ac_cpp='$CPP $CPPFLAGS' 12046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12048 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12049 12050 CC="$lt_save_CC" 12051 12052 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12053 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12054 (test "X$CXX" != "Xg++"))) ; then 12055 ac_ext=cpp 12056 ac_cpp='$CXXCPP $CPPFLAGS' 12057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12061 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12062 if test -z "$CXXCPP"; then 12063 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 12064 $as_echo_n "(cached) " >&6 12065 else 12066 # Double quotes because CXXCPP needs to be expanded 12067 for CXXCPP in "$CXX -E" "/lib/cpp" 12068 do 12069 ac_preproc_ok=false 12070 for ac_cxx_preproc_warn_flag in '' yes 12071 do 12072 # Use a header file that comes with gcc, so configuring glibc 12073 # with a fresh cross-compiler works. 12074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12075 # <limits.h> exists even on freestanding compilers. 12076 # On the NeXT, cc -E runs the code through the compiler's parser, 12077 # not just through cpp. "Syntax error" is here to catch this case. 12078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079 /* end confdefs.h. */ 12080 #ifdef __STDC__ 12081 # include <limits.h> 12082 #else 12083 # include <assert.h> 12084 #endif 12085 Syntax error 12086 _ACEOF 12087 if ac_fn_cxx_try_cpp "$LINENO"; then : 12088 12089 else 12090 # Broken: fails on valid input. 12091 continue 12092 fi 12093 rm -f conftest.err conftest.$ac_ext 12094 12095 # OK, works on sane cases. Now check whether nonexistent headers 12096 # can be detected and how. 12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098 /* end confdefs.h. */ 12099 #include <ac_nonexistent.h> 12100 _ACEOF 12101 if ac_fn_cxx_try_cpp "$LINENO"; then : 12102 # Broken: success on invalid input. 12103 continue 12104 else 12105 # Passes both tests. 12106 ac_preproc_ok=: 12107 break 12108 fi 12109 rm -f conftest.err conftest.$ac_ext 12110 12111 done 12112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12113 rm -f conftest.err conftest.$ac_ext 12114 if $ac_preproc_ok; then : 12115 break 12116 fi 12117 12118 done 12119 ac_cv_prog_CXXCPP=$CXXCPP 12120 12121 fi 12122 CXXCPP=$ac_cv_prog_CXXCPP 12123 else 12124 ac_cv_prog_CXXCPP=$CXXCPP 12125 fi 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12127 $as_echo "$CXXCPP" >&6; } 12128 ac_preproc_ok=false 12129 for ac_cxx_preproc_warn_flag in '' yes 12130 do 12131 # Use a header file that comes with gcc, so configuring glibc 12132 # with a fresh cross-compiler works. 12133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12134 # <limits.h> exists even on freestanding compilers. 12135 # On the NeXT, cc -E runs the code through the compiler's parser, 12136 # not just through cpp. "Syntax error" is here to catch this case. 12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12138 /* end confdefs.h. */ 12139 #ifdef __STDC__ 12140 # include <limits.h> 12141 #else 12142 # include <assert.h> 12143 #endif 12144 Syntax error 12145 _ACEOF 12146 if ac_fn_cxx_try_cpp "$LINENO"; then : 12147 12148 else 12149 # Broken: fails on valid input. 12150 continue 12151 fi 12152 rm -f conftest.err conftest.$ac_ext 12153 12154 # OK, works on sane cases. Now check whether nonexistent headers 12155 # can be detected and how. 12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12157 /* end confdefs.h. */ 12158 #include <ac_nonexistent.h> 12159 _ACEOF 12160 if ac_fn_cxx_try_cpp "$LINENO"; then : 12161 # Broken: success on invalid input. 12162 continue 12163 else 12164 # Passes both tests. 12165 ac_preproc_ok=: 12166 break 12167 fi 12168 rm -f conftest.err conftest.$ac_ext 12169 12170 done 12171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12172 rm -f conftest.err conftest.$ac_ext 12173 if $ac_preproc_ok; then : 12174 12175 else 12176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12178 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 12179 See \`config.log' for more details." "$LINENO" 5; } 12180 fi 12181 12182 ac_ext=c 12183 ac_cpp='$CPP $CPPFLAGS' 12184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12186 ac_compiler_gnu=$ac_cv_c_compiler_gnu 12187 12188 else 12189 _lt_caught_CXX_error=yes 12190 fi 12191 12192 ac_ext=cpp 12193 ac_cpp='$CXXCPP $CPPFLAGS' 12194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12197 12198 archive_cmds_need_lc_CXX=no 12199 allow_undefined_flag_CXX= 12200 always_export_symbols_CXX=no 12201 archive_expsym_cmds_CXX= 12202 compiler_needs_object_CXX=no 12203 export_dynamic_flag_spec_CXX= 12204 hardcode_direct_CXX=no 12205 hardcode_direct_absolute_CXX=no 12206 hardcode_libdir_flag_spec_CXX= 12207 hardcode_libdir_flag_spec_ld_CXX= 12208 hardcode_libdir_separator_CXX= 12209 hardcode_minus_L_CXX=no 12210 hardcode_shlibpath_var_CXX=unsupported 12211 hardcode_automatic_CXX=no 12212 inherit_rpath_CXX=no 12213 module_cmds_CXX= 12214 module_expsym_cmds_CXX= 12215 link_all_deplibs_CXX=unknown 12216 old_archive_cmds_CXX=$old_archive_cmds 12217 reload_flag_CXX=$reload_flag 12218 reload_cmds_CXX=$reload_cmds 12219 no_undefined_flag_CXX= 12220 whole_archive_flag_spec_CXX= 12221 enable_shared_with_static_runtimes_CXX=no 12222 12223 # Source file extension for C++ test sources. 12224 ac_ext=cpp 12225 12226 # Object file extension for compiled C++ test sources. 12227 objext=o 12228 objext_CXX=$objext 12229 12230 # No sense in running all these tests if we already determined that 12231 # the CXX compiler isn't working. Some variables (like enable_shared) 12232 # are currently assumed to apply to all compilers on this platform, 12233 # and will be corrupted by setting them based on a non-working compiler. 12234 if test "$_lt_caught_CXX_error" != yes; then 12235 # Code to be used in simple compile tests 12236 lt_simple_compile_test_code="int some_variable = 0;" 12237 12238 # Code to be used in simple link tests 12239 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12240 12241 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12242 12243 12244 12245 12246 12247 12248 # If no C compiler was specified, use CC. 12249 LTCC=${LTCC-"$CC"} 12250 12251 # If no C compiler flags were specified, use CFLAGS. 12252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12253 12254 # Allow CC to be a program name with arguments. 12255 compiler=$CC 12256 12257 12258 # save warnings/boilerplate of simple test code 12259 ac_outfile=conftest.$ac_objext 12260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12262 _lt_compiler_boilerplate=`cat conftest.err` 12263 $RM conftest* 12264 12265 ac_outfile=conftest.$ac_objext 12266 echo "$lt_simple_link_test_code" >conftest.$ac_ext 12267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12268 _lt_linker_boilerplate=`cat conftest.err` 12269 $RM -r conftest* 12270 12271 12272 # Allow CC to be a program name with arguments. 12273 lt_save_CC=$CC 12274 lt_save_LD=$LD 12275 lt_save_GCC=$GCC 12276 GCC=$GXX 12277 lt_save_with_gnu_ld=$with_gnu_ld 12278 lt_save_path_LD=$lt_cv_path_LD 12279 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12280 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12281 else 12282 $as_unset lt_cv_prog_gnu_ld 12283 fi 12284 if test -n "${lt_cv_path_LDCXX+set}"; then 12285 lt_cv_path_LD=$lt_cv_path_LDCXX 12286 else 12287 $as_unset lt_cv_path_LD 12288 fi 12289 test -z "${LDCXX+set}" || LD=$LDCXX 12290 CC=${CXX-"c++"} 12291 compiler=$CC 12292 compiler_CXX=$CC 12293 for cc_temp in $compiler""; do 12294 case $cc_temp in 12295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12297 \-*) ;; 12298 *) break;; 12299 esac 12300 done 12301 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12302 12303 12304 if test -n "$compiler"; then 12305 # We don't want -fno-exception when compiling C++ code, so set the 12306 # no_builtin_flag separately 12307 if test "$GXX" = yes; then 12308 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12309 else 12310 lt_prog_compiler_no_builtin_flag_CXX= 12311 fi 12312 12313 if test "$GXX" = yes; then 12314 # Set up default GNU C++ configuration 12315 12316 12317 12318 # Check whether --with-gnu-ld was given. 12319 if test "${with_gnu_ld+set}" = set; then : 12320 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12321 else 12322 with_gnu_ld=no 12323 fi 12324 12325 ac_prog=ld 12326 if test "$GCC" = yes; then 12327 # Check if gcc -print-prog-name=ld gives a path. 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12329 $as_echo_n "checking for ld used by $CC... " >&6; } 12330 case $host in 12331 *-*-mingw*) 12332 # gcc leaves a trailing carriage return which upsets mingw 12333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12334 *) 12335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12336 esac 12337 case $ac_prog in 12338 # Accept absolute paths. 12339 [\\/]* | ?:[\\/]*) 12340 re_direlt='/[^/][^/]*/\.\./' 12341 # Canonicalize the pathname of ld 12342 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12343 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12344 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12345 done 12346 test -z "$LD" && LD="$ac_prog" 12347 ;; 12348 "") 12349 # If it fails, then pretend we aren't using GCC. 12350 ac_prog=ld 12351 ;; 12352 *) 12353 # If it is relative, then search for the first ld in PATH. 12354 with_gnu_ld=unknown 12355 ;; 12356 esac 12357 elif test "$with_gnu_ld" = yes; then 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12359 $as_echo_n "checking for GNU ld... " >&6; } 12360 else 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12362 $as_echo_n "checking for non-GNU ld... " >&6; } 12363 fi 12364 if test "${lt_cv_path_LD+set}" = set; then : 12365 $as_echo_n "(cached) " >&6 12366 else 12367 if test -z "$LD"; then 12368 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12369 for ac_dir in $PATH; do 12370 IFS="$lt_save_ifs" 12371 test -z "$ac_dir" && ac_dir=. 12372 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12373 lt_cv_path_LD="$ac_dir/$ac_prog" 12374 # Check to see if the program is GNU ld. I'd rather use --version, 12375 # but apparently some variants of GNU ld only accept -v. 12376 # Break only if it was the GNU/non-GNU ld that we prefer. 12377 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12378 *GNU* | *'with BFD'*) 12379 test "$with_gnu_ld" != no && break 12380 ;; 12381 *) 12382 test "$with_gnu_ld" != yes && break 12383 ;; 12384 esac 12385 fi 12386 done 12387 IFS="$lt_save_ifs" 12388 else 12389 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12390 fi 12391 fi 12392 12393 LD="$lt_cv_path_LD" 12394 if test -n "$LD"; then 12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12396 $as_echo "$LD" >&6; } 12397 else 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12399 $as_echo "no" >&6; } 12400 fi 12401 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12403 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12404 if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12405 $as_echo_n "(cached) " >&6 12406 else 12407 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12408 case `$LD -v 2>&1 </dev/null` in 12409 *GNU* | *'with BFD'*) 12410 lt_cv_prog_gnu_ld=yes 12411 ;; 12412 *) 12413 lt_cv_prog_gnu_ld=no 12414 ;; 12415 esac 12416 fi 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12418 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 12419 with_gnu_ld=$lt_cv_prog_gnu_ld 12420 12421 12422 12423 12424 12425 12426 12427 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12428 # archiving commands below assume that GNU ld is being used. 12429 if test "$with_gnu_ld" = yes; then 12430 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12431 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' 12432 12433 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12434 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12435 12436 # If archive_cmds runs LD, not CC, wlarc should be empty 12437 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12438 # investigate it a little bit more. (MM) 12439 wlarc='${wl}' 12440 12441 # ancient GNU ld didn't support --whole-archive et. al. 12442 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12443 $GREP 'no-whole-archive' > /dev/null; then 12444 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12445 else 12446 whole_archive_flag_spec_CXX= 12447 fi 12448 else 12449 with_gnu_ld=no 12450 wlarc= 12451 12452 # A generic and very simple default shared library creation 12453 # command for GNU C++ for the case where it uses the native 12454 # linker, instead of GNU ld. If possible, this setting should 12455 # overridden to take advantage of the native linker features on 12456 # the platform it is being used on. 12457 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12458 fi 12459 12460 # Commands to make compiler produce verbose output that lists 12461 # what "hidden" libraries, object files and flags are used when 12462 # linking a shared library. 12463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12464 12465 else 12466 GXX=no 12467 with_gnu_ld=no 12468 wlarc= 12469 fi 12470 12471 # PORTME: fill in a description of your system's C++ link characteristics 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12473 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12474 ld_shlibs_CXX=yes 12475 case $host_os in 12476 aix3*) 12477 # FIXME: insert proper C++ library support 12478 ld_shlibs_CXX=no 12479 ;; 12480 aix[4-9]*) 12481 if test "$host_cpu" = ia64; then 12482 # On IA64, the linker does run time linking by default, so we don't 12483 # have to do anything special. 12484 aix_use_runtimelinking=no 12485 exp_sym_flag='-Bexport' 12486 no_entry_flag="" 12487 else 12488 aix_use_runtimelinking=no 12489 12490 # Test if we are trying to use run time linking or normal 12491 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12492 # need to do runtime linking. 12493 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12494 for ld_flag in $LDFLAGS; do 12495 case $ld_flag in 12496 *-brtl*) 12497 aix_use_runtimelinking=yes 12498 break 12499 ;; 12500 esac 12501 done 12502 ;; 12503 esac 12504 12505 exp_sym_flag='-bexport' 12506 no_entry_flag='-bnoentry' 12507 fi 12508 12509 # When large executables or shared objects are built, AIX ld can 12510 # have problems creating the table of contents. If linking a library 12511 # or program results in "error TOC overflow" add -mminimal-toc to 12512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12514 12515 archive_cmds_CXX='' 12516 hardcode_direct_CXX=yes 12517 hardcode_direct_absolute_CXX=yes 12518 hardcode_libdir_separator_CXX=':' 12519 link_all_deplibs_CXX=yes 12520 file_list_spec_CXX='${wl}-f,' 12521 12522 if test "$GXX" = yes; then 12523 case $host_os in aix4.[012]|aix4.[012].*) 12524 # We only want to do this on AIX 4.2 and lower, the check 12525 # below for broken collect2 doesn't work under 4.3+ 12526 collect2name=`${CC} -print-prog-name=collect2` 12527 if test -f "$collect2name" && 12528 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12529 then 12530 # We have reworked collect2 12531 : 12532 else 12533 # We have old collect2 12534 hardcode_direct_CXX=unsupported 12535 # It fails to find uninstalled libraries when the uninstalled 12536 # path is not listed in the libpath. Setting hardcode_minus_L 12537 # to unsupported forces relinking 12538 hardcode_minus_L_CXX=yes 12539 hardcode_libdir_flag_spec_CXX='-L$libdir' 12540 hardcode_libdir_separator_CXX= 12541 fi 12542 esac 12543 shared_flag='-shared' 12544 if test "$aix_use_runtimelinking" = yes; then 12545 shared_flag="$shared_flag "'${wl}-G' 12546 fi 12547 else 12548 # not using gcc 12549 if test "$host_cpu" = ia64; then 12550 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12551 # chokes on -Wl,-G. The following line is correct: 12552 shared_flag='-G' 12553 else 12554 if test "$aix_use_runtimelinking" = yes; then 12555 shared_flag='${wl}-G' 12556 else 12557 shared_flag='${wl}-bM:SRE' 12558 fi 12559 fi 12560 fi 12561 12562 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12563 # It seems that -bexpall does not export symbols beginning with 12564 # underscore (_), so it is better to generate a list of symbols to 12565 # export. 12566 always_export_symbols_CXX=yes 12567 if test "$aix_use_runtimelinking" = yes; then 12568 # Warning - without using the other runtime loading flags (-brtl), 12569 # -berok will link without error, but may produce a broken library. 12570 allow_undefined_flag_CXX='-berok' 12571 # Determine the default libpath from the value encoded in an empty 12572 # executable. 12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12574 /* end confdefs.h. */ 12575 12576 int 12577 main () 12578 { 12579 12580 ; 12581 return 0; 12582 } 12583 _ACEOF 12584 if ac_fn_cxx_try_link "$LINENO"; then : 12585 12586 lt_aix_libpath_sed=' 12587 /Import File Strings/,/^$/ { 12588 /^0/ { 12589 s/^0 *\(.*\)$/\1/ 12590 p 12591 } 12592 }' 12593 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12594 # Check for a 64-bit object if we didn't find anything. 12595 if test -z "$aix_libpath"; then 12596 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12597 fi 12598 fi 12599 rm -f core conftest.err conftest.$ac_objext \ 12600 conftest$ac_exeext conftest.$ac_ext 12601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12602 12603 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12604 12605 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" 12606 else 12607 if test "$host_cpu" = ia64; then 12608 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12609 allow_undefined_flag_CXX="-z nodefs" 12610 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" 12611 else 12612 # Determine the default libpath from the value encoded in an 12613 # empty executable. 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615 /* end confdefs.h. */ 12616 12617 int 12618 main () 12619 { 12620 12621 ; 12622 return 0; 12623 } 12624 _ACEOF 12625 if ac_fn_cxx_try_link "$LINENO"; then : 12626 12627 lt_aix_libpath_sed=' 12628 /Import File Strings/,/^$/ { 12629 /^0/ { 12630 s/^0 *\(.*\)$/\1/ 12631 p 12632 } 12633 }' 12634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12635 # Check for a 64-bit object if we didn't find anything. 12636 if test -z "$aix_libpath"; then 12637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12638 fi 12639 fi 12640 rm -f core conftest.err conftest.$ac_objext \ 12641 conftest$ac_exeext conftest.$ac_ext 12642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12643 12644 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12645 # Warning - without using the other run time loading flags, 12646 # -berok will link without error, but may produce a broken library. 12647 no_undefined_flag_CXX=' ${wl}-bernotok' 12648 allow_undefined_flag_CXX=' ${wl}-berok' 12649 if test "$with_gnu_ld" = yes; then 12650 # We only use this code for GNU lds that support --whole-archive. 12651 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12652 else 12653 # Exported symbols can be pulled into shared objects from archives 12654 whole_archive_flag_spec_CXX='$convenience' 12655 fi 12656 archive_cmds_need_lc_CXX=yes 12657 # This is similar to how AIX traditionally builds its shared 12658 # libraries. 12659 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' 12660 fi 12661 fi 12662 ;; 12663 12664 beos*) 12665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12666 allow_undefined_flag_CXX=unsupported 12667 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 12668 # support --undefined. This deserves some investigation. FIXME 12669 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12670 else 12671 ld_shlibs_CXX=no 12672 fi 12673 ;; 12674 12675 chorus*) 12676 case $cc_basename in 12677 *) 12678 # FIXME: insert proper C++ library support 12679 ld_shlibs_CXX=no 12680 ;; 12681 esac 12682 ;; 12683 12684 cygwin* | mingw* | pw32* | cegcc*) 12685 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12686 # as there is no search path for DLLs. 12687 hardcode_libdir_flag_spec_CXX='-L$libdir' 12688 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12689 allow_undefined_flag_CXX=unsupported 12690 always_export_symbols_CXX=no 12691 enable_shared_with_static_runtimes_CXX=yes 12692 12693 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12694 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' 12695 # If the export-symbols file already is a .def file (1st line 12696 # is EXPORTS), use it as is; otherwise, prepend... 12697 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12698 cp $export_symbols $output_objdir/$soname.def; 12699 else 12700 echo EXPORTS > $output_objdir/$soname.def; 12701 cat $export_symbols >> $output_objdir/$soname.def; 12702 fi~ 12703 $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' 12704 else 12705 ld_shlibs_CXX=no 12706 fi 12707 ;; 12708 darwin* | rhapsody*) 12709 12710 12711 archive_cmds_need_lc_CXX=no 12712 hardcode_direct_CXX=no 12713 hardcode_automatic_CXX=yes 12714 hardcode_shlibpath_var_CXX=unsupported 12715 if test "$lt_cv_ld_force_load" = "yes"; then 12716 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\"`' 12717 else 12718 whole_archive_flag_spec_CXX='' 12719 fi 12720 link_all_deplibs_CXX=yes 12721 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12722 case $cc_basename in 12723 ifort*) _lt_dar_can_shared=yes ;; 12724 *) _lt_dar_can_shared=$GCC ;; 12725 esac 12726 if test "$_lt_dar_can_shared" = "yes"; then 12727 output_verbose_link_cmd=func_echo_all 12728 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}" 12729 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12730 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}" 12731 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}" 12732 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12733 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}" 12734 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}" 12735 fi 12736 12737 else 12738 ld_shlibs_CXX=no 12739 fi 12740 12741 ;; 12742 12743 dgux*) 12744 case $cc_basename in 12745 ec++*) 12746 # FIXME: insert proper C++ library support 12747 ld_shlibs_CXX=no 12748 ;; 12749 ghcx*) 12750 # Green Hills C++ Compiler 12751 # FIXME: insert proper C++ library support 12752 ld_shlibs_CXX=no 12753 ;; 12754 *) 12755 # FIXME: insert proper C++ library support 12756 ld_shlibs_CXX=no 12757 ;; 12758 esac 12759 ;; 12760 12761 freebsd2.*) 12762 # C++ shared libraries reported to be fairly broken before 12763 # switch to ELF 12764 ld_shlibs_CXX=no 12765 ;; 12766 12767 freebsd-elf*) 12768 archive_cmds_need_lc_CXX=no 12769 ;; 12770 12771 freebsd* | dragonfly*) 12772 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12773 # conventions 12774 ld_shlibs_CXX=yes 12775 ;; 12776 12777 gnu*) 12778 ;; 12779 12780 haiku*) 12781 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12782 link_all_deplibs_CXX=yes 12783 ;; 12784 12785 hpux9*) 12786 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12787 hardcode_libdir_separator_CXX=: 12788 export_dynamic_flag_spec_CXX='${wl}-E' 12789 hardcode_direct_CXX=yes 12790 hardcode_minus_L_CXX=yes # Not in the search PATH, 12791 # but as the default 12792 # location of the library. 12793 12794 case $cc_basename in 12795 CC*) 12796 # FIXME: insert proper C++ library support 12797 ld_shlibs_CXX=no 12798 ;; 12799 aCC*) 12800 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' 12801 # Commands to make compiler produce verbose output that lists 12802 # what "hidden" libraries, object files and flags are used when 12803 # linking a shared library. 12804 # 12805 # There doesn't appear to be a way to prevent this compiler from 12806 # explicitly linking system object files so we need to strip them 12807 # from the output so that they don't get included in the library 12808 # dependencies. 12809 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"' 12810 ;; 12811 *) 12812 if test "$GXX" = yes; then 12813 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' 12814 else 12815 # FIXME: insert proper C++ library support 12816 ld_shlibs_CXX=no 12817 fi 12818 ;; 12819 esac 12820 ;; 12821 12822 hpux10*|hpux11*) 12823 if test $with_gnu_ld = no; then 12824 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12825 hardcode_libdir_separator_CXX=: 12826 12827 case $host_cpu in 12828 hppa*64*|ia64*) 12829 ;; 12830 *) 12831 export_dynamic_flag_spec_CXX='${wl}-E' 12832 ;; 12833 esac 12834 fi 12835 case $host_cpu in 12836 hppa*64*|ia64*) 12837 hardcode_direct_CXX=no 12838 hardcode_shlibpath_var_CXX=no 12839 ;; 12840 *) 12841 hardcode_direct_CXX=yes 12842 hardcode_direct_absolute_CXX=yes 12843 hardcode_minus_L_CXX=yes # Not in the search PATH, 12844 # but as the default 12845 # location of the library. 12846 ;; 12847 esac 12848 12849 case $cc_basename in 12850 CC*) 12851 # FIXME: insert proper C++ library support 12852 ld_shlibs_CXX=no 12853 ;; 12854 aCC*) 12855 case $host_cpu in 12856 hppa*64*) 12857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12858 ;; 12859 ia64*) 12860 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12861 ;; 12862 *) 12863 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12864 ;; 12865 esac 12866 # Commands to make compiler produce verbose output that lists 12867 # what "hidden" libraries, object files and flags are used when 12868 # linking a shared library. 12869 # 12870 # There doesn't appear to be a way to prevent this compiler from 12871 # explicitly linking system object files so we need to strip them 12872 # from the output so that they don't get included in the library 12873 # dependencies. 12874 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"' 12875 ;; 12876 *) 12877 if test "$GXX" = yes; then 12878 if test $with_gnu_ld = no; then 12879 case $host_cpu in 12880 hppa*64*) 12881 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12882 ;; 12883 ia64*) 12884 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12885 ;; 12886 *) 12887 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' 12888 ;; 12889 esac 12890 fi 12891 else 12892 # FIXME: insert proper C++ library support 12893 ld_shlibs_CXX=no 12894 fi 12895 ;; 12896 esac 12897 ;; 12898 12899 interix[3-9]*) 12900 hardcode_direct_CXX=no 12901 hardcode_shlibpath_var_CXX=no 12902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12903 export_dynamic_flag_spec_CXX='${wl}-E' 12904 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12905 # Instead, shared libraries are loaded at an image base (0x10000000 by 12906 # default) and relocated if they conflict, which is a slow very memory 12907 # consuming and fragmenting process. To avoid this, we pick a random, 12908 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12909 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12910 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' 12911 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' 12912 ;; 12913 irix5* | irix6*) 12914 case $cc_basename in 12915 CC*) 12916 # SGI C++ 12917 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' 12918 12919 # Archives containing C++ object files must be created using 12920 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12921 # necessary to make sure instantiated templates are included 12922 # in the archive. 12923 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12924 ;; 12925 *) 12926 if test "$GXX" = yes; then 12927 if test "$with_gnu_ld" = no; then 12928 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' 12929 else 12930 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' 12931 fi 12932 fi 12933 link_all_deplibs_CXX=yes 12934 ;; 12935 esac 12936 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12937 hardcode_libdir_separator_CXX=: 12938 inherit_rpath_CXX=yes 12939 ;; 12940 12941 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12942 case $cc_basename in 12943 KCC*) 12944 # Kuck and Associates, Inc. (KAI) C++ Compiler 12945 12946 # KCC will only create a shared library if the output file 12947 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12948 # to its proper name (with version) after linking. 12949 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' 12950 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' 12951 # Commands to make compiler produce verbose output that lists 12952 # what "hidden" libraries, object files and flags are used when 12953 # linking a shared library. 12954 # 12955 # There doesn't appear to be a way to prevent this compiler from 12956 # explicitly linking system object files so we need to strip them 12957 # from the output so that they don't get included in the library 12958 # dependencies. 12959 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"' 12960 12961 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12962 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12963 12964 # Archives containing C++ object files must be created using 12965 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12966 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12967 ;; 12968 icpc* | ecpc* ) 12969 # Intel C++ 12970 with_gnu_ld=yes 12971 # version 8.0 and above of icpc choke on multiply defined symbols 12972 # if we add $predep_objects and $postdep_objects, however 7.1 and 12973 # earlier do not add the objects themselves. 12974 case `$CC -V 2>&1` in 12975 *"Version 7."*) 12976 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12977 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' 12978 ;; 12979 *) # Version 8.0 or newer 12980 tmp_idyn= 12981 case $host_cpu in 12982 ia64*) tmp_idyn=' -i_dynamic';; 12983 esac 12984 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12985 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' 12986 ;; 12987 esac 12988 archive_cmds_need_lc_CXX=no 12989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12990 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12991 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12992 ;; 12993 pgCC* | pgcpp*) 12994 # Portland Group C++ compiler 12995 case `$CC -V` in 12996 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12997 prelink_cmds_CXX='tpldir=Template.dir~ 12998 rm -rf $tpldir~ 12999 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13000 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 13001 old_archive_cmds_CXX='tpldir=Template.dir~ 13002 rm -rf $tpldir~ 13003 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13004 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 13005 $RANLIB $oldlib' 13006 archive_cmds_CXX='tpldir=Template.dir~ 13007 rm -rf $tpldir~ 13008 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13009 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13010 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13011 rm -rf $tpldir~ 13012 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13013 $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' 13014 ;; 13015 *) # Version 6 and above use weak symbols 13016 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13017 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' 13018 ;; 13019 esac 13020 13021 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13022 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13023 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' 13024 ;; 13025 cxx*) 13026 # Compaq C++ 13027 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13028 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' 13029 13030 runpath_var=LD_RUN_PATH 13031 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13032 hardcode_libdir_separator_CXX=: 13033 13034 # Commands to make compiler produce verbose output that lists 13035 # what "hidden" libraries, object files and flags are used when 13036 # linking a shared library. 13037 # 13038 # There doesn't appear to be a way to prevent this compiler from 13039 # explicitly linking system object files so we need to strip them 13040 # from the output so that they don't get included in the library 13041 # dependencies. 13042 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' 13043 ;; 13044 xl* | mpixl* | bgxl*) 13045 # IBM XL 8.0 on PPC, with GNU ld 13046 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13048 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13049 if test "x$supports_anon_versioning" = xyes; then 13050 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13052 echo "local: *; };" >> $output_objdir/$libname.ver~ 13053 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13054 fi 13055 ;; 13056 *) 13057 case `$CC -V 2>&1 | sed 5q` in 13058 *Sun\ C*) 13059 # Sun C++ 5.9 13060 no_undefined_flag_CXX=' -zdefs' 13061 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13062 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' 13063 hardcode_libdir_flag_spec_CXX='-R$libdir' 13064 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' 13065 compiler_needs_object_CXX=yes 13066 13067 # Not sure whether something based on 13068 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13069 # would be better. 13070 output_verbose_link_cmd='func_echo_all' 13071 13072 # Archives containing C++ object files must be created using 13073 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13074 # necessary to make sure instantiated templates are included 13075 # in the archive. 13076 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13077 ;; 13078 esac 13079 ;; 13080 esac 13081 ;; 13082 13083 lynxos*) 13084 # FIXME: insert proper C++ library support 13085 ld_shlibs_CXX=no 13086 ;; 13087 13088 m88k*) 13089 # FIXME: insert proper C++ library support 13090 ld_shlibs_CXX=no 13091 ;; 13092 13093 mvs*) 13094 case $cc_basename in 13095 cxx*) 13096 # FIXME: insert proper C++ library support 13097 ld_shlibs_CXX=no 13098 ;; 13099 *) 13100 # FIXME: insert proper C++ library support 13101 ld_shlibs_CXX=no 13102 ;; 13103 esac 13104 ;; 13105 13106 netbsd*) 13107 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13108 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13109 wlarc= 13110 hardcode_libdir_flag_spec_CXX='-R$libdir' 13111 hardcode_direct_CXX=yes 13112 hardcode_shlibpath_var_CXX=no 13113 fi 13114 # Workaround some broken pre-1.5 toolchains 13115 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13116 ;; 13117 13118 *nto* | *qnx*) 13119 ld_shlibs_CXX=yes 13120 ;; 13121 13122 openbsd2*) 13123 # C++ shared libraries are fairly broken 13124 ld_shlibs_CXX=no 13125 ;; 13126 13127 openbsd*) 13128 if test -f /usr/libexec/ld.so; then 13129 hardcode_direct_CXX=yes 13130 hardcode_shlibpath_var_CXX=no 13131 hardcode_direct_absolute_CXX=yes 13132 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13133 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13134 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13135 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13136 export_dynamic_flag_spec_CXX='${wl}-E' 13137 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13138 fi 13139 output_verbose_link_cmd=func_echo_all 13140 else 13141 ld_shlibs_CXX=no 13142 fi 13143 ;; 13144 13145 osf3* | osf4* | osf5*) 13146 case $cc_basename in 13147 KCC*) 13148 # Kuck and Associates, Inc. (KAI) C++ Compiler 13149 13150 # KCC will only create a shared library if the output file 13151 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13152 # to its proper name (with version) after linking. 13153 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' 13154 13155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13156 hardcode_libdir_separator_CXX=: 13157 13158 # Archives containing C++ object files must be created using 13159 # the KAI C++ compiler. 13160 case $host in 13161 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13162 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13163 esac 13164 ;; 13165 RCC*) 13166 # Rational C++ 2.4.1 13167 # FIXME: insert proper C++ library support 13168 ld_shlibs_CXX=no 13169 ;; 13170 cxx*) 13171 case $host in 13172 osf3*) 13173 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13174 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' 13175 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13176 ;; 13177 *) 13178 allow_undefined_flag_CXX=' -expect_unresolved \*' 13179 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' 13180 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13181 echo "-hidden">> $lib.exp~ 13182 $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~ 13183 $RM $lib.exp' 13184 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13185 ;; 13186 esac 13187 13188 hardcode_libdir_separator_CXX=: 13189 13190 # Commands to make compiler produce verbose output that lists 13191 # what "hidden" libraries, object files and flags are used when 13192 # linking a shared library. 13193 # 13194 # There doesn't appear to be a way to prevent this compiler from 13195 # explicitly linking system object files so we need to strip them 13196 # from the output so that they don't get included in the library 13197 # dependencies. 13198 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"' 13199 ;; 13200 *) 13201 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13202 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13203 case $host in 13204 osf3*) 13205 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' 13206 ;; 13207 *) 13208 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' 13209 ;; 13210 esac 13211 13212 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13213 hardcode_libdir_separator_CXX=: 13214 13215 # Commands to make compiler produce verbose output that lists 13216 # what "hidden" libraries, object files and flags are used when 13217 # linking a shared library. 13218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13219 13220 else 13221 # FIXME: insert proper C++ library support 13222 ld_shlibs_CXX=no 13223 fi 13224 ;; 13225 esac 13226 ;; 13227 13228 psos*) 13229 # FIXME: insert proper C++ library support 13230 ld_shlibs_CXX=no 13231 ;; 13232 13233 sunos4*) 13234 case $cc_basename in 13235 CC*) 13236 # Sun C++ 4.x 13237 # FIXME: insert proper C++ library support 13238 ld_shlibs_CXX=no 13239 ;; 13240 lcc*) 13241 # Lucid 13242 # FIXME: insert proper C++ library support 13243 ld_shlibs_CXX=no 13244 ;; 13245 *) 13246 # FIXME: insert proper C++ library support 13247 ld_shlibs_CXX=no 13248 ;; 13249 esac 13250 ;; 13251 13252 solaris*) 13253 case $cc_basename in 13254 CC*) 13255 # Sun C++ 4.2, 5.x and Centerline C++ 13256 archive_cmds_need_lc_CXX=yes 13257 no_undefined_flag_CXX=' -zdefs' 13258 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13259 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13260 $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' 13261 13262 hardcode_libdir_flag_spec_CXX='-R$libdir' 13263 hardcode_shlibpath_var_CXX=no 13264 case $host_os in 13265 solaris2.[0-5] | solaris2.[0-5].*) ;; 13266 *) 13267 # The compiler driver will combine and reorder linker options, 13268 # but understands `-z linker_flag'. 13269 # Supported since Solaris 2.6 (maybe 2.5.1?) 13270 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13271 ;; 13272 esac 13273 link_all_deplibs_CXX=yes 13274 13275 output_verbose_link_cmd='func_echo_all' 13276 13277 # Archives containing C++ object files must be created using 13278 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13279 # necessary to make sure instantiated templates are included 13280 # in the archive. 13281 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13282 ;; 13283 gcx*) 13284 # Green Hills C++ Compiler 13285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13286 13287 # The C++ compiler must be used to create the archive. 13288 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13289 ;; 13290 *) 13291 # GNU C++ compiler with Solaris linker 13292 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13293 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13294 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13295 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13296 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13297 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13298 13299 # Commands to make compiler produce verbose output that lists 13300 # what "hidden" libraries, object files and flags are used when 13301 # linking a shared library. 13302 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13303 else 13304 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13305 # platform. 13306 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13307 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13308 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13309 13310 # Commands to make compiler produce verbose output that lists 13311 # what "hidden" libraries, object files and flags are used when 13312 # linking a shared library. 13313 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13314 fi 13315 13316 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13317 case $host_os in 13318 solaris2.[0-5] | solaris2.[0-5].*) ;; 13319 *) 13320 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13321 ;; 13322 esac 13323 fi 13324 ;; 13325 esac 13326 ;; 13327 13328 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13329 no_undefined_flag_CXX='${wl}-z,text' 13330 archive_cmds_need_lc_CXX=no 13331 hardcode_shlibpath_var_CXX=no 13332 runpath_var='LD_RUN_PATH' 13333 13334 case $cc_basename in 13335 CC*) 13336 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13337 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13338 ;; 13339 *) 13340 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13341 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13342 ;; 13343 esac 13344 ;; 13345 13346 sysv5* | sco3.2v5* | sco5v6*) 13347 # Note: We can NOT use -z defs as we might desire, because we do not 13348 # link with -lc, and that would cause any symbols used from libc to 13349 # always be unresolved, which means just about no library would 13350 # ever link correctly. If we're not using GNU ld we use -z text 13351 # though, which does catch some bad symbols but isn't as heavy-handed 13352 # as -z defs. 13353 no_undefined_flag_CXX='${wl}-z,text' 13354 allow_undefined_flag_CXX='${wl}-z,nodefs' 13355 archive_cmds_need_lc_CXX=no 13356 hardcode_shlibpath_var_CXX=no 13357 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13358 hardcode_libdir_separator_CXX=':' 13359 link_all_deplibs_CXX=yes 13360 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13361 runpath_var='LD_RUN_PATH' 13362 13363 case $cc_basename in 13364 CC*) 13365 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13366 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13367 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13368 '"$old_archive_cmds_CXX" 13369 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13370 '"$reload_cmds_CXX" 13371 ;; 13372 *) 13373 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13374 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13375 ;; 13376 esac 13377 ;; 13378 13379 tandem*) 13380 case $cc_basename in 13381 NCC*) 13382 # NonStop-UX NCC 3.20 13383 # FIXME: insert proper C++ library support 13384 ld_shlibs_CXX=no 13385 ;; 13386 *) 13387 # FIXME: insert proper C++ library support 13388 ld_shlibs_CXX=no 13389 ;; 13390 esac 13391 ;; 13392 13393 vxworks*) 13394 # FIXME: insert proper C++ library support 13395 ld_shlibs_CXX=no 13396 ;; 13397 13398 *) 13399 # FIXME: insert proper C++ library support 13400 ld_shlibs_CXX=no 13401 ;; 13402 esac 13403 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13405 $as_echo "$ld_shlibs_CXX" >&6; } 13406 test "$ld_shlibs_CXX" = no && can_build_shared=no 13407 13408 GCC_CXX="$GXX" 13409 LD_CXX="$LD" 13410 13411 ## CAVEAT EMPTOR: 13412 ## There is no encapsulation within the following macros, do not change 13413 ## the running order or otherwise move them around unless you know exactly 13414 ## what you are doing... 13415 # Dependencies to place before and after the object being linked: 13416 predep_objects_CXX= 13417 postdep_objects_CXX= 13418 predeps_CXX= 13419 postdeps_CXX= 13420 compiler_lib_search_path_CXX= 13421 13422 cat > conftest.$ac_ext <<_LT_EOF 13423 class Foo 13424 { 13425 public: 13426 Foo (void) { a = 0; } 13427 private: 13428 int a; 13429 }; 13430 _LT_EOF 13431 13432 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13433 (eval $ac_compile) 2>&5 13434 ac_status=$? 13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13436 test $ac_status = 0; }; then 13437 # Parse the compiler output and extract the necessary 13438 # objects, libraries and library flags. 13439 13440 # Sentinel used to keep track of whether or not we are before 13441 # the conftest object file. 13442 pre_test_object_deps_done=no 13443 13444 for p in `eval "$output_verbose_link_cmd"`; do 13445 case $p in 13446 13447 -L* | -R* | -l*) 13448 # Some compilers place space between "-{L,R}" and the path. 13449 # Remove the space. 13450 if test $p = "-L" || 13451 test $p = "-R"; then 13452 prev=$p 13453 continue 13454 else 13455 prev= 13456 fi 13457 13458 if test "$pre_test_object_deps_done" = no; then 13459 case $p in 13460 -L* | -R*) 13461 # Internal compiler library paths should come after those 13462 # provided the user. The postdeps already come after the 13463 # user supplied libs so there is no need to process them. 13464 if test -z "$compiler_lib_search_path_CXX"; then 13465 compiler_lib_search_path_CXX="${prev}${p}" 13466 else 13467 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13468 fi 13469 ;; 13470 # The "-l" case would never come before the object being 13471 # linked, so don't bother handling this case. 13472 esac 13473 else 13474 if test -z "$postdeps_CXX"; then 13475 postdeps_CXX="${prev}${p}" 13476 else 13477 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13478 fi 13479 fi 13480 ;; 13481 13482 *.$objext) 13483 # This assumes that the test object file only shows up 13484 # once in the compiler output. 13485 if test "$p" = "conftest.$objext"; then 13486 pre_test_object_deps_done=yes 13487 continue 13488 fi 13489 13490 if test "$pre_test_object_deps_done" = no; then 13491 if test -z "$predep_objects_CXX"; then 13492 predep_objects_CXX="$p" 13493 else 13494 predep_objects_CXX="$predep_objects_CXX $p" 13495 fi 13496 else 13497 if test -z "$postdep_objects_CXX"; then 13498 postdep_objects_CXX="$p" 13499 else 13500 postdep_objects_CXX="$postdep_objects_CXX $p" 13501 fi 13502 fi 13503 ;; 13504 13505 *) ;; # Ignore the rest. 13506 13507 esac 13508 done 13509 13510 # Clean up. 13511 rm -f a.out a.exe 13512 else 13513 echo "libtool.m4: error: problem compiling CXX test program" 13514 fi 13515 13516 $RM -f confest.$objext 13517 13518 # PORTME: override above test on systems where it is broken 13519 case $host_os in 13520 interix[3-9]*) 13521 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13522 # hack all around it, let's just trust "g++" to DTRT. 13523 predep_objects_CXX= 13524 postdep_objects_CXX= 13525 postdeps_CXX= 13526 ;; 13527 13528 linux*) 13529 case `$CC -V 2>&1 | sed 5q` in 13530 *Sun\ C*) 13531 # Sun C++ 5.9 13532 13533 # The more standards-conforming stlport4 library is 13534 # incompatible with the Cstd library. Avoid specifying 13535 # it if it's in CXXFLAGS. Ignore libCrun as 13536 # -library=stlport4 depends on it. 13537 case " $CXX $CXXFLAGS " in 13538 *" -library=stlport4 "*) 13539 solaris_use_stlport4=yes 13540 ;; 13541 esac 13542 13543 if test "$solaris_use_stlport4" != yes; then 13544 postdeps_CXX='-library=Cstd -library=Crun' 13545 fi 13546 ;; 13547 esac 13548 ;; 13549 13550 solaris*) 13551 case $cc_basename in 13552 CC*) 13553 # The more standards-conforming stlport4 library is 13554 # incompatible with the Cstd library. Avoid specifying 13555 # it if it's in CXXFLAGS. Ignore libCrun as 13556 # -library=stlport4 depends on it. 13557 case " $CXX $CXXFLAGS " in 13558 *" -library=stlport4 "*) 13559 solaris_use_stlport4=yes 13560 ;; 13561 esac 13562 13563 # Adding this requires a known-good setup of shared libraries for 13564 # Sun compiler versions before 5.6, else PIC objects from an old 13565 # archive will be linked into the output, leading to subtle bugs. 13566 if test "$solaris_use_stlport4" != yes; then 13567 postdeps_CXX='-library=Cstd -library=Crun' 13568 fi 13569 ;; 13570 esac 13571 ;; 13572 esac 13573 13574 13575 case " $postdeps_CXX " in 13576 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 13577 esac 13578 compiler_lib_search_dirs_CXX= 13579 if test -n "${compiler_lib_search_path_CXX}"; then 13580 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13581 fi 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 lt_prog_compiler_wl_CXX= 13614 lt_prog_compiler_pic_CXX= 13615 lt_prog_compiler_static_CXX= 13616 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13618 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13619 13620 # C++ specific cases for pic, static, wl, etc. 13621 if test "$GXX" = yes; then 13622 lt_prog_compiler_wl_CXX='-Wl,' 13623 lt_prog_compiler_static_CXX='-static' 13624 13625 case $host_os in 13626 aix*) 13627 # All AIX code is PIC. 13628 if test "$host_cpu" = ia64; then 13629 # AIX 5 now supports IA64 processor 13630 lt_prog_compiler_static_CXX='-Bstatic' 13631 fi 13632 lt_prog_compiler_pic_CXX='-fPIC' 13633 ;; 13634 13635 amigaos*) 13636 case $host_cpu in 13637 powerpc) 13638 # see comment about AmigaOS4 .so support 13639 lt_prog_compiler_pic_CXX='-fPIC' 13640 ;; 13641 m68k) 13642 # FIXME: we need at least 68020 code to build shared libraries, but 13643 # adding the `-m68020' flag to GCC prevents building anything better, 13644 # like `-m68040'. 13645 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13646 ;; 13647 esac 13648 ;; 13649 13650 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13651 # PIC is the default for these OSes. 13652 ;; 13653 mingw* | cygwin* | os2* | pw32* | cegcc*) 13654 # This hack is so that the source file can tell whether it is being 13655 # built for inclusion in a dll (and should export symbols for example). 13656 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13657 # (--disable-auto-import) libraries 13658 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13659 ;; 13660 darwin* | rhapsody*) 13661 # PIC is the default on this platform 13662 # Common symbols not allowed in MH_DYLIB files 13663 lt_prog_compiler_pic_CXX='-fno-common' 13664 ;; 13665 *djgpp*) 13666 # DJGPP does not support shared libraries at all 13667 lt_prog_compiler_pic_CXX= 13668 ;; 13669 haiku*) 13670 # PIC is the default for Haiku. 13671 # The "-static" flag exists, but is broken. 13672 lt_prog_compiler_static_CXX= 13673 ;; 13674 interix[3-9]*) 13675 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13676 # Instead, we relocate shared libraries at runtime. 13677 ;; 13678 sysv4*MP*) 13679 if test -d /usr/nec; then 13680 lt_prog_compiler_pic_CXX=-Kconform_pic 13681 fi 13682 ;; 13683 hpux*) 13684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13686 # sets the default TLS model and affects inlining. 13687 case $host_cpu in 13688 hppa*64*) 13689 ;; 13690 *) 13691 lt_prog_compiler_pic_CXX='-fPIC' 13692 ;; 13693 esac 13694 ;; 13695 *qnx* | *nto*) 13696 # QNX uses GNU C++, but need to define -shared option too, otherwise 13697 # it will coredump. 13698 lt_prog_compiler_pic_CXX='-fPIC -shared' 13699 ;; 13700 *) 13701 lt_prog_compiler_pic_CXX='-fPIC' 13702 ;; 13703 esac 13704 else 13705 case $host_os in 13706 aix[4-9]*) 13707 # All AIX code is PIC. 13708 if test "$host_cpu" = ia64; then 13709 # AIX 5 now supports IA64 processor 13710 lt_prog_compiler_static_CXX='-Bstatic' 13711 else 13712 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13713 fi 13714 ;; 13715 chorus*) 13716 case $cc_basename in 13717 cxch68*) 13718 # Green Hills C++ Compiler 13719 # _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" 13720 ;; 13721 esac 13722 ;; 13723 dgux*) 13724 case $cc_basename in 13725 ec++*) 13726 lt_prog_compiler_pic_CXX='-KPIC' 13727 ;; 13728 ghcx*) 13729 # Green Hills C++ Compiler 13730 lt_prog_compiler_pic_CXX='-pic' 13731 ;; 13732 *) 13733 ;; 13734 esac 13735 ;; 13736 freebsd* | dragonfly*) 13737 # FreeBSD uses GNU C++ 13738 ;; 13739 hpux9* | hpux10* | hpux11*) 13740 case $cc_basename in 13741 CC*) 13742 lt_prog_compiler_wl_CXX='-Wl,' 13743 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13744 if test "$host_cpu" != ia64; then 13745 lt_prog_compiler_pic_CXX='+Z' 13746 fi 13747 ;; 13748 aCC*) 13749 lt_prog_compiler_wl_CXX='-Wl,' 13750 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13751 case $host_cpu in 13752 hppa*64*|ia64*) 13753 # +Z the default 13754 ;; 13755 *) 13756 lt_prog_compiler_pic_CXX='+Z' 13757 ;; 13758 esac 13759 ;; 13760 *) 13761 ;; 13762 esac 13763 ;; 13764 interix*) 13765 # This is c89, which is MS Visual C++ (no shared libs) 13766 # Anyone wants to do a port? 13767 ;; 13768 irix5* | irix6* | nonstopux*) 13769 case $cc_basename in 13770 CC*) 13771 lt_prog_compiler_wl_CXX='-Wl,' 13772 lt_prog_compiler_static_CXX='-non_shared' 13773 # CC pic flag -KPIC is the default. 13774 ;; 13775 *) 13776 ;; 13777 esac 13778 ;; 13779 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13780 case $cc_basename in 13781 KCC*) 13782 # KAI C++ Compiler 13783 lt_prog_compiler_wl_CXX='--backend -Wl,' 13784 lt_prog_compiler_pic_CXX='-fPIC' 13785 ;; 13786 ecpc* ) 13787 # old Intel C++ for x86_64 which still supported -KPIC. 13788 lt_prog_compiler_wl_CXX='-Wl,' 13789 lt_prog_compiler_pic_CXX='-KPIC' 13790 lt_prog_compiler_static_CXX='-static' 13791 ;; 13792 icpc* ) 13793 # Intel C++, used to be incompatible with GCC. 13794 # ICC 10 doesn't accept -KPIC any more. 13795 lt_prog_compiler_wl_CXX='-Wl,' 13796 lt_prog_compiler_pic_CXX='-fPIC' 13797 lt_prog_compiler_static_CXX='-static' 13798 ;; 13799 pgCC* | pgcpp*) 13800 # Portland Group C++ compiler 13801 lt_prog_compiler_wl_CXX='-Wl,' 13802 lt_prog_compiler_pic_CXX='-fpic' 13803 lt_prog_compiler_static_CXX='-Bstatic' 13804 ;; 13805 cxx*) 13806 # Compaq C++ 13807 # Make sure the PIC flag is empty. It appears that all Alpha 13808 # Linux and Compaq Tru64 Unix objects are PIC. 13809 lt_prog_compiler_pic_CXX= 13810 lt_prog_compiler_static_CXX='-non_shared' 13811 ;; 13812 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13813 # IBM XL 8.0, 9.0 on PPC and BlueGene 13814 lt_prog_compiler_wl_CXX='-Wl,' 13815 lt_prog_compiler_pic_CXX='-qpic' 13816 lt_prog_compiler_static_CXX='-qstaticlink' 13817 ;; 13818 *) 13819 case `$CC -V 2>&1 | sed 5q` in 13820 *Sun\ C*) 13821 # Sun C++ 5.9 13822 lt_prog_compiler_pic_CXX='-KPIC' 13823 lt_prog_compiler_static_CXX='-Bstatic' 13824 lt_prog_compiler_wl_CXX='-Qoption ld ' 13825 ;; 13826 esac 13827 ;; 13828 esac 13829 ;; 13830 lynxos*) 13831 ;; 13832 m88k*) 13833 ;; 13834 mvs*) 13835 case $cc_basename in 13836 cxx*) 13837 lt_prog_compiler_pic_CXX='-W c,exportall' 13838 ;; 13839 *) 13840 ;; 13841 esac 13842 ;; 13843 netbsd*) 13844 ;; 13845 *qnx* | *nto*) 13846 # QNX uses GNU C++, but need to define -shared option too, otherwise 13847 # it will coredump. 13848 lt_prog_compiler_pic_CXX='-fPIC -shared' 13849 ;; 13850 osf3* | osf4* | osf5*) 13851 case $cc_basename in 13852 KCC*) 13853 lt_prog_compiler_wl_CXX='--backend -Wl,' 13854 ;; 13855 RCC*) 13856 # Rational C++ 2.4.1 13857 lt_prog_compiler_pic_CXX='-pic' 13858 ;; 13859 cxx*) 13860 # Digital/Compaq C++ 13861 lt_prog_compiler_wl_CXX='-Wl,' 13862 # Make sure the PIC flag is empty. It appears that all Alpha 13863 # Linux and Compaq Tru64 Unix objects are PIC. 13864 lt_prog_compiler_pic_CXX= 13865 lt_prog_compiler_static_CXX='-non_shared' 13866 ;; 13867 *) 13868 ;; 13869 esac 13870 ;; 13871 psos*) 13872 ;; 13873 solaris*) 13874 case $cc_basename in 13875 CC*) 13876 # Sun C++ 4.2, 5.x and Centerline C++ 13877 lt_prog_compiler_pic_CXX='-KPIC' 13878 lt_prog_compiler_static_CXX='-Bstatic' 13879 lt_prog_compiler_wl_CXX='-Qoption ld ' 13880 ;; 13881 gcx*) 13882 # Green Hills C++ Compiler 13883 lt_prog_compiler_pic_CXX='-PIC' 13884 ;; 13885 *) 13886 ;; 13887 esac 13888 ;; 13889 sunos4*) 13890 case $cc_basename in 13891 CC*) 13892 # Sun C++ 4.x 13893 lt_prog_compiler_pic_CXX='-pic' 13894 lt_prog_compiler_static_CXX='-Bstatic' 13895 ;; 13896 lcc*) 13897 # Lucid 13898 lt_prog_compiler_pic_CXX='-pic' 13899 ;; 13900 *) 13901 ;; 13902 esac 13903 ;; 13904 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13905 case $cc_basename in 13906 CC*) 13907 lt_prog_compiler_wl_CXX='-Wl,' 13908 lt_prog_compiler_pic_CXX='-KPIC' 13909 lt_prog_compiler_static_CXX='-Bstatic' 13910 ;; 13911 esac 13912 ;; 13913 tandem*) 13914 case $cc_basename in 13915 NCC*) 13916 # NonStop-UX NCC 3.20 13917 lt_prog_compiler_pic_CXX='-KPIC' 13918 ;; 13919 *) 13920 ;; 13921 esac 13922 ;; 13923 vxworks*) 13924 ;; 13925 *) 13926 lt_prog_compiler_can_build_shared_CXX=no 13927 ;; 13928 esac 13929 fi 13930 13931 case $host_os in 13932 # For platforms which do not support PIC, -DPIC is meaningless: 13933 *djgpp*) 13934 lt_prog_compiler_pic_CXX= 13935 ;; 13936 *) 13937 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13938 ;; 13939 esac 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13941 $as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13942 13943 13944 13945 # 13946 # Check to make sure the PIC flag actually works. 13947 # 13948 if test -n "$lt_prog_compiler_pic_CXX"; then 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13950 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13951 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13952 $as_echo_n "(cached) " >&6 13953 else 13954 lt_cv_prog_compiler_pic_works_CXX=no 13955 ac_outfile=conftest.$ac_objext 13956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13957 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13958 # Insert the option either (1) after the last *FLAGS variable, or 13959 # (2) before a word containing "conftest.", or (3) at the end. 13960 # Note that $ac_compile itself does not contain backslashes and begins 13961 # with a dollar sign (not a hyphen), so the echo should work correctly. 13962 # The option is referenced via a variable to avoid confusing sed. 13963 lt_compile=`echo "$ac_compile" | $SED \ 13964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13966 -e 's:$: $lt_compiler_flag:'` 13967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13968 (eval "$lt_compile" 2>conftest.err) 13969 ac_status=$? 13970 cat conftest.err >&5 13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13972 if (exit $ac_status) && test -s "$ac_outfile"; then 13973 # The compiler can only warn and ignore the option if not recognized 13974 # So say no if there are warnings other than the usual output. 13975 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13978 lt_cv_prog_compiler_pic_works_CXX=yes 13979 fi 13980 fi 13981 $RM conftest* 13982 13983 fi 13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13985 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13986 13987 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13988 case $lt_prog_compiler_pic_CXX in 13989 "" | " "*) ;; 13990 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13991 esac 13992 else 13993 lt_prog_compiler_pic_CXX= 13994 lt_prog_compiler_can_build_shared_CXX=no 13995 fi 13996 13997 fi 13998 13999 14000 14001 # 14002 # Check to make sure the static flag actually works. 14003 # 14004 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14006 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14007 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 14008 $as_echo_n "(cached) " >&6 14009 else 14010 lt_cv_prog_compiler_static_works_CXX=no 14011 save_LDFLAGS="$LDFLAGS" 14012 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14013 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14015 # The linker can only warn and ignore the option if not recognized 14016 # So say no if there are warnings 14017 if test -s conftest.err; then 14018 # Append any errors to the config.log. 14019 cat conftest.err 1>&5 14020 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14022 if diff conftest.exp conftest.er2 >/dev/null; then 14023 lt_cv_prog_compiler_static_works_CXX=yes 14024 fi 14025 else 14026 lt_cv_prog_compiler_static_works_CXX=yes 14027 fi 14028 fi 14029 $RM -r conftest* 14030 LDFLAGS="$save_LDFLAGS" 14031 14032 fi 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14034 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14035 14036 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14037 : 14038 else 14039 lt_prog_compiler_static_CXX= 14040 fi 14041 14042 14043 14044 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14046 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14047 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14048 $as_echo_n "(cached) " >&6 14049 else 14050 lt_cv_prog_compiler_c_o_CXX=no 14051 $RM -r conftest 2>/dev/null 14052 mkdir conftest 14053 cd conftest 14054 mkdir out 14055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14056 14057 lt_compiler_flag="-o out/conftest2.$ac_objext" 14058 # Insert the option either (1) after the last *FLAGS variable, or 14059 # (2) before a word containing "conftest.", or (3) at the end. 14060 # Note that $ac_compile itself does not contain backslashes and begins 14061 # with a dollar sign (not a hyphen), so the echo should work correctly. 14062 lt_compile=`echo "$ac_compile" | $SED \ 14063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14065 -e 's:$: $lt_compiler_flag:'` 14066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14067 (eval "$lt_compile" 2>out/conftest.err) 14068 ac_status=$? 14069 cat out/conftest.err >&5 14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14071 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14072 then 14073 # The compiler can only warn and ignore the option if not recognized 14074 # So say no if there are warnings 14075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14078 lt_cv_prog_compiler_c_o_CXX=yes 14079 fi 14080 fi 14081 chmod u+w . 2>&5 14082 $RM conftest* 14083 # SGI C++ compiler will create directory out/ii_files/ for 14084 # template instantiation 14085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14086 $RM out/* && rmdir out 14087 cd .. 14088 $RM -r conftest 14089 $RM conftest* 14090 14091 fi 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14093 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14094 14095 14096 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14098 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14099 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14100 $as_echo_n "(cached) " >&6 14101 else 14102 lt_cv_prog_compiler_c_o_CXX=no 14103 $RM -r conftest 2>/dev/null 14104 mkdir conftest 14105 cd conftest 14106 mkdir out 14107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14108 14109 lt_compiler_flag="-o out/conftest2.$ac_objext" 14110 # Insert the option either (1) after the last *FLAGS variable, or 14111 # (2) before a word containing "conftest.", or (3) at the end. 14112 # Note that $ac_compile itself does not contain backslashes and begins 14113 # with a dollar sign (not a hyphen), so the echo should work correctly. 14114 lt_compile=`echo "$ac_compile" | $SED \ 14115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14117 -e 's:$: $lt_compiler_flag:'` 14118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14119 (eval "$lt_compile" 2>out/conftest.err) 14120 ac_status=$? 14121 cat out/conftest.err >&5 14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14123 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14124 then 14125 # The compiler can only warn and ignore the option if not recognized 14126 # So say no if there are warnings 14127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14130 lt_cv_prog_compiler_c_o_CXX=yes 14131 fi 14132 fi 14133 chmod u+w . 2>&5 14134 $RM conftest* 14135 # SGI C++ compiler will create directory out/ii_files/ for 14136 # template instantiation 14137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14138 $RM out/* && rmdir out 14139 cd .. 14140 $RM -r conftest 14141 $RM conftest* 14142 14143 fi 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14145 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14146 14147 14148 14149 14150 hard_links="nottested" 14151 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14152 # do not overwrite the value of need_locks provided by the user 14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14154 $as_echo_n "checking if we can lock with hard links... " >&6; } 14155 hard_links=yes 14156 $RM conftest* 14157 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14158 touch conftest.a 14159 ln conftest.a conftest.b 2>&5 || hard_links=no 14160 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14162 $as_echo "$hard_links" >&6; } 14163 if test "$hard_links" = no; then 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14165 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14166 need_locks=warn 14167 fi 14168 else 14169 need_locks=no 14170 fi 14171 14172 14173 14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14175 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14176 14177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14178 case $host_os in 14179 aix[4-9]*) 14180 # If we're using GNU nm, then we don't want the "-C" option. 14181 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14182 # Also, AIX nm treats weak defined symbols like other global defined 14183 # symbols, whereas GNU nm marks them as "W". 14184 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14185 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' 14186 else 14187 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 14188 fi 14189 ;; 14190 pw32*) 14191 export_symbols_cmds_CXX="$ltdll_cmds" 14192 ;; 14193 cygwin* | mingw* | cegcc*) 14194 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' 14195 ;; 14196 *) 14197 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14198 ;; 14199 esac 14200 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14201 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14203 $as_echo "$ld_shlibs_CXX" >&6; } 14204 test "$ld_shlibs_CXX" = no && can_build_shared=no 14205 14206 with_gnu_ld_CXX=$with_gnu_ld 14207 14208 14209 14210 14211 14212 14213 # 14214 # Do we need to explicitly link libc? 14215 # 14216 case "x$archive_cmds_need_lc_CXX" in 14217 x|xyes) 14218 # Assume -lc should be added 14219 archive_cmds_need_lc_CXX=yes 14220 14221 if test "$enable_shared" = yes && test "$GCC" = yes; then 14222 case $archive_cmds_CXX in 14223 *'~'*) 14224 # FIXME: we may have to deal with multi-command sequences. 14225 ;; 14226 '$CC '*) 14227 # Test whether the compiler implicitly links with -lc since on some 14228 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14229 # to ld, don't add -lc before -lgcc. 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14231 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14232 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 14233 $as_echo_n "(cached) " >&6 14234 else 14235 $RM conftest* 14236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14237 14238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14239 (eval $ac_compile) 2>&5 14240 ac_status=$? 14241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14242 test $ac_status = 0; } 2>conftest.err; then 14243 soname=conftest 14244 lib=conftest 14245 libobjs=conftest.$ac_objext 14246 deplibs= 14247 wl=$lt_prog_compiler_wl_CXX 14248 pic_flag=$lt_prog_compiler_pic_CXX 14249 compiler_flags=-v 14250 linker_flags=-v 14251 verstring= 14252 output_objdir=. 14253 libname=conftest 14254 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14255 allow_undefined_flag_CXX= 14256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14257 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14258 ac_status=$? 14259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14260 test $ac_status = 0; } 14261 then 14262 lt_cv_archive_cmds_need_lc_CXX=no 14263 else 14264 lt_cv_archive_cmds_need_lc_CXX=yes 14265 fi 14266 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14267 else 14268 cat conftest.err 1>&5 14269 fi 14270 $RM conftest* 14271 14272 fi 14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14274 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14275 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14276 ;; 14277 esac 14278 fi 14279 ;; 14280 esac 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14346 $as_echo_n "checking dynamic linker characteristics... " >&6; } 14347 14348 library_names_spec= 14349 libname_spec='lib$name' 14350 soname_spec= 14351 shrext_cmds=".so" 14352 postinstall_cmds= 14353 postuninstall_cmds= 14354 finish_cmds= 14355 finish_eval= 14356 shlibpath_var= 14357 shlibpath_overrides_runpath=unknown 14358 version_type=none 14359 dynamic_linker="$host_os ld.so" 14360 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14361 need_lib_prefix=unknown 14362 hardcode_into_libs=no 14363 14364 # when you set need_version to no, make sure it does not cause -set_version 14365 # flags to be left without arguments 14366 need_version=unknown 14367 14368 case $host_os in 14369 aix3*) 14370 version_type=linux 14371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14372 shlibpath_var=LIBPATH 14373 14374 # AIX 3 has no versioning support, so we append a major version to the name. 14375 soname_spec='${libname}${release}${shared_ext}$major' 14376 ;; 14377 14378 aix[4-9]*) 14379 version_type=linux 14380 need_lib_prefix=no 14381 need_version=no 14382 hardcode_into_libs=yes 14383 if test "$host_cpu" = ia64; then 14384 # AIX 5 supports IA64 14385 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14386 shlibpath_var=LD_LIBRARY_PATH 14387 else 14388 # With GCC up to 2.95.x, collect2 would create an import file 14389 # for dependence libraries. The import file would start with 14390 # the line `#! .'. This would cause the generated library to 14391 # depend on `.', always an invalid library. This was fixed in 14392 # development snapshots of GCC prior to 3.0. 14393 case $host_os in 14394 aix4 | aix4.[01] | aix4.[01].*) 14395 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14396 echo ' yes ' 14397 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14398 : 14399 else 14400 can_build_shared=no 14401 fi 14402 ;; 14403 esac 14404 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14405 # soname into executable. Probably we can add versioning support to 14406 # collect2, so additional links can be useful in future. 14407 if test "$aix_use_runtimelinking" = yes; then 14408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14409 # instead of lib<name>.a to let people know that these are not 14410 # typical AIX shared libraries. 14411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14412 else 14413 # We preserve .a as extension for shared libraries through AIX4.2 14414 # and later when we are not doing run time linking. 14415 library_names_spec='${libname}${release}.a $libname.a' 14416 soname_spec='${libname}${release}${shared_ext}$major' 14417 fi 14418 shlibpath_var=LIBPATH 14419 fi 14420 ;; 14421 14422 amigaos*) 14423 case $host_cpu in 14424 powerpc) 14425 # Since July 2007 AmigaOS4 officially supports .so libraries. 14426 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14428 ;; 14429 m68k) 14430 library_names_spec='$libname.ixlibrary $libname.a' 14431 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14432 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' 14433 ;; 14434 esac 14435 ;; 14436 14437 beos*) 14438 library_names_spec='${libname}${shared_ext}' 14439 dynamic_linker="$host_os ld.so" 14440 shlibpath_var=LIBRARY_PATH 14441 ;; 14442 14443 bsdi[45]*) 14444 version_type=linux 14445 need_version=no 14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14447 soname_spec='${libname}${release}${shared_ext}$major' 14448 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14449 shlibpath_var=LD_LIBRARY_PATH 14450 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14451 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14452 # the default ld.so.conf also contains /usr/contrib/lib and 14453 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14454 # libtool to hard-code these into programs 14455 ;; 14456 14457 cygwin* | mingw* | pw32* | cegcc*) 14458 version_type=windows 14459 shrext_cmds=".dll" 14460 need_version=no 14461 need_lib_prefix=no 14462 14463 case $GCC,$host_os in 14464 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14465 library_names_spec='$libname.dll.a' 14466 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14467 postinstall_cmds='base_file=`basename \${file}`~ 14468 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14469 dldir=$destdir/`dirname \$dlpath`~ 14470 test -d \$dldir || mkdir -p \$dldir~ 14471 $install_prog $dir/$dlname \$dldir/$dlname~ 14472 chmod a+x \$dldir/$dlname~ 14473 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14474 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14475 fi' 14476 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14477 dlpath=$dir/\$dldll~ 14478 $RM \$dlpath' 14479 shlibpath_overrides_runpath=yes 14480 14481 case $host_os in 14482 cygwin*) 14483 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14484 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14485 14486 ;; 14487 mingw* | cegcc*) 14488 # MinGW DLLs use traditional 'lib' prefix 14489 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14490 ;; 14491 pw32*) 14492 # pw32 DLLs use 'pw' prefix rather than 'lib' 14493 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14494 ;; 14495 esac 14496 ;; 14497 14498 *) 14499 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14500 ;; 14501 esac 14502 dynamic_linker='Win32 ld.exe' 14503 # FIXME: first we should search . and the directory the executable is in 14504 shlibpath_var=PATH 14505 ;; 14506 14507 darwin* | rhapsody*) 14508 dynamic_linker="$host_os dyld" 14509 version_type=darwin 14510 need_lib_prefix=no 14511 need_version=no 14512 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14513 soname_spec='${libname}${release}${major}$shared_ext' 14514 shlibpath_overrides_runpath=yes 14515 shlibpath_var=DYLD_LIBRARY_PATH 14516 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14517 14518 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14519 ;; 14520 14521 dgux*) 14522 version_type=linux 14523 need_lib_prefix=no 14524 need_version=no 14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14526 soname_spec='${libname}${release}${shared_ext}$major' 14527 shlibpath_var=LD_LIBRARY_PATH 14528 ;; 14529 14530 freebsd* | dragonfly*) 14531 # DragonFly does not have aout. When/if they implement a new 14532 # versioning mechanism, adjust this. 14533 if test -x /usr/bin/objformat; then 14534 objformat=`/usr/bin/objformat` 14535 else 14536 case $host_os in 14537 freebsd[23].*) objformat=aout ;; 14538 *) objformat=elf ;; 14539 esac 14540 fi 14541 version_type=freebsd-$objformat 14542 case $version_type in 14543 freebsd-elf*) 14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14545 need_version=no 14546 need_lib_prefix=no 14547 ;; 14548 freebsd-*) 14549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14550 need_version=yes 14551 ;; 14552 esac 14553 shlibpath_var=LD_LIBRARY_PATH 14554 case $host_os in 14555 freebsd2.*) 14556 shlibpath_overrides_runpath=yes 14557 ;; 14558 freebsd3.[01]* | freebsdelf3.[01]*) 14559 shlibpath_overrides_runpath=yes 14560 hardcode_into_libs=yes 14561 ;; 14562 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14563 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14564 shlibpath_overrides_runpath=no 14565 hardcode_into_libs=yes 14566 ;; 14567 *) # from 4.6 on, and DragonFly 14568 shlibpath_overrides_runpath=yes 14569 hardcode_into_libs=yes 14570 ;; 14571 esac 14572 ;; 14573 14574 gnu*) 14575 version_type=linux 14576 need_lib_prefix=no 14577 need_version=no 14578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14579 soname_spec='${libname}${release}${shared_ext}$major' 14580 shlibpath_var=LD_LIBRARY_PATH 14581 hardcode_into_libs=yes 14582 ;; 14583 14584 haiku*) 14585 version_type=linux 14586 need_lib_prefix=no 14587 need_version=no 14588 dynamic_linker="$host_os runtime_loader" 14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14590 soname_spec='${libname}${release}${shared_ext}$major' 14591 shlibpath_var=LIBRARY_PATH 14592 shlibpath_overrides_runpath=yes 14593 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 14594 hardcode_into_libs=yes 14595 ;; 14596 14597 hpux9* | hpux10* | hpux11*) 14598 # Give a soname corresponding to the major version so that dld.sl refuses to 14599 # link against other versions. 14600 version_type=sunos 14601 need_lib_prefix=no 14602 need_version=no 14603 case $host_cpu in 14604 ia64*) 14605 shrext_cmds='.so' 14606 hardcode_into_libs=yes 14607 dynamic_linker="$host_os dld.so" 14608 shlibpath_var=LD_LIBRARY_PATH 14609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14611 soname_spec='${libname}${release}${shared_ext}$major' 14612 if test "X$HPUX_IA64_MODE" = X32; then 14613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14614 else 14615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14616 fi 14617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14618 ;; 14619 hppa*64*) 14620 shrext_cmds='.sl' 14621 hardcode_into_libs=yes 14622 dynamic_linker="$host_os dld.sl" 14623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14626 soname_spec='${libname}${release}${shared_ext}$major' 14627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14629 ;; 14630 *) 14631 shrext_cmds='.sl' 14632 dynamic_linker="$host_os dld.sl" 14633 shlibpath_var=SHLIB_PATH 14634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14636 soname_spec='${libname}${release}${shared_ext}$major' 14637 ;; 14638 esac 14639 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14640 postinstall_cmds='chmod 555 $lib' 14641 # or fails outright, so override atomically: 14642 install_override_mode=555 14643 ;; 14644 14645 interix[3-9]*) 14646 version_type=linux 14647 need_lib_prefix=no 14648 need_version=no 14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14650 soname_spec='${libname}${release}${shared_ext}$major' 14651 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14652 shlibpath_var=LD_LIBRARY_PATH 14653 shlibpath_overrides_runpath=no 14654 hardcode_into_libs=yes 14655 ;; 14656 14657 irix5* | irix6* | nonstopux*) 14658 case $host_os in 14659 nonstopux*) version_type=nonstopux ;; 14660 *) 14661 if test "$lt_cv_prog_gnu_ld" = yes; then 14662 version_type=linux 14663 else 14664 version_type=irix 14665 fi ;; 14666 esac 14667 need_lib_prefix=no 14668 need_version=no 14669 soname_spec='${libname}${release}${shared_ext}$major' 14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14671 case $host_os in 14672 irix5* | nonstopux*) 14673 libsuff= shlibsuff= 14674 ;; 14675 *) 14676 case $LD in # libtool.m4 will add one of these switches to LD 14677 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14678 libsuff= shlibsuff= libmagic=32-bit;; 14679 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14680 libsuff=32 shlibsuff=N32 libmagic=N32;; 14681 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14682 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14683 *) libsuff= shlibsuff= libmagic=never-match;; 14684 esac 14685 ;; 14686 esac 14687 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14688 shlibpath_overrides_runpath=no 14689 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14690 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14691 hardcode_into_libs=yes 14692 ;; 14693 14694 # No shared lib support for Linux oldld, aout, or coff. 14695 linux*oldld* | linux*aout* | linux*coff*) 14696 dynamic_linker=no 14697 ;; 14698 14699 # This must be Linux ELF. 14700 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14701 version_type=linux 14702 need_lib_prefix=no 14703 need_version=no 14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14705 soname_spec='${libname}${release}${shared_ext}$major' 14706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14707 shlibpath_var=LD_LIBRARY_PATH 14708 shlibpath_overrides_runpath=no 14709 14710 # Some binutils ld are patched to set DT_RUNPATH 14711 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 14712 $as_echo_n "(cached) " >&6 14713 else 14714 lt_cv_shlibpath_overrides_runpath=no 14715 save_LDFLAGS=$LDFLAGS 14716 save_libdir=$libdir 14717 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14718 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14720 /* end confdefs.h. */ 14721 14722 int 14723 main () 14724 { 14725 14726 ; 14727 return 0; 14728 } 14729 _ACEOF 14730 if ac_fn_cxx_try_link "$LINENO"; then : 14731 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14732 lt_cv_shlibpath_overrides_runpath=yes 14733 fi 14734 fi 14735 rm -f core conftest.err conftest.$ac_objext \ 14736 conftest$ac_exeext conftest.$ac_ext 14737 LDFLAGS=$save_LDFLAGS 14738 libdir=$save_libdir 14739 14740 fi 14741 14742 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14743 14744 # This implies no fast_install, which is unacceptable. 14745 # Some rework will be needed to allow for fast_install 14746 # before this can be enabled. 14747 hardcode_into_libs=yes 14748 14749 # Append ld.so.conf contents to the search path 14750 if test -f /etc/ld.so.conf; then 14751 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' ' '` 14752 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14753 fi 14754 14755 # We used to test for /lib/ld.so.1 and disable shared libraries on 14756 # powerpc, because MkLinux only supported shared libraries with the 14757 # GNU dynamic linker. Since this was broken with cross compilers, 14758 # most powerpc-linux boxes support dynamic linking these days and 14759 # people can always --disable-shared, the test was removed, and we 14760 # assume the GNU/Linux dynamic linker is in use. 14761 dynamic_linker='GNU/Linux ld.so' 14762 ;; 14763 14764 netbsd*) 14765 version_type=sunos 14766 need_lib_prefix=no 14767 need_version=no 14768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14771 dynamic_linker='NetBSD (a.out) ld.so' 14772 else 14773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14774 soname_spec='${libname}${release}${shared_ext}$major' 14775 dynamic_linker='NetBSD ld.elf_so' 14776 fi 14777 shlibpath_var=LD_LIBRARY_PATH 14778 shlibpath_overrides_runpath=yes 14779 hardcode_into_libs=yes 14780 ;; 14781 14782 newsos6) 14783 version_type=linux 14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14785 shlibpath_var=LD_LIBRARY_PATH 14786 shlibpath_overrides_runpath=yes 14787 ;; 14788 14789 *nto* | *qnx*) 14790 version_type=qnx 14791 need_lib_prefix=no 14792 need_version=no 14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14794 soname_spec='${libname}${release}${shared_ext}$major' 14795 shlibpath_var=LD_LIBRARY_PATH 14796 shlibpath_overrides_runpath=no 14797 hardcode_into_libs=yes 14798 dynamic_linker='ldqnx.so' 14799 ;; 14800 14801 openbsd*) 14802 version_type=sunos 14803 sys_lib_dlsearch_path_spec="/usr/lib" 14804 need_lib_prefix=no 14805 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14806 case $host_os in 14807 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14808 *) need_version=no ;; 14809 esac 14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14812 shlibpath_var=LD_LIBRARY_PATH 14813 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14814 case $host_os in 14815 openbsd2.[89] | openbsd2.[89].*) 14816 shlibpath_overrides_runpath=no 14817 ;; 14818 *) 14819 shlibpath_overrides_runpath=yes 14820 ;; 14821 esac 14822 else 14823 shlibpath_overrides_runpath=yes 14824 fi 14825 ;; 14826 14827 os2*) 14828 libname_spec='$name' 14829 shrext_cmds=".dll" 14830 need_lib_prefix=no 14831 library_names_spec='$libname${shared_ext} $libname.a' 14832 dynamic_linker='OS/2 ld.exe' 14833 shlibpath_var=LIBPATH 14834 ;; 14835 14836 osf3* | osf4* | osf5*) 14837 version_type=osf 14838 need_lib_prefix=no 14839 need_version=no 14840 soname_spec='${libname}${release}${shared_ext}$major' 14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14842 shlibpath_var=LD_LIBRARY_PATH 14843 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14844 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14845 ;; 14846 14847 rdos*) 14848 dynamic_linker=no 14849 ;; 14850 14851 solaris*) 14852 version_type=linux 14853 need_lib_prefix=no 14854 need_version=no 14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14856 soname_spec='${libname}${release}${shared_ext}$major' 14857 shlibpath_var=LD_LIBRARY_PATH 14858 shlibpath_overrides_runpath=yes 14859 hardcode_into_libs=yes 14860 # ldd complains unless libraries are executable 14861 postinstall_cmds='chmod +x $lib' 14862 ;; 14863 14864 sunos4*) 14865 version_type=sunos 14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14868 shlibpath_var=LD_LIBRARY_PATH 14869 shlibpath_overrides_runpath=yes 14870 if test "$with_gnu_ld" = yes; then 14871 need_lib_prefix=no 14872 fi 14873 need_version=yes 14874 ;; 14875 14876 sysv4 | sysv4.3*) 14877 version_type=linux 14878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14879 soname_spec='${libname}${release}${shared_ext}$major' 14880 shlibpath_var=LD_LIBRARY_PATH 14881 case $host_vendor in 14882 sni) 14883 shlibpath_overrides_runpath=no 14884 need_lib_prefix=no 14885 runpath_var=LD_RUN_PATH 14886 ;; 14887 siemens) 14888 need_lib_prefix=no 14889 ;; 14890 motorola) 14891 need_lib_prefix=no 14892 need_version=no 14893 shlibpath_overrides_runpath=no 14894 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14895 ;; 14896 esac 14897 ;; 14898 14899 sysv4*MP*) 14900 if test -d /usr/nec ;then 14901 version_type=linux 14902 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14903 soname_spec='$libname${shared_ext}.$major' 14904 shlibpath_var=LD_LIBRARY_PATH 14905 fi 14906 ;; 14907 14908 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14909 version_type=freebsd-elf 14910 need_lib_prefix=no 14911 need_version=no 14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14913 soname_spec='${libname}${release}${shared_ext}$major' 14914 shlibpath_var=LD_LIBRARY_PATH 14915 shlibpath_overrides_runpath=yes 14916 hardcode_into_libs=yes 14917 if test "$with_gnu_ld" = yes; then 14918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14919 else 14920 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14921 case $host_os in 14922 sco3.2v5*) 14923 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14924 ;; 14925 esac 14926 fi 14927 sys_lib_dlsearch_path_spec='/usr/lib' 14928 ;; 14929 14930 tpf*) 14931 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14932 version_type=linux 14933 need_lib_prefix=no 14934 need_version=no 14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14936 shlibpath_var=LD_LIBRARY_PATH 14937 shlibpath_overrides_runpath=no 14938 hardcode_into_libs=yes 14939 ;; 14940 14941 uts4*) 14942 version_type=linux 14943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14944 soname_spec='${libname}${release}${shared_ext}$major' 14945 shlibpath_var=LD_LIBRARY_PATH 14946 ;; 14947 14948 *) 14949 dynamic_linker=no 14950 ;; 14951 esac 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14953 $as_echo "$dynamic_linker" >&6; } 14954 test "$dynamic_linker" = no && can_build_shared=no 14955 14956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14957 if test "$GCC" = yes; then 14958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14959 fi 14960 14961 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14962 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14963 fi 14964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14965 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14966 fi 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15006 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15007 hardcode_action_CXX= 15008 if test -n "$hardcode_libdir_flag_spec_CXX" || 15009 test -n "$runpath_var_CXX" || 15010 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15011 15012 # We can hardcode non-existent directories. 15013 if test "$hardcode_direct_CXX" != no && 15014 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15015 # have to relink, otherwise we might link with an installed library 15016 # when we should be linking with a yet-to-be-installed one 15017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15018 test "$hardcode_minus_L_CXX" != no; then 15019 # Linking always hardcodes the temporary library directory. 15020 hardcode_action_CXX=relink 15021 else 15022 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15023 hardcode_action_CXX=immediate 15024 fi 15025 else 15026 # We cannot hardcode anything, or else we can only hardcode existing 15027 # directories. 15028 hardcode_action_CXX=unsupported 15029 fi 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15031 $as_echo "$hardcode_action_CXX" >&6; } 15032 15033 if test "$hardcode_action_CXX" = relink || 15034 test "$inherit_rpath_CXX" = yes; then 15035 # Fast installation is not supported 15036 enable_fast_install=no 15037 elif test "$shlibpath_overrides_runpath" = yes || 15038 test "$enable_shared" = no; then 15039 # Fast installation is not necessary 15040 enable_fast_install=needless 15041 fi 15042 15043 15044 15045 15046 15047 15048 15049 fi # test -n "$compiler" 15050 15051 CC=$lt_save_CC 15052 LDCXX=$LD 15053 LD=$lt_save_LD 15054 GCC=$lt_save_GCC 15055 with_gnu_ld=$lt_save_with_gnu_ld 15056 lt_cv_path_LDCXX=$lt_cv_path_LD 15057 lt_cv_path_LD=$lt_save_path_LD 15058 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15059 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15060 fi # test "$_lt_caught_CXX_error" != yes 15061 15062 ac_ext=c 15063 ac_cpp='$CPP $CPPFLAGS' 15064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15066 ac_compiler_gnu=$ac_cv_c_compiler_gnu 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 ac_config_commands="$ac_config_commands libtool" 15081 15082 15083 15084 15085 # Only expand once: 15086 15087 15088 15089 # The tests for host and target for $enable_largefile require 15090 # canonical names. 15091 15092 15093 15094 # As the $enable_largefile decision depends on --enable-plugins we must set it 15095 # even in directories otherwise not depending on the $plugins option. 15096 15097 15098 maybe_plugins=no 15099 for ac_header in dlfcn.h 15100 do : 15101 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 15102 " 15103 if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 15104 cat >>confdefs.h <<_ACEOF 15105 #define HAVE_DLFCN_H 1 15106 _ACEOF 15107 maybe_plugins=yes 15108 fi 15109 15110 done 15111 15112 for ac_header in windows.h 15113 do : 15114 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default 15115 " 15116 if test "x$ac_cv_header_windows_h" = x""yes; then : 15117 cat >>confdefs.h <<_ACEOF 15118 #define HAVE_WINDOWS_H 1 15119 _ACEOF 15120 maybe_plugins=yes 15121 fi 15122 15123 done 15124 15125 15126 # Check whether --enable-plugins was given. 15127 if test "${enable_plugins+set}" = set; then : 15128 enableval=$enable_plugins; case "${enableval}" in 15129 no) plugins=no ;; 15130 *) plugins=yes 15131 if test "$maybe_plugins" != "yes" ; then 15132 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 15133 fi ;; 15134 esac 15135 else 15136 plugins=$maybe_plugins 15137 15138 fi 15139 15140 if test "$plugins" = "yes"; then 15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 15142 $as_echo_n "checking for library containing dlopen... " >&6; } 15143 if test "${ac_cv_search_dlopen+set}" = set; then : 15144 $as_echo_n "(cached) " >&6 15145 else 15146 ac_func_search_save_LIBS=$LIBS 15147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15148 /* end confdefs.h. */ 15149 15150 /* Override any GCC internal prototype to avoid an error. 15151 Use char because int might match the return type of a GCC 15152 builtin and then its argument prototype would still apply. */ 15153 #ifdef __cplusplus 15154 extern "C" 15155 #endif 15156 char dlopen (); 15157 int 15158 main () 15159 { 15160 return dlopen (); 15161 ; 15162 return 0; 15163 } 15164 _ACEOF 15165 for ac_lib in '' dl; do 15166 if test -z "$ac_lib"; then 15167 ac_res="none required" 15168 else 15169 ac_res=-l$ac_lib 15170 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15171 fi 15172 if ac_fn_c_try_link "$LINENO"; then : 15173 ac_cv_search_dlopen=$ac_res 15174 fi 15175 rm -f core conftest.err conftest.$ac_objext \ 15176 conftest$ac_exeext 15177 if test "${ac_cv_search_dlopen+set}" = set; then : 15178 break 15179 fi 15180 done 15181 if test "${ac_cv_search_dlopen+set}" = set; then : 15182 15183 else 15184 ac_cv_search_dlopen=no 15185 fi 15186 rm conftest.$ac_ext 15187 LIBS=$ac_func_search_save_LIBS 15188 fi 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 15190 $as_echo "$ac_cv_search_dlopen" >&6; } 15191 ac_res=$ac_cv_search_dlopen 15192 if test "$ac_res" != no; then : 15193 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15194 15195 fi 15196 15197 fi 15198 15199 15200 case "${host}" in 15201 sparc-*-solaris*|i[3-7]86-*-solaris*) 15202 # On native 32bit sparc and ia32 solaris, large-file and procfs support 15203 # are mutually exclusive; and without procfs support, the bfd/ elf module 15204 # cannot provide certain routines such as elfcore_write_prpsinfo 15205 # or elfcore_write_prstatus. So unless the user explicitly requested 15206 # large-file support through the --enable-largefile switch, disable 15207 # large-file support in favor of procfs support. 15208 test "${target}" = "${host}" -a "x$plugins" = xno \ 15209 && : ${enable_largefile="no"} 15210 ;; 15211 esac 15212 15213 # Check whether --enable-largefile was given. 15214 if test "${enable_largefile+set}" = set; then : 15215 enableval=$enable_largefile; 15216 fi 15217 15218 if test "$enable_largefile" != no; then 15219 15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15221 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15222 if test "${ac_cv_sys_largefile_CC+set}" = set; then : 15223 $as_echo_n "(cached) " >&6 15224 else 15225 ac_cv_sys_largefile_CC=no 15226 if test "$GCC" != yes; then 15227 ac_save_CC=$CC 15228 while :; do 15229 # IRIX 6.2 and later do not support large files by default, 15230 # so use the C compiler's -n32 option if that helps. 15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15232 /* end confdefs.h. */ 15233 #include <sys/types.h> 15234 /* Check that off_t can represent 2**63 - 1 correctly. 15235 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15236 since some C++ compilers masquerading as C compilers 15237 incorrectly reject 9223372036854775807. */ 15238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15240 && LARGE_OFF_T % 2147483647 == 1) 15241 ? 1 : -1]; 15242 int 15243 main () 15244 { 15245 15246 ; 15247 return 0; 15248 } 15249 _ACEOF 15250 if ac_fn_c_try_compile "$LINENO"; then : 15251 break 15252 fi 15253 rm -f core conftest.err conftest.$ac_objext 15254 CC="$CC -n32" 15255 if ac_fn_c_try_compile "$LINENO"; then : 15256 ac_cv_sys_largefile_CC=' -n32'; break 15257 fi 15258 rm -f core conftest.err conftest.$ac_objext 15259 break 15260 done 15261 CC=$ac_save_CC 15262 rm -f conftest.$ac_ext 15263 fi 15264 fi 15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15266 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 15267 if test "$ac_cv_sys_largefile_CC" != no; then 15268 CC=$CC$ac_cv_sys_largefile_CC 15269 fi 15270 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15272 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15273 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 15274 $as_echo_n "(cached) " >&6 15275 else 15276 while :; do 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278 /* end confdefs.h. */ 15279 #include <sys/types.h> 15280 /* Check that off_t can represent 2**63 - 1 correctly. 15281 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15282 since some C++ compilers masquerading as C compilers 15283 incorrectly reject 9223372036854775807. */ 15284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15285 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15286 && LARGE_OFF_T % 2147483647 == 1) 15287 ? 1 : -1]; 15288 int 15289 main () 15290 { 15291 15292 ; 15293 return 0; 15294 } 15295 _ACEOF 15296 if ac_fn_c_try_compile "$LINENO"; then : 15297 ac_cv_sys_file_offset_bits=no; break 15298 fi 15299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15301 /* end confdefs.h. */ 15302 #define _FILE_OFFSET_BITS 64 15303 #include <sys/types.h> 15304 /* Check that off_t can represent 2**63 - 1 correctly. 15305 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15306 since some C++ compilers masquerading as C compilers 15307 incorrectly reject 9223372036854775807. */ 15308 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15309 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15310 && LARGE_OFF_T % 2147483647 == 1) 15311 ? 1 : -1]; 15312 int 15313 main () 15314 { 15315 15316 ; 15317 return 0; 15318 } 15319 _ACEOF 15320 if ac_fn_c_try_compile "$LINENO"; then : 15321 ac_cv_sys_file_offset_bits=64; break 15322 fi 15323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15324 ac_cv_sys_file_offset_bits=unknown 15325 break 15326 done 15327 fi 15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15329 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15330 case $ac_cv_sys_file_offset_bits in #( 15331 no | unknown) ;; 15332 *) 15333 cat >>confdefs.h <<_ACEOF 15334 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15335 _ACEOF 15336 ;; 15337 esac 15338 rm -rf conftest* 15339 if test $ac_cv_sys_file_offset_bits = unknown; then 15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15341 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15342 if test "${ac_cv_sys_large_files+set}" = set; then : 15343 $as_echo_n "(cached) " >&6 15344 else 15345 while :; do 15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347 /* end confdefs.h. */ 15348 #include <sys/types.h> 15349 /* Check that off_t can represent 2**63 - 1 correctly. 15350 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15351 since some C++ compilers masquerading as C compilers 15352 incorrectly reject 9223372036854775807. */ 15353 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15354 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15355 && LARGE_OFF_T % 2147483647 == 1) 15356 ? 1 : -1]; 15357 int 15358 main () 15359 { 15360 15361 ; 15362 return 0; 15363 } 15364 _ACEOF 15365 if ac_fn_c_try_compile "$LINENO"; then : 15366 ac_cv_sys_large_files=no; break 15367 fi 15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15370 /* end confdefs.h. */ 15371 #define _LARGE_FILES 1 15372 #include <sys/types.h> 15373 /* Check that off_t can represent 2**63 - 1 correctly. 15374 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15375 since some C++ compilers masquerading as C compilers 15376 incorrectly reject 9223372036854775807. */ 15377 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15378 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15379 && LARGE_OFF_T % 2147483647 == 1) 15380 ? 1 : -1]; 15381 int 15382 main () 15383 { 15384 15385 ; 15386 return 0; 15387 } 15388 _ACEOF 15389 if ac_fn_c_try_compile "$LINENO"; then : 15390 ac_cv_sys_large_files=1; break 15391 fi 15392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15393 ac_cv_sys_large_files=unknown 15394 break 15395 done 15396 fi 15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15398 $as_echo "$ac_cv_sys_large_files" >&6; } 15399 case $ac_cv_sys_large_files in #( 15400 no | unknown) ;; 15401 *) 15402 cat >>confdefs.h <<_ACEOF 15403 #define _LARGE_FILES $ac_cv_sys_large_files 15404 _ACEOF 15405 ;; 15406 esac 15407 rm -rf conftest* 15408 fi 15409 fi 15410 15411 15412 15413 15414 # Check whether --with-lib-path was given. 15415 if test "${with_lib_path+set}" = set; then : 15416 withval=$with_lib_path; LIB_PATH=$withval 15417 fi 15418 15419 # Check whether --enable-targets was given. 15420 if test "${enable_targets+set}" = set; then : 15421 enableval=$enable_targets; case "${enableval}" in 15422 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5 15423 ;; 15424 no) enable_targets= ;; 15425 *) enable_targets=$enableval ;; 15426 esac 15427 fi 15428 # Check whether --enable-64-bit-bfd was given. 15429 if test "${enable_64_bit_bfd+set}" = set; then : 15430 enableval=$enable_64_bit_bfd; case "${enableval}" in 15431 yes) want64=true ;; 15432 no) want64=false ;; 15433 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; 15434 esac 15435 else 15436 want64=false 15437 fi 15438 15439 15440 # Check whether --with-sysroot was given. 15441 if test "${with_sysroot+set}" = set; then : 15442 withval=$with_sysroot; 15443 case ${with_sysroot} in 15444 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; 15445 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 15446 esac 15447 15448 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 15449 use_sysroot=yes 15450 15451 if test "x$prefix" = xNONE; then 15452 test_prefix=/usr/local 15453 else 15454 test_prefix=$prefix 15455 fi 15456 if test "x$exec_prefix" = xNONE; then 15457 test_exec_prefix=$test_prefix 15458 else 15459 test_exec_prefix=$exec_prefix 15460 fi 15461 case ${TARGET_SYSTEM_ROOT} in 15462 "${test_prefix}"|"${test_prefix}/"*|\ 15463 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ 15464 '${prefix}'|'${prefix}/'*|\ 15465 '${exec_prefix}'|'${exec_prefix}/'*) 15466 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 15467 TARGET_SYSTEM_ROOT_DEFINE="$t" 15468 ;; 15469 esac 15470 15471 else 15472 15473 use_sysroot=no 15474 TARGET_SYSTEM_ROOT= 15475 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' 15476 15477 fi 15478 15479 15480 15481 15482 15483 # Check whether --enable-poison-system-directories was given. 15484 if test "${enable_poison_system_directories+set}" = set; then : 15485 enableval=$enable_poison_system_directories; 15486 else 15487 enable_poison_system_directories=no 15488 fi 15489 15490 if test "x${enable_poison_system_directories}" = "xyes"; then 15491 15492 $as_echo "#define ENABLE_POISON_SYSTEM_DIRECTORIES 1" >>confdefs.h 15493 15494 fi 15495 15496 # Check whether --enable-gold was given. 15497 if test "${enable_gold+set}" = set; then : 15498 enableval=$enable_gold; case "${enableval}" in 15499 default) 15500 install_as_default=no 15501 installed_linker=ld.bfd 15502 ;; 15503 yes|no) 15504 install_as_default=yes 15505 installed_linker=ld.bfd 15506 ;; 15507 *) 15508 as_fn_error "invalid --enable-gold argument" "$LINENO" 5 15509 ;; 15510 esac 15511 else 15512 install_as_default=yes 15513 installed_linker=ld.bfd 15514 fi 15515 15516 15517 15518 15519 # Check whether --enable-got was given. 15520 if test "${enable_got+set}" = set; then : 15521 enableval=$enable_got; case "${enableval}" in 15522 target | single | negative | multigot) got_handling=$enableval ;; 15523 *) as_fn_error "bad value ${enableval} for --enable-got option" "$LINENO" 5 ;; 15524 esac 15525 else 15526 got_handling=target 15527 fi 15528 15529 15530 case "${got_handling}" in 15531 target) 15532 15533 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_TARGET_DEFAULT" >>confdefs.h 15534 ;; 15535 single) 15536 15537 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_SINGLE" >>confdefs.h 15538 ;; 15539 negative) 15540 15541 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_NEGATIVE" >>confdefs.h 15542 ;; 15543 multigot) 15544 15545 $as_echo "#define GOT_HANDLING_DEFAULT GOT_HANDLING_MULTIGOT" >>confdefs.h 15546 ;; 15547 *) as_fn_error "bad value ${got_handling} for --enable-got option" "$LINENO" 5 ;; 15548 esac 15549 15550 # PR gas/19109 15551 # Decide the default method for compressing debug sections. 15552 ac_default_compressed_debug_sections=unset 15553 # Provide a configure time option to override our default. 15554 # Check whether --enable-compressed_debug_sections was given. 15555 if test "${enable_compressed_debug_sections+set}" = set; then : 15556 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in 15557 ,yes, | ,all, | *,ld,*) ac_default_compressed_debug_sections=yes ;; 15558 ,no, | ,none,) ac_default_compressed_debug_sections=no ;; 15559 esac 15560 fi 15561 15562 # Decide if -z relro should be enabled in ELF linker by default. 15563 ac_default_ld_z_relro=unset 15564 # Provide a configure time option to override our default. 15565 # Check whether --enable-relro was given. 15566 if test "${enable_relro+set}" = set; then : 15567 enableval=$enable_relro; case "${enableval}" in 15568 yes) ac_default_ld_z_relro=1 ;; 15569 no) ac_default_ld_z_relro=0 ;; 15570 esac 15571 fi 15572 15573 15574 # Set the 'development' global. 15575 . $srcdir/../bfd/development.sh 15576 15577 # Default set of GCC warnings to enable. 15578 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 15579 15580 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582 /* end confdefs.h. */ 15583 __GNUC__ 15584 _ACEOF 15585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15586 $EGREP "^[0-3]$" >/dev/null 2>&1; then : 15587 15588 else 15589 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 15590 fi 15591 rm -f conftest* 15592 15593 15594 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 15595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15596 /* end confdefs.h. */ 15597 __GNUC__ 15598 _ACEOF 15599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15600 $EGREP "^[0-4]$" >/dev/null 2>&1; then : 15601 15602 else 15603 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 15604 fi 15605 rm -f conftest* 15606 15607 15608 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 15609 WARN_WRITE_STRINGS="" 15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15611 /* end confdefs.h. */ 15612 __GNUC__ 15613 _ACEOF 15614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15615 $EGREP "^[0-3]$" >/dev/null 2>&1; then : 15616 15617 else 15618 WARN_WRITE_STRINGS="-Wwrite-strings" 15619 fi 15620 rm -f conftest* 15621 15622 15623 # Check whether --enable-werror was given. 15624 if test "${enable_werror+set}" = set; then : 15625 enableval=$enable_werror; case "${enableval}" in 15626 yes | y) ERROR_ON_WARNING="yes" ;; 15627 no | n) ERROR_ON_WARNING="no" ;; 15628 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 15629 esac 15630 fi 15631 15632 15633 # Disable -Wformat by default when using gcc on mingw 15634 case "${host}" in 15635 *-*-mingw32*) 15636 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 15637 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 15638 fi 15639 ;; 15640 *) ;; 15641 esac 15642 15643 # Enable -Werror by default when using gcc. Turn it off for releases. 15644 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 15645 ERROR_ON_WARNING=yes 15646 fi 15647 15648 NO_WERROR= 15649 if test "${ERROR_ON_WARNING}" = yes ; then 15650 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 15651 NO_WERROR="-Wno-error" 15652 fi 15653 15654 if test "${GCC}" = yes ; then 15655 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 15656 fi 15657 15658 # Check whether --enable-build-warnings was given. 15659 if test "${enable_build_warnings+set}" = set; then : 15660 enableval=$enable_build_warnings; case "${enableval}" in 15661 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; 15662 no) if test "${GCC}" = yes ; then 15663 WARN_CFLAGS="-w" 15664 fi;; 15665 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 15666 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; 15667 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 15668 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; 15669 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; 15670 esac 15671 fi 15672 15673 15674 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 15675 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 15676 fi 15677 15678 15679 15680 15681 15682 15683 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 15685 $as_echo_n "checking for LC_MESSAGES... " >&6; } 15686 if test "${am_cv_val_LC_MESSAGES+set}" = set; then : 15687 $as_echo_n "(cached) " >&6 15688 else 15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15690 /* end confdefs.h. */ 15691 #include <locale.h> 15692 int 15693 main () 15694 { 15695 return LC_MESSAGES 15696 ; 15697 return 0; 15698 } 15699 _ACEOF 15700 if ac_fn_c_try_link "$LINENO"; then : 15701 am_cv_val_LC_MESSAGES=yes 15702 else 15703 am_cv_val_LC_MESSAGES=no 15704 fi 15705 rm -f core conftest.err conftest.$ac_objext \ 15706 conftest$ac_exeext conftest.$ac_ext 15707 fi 15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 15709 $as_echo "$am_cv_val_LC_MESSAGES" >&6; } 15710 if test $am_cv_val_LC_MESSAGES = yes; then 15711 15712 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 15713 15714 fi 15715 15716 15717 ac_config_headers="$ac_config_headers config.h:config.in" 15718 15719 15720 # PR 14072 15721 15722 15723 if test -z "$target" ; then 15724 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5 15725 fi 15726 if test -z "$host" ; then 15727 as_fn_error "Unrecognized host system type; please check config.sub." "$LINENO" 5 15728 fi 15729 15730 # host-specific stuff: 15731 15732 ALL_LINGUAS="fr sv tr es da vi zh_CN zh_TW ga fi id bg it uk" 15733 # If we haven't got the data from the intl directory, 15734 # assume NLS is disabled. 15735 USE_NLS=no 15736 LIBINTL= 15737 LIBINTL_DEP= 15738 INCINTL= 15739 XGETTEXT= 15740 GMSGFMT= 15741 POSUB= 15742 15743 if test -f ../intl/config.intl; then 15744 . ../intl/config.intl 15745 fi 15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 15747 $as_echo_n "checking whether NLS is requested... " >&6; } 15748 if test x"$USE_NLS" != xyes; then 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15750 $as_echo "no" >&6; } 15751 else 15752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15753 $as_echo "yes" >&6; } 15754 15755 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 15756 15757 15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 15759 $as_echo_n "checking for catalogs to be installed... " >&6; } 15760 # Look for .po and .gmo files in the source directory. 15761 CATALOGS= 15762 XLINGUAS= 15763 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 15764 # If there aren't any .gmo files the shell will give us the 15765 # literal string "../path/to/srcdir/po/*.gmo" which has to be 15766 # weeded out. 15767 case "$cat" in *\**) 15768 continue;; 15769 esac 15770 # The quadruple backslash is collapsed to a double backslash 15771 # by the backticks, then collapsed again by the double quotes, 15772 # leaving us with one backslash in the sed expression (right 15773 # before the dot that mustn't act as a wildcard). 15774 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 15775 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 15776 # The user is allowed to set LINGUAS to a list of languages to 15777 # install catalogs for. If it's empty that means "all of them." 15778 if test "x$LINGUAS" = x; then 15779 CATALOGS="$CATALOGS $cat" 15780 XLINGUAS="$XLINGUAS $lang" 15781 else 15782 case "$LINGUAS" in *$lang*) 15783 CATALOGS="$CATALOGS $cat" 15784 XLINGUAS="$XLINGUAS $lang" 15785 ;; 15786 esac 15787 fi 15788 done 15789 LINGUAS="$XLINGUAS" 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 15791 $as_echo "$LINGUAS" >&6; } 15792 15793 15794 DATADIRNAME=share 15795 15796 INSTOBJEXT=.mo 15797 15798 GENCAT=gencat 15799 15800 CATOBJEXT=.gmo 15801 15802 fi 15803 15804 MKINSTALLDIRS= 15805 if test -n "$ac_aux_dir"; then 15806 case "$ac_aux_dir" in 15807 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 15808 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 15809 esac 15810 fi 15811 if test -z "$MKINSTALLDIRS"; then 15812 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 15813 fi 15814 15815 15816 15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 15818 $as_echo_n "checking whether NLS is requested... " >&6; } 15819 # Check whether --enable-nls was given. 15820 if test "${enable_nls+set}" = set; then : 15821 enableval=$enable_nls; USE_NLS=$enableval 15822 else 15823 USE_NLS=yes 15824 fi 15825 15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 15827 $as_echo "$USE_NLS" >&6; } 15828 15829 15830 15831 15832 15833 15834 # Prepare PATH_SEPARATOR. 15835 # The user is always right. 15836 if test "${PATH_SEPARATOR+set}" != set; then 15837 echo "#! /bin/sh" >conf$$.sh 15838 echo "exit 0" >>conf$$.sh 15839 chmod +x conf$$.sh 15840 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15841 PATH_SEPARATOR=';' 15842 else 15843 PATH_SEPARATOR=: 15844 fi 15845 rm -f conf$$.sh 15846 fi 15847 15848 # Find out how to test for executable files. Don't use a zero-byte file, 15849 # as systems may use methods other than mode bits to determine executability. 15850 cat >conf$$.file <<_ASEOF 15851 #! /bin/sh 15852 exit 0 15853 _ASEOF 15854 chmod +x conf$$.file 15855 if test -x conf$$.file >/dev/null 2>&1; then 15856 ac_executable_p="test -x" 15857 else 15858 ac_executable_p="test -f" 15859 fi 15860 rm -f conf$$.file 15861 15862 # Extract the first word of "msgfmt", so it can be a program name with args. 15863 set dummy msgfmt; ac_word=$2 15864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15865 $as_echo_n "checking for $ac_word... " >&6; } 15866 if test "${ac_cv_path_MSGFMT+set}" = set; then : 15867 $as_echo_n "(cached) " >&6 15868 else 15869 case "$MSGFMT" in 15870 [\\/]* | ?:[\\/]*) 15871 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 15872 ;; 15873 *) 15874 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15875 for ac_dir in $PATH; do 15876 IFS="$ac_save_IFS" 15877 test -z "$ac_dir" && ac_dir=. 15878 for ac_exec_ext in '' $ac_executable_extensions; do 15879 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15880 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 15881 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 15882 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 15883 break 2 15884 fi 15885 fi 15886 done 15887 done 15888 IFS="$ac_save_IFS" 15889 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 15890 ;; 15891 esac 15892 fi 15893 MSGFMT="$ac_cv_path_MSGFMT" 15894 if test "$MSGFMT" != ":"; then 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 15896 $as_echo "$MSGFMT" >&6; } 15897 else 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15899 $as_echo "no" >&6; } 15900 fi 15901 15902 # Extract the first word of "gmsgfmt", so it can be a program name with args. 15903 set dummy gmsgfmt; ac_word=$2 15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15905 $as_echo_n "checking for $ac_word... " >&6; } 15906 if test "${ac_cv_path_GMSGFMT+set}" = set; then : 15907 $as_echo_n "(cached) " >&6 15908 else 15909 case $GMSGFMT in 15910 [\\/]* | ?:[\\/]*) 15911 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 15912 ;; 15913 *) 15914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15915 for as_dir in $PATH 15916 do 15917 IFS=$as_save_IFS 15918 test -z "$as_dir" && as_dir=. 15919 for ac_exec_ext in '' $ac_executable_extensions; do 15920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15921 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 15922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15923 break 2 15924 fi 15925 done 15926 done 15927 IFS=$as_save_IFS 15928 15929 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 15930 ;; 15931 esac 15932 fi 15933 GMSGFMT=$ac_cv_path_GMSGFMT 15934 if test -n "$GMSGFMT"; then 15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 15936 $as_echo "$GMSGFMT" >&6; } 15937 else 15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15939 $as_echo "no" >&6; } 15940 fi 15941 15942 15943 15944 15945 # Prepare PATH_SEPARATOR. 15946 # The user is always right. 15947 if test "${PATH_SEPARATOR+set}" != set; then 15948 echo "#! /bin/sh" >conf$$.sh 15949 echo "exit 0" >>conf$$.sh 15950 chmod +x conf$$.sh 15951 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 15952 PATH_SEPARATOR=';' 15953 else 15954 PATH_SEPARATOR=: 15955 fi 15956 rm -f conf$$.sh 15957 fi 15958 15959 # Find out how to test for executable files. Don't use a zero-byte file, 15960 # as systems may use methods other than mode bits to determine executability. 15961 cat >conf$$.file <<_ASEOF 15962 #! /bin/sh 15963 exit 0 15964 _ASEOF 15965 chmod +x conf$$.file 15966 if test -x conf$$.file >/dev/null 2>&1; then 15967 ac_executable_p="test -x" 15968 else 15969 ac_executable_p="test -f" 15970 fi 15971 rm -f conf$$.file 15972 15973 # Extract the first word of "xgettext", so it can be a program name with args. 15974 set dummy xgettext; ac_word=$2 15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15976 $as_echo_n "checking for $ac_word... " >&6; } 15977 if test "${ac_cv_path_XGETTEXT+set}" = set; then : 15978 $as_echo_n "(cached) " >&6 15979 else 15980 case "$XGETTEXT" in 15981 [\\/]* | ?:[\\/]*) 15982 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 15983 ;; 15984 *) 15985 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 15986 for ac_dir in $PATH; do 15987 IFS="$ac_save_IFS" 15988 test -z "$ac_dir" && ac_dir=. 15989 for ac_exec_ext in '' $ac_executable_extensions; do 15990 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 15991 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 15992 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 15993 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 15994 break 2 15995 fi 15996 fi 15997 done 15998 done 15999 IFS="$ac_save_IFS" 16000 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 16001 ;; 16002 esac 16003 fi 16004 XGETTEXT="$ac_cv_path_XGETTEXT" 16005 if test "$XGETTEXT" != ":"; then 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 16007 $as_echo "$XGETTEXT" >&6; } 16008 else 16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16010 $as_echo "no" >&6; } 16011 fi 16012 16013 rm -f messages.po 16014 16015 16016 # Prepare PATH_SEPARATOR. 16017 # The user is always right. 16018 if test "${PATH_SEPARATOR+set}" != set; then 16019 echo "#! /bin/sh" >conf$$.sh 16020 echo "exit 0" >>conf$$.sh 16021 chmod +x conf$$.sh 16022 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 16023 PATH_SEPARATOR=';' 16024 else 16025 PATH_SEPARATOR=: 16026 fi 16027 rm -f conf$$.sh 16028 fi 16029 16030 # Find out how to test for executable files. Don't use a zero-byte file, 16031 # as systems may use methods other than mode bits to determine executability. 16032 cat >conf$$.file <<_ASEOF 16033 #! /bin/sh 16034 exit 0 16035 _ASEOF 16036 chmod +x conf$$.file 16037 if test -x conf$$.file >/dev/null 2>&1; then 16038 ac_executable_p="test -x" 16039 else 16040 ac_executable_p="test -f" 16041 fi 16042 rm -f conf$$.file 16043 16044 # Extract the first word of "msgmerge", so it can be a program name with args. 16045 set dummy msgmerge; ac_word=$2 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16047 $as_echo_n "checking for $ac_word... " >&6; } 16048 if test "${ac_cv_path_MSGMERGE+set}" = set; then : 16049 $as_echo_n "(cached) " >&6 16050 else 16051 case "$MSGMERGE" in 16052 [\\/]* | ?:[\\/]*) 16053 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 16054 ;; 16055 *) 16056 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 16057 for ac_dir in $PATH; do 16058 IFS="$ac_save_IFS" 16059 test -z "$ac_dir" && ac_dir=. 16060 for ac_exec_ext in '' $ac_executable_extensions; do 16061 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 16062 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 16063 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 16064 break 2 16065 fi 16066 fi 16067 done 16068 done 16069 IFS="$ac_save_IFS" 16070 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 16071 ;; 16072 esac 16073 fi 16074 MSGMERGE="$ac_cv_path_MSGMERGE" 16075 if test "$MSGMERGE" != ":"; then 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 16077 $as_echo "$MSGMERGE" >&6; } 16078 else 16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16080 $as_echo "no" >&6; } 16081 fi 16082 16083 16084 if test "$GMSGFMT" != ":"; then 16085 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 16086 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 16087 : ; 16088 else 16089 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 16091 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 16092 GMSGFMT=":" 16093 fi 16094 fi 16095 16096 if test "$XGETTEXT" != ":"; then 16097 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 16098 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 16099 : ; 16100 else 16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 16102 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 16103 XGETTEXT=":" 16104 fi 16105 rm -f messages.po 16106 fi 16107 16108 ac_config_commands="$ac_config_commands default-1" 16109 16110 16111 16112 16113 16114 for ac_prog in 'bison -y' byacc 16115 do 16116 # Extract the first word of "$ac_prog", so it can be a program name with args. 16117 set dummy $ac_prog; ac_word=$2 16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16119 $as_echo_n "checking for $ac_word... " >&6; } 16120 if test "${ac_cv_prog_YACC+set}" = set; then : 16121 $as_echo_n "(cached) " >&6 16122 else 16123 if test -n "$YACC"; then 16124 ac_cv_prog_YACC="$YACC" # Let the user override the test. 16125 else 16126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16127 for as_dir in $PATH 16128 do 16129 IFS=$as_save_IFS 16130 test -z "$as_dir" && as_dir=. 16131 for ac_exec_ext in '' $ac_executable_extensions; do 16132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16133 ac_cv_prog_YACC="$ac_prog" 16134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16135 break 2 16136 fi 16137 done 16138 done 16139 IFS=$as_save_IFS 16140 16141 fi 16142 fi 16143 YACC=$ac_cv_prog_YACC 16144 if test -n "$YACC"; then 16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 16146 $as_echo "$YACC" >&6; } 16147 else 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16149 $as_echo "no" >&6; } 16150 fi 16151 16152 16153 test -n "$YACC" && break 16154 done 16155 test -n "$YACC" || YACC="yacc" 16156 16157 for ac_prog in flex lex 16158 do 16159 # Extract the first word of "$ac_prog", so it can be a program name with args. 16160 set dummy $ac_prog; ac_word=$2 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16162 $as_echo_n "checking for $ac_word... " >&6; } 16163 if test "${ac_cv_prog_LEX+set}" = set; then : 16164 $as_echo_n "(cached) " >&6 16165 else 16166 if test -n "$LEX"; then 16167 ac_cv_prog_LEX="$LEX" # Let the user override the test. 16168 else 16169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16170 for as_dir in $PATH 16171 do 16172 IFS=$as_save_IFS 16173 test -z "$as_dir" && as_dir=. 16174 for ac_exec_ext in '' $ac_executable_extensions; do 16175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16176 ac_cv_prog_LEX="$ac_prog" 16177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16178 break 2 16179 fi 16180 done 16181 done 16182 IFS=$as_save_IFS 16183 16184 fi 16185 fi 16186 LEX=$ac_cv_prog_LEX 16187 if test -n "$LEX"; then 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 16189 $as_echo "$LEX" >&6; } 16190 else 16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16192 $as_echo "no" >&6; } 16193 fi 16194 16195 16196 test -n "$LEX" && break 16197 done 16198 test -n "$LEX" || LEX=":" 16199 16200 case "$LEX" in 16201 :|*"missing "*) ;; 16202 *) cat >conftest.l <<_ACEOF 16203 %% 16204 a { ECHO; } 16205 b { REJECT; } 16206 c { yymore (); } 16207 d { yyless (1); } 16208 e { yyless (input () != 0); } 16209 f { unput (yytext[0]); } 16210 . { BEGIN INITIAL; } 16211 %% 16212 #ifdef YYTEXT_POINTER 16213 extern char *yytext; 16214 #endif 16215 int 16216 main (void) 16217 { 16218 return ! yylex () + ! yywrap (); 16219 } 16220 _ACEOF 16221 { { ac_try="$LEX conftest.l" 16222 case "(($ac_try" in 16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16224 *) ac_try_echo=$ac_try;; 16225 esac 16226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 16227 $as_echo "$ac_try_echo"; } >&5 16228 (eval "$LEX conftest.l") 2>&5 16229 ac_status=$? 16230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16231 test $ac_status = 0; } 16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 16233 $as_echo_n "checking lex output file root... " >&6; } 16234 if test "${ac_cv_prog_lex_root+set}" = set; then : 16235 $as_echo_n "(cached) " >&6 16236 else 16237 16238 if test -f lex.yy.c; then 16239 ac_cv_prog_lex_root=lex.yy 16240 elif test -f lexyy.c; then 16241 ac_cv_prog_lex_root=lexyy 16242 else 16243 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 16244 fi 16245 fi 16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 16247 $as_echo "$ac_cv_prog_lex_root" >&6; } 16248 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 16249 16250 if test -z "${LEXLIB+set}"; then 16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 16252 $as_echo_n "checking lex library... " >&6; } 16253 if test "${ac_cv_lib_lex+set}" = set; then : 16254 $as_echo_n "(cached) " >&6 16255 else 16256 16257 ac_save_LIBS=$LIBS 16258 ac_cv_lib_lex='none needed' 16259 for ac_lib in '' -lfl -ll; do 16260 LIBS="$ac_lib $ac_save_LIBS" 16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16262 /* end confdefs.h. */ 16263 `cat $LEX_OUTPUT_ROOT.c` 16264 _ACEOF 16265 if ac_fn_c_try_link "$LINENO"; then : 16266 ac_cv_lib_lex=$ac_lib 16267 fi 16268 rm -f core conftest.err conftest.$ac_objext \ 16269 conftest$ac_exeext conftest.$ac_ext 16270 test "$ac_cv_lib_lex" != 'none needed' && break 16271 done 16272 LIBS=$ac_save_LIBS 16273 16274 fi 16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 16276 $as_echo "$ac_cv_lib_lex" >&6; } 16277 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 16278 fi 16279 16280 16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 16282 $as_echo_n "checking whether yytext is a pointer... " >&6; } 16283 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : 16284 $as_echo_n "(cached) " >&6 16285 else 16286 # POSIX says lex can declare yytext either as a pointer or an array; the 16287 # default is implementation-dependent. Figure out which it is, since 16288 # not all implementations provide the %pointer and %array declarations. 16289 ac_cv_prog_lex_yytext_pointer=no 16290 ac_save_LIBS=$LIBS 16291 LIBS="$LEXLIB $ac_save_LIBS" 16292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16293 /* end confdefs.h. */ 16294 #define YYTEXT_POINTER 1 16295 `cat $LEX_OUTPUT_ROOT.c` 16296 _ACEOF 16297 if ac_fn_c_try_link "$LINENO"; then : 16298 ac_cv_prog_lex_yytext_pointer=yes 16299 fi 16300 rm -f core conftest.err conftest.$ac_objext \ 16301 conftest$ac_exeext conftest.$ac_ext 16302 LIBS=$ac_save_LIBS 16303 16304 fi 16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 16306 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 16307 if test $ac_cv_prog_lex_yytext_pointer = yes; then 16308 16309 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 16310 16311 fi 16312 rm -f conftest.l $LEX_OUTPUT_ROOT.c 16313 ;; 16314 esac 16315 if test "$LEX" = :; then 16316 LEX=${am_missing_run}flex 16317 fi 16318 16319 16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 16321 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 16322 # Check whether --enable-maintainer-mode was given. 16323 if test "${enable_maintainer_mode+set}" = set; then : 16324 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 16325 else 16326 USE_MAINTAINER_MODE=no 16327 fi 16328 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 16330 $as_echo "$USE_MAINTAINER_MODE" >&6; } 16331 if test $USE_MAINTAINER_MODE = yes; then 16332 MAINTAINER_MODE_TRUE= 16333 MAINTAINER_MODE_FALSE='#' 16334 else 16335 MAINTAINER_MODE_TRUE='#' 16336 MAINTAINER_MODE_FALSE= 16337 fi 16338 16339 MAINT=$MAINTAINER_MODE_TRUE 16340 16341 16342 if false; then 16343 GENINSRC_NEVER_TRUE= 16344 GENINSRC_NEVER_FALSE='#' 16345 else 16346 GENINSRC_NEVER_TRUE='#' 16347 GENINSRC_NEVER_FALSE= 16348 fi 16349 16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5 16351 $as_echo_n "checking how to compare bootstrapped objects... " >&6; } 16352 if test "${gcc_cv_prog_cmp_skip+set}" = set; then : 16353 $as_echo_n "(cached) " >&6 16354 else 16355 echo abfoo >t1 16356 echo cdfoo >t2 16357 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2' 16358 if cmp t1 t2 2 2 > /dev/null 2>&1; then 16359 if cmp t1 t2 1 1 > /dev/null 2>&1; then 16360 : 16361 else 16362 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16' 16363 fi 16364 fi 16365 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then 16366 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then 16367 : 16368 else 16369 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2' 16370 fi 16371 fi 16372 rm t1 t2 16373 16374 fi 16375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5 16376 $as_echo "$gcc_cv_prog_cmp_skip" >&6; } 16377 do_compare="$gcc_cv_prog_cmp_skip" 16378 16379 16380 16381 . ${srcdir}/configure.host 16382 16383 16384 16385 16386 16387 16388 16389 16390 for ac_header in string.h strings.h stdlib.h unistd.h elf-hints.h limits.h locale.h sys/param.h 16391 do : 16392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16393 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16394 eval as_val=\$$as_ac_Header 16395 if test "x$as_val" = x""yes; then : 16396 cat >>confdefs.h <<_ACEOF 16397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16398 _ACEOF 16399 16400 fi 16401 16402 done 16403 16404 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h 16405 do : 16406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16408 eval as_val=\$$as_ac_Header 16409 if test "x$as_val" = x""yes; then : 16410 cat >>confdefs.h <<_ACEOF 16411 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16412 _ACEOF 16413 16414 fi 16415 16416 done 16417 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 16419 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 16420 if test "${gcc_cv_header_string+set}" = set; then : 16421 $as_echo_n "(cached) " >&6 16422 else 16423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16424 /* end confdefs.h. */ 16425 #include <string.h> 16426 #include <strings.h> 16427 int 16428 main () 16429 { 16430 16431 ; 16432 return 0; 16433 } 16434 _ACEOF 16435 if ac_fn_c_try_compile "$LINENO"; then : 16436 gcc_cv_header_string=yes 16437 else 16438 gcc_cv_header_string=no 16439 fi 16440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16441 fi 16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 16443 $as_echo "$gcc_cv_header_string" >&6; } 16444 if test $gcc_cv_header_string = yes; then 16445 16446 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 16447 16448 fi 16449 16450 for ac_func in glob mkstemp realpath sbrk setlocale waitpid 16451 do : 16452 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16453 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16454 eval as_val=\$$as_ac_var 16455 if test "x$as_val" = x""yes; then : 16456 cat >>confdefs.h <<_ACEOF 16457 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16458 _ACEOF 16459 16460 fi 16461 done 16462 16463 for ac_func in open lseek close 16464 do : 16465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16467 eval as_val=\$$as_ac_var 16468 if test "x$as_val" = x""yes; then : 16469 cat >>confdefs.h <<_ACEOF 16470 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16471 _ACEOF 16472 16473 fi 16474 done 16475 16476 ac_header_dirent=no 16477 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 16478 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 16480 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 16481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then : 16482 $as_echo_n "(cached) " >&6 16483 else 16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16485 /* end confdefs.h. */ 16486 #include <sys/types.h> 16487 #include <$ac_hdr> 16488 16489 int 16490 main () 16491 { 16492 if ((DIR *) 0) 16493 return 0; 16494 ; 16495 return 0; 16496 } 16497 _ACEOF 16498 if ac_fn_c_try_compile "$LINENO"; then : 16499 eval "$as_ac_Header=yes" 16500 else 16501 eval "$as_ac_Header=no" 16502 fi 16503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16504 fi 16505 eval ac_res=\$$as_ac_Header 16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16507 $as_echo "$ac_res" >&6; } 16508 eval as_val=\$$as_ac_Header 16509 if test "x$as_val" = x""yes; then : 16510 cat >>confdefs.h <<_ACEOF 16511 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 16512 _ACEOF 16513 16514 ac_header_dirent=$ac_hdr; break 16515 fi 16516 16517 done 16518 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 16519 if test $ac_header_dirent = dirent.h; then 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 16521 $as_echo_n "checking for library containing opendir... " >&6; } 16522 if test "${ac_cv_search_opendir+set}" = set; then : 16523 $as_echo_n "(cached) " >&6 16524 else 16525 ac_func_search_save_LIBS=$LIBS 16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16527 /* end confdefs.h. */ 16528 16529 /* Override any GCC internal prototype to avoid an error. 16530 Use char because int might match the return type of a GCC 16531 builtin and then its argument prototype would still apply. */ 16532 #ifdef __cplusplus 16533 extern "C" 16534 #endif 16535 char opendir (); 16536 int 16537 main () 16538 { 16539 return opendir (); 16540 ; 16541 return 0; 16542 } 16543 _ACEOF 16544 for ac_lib in '' dir; do 16545 if test -z "$ac_lib"; then 16546 ac_res="none required" 16547 else 16548 ac_res=-l$ac_lib 16549 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16550 fi 16551 if ac_fn_c_try_link "$LINENO"; then : 16552 ac_cv_search_opendir=$ac_res 16553 fi 16554 rm -f core conftest.err conftest.$ac_objext \ 16555 conftest$ac_exeext 16556 if test "${ac_cv_search_opendir+set}" = set; then : 16557 break 16558 fi 16559 done 16560 if test "${ac_cv_search_opendir+set}" = set; then : 16561 16562 else 16563 ac_cv_search_opendir=no 16564 fi 16565 rm conftest.$ac_ext 16566 LIBS=$ac_func_search_save_LIBS 16567 fi 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 16569 $as_echo "$ac_cv_search_opendir" >&6; } 16570 ac_res=$ac_cv_search_opendir 16571 if test "$ac_res" != no; then : 16572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16573 16574 fi 16575 16576 else 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 16578 $as_echo_n "checking for library containing opendir... " >&6; } 16579 if test "${ac_cv_search_opendir+set}" = set; then : 16580 $as_echo_n "(cached) " >&6 16581 else 16582 ac_func_search_save_LIBS=$LIBS 16583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16584 /* end confdefs.h. */ 16585 16586 /* Override any GCC internal prototype to avoid an error. 16587 Use char because int might match the return type of a GCC 16588 builtin and then its argument prototype would still apply. */ 16589 #ifdef __cplusplus 16590 extern "C" 16591 #endif 16592 char opendir (); 16593 int 16594 main () 16595 { 16596 return opendir (); 16597 ; 16598 return 0; 16599 } 16600 _ACEOF 16601 for ac_lib in '' x; do 16602 if test -z "$ac_lib"; then 16603 ac_res="none required" 16604 else 16605 ac_res=-l$ac_lib 16606 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16607 fi 16608 if ac_fn_c_try_link "$LINENO"; then : 16609 ac_cv_search_opendir=$ac_res 16610 fi 16611 rm -f core conftest.err conftest.$ac_objext \ 16612 conftest$ac_exeext 16613 if test "${ac_cv_search_opendir+set}" = set; then : 16614 break 16615 fi 16616 done 16617 if test "${ac_cv_search_opendir+set}" = set; then : 16618 16619 else 16620 ac_cv_search_opendir=no 16621 fi 16622 rm conftest.$ac_ext 16623 LIBS=$ac_func_search_save_LIBS 16624 fi 16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 16626 $as_echo "$ac_cv_search_opendir" >&6; } 16627 ac_res=$ac_cv_search_opendir 16628 if test "$ac_res" != no; then : 16629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16630 16631 fi 16632 16633 fi 16634 16635 16636 for ac_header in stdlib.h unistd.h 16637 do : 16638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16639 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16640 eval as_val=\$$as_ac_Header 16641 if test "x$as_val" = x""yes; then : 16642 cat >>confdefs.h <<_ACEOF 16643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16644 _ACEOF 16645 16646 fi 16647 16648 done 16649 16650 for ac_func in getpagesize 16651 do : 16652 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16653 if test "x$ac_cv_func_getpagesize" = x""yes; then : 16654 cat >>confdefs.h <<_ACEOF 16655 #define HAVE_GETPAGESIZE 1 16656 _ACEOF 16657 16658 fi 16659 done 16660 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 16662 $as_echo_n "checking for working mmap... " >&6; } 16663 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 16664 $as_echo_n "(cached) " >&6 16665 else 16666 if test "$cross_compiling" = yes; then : 16667 ac_cv_func_mmap_fixed_mapped=no 16668 else 16669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16670 /* end confdefs.h. */ 16671 $ac_includes_default 16672 /* malloc might have been renamed as rpl_malloc. */ 16673 #undef malloc 16674 16675 /* Thanks to Mike Haertel and Jim Avera for this test. 16676 Here is a matrix of mmap possibilities: 16677 mmap private not fixed 16678 mmap private fixed at somewhere currently unmapped 16679 mmap private fixed at somewhere already mapped 16680 mmap shared not fixed 16681 mmap shared fixed at somewhere currently unmapped 16682 mmap shared fixed at somewhere already mapped 16683 For private mappings, we should verify that changes cannot be read() 16684 back from the file, nor mmap's back from the file at a different 16685 address. (There have been systems where private was not correctly 16686 implemented like the infamous i386 svr4.0, and systems where the 16687 VM page cache was not coherent with the file system buffer cache 16688 like early versions of FreeBSD and possibly contemporary NetBSD.) 16689 For shared mappings, we should conversely verify that changes get 16690 propagated back to all the places they're supposed to be. 16691 16692 Grep wants private fixed already mapped. 16693 The main things grep needs to know about mmap are: 16694 * does it exist and is it safe to write into the mmap'd area 16695 * how to use it (BSD variants) */ 16696 16697 #include <fcntl.h> 16698 #include <sys/mman.h> 16699 16700 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16701 char *malloc (); 16702 #endif 16703 16704 /* This mess was copied from the GNU getpagesize.h. */ 16705 #ifndef HAVE_GETPAGESIZE 16706 /* Assume that all systems that can run configure have sys/param.h. */ 16707 # ifndef HAVE_SYS_PARAM_H 16708 # define HAVE_SYS_PARAM_H 1 16709 # endif 16710 16711 # ifdef _SC_PAGESIZE 16712 # define getpagesize() sysconf(_SC_PAGESIZE) 16713 # else /* no _SC_PAGESIZE */ 16714 # ifdef HAVE_SYS_PARAM_H 16715 # include <sys/param.h> 16716 # ifdef EXEC_PAGESIZE 16717 # define getpagesize() EXEC_PAGESIZE 16718 # else /* no EXEC_PAGESIZE */ 16719 # ifdef NBPG 16720 # define getpagesize() NBPG * CLSIZE 16721 # ifndef CLSIZE 16722 # define CLSIZE 1 16723 # endif /* no CLSIZE */ 16724 # else /* no NBPG */ 16725 # ifdef NBPC 16726 # define getpagesize() NBPC 16727 # else /* no NBPC */ 16728 # ifdef PAGESIZE 16729 # define getpagesize() PAGESIZE 16730 # endif /* PAGESIZE */ 16731 # endif /* no NBPC */ 16732 # endif /* no NBPG */ 16733 # endif /* no EXEC_PAGESIZE */ 16734 # else /* no HAVE_SYS_PARAM_H */ 16735 # define getpagesize() 8192 /* punt totally */ 16736 # endif /* no HAVE_SYS_PARAM_H */ 16737 # endif /* no _SC_PAGESIZE */ 16738 16739 #endif /* no HAVE_GETPAGESIZE */ 16740 16741 int 16742 main () 16743 { 16744 char *data, *data2, *data3; 16745 int i, pagesize; 16746 int fd; 16747 16748 pagesize = getpagesize (); 16749 16750 /* First, make a file with some known garbage in it. */ 16751 data = (char *) malloc (pagesize); 16752 if (!data) 16753 return 1; 16754 for (i = 0; i < pagesize; ++i) 16755 *(data + i) = rand (); 16756 umask (0); 16757 fd = creat ("conftest.mmap", 0600); 16758 if (fd < 0) 16759 return 1; 16760 if (write (fd, data, pagesize) != pagesize) 16761 return 1; 16762 close (fd); 16763 16764 /* Next, try to mmap the file at a fixed address which already has 16765 something else allocated at it. If we can, also make sure that 16766 we see the same garbage. */ 16767 fd = open ("conftest.mmap", O_RDWR); 16768 if (fd < 0) 16769 return 1; 16770 data2 = (char *) malloc (2 * pagesize); 16771 if (!data2) 16772 return 1; 16773 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 16774 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16775 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16776 return 1; 16777 for (i = 0; i < pagesize; ++i) 16778 if (*(data + i) != *(data2 + i)) 16779 return 1; 16780 16781 /* Finally, make sure that changes to the mapped area do not 16782 percolate back to the file as seen by read(). (This is a bug on 16783 some variants of i386 svr4.0.) */ 16784 for (i = 0; i < pagesize; ++i) 16785 *(data2 + i) = *(data2 + i) + 1; 16786 data3 = (char *) malloc (pagesize); 16787 if (!data3) 16788 return 1; 16789 if (read (fd, data3, pagesize) != pagesize) 16790 return 1; 16791 for (i = 0; i < pagesize; ++i) 16792 if (*(data + i) != *(data3 + i)) 16793 return 1; 16794 close (fd); 16795 return 0; 16796 } 16797 _ACEOF 16798 if ac_fn_c_try_run "$LINENO"; then : 16799 ac_cv_func_mmap_fixed_mapped=yes 16800 else 16801 ac_cv_func_mmap_fixed_mapped=no 16802 fi 16803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16804 conftest.$ac_objext conftest.beam conftest.$ac_ext 16805 fi 16806 16807 fi 16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 16809 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16810 if test $ac_cv_func_mmap_fixed_mapped = yes; then 16811 16812 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 16813 16814 fi 16815 rm -f conftest.mmap 16816 16817 16818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 16819 $as_echo_n "checking for library containing dlopen... " >&6; } 16820 if test "${ac_cv_search_dlopen+set}" = set; then : 16821 $as_echo_n "(cached) " >&6 16822 else 16823 ac_func_search_save_LIBS=$LIBS 16824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16825 /* end confdefs.h. */ 16826 16827 /* Override any GCC internal prototype to avoid an error. 16828 Use char because int might match the return type of a GCC 16829 builtin and then its argument prototype would still apply. */ 16830 #ifdef __cplusplus 16831 extern "C" 16832 #endif 16833 char dlopen (); 16834 int 16835 main () 16836 { 16837 return dlopen (); 16838 ; 16839 return 0; 16840 } 16841 _ACEOF 16842 for ac_lib in '' dl; do 16843 if test -z "$ac_lib"; then 16844 ac_res="none required" 16845 else 16846 ac_res=-l$ac_lib 16847 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16848 fi 16849 if ac_fn_c_try_link "$LINENO"; then : 16850 ac_cv_search_dlopen=$ac_res 16851 fi 16852 rm -f core conftest.err conftest.$ac_objext \ 16853 conftest$ac_exeext 16854 if test "${ac_cv_search_dlopen+set}" = set; then : 16855 break 16856 fi 16857 done 16858 if test "${ac_cv_search_dlopen+set}" = set; then : 16859 16860 else 16861 ac_cv_search_dlopen=no 16862 fi 16863 rm conftest.$ac_ext 16864 LIBS=$ac_func_search_save_LIBS 16865 fi 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 16867 $as_echo "$ac_cv_search_dlopen" >&6; } 16868 ac_res=$ac_cv_search_dlopen 16869 if test "$ac_res" != no; then : 16870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16871 16872 fi 16873 16874 if test x$plugins = xyes; then 16875 ENABLE_PLUGINS_TRUE= 16876 ENABLE_PLUGINS_FALSE='#' 16877 else 16878 ENABLE_PLUGINS_TRUE='#' 16879 ENABLE_PLUGINS_FALSE= 16880 fi 16881 16882 16883 # Check whether --enable-initfini-array was given. 16884 if test "${enable_initfini_array+set}" = set; then : 16885 enableval=$enable_initfini_array; case "${enableval}" in 16886 yes|no) ;; 16887 *) as_fn_error "invalid --enable-initfini-array argument" "$LINENO" 5 ;; 16888 esac 16889 else 16890 enable_initfini_array=yes 16891 fi 16892 16893 16894 if test $enable_initfini_array = yes; then 16895 16896 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h 16897 16898 fi 16899 16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5 16901 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; } 16902 if test "${ld_cv_decl_getopt_unistd_h+set}" = set; then : 16903 $as_echo_n "(cached) " >&6 16904 else 16905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16906 /* end confdefs.h. */ 16907 #include <unistd.h> 16908 int 16909 main () 16910 { 16911 extern int getopt (int, char *const*, const char *); 16912 ; 16913 return 0; 16914 } 16915 _ACEOF 16916 if ac_fn_c_try_compile "$LINENO"; then : 16917 ld_cv_decl_getopt_unistd_h=yes 16918 else 16919 ld_cv_decl_getopt_unistd_h=no 16920 fi 16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16922 fi 16923 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_decl_getopt_unistd_h" >&5 16925 $as_echo "$ld_cv_decl_getopt_unistd_h" >&6; } 16926 if test $ld_cv_decl_getopt_unistd_h = yes; then 16927 16928 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h 16929 16930 fi 16931 16932 16933 case "${host}" in 16934 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) 16935 16936 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h 16937 ;; 16938 esac 16939 16940 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default" 16941 if test "x$ac_cv_have_decl_strstr" = x""yes; then : 16942 ac_have_decl=1 16943 else 16944 ac_have_decl=0 16945 fi 16946 16947 cat >>confdefs.h <<_ACEOF 16948 #define HAVE_DECL_STRSTR $ac_have_decl 16949 _ACEOF 16950 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default" 16951 if test "x$ac_cv_have_decl_free" = x""yes; then : 16952 ac_have_decl=1 16953 else 16954 ac_have_decl=0 16955 fi 16956 16957 cat >>confdefs.h <<_ACEOF 16958 #define HAVE_DECL_FREE $ac_have_decl 16959 _ACEOF 16960 ac_fn_c_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" 16961 if test "x$ac_cv_have_decl_sbrk" = x""yes; then : 16962 ac_have_decl=1 16963 else 16964 ac_have_decl=0 16965 fi 16966 16967 cat >>confdefs.h <<_ACEOF 16968 #define HAVE_DECL_SBRK $ac_have_decl 16969 _ACEOF 16970 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" 16971 if test "x$ac_cv_have_decl_getenv" = x""yes; then : 16972 ac_have_decl=1 16973 else 16974 ac_have_decl=0 16975 fi 16976 16977 cat >>confdefs.h <<_ACEOF 16978 #define HAVE_DECL_GETENV $ac_have_decl 16979 _ACEOF 16980 ac_fn_c_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" "$ac_includes_default" 16981 if test "x$ac_cv_have_decl_environ" = x""yes; then : 16982 ac_have_decl=1 16983 else 16984 ac_have_decl=0 16985 fi 16986 16987 cat >>confdefs.h <<_ACEOF 16988 #define HAVE_DECL_ENVIRON $ac_have_decl 16989 _ACEOF 16990 16991 16992 # When converting linker scripts into strings for use in emulation 16993 # files, use astring.sed if the compiler supports ANSI string 16994 # concatenation, or ostring.sed otherwise. This is to support the 16995 # broken Microsoft MSVC compiler, which limits the length of string 16996 # constants, while still supporting pre-ANSI compilers which do not 16997 # support string concatenation. 16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ANSI C string concatenation works" >&5 16999 $as_echo_n "checking whether ANSI C string concatenation works... " >&6; } 17000 if test "${ld_cv_string_concatenation+set}" = set; then : 17001 $as_echo_n "(cached) " >&6 17002 else 17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004 /* end confdefs.h. */ 17005 17006 int 17007 main () 17008 { 17009 char *a = "a" "a"; 17010 ; 17011 return 0; 17012 } 17013 _ACEOF 17014 if ac_fn_c_try_compile "$LINENO"; then : 17015 ld_cv_string_concatenation=yes 17016 else 17017 ld_cv_string_concatenation=no 17018 fi 17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17020 fi 17021 17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_cv_string_concatenation" >&5 17023 $as_echo "$ld_cv_string_concatenation" >&6; } 17024 if test "$ld_cv_string_concatenation" = "yes"; then 17025 STRINGIFY=astring.sed 17026 else 17027 STRINGIFY=ostring.sed 17028 fi 17029 17030 17031 # target-specific stuff: 17032 17033 all_targets= 17034 EMUL= 17035 all_emuls= 17036 all_emul_extras= 17037 all_libpath= 17038 17039 rm -f tdirs 17040 17041 # If the host is 64-bit, then we enable 64-bit targets by default. 17042 # This is consistent with what ../bfd/configure.ac does. 17043 if test x${want64} = xfalse; then 17044 # The cast to long int works around a bug in the HP C Compiler 17045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 17046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 17047 # This bug is HP SR number 8606223364. 17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 17049 $as_echo_n "checking size of void *... " >&6; } 17050 if test "${ac_cv_sizeof_void_p+set}" = set; then : 17051 $as_echo_n "(cached) " >&6 17052 else 17053 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 17054 17055 else 17056 if test "$ac_cv_type_void_p" = yes; then 17057 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 17058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 17059 { as_fn_set_status 77 17060 as_fn_error "cannot compute sizeof (void *) 17061 See \`config.log' for more details." "$LINENO" 5; }; } 17062 else 17063 ac_cv_sizeof_void_p=0 17064 fi 17065 fi 17066 17067 fi 17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 17069 $as_echo "$ac_cv_sizeof_void_p" >&6; } 17070 17071 17072 17073 cat >>confdefs.h <<_ACEOF 17074 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p 17075 _ACEOF 17076 17077 17078 if test "x${ac_cv_sizeof_void_p}" = "x8"; then 17079 want64=true 17080 fi 17081 fi 17082 17083 elf_list_options=FALSE 17084 elf_shlib_list_options=FALSE 17085 elf_plt_unwind_list_options=FALSE 17086 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'` 17087 do 17088 if test "$targ_alias" = "all"; then 17089 all_targets=true 17090 elf_list_options=TRUE 17091 elf_shlib_list_options=TRUE 17092 elf_plt_unwind_list_options=TRUE 17093 else 17094 # Canonicalize the secondary target names. 17095 result=`$ac_config_sub $targ_alias 2>/dev/null` 17096 if test -n "$result"; then 17097 targ=$result 17098 else 17099 targ=$targ_alias 17100 fi 17101 17102 . ${srcdir}/configure.tgt 17103 17104 if test "$targ" = "$target"; then 17105 EMUL=$targ_emul 17106 fi 17107 17108 if test x${want64} = xfalse; then 17109 . ${srcdir}/../bfd/config.bfd 17110 fi 17111 17112 if test x${want64} = xtrue; then 17113 targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls" 17114 targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath" 17115 fi 17116 17117 for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do 17118 case " $all_emuls " in 17119 *" e${i}.o "*) ;; 17120 *) 17121 all_emuls="$all_emuls e${i}.o" 17122 eval result=\$tdir_$i 17123 test -z "$result" && result=$targ_alias 17124 echo tdir_$i=$result >> tdirs 17125 case "${i}" in 17126 *elf*) 17127 elf_list_options=TRUE 17128 ;; 17129 *) 17130 if $GREP "TEMPLATE_NAME=elf32" ${srcdir}/emulparams/${i}.sh >/dev/null 2>/dev/null; then 17131 elf_list_options=TRUE 17132 fi 17133 ;; 17134 esac 17135 if test "$elf_list_options" = "TRUE"; then 17136 . ${srcdir}/emulparams/${i}.sh 17137 if test x${GENERATE_SHLIB_SCRIPT} = xyes; then 17138 elf_shlib_list_options=TRUE 17139 fi 17140 if test x${PLT_UNWIND} = xyes; then 17141 elf_plt_unwind_list_options=TRUE 17142 fi 17143 fi 17144 ;; 17145 esac 17146 done 17147 17148 for i in $targ_emul $targ_extra_libpath; do 17149 case " $all_libpath " in 17150 *" ${i} "*) ;; 17151 *) 17152 if test -z "$all_libpath"; then 17153 all_libpath=${i} 17154 else 17155 all_libpath="$all_libpath ${i}" 17156 fi 17157 ;; 17158 esac 17159 done 17160 17161 for i in $targ_extra_ofiles; do 17162 case " $all_emul_extras " in 17163 *" ${i} "*) ;; 17164 *) 17165 all_emul_extras="$all_emul_extras ${i}" 17166 ;; 17167 esac 17168 done 17169 17170 fi 17171 done 17172 17173 if test x$ac_default_compressed_debug_sections = xyes ; then 17174 17175 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h 17176 17177 fi 17178 17179 if test "${ac_default_ld_z_relro}" = unset; then 17180 ac_default_ld_z_relro=0 17181 fi 17182 17183 cat >>confdefs.h <<_ACEOF 17184 #define DEFAULT_LD_Z_RELRO $ac_default_ld_z_relro 17185 _ACEOF 17186 17187 17188 17189 17190 17191 17192 17193 TDIRS=tdirs 17194 17195 17196 if test x${all_targets} = xtrue; then 17197 if test x${want64} = xtrue; then 17198 EMULATION_OFILES='$(ALL_EMULATIONS) $(ALL_64_EMULATIONS)' 17199 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES) $(ALL_64_EMUL_EXTRA_OFILES)' 17200 else 17201 EMULATION_OFILES='$(ALL_EMULATIONS)' 17202 EMUL_EXTRA_OFILES='$(ALL_EMUL_EXTRA_OFILES)' 17203 fi 17204 else 17205 EMULATION_OFILES=$all_emuls 17206 EMUL_EXTRA_OFILES=$all_emul_extras 17207 fi 17208 17209 17210 17211 17212 EMULATION_LIBPATH=$all_libpath 17213 17214 17215 if test x${enable_static} = xno; then 17216 TESTBFDLIB="--rpath ../bfd/.libs ../bfd/.libs/libbfd.so" 17217 else 17218 TESTBFDLIB="../bfd/.libs/libbfd.a" 17219 fi 17220 17221 17222 target_vendor=${target_vendor=$host_vendor} 17223 case "$target_vendor" in 17224 hp) EXTRA_SHLIB_EXTENSION=".sl" ;; 17225 *) EXTRA_SHLIB_EXTENSION= ;; 17226 esac 17227 17228 case "$target_os" in 17229 lynxos) EXTRA_SHLIB_EXTENSION=".a" ;; 17230 esac 17231 17232 if test x${EXTRA_SHLIB_EXTENSION} != x ; then 17233 17234 cat >>confdefs.h <<_ACEOF 17235 #define EXTRA_SHLIB_EXTENSION "$EXTRA_SHLIB_EXTENSION" 17236 _ACEOF 17237 17238 fi 17239 17240 17241 17242 17243 17244 17245 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" 17246 17247 cat >confcache <<\_ACEOF 17248 # This file is a shell script that caches the results of configure 17249 # tests run on this system so they can be shared between configure 17250 # scripts and configure runs, see configure's option --config-cache. 17251 # It is not useful on other systems. If it contains results you don't 17252 # want to keep, you may remove or edit it. 17253 # 17254 # config.status only pays attention to the cache file if you give it 17255 # the --recheck option to rerun configure. 17256 # 17257 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17258 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17259 # following values. 17260 17261 _ACEOF 17262 17263 # The following way of writing the cache mishandles newlines in values, 17264 # but we know of no workaround that is simple, portable, and efficient. 17265 # So, we kill variables containing newlines. 17266 # Ultrix sh set writes to stderr and can't be redirected directly, 17267 # and sets the high bit in the cache file unless we assign to the vars. 17268 ( 17269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17270 eval ac_val=\$$ac_var 17271 case $ac_val in #( 17272 *${as_nl}*) 17273 case $ac_var in #( 17274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17276 esac 17277 case $ac_var in #( 17278 _ | IFS | as_nl) ;; #( 17279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17280 *) { eval $ac_var=; unset $ac_var;} ;; 17281 esac ;; 17282 esac 17283 done 17284 17285 (set) 2>&1 | 17286 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17287 *${as_nl}ac_space=\ *) 17288 # `set' does not quote correctly, so add quotes: double-quote 17289 # substitution turns \\\\ into \\, and sed turns \\ into \. 17290 sed -n \ 17291 "s/'/'\\\\''/g; 17292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17293 ;; #( 17294 *) 17295 # `set' quotes correctly as required by POSIX, so do not add quotes. 17296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17297 ;; 17298 esac | 17299 sort 17300 ) | 17301 sed ' 17302 /^ac_cv_env_/b end 17303 t clear 17304 :clear 17305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17306 t end 17307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17308 :end' >>confcache 17309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17310 if test -w "$cache_file"; then 17311 test "x$cache_file" != "x/dev/null" && 17312 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17313 $as_echo "$as_me: updating cache $cache_file" >&6;} 17314 cat confcache >$cache_file 17315 else 17316 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17317 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17318 fi 17319 fi 17320 rm -f confcache 17321 17322 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17323 # Let make expand exec_prefix. 17324 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17325 17326 DEFS=-DHAVE_CONFIG_H 17327 17328 ac_libobjs= 17329 ac_ltlibobjs= 17330 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17331 # 1. Remove the extension, and $U if already installed. 17332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17335 # will be set to the directory where LIBOBJS objects are built. 17336 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17337 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17338 done 17339 LIBOBJS=$ac_libobjs 17340 17341 LTLIBOBJS=$ac_ltlibobjs 17342 17343 17344 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17345 as_fn_error "conditional \"AMDEP\" was never defined. 17346 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17347 fi 17348 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17349 as_fn_error "conditional \"am__fastdepCC\" was never defined. 17350 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17351 fi 17352 if test -n "$EXEEXT"; then 17353 am__EXEEXT_TRUE= 17354 am__EXEEXT_FALSE='#' 17355 else 17356 am__EXEEXT_TRUE='#' 17357 am__EXEEXT_FALSE= 17358 fi 17359 17360 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17361 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 17362 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17363 fi 17364 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17365 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 17366 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17367 fi 17368 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17369 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 17370 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17371 fi 17372 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then 17373 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined. 17374 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17375 fi 17376 if test -z "${ENABLE_PLUGINS_TRUE}" && test -z "${ENABLE_PLUGINS_FALSE}"; then 17377 as_fn_error "conditional \"ENABLE_PLUGINS\" was never defined. 17378 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17379 fi 17380 17381 : ${CONFIG_STATUS=./config.status} 17382 ac_write_fail=0 17383 ac_clean_files_save=$ac_clean_files 17384 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17386 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17387 as_write_fail=0 17388 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17389 #! $SHELL 17390 # Generated by $as_me. 17391 # Run this file to recreate the current configuration. 17392 # Compiler output produced by configure, useful for debugging 17393 # configure, is in config.log if it exists. 17394 17395 debug=false 17396 ac_cs_recheck=false 17397 ac_cs_silent=false 17398 17399 SHELL=\${CONFIG_SHELL-$SHELL} 17400 export SHELL 17401 _ASEOF 17402 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17403 ## -------------------- ## 17404 ## M4sh Initialization. ## 17405 ## -------------------- ## 17406 17407 # Be more Bourne compatible 17408 DUALCASE=1; export DUALCASE # for MKS sh 17409 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17410 emulate sh 17411 NULLCMD=: 17412 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17413 # is contrary to our usage. Disable this feature. 17414 alias -g '${1+"$@"}'='"$@"' 17415 setopt NO_GLOB_SUBST 17416 else 17417 case `(set -o) 2>/dev/null` in #( 17418 *posix*) : 17419 set -o posix ;; #( 17420 *) : 17421 ;; 17422 esac 17423 fi 17424 17425 17426 as_nl=' 17427 ' 17428 export as_nl 17429 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17430 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17431 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17432 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17433 # Prefer a ksh shell builtin over an external printf program on Solaris, 17434 # but without wasting forks for bash or zsh. 17435 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17436 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17437 as_echo='print -r --' 17438 as_echo_n='print -rn --' 17439 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17440 as_echo='printf %s\n' 17441 as_echo_n='printf %s' 17442 else 17443 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17444 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17445 as_echo_n='/usr/ucb/echo -n' 17446 else 17447 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17448 as_echo_n_body='eval 17449 arg=$1; 17450 case $arg in #( 17451 *"$as_nl"*) 17452 expr "X$arg" : "X\\(.*\\)$as_nl"; 17453 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17454 esac; 17455 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17456 ' 17457 export as_echo_n_body 17458 as_echo_n='sh -c $as_echo_n_body as_echo' 17459 fi 17460 export as_echo_body 17461 as_echo='sh -c $as_echo_body as_echo' 17462 fi 17463 17464 # The user is always right. 17465 if test "${PATH_SEPARATOR+set}" != set; then 17466 PATH_SEPARATOR=: 17467 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17468 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17469 PATH_SEPARATOR=';' 17470 } 17471 fi 17472 17473 17474 # IFS 17475 # We need space, tab and new line, in precisely that order. Quoting is 17476 # there to prevent editors from complaining about space-tab. 17477 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17478 # splitting by setting IFS to empty value.) 17479 IFS=" "" $as_nl" 17480 17481 # Find who we are. Look in the path if we contain no directory separator. 17482 case $0 in #(( 17483 *[\\/]* ) as_myself=$0 ;; 17484 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17485 for as_dir in $PATH 17486 do 17487 IFS=$as_save_IFS 17488 test -z "$as_dir" && as_dir=. 17489 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17490 done 17491 IFS=$as_save_IFS 17492 17493 ;; 17494 esac 17495 # We did not find ourselves, most probably we were run as `sh COMMAND' 17496 # in which case we are not to be found in the path. 17497 if test "x$as_myself" = x; then 17498 as_myself=$0 17499 fi 17500 if test ! -f "$as_myself"; then 17501 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17502 exit 1 17503 fi 17504 17505 # Unset variables that we do not need and which cause bugs (e.g. in 17506 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17507 # suppresses any "Segmentation fault" message there. '((' could 17508 # trigger a bug in pdksh 5.2.14. 17509 for as_var in BASH_ENV ENV MAIL MAILPATH 17510 do eval test x\${$as_var+set} = xset \ 17511 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17512 done 17513 PS1='$ ' 17514 PS2='> ' 17515 PS4='+ ' 17516 17517 # NLS nuisances. 17518 LC_ALL=C 17519 export LC_ALL 17520 LANGUAGE=C 17521 export LANGUAGE 17522 17523 # CDPATH. 17524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17525 17526 17527 # as_fn_error ERROR [LINENO LOG_FD] 17528 # --------------------------------- 17529 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17530 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17531 # script with status $?, using 1 if that was 0. 17532 as_fn_error () 17533 { 17534 as_status=$?; test $as_status -eq 0 && as_status=1 17535 if test "$3"; then 17536 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17537 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 17538 fi 17539 $as_echo "$as_me: error: $1" >&2 17540 as_fn_exit $as_status 17541 } # as_fn_error 17542 17543 17544 # as_fn_set_status STATUS 17545 # ----------------------- 17546 # Set $? to STATUS, without forking. 17547 as_fn_set_status () 17548 { 17549 return $1 17550 } # as_fn_set_status 17551 17552 # as_fn_exit STATUS 17553 # ----------------- 17554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17555 as_fn_exit () 17556 { 17557 set +e 17558 as_fn_set_status $1 17559 exit $1 17560 } # as_fn_exit 17561 17562 # as_fn_unset VAR 17563 # --------------- 17564 # Portably unset VAR. 17565 as_fn_unset () 17566 { 17567 { eval $1=; unset $1;} 17568 } 17569 as_unset=as_fn_unset 17570 # as_fn_append VAR VALUE 17571 # ---------------------- 17572 # Append the text in VALUE to the end of the definition contained in VAR. Take 17573 # advantage of any shell optimizations that allow amortized linear growth over 17574 # repeated appends, instead of the typical quadratic growth present in naive 17575 # implementations. 17576 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17577 eval 'as_fn_append () 17578 { 17579 eval $1+=\$2 17580 }' 17581 else 17582 as_fn_append () 17583 { 17584 eval $1=\$$1\$2 17585 } 17586 fi # as_fn_append 17587 17588 # as_fn_arith ARG... 17589 # ------------------ 17590 # Perform arithmetic evaluation on the ARGs, and store the result in the 17591 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17592 # must be portable across $(()) and expr. 17593 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17594 eval 'as_fn_arith () 17595 { 17596 as_val=$(( $* )) 17597 }' 17598 else 17599 as_fn_arith () 17600 { 17601 as_val=`expr "$@" || test $? -eq 1` 17602 } 17603 fi # as_fn_arith 17604 17605 17606 if expr a : '\(a\)' >/dev/null 2>&1 && 17607 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17608 as_expr=expr 17609 else 17610 as_expr=false 17611 fi 17612 17613 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17614 as_basename=basename 17615 else 17616 as_basename=false 17617 fi 17618 17619 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17620 as_dirname=dirname 17621 else 17622 as_dirname=false 17623 fi 17624 17625 as_me=`$as_basename -- "$0" || 17626 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17627 X"$0" : 'X\(//\)$' \| \ 17628 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17629 $as_echo X/"$0" | 17630 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17631 s//\1/ 17632 q 17633 } 17634 /^X\/\(\/\/\)$/{ 17635 s//\1/ 17636 q 17637 } 17638 /^X\/\(\/\).*/{ 17639 s//\1/ 17640 q 17641 } 17642 s/.*/./; q'` 17643 17644 # Avoid depending upon Character Ranges. 17645 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17646 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17647 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17648 as_cr_digits='0123456789' 17649 as_cr_alnum=$as_cr_Letters$as_cr_digits 17650 17651 ECHO_C= ECHO_N= ECHO_T= 17652 case `echo -n x` in #((((( 17653 -n*) 17654 case `echo 'xy\c'` in 17655 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17656 xy) ECHO_C='\c';; 17657 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17658 ECHO_T=' ';; 17659 esac;; 17660 *) 17661 ECHO_N='-n';; 17662 esac 17663 17664 rm -f conf$$ conf$$.exe conf$$.file 17665 if test -d conf$$.dir; then 17666 rm -f conf$$.dir/conf$$.file 17667 else 17668 rm -f conf$$.dir 17669 mkdir conf$$.dir 2>/dev/null 17670 fi 17671 if (echo >conf$$.file) 2>/dev/null; then 17672 if ln -s conf$$.file conf$$ 2>/dev/null; then 17673 as_ln_s='ln -s' 17674 # ... but there are two gotchas: 17675 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17676 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17677 # In both cases, we have to default to `cp -p'. 17678 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17679 as_ln_s='cp -p' 17680 elif ln conf$$.file conf$$ 2>/dev/null; then 17681 as_ln_s=ln 17682 else 17683 as_ln_s='cp -p' 17684 fi 17685 else 17686 as_ln_s='cp -p' 17687 fi 17688 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17689 rmdir conf$$.dir 2>/dev/null 17690 17691 17692 # as_fn_mkdir_p 17693 # ------------- 17694 # Create "$as_dir" as a directory, including parents if necessary. 17695 as_fn_mkdir_p () 17696 { 17697 17698 case $as_dir in #( 17699 -*) as_dir=./$as_dir;; 17700 esac 17701 test -d "$as_dir" || eval $as_mkdir_p || { 17702 as_dirs= 17703 while :; do 17704 case $as_dir in #( 17705 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17706 *) as_qdir=$as_dir;; 17707 esac 17708 as_dirs="'$as_qdir' $as_dirs" 17709 as_dir=`$as_dirname -- "$as_dir" || 17710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17711 X"$as_dir" : 'X\(//\)[^/]' \| \ 17712 X"$as_dir" : 'X\(//\)$' \| \ 17713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17714 $as_echo X"$as_dir" | 17715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17716 s//\1/ 17717 q 17718 } 17719 /^X\(\/\/\)[^/].*/{ 17720 s//\1/ 17721 q 17722 } 17723 /^X\(\/\/\)$/{ 17724 s//\1/ 17725 q 17726 } 17727 /^X\(\/\).*/{ 17728 s//\1/ 17729 q 17730 } 17731 s/.*/./; q'` 17732 test -d "$as_dir" && break 17733 done 17734 test -z "$as_dirs" || eval "mkdir $as_dirs" 17735 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 17736 17737 17738 } # as_fn_mkdir_p 17739 if mkdir -p . 2>/dev/null; then 17740 as_mkdir_p='mkdir -p "$as_dir"' 17741 else 17742 test -d ./-p && rmdir ./-p 17743 as_mkdir_p=false 17744 fi 17745 17746 if test -x / >/dev/null 2>&1; then 17747 as_test_x='test -x' 17748 else 17749 if ls -dL / >/dev/null 2>&1; then 17750 as_ls_L_option=L 17751 else 17752 as_ls_L_option= 17753 fi 17754 as_test_x=' 17755 eval sh -c '\'' 17756 if test -d "$1"; then 17757 test -d "$1/."; 17758 else 17759 case $1 in #( 17760 -*)set "./$1";; 17761 esac; 17762 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 17763 ???[sx]*):;;*)false;;esac;fi 17764 '\'' sh 17765 ' 17766 fi 17767 as_executable_p=$as_test_x 17768 17769 # Sed expression to map a string onto a valid CPP name. 17770 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17771 17772 # Sed expression to map a string onto a valid variable name. 17773 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17774 17775 17776 exec 6>&1 17777 ## ----------------------------------- ## 17778 ## Main body of $CONFIG_STATUS script. ## 17779 ## ----------------------------------- ## 17780 _ASEOF 17781 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17782 17783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17784 # Save the log message, to keep $0 and so on meaningful, and to 17785 # report actual input values of CONFIG_FILES etc. instead of their 17786 # values after options handling. 17787 ac_log=" 17788 This file was extended by ld $as_me 2.27.0, which was 17789 generated by GNU Autoconf 2.64. Invocation command line was 17790 17791 CONFIG_FILES = $CONFIG_FILES 17792 CONFIG_HEADERS = $CONFIG_HEADERS 17793 CONFIG_LINKS = $CONFIG_LINKS 17794 CONFIG_COMMANDS = $CONFIG_COMMANDS 17795 $ $0 $@ 17796 17797 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17798 " 17799 17800 _ACEOF 17801 17802 case $ac_config_files in *" 17803 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17804 esac 17805 17806 case $ac_config_headers in *" 17807 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17808 esac 17809 17810 17811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17812 # Files that config.status was made for. 17813 config_files="$ac_config_files" 17814 config_headers="$ac_config_headers" 17815 config_commands="$ac_config_commands" 17816 17817 _ACEOF 17818 17819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17820 ac_cs_usage="\ 17821 \`$as_me' instantiates files and other configuration actions 17822 from templates according to the current configuration. Unless the files 17823 and actions are specified as TAGs, all are instantiated by default. 17824 17825 Usage: $0 [OPTION]... [TAG]... 17826 17827 -h, --help print this help, then exit 17828 -V, --version print version number and configuration settings, then exit 17829 -q, --quiet, --silent 17830 do not print progress messages 17831 -d, --debug don't remove temporary files 17832 --recheck update $as_me by reconfiguring in the same conditions 17833 --file=FILE[:TEMPLATE] 17834 instantiate the configuration file FILE 17835 --header=FILE[:TEMPLATE] 17836 instantiate the configuration header FILE 17837 17838 Configuration files: 17839 $config_files 17840 17841 Configuration headers: 17842 $config_headers 17843 17844 Configuration commands: 17845 $config_commands 17846 17847 Report bugs to the package provider." 17848 17849 _ACEOF 17850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17851 ac_cs_version="\\ 17852 ld config.status 2.27.0 17853 configured by $0, generated by GNU Autoconf 2.64, 17854 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 17855 17856 Copyright (C) 2009 Free Software Foundation, Inc. 17857 This config.status script is free software; the Free Software Foundation 17858 gives unlimited permission to copy, distribute and modify it." 17859 17860 ac_pwd='$ac_pwd' 17861 srcdir='$srcdir' 17862 INSTALL='$INSTALL' 17863 MKDIR_P='$MKDIR_P' 17864 AWK='$AWK' 17865 test -n "\$AWK" || AWK=awk 17866 _ACEOF 17867 17868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17869 # The default lists apply if the user does not specify any file. 17870 ac_need_defaults=: 17871 while test $# != 0 17872 do 17873 case $1 in 17874 --*=*) 17875 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17877 ac_shift=: 17878 ;; 17879 *) 17880 ac_option=$1 17881 ac_optarg=$2 17882 ac_shift=shift 17883 ;; 17884 esac 17885 17886 case $ac_option in 17887 # Handling of the options. 17888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17889 ac_cs_recheck=: ;; 17890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17891 $as_echo "$ac_cs_version"; exit ;; 17892 --debug | --debu | --deb | --de | --d | -d ) 17893 debug=: ;; 17894 --file | --fil | --fi | --f ) 17895 $ac_shift 17896 case $ac_optarg in 17897 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17898 esac 17899 as_fn_append CONFIG_FILES " '$ac_optarg'" 17900 ac_need_defaults=false;; 17901 --header | --heade | --head | --hea ) 17902 $ac_shift 17903 case $ac_optarg in 17904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17905 esac 17906 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17907 ac_need_defaults=false;; 17908 --he | --h) 17909 # Conflict between --help and --header 17910 as_fn_error "ambiguous option: \`$1' 17911 Try \`$0 --help' for more information.";; 17912 --help | --hel | -h ) 17913 $as_echo "$ac_cs_usage"; exit ;; 17914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17915 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17916 ac_cs_silent=: ;; 17917 17918 # This is an error. 17919 -*) as_fn_error "unrecognized option: \`$1' 17920 Try \`$0 --help' for more information." ;; 17921 17922 *) as_fn_append ac_config_targets " $1" 17923 ac_need_defaults=false ;; 17924 17925 esac 17926 shift 17927 done 17928 17929 ac_configure_extra_args= 17930 17931 if $ac_cs_silent; then 17932 exec 6>/dev/null 17933 ac_configure_extra_args="$ac_configure_extra_args --silent" 17934 fi 17935 17936 _ACEOF 17937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17938 if \$ac_cs_recheck; then 17939 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17940 shift 17941 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17942 CONFIG_SHELL='$SHELL' 17943 export CONFIG_SHELL 17944 exec "\$@" 17945 fi 17946 17947 _ACEOF 17948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17949 exec 5>>config.log 17950 { 17951 echo 17952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17953 ## Running $as_me. ## 17954 _ASBOX 17955 $as_echo "$ac_log" 17956 } >&5 17957 17958 _ACEOF 17959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17960 # 17961 # INIT-COMMANDS 17962 # 17963 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17964 17965 17966 # The HP-UX ksh and POSIX shell print the target directory to stdout 17967 # if CDPATH is set. 17968 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17969 17970 sed_quote_subst='$sed_quote_subst' 17971 double_quote_subst='$double_quote_subst' 17972 delay_variable_subst='$delay_variable_subst' 17973 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17974 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17975 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17976 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17977 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17978 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17979 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17980 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17981 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17982 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17983 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17984 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17985 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17986 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17987 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17988 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17989 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17990 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17991 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17992 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17993 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17994 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17995 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17996 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17997 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17998 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17999 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18000 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18001 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18002 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18003 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18004 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18005 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18006 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18007 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18008 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18009 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18010 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18011 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18012 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18013 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18014 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18015 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18016 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18017 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18018 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18019 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18020 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18021 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"`' 18022 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18023 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18024 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18025 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18026 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18027 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18028 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18029 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18030 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18031 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18032 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18033 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18034 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18035 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18036 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18037 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18038 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18039 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18040 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18041 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18042 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18043 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18044 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18045 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18046 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18047 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18048 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18049 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18050 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18051 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18052 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18053 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18054 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18055 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18056 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18057 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18058 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18059 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18060 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18061 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18062 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 18063 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18064 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18065 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18066 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18067 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18068 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18069 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18070 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18071 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18072 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18073 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18074 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18075 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18076 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18077 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18078 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18079 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18080 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18081 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18082 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18083 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18084 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18085 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18086 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18087 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18088 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18089 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18090 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18091 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18092 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18093 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18094 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18095 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18096 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18097 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18098 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18099 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18100 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18101 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18102 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18103 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18104 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18105 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18106 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18107 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18108 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18109 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18110 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18111 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18112 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18113 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18114 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18115 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18116 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18117 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18118 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18119 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18120 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18121 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18122 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18123 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18124 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18125 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 18126 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18127 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18128 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18129 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18130 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18131 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18132 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18133 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18134 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 18135 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18136 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18137 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18138 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18139 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18140 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18141 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18142 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18143 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18144 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18145 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18146 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18147 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18148 18149 LTCC='$LTCC' 18150 LTCFLAGS='$LTCFLAGS' 18151 compiler='$compiler_DEFAULT' 18152 18153 # A function that is used when there is no print builtin or printf. 18154 func_fallback_echo () 18155 { 18156 eval 'cat <<_LTECHO_EOF 18157 \$1 18158 _LTECHO_EOF' 18159 } 18160 18161 # Quote evaled strings. 18162 for var in SHELL \ 18163 ECHO \ 18164 SED \ 18165 GREP \ 18166 EGREP \ 18167 FGREP \ 18168 LD \ 18169 NM \ 18170 LN_S \ 18171 lt_SP2NL \ 18172 lt_NL2SP \ 18173 reload_flag \ 18174 OBJDUMP \ 18175 deplibs_check_method \ 18176 file_magic_cmd \ 18177 AR \ 18178 AR_FLAGS \ 18179 STRIP \ 18180 RANLIB \ 18181 CC \ 18182 CFLAGS \ 18183 compiler \ 18184 lt_cv_sys_global_symbol_pipe \ 18185 lt_cv_sys_global_symbol_to_cdecl \ 18186 lt_cv_sys_global_symbol_to_c_name_address \ 18187 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18188 lt_prog_compiler_no_builtin_flag \ 18189 lt_prog_compiler_wl \ 18190 lt_prog_compiler_pic \ 18191 lt_prog_compiler_static \ 18192 lt_cv_prog_compiler_c_o \ 18193 need_locks \ 18194 DSYMUTIL \ 18195 NMEDIT \ 18196 LIPO \ 18197 OTOOL \ 18198 OTOOL64 \ 18199 shrext_cmds \ 18200 export_dynamic_flag_spec \ 18201 whole_archive_flag_spec \ 18202 compiler_needs_object \ 18203 with_gnu_ld \ 18204 allow_undefined_flag \ 18205 no_undefined_flag \ 18206 hardcode_libdir_flag_spec \ 18207 hardcode_libdir_flag_spec_ld \ 18208 hardcode_libdir_separator \ 18209 fix_srcfile_path \ 18210 exclude_expsyms \ 18211 include_expsyms \ 18212 file_list_spec \ 18213 variables_saved_for_relink \ 18214 libname_spec \ 18215 library_names_spec \ 18216 soname_spec \ 18217 install_override_mode \ 18218 finish_eval \ 18219 old_striplib \ 18220 striplib \ 18221 compiler_lib_search_dirs \ 18222 predep_objects \ 18223 postdep_objects \ 18224 predeps \ 18225 postdeps \ 18226 compiler_lib_search_path \ 18227 LD_CXX \ 18228 reload_flag_CXX \ 18229 compiler_CXX \ 18230 lt_prog_compiler_no_builtin_flag_CXX \ 18231 lt_prog_compiler_wl_CXX \ 18232 lt_prog_compiler_pic_CXX \ 18233 lt_prog_compiler_static_CXX \ 18234 lt_cv_prog_compiler_c_o_CXX \ 18235 export_dynamic_flag_spec_CXX \ 18236 whole_archive_flag_spec_CXX \ 18237 compiler_needs_object_CXX \ 18238 with_gnu_ld_CXX \ 18239 allow_undefined_flag_CXX \ 18240 no_undefined_flag_CXX \ 18241 hardcode_libdir_flag_spec_CXX \ 18242 hardcode_libdir_flag_spec_ld_CXX \ 18243 hardcode_libdir_separator_CXX \ 18244 fix_srcfile_path_CXX \ 18245 exclude_expsyms_CXX \ 18246 include_expsyms_CXX \ 18247 file_list_spec_CXX \ 18248 compiler_lib_search_dirs_CXX \ 18249 predep_objects_CXX \ 18250 postdep_objects_CXX \ 18251 predeps_CXX \ 18252 postdeps_CXX \ 18253 compiler_lib_search_path_CXX; do 18254 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18255 *[\\\\\\\`\\"\\\$]*) 18256 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18257 ;; 18258 *) 18259 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18260 ;; 18261 esac 18262 done 18263 18264 # Double-quote double-evaled strings. 18265 for var in reload_cmds \ 18266 old_postinstall_cmds \ 18267 old_postuninstall_cmds \ 18268 old_archive_cmds \ 18269 extract_expsyms_cmds \ 18270 old_archive_from_new_cmds \ 18271 old_archive_from_expsyms_cmds \ 18272 archive_cmds \ 18273 archive_expsym_cmds \ 18274 module_cmds \ 18275 module_expsym_cmds \ 18276 export_symbols_cmds \ 18277 prelink_cmds \ 18278 postinstall_cmds \ 18279 postuninstall_cmds \ 18280 finish_cmds \ 18281 sys_lib_search_path_spec \ 18282 sys_lib_dlsearch_path_spec \ 18283 reload_cmds_CXX \ 18284 old_archive_cmds_CXX \ 18285 old_archive_from_new_cmds_CXX \ 18286 old_archive_from_expsyms_cmds_CXX \ 18287 archive_cmds_CXX \ 18288 archive_expsym_cmds_CXX \ 18289 module_cmds_CXX \ 18290 module_expsym_cmds_CXX \ 18291 export_symbols_cmds_CXX \ 18292 prelink_cmds_CXX; do 18293 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18294 *[\\\\\\\`\\"\\\$]*) 18295 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18296 ;; 18297 *) 18298 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18299 ;; 18300 esac 18301 done 18302 18303 ac_aux_dir='$ac_aux_dir' 18304 xsi_shell='$xsi_shell' 18305 lt_shell_append='$lt_shell_append' 18306 18307 # See if we are running on zsh, and set the options which allow our 18308 # commands through without removal of \ escapes INIT. 18309 if test -n "\${ZSH_VERSION+set}" ; then 18310 setopt NO_GLOB_SUBST 18311 fi 18312 18313 18314 PACKAGE='$PACKAGE' 18315 VERSION='$VERSION' 18316 TIMESTAMP='$TIMESTAMP' 18317 RM='$RM' 18318 ofile='$ofile' 18319 18320 18321 18322 18323 18324 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 18325 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 18326 # from automake. 18327 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 18328 # Capture the value of LINGUAS because we need it to compute CATALOGS. 18329 LINGUAS="${LINGUAS-%UNSET%}" 18330 18331 18332 _ACEOF 18333 18334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18335 18336 # Handling of arguments. 18337 for ac_config_target in $ac_config_targets 18338 do 18339 case $ac_config_target in 18340 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18341 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18342 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 18343 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18344 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18345 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 18346 18347 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18348 esac 18349 done 18350 18351 18352 # If the user did not use the arguments to specify the items to instantiate, 18353 # then the envvar interface is used. Set only those that are not. 18354 # We use the long form for the default assignment because of an extremely 18355 # bizarre bug on SunOS 4.1.3. 18356 if $ac_need_defaults; then 18357 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18358 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18359 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18360 fi 18361 18362 # Have a temporary directory for convenience. Make it in the build tree 18363 # simply because there is no reason against having it here, and in addition, 18364 # creating and moving files from /tmp can sometimes cause problems. 18365 # Hook for its removal unless debugging. 18366 # Note that there is a small window in which the directory will not be cleaned: 18367 # after its creation but before its name has been assigned to `$tmp'. 18368 $debug || 18369 { 18370 tmp= 18371 trap 'exit_status=$? 18372 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18373 ' 0 18374 trap 'as_fn_exit 1' 1 2 13 15 18375 } 18376 # Create a (secure) tmp directory for tmp files. 18377 18378 { 18379 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18380 test -n "$tmp" && test -d "$tmp" 18381 } || 18382 { 18383 tmp=./conf$$-$RANDOM 18384 (umask 077 && mkdir "$tmp") 18385 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 18386 18387 # Set up the scripts for CONFIG_FILES section. 18388 # No need to generate them if there are no CONFIG_FILES. 18389 # This happens for instance with `./config.status config.h'. 18390 if test -n "$CONFIG_FILES"; then 18391 18392 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 18393 ac_cs_awk_getline=: 18394 ac_cs_awk_pipe_init= 18395 ac_cs_awk_read_file=' 18396 while ((getline aline < (F[key])) > 0) 18397 print(aline) 18398 close(F[key])' 18399 ac_cs_awk_pipe_fini= 18400 else 18401 ac_cs_awk_getline=false 18402 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 18403 ac_cs_awk_read_file=' 18404 print "|#_!!_#|" 18405 print "cat " F[key] " &&" 18406 '$ac_cs_awk_pipe_init 18407 # The final `:' finishes the AND list. 18408 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 18409 fi 18410 ac_cr=`echo X | tr X '\015'` 18411 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18412 # But we know of no other shell where ac_cr would be empty at this 18413 # point, so we can use a bashism as a fallback. 18414 if test "x$ac_cr" = x; then 18415 eval ac_cr=\$\'\\r\' 18416 fi 18417 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18418 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18419 ac_cs_awk_cr='\r' 18420 else 18421 ac_cs_awk_cr=$ac_cr 18422 fi 18423 18424 echo 'BEGIN {' >"$tmp/subs1.awk" && 18425 _ACEOF 18426 18427 # Create commands to substitute file output variables. 18428 { 18429 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 18430 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && 18431 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 18432 echo "_ACAWK" && 18433 echo "_ACEOF" 18434 } >conf$$files.sh && 18435 . ./conf$$files.sh || 18436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 18437 rm -f conf$$files.sh 18438 18439 { 18440 echo "cat >conf$$subs.awk <<_ACEOF" && 18441 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18442 echo "_ACEOF" 18443 } >conf$$subs.sh || 18444 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 18445 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 18446 ac_delim='%!_!# ' 18447 for ac_last_try in false false false false false :; do 18448 . ./conf$$subs.sh || 18449 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 18450 18451 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18452 if test $ac_delim_n = $ac_delim_num; then 18453 break 18454 elif $ac_last_try; then 18455 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 18456 else 18457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18458 fi 18459 done 18460 rm -f conf$$subs.sh 18461 18462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18463 cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 18464 _ACEOF 18465 sed -n ' 18466 h 18467 s/^/S["/; s/!.*/"]=/ 18468 p 18469 g 18470 s/^[^!]*!// 18471 :repl 18472 t repl 18473 s/'"$ac_delim"'$// 18474 t delim 18475 :nl 18476 h 18477 s/\(.\{148\}\).*/\1/ 18478 t more1 18479 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18480 p 18481 n 18482 b repl 18483 :more1 18484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18485 p 18486 g 18487 s/.\{148\}// 18488 t nl 18489 :delim 18490 h 18491 s/\(.\{148\}\).*/\1/ 18492 t more2 18493 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18494 p 18495 b 18496 :more2 18497 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18498 p 18499 g 18500 s/.\{148\}// 18501 t delim 18502 ' <conf$$subs.awk | sed ' 18503 /^[^""]/{ 18504 N 18505 s/\n// 18506 } 18507 ' >>$CONFIG_STATUS || ac_write_fail=1 18508 rm -f conf$$subs.awk 18509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18510 _ACAWK 18511 cat >>"\$tmp/subs1.awk" <<_ACAWK && 18512 for (key in S) S_is_set[key] = 1 18513 FS = "" 18514 \$ac_cs_awk_pipe_init 18515 } 18516 { 18517 line = $ 0 18518 nfields = split(line, field, "@") 18519 substed = 0 18520 len = length(field[1]) 18521 for (i = 2; i < nfields; i++) { 18522 key = field[i] 18523 keylen = length(key) 18524 if (S_is_set[key]) { 18525 value = S[key] 18526 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18527 len += length(value) + length(field[++i]) 18528 substed = 1 18529 } else 18530 len += 1 + keylen 18531 } 18532 if (nfields == 3 && !substed) { 18533 key = field[2] 18534 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 18535 \$ac_cs_awk_read_file 18536 next 18537 } 18538 } 18539 print line 18540 } 18541 \$ac_cs_awk_pipe_fini 18542 _ACAWK 18543 _ACEOF 18544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18545 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18546 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18547 else 18548 cat 18549 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 18550 || as_fn_error "could not setup config files machinery" "$LINENO" 5 18551 _ACEOF 18552 18553 # VPATH may cause trouble with some makes, so we remove $(srcdir), 18554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 18555 # trailing colons and then remove the whole line if VPATH becomes empty 18556 # (actually we leave an empty line to preserve line numbers). 18557 if test "x$srcdir" = x.; then 18558 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 18559 s/:*\$(srcdir):*/:/ 18560 s/:*\${srcdir}:*/:/ 18561 s/:*@srcdir@:*/:/ 18562 s/^\([^=]*=[ ]*\):*/\1/ 18563 s/:*$// 18564 s/^[^=]*=[ ]*$// 18565 }' 18566 fi 18567 18568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18569 fi # test -n "$CONFIG_FILES" 18570 18571 # Set up the scripts for CONFIG_HEADERS section. 18572 # No need to generate them if there are no CONFIG_HEADERS. 18573 # This happens for instance with `./config.status Makefile'. 18574 if test -n "$CONFIG_HEADERS"; then 18575 cat >"$tmp/defines.awk" <<\_ACAWK || 18576 BEGIN { 18577 _ACEOF 18578 18579 # Transform confdefs.h into an awk script `defines.awk', embedded as 18580 # here-document in config.status, that substitutes the proper values into 18581 # config.h.in to produce config.h. 18582 18583 # Create a delimiter string that does not exist in confdefs.h, to ease 18584 # handling of long lines. 18585 ac_delim='%!_!# ' 18586 for ac_last_try in false false :; do 18587 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 18588 if test -z "$ac_t"; then 18589 break 18590 elif $ac_last_try; then 18591 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 18592 else 18593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18594 fi 18595 done 18596 18597 # For the awk script, D is an array of macro values keyed by name, 18598 # likewise P contains macro parameters if any. Preserve backslash 18599 # newline sequences. 18600 18601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18602 sed -n ' 18603 s/.\{148\}/&'"$ac_delim"'/g 18604 t rset 18605 :rset 18606 s/^[ ]*#[ ]*define[ ][ ]*/ / 18607 t def 18608 d 18609 :def 18610 s/\\$// 18611 t bsnl 18612 s/["\\]/\\&/g 18613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18614 D["\1"]=" \3"/p 18615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18616 d 18617 :bsnl 18618 s/["\\]/\\&/g 18619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18620 D["\1"]=" \3\\\\\\n"\\/p 18621 t cont 18622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18623 t cont 18624 d 18625 :cont 18626 n 18627 s/.\{148\}/&'"$ac_delim"'/g 18628 t clear 18629 :clear 18630 s/\\$// 18631 t bsnlc 18632 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18633 d 18634 :bsnlc 18635 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18636 b cont 18637 ' <confdefs.h | sed ' 18638 s/'"$ac_delim"'/"\\\ 18639 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18640 18641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18642 for (key in D) D_is_set[key] = 1 18643 FS = "" 18644 } 18645 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18646 line = \$ 0 18647 split(line, arg, " ") 18648 if (arg[1] == "#") { 18649 defundef = arg[2] 18650 mac1 = arg[3] 18651 } else { 18652 defundef = substr(arg[1], 2) 18653 mac1 = arg[2] 18654 } 18655 split(mac1, mac2, "(") #) 18656 macro = mac2[1] 18657 prefix = substr(line, 1, index(line, defundef) - 1) 18658 if (D_is_set[macro]) { 18659 # Preserve the white space surrounding the "#". 18660 print prefix "define", macro P[macro] D[macro] 18661 next 18662 } else { 18663 # Replace #undef with comments. This is necessary, for example, 18664 # in the case of _POSIX_SOURCE, which is predefined and required 18665 # on some systems where configure will not decide to define it. 18666 if (defundef == "undef") { 18667 print "/*", prefix defundef, macro, "*/" 18668 next 18669 } 18670 } 18671 } 18672 { print } 18673 _ACAWK 18674 _ACEOF 18675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18676 as_fn_error "could not setup config headers machinery" "$LINENO" 5 18677 fi # test -n "$CONFIG_HEADERS" 18678 18679 18680 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18681 shift 18682 for ac_tag 18683 do 18684 case $ac_tag in 18685 :[FHLC]) ac_mode=$ac_tag; continue;; 18686 esac 18687 case $ac_mode$ac_tag in 18688 :[FHL]*:*);; 18689 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 18690 :[FH]-) ac_tag=-:-;; 18691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18692 esac 18693 ac_save_IFS=$IFS 18694 IFS=: 18695 set x $ac_tag 18696 IFS=$ac_save_IFS 18697 shift 18698 ac_file=$1 18699 shift 18700 18701 case $ac_mode in 18702 :L) ac_source=$1;; 18703 :[FH]) 18704 ac_file_inputs= 18705 for ac_f 18706 do 18707 case $ac_f in 18708 -) ac_f="$tmp/stdin";; 18709 *) # Look for the file first in the build tree, then in the source tree 18710 # (if the path is not absolute). The absolute path cannot be DOS-style, 18711 # because $ac_f cannot contain `:'. 18712 test -f "$ac_f" || 18713 case $ac_f in 18714 [\\/$]*) false;; 18715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18716 esac || 18717 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18718 esac 18719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18720 as_fn_append ac_file_inputs " '$ac_f'" 18721 done 18722 18723 # Let's still pretend it is `configure' which instantiates (i.e., don't 18724 # use $as_me), people would be surprised to read: 18725 # /* config.h. Generated by config.status. */ 18726 configure_input='Generated from '` 18727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18728 `' by configure.' 18729 if test x"$ac_file" != x-; then 18730 configure_input="$ac_file. $configure_input" 18731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18732 $as_echo "$as_me: creating $ac_file" >&6;} 18733 fi 18734 # Neutralize special characters interpreted by sed in replacement strings. 18735 case $configure_input in #( 18736 *\&* | *\|* | *\\* ) 18737 ac_sed_conf_input=`$as_echo "$configure_input" | 18738 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18739 *) ac_sed_conf_input=$configure_input;; 18740 esac 18741 18742 case $ac_tag in 18743 *:-:* | *:-) cat >"$tmp/stdin" \ 18744 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 18745 esac 18746 ;; 18747 esac 18748 18749 ac_dir=`$as_dirname -- "$ac_file" || 18750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18751 X"$ac_file" : 'X\(//\)[^/]' \| \ 18752 X"$ac_file" : 'X\(//\)$' \| \ 18753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18754 $as_echo X"$ac_file" | 18755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18756 s//\1/ 18757 q 18758 } 18759 /^X\(\/\/\)[^/].*/{ 18760 s//\1/ 18761 q 18762 } 18763 /^X\(\/\/\)$/{ 18764 s//\1/ 18765 q 18766 } 18767 /^X\(\/\).*/{ 18768 s//\1/ 18769 q 18770 } 18771 s/.*/./; q'` 18772 as_dir="$ac_dir"; as_fn_mkdir_p 18773 ac_builddir=. 18774 18775 case "$ac_dir" in 18776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18777 *) 18778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18779 # A ".." for each directory in $ac_dir_suffix. 18780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18781 case $ac_top_builddir_sub in 18782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18784 esac ;; 18785 esac 18786 ac_abs_top_builddir=$ac_pwd 18787 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18788 # for backward compatibility: 18789 ac_top_builddir=$ac_top_build_prefix 18790 18791 case $srcdir in 18792 .) # We are building in place. 18793 ac_srcdir=. 18794 ac_top_srcdir=$ac_top_builddir_sub 18795 ac_abs_top_srcdir=$ac_pwd ;; 18796 [\\/]* | ?:[\\/]* ) # Absolute name. 18797 ac_srcdir=$srcdir$ac_dir_suffix; 18798 ac_top_srcdir=$srcdir 18799 ac_abs_top_srcdir=$srcdir ;; 18800 *) # Relative name. 18801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18802 ac_top_srcdir=$ac_top_build_prefix$srcdir 18803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18804 esac 18805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18806 18807 18808 case $ac_mode in 18809 :F) 18810 # 18811 # CONFIG_FILE 18812 # 18813 18814 case $INSTALL in 18815 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18816 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18817 esac 18818 ac_MKDIR_P=$MKDIR_P 18819 case $MKDIR_P in 18820 [\\/$]* | ?:[\\/]* ) ;; 18821 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18822 esac 18823 _ACEOF 18824 18825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18826 # If the template does not know about datarootdir, expand it. 18827 # FIXME: This hack should be removed a few years after 2.60. 18828 ac_datarootdir_hack=; ac_datarootdir_seen= 18829 ac_sed_dataroot=' 18830 /datarootdir/ { 18831 p 18832 q 18833 } 18834 /@datadir@/p 18835 /@docdir@/p 18836 /@infodir@/p 18837 /@localedir@/p 18838 /@mandir@/p' 18839 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18840 *datarootdir*) ac_datarootdir_seen=yes;; 18841 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18843 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18844 _ACEOF 18845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18846 ac_datarootdir_hack=' 18847 s&@datadir@&$datadir&g 18848 s&@docdir@&$docdir&g 18849 s&@infodir@&$infodir&g 18850 s&@localedir@&$localedir&g 18851 s&@mandir@&$mandir&g 18852 s&\\\${datarootdir}&$datarootdir&g' ;; 18853 esac 18854 _ACEOF 18855 18856 # Neutralize VPATH when `$srcdir' = `.'. 18857 # Shell code in configure.ac might set extrasub. 18858 # FIXME: do we really want to maintain this feature? 18859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18860 ac_sed_extra="$ac_vpsub 18861 $extrasub 18862 _ACEOF 18863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18864 :t 18865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18866 s|@configure_input@|$ac_sed_conf_input|;t t 18867 s&@top_builddir@&$ac_top_builddir_sub&;t t 18868 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18869 s&@srcdir@&$ac_srcdir&;t t 18870 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18871 s&@top_srcdir@&$ac_top_srcdir&;t t 18872 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18873 s&@builddir@&$ac_builddir&;t t 18874 s&@abs_builddir@&$ac_abs_builddir&;t t 18875 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18876 s&@INSTALL@&$ac_INSTALL&;t t 18877 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18878 $ac_datarootdir_hack 18879 " 18880 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 18881 if $ac_cs_awk_getline; then 18882 $AWK -f "$tmp/subs.awk" 18883 else 18884 $AWK -f "$tmp/subs.awk" | $SHELL 18885 fi >$tmp/out \ 18886 || as_fn_error "could not create $ac_file" "$LINENO" 5 18887 18888 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18889 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 18890 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18892 which seems to be undefined. Please make sure it is defined." >&5 18893 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18894 which seems to be undefined. Please make sure it is defined." >&2;} 18895 18896 rm -f "$tmp/stdin" 18897 case $ac_file in 18898 -) cat "$tmp/out" && rm -f "$tmp/out";; 18899 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 18900 esac \ 18901 || as_fn_error "could not create $ac_file" "$LINENO" 5 18902 ;; 18903 :H) 18904 # 18905 # CONFIG_HEADER 18906 # 18907 if test x"$ac_file" != x-; then 18908 { 18909 $as_echo "/* $configure_input */" \ 18910 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 18911 } >"$tmp/config.h" \ 18912 || as_fn_error "could not create $ac_file" "$LINENO" 5 18913 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 18914 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18915 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18916 else 18917 rm -f "$ac_file" 18918 mv "$tmp/config.h" "$ac_file" \ 18919 || as_fn_error "could not create $ac_file" "$LINENO" 5 18920 fi 18921 else 18922 $as_echo "/* $configure_input */" \ 18923 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 18924 || as_fn_error "could not create -" "$LINENO" 5 18925 fi 18926 # Compute "$ac_file"'s index in $config_headers. 18927 _am_arg="$ac_file" 18928 _am_stamp_count=1 18929 for _am_header in $config_headers :; do 18930 case $_am_header in 18931 $_am_arg | $_am_arg:* ) 18932 break ;; 18933 * ) 18934 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18935 esac 18936 done 18937 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18938 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18939 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18940 X"$_am_arg" : 'X\(//\)$' \| \ 18941 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18942 $as_echo X"$_am_arg" | 18943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18944 s//\1/ 18945 q 18946 } 18947 /^X\(\/\/\)[^/].*/{ 18948 s//\1/ 18949 q 18950 } 18951 /^X\(\/\/\)$/{ 18952 s//\1/ 18953 q 18954 } 18955 /^X\(\/\).*/{ 18956 s//\1/ 18957 q 18958 } 18959 s/.*/./; q'`/stamp-h$_am_stamp_count 18960 ;; 18961 18962 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18963 $as_echo "$as_me: executing $ac_file commands" >&6;} 18964 ;; 18965 esac 18966 18967 18968 case $ac_file$ac_mode in 18969 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18970 # Autoconf 2.62 quotes --file arguments for eval, but not when files 18971 # are listed without --file. Let's play safe and only enable the eval 18972 # if we detect the quoting. 18973 case $CONFIG_FILES in 18974 *\'*) eval set x "$CONFIG_FILES" ;; 18975 *) set x $CONFIG_FILES ;; 18976 esac 18977 shift 18978 for mf 18979 do 18980 # Strip MF so we end up with the name of the file. 18981 mf=`echo "$mf" | sed -e 's/:.*$//'` 18982 # Check whether this is an Automake generated Makefile or not. 18983 # We used to match only the files named `Makefile.in', but 18984 # some people rename them; so instead we look at the file content. 18985 # Grep'ing the first line is not enough: some people post-process 18986 # each Makefile.in and add a new line on top of each file to say so. 18987 # Grep'ing the whole file is not good either: AIX grep has a line 18988 # limit of 2048, but all sed's we know have understand at least 4000. 18989 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18990 dirpart=`$as_dirname -- "$mf" || 18991 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18992 X"$mf" : 'X\(//\)[^/]' \| \ 18993 X"$mf" : 'X\(//\)$' \| \ 18994 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18995 $as_echo X"$mf" | 18996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18997 s//\1/ 18998 q 18999 } 19000 /^X\(\/\/\)[^/].*/{ 19001 s//\1/ 19002 q 19003 } 19004 /^X\(\/\/\)$/{ 19005 s//\1/ 19006 q 19007 } 19008 /^X\(\/\).*/{ 19009 s//\1/ 19010 q 19011 } 19012 s/.*/./; q'` 19013 else 19014 continue 19015 fi 19016 # Extract the definition of DEPDIR, am__include, and am__quote 19017 # from the Makefile without running `make'. 19018 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19019 test -z "$DEPDIR" && continue 19020 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19021 test -z "am__include" && continue 19022 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19023 # When using ansi2knr, U may be empty or an underscore; expand it 19024 U=`sed -n 's/^U = //p' < "$mf"` 19025 # Find all dependency output files, they are included files with 19026 # $(DEPDIR) in their names. We invoke sed twice because it is the 19027 # simplest approach to changing $(DEPDIR) to its actual value in the 19028 # expansion. 19029 for file in `sed -n " 19030 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19031 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19032 # Make sure the directory exists. 19033 test -f "$dirpart/$file" && continue 19034 fdir=`$as_dirname -- "$file" || 19035 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19036 X"$file" : 'X\(//\)[^/]' \| \ 19037 X"$file" : 'X\(//\)$' \| \ 19038 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19039 $as_echo X"$file" | 19040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19041 s//\1/ 19042 q 19043 } 19044 /^X\(\/\/\)[^/].*/{ 19045 s//\1/ 19046 q 19047 } 19048 /^X\(\/\/\)$/{ 19049 s//\1/ 19050 q 19051 } 19052 /^X\(\/\).*/{ 19053 s//\1/ 19054 q 19055 } 19056 s/.*/./; q'` 19057 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19058 # echo "creating $dirpart/$file" 19059 echo '# dummy' > "$dirpart/$file" 19060 done 19061 done 19062 } 19063 ;; 19064 "libtool":C) 19065 19066 # See if we are running on zsh, and set the options which allow our 19067 # commands through without removal of \ escapes. 19068 if test -n "${ZSH_VERSION+set}" ; then 19069 setopt NO_GLOB_SUBST 19070 fi 19071 19072 cfgfile="${ofile}T" 19073 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19074 $RM "$cfgfile" 19075 19076 cat <<_LT_EOF >> "$cfgfile" 19077 #! $SHELL 19078 19079 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19080 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19081 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19082 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 19083 # 19084 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19085 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 19086 # Written by Gordon Matzigkeit, 1996 19087 # 19088 # This file is part of GNU Libtool. 19089 # 19090 # GNU Libtool is free software; you can redistribute it and/or 19091 # modify it under the terms of the GNU General Public License as 19092 # published by the Free Software Foundation; either version 2 of 19093 # the License, or (at your option) any later version. 19094 # 19095 # As a special exception to the GNU General Public License, 19096 # if you distribute this file as part of a program or library that 19097 # is built using GNU Libtool, you may include this file under the 19098 # same distribution terms that you use for the rest of that program. 19099 # 19100 # GNU Libtool is distributed in the hope that it will be useful, 19101 # but WITHOUT ANY WARRANTY; without even the implied warranty of 19102 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19103 # GNU General Public License for more details. 19104 # 19105 # You should have received a copy of the GNU General Public License 19106 # along with GNU Libtool; see the file COPYING. If not, a copy 19107 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19108 # obtained by writing to the Free Software Foundation, Inc., 19109 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19110 19111 19112 # The names of the tagged configurations supported by this script. 19113 available_tags="CXX " 19114 19115 # ### BEGIN LIBTOOL CONFIG 19116 19117 # Which release of libtool.m4 was used? 19118 macro_version=$macro_version 19119 macro_revision=$macro_revision 19120 19121 # Whether or not to build shared libraries. 19122 build_libtool_libs=$enable_shared 19123 19124 # Whether or not to build static libraries. 19125 build_old_libs=$enable_static 19126 19127 # What type of objects to build. 19128 pic_mode=$pic_mode 19129 19130 # Whether or not to optimize for fast installation. 19131 fast_install=$enable_fast_install 19132 19133 # Shell to use when invoking shell scripts. 19134 SHELL=$lt_SHELL 19135 19136 # An echo program that protects backslashes. 19137 ECHO=$lt_ECHO 19138 19139 # The host system. 19140 host_alias=$host_alias 19141 host=$host 19142 host_os=$host_os 19143 19144 # The build system. 19145 build_alias=$build_alias 19146 build=$build 19147 build_os=$build_os 19148 19149 # A sed program that does not truncate output. 19150 SED=$lt_SED 19151 19152 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 19153 Xsed="\$SED -e 1s/^X//" 19154 19155 # A grep program that handles long lines. 19156 GREP=$lt_GREP 19157 19158 # An ERE matcher. 19159 EGREP=$lt_EGREP 19160 19161 # A literal string matcher. 19162 FGREP=$lt_FGREP 19163 19164 # A BSD- or MS-compatible name lister. 19165 NM=$lt_NM 19166 19167 # Whether we need soft or hard links. 19168 LN_S=$lt_LN_S 19169 19170 # What is the maximum length of a command? 19171 max_cmd_len=$max_cmd_len 19172 19173 # Object file suffix (normally "o"). 19174 objext=$ac_objext 19175 19176 # Executable file suffix (normally ""). 19177 exeext=$exeext 19178 19179 # whether the shell understands "unset". 19180 lt_unset=$lt_unset 19181 19182 # turn spaces into newlines. 19183 SP2NL=$lt_lt_SP2NL 19184 19185 # turn newlines into spaces. 19186 NL2SP=$lt_lt_NL2SP 19187 19188 # An object symbol dumper. 19189 OBJDUMP=$lt_OBJDUMP 19190 19191 # Method to check whether dependent libraries are shared objects. 19192 deplibs_check_method=$lt_deplibs_check_method 19193 19194 # Command to use when deplibs_check_method == "file_magic". 19195 file_magic_cmd=$lt_file_magic_cmd 19196 19197 # The archiver. 19198 AR=$lt_AR 19199 AR_FLAGS=$lt_AR_FLAGS 19200 19201 # A symbol stripping program. 19202 STRIP=$lt_STRIP 19203 19204 # Commands used to install an old-style archive. 19205 RANLIB=$lt_RANLIB 19206 old_postinstall_cmds=$lt_old_postinstall_cmds 19207 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19208 19209 # Whether to use a lock for old archive extraction. 19210 lock_old_archive_extraction=$lock_old_archive_extraction 19211 19212 # A C compiler. 19213 LTCC=$lt_CC 19214 19215 # LTCC compiler flags. 19216 LTCFLAGS=$lt_CFLAGS 19217 19218 # Take the output of nm and produce a listing of raw symbols and C names. 19219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19220 19221 # Transform the output of nm in a proper C declaration. 19222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19223 19224 # Transform the output of nm in a C name address pair. 19225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19226 19227 # Transform the output of nm in a C name address pair when lib prefix is needed. 19228 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19229 19230 # The name of the directory that contains temporary libtool files. 19231 objdir=$objdir 19232 19233 # Used to examine libraries when file_magic_cmd begins with "file". 19234 MAGIC_CMD=$MAGIC_CMD 19235 19236 # Must we lock files when doing compilation? 19237 need_locks=$lt_need_locks 19238 19239 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19240 DSYMUTIL=$lt_DSYMUTIL 19241 19242 # Tool to change global to local symbols on Mac OS X. 19243 NMEDIT=$lt_NMEDIT 19244 19245 # Tool to manipulate fat objects and archives on Mac OS X. 19246 LIPO=$lt_LIPO 19247 19248 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19249 OTOOL=$lt_OTOOL 19250 19251 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19252 OTOOL64=$lt_OTOOL64 19253 19254 # Old archive suffix (normally "a"). 19255 libext=$libext 19256 19257 # Shared library suffix (normally ".so"). 19258 shrext_cmds=$lt_shrext_cmds 19259 19260 # The commands to extract the exported symbol list from a shared archive. 19261 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19262 19263 # Variables whose values should be saved in libtool wrapper scripts and 19264 # restored at link time. 19265 variables_saved_for_relink=$lt_variables_saved_for_relink 19266 19267 # Do we need the "lib" prefix for modules? 19268 need_lib_prefix=$need_lib_prefix 19269 19270 # Do we need a version for libraries? 19271 need_version=$need_version 19272 19273 # Library versioning type. 19274 version_type=$version_type 19275 19276 # Shared library runtime path variable. 19277 runpath_var=$runpath_var 19278 19279 # Shared library path variable. 19280 shlibpath_var=$shlibpath_var 19281 19282 # Is shlibpath searched before the hard-coded library search path? 19283 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19284 19285 # Format of library name prefix. 19286 libname_spec=$lt_libname_spec 19287 19288 # List of archive names. First name is the real one, the rest are links. 19289 # The last name is the one that the linker finds with -lNAME 19290 library_names_spec=$lt_library_names_spec 19291 19292 # The coded name of the library, if different from the real name. 19293 soname_spec=$lt_soname_spec 19294 19295 # Permission mode override for installation of shared libraries. 19296 install_override_mode=$lt_install_override_mode 19297 19298 # Command to use after installation of a shared archive. 19299 postinstall_cmds=$lt_postinstall_cmds 19300 19301 # Command to use after uninstallation of a shared archive. 19302 postuninstall_cmds=$lt_postuninstall_cmds 19303 19304 # Commands used to finish a libtool library installation in a directory. 19305 finish_cmds=$lt_finish_cmds 19306 19307 # As "finish_cmds", except a single script fragment to be evaled but 19308 # not shown. 19309 finish_eval=$lt_finish_eval 19310 19311 # Whether we should hardcode library paths into libraries. 19312 hardcode_into_libs=$hardcode_into_libs 19313 19314 # Compile-time system search path for libraries. 19315 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19316 19317 # Run-time system search path for libraries. 19318 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19319 19320 # Whether dlopen is supported. 19321 dlopen_support=$enable_dlopen 19322 19323 # Whether dlopen of programs is supported. 19324 dlopen_self=$enable_dlopen_self 19325 19326 # Whether dlopen of statically linked programs is supported. 19327 dlopen_self_static=$enable_dlopen_self_static 19328 19329 # Commands to strip libraries. 19330 old_striplib=$lt_old_striplib 19331 striplib=$lt_striplib 19332 19333 19334 # The linker used to build libraries. 19335 LD=$lt_LD 19336 19337 # How to create reloadable object files. 19338 reload_flag=$lt_reload_flag 19339 reload_cmds=$lt_reload_cmds 19340 19341 # Commands used to build an old-style archive. 19342 old_archive_cmds=$lt_old_archive_cmds 19343 19344 # A language specific compiler. 19345 CC=$lt_compiler 19346 19347 # Is the compiler the GNU compiler? 19348 with_gcc=$GCC 19349 19350 # Compiler flag to turn off builtin functions. 19351 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19352 19353 # How to pass a linker flag through the compiler. 19354 wl=$lt_lt_prog_compiler_wl 19355 19356 # Additional compiler flags for building library objects. 19357 pic_flag=$lt_lt_prog_compiler_pic 19358 19359 # Compiler flag to prevent dynamic linking. 19360 link_static_flag=$lt_lt_prog_compiler_static 19361 19362 # Does compiler simultaneously support -c and -o options? 19363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19364 19365 # Whether or not to add -lc for building shared libraries. 19366 build_libtool_need_lc=$archive_cmds_need_lc 19367 19368 # Whether or not to disallow shared libs when runtime libs are static. 19369 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19370 19371 # Compiler flag to allow reflexive dlopens. 19372 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19373 19374 # Compiler flag to generate shared objects directly from archives. 19375 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19376 19377 # Whether the compiler copes with passing no objects directly. 19378 compiler_needs_object=$lt_compiler_needs_object 19379 19380 # Create an old-style archive from a shared archive. 19381 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19382 19383 # Create a temporary old-style archive to link instead of a shared archive. 19384 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19385 19386 # Commands used to build a shared archive. 19387 archive_cmds=$lt_archive_cmds 19388 archive_expsym_cmds=$lt_archive_expsym_cmds 19389 19390 # Commands used to build a loadable module if different from building 19391 # a shared archive. 19392 module_cmds=$lt_module_cmds 19393 module_expsym_cmds=$lt_module_expsym_cmds 19394 19395 # Whether we are building with GNU ld or not. 19396 with_gnu_ld=$lt_with_gnu_ld 19397 19398 # Flag that allows shared libraries with undefined symbols to be built. 19399 allow_undefined_flag=$lt_allow_undefined_flag 19400 19401 # Flag that enforces no undefined symbols. 19402 no_undefined_flag=$lt_no_undefined_flag 19403 19404 # Flag to hardcode \$libdir into a binary during linking. 19405 # This must work even if \$libdir does not exist 19406 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19407 19408 # If ld is used when linking, flag to hardcode \$libdir into a binary 19409 # during linking. This must work even if \$libdir does not exist. 19410 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19411 19412 # Whether we need a single "-rpath" flag with a separated argument. 19413 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19414 19415 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19416 # DIR into the resulting binary. 19417 hardcode_direct=$hardcode_direct 19418 19419 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19420 # DIR into the resulting binary and the resulting library dependency is 19421 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19422 # library is relocated. 19423 hardcode_direct_absolute=$hardcode_direct_absolute 19424 19425 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19426 # into the resulting binary. 19427 hardcode_minus_L=$hardcode_minus_L 19428 19429 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19430 # into the resulting binary. 19431 hardcode_shlibpath_var=$hardcode_shlibpath_var 19432 19433 # Set to "yes" if building a shared library automatically hardcodes DIR 19434 # into the library and all subsequent libraries and executables linked 19435 # against it. 19436 hardcode_automatic=$hardcode_automatic 19437 19438 # Set to yes if linker adds runtime paths of dependent libraries 19439 # to runtime path list. 19440 inherit_rpath=$inherit_rpath 19441 19442 # Whether libtool must link a program against all its dependency libraries. 19443 link_all_deplibs=$link_all_deplibs 19444 19445 # Fix the shell variable \$srcfile for the compiler. 19446 fix_srcfile_path=$lt_fix_srcfile_path 19447 19448 # Set to "yes" if exported symbols are required. 19449 always_export_symbols=$always_export_symbols 19450 19451 # The commands to list exported symbols. 19452 export_symbols_cmds=$lt_export_symbols_cmds 19453 19454 # Symbols that should not be listed in the preloaded symbols. 19455 exclude_expsyms=$lt_exclude_expsyms 19456 19457 # Symbols that must always be exported. 19458 include_expsyms=$lt_include_expsyms 19459 19460 # Commands necessary for linking programs (against libraries) with templates. 19461 prelink_cmds=$lt_prelink_cmds 19462 19463 # Specify filename containing input files. 19464 file_list_spec=$lt_file_list_spec 19465 19466 # How to hardcode a shared library path into an executable. 19467 hardcode_action=$hardcode_action 19468 19469 # The directories searched by this compiler when creating a shared library. 19470 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19471 19472 # Dependencies to place before and after the objects being linked to 19473 # create a shared library. 19474 predep_objects=$lt_predep_objects 19475 postdep_objects=$lt_postdep_objects 19476 predeps=$lt_predeps 19477 postdeps=$lt_postdeps 19478 19479 # The library search path used internally by the compiler when linking 19480 # a shared library. 19481 compiler_lib_search_path=$lt_compiler_lib_search_path 19482 19483 # ### END LIBTOOL CONFIG 19484 19485 _LT_EOF 19486 19487 case $host_os in 19488 aix3*) 19489 cat <<\_LT_EOF >> "$cfgfile" 19490 # AIX sometimes has problems with the GCC collect2 program. For some 19491 # reason, if we set the COLLECT_NAMES environment variable, the problems 19492 # vanish in a puff of smoke. 19493 if test "X${COLLECT_NAMES+set}" != Xset; then 19494 COLLECT_NAMES= 19495 export COLLECT_NAMES 19496 fi 19497 _LT_EOF 19498 ;; 19499 esac 19500 19501 19502 ltmain="$ac_aux_dir/ltmain.sh" 19503 19504 19505 # We use sed instead of cat because bash on DJGPP gets confused if 19506 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19507 # text mode, it properly converts lines to CR/LF. This bash problem 19508 # is reportedly fixed, but why not run on old versions too? 19509 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19510 || (rm -f "$cfgfile"; exit 1) 19511 19512 case $xsi_shell in 19513 yes) 19514 cat << \_LT_EOF >> "$cfgfile" 19515 19516 # func_dirname file append nondir_replacement 19517 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19518 # otherwise set result to NONDIR_REPLACEMENT. 19519 func_dirname () 19520 { 19521 case ${1} in 19522 */*) func_dirname_result="${1%/*}${2}" ;; 19523 * ) func_dirname_result="${3}" ;; 19524 esac 19525 } 19526 19527 # func_basename file 19528 func_basename () 19529 { 19530 func_basename_result="${1##*/}" 19531 } 19532 19533 # func_dirname_and_basename file append nondir_replacement 19534 # perform func_basename and func_dirname in a single function 19535 # call: 19536 # dirname: Compute the dirname of FILE. If nonempty, 19537 # add APPEND to the result, otherwise set result 19538 # to NONDIR_REPLACEMENT. 19539 # value returned in "$func_dirname_result" 19540 # basename: Compute filename of FILE. 19541 # value retuned in "$func_basename_result" 19542 # Implementation must be kept synchronized with func_dirname 19543 # and func_basename. For efficiency, we do not delegate to 19544 # those functions but instead duplicate the functionality here. 19545 func_dirname_and_basename () 19546 { 19547 case ${1} in 19548 */*) func_dirname_result="${1%/*}${2}" ;; 19549 * ) func_dirname_result="${3}" ;; 19550 esac 19551 func_basename_result="${1##*/}" 19552 } 19553 19554 # func_stripname prefix suffix name 19555 # strip PREFIX and SUFFIX off of NAME. 19556 # PREFIX and SUFFIX must not contain globbing or regex special 19557 # characters, hashes, percent signs, but SUFFIX may contain a leading 19558 # dot (in which case that matches only a dot). 19559 func_stripname () 19560 { 19561 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19562 # positional parameters, so assign one to ordinary parameter first. 19563 func_stripname_result=${3} 19564 func_stripname_result=${func_stripname_result#"${1}"} 19565 func_stripname_result=${func_stripname_result%"${2}"} 19566 } 19567 19568 # func_opt_split 19569 func_opt_split () 19570 { 19571 func_opt_split_opt=${1%%=*} 19572 func_opt_split_arg=${1#*=} 19573 } 19574 19575 # func_lo2o object 19576 func_lo2o () 19577 { 19578 case ${1} in 19579 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19580 *) func_lo2o_result=${1} ;; 19581 esac 19582 } 19583 19584 # func_xform libobj-or-source 19585 func_xform () 19586 { 19587 func_xform_result=${1%.*}.lo 19588 } 19589 19590 # func_arith arithmetic-term... 19591 func_arith () 19592 { 19593 func_arith_result=$(( $* )) 19594 } 19595 19596 # func_len string 19597 # STRING may not start with a hyphen. 19598 func_len () 19599 { 19600 func_len_result=${#1} 19601 } 19602 19603 _LT_EOF 19604 ;; 19605 *) # Bourne compatible functions. 19606 cat << \_LT_EOF >> "$cfgfile" 19607 19608 # func_dirname file append nondir_replacement 19609 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19610 # otherwise set result to NONDIR_REPLACEMENT. 19611 func_dirname () 19612 { 19613 # Extract subdirectory from the argument. 19614 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19615 if test "X$func_dirname_result" = "X${1}"; then 19616 func_dirname_result="${3}" 19617 else 19618 func_dirname_result="$func_dirname_result${2}" 19619 fi 19620 } 19621 19622 # func_basename file 19623 func_basename () 19624 { 19625 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19626 } 19627 19628 19629 # func_stripname prefix suffix name 19630 # strip PREFIX and SUFFIX off of NAME. 19631 # PREFIX and SUFFIX must not contain globbing or regex special 19632 # characters, hashes, percent signs, but SUFFIX may contain a leading 19633 # dot (in which case that matches only a dot). 19634 # func_strip_suffix prefix name 19635 func_stripname () 19636 { 19637 case ${2} in 19638 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19639 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19640 esac 19641 } 19642 19643 # sed scripts: 19644 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19645 my_sed_long_arg='1s/^-[^=]*=//' 19646 19647 # func_opt_split 19648 func_opt_split () 19649 { 19650 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19651 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19652 } 19653 19654 # func_lo2o object 19655 func_lo2o () 19656 { 19657 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19658 } 19659 19660 # func_xform libobj-or-source 19661 func_xform () 19662 { 19663 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19664 } 19665 19666 # func_arith arithmetic-term... 19667 func_arith () 19668 { 19669 func_arith_result=`expr "$@"` 19670 } 19671 19672 # func_len string 19673 # STRING may not start with a hyphen. 19674 func_len () 19675 { 19676 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19677 } 19678 19679 _LT_EOF 19680 esac 19681 19682 case $lt_shell_append in 19683 yes) 19684 cat << \_LT_EOF >> "$cfgfile" 19685 19686 # func_append var value 19687 # Append VALUE to the end of shell variable VAR. 19688 func_append () 19689 { 19690 eval "$1+=\$2" 19691 } 19692 _LT_EOF 19693 ;; 19694 *) 19695 cat << \_LT_EOF >> "$cfgfile" 19696 19697 # func_append var value 19698 # Append VALUE to the end of shell variable VAR. 19699 func_append () 19700 { 19701 eval "$1=\$$1\$2" 19702 } 19703 19704 _LT_EOF 19705 ;; 19706 esac 19707 19708 19709 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19710 || (rm -f "$cfgfile"; exit 1) 19711 19712 mv -f "$cfgfile" "$ofile" || 19713 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19714 chmod +x "$ofile" 19715 19716 19717 cat <<_LT_EOF >> "$ofile" 19718 19719 # ### BEGIN LIBTOOL TAG CONFIG: CXX 19720 19721 # The linker used to build libraries. 19722 LD=$lt_LD_CXX 19723 19724 # How to create reloadable object files. 19725 reload_flag=$lt_reload_flag_CXX 19726 reload_cmds=$lt_reload_cmds_CXX 19727 19728 # Commands used to build an old-style archive. 19729 old_archive_cmds=$lt_old_archive_cmds_CXX 19730 19731 # A language specific compiler. 19732 CC=$lt_compiler_CXX 19733 19734 # Is the compiler the GNU compiler? 19735 with_gcc=$GCC_CXX 19736 19737 # Compiler flag to turn off builtin functions. 19738 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19739 19740 # How to pass a linker flag through the compiler. 19741 wl=$lt_lt_prog_compiler_wl_CXX 19742 19743 # Additional compiler flags for building library objects. 19744 pic_flag=$lt_lt_prog_compiler_pic_CXX 19745 19746 # Compiler flag to prevent dynamic linking. 19747 link_static_flag=$lt_lt_prog_compiler_static_CXX 19748 19749 # Does compiler simultaneously support -c and -o options? 19750 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19751 19752 # Whether or not to add -lc for building shared libraries. 19753 build_libtool_need_lc=$archive_cmds_need_lc_CXX 19754 19755 # Whether or not to disallow shared libs when runtime libs are static. 19756 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19757 19758 # Compiler flag to allow reflexive dlopens. 19759 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19760 19761 # Compiler flag to generate shared objects directly from archives. 19762 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19763 19764 # Whether the compiler copes with passing no objects directly. 19765 compiler_needs_object=$lt_compiler_needs_object_CXX 19766 19767 # Create an old-style archive from a shared archive. 19768 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19769 19770 # Create a temporary old-style archive to link instead of a shared archive. 19771 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19772 19773 # Commands used to build a shared archive. 19774 archive_cmds=$lt_archive_cmds_CXX 19775 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19776 19777 # Commands used to build a loadable module if different from building 19778 # a shared archive. 19779 module_cmds=$lt_module_cmds_CXX 19780 module_expsym_cmds=$lt_module_expsym_cmds_CXX 19781 19782 # Whether we are building with GNU ld or not. 19783 with_gnu_ld=$lt_with_gnu_ld_CXX 19784 19785 # Flag that allows shared libraries with undefined symbols to be built. 19786 allow_undefined_flag=$lt_allow_undefined_flag_CXX 19787 19788 # Flag that enforces no undefined symbols. 19789 no_undefined_flag=$lt_no_undefined_flag_CXX 19790 19791 # Flag to hardcode \$libdir into a binary during linking. 19792 # This must work even if \$libdir does not exist 19793 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19794 19795 # If ld is used when linking, flag to hardcode \$libdir into a binary 19796 # during linking. This must work even if \$libdir does not exist. 19797 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 19798 19799 # Whether we need a single "-rpath" flag with a separated argument. 19800 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19801 19802 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19803 # DIR into the resulting binary. 19804 hardcode_direct=$hardcode_direct_CXX 19805 19806 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19807 # DIR into the resulting binary and the resulting library dependency is 19808 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19809 # library is relocated. 19810 hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19811 19812 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19813 # into the resulting binary. 19814 hardcode_minus_L=$hardcode_minus_L_CXX 19815 19816 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19817 # into the resulting binary. 19818 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19819 19820 # Set to "yes" if building a shared library automatically hardcodes DIR 19821 # into the library and all subsequent libraries and executables linked 19822 # against it. 19823 hardcode_automatic=$hardcode_automatic_CXX 19824 19825 # Set to yes if linker adds runtime paths of dependent libraries 19826 # to runtime path list. 19827 inherit_rpath=$inherit_rpath_CXX 19828 19829 # Whether libtool must link a program against all its dependency libraries. 19830 link_all_deplibs=$link_all_deplibs_CXX 19831 19832 # Fix the shell variable \$srcfile for the compiler. 19833 fix_srcfile_path=$lt_fix_srcfile_path_CXX 19834 19835 # Set to "yes" if exported symbols are required. 19836 always_export_symbols=$always_export_symbols_CXX 19837 19838 # The commands to list exported symbols. 19839 export_symbols_cmds=$lt_export_symbols_cmds_CXX 19840 19841 # Symbols that should not be listed in the preloaded symbols. 19842 exclude_expsyms=$lt_exclude_expsyms_CXX 19843 19844 # Symbols that must always be exported. 19845 include_expsyms=$lt_include_expsyms_CXX 19846 19847 # Commands necessary for linking programs (against libraries) with templates. 19848 prelink_cmds=$lt_prelink_cmds_CXX 19849 19850 # Specify filename containing input files. 19851 file_list_spec=$lt_file_list_spec_CXX 19852 19853 # How to hardcode a shared library path into an executable. 19854 hardcode_action=$hardcode_action_CXX 19855 19856 # The directories searched by this compiler when creating a shared library. 19857 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19858 19859 # Dependencies to place before and after the objects being linked to 19860 # create a shared library. 19861 predep_objects=$lt_predep_objects_CXX 19862 postdep_objects=$lt_postdep_objects_CXX 19863 predeps=$lt_predeps_CXX 19864 postdeps=$lt_postdeps_CXX 19865 19866 # The library search path used internally by the compiler when linking 19867 # a shared library. 19868 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19869 19870 # ### END LIBTOOL TAG CONFIG: CXX 19871 _LT_EOF 19872 19873 ;; 19874 "default-1":C) 19875 for ac_file in $CONFIG_FILES; do 19876 # Support "outfile[:infile[:infile...]]" 19877 case "$ac_file" in 19878 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 19879 esac 19880 # PO directories have a Makefile.in generated from Makefile.in.in. 19881 case "$ac_file" in */Makefile.in) 19882 # Adjust a relative srcdir. 19883 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 19884 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 19885 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 19886 # In autoconf-2.13 it is called $ac_given_srcdir. 19887 # In autoconf-2.50 it is called $srcdir. 19888 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 19889 case "$ac_given_srcdir" in 19890 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 19891 /*) top_srcdir="$ac_given_srcdir" ;; 19892 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 19893 esac 19894 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 19895 rm -f "$ac_dir/POTFILES" 19896 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 19897 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 19898 POMAKEFILEDEPS="POTFILES.in" 19899 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 19900 # on $ac_dir but don't depend on user-specified configuration 19901 # parameters. 19902 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 19903 # The LINGUAS file contains the set of available languages. 19904 if test -n "$OBSOLETE_ALL_LINGUAS"; then 19905 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 19906 fi 19907 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 19908 # Hide the ALL_LINGUAS assigment from automake. 19909 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 19910 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 19911 else 19912 # The set of available languages was given in configure.ac. 19913 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 19914 fi 19915 case "$ac_given_srcdir" in 19916 .) srcdirpre= ;; 19917 *) srcdirpre='$(srcdir)/' ;; 19918 esac 19919 POFILES= 19920 GMOFILES= 19921 UPDATEPOFILES= 19922 DUMMYPOFILES= 19923 for lang in $ALL_LINGUAS; do 19924 POFILES="$POFILES $srcdirpre$lang.po" 19925 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 19926 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 19927 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 19928 done 19929 # CATALOGS depends on both $ac_dir and the user's LINGUAS 19930 # environment variable. 19931 INST_LINGUAS= 19932 if test -n "$ALL_LINGUAS"; then 19933 for presentlang in $ALL_LINGUAS; do 19934 useit=no 19935 if test "%UNSET%" != "$LINGUAS"; then 19936 desiredlanguages="$LINGUAS" 19937 else 19938 desiredlanguages="$ALL_LINGUAS" 19939 fi 19940 for desiredlang in $desiredlanguages; do 19941 # Use the presentlang catalog if desiredlang is 19942 # a. equal to presentlang, or 19943 # b. a variant of presentlang (because in this case, 19944 # presentlang can be used as a fallback for messages 19945 # which are not translated in the desiredlang catalog). 19946 case "$desiredlang" in 19947 "$presentlang"*) useit=yes;; 19948 esac 19949 done 19950 if test $useit = yes; then 19951 INST_LINGUAS="$INST_LINGUAS $presentlang" 19952 fi 19953 done 19954 fi 19955 CATALOGS= 19956 if test -n "$INST_LINGUAS"; then 19957 for lang in $INST_LINGUAS; do 19958 CATALOGS="$CATALOGS $lang.gmo" 19959 done 19960 fi 19961 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 19962 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 19963 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 19964 if test -f "$f"; then 19965 case "$f" in 19966 *.orig | *.bak | *~) ;; 19967 *) cat "$f" >> "$ac_dir/Makefile" ;; 19968 esac 19969 fi 19970 done 19971 fi 19972 ;; 19973 esac 19974 done ;; 19975 19976 esac 19977 done # for ac_tag 19978 19979 19980 as_fn_exit 0 19981 _ACEOF 19982 ac_clean_files=$ac_clean_files_save 19983 19984 test $ac_write_fail = 0 || 19985 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 19986 19987 19988 # configure is writing to config.log, and then calls config.status. 19989 # config.status does its own redirection, appending to config.log. 19990 # Unfortunately, on DOS this fails, as config.log is still kept open 19991 # by configure, so config.status won't be able to write to it; its 19992 # output is simply discarded. So we exec the FD to /dev/null, 19993 # effectively closing config.log, so it can be properly (re)opened and 19994 # appended to by config.status. When coming back to configure, we 19995 # need to make the FD available again. 19996 if test "$no_create" != yes; then 19997 ac_cs_success=: 19998 ac_config_status_args= 19999 test "$silent" = yes && 20000 ac_config_status_args="$ac_config_status_args --quiet" 20001 exec 5>/dev/null 20002 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20003 exec 5>>config.log 20004 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20005 # would make configure fail if this is the last instruction. 20006 $ac_cs_success || as_fn_exit $? 20007 fi 20008 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20010 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20011 fi 20012 20013