1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for opcodes 2.45. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 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 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 276 $0: including any error possibly output before this 277 $0: message. Then install a modern shell, or manually run 278 $0: the script under such a shell if you do have one." 279 fi 280 exit 1 281 fi 282 fi 283 fi 284 SHELL=${CONFIG_SHELL-/bin/sh} 285 export SHELL 286 # Unset more variables known to interfere with behavior of common tools. 287 CLICOLOR_FORCE= GREP_OPTIONS= 288 unset CLICOLOR_FORCE GREP_OPTIONS 289 290 ## --------------------- ## 291 ## M4sh Shell Functions. ## 292 ## --------------------- ## 293 # as_fn_unset VAR 294 # --------------- 295 # Portably unset VAR. 296 as_fn_unset () 297 { 298 { eval $1=; unset $1;} 299 } 300 as_unset=as_fn_unset 301 302 # as_fn_set_status STATUS 303 # ----------------------- 304 # Set $? to STATUS, without forking. 305 as_fn_set_status () 306 { 307 return $1 308 } # as_fn_set_status 309 310 # as_fn_exit STATUS 311 # ----------------- 312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313 as_fn_exit () 314 { 315 set +e 316 as_fn_set_status $1 317 exit $1 318 } # as_fn_exit 319 320 # as_fn_mkdir_p 321 # ------------- 322 # Create "$as_dir" as a directory, including parents if necessary. 323 as_fn_mkdir_p () 324 { 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342 $as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366 } # as_fn_mkdir_p 367 368 # as_fn_executable_p FILE 369 # ----------------------- 370 # Test if FILE is an executable regular file. 371 as_fn_executable_p () 372 { 373 test -f "$1" && test -x "$1" 374 } # as_fn_executable_p 375 # as_fn_append VAR VALUE 376 # ---------------------- 377 # Append the text in VALUE to the end of the definition contained in VAR. Take 378 # advantage of any shell optimizations that allow amortized linear growth over 379 # repeated appends, instead of the typical quadratic growth present in naive 380 # implementations. 381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386 else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391 fi # as_fn_append 392 393 # as_fn_arith ARG... 394 # ------------------ 395 # Perform arithmetic evaluation on the ARGs, and store the result in the 396 # global $as_val. Take advantage of shells that can avoid forks. The arguments 397 # must be portable across $(()) and expr. 398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403 else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408 fi # as_fn_arith 409 410 411 # as_fn_error STATUS ERROR [LINENO LOG_FD] 412 # ---------------------------------------- 413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415 # script with STATUS, using 1 if that was 0. 416 as_fn_error () 417 { 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425 } # as_fn_error 426 427 if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430 else 431 as_expr=false 432 fi 433 434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436 else 437 as_basename=false 438 fi 439 440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442 else 443 as_dirname=false 444 fi 445 446 as_me=`$as_basename -- "$0" || 447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450 $as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465 # Avoid depending upon Character Ranges. 466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469 as_cr_digits='0123456789' 470 as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506 } 507 508 ECHO_C= ECHO_N= ECHO_T= 509 case `echo -n x` in #((((( 510 -n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517 *) 518 ECHO_N='-n';; 519 esac 520 521 rm -f conf$$ conf$$.exe conf$$.file 522 if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524 else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527 fi 528 if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542 else 543 as_ln_s='cp -pR' 544 fi 545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546 rmdir conf$$.dir 2>/dev/null 547 548 if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550 else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553 fi 554 555 as_test_x='test -x' 556 as_executable_p=as_fn_executable_p 557 558 # Sed expression to map a string onto a valid CPP name. 559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561 # Sed expression to map a string onto a valid variable name. 562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564 SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567 test -n "$DJDIR" || exec 7<&0 </dev/null 568 exec 6>&1 569 570 # Name of the host. 571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572 # so uname gets run too. 573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575 # 576 # Initializations. 577 # 578 ac_default_prefix=/usr/local 579 ac_clean_files= 580 ac_config_libobj_dir=. 581 LIBOBJS= 582 cross_compiling=no 583 subdirs= 584 MFLAGS= 585 MAKEFLAGS= 586 587 # Identity of this package. 588 PACKAGE_NAME='opcodes' 589 PACKAGE_TARNAME='opcodes' 590 PACKAGE_VERSION='2.45' 591 PACKAGE_STRING='opcodes 2.45' 592 PACKAGE_BUGREPORT='' 593 PACKAGE_URL='' 594 595 ac_unique_file="z8k-dis.c" 596 # Factoring default headers for most tests. 597 ac_includes_default="\ 598 #include <stdio.h> 599 #ifdef HAVE_SYS_TYPES_H 600 # include <sys/types.h> 601 #endif 602 #ifdef HAVE_SYS_STAT_H 603 # include <sys/stat.h> 604 #endif 605 #ifdef STDC_HEADERS 606 # include <stdlib.h> 607 # include <stddef.h> 608 #else 609 # ifdef HAVE_STDLIB_H 610 # include <stdlib.h> 611 # endif 612 #endif 613 #ifdef HAVE_STRING_H 614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615 # include <memory.h> 616 # endif 617 # include <string.h> 618 #endif 619 #ifdef HAVE_STRINGS_H 620 # include <strings.h> 621 #endif 622 #ifdef HAVE_INTTYPES_H 623 # include <inttypes.h> 624 #endif 625 #ifdef HAVE_STDINT_H 626 # include <stdint.h> 627 #endif 628 #ifdef HAVE_UNISTD_H 629 # include <unistd.h> 630 #endif" 631 632 gt_needs= 633 ac_subst_vars='am__EXEEXT_FALSE 634 am__EXEEXT_TRUE 635 LTLIBOBJS 636 LIBOBJS 637 BFD_MACHINES 638 archdefs 639 SHARED_DEPENDENCIES 640 SHARED_LIBADD 641 SHARED_LDFLAGS 642 BUILD_LIB_DEPS 643 BUILD_LIBS 644 LIBM 645 cgendir 646 CGEN_MAINT_FALSE 647 CGEN_MAINT_TRUE 648 HDEFINES 649 EXEEXT_FOR_BUILD 650 CC_FOR_BUILD 651 CATOBJEXT 652 GENCAT 653 INSTOBJEXT 654 DATADIRNAME 655 CATALOGS 656 INCINTL 657 LIBINTL_DEP 658 POSUB 659 LTLIBINTL 660 LIBINTL 661 INTLLIBS 662 LTLIBICONV 663 LIBICONV 664 INTL_MACOSX_LIBS 665 MSGMERGE 666 XGETTEXT 667 GMSGFMT 668 MSGFMT 669 USE_NLS 670 MKINSTALLDIRS 671 bfdincludedir 672 bfdlibdir 673 target_noncanonical 674 host_noncanonical 675 INSTALL_LIBBFD_FALSE 676 INSTALL_LIBBFD_TRUE 677 MAINT 678 MAINTAINER_MODE_FALSE 679 MAINTAINER_MODE_TRUE 680 WARN_WRITE_STRINGS 681 NO_WERROR 682 WARN_CFLAGS_FOR_BUILD 683 WARN_CFLAGS 684 OTOOL64 685 OTOOL 686 LIPO 687 NMEDIT 688 DSYMUTIL 689 OBJDUMP 690 LN_S 691 NM 692 ac_ct_DUMPBIN 693 DUMPBIN 694 LD 695 FGREP 696 SED 697 LIBTOOL 698 RANLIB 699 AR 700 EGREP 701 GREP 702 CPP 703 am__fastdepCC_FALSE 704 am__fastdepCC_TRUE 705 CCDEPMODE 706 am__nodep 707 AMDEPBACKSLASH 708 AMDEP_FALSE 709 AMDEP_TRUE 710 am__quote 711 am__include 712 DEPDIR 713 OBJEXT 714 EXEEXT 715 ac_ct_CC 716 CPPFLAGS 717 LDFLAGS 718 CFLAGS 719 CC 720 AM_BACKSLASH 721 AM_DEFAULT_VERBOSITY 722 AM_DEFAULT_V 723 AM_V 724 am__untar 725 am__tar 726 AMTAR 727 am__leading_dot 728 SET_MAKE 729 AWK 730 mkdir_p 731 MKDIR_P 732 INSTALL_STRIP_PROGRAM 733 STRIP 734 install_sh 735 MAKEINFO 736 AUTOHEADER 737 AUTOMAKE 738 AUTOCONF 739 ACLOCAL 740 VERSION 741 PACKAGE 742 CYGPATH_W 743 am__isrc 744 INSTALL_DATA 745 INSTALL_SCRIPT 746 INSTALL_PROGRAM 747 target_os 748 target_vendor 749 target_cpu 750 target 751 host_os 752 host_vendor 753 host_cpu 754 host 755 build_os 756 build_vendor 757 build_cpu 758 build 759 target_alias 760 host_alias 761 build_alias 762 LIBS 763 ECHO_T 764 ECHO_N 765 ECHO_C 766 DEFS 767 mandir 768 localedir 769 libdir 770 psdir 771 pdfdir 772 dvidir 773 htmldir 774 infodir 775 docdir 776 oldincludedir 777 includedir 778 localstatedir 779 sharedstatedir 780 sysconfdir 781 datadir 782 datarootdir 783 libexecdir 784 sbindir 785 bindir 786 program_transform_name 787 prefix 788 exec_prefix 789 PACKAGE_URL 790 PACKAGE_BUGREPORT 791 PACKAGE_STRING 792 PACKAGE_VERSION 793 PACKAGE_TARNAME 794 PACKAGE_NAME 795 PATH_SEPARATOR 796 SHELL' 797 ac_subst_files='' 798 ac_user_opts=' 799 enable_option_checking 800 enable_silent_rules 801 enable_dependency_tracking 802 enable_shared 803 enable_static 804 with_pic 805 enable_fast_install 806 with_gnu_ld 807 enable_libtool_lock 808 enable_checking 809 enable_targets 810 enable_werror 811 enable_build_warnings 812 enable_maintainer_mode 813 enable_install_libbfd 814 enable_nls 815 enable_rpath 816 with_libiconv_prefix 817 with_libiconv_type 818 with_libintl_prefix 819 with_libintl_type 820 enable_cgen_maint 821 ' 822 ac_precious_vars='build_alias 823 host_alias 824 target_alias 825 CC 826 CFLAGS 827 LDFLAGS 828 LIBS 829 CPPFLAGS 830 CPP' 831 832 833 # Initialize some variables set by options. 834 ac_init_help= 835 ac_init_version=false 836 ac_unrecognized_opts= 837 ac_unrecognized_sep= 838 # The variables have the same names as the options, with 839 # dashes changed to underlines. 840 cache_file=/dev/null 841 exec_prefix=NONE 842 no_create= 843 no_recursion= 844 prefix=NONE 845 program_prefix=NONE 846 program_suffix=NONE 847 program_transform_name=s,x,x, 848 silent= 849 site= 850 srcdir= 851 verbose= 852 x_includes=NONE 853 x_libraries=NONE 854 855 # Installation directory options. 856 # These are left unexpanded so users can "make install exec_prefix=/foo" 857 # and all the variables that are supposed to be based on exec_prefix 858 # by default will actually change. 859 # Use braces instead of parens because sh, perl, etc. also accept them. 860 # (The list follows the same order as the GNU Coding Standards.) 861 bindir='${exec_prefix}/bin' 862 sbindir='${exec_prefix}/sbin' 863 libexecdir='${exec_prefix}/libexec' 864 datarootdir='${prefix}/share' 865 datadir='${datarootdir}' 866 sysconfdir='${prefix}/etc' 867 sharedstatedir='${prefix}/com' 868 localstatedir='${prefix}/var' 869 includedir='${prefix}/include' 870 oldincludedir='/usr/include' 871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 872 infodir='${datarootdir}/info' 873 htmldir='${docdir}' 874 dvidir='${docdir}' 875 pdfdir='${docdir}' 876 psdir='${docdir}' 877 libdir='${exec_prefix}/lib' 878 localedir='${datarootdir}/locale' 879 mandir='${datarootdir}/man' 880 881 ac_prev= 882 ac_dashdash= 883 for ac_option 884 do 885 # If the previous option needs an argument, assign it. 886 if test -n "$ac_prev"; then 887 eval $ac_prev=\$ac_option 888 ac_prev= 889 continue 890 fi 891 892 case $ac_option in 893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 894 *=) ac_optarg= ;; 895 *) ac_optarg=yes ;; 896 esac 897 898 # Accept the important Cygnus configure options, so we can diagnose typos. 899 900 case $ac_dashdash$ac_option in 901 --) 902 ac_dashdash=yes ;; 903 904 -bindir | --bindir | --bindi | --bind | --bin | --bi) 905 ac_prev=bindir ;; 906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 907 bindir=$ac_optarg ;; 908 909 -build | --build | --buil | --bui | --bu) 910 ac_prev=build_alias ;; 911 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 912 build_alias=$ac_optarg ;; 913 914 -cache-file | --cache-file | --cache-fil | --cache-fi \ 915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 916 ac_prev=cache_file ;; 917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 919 cache_file=$ac_optarg ;; 920 921 --config-cache | -C) 922 cache_file=config.cache ;; 923 924 -datadir | --datadir | --datadi | --datad) 925 ac_prev=datadir ;; 926 -datadir=* | --datadir=* | --datadi=* | --datad=*) 927 datadir=$ac_optarg ;; 928 929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 930 | --dataroo | --dataro | --datar) 931 ac_prev=datarootdir ;; 932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 934 datarootdir=$ac_optarg ;; 935 936 -disable-* | --disable-*) 937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 938 # Reject names that are not valid shell variable names. 939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 940 as_fn_error $? "invalid feature name: $ac_useropt" 941 ac_useropt_orig=$ac_useropt 942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 943 case $ac_user_opts in 944 *" 945 "enable_$ac_useropt" 946 "*) ;; 947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 948 ac_unrecognized_sep=', ';; 949 esac 950 eval enable_$ac_useropt=no ;; 951 952 -docdir | --docdir | --docdi | --doc | --do) 953 ac_prev=docdir ;; 954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 955 docdir=$ac_optarg ;; 956 957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 958 ac_prev=dvidir ;; 959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 960 dvidir=$ac_optarg ;; 961 962 -enable-* | --enable-*) 963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 964 # Reject names that are not valid shell variable names. 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 966 as_fn_error $? "invalid feature name: $ac_useropt" 967 ac_useropt_orig=$ac_useropt 968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 969 case $ac_user_opts in 970 *" 971 "enable_$ac_useropt" 972 "*) ;; 973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 974 ac_unrecognized_sep=', ';; 975 esac 976 eval enable_$ac_useropt=\$ac_optarg ;; 977 978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 980 | --exec | --exe | --ex) 981 ac_prev=exec_prefix ;; 982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 984 | --exec=* | --exe=* | --ex=*) 985 exec_prefix=$ac_optarg ;; 986 987 -gas | --gas | --ga | --g) 988 # Obsolete; use --with-gas. 989 with_gas=yes ;; 990 991 -help | --help | --hel | --he | -h) 992 ac_init_help=long ;; 993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 994 ac_init_help=recursive ;; 995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 996 ac_init_help=short ;; 997 998 -host | --host | --hos | --ho) 999 ac_prev=host_alias ;; 1000 -host=* | --host=* | --hos=* | --ho=*) 1001 host_alias=$ac_optarg ;; 1002 1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1004 ac_prev=htmldir ;; 1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1006 | --ht=*) 1007 htmldir=$ac_optarg ;; 1008 1009 -includedir | --includedir | --includedi | --included | --include \ 1010 | --includ | --inclu | --incl | --inc) 1011 ac_prev=includedir ;; 1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1013 | --includ=* | --inclu=* | --incl=* | --inc=*) 1014 includedir=$ac_optarg ;; 1015 1016 -infodir | --infodir | --infodi | --infod | --info | --inf) 1017 ac_prev=infodir ;; 1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1019 infodir=$ac_optarg ;; 1020 1021 -libdir | --libdir | --libdi | --libd) 1022 ac_prev=libdir ;; 1023 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1024 libdir=$ac_optarg ;; 1025 1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1027 | --libexe | --libex | --libe) 1028 ac_prev=libexecdir ;; 1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1030 | --libexe=* | --libex=* | --libe=*) 1031 libexecdir=$ac_optarg ;; 1032 1033 -localedir | --localedir | --localedi | --localed | --locale) 1034 ac_prev=localedir ;; 1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1036 localedir=$ac_optarg ;; 1037 1038 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1039 | --localstate | --localstat | --localsta | --localst | --locals) 1040 ac_prev=localstatedir ;; 1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1043 localstatedir=$ac_optarg ;; 1044 1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1046 ac_prev=mandir ;; 1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1048 mandir=$ac_optarg ;; 1049 1050 -nfp | --nfp | --nf) 1051 # Obsolete; use --without-fp. 1052 with_fp=no ;; 1053 1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1055 | --no-cr | --no-c | -n) 1056 no_create=yes ;; 1057 1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1060 no_recursion=yes ;; 1061 1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1064 | --oldin | --oldi | --old | --ol | --o) 1065 ac_prev=oldincludedir ;; 1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1069 oldincludedir=$ac_optarg ;; 1070 1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1072 ac_prev=prefix ;; 1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1074 prefix=$ac_optarg ;; 1075 1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1077 | --program-pre | --program-pr | --program-p) 1078 ac_prev=program_prefix ;; 1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1081 program_prefix=$ac_optarg ;; 1082 1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1084 | --program-suf | --program-su | --program-s) 1085 ac_prev=program_suffix ;; 1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1088 program_suffix=$ac_optarg ;; 1089 1090 -program-transform-name | --program-transform-name \ 1091 | --program-transform-nam | --program-transform-na \ 1092 | --program-transform-n | --program-transform- \ 1093 | --program-transform | --program-transfor \ 1094 | --program-transfo | --program-transf \ 1095 | --program-trans | --program-tran \ 1096 | --progr-tra | --program-tr | --program-t) 1097 ac_prev=program_transform_name ;; 1098 -program-transform-name=* | --program-transform-name=* \ 1099 | --program-transform-nam=* | --program-transform-na=* \ 1100 | --program-transform-n=* | --program-transform-=* \ 1101 | --program-transform=* | --program-transfor=* \ 1102 | --program-transfo=* | --program-transf=* \ 1103 | --program-trans=* | --program-tran=* \ 1104 | --progr-tra=* | --program-tr=* | --program-t=*) 1105 program_transform_name=$ac_optarg ;; 1106 1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1108 ac_prev=pdfdir ;; 1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1110 pdfdir=$ac_optarg ;; 1111 1112 -psdir | --psdir | --psdi | --psd | --ps) 1113 ac_prev=psdir ;; 1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1115 psdir=$ac_optarg ;; 1116 1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1118 | -silent | --silent | --silen | --sile | --sil) 1119 silent=yes ;; 1120 1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1122 ac_prev=sbindir ;; 1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1124 | --sbi=* | --sb=*) 1125 sbindir=$ac_optarg ;; 1126 1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1129 | --sharedst | --shareds | --shared | --share | --shar \ 1130 | --sha | --sh) 1131 ac_prev=sharedstatedir ;; 1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1135 | --sha=* | --sh=*) 1136 sharedstatedir=$ac_optarg ;; 1137 1138 -site | --site | --sit) 1139 ac_prev=site ;; 1140 -site=* | --site=* | --sit=*) 1141 site=$ac_optarg ;; 1142 1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1144 ac_prev=srcdir ;; 1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1146 srcdir=$ac_optarg ;; 1147 1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1149 | --syscon | --sysco | --sysc | --sys | --sy) 1150 ac_prev=sysconfdir ;; 1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1153 sysconfdir=$ac_optarg ;; 1154 1155 -target | --target | --targe | --targ | --tar | --ta | --t) 1156 ac_prev=target_alias ;; 1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1158 target_alias=$ac_optarg ;; 1159 1160 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1161 verbose=yes ;; 1162 1163 -version | --version | --versio | --versi | --vers | -V) 1164 ac_init_version=: ;; 1165 1166 -with-* | --with-*) 1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 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--with-$ac_useropt_orig" 1178 ac_unrecognized_sep=', ';; 1179 esac 1180 eval with_$ac_useropt=\$ac_optarg ;; 1181 1182 -without-* | --without-*) 1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1184 # Reject names that are not valid shell variable names. 1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1186 as_fn_error $? "invalid package name: $ac_useropt" 1187 ac_useropt_orig=$ac_useropt 1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1189 case $ac_user_opts in 1190 *" 1191 "with_$ac_useropt" 1192 "*) ;; 1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1194 ac_unrecognized_sep=', ';; 1195 esac 1196 eval with_$ac_useropt=no ;; 1197 1198 --x) 1199 # Obsolete; use --with-x. 1200 with_x=yes ;; 1201 1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1203 | --x-incl | --x-inc | --x-in | --x-i) 1204 ac_prev=x_includes ;; 1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1207 x_includes=$ac_optarg ;; 1208 1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1211 ac_prev=x_libraries ;; 1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1214 x_libraries=$ac_optarg ;; 1215 1216 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1217 Try \`$0 --help' for more information" 1218 ;; 1219 1220 *=*) 1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1222 # Reject names that are not valid shell variable names. 1223 case $ac_envvar in #( 1224 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1226 esac 1227 eval $ac_envvar=\$ac_optarg 1228 export $ac_envvar ;; 1229 1230 *) 1231 # FIXME: should be removed in autoconf 3.0. 1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1236 ;; 1237 1238 esac 1239 done 1240 1241 if test -n "$ac_prev"; then 1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1243 as_fn_error $? "missing argument to $ac_option" 1244 fi 1245 1246 if test -n "$ac_unrecognized_opts"; then 1247 case $enable_option_checking in 1248 no) ;; 1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1251 esac 1252 fi 1253 1254 # Check all directory arguments for consistency. 1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1256 datadir sysconfdir sharedstatedir localstatedir includedir \ 1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1258 libdir localedir mandir 1259 do 1260 eval ac_val=\$$ac_var 1261 # Remove trailing slashes. 1262 case $ac_val in 1263 */ ) 1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1265 eval $ac_var=\$ac_val;; 1266 esac 1267 # Be sure to have absolute directory names. 1268 case $ac_val in 1269 [\\/$]* | ?:[\\/]* ) continue;; 1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1271 esac 1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1273 done 1274 1275 # There might be people who depend on the old broken behavior: `$host' 1276 # used to hold the argument of --host etc. 1277 # FIXME: To remove some day. 1278 build=$build_alias 1279 host=$host_alias 1280 target=$target_alias 1281 1282 # FIXME: To remove some day. 1283 if test "x$host_alias" != x; then 1284 if test "x$build_alias" = x; then 1285 cross_compiling=maybe 1286 elif test "x$build_alias" != "x$host_alias"; then 1287 cross_compiling=yes 1288 fi 1289 fi 1290 1291 ac_tool_prefix= 1292 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1293 1294 test "$silent" = yes && exec 6>/dev/null 1295 1296 1297 ac_pwd=`pwd` && test -n "$ac_pwd" && 1298 ac_ls_di=`ls -di .` && 1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1300 as_fn_error $? "working directory cannot be determined" 1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1302 as_fn_error $? "pwd does not report name of working directory" 1303 1304 1305 # Find the source files, if location was not specified. 1306 if test -z "$srcdir"; then 1307 ac_srcdir_defaulted=yes 1308 # Try the directory containing this script, then the parent directory. 1309 ac_confdir=`$as_dirname -- "$as_myself" || 1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1311 X"$as_myself" : 'X\(//\)[^/]' \| \ 1312 X"$as_myself" : 'X\(//\)$' \| \ 1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1314 $as_echo X"$as_myself" | 1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\/\)[^/].*/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)$/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\).*/{ 1328 s//\1/ 1329 q 1330 } 1331 s/.*/./; q'` 1332 srcdir=$ac_confdir 1333 if test ! -r "$srcdir/$ac_unique_file"; then 1334 srcdir=.. 1335 fi 1336 else 1337 ac_srcdir_defaulted=no 1338 fi 1339 if test ! -r "$srcdir/$ac_unique_file"; then 1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1342 fi 1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1344 ac_abs_confdir=`( 1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1346 pwd)` 1347 # When building in place, set srcdir=. 1348 if test "$ac_abs_confdir" = "$ac_pwd"; then 1349 srcdir=. 1350 fi 1351 # Remove unnecessary trailing slashes from srcdir. 1352 # Double slashes in file names in object file debugging info 1353 # mess up M-x gdb in Emacs. 1354 case $srcdir in 1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1356 esac 1357 for ac_var in $ac_precious_vars; do 1358 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1359 eval ac_env_${ac_var}_value=\$${ac_var} 1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1361 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1362 done 1363 1364 # 1365 # Report the --help message. 1366 # 1367 if test "$ac_init_help" = "long"; then 1368 # Omit some internal or obsolete options to make the list less imposing. 1369 # This message is too long to be a string in the A/UX 3.1 sh. 1370 cat <<_ACEOF 1371 \`configure' configures opcodes 2.45 to adapt to many kinds of systems. 1372 1373 Usage: $0 [OPTION]... [VAR=VALUE]... 1374 1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1376 VAR=VALUE. See below for descriptions of some of the useful variables. 1377 1378 Defaults for the options are specified in brackets. 1379 1380 Configuration: 1381 -h, --help display this help and exit 1382 --help=short display options specific to this package 1383 --help=recursive display the short help of all the included packages 1384 -V, --version display version information and exit 1385 -q, --quiet, --silent do not print \`checking ...' messages 1386 --cache-file=FILE cache test results in FILE [disabled] 1387 -C, --config-cache alias for \`--cache-file=config.cache' 1388 -n, --no-create do not create output files 1389 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1390 1391 Installation directories: 1392 --prefix=PREFIX install architecture-independent files in PREFIX 1393 [$ac_default_prefix] 1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1395 [PREFIX] 1396 1397 By default, \`make install' will install all the files in 1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1400 for instance \`--prefix=\$HOME'. 1401 1402 For better control, use the options below. 1403 1404 Fine tuning of the installation directories: 1405 --bindir=DIR user executables [EPREFIX/bin] 1406 --sbindir=DIR system admin executables [EPREFIX/sbin] 1407 --libexecdir=DIR program executables [EPREFIX/libexec] 1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1411 --libdir=DIR object code libraries [EPREFIX/lib] 1412 --includedir=DIR C header files [PREFIX/include] 1413 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1416 --infodir=DIR info documentation [DATAROOTDIR/info] 1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1418 --mandir=DIR man documentation [DATAROOTDIR/man] 1419 --docdir=DIR documentation root [DATAROOTDIR/doc/opcodes] 1420 --htmldir=DIR html documentation [DOCDIR] 1421 --dvidir=DIR dvi documentation [DOCDIR] 1422 --pdfdir=DIR pdf documentation [DOCDIR] 1423 --psdir=DIR ps documentation [DOCDIR] 1424 _ACEOF 1425 1426 cat <<\_ACEOF 1427 1428 Program names: 1429 --program-prefix=PREFIX prepend PREFIX to installed program names 1430 --program-suffix=SUFFIX append SUFFIX to installed program names 1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1432 1433 System types: 1434 --build=BUILD configure for building on BUILD [guessed] 1435 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1436 --target=TARGET configure for building compilers for TARGET [HOST] 1437 _ACEOF 1438 fi 1439 1440 if test -n "$ac_init_help"; then 1441 case $ac_init_help in 1442 short | recursive ) echo "Configuration of opcodes 2.45:";; 1443 esac 1444 cat <<\_ACEOF 1445 1446 Optional Features: 1447 --disable-option-checking ignore unrecognized --enable/--with options 1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1450 --enable-silent-rules less verbose build output (undo: "make V=1") 1451 --disable-silent-rules verbose build output (undo: "make V=0") 1452 --enable-dependency-tracking 1453 do not reject slow dependency extractors 1454 --disable-dependency-tracking 1455 speeds up one-time build 1456 --enable-shared[=PKGS] build shared libraries [default=no] 1457 --enable-static[=PKGS] build static libraries [default=yes] 1458 --enable-fast-install[=PKGS] 1459 optimize for fast installation [default=yes] 1460 --disable-libtool-lock avoid locking (might break parallel builds) 1461 --enable-checking enable run-time checks 1462 --enable-targets alternative target configurations 1463 --enable-werror treat compile warnings as errors 1464 --enable-build-warnings enable build-time compiler warnings 1465 --enable-maintainer-mode 1466 enable make rules and dependencies not useful (and 1467 sometimes confusing) to the casual installer 1468 --enable-install-libbfd controls installation of libbfd and related headers 1469 --disable-nls do not use Native Language Support 1470 --disable-rpath do not hardcode runtime library paths 1471 --enable-cgen-maint=dir build cgen generated files 1472 1473 Optional Packages: 1474 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1475 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1476 --with-pic try to use only PIC/non-PIC objects [default=use 1477 both] 1478 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1479 --with-gnu-ld assume the C compiler uses GNU ld default=no 1480 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1481 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1482 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1483 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1484 --without-libintl-prefix don't search for libintl in includedir and libdir 1485 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1486 1487 Some influential environment variables: 1488 CC C compiler command 1489 CFLAGS C compiler flags 1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1491 nonstandard directory <lib dir> 1492 LIBS libraries to pass to the linker, e.g. -l<library> 1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1494 you have headers in a nonstandard directory <include dir> 1495 CPP C preprocessor 1496 1497 Use these variables to override the choices made by `configure' or to help 1498 it to find libraries and programs with nonstandard names/locations. 1499 1500 Report bugs to the package provider. 1501 _ACEOF 1502 ac_status=$? 1503 fi 1504 1505 if test "$ac_init_help" = "recursive"; then 1506 # If there are subdirs, report their specific --help. 1507 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1508 test -d "$ac_dir" || 1509 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1510 continue 1511 ac_builddir=. 1512 1513 case "$ac_dir" in 1514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1515 *) 1516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1517 # A ".." for each directory in $ac_dir_suffix. 1518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1519 case $ac_top_builddir_sub in 1520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1522 esac ;; 1523 esac 1524 ac_abs_top_builddir=$ac_pwd 1525 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1526 # for backward compatibility: 1527 ac_top_builddir=$ac_top_build_prefix 1528 1529 case $srcdir in 1530 .) # We are building in place. 1531 ac_srcdir=. 1532 ac_top_srcdir=$ac_top_builddir_sub 1533 ac_abs_top_srcdir=$ac_pwd ;; 1534 [\\/]* | ?:[\\/]* ) # Absolute name. 1535 ac_srcdir=$srcdir$ac_dir_suffix; 1536 ac_top_srcdir=$srcdir 1537 ac_abs_top_srcdir=$srcdir ;; 1538 *) # Relative name. 1539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1540 ac_top_srcdir=$ac_top_build_prefix$srcdir 1541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1542 esac 1543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1544 1545 cd "$ac_dir" || { ac_status=$?; continue; } 1546 # Check for guested configure. 1547 if test -f "$ac_srcdir/configure.gnu"; then 1548 echo && 1549 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1550 elif test -f "$ac_srcdir/configure"; then 1551 echo && 1552 $SHELL "$ac_srcdir/configure" --help=recursive 1553 else 1554 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1555 fi || ac_status=$? 1556 cd "$ac_pwd" || { ac_status=$?; break; } 1557 done 1558 fi 1559 1560 test -n "$ac_init_help" && exit $ac_status 1561 if $ac_init_version; then 1562 cat <<\_ACEOF 1563 opcodes configure 2.45 1564 generated by GNU Autoconf 2.69 1565 1566 Copyright (C) 2012 Free Software Foundation, Inc. 1567 This configure script is free software; the Free Software Foundation 1568 gives unlimited permission to copy, distribute and modify it. 1569 _ACEOF 1570 exit 1571 fi 1572 1573 ## ------------------------ ## 1574 ## Autoconf initialization. ## 1575 ## ------------------------ ## 1576 1577 # ac_fn_c_try_compile LINENO 1578 # -------------------------- 1579 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1580 ac_fn_c_try_compile () 1581 { 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583 rm -f conftest.$ac_objext 1584 if { { ac_try="$ac_compile" 1585 case "(($ac_try" in 1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1587 *) ac_try_echo=$ac_try;; 1588 esac 1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1590 $as_echo "$ac_try_echo"; } >&5 1591 (eval "$ac_compile") 2>conftest.err 1592 ac_status=$? 1593 if test -s conftest.err; then 1594 grep -v '^ *+' conftest.err >conftest.er1 1595 cat conftest.er1 >&5 1596 mv -f conftest.er1 conftest.err 1597 fi 1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1599 test $ac_status = 0; } && { 1600 test -z "$ac_c_werror_flag" || 1601 test ! -s conftest.err 1602 } && test -s conftest.$ac_objext; then : 1603 ac_retval=0 1604 else 1605 $as_echo "$as_me: failed program was:" >&5 1606 sed 's/^/| /' conftest.$ac_ext >&5 1607 1608 ac_retval=1 1609 fi 1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1611 as_fn_set_status $ac_retval 1612 1613 } # ac_fn_c_try_compile 1614 1615 # ac_fn_c_try_cpp LINENO 1616 # ---------------------- 1617 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1618 ac_fn_c_try_cpp () 1619 { 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 if { { ac_try="$ac_cpp conftest.$ac_ext" 1622 case "(($ac_try" in 1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1624 *) ac_try_echo=$ac_try;; 1625 esac 1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1627 $as_echo "$ac_try_echo"; } >&5 1628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1629 ac_status=$? 1630 if test -s conftest.err; then 1631 grep -v '^ *+' conftest.err >conftest.er1 1632 cat conftest.er1 >&5 1633 mv -f conftest.er1 conftest.err 1634 fi 1635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1636 test $ac_status = 0; } > conftest.i && { 1637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1638 test ! -s conftest.err 1639 }; then : 1640 ac_retval=0 1641 else 1642 $as_echo "$as_me: failed program was:" >&5 1643 sed 's/^/| /' conftest.$ac_ext >&5 1644 1645 ac_retval=1 1646 fi 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1648 as_fn_set_status $ac_retval 1649 1650 } # ac_fn_c_try_cpp 1651 1652 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1653 # ------------------------------------------------------- 1654 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1655 # the include files in INCLUDES and setting the cache variable VAR 1656 # accordingly. 1657 ac_fn_c_check_header_mongrel () 1658 { 1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1660 if eval \${$3+:} false; then : 1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1662 $as_echo_n "checking for $2... " >&6; } 1663 if eval \${$3+:} false; then : 1664 $as_echo_n "(cached) " >&6 1665 fi 1666 eval ac_res=\$$3 1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1668 $as_echo "$ac_res" >&6; } 1669 else 1670 # Is the header compilable? 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1672 $as_echo_n "checking $2 usability... " >&6; } 1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1674 /* end confdefs.h. */ 1675 $4 1676 #include <$2> 1677 _ACEOF 1678 if ac_fn_c_try_compile "$LINENO"; then : 1679 ac_header_compiler=yes 1680 else 1681 ac_header_compiler=no 1682 fi 1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1685 $as_echo "$ac_header_compiler" >&6; } 1686 1687 # Is the header present? 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1689 $as_echo_n "checking $2 presence... " >&6; } 1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1691 /* end confdefs.h. */ 1692 #include <$2> 1693 _ACEOF 1694 if ac_fn_c_try_cpp "$LINENO"; then : 1695 ac_header_preproc=yes 1696 else 1697 ac_header_preproc=no 1698 fi 1699 rm -f conftest.err conftest.i conftest.$ac_ext 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1701 $as_echo "$ac_header_preproc" >&6; } 1702 1703 # So? What about this header? 1704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1705 yes:no: ) 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1707 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1709 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1710 ;; 1711 no:yes:* ) 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1713 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1715 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1717 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1719 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1721 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1722 ;; 1723 esac 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1725 $as_echo_n "checking for $2... " >&6; } 1726 if eval \${$3+:} false; then : 1727 $as_echo_n "(cached) " >&6 1728 else 1729 eval "$3=\$ac_header_compiler" 1730 fi 1731 eval ac_res=\$$3 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1733 $as_echo "$ac_res" >&6; } 1734 fi 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 1737 } # ac_fn_c_check_header_mongrel 1738 1739 # ac_fn_c_try_run LINENO 1740 # ---------------------- 1741 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1742 # that executables *can* be run. 1743 ac_fn_c_try_run () 1744 { 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 if { { ac_try="$ac_link" 1747 case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750 esac 1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752 $as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_link") 2>&5 1754 ac_status=$? 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1757 { { case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760 esac 1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762 $as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_try") 2>&5 1764 ac_status=$? 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; }; }; then : 1767 ac_retval=0 1768 else 1769 $as_echo "$as_me: program exited with status $ac_status" >&5 1770 $as_echo "$as_me: failed program was:" >&5 1771 sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=$ac_status 1774 fi 1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 as_fn_set_status $ac_retval 1778 1779 } # ac_fn_c_try_run 1780 1781 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1782 # ------------------------------------------------------- 1783 # Tests whether HEADER exists and can be compiled using the include files in 1784 # INCLUDES, setting the cache variable VAR accordingly. 1785 ac_fn_c_check_header_compile () 1786 { 1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1789 $as_echo_n "checking for $2... " >&6; } 1790 if eval \${$3+:} false; then : 1791 $as_echo_n "(cached) " >&6 1792 else 1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1794 /* end confdefs.h. */ 1795 $4 1796 #include <$2> 1797 _ACEOF 1798 if ac_fn_c_try_compile "$LINENO"; then : 1799 eval "$3=yes" 1800 else 1801 eval "$3=no" 1802 fi 1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1804 fi 1805 eval ac_res=\$$3 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1807 $as_echo "$ac_res" >&6; } 1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1809 1810 } # ac_fn_c_check_header_compile 1811 1812 # ac_fn_c_try_link LINENO 1813 # ----------------------- 1814 # Try to link conftest.$ac_ext, and return whether this succeeded. 1815 ac_fn_c_try_link () 1816 { 1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1818 rm -f conftest.$ac_objext conftest$ac_exeext 1819 if { { ac_try="$ac_link" 1820 case "(($ac_try" in 1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1822 *) ac_try_echo=$ac_try;; 1823 esac 1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1825 $as_echo "$ac_try_echo"; } >&5 1826 (eval "$ac_link") 2>conftest.err 1827 ac_status=$? 1828 if test -s conftest.err; then 1829 grep -v '^ *+' conftest.err >conftest.er1 1830 cat conftest.er1 >&5 1831 mv -f conftest.er1 conftest.err 1832 fi 1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1834 test $ac_status = 0; } && { 1835 test -z "$ac_c_werror_flag" || 1836 test ! -s conftest.err 1837 } && test -s conftest$ac_exeext && { 1838 test "$cross_compiling" = yes || 1839 test -x conftest$ac_exeext 1840 }; then : 1841 ac_retval=0 1842 else 1843 $as_echo "$as_me: failed program was:" >&5 1844 sed 's/^/| /' conftest.$ac_ext >&5 1845 1846 ac_retval=1 1847 fi 1848 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1849 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1850 # interfere with the next link command; also delete a directory that is 1851 # left behind by Apple's compiler. We do this before executing the actions. 1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1854 as_fn_set_status $ac_retval 1855 1856 } # ac_fn_c_try_link 1857 1858 # ac_fn_c_check_func LINENO FUNC VAR 1859 # ---------------------------------- 1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1861 ac_fn_c_check_func () 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 eval \${$3+:} false; then : 1867 $as_echo_n "(cached) " >&6 1868 else 1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1870 /* end confdefs.h. */ 1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1873 #define $2 innocuous_$2 1874 1875 /* System header to define __stub macros and hopefully few prototypes, 1876 which can conflict with char $2 (); below. 1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1878 <limits.h> exists even on freestanding compilers. */ 1879 1880 #ifdef __STDC__ 1881 # include <limits.h> 1882 #else 1883 # include <assert.h> 1884 #endif 1885 1886 #undef $2 1887 1888 /* Override any GCC internal prototype to avoid an error. 1889 Use char because int might match the return type of a GCC 1890 builtin and then its argument prototype would still apply. */ 1891 #ifdef __cplusplus 1892 extern "C" 1893 #endif 1894 char $2 (); 1895 /* The GNU C library defines this for functions which it implements 1896 to always fail with ENOSYS. Some functions are actually named 1897 something starting with __ and the normal name is an alias. */ 1898 #if defined __stub_$2 || defined __stub___$2 1899 choke me 1900 #endif 1901 1902 int 1903 main () 1904 { 1905 return $2 (); 1906 ; 1907 return 0; 1908 } 1909 _ACEOF 1910 if ac_fn_c_try_link "$LINENO"; then : 1911 eval "$3=yes" 1912 else 1913 eval "$3=no" 1914 fi 1915 rm -f core conftest.err conftest.$ac_objext \ 1916 conftest$ac_exeext conftest.$ac_ext 1917 fi 1918 eval ac_res=\$$3 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1920 $as_echo "$ac_res" >&6; } 1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1922 1923 } # ac_fn_c_check_func 1924 1925 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1926 # --------------------------------------------- 1927 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1928 # accordingly. 1929 ac_fn_c_check_decl () 1930 { 1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1932 as_decl_name=`echo $2|sed 's/ *(.*//'` 1933 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1935 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1936 if eval \${$3+:} false; then : 1937 $as_echo_n "(cached) " >&6 1938 else 1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1940 /* end confdefs.h. */ 1941 $4 1942 int 1943 main () 1944 { 1945 #ifndef $as_decl_name 1946 #ifdef __cplusplus 1947 (void) $as_decl_use; 1948 #else 1949 (void) $as_decl_name; 1950 #endif 1951 #endif 1952 1953 ; 1954 return 0; 1955 } 1956 _ACEOF 1957 if ac_fn_c_try_compile "$LINENO"; then : 1958 eval "$3=yes" 1959 else 1960 eval "$3=no" 1961 fi 1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1963 fi 1964 eval ac_res=\$$3 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1966 $as_echo "$ac_res" >&6; } 1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1968 1969 } # ac_fn_c_check_decl 1970 cat >config.log <<_ACEOF 1971 This file contains any messages produced by compilers while 1972 running configure, to aid debugging if configure makes a mistake. 1973 1974 It was created by opcodes $as_me 2.45, which was 1975 generated by GNU Autoconf 2.69. Invocation command line was 1976 1977 $ $0 $@ 1978 1979 _ACEOF 1980 exec 5>>config.log 1981 { 1982 cat <<_ASUNAME 1983 ## --------- ## 1984 ## Platform. ## 1985 ## --------- ## 1986 1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1988 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1989 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1990 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1991 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1992 1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1995 1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2003 2004 _ASUNAME 2005 2006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2007 for as_dir in $PATH 2008 do 2009 IFS=$as_save_IFS 2010 test -z "$as_dir" && as_dir=. 2011 $as_echo "PATH: $as_dir" 2012 done 2013 IFS=$as_save_IFS 2014 2015 } >&5 2016 2017 cat >&5 <<_ACEOF 2018 2019 2020 ## ----------- ## 2021 ## Core tests. ## 2022 ## ----------- ## 2023 2024 _ACEOF 2025 2026 2027 # Keep a trace of the command line. 2028 # Strip out --no-create and --no-recursion so they do not pile up. 2029 # Strip out --silent because we don't want to record it for future runs. 2030 # Also quote any args containing shell meta-characters. 2031 # Make two passes to allow for proper duplicate-argument suppression. 2032 ac_configure_args= 2033 ac_configure_args0= 2034 ac_configure_args1= 2035 ac_must_keep_next=false 2036 for ac_pass in 1 2 2037 do 2038 for ac_arg 2039 do 2040 case $ac_arg in 2041 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2043 | -silent | --silent | --silen | --sile | --sil) 2044 continue ;; 2045 *\'*) 2046 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2047 esac 2048 case $ac_pass in 2049 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2050 2) 2051 as_fn_append ac_configure_args1 " '$ac_arg'" 2052 if test $ac_must_keep_next = true; then 2053 ac_must_keep_next=false # Got value, back to normal. 2054 else 2055 case $ac_arg in 2056 *=* | --config-cache | -C | -disable-* | --disable-* \ 2057 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2058 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2059 | -with-* | --with-* | -without-* | --without-* | --x) 2060 case "$ac_configure_args0 " in 2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2062 esac 2063 ;; 2064 -* ) ac_must_keep_next=true ;; 2065 esac 2066 fi 2067 as_fn_append ac_configure_args " '$ac_arg'" 2068 ;; 2069 esac 2070 done 2071 done 2072 { ac_configure_args0=; unset ac_configure_args0;} 2073 { ac_configure_args1=; unset ac_configure_args1;} 2074 2075 # When interrupted or exit'd, cleanup temporary files, and complete 2076 # config.log. We remove comments because anyway the quotes in there 2077 # would cause problems or look ugly. 2078 # WARNING: Use '\'' to represent an apostrophe within the trap. 2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2080 trap 'exit_status=$? 2081 # Save into config.log some information that might help in debugging. 2082 { 2083 echo 2084 2085 $as_echo "## ---------------- ## 2086 ## Cache variables. ## 2087 ## ---------------- ##" 2088 echo 2089 # The following way of writing the cache mishandles newlines in values, 2090 ( 2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2092 eval ac_val=\$$ac_var 2093 case $ac_val in #( 2094 *${as_nl}*) 2095 case $ac_var in #( 2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2098 esac 2099 case $ac_var in #( 2100 _ | IFS | as_nl) ;; #( 2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2102 *) { eval $ac_var=; unset $ac_var;} ;; 2103 esac ;; 2104 esac 2105 done 2106 (set) 2>&1 | 2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2108 *${as_nl}ac_space=\ *) 2109 sed -n \ 2110 "s/'\''/'\''\\\\'\'''\''/g; 2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2112 ;; #( 2113 *) 2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2115 ;; 2116 esac | 2117 sort 2118 ) 2119 echo 2120 2121 $as_echo "## ----------------- ## 2122 ## Output variables. ## 2123 ## ----------------- ##" 2124 echo 2125 for ac_var in $ac_subst_vars 2126 do 2127 eval ac_val=\$$ac_var 2128 case $ac_val in 2129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2130 esac 2131 $as_echo "$ac_var='\''$ac_val'\''" 2132 done | sort 2133 echo 2134 2135 if test -n "$ac_subst_files"; then 2136 $as_echo "## ------------------- ## 2137 ## File substitutions. ## 2138 ## ------------------- ##" 2139 echo 2140 for ac_var in $ac_subst_files 2141 do 2142 eval ac_val=\$$ac_var 2143 case $ac_val in 2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2145 esac 2146 $as_echo "$ac_var='\''$ac_val'\''" 2147 done | sort 2148 echo 2149 fi 2150 2151 if test -s confdefs.h; then 2152 $as_echo "## ----------- ## 2153 ## confdefs.h. ## 2154 ## ----------- ##" 2155 echo 2156 cat confdefs.h 2157 echo 2158 fi 2159 test "$ac_signal" != 0 && 2160 $as_echo "$as_me: caught signal $ac_signal" 2161 $as_echo "$as_me: exit $exit_status" 2162 } >&5 2163 rm -f core *.core core.conftest.* && 2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2165 exit $exit_status 2166 ' 0 2167 for ac_signal in 1 2 13 15; do 2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2169 done 2170 ac_signal=0 2171 2172 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2173 rm -f -r conftest* confdefs.h 2174 2175 $as_echo "/* confdefs.h */" > confdefs.h 2176 2177 # Predefined preprocessor variables. 2178 2179 cat >>confdefs.h <<_ACEOF 2180 #define PACKAGE_NAME "$PACKAGE_NAME" 2181 _ACEOF 2182 2183 cat >>confdefs.h <<_ACEOF 2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2185 _ACEOF 2186 2187 cat >>confdefs.h <<_ACEOF 2188 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2189 _ACEOF 2190 2191 cat >>confdefs.h <<_ACEOF 2192 #define PACKAGE_STRING "$PACKAGE_STRING" 2193 _ACEOF 2194 2195 cat >>confdefs.h <<_ACEOF 2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2197 _ACEOF 2198 2199 cat >>confdefs.h <<_ACEOF 2200 #define PACKAGE_URL "$PACKAGE_URL" 2201 _ACEOF 2202 2203 2204 # Let the site file select an alternate cache file if it wants to. 2205 # Prefer an explicitly selected file to automatically selected ones. 2206 ac_site_file1=NONE 2207 ac_site_file2=NONE 2208 if test -n "$CONFIG_SITE"; then 2209 # We do not want a PATH search for config.site. 2210 case $CONFIG_SITE in #(( 2211 -*) ac_site_file1=./$CONFIG_SITE;; 2212 */*) ac_site_file1=$CONFIG_SITE;; 2213 *) ac_site_file1=./$CONFIG_SITE;; 2214 esac 2215 elif test "x$prefix" != xNONE; then 2216 ac_site_file1=$prefix/share/config.site 2217 ac_site_file2=$prefix/etc/config.site 2218 else 2219 ac_site_file1=$ac_default_prefix/share/config.site 2220 ac_site_file2=$ac_default_prefix/etc/config.site 2221 fi 2222 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2223 do 2224 test "x$ac_site_file" = xNONE && continue 2225 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2228 sed 's/^/| /' "$ac_site_file" >&5 2229 . "$ac_site_file" \ 2230 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2232 as_fn_error $? "failed to load site script $ac_site_file 2233 See \`config.log' for more details" "$LINENO" 5; } 2234 fi 2235 done 2236 2237 if test -r "$cache_file"; then 2238 # Some versions of bash will fail to source /dev/null (special files 2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2240 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2242 $as_echo "$as_me: loading cache $cache_file" >&6;} 2243 case $cache_file in 2244 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2245 *) . "./$cache_file";; 2246 esac 2247 fi 2248 else 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2250 $as_echo "$as_me: creating cache $cache_file" >&6;} 2251 >$cache_file 2252 fi 2253 2254 gt_needs="$gt_needs " 2255 # Check that the precious variables saved in the cache have kept the same 2256 # value. 2257 ac_cache_corrupted=false 2258 for ac_var in $ac_precious_vars; do 2259 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2260 eval ac_new_set=\$ac_env_${ac_var}_set 2261 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2262 eval ac_new_val=\$ac_env_${ac_var}_value 2263 case $ac_old_set,$ac_new_set in 2264 set,) 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2267 ac_cache_corrupted=: ;; 2268 ,set) 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2271 ac_cache_corrupted=: ;; 2272 ,);; 2273 *) 2274 if test "x$ac_old_val" != "x$ac_new_val"; then 2275 # differences in whitespace do not lead to failure. 2276 ac_old_val_w=`echo x $ac_old_val` 2277 ac_new_val_w=`echo x $ac_new_val` 2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2281 ac_cache_corrupted=: 2282 else 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2285 eval $ac_var=\$ac_old_val 2286 fi 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2291 fi;; 2292 esac 2293 # Pass precious variables to config.status. 2294 if test "$ac_new_set" = set; then 2295 case $ac_new_val in 2296 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2297 *) ac_arg=$ac_var=$ac_new_val ;; 2298 esac 2299 case " $ac_configure_args " in 2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2301 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2302 esac 2303 fi 2304 done 2305 if $ac_cache_corrupted; then 2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2310 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2311 fi 2312 ## -------------------- ## 2313 ## Main body of script. ## 2314 ## -------------------- ## 2315 2316 ac_ext=c 2317 ac_cpp='$CPP $CPPFLAGS' 2318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2320 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2321 2322 2323 2324 2325 2326 2327 2328 ac_aux_dir= 2329 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2330 if test -f "$ac_dir/install-sh"; then 2331 ac_aux_dir=$ac_dir 2332 ac_install_sh="$ac_aux_dir/install-sh -c" 2333 break 2334 elif test -f "$ac_dir/install.sh"; then 2335 ac_aux_dir=$ac_dir 2336 ac_install_sh="$ac_aux_dir/install.sh -c" 2337 break 2338 elif test -f "$ac_dir/shtool"; then 2339 ac_aux_dir=$ac_dir 2340 ac_install_sh="$ac_aux_dir/shtool install -c" 2341 break 2342 fi 2343 done 2344 if test -z "$ac_aux_dir"; then 2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2346 fi 2347 2348 # These three variables are undocumented and unsupported, 2349 # and are intended to be withdrawn in a future Autoconf release. 2350 # They can cause serious problems if a builder's source tree is in a directory 2351 # whose full name contains unusual characters. 2352 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2353 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2354 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2355 2356 2357 # Make sure we can run config.sub. 2358 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2359 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2360 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2362 $as_echo_n "checking build system type... " >&6; } 2363 if ${ac_cv_build+:} false; then : 2364 $as_echo_n "(cached) " >&6 2365 else 2366 ac_build_alias=$build_alias 2367 test "x$ac_build_alias" = x && 2368 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2369 test "x$ac_build_alias" = x && 2370 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2371 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2373 2374 fi 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2376 $as_echo "$ac_cv_build" >&6; } 2377 case $ac_cv_build in 2378 *-*-*) ;; 2379 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2380 esac 2381 build=$ac_cv_build 2382 ac_save_IFS=$IFS; IFS='-' 2383 set x $ac_cv_build 2384 shift 2385 build_cpu=$1 2386 build_vendor=$2 2387 shift; shift 2388 # Remember, the first character of IFS is used to create $*, 2389 # except with old shells: 2390 build_os=$* 2391 IFS=$ac_save_IFS 2392 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2393 2394 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2396 $as_echo_n "checking host system type... " >&6; } 2397 if ${ac_cv_host+:} false; then : 2398 $as_echo_n "(cached) " >&6 2399 else 2400 if test "x$host_alias" = x; then 2401 ac_cv_host=$ac_cv_build 2402 else 2403 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2404 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2405 fi 2406 2407 fi 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2409 $as_echo "$ac_cv_host" >&6; } 2410 case $ac_cv_host in 2411 *-*-*) ;; 2412 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2413 esac 2414 host=$ac_cv_host 2415 ac_save_IFS=$IFS; IFS='-' 2416 set x $ac_cv_host 2417 shift 2418 host_cpu=$1 2419 host_vendor=$2 2420 shift; shift 2421 # Remember, the first character of IFS is used to create $*, 2422 # except with old shells: 2423 host_os=$* 2424 IFS=$ac_save_IFS 2425 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2426 2427 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2429 $as_echo_n "checking target system type... " >&6; } 2430 if ${ac_cv_target+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432 else 2433 if test "x$target_alias" = x; then 2434 ac_cv_target=$ac_cv_host 2435 else 2436 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2437 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2438 fi 2439 2440 fi 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2442 $as_echo "$ac_cv_target" >&6; } 2443 case $ac_cv_target in 2444 *-*-*) ;; 2445 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2446 esac 2447 target=$ac_cv_target 2448 ac_save_IFS=$IFS; IFS='-' 2449 set x $ac_cv_target 2450 shift 2451 target_cpu=$1 2452 target_vendor=$2 2453 shift; shift 2454 # Remember, the first character of IFS is used to create $*, 2455 # except with old shells: 2456 target_os=$* 2457 IFS=$ac_save_IFS 2458 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2459 2460 2461 # The aliases save the names the user supplied, while $host etc. 2462 # will get canonicalized. 2463 test -n "$target_alias" && 2464 test "$program_prefix$program_suffix$program_transform_name" = \ 2465 NONENONEs,x,x, && 2466 program_prefix=${target_alias}- 2467 2468 am__api_version='1.15' 2469 2470 # Find a good install program. We prefer a C program (faster), 2471 # so one script is as good as another. But avoid the broken or 2472 # incompatible versions: 2473 # SysV /etc/install, /usr/sbin/install 2474 # SunOS /usr/etc/install 2475 # IRIX /sbin/install 2476 # AIX /bin/install 2477 # AmigaOS /C/install, which installs bootblocks on floppy discs 2478 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2479 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2480 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2481 # OS/2's system install, which has a completely different semantic 2482 # ./install, which can be erroneously created by make from ./install.sh. 2483 # Reject install programs that cannot install multiple files. 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2485 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2486 if test -z "$INSTALL"; then 2487 if ${ac_cv_path_install+:} false; then : 2488 $as_echo_n "(cached) " >&6 2489 else 2490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2491 for as_dir in $PATH 2492 do 2493 IFS=$as_save_IFS 2494 test -z "$as_dir" && as_dir=. 2495 # Account for people who put trailing slashes in PATH elements. 2496 case $as_dir/ in #(( 2497 ./ | .// | /[cC]/* | \ 2498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2499 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2500 /usr/ucb/* ) ;; 2501 *) 2502 # OSF1 and SCO ODT 3.0 have their own names for install. 2503 # Don't use installbsd from OSF since it installs stuff as root 2504 # by default. 2505 for ac_prog in ginstall scoinst install; do 2506 for ac_exec_ext in '' $ac_executable_extensions; do 2507 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2508 if test $ac_prog = install && 2509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2510 # AIX install. It has an incompatible calling convention. 2511 : 2512 elif test $ac_prog = install && 2513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2514 # program-specific install script used by HP pwplus--don't use. 2515 : 2516 else 2517 rm -rf conftest.one conftest.two conftest.dir 2518 echo one > conftest.one 2519 echo two > conftest.two 2520 mkdir conftest.dir 2521 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2522 test -s conftest.one && test -s conftest.two && 2523 test -s conftest.dir/conftest.one && 2524 test -s conftest.dir/conftest.two 2525 then 2526 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2527 break 3 2528 fi 2529 fi 2530 fi 2531 done 2532 done 2533 ;; 2534 esac 2535 2536 done 2537 IFS=$as_save_IFS 2538 2539 rm -rf conftest.one conftest.two conftest.dir 2540 2541 fi 2542 if test "${ac_cv_path_install+set}" = set; then 2543 INSTALL=$ac_cv_path_install 2544 else 2545 # As a last resort, use the slow shell script. Don't cache a 2546 # value for INSTALL within a source directory, because that will 2547 # break other packages using the cache if that directory is 2548 # removed, or if the value is a relative name. 2549 INSTALL=$ac_install_sh 2550 fi 2551 fi 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2553 $as_echo "$INSTALL" >&6; } 2554 2555 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2556 # It thinks the first close brace ends the variable substitution. 2557 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2558 2559 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2560 2561 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2562 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2564 $as_echo_n "checking whether build environment is sane... " >&6; } 2565 # Reject unsafe characters in $srcdir or the absolute working directory 2566 # name. Accept space and tab only in the latter. 2567 am_lf=' 2568 ' 2569 case `pwd` in 2570 *[\\\"\#\$\&\'\`$am_lf]*) 2571 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2572 esac 2573 case $srcdir in 2574 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2575 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2576 esac 2577 2578 # Do 'set' in a subshell so we don't clobber the current shell's 2579 # arguments. Must try -L first in case configure is actually a 2580 # symlink; some systems play weird games with the mod time of symlinks 2581 # (eg FreeBSD returns the mod time of the symlink's containing 2582 # directory). 2583 if ( 2584 am_has_slept=no 2585 for am_try in 1 2; do 2586 echo "timestamp, slept: $am_has_slept" > conftest.file 2587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2588 if test "$*" = "X"; then 2589 # -L didn't work. 2590 set X `ls -t "$srcdir/configure" conftest.file` 2591 fi 2592 if test "$*" != "X $srcdir/configure conftest.file" \ 2593 && test "$*" != "X conftest.file $srcdir/configure"; then 2594 2595 # If neither matched, then we have a broken ls. This can happen 2596 # if, for instance, CONFIG_SHELL is bash and it inherits a 2597 # broken ls alias from the environment. This has actually 2598 # happened. Such a system could not be considered "sane". 2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2600 alias in your environment" "$LINENO" 5 2601 fi 2602 if test "$2" = conftest.file || test $am_try -eq 2; then 2603 break 2604 fi 2605 # Just in case. 2606 sleep 1 2607 am_has_slept=yes 2608 done 2609 test "$2" = conftest.file 2610 ) 2611 then 2612 # Ok. 2613 : 2614 else 2615 as_fn_error $? "newly created file is older than distributed files! 2616 Check your system clock" "$LINENO" 5 2617 fi 2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2619 $as_echo "yes" >&6; } 2620 # If we didn't sleep, we still need to ensure time stamps of config.status and 2621 # generated files are strictly newer. 2622 am_sleep_pid= 2623 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2624 ( sleep 1 ) & 2625 am_sleep_pid=$! 2626 fi 2627 2628 rm -f conftest.file 2629 2630 test "$program_prefix" != NONE && 2631 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2632 # Use a double $ so make ignores it. 2633 test "$program_suffix" != NONE && 2634 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2635 # Double any \ or $. 2636 # By default was `s,x,x', remove it if useless. 2637 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2638 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2639 2640 # Expand $ac_aux_dir to an absolute path. 2641 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2642 2643 if test x"${MISSING+set}" != xset; then 2644 case $am_aux_dir in 2645 *\ * | *\ *) 2646 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2647 *) 2648 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2649 esac 2650 fi 2651 # Use eval to expand $SHELL 2652 if eval "$MISSING --is-lightweight"; then 2653 am_missing_run="$MISSING " 2654 else 2655 am_missing_run= 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2657 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2658 fi 2659 2660 if test x"${install_sh+set}" != xset; then 2661 case $am_aux_dir in 2662 *\ * | *\ *) 2663 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2664 *) 2665 install_sh="\${SHELL} $am_aux_dir/install-sh" 2666 esac 2667 fi 2668 2669 # Installed binaries are usually stripped using 'strip' when the user 2670 # run "make install-strip". However 'strip' might not be the right 2671 # tool to use in cross-compilation environments, therefore Automake 2672 # will honor the 'STRIP' environment variable to overrule this program. 2673 if test "$cross_compiling" != no; then 2674 if test -n "$ac_tool_prefix"; then 2675 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2676 set dummy ${ac_tool_prefix}strip; ac_word=$2 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2678 $as_echo_n "checking for $ac_word... " >&6; } 2679 if ${ac_cv_prog_STRIP+:} false; then : 2680 $as_echo_n "(cached) " >&6 2681 else 2682 if test -n "$STRIP"; then 2683 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2684 else 2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2686 for as_dir in $PATH 2687 do 2688 IFS=$as_save_IFS 2689 test -z "$as_dir" && as_dir=. 2690 for ac_exec_ext in '' $ac_executable_extensions; do 2691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2692 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2694 break 2 2695 fi 2696 done 2697 done 2698 IFS=$as_save_IFS 2699 2700 fi 2701 fi 2702 STRIP=$ac_cv_prog_STRIP 2703 if test -n "$STRIP"; then 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2705 $as_echo "$STRIP" >&6; } 2706 else 2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2708 $as_echo "no" >&6; } 2709 fi 2710 2711 2712 fi 2713 if test -z "$ac_cv_prog_STRIP"; then 2714 ac_ct_STRIP=$STRIP 2715 # Extract the first word of "strip", so it can be a program name with args. 2716 set dummy strip; ac_word=$2 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2718 $as_echo_n "checking for $ac_word... " >&6; } 2719 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721 else 2722 if test -n "$ac_ct_STRIP"; then 2723 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2724 else 2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726 for as_dir in $PATH 2727 do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_exec_ext in '' $ac_executable_extensions; do 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2732 ac_cv_prog_ac_ct_STRIP="strip" 2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2734 break 2 2735 fi 2736 done 2737 done 2738 IFS=$as_save_IFS 2739 2740 fi 2741 fi 2742 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2743 if test -n "$ac_ct_STRIP"; then 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2745 $as_echo "$ac_ct_STRIP" >&6; } 2746 else 2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2748 $as_echo "no" >&6; } 2749 fi 2750 2751 if test "x$ac_ct_STRIP" = x; then 2752 STRIP=":" 2753 else 2754 case $cross_compiling:$ac_tool_warned in 2755 yes:) 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2758 ac_tool_warned=yes ;; 2759 esac 2760 STRIP=$ac_ct_STRIP 2761 fi 2762 else 2763 STRIP="$ac_cv_prog_STRIP" 2764 fi 2765 2766 fi 2767 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2768 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2771 if test -z "$MKDIR_P"; then 2772 if ${ac_cv_path_mkdir+:} false; then : 2773 $as_echo_n "(cached) " >&6 2774 else 2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2777 do 2778 IFS=$as_save_IFS 2779 test -z "$as_dir" && as_dir=. 2780 for ac_prog in mkdir gmkdir; do 2781 for ac_exec_ext in '' $ac_executable_extensions; do 2782 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2784 'mkdir (GNU coreutils) '* | \ 2785 'mkdir (coreutils) '* | \ 2786 'mkdir (fileutils) '4.1*) 2787 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2788 break 3;; 2789 esac 2790 done 2791 done 2792 done 2793 IFS=$as_save_IFS 2794 2795 fi 2796 2797 test -d ./--version && rmdir ./--version 2798 if test "${ac_cv_path_mkdir+set}" = set; then 2799 MKDIR_P="$ac_cv_path_mkdir -p" 2800 else 2801 # As a last resort, use the slow shell script. Don't cache a 2802 # value for MKDIR_P within a source directory, because that will 2803 # break other packages using the cache if that directory is 2804 # removed, or if the value is a relative name. 2805 MKDIR_P="$ac_install_sh -d" 2806 fi 2807 fi 2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2809 $as_echo "$MKDIR_P" >&6; } 2810 2811 for ac_prog in gawk mawk nawk awk 2812 do 2813 # Extract the first word of "$ac_prog", so it can be a program name with args. 2814 set dummy $ac_prog; ac_word=$2 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2816 $as_echo_n "checking for $ac_word... " >&6; } 2817 if ${ac_cv_prog_AWK+:} false; then : 2818 $as_echo_n "(cached) " >&6 2819 else 2820 if test -n "$AWK"; then 2821 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2822 else 2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2824 for as_dir in $PATH 2825 do 2826 IFS=$as_save_IFS 2827 test -z "$as_dir" && as_dir=. 2828 for ac_exec_ext in '' $ac_executable_extensions; do 2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2830 ac_cv_prog_AWK="$ac_prog" 2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2832 break 2 2833 fi 2834 done 2835 done 2836 IFS=$as_save_IFS 2837 2838 fi 2839 fi 2840 AWK=$ac_cv_prog_AWK 2841 if test -n "$AWK"; then 2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2843 $as_echo "$AWK" >&6; } 2844 else 2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2846 $as_echo "no" >&6; } 2847 fi 2848 2849 2850 test -n "$AWK" && break 2851 done 2852 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2854 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2855 set x ${MAKE-make} 2856 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2857 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2858 $as_echo_n "(cached) " >&6 2859 else 2860 cat >conftest.make <<\_ACEOF 2861 SHELL = /bin/sh 2862 all: 2863 @echo '@@@%%%=$(MAKE)=@@@%%%' 2864 _ACEOF 2865 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2866 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2867 *@@@%%%=?*=@@@%%%*) 2868 eval ac_cv_prog_make_${ac_make}_set=yes;; 2869 *) 2870 eval ac_cv_prog_make_${ac_make}_set=no;; 2871 esac 2872 rm -f conftest.make 2873 fi 2874 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2876 $as_echo "yes" >&6; } 2877 SET_MAKE= 2878 else 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2880 $as_echo "no" >&6; } 2881 SET_MAKE="MAKE=${MAKE-make}" 2882 fi 2883 2884 rm -rf .tst 2>/dev/null 2885 mkdir .tst 2>/dev/null 2886 if test -d .tst; then 2887 am__leading_dot=. 2888 else 2889 am__leading_dot=_ 2890 fi 2891 rmdir .tst 2>/dev/null 2892 2893 # Check whether --enable-silent-rules was given. 2894 if test "${enable_silent_rules+set}" = set; then : 2895 enableval=$enable_silent_rules; 2896 fi 2897 2898 case $enable_silent_rules in # ((( 2899 yes) AM_DEFAULT_VERBOSITY=0;; 2900 no) AM_DEFAULT_VERBOSITY=1;; 2901 *) AM_DEFAULT_VERBOSITY=1;; 2902 esac 2903 am_make=${MAKE-make} 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2905 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2906 if ${am_cv_make_support_nested_variables+:} false; then : 2907 $as_echo_n "(cached) " >&6 2908 else 2909 if $as_echo 'TRUE=$(BAR$(V)) 2910 BAR0=false 2911 BAR1=true 2912 V=1 2913 am__doit: 2914 @$(TRUE) 2915 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2916 am_cv_make_support_nested_variables=yes 2917 else 2918 am_cv_make_support_nested_variables=no 2919 fi 2920 fi 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2922 $as_echo "$am_cv_make_support_nested_variables" >&6; } 2923 if test $am_cv_make_support_nested_variables = yes; then 2924 AM_V='$(V)' 2925 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2926 else 2927 AM_V=$AM_DEFAULT_VERBOSITY 2928 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2929 fi 2930 AM_BACKSLASH='\' 2931 2932 if test "`cd $srcdir && pwd`" != "`pwd`"; then 2933 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2934 # is not polluted with repeated "-I." 2935 am__isrc=' -I$(srcdir)' 2936 # test to see if srcdir already configured 2937 if test -f $srcdir/config.status; then 2938 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2939 fi 2940 fi 2941 2942 # test whether we have cygpath 2943 if test -z "$CYGPATH_W"; then 2944 if (cygpath --version) >/dev/null 2>/dev/null; then 2945 CYGPATH_W='cygpath -w' 2946 else 2947 CYGPATH_W=echo 2948 fi 2949 fi 2950 2951 2952 # Define the identity of the package. 2953 PACKAGE='opcodes' 2954 VERSION='2.45' 2955 2956 2957 cat >>confdefs.h <<_ACEOF 2958 #define PACKAGE "$PACKAGE" 2959 _ACEOF 2960 2961 2962 cat >>confdefs.h <<_ACEOF 2963 #define VERSION "$VERSION" 2964 _ACEOF 2965 2966 # Some tools Automake needs. 2967 2968 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2969 2970 2971 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2972 2973 2974 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2975 2976 2977 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2978 2979 2980 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2981 2982 # For better backward compatibility. To be removed once Automake 1.9.x 2983 # dies out for good. For more background, see: 2984 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2985 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2986 mkdir_p='$(MKDIR_P)' 2987 2988 # We need awk for the "check" target (and possibly the TAP driver). The 2989 # system "awk" is bad on some platforms. 2990 # Always define AMTAR for backward compatibility. Yes, it's still used 2991 # in the wild :-( We should find a proper way to deprecate it ... 2992 AMTAR='$${TAR-tar}' 2993 2994 2995 # We'll loop over all known methods to create a tar archive until one works. 2996 _am_tools='gnutar pax cpio none' 2997 2998 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2999 3000 3001 3002 3003 3004 3005 # POSIX will say in a future version that running "rm -f" with no argument 3006 # is OK; and we want to be able to make that assumption in our Makefile 3007 # recipes. So use an aggressive probe to check that the usage we want is 3008 # actually supported "in the wild" to an acceptable degree. 3009 # See automake bug#10828. 3010 # To make any issue more visible, cause the running configure to be aborted 3011 # by default if the 'rm' program in use doesn't match our expectations; the 3012 # user can still override this though. 3013 if rm -f && rm -fr && rm -rf; then : OK; else 3014 cat >&2 <<'END' 3015 Oops! 3016 3017 Your 'rm' program seems unable to run without file operands specified 3018 on the command line, even when the '-f' option is present. This is contrary 3019 to the behaviour of most rm programs out there, and not conforming with 3020 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3021 3022 Please tell bug-automake@gnu.org about your system, including the value 3023 of your $PATH and any error possibly output before this message. This 3024 can help us improve future automake versions. 3025 3026 END 3027 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3028 echo 'Configuration will proceed anyway, since you have set the' >&2 3029 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3030 echo >&2 3031 else 3032 cat >&2 <<'END' 3033 Aborting the configuration process, to ensure you take notice of the issue. 3034 3035 You can download and install GNU coreutils to get an 'rm' implementation 3036 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3037 3038 If you want to complete the configuration process using your problematic 3039 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3040 to "yes", and re-run configure. 3041 3042 END 3043 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3044 fi 3045 fi 3046 3047 # Check whether --enable-silent-rules was given. 3048 if test "${enable_silent_rules+set}" = set; then : 3049 enableval=$enable_silent_rules; 3050 fi 3051 3052 case $enable_silent_rules in # ((( 3053 yes) AM_DEFAULT_VERBOSITY=0;; 3054 no) AM_DEFAULT_VERBOSITY=1;; 3055 *) AM_DEFAULT_VERBOSITY=0;; 3056 esac 3057 am_make=${MAKE-make} 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3059 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3060 if ${am_cv_make_support_nested_variables+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062 else 3063 if $as_echo 'TRUE=$(BAR$(V)) 3064 BAR0=false 3065 BAR1=true 3066 V=1 3067 am__doit: 3068 @$(TRUE) 3069 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3070 am_cv_make_support_nested_variables=yes 3071 else 3072 am_cv_make_support_nested_variables=no 3073 fi 3074 fi 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3076 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3077 if test $am_cv_make_support_nested_variables = yes; then 3078 AM_V='$(V)' 3079 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3080 else 3081 AM_V=$AM_DEFAULT_VERBOSITY 3082 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3083 fi 3084 AM_BACKSLASH='\' 3085 3086 3087 ac_ext=c 3088 ac_cpp='$CPP $CPPFLAGS' 3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3092 if test -n "$ac_tool_prefix"; then 3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3096 $as_echo_n "checking for $ac_word... " >&6; } 3097 if ${ac_cv_prog_CC+:} false; then : 3098 $as_echo_n "(cached) " >&6 3099 else 3100 if test -n "$CC"; then 3101 ac_cv_prog_CC="$CC" # Let the user override the test. 3102 else 3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3104 for as_dir in $PATH 3105 do 3106 IFS=$as_save_IFS 3107 test -z "$as_dir" && as_dir=. 3108 for ac_exec_ext in '' $ac_executable_extensions; do 3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3110 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3112 break 2 3113 fi 3114 done 3115 done 3116 IFS=$as_save_IFS 3117 3118 fi 3119 fi 3120 CC=$ac_cv_prog_CC 3121 if test -n "$CC"; then 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3123 $as_echo "$CC" >&6; } 3124 else 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3126 $as_echo "no" >&6; } 3127 fi 3128 3129 3130 fi 3131 if test -z "$ac_cv_prog_CC"; then 3132 ac_ct_CC=$CC 3133 # Extract the first word of "gcc", so it can be a program name with args. 3134 set dummy gcc; ac_word=$2 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3136 $as_echo_n "checking for $ac_word... " >&6; } 3137 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3138 $as_echo_n "(cached) " >&6 3139 else 3140 if test -n "$ac_ct_CC"; then 3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3142 else 3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3144 for as_dir in $PATH 3145 do 3146 IFS=$as_save_IFS 3147 test -z "$as_dir" && as_dir=. 3148 for ac_exec_ext in '' $ac_executable_extensions; do 3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3150 ac_cv_prog_ac_ct_CC="gcc" 3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3152 break 2 3153 fi 3154 done 3155 done 3156 IFS=$as_save_IFS 3157 3158 fi 3159 fi 3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3161 if test -n "$ac_ct_CC"; then 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3163 $as_echo "$ac_ct_CC" >&6; } 3164 else 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3166 $as_echo "no" >&6; } 3167 fi 3168 3169 if test "x$ac_ct_CC" = x; then 3170 CC="" 3171 else 3172 case $cross_compiling:$ac_tool_warned in 3173 yes:) 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3176 ac_tool_warned=yes ;; 3177 esac 3178 CC=$ac_ct_CC 3179 fi 3180 else 3181 CC="$ac_cv_prog_CC" 3182 fi 3183 3184 if test -z "$CC"; then 3185 if test -n "$ac_tool_prefix"; then 3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3187 set dummy ${ac_tool_prefix}cc; ac_word=$2 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3189 $as_echo_n "checking for $ac_word... " >&6; } 3190 if ${ac_cv_prog_CC+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192 else 3193 if test -n "$CC"; then 3194 ac_cv_prog_CC="$CC" # Let the user override the test. 3195 else 3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197 for as_dir in $PATH 3198 do 3199 IFS=$as_save_IFS 3200 test -z "$as_dir" && as_dir=. 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3203 ac_cv_prog_CC="${ac_tool_prefix}cc" 3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3205 break 2 3206 fi 3207 done 3208 done 3209 IFS=$as_save_IFS 3210 3211 fi 3212 fi 3213 CC=$ac_cv_prog_CC 3214 if test -n "$CC"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3216 $as_echo "$CC" >&6; } 3217 else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219 $as_echo "no" >&6; } 3220 fi 3221 3222 3223 fi 3224 fi 3225 if test -z "$CC"; then 3226 # Extract the first word of "cc", so it can be a program name with args. 3227 set dummy cc; ac_word=$2 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3229 $as_echo_n "checking for $ac_word... " >&6; } 3230 if ${ac_cv_prog_CC+:} false; then : 3231 $as_echo_n "(cached) " >&6 3232 else 3233 if test -n "$CC"; then 3234 ac_cv_prog_CC="$CC" # Let the user override the test. 3235 else 3236 ac_prog_rejected=no 3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3238 for as_dir in $PATH 3239 do 3240 IFS=$as_save_IFS 3241 test -z "$as_dir" && as_dir=. 3242 for ac_exec_ext in '' $ac_executable_extensions; do 3243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3245 ac_prog_rejected=yes 3246 continue 3247 fi 3248 ac_cv_prog_CC="cc" 3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252 done 3253 done 3254 IFS=$as_save_IFS 3255 3256 if test $ac_prog_rejected = yes; then 3257 # We found a bogon in the path, so make sure we never use it. 3258 set dummy $ac_cv_prog_CC 3259 shift 3260 if test $# != 0; then 3261 # We chose a different compiler from the bogus one. 3262 # However, it has the same basename, so the bogon will be chosen 3263 # first if we set CC to just the basename; use the full file name. 3264 shift 3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3266 fi 3267 fi 3268 fi 3269 fi 3270 CC=$ac_cv_prog_CC 3271 if test -n "$CC"; then 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3273 $as_echo "$CC" >&6; } 3274 else 3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3276 $as_echo "no" >&6; } 3277 fi 3278 3279 3280 fi 3281 if test -z "$CC"; then 3282 if test -n "$ac_tool_prefix"; then 3283 for ac_prog in cl.exe 3284 do 3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3288 $as_echo_n "checking for $ac_word... " >&6; } 3289 if ${ac_cv_prog_CC+:} false; then : 3290 $as_echo_n "(cached) " >&6 3291 else 3292 if test -n "$CC"; then 3293 ac_cv_prog_CC="$CC" # Let the user override the test. 3294 else 3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3296 for as_dir in $PATH 3297 do 3298 IFS=$as_save_IFS 3299 test -z "$as_dir" && as_dir=. 3300 for ac_exec_ext in '' $ac_executable_extensions; do 3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3304 break 2 3305 fi 3306 done 3307 done 3308 IFS=$as_save_IFS 3309 3310 fi 3311 fi 3312 CC=$ac_cv_prog_CC 3313 if test -n "$CC"; then 3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3315 $as_echo "$CC" >&6; } 3316 else 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3318 $as_echo "no" >&6; } 3319 fi 3320 3321 3322 test -n "$CC" && break 3323 done 3324 fi 3325 if test -z "$CC"; then 3326 ac_ct_CC=$CC 3327 for ac_prog in cl.exe 3328 do 3329 # Extract the first word of "$ac_prog", so it can be a program name with args. 3330 set dummy $ac_prog; ac_word=$2 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3332 $as_echo_n "checking for $ac_word... " >&6; } 3333 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335 else 3336 if test -n "$ac_ct_CC"; then 3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3338 else 3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3340 for as_dir in $PATH 3341 do 3342 IFS=$as_save_IFS 3343 test -z "$as_dir" && as_dir=. 3344 for ac_exec_ext in '' $ac_executable_extensions; do 3345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3346 ac_cv_prog_ac_ct_CC="$ac_prog" 3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3348 break 2 3349 fi 3350 done 3351 done 3352 IFS=$as_save_IFS 3353 3354 fi 3355 fi 3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3357 if test -n "$ac_ct_CC"; then 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3359 $as_echo "$ac_ct_CC" >&6; } 3360 else 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3362 $as_echo "no" >&6; } 3363 fi 3364 3365 3366 test -n "$ac_ct_CC" && break 3367 done 3368 3369 if test "x$ac_ct_CC" = x; then 3370 CC="" 3371 else 3372 case $cross_compiling:$ac_tool_warned in 3373 yes:) 3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3376 ac_tool_warned=yes ;; 3377 esac 3378 CC=$ac_ct_CC 3379 fi 3380 fi 3381 3382 fi 3383 3384 3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3387 as_fn_error $? "no acceptable C compiler found in \$PATH 3388 See \`config.log' for more details" "$LINENO" 5; } 3389 3390 # Provide some information about the compiler. 3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3392 set X $ac_compile 3393 ac_compiler=$2 3394 for ac_option in --version -v -V -qversion; do 3395 { { ac_try="$ac_compiler $ac_option >&5" 3396 case "(($ac_try" in 3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3398 *) ac_try_echo=$ac_try;; 3399 esac 3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3401 $as_echo "$ac_try_echo"; } >&5 3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3403 ac_status=$? 3404 if test -s conftest.err; then 3405 sed '10a\ 3406 ... rest of stderr output deleted ... 3407 10q' conftest.err >conftest.er1 3408 cat conftest.er1 >&5 3409 fi 3410 rm -f conftest.er1 conftest.err 3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3412 test $ac_status = 0; } 3413 done 3414 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416 /* end confdefs.h. */ 3417 3418 int 3419 main () 3420 { 3421 3422 ; 3423 return 0; 3424 } 3425 _ACEOF 3426 ac_clean_files_save=$ac_clean_files 3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3428 # Try to create an executable without -o first, disregard a.out. 3429 # It will help us diagnose broken compilers, and finding out an intuition 3430 # of exeext. 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3432 $as_echo_n "checking whether the C compiler works... " >&6; } 3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3434 3435 # The possible output files: 3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3437 3438 ac_rmfiles= 3439 for ac_file in $ac_files 3440 do 3441 case $ac_file in 3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3444 esac 3445 done 3446 rm -f $ac_rmfiles 3447 3448 if { { ac_try="$ac_link_default" 3449 case "(($ac_try" in 3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3451 *) ac_try_echo=$ac_try;; 3452 esac 3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3454 $as_echo "$ac_try_echo"; } >&5 3455 (eval "$ac_link_default") 2>&5 3456 ac_status=$? 3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3458 test $ac_status = 0; }; then : 3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3461 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3462 # so that the user can short-circuit this test for compilers unknown to 3463 # Autoconf. 3464 for ac_file in $ac_files '' 3465 do 3466 test -f "$ac_file" || continue 3467 case $ac_file in 3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3469 ;; 3470 [ab].out ) 3471 # We found the default executable, but exeext='' is most 3472 # certainly right. 3473 break;; 3474 *.* ) 3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3476 then :; else 3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3478 fi 3479 # We set ac_cv_exeext here because the later test for it is not 3480 # safe: cross compilers may not add the suffix if given an `-o' 3481 # argument, so we may need to know it at that point already. 3482 # Even if this section looks crufty: it has the advantage of 3483 # actually working. 3484 break;; 3485 * ) 3486 break;; 3487 esac 3488 done 3489 test "$ac_cv_exeext" = no && ac_cv_exeext= 3490 3491 else 3492 ac_file='' 3493 fi 3494 if test -z "$ac_file"; then : 3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3496 $as_echo "no" >&6; } 3497 $as_echo "$as_me: failed program was:" >&5 3498 sed 's/^/| /' conftest.$ac_ext >&5 3499 3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3502 as_fn_error 77 "C compiler cannot create executables 3503 See \`config.log' for more details" "$LINENO" 5; } 3504 else 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506 $as_echo "yes" >&6; } 3507 fi 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3509 $as_echo_n "checking for C compiler default output file name... " >&6; } 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3511 $as_echo "$ac_file" >&6; } 3512 ac_exeext=$ac_cv_exeext 3513 3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3515 ac_clean_files=$ac_clean_files_save 3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3517 $as_echo_n "checking for suffix of executables... " >&6; } 3518 if { { ac_try="$ac_link" 3519 case "(($ac_try" in 3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3521 *) ac_try_echo=$ac_try;; 3522 esac 3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3524 $as_echo "$ac_try_echo"; } >&5 3525 (eval "$ac_link") 2>&5 3526 ac_status=$? 3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3528 test $ac_status = 0; }; then : 3529 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3530 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3531 # work properly (i.e., refer to `conftest.exe'), while it won't with 3532 # `rm'. 3533 for ac_file in conftest.exe conftest conftest.*; do 3534 test -f "$ac_file" || continue 3535 case $ac_file in 3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3537 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3538 break;; 3539 * ) break;; 3540 esac 3541 done 3542 else 3543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3546 See \`config.log' for more details" "$LINENO" 5; } 3547 fi 3548 rm -f conftest conftest$ac_cv_exeext 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3550 $as_echo "$ac_cv_exeext" >&6; } 3551 3552 rm -f conftest.$ac_ext 3553 EXEEXT=$ac_cv_exeext 3554 ac_exeext=$EXEEXT 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556 /* end confdefs.h. */ 3557 #include <stdio.h> 3558 int 3559 main () 3560 { 3561 FILE *f = fopen ("conftest.out", "w"); 3562 return ferror (f) || fclose (f) != 0; 3563 3564 ; 3565 return 0; 3566 } 3567 _ACEOF 3568 ac_clean_files="$ac_clean_files conftest.out" 3569 # Check that the compiler produces executables we can run. If not, either 3570 # the compiler is broken, or we cross compile. 3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3572 $as_echo_n "checking whether we are cross compiling... " >&6; } 3573 if test "$cross_compiling" != yes; then 3574 { { ac_try="$ac_link" 3575 case "(($ac_try" in 3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3577 *) ac_try_echo=$ac_try;; 3578 esac 3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3580 $as_echo "$ac_try_echo"; } >&5 3581 (eval "$ac_link") 2>&5 3582 ac_status=$? 3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3584 test $ac_status = 0; } 3585 if { ac_try='./conftest$ac_cv_exeext' 3586 { { case "(($ac_try" in 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3588 *) ac_try_echo=$ac_try;; 3589 esac 3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3591 $as_echo "$ac_try_echo"; } >&5 3592 (eval "$ac_try") 2>&5 3593 ac_status=$? 3594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3595 test $ac_status = 0; }; }; then 3596 cross_compiling=no 3597 else 3598 if test "$cross_compiling" = maybe; then 3599 cross_compiling=yes 3600 else 3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3603 as_fn_error $? "cannot run C compiled programs. 3604 If you meant to cross compile, use \`--host'. 3605 See \`config.log' for more details" "$LINENO" 5; } 3606 fi 3607 fi 3608 fi 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3610 $as_echo "$cross_compiling" >&6; } 3611 3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3613 ac_clean_files=$ac_clean_files_save 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3615 $as_echo_n "checking for suffix of object files... " >&6; } 3616 if ${ac_cv_objext+:} false; then : 3617 $as_echo_n "(cached) " >&6 3618 else 3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3620 /* end confdefs.h. */ 3621 3622 int 3623 main () 3624 { 3625 3626 ; 3627 return 0; 3628 } 3629 _ACEOF 3630 rm -f conftest.o conftest.obj 3631 if { { ac_try="$ac_compile" 3632 case "(($ac_try" in 3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3634 *) ac_try_echo=$ac_try;; 3635 esac 3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3637 $as_echo "$ac_try_echo"; } >&5 3638 (eval "$ac_compile") 2>&5 3639 ac_status=$? 3640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3641 test $ac_status = 0; }; then : 3642 for ac_file in conftest.o conftest.obj conftest.*; do 3643 test -f "$ac_file" || continue; 3644 case $ac_file in 3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3646 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3647 break;; 3648 esac 3649 done 3650 else 3651 $as_echo "$as_me: failed program was:" >&5 3652 sed 's/^/| /' conftest.$ac_ext >&5 3653 3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656 as_fn_error $? "cannot compute suffix of object files: cannot compile 3657 See \`config.log' for more details" "$LINENO" 5; } 3658 fi 3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3660 fi 3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3662 $as_echo "$ac_cv_objext" >&6; } 3663 OBJEXT=$ac_cv_objext 3664 ac_objext=$OBJEXT 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3667 if ${ac_cv_c_compiler_gnu+:} false; then : 3668 $as_echo_n "(cached) " >&6 3669 else 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671 /* end confdefs.h. */ 3672 3673 int 3674 main () 3675 { 3676 #ifndef __GNUC__ 3677 choke me 3678 #endif 3679 3680 ; 3681 return 0; 3682 } 3683 _ACEOF 3684 if ac_fn_c_try_compile "$LINENO"; then : 3685 ac_compiler_gnu=yes 3686 else 3687 ac_compiler_gnu=no 3688 fi 3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3691 3692 fi 3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3695 if test $ac_compiler_gnu = yes; then 3696 GCC=yes 3697 else 3698 GCC= 3699 fi 3700 ac_test_CFLAGS=${CFLAGS+set} 3701 ac_save_CFLAGS=$CFLAGS 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3703 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3704 if ${ac_cv_prog_cc_g+:} false; then : 3705 $as_echo_n "(cached) " >&6 3706 else 3707 ac_save_c_werror_flag=$ac_c_werror_flag 3708 ac_c_werror_flag=yes 3709 ac_cv_prog_cc_g=no 3710 CFLAGS="-g" 3711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3712 /* end confdefs.h. */ 3713 3714 int 3715 main () 3716 { 3717 3718 ; 3719 return 0; 3720 } 3721 _ACEOF 3722 if ac_fn_c_try_compile "$LINENO"; then : 3723 ac_cv_prog_cc_g=yes 3724 else 3725 CFLAGS="" 3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3727 /* end confdefs.h. */ 3728 3729 int 3730 main () 3731 { 3732 3733 ; 3734 return 0; 3735 } 3736 _ACEOF 3737 if ac_fn_c_try_compile "$LINENO"; then : 3738 3739 else 3740 ac_c_werror_flag=$ac_save_c_werror_flag 3741 CFLAGS="-g" 3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3743 /* end confdefs.h. */ 3744 3745 int 3746 main () 3747 { 3748 3749 ; 3750 return 0; 3751 } 3752 _ACEOF 3753 if ac_fn_c_try_compile "$LINENO"; then : 3754 ac_cv_prog_cc_g=yes 3755 fi 3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3757 fi 3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3759 fi 3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3761 ac_c_werror_flag=$ac_save_c_werror_flag 3762 fi 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3764 $as_echo "$ac_cv_prog_cc_g" >&6; } 3765 if test "$ac_test_CFLAGS" = set; then 3766 CFLAGS=$ac_save_CFLAGS 3767 elif test $ac_cv_prog_cc_g = yes; then 3768 if test "$GCC" = yes; then 3769 CFLAGS="-g -O2" 3770 else 3771 CFLAGS="-g" 3772 fi 3773 else 3774 if test "$GCC" = yes; then 3775 CFLAGS="-O2" 3776 else 3777 CFLAGS= 3778 fi 3779 fi 3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3782 if ${ac_cv_prog_cc_c89+:} false; then : 3783 $as_echo_n "(cached) " >&6 3784 else 3785 ac_cv_prog_cc_c89=no 3786 ac_save_CC=$CC 3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3788 /* end confdefs.h. */ 3789 #include <stdarg.h> 3790 #include <stdio.h> 3791 struct stat; 3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3793 struct buf { int x; }; 3794 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3795 static char *e (p, i) 3796 char **p; 3797 int i; 3798 { 3799 return p[i]; 3800 } 3801 static char *f (char * (*g) (char **, int), char **p, ...) 3802 { 3803 char *s; 3804 va_list v; 3805 va_start (v,p); 3806 s = g (p, va_arg (v,int)); 3807 va_end (v); 3808 return s; 3809 } 3810 3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3812 function prototypes and stuff, but not '\xHH' hex character constants. 3813 These don't provoke an error unfortunately, instead are silently treated 3814 as 'x'. The following induces an error, until -std is added to get 3815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3816 array size at least. It's necessary to write '\x00'==0 to get something 3817 that's true only with -std. */ 3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3819 3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3821 inside strings and character constants. */ 3822 #define FOO(x) 'x' 3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3824 3825 int test (int i, double x); 3826 struct s1 {int (*f) (int a);}; 3827 struct s2 {int (*f) (double a);}; 3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3829 int argc; 3830 char **argv; 3831 int 3832 main () 3833 { 3834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3835 ; 3836 return 0; 3837 } 3838 _ACEOF 3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3841 do 3842 CC="$ac_save_CC $ac_arg" 3843 if ac_fn_c_try_compile "$LINENO"; then : 3844 ac_cv_prog_cc_c89=$ac_arg 3845 fi 3846 rm -f core conftest.err conftest.$ac_objext 3847 test "x$ac_cv_prog_cc_c89" != "xno" && break 3848 done 3849 rm -f conftest.$ac_ext 3850 CC=$ac_save_CC 3851 3852 fi 3853 # AC_CACHE_VAL 3854 case "x$ac_cv_prog_cc_c89" in 3855 x) 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3857 $as_echo "none needed" >&6; } ;; 3858 xno) 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3860 $as_echo "unsupported" >&6; } ;; 3861 *) 3862 CC="$CC $ac_cv_prog_cc_c89" 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3865 esac 3866 if test "x$ac_cv_prog_cc_c89" != xno; then : 3867 3868 fi 3869 3870 ac_ext=c 3871 ac_cpp='$CPP $CPPFLAGS' 3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3875 3876 ac_ext=c 3877 ac_cpp='$CPP $CPPFLAGS' 3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3883 if ${am_cv_prog_cc_c_o+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885 else 3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3887 /* end confdefs.h. */ 3888 3889 int 3890 main () 3891 { 3892 3893 ; 3894 return 0; 3895 } 3896 _ACEOF 3897 # Make sure it works both with $CC and with simple cc. 3898 # Following AC_PROG_CC_C_O, we do the test twice because some 3899 # compilers refuse to overwrite an existing .o file with -o, 3900 # though they will create one. 3901 am_cv_prog_cc_c_o=yes 3902 for am_i in 1 2; do 3903 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3904 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3905 ac_status=$? 3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3907 (exit $ac_status); } \ 3908 && test -f conftest2.$ac_objext; then 3909 : OK 3910 else 3911 am_cv_prog_cc_c_o=no 3912 break 3913 fi 3914 done 3915 rm -f core conftest* 3916 unset am_i 3917 fi 3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3919 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3920 if test "$am_cv_prog_cc_c_o" != yes; then 3921 # Losing compiler, so override with the script. 3922 # FIXME: It is wrong to rewrite CC. 3923 # But if we don't then we get into trouble of one sort or another. 3924 # A longer-term fix would be to have automake use am__CC in this case, 3925 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3926 CC="$am_aux_dir/compile $CC" 3927 fi 3928 ac_ext=c 3929 ac_cpp='$CPP $CPPFLAGS' 3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3933 3934 DEPDIR="${am__leading_dot}deps" 3935 3936 ac_config_commands="$ac_config_commands depfiles" 3937 3938 3939 am_make=${MAKE-make} 3940 cat > confinc << 'END' 3941 am__doit: 3942 @echo this is the am__doit target 3943 .PHONY: am__doit 3944 END 3945 # If we don't find an include directive, just comment out the code. 3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3947 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3948 am__include="#" 3949 am__quote= 3950 _am_result=none 3951 # First try GNU make style include. 3952 echo "include confinc" > confmf 3953 # Ignore all kinds of additional output from 'make'. 3954 case `$am_make -s -f confmf 2> /dev/null` in #( 3955 *the\ am__doit\ target*) 3956 am__include=include 3957 am__quote= 3958 _am_result=GNU 3959 ;; 3960 esac 3961 # Now try BSD make style include. 3962 if test "$am__include" = "#"; then 3963 echo '.include "confinc"' > confmf 3964 case `$am_make -s -f confmf 2> /dev/null` in #( 3965 *the\ am__doit\ target*) 3966 am__include=.include 3967 am__quote="\"" 3968 _am_result=BSD 3969 ;; 3970 esac 3971 fi 3972 3973 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3975 $as_echo "$_am_result" >&6; } 3976 rm -f confinc confmf 3977 3978 # Check whether --enable-dependency-tracking was given. 3979 if test "${enable_dependency_tracking+set}" = set; then : 3980 enableval=$enable_dependency_tracking; 3981 fi 3982 3983 if test "x$enable_dependency_tracking" != xno; then 3984 am_depcomp="$ac_aux_dir/depcomp" 3985 AMDEPBACKSLASH='\' 3986 am__nodep='_no' 3987 fi 3988 if test "x$enable_dependency_tracking" != xno; then 3989 AMDEP_TRUE= 3990 AMDEP_FALSE='#' 3991 else 3992 AMDEP_TRUE='#' 3993 AMDEP_FALSE= 3994 fi 3995 3996 3997 3998 depcc="$CC" am_compiler_list= 3999 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4001 $as_echo_n "checking dependency style of $depcc... " >&6; } 4002 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4003 $as_echo_n "(cached) " >&6 4004 else 4005 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4006 # We make a subdir and do the tests there. Otherwise we can end up 4007 # making bogus files that we don't know about and never remove. For 4008 # instance it was reported that on HP-UX the gcc test will end up 4009 # making a dummy file named 'D' -- because '-MD' means "put the output 4010 # in D". 4011 rm -rf conftest.dir 4012 mkdir conftest.dir 4013 # Copy depcomp to subdir because otherwise we won't find it if we're 4014 # using a relative directory. 4015 cp "$am_depcomp" conftest.dir 4016 cd conftest.dir 4017 # We will build objects and dependencies in a subdirectory because 4018 # it helps to detect inapplicable dependency modes. For instance 4019 # both Tru64's cc and ICC support -MD to output dependencies as a 4020 # side effect of compilation, but ICC will put the dependencies in 4021 # the current directory while Tru64 will put them in the object 4022 # directory. 4023 mkdir sub 4024 4025 am_cv_CC_dependencies_compiler_type=none 4026 if test "$am_compiler_list" = ""; then 4027 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4028 fi 4029 am__universal=false 4030 case " $depcc " in #( 4031 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4032 esac 4033 4034 for depmode in $am_compiler_list; do 4035 # Setup a source with many dependencies, because some compilers 4036 # like to wrap large dependency lists on column 80 (with \), and 4037 # we should not choose a depcomp mode which is confused by this. 4038 # 4039 # We need to recreate these files for each test, as the compiler may 4040 # overwrite some of them when testing with obscure command lines. 4041 # This happens at least with the AIX C compiler. 4042 : > sub/conftest.c 4043 for i in 1 2 3 4 5 6; do 4044 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4045 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4046 # Solaris 10 /bin/sh. 4047 echo '/* dummy */' > sub/conftst$i.h 4048 done 4049 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4050 4051 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4052 # mode. It turns out that the SunPro C++ compiler does not properly 4053 # handle '-M -o', and we need to detect this. Also, some Intel 4054 # versions had trouble with output in subdirs. 4055 am__obj=sub/conftest.${OBJEXT-o} 4056 am__minus_obj="-o $am__obj" 4057 case $depmode in 4058 gcc) 4059 # This depmode causes a compiler race in universal mode. 4060 test "$am__universal" = false || continue 4061 ;; 4062 nosideeffect) 4063 # After this tag, mechanisms are not by side-effect, so they'll 4064 # only be used when explicitly requested. 4065 if test "x$enable_dependency_tracking" = xyes; then 4066 continue 4067 else 4068 break 4069 fi 4070 ;; 4071 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4072 # This compiler won't grok '-c -o', but also, the minuso test has 4073 # not run yet. These depmodes are late enough in the game, and 4074 # so weak that their functioning should not be impacted. 4075 am__obj=conftest.${OBJEXT-o} 4076 am__minus_obj= 4077 ;; 4078 none) break ;; 4079 esac 4080 if depmode=$depmode \ 4081 source=sub/conftest.c object=$am__obj \ 4082 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4083 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4084 >/dev/null 2>conftest.err && 4085 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4086 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4087 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4088 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4089 # icc doesn't choke on unknown options, it will just issue warnings 4090 # or remarks (even with -Werror). So we grep stderr for any message 4091 # that says an option was ignored or not supported. 4092 # When given -MP, icc 7.0 and 7.1 complain thusly: 4093 # icc: Command line warning: ignoring option '-M'; no argument required 4094 # The diagnosis changed in icc 8.0: 4095 # icc: Command line remark: option '-MP' not supported 4096 if (grep 'ignoring option' conftest.err || 4097 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4098 am_cv_CC_dependencies_compiler_type=$depmode 4099 break 4100 fi 4101 fi 4102 done 4103 4104 cd .. 4105 rm -rf conftest.dir 4106 else 4107 am_cv_CC_dependencies_compiler_type=none 4108 fi 4109 4110 fi 4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4112 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4113 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4114 4115 if 4116 test "x$enable_dependency_tracking" != xno \ 4117 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4118 am__fastdepCC_TRUE= 4119 am__fastdepCC_FALSE='#' 4120 else 4121 am__fastdepCC_TRUE='#' 4122 am__fastdepCC_FALSE= 4123 fi 4124 4125 4126 4127 ac_ext=c 4128 ac_cpp='$CPP $CPPFLAGS' 4129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4131 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4133 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4134 # On Suns, sometimes $CPP names a directory. 4135 if test -n "$CPP" && test -d "$CPP"; then 4136 CPP= 4137 fi 4138 if test -z "$CPP"; then 4139 if ${ac_cv_prog_CPP+:} false; then : 4140 $as_echo_n "(cached) " >&6 4141 else 4142 # Double quotes because CPP needs to be expanded 4143 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4144 do 4145 ac_preproc_ok=false 4146 for ac_c_preproc_warn_flag in '' yes 4147 do 4148 # Use a header file that comes with gcc, so configuring glibc 4149 # with a fresh cross-compiler works. 4150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4151 # <limits.h> exists even on freestanding compilers. 4152 # On the NeXT, cc -E runs the code through the compiler's parser, 4153 # not just through cpp. "Syntax error" is here to catch this case. 4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4155 /* end confdefs.h. */ 4156 #ifdef __STDC__ 4157 # include <limits.h> 4158 #else 4159 # include <assert.h> 4160 #endif 4161 Syntax error 4162 _ACEOF 4163 if ac_fn_c_try_cpp "$LINENO"; then : 4164 4165 else 4166 # Broken: fails on valid input. 4167 continue 4168 fi 4169 rm -f conftest.err conftest.i conftest.$ac_ext 4170 4171 # OK, works on sane cases. Now check whether nonexistent headers 4172 # can be detected and how. 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174 /* end confdefs.h. */ 4175 #include <ac_nonexistent.h> 4176 _ACEOF 4177 if ac_fn_c_try_cpp "$LINENO"; then : 4178 # Broken: success on invalid input. 4179 continue 4180 else 4181 # Passes both tests. 4182 ac_preproc_ok=: 4183 break 4184 fi 4185 rm -f conftest.err conftest.i conftest.$ac_ext 4186 4187 done 4188 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4189 rm -f conftest.i conftest.err conftest.$ac_ext 4190 if $ac_preproc_ok; then : 4191 break 4192 fi 4193 4194 done 4195 ac_cv_prog_CPP=$CPP 4196 4197 fi 4198 CPP=$ac_cv_prog_CPP 4199 else 4200 ac_cv_prog_CPP=$CPP 4201 fi 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4203 $as_echo "$CPP" >&6; } 4204 ac_preproc_ok=false 4205 for ac_c_preproc_warn_flag in '' yes 4206 do 4207 # Use a header file that comes with gcc, so configuring glibc 4208 # with a fresh cross-compiler works. 4209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4210 # <limits.h> exists even on freestanding compilers. 4211 # On the NeXT, cc -E runs the code through the compiler's parser, 4212 # not just through cpp. "Syntax error" is here to catch this case. 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214 /* end confdefs.h. */ 4215 #ifdef __STDC__ 4216 # include <limits.h> 4217 #else 4218 # include <assert.h> 4219 #endif 4220 Syntax error 4221 _ACEOF 4222 if ac_fn_c_try_cpp "$LINENO"; then : 4223 4224 else 4225 # Broken: fails on valid input. 4226 continue 4227 fi 4228 rm -f conftest.err conftest.i conftest.$ac_ext 4229 4230 # OK, works on sane cases. Now check whether nonexistent headers 4231 # can be detected and how. 4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4233 /* end confdefs.h. */ 4234 #include <ac_nonexistent.h> 4235 _ACEOF 4236 if ac_fn_c_try_cpp "$LINENO"; then : 4237 # Broken: success on invalid input. 4238 continue 4239 else 4240 # Passes both tests. 4241 ac_preproc_ok=: 4242 break 4243 fi 4244 rm -f conftest.err conftest.i conftest.$ac_ext 4245 4246 done 4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4248 rm -f conftest.i conftest.err conftest.$ac_ext 4249 if $ac_preproc_ok; then : 4250 4251 else 4252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4254 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4255 See \`config.log' for more details" "$LINENO" 5; } 4256 fi 4257 4258 ac_ext=c 4259 ac_cpp='$CPP $CPPFLAGS' 4260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4262 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4263 4264 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4266 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4267 if ${ac_cv_path_GREP+:} false; then : 4268 $as_echo_n "(cached) " >&6 4269 else 4270 if test -z "$GREP"; then 4271 ac_path_GREP_found=false 4272 # Loop through the user's path and test for each of PROGNAME-LIST 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4275 do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_prog in grep ggrep; do 4279 for ac_exec_ext in '' $ac_executable_extensions; do 4280 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4281 as_fn_executable_p "$ac_path_GREP" || continue 4282 # Check for GNU ac_path_GREP and select it if it is found. 4283 # Check for GNU $ac_path_GREP 4284 case `"$ac_path_GREP" --version 2>&1` in 4285 *GNU*) 4286 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4287 *) 4288 ac_count=0 4289 $as_echo_n 0123456789 >"conftest.in" 4290 while : 4291 do 4292 cat "conftest.in" "conftest.in" >"conftest.tmp" 4293 mv "conftest.tmp" "conftest.in" 4294 cp "conftest.in" "conftest.nl" 4295 $as_echo 'GREP' >> "conftest.nl" 4296 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4298 as_fn_arith $ac_count + 1 && ac_count=$as_val 4299 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4300 # Best one so far, save it but keep looking for a better one 4301 ac_cv_path_GREP="$ac_path_GREP" 4302 ac_path_GREP_max=$ac_count 4303 fi 4304 # 10*(2^10) chars as input seems more than enough 4305 test $ac_count -gt 10 && break 4306 done 4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4308 esac 4309 4310 $ac_path_GREP_found && break 3 4311 done 4312 done 4313 done 4314 IFS=$as_save_IFS 4315 if test -z "$ac_cv_path_GREP"; then 4316 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4317 fi 4318 else 4319 ac_cv_path_GREP=$GREP 4320 fi 4321 4322 fi 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4324 $as_echo "$ac_cv_path_GREP" >&6; } 4325 GREP="$ac_cv_path_GREP" 4326 4327 4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4329 $as_echo_n "checking for egrep... " >&6; } 4330 if ${ac_cv_path_EGREP+:} false; then : 4331 $as_echo_n "(cached) " >&6 4332 else 4333 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4334 then ac_cv_path_EGREP="$GREP -E" 4335 else 4336 if test -z "$EGREP"; then 4337 ac_path_EGREP_found=false 4338 # Loop through the user's path and test for each of PROGNAME-LIST 4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4341 do 4342 IFS=$as_save_IFS 4343 test -z "$as_dir" && as_dir=. 4344 for ac_prog in egrep; do 4345 for ac_exec_ext in '' $ac_executable_extensions; do 4346 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4347 as_fn_executable_p "$ac_path_EGREP" || continue 4348 # Check for GNU ac_path_EGREP and select it if it is found. 4349 # Check for GNU $ac_path_EGREP 4350 case `"$ac_path_EGREP" --version 2>&1` in 4351 *GNU*) 4352 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4353 *) 4354 ac_count=0 4355 $as_echo_n 0123456789 >"conftest.in" 4356 while : 4357 do 4358 cat "conftest.in" "conftest.in" >"conftest.tmp" 4359 mv "conftest.tmp" "conftest.in" 4360 cp "conftest.in" "conftest.nl" 4361 $as_echo 'EGREP' >> "conftest.nl" 4362 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4364 as_fn_arith $ac_count + 1 && ac_count=$as_val 4365 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4366 # Best one so far, save it but keep looking for a better one 4367 ac_cv_path_EGREP="$ac_path_EGREP" 4368 ac_path_EGREP_max=$ac_count 4369 fi 4370 # 10*(2^10) chars as input seems more than enough 4371 test $ac_count -gt 10 && break 4372 done 4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4374 esac 4375 4376 $ac_path_EGREP_found && break 3 4377 done 4378 done 4379 done 4380 IFS=$as_save_IFS 4381 if test -z "$ac_cv_path_EGREP"; then 4382 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4383 fi 4384 else 4385 ac_cv_path_EGREP=$EGREP 4386 fi 4387 4388 fi 4389 fi 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4391 $as_echo "$ac_cv_path_EGREP" >&6; } 4392 EGREP="$ac_cv_path_EGREP" 4393 4394 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4396 $as_echo_n "checking for ANSI C header files... " >&6; } 4397 if ${ac_cv_header_stdc+:} false; then : 4398 $as_echo_n "(cached) " >&6 4399 else 4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4401 /* end confdefs.h. */ 4402 #include <stdlib.h> 4403 #include <stdarg.h> 4404 #include <string.h> 4405 #include <float.h> 4406 4407 int 4408 main () 4409 { 4410 4411 ; 4412 return 0; 4413 } 4414 _ACEOF 4415 if ac_fn_c_try_compile "$LINENO"; then : 4416 ac_cv_header_stdc=yes 4417 else 4418 ac_cv_header_stdc=no 4419 fi 4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4421 4422 if test $ac_cv_header_stdc = yes; then 4423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425 /* end confdefs.h. */ 4426 #include <string.h> 4427 4428 _ACEOF 4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4430 $EGREP "memchr" >/dev/null 2>&1; then : 4431 4432 else 4433 ac_cv_header_stdc=no 4434 fi 4435 rm -f conftest* 4436 4437 fi 4438 4439 if test $ac_cv_header_stdc = yes; then 4440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4442 /* end confdefs.h. */ 4443 #include <stdlib.h> 4444 4445 _ACEOF 4446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4447 $EGREP "free" >/dev/null 2>&1; then : 4448 4449 else 4450 ac_cv_header_stdc=no 4451 fi 4452 rm -f conftest* 4453 4454 fi 4455 4456 if test $ac_cv_header_stdc = yes; then 4457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4458 if test "$cross_compiling" = yes; then : 4459 : 4460 else 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462 /* end confdefs.h. */ 4463 #include <ctype.h> 4464 #include <stdlib.h> 4465 #if ((' ' & 0x0FF) == 0x020) 4466 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4467 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4468 #else 4469 # define ISLOWER(c) \ 4470 (('a' <= (c) && (c) <= 'i') \ 4471 || ('j' <= (c) && (c) <= 'r') \ 4472 || ('s' <= (c) && (c) <= 'z')) 4473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4474 #endif 4475 4476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4477 int 4478 main () 4479 { 4480 int i; 4481 for (i = 0; i < 256; i++) 4482 if (XOR (islower (i), ISLOWER (i)) 4483 || toupper (i) != TOUPPER (i)) 4484 return 2; 4485 return 0; 4486 } 4487 _ACEOF 4488 if ac_fn_c_try_run "$LINENO"; then : 4489 4490 else 4491 ac_cv_header_stdc=no 4492 fi 4493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4494 conftest.$ac_objext conftest.beam conftest.$ac_ext 4495 fi 4496 4497 fi 4498 fi 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4500 $as_echo "$ac_cv_header_stdc" >&6; } 4501 if test $ac_cv_header_stdc = yes; then 4502 4503 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4504 4505 fi 4506 4507 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4509 inttypes.h stdint.h unistd.h 4510 do : 4511 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4513 " 4514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4515 cat >>confdefs.h <<_ACEOF 4516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4517 _ACEOF 4518 4519 fi 4520 4521 done 4522 4523 4524 4525 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4526 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4527 MINIX=yes 4528 else 4529 MINIX= 4530 fi 4531 4532 4533 if test "$MINIX" = yes; then 4534 4535 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4536 4537 4538 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4539 4540 4541 $as_echo "#define _MINIX 1" >>confdefs.h 4542 4543 fi 4544 4545 4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4547 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4548 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550 else 4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4552 /* end confdefs.h. */ 4553 4554 # define __EXTENSIONS__ 1 4555 $ac_includes_default 4556 int 4557 main () 4558 { 4559 4560 ; 4561 return 0; 4562 } 4563 _ACEOF 4564 if ac_fn_c_try_compile "$LINENO"; then : 4565 ac_cv_safe_to_define___extensions__=yes 4566 else 4567 ac_cv_safe_to_define___extensions__=no 4568 fi 4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4570 fi 4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4572 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4573 test $ac_cv_safe_to_define___extensions__ = yes && 4574 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4575 4576 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4577 4578 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4579 4580 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4581 4582 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4583 4584 4585 4586 if test -n "$ac_tool_prefix"; then 4587 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4588 set dummy ${ac_tool_prefix}ar; ac_word=$2 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4590 $as_echo_n "checking for $ac_word... " >&6; } 4591 if ${ac_cv_prog_AR+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593 else 4594 if test -n "$AR"; then 4595 ac_cv_prog_AR="$AR" # Let the user override the test. 4596 else 4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4598 for as_dir in $PATH 4599 do 4600 IFS=$as_save_IFS 4601 test -z "$as_dir" && as_dir=. 4602 for ac_exec_ext in '' $ac_executable_extensions; do 4603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4604 ac_cv_prog_AR="${ac_tool_prefix}ar" 4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4606 break 2 4607 fi 4608 done 4609 done 4610 IFS=$as_save_IFS 4611 4612 fi 4613 fi 4614 AR=$ac_cv_prog_AR 4615 if test -n "$AR"; then 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4617 $as_echo "$AR" >&6; } 4618 else 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4620 $as_echo "no" >&6; } 4621 fi 4622 4623 4624 fi 4625 if test -z "$ac_cv_prog_AR"; then 4626 ac_ct_AR=$AR 4627 # Extract the first word of "ar", so it can be a program name with args. 4628 set dummy ar; ac_word=$2 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4630 $as_echo_n "checking for $ac_word... " >&6; } 4631 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633 else 4634 if test -n "$ac_ct_AR"; then 4635 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4636 else 4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4638 for as_dir in $PATH 4639 do 4640 IFS=$as_save_IFS 4641 test -z "$as_dir" && as_dir=. 4642 for ac_exec_ext in '' $ac_executable_extensions; do 4643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4644 ac_cv_prog_ac_ct_AR="ar" 4645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4646 break 2 4647 fi 4648 done 4649 done 4650 IFS=$as_save_IFS 4651 4652 fi 4653 fi 4654 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4655 if test -n "$ac_ct_AR"; then 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4657 $as_echo "$ac_ct_AR" >&6; } 4658 else 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4660 $as_echo "no" >&6; } 4661 fi 4662 4663 if test "x$ac_ct_AR" = x; then 4664 AR="" 4665 else 4666 case $cross_compiling:$ac_tool_warned in 4667 yes:) 4668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4670 ac_tool_warned=yes ;; 4671 esac 4672 AR=$ac_ct_AR 4673 fi 4674 else 4675 AR="$ac_cv_prog_AR" 4676 fi 4677 4678 if test -n "$ac_tool_prefix"; then 4679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4682 $as_echo_n "checking for $ac_word... " >&6; } 4683 if ${ac_cv_prog_RANLIB+:} false; then : 4684 $as_echo_n "(cached) " >&6 4685 else 4686 if test -n "$RANLIB"; then 4687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4688 else 4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4690 for as_dir in $PATH 4691 do 4692 IFS=$as_save_IFS 4693 test -z "$as_dir" && as_dir=. 4694 for ac_exec_ext in '' $ac_executable_extensions; do 4695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4698 break 2 4699 fi 4700 done 4701 done 4702 IFS=$as_save_IFS 4703 4704 fi 4705 fi 4706 RANLIB=$ac_cv_prog_RANLIB 4707 if test -n "$RANLIB"; then 4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4709 $as_echo "$RANLIB" >&6; } 4710 else 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4712 $as_echo "no" >&6; } 4713 fi 4714 4715 4716 fi 4717 if test -z "$ac_cv_prog_RANLIB"; then 4718 ac_ct_RANLIB=$RANLIB 4719 # Extract the first word of "ranlib", so it can be a program name with args. 4720 set dummy ranlib; ac_word=$2 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4722 $as_echo_n "checking for $ac_word... " >&6; } 4723 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4724 $as_echo_n "(cached) " >&6 4725 else 4726 if test -n "$ac_ct_RANLIB"; then 4727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4728 else 4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4730 for as_dir in $PATH 4731 do 4732 IFS=$as_save_IFS 4733 test -z "$as_dir" && as_dir=. 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4736 ac_cv_prog_ac_ct_RANLIB="ranlib" 4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4738 break 2 4739 fi 4740 done 4741 done 4742 IFS=$as_save_IFS 4743 4744 fi 4745 fi 4746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4747 if test -n "$ac_ct_RANLIB"; then 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4749 $as_echo "$ac_ct_RANLIB" >&6; } 4750 else 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4752 $as_echo "no" >&6; } 4753 fi 4754 4755 if test "x$ac_ct_RANLIB" = x; then 4756 RANLIB=":" 4757 else 4758 case $cross_compiling:$ac_tool_warned in 4759 yes:) 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4762 ac_tool_warned=yes ;; 4763 esac 4764 RANLIB=$ac_ct_RANLIB 4765 fi 4766 else 4767 RANLIB="$ac_cv_prog_RANLIB" 4768 fi 4769 4770 4771 # Check whether --enable-shared was given. 4772 if test "${enable_shared+set}" = set; then : 4773 enableval=$enable_shared; p=${PACKAGE-default} 4774 case $enableval in 4775 yes) enable_shared=yes ;; 4776 no) enable_shared=no ;; 4777 *) 4778 enable_shared=no 4779 # Look at the argument we got. We use all the common list separators. 4780 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 4781 for pkg in $enableval; do 4782 IFS="$lt_save_ifs" 4783 if test "X$pkg" = "X$p"; then 4784 enable_shared=yes 4785 fi 4786 done 4787 IFS="$lt_save_ifs" 4788 ;; 4789 esac 4790 else 4791 enable_shared=no 4792 fi 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 case `pwd` in 4804 *\ * | *\ *) 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4806 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4807 esac 4808 4809 4810 4811 macro_version='2.2.7a' 4812 macro_revision='1.3134' 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 ltmain="$ac_aux_dir/ltmain.sh" 4827 4828 # Backslashify metacharacters that are still active within 4829 # double-quoted strings. 4830 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4831 4832 # Same as above, but do not quote variable references. 4833 double_quote_subst='s/\(["`\\]\)/\\\1/g' 4834 4835 # Sed substitution to delay expansion of an escaped shell variable in a 4836 # double_quote_subst'ed string. 4837 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4838 4839 # Sed substitution to delay expansion of an escaped single quote. 4840 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4841 4842 # Sed substitution to avoid accidental globbing in evaled expressions 4843 no_glob_subst='s/\*/\\\*/g' 4844 4845 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4846 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4847 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4848 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4850 $as_echo_n "checking how to print strings... " >&6; } 4851 # Test print first, because it will be a builtin if present. 4852 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4853 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4854 ECHO='print -r --' 4855 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4856 ECHO='printf %s\n' 4857 else 4858 # Use this function as a fallback that always works. 4859 func_fallback_echo () 4860 { 4861 eval 'cat <<_LTECHO_EOF 4862 $1 4863 _LTECHO_EOF' 4864 } 4865 ECHO='func_fallback_echo' 4866 fi 4867 4868 # func_echo_all arg... 4869 # Invoke $ECHO with all args, space-separated. 4870 func_echo_all () 4871 { 4872 $ECHO "" 4873 } 4874 4875 case "$ECHO" in 4876 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4877 $as_echo "printf" >&6; } ;; 4878 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4879 $as_echo "print -r" >&6; } ;; 4880 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4881 $as_echo "cat" >&6; } ;; 4882 esac 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4898 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4899 if ${ac_cv_path_SED+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901 else 4902 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4903 for ac_i in 1 2 3 4 5 6 7; do 4904 ac_script="$ac_script$as_nl$ac_script" 4905 done 4906 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4907 { ac_script=; unset ac_script;} 4908 if test -z "$SED"; then 4909 ac_path_SED_found=false 4910 # Loop through the user's path and test for each of PROGNAME-LIST 4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4912 for as_dir in $PATH 4913 do 4914 IFS=$as_save_IFS 4915 test -z "$as_dir" && as_dir=. 4916 for ac_prog in sed gsed; do 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4919 as_fn_executable_p "$ac_path_SED" || continue 4920 # Check for GNU ac_path_SED and select it if it is found. 4921 # Check for GNU $ac_path_SED 4922 case `"$ac_path_SED" --version 2>&1` in 4923 *GNU*) 4924 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4925 *) 4926 ac_count=0 4927 $as_echo_n 0123456789 >"conftest.in" 4928 while : 4929 do 4930 cat "conftest.in" "conftest.in" >"conftest.tmp" 4931 mv "conftest.tmp" "conftest.in" 4932 cp "conftest.in" "conftest.nl" 4933 $as_echo '' >> "conftest.nl" 4934 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4936 as_fn_arith $ac_count + 1 && ac_count=$as_val 4937 if test $ac_count -gt ${ac_path_SED_max-0}; then 4938 # Best one so far, save it but keep looking for a better one 4939 ac_cv_path_SED="$ac_path_SED" 4940 ac_path_SED_max=$ac_count 4941 fi 4942 # 10*(2^10) chars as input seems more than enough 4943 test $ac_count -gt 10 && break 4944 done 4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4946 esac 4947 4948 $ac_path_SED_found && break 3 4949 done 4950 done 4951 done 4952 IFS=$as_save_IFS 4953 if test -z "$ac_cv_path_SED"; then 4954 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4955 fi 4956 else 4957 ac_cv_path_SED=$SED 4958 fi 4959 4960 fi 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4962 $as_echo "$ac_cv_path_SED" >&6; } 4963 SED="$ac_cv_path_SED" 4964 rm -f conftest.sed 4965 4966 test -z "$SED" && SED=sed 4967 Xsed="$SED -e 1s/^X//" 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4980 $as_echo_n "checking for fgrep... " >&6; } 4981 if ${ac_cv_path_FGREP+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983 else 4984 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4985 then ac_cv_path_FGREP="$GREP -F" 4986 else 4987 if test -z "$FGREP"; then 4988 ac_path_FGREP_found=false 4989 # Loop through the user's path and test for each of PROGNAME-LIST 4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4992 do 4993 IFS=$as_save_IFS 4994 test -z "$as_dir" && as_dir=. 4995 for ac_prog in fgrep; do 4996 for ac_exec_ext in '' $ac_executable_extensions; do 4997 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4998 as_fn_executable_p "$ac_path_FGREP" || continue 4999 # Check for GNU ac_path_FGREP and select it if it is found. 5000 # Check for GNU $ac_path_FGREP 5001 case `"$ac_path_FGREP" --version 2>&1` in 5002 *GNU*) 5003 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5004 *) 5005 ac_count=0 5006 $as_echo_n 0123456789 >"conftest.in" 5007 while : 5008 do 5009 cat "conftest.in" "conftest.in" >"conftest.tmp" 5010 mv "conftest.tmp" "conftest.in" 5011 cp "conftest.in" "conftest.nl" 5012 $as_echo 'FGREP' >> "conftest.nl" 5013 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5015 as_fn_arith $ac_count + 1 && ac_count=$as_val 5016 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5017 # Best one so far, save it but keep looking for a better one 5018 ac_cv_path_FGREP="$ac_path_FGREP" 5019 ac_path_FGREP_max=$ac_count 5020 fi 5021 # 10*(2^10) chars as input seems more than enough 5022 test $ac_count -gt 10 && break 5023 done 5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5025 esac 5026 5027 $ac_path_FGREP_found && break 3 5028 done 5029 done 5030 done 5031 IFS=$as_save_IFS 5032 if test -z "$ac_cv_path_FGREP"; then 5033 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5034 fi 5035 else 5036 ac_cv_path_FGREP=$FGREP 5037 fi 5038 5039 fi 5040 fi 5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5042 $as_echo "$ac_cv_path_FGREP" >&6; } 5043 FGREP="$ac_cv_path_FGREP" 5044 5045 5046 test -z "$GREP" && GREP=grep 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 # Check whether --with-gnu-ld was given. 5067 if test "${with_gnu_ld+set}" = set; then : 5068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5069 else 5070 with_gnu_ld=no 5071 fi 5072 5073 ac_prog=ld 5074 if test "$GCC" = yes; then 5075 # Check if gcc -print-prog-name=ld gives a path. 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5077 $as_echo_n "checking for ld used by $CC... " >&6; } 5078 case $host in 5079 *-*-mingw*) 5080 # gcc leaves a trailing carriage return which upsets mingw 5081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5082 *) 5083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5084 esac 5085 case $ac_prog in 5086 # Accept absolute paths. 5087 [\\/]* | ?:[\\/]*) 5088 re_direlt='/[^/][^/]*/\.\./' 5089 # Canonicalize the pathname of ld 5090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5093 done 5094 test -z "$LD" && LD="$ac_prog" 5095 ;; 5096 "") 5097 # If it fails, then pretend we aren't using GCC. 5098 ac_prog=ld 5099 ;; 5100 *) 5101 # If it is relative, then search for the first ld in PATH. 5102 with_gnu_ld=unknown 5103 ;; 5104 esac 5105 elif test "$with_gnu_ld" = yes; then 5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5107 $as_echo_n "checking for GNU ld... " >&6; } 5108 else 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5110 $as_echo_n "checking for non-GNU ld... " >&6; } 5111 fi 5112 if ${lt_cv_path_LD+:} false; then : 5113 $as_echo_n "(cached) " >&6 5114 else 5115 if test -z "$LD"; then 5116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5117 for ac_dir in $PATH; do 5118 IFS="$lt_save_ifs" 5119 test -z "$ac_dir" && ac_dir=. 5120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5121 lt_cv_path_LD="$ac_dir/$ac_prog" 5122 # Check to see if the program is GNU ld. I'd rather use --version, 5123 # but apparently some variants of GNU ld only accept -v. 5124 # Break only if it was the GNU/non-GNU ld that we prefer. 5125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5126 *GNU* | *'with BFD'*) 5127 test "$with_gnu_ld" != no && break 5128 ;; 5129 *) 5130 test "$with_gnu_ld" != yes && break 5131 ;; 5132 esac 5133 fi 5134 done 5135 IFS="$lt_save_ifs" 5136 else 5137 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5138 fi 5139 fi 5140 5141 LD="$lt_cv_path_LD" 5142 if test -n "$LD"; then 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5144 $as_echo "$LD" >&6; } 5145 else 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5147 $as_echo "no" >&6; } 5148 fi 5149 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5151 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5152 if ${lt_cv_prog_gnu_ld+:} false; then : 5153 $as_echo_n "(cached) " >&6 5154 else 5155 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5156 case `$LD -v 2>&1 </dev/null` in 5157 *GNU* | *'with BFD'*) 5158 lt_cv_prog_gnu_ld=yes 5159 ;; 5160 *) 5161 lt_cv_prog_gnu_ld=no 5162 ;; 5163 esac 5164 fi 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5166 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 5167 with_gnu_ld=$lt_cv_prog_gnu_ld 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5178 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5179 if ${lt_cv_path_NM+:} false; then : 5180 $as_echo_n "(cached) " >&6 5181 else 5182 if test -n "$NM"; then 5183 # Let the user override the nm to test. 5184 lt_nm_to_check="$NM" 5185 else 5186 lt_nm_to_check="${ac_tool_prefix}nm" 5187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5188 lt_nm_to_check="$lt_nm_to_check nm" 5189 fi 5190 fi 5191 for lt_tmp_nm in "$lt_nm_to_check"; do 5192 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5193 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5194 IFS="$lt_save_ifs" 5195 test -z "$ac_dir" && ac_dir=. 5196 # Strip out any user-provided options from the nm to test twice, 5197 # the first time to test to see if nm (rather than its options) has 5198 # an explicit path, the second time to yield a file which can be 5199 # nm'ed itself. 5200 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 5201 case "$tmp_nm_path" in 5202 */*|*\\*) tmp_nm="$lt_tmp_nm";; 5203 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 5204 esac 5205 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 5206 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 5207 # Check to see if the nm accepts a BSD-compat flag. 5208 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5209 # nm: unknown option "B" ignored 5210 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5211 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 5212 break 5213 ;; 5214 *) 5215 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 5216 *$tmp_nm*) 5217 lt_cv_path_NM="$tmp_nm -p" 5218 break 5219 ;; 5220 *) 5221 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5222 continue # so that we can try to find one that supports BSD flags 5223 ;; 5224 esac 5225 ;; 5226 esac 5227 fi 5228 done 5229 IFS="$lt_save_ifs" 5230 done 5231 : ${lt_cv_path_NM=no} 5232 fi 5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5234 $as_echo "$lt_cv_path_NM" >&6; } 5235 if test "$lt_cv_path_NM" != "no"; then 5236 NM="$lt_cv_path_NM" 5237 else 5238 # Didn't find any BSD compatible name lister, look for dumpbin. 5239 if test -n "$DUMPBIN"; then : 5240 # Let the user override the test. 5241 else 5242 if test -n "$ac_tool_prefix"; then 5243 for ac_prog in dumpbin "link -dump" 5244 do 5245 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5248 $as_echo_n "checking for $ac_word... " >&6; } 5249 if ${ac_cv_prog_DUMPBIN+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251 else 5252 if test -n "$DUMPBIN"; then 5253 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5254 else 5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5256 for as_dir in $PATH 5257 do 5258 IFS=$as_save_IFS 5259 test -z "$as_dir" && as_dir=. 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5262 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266 done 5267 done 5268 IFS=$as_save_IFS 5269 5270 fi 5271 fi 5272 DUMPBIN=$ac_cv_prog_DUMPBIN 5273 if test -n "$DUMPBIN"; then 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5275 $as_echo "$DUMPBIN" >&6; } 5276 else 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5278 $as_echo "no" >&6; } 5279 fi 5280 5281 5282 test -n "$DUMPBIN" && break 5283 done 5284 fi 5285 if test -z "$DUMPBIN"; then 5286 ac_ct_DUMPBIN=$DUMPBIN 5287 for ac_prog in dumpbin "link -dump" 5288 do 5289 # Extract the first word of "$ac_prog", so it can be a program name with args. 5290 set dummy $ac_prog; ac_word=$2 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5292 $as_echo_n "checking for $ac_word... " >&6; } 5293 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295 else 5296 if test -n "$ac_ct_DUMPBIN"; then 5297 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5298 else 5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5300 for as_dir in $PATH 5301 do 5302 IFS=$as_save_IFS 5303 test -z "$as_dir" && as_dir=. 5304 for ac_exec_ext in '' $ac_executable_extensions; do 5305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5306 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5308 break 2 5309 fi 5310 done 5311 done 5312 IFS=$as_save_IFS 5313 5314 fi 5315 fi 5316 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5317 if test -n "$ac_ct_DUMPBIN"; then 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5319 $as_echo "$ac_ct_DUMPBIN" >&6; } 5320 else 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5322 $as_echo "no" >&6; } 5323 fi 5324 5325 5326 test -n "$ac_ct_DUMPBIN" && break 5327 done 5328 5329 if test "x$ac_ct_DUMPBIN" = x; then 5330 DUMPBIN=":" 5331 else 5332 case $cross_compiling:$ac_tool_warned in 5333 yes:) 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5336 ac_tool_warned=yes ;; 5337 esac 5338 DUMPBIN=$ac_ct_DUMPBIN 5339 fi 5340 fi 5341 5342 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5343 *COFF*) 5344 DUMPBIN="$DUMPBIN -symbols" 5345 ;; 5346 *) 5347 DUMPBIN=: 5348 ;; 5349 esac 5350 fi 5351 5352 if test "$DUMPBIN" != ":"; then 5353 NM="$DUMPBIN" 5354 fi 5355 fi 5356 test -z "$NM" && NM=nm 5357 5358 5359 5360 5361 5362 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5364 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 5365 if ${lt_cv_nm_interface+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 lt_cv_nm_interface="BSD nm" 5369 echo "int some_variable = 0;" > conftest.$ac_ext 5370 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5371 (eval "$ac_compile" 2>conftest.err) 5372 cat conftest.err >&5 5373 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5374 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5375 cat conftest.err >&5 5376 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5377 cat conftest.out >&5 5378 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5379 lt_cv_nm_interface="MS dumpbin" 5380 fi 5381 rm -f conftest* 5382 fi 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5384 $as_echo "$lt_cv_nm_interface" >&6; } 5385 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5387 $as_echo_n "checking whether ln -s works... " >&6; } 5388 LN_S=$as_ln_s 5389 if test "$LN_S" = "ln -s"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5391 $as_echo "yes" >&6; } 5392 else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5394 $as_echo "no, using $LN_S" >&6; } 5395 fi 5396 5397 # find the maximum length of command line arguments 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5399 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 5400 if ${lt_cv_sys_max_cmd_len+:} false; then : 5401 $as_echo_n "(cached) " >&6 5402 else 5403 i=0 5404 teststring="ABCD" 5405 5406 case $build_os in 5407 msdosdjgpp*) 5408 # On DJGPP, this test can blow up pretty badly due to problems in libc 5409 # (any single argument exceeding 2000 bytes causes a buffer overrun 5410 # during glob expansion). Even if it were fixed, the result of this 5411 # check would be larger than it should be. 5412 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5413 ;; 5414 5415 gnu*) 5416 # Under GNU Hurd, this test is not required because there is 5417 # no limit to the length of command line arguments. 5418 # Libtool will interpret -1 as no limit whatsoever 5419 lt_cv_sys_max_cmd_len=-1; 5420 ;; 5421 5422 cygwin* | mingw* | cegcc*) 5423 # On Win9x/ME, this test blows up -- it succeeds, but takes 5424 # about 5 minutes as the teststring grows exponentially. 5425 # Worse, since 9x/ME are not pre-emptively multitasking, 5426 # you end up with a "frozen" computer, even though with patience 5427 # the test eventually succeeds (with a max line length of 256k). 5428 # Instead, let's just punt: use the minimum linelength reported by 5429 # all of the supported platforms: 8192 (on NT/2K/XP). 5430 lt_cv_sys_max_cmd_len=8192; 5431 ;; 5432 5433 mint*) 5434 # On MiNT this can take a long time and run out of memory. 5435 lt_cv_sys_max_cmd_len=8192; 5436 ;; 5437 5438 amigaos*) 5439 # On AmigaOS with pdksh, this test takes hours, literally. 5440 # So we just punt and use a minimum line length of 8192. 5441 lt_cv_sys_max_cmd_len=8192; 5442 ;; 5443 5444 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5445 # This has been around since 386BSD, at least. Likely further. 5446 if test -x /sbin/sysctl; then 5447 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5448 elif test -x /usr/sbin/sysctl; then 5449 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5450 else 5451 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5452 fi 5453 # And add a safety zone 5454 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5456 ;; 5457 5458 interix*) 5459 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5460 lt_cv_sys_max_cmd_len=196608 5461 ;; 5462 5463 osf*) 5464 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5465 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5466 # nice to cause kernel panics so lets avoid the loop below. 5467 # First set a reasonable default. 5468 lt_cv_sys_max_cmd_len=16384 5469 # 5470 if test -x /sbin/sysconfig; then 5471 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5472 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5473 esac 5474 fi 5475 ;; 5476 sco3.2v5*) 5477 lt_cv_sys_max_cmd_len=102400 5478 ;; 5479 sysv5* | sco5v6* | sysv4.2uw2*) 5480 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5481 if test -n "$kargmax"; then 5482 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5483 else 5484 lt_cv_sys_max_cmd_len=32768 5485 fi 5486 ;; 5487 *) 5488 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5489 if test -n "$lt_cv_sys_max_cmd_len"; then 5490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5491 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5492 else 5493 # Make teststring a little bigger before we do anything with it. 5494 # a 1K string should be a reasonable start. 5495 for i in 1 2 3 4 5 6 7 8 ; do 5496 teststring=$teststring$teststring 5497 done 5498 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5499 # If test is not a shell built-in, we'll probably end up computing a 5500 # maximum length that is only half of the actual maximum length, but 5501 # we can't tell. 5502 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5503 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5504 test $i != 17 # 1/2 MB should be enough 5505 do 5506 i=`expr $i + 1` 5507 teststring=$teststring$teststring 5508 done 5509 # Only check the string length outside the loop. 5510 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5511 teststring= 5512 # Add a significant safety factor because C++ compilers can tack on 5513 # massive amounts of additional arguments before passing them to the 5514 # linker. It appears as though 1/2 is a usable value. 5515 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5516 fi 5517 ;; 5518 esac 5519 5520 fi 5521 5522 if test -n $lt_cv_sys_max_cmd_len ; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5524 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5525 else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5527 $as_echo "none" >&6; } 5528 fi 5529 max_cmd_len=$lt_cv_sys_max_cmd_len 5530 5531 5532 5533 5534 5535 5536 : ${CP="cp -f"} 5537 : ${MV="mv -f"} 5538 : ${RM="rm -f"} 5539 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5541 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5542 # Try some XSI features 5543 xsi_shell=no 5544 ( _lt_dummy="a/b/c" 5545 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5546 = c,a/b,, \ 5547 && eval 'test $(( 1 + 1 )) -eq 2 \ 5548 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5549 && xsi_shell=yes 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5551 $as_echo "$xsi_shell" >&6; } 5552 5553 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5555 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5556 lt_shell_append=no 5557 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5558 >/dev/null 2>&1 \ 5559 && lt_shell_append=yes 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5561 $as_echo "$lt_shell_append" >&6; } 5562 5563 5564 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5565 lt_unset=unset 5566 else 5567 lt_unset=false 5568 fi 5569 5570 5571 5572 5573 5574 # test EBCDIC or ASCII 5575 case `echo X|tr X '\101'` in 5576 A) # ASCII based system 5577 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5578 lt_SP2NL='tr \040 \012' 5579 lt_NL2SP='tr \015\012 \040\040' 5580 ;; 5581 *) # EBCDIC based system 5582 lt_SP2NL='tr \100 \n' 5583 lt_NL2SP='tr \r\n \100\100' 5584 ;; 5585 esac 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5596 $as_echo_n "checking for $LD option to reload object files... " >&6; } 5597 if ${lt_cv_ld_reload_flag+:} false; then : 5598 $as_echo_n "(cached) " >&6 5599 else 5600 lt_cv_ld_reload_flag='-r' 5601 fi 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5603 $as_echo "$lt_cv_ld_reload_flag" >&6; } 5604 reload_flag=$lt_cv_ld_reload_flag 5605 case $reload_flag in 5606 "" | " "*) ;; 5607 *) reload_flag=" $reload_flag" ;; 5608 esac 5609 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5610 case $host_os in 5611 darwin*) 5612 if test "$GCC" = yes; then 5613 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5614 else 5615 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5616 fi 5617 ;; 5618 esac 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 if test -n "$ac_tool_prefix"; then 5629 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5630 set dummy ${ac_tool_prefix}objdump; ac_word=$2 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5632 $as_echo_n "checking for $ac_word... " >&6; } 5633 if ${ac_cv_prog_OBJDUMP+:} false; then : 5634 $as_echo_n "(cached) " >&6 5635 else 5636 if test -n "$OBJDUMP"; then 5637 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5638 else 5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5640 for as_dir in $PATH 5641 do 5642 IFS=$as_save_IFS 5643 test -z "$as_dir" && as_dir=. 5644 for ac_exec_ext in '' $ac_executable_extensions; do 5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5646 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5648 break 2 5649 fi 5650 done 5651 done 5652 IFS=$as_save_IFS 5653 5654 fi 5655 fi 5656 OBJDUMP=$ac_cv_prog_OBJDUMP 5657 if test -n "$OBJDUMP"; then 5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5659 $as_echo "$OBJDUMP" >&6; } 5660 else 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5662 $as_echo "no" >&6; } 5663 fi 5664 5665 5666 fi 5667 if test -z "$ac_cv_prog_OBJDUMP"; then 5668 ac_ct_OBJDUMP=$OBJDUMP 5669 # Extract the first word of "objdump", so it can be a program name with args. 5670 set dummy objdump; ac_word=$2 5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5672 $as_echo_n "checking for $ac_word... " >&6; } 5673 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5674 $as_echo_n "(cached) " >&6 5675 else 5676 if test -n "$ac_ct_OBJDUMP"; then 5677 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5678 else 5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5680 for as_dir in $PATH 5681 do 5682 IFS=$as_save_IFS 5683 test -z "$as_dir" && as_dir=. 5684 for ac_exec_ext in '' $ac_executable_extensions; do 5685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5686 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5688 break 2 5689 fi 5690 done 5691 done 5692 IFS=$as_save_IFS 5693 5694 fi 5695 fi 5696 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5697 if test -n "$ac_ct_OBJDUMP"; then 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5699 $as_echo "$ac_ct_OBJDUMP" >&6; } 5700 else 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5702 $as_echo "no" >&6; } 5703 fi 5704 5705 if test "x$ac_ct_OBJDUMP" = x; then 5706 OBJDUMP="false" 5707 else 5708 case $cross_compiling:$ac_tool_warned in 5709 yes:) 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5712 ac_tool_warned=yes ;; 5713 esac 5714 OBJDUMP=$ac_ct_OBJDUMP 5715 fi 5716 else 5717 OBJDUMP="$ac_cv_prog_OBJDUMP" 5718 fi 5719 5720 test -z "$OBJDUMP" && OBJDUMP=objdump 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5731 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 5732 if ${lt_cv_deplibs_check_method+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734 else 5735 lt_cv_file_magic_cmd='$MAGIC_CMD' 5736 lt_cv_file_magic_test_file= 5737 lt_cv_deplibs_check_method='unknown' 5738 # Need to set the preceding variable on all platforms that support 5739 # interlibrary dependencies. 5740 # 'none' -- dependencies not supported. 5741 # `unknown' -- same as none, but documents that we really don't know. 5742 # 'pass_all' -- all dependencies passed with no checks. 5743 # 'test_compile' -- check by making test program. 5744 # 'file_magic [[regex]]' -- check by looking for files in library path 5745 # which responds to the $file_magic_cmd with a given extended regex. 5746 # If you have `file' or equivalent on your system and you're not sure 5747 # whether `pass_all' will *always* work, you probably want this one. 5748 5749 case $host_os in 5750 aix[4-9]*) 5751 lt_cv_deplibs_check_method=pass_all 5752 ;; 5753 5754 beos*) 5755 lt_cv_deplibs_check_method=pass_all 5756 ;; 5757 5758 bsdi[45]*) 5759 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5760 lt_cv_file_magic_cmd='/usr/bin/file -L' 5761 lt_cv_file_magic_test_file=/shlib/libc.so 5762 ;; 5763 5764 cygwin*) 5765 # func_win32_libid is a shell function defined in ltmain.sh 5766 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5767 lt_cv_file_magic_cmd='func_win32_libid' 5768 ;; 5769 5770 mingw* | pw32*) 5771 # Base MSYS/MinGW do not provide the 'file' command needed by 5772 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5773 # unless we find 'file', for example because we are cross-compiling. 5774 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5775 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5777 lt_cv_file_magic_cmd='func_win32_libid' 5778 else 5779 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5780 lt_cv_file_magic_cmd='$OBJDUMP -f' 5781 fi 5782 ;; 5783 5784 cegcc*) 5785 # use the weaker test based on 'objdump'. See mingw*. 5786 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5787 lt_cv_file_magic_cmd='$OBJDUMP -f' 5788 ;; 5789 5790 darwin* | rhapsody*) 5791 lt_cv_deplibs_check_method=pass_all 5792 ;; 5793 5794 freebsd* | dragonfly*) 5795 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5796 case $host_cpu in 5797 i*86 ) 5798 # Not sure whether the presence of OpenBSD here was a mistake. 5799 # Let's accept both of them until this is cleared up. 5800 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5801 lt_cv_file_magic_cmd=/usr/bin/file 5802 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5803 ;; 5804 esac 5805 else 5806 lt_cv_deplibs_check_method=pass_all 5807 fi 5808 ;; 5809 5810 gnu*) 5811 lt_cv_deplibs_check_method=pass_all 5812 ;; 5813 5814 haiku*) 5815 lt_cv_deplibs_check_method=pass_all 5816 ;; 5817 5818 hpux10.20* | hpux11*) 5819 lt_cv_file_magic_cmd=/usr/bin/file 5820 case $host_cpu in 5821 ia64*) 5822 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5823 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5824 ;; 5825 hppa*64*) 5826 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]' 5827 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5828 ;; 5829 *) 5830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5831 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5832 ;; 5833 esac 5834 ;; 5835 5836 interix[3-9]*) 5837 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5839 ;; 5840 5841 irix5* | irix6* | nonstopux*) 5842 case $LD in 5843 *-32|*"-32 ") libmagic=32-bit;; 5844 *-n32|*"-n32 ") libmagic=N32;; 5845 *-64|*"-64 ") libmagic=64-bit;; 5846 *) libmagic=never-match;; 5847 esac 5848 lt_cv_deplibs_check_method=pass_all 5849 ;; 5850 5851 # This must be Linux ELF. 5852 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 5853 lt_cv_deplibs_check_method=pass_all 5854 ;; 5855 5856 netbsd*) 5857 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5859 else 5860 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5861 fi 5862 ;; 5863 5864 newos6*) 5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5866 lt_cv_file_magic_cmd=/usr/bin/file 5867 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5868 ;; 5869 5870 *nto* | *qnx*) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 5874 openbsd*) 5875 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5877 else 5878 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5879 fi 5880 ;; 5881 5882 osf3* | osf4* | osf5*) 5883 lt_cv_deplibs_check_method=pass_all 5884 ;; 5885 5886 rdos*) 5887 lt_cv_deplibs_check_method=pass_all 5888 ;; 5889 5890 solaris*) 5891 lt_cv_deplibs_check_method=pass_all 5892 ;; 5893 5894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5895 lt_cv_deplibs_check_method=pass_all 5896 ;; 5897 5898 sysv4 | sysv4.3*) 5899 case $host_vendor in 5900 motorola) 5901 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]' 5902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5903 ;; 5904 ncr) 5905 lt_cv_deplibs_check_method=pass_all 5906 ;; 5907 sequent) 5908 lt_cv_file_magic_cmd='/bin/file' 5909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5910 ;; 5911 sni) 5912 lt_cv_file_magic_cmd='/bin/file' 5913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5914 lt_cv_file_magic_test_file=/lib/libc.so 5915 ;; 5916 siemens) 5917 lt_cv_deplibs_check_method=pass_all 5918 ;; 5919 pc) 5920 lt_cv_deplibs_check_method=pass_all 5921 ;; 5922 esac 5923 ;; 5924 5925 tpf*) 5926 lt_cv_deplibs_check_method=pass_all 5927 ;; 5928 vxworks*) 5929 # Assume VxWorks cross toolchains are built on Linux, possibly 5930 # as canadian for Windows hosts. 5931 lt_cv_deplibs_check_method=pass_all 5932 ;; 5933 esac 5934 5935 fi 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5937 $as_echo "$lt_cv_deplibs_check_method" >&6; } 5938 file_magic_cmd=$lt_cv_file_magic_cmd 5939 deplibs_check_method=$lt_cv_deplibs_check_method 5940 test -z "$deplibs_check_method" && deplibs_check_method=unknown 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 plugin_option= 5954 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 5955 for plugin in $plugin_names; do 5956 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 5957 if test x$plugin_so = x$plugin; then 5958 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 5959 fi 5960 if test x$plugin_so != x$plugin; then 5961 plugin_option="--plugin $plugin_so" 5962 break 5963 fi 5964 done 5965 5966 if test -n "$ac_tool_prefix"; then 5967 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5968 set dummy ${ac_tool_prefix}ar; ac_word=$2 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5970 $as_echo_n "checking for $ac_word... " >&6; } 5971 if ${ac_cv_prog_AR+:} false; then : 5972 $as_echo_n "(cached) " >&6 5973 else 5974 if test -n "$AR"; then 5975 ac_cv_prog_AR="$AR" # Let the user override the test. 5976 else 5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5978 for as_dir in $PATH 5979 do 5980 IFS=$as_save_IFS 5981 test -z "$as_dir" && as_dir=. 5982 for ac_exec_ext in '' $ac_executable_extensions; do 5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5984 ac_cv_prog_AR="${ac_tool_prefix}ar" 5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5986 break 2 5987 fi 5988 done 5989 done 5990 IFS=$as_save_IFS 5991 5992 fi 5993 fi 5994 AR=$ac_cv_prog_AR 5995 if test -n "$AR"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5997 $as_echo "$AR" >&6; } 5998 else 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6000 $as_echo "no" >&6; } 6001 fi 6002 6003 6004 fi 6005 if test -z "$ac_cv_prog_AR"; then 6006 ac_ct_AR=$AR 6007 # Extract the first word of "ar", so it can be a program name with args. 6008 set dummy ar; ac_word=$2 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6010 $as_echo_n "checking for $ac_word... " >&6; } 6011 if ${ac_cv_prog_ac_ct_AR+:} false; then : 6012 $as_echo_n "(cached) " >&6 6013 else 6014 if test -n "$ac_ct_AR"; then 6015 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6016 else 6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6018 for as_dir in $PATH 6019 do 6020 IFS=$as_save_IFS 6021 test -z "$as_dir" && as_dir=. 6022 for ac_exec_ext in '' $ac_executable_extensions; do 6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6024 ac_cv_prog_ac_ct_AR="ar" 6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6026 break 2 6027 fi 6028 done 6029 done 6030 IFS=$as_save_IFS 6031 6032 fi 6033 fi 6034 ac_ct_AR=$ac_cv_prog_ac_ct_AR 6035 if test -n "$ac_ct_AR"; then 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6037 $as_echo "$ac_ct_AR" >&6; } 6038 else 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6040 $as_echo "no" >&6; } 6041 fi 6042 6043 if test "x$ac_ct_AR" = x; then 6044 AR="false" 6045 else 6046 case $cross_compiling:$ac_tool_warned in 6047 yes:) 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6050 ac_tool_warned=yes ;; 6051 esac 6052 AR=$ac_ct_AR 6053 fi 6054 else 6055 AR="$ac_cv_prog_AR" 6056 fi 6057 6058 test -z "$AR" && AR=ar 6059 if test -n "$plugin_option"; then 6060 if $AR --help 2>&1 | grep -q "\--plugin"; then 6061 touch conftest.c 6062 $AR $plugin_option rc conftest.a conftest.c 6063 if test "$?" != 0; then 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 6065 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 6066 else 6067 AR="$AR $plugin_option" 6068 fi 6069 rm -f conftest.* 6070 fi 6071 fi 6072 test -z "$AR_FLAGS" && AR_FLAGS=cru 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 if test -n "$ac_tool_prefix"; then 6085 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6086 set dummy ${ac_tool_prefix}strip; ac_word=$2 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088 $as_echo_n "checking for $ac_word... " >&6; } 6089 if ${ac_cv_prog_STRIP+:} false; then : 6090 $as_echo_n "(cached) " >&6 6091 else 6092 if test -n "$STRIP"; then 6093 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6094 else 6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096 for as_dir in $PATH 6097 do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6102 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106 done 6107 done 6108 IFS=$as_save_IFS 6109 6110 fi 6111 fi 6112 STRIP=$ac_cv_prog_STRIP 6113 if test -n "$STRIP"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6115 $as_echo "$STRIP" >&6; } 6116 else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118 $as_echo "no" >&6; } 6119 fi 6120 6121 6122 fi 6123 if test -z "$ac_cv_prog_STRIP"; then 6124 ac_ct_STRIP=$STRIP 6125 # Extract the first word of "strip", so it can be a program name with args. 6126 set dummy strip; ac_word=$2 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128 $as_echo_n "checking for $ac_word... " >&6; } 6129 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6130 $as_echo_n "(cached) " >&6 6131 else 6132 if test -n "$ac_ct_STRIP"; then 6133 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6134 else 6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136 for as_dir in $PATH 6137 do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6142 ac_cv_prog_ac_ct_STRIP="strip" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146 done 6147 done 6148 IFS=$as_save_IFS 6149 6150 fi 6151 fi 6152 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6153 if test -n "$ac_ct_STRIP"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6155 $as_echo "$ac_ct_STRIP" >&6; } 6156 else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158 $as_echo "no" >&6; } 6159 fi 6160 6161 if test "x$ac_ct_STRIP" = x; then 6162 STRIP=":" 6163 else 6164 case $cross_compiling:$ac_tool_warned in 6165 yes:) 6166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6168 ac_tool_warned=yes ;; 6169 esac 6170 STRIP=$ac_ct_STRIP 6171 fi 6172 else 6173 STRIP="$ac_cv_prog_STRIP" 6174 fi 6175 6176 test -z "$STRIP" && STRIP=: 6177 6178 6179 6180 6181 6182 6183 if test -n "$ac_tool_prefix"; then 6184 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6185 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187 $as_echo_n "checking for $ac_word... " >&6; } 6188 if ${ac_cv_prog_RANLIB+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190 else 6191 if test -n "$RANLIB"; then 6192 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6193 else 6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6195 for as_dir in $PATH 6196 do 6197 IFS=$as_save_IFS 6198 test -z "$as_dir" && as_dir=. 6199 for ac_exec_ext in '' $ac_executable_extensions; do 6200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6201 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6203 break 2 6204 fi 6205 done 6206 done 6207 IFS=$as_save_IFS 6208 6209 fi 6210 fi 6211 RANLIB=$ac_cv_prog_RANLIB 6212 if test -n "$RANLIB"; then 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6214 $as_echo "$RANLIB" >&6; } 6215 else 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6217 $as_echo "no" >&6; } 6218 fi 6219 6220 6221 fi 6222 if test -z "$ac_cv_prog_RANLIB"; then 6223 ac_ct_RANLIB=$RANLIB 6224 # Extract the first word of "ranlib", so it can be a program name with args. 6225 set dummy ranlib; ac_word=$2 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6227 $as_echo_n "checking for $ac_word... " >&6; } 6228 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230 else 6231 if test -n "$ac_ct_RANLIB"; then 6232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6233 else 6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6235 for as_dir in $PATH 6236 do 6237 IFS=$as_save_IFS 6238 test -z "$as_dir" && as_dir=. 6239 for ac_exec_ext in '' $ac_executable_extensions; do 6240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6241 ac_cv_prog_ac_ct_RANLIB="ranlib" 6242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6243 break 2 6244 fi 6245 done 6246 done 6247 IFS=$as_save_IFS 6248 6249 fi 6250 fi 6251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6252 if test -n "$ac_ct_RANLIB"; then 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6254 $as_echo "$ac_ct_RANLIB" >&6; } 6255 else 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6257 $as_echo "no" >&6; } 6258 fi 6259 6260 if test "x$ac_ct_RANLIB" = x; then 6261 RANLIB=":" 6262 else 6263 case $cross_compiling:$ac_tool_warned in 6264 yes:) 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6267 ac_tool_warned=yes ;; 6268 esac 6269 RANLIB=$ac_ct_RANLIB 6270 fi 6271 else 6272 RANLIB="$ac_cv_prog_RANLIB" 6273 fi 6274 6275 test -z "$RANLIB" && RANLIB=: 6276 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 6277 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 6278 RANLIB="$RANLIB $plugin_option" 6279 fi 6280 fi 6281 6282 6283 6284 6285 6286 6287 # Determine commands to create old-style static archives. 6288 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6289 old_postinstall_cmds='chmod 644 $oldlib' 6290 old_postuninstall_cmds= 6291 6292 if test -n "$RANLIB"; then 6293 case $host_os in 6294 openbsd*) 6295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6296 ;; 6297 *) 6298 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6299 ;; 6300 esac 6301 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6302 fi 6303 6304 case $host_os in 6305 darwin*) 6306 lock_old_archive_extraction=yes ;; 6307 *) 6308 lock_old_archive_extraction=no ;; 6309 esac 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 # If no C compiler was specified, use CC. 6350 LTCC=${LTCC-"$CC"} 6351 6352 # If no C compiler flags were specified, use CFLAGS. 6353 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6354 6355 # Allow CC to be a program name with arguments. 6356 compiler=$CC 6357 6358 6359 # Check for command to grab the raw symbol name followed by C symbol from nm. 6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6361 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6362 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6363 $as_echo_n "(cached) " >&6 6364 else 6365 6366 # These are sane defaults that work on at least a few old systems. 6367 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 6368 6369 # Character class describing NM global symbol codes. 6370 symcode='[BCDEGRST]' 6371 6372 # Regexp to match symbols that can be accessed directly from C. 6373 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6374 6375 # Define system-specific variables. 6376 case $host_os in 6377 aix*) 6378 symcode='[BCDT]' 6379 ;; 6380 cygwin* | mingw* | pw32* | cegcc*) 6381 symcode='[ABCDGISTW]' 6382 ;; 6383 hpux*) 6384 if test "$host_cpu" = ia64; then 6385 symcode='[ABCDEGRST]' 6386 fi 6387 ;; 6388 irix* | nonstopux*) 6389 symcode='[BCDEGRST]' 6390 ;; 6391 osf*) 6392 symcode='[BCDEGQRST]' 6393 ;; 6394 solaris*) 6395 symcode='[BCDRT]' 6396 ;; 6397 sco3.2v5*) 6398 symcode='[DT]' 6399 ;; 6400 sysv4.2uw2*) 6401 symcode='[DT]' 6402 ;; 6403 sysv5* | sco5v6* | unixware* | OpenUNIX*) 6404 symcode='[ABDT]' 6405 ;; 6406 sysv4) 6407 symcode='[DFNSTU]' 6408 ;; 6409 esac 6410 6411 # If we're using GNU nm, then use its standard symbol codes. 6412 case `$NM -V 2>&1` in 6413 *GNU* | *'with BFD'*) 6414 symcode='[ABCDGIRSTW]' ;; 6415 esac 6416 6417 # Transform an extracted symbol line into a proper C declaration. 6418 # Some systems (esp. on ia64) link data and code symbols differently, 6419 # so use this general approach. 6420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6421 6422 # Transform an extracted symbol line into symbol name and symbol address 6423 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6424 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'" 6425 6426 # Handle CRLF in mingw tool chain 6427 opt_cr= 6428 case $build_os in 6429 mingw*) 6430 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6431 ;; 6432 esac 6433 6434 # Try without a prefix underscore, then with it. 6435 for ac_symprfx in "" "_"; do 6436 6437 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6438 symxfrm="\\1 $ac_symprfx\\2 \\2" 6439 6440 # Write the raw and C identifiers. 6441 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6442 # Fake it for dumpbin and say T for any non-static function 6443 # and D for any global variable. 6444 # Also find C++ and __fastcall symbols from MSVC++, 6445 # which start with @ or ?. 6446 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6447 " {last_section=section; section=\$ 3};"\ 6448 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6449 " \$ 0!~/External *\|/{next};"\ 6450 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6451 " {if(hide[section]) next};"\ 6452 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6453 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6454 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6455 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6456 " ' prfx=^$ac_symprfx" 6457 else 6458 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6459 fi 6460 6461 # Check to see that the pipe works correctly. 6462 pipe_works=no 6463 6464 rm -f conftest* 6465 cat > conftest.$ac_ext <<_LT_EOF 6466 #ifdef __cplusplus 6467 extern "C" { 6468 #endif 6469 char nm_test_var; 6470 void nm_test_func(void); 6471 void nm_test_func(void){} 6472 #ifdef __cplusplus 6473 } 6474 #endif 6475 int main(){nm_test_var='a';nm_test_func();return(0);} 6476 _LT_EOF 6477 6478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6479 (eval $ac_compile) 2>&5 6480 ac_status=$? 6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6482 test $ac_status = 0; }; then 6483 # Now try to grab the symbols. 6484 nlist=conftest.nm 6485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6486 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6487 ac_status=$? 6488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6489 test $ac_status = 0; } && test -s "$nlist"; then 6490 # Try sorting and uniquifying the output. 6491 if sort "$nlist" | uniq > "$nlist"T; then 6492 mv -f "$nlist"T "$nlist" 6493 else 6494 rm -f "$nlist"T 6495 fi 6496 6497 # Make sure that we snagged all the symbols we need. 6498 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6499 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6500 cat <<_LT_EOF > conftest.$ac_ext 6501 #ifdef __cplusplus 6502 extern "C" { 6503 #endif 6504 6505 _LT_EOF 6506 # Now generate the symbol file. 6507 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6508 6509 cat <<_LT_EOF >> conftest.$ac_ext 6510 6511 /* The mapping between symbol names and symbols. */ 6512 const struct { 6513 const char *name; 6514 void *address; 6515 } 6516 lt__PROGRAM__LTX_preloaded_symbols[] = 6517 { 6518 { "@PROGRAM@", (void *) 0 }, 6519 _LT_EOF 6520 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6521 cat <<\_LT_EOF >> conftest.$ac_ext 6522 {0, (void *) 0} 6523 }; 6524 6525 /* This works around a problem in FreeBSD linker */ 6526 #ifdef FREEBSD_WORKAROUND 6527 static const void *lt_preloaded_setup() { 6528 return lt__PROGRAM__LTX_preloaded_symbols; 6529 } 6530 #endif 6531 6532 #ifdef __cplusplus 6533 } 6534 #endif 6535 _LT_EOF 6536 # Now try linking the two files. 6537 mv conftest.$ac_objext conftstm.$ac_objext 6538 lt_save_LIBS="$LIBS" 6539 lt_save_CFLAGS="$CFLAGS" 6540 LIBS="conftstm.$ac_objext" 6541 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6543 (eval $ac_link) 2>&5 6544 ac_status=$? 6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6546 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6547 pipe_works=yes 6548 fi 6549 LIBS="$lt_save_LIBS" 6550 CFLAGS="$lt_save_CFLAGS" 6551 else 6552 echo "cannot find nm_test_func in $nlist" >&5 6553 fi 6554 else 6555 echo "cannot find nm_test_var in $nlist" >&5 6556 fi 6557 else 6558 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6559 fi 6560 else 6561 echo "$progname: failed program was:" >&5 6562 cat conftest.$ac_ext >&5 6563 fi 6564 rm -rf conftest* conftst* 6565 6566 # Do not use the global_symbol_pipe unless it works. 6567 if test "$pipe_works" = yes; then 6568 break 6569 else 6570 lt_cv_sys_global_symbol_pipe= 6571 fi 6572 done 6573 6574 fi 6575 6576 if test -z "$lt_cv_sys_global_symbol_pipe"; then 6577 lt_cv_sys_global_symbol_to_cdecl= 6578 fi 6579 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6581 $as_echo "failed" >&6; } 6582 else 6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6584 $as_echo "ok" >&6; } 6585 fi 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 # Check whether --enable-libtool-lock was given. 6609 if test "${enable_libtool_lock+set}" = set; then : 6610 enableval=$enable_libtool_lock; 6611 fi 6612 6613 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6614 6615 # Some flags need to be propagated to the compiler or linker for good 6616 # libtool support. 6617 case $host in 6618 ia64-*-hpux*) 6619 # Find out which ABI we are using. 6620 echo 'int i;' > conftest.$ac_ext 6621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6622 (eval $ac_compile) 2>&5 6623 ac_status=$? 6624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6625 test $ac_status = 0; }; then 6626 case `/usr/bin/file conftest.$ac_objext` in 6627 *ELF-32*) 6628 HPUX_IA64_MODE="32" 6629 ;; 6630 *ELF-64*) 6631 HPUX_IA64_MODE="64" 6632 ;; 6633 esac 6634 fi 6635 rm -rf conftest* 6636 ;; 6637 *-*-irix6*) 6638 # Find out which ABI we are using. 6639 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6641 (eval $ac_compile) 2>&5 6642 ac_status=$? 6643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6644 test $ac_status = 0; }; then 6645 if test "$lt_cv_prog_gnu_ld" = yes; then 6646 case `/usr/bin/file conftest.$ac_objext` in 6647 *32-bit*) 6648 LD="${LD-ld} -melf32bsmip" 6649 ;; 6650 *N32*) 6651 LD="${LD-ld} -melf32bmipn32" 6652 ;; 6653 *64-bit*) 6654 LD="${LD-ld} -melf64bmip" 6655 ;; 6656 esac 6657 else 6658 case `/usr/bin/file conftest.$ac_objext` in 6659 *32-bit*) 6660 LD="${LD-ld} -32" 6661 ;; 6662 *N32*) 6663 LD="${LD-ld} -n32" 6664 ;; 6665 *64-bit*) 6666 LD="${LD-ld} -64" 6667 ;; 6668 esac 6669 fi 6670 fi 6671 rm -rf conftest* 6672 ;; 6673 6674 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6675 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6676 # Find out which ABI we are using. 6677 echo 'int i;' > conftest.$ac_ext 6678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6679 (eval $ac_compile) 2>&5 6680 ac_status=$? 6681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6682 test $ac_status = 0; }; then 6683 case `/usr/bin/file conftest.o` in 6684 *32-bit*) 6685 case $host in 6686 x86_64-*kfreebsd*-gnu) 6687 LD="${LD-ld} -m elf_i386_fbsd" 6688 ;; 6689 x86_64-*linux*) 6690 case `/usr/bin/file conftest.o` in 6691 *x86-64*) 6692 LD="${LD-ld} -m elf32_x86_64" 6693 ;; 6694 *) 6695 LD="${LD-ld} -m elf_i386" 6696 ;; 6697 esac 6698 ;; 6699 powerpc64le-*linux*) 6700 LD="${LD-ld} -m elf32lppclinux" 6701 ;; 6702 powerpc64-*linux*) 6703 LD="${LD-ld} -m elf32ppclinux" 6704 ;; 6705 s390x-*linux*) 6706 LD="${LD-ld} -m elf_s390" 6707 ;; 6708 sparc64-*linux*) 6709 LD="${LD-ld} -m elf32_sparc" 6710 ;; 6711 esac 6712 ;; 6713 *64-bit*) 6714 case $host in 6715 x86_64-*kfreebsd*-gnu) 6716 LD="${LD-ld} -m elf_x86_64_fbsd" 6717 ;; 6718 x86_64-*linux*) 6719 LD="${LD-ld} -m elf_x86_64" 6720 ;; 6721 powerpcle-*linux*) 6722 LD="${LD-ld} -m elf64lppc" 6723 ;; 6724 powerpc-*linux*) 6725 LD="${LD-ld} -m elf64ppc" 6726 ;; 6727 s390*-*linux*|s390*-*tpf*) 6728 LD="${LD-ld} -m elf64_s390" 6729 ;; 6730 sparc*-*linux*) 6731 LD="${LD-ld} -m elf64_sparc" 6732 ;; 6733 esac 6734 ;; 6735 esac 6736 fi 6737 rm -rf conftest* 6738 ;; 6739 6740 *-*-sco3.2v5*) 6741 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6742 SAVE_CFLAGS="$CFLAGS" 6743 CFLAGS="$CFLAGS -belf" 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6745 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6746 if ${lt_cv_cc_needs_belf+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748 else 6749 ac_ext=c 6750 ac_cpp='$CPP $CPPFLAGS' 6751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6753 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6754 6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756 /* end confdefs.h. */ 6757 6758 int 6759 main () 6760 { 6761 6762 ; 6763 return 0; 6764 } 6765 _ACEOF 6766 if ac_fn_c_try_link "$LINENO"; then : 6767 lt_cv_cc_needs_belf=yes 6768 else 6769 lt_cv_cc_needs_belf=no 6770 fi 6771 rm -f core conftest.err conftest.$ac_objext \ 6772 conftest$ac_exeext conftest.$ac_ext 6773 ac_ext=c 6774 ac_cpp='$CPP $CPPFLAGS' 6775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6777 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6778 6779 fi 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6781 $as_echo "$lt_cv_cc_needs_belf" >&6; } 6782 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6783 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6784 CFLAGS="$SAVE_CFLAGS" 6785 fi 6786 ;; 6787 sparc*-*solaris*) 6788 # Find out which ABI we are using. 6789 echo 'int i;' > conftest.$ac_ext 6790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6791 (eval $ac_compile) 2>&5 6792 ac_status=$? 6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6794 test $ac_status = 0; }; then 6795 case `/usr/bin/file conftest.o` in 6796 *64-bit*) 6797 case $lt_cv_prog_gnu_ld in 6798 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6799 *) 6800 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6801 LD="${LD-ld} -64" 6802 fi 6803 ;; 6804 esac 6805 ;; 6806 esac 6807 fi 6808 rm -rf conftest* 6809 ;; 6810 esac 6811 6812 need_locks="$enable_libtool_lock" 6813 6814 6815 case $host_os in 6816 rhapsody* | darwin*) 6817 if test -n "$ac_tool_prefix"; then 6818 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6819 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6821 $as_echo_n "checking for $ac_word... " >&6; } 6822 if ${ac_cv_prog_DSYMUTIL+:} false; then : 6823 $as_echo_n "(cached) " >&6 6824 else 6825 if test -n "$DSYMUTIL"; then 6826 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6827 else 6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6829 for as_dir in $PATH 6830 do 6831 IFS=$as_save_IFS 6832 test -z "$as_dir" && as_dir=. 6833 for ac_exec_ext in '' $ac_executable_extensions; do 6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6835 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6837 break 2 6838 fi 6839 done 6840 done 6841 IFS=$as_save_IFS 6842 6843 fi 6844 fi 6845 DSYMUTIL=$ac_cv_prog_DSYMUTIL 6846 if test -n "$DSYMUTIL"; then 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6848 $as_echo "$DSYMUTIL" >&6; } 6849 else 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851 $as_echo "no" >&6; } 6852 fi 6853 6854 6855 fi 6856 if test -z "$ac_cv_prog_DSYMUTIL"; then 6857 ac_ct_DSYMUTIL=$DSYMUTIL 6858 # Extract the first word of "dsymutil", so it can be a program name with args. 6859 set dummy dsymutil; ac_word=$2 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6861 $as_echo_n "checking for $ac_word... " >&6; } 6862 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6863 $as_echo_n "(cached) " >&6 6864 else 6865 if test -n "$ac_ct_DSYMUTIL"; then 6866 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6867 else 6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6869 for as_dir in $PATH 6870 do 6871 IFS=$as_save_IFS 6872 test -z "$as_dir" && as_dir=. 6873 for ac_exec_ext in '' $ac_executable_extensions; do 6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6875 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6877 break 2 6878 fi 6879 done 6880 done 6881 IFS=$as_save_IFS 6882 6883 fi 6884 fi 6885 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6886 if test -n "$ac_ct_DSYMUTIL"; then 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6888 $as_echo "$ac_ct_DSYMUTIL" >&6; } 6889 else 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6891 $as_echo "no" >&6; } 6892 fi 6893 6894 if test "x$ac_ct_DSYMUTIL" = x; then 6895 DSYMUTIL=":" 6896 else 6897 case $cross_compiling:$ac_tool_warned in 6898 yes:) 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6901 ac_tool_warned=yes ;; 6902 esac 6903 DSYMUTIL=$ac_ct_DSYMUTIL 6904 fi 6905 else 6906 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6907 fi 6908 6909 if test -n "$ac_tool_prefix"; then 6910 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6911 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6913 $as_echo_n "checking for $ac_word... " >&6; } 6914 if ${ac_cv_prog_NMEDIT+:} false; then : 6915 $as_echo_n "(cached) " >&6 6916 else 6917 if test -n "$NMEDIT"; then 6918 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6919 else 6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6921 for as_dir in $PATH 6922 do 6923 IFS=$as_save_IFS 6924 test -z "$as_dir" && as_dir=. 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6927 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931 done 6932 done 6933 IFS=$as_save_IFS 6934 6935 fi 6936 fi 6937 NMEDIT=$ac_cv_prog_NMEDIT 6938 if test -n "$NMEDIT"; then 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6940 $as_echo "$NMEDIT" >&6; } 6941 else 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6943 $as_echo "no" >&6; } 6944 fi 6945 6946 6947 fi 6948 if test -z "$ac_cv_prog_NMEDIT"; then 6949 ac_ct_NMEDIT=$NMEDIT 6950 # Extract the first word of "nmedit", so it can be a program name with args. 6951 set dummy nmedit; ac_word=$2 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6953 $as_echo_n "checking for $ac_word... " >&6; } 6954 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6955 $as_echo_n "(cached) " >&6 6956 else 6957 if test -n "$ac_ct_NMEDIT"; then 6958 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6959 else 6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6961 for as_dir in $PATH 6962 do 6963 IFS=$as_save_IFS 6964 test -z "$as_dir" && as_dir=. 6965 for ac_exec_ext in '' $ac_executable_extensions; do 6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6967 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6969 break 2 6970 fi 6971 done 6972 done 6973 IFS=$as_save_IFS 6974 6975 fi 6976 fi 6977 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6978 if test -n "$ac_ct_NMEDIT"; then 6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6980 $as_echo "$ac_ct_NMEDIT" >&6; } 6981 else 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6983 $as_echo "no" >&6; } 6984 fi 6985 6986 if test "x$ac_ct_NMEDIT" = x; then 6987 NMEDIT=":" 6988 else 6989 case $cross_compiling:$ac_tool_warned in 6990 yes:) 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6993 ac_tool_warned=yes ;; 6994 esac 6995 NMEDIT=$ac_ct_NMEDIT 6996 fi 6997 else 6998 NMEDIT="$ac_cv_prog_NMEDIT" 6999 fi 7000 7001 if test -n "$ac_tool_prefix"; then 7002 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7003 set dummy ${ac_tool_prefix}lipo; ac_word=$2 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005 $as_echo_n "checking for $ac_word... " >&6; } 7006 if ${ac_cv_prog_LIPO+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008 else 7009 if test -n "$LIPO"; then 7010 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7011 else 7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013 for as_dir in $PATH 7014 do 7015 IFS=$as_save_IFS 7016 test -z "$as_dir" && as_dir=. 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7019 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023 done 7024 done 7025 IFS=$as_save_IFS 7026 7027 fi 7028 fi 7029 LIPO=$ac_cv_prog_LIPO 7030 if test -n "$LIPO"; then 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7032 $as_echo "$LIPO" >&6; } 7033 else 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7035 $as_echo "no" >&6; } 7036 fi 7037 7038 7039 fi 7040 if test -z "$ac_cv_prog_LIPO"; then 7041 ac_ct_LIPO=$LIPO 7042 # Extract the first word of "lipo", so it can be a program name with args. 7043 set dummy lipo; ac_word=$2 7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7045 $as_echo_n "checking for $ac_word... " >&6; } 7046 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048 else 7049 if test -n "$ac_ct_LIPO"; then 7050 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7051 else 7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7053 for as_dir in $PATH 7054 do 7055 IFS=$as_save_IFS 7056 test -z "$as_dir" && as_dir=. 7057 for ac_exec_ext in '' $ac_executable_extensions; do 7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7059 ac_cv_prog_ac_ct_LIPO="lipo" 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7061 break 2 7062 fi 7063 done 7064 done 7065 IFS=$as_save_IFS 7066 7067 fi 7068 fi 7069 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7070 if test -n "$ac_ct_LIPO"; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7072 $as_echo "$ac_ct_LIPO" >&6; } 7073 else 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7075 $as_echo "no" >&6; } 7076 fi 7077 7078 if test "x$ac_ct_LIPO" = x; then 7079 LIPO=":" 7080 else 7081 case $cross_compiling:$ac_tool_warned in 7082 yes:) 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7085 ac_tool_warned=yes ;; 7086 esac 7087 LIPO=$ac_ct_LIPO 7088 fi 7089 else 7090 LIPO="$ac_cv_prog_LIPO" 7091 fi 7092 7093 if test -n "$ac_tool_prefix"; then 7094 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7095 set dummy ${ac_tool_prefix}otool; ac_word=$2 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097 $as_echo_n "checking for $ac_word... " >&6; } 7098 if ${ac_cv_prog_OTOOL+:} false; then : 7099 $as_echo_n "(cached) " >&6 7100 else 7101 if test -n "$OTOOL"; then 7102 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7103 else 7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105 for as_dir in $PATH 7106 do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7111 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115 done 7116 done 7117 IFS=$as_save_IFS 7118 7119 fi 7120 fi 7121 OTOOL=$ac_cv_prog_OTOOL 7122 if test -n "$OTOOL"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7124 $as_echo "$OTOOL" >&6; } 7125 else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127 $as_echo "no" >&6; } 7128 fi 7129 7130 7131 fi 7132 if test -z "$ac_cv_prog_OTOOL"; then 7133 ac_ct_OTOOL=$OTOOL 7134 # Extract the first word of "otool", so it can be a program name with args. 7135 set dummy otool; ac_word=$2 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7137 $as_echo_n "checking for $ac_word... " >&6; } 7138 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7139 $as_echo_n "(cached) " >&6 7140 else 7141 if test -n "$ac_ct_OTOOL"; then 7142 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7143 else 7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145 for as_dir in $PATH 7146 do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7151 ac_cv_prog_ac_ct_OTOOL="otool" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155 done 7156 done 7157 IFS=$as_save_IFS 7158 7159 fi 7160 fi 7161 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7162 if test -n "$ac_ct_OTOOL"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7164 $as_echo "$ac_ct_OTOOL" >&6; } 7165 else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167 $as_echo "no" >&6; } 7168 fi 7169 7170 if test "x$ac_ct_OTOOL" = x; then 7171 OTOOL=":" 7172 else 7173 case $cross_compiling:$ac_tool_warned in 7174 yes:) 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7177 ac_tool_warned=yes ;; 7178 esac 7179 OTOOL=$ac_ct_OTOOL 7180 fi 7181 else 7182 OTOOL="$ac_cv_prog_OTOOL" 7183 fi 7184 7185 if test -n "$ac_tool_prefix"; then 7186 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7187 set dummy ${ac_tool_prefix}otool64; ac_word=$2 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7189 $as_echo_n "checking for $ac_word... " >&6; } 7190 if ${ac_cv_prog_OTOOL64+:} false; then : 7191 $as_echo_n "(cached) " >&6 7192 else 7193 if test -n "$OTOOL64"; then 7194 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7195 else 7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7197 for as_dir in $PATH 7198 do 7199 IFS=$as_save_IFS 7200 test -z "$as_dir" && as_dir=. 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7203 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7205 break 2 7206 fi 7207 done 7208 done 7209 IFS=$as_save_IFS 7210 7211 fi 7212 fi 7213 OTOOL64=$ac_cv_prog_OTOOL64 7214 if test -n "$OTOOL64"; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7216 $as_echo "$OTOOL64" >&6; } 7217 else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219 $as_echo "no" >&6; } 7220 fi 7221 7222 7223 fi 7224 if test -z "$ac_cv_prog_OTOOL64"; then 7225 ac_ct_OTOOL64=$OTOOL64 7226 # Extract the first word of "otool64", so it can be a program name with args. 7227 set dummy otool64; ac_word=$2 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229 $as_echo_n "checking for $ac_word... " >&6; } 7230 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7231 $as_echo_n "(cached) " >&6 7232 else 7233 if test -n "$ac_ct_OTOOL64"; then 7234 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7235 else 7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237 for as_dir in $PATH 7238 do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7243 ac_cv_prog_ac_ct_OTOOL64="otool64" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247 done 7248 done 7249 IFS=$as_save_IFS 7250 7251 fi 7252 fi 7253 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7254 if test -n "$ac_ct_OTOOL64"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7256 $as_echo "$ac_ct_OTOOL64" >&6; } 7257 else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259 $as_echo "no" >&6; } 7260 fi 7261 7262 if test "x$ac_ct_OTOOL64" = x; then 7263 OTOOL64=":" 7264 else 7265 case $cross_compiling:$ac_tool_warned in 7266 yes:) 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7269 ac_tool_warned=yes ;; 7270 esac 7271 OTOOL64=$ac_ct_OTOOL64 7272 fi 7273 else 7274 OTOOL64="$ac_cv_prog_OTOOL64" 7275 fi 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7304 $as_echo_n "checking for -single_module linker flag... " >&6; } 7305 if ${lt_cv_apple_cc_single_mod+:} false; then : 7306 $as_echo_n "(cached) " >&6 7307 else 7308 lt_cv_apple_cc_single_mod=no 7309 if test -z "${LT_MULTI_MODULE}"; then 7310 # By default we will add the -single_module flag. You can override 7311 # by either setting the environment variable LT_MULTI_MODULE 7312 # non-empty at configure time, or by adding -multi_module to the 7313 # link flags. 7314 rm -rf libconftest.dylib* 7315 echo "int foo(void){return 1;}" > conftest.c 7316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7317 -dynamiclib -Wl,-single_module conftest.c" >&5 7318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7320 _lt_result=$? 7321 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7322 lt_cv_apple_cc_single_mod=yes 7323 else 7324 cat conftest.err >&5 7325 fi 7326 rm -rf libconftest.dylib* 7327 rm -f conftest.* 7328 fi 7329 fi 7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7331 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7333 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7334 if ${lt_cv_ld_exported_symbols_list+:} false; then : 7335 $as_echo_n "(cached) " >&6 7336 else 7337 lt_cv_ld_exported_symbols_list=no 7338 save_LDFLAGS=$LDFLAGS 7339 echo "_main" > conftest.sym 7340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7342 /* end confdefs.h. */ 7343 7344 int 7345 main () 7346 { 7347 7348 ; 7349 return 0; 7350 } 7351 _ACEOF 7352 if ac_fn_c_try_link "$LINENO"; then : 7353 lt_cv_ld_exported_symbols_list=yes 7354 else 7355 lt_cv_ld_exported_symbols_list=no 7356 fi 7357 rm -f core conftest.err conftest.$ac_objext \ 7358 conftest$ac_exeext conftest.$ac_ext 7359 LDFLAGS="$save_LDFLAGS" 7360 7361 fi 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7363 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7365 $as_echo_n "checking for -force_load linker flag... " >&6; } 7366 if ${lt_cv_ld_force_load+:} false; then : 7367 $as_echo_n "(cached) " >&6 7368 else 7369 lt_cv_ld_force_load=no 7370 cat > conftest.c << _LT_EOF 7371 int forced_loaded() { return 2;} 7372 _LT_EOF 7373 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7374 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7375 echo "$AR cru libconftest.a conftest.o" >&5 7376 $AR cru libconftest.a conftest.o 2>&5 7377 cat > conftest.c << _LT_EOF 7378 int main() { return 0;} 7379 _LT_EOF 7380 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7381 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7382 _lt_result=$? 7383 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7384 lt_cv_ld_force_load=yes 7385 else 7386 cat conftest.err >&5 7387 fi 7388 rm -f conftest.err libconftest.a conftest conftest.c 7389 rm -rf conftest.dSYM 7390 7391 fi 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7393 $as_echo "$lt_cv_ld_force_load" >&6; } 7394 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 7395 # build without first building modern cctools / linker. 7396 case $host_cpu-$host_os in 7397 *-rhapsody* | *-darwin1.[012]) 7398 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7399 *-darwin1.*) 7400 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7401 *-darwin*) 7402 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 7403 # deployment target is forced to an earlier version. 7404 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 7405 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 7406 ;; 7407 10.[012][,.]*) 7408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7409 ;; 7410 *) 7411 ;; 7412 esac 7413 ;; 7414 esac 7415 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7416 _lt_dar_single_mod='$single_module' 7417 fi 7418 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7419 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7420 else 7421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7422 fi 7423 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7424 _lt_dsymutil='~$DSYMUTIL $lib || :' 7425 else 7426 _lt_dsymutil= 7427 fi 7428 ;; 7429 esac 7430 7431 for ac_header in dlfcn.h 7432 do : 7433 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7434 " 7435 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7436 cat >>confdefs.h <<_ACEOF 7437 #define HAVE_DLFCN_H 1 7438 _ACEOF 7439 7440 fi 7441 7442 done 7443 7444 7445 7446 7447 7448 # Set options 7449 7450 7451 7452 enable_dlopen=no 7453 7454 7455 enable_win32_dll=no 7456 7457 7458 7459 # Check whether --enable-static was given. 7460 if test "${enable_static+set}" = set; then : 7461 enableval=$enable_static; p=${PACKAGE-default} 7462 case $enableval in 7463 yes) enable_static=yes ;; 7464 no) enable_static=no ;; 7465 *) 7466 enable_static=no 7467 # Look at the argument we got. We use all the common list separators. 7468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7469 for pkg in $enableval; do 7470 IFS="$lt_save_ifs" 7471 if test "X$pkg" = "X$p"; then 7472 enable_static=yes 7473 fi 7474 done 7475 IFS="$lt_save_ifs" 7476 ;; 7477 esac 7478 else 7479 enable_static=yes 7480 fi 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 # Check whether --with-pic was given. 7492 if test "${with_pic+set}" = set; then : 7493 withval=$with_pic; pic_mode="$withval" 7494 else 7495 pic_mode=default 7496 fi 7497 7498 7499 test -z "$pic_mode" && pic_mode=default 7500 7501 7502 7503 7504 7505 7506 7507 # Check whether --enable-fast-install was given. 7508 if test "${enable_fast_install+set}" = set; then : 7509 enableval=$enable_fast_install; p=${PACKAGE-default} 7510 case $enableval in 7511 yes) enable_fast_install=yes ;; 7512 no) enable_fast_install=no ;; 7513 *) 7514 enable_fast_install=no 7515 # Look at the argument we got. We use all the common list separators. 7516 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7517 for pkg in $enableval; do 7518 IFS="$lt_save_ifs" 7519 if test "X$pkg" = "X$p"; then 7520 enable_fast_install=yes 7521 fi 7522 done 7523 IFS="$lt_save_ifs" 7524 ;; 7525 esac 7526 else 7527 enable_fast_install=yes 7528 fi 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 # This can be used to rebuild libtool when needed 7541 LIBTOOL_DEPS="$ltmain" 7542 7543 # Always use our own libtool. 7544 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 test -z "$LN_S" && LN_S="ln -s" 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 if test -n "${ZSH_VERSION+set}" ; then 7587 setopt NO_GLOB_SUBST 7588 fi 7589 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7591 $as_echo_n "checking for objdir... " >&6; } 7592 if ${lt_cv_objdir+:} false; then : 7593 $as_echo_n "(cached) " >&6 7594 else 7595 rm -f .libs 2>/dev/null 7596 mkdir .libs 2>/dev/null 7597 if test -d .libs; then 7598 lt_cv_objdir=.libs 7599 else 7600 # MS-DOS does not allow filenames that begin with a dot. 7601 lt_cv_objdir=_libs 7602 fi 7603 rmdir .libs 2>/dev/null 7604 fi 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7606 $as_echo "$lt_cv_objdir" >&6; } 7607 objdir=$lt_cv_objdir 7608 7609 7610 7611 7612 7613 cat >>confdefs.h <<_ACEOF 7614 #define LT_OBJDIR "$lt_cv_objdir/" 7615 _ACEOF 7616 7617 7618 7619 7620 case $host_os in 7621 aix3*) 7622 # AIX sometimes has problems with the GCC collect2 program. For some 7623 # reason, if we set the COLLECT_NAMES environment variable, the problems 7624 # vanish in a puff of smoke. 7625 if test "X${COLLECT_NAMES+set}" != Xset; then 7626 COLLECT_NAMES= 7627 export COLLECT_NAMES 7628 fi 7629 ;; 7630 esac 7631 7632 # Global variables: 7633 ofile=libtool 7634 can_build_shared=yes 7635 7636 # All known linkers require a `.a' archive for static linking (except MSVC, 7637 # which needs '.lib'). 7638 libext=a 7639 7640 with_gnu_ld="$lt_cv_prog_gnu_ld" 7641 7642 old_CC="$CC" 7643 old_CFLAGS="$CFLAGS" 7644 7645 # Set sane defaults for various variables 7646 test -z "$CC" && CC=cc 7647 test -z "$LTCC" && LTCC=$CC 7648 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7649 test -z "$LD" && LD=ld 7650 test -z "$ac_objext" && ac_objext=o 7651 7652 for cc_temp in $compiler""; do 7653 case $cc_temp in 7654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7656 \-*) ;; 7657 *) break;; 7658 esac 7659 done 7660 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7661 7662 7663 # Only perform the check for file, if the check method requires it 7664 test -z "$MAGIC_CMD" && MAGIC_CMD=file 7665 case $deplibs_check_method in 7666 file_magic*) 7667 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7669 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7670 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672 else 7673 case $MAGIC_CMD in 7674 [\\/*] | ?:[\\/]*) 7675 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7676 ;; 7677 *) 7678 lt_save_MAGIC_CMD="$MAGIC_CMD" 7679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7680 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7681 for ac_dir in $ac_dummy; do 7682 IFS="$lt_save_ifs" 7683 test -z "$ac_dir" && ac_dir=. 7684 if test -f $ac_dir/${ac_tool_prefix}file; then 7685 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7686 if test -n "$file_magic_test_file"; then 7687 case $deplibs_check_method in 7688 "file_magic "*) 7689 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7690 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7691 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7692 $EGREP "$file_magic_regex" > /dev/null; then 7693 : 7694 else 7695 cat <<_LT_EOF 1>&2 7696 7697 *** Warning: the command libtool uses to detect shared libraries, 7698 *** $file_magic_cmd, produces output that libtool cannot recognize. 7699 *** The result is that libtool may fail to recognize shared libraries 7700 *** as such. This will affect the creation of libtool libraries that 7701 *** depend on shared libraries, but programs linked with such libtool 7702 *** libraries will work regardless of this problem. Nevertheless, you 7703 *** may want to report the problem to your system manager and/or to 7704 *** bug-libtool@gnu.org 7705 7706 _LT_EOF 7707 fi ;; 7708 esac 7709 fi 7710 break 7711 fi 7712 done 7713 IFS="$lt_save_ifs" 7714 MAGIC_CMD="$lt_save_MAGIC_CMD" 7715 ;; 7716 esac 7717 fi 7718 7719 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7720 if test -n "$MAGIC_CMD"; then 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7722 $as_echo "$MAGIC_CMD" >&6; } 7723 else 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7725 $as_echo "no" >&6; } 7726 fi 7727 7728 7729 7730 7731 7732 if test -z "$lt_cv_path_MAGIC_CMD"; then 7733 if test -n "$ac_tool_prefix"; then 7734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7735 $as_echo_n "checking for file... " >&6; } 7736 if ${lt_cv_path_MAGIC_CMD+:} false; then : 7737 $as_echo_n "(cached) " >&6 7738 else 7739 case $MAGIC_CMD in 7740 [\\/*] | ?:[\\/]*) 7741 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7742 ;; 7743 *) 7744 lt_save_MAGIC_CMD="$MAGIC_CMD" 7745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7746 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7747 for ac_dir in $ac_dummy; do 7748 IFS="$lt_save_ifs" 7749 test -z "$ac_dir" && ac_dir=. 7750 if test -f $ac_dir/file; then 7751 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7752 if test -n "$file_magic_test_file"; then 7753 case $deplibs_check_method in 7754 "file_magic "*) 7755 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7757 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7758 $EGREP "$file_magic_regex" > /dev/null; then 7759 : 7760 else 7761 cat <<_LT_EOF 1>&2 7762 7763 *** Warning: the command libtool uses to detect shared libraries, 7764 *** $file_magic_cmd, produces output that libtool cannot recognize. 7765 *** The result is that libtool may fail to recognize shared libraries 7766 *** as such. This will affect the creation of libtool libraries that 7767 *** depend on shared libraries, but programs linked with such libtool 7768 *** libraries will work regardless of this problem. Nevertheless, you 7769 *** may want to report the problem to your system manager and/or to 7770 *** bug-libtool@gnu.org 7771 7772 _LT_EOF 7773 fi ;; 7774 esac 7775 fi 7776 break 7777 fi 7778 done 7779 IFS="$lt_save_ifs" 7780 MAGIC_CMD="$lt_save_MAGIC_CMD" 7781 ;; 7782 esac 7783 fi 7784 7785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7786 if test -n "$MAGIC_CMD"; then 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7788 $as_echo "$MAGIC_CMD" >&6; } 7789 else 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7791 $as_echo "no" >&6; } 7792 fi 7793 7794 7795 else 7796 MAGIC_CMD=: 7797 fi 7798 fi 7799 7800 fi 7801 ;; 7802 esac 7803 7804 # Use C for the default configuration in the libtool script 7805 7806 lt_save_CC="$CC" 7807 ac_ext=c 7808 ac_cpp='$CPP $CPPFLAGS' 7809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7811 ac_compiler_gnu=$ac_cv_c_compiler_gnu 7812 7813 7814 # Source file extension for C test sources. 7815 ac_ext=c 7816 7817 # Object file extension for compiled C test sources. 7818 objext=o 7819 objext=$objext 7820 7821 # Code to be used in simple compile tests 7822 lt_simple_compile_test_code="int some_variable = 0;" 7823 7824 # Code to be used in simple link tests 7825 lt_simple_link_test_code='int main(){return(0);}' 7826 7827 7828 7829 7830 7831 7832 7833 # If no C compiler was specified, use CC. 7834 LTCC=${LTCC-"$CC"} 7835 7836 # If no C compiler flags were specified, use CFLAGS. 7837 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7838 7839 # Allow CC to be a program name with arguments. 7840 compiler=$CC 7841 7842 # Save the default compiler, since it gets overwritten when the other 7843 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7844 compiler_DEFAULT=$CC 7845 7846 # save warnings/boilerplate of simple test code 7847 ac_outfile=conftest.$ac_objext 7848 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7849 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7850 _lt_compiler_boilerplate=`cat conftest.err` 7851 $RM conftest* 7852 7853 ac_outfile=conftest.$ac_objext 7854 echo "$lt_simple_link_test_code" >conftest.$ac_ext 7855 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7856 _lt_linker_boilerplate=`cat conftest.err` 7857 $RM -r conftest* 7858 7859 7860 ## CAVEAT EMPTOR: 7861 ## There is no encapsulation within the following macros, do not change 7862 ## the running order or otherwise move them around unless you know exactly 7863 ## what you are doing... 7864 if test -n "$compiler"; then 7865 7866 lt_prog_compiler_no_builtin_flag= 7867 7868 if test "$GCC" = yes; then 7869 case $cc_basename in 7870 nvcc*) 7871 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7872 *) 7873 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7874 esac 7875 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7877 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7878 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7879 $as_echo_n "(cached) " >&6 7880 else 7881 lt_cv_prog_compiler_rtti_exceptions=no 7882 ac_outfile=conftest.$ac_objext 7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7884 lt_compiler_flag="-fno-rtti -fno-exceptions" 7885 # Insert the option either (1) after the last *FLAGS variable, or 7886 # (2) before a word containing "conftest.", or (3) at the end. 7887 # Note that $ac_compile itself does not contain backslashes and begins 7888 # with a dollar sign (not a hyphen), so the echo should work correctly. 7889 # The option is referenced via a variable to avoid confusing sed. 7890 lt_compile=`echo "$ac_compile" | $SED \ 7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7893 -e 's:$: $lt_compiler_flag:'` 7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7895 (eval "$lt_compile" 2>conftest.err) 7896 ac_status=$? 7897 cat conftest.err >&5 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 if (exit $ac_status) && test -s "$ac_outfile"; then 7900 # The compiler can only warn and ignore the option if not recognized 7901 # So say no if there are warnings other than the usual output. 7902 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7903 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7904 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7905 lt_cv_prog_compiler_rtti_exceptions=yes 7906 fi 7907 fi 7908 $RM conftest* 7909 7910 fi 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7913 7914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7915 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7916 else 7917 : 7918 fi 7919 7920 fi 7921 7922 7923 7924 7925 7926 7927 lt_prog_compiler_wl= 7928 lt_prog_compiler_pic= 7929 lt_prog_compiler_static= 7930 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7932 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7933 7934 if test "$GCC" = yes; then 7935 lt_prog_compiler_wl='-Wl,' 7936 lt_prog_compiler_static='-static' 7937 7938 case $host_os in 7939 aix*) 7940 # All AIX code is PIC. 7941 if test "$host_cpu" = ia64; then 7942 # AIX 5 now supports IA64 processor 7943 lt_prog_compiler_static='-Bstatic' 7944 fi 7945 lt_prog_compiler_pic='-fPIC' 7946 ;; 7947 7948 amigaos*) 7949 case $host_cpu in 7950 powerpc) 7951 # see comment about AmigaOS4 .so support 7952 lt_prog_compiler_pic='-fPIC' 7953 ;; 7954 m68k) 7955 # FIXME: we need at least 68020 code to build shared libraries, but 7956 # adding the `-m68020' flag to GCC prevents building anything better, 7957 # like `-m68040'. 7958 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7959 ;; 7960 esac 7961 ;; 7962 7963 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7964 # PIC is the default for these OSes. 7965 ;; 7966 7967 mingw* | cygwin* | pw32* | os2* | cegcc*) 7968 # This hack is so that the source file can tell whether it is being 7969 # built for inclusion in a dll (and should export symbols for example). 7970 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7971 # (--disable-auto-import) libraries 7972 lt_prog_compiler_pic='-DDLL_EXPORT' 7973 ;; 7974 7975 darwin* | rhapsody*) 7976 # PIC is the default on this platform 7977 # Common symbols not allowed in MH_DYLIB files 7978 lt_prog_compiler_pic='-fno-common' 7979 ;; 7980 7981 haiku*) 7982 # PIC is the default for Haiku. 7983 # The "-static" flag exists, but is broken. 7984 lt_prog_compiler_static= 7985 ;; 7986 7987 hpux*) 7988 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7989 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7990 # sets the default TLS model and affects inlining. 7991 case $host_cpu in 7992 hppa*64*) 7993 # +Z the default 7994 ;; 7995 *) 7996 lt_prog_compiler_pic='-fPIC' 7997 ;; 7998 esac 7999 ;; 8000 8001 interix[3-9]*) 8002 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8003 # Instead, we relocate shared libraries at runtime. 8004 ;; 8005 8006 msdosdjgpp*) 8007 # Just because we use GCC doesn't mean we suddenly get shared libraries 8008 # on systems that don't support them. 8009 lt_prog_compiler_can_build_shared=no 8010 enable_shared=no 8011 ;; 8012 8013 *nto* | *qnx*) 8014 # QNX uses GNU C++, but need to define -shared option too, otherwise 8015 # it will coredump. 8016 lt_prog_compiler_pic='-fPIC -shared' 8017 ;; 8018 8019 sysv4*MP*) 8020 if test -d /usr/nec; then 8021 lt_prog_compiler_pic=-Kconform_pic 8022 fi 8023 ;; 8024 8025 *) 8026 lt_prog_compiler_pic='-fPIC' 8027 ;; 8028 esac 8029 8030 case $cc_basename in 8031 nvcc*) # Cuda Compiler Driver 2.2 8032 lt_prog_compiler_wl='-Xlinker ' 8033 lt_prog_compiler_pic='-Xcompiler -fPIC' 8034 ;; 8035 esac 8036 else 8037 # PORTME Check for flag to pass linker flags through the system compiler. 8038 case $host_os in 8039 aix*) 8040 lt_prog_compiler_wl='-Wl,' 8041 if test "$host_cpu" = ia64; then 8042 # AIX 5 now supports IA64 processor 8043 lt_prog_compiler_static='-Bstatic' 8044 else 8045 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8046 fi 8047 ;; 8048 8049 mingw* | cygwin* | pw32* | os2* | cegcc*) 8050 # This hack is so that the source file can tell whether it is being 8051 # built for inclusion in a dll (and should export symbols for example). 8052 lt_prog_compiler_pic='-DDLL_EXPORT' 8053 ;; 8054 8055 hpux9* | hpux10* | hpux11*) 8056 lt_prog_compiler_wl='-Wl,' 8057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8058 # not for PA HP-UX. 8059 case $host_cpu in 8060 hppa*64*|ia64*) 8061 # +Z the default 8062 ;; 8063 *) 8064 lt_prog_compiler_pic='+Z' 8065 ;; 8066 esac 8067 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8068 lt_prog_compiler_static='${wl}-a ${wl}archive' 8069 ;; 8070 8071 irix5* | irix6* | nonstopux*) 8072 lt_prog_compiler_wl='-Wl,' 8073 # PIC (with -KPIC) is the default. 8074 lt_prog_compiler_static='-non_shared' 8075 ;; 8076 8077 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8078 case $cc_basename in 8079 # old Intel for x86_64 which still supported -KPIC. 8080 ecc*) 8081 lt_prog_compiler_wl='-Wl,' 8082 lt_prog_compiler_pic='-KPIC' 8083 lt_prog_compiler_static='-static' 8084 ;; 8085 # icc used to be incompatible with GCC. 8086 # ICC 10 doesn't accept -KPIC any more. 8087 icc* | ifort*) 8088 lt_prog_compiler_wl='-Wl,' 8089 lt_prog_compiler_pic='-fPIC' 8090 lt_prog_compiler_static='-static' 8091 ;; 8092 # Lahey Fortran 8.1. 8093 lf95*) 8094 lt_prog_compiler_wl='-Wl,' 8095 lt_prog_compiler_pic='--shared' 8096 lt_prog_compiler_static='--static' 8097 ;; 8098 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8099 # Portland Group compilers (*not* the Pentium gcc compiler, 8100 # which looks to be a dead project) 8101 lt_prog_compiler_wl='-Wl,' 8102 lt_prog_compiler_pic='-fpic' 8103 lt_prog_compiler_static='-Bstatic' 8104 ;; 8105 ccc*) 8106 lt_prog_compiler_wl='-Wl,' 8107 # All Alpha code is PIC. 8108 lt_prog_compiler_static='-non_shared' 8109 ;; 8110 xl* | bgxl* | bgf* | mpixl*) 8111 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8112 lt_prog_compiler_wl='-Wl,' 8113 lt_prog_compiler_pic='-qpic' 8114 lt_prog_compiler_static='-qstaticlink' 8115 ;; 8116 *) 8117 case `$CC -V 2>&1 | sed 5q` in 8118 *Sun\ F* | *Sun*Fortran*) 8119 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8120 lt_prog_compiler_pic='-KPIC' 8121 lt_prog_compiler_static='-Bstatic' 8122 lt_prog_compiler_wl='' 8123 ;; 8124 *Sun\ C*) 8125 # Sun C 5.9 8126 lt_prog_compiler_pic='-KPIC' 8127 lt_prog_compiler_static='-Bstatic' 8128 lt_prog_compiler_wl='-Wl,' 8129 ;; 8130 esac 8131 ;; 8132 esac 8133 ;; 8134 8135 newsos6) 8136 lt_prog_compiler_pic='-KPIC' 8137 lt_prog_compiler_static='-Bstatic' 8138 ;; 8139 8140 *nto* | *qnx*) 8141 # QNX uses GNU C++, but need to define -shared option too, otherwise 8142 # it will coredump. 8143 lt_prog_compiler_pic='-fPIC -shared' 8144 ;; 8145 8146 osf3* | osf4* | osf5*) 8147 lt_prog_compiler_wl='-Wl,' 8148 # All OSF/1 code is PIC. 8149 lt_prog_compiler_static='-non_shared' 8150 ;; 8151 8152 rdos*) 8153 lt_prog_compiler_static='-non_shared' 8154 ;; 8155 8156 solaris*) 8157 lt_prog_compiler_pic='-KPIC' 8158 lt_prog_compiler_static='-Bstatic' 8159 case $cc_basename in 8160 f77* | f90* | f95*) 8161 lt_prog_compiler_wl='-Qoption ld ';; 8162 *) 8163 lt_prog_compiler_wl='-Wl,';; 8164 esac 8165 ;; 8166 8167 sunos4*) 8168 lt_prog_compiler_wl='-Qoption ld ' 8169 lt_prog_compiler_pic='-PIC' 8170 lt_prog_compiler_static='-Bstatic' 8171 ;; 8172 8173 sysv4 | sysv4.2uw2* | sysv4.3*) 8174 lt_prog_compiler_wl='-Wl,' 8175 lt_prog_compiler_pic='-KPIC' 8176 lt_prog_compiler_static='-Bstatic' 8177 ;; 8178 8179 sysv4*MP*) 8180 if test -d /usr/nec ;then 8181 lt_prog_compiler_pic='-Kconform_pic' 8182 lt_prog_compiler_static='-Bstatic' 8183 fi 8184 ;; 8185 8186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8187 lt_prog_compiler_wl='-Wl,' 8188 lt_prog_compiler_pic='-KPIC' 8189 lt_prog_compiler_static='-Bstatic' 8190 ;; 8191 8192 unicos*) 8193 lt_prog_compiler_wl='-Wl,' 8194 lt_prog_compiler_can_build_shared=no 8195 ;; 8196 8197 uts4*) 8198 lt_prog_compiler_pic='-pic' 8199 lt_prog_compiler_static='-Bstatic' 8200 ;; 8201 8202 *) 8203 lt_prog_compiler_can_build_shared=no 8204 ;; 8205 esac 8206 fi 8207 8208 case $host_os in 8209 # For platforms which do not support PIC, -DPIC is meaningless: 8210 *djgpp*) 8211 lt_prog_compiler_pic= 8212 ;; 8213 *) 8214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8215 ;; 8216 esac 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8218 $as_echo "$lt_prog_compiler_pic" >&6; } 8219 8220 8221 8222 8223 8224 8225 # 8226 # Check to make sure the PIC flag actually works. 8227 # 8228 if test -n "$lt_prog_compiler_pic"; then 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8230 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8231 if ${lt_cv_prog_compiler_pic_works+:} false; then : 8232 $as_echo_n "(cached) " >&6 8233 else 8234 lt_cv_prog_compiler_pic_works=no 8235 ac_outfile=conftest.$ac_objext 8236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8237 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8238 # Insert the option either (1) after the last *FLAGS variable, or 8239 # (2) before a word containing "conftest.", or (3) at the end. 8240 # Note that $ac_compile itself does not contain backslashes and begins 8241 # with a dollar sign (not a hyphen), so the echo should work correctly. 8242 # The option is referenced via a variable to avoid confusing sed. 8243 lt_compile=`echo "$ac_compile" | $SED \ 8244 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8245 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8246 -e 's:$: $lt_compiler_flag:'` 8247 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8248 (eval "$lt_compile" 2>conftest.err) 8249 ac_status=$? 8250 cat conftest.err >&5 8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8252 if (exit $ac_status) && test -s "$ac_outfile"; then 8253 # The compiler can only warn and ignore the option if not recognized 8254 # So say no if there are warnings other than the usual output. 8255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8257 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8258 lt_cv_prog_compiler_pic_works=yes 8259 fi 8260 fi 8261 $RM conftest* 8262 8263 fi 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8265 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8266 8267 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8268 case $lt_prog_compiler_pic in 8269 "" | " "*) ;; 8270 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8271 esac 8272 else 8273 lt_prog_compiler_pic= 8274 lt_prog_compiler_can_build_shared=no 8275 fi 8276 8277 fi 8278 8279 8280 8281 8282 8283 8284 # 8285 # Check to make sure the static flag actually works. 8286 # 8287 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8289 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8290 if ${lt_cv_prog_compiler_static_works+:} false; then : 8291 $as_echo_n "(cached) " >&6 8292 else 8293 lt_cv_prog_compiler_static_works=no 8294 save_LDFLAGS="$LDFLAGS" 8295 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8296 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8297 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8298 # The linker can only warn and ignore the option if not recognized 8299 # So say no if there are warnings 8300 if test -s conftest.err; then 8301 # Append any errors to the config.log. 8302 cat conftest.err 1>&5 8303 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8305 if diff conftest.exp conftest.er2 >/dev/null; then 8306 lt_cv_prog_compiler_static_works=yes 8307 fi 8308 else 8309 lt_cv_prog_compiler_static_works=yes 8310 fi 8311 fi 8312 $RM -r conftest* 8313 LDFLAGS="$save_LDFLAGS" 8314 8315 fi 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8317 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8318 8319 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8320 : 8321 else 8322 lt_prog_compiler_static= 8323 fi 8324 8325 8326 8327 8328 8329 8330 8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8332 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8333 if ${lt_cv_prog_compiler_c_o+:} false; then : 8334 $as_echo_n "(cached) " >&6 8335 else 8336 lt_cv_prog_compiler_c_o=no 8337 $RM -r conftest 2>/dev/null 8338 mkdir conftest 8339 cd conftest 8340 mkdir out 8341 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8342 8343 lt_compiler_flag="-o out/conftest2.$ac_objext" 8344 # Insert the option either (1) after the last *FLAGS variable, or 8345 # (2) before a word containing "conftest.", or (3) at the end. 8346 # Note that $ac_compile itself does not contain backslashes and begins 8347 # with a dollar sign (not a hyphen), so the echo should work correctly. 8348 lt_compile=`echo "$ac_compile" | $SED \ 8349 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8350 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8351 -e 's:$: $lt_compiler_flag:'` 8352 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8353 (eval "$lt_compile" 2>out/conftest.err) 8354 ac_status=$? 8355 cat out/conftest.err >&5 8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8357 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8358 then 8359 # The compiler can only warn and ignore the option if not recognized 8360 # So say no if there are warnings 8361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8362 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8363 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8364 lt_cv_prog_compiler_c_o=yes 8365 fi 8366 fi 8367 chmod u+w . 2>&5 8368 $RM conftest* 8369 # SGI C++ compiler will create directory out/ii_files/ for 8370 # template instantiation 8371 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8372 $RM out/* && rmdir out 8373 cd .. 8374 $RM -r conftest 8375 $RM conftest* 8376 8377 fi 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8379 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8380 8381 8382 8383 8384 8385 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8387 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8388 if ${lt_cv_prog_compiler_c_o+:} false; then : 8389 $as_echo_n "(cached) " >&6 8390 else 8391 lt_cv_prog_compiler_c_o=no 8392 $RM -r conftest 2>/dev/null 8393 mkdir conftest 8394 cd conftest 8395 mkdir out 8396 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8397 8398 lt_compiler_flag="-o out/conftest2.$ac_objext" 8399 # Insert the option either (1) after the last *FLAGS variable, or 8400 # (2) before a word containing "conftest.", or (3) at the end. 8401 # Note that $ac_compile itself does not contain backslashes and begins 8402 # with a dollar sign (not a hyphen), so the echo should work correctly. 8403 lt_compile=`echo "$ac_compile" | $SED \ 8404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8406 -e 's:$: $lt_compiler_flag:'` 8407 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8408 (eval "$lt_compile" 2>out/conftest.err) 8409 ac_status=$? 8410 cat out/conftest.err >&5 8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8412 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8413 then 8414 # The compiler can only warn and ignore the option if not recognized 8415 # So say no if there are warnings 8416 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8419 lt_cv_prog_compiler_c_o=yes 8420 fi 8421 fi 8422 chmod u+w . 2>&5 8423 $RM conftest* 8424 # SGI C++ compiler will create directory out/ii_files/ for 8425 # template instantiation 8426 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8427 $RM out/* && rmdir out 8428 cd .. 8429 $RM -r conftest 8430 $RM conftest* 8431 8432 fi 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8434 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8435 8436 8437 8438 8439 hard_links="nottested" 8440 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8441 # do not overwrite the value of need_locks provided by the user 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8443 $as_echo_n "checking if we can lock with hard links... " >&6; } 8444 hard_links=yes 8445 $RM conftest* 8446 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8447 touch conftest.a 8448 ln conftest.a conftest.b 2>&5 || hard_links=no 8449 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8451 $as_echo "$hard_links" >&6; } 8452 if test "$hard_links" = no; then 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8454 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8455 need_locks=warn 8456 fi 8457 else 8458 need_locks=no 8459 fi 8460 8461 8462 8463 8464 8465 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8468 8469 runpath_var= 8470 allow_undefined_flag= 8471 always_export_symbols=no 8472 archive_cmds= 8473 archive_expsym_cmds= 8474 compiler_needs_object=no 8475 enable_shared_with_static_runtimes=no 8476 export_dynamic_flag_spec= 8477 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8478 hardcode_automatic=no 8479 hardcode_direct=no 8480 hardcode_direct_absolute=no 8481 hardcode_libdir_flag_spec= 8482 hardcode_libdir_flag_spec_ld= 8483 hardcode_libdir_separator= 8484 hardcode_minus_L=no 8485 hardcode_shlibpath_var=unsupported 8486 inherit_rpath=no 8487 link_all_deplibs=unknown 8488 module_cmds= 8489 module_expsym_cmds= 8490 old_archive_from_new_cmds= 8491 old_archive_from_expsyms_cmds= 8492 thread_safe_flag_spec= 8493 whole_archive_flag_spec= 8494 # include_expsyms should be a list of space-separated symbols to be *always* 8495 # included in the symbol list 8496 include_expsyms= 8497 # exclude_expsyms can be an extended regexp of symbols to exclude 8498 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8499 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8500 # as well as any symbol that contains `d'. 8501 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8502 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8503 # platforms (ab)use it in PIC code, but their linkers get confused if 8504 # the symbol is explicitly referenced. Since portable code cannot 8505 # rely on this symbol name, it's probably fine to never include it in 8506 # preloaded symbol tables. 8507 # Exclude shared library initialization/finalization symbols. 8508 extract_expsyms_cmds= 8509 8510 case $host_os in 8511 cygwin* | mingw* | pw32* | cegcc*) 8512 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8513 # When not using gcc, we currently assume that we are using 8514 # Microsoft Visual C++. 8515 if test "$GCC" != yes; then 8516 with_gnu_ld=no 8517 fi 8518 ;; 8519 interix*) 8520 # we just hope/assume this is gcc and not c89 (= MSVC++) 8521 with_gnu_ld=yes 8522 ;; 8523 openbsd*) 8524 with_gnu_ld=no 8525 ;; 8526 esac 8527 8528 ld_shlibs=yes 8529 8530 # On some targets, GNU ld is compatible enough with the native linker 8531 # that we're better off using the native interface for both. 8532 lt_use_gnu_ld_interface=no 8533 if test "$with_gnu_ld" = yes; then 8534 case $host_os in 8535 aix*) 8536 # The AIX port of GNU ld has always aspired to compatibility 8537 # with the native linker. However, as the warning in the GNU ld 8538 # block says, versions before 2.19.5* couldn't really create working 8539 # shared libraries, regardless of the interface used. 8540 case `$LD -v 2>&1` in 8541 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8542 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8543 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8544 *) 8545 lt_use_gnu_ld_interface=yes 8546 ;; 8547 esac 8548 ;; 8549 *) 8550 lt_use_gnu_ld_interface=yes 8551 ;; 8552 esac 8553 fi 8554 8555 if test "$lt_use_gnu_ld_interface" = yes; then 8556 # If archive_cmds runs LD, not CC, wlarc should be empty 8557 wlarc='${wl}' 8558 8559 # Set some defaults for GNU ld with shared library support. These 8560 # are reset later if shared libraries are not supported. Putting them 8561 # here allows them to be overridden if necessary. 8562 runpath_var=LD_RUN_PATH 8563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8564 export_dynamic_flag_spec='${wl}--export-dynamic' 8565 # ancient GNU ld didn't support --whole-archive et. al. 8566 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8567 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8568 else 8569 whole_archive_flag_spec= 8570 fi 8571 supports_anon_versioning=no 8572 case `$LD -v 2>&1` in 8573 *GNU\ gold*) supports_anon_versioning=yes ;; 8574 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8575 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8576 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8577 *\ 2.11.*) ;; # other 2.11 versions 8578 *) supports_anon_versioning=yes ;; 8579 esac 8580 8581 # See if GNU ld supports shared libraries. 8582 case $host_os in 8583 aix[3-9]*) 8584 # On AIX/PPC, the GNU linker is very broken 8585 if test "$host_cpu" != ia64; then 8586 ld_shlibs=no 8587 cat <<_LT_EOF 1>&2 8588 8589 *** Warning: the GNU linker, at least up to release 2.19, is reported 8590 *** to be unable to reliably create shared libraries on AIX. 8591 *** Therefore, libtool is disabling shared libraries support. If you 8592 *** really care for shared libraries, you may want to install binutils 8593 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8594 *** You will then need to restart the configuration process. 8595 8596 _LT_EOF 8597 fi 8598 ;; 8599 8600 amigaos*) 8601 case $host_cpu in 8602 powerpc) 8603 # see comment about AmigaOS4 .so support 8604 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8605 archive_expsym_cmds='' 8606 ;; 8607 m68k) 8608 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)' 8609 hardcode_libdir_flag_spec='-L$libdir' 8610 hardcode_minus_L=yes 8611 ;; 8612 esac 8613 ;; 8614 8615 beos*) 8616 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8617 allow_undefined_flag=unsupported 8618 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 8619 # support --undefined. This deserves some investigation. FIXME 8620 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8621 else 8622 ld_shlibs=no 8623 fi 8624 ;; 8625 8626 cygwin* | mingw* | pw32* | cegcc*) 8627 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8628 # as there is no search path for DLLs. 8629 hardcode_libdir_flag_spec='-L$libdir' 8630 export_dynamic_flag_spec='${wl}--export-all-symbols' 8631 allow_undefined_flag=unsupported 8632 always_export_symbols=no 8633 enable_shared_with_static_runtimes=yes 8634 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8635 8636 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8638 # If the export-symbols file already is a .def file (1st line 8639 # is EXPORTS), use it as is; otherwise, prepend... 8640 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8641 cp $export_symbols $output_objdir/$soname.def; 8642 else 8643 echo EXPORTS > $output_objdir/$soname.def; 8644 cat $export_symbols >> $output_objdir/$soname.def; 8645 fi~ 8646 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8647 else 8648 ld_shlibs=no 8649 fi 8650 ;; 8651 8652 haiku*) 8653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8654 link_all_deplibs=yes 8655 ;; 8656 8657 interix[3-9]*) 8658 hardcode_direct=no 8659 hardcode_shlibpath_var=no 8660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8661 export_dynamic_flag_spec='${wl}-E' 8662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8663 # Instead, shared libraries are loaded at an image base (0x10000000 by 8664 # default) and relocated if they conflict, which is a slow very memory 8665 # consuming and fragmenting process. To avoid this, we pick a random, 8666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8667 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8669 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' 8670 ;; 8671 8672 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8673 tmp_diet=no 8674 if test "$host_os" = linux-dietlibc; then 8675 case $cc_basename in 8676 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8677 esac 8678 fi 8679 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8680 && test "$tmp_diet" = no 8681 then 8682 tmp_addflag=' $pic_flag' 8683 tmp_sharedflag='-shared' 8684 case $cc_basename,$host_cpu in 8685 pgcc*) # Portland Group C compiler 8686 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' 8687 tmp_addflag=' $pic_flag' 8688 ;; 8689 pgf77* | pgf90* | pgf95* | pgfortran*) 8690 # Portland Group f77 and f90 compilers 8691 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' 8692 tmp_addflag=' $pic_flag -Mnomain' ;; 8693 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8694 tmp_addflag=' -i_dynamic' ;; 8695 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8696 tmp_addflag=' -i_dynamic -nofor_main' ;; 8697 ifc* | ifort*) # Intel Fortran compiler 8698 tmp_addflag=' -nofor_main' ;; 8699 lf95*) # Lahey Fortran 8.1 8700 whole_archive_flag_spec= 8701 tmp_sharedflag='--shared' ;; 8702 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8703 tmp_sharedflag='-qmkshrobj' 8704 tmp_addflag= ;; 8705 nvcc*) # Cuda Compiler Driver 2.2 8706 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' 8707 compiler_needs_object=yes 8708 ;; 8709 esac 8710 case `$CC -V 2>&1 | sed 5q` in 8711 *Sun\ C*) # Sun C 5.9 8712 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' 8713 compiler_needs_object=yes 8714 tmp_sharedflag='-G' ;; 8715 *Sun\ F*) # Sun Fortran 8.3 8716 tmp_sharedflag='-G' ;; 8717 esac 8718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8719 8720 if test "x$supports_anon_versioning" = xyes; then 8721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8722 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8723 echo "local: *; };" >> $output_objdir/$libname.ver~ 8724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8725 fi 8726 8727 case $cc_basename in 8728 xlf* | bgf* | bgxlf* | mpixlf*) 8729 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8730 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8731 hardcode_libdir_flag_spec= 8732 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8733 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8734 if test "x$supports_anon_versioning" = xyes; then 8735 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8737 echo "local: *; };" >> $output_objdir/$libname.ver~ 8738 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8739 fi 8740 ;; 8741 esac 8742 else 8743 ld_shlibs=no 8744 fi 8745 ;; 8746 8747 netbsd*) 8748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8749 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8750 wlarc= 8751 else 8752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8753 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8754 fi 8755 ;; 8756 8757 solaris*) 8758 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8759 ld_shlibs=no 8760 cat <<_LT_EOF 1>&2 8761 8762 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 8763 *** create shared libraries on Solaris systems. Therefore, libtool 8764 *** is disabling shared libraries support. We urge you to upgrade GNU 8765 *** binutils to release 2.9.1 or newer. Another option is to modify 8766 *** your PATH or compiler configuration so that the native linker is 8767 *** used, and then restart. 8768 8769 _LT_EOF 8770 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8773 else 8774 ld_shlibs=no 8775 fi 8776 ;; 8777 8778 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8779 case `$LD -v 2>&1` in 8780 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8781 ld_shlibs=no 8782 cat <<_LT_EOF 1>&2 8783 8784 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8785 *** reliably create shared libraries on SCO systems. Therefore, libtool 8786 *** is disabling shared libraries support. We urge you to upgrade GNU 8787 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8788 *** your PATH or compiler configuration so that the native linker is 8789 *** used, and then restart. 8790 8791 _LT_EOF 8792 ;; 8793 *) 8794 # For security reasons, it is highly recommended that you always 8795 # use absolute paths for naming shared libraries, and exclude the 8796 # DT_RUNPATH tag from executables and libraries. But doing so 8797 # requires that you compile everything twice, which is a pain. 8798 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8799 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8802 else 8803 ld_shlibs=no 8804 fi 8805 ;; 8806 esac 8807 ;; 8808 8809 sunos4*) 8810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8811 wlarc= 8812 hardcode_direct=yes 8813 hardcode_shlibpath_var=no 8814 ;; 8815 8816 *) 8817 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8819 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8820 else 8821 ld_shlibs=no 8822 fi 8823 ;; 8824 esac 8825 8826 if test "$ld_shlibs" = no; then 8827 runpath_var= 8828 hardcode_libdir_flag_spec= 8829 export_dynamic_flag_spec= 8830 whole_archive_flag_spec= 8831 fi 8832 else 8833 # PORTME fill in a description of your system's linker (not GNU ld) 8834 case $host_os in 8835 aix3*) 8836 allow_undefined_flag=unsupported 8837 always_export_symbols=yes 8838 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' 8839 # Note: this linker hardcodes the directories in LIBPATH if there 8840 # are no directories specified by -L. 8841 hardcode_minus_L=yes 8842 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8843 # Neither direct hardcoding nor static linking is supported with a 8844 # broken collect2. 8845 hardcode_direct=unsupported 8846 fi 8847 ;; 8848 8849 aix[4-9]*) 8850 if test "$host_cpu" = ia64; then 8851 # On IA64, the linker does run time linking by default, so we don't 8852 # have to do anything special. 8853 aix_use_runtimelinking=no 8854 exp_sym_flag='-Bexport' 8855 no_entry_flag="" 8856 else 8857 # If we're using GNU nm, then we don't want the "-C" option. 8858 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8859 # Also, AIX nm treats weak defined symbols like other global 8860 # defined symbols, whereas GNU nm marks them as "W". 8861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8862 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' 8863 else 8864 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' 8865 fi 8866 aix_use_runtimelinking=no 8867 8868 # Test if we are trying to use run time linking or normal 8869 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8870 # need to do runtime linking. 8871 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8872 for ld_flag in $LDFLAGS; do 8873 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8874 aix_use_runtimelinking=yes 8875 break 8876 fi 8877 done 8878 ;; 8879 esac 8880 8881 exp_sym_flag='-bexport' 8882 no_entry_flag='-bnoentry' 8883 fi 8884 8885 # When large executables or shared objects are built, AIX ld can 8886 # have problems creating the table of contents. If linking a library 8887 # or program results in "error TOC overflow" add -mminimal-toc to 8888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8890 8891 archive_cmds='' 8892 hardcode_direct=yes 8893 hardcode_direct_absolute=yes 8894 hardcode_libdir_separator=':' 8895 link_all_deplibs=yes 8896 file_list_spec='${wl}-f,' 8897 8898 if test "$GCC" = yes; then 8899 case $host_os in aix4.[012]|aix4.[012].*) 8900 # We only want to do this on AIX 4.2 and lower, the check 8901 # below for broken collect2 doesn't work under 4.3+ 8902 collect2name=`${CC} -print-prog-name=collect2` 8903 if test -f "$collect2name" && 8904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8905 then 8906 # We have reworked collect2 8907 : 8908 else 8909 # We have old collect2 8910 hardcode_direct=unsupported 8911 # It fails to find uninstalled libraries when the uninstalled 8912 # path is not listed in the libpath. Setting hardcode_minus_L 8913 # to unsupported forces relinking 8914 hardcode_minus_L=yes 8915 hardcode_libdir_flag_spec='-L$libdir' 8916 hardcode_libdir_separator= 8917 fi 8918 ;; 8919 esac 8920 shared_flag='-shared' 8921 if test "$aix_use_runtimelinking" = yes; then 8922 shared_flag="$shared_flag "'${wl}-G' 8923 fi 8924 else 8925 # not using gcc 8926 if test "$host_cpu" = ia64; then 8927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8928 # chokes on -Wl,-G. The following line is correct: 8929 shared_flag='-G' 8930 else 8931 if test "$aix_use_runtimelinking" = yes; then 8932 shared_flag='${wl}-G' 8933 else 8934 shared_flag='${wl}-bM:SRE' 8935 fi 8936 fi 8937 fi 8938 8939 export_dynamic_flag_spec='${wl}-bexpall' 8940 # It seems that -bexpall does not export symbols beginning with 8941 # underscore (_), so it is better to generate a list of symbols to export. 8942 always_export_symbols=yes 8943 if test "$aix_use_runtimelinking" = yes; then 8944 # Warning - without using the other runtime loading flags (-brtl), 8945 # -berok will link without error, but may produce a broken library. 8946 allow_undefined_flag='-berok' 8947 # Determine the default libpath from the value encoded in an 8948 # empty executable. 8949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8950 /* end confdefs.h. */ 8951 8952 int 8953 main () 8954 { 8955 8956 ; 8957 return 0; 8958 } 8959 _ACEOF 8960 if ac_fn_c_try_link "$LINENO"; then : 8961 8962 lt_aix_libpath_sed=' 8963 /Import File Strings/,/^$/ { 8964 /^0/ { 8965 s/^0 *\(.*\)$/\1/ 8966 p 8967 } 8968 }' 8969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8970 # Check for a 64-bit object if we didn't find anything. 8971 if test -z "$aix_libpath"; then 8972 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8973 fi 8974 fi 8975 rm -f core conftest.err conftest.$ac_objext \ 8976 conftest$ac_exeext conftest.$ac_ext 8977 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8978 8979 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8980 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" 8981 else 8982 if test "$host_cpu" = ia64; then 8983 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8984 allow_undefined_flag="-z nodefs" 8985 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" 8986 else 8987 # Determine the default libpath from the value encoded in an 8988 # empty executable. 8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8990 /* end confdefs.h. */ 8991 8992 int 8993 main () 8994 { 8995 8996 ; 8997 return 0; 8998 } 8999 _ACEOF 9000 if ac_fn_c_try_link "$LINENO"; then : 9001 9002 lt_aix_libpath_sed=' 9003 /Import File Strings/,/^$/ { 9004 /^0/ { 9005 s/^0 *\(.*\)$/\1/ 9006 p 9007 } 9008 }' 9009 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9010 # Check for a 64-bit object if we didn't find anything. 9011 if test -z "$aix_libpath"; then 9012 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9013 fi 9014 fi 9015 rm -f core conftest.err conftest.$ac_objext \ 9016 conftest$ac_exeext conftest.$ac_ext 9017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9018 9019 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9020 # Warning - without using the other run time loading flags, 9021 # -berok will link without error, but may produce a broken library. 9022 no_undefined_flag=' ${wl}-bernotok' 9023 allow_undefined_flag=' ${wl}-berok' 9024 if test "$with_gnu_ld" = yes; then 9025 # We only use this code for GNU lds that support --whole-archive. 9026 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9027 else 9028 # Exported symbols can be pulled into shared objects from archives 9029 whole_archive_flag_spec='$convenience' 9030 fi 9031 archive_cmds_need_lc=yes 9032 # This is similar to how AIX traditionally builds its shared libraries. 9033 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' 9034 fi 9035 fi 9036 ;; 9037 9038 amigaos*) 9039 case $host_cpu in 9040 powerpc) 9041 # see comment about AmigaOS4 .so support 9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9043 archive_expsym_cmds='' 9044 ;; 9045 m68k) 9046 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)' 9047 hardcode_libdir_flag_spec='-L$libdir' 9048 hardcode_minus_L=yes 9049 ;; 9050 esac 9051 ;; 9052 9053 bsdi[45]*) 9054 export_dynamic_flag_spec=-rdynamic 9055 ;; 9056 9057 cygwin* | mingw* | pw32* | cegcc*) 9058 # When not using gcc, we currently assume that we are using 9059 # Microsoft Visual C++. 9060 # hardcode_libdir_flag_spec is actually meaningless, as there is 9061 # no search path for DLLs. 9062 hardcode_libdir_flag_spec=' ' 9063 allow_undefined_flag=unsupported 9064 # Tell ltmain to make .lib files, not .a files. 9065 libext=lib 9066 # Tell ltmain to make .dll files, not .so files. 9067 shrext_cmds=".dll" 9068 # FIXME: Setting linknames here is a bad hack. 9069 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9070 # The linker will automatically build a .lib file if we build a DLL. 9071 old_archive_from_new_cmds='true' 9072 # FIXME: Should let the user specify the lib program. 9073 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9074 fix_srcfile_path='`cygpath -w "$srcfile"`' 9075 enable_shared_with_static_runtimes=yes 9076 ;; 9077 9078 darwin* | rhapsody*) 9079 9080 9081 archive_cmds_need_lc=no 9082 hardcode_direct=no 9083 hardcode_automatic=yes 9084 hardcode_shlibpath_var=unsupported 9085 if test "$lt_cv_ld_force_load" = "yes"; then 9086 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\"`' 9087 else 9088 whole_archive_flag_spec='' 9089 fi 9090 link_all_deplibs=yes 9091 allow_undefined_flag="$_lt_dar_allow_undefined" 9092 case $cc_basename in 9093 ifort*) _lt_dar_can_shared=yes ;; 9094 *) _lt_dar_can_shared=$GCC ;; 9095 esac 9096 if test "$_lt_dar_can_shared" = "yes"; then 9097 output_verbose_link_cmd=func_echo_all 9098 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9099 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9100 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}" 9101 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}" 9102 9103 else 9104 ld_shlibs=no 9105 fi 9106 9107 ;; 9108 9109 dgux*) 9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9111 hardcode_libdir_flag_spec='-L$libdir' 9112 hardcode_shlibpath_var=no 9113 ;; 9114 9115 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9116 # support. Future versions do this automatically, but an explicit c++rt0.o 9117 # does not break anything, and helps significantly (at the cost of a little 9118 # extra space). 9119 freebsd2.2*) 9120 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9121 hardcode_libdir_flag_spec='-R$libdir' 9122 hardcode_direct=yes 9123 hardcode_shlibpath_var=no 9124 ;; 9125 9126 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9127 freebsd2.*) 9128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9129 hardcode_direct=yes 9130 hardcode_minus_L=yes 9131 hardcode_shlibpath_var=no 9132 ;; 9133 9134 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9135 freebsd* | dragonfly*) 9136 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9137 hardcode_libdir_flag_spec='-R$libdir' 9138 hardcode_direct=yes 9139 hardcode_shlibpath_var=no 9140 ;; 9141 9142 hpux9*) 9143 if test "$GCC" = yes; then 9144 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' 9145 else 9146 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' 9147 fi 9148 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9149 hardcode_libdir_separator=: 9150 hardcode_direct=yes 9151 9152 # hardcode_minus_L: Not really in the search PATH, 9153 # but as the default location of the library. 9154 hardcode_minus_L=yes 9155 export_dynamic_flag_spec='${wl}-E' 9156 ;; 9157 9158 hpux10*) 9159 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9160 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9161 else 9162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9163 fi 9164 if test "$with_gnu_ld" = no; then 9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9166 hardcode_libdir_flag_spec_ld='+b $libdir' 9167 hardcode_libdir_separator=: 9168 hardcode_direct=yes 9169 hardcode_direct_absolute=yes 9170 export_dynamic_flag_spec='${wl}-E' 9171 # hardcode_minus_L: Not really in the search PATH, 9172 # but as the default location of the library. 9173 hardcode_minus_L=yes 9174 fi 9175 ;; 9176 9177 hpux11*) 9178 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9179 case $host_cpu in 9180 hppa*64*) 9181 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9182 ;; 9183 ia64*) 9184 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9185 ;; 9186 *) 9187 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9188 ;; 9189 esac 9190 else 9191 case $host_cpu in 9192 hppa*64*) 9193 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9194 ;; 9195 ia64*) 9196 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9197 ;; 9198 *) 9199 9200 # Older versions of the 11.00 compiler do not understand -b yet 9201 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9203 $as_echo_n "checking if $CC understands -b... " >&6; } 9204 if ${lt_cv_prog_compiler__b+:} false; then : 9205 $as_echo_n "(cached) " >&6 9206 else 9207 lt_cv_prog_compiler__b=no 9208 save_LDFLAGS="$LDFLAGS" 9209 LDFLAGS="$LDFLAGS -b" 9210 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9211 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9212 # The linker can only warn and ignore the option if not recognized 9213 # So say no if there are warnings 9214 if test -s conftest.err; then 9215 # Append any errors to the config.log. 9216 cat conftest.err 1>&5 9217 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9219 if diff conftest.exp conftest.er2 >/dev/null; then 9220 lt_cv_prog_compiler__b=yes 9221 fi 9222 else 9223 lt_cv_prog_compiler__b=yes 9224 fi 9225 fi 9226 $RM -r conftest* 9227 LDFLAGS="$save_LDFLAGS" 9228 9229 fi 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9231 $as_echo "$lt_cv_prog_compiler__b" >&6; } 9232 9233 if test x"$lt_cv_prog_compiler__b" = xyes; then 9234 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9235 else 9236 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9237 fi 9238 9239 ;; 9240 esac 9241 fi 9242 if test "$with_gnu_ld" = no; then 9243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9244 hardcode_libdir_separator=: 9245 9246 case $host_cpu in 9247 hppa*64*|ia64*) 9248 hardcode_direct=no 9249 hardcode_shlibpath_var=no 9250 ;; 9251 *) 9252 hardcode_direct=yes 9253 hardcode_direct_absolute=yes 9254 export_dynamic_flag_spec='${wl}-E' 9255 9256 # hardcode_minus_L: Not really in the search PATH, 9257 # but as the default location of the library. 9258 hardcode_minus_L=yes 9259 ;; 9260 esac 9261 fi 9262 ;; 9263 9264 irix5* | irix6* | nonstopux*) 9265 if test "$GCC" = yes; then 9266 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' 9267 # Try to use the -exported_symbol ld option, if it does not 9268 # work, assume that -exports_file does not work either and 9269 # implicitly export all symbols. 9270 save_LDFLAGS="$LDFLAGS" 9271 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9273 /* end confdefs.h. */ 9274 int foo(void) {} 9275 _ACEOF 9276 if ac_fn_c_try_link "$LINENO"; then : 9277 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' 9278 9279 fi 9280 rm -f core conftest.err conftest.$ac_objext \ 9281 conftest$ac_exeext conftest.$ac_ext 9282 LDFLAGS="$save_LDFLAGS" 9283 else 9284 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' 9285 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' 9286 fi 9287 archive_cmds_need_lc='no' 9288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9289 hardcode_libdir_separator=: 9290 inherit_rpath=yes 9291 link_all_deplibs=yes 9292 ;; 9293 9294 netbsd*) 9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9297 else 9298 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9299 fi 9300 hardcode_libdir_flag_spec='-R$libdir' 9301 hardcode_direct=yes 9302 hardcode_shlibpath_var=no 9303 ;; 9304 9305 newsos6) 9306 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9307 hardcode_direct=yes 9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9309 hardcode_libdir_separator=: 9310 hardcode_shlibpath_var=no 9311 ;; 9312 9313 *nto* | *qnx*) 9314 ;; 9315 9316 openbsd*) 9317 if test -f /usr/libexec/ld.so; then 9318 hardcode_direct=yes 9319 hardcode_shlibpath_var=no 9320 hardcode_direct_absolute=yes 9321 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9322 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9323 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9324 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9325 export_dynamic_flag_spec='${wl}-E' 9326 else 9327 case $host_os in 9328 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9329 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9330 hardcode_libdir_flag_spec='-R$libdir' 9331 ;; 9332 *) 9333 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9334 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9335 ;; 9336 esac 9337 fi 9338 else 9339 ld_shlibs=no 9340 fi 9341 ;; 9342 9343 os2*) 9344 hardcode_libdir_flag_spec='-L$libdir' 9345 hardcode_minus_L=yes 9346 allow_undefined_flag=unsupported 9347 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' 9348 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9349 ;; 9350 9351 osf3*) 9352 if test "$GCC" = yes; then 9353 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9354 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' 9355 else 9356 allow_undefined_flag=' -expect_unresolved \*' 9357 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' 9358 fi 9359 archive_cmds_need_lc='no' 9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9361 hardcode_libdir_separator=: 9362 ;; 9363 9364 osf4* | osf5*) # as osf3* with the addition of -msym flag 9365 if test "$GCC" = yes; then 9366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9367 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' 9368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9369 else 9370 allow_undefined_flag=' -expect_unresolved \*' 9371 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' 9372 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~ 9373 $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' 9374 9375 # Both c and cxx compiler support -rpath directly 9376 hardcode_libdir_flag_spec='-rpath $libdir' 9377 fi 9378 archive_cmds_need_lc='no' 9379 hardcode_libdir_separator=: 9380 ;; 9381 9382 solaris*) 9383 no_undefined_flag=' -z defs' 9384 if test "$GCC" = yes; then 9385 wlarc='${wl}' 9386 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9387 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9388 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9389 else 9390 case `$CC -V 2>&1` in 9391 *"Compilers 5.0"*) 9392 wlarc='' 9393 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9394 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9395 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9396 ;; 9397 *) 9398 wlarc='${wl}' 9399 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9401 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9402 ;; 9403 esac 9404 fi 9405 hardcode_libdir_flag_spec='-R$libdir' 9406 hardcode_shlibpath_var=no 9407 case $host_os in 9408 solaris2.[0-5] | solaris2.[0-5].*) ;; 9409 *) 9410 # The compiler driver will combine and reorder linker options, 9411 # but understands `-z linker_flag'. GCC discards it without `$wl', 9412 # but is careful enough not to reorder. 9413 # Supported since Solaris 2.6 (maybe 2.5.1?) 9414 if test "$GCC" = yes; then 9415 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9416 else 9417 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9418 fi 9419 ;; 9420 esac 9421 link_all_deplibs=yes 9422 ;; 9423 9424 sunos4*) 9425 if test "x$host_vendor" = xsequent; then 9426 # Use $CC to link under sequent, because it throws in some extra .o 9427 # files that make .init and .fini sections work. 9428 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9429 else 9430 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9431 fi 9432 hardcode_libdir_flag_spec='-L$libdir' 9433 hardcode_direct=yes 9434 hardcode_minus_L=yes 9435 hardcode_shlibpath_var=no 9436 ;; 9437 9438 sysv4) 9439 case $host_vendor in 9440 sni) 9441 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9442 hardcode_direct=yes # is this really true??? 9443 ;; 9444 siemens) 9445 ## LD is ld it makes a PLAMLIB 9446 ## CC just makes a GrossModule. 9447 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9448 reload_cmds='$CC -r -o $output$reload_objs' 9449 hardcode_direct=no 9450 ;; 9451 motorola) 9452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9453 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9454 ;; 9455 esac 9456 runpath_var='LD_RUN_PATH' 9457 hardcode_shlibpath_var=no 9458 ;; 9459 9460 sysv4.3*) 9461 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9462 hardcode_shlibpath_var=no 9463 export_dynamic_flag_spec='-Bexport' 9464 ;; 9465 9466 sysv4*MP*) 9467 if test -d /usr/nec; then 9468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9469 hardcode_shlibpath_var=no 9470 runpath_var=LD_RUN_PATH 9471 hardcode_runpath_var=yes 9472 ld_shlibs=yes 9473 fi 9474 ;; 9475 9476 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9477 no_undefined_flag='${wl}-z,text' 9478 archive_cmds_need_lc=no 9479 hardcode_shlibpath_var=no 9480 runpath_var='LD_RUN_PATH' 9481 9482 if test "$GCC" = yes; then 9483 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9484 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9485 else 9486 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9487 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9488 fi 9489 ;; 9490 9491 sysv5* | sco3.2v5* | sco5v6*) 9492 # Note: We can NOT use -z defs as we might desire, because we do not 9493 # link with -lc, and that would cause any symbols used from libc to 9494 # always be unresolved, which means just about no library would 9495 # ever link correctly. If we're not using GNU ld we use -z text 9496 # though, which does catch some bad symbols but isn't as heavy-handed 9497 # as -z defs. 9498 no_undefined_flag='${wl}-z,text' 9499 allow_undefined_flag='${wl}-z,nodefs' 9500 archive_cmds_need_lc=no 9501 hardcode_shlibpath_var=no 9502 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9503 hardcode_libdir_separator=':' 9504 link_all_deplibs=yes 9505 export_dynamic_flag_spec='${wl}-Bexport' 9506 runpath_var='LD_RUN_PATH' 9507 9508 if test "$GCC" = yes; then 9509 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9510 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9511 else 9512 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9513 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9514 fi 9515 ;; 9516 9517 uts4*) 9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9519 hardcode_libdir_flag_spec='-L$libdir' 9520 hardcode_shlibpath_var=no 9521 ;; 9522 9523 *) 9524 ld_shlibs=no 9525 ;; 9526 esac 9527 9528 if test x$host_vendor = xsni; then 9529 case $host in 9530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9531 export_dynamic_flag_spec='${wl}-Blargedynsym' 9532 ;; 9533 esac 9534 fi 9535 fi 9536 9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9538 $as_echo "$ld_shlibs" >&6; } 9539 test "$ld_shlibs" = no && can_build_shared=no 9540 9541 with_gnu_ld=$with_gnu_ld 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 # 9558 # Do we need to explicitly link libc? 9559 # 9560 case "x$archive_cmds_need_lc" in 9561 x|xyes) 9562 # Assume -lc should be added 9563 archive_cmds_need_lc=yes 9564 9565 if test "$enable_shared" = yes && test "$GCC" = yes; then 9566 case $archive_cmds in 9567 *'~'*) 9568 # FIXME: we may have to deal with multi-command sequences. 9569 ;; 9570 '$CC '*) 9571 # Test whether the compiler implicitly links with -lc since on some 9572 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9573 # to ld, don't add -lc before -lgcc. 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9575 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9576 if ${lt_cv_archive_cmds_need_lc+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578 else 9579 $RM conftest* 9580 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9581 9582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9583 (eval $ac_compile) 2>&5 9584 ac_status=$? 9585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9586 test $ac_status = 0; } 2>conftest.err; then 9587 soname=conftest 9588 lib=conftest 9589 libobjs=conftest.$ac_objext 9590 deplibs= 9591 wl=$lt_prog_compiler_wl 9592 pic_flag=$lt_prog_compiler_pic 9593 compiler_flags=-v 9594 linker_flags=-v 9595 verstring= 9596 output_objdir=. 9597 libname=conftest 9598 lt_save_allow_undefined_flag=$allow_undefined_flag 9599 allow_undefined_flag= 9600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9601 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9602 ac_status=$? 9603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9604 test $ac_status = 0; } 9605 then 9606 lt_cv_archive_cmds_need_lc=no 9607 else 9608 lt_cv_archive_cmds_need_lc=yes 9609 fi 9610 allow_undefined_flag=$lt_save_allow_undefined_flag 9611 else 9612 cat conftest.err 1>&5 9613 fi 9614 $RM conftest* 9615 9616 fi 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9618 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9619 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9620 ;; 9621 esac 9622 fi 9623 ;; 9624 esac 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9783 $as_echo_n "checking dynamic linker characteristics... " >&6; } 9784 9785 if test "$GCC" = yes; then 9786 case $host_os in 9787 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9788 *) lt_awk_arg="/^libraries:/" ;; 9789 esac 9790 case $host_os in 9791 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9792 *) lt_sed_strip_eq="s,=/,/,g" ;; 9793 esac 9794 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9795 case $lt_search_path_spec in 9796 *\;*) 9797 # if the path contains ";" then we assume it to be the separator 9798 # otherwise default to the standard path separator (i.e. ":") - it is 9799 # assumed that no part of a normal pathname contains ";" but that should 9800 # okay in the real world where ";" in dirpaths is itself problematic. 9801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9802 ;; 9803 *) 9804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9805 ;; 9806 esac 9807 # Ok, now we have the path, separated by spaces, we can step through it 9808 # and add multilib dir if necessary. 9809 lt_tmp_lt_search_path_spec= 9810 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9811 for lt_sys_path in $lt_search_path_spec; do 9812 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9814 else 9815 test -d "$lt_sys_path" && \ 9816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9817 fi 9818 done 9819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9820 BEGIN {RS=" "; FS="/|\n";} { 9821 lt_foo=""; 9822 lt_count=0; 9823 for (lt_i = NF; lt_i > 0; lt_i--) { 9824 if ($lt_i != "" && $lt_i != ".") { 9825 if ($lt_i == "..") { 9826 lt_count++; 9827 } else { 9828 if (lt_count == 0) { 9829 lt_foo="/" $lt_i lt_foo; 9830 } else { 9831 lt_count--; 9832 } 9833 } 9834 } 9835 } 9836 if (lt_foo != "") { lt_freq[lt_foo]++; } 9837 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9838 }'` 9839 # AWK program above erroneously prepends '/' to C:/dos/paths 9840 # for these hosts. 9841 case $host_os in 9842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9843 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9844 esac 9845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9846 else 9847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9848 fi 9849 library_names_spec= 9850 libname_spec='lib$name' 9851 soname_spec= 9852 shrext_cmds=".so" 9853 postinstall_cmds= 9854 postuninstall_cmds= 9855 finish_cmds= 9856 finish_eval= 9857 shlibpath_var= 9858 shlibpath_overrides_runpath=unknown 9859 version_type=none 9860 dynamic_linker="$host_os ld.so" 9861 sys_lib_dlsearch_path_spec="/lib /usr/lib" 9862 need_lib_prefix=unknown 9863 hardcode_into_libs=no 9864 9865 # when you set need_version to no, make sure it does not cause -set_version 9866 # flags to be left without arguments 9867 need_version=unknown 9868 9869 case $host_os in 9870 aix3*) 9871 version_type=linux 9872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9873 shlibpath_var=LIBPATH 9874 9875 # AIX 3 has no versioning support, so we append a major version to the name. 9876 soname_spec='${libname}${release}${shared_ext}$major' 9877 ;; 9878 9879 aix[4-9]*) 9880 version_type=linux 9881 need_lib_prefix=no 9882 need_version=no 9883 hardcode_into_libs=yes 9884 if test "$host_cpu" = ia64; then 9885 # AIX 5 supports IA64 9886 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9887 shlibpath_var=LD_LIBRARY_PATH 9888 else 9889 # With GCC up to 2.95.x, collect2 would create an import file 9890 # for dependence libraries. The import file would start with 9891 # the line `#! .'. This would cause the generated library to 9892 # depend on `.', always an invalid library. This was fixed in 9893 # development snapshots of GCC prior to 3.0. 9894 case $host_os in 9895 aix4 | aix4.[01] | aix4.[01].*) 9896 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9897 echo ' yes ' 9898 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9899 : 9900 else 9901 can_build_shared=no 9902 fi 9903 ;; 9904 esac 9905 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9906 # soname into executable. Probably we can add versioning support to 9907 # collect2, so additional links can be useful in future. 9908 if test "$aix_use_runtimelinking" = yes; then 9909 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9910 # instead of lib<name>.a to let people know that these are not 9911 # typical AIX shared libraries. 9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9913 else 9914 # We preserve .a as extension for shared libraries through AIX4.2 9915 # and later when we are not doing run time linking. 9916 library_names_spec='${libname}${release}.a $libname.a' 9917 soname_spec='${libname}${release}${shared_ext}$major' 9918 fi 9919 shlibpath_var=LIBPATH 9920 fi 9921 ;; 9922 9923 amigaos*) 9924 case $host_cpu in 9925 powerpc) 9926 # Since July 2007 AmigaOS4 officially supports .so libraries. 9927 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9929 ;; 9930 m68k) 9931 library_names_spec='$libname.ixlibrary $libname.a' 9932 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9933 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' 9934 ;; 9935 esac 9936 ;; 9937 9938 beos*) 9939 library_names_spec='${libname}${shared_ext}' 9940 dynamic_linker="$host_os ld.so" 9941 shlibpath_var=LIBRARY_PATH 9942 ;; 9943 9944 bsdi[45]*) 9945 version_type=linux 9946 need_version=no 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9948 soname_spec='${libname}${release}${shared_ext}$major' 9949 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9950 shlibpath_var=LD_LIBRARY_PATH 9951 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9952 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9953 # the default ld.so.conf also contains /usr/contrib/lib and 9954 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9955 # libtool to hard-code these into programs 9956 ;; 9957 9958 cygwin* | mingw* | pw32* | cegcc*) 9959 version_type=windows 9960 shrext_cmds=".dll" 9961 need_version=no 9962 need_lib_prefix=no 9963 9964 case $GCC,$host_os in 9965 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9966 library_names_spec='$libname.dll.a' 9967 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9968 postinstall_cmds='base_file=`basename \${file}`~ 9969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9970 dldir=$destdir/`dirname \$dlpath`~ 9971 test -d \$dldir || mkdir -p \$dldir~ 9972 $install_prog $dir/$dlname \$dldir/$dlname~ 9973 chmod a+x \$dldir/$dlname~ 9974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9976 fi' 9977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9978 dlpath=$dir/\$dldll~ 9979 $RM \$dlpath' 9980 shlibpath_overrides_runpath=yes 9981 9982 case $host_os in 9983 cygwin*) 9984 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9985 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9986 9987 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9988 ;; 9989 mingw* | cegcc*) 9990 # MinGW DLLs use traditional 'lib' prefix 9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9992 ;; 9993 pw32*) 9994 # pw32 DLLs use 'pw' prefix rather than 'lib' 9995 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9996 ;; 9997 esac 9998 ;; 9999 10000 *) 10001 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10002 ;; 10003 esac 10004 dynamic_linker='Win32 ld.exe' 10005 # FIXME: first we should search . and the directory the executable is in 10006 shlibpath_var=PATH 10007 ;; 10008 10009 darwin* | rhapsody*) 10010 dynamic_linker="$host_os dyld" 10011 version_type=darwin 10012 need_lib_prefix=no 10013 need_version=no 10014 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10015 soname_spec='${libname}${release}${major}$shared_ext' 10016 shlibpath_overrides_runpath=yes 10017 shlibpath_var=DYLD_LIBRARY_PATH 10018 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10019 10020 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10021 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10022 ;; 10023 10024 dgux*) 10025 version_type=linux 10026 need_lib_prefix=no 10027 need_version=no 10028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10029 soname_spec='${libname}${release}${shared_ext}$major' 10030 shlibpath_var=LD_LIBRARY_PATH 10031 ;; 10032 10033 freebsd* | dragonfly*) 10034 # DragonFly does not have aout. When/if they implement a new 10035 # versioning mechanism, adjust this. 10036 if test -x /usr/bin/objformat; then 10037 objformat=`/usr/bin/objformat` 10038 else 10039 case $host_os in 10040 freebsd[23].*) objformat=aout ;; 10041 *) objformat=elf ;; 10042 esac 10043 fi 10044 version_type=freebsd-$objformat 10045 case $version_type in 10046 freebsd-elf*) 10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10048 need_version=no 10049 need_lib_prefix=no 10050 ;; 10051 freebsd-*) 10052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10053 need_version=yes 10054 ;; 10055 esac 10056 shlibpath_var=LD_LIBRARY_PATH 10057 case $host_os in 10058 freebsd2.*) 10059 shlibpath_overrides_runpath=yes 10060 ;; 10061 freebsd3.[01]* | freebsdelf3.[01]*) 10062 shlibpath_overrides_runpath=yes 10063 hardcode_into_libs=yes 10064 ;; 10065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10067 shlibpath_overrides_runpath=no 10068 hardcode_into_libs=yes 10069 ;; 10070 *) # from 4.6 on, and DragonFly 10071 shlibpath_overrides_runpath=yes 10072 hardcode_into_libs=yes 10073 ;; 10074 esac 10075 ;; 10076 10077 haiku*) 10078 version_type=linux 10079 need_lib_prefix=no 10080 need_version=no 10081 dynamic_linker="$host_os runtime_loader" 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10083 soname_spec='${libname}${release}${shared_ext}$major' 10084 shlibpath_var=LIBRARY_PATH 10085 shlibpath_overrides_runpath=yes 10086 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10087 hardcode_into_libs=yes 10088 ;; 10089 10090 hpux9* | hpux10* | hpux11*) 10091 # Give a soname corresponding to the major version so that dld.sl refuses to 10092 # link against other versions. 10093 version_type=sunos 10094 need_lib_prefix=no 10095 need_version=no 10096 case $host_cpu in 10097 ia64*) 10098 shrext_cmds='.so' 10099 hardcode_into_libs=yes 10100 dynamic_linker="$host_os dld.so" 10101 shlibpath_var=LD_LIBRARY_PATH 10102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10104 soname_spec='${libname}${release}${shared_ext}$major' 10105 if test "X$HPUX_IA64_MODE" = X32; then 10106 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10107 else 10108 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10109 fi 10110 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10111 ;; 10112 hppa*64*) 10113 shrext_cmds='.sl' 10114 hardcode_into_libs=yes 10115 dynamic_linker="$host_os dld.sl" 10116 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10119 soname_spec='${libname}${release}${shared_ext}$major' 10120 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10122 ;; 10123 *) 10124 shrext_cmds='.sl' 10125 dynamic_linker="$host_os dld.sl" 10126 shlibpath_var=SHLIB_PATH 10127 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10129 soname_spec='${libname}${release}${shared_ext}$major' 10130 ;; 10131 esac 10132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10133 postinstall_cmds='chmod 555 $lib' 10134 # or fails outright, so override atomically: 10135 install_override_mode=555 10136 ;; 10137 10138 interix[3-9]*) 10139 version_type=linux 10140 need_lib_prefix=no 10141 need_version=no 10142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10143 soname_spec='${libname}${release}${shared_ext}$major' 10144 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10145 shlibpath_var=LD_LIBRARY_PATH 10146 shlibpath_overrides_runpath=no 10147 hardcode_into_libs=yes 10148 ;; 10149 10150 irix5* | irix6* | nonstopux*) 10151 case $host_os in 10152 nonstopux*) version_type=nonstopux ;; 10153 *) 10154 if test "$lt_cv_prog_gnu_ld" = yes; then 10155 version_type=linux 10156 else 10157 version_type=irix 10158 fi ;; 10159 esac 10160 need_lib_prefix=no 10161 need_version=no 10162 soname_spec='${libname}${release}${shared_ext}$major' 10163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10164 case $host_os in 10165 irix5* | nonstopux*) 10166 libsuff= shlibsuff= 10167 ;; 10168 *) 10169 case $LD in # libtool.m4 will add one of these switches to LD 10170 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10171 libsuff= shlibsuff= libmagic=32-bit;; 10172 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10173 libsuff=32 shlibsuff=N32 libmagic=N32;; 10174 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10175 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10176 *) libsuff= shlibsuff= libmagic=never-match;; 10177 esac 10178 ;; 10179 esac 10180 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10181 shlibpath_overrides_runpath=no 10182 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10183 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10184 hardcode_into_libs=yes 10185 ;; 10186 10187 # No shared lib support for Linux oldld, aout, or coff. 10188 linux*oldld* | linux*aout* | linux*coff*) 10189 dynamic_linker=no 10190 ;; 10191 10192 # This must be Linux ELF. 10193 10194 # uclinux* changes (here and below) have been submitted to the libtool 10195 # project, but have not yet been accepted: they are GCC-local changes 10196 # for the time being. (See 10197 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 10198 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 10199 version_type=linux 10200 need_lib_prefix=no 10201 need_version=no 10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10203 soname_spec='${libname}${release}${shared_ext}$major' 10204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10205 shlibpath_var=LD_LIBRARY_PATH 10206 shlibpath_overrides_runpath=no 10207 10208 # Some binutils ld are patched to set DT_RUNPATH 10209 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10210 $as_echo_n "(cached) " >&6 10211 else 10212 lt_cv_shlibpath_overrides_runpath=no 10213 save_LDFLAGS=$LDFLAGS 10214 save_libdir=$libdir 10215 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10216 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10218 /* end confdefs.h. */ 10219 10220 int 10221 main () 10222 { 10223 10224 ; 10225 return 0; 10226 } 10227 _ACEOF 10228 if ac_fn_c_try_link "$LINENO"; then : 10229 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10230 lt_cv_shlibpath_overrides_runpath=yes 10231 fi 10232 fi 10233 rm -f core conftest.err conftest.$ac_objext \ 10234 conftest$ac_exeext conftest.$ac_ext 10235 LDFLAGS=$save_LDFLAGS 10236 libdir=$save_libdir 10237 10238 fi 10239 10240 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10241 10242 # This implies no fast_install, which is unacceptable. 10243 # Some rework will be needed to allow for fast_install 10244 # before this can be enabled. 10245 hardcode_into_libs=yes 10246 10247 # Append ld.so.conf contents to the search path 10248 if test -f /etc/ld.so.conf; then 10249 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' ' '` 10250 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10251 fi 10252 10253 # We used to test for /lib/ld.so.1 and disable shared libraries on 10254 # powerpc, because MkLinux only supported shared libraries with the 10255 # GNU dynamic linker. Since this was broken with cross compilers, 10256 # most powerpc-linux boxes support dynamic linking these days and 10257 # people can always --disable-shared, the test was removed, and we 10258 # assume the GNU/Linux dynamic linker is in use. 10259 dynamic_linker='GNU/Linux ld.so' 10260 ;; 10261 10262 netbsd*) 10263 version_type=sunos 10264 need_lib_prefix=no 10265 need_version=no 10266 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10269 dynamic_linker='NetBSD (a.out) ld.so' 10270 else 10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10272 soname_spec='${libname}${release}${shared_ext}$major' 10273 dynamic_linker='NetBSD ld.elf_so' 10274 fi 10275 shlibpath_var=LD_LIBRARY_PATH 10276 shlibpath_overrides_runpath=yes 10277 hardcode_into_libs=yes 10278 ;; 10279 10280 newsos6) 10281 version_type=linux 10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10283 shlibpath_var=LD_LIBRARY_PATH 10284 shlibpath_overrides_runpath=yes 10285 ;; 10286 10287 *nto* | *qnx*) 10288 version_type=qnx 10289 need_lib_prefix=no 10290 need_version=no 10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10292 soname_spec='${libname}${release}${shared_ext}$major' 10293 shlibpath_var=LD_LIBRARY_PATH 10294 shlibpath_overrides_runpath=no 10295 hardcode_into_libs=yes 10296 dynamic_linker='ldqnx.so' 10297 ;; 10298 10299 openbsd*) 10300 version_type=sunos 10301 sys_lib_dlsearch_path_spec="/usr/lib" 10302 need_lib_prefix=no 10303 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10304 case $host_os in 10305 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10306 *) need_version=no ;; 10307 esac 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10310 shlibpath_var=LD_LIBRARY_PATH 10311 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10312 case $host_os in 10313 openbsd2.[89] | openbsd2.[89].*) 10314 shlibpath_overrides_runpath=no 10315 ;; 10316 *) 10317 shlibpath_overrides_runpath=yes 10318 ;; 10319 esac 10320 else 10321 shlibpath_overrides_runpath=yes 10322 fi 10323 ;; 10324 10325 os2*) 10326 libname_spec='$name' 10327 shrext_cmds=".dll" 10328 need_lib_prefix=no 10329 library_names_spec='$libname${shared_ext} $libname.a' 10330 dynamic_linker='OS/2 ld.exe' 10331 shlibpath_var=LIBPATH 10332 ;; 10333 10334 osf3* | osf4* | osf5*) 10335 version_type=osf 10336 need_lib_prefix=no 10337 need_version=no 10338 soname_spec='${libname}${release}${shared_ext}$major' 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10340 shlibpath_var=LD_LIBRARY_PATH 10341 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10342 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10343 ;; 10344 10345 rdos*) 10346 dynamic_linker=no 10347 ;; 10348 10349 solaris*) 10350 version_type=linux 10351 need_lib_prefix=no 10352 need_version=no 10353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10354 soname_spec='${libname}${release}${shared_ext}$major' 10355 shlibpath_var=LD_LIBRARY_PATH 10356 shlibpath_overrides_runpath=yes 10357 hardcode_into_libs=yes 10358 # ldd complains unless libraries are executable 10359 postinstall_cmds='chmod +x $lib' 10360 ;; 10361 10362 sunos4*) 10363 version_type=sunos 10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10365 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10366 shlibpath_var=LD_LIBRARY_PATH 10367 shlibpath_overrides_runpath=yes 10368 if test "$with_gnu_ld" = yes; then 10369 need_lib_prefix=no 10370 fi 10371 need_version=yes 10372 ;; 10373 10374 sysv4 | sysv4.3*) 10375 version_type=linux 10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10377 soname_spec='${libname}${release}${shared_ext}$major' 10378 shlibpath_var=LD_LIBRARY_PATH 10379 case $host_vendor in 10380 sni) 10381 shlibpath_overrides_runpath=no 10382 need_lib_prefix=no 10383 runpath_var=LD_RUN_PATH 10384 ;; 10385 siemens) 10386 need_lib_prefix=no 10387 ;; 10388 motorola) 10389 need_lib_prefix=no 10390 need_version=no 10391 shlibpath_overrides_runpath=no 10392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10393 ;; 10394 esac 10395 ;; 10396 10397 sysv4*MP*) 10398 if test -d /usr/nec ;then 10399 version_type=linux 10400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10401 soname_spec='$libname${shared_ext}.$major' 10402 shlibpath_var=LD_LIBRARY_PATH 10403 fi 10404 ;; 10405 10406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10407 version_type=freebsd-elf 10408 need_lib_prefix=no 10409 need_version=no 10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10411 soname_spec='${libname}${release}${shared_ext}$major' 10412 shlibpath_var=LD_LIBRARY_PATH 10413 shlibpath_overrides_runpath=yes 10414 hardcode_into_libs=yes 10415 if test "$with_gnu_ld" = yes; then 10416 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10417 else 10418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10419 case $host_os in 10420 sco3.2v5*) 10421 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10422 ;; 10423 esac 10424 fi 10425 sys_lib_dlsearch_path_spec='/usr/lib' 10426 ;; 10427 10428 tpf*) 10429 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10430 version_type=linux 10431 need_lib_prefix=no 10432 need_version=no 10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10434 shlibpath_var=LD_LIBRARY_PATH 10435 shlibpath_overrides_runpath=no 10436 hardcode_into_libs=yes 10437 ;; 10438 10439 uts4*) 10440 version_type=linux 10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10442 soname_spec='${libname}${release}${shared_ext}$major' 10443 shlibpath_var=LD_LIBRARY_PATH 10444 ;; 10445 10446 # Shared libraries for VwWorks, >= 7 only at this stage 10447 # and (fpic) still incompatible with "large" code models 10448 # in a few configurations. Only for RTP mode in any case, 10449 # and upon explicit request at configure time. 10450 vxworks7*) 10451 dynamic_linker=no 10452 case ${with_multisubdir}-${enable_shared} in 10453 *large*) 10454 ;; 10455 *mrtp*-yes) 10456 version_type=linux 10457 need_lib_prefix=no 10458 need_version=no 10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10460 soname_spec='${libname}${release}${shared_ext}$major' 10461 dynamic_linker="$host_os module_loader" 10462 ;; 10463 esac 10464 ;; 10465 *) 10466 dynamic_linker=no 10467 ;; 10468 esac 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10470 $as_echo "$dynamic_linker" >&6; } 10471 test "$dynamic_linker" = no && can_build_shared=no 10472 10473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10474 if test "$GCC" = yes; then 10475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10476 fi 10477 10478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10479 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10480 fi 10481 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10482 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10483 fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10577 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10578 hardcode_action= 10579 if test -n "$hardcode_libdir_flag_spec" || 10580 test -n "$runpath_var" || 10581 test "X$hardcode_automatic" = "Xyes" ; then 10582 10583 # We can hardcode non-existent directories. 10584 if test "$hardcode_direct" != no && 10585 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10586 # have to relink, otherwise we might link with an installed library 10587 # when we should be linking with a yet-to-be-installed one 10588 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10589 test "$hardcode_minus_L" != no; then 10590 # Linking always hardcodes the temporary library directory. 10591 hardcode_action=relink 10592 else 10593 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10594 hardcode_action=immediate 10595 fi 10596 else 10597 # We cannot hardcode anything, or else we can only hardcode existing 10598 # directories. 10599 hardcode_action=unsupported 10600 fi 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10602 $as_echo "$hardcode_action" >&6; } 10603 10604 if test "$hardcode_action" = relink || 10605 test "$inherit_rpath" = yes; then 10606 # Fast installation is not supported 10607 enable_fast_install=no 10608 elif test "$shlibpath_overrides_runpath" = yes || 10609 test "$enable_shared" = no; then 10610 # Fast installation is not necessary 10611 enable_fast_install=needless 10612 fi 10613 10614 10615 10616 10617 10618 10619 if test "x$enable_dlopen" != xyes; then 10620 enable_dlopen=unknown 10621 enable_dlopen_self=unknown 10622 enable_dlopen_self_static=unknown 10623 else 10624 lt_cv_dlopen=no 10625 lt_cv_dlopen_libs= 10626 10627 case $host_os in 10628 beos*) 10629 lt_cv_dlopen="load_add_on" 10630 lt_cv_dlopen_libs= 10631 lt_cv_dlopen_self=yes 10632 ;; 10633 10634 mingw* | pw32* | cegcc*) 10635 lt_cv_dlopen="LoadLibrary" 10636 lt_cv_dlopen_libs= 10637 ;; 10638 10639 cygwin*) 10640 lt_cv_dlopen="dlopen" 10641 lt_cv_dlopen_libs= 10642 ;; 10643 10644 darwin*) 10645 # if libdl is installed we need to link against it 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10647 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10648 if ${ac_cv_lib_dl_dlopen+:} false; then : 10649 $as_echo_n "(cached) " >&6 10650 else 10651 ac_check_lib_save_LIBS=$LIBS 10652 LIBS="-ldl $LIBS" 10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10654 /* end confdefs.h. */ 10655 10656 /* Override any GCC internal prototype to avoid an error. 10657 Use char because int might match the return type of a GCC 10658 builtin and then its argument prototype would still apply. */ 10659 #ifdef __cplusplus 10660 extern "C" 10661 #endif 10662 char dlopen (); 10663 int 10664 main () 10665 { 10666 return dlopen (); 10667 ; 10668 return 0; 10669 } 10670 _ACEOF 10671 if ac_fn_c_try_link "$LINENO"; then : 10672 ac_cv_lib_dl_dlopen=yes 10673 else 10674 ac_cv_lib_dl_dlopen=no 10675 fi 10676 rm -f core conftest.err conftest.$ac_objext \ 10677 conftest$ac_exeext conftest.$ac_ext 10678 LIBS=$ac_check_lib_save_LIBS 10679 fi 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10681 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10682 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10684 else 10685 10686 lt_cv_dlopen="dyld" 10687 lt_cv_dlopen_libs= 10688 lt_cv_dlopen_self=yes 10689 10690 fi 10691 10692 ;; 10693 10694 *) 10695 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10696 if test "x$ac_cv_func_shl_load" = xyes; then : 10697 lt_cv_dlopen="shl_load" 10698 else 10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10700 $as_echo_n "checking for shl_load in -ldld... " >&6; } 10701 if ${ac_cv_lib_dld_shl_load+:} false; then : 10702 $as_echo_n "(cached) " >&6 10703 else 10704 ac_check_lib_save_LIBS=$LIBS 10705 LIBS="-ldld $LIBS" 10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10707 /* end confdefs.h. */ 10708 10709 /* Override any GCC internal prototype to avoid an error. 10710 Use char because int might match the return type of a GCC 10711 builtin and then its argument prototype would still apply. */ 10712 #ifdef __cplusplus 10713 extern "C" 10714 #endif 10715 char shl_load (); 10716 int 10717 main () 10718 { 10719 return shl_load (); 10720 ; 10721 return 0; 10722 } 10723 _ACEOF 10724 if ac_fn_c_try_link "$LINENO"; then : 10725 ac_cv_lib_dld_shl_load=yes 10726 else 10727 ac_cv_lib_dld_shl_load=no 10728 fi 10729 rm -f core conftest.err conftest.$ac_objext \ 10730 conftest$ac_exeext conftest.$ac_ext 10731 LIBS=$ac_check_lib_save_LIBS 10732 fi 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10734 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10735 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10736 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10737 else 10738 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10739 if test "x$ac_cv_func_dlopen" = xyes; then : 10740 lt_cv_dlopen="dlopen" 10741 else 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10743 $as_echo_n "checking for dlopen in -ldl... " >&6; } 10744 if ${ac_cv_lib_dl_dlopen+:} false; then : 10745 $as_echo_n "(cached) " >&6 10746 else 10747 ac_check_lib_save_LIBS=$LIBS 10748 LIBS="-ldl $LIBS" 10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10750 /* end confdefs.h. */ 10751 10752 /* Override any GCC internal prototype to avoid an error. 10753 Use char because int might match the return type of a GCC 10754 builtin and then its argument prototype would still apply. */ 10755 #ifdef __cplusplus 10756 extern "C" 10757 #endif 10758 char dlopen (); 10759 int 10760 main () 10761 { 10762 return dlopen (); 10763 ; 10764 return 0; 10765 } 10766 _ACEOF 10767 if ac_fn_c_try_link "$LINENO"; then : 10768 ac_cv_lib_dl_dlopen=yes 10769 else 10770 ac_cv_lib_dl_dlopen=no 10771 fi 10772 rm -f core conftest.err conftest.$ac_objext \ 10773 conftest$ac_exeext conftest.$ac_ext 10774 LIBS=$ac_check_lib_save_LIBS 10775 fi 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10777 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10778 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10780 else 10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10782 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 10783 if ${ac_cv_lib_svld_dlopen+:} false; then : 10784 $as_echo_n "(cached) " >&6 10785 else 10786 ac_check_lib_save_LIBS=$LIBS 10787 LIBS="-lsvld $LIBS" 10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10789 /* end confdefs.h. */ 10790 10791 /* Override any GCC internal prototype to avoid an error. 10792 Use char because int might match the return type of a GCC 10793 builtin and then its argument prototype would still apply. */ 10794 #ifdef __cplusplus 10795 extern "C" 10796 #endif 10797 char dlopen (); 10798 int 10799 main () 10800 { 10801 return dlopen (); 10802 ; 10803 return 0; 10804 } 10805 _ACEOF 10806 if ac_fn_c_try_link "$LINENO"; then : 10807 ac_cv_lib_svld_dlopen=yes 10808 else 10809 ac_cv_lib_svld_dlopen=no 10810 fi 10811 rm -f core conftest.err conftest.$ac_objext \ 10812 conftest$ac_exeext conftest.$ac_ext 10813 LIBS=$ac_check_lib_save_LIBS 10814 fi 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10816 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10817 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10819 else 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10821 $as_echo_n "checking for dld_link in -ldld... " >&6; } 10822 if ${ac_cv_lib_dld_dld_link+:} false; then : 10823 $as_echo_n "(cached) " >&6 10824 else 10825 ac_check_lib_save_LIBS=$LIBS 10826 LIBS="-ldld $LIBS" 10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10828 /* end confdefs.h. */ 10829 10830 /* Override any GCC internal prototype to avoid an error. 10831 Use char because int might match the return type of a GCC 10832 builtin and then its argument prototype would still apply. */ 10833 #ifdef __cplusplus 10834 extern "C" 10835 #endif 10836 char dld_link (); 10837 int 10838 main () 10839 { 10840 return dld_link (); 10841 ; 10842 return 0; 10843 } 10844 _ACEOF 10845 if ac_fn_c_try_link "$LINENO"; then : 10846 ac_cv_lib_dld_dld_link=yes 10847 else 10848 ac_cv_lib_dld_dld_link=no 10849 fi 10850 rm -f core conftest.err conftest.$ac_objext \ 10851 conftest$ac_exeext conftest.$ac_ext 10852 LIBS=$ac_check_lib_save_LIBS 10853 fi 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10855 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10856 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10857 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10858 fi 10859 10860 10861 fi 10862 10863 10864 fi 10865 10866 10867 fi 10868 10869 10870 fi 10871 10872 10873 fi 10874 10875 ;; 10876 esac 10877 10878 if test "x$lt_cv_dlopen" != xno; then 10879 enable_dlopen=yes 10880 else 10881 enable_dlopen=no 10882 fi 10883 10884 case $lt_cv_dlopen in 10885 dlopen) 10886 save_CPPFLAGS="$CPPFLAGS" 10887 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10888 10889 save_LDFLAGS="$LDFLAGS" 10890 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10891 10892 save_LIBS="$LIBS" 10893 LIBS="$lt_cv_dlopen_libs $LIBS" 10894 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10896 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 10897 if ${lt_cv_dlopen_self+:} false; then : 10898 $as_echo_n "(cached) " >&6 10899 else 10900 if test "$cross_compiling" = yes; then : 10901 lt_cv_dlopen_self=cross 10902 else 10903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10904 lt_status=$lt_dlunknown 10905 cat > conftest.$ac_ext <<_LT_EOF 10906 #line 10906 "configure" 10907 #include "confdefs.h" 10908 10909 #if HAVE_DLFCN_H 10910 #include <dlfcn.h> 10911 #endif 10912 10913 #include <stdio.h> 10914 10915 #ifdef RTLD_GLOBAL 10916 # define LT_DLGLOBAL RTLD_GLOBAL 10917 #else 10918 # ifdef DL_GLOBAL 10919 # define LT_DLGLOBAL DL_GLOBAL 10920 # else 10921 # define LT_DLGLOBAL 0 10922 # endif 10923 #endif 10924 10925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10926 find out it does not work in some platform. */ 10927 #ifndef LT_DLLAZY_OR_NOW 10928 # ifdef RTLD_LAZY 10929 # define LT_DLLAZY_OR_NOW RTLD_LAZY 10930 # else 10931 # ifdef DL_LAZY 10932 # define LT_DLLAZY_OR_NOW DL_LAZY 10933 # else 10934 # ifdef RTLD_NOW 10935 # define LT_DLLAZY_OR_NOW RTLD_NOW 10936 # else 10937 # ifdef DL_NOW 10938 # define LT_DLLAZY_OR_NOW DL_NOW 10939 # else 10940 # define LT_DLLAZY_OR_NOW 0 10941 # endif 10942 # endif 10943 # endif 10944 # endif 10945 #endif 10946 10947 /* When -fvisbility=hidden is used, assume the code has been annotated 10948 correspondingly for the symbols needed. */ 10949 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10950 void fnord () __attribute__((visibility("default"))); 10951 #endif 10952 10953 void fnord () { int i=42; } 10954 int main () 10955 { 10956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10957 int status = $lt_dlunknown; 10958 10959 if (self) 10960 { 10961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10962 else 10963 { 10964 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10965 else puts (dlerror ()); 10966 } 10967 /* dlclose (self); */ 10968 } 10969 else 10970 puts (dlerror ()); 10971 10972 return status; 10973 } 10974 _LT_EOF 10975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10976 (eval $ac_link) 2>&5 10977 ac_status=$? 10978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10979 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10980 (./conftest; exit; ) >&5 2>/dev/null 10981 lt_status=$? 10982 case x$lt_status in 10983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10985 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10986 esac 10987 else : 10988 # compilation failed 10989 lt_cv_dlopen_self=no 10990 fi 10991 fi 10992 rm -fr conftest* 10993 10994 10995 fi 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10997 $as_echo "$lt_cv_dlopen_self" >&6; } 10998 10999 if test "x$lt_cv_dlopen_self" = xyes; then 11000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11002 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11003 if ${lt_cv_dlopen_self_static+:} false; then : 11004 $as_echo_n "(cached) " >&6 11005 else 11006 if test "$cross_compiling" = yes; then : 11007 lt_cv_dlopen_self_static=cross 11008 else 11009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11010 lt_status=$lt_dlunknown 11011 cat > conftest.$ac_ext <<_LT_EOF 11012 #line 11012 "configure" 11013 #include "confdefs.h" 11014 11015 #if HAVE_DLFCN_H 11016 #include <dlfcn.h> 11017 #endif 11018 11019 #include <stdio.h> 11020 11021 #ifdef RTLD_GLOBAL 11022 # define LT_DLGLOBAL RTLD_GLOBAL 11023 #else 11024 # ifdef DL_GLOBAL 11025 # define LT_DLGLOBAL DL_GLOBAL 11026 # else 11027 # define LT_DLGLOBAL 0 11028 # endif 11029 #endif 11030 11031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11032 find out it does not work in some platform. */ 11033 #ifndef LT_DLLAZY_OR_NOW 11034 # ifdef RTLD_LAZY 11035 # define LT_DLLAZY_OR_NOW RTLD_LAZY 11036 # else 11037 # ifdef DL_LAZY 11038 # define LT_DLLAZY_OR_NOW DL_LAZY 11039 # else 11040 # ifdef RTLD_NOW 11041 # define LT_DLLAZY_OR_NOW RTLD_NOW 11042 # else 11043 # ifdef DL_NOW 11044 # define LT_DLLAZY_OR_NOW DL_NOW 11045 # else 11046 # define LT_DLLAZY_OR_NOW 0 11047 # endif 11048 # endif 11049 # endif 11050 # endif 11051 #endif 11052 11053 /* When -fvisbility=hidden is used, assume the code has been annotated 11054 correspondingly for the symbols needed. */ 11055 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11056 void fnord () __attribute__((visibility("default"))); 11057 #endif 11058 11059 void fnord () { int i=42; } 11060 int main () 11061 { 11062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11063 int status = $lt_dlunknown; 11064 11065 if (self) 11066 { 11067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11068 else 11069 { 11070 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11071 else puts (dlerror ()); 11072 } 11073 /* dlclose (self); */ 11074 } 11075 else 11076 puts (dlerror ()); 11077 11078 return status; 11079 } 11080 _LT_EOF 11081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11082 (eval $ac_link) 2>&5 11083 ac_status=$? 11084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11085 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11086 (./conftest; exit; ) >&5 2>/dev/null 11087 lt_status=$? 11088 case x$lt_status in 11089 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11090 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11091 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11092 esac 11093 else : 11094 # compilation failed 11095 lt_cv_dlopen_self_static=no 11096 fi 11097 fi 11098 rm -fr conftest* 11099 11100 11101 fi 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11103 $as_echo "$lt_cv_dlopen_self_static" >&6; } 11104 fi 11105 11106 CPPFLAGS="$save_CPPFLAGS" 11107 LDFLAGS="$save_LDFLAGS" 11108 LIBS="$save_LIBS" 11109 ;; 11110 esac 11111 11112 case $lt_cv_dlopen_self in 11113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11114 *) enable_dlopen_self=unknown ;; 11115 esac 11116 11117 case $lt_cv_dlopen_self_static in 11118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11119 *) enable_dlopen_self_static=unknown ;; 11120 esac 11121 fi 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 striplib= 11140 old_striplib= 11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11142 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 11143 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11145 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11147 $as_echo "yes" >&6; } 11148 else 11149 # FIXME - insert some real tests, host_os isn't really good enough 11150 case $host_os in 11151 darwin*) 11152 if test -n "$STRIP" ; then 11153 striplib="$STRIP -x" 11154 old_striplib="$STRIP -S" 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11156 $as_echo "yes" >&6; } 11157 else 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11159 $as_echo "no" >&6; } 11160 fi 11161 ;; 11162 *) 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11164 $as_echo "no" >&6; } 11165 ;; 11166 esac 11167 fi 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 # Report which library types will actually be built 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11182 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11184 $as_echo "$can_build_shared" >&6; } 11185 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11187 $as_echo_n "checking whether to build shared libraries... " >&6; } 11188 test "$can_build_shared" = "no" && enable_shared=no 11189 11190 # On AIX, shared libraries and static libraries use the same namespace, and 11191 # are all built from PIC. 11192 case $host_os in 11193 aix3*) 11194 test "$enable_shared" = yes && enable_static=no 11195 if test -n "$RANLIB"; then 11196 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11197 postinstall_cmds='$RANLIB $lib' 11198 fi 11199 ;; 11200 11201 aix[4-9]*) 11202 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11203 test "$enable_shared" = yes && enable_static=no 11204 fi 11205 ;; 11206 esac 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11208 $as_echo "$enable_shared" >&6; } 11209 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11211 $as_echo_n "checking whether to build static libraries... " >&6; } 11212 # Make sure either enable_shared or enable_static is yes. 11213 test "$enable_shared" = yes || enable_static=yes 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11215 $as_echo "$enable_static" >&6; } 11216 11217 11218 11219 11220 fi 11221 ac_ext=c 11222 ac_cpp='$CPP $CPPFLAGS' 11223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11225 ac_compiler_gnu=$ac_cv_c_compiler_gnu 11226 11227 CC="$lt_save_CC" 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 ac_config_commands="$ac_config_commands libtool" 11242 11243 11244 11245 11246 # Only expand once: 11247 11248 11249 11250 ac_checking= 11251 . ${srcdir}/../bfd/development.sh 11252 test "$development" = true && ac_checking=yes 11253 # Check whether --enable-checking was given. 11254 if test "${enable_checking+set}" = set; then : 11255 enableval=$enable_checking; case "${enableval}" in 11256 no|none) ac_checking= ;; 11257 *) ac_checking=yes ;; 11258 esac 11259 fi 11260 if test x$ac_checking != x ; then 11261 11262 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 11263 11264 fi 11265 11266 # Check whether --enable-targets was given. 11267 if test "${enable_targets+set}" = set; then : 11268 enableval=$enable_targets; case "${enableval}" in 11269 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 11270 ;; 11271 no) enable_targets= ;; 11272 *) enable_targets=$enableval ;; 11273 esac 11274 fi 11275 11276 11277 # Set the 'development' global. 11278 . $srcdir/../bfd/development.sh 11279 11280 # Set acp_cpp_for_build variable 11281 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" 11282 11283 # Default set of GCC warnings to enable. 11284 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11285 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" 11286 11287 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11289 /* end confdefs.h. */ 11290 __GNUC__ 11291 _ACEOF 11292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11293 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11294 11295 else 11296 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" 11297 fi 11298 rm -f conftest* 11299 11300 11301 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11302 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11303 #/* end confdefs.h. */ 11304 #__GNUC__ 11305 #_ACEOF 11306 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11307 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11308 # 11309 #else 11310 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11311 #/* end confdefs.h. */ 11312 #__clang__ 11313 #_ACEOF 11314 #if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11315 # $EGREP "^__clang__$" >/dev/null 2>&1; then : 11316 # GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" 11317 #fi 11318 #rm -f conftest* 11319 11320 11321 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. 11322 WARN_WRITE_STRINGS="" 11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11324 /* end confdefs.h. */ 11325 __GNUC__ 11326 _ACEOF 11327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11328 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11329 11330 else 11331 WARN_WRITE_STRINGS="-Wwrite-strings" 11332 fi 11333 rm -f conftest* 11334 11335 11336 # Verify CC_FOR_BUILD to be compatible with warning flags 11337 11338 # Add -Wshadow if the compiler is a sufficiently recent version of GCC. 11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11340 /* end confdefs.h. */ 11341 __GNUC__ 11342 _ACEOF 11343 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11344 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : 11345 11346 else 11347 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" 11348 fi 11349 rm -f conftest* 11350 11351 11352 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. 11353 #cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354 #/* end confdefs.h. */ 11355 #__GNUC__ 11356 #_ACEOF 11357 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11358 # $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : 11359 # 11360 #else 11361 # cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11362 #/* end confdefs.h. */ 11363 #__clang__ 11364 #_ACEOF 11365 #if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | 11366 # $EGREP "^__clang__$" >/dev/null 2>&1; then : 11367 # GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" 11368 #fi 11369 #rm -f conftest* 11370 11371 11372 # Check whether --enable-werror was given. 11373 if test "${enable_werror+set}" = set; then : 11374 enableval=$enable_werror; case "${enableval}" in 11375 yes | y) ERROR_ON_WARNING="yes" ;; 11376 no | n) ERROR_ON_WARNING="no" ;; 11377 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; 11378 esac 11379 fi 11380 11381 11382 # Disable -Wformat by default when using gcc on mingw 11383 case "${host}" in 11384 *-*-mingw32*) 11385 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then 11386 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" 11387 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" 11388 fi 11389 ;; 11390 *) ;; 11391 esac 11392 11393 # Enable -Werror by default when using gcc. Turn it off for releases. 11394 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then 11395 ERROR_ON_WARNING=yes 11396 fi 11397 11398 NO_WERROR= 11399 if test "${ERROR_ON_WARNING}" = yes ; then 11400 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" 11401 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" 11402 NO_WERROR="-Wno-error" 11403 fi 11404 11405 if test "${GCC}" = yes ; then 11406 WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11407 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" 11408 fi 11409 11410 # Check whether --enable-build-warnings was given. 11411 if test "${enable_build_warnings+set}" = set; then : 11412 enableval=$enable_build_warnings; case "${enableval}" in 11413 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" 11414 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; 11415 no) if test "${GCC}" = yes ; then 11416 WARN_CFLAGS="-w" 11417 WARN_CFLAGS_FOR_BUILD="-w" 11418 fi;; 11419 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11420 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" 11421 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; 11422 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` 11423 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" 11424 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; 11425 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` 11426 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; 11427 esac 11428 fi 11429 11430 11431 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then 11432 echo "Setting warning flags = $WARN_CFLAGS" 6>&1 11433 fi 11434 11435 11436 11437 11438 11439 11440 11441 ac_config_headers="$ac_config_headers config.h:config.in" 11442 11443 11444 # PR 14072 11445 11446 11447 if test -z "$target" ; then 11448 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 11449 fi 11450 11451 11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11453 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11454 # Check whether --enable-maintainer-mode was given. 11455 if test "${enable_maintainer_mode+set}" = set; then : 11456 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11457 else 11458 USE_MAINTAINER_MODE=no 11459 fi 11460 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11462 $as_echo "$USE_MAINTAINER_MODE" >&6; } 11463 if test $USE_MAINTAINER_MODE = yes; then 11464 MAINTAINER_MODE_TRUE= 11465 MAINTAINER_MODE_FALSE='#' 11466 else 11467 MAINTAINER_MODE_TRUE='#' 11468 MAINTAINER_MODE_FALSE= 11469 fi 11470 11471 MAINT=$MAINTAINER_MODE_TRUE 11472 11473 11474 case ${build_alias} in 11475 "") build_noncanonical=${build} ;; 11476 *) build_noncanonical=${build_alias} ;; 11477 esac 11478 11479 case ${host_alias} in 11480 "") host_noncanonical=${build_noncanonical} ;; 11481 *) host_noncanonical=${host_alias} ;; 11482 esac 11483 11484 case ${target_alias} in 11485 "") target_noncanonical=${host_noncanonical} ;; 11486 *) target_noncanonical=${target_alias} ;; 11487 esac 11488 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 11490 $as_echo_n "checking whether to install libbfd... " >&6; } 11491 # Check whether --enable-install-libbfd was given. 11492 if test "${enable_install_libbfd+set}" = set; then : 11493 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 11494 else 11495 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 11496 install_libbfd_p=yes 11497 else 11498 install_libbfd_p=no 11499 fi 11500 fi 11501 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 11503 $as_echo "$install_libbfd_p" >&6; } 11504 if test $install_libbfd_p = yes; then 11505 INSTALL_LIBBFD_TRUE= 11506 INSTALL_LIBBFD_FALSE='#' 11507 else 11508 INSTALL_LIBBFD_TRUE='#' 11509 INSTALL_LIBBFD_FALSE= 11510 fi 11511 11512 # Need _noncanonical variables for this. 11513 11514 11515 11516 11517 # libbfd.a is a host library containing target dependent code 11518 bfdlibdir='$(libdir)' 11519 bfdincludedir='$(includedir)' 11520 if test "${host}" != "${target}"; then 11521 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 11522 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 11523 fi 11524 11525 11526 11527 11528 11529 11530 11531 11532 # host-specific stuff: 11533 11534 ALL_LINGUAS="da de es fi fr ga id it nl pt_BR ro sr sv tr uk vi zh_CN" 11535 11536 MKINSTALLDIRS= 11537 if test -n "$ac_aux_dir"; then 11538 case "$ac_aux_dir" in 11539 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 11540 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 11541 esac 11542 fi 11543 if test -z "$MKINSTALLDIRS"; then 11544 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 11545 fi 11546 11547 11548 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11550 $as_echo_n "checking whether NLS is requested... " >&6; } 11551 # Check whether --enable-nls was given. 11552 if test "${enable_nls+set}" = set; then : 11553 enableval=$enable_nls; USE_NLS=$enableval 11554 else 11555 USE_NLS=yes 11556 fi 11557 11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11559 $as_echo "$USE_NLS" >&6; } 11560 11561 11562 11563 11564 11565 11566 # Prepare PATH_SEPARATOR. 11567 # The user is always right. 11568 if test "${PATH_SEPARATOR+set}" != set; then 11569 echo "#! /bin/sh" >conf$$.sh 11570 echo "exit 0" >>conf$$.sh 11571 chmod +x conf$$.sh 11572 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11573 PATH_SEPARATOR=';' 11574 else 11575 PATH_SEPARATOR=: 11576 fi 11577 rm -f conf$$.sh 11578 fi 11579 11580 # Find out how to test for executable files. Don't use a zero-byte file, 11581 # as systems may use methods other than mode bits to determine executability. 11582 cat >conf$$.file <<_ASEOF 11583 #! /bin/sh 11584 exit 0 11585 _ASEOF 11586 chmod +x conf$$.file 11587 if test -x conf$$.file >/dev/null 2>&1; then 11588 ac_executable_p="test -x" 11589 else 11590 ac_executable_p="test -f" 11591 fi 11592 rm -f conf$$.file 11593 11594 # Extract the first word of "msgfmt", so it can be a program name with args. 11595 set dummy msgfmt; ac_word=$2 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11597 $as_echo_n "checking for $ac_word... " >&6; } 11598 if ${ac_cv_path_MSGFMT+:} false; then : 11599 $as_echo_n "(cached) " >&6 11600 else 11601 case "$MSGFMT" in 11602 [\\/]* | ?:[\\/]*) 11603 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11604 ;; 11605 *) 11606 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11607 for ac_dir in $PATH; do 11608 IFS="$ac_save_IFS" 11609 test -z "$ac_dir" && ac_dir=. 11610 for ac_exec_ext in '' $ac_executable_extensions; do 11611 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11612 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 11613 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11614 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 11615 break 2 11616 fi 11617 fi 11618 done 11619 done 11620 IFS="$ac_save_IFS" 11621 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 11622 ;; 11623 esac 11624 fi 11625 MSGFMT="$ac_cv_path_MSGFMT" 11626 if test "$MSGFMT" != ":"; then 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11628 $as_echo "$MSGFMT" >&6; } 11629 else 11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11631 $as_echo "no" >&6; } 11632 fi 11633 11634 # Extract the first word of "gmsgfmt", so it can be a program name with args. 11635 set dummy gmsgfmt; ac_word=$2 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11637 $as_echo_n "checking for $ac_word... " >&6; } 11638 if ${ac_cv_path_GMSGFMT+:} false; then : 11639 $as_echo_n "(cached) " >&6 11640 else 11641 case $GMSGFMT in 11642 [\\/]* | ?:[\\/]*) 11643 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 11644 ;; 11645 *) 11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11647 for as_dir in $PATH 11648 do 11649 IFS=$as_save_IFS 11650 test -z "$as_dir" && as_dir=. 11651 for ac_exec_ext in '' $ac_executable_extensions; do 11652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11653 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11655 break 2 11656 fi 11657 done 11658 done 11659 IFS=$as_save_IFS 11660 11661 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 11662 ;; 11663 esac 11664 fi 11665 GMSGFMT=$ac_cv_path_GMSGFMT 11666 if test -n "$GMSGFMT"; then 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 11668 $as_echo "$GMSGFMT" >&6; } 11669 else 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11671 $as_echo "no" >&6; } 11672 fi 11673 11674 11675 11676 11677 # Prepare PATH_SEPARATOR. 11678 # The user is always right. 11679 if test "${PATH_SEPARATOR+set}" != set; then 11680 echo "#! /bin/sh" >conf$$.sh 11681 echo "exit 0" >>conf$$.sh 11682 chmod +x conf$$.sh 11683 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11684 PATH_SEPARATOR=';' 11685 else 11686 PATH_SEPARATOR=: 11687 fi 11688 rm -f conf$$.sh 11689 fi 11690 11691 # Find out how to test for executable files. Don't use a zero-byte file, 11692 # as systems may use methods other than mode bits to determine executability. 11693 cat >conf$$.file <<_ASEOF 11694 #! /bin/sh 11695 exit 0 11696 _ASEOF 11697 chmod +x conf$$.file 11698 if test -x conf$$.file >/dev/null 2>&1; then 11699 ac_executable_p="test -x" 11700 else 11701 ac_executable_p="test -f" 11702 fi 11703 rm -f conf$$.file 11704 11705 # Extract the first word of "xgettext", so it can be a program name with args. 11706 set dummy xgettext; ac_word=$2 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11708 $as_echo_n "checking for $ac_word... " >&6; } 11709 if ${ac_cv_path_XGETTEXT+:} false; then : 11710 $as_echo_n "(cached) " >&6 11711 else 11712 case "$XGETTEXT" in 11713 [\\/]* | ?:[\\/]*) 11714 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 11715 ;; 11716 *) 11717 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11718 for ac_dir in $PATH; do 11719 IFS="$ac_save_IFS" 11720 test -z "$ac_dir" && ac_dir=. 11721 for ac_exec_ext in '' $ac_executable_extensions; do 11722 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11723 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 11724 (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 11725 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 11726 break 2 11727 fi 11728 fi 11729 done 11730 done 11731 IFS="$ac_save_IFS" 11732 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 11733 ;; 11734 esac 11735 fi 11736 XGETTEXT="$ac_cv_path_XGETTEXT" 11737 if test "$XGETTEXT" != ":"; then 11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 11739 $as_echo "$XGETTEXT" >&6; } 11740 else 11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11742 $as_echo "no" >&6; } 11743 fi 11744 11745 rm -f messages.po 11746 11747 11748 # Prepare PATH_SEPARATOR. 11749 # The user is always right. 11750 if test "${PATH_SEPARATOR+set}" != set; then 11751 echo "#! /bin/sh" >conf$$.sh 11752 echo "exit 0" >>conf$$.sh 11753 chmod +x conf$$.sh 11754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11755 PATH_SEPARATOR=';' 11756 else 11757 PATH_SEPARATOR=: 11758 fi 11759 rm -f conf$$.sh 11760 fi 11761 11762 # Find out how to test for executable files. Don't use a zero-byte file, 11763 # as systems may use methods other than mode bits to determine executability. 11764 cat >conf$$.file <<_ASEOF 11765 #! /bin/sh 11766 exit 0 11767 _ASEOF 11768 chmod +x conf$$.file 11769 if test -x conf$$.file >/dev/null 2>&1; then 11770 ac_executable_p="test -x" 11771 else 11772 ac_executable_p="test -f" 11773 fi 11774 rm -f conf$$.file 11775 11776 # Extract the first word of "msgmerge", so it can be a program name with args. 11777 set dummy msgmerge; ac_word=$2 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11779 $as_echo_n "checking for $ac_word... " >&6; } 11780 if ${ac_cv_path_MSGMERGE+:} false; then : 11781 $as_echo_n "(cached) " >&6 11782 else 11783 case "$MSGMERGE" in 11784 [\\/]* | ?:[\\/]*) 11785 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 11786 ;; 11787 *) 11788 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11789 for ac_dir in $PATH; do 11790 IFS="$ac_save_IFS" 11791 test -z "$ac_dir" && ac_dir=. 11792 for ac_exec_ext in '' $ac_executable_extensions; do 11793 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11794 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 11795 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 11796 break 2 11797 fi 11798 fi 11799 done 11800 done 11801 IFS="$ac_save_IFS" 11802 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 11803 ;; 11804 esac 11805 fi 11806 MSGMERGE="$ac_cv_path_MSGMERGE" 11807 if test "$MSGMERGE" != ":"; then 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 11809 $as_echo "$MSGMERGE" >&6; } 11810 else 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11812 $as_echo "no" >&6; } 11813 fi 11814 11815 11816 if test "$GMSGFMT" != ":"; then 11817 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 11818 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11819 : ; 11820 else 11821 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 11823 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 11824 GMSGFMT=":" 11825 fi 11826 fi 11827 11828 if test "$XGETTEXT" != ":"; then 11829 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 11830 (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 11831 : ; 11832 else 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 11834 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 11835 XGETTEXT=":" 11836 fi 11837 rm -f messages.po 11838 fi 11839 11840 ac_config_commands="$ac_config_commands default-1" 11841 11842 11843 11844 if test "X$prefix" = "XNONE"; then 11845 acl_final_prefix="$ac_default_prefix" 11846 else 11847 acl_final_prefix="$prefix" 11848 fi 11849 if test "X$exec_prefix" = "XNONE"; then 11850 acl_final_exec_prefix='${prefix}' 11851 else 11852 acl_final_exec_prefix="$exec_prefix" 11853 fi 11854 acl_save_prefix="$prefix" 11855 prefix="$acl_final_prefix" 11856 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 11857 prefix="$acl_save_prefix" 11858 11859 11860 # Check whether --with-gnu-ld was given. 11861 if test "${with_gnu_ld+set}" = set; then : 11862 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11863 else 11864 with_gnu_ld=no 11865 fi 11866 11867 # Prepare PATH_SEPARATOR. 11868 # The user is always right. 11869 if test "${PATH_SEPARATOR+set}" != set; then 11870 echo "#! /bin/sh" >conf$$.sh 11871 echo "exit 0" >>conf$$.sh 11872 chmod +x conf$$.sh 11873 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11874 PATH_SEPARATOR=';' 11875 else 11876 PATH_SEPARATOR=: 11877 fi 11878 rm -f conf$$.sh 11879 fi 11880 ac_prog=ld 11881 if test "$GCC" = yes; then 11882 # Check if gcc -print-prog-name=ld gives a path. 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 11884 $as_echo_n "checking for ld used by GCC... " >&6; } 11885 case $host in 11886 *-*-mingw*) 11887 # gcc leaves a trailing carriage return which upsets mingw 11888 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11889 *) 11890 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11891 esac 11892 case $ac_prog in 11893 # Accept absolute paths. 11894 [\\/]* | [A-Za-z]:[\\/]*) 11895 re_direlt='/[^/][^/]*/\.\./' 11896 # Canonicalize the path of ld 11897 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 11898 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 11899 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 11900 done 11901 test -z "$LD" && LD="$ac_prog" 11902 ;; 11903 "") 11904 # If it fails, then pretend we aren't using GCC. 11905 ac_prog=ld 11906 ;; 11907 *) 11908 # If it is relative, then search for the first ld in PATH. 11909 with_gnu_ld=unknown 11910 ;; 11911 esac 11912 elif test "$with_gnu_ld" = yes; then 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11914 $as_echo_n "checking for GNU ld... " >&6; } 11915 else 11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11917 $as_echo_n "checking for non-GNU ld... " >&6; } 11918 fi 11919 if ${acl_cv_path_LD+:} false; then : 11920 $as_echo_n "(cached) " >&6 11921 else 11922 if test -z "$LD"; then 11923 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 11924 for ac_dir in $PATH; do 11925 test -z "$ac_dir" && ac_dir=. 11926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11927 acl_cv_path_LD="$ac_dir/$ac_prog" 11928 # Check to see if the program is GNU ld. I'd rather use --version, 11929 # but apparently some GNU ld's only accept -v. 11930 # Break only if it was the GNU/non-GNU ld that we prefer. 11931 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 11932 test "$with_gnu_ld" != no && break 11933 else 11934 test "$with_gnu_ld" != yes && break 11935 fi 11936 fi 11937 done 11938 IFS="$ac_save_ifs" 11939 else 11940 acl_cv_path_LD="$LD" # Let the user override the test with a path. 11941 fi 11942 fi 11943 11944 LD="$acl_cv_path_LD" 11945 if test -n "$LD"; then 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11947 $as_echo "$LD" >&6; } 11948 else 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11950 $as_echo "no" >&6; } 11951 fi 11952 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11954 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11955 if ${acl_cv_prog_gnu_ld+:} false; then : 11956 $as_echo_n "(cached) " >&6 11957 else 11958 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 11959 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 11960 acl_cv_prog_gnu_ld=yes 11961 else 11962 acl_cv_prog_gnu_ld=no 11963 fi 11964 fi 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 11966 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 11967 with_gnu_ld=$acl_cv_prog_gnu_ld 11968 11969 11970 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 11972 $as_echo_n "checking for shared library run path origin... " >&6; } 11973 if ${acl_cv_rpath+:} false; then : 11974 $as_echo_n "(cached) " >&6 11975 else 11976 11977 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 11978 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 11979 . ./conftest.sh 11980 rm -f ./conftest.sh 11981 acl_cv_rpath=done 11982 11983 fi 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 11985 $as_echo "$acl_cv_rpath" >&6; } 11986 wl="$acl_cv_wl" 11987 libext="$acl_cv_libext" 11988 shlibext="$acl_cv_shlibext" 11989 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 11990 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 11991 hardcode_direct="$acl_cv_hardcode_direct" 11992 hardcode_minus_L="$acl_cv_hardcode_minus_L" 11993 # Check whether --enable-rpath was given. 11994 if test "${enable_rpath+set}" = set; then : 11995 enableval=$enable_rpath; : 11996 else 11997 enable_rpath=yes 11998 fi 11999 12000 12001 12002 12003 12004 12005 12006 12007 use_additional=yes 12008 12009 acl_save_prefix="$prefix" 12010 prefix="$acl_final_prefix" 12011 acl_save_exec_prefix="$exec_prefix" 12012 exec_prefix="$acl_final_exec_prefix" 12013 12014 eval additional_includedir=\"$includedir\" 12015 eval additional_libdir=\"$libdir\" 12016 12017 exec_prefix="$acl_save_exec_prefix" 12018 prefix="$acl_save_prefix" 12019 12020 12021 # Check whether --with-libiconv-prefix was given. 12022 if test "${with_libiconv_prefix+set}" = set; then : 12023 withval=$with_libiconv_prefix; 12024 if test "X$withval" = "Xno"; then 12025 use_additional=no 12026 else 12027 if test "X$withval" = "X"; then 12028 12029 acl_save_prefix="$prefix" 12030 prefix="$acl_final_prefix" 12031 acl_save_exec_prefix="$exec_prefix" 12032 exec_prefix="$acl_final_exec_prefix" 12033 12034 eval additional_includedir=\"$includedir\" 12035 eval additional_libdir=\"$libdir\" 12036 12037 exec_prefix="$acl_save_exec_prefix" 12038 prefix="$acl_save_prefix" 12039 12040 else 12041 additional_includedir="$withval/include" 12042 additional_libdir="$withval/lib" 12043 fi 12044 fi 12045 12046 fi 12047 12048 12049 # Check whether --with-libiconv-type was given. 12050 if test "${with_libiconv_type+set}" = set; then : 12051 withval=$with_libiconv_type; with_libiconv_type=$withval 12052 else 12053 with_libiconv_type=auto 12054 fi 12055 12056 lib_type=`eval echo \$with_libiconv_type` 12057 12058 LIBICONV= 12059 LTLIBICONV= 12060 INCICONV= 12061 rpathdirs= 12062 ltrpathdirs= 12063 names_already_handled= 12064 names_next_round='iconv ' 12065 while test -n "$names_next_round"; do 12066 names_this_round="$names_next_round" 12067 names_next_round= 12068 for name in $names_this_round; do 12069 already_handled= 12070 for n in $names_already_handled; do 12071 if test "$n" = "$name"; then 12072 already_handled=yes 12073 break 12074 fi 12075 done 12076 if test -z "$already_handled"; then 12077 names_already_handled="$names_already_handled $name" 12078 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12079 eval value=\"\$HAVE_LIB$uppername\" 12080 if test -n "$value"; then 12081 if test "$value" = yes; then 12082 eval value=\"\$LIB$uppername\" 12083 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 12084 eval value=\"\$LTLIB$uppername\" 12085 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 12086 else 12087 : 12088 fi 12089 else 12090 found_dir= 12091 found_la= 12092 found_so= 12093 found_a= 12094 if test $use_additional = yes; then 12095 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12096 found_dir="$additional_libdir" 12097 found_so="$additional_libdir/lib$name.$shlibext" 12098 if test -f "$additional_libdir/lib$name.la"; then 12099 found_la="$additional_libdir/lib$name.la" 12100 fi 12101 elif test x$lib_type != xshared; then 12102 if test -f "$additional_libdir/lib$name.$libext"; then 12103 found_dir="$additional_libdir" 12104 found_a="$additional_libdir/lib$name.$libext" 12105 if test -f "$additional_libdir/lib$name.la"; then 12106 found_la="$additional_libdir/lib$name.la" 12107 fi 12108 fi 12109 fi 12110 fi 12111 if test "X$found_dir" = "X"; then 12112 for x in $LDFLAGS $LTLIBICONV; do 12113 12114 acl_save_prefix="$prefix" 12115 prefix="$acl_final_prefix" 12116 acl_save_exec_prefix="$exec_prefix" 12117 exec_prefix="$acl_final_exec_prefix" 12118 eval x=\"$x\" 12119 exec_prefix="$acl_save_exec_prefix" 12120 prefix="$acl_save_prefix" 12121 12122 case "$x" in 12123 -L*) 12124 dir=`echo "X$x" | sed -e 's/^X-L//'` 12125 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12126 found_dir="$dir" 12127 found_so="$dir/lib$name.$shlibext" 12128 if test -f "$dir/lib$name.la"; then 12129 found_la="$dir/lib$name.la" 12130 fi 12131 elif test x$lib_type != xshared; then 12132 if test -f "$dir/lib$name.$libext"; then 12133 found_dir="$dir" 12134 found_a="$dir/lib$name.$libext" 12135 if test -f "$dir/lib$name.la"; then 12136 found_la="$dir/lib$name.la" 12137 fi 12138 fi 12139 fi 12140 ;; 12141 esac 12142 if test "X$found_dir" != "X"; then 12143 break 12144 fi 12145 done 12146 fi 12147 if test "X$found_dir" != "X"; then 12148 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 12149 if test "X$found_so" != "X"; then 12150 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 12151 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12152 else 12153 haveit= 12154 for x in $ltrpathdirs; do 12155 if test "X$x" = "X$found_dir"; then 12156 haveit=yes 12157 break 12158 fi 12159 done 12160 if test -z "$haveit"; then 12161 ltrpathdirs="$ltrpathdirs $found_dir" 12162 fi 12163 if test "$hardcode_direct" = yes; then 12164 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12165 else 12166 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 12167 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12168 haveit= 12169 for x in $rpathdirs; do 12170 if test "X$x" = "X$found_dir"; then 12171 haveit=yes 12172 break 12173 fi 12174 done 12175 if test -z "$haveit"; then 12176 rpathdirs="$rpathdirs $found_dir" 12177 fi 12178 else 12179 haveit= 12180 for x in $LDFLAGS $LIBICONV; do 12181 12182 acl_save_prefix="$prefix" 12183 prefix="$acl_final_prefix" 12184 acl_save_exec_prefix="$exec_prefix" 12185 exec_prefix="$acl_final_exec_prefix" 12186 eval x=\"$x\" 12187 exec_prefix="$acl_save_exec_prefix" 12188 prefix="$acl_save_prefix" 12189 12190 if test "X$x" = "X-L$found_dir"; then 12191 haveit=yes 12192 break 12193 fi 12194 done 12195 if test -z "$haveit"; then 12196 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 12197 fi 12198 if test "$hardcode_minus_L" != no; then 12199 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12200 else 12201 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12202 fi 12203 fi 12204 fi 12205 fi 12206 else 12207 if test "X$found_a" != "X"; then 12208 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 12209 else 12210 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 12211 fi 12212 fi 12213 additional_includedir= 12214 case "$found_dir" in 12215 */lib | */lib/) 12216 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 12217 additional_includedir="$basedir/include" 12218 ;; 12219 esac 12220 if test "X$additional_includedir" != "X"; then 12221 if test "X$additional_includedir" != "X/usr/include"; then 12222 haveit= 12223 if test "X$additional_includedir" = "X/usr/local/include"; then 12224 if test -n "$GCC"; then 12225 case $host_os in 12226 linux*) haveit=yes;; 12227 esac 12228 fi 12229 fi 12230 if test -z "$haveit"; then 12231 for x in $CPPFLAGS $INCICONV; do 12232 12233 acl_save_prefix="$prefix" 12234 prefix="$acl_final_prefix" 12235 acl_save_exec_prefix="$exec_prefix" 12236 exec_prefix="$acl_final_exec_prefix" 12237 eval x=\"$x\" 12238 exec_prefix="$acl_save_exec_prefix" 12239 prefix="$acl_save_prefix" 12240 12241 if test "X$x" = "X-I$additional_includedir"; then 12242 haveit=yes 12243 break 12244 fi 12245 done 12246 if test -z "$haveit"; then 12247 if test -d "$additional_includedir"; then 12248 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 12249 fi 12250 fi 12251 fi 12252 fi 12253 fi 12254 if test -n "$found_la"; then 12255 save_libdir="$libdir" 12256 case "$found_la" in 12257 */* | *\\*) . "$found_la" ;; 12258 *) . "./$found_la" ;; 12259 esac 12260 libdir="$save_libdir" 12261 for dep in $dependency_libs; do 12262 case "$dep" in 12263 -L*) 12264 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 12265 if test "X$additional_libdir" != "X/usr/lib"; then 12266 haveit= 12267 if test "X$additional_libdir" = "X/usr/local/lib"; then 12268 if test -n "$GCC"; then 12269 case $host_os in 12270 linux*) haveit=yes;; 12271 esac 12272 fi 12273 fi 12274 if test -z "$haveit"; then 12275 haveit= 12276 for x in $LDFLAGS $LIBICONV; do 12277 12278 acl_save_prefix="$prefix" 12279 prefix="$acl_final_prefix" 12280 acl_save_exec_prefix="$exec_prefix" 12281 exec_prefix="$acl_final_exec_prefix" 12282 eval x=\"$x\" 12283 exec_prefix="$acl_save_exec_prefix" 12284 prefix="$acl_save_prefix" 12285 12286 if test "X$x" = "X-L$additional_libdir"; then 12287 haveit=yes 12288 break 12289 fi 12290 done 12291 if test -z "$haveit"; then 12292 if test -d "$additional_libdir"; then 12293 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 12294 fi 12295 fi 12296 haveit= 12297 for x in $LDFLAGS $LTLIBICONV; do 12298 12299 acl_save_prefix="$prefix" 12300 prefix="$acl_final_prefix" 12301 acl_save_exec_prefix="$exec_prefix" 12302 exec_prefix="$acl_final_exec_prefix" 12303 eval x=\"$x\" 12304 exec_prefix="$acl_save_exec_prefix" 12305 prefix="$acl_save_prefix" 12306 12307 if test "X$x" = "X-L$additional_libdir"; then 12308 haveit=yes 12309 break 12310 fi 12311 done 12312 if test -z "$haveit"; then 12313 if test -d "$additional_libdir"; then 12314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 12315 fi 12316 fi 12317 fi 12318 fi 12319 ;; 12320 -R*) 12321 dir=`echo "X$dep" | sed -e 's/^X-R//'` 12322 if test "$enable_rpath" != no; then 12323 haveit= 12324 for x in $rpathdirs; do 12325 if test "X$x" = "X$dir"; then 12326 haveit=yes 12327 break 12328 fi 12329 done 12330 if test -z "$haveit"; then 12331 rpathdirs="$rpathdirs $dir" 12332 fi 12333 haveit= 12334 for x in $ltrpathdirs; do 12335 if test "X$x" = "X$dir"; then 12336 haveit=yes 12337 break 12338 fi 12339 done 12340 if test -z "$haveit"; then 12341 ltrpathdirs="$ltrpathdirs $dir" 12342 fi 12343 fi 12344 ;; 12345 -l*) 12346 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 12347 ;; 12348 *.la) 12349 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 12350 ;; 12351 *) 12352 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 12353 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 12354 ;; 12355 esac 12356 done 12357 fi 12358 else 12359 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 12360 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12361 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 12362 else 12363 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 12364 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 12365 fi 12366 fi 12367 fi 12368 fi 12369 done 12370 done 12371 if test "X$rpathdirs" != "X"; then 12372 if test -n "$hardcode_libdir_separator"; then 12373 alldirs= 12374 for found_dir in $rpathdirs; do 12375 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 12376 done 12377 acl_save_libdir="$libdir" 12378 libdir="$alldirs" 12379 eval flag=\"$hardcode_libdir_flag_spec\" 12380 libdir="$acl_save_libdir" 12381 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12382 else 12383 for found_dir in $rpathdirs; do 12384 acl_save_libdir="$libdir" 12385 libdir="$found_dir" 12386 eval flag=\"$hardcode_libdir_flag_spec\" 12387 libdir="$acl_save_libdir" 12388 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 12389 done 12390 fi 12391 fi 12392 if test "X$ltrpathdirs" != "X"; then 12393 for found_dir in $ltrpathdirs; do 12394 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 12395 done 12396 fi 12397 12398 12399 12400 12401 12402 if test -f ../gettext/uninstalled-config.sh; then 12403 relative_builddir='$(top_builddir)/../gettext' 12404 . ../gettext/uninstalled-config.sh 12405 else 12406 # The sister gettext directory doesn't exist and won't collect information on 12407 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 12432 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 12433 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 12434 $as_echo_n "(cached) " >&6 12435 else 12436 gt_save_LIBS="$LIBS" 12437 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12439 /* end confdefs.h. */ 12440 #include <CoreFoundation/CFPreferences.h> 12441 int 12442 main () 12443 { 12444 CFPreferencesCopyAppValue(NULL, NULL) 12445 ; 12446 return 0; 12447 } 12448 _ACEOF 12449 if ac_fn_c_try_link "$LINENO"; then : 12450 gt_cv_func_CFPreferencesCopyAppValue=yes 12451 else 12452 gt_cv_func_CFPreferencesCopyAppValue=no 12453 fi 12454 rm -f core conftest.err conftest.$ac_objext \ 12455 conftest$ac_exeext conftest.$ac_ext 12456 LIBS="$gt_save_LIBS" 12457 fi 12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 12459 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 12460 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 12461 12462 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 12463 12464 fi 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 12466 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 12467 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 12468 $as_echo_n "(cached) " >&6 12469 else 12470 gt_save_LIBS="$LIBS" 12471 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473 /* end confdefs.h. */ 12474 #include <CoreFoundation/CFLocale.h> 12475 int 12476 main () 12477 { 12478 CFLocaleCopyPreferredLanguages(); 12479 ; 12480 return 0; 12481 } 12482 _ACEOF 12483 if ac_fn_c_try_link "$LINENO"; then : 12484 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 12485 else 12486 gt_cv_func_CFLocaleCopyPreferredLanguages=no 12487 fi 12488 rm -f core conftest.err conftest.$ac_objext \ 12489 conftest$ac_exeext conftest.$ac_ext 12490 LIBS="$gt_save_LIBS" 12491 fi 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 12493 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 12494 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12495 12496 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 12497 12498 fi 12499 INTL_MACOSX_LIBS= 12500 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 12501 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 12502 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 12503 fi 12504 12505 12506 12507 12508 12509 12510 LIBINTL= 12511 LTLIBINTL= 12512 POSUB= 12513 12514 case " $gt_needs " in 12515 *" need-formatstring-macros "*) gt_api_version=3 ;; 12516 *" need-ngettext "*) gt_api_version=2 ;; 12517 *) gt_api_version=1 ;; 12518 esac 12519 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 12520 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 12521 12522 if test "$USE_NLS" = "yes"; then 12523 gt_use_preinstalled_gnugettext=no 12524 12525 12526 if test $gt_api_version -ge 3; then 12527 gt_revision_test_code=' 12528 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12529 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 12530 #endif 12531 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 12532 ' 12533 else 12534 gt_revision_test_code= 12535 fi 12536 if test $gt_api_version -ge 2; then 12537 gt_expression_test_code=' + * ngettext ("", "", 0)' 12538 else 12539 gt_expression_test_code= 12540 fi 12541 12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 12543 $as_echo_n "checking for GNU gettext in libc... " >&6; } 12544 if eval \${$gt_func_gnugettext_libc+:} false; then : 12545 $as_echo_n "(cached) " >&6 12546 else 12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12548 /* end confdefs.h. */ 12549 12550 #include <libintl.h> 12551 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 12552 extern int _nl_msg_cat_cntr; 12553 extern int *_nl_domain_bindings; 12554 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 12555 #else 12556 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 12557 #endif 12558 $gt_revision_test_code 12559 12560 int 12561 main () 12562 { 12563 12564 bindtextdomain ("", ""); 12565 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 12566 12567 ; 12568 return 0; 12569 } 12570 _ACEOF 12571 if ac_fn_c_try_link "$LINENO"; then : 12572 eval "$gt_func_gnugettext_libc=yes" 12573 else 12574 eval "$gt_func_gnugettext_libc=no" 12575 fi 12576 rm -f core conftest.err conftest.$ac_objext \ 12577 conftest$ac_exeext conftest.$ac_ext 12578 fi 12579 eval ac_res=\$$gt_func_gnugettext_libc 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 12581 $as_echo "$ac_res" >&6; } 12582 12583 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 12584 12585 12586 12587 12588 12589 am_save_CPPFLAGS="$CPPFLAGS" 12590 12591 for element in $INCICONV; do 12592 haveit= 12593 for x in $CPPFLAGS; do 12594 12595 acl_save_prefix="$prefix" 12596 prefix="$acl_final_prefix" 12597 acl_save_exec_prefix="$exec_prefix" 12598 exec_prefix="$acl_final_exec_prefix" 12599 eval x=\"$x\" 12600 exec_prefix="$acl_save_exec_prefix" 12601 prefix="$acl_save_prefix" 12602 12603 if test "X$x" = "X$element"; then 12604 haveit=yes 12605 break 12606 fi 12607 done 12608 if test -z "$haveit"; then 12609 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 12610 fi 12611 done 12612 12613 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 12615 $as_echo_n "checking for iconv... " >&6; } 12616 if ${am_cv_func_iconv+:} false; then : 12617 $as_echo_n "(cached) " >&6 12618 else 12619 12620 am_cv_func_iconv="no, consider installing GNU libiconv" 12621 am_cv_lib_iconv=no 12622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12623 /* end confdefs.h. */ 12624 12625 #include <stdlib.h> 12626 #include <iconv.h> 12627 12628 int 12629 main () 12630 { 12631 iconv_t cd = iconv_open("",""); 12632 iconv(cd,NULL,NULL,NULL,NULL); 12633 iconv_close(cd); 12634 ; 12635 return 0; 12636 } 12637 _ACEOF 12638 if ac_fn_c_try_link "$LINENO"; then : 12639 am_cv_func_iconv=yes 12640 fi 12641 rm -f core conftest.err conftest.$ac_objext \ 12642 conftest$ac_exeext conftest.$ac_ext 12643 if test "$am_cv_func_iconv" != yes; then 12644 am_save_LIBS="$LIBS" 12645 LIBS="$LIBS $LIBICONV" 12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12647 /* end confdefs.h. */ 12648 12649 #include <stdlib.h> 12650 #include <iconv.h> 12651 12652 int 12653 main () 12654 { 12655 iconv_t cd = iconv_open("",""); 12656 iconv(cd,NULL,NULL,NULL,NULL); 12657 iconv_close(cd); 12658 ; 12659 return 0; 12660 } 12661 _ACEOF 12662 if ac_fn_c_try_link "$LINENO"; then : 12663 am_cv_lib_iconv=yes 12664 am_cv_func_iconv=yes 12665 fi 12666 rm -f core conftest.err conftest.$ac_objext \ 12667 conftest$ac_exeext conftest.$ac_ext 12668 LIBS="$am_save_LIBS" 12669 fi 12670 12671 fi 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 12673 $as_echo "$am_cv_func_iconv" >&6; } 12674 if test "$am_cv_func_iconv" = yes; then 12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 12676 $as_echo_n "checking for working iconv... " >&6; } 12677 if ${am_cv_func_iconv_works+:} false; then : 12678 $as_echo_n "(cached) " >&6 12679 else 12680 12681 am_save_LIBS="$LIBS" 12682 if test $am_cv_lib_iconv = yes; then 12683 LIBS="$LIBS $LIBICONV" 12684 fi 12685 am_cv_func_iconv_works=no 12686 for ac_iconv_const in '' 'const'; do 12687 if test "$cross_compiling" = yes; then : 12688 case "$host_os" in 12689 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 12690 *) am_cv_func_iconv_works="guessing yes" ;; 12691 esac 12692 else 12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12694 /* end confdefs.h. */ 12695 12696 #include <iconv.h> 12697 #include <string.h> 12698 12699 #ifndef ICONV_CONST 12700 # define ICONV_CONST $ac_iconv_const 12701 #endif 12702 12703 int 12704 main () 12705 { 12706 int result = 0; 12707 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 12708 successful returns. This is even documented in 12709 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 12710 { 12711 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 12712 if (cd_utf8_to_88591 != (iconv_t)(-1)) 12713 { 12714 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 12715 char buf[10]; 12716 ICONV_CONST char *inptr = input; 12717 size_t inbytesleft = strlen (input); 12718 char *outptr = buf; 12719 size_t outbytesleft = sizeof (buf); 12720 size_t res = iconv (cd_utf8_to_88591, 12721 &inptr, &inbytesleft, 12722 &outptr, &outbytesleft); 12723 if (res == 0) 12724 result |= 1; 12725 iconv_close (cd_utf8_to_88591); 12726 } 12727 } 12728 /* Test against Solaris 10 bug: Failures are not distinguishable from 12729 successful returns. */ 12730 { 12731 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 12732 if (cd_ascii_to_88591 != (iconv_t)(-1)) 12733 { 12734 static ICONV_CONST char input[] = "\263"; 12735 char buf[10]; 12736 ICONV_CONST char *inptr = input; 12737 size_t inbytesleft = strlen (input); 12738 char *outptr = buf; 12739 size_t outbytesleft = sizeof (buf); 12740 size_t res = iconv (cd_ascii_to_88591, 12741 &inptr, &inbytesleft, 12742 &outptr, &outbytesleft); 12743 if (res == 0) 12744 result |= 2; 12745 iconv_close (cd_ascii_to_88591); 12746 } 12747 } 12748 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 12749 { 12750 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 12751 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12752 { 12753 static ICONV_CONST char input[] = "\304"; 12754 static char buf[2] = { (char)0xDE, (char)0xAD }; 12755 ICONV_CONST char *inptr = input; 12756 size_t inbytesleft = 1; 12757 char *outptr = buf; 12758 size_t outbytesleft = 1; 12759 size_t res = iconv (cd_88591_to_utf8, 12760 &inptr, &inbytesleft, 12761 &outptr, &outbytesleft); 12762 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 12763 result |= 4; 12764 iconv_close (cd_88591_to_utf8); 12765 } 12766 } 12767 #if 0 /* This bug could be worked around by the caller. */ 12768 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 12769 { 12770 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 12771 if (cd_88591_to_utf8 != (iconv_t)(-1)) 12772 { 12773 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 12774 char buf[50]; 12775 ICONV_CONST char *inptr = input; 12776 size_t inbytesleft = strlen (input); 12777 char *outptr = buf; 12778 size_t outbytesleft = sizeof (buf); 12779 size_t res = iconv (cd_88591_to_utf8, 12780 &inptr, &inbytesleft, 12781 &outptr, &outbytesleft); 12782 if ((int)res > 0) 12783 result |= 8; 12784 iconv_close (cd_88591_to_utf8); 12785 } 12786 } 12787 #endif 12788 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 12789 provided. */ 12790 { 12791 /* Try standardized names. */ 12792 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 12793 /* Try IRIX, OSF/1 names. */ 12794 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 12795 /* Try AIX names. */ 12796 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 12797 /* Try HP-UX names. */ 12798 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 12799 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 12800 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 12801 result |= 16; 12802 if (cd1 != (iconv_t)(-1)) 12803 iconv_close (cd1); 12804 if (cd2 != (iconv_t)(-1)) 12805 iconv_close (cd2); 12806 if (cd3 != (iconv_t)(-1)) 12807 iconv_close (cd3); 12808 if (cd4 != (iconv_t)(-1)) 12809 iconv_close (cd4); 12810 } 12811 return result; 12812 12813 ; 12814 return 0; 12815 } 12816 _ACEOF 12817 if ac_fn_c_try_run "$LINENO"; then : 12818 am_cv_func_iconv_works=yes 12819 fi 12820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12821 conftest.$ac_objext conftest.beam conftest.$ac_ext 12822 fi 12823 12824 test "$am_cv_func_iconv_works" = no || break 12825 done 12826 LIBS="$am_save_LIBS" 12827 12828 fi 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 12830 $as_echo "$am_cv_func_iconv_works" >&6; } 12831 case "$am_cv_func_iconv_works" in 12832 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 12833 *) am_func_iconv=yes ;; 12834 esac 12835 else 12836 am_func_iconv=no am_cv_lib_iconv=no 12837 fi 12838 if test "$am_func_iconv" = yes; then 12839 12840 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12841 12842 fi 12843 if test "$am_cv_lib_iconv" = yes; then 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 12845 $as_echo_n "checking how to link with libiconv... " >&6; } 12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 12847 $as_echo "$LIBICONV" >&6; } 12848 else 12849 CPPFLAGS="$am_save_CPPFLAGS" 12850 LIBICONV= 12851 LTLIBICONV= 12852 fi 12853 12854 12855 12856 12857 12858 12859 use_additional=yes 12860 12861 acl_save_prefix="$prefix" 12862 prefix="$acl_final_prefix" 12863 acl_save_exec_prefix="$exec_prefix" 12864 exec_prefix="$acl_final_exec_prefix" 12865 12866 eval additional_includedir=\"$includedir\" 12867 eval additional_libdir=\"$libdir\" 12868 12869 exec_prefix="$acl_save_exec_prefix" 12870 prefix="$acl_save_prefix" 12871 12872 12873 # Check whether --with-libintl-prefix was given. 12874 if test "${with_libintl_prefix+set}" = set; then : 12875 withval=$with_libintl_prefix; 12876 if test "X$withval" = "Xno"; then 12877 use_additional=no 12878 else 12879 if test "X$withval" = "X"; then 12880 12881 acl_save_prefix="$prefix" 12882 prefix="$acl_final_prefix" 12883 acl_save_exec_prefix="$exec_prefix" 12884 exec_prefix="$acl_final_exec_prefix" 12885 12886 eval additional_includedir=\"$includedir\" 12887 eval additional_libdir=\"$libdir\" 12888 12889 exec_prefix="$acl_save_exec_prefix" 12890 prefix="$acl_save_prefix" 12891 12892 else 12893 additional_includedir="$withval/include" 12894 additional_libdir="$withval/lib" 12895 fi 12896 fi 12897 12898 fi 12899 12900 12901 # Check whether --with-libintl-type was given. 12902 if test "${with_libintl_type+set}" = set; then : 12903 withval=$with_libintl_type; with_libintl_type=$withval 12904 else 12905 with_libintl_type=auto 12906 fi 12907 12908 lib_type=`eval echo \$with_libintl_type` 12909 12910 LIBINTL= 12911 LTLIBINTL= 12912 INCINTL= 12913 rpathdirs= 12914 ltrpathdirs= 12915 names_already_handled= 12916 names_next_round='intl ' 12917 while test -n "$names_next_round"; do 12918 names_this_round="$names_next_round" 12919 names_next_round= 12920 for name in $names_this_round; do 12921 already_handled= 12922 for n in $names_already_handled; do 12923 if test "$n" = "$name"; then 12924 already_handled=yes 12925 break 12926 fi 12927 done 12928 if test -z "$already_handled"; then 12929 names_already_handled="$names_already_handled $name" 12930 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 12931 eval value=\"\$HAVE_LIB$uppername\" 12932 if test -n "$value"; then 12933 if test "$value" = yes; then 12934 eval value=\"\$LIB$uppername\" 12935 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 12936 eval value=\"\$LTLIB$uppername\" 12937 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 12938 else 12939 : 12940 fi 12941 else 12942 found_dir= 12943 found_la= 12944 found_so= 12945 found_a= 12946 if test $use_additional = yes; then 12947 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12948 found_dir="$additional_libdir" 12949 found_so="$additional_libdir/lib$name.$shlibext" 12950 if test -f "$additional_libdir/lib$name.la"; then 12951 found_la="$additional_libdir/lib$name.la" 12952 fi 12953 elif test x$lib_type != xshared; then 12954 if test -f "$additional_libdir/lib$name.$libext"; then 12955 found_dir="$additional_libdir" 12956 found_a="$additional_libdir/lib$name.$libext" 12957 if test -f "$additional_libdir/lib$name.la"; then 12958 found_la="$additional_libdir/lib$name.la" 12959 fi 12960 fi 12961 fi 12962 fi 12963 if test "X$found_dir" = "X"; then 12964 for x in $LDFLAGS $LTLIBINTL; do 12965 12966 acl_save_prefix="$prefix" 12967 prefix="$acl_final_prefix" 12968 acl_save_exec_prefix="$exec_prefix" 12969 exec_prefix="$acl_final_exec_prefix" 12970 eval x=\"$x\" 12971 exec_prefix="$acl_save_exec_prefix" 12972 prefix="$acl_save_prefix" 12973 12974 case "$x" in 12975 -L*) 12976 dir=`echo "X$x" | sed -e 's/^X-L//'` 12977 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 12978 found_dir="$dir" 12979 found_so="$dir/lib$name.$shlibext" 12980 if test -f "$dir/lib$name.la"; then 12981 found_la="$dir/lib$name.la" 12982 fi 12983 elif test x$lib_type != xshared; then 12984 if test -f "$dir/lib$name.$libext"; then 12985 found_dir="$dir" 12986 found_a="$dir/lib$name.$libext" 12987 if test -f "$dir/lib$name.la"; then 12988 found_la="$dir/lib$name.la" 12989 fi 12990 fi 12991 fi 12992 ;; 12993 esac 12994 if test "X$found_dir" != "X"; then 12995 break 12996 fi 12997 done 12998 fi 12999 if test "X$found_dir" != "X"; then 13000 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 13001 if test "X$found_so" != "X"; then 13002 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 13003 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13004 else 13005 haveit= 13006 for x in $ltrpathdirs; do 13007 if test "X$x" = "X$found_dir"; then 13008 haveit=yes 13009 break 13010 fi 13011 done 13012 if test -z "$haveit"; then 13013 ltrpathdirs="$ltrpathdirs $found_dir" 13014 fi 13015 if test "$hardcode_direct" = yes; then 13016 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13017 else 13018 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 13019 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13020 haveit= 13021 for x in $rpathdirs; do 13022 if test "X$x" = "X$found_dir"; then 13023 haveit=yes 13024 break 13025 fi 13026 done 13027 if test -z "$haveit"; then 13028 rpathdirs="$rpathdirs $found_dir" 13029 fi 13030 else 13031 haveit= 13032 for x in $LDFLAGS $LIBINTL; do 13033 13034 acl_save_prefix="$prefix" 13035 prefix="$acl_final_prefix" 13036 acl_save_exec_prefix="$exec_prefix" 13037 exec_prefix="$acl_final_exec_prefix" 13038 eval x=\"$x\" 13039 exec_prefix="$acl_save_exec_prefix" 13040 prefix="$acl_save_prefix" 13041 13042 if test "X$x" = "X-L$found_dir"; then 13043 haveit=yes 13044 break 13045 fi 13046 done 13047 if test -z "$haveit"; then 13048 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 13049 fi 13050 if test "$hardcode_minus_L" != no; then 13051 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13052 else 13053 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13054 fi 13055 fi 13056 fi 13057 fi 13058 else 13059 if test "X$found_a" != "X"; then 13060 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 13061 else 13062 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 13063 fi 13064 fi 13065 additional_includedir= 13066 case "$found_dir" in 13067 */lib | */lib/) 13068 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 13069 additional_includedir="$basedir/include" 13070 ;; 13071 esac 13072 if test "X$additional_includedir" != "X"; then 13073 if test "X$additional_includedir" != "X/usr/include"; then 13074 haveit= 13075 if test "X$additional_includedir" = "X/usr/local/include"; then 13076 if test -n "$GCC"; then 13077 case $host_os in 13078 linux*) haveit=yes;; 13079 esac 13080 fi 13081 fi 13082 if test -z "$haveit"; then 13083 for x in $CPPFLAGS $INCINTL; do 13084 13085 acl_save_prefix="$prefix" 13086 prefix="$acl_final_prefix" 13087 acl_save_exec_prefix="$exec_prefix" 13088 exec_prefix="$acl_final_exec_prefix" 13089 eval x=\"$x\" 13090 exec_prefix="$acl_save_exec_prefix" 13091 prefix="$acl_save_prefix" 13092 13093 if test "X$x" = "X-I$additional_includedir"; then 13094 haveit=yes 13095 break 13096 fi 13097 done 13098 if test -z "$haveit"; then 13099 if test -d "$additional_includedir"; then 13100 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 13101 fi 13102 fi 13103 fi 13104 fi 13105 fi 13106 if test -n "$found_la"; then 13107 save_libdir="$libdir" 13108 case "$found_la" in 13109 */* | *\\*) . "$found_la" ;; 13110 *) . "./$found_la" ;; 13111 esac 13112 libdir="$save_libdir" 13113 for dep in $dependency_libs; do 13114 case "$dep" in 13115 -L*) 13116 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13117 if test "X$additional_libdir" != "X/usr/lib"; then 13118 haveit= 13119 if test "X$additional_libdir" = "X/usr/local/lib"; then 13120 if test -n "$GCC"; then 13121 case $host_os in 13122 linux*) haveit=yes;; 13123 esac 13124 fi 13125 fi 13126 if test -z "$haveit"; then 13127 haveit= 13128 for x in $LDFLAGS $LIBINTL; do 13129 13130 acl_save_prefix="$prefix" 13131 prefix="$acl_final_prefix" 13132 acl_save_exec_prefix="$exec_prefix" 13133 exec_prefix="$acl_final_exec_prefix" 13134 eval x=\"$x\" 13135 exec_prefix="$acl_save_exec_prefix" 13136 prefix="$acl_save_prefix" 13137 13138 if test "X$x" = "X-L$additional_libdir"; then 13139 haveit=yes 13140 break 13141 fi 13142 done 13143 if test -z "$haveit"; then 13144 if test -d "$additional_libdir"; then 13145 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 13146 fi 13147 fi 13148 haveit= 13149 for x in $LDFLAGS $LTLIBINTL; do 13150 13151 acl_save_prefix="$prefix" 13152 prefix="$acl_final_prefix" 13153 acl_save_exec_prefix="$exec_prefix" 13154 exec_prefix="$acl_final_exec_prefix" 13155 eval x=\"$x\" 13156 exec_prefix="$acl_save_exec_prefix" 13157 prefix="$acl_save_prefix" 13158 13159 if test "X$x" = "X-L$additional_libdir"; then 13160 haveit=yes 13161 break 13162 fi 13163 done 13164 if test -z "$haveit"; then 13165 if test -d "$additional_libdir"; then 13166 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 13167 fi 13168 fi 13169 fi 13170 fi 13171 ;; 13172 -R*) 13173 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13174 if test "$enable_rpath" != no; then 13175 haveit= 13176 for x in $rpathdirs; do 13177 if test "X$x" = "X$dir"; then 13178 haveit=yes 13179 break 13180 fi 13181 done 13182 if test -z "$haveit"; then 13183 rpathdirs="$rpathdirs $dir" 13184 fi 13185 haveit= 13186 for x in $ltrpathdirs; do 13187 if test "X$x" = "X$dir"; then 13188 haveit=yes 13189 break 13190 fi 13191 done 13192 if test -z "$haveit"; then 13193 ltrpathdirs="$ltrpathdirs $dir" 13194 fi 13195 fi 13196 ;; 13197 -l*) 13198 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13199 ;; 13200 *.la) 13201 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13202 ;; 13203 *) 13204 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 13205 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 13206 ;; 13207 esac 13208 done 13209 fi 13210 else 13211 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 13212 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 13214 else 13215 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 13216 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 13217 fi 13218 fi 13219 fi 13220 fi 13221 done 13222 done 13223 if test "X$rpathdirs" != "X"; then 13224 if test -n "$hardcode_libdir_separator"; then 13225 alldirs= 13226 for found_dir in $rpathdirs; do 13227 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 13228 done 13229 acl_save_libdir="$libdir" 13230 libdir="$alldirs" 13231 eval flag=\"$hardcode_libdir_flag_spec\" 13232 libdir="$acl_save_libdir" 13233 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13234 else 13235 for found_dir in $rpathdirs; do 13236 acl_save_libdir="$libdir" 13237 libdir="$found_dir" 13238 eval flag=\"$hardcode_libdir_flag_spec\" 13239 libdir="$acl_save_libdir" 13240 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 13241 done 13242 fi 13243 fi 13244 if test "X$ltrpathdirs" != "X"; then 13245 for found_dir in $ltrpathdirs; do 13246 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 13247 done 13248 fi 13249 13250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 13251 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 13252 if eval \${$gt_func_gnugettext_libintl+:} false; then : 13253 $as_echo_n "(cached) " >&6 13254 else 13255 gt_save_CPPFLAGS="$CPPFLAGS" 13256 CPPFLAGS="$CPPFLAGS $INCINTL" 13257 gt_save_LIBS="$LIBS" 13258 LIBS="$LIBS $LIBINTL" 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260 /* end confdefs.h. */ 13261 13262 #include <libintl.h> 13263 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13264 extern int _nl_msg_cat_cntr; 13265 extern 13266 #ifdef __cplusplus 13267 "C" 13268 #endif 13269 const char *_nl_expand_alias (const char *); 13270 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13271 #else 13272 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13273 #endif 13274 $gt_revision_test_code 13275 13276 int 13277 main () 13278 { 13279 13280 bindtextdomain ("", ""); 13281 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13282 13283 ; 13284 return 0; 13285 } 13286 _ACEOF 13287 if ac_fn_c_try_link "$LINENO"; then : 13288 eval "$gt_func_gnugettext_libintl=yes" 13289 else 13290 eval "$gt_func_gnugettext_libintl=no" 13291 fi 13292 rm -f core conftest.err conftest.$ac_objext \ 13293 conftest$ac_exeext conftest.$ac_ext 13294 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 13295 LIBS="$LIBS $LIBICONV" 13296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13297 /* end confdefs.h. */ 13298 13299 #include <libintl.h> 13300 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13301 extern int _nl_msg_cat_cntr; 13302 extern 13303 #ifdef __cplusplus 13304 "C" 13305 #endif 13306 const char *_nl_expand_alias (const char *); 13307 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 13308 #else 13309 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 13310 #endif 13311 $gt_revision_test_code 13312 13313 int 13314 main () 13315 { 13316 13317 bindtextdomain ("", ""); 13318 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 13319 13320 ; 13321 return 0; 13322 } 13323 _ACEOF 13324 if ac_fn_c_try_link "$LINENO"; then : 13325 LIBINTL="$LIBINTL $LIBICONV" 13326 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 13327 eval "$gt_func_gnugettext_libintl=yes" 13328 13329 fi 13330 rm -f core conftest.err conftest.$ac_objext \ 13331 conftest$ac_exeext conftest.$ac_ext 13332 fi 13333 CPPFLAGS="$gt_save_CPPFLAGS" 13334 LIBS="$gt_save_LIBS" 13335 fi 13336 eval ac_res=\$$gt_func_gnugettext_libintl 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13338 $as_echo "$ac_res" >&6; } 13339 fi 13340 13341 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 13342 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 13343 && test "$PACKAGE" != gettext-runtime \ 13344 && test "$PACKAGE" != gettext-tools; }; then 13345 gt_use_preinstalled_gnugettext=yes 13346 else 13347 LIBINTL= 13348 LTLIBINTL= 13349 INCINTL= 13350 fi 13351 13352 13353 13354 if test -n "$INTL_MACOSX_LIBS"; then 13355 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13356 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13357 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 13358 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 13359 fi 13360 fi 13361 13362 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 13363 || test "$nls_cv_use_gnu_gettext" = "yes"; then 13364 13365 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 13366 13367 else 13368 USE_NLS=no 13369 fi 13370 fi 13371 13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 13373 $as_echo_n "checking whether to use NLS... " >&6; } 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 13375 $as_echo "$USE_NLS" >&6; } 13376 if test "$USE_NLS" = "yes"; then 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 13378 $as_echo_n "checking where the gettext function comes from... " >&6; } 13379 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13380 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13381 gt_source="external libintl" 13382 else 13383 gt_source="libc" 13384 fi 13385 else 13386 gt_source="included intl directory" 13387 fi 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 13389 $as_echo "$gt_source" >&6; } 13390 fi 13391 13392 if test "$USE_NLS" = "yes"; then 13393 13394 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 13395 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 13397 $as_echo_n "checking how to link with libintl... " >&6; } 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 13399 $as_echo "$LIBINTL" >&6; } 13400 13401 for element in $INCINTL; do 13402 haveit= 13403 for x in $CPPFLAGS; do 13404 13405 acl_save_prefix="$prefix" 13406 prefix="$acl_final_prefix" 13407 acl_save_exec_prefix="$exec_prefix" 13408 exec_prefix="$acl_final_exec_prefix" 13409 eval x=\"$x\" 13410 exec_prefix="$acl_save_exec_prefix" 13411 prefix="$acl_save_prefix" 13412 13413 if test "X$x" = "X$element"; then 13414 haveit=yes 13415 break 13416 fi 13417 done 13418 if test -z "$haveit"; then 13419 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13420 fi 13421 done 13422 13423 fi 13424 13425 13426 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13427 13428 13429 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 13430 13431 fi 13432 13433 POSUB=po 13434 fi 13435 13436 13437 13438 INTLLIBS="$LIBINTL" 13439 13440 13441 13442 13443 13444 13445 fi 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 13458 $as_echo_n "checking whether NLS is requested... " >&6; } 13459 if test x"$USE_NLS" != xyes; then 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13461 $as_echo "no" >&6; } 13462 else 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13464 $as_echo "yes" >&6; } 13465 13466 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 13467 13468 13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 13470 $as_echo_n "checking for catalogs to be installed... " >&6; } 13471 # Look for .po and .gmo files in the source directory. 13472 CATALOGS= 13473 XLINGUAS= 13474 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 13475 # If there aren't any .gmo files the shell will give us the 13476 # literal string "../path/to/srcdir/po/*.gmo" which has to be 13477 # weeded out. 13478 case "$cat" in *\**) 13479 continue;; 13480 esac 13481 # The quadruple backslash is collapsed to a double backslash 13482 # by the backticks, then collapsed again by the double quotes, 13483 # leaving us with one backslash in the sed expression (right 13484 # before the dot that mustn't act as a wildcard). 13485 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 13486 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 13487 # The user is allowed to set LINGUAS to a list of languages to 13488 # install catalogs for. If it's empty that means "all of them." 13489 if test "x$LINGUAS" = x; then 13490 CATALOGS="$CATALOGS $cat" 13491 XLINGUAS="$XLINGUAS $lang" 13492 else 13493 case "$LINGUAS" in *$lang*) 13494 CATALOGS="$CATALOGS $cat" 13495 XLINGUAS="$XLINGUAS $lang" 13496 ;; 13497 esac 13498 fi 13499 done 13500 LINGUAS="$XLINGUAS" 13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 13502 $as_echo "$LINGUAS" >&6; } 13503 13504 13505 DATADIRNAME=share 13506 13507 INSTOBJEXT=.mo 13508 13509 GENCAT=gencat 13510 13511 CATOBJEXT=.gmo 13512 13513 fi 13514 13515 . ${srcdir}/../bfd/configure.host 13516 13517 # Put a plausible default for CC_FOR_BUILD in Makefile. 13518 if test -z "$CC_FOR_BUILD"; then 13519 if test "x$cross_compiling" = "xno"; then 13520 CC_FOR_BUILD='$(CC)' 13521 else 13522 CC_FOR_BUILD=gcc 13523 fi 13524 fi 13525 13526 # Also set EXEEXT_FOR_BUILD. 13527 if test "x$cross_compiling" = "xno"; then 13528 EXEEXT_FOR_BUILD='$(EXEEXT)' 13529 else 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 13531 $as_echo_n "checking for build system executable suffix... " >&6; } 13532 if ${bfd_cv_build_exeext+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534 else 13535 rm -f conftest* 13536 echo 'int main () { return 0; }' > conftest.c 13537 bfd_cv_build_exeext= 13538 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 13539 for file in conftest.*; do 13540 case $file in 13541 *.c | *.o | *.obj | *.ilk | *.pdb) ;; 13542 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; 13543 esac 13544 done 13545 rm -f conftest* 13546 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no 13547 fi 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 13549 $as_echo "$bfd_cv_build_exeext" >&6; } 13550 EXEEXT_FOR_BUILD="" 13551 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} 13552 fi 13553 13554 # See whether 64-bit bfd lib has been enabled. 13555 OLD_CPPFLAGS=$CPPFLAGS 13556 # Put the old CPPFLAGS last, in case the user's CPPFLAGS point somewhere 13557 # with bfd, with -I/foo/include. We always want our bfd. 13558 CPPFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CPPFLAGS" 13559 # Note we cannot cache the result of this check because BFD64 may change 13560 # when a secondary target has been added or removed and we have no access 13561 # to this information here. 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BFD is 64-bit" >&5 13563 $as_echo_n "checking whether BFD is 64-bit... " >&6; } 13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13565 /* end confdefs.h. */ 13566 #include "bfd.h" 13567 int 13568 main () 13569 { 13570 #ifdef BFD64 13571 HAVE_BFD64 13572 #endif 13573 ; 13574 return 0; 13575 } 13576 _ACEOF 13577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13578 $EGREP "HAVE_BFD64" >/dev/null 2>&1; then : 13579 have_64_bit_bfd=yes 13580 else 13581 have_64_bit_bfd=no 13582 fi 13583 rm -f conftest* 13584 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_64_bit_bfd" >&5 13586 $as_echo "$have_64_bit_bfd" >&6; } 13587 CPPFLAGS=$OLD_CPPFLAGS 13588 13589 13590 13591 13592 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" 13593 if test "x$ac_cv_have_decl_basename" = xyes; then : 13594 ac_have_decl=1 13595 else 13596 ac_have_decl=0 13597 fi 13598 13599 cat >>confdefs.h <<_ACEOF 13600 #define HAVE_DECL_BASENAME $ac_have_decl 13601 _ACEOF 13602 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 13603 if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 13604 ac_have_decl=1 13605 else 13606 ac_have_decl=0 13607 fi 13608 13609 cat >>confdefs.h <<_ACEOF 13610 #define HAVE_DECL_STPCPY $ac_have_decl 13611 _ACEOF 13612 13613 13614 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do 13615 # since sigsetjmp might only be defined as a macro. 13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 13617 $as_echo_n "checking for sigsetjmp... " >&6; } 13618 if ${gdb_cv_func_sigsetjmp+:} false; then : 13619 $as_echo_n "(cached) " >&6 13620 else 13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13622 /* end confdefs.h. */ 13623 13624 #include <setjmp.h> 13625 13626 int 13627 main () 13628 { 13629 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); 13630 ; 13631 return 0; 13632 } 13633 _ACEOF 13634 if ac_fn_c_try_compile "$LINENO"; then : 13635 bfd_cv_func_sigsetjmp=yes 13636 else 13637 bfd_cv_func_sigsetjmp=no 13638 fi 13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13640 fi 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5 13642 $as_echo "$gdb_cv_func_sigsetjmp" >&6; } 13643 if test $bfd_cv_func_sigsetjmp = yes; then 13644 13645 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h 13646 13647 fi 13648 13649 cgen_maint=no 13650 cgendir='$(srcdir)/../../cgen' 13651 if test -r ${srcdir}/../cgen/iformat.scm; then 13652 cgendir='$(srcdir)/../cgen' 13653 fi 13654 13655 # Check whether --enable-cgen-maint was given. 13656 if test "${enable_cgen_maint+set}" = set; then : 13657 enableval=$enable_cgen_maint; case "${enableval}" in 13658 yes) cgen_maint=yes ;; 13659 no) cgen_maint=no ;; 13660 *) 13661 # Argument is a directory where cgen can be found. In some 13662 # future world cgen could be installable, but right now this 13663 # is not the case. Instead we assume the directory is a path 13664 # to the cgen source tree. 13665 cgen_maint=yes 13666 if test -r ${enableval}/iformat.scm; then 13667 # This looks like a cgen source tree. 13668 cgendir=${enableval} 13669 else 13670 as_fn_error $? "${enableval} doesn't look like a cgen source tree" "$LINENO" 5 13671 fi 13672 ;; 13673 esac 13674 fi 13675 if test x${cgen_maint} = xyes; then 13676 CGEN_MAINT_TRUE= 13677 CGEN_MAINT_FALSE='#' 13678 else 13679 CGEN_MAINT_TRUE='#' 13680 CGEN_MAINT_FALSE= 13681 fi 13682 13683 13684 13685 using_cgen=no 13686 13687 # Check if linker supports --as-needed and --no-as-needed options 13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 13689 $as_echo_n "checking linker --as-needed support... " >&6; } 13690 if ${bfd_cv_ld_as_needed+:} false; then : 13691 $as_echo_n "(cached) " >&6 13692 else 13693 bfd_cv_ld_as_needed=no 13694 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then 13695 bfd_cv_ld_as_needed=yes 13696 fi 13697 13698 fi 13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 13700 $as_echo "$bfd_cv_ld_as_needed" >&6; } 13701 13702 LIBM= 13703 case $host in 13704 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 13705 # These system don't have libm, or don't need it 13706 ;; 13707 *-ncr-sysv4.3*) 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 13709 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 13710 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : 13711 $as_echo_n "(cached) " >&6 13712 else 13713 ac_check_lib_save_LIBS=$LIBS 13714 LIBS="-lmw $LIBS" 13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13716 /* end confdefs.h. */ 13717 13718 /* Override any GCC internal prototype to avoid an error. 13719 Use char because int might match the return type of a GCC 13720 builtin and then its argument prototype would still apply. */ 13721 #ifdef __cplusplus 13722 extern "C" 13723 #endif 13724 char _mwvalidcheckl (); 13725 int 13726 main () 13727 { 13728 return _mwvalidcheckl (); 13729 ; 13730 return 0; 13731 } 13732 _ACEOF 13733 if ac_fn_c_try_link "$LINENO"; then : 13734 ac_cv_lib_mw__mwvalidcheckl=yes 13735 else 13736 ac_cv_lib_mw__mwvalidcheckl=no 13737 fi 13738 rm -f core conftest.err conftest.$ac_objext \ 13739 conftest$ac_exeext conftest.$ac_ext 13740 LIBS=$ac_check_lib_save_LIBS 13741 fi 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 13743 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 13744 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : 13745 LIBM="-lmw" 13746 fi 13747 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 13749 $as_echo_n "checking for cos in -lm... " >&6; } 13750 if ${ac_cv_lib_m_cos+:} false; then : 13751 $as_echo_n "(cached) " >&6 13752 else 13753 ac_check_lib_save_LIBS=$LIBS 13754 LIBS="-lm $LIBS" 13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13756 /* end confdefs.h. */ 13757 13758 /* Override any GCC internal prototype to avoid an error. 13759 Use char because int might match the return type of a GCC 13760 builtin and then its argument prototype would still apply. */ 13761 #ifdef __cplusplus 13762 extern "C" 13763 #endif 13764 char cos (); 13765 int 13766 main () 13767 { 13768 return cos (); 13769 ; 13770 return 0; 13771 } 13772 _ACEOF 13773 if ac_fn_c_try_link "$LINENO"; then : 13774 ac_cv_lib_m_cos=yes 13775 else 13776 ac_cv_lib_m_cos=no 13777 fi 13778 rm -f core conftest.err conftest.$ac_objext \ 13779 conftest$ac_exeext conftest.$ac_ext 13780 LIBS=$ac_check_lib_save_LIBS 13781 fi 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 13783 $as_echo "$ac_cv_lib_m_cos" >&6; } 13784 if test "x$ac_cv_lib_m_cos" = xyes; then : 13785 LIBM="$LIBM -lm" 13786 fi 13787 13788 ;; 13789 *) 13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 13791 $as_echo_n "checking for cos in -lm... " >&6; } 13792 if ${ac_cv_lib_m_cos+:} false; then : 13793 $as_echo_n "(cached) " >&6 13794 else 13795 ac_check_lib_save_LIBS=$LIBS 13796 LIBS="-lm $LIBS" 13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13798 /* end confdefs.h. */ 13799 13800 /* Override any GCC internal prototype to avoid an error. 13801 Use char because int might match the return type of a GCC 13802 builtin and then its argument prototype would still apply. */ 13803 #ifdef __cplusplus 13804 extern "C" 13805 #endif 13806 char cos (); 13807 int 13808 main () 13809 { 13810 return cos (); 13811 ; 13812 return 0; 13813 } 13814 _ACEOF 13815 if ac_fn_c_try_link "$LINENO"; then : 13816 ac_cv_lib_m_cos=yes 13817 else 13818 ac_cv_lib_m_cos=no 13819 fi 13820 rm -f core conftest.err conftest.$ac_objext \ 13821 conftest$ac_exeext conftest.$ac_ext 13822 LIBS=$ac_check_lib_save_LIBS 13823 fi 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 13825 $as_echo "$ac_cv_lib_m_cos" >&6; } 13826 if test "x$ac_cv_lib_m_cos" = xyes; then : 13827 LIBM="-lm" 13828 fi 13829 13830 ;; 13831 esac 13832 13833 13834 13835 #Libs for generator progs 13836 if test "x$cross_compiling" = "xno"; then 13837 BUILD_LIBS=../libiberty/libiberty.a 13838 BUILD_LIB_DEPS=$BUILD_LIBS 13839 else 13840 # if cross-compiling, assume that the system provides -liberty 13841 # and that the version is compatible with new headers. 13842 BUILD_LIBS=-liberty 13843 BUILD_LIB_DEPS= 13844 fi 13845 BUILD_LIBS="$BUILD_LIBS $LIBINTL" 13846 BUILD_LIB_DEPS="$BUILD_LIB_DEPS $LIBINTL_DEP" 13847 13848 13849 13850 13851 # Horrible hacks to build DLLs on Windows and a shared library elsewhere. 13852 SHARED_LDFLAGS= 13853 SHARED_LIBADD= 13854 SHARED_DEPENDENCIES= 13855 if test "$enable_shared" = "yes"; then 13856 # When building a shared libopcodes, link against the pic version of libiberty 13857 # so that apps that use libopcodes won't need libiberty just to satisfy any 13858 # libopcodes references. 13859 # We can't do that if a pic libiberty is unavailable since including non-pic 13860 # code would insert text relocations into libopcodes. 13861 # Note that linking against libbfd as we do here, which is itself linked 13862 # against libiberty, may not satisfy all the libopcodes libiberty references 13863 # since libbfd may not pull in the entirety of libiberty. 13864 # Also, jam libintl into the right place in all of this: after libiberty, 13865 # which uses it, but before -lcygwin, which it uses. 13866 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 13867 if test -n "$x"; then 13868 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" 13869 fi 13870 fi 13871 13872 SHARED_LIBADD="$SHARED_LIBADD $LTLIBINTL" 13873 13874 if test "$enable_shared" = "yes"; then 13875 case "${host}" in 13876 *-*-cygwin*) 13877 SHARED_LDFLAGS="-no-undefined" 13878 SHARED_LIBADD="-L`pwd`/../bfd -lbfd -L`pwd`/../libiberty -liberty $SHARED_LIBADD" 13879 ;; 13880 *) 13881 SHARED_LIBADD="../bfd/libbfd.la ${SHARED_LIBADD}" 13882 SHARED_DEPENDENCIES="../bfd/libbfd.la" 13883 ;; 13884 esac 13885 13886 if test -n "$SHARED_LIBADD"; then 13887 if test -n "$LIBM"; then 13888 if test x"$bfd_cv_ld_as_needed" = xyes; then 13889 # Link against libm only when needed. Put -lc, -lm inside -Wl 13890 # to stop libtool reordering these options. 13891 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" 13892 else 13893 SHARED_LIBADD="$SHARED_LIBADD $LIBM" 13894 fi 13895 fi 13896 fi 13897 fi 13898 13899 13900 13901 13902 # target-specific stuff: 13903 13904 # Canonicalize the secondary target names. 13905 if test -n "$enable_targets" ; then 13906 for targ in `echo $enable_targets | sed 's/,/ /g'` 13907 do 13908 result=`$ac_config_sub $targ 2>/dev/null` 13909 if test -n "$result" ; then 13910 canon_targets="$canon_targets $result" 13911 else 13912 # Allow targets that config.sub doesn't recognize, like "all". 13913 canon_targets="$canon_targets $targ" 13914 fi 13915 done 13916 fi 13917 13918 all_targets=false 13919 selarchs= 13920 for targ in $target $canon_targets 13921 do 13922 if test "x$targ" = "xall" ; then 13923 all_targets=true 13924 else 13925 . $srcdir/../bfd/config.bfd 13926 selarchs="$selarchs $targ_archs" 13927 fi 13928 done 13929 13930 # Utility var, documents generic cgen support files. 13931 13932 cgen_files="cgen-opc.lo cgen-asm.lo cgen-dis.lo cgen-bitset.lo" 13933 13934 # We don't do any links based on the target system, just makefile config. 13935 13936 if test x${all_targets} = xfalse ; then 13937 13938 # Target architecture .o files. 13939 ta= 13940 13941 for arch in $selarchs 13942 do 13943 ad=`echo $arch | sed -e s/bfd_//g -e s/_arch//g` 13944 archdefs="$archdefs -DARCH_$ad" 13945 case "$arch" in 13946 bfd_aarch64_arch) ta="$ta aarch64-asm.lo aarch64-dis.lo aarch64-opc.lo aarch64-asm-2.lo aarch64-dis-2.lo aarch64-opc-2.lo" ;; 13947 bfd_alpha_arch) ta="$ta alpha-dis.lo alpha-opc.lo" ;; 13948 bfd_amdgcn_arch) ;; 13949 bfd_arc_arch) ta="$ta arc-dis.lo arc-opc.lo arc-ext.lo" ;; 13950 bfd_arm_arch) ta="$ta arm-dis.lo" ;; 13951 bfd_avr_arch) ta="$ta avr-dis.lo" ;; 13952 bfd_bfin_arch) ta="$ta bfin-dis.lo" ;; 13953 bfd_cr16_arch) ta="$ta cr16-dis.lo cr16-opc.lo" ;; 13954 bfd_cris_arch) ta="$ta cris-desc.lo cris-dis.lo cris-opc.lo cgen-bitset.lo" ;; 13955 bfd_crx_arch) ta="$ta crx-dis.lo crx-opc.lo" ;; 13956 bfd_csky_arch) ta="$ta csky-dis.lo" ;; 13957 bfd_d10v_arch) ta="$ta d10v-dis.lo d10v-opc.lo" ;; 13958 bfd_d30v_arch) ta="$ta d30v-dis.lo d30v-opc.lo" ;; 13959 bfd_dlx_arch) ta="$ta dlx-dis.lo" ;; 13960 bfd_fr30_arch) ta="$ta fr30-asm.lo fr30-desc.lo fr30-dis.lo fr30-ibld.lo fr30-opc.lo" using_cgen=yes ;; 13961 bfd_frv_arch) ta="$ta frv-asm.lo frv-desc.lo frv-dis.lo frv-ibld.lo frv-opc.lo" using_cgen=yes ;; 13962 bfd_ft32_arch) ta="$ta ft32-opc.lo ft32-dis.lo" ;; 13963 bfd_moxie_arch) ta="$ta moxie-dis.lo moxie-opc.lo" ;; 13964 bfd_h8300_arch) ta="$ta h8300-dis.lo" ;; 13965 bfd_hppa_arch) ta="$ta hppa-dis.lo" ;; 13966 bfd_i386_arch|bfd_iamcu_arch) 13967 ta="$ta i386-dis.lo" ;; 13968 bfd_ia64_arch) ta="$ta ia64-dis.lo ia64-opc.lo" ;; 13969 bfd_ip2k_arch) ta="$ta ip2k-asm.lo ip2k-desc.lo ip2k-dis.lo ip2k-ibld.lo ip2k-opc.lo" using_cgen=yes ;; 13970 bfd_epiphany_arch) ta="$ta epiphany-asm.lo epiphany-desc.lo epiphany-dis.lo epiphany-ibld.lo epiphany-opc.lo" using_cgen=yes ;; 13971 bfd_iq2000_arch) ta="$ta iq2000-asm.lo iq2000-desc.lo iq2000-dis.lo iq2000-ibld.lo iq2000-opc.lo" using_cgen=yes ;; 13972 bfd_kvx_arch) ta="$ta kvx-opc.lo kvx-dis.lo" ;; 13973 bfd_lm32_arch) ta="$ta lm32-asm.lo lm32-desc.lo lm32-dis.lo lm32-ibld.lo lm32-opc.lo lm32-opinst.lo" using_cgen=yes ;; 13974 bfd_m32c_arch) ta="$ta m32c-asm.lo m32c-desc.lo m32c-dis.lo m32c-ibld.lo m32c-opc.lo" using_cgen=yes ;; 13975 bfd_m32r_arch) ta="$ta m32r-asm.lo m32r-desc.lo m32r-dis.lo m32r-ibld.lo m32r-opc.lo m32r-opinst.lo" using_cgen=yes ;; 13976 bfd_m68hc11_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13977 bfd_m68hc12_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13978 bfd_m9s12x_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13979 bfd_m9s12xg_arch) ta="$ta m68hc11-dis.lo m68hc11-opc.lo" ;; 13980 bfd_s12z_arch) ta="$ta s12z-dis.lo s12z-opc.lo" ;; 13981 bfd_m68k_arch) ta="$ta m68k-dis.lo m68k-opc.lo" ;; 13982 bfd_mcore_arch) ta="$ta mcore-dis.lo" ;; 13983 bfd_mep_arch) ta="$ta mep-asm.lo mep-desc.lo mep-dis.lo mep-ibld.lo mep-opc.lo" using_cgen=yes ;; 13984 bfd_metag_arch) ta="$ta metag-dis.lo" ;; 13985 bfd_microblaze_arch) ta="$ta microblaze-dis.lo" ;; 13986 bfd_mips_arch) ta="$ta mips-dis.lo mips-opc.lo mips16-opc.lo micromips-opc.lo" ;; 13987 bfd_mmix_arch) ta="$ta mmix-dis.lo mmix-opc.lo" ;; 13988 bfd_mn10200_arch) ta="$ta m10200-dis.lo m10200-opc.lo" ;; 13989 bfd_mn10300_arch) ta="$ta m10300-dis.lo m10300-opc.lo" ;; 13990 bfd_mt_arch) ta="$ta mt-asm.lo mt-desc.lo mt-dis.lo mt-ibld.lo mt-opc.lo" using_cgen=yes ;; 13991 bfd_msp430_arch) ta="$ta msp430-dis.lo msp430-decode.lo" ;; 13992 bfd_nds32_arch) ta="$ta nds32-asm.lo nds32-dis.lo" ;; 13993 bfd_nfp_arch) ta="$ta nfp-dis.lo" ;; 13994 bfd_ns32k_arch) ta="$ta ns32k-dis.lo" ;; 13995 bfd_or1k_arch) ta="$ta or1k-asm.lo or1k-desc.lo or1k-dis.lo or1k-ibld.lo or1k-opc.lo" using_cgen=yes ;; 13996 bfd_pdp11_arch) ta="$ta pdp11-dis.lo pdp11-opc.lo" ;; 13997 bfd_pj_arch) ta="$ta pj-dis.lo pj-opc.lo" ;; 13998 bfd_powerpc_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 13999 bfd_powerpc_64_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14000 bfd_pru_arch) ta="$ta pru-dis.lo pru-opc.lo" ;; 14001 bfd_pyramid_arch) ;; 14002 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; 14003 bfd_romp_arch) ;; 14004 bfd_riscv_arch) ta="$ta riscv-dis.lo riscv-opc.lo" ;; 14005 bfd_rs6000_arch) ta="$ta ppc-dis.lo ppc-opc.lo" ;; 14006 bfd_rl78_arch) ta="$ta rl78-dis.lo rl78-decode.lo";; 14007 bfd_rx_arch) ta="$ta rx-dis.lo rx-decode.lo";; 14008 bfd_s390_arch) ta="$ta s390-dis.lo s390-opc.lo" ;; 14009 bfd_score_arch) ta="$ta score-dis.lo score7-dis.lo" ;; 14010 bfd_sh_arch) ta="$ta sh-dis.lo cgen-bitset.lo" ;; 14011 bfd_sparc_arch) ta="$ta sparc-dis.lo sparc-opc.lo" ;; 14012 bfd_spu_arch) ta="$ta spu-dis.lo spu-opc.lo" ;; 14013 bfd_tic30_arch) ta="$ta tic30-dis.lo" ;; 14014 bfd_tic4x_arch) ta="$ta tic4x-dis.lo" ;; 14015 bfd_tic54x_arch) ta="$ta tic54x-dis.lo tic54x-opc.lo" ;; 14016 bfd_tic6x_arch) ta="$ta tic6x-dis.lo" ;; 14017 bfd_tilegx_arch) ta="$ta tilegx-dis.lo tilegx-opc.lo" ;; 14018 bfd_tilepro_arch) ta="$ta tilepro-dis.lo tilepro-opc.lo" ;; 14019 bfd_v850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14020 bfd_v850e_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14021 bfd_v850ea_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14022 bfd_v850_rh850_arch) ta="$ta v850-opc.lo v850-dis.lo" ;; 14023 bfd_vax_arch) ta="$ta vax-dis.lo" ;; 14024 bfd_visium_arch) ta="$ta visium-dis.lo visium-opc.lo" ;; 14025 bfd_wasm32_arch) ta="$ta wasm32-dis.lo" ;; 14026 bfd_xgate_arch) ta="$ta xgate-dis.lo xgate-opc.lo" ;; 14027 bfd_xstormy16_arch) ta="$ta xstormy16-asm.lo xstormy16-desc.lo xstormy16-dis.lo xstormy16-ibld.lo xstormy16-opc.lo" using_cgen=yes ;; 14028 bfd_xtensa_arch) ta="$ta xtensa-dis.lo" ;; 14029 bfd_z80_arch) ta="$ta z80-dis.lo" ;; 14030 bfd_z8k_arch) ta="$ta z8k-dis.lo" ;; 14031 bfd_bpf_arch) ta="$ta bpf-dis.lo bpf-opc.lo" ;; 14032 bfd_loongarch_arch) ta="$ta loongarch-dis.lo loongarch-opc.lo loongarch-coder.lo" ;; 14033 14034 "") ;; 14035 *) as_fn_error $? "*** unknown target architecture $arch" "$LINENO" 5 ;; 14036 esac 14037 done 14038 14039 if test $using_cgen = yes ; then 14040 ta="$ta $cgen_files" 14041 fi 14042 14043 # Weed out duplicate .o files. 14044 f="" 14045 for i in $ta ; do 14046 case " $f " in 14047 *" $i "*) ;; 14048 *) f="$f $i" ;; 14049 esac 14050 done 14051 ta="$f" 14052 14053 # And duplicate -D flags. 14054 f="" 14055 for i in $archdefs ; do 14056 case " $f " in 14057 *" $i "*) ;; 14058 *) f="$f $i" ;; 14059 esac 14060 done 14061 archdefs="$f" 14062 14063 BFD_MACHINES="$ta" 14064 14065 else # all_targets is true 14066 archdefs=-DARCH_all 14067 if test "$have_64_bit_bfd" = "yes" ; then 14068 BFD_MACHINES='$(ALL32_MACHINES) $(ALL64_MACHINES)' 14069 else 14070 BFD_MACHINES='$(ALL32_MACHINES)' 14071 fi 14072 fi 14073 14074 14075 14076 14077 ac_config_files="$ac_config_files Makefile po/Makefile.in:po/Make-in" 14078 14079 cat >confcache <<\_ACEOF 14080 # This file is a shell script that caches the results of configure 14081 # tests run on this system so they can be shared between configure 14082 # scripts and configure runs, see configure's option --config-cache. 14083 # It is not useful on other systems. If it contains results you don't 14084 # want to keep, you may remove or edit it. 14085 # 14086 # config.status only pays attention to the cache file if you give it 14087 # the --recheck option to rerun configure. 14088 # 14089 # `ac_cv_env_foo' variables (set or unset) will be overridden when 14090 # loading this file, other *unset* `ac_cv_foo' will be assigned the 14091 # following values. 14092 14093 _ACEOF 14094 14095 # The following way of writing the cache mishandles newlines in values, 14096 # but we know of no workaround that is simple, portable, and efficient. 14097 # So, we kill variables containing newlines. 14098 # Ultrix sh set writes to stderr and can't be redirected directly, 14099 # and sets the high bit in the cache file unless we assign to the vars. 14100 ( 14101 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14102 eval ac_val=\$$ac_var 14103 case $ac_val in #( 14104 *${as_nl}*) 14105 case $ac_var in #( 14106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14108 esac 14109 case $ac_var in #( 14110 _ | IFS | as_nl) ;; #( 14111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14112 *) { eval $ac_var=; unset $ac_var;} ;; 14113 esac ;; 14114 esac 14115 done 14116 14117 (set) 2>&1 | 14118 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14119 *${as_nl}ac_space=\ *) 14120 # `set' does not quote correctly, so add quotes: double-quote 14121 # substitution turns \\\\ into \\, and sed turns \\ into \. 14122 sed -n \ 14123 "s/'/'\\\\''/g; 14124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14125 ;; #( 14126 *) 14127 # `set' quotes correctly as required by POSIX, so do not add quotes. 14128 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14129 ;; 14130 esac | 14131 sort 14132 ) | 14133 sed ' 14134 /^ac_cv_env_/b end 14135 t clear 14136 :clear 14137 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14138 t end 14139 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14140 :end' >>confcache 14141 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14142 if test -w "$cache_file"; then 14143 if test "x$cache_file" != "x/dev/null"; then 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14145 $as_echo "$as_me: updating cache $cache_file" >&6;} 14146 if test ! -f "$cache_file" || test -h "$cache_file"; then 14147 cat confcache >"$cache_file" 14148 else 14149 case $cache_file in #( 14150 */* | ?:*) 14151 mv -f confcache "$cache_file"$$ && 14152 mv -f "$cache_file"$$ "$cache_file" ;; #( 14153 *) 14154 mv -f confcache "$cache_file" ;; 14155 esac 14156 fi 14157 fi 14158 else 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14160 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14161 fi 14162 fi 14163 rm -f confcache 14164 14165 test "x$prefix" = xNONE && prefix=$ac_default_prefix 14166 # Let make expand exec_prefix. 14167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14168 14169 DEFS=-DHAVE_CONFIG_H 14170 14171 ac_libobjs= 14172 ac_ltlibobjs= 14173 U= 14174 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14175 # 1. Remove the extension, and $U if already installed. 14176 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14177 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14178 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14179 # will be set to the directory where LIBOBJS objects are built. 14180 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14181 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14182 done 14183 LIBOBJS=$ac_libobjs 14184 14185 LTLIBOBJS=$ac_ltlibobjs 14186 14187 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 14189 $as_echo_n "checking that generated files are newer than configure... " >&6; } 14190 if test -n "$am_sleep_pid"; then 14191 # Hide warnings about reused PIDs. 14192 wait $am_sleep_pid 2>/dev/null 14193 fi 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 14195 $as_echo "done" >&6; } 14196 if test -n "$EXEEXT"; then 14197 am__EXEEXT_TRUE= 14198 am__EXEEXT_FALSE='#' 14199 else 14200 am__EXEEXT_TRUE='#' 14201 am__EXEEXT_FALSE= 14202 fi 14203 14204 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14205 as_fn_error $? "conditional \"AMDEP\" was never defined. 14206 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14207 fi 14208 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14209 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 14210 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14211 fi 14212 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14213 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 14214 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14215 fi 14216 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 14217 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 14218 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14219 fi 14220 if test -z "${CGEN_MAINT_TRUE}" && test -z "${CGEN_MAINT_FALSE}"; then 14221 as_fn_error $? "conditional \"CGEN_MAINT\" was never defined. 14222 Usually this means the macro was only invoked conditionally." "$LINENO" 5 14223 fi 14224 14225 : "${CONFIG_STATUS=./config.status}" 14226 ac_write_fail=0 14227 ac_clean_files_save=$ac_clean_files 14228 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14230 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14231 as_write_fail=0 14232 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14233 #! $SHELL 14234 # Generated by $as_me. 14235 # Run this file to recreate the current configuration. 14236 # Compiler output produced by configure, useful for debugging 14237 # configure, is in config.log if it exists. 14238 14239 debug=false 14240 ac_cs_recheck=false 14241 ac_cs_silent=false 14242 14243 SHELL=\${CONFIG_SHELL-$SHELL} 14244 export SHELL 14245 _ASEOF 14246 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14247 ## -------------------- ## 14248 ## M4sh Initialization. ## 14249 ## -------------------- ## 14250 14251 # Be more Bourne compatible 14252 DUALCASE=1; export DUALCASE # for MKS sh 14253 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14254 emulate sh 14255 NULLCMD=: 14256 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14257 # is contrary to our usage. Disable this feature. 14258 alias -g '${1+"$@"}'='"$@"' 14259 setopt NO_GLOB_SUBST 14260 else 14261 case `(set -o) 2>/dev/null` in #( 14262 *posix*) : 14263 set -o posix ;; #( 14264 *) : 14265 ;; 14266 esac 14267 fi 14268 14269 14270 as_nl=' 14271 ' 14272 export as_nl 14273 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14274 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14275 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14276 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14277 # Prefer a ksh shell builtin over an external printf program on Solaris, 14278 # but without wasting forks for bash or zsh. 14279 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14280 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14281 as_echo='print -r --' 14282 as_echo_n='print -rn --' 14283 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14284 as_echo='printf %s\n' 14285 as_echo_n='printf %s' 14286 else 14287 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14288 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14289 as_echo_n='/usr/ucb/echo -n' 14290 else 14291 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14292 as_echo_n_body='eval 14293 arg=$1; 14294 case $arg in #( 14295 *"$as_nl"*) 14296 expr "X$arg" : "X\\(.*\\)$as_nl"; 14297 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14298 esac; 14299 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14300 ' 14301 export as_echo_n_body 14302 as_echo_n='sh -c $as_echo_n_body as_echo' 14303 fi 14304 export as_echo_body 14305 as_echo='sh -c $as_echo_body as_echo' 14306 fi 14307 14308 # The user is always right. 14309 if test "${PATH_SEPARATOR+set}" != set; then 14310 PATH_SEPARATOR=: 14311 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14312 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14313 PATH_SEPARATOR=';' 14314 } 14315 fi 14316 14317 14318 # IFS 14319 # We need space, tab and new line, in precisely that order. Quoting is 14320 # there to prevent editors from complaining about space-tab. 14321 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 14322 # splitting by setting IFS to empty value.) 14323 IFS=" "" $as_nl" 14324 14325 # Find who we are. Look in the path if we contain no directory separator. 14326 as_myself= 14327 case $0 in #(( 14328 *[\\/]* ) as_myself=$0 ;; 14329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14330 for as_dir in $PATH 14331 do 14332 IFS=$as_save_IFS 14333 test -z "$as_dir" && as_dir=. 14334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14335 done 14336 IFS=$as_save_IFS 14337 14338 ;; 14339 esac 14340 # We did not find ourselves, most probably we were run as `sh COMMAND' 14341 # in which case we are not to be found in the path. 14342 if test "x$as_myself" = x; then 14343 as_myself=$0 14344 fi 14345 if test ! -f "$as_myself"; then 14346 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14347 exit 1 14348 fi 14349 14350 # Unset variables that we do not need and which cause bugs (e.g. in 14351 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14352 # suppresses any "Segmentation fault" message there. '((' could 14353 # trigger a bug in pdksh 5.2.14. 14354 for as_var in BASH_ENV ENV MAIL MAILPATH 14355 do eval test x\${$as_var+set} = xset \ 14356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14357 done 14358 PS1='$ ' 14359 PS2='> ' 14360 PS4='+ ' 14361 14362 # NLS nuisances. 14363 LC_ALL=C 14364 export LC_ALL 14365 LANGUAGE=C 14366 export LANGUAGE 14367 14368 # CDPATH. 14369 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14370 14371 14372 # as_fn_error STATUS ERROR [LINENO LOG_FD] 14373 # ---------------------------------------- 14374 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14375 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14376 # script with STATUS, using 1 if that was 0. 14377 as_fn_error () 14378 { 14379 as_status=$1; test $as_status -eq 0 && as_status=1 14380 if test "$4"; then 14381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14383 fi 14384 $as_echo "$as_me: error: $2" >&2 14385 as_fn_exit $as_status 14386 } # as_fn_error 14387 14388 14389 # as_fn_set_status STATUS 14390 # ----------------------- 14391 # Set $? to STATUS, without forking. 14392 as_fn_set_status () 14393 { 14394 return $1 14395 } # as_fn_set_status 14396 14397 # as_fn_exit STATUS 14398 # ----------------- 14399 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14400 as_fn_exit () 14401 { 14402 set +e 14403 as_fn_set_status $1 14404 exit $1 14405 } # as_fn_exit 14406 14407 # as_fn_unset VAR 14408 # --------------- 14409 # Portably unset VAR. 14410 as_fn_unset () 14411 { 14412 { eval $1=; unset $1;} 14413 } 14414 as_unset=as_fn_unset 14415 # as_fn_append VAR VALUE 14416 # ---------------------- 14417 # Append the text in VALUE to the end of the definition contained in VAR. Take 14418 # advantage of any shell optimizations that allow amortized linear growth over 14419 # repeated appends, instead of the typical quadratic growth present in naive 14420 # implementations. 14421 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14422 eval 'as_fn_append () 14423 { 14424 eval $1+=\$2 14425 }' 14426 else 14427 as_fn_append () 14428 { 14429 eval $1=\$$1\$2 14430 } 14431 fi # as_fn_append 14432 14433 # as_fn_arith ARG... 14434 # ------------------ 14435 # Perform arithmetic evaluation on the ARGs, and store the result in the 14436 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14437 # must be portable across $(()) and expr. 14438 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14439 eval 'as_fn_arith () 14440 { 14441 as_val=$(( $* )) 14442 }' 14443 else 14444 as_fn_arith () 14445 { 14446 as_val=`expr "$@" || test $? -eq 1` 14447 } 14448 fi # as_fn_arith 14449 14450 14451 if expr a : '\(a\)' >/dev/null 2>&1 && 14452 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14453 as_expr=expr 14454 else 14455 as_expr=false 14456 fi 14457 14458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14459 as_basename=basename 14460 else 14461 as_basename=false 14462 fi 14463 14464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14465 as_dirname=dirname 14466 else 14467 as_dirname=false 14468 fi 14469 14470 as_me=`$as_basename -- "$0" || 14471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14472 X"$0" : 'X\(//\)$' \| \ 14473 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14474 $as_echo X/"$0" | 14475 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14476 s//\1/ 14477 q 14478 } 14479 /^X\/\(\/\/\)$/{ 14480 s//\1/ 14481 q 14482 } 14483 /^X\/\(\/\).*/{ 14484 s//\1/ 14485 q 14486 } 14487 s/.*/./; q'` 14488 14489 # Avoid depending upon Character Ranges. 14490 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14493 as_cr_digits='0123456789' 14494 as_cr_alnum=$as_cr_Letters$as_cr_digits 14495 14496 ECHO_C= ECHO_N= ECHO_T= 14497 case `echo -n x` in #((((( 14498 -n*) 14499 case `echo 'xy\c'` in 14500 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14501 xy) ECHO_C='\c';; 14502 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14503 ECHO_T=' ';; 14504 esac;; 14505 *) 14506 ECHO_N='-n';; 14507 esac 14508 14509 rm -f conf$$ conf$$.exe conf$$.file 14510 if test -d conf$$.dir; then 14511 rm -f conf$$.dir/conf$$.file 14512 else 14513 rm -f conf$$.dir 14514 mkdir conf$$.dir 2>/dev/null 14515 fi 14516 if (echo >conf$$.file) 2>/dev/null; then 14517 if ln -s conf$$.file conf$$ 2>/dev/null; then 14518 as_ln_s='ln -s' 14519 # ... but there are two gotchas: 14520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14522 # In both cases, we have to default to `cp -pR'. 14523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14524 as_ln_s='cp -pR' 14525 elif ln conf$$.file conf$$ 2>/dev/null; then 14526 as_ln_s=ln 14527 else 14528 as_ln_s='cp -pR' 14529 fi 14530 else 14531 as_ln_s='cp -pR' 14532 fi 14533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14534 rmdir conf$$.dir 2>/dev/null 14535 14536 14537 # as_fn_mkdir_p 14538 # ------------- 14539 # Create "$as_dir" as a directory, including parents if necessary. 14540 as_fn_mkdir_p () 14541 { 14542 14543 case $as_dir in #( 14544 -*) as_dir=./$as_dir;; 14545 esac 14546 test -d "$as_dir" || eval $as_mkdir_p || { 14547 as_dirs= 14548 while :; do 14549 case $as_dir in #( 14550 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14551 *) as_qdir=$as_dir;; 14552 esac 14553 as_dirs="'$as_qdir' $as_dirs" 14554 as_dir=`$as_dirname -- "$as_dir" || 14555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14556 X"$as_dir" : 'X\(//\)[^/]' \| \ 14557 X"$as_dir" : 'X\(//\)$' \| \ 14558 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14559 $as_echo X"$as_dir" | 14560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14561 s//\1/ 14562 q 14563 } 14564 /^X\(\/\/\)[^/].*/{ 14565 s//\1/ 14566 q 14567 } 14568 /^X\(\/\/\)$/{ 14569 s//\1/ 14570 q 14571 } 14572 /^X\(\/\).*/{ 14573 s//\1/ 14574 q 14575 } 14576 s/.*/./; q'` 14577 test -d "$as_dir" && break 14578 done 14579 test -z "$as_dirs" || eval "mkdir $as_dirs" 14580 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14581 14582 14583 } # as_fn_mkdir_p 14584 if mkdir -p . 2>/dev/null; then 14585 as_mkdir_p='mkdir -p "$as_dir"' 14586 else 14587 test -d ./-p && rmdir ./-p 14588 as_mkdir_p=false 14589 fi 14590 14591 14592 # as_fn_executable_p FILE 14593 # ----------------------- 14594 # Test if FILE is an executable regular file. 14595 as_fn_executable_p () 14596 { 14597 test -f "$1" && test -x "$1" 14598 } # as_fn_executable_p 14599 as_test_x='test -x' 14600 as_executable_p=as_fn_executable_p 14601 14602 # Sed expression to map a string onto a valid CPP name. 14603 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14604 14605 # Sed expression to map a string onto a valid variable name. 14606 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14607 14608 14609 exec 6>&1 14610 ## ----------------------------------- ## 14611 ## Main body of $CONFIG_STATUS script. ## 14612 ## ----------------------------------- ## 14613 _ASEOF 14614 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14615 14616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14617 # Save the log message, to keep $0 and so on meaningful, and to 14618 # report actual input values of CONFIG_FILES etc. instead of their 14619 # values after options handling. 14620 ac_log=" 14621 This file was extended by opcodes $as_me 2.45, which was 14622 generated by GNU Autoconf 2.69. Invocation command line was 14623 14624 CONFIG_FILES = $CONFIG_FILES 14625 CONFIG_HEADERS = $CONFIG_HEADERS 14626 CONFIG_LINKS = $CONFIG_LINKS 14627 CONFIG_COMMANDS = $CONFIG_COMMANDS 14628 $ $0 $@ 14629 14630 on `(hostname || uname -n) 2>/dev/null | sed 1q` 14631 " 14632 14633 _ACEOF 14634 14635 case $ac_config_files in *" 14636 "*) set x $ac_config_files; shift; ac_config_files=$*;; 14637 esac 14638 14639 case $ac_config_headers in *" 14640 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14641 esac 14642 14643 14644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14645 # Files that config.status was made for. 14646 config_files="$ac_config_files" 14647 config_headers="$ac_config_headers" 14648 config_commands="$ac_config_commands" 14649 14650 _ACEOF 14651 14652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14653 ac_cs_usage="\ 14654 \`$as_me' instantiates files and other configuration actions 14655 from templates according to the current configuration. Unless the files 14656 and actions are specified as TAGs, all are instantiated by default. 14657 14658 Usage: $0 [OPTION]... [TAG]... 14659 14660 -h, --help print this help, then exit 14661 -V, --version print version number and configuration settings, then exit 14662 --config print configuration, then exit 14663 -q, --quiet, --silent 14664 do not print progress messages 14665 -d, --debug don't remove temporary files 14666 --recheck update $as_me by reconfiguring in the same conditions 14667 --file=FILE[:TEMPLATE] 14668 instantiate the configuration file FILE 14669 --header=FILE[:TEMPLATE] 14670 instantiate the configuration header FILE 14671 14672 Configuration files: 14673 $config_files 14674 14675 Configuration headers: 14676 $config_headers 14677 14678 Configuration commands: 14679 $config_commands 14680 14681 Report bugs to the package provider." 14682 14683 _ACEOF 14684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14685 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14686 ac_cs_version="\\ 14687 opcodes config.status 2.45 14688 configured by $0, generated by GNU Autoconf 2.69, 14689 with options \\"\$ac_cs_config\\" 14690 14691 Copyright (C) 2012 Free Software Foundation, Inc. 14692 This config.status script is free software; the Free Software Foundation 14693 gives unlimited permission to copy, distribute and modify it." 14694 14695 ac_pwd='$ac_pwd' 14696 srcdir='$srcdir' 14697 INSTALL='$INSTALL' 14698 MKDIR_P='$MKDIR_P' 14699 AWK='$AWK' 14700 test -n "\$AWK" || AWK=awk 14701 _ACEOF 14702 14703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14704 # The default lists apply if the user does not specify any file. 14705 ac_need_defaults=: 14706 while test $# != 0 14707 do 14708 case $1 in 14709 --*=?*) 14710 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14711 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14712 ac_shift=: 14713 ;; 14714 --*=) 14715 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14716 ac_optarg= 14717 ac_shift=: 14718 ;; 14719 *) 14720 ac_option=$1 14721 ac_optarg=$2 14722 ac_shift=shift 14723 ;; 14724 esac 14725 14726 case $ac_option in 14727 # Handling of the options. 14728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14729 ac_cs_recheck=: ;; 14730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14731 $as_echo "$ac_cs_version"; exit ;; 14732 --config | --confi | --conf | --con | --co | --c ) 14733 $as_echo "$ac_cs_config"; exit ;; 14734 --debug | --debu | --deb | --de | --d | -d ) 14735 debug=: ;; 14736 --file | --fil | --fi | --f ) 14737 $ac_shift 14738 case $ac_optarg in 14739 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14740 '') as_fn_error $? "missing file argument" ;; 14741 esac 14742 as_fn_append CONFIG_FILES " '$ac_optarg'" 14743 ac_need_defaults=false;; 14744 --header | --heade | --head | --hea ) 14745 $ac_shift 14746 case $ac_optarg in 14747 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14748 esac 14749 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14750 ac_need_defaults=false;; 14751 --he | --h) 14752 # Conflict between --help and --header 14753 as_fn_error $? "ambiguous option: \`$1' 14754 Try \`$0 --help' for more information.";; 14755 --help | --hel | -h ) 14756 $as_echo "$ac_cs_usage"; exit ;; 14757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14758 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14759 ac_cs_silent=: ;; 14760 14761 # This is an error. 14762 -*) as_fn_error $? "unrecognized option: \`$1' 14763 Try \`$0 --help' for more information." ;; 14764 14765 *) as_fn_append ac_config_targets " $1" 14766 ac_need_defaults=false ;; 14767 14768 esac 14769 shift 14770 done 14771 14772 ac_configure_extra_args= 14773 14774 if $ac_cs_silent; then 14775 exec 6>/dev/null 14776 ac_configure_extra_args="$ac_configure_extra_args --silent" 14777 fi 14778 14779 _ACEOF 14780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14781 if \$ac_cs_recheck; then 14782 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14783 shift 14784 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14785 CONFIG_SHELL='$SHELL' 14786 export CONFIG_SHELL 14787 exec "\$@" 14788 fi 14789 14790 _ACEOF 14791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14792 exec 5>>config.log 14793 { 14794 echo 14795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14796 ## Running $as_me. ## 14797 _ASBOX 14798 $as_echo "$ac_log" 14799 } >&5 14800 14801 _ACEOF 14802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14803 # 14804 # INIT-COMMANDS 14805 # 14806 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14807 14808 14809 # The HP-UX ksh and POSIX shell print the target directory to stdout 14810 # if CDPATH is set. 14811 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14812 14813 sed_quote_subst='$sed_quote_subst' 14814 double_quote_subst='$double_quote_subst' 14815 delay_variable_subst='$delay_variable_subst' 14816 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14817 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14818 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14819 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14820 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14821 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14822 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14823 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14824 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14825 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14826 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14827 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14828 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14829 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14830 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14831 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14832 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14833 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14834 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14835 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14836 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14837 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14838 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14839 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14840 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14841 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14842 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14843 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14844 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14845 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14846 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14847 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14848 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14849 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14850 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14851 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14852 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14853 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14854 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14855 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14856 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14857 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14858 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14859 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14860 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14861 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14862 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14863 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14864 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"`' 14865 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14866 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14867 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14868 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14869 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14870 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14871 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14872 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14873 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14874 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14875 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14876 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14877 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14878 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14879 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14880 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14881 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14882 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14883 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14884 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14885 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14886 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14887 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14888 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14889 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14890 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14891 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14892 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14893 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14894 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14895 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14896 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 14897 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14898 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14899 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14900 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14901 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14902 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14903 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14904 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14905 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 14906 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14907 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14908 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14909 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14910 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14911 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14912 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14913 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14914 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14915 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14916 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14917 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14918 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14919 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14920 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14921 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14922 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14923 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14924 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14925 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14926 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14927 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14928 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14929 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14930 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14931 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14932 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14933 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14934 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14935 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14936 14937 LTCC='$LTCC' 14938 LTCFLAGS='$LTCFLAGS' 14939 compiler='$compiler_DEFAULT' 14940 14941 # A function that is used when there is no print builtin or printf. 14942 func_fallback_echo () 14943 { 14944 eval 'cat <<_LTECHO_EOF 14945 \$1 14946 _LTECHO_EOF' 14947 } 14948 14949 # Quote evaled strings. 14950 for var in SHELL \ 14951 ECHO \ 14952 SED \ 14953 GREP \ 14954 EGREP \ 14955 FGREP \ 14956 LD \ 14957 NM \ 14958 LN_S \ 14959 lt_SP2NL \ 14960 lt_NL2SP \ 14961 reload_flag \ 14962 OBJDUMP \ 14963 deplibs_check_method \ 14964 file_magic_cmd \ 14965 AR \ 14966 AR_FLAGS \ 14967 STRIP \ 14968 RANLIB \ 14969 CC \ 14970 CFLAGS \ 14971 compiler \ 14972 lt_cv_sys_global_symbol_pipe \ 14973 lt_cv_sys_global_symbol_to_cdecl \ 14974 lt_cv_sys_global_symbol_to_c_name_address \ 14975 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14976 lt_prog_compiler_no_builtin_flag \ 14977 lt_prog_compiler_wl \ 14978 lt_prog_compiler_pic \ 14979 lt_prog_compiler_static \ 14980 lt_cv_prog_compiler_c_o \ 14981 need_locks \ 14982 DSYMUTIL \ 14983 NMEDIT \ 14984 LIPO \ 14985 OTOOL \ 14986 OTOOL64 \ 14987 shrext_cmds \ 14988 export_dynamic_flag_spec \ 14989 whole_archive_flag_spec \ 14990 compiler_needs_object \ 14991 with_gnu_ld \ 14992 allow_undefined_flag \ 14993 no_undefined_flag \ 14994 hardcode_libdir_flag_spec \ 14995 hardcode_libdir_flag_spec_ld \ 14996 hardcode_libdir_separator \ 14997 fix_srcfile_path \ 14998 exclude_expsyms \ 14999 include_expsyms \ 15000 file_list_spec \ 15001 variables_saved_for_relink \ 15002 libname_spec \ 15003 library_names_spec \ 15004 soname_spec \ 15005 install_override_mode \ 15006 finish_eval \ 15007 old_striplib \ 15008 striplib; do 15009 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15010 *[\\\\\\\`\\"\\\$]*) 15011 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15012 ;; 15013 *) 15014 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15015 ;; 15016 esac 15017 done 15018 15019 # Double-quote double-evaled strings. 15020 for var in reload_cmds \ 15021 old_postinstall_cmds \ 15022 old_postuninstall_cmds \ 15023 old_archive_cmds \ 15024 extract_expsyms_cmds \ 15025 old_archive_from_new_cmds \ 15026 old_archive_from_expsyms_cmds \ 15027 archive_cmds \ 15028 archive_expsym_cmds \ 15029 module_cmds \ 15030 module_expsym_cmds \ 15031 export_symbols_cmds \ 15032 prelink_cmds \ 15033 postinstall_cmds \ 15034 postuninstall_cmds \ 15035 finish_cmds \ 15036 sys_lib_search_path_spec \ 15037 sys_lib_dlsearch_path_spec; do 15038 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15039 *[\\\\\\\`\\"\\\$]*) 15040 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15041 ;; 15042 *) 15043 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15044 ;; 15045 esac 15046 done 15047 15048 ac_aux_dir='$ac_aux_dir' 15049 xsi_shell='$xsi_shell' 15050 lt_shell_append='$lt_shell_append' 15051 15052 # See if we are running on zsh, and set the options which allow our 15053 # commands through without removal of \ escapes INIT. 15054 if test -n "\${ZSH_VERSION+set}" ; then 15055 setopt NO_GLOB_SUBST 15056 fi 15057 15058 15059 PACKAGE='$PACKAGE' 15060 VERSION='$VERSION' 15061 TIMESTAMP='$TIMESTAMP' 15062 RM='$RM' 15063 ofile='$ofile' 15064 15065 15066 15067 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 15068 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 15069 # from automake. 15070 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15071 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15072 LINGUAS="${LINGUAS-%UNSET%}" 15073 15074 15075 _ACEOF 15076 15077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15078 15079 # Handling of arguments. 15080 for ac_config_target in $ac_config_targets 15081 do 15082 case $ac_config_target in 15083 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15084 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15085 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 15086 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15087 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15088 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; 15089 15090 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15091 esac 15092 done 15093 15094 15095 # If the user did not use the arguments to specify the items to instantiate, 15096 # then the envvar interface is used. Set only those that are not. 15097 # We use the long form for the default assignment because of an extremely 15098 # bizarre bug on SunOS 4.1.3. 15099 if $ac_need_defaults; then 15100 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15101 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15102 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15103 fi 15104 15105 # Have a temporary directory for convenience. Make it in the build tree 15106 # simply because there is no reason against having it here, and in addition, 15107 # creating and moving files from /tmp can sometimes cause problems. 15108 # Hook for its removal unless debugging. 15109 # Note that there is a small window in which the directory will not be cleaned: 15110 # after its creation but before its name has been assigned to `$tmp'. 15111 $debug || 15112 { 15113 tmp= ac_tmp= 15114 trap 'exit_status=$? 15115 : "${ac_tmp:=$tmp}" 15116 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15117 ' 0 15118 trap 'as_fn_exit 1' 1 2 13 15 15119 } 15120 # Create a (secure) tmp directory for tmp files. 15121 15122 { 15123 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15124 test -d "$tmp" 15125 } || 15126 { 15127 tmp=./conf$$-$RANDOM 15128 (umask 077 && mkdir "$tmp") 15129 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15130 ac_tmp=$tmp 15131 15132 # Set up the scripts for CONFIG_FILES section. 15133 # No need to generate them if there are no CONFIG_FILES. 15134 # This happens for instance with `./config.status config.h'. 15135 if test -n "$CONFIG_FILES"; then 15136 15137 15138 ac_cr=`echo X | tr X '\015'` 15139 # On cygwin, bash can eat \r inside `` if the user requested igncr. 15140 # But we know of no other shell where ac_cr would be empty at this 15141 # point, so we can use a bashism as a fallback. 15142 if test "x$ac_cr" = x; then 15143 eval ac_cr=\$\'\\r\' 15144 fi 15145 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15146 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15147 ac_cs_awk_cr='\\r' 15148 else 15149 ac_cs_awk_cr=$ac_cr 15150 fi 15151 15152 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15153 _ACEOF 15154 15155 15156 { 15157 echo "cat >conf$$subs.awk <<_ACEOF" && 15158 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15159 echo "_ACEOF" 15160 } >conf$$subs.sh || 15161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15162 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15163 ac_delim='%!_!# ' 15164 for ac_last_try in false false false false false :; do 15165 . ./conf$$subs.sh || 15166 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15167 15168 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15169 if test $ac_delim_n = $ac_delim_num; then 15170 break 15171 elif $ac_last_try; then 15172 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15173 else 15174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15175 fi 15176 done 15177 rm -f conf$$subs.sh 15178 15179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15180 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15181 _ACEOF 15182 sed -n ' 15183 h 15184 s/^/S["/; s/!.*/"]=/ 15185 p 15186 g 15187 s/^[^!]*!// 15188 :repl 15189 t repl 15190 s/'"$ac_delim"'$// 15191 t delim 15192 :nl 15193 h 15194 s/\(.\{148\}\)..*/\1/ 15195 t more1 15196 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15197 p 15198 n 15199 b repl 15200 :more1 15201 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15202 p 15203 g 15204 s/.\{148\}// 15205 t nl 15206 :delim 15207 h 15208 s/\(.\{148\}\)..*/\1/ 15209 t more2 15210 s/["\\]/\\&/g; s/^/"/; s/$/"/ 15211 p 15212 b 15213 :more2 15214 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15215 p 15216 g 15217 s/.\{148\}// 15218 t delim 15219 ' <conf$$subs.awk | sed ' 15220 /^[^""]/{ 15221 N 15222 s/\n// 15223 } 15224 ' >>$CONFIG_STATUS || ac_write_fail=1 15225 rm -f conf$$subs.awk 15226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15227 _ACAWK 15228 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15229 for (key in S) S_is_set[key] = 1 15230 FS = "" 15231 15232 } 15233 { 15234 line = $ 0 15235 nfields = split(line, field, "@") 15236 substed = 0 15237 len = length(field[1]) 15238 for (i = 2; i < nfields; i++) { 15239 key = field[i] 15240 keylen = length(key) 15241 if (S_is_set[key]) { 15242 value = S[key] 15243 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15244 len += length(value) + length(field[++i]) 15245 substed = 1 15246 } else 15247 len += 1 + keylen 15248 } 15249 15250 print line 15251 } 15252 15253 _ACAWK 15254 _ACEOF 15255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15256 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15257 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15258 else 15259 cat 15260 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15261 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15262 _ACEOF 15263 15264 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15265 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15266 # trailing colons and then remove the whole line if VPATH becomes empty 15267 # (actually we leave an empty line to preserve line numbers). 15268 if test "x$srcdir" = x.; then 15269 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15270 h 15271 s/// 15272 s/^/:/ 15273 s/[ ]*$/:/ 15274 s/:\$(srcdir):/:/g 15275 s/:\${srcdir}:/:/g 15276 s/:@srcdir@:/:/g 15277 s/^:*// 15278 s/:*$// 15279 x 15280 s/\(=[ ]*\).*/\1/ 15281 G 15282 s/\n// 15283 s/^[^=]*=[ ]*$// 15284 }' 15285 fi 15286 15287 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15288 fi # test -n "$CONFIG_FILES" 15289 15290 # Set up the scripts for CONFIG_HEADERS section. 15291 # No need to generate them if there are no CONFIG_HEADERS. 15292 # This happens for instance with `./config.status Makefile'. 15293 if test -n "$CONFIG_HEADERS"; then 15294 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15295 BEGIN { 15296 _ACEOF 15297 15298 # Transform confdefs.h into an awk script `defines.awk', embedded as 15299 # here-document in config.status, that substitutes the proper values into 15300 # config.h.in to produce config.h. 15301 15302 # Create a delimiter string that does not exist in confdefs.h, to ease 15303 # handling of long lines. 15304 ac_delim='%!_!# ' 15305 for ac_last_try in false false :; do 15306 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15307 if test -z "$ac_tt"; then 15308 break 15309 elif $ac_last_try; then 15310 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15311 else 15312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15313 fi 15314 done 15315 15316 # For the awk script, D is an array of macro values keyed by name, 15317 # likewise P contains macro parameters if any. Preserve backslash 15318 # newline sequences. 15319 15320 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15321 sed -n ' 15322 s/.\{148\}/&'"$ac_delim"'/g 15323 t rset 15324 :rset 15325 s/^[ ]*#[ ]*define[ ][ ]*/ / 15326 t def 15327 d 15328 :def 15329 s/\\$// 15330 t bsnl 15331 s/["\\]/\\&/g 15332 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15333 D["\1"]=" \3"/p 15334 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15335 d 15336 :bsnl 15337 s/["\\]/\\&/g 15338 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15339 D["\1"]=" \3\\\\\\n"\\/p 15340 t cont 15341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15342 t cont 15343 d 15344 :cont 15345 n 15346 s/.\{148\}/&'"$ac_delim"'/g 15347 t clear 15348 :clear 15349 s/\\$// 15350 t bsnlc 15351 s/["\\]/\\&/g; s/^/"/; s/$/"/p 15352 d 15353 :bsnlc 15354 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15355 b cont 15356 ' <confdefs.h | sed ' 15357 s/'"$ac_delim"'/"\\\ 15358 "/g' >>$CONFIG_STATUS || ac_write_fail=1 15359 15360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15361 for (key in D) D_is_set[key] = 1 15362 FS = "" 15363 } 15364 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15365 line = \$ 0 15366 split(line, arg, " ") 15367 if (arg[1] == "#") { 15368 defundef = arg[2] 15369 mac1 = arg[3] 15370 } else { 15371 defundef = substr(arg[1], 2) 15372 mac1 = arg[2] 15373 } 15374 split(mac1, mac2, "(") #) 15375 macro = mac2[1] 15376 prefix = substr(line, 1, index(line, defundef) - 1) 15377 if (D_is_set[macro]) { 15378 # Preserve the white space surrounding the "#". 15379 print prefix "define", macro P[macro] D[macro] 15380 next 15381 } else { 15382 # Replace #undef with comments. This is necessary, for example, 15383 # in the case of _POSIX_SOURCE, which is predefined and required 15384 # on some systems where configure will not decide to define it. 15385 if (defundef == "undef") { 15386 print "/*", prefix defundef, macro, "*/" 15387 next 15388 } 15389 } 15390 } 15391 { print } 15392 _ACAWK 15393 _ACEOF 15394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15395 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15396 fi # test -n "$CONFIG_HEADERS" 15397 15398 15399 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15400 shift 15401 for ac_tag 15402 do 15403 case $ac_tag in 15404 :[FHLC]) ac_mode=$ac_tag; continue;; 15405 esac 15406 case $ac_mode$ac_tag in 15407 :[FHL]*:*);; 15408 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15409 :[FH]-) ac_tag=-:-;; 15410 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15411 esac 15412 ac_save_IFS=$IFS 15413 IFS=: 15414 set x $ac_tag 15415 IFS=$ac_save_IFS 15416 shift 15417 ac_file=$1 15418 shift 15419 15420 case $ac_mode in 15421 :L) ac_source=$1;; 15422 :[FH]) 15423 ac_file_inputs= 15424 for ac_f 15425 do 15426 case $ac_f in 15427 -) ac_f="$ac_tmp/stdin";; 15428 *) # Look for the file first in the build tree, then in the source tree 15429 # (if the path is not absolute). The absolute path cannot be DOS-style, 15430 # because $ac_f cannot contain `:'. 15431 test -f "$ac_f" || 15432 case $ac_f in 15433 [\\/$]*) false;; 15434 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15435 esac || 15436 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15437 esac 15438 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15439 as_fn_append ac_file_inputs " '$ac_f'" 15440 done 15441 15442 # Let's still pretend it is `configure' which instantiates (i.e., don't 15443 # use $as_me), people would be surprised to read: 15444 # /* config.h. Generated by config.status. */ 15445 configure_input='Generated from '` 15446 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15447 `' by configure.' 15448 if test x"$ac_file" != x-; then 15449 configure_input="$ac_file. $configure_input" 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15451 $as_echo "$as_me: creating $ac_file" >&6;} 15452 fi 15453 # Neutralize special characters interpreted by sed in replacement strings. 15454 case $configure_input in #( 15455 *\&* | *\|* | *\\* ) 15456 ac_sed_conf_input=`$as_echo "$configure_input" | 15457 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15458 *) ac_sed_conf_input=$configure_input;; 15459 esac 15460 15461 case $ac_tag in 15462 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15464 esac 15465 ;; 15466 esac 15467 15468 ac_dir=`$as_dirname -- "$ac_file" || 15469 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15470 X"$ac_file" : 'X\(//\)[^/]' \| \ 15471 X"$ac_file" : 'X\(//\)$' \| \ 15472 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15473 $as_echo X"$ac_file" | 15474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15475 s//\1/ 15476 q 15477 } 15478 /^X\(\/\/\)[^/].*/{ 15479 s//\1/ 15480 q 15481 } 15482 /^X\(\/\/\)$/{ 15483 s//\1/ 15484 q 15485 } 15486 /^X\(\/\).*/{ 15487 s//\1/ 15488 q 15489 } 15490 s/.*/./; q'` 15491 as_dir="$ac_dir"; as_fn_mkdir_p 15492 ac_builddir=. 15493 15494 case "$ac_dir" in 15495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15496 *) 15497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15498 # A ".." for each directory in $ac_dir_suffix. 15499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15500 case $ac_top_builddir_sub in 15501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15503 esac ;; 15504 esac 15505 ac_abs_top_builddir=$ac_pwd 15506 ac_abs_builddir=$ac_pwd$ac_dir_suffix 15507 # for backward compatibility: 15508 ac_top_builddir=$ac_top_build_prefix 15509 15510 case $srcdir in 15511 .) # We are building in place. 15512 ac_srcdir=. 15513 ac_top_srcdir=$ac_top_builddir_sub 15514 ac_abs_top_srcdir=$ac_pwd ;; 15515 [\\/]* | ?:[\\/]* ) # Absolute name. 15516 ac_srcdir=$srcdir$ac_dir_suffix; 15517 ac_top_srcdir=$srcdir 15518 ac_abs_top_srcdir=$srcdir ;; 15519 *) # Relative name. 15520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15521 ac_top_srcdir=$ac_top_build_prefix$srcdir 15522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15523 esac 15524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15525 15526 15527 case $ac_mode in 15528 :F) 15529 # 15530 # CONFIG_FILE 15531 # 15532 15533 case $INSTALL in 15534 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15535 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15536 esac 15537 ac_MKDIR_P=$MKDIR_P 15538 case $MKDIR_P in 15539 [\\/$]* | ?:[\\/]* ) ;; 15540 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15541 esac 15542 _ACEOF 15543 15544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15545 # If the template does not know about datarootdir, expand it. 15546 # FIXME: This hack should be removed a few years after 2.60. 15547 ac_datarootdir_hack=; ac_datarootdir_seen= 15548 ac_sed_dataroot=' 15549 /datarootdir/ { 15550 p 15551 q 15552 } 15553 /@datadir@/p 15554 /@docdir@/p 15555 /@infodir@/p 15556 /@localedir@/p 15557 /@mandir@/p' 15558 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15559 *datarootdir*) ac_datarootdir_seen=yes;; 15560 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15562 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15563 _ACEOF 15564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15565 ac_datarootdir_hack=' 15566 s&@datadir@&$datadir&g 15567 s&@docdir@&$docdir&g 15568 s&@infodir@&$infodir&g 15569 s&@localedir@&$localedir&g 15570 s&@mandir@&$mandir&g 15571 s&\\\${datarootdir}&$datarootdir&g' ;; 15572 esac 15573 _ACEOF 15574 15575 # Neutralize VPATH when `$srcdir' = `.'. 15576 # Shell code in configure.ac might set extrasub. 15577 # FIXME: do we really want to maintain this feature? 15578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15579 ac_sed_extra="$ac_vpsub 15580 $extrasub 15581 _ACEOF 15582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15583 :t 15584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15585 s|@configure_input@|$ac_sed_conf_input|;t t 15586 s&@top_builddir@&$ac_top_builddir_sub&;t t 15587 s&@top_build_prefix@&$ac_top_build_prefix&;t t 15588 s&@srcdir@&$ac_srcdir&;t t 15589 s&@abs_srcdir@&$ac_abs_srcdir&;t t 15590 s&@top_srcdir@&$ac_top_srcdir&;t t 15591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15592 s&@builddir@&$ac_builddir&;t t 15593 s&@abs_builddir@&$ac_abs_builddir&;t t 15594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15595 s&@INSTALL@&$ac_INSTALL&;t t 15596 s&@MKDIR_P@&$ac_MKDIR_P&;t t 15597 $ac_datarootdir_hack 15598 " 15599 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15600 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15601 15602 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15603 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15604 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15605 "$ac_tmp/out"`; test -z "$ac_out"; } && 15606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15607 which seems to be undefined. Please make sure it is defined" >&5 15608 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15609 which seems to be undefined. Please make sure it is defined" >&2;} 15610 15611 rm -f "$ac_tmp/stdin" 15612 case $ac_file in 15613 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15614 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15615 esac \ 15616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15617 ;; 15618 :H) 15619 # 15620 # CONFIG_HEADER 15621 # 15622 if test x"$ac_file" != x-; then 15623 { 15624 $as_echo "/* $configure_input */" \ 15625 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15626 } >"$ac_tmp/config.h" \ 15627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15628 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15629 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15630 $as_echo "$as_me: $ac_file is unchanged" >&6;} 15631 else 15632 rm -f "$ac_file" 15633 mv "$ac_tmp/config.h" "$ac_file" \ 15634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15635 fi 15636 else 15637 $as_echo "/* $configure_input */" \ 15638 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15639 || as_fn_error $? "could not create -" "$LINENO" 5 15640 fi 15641 # Compute "$ac_file"'s index in $config_headers. 15642 _am_arg="$ac_file" 15643 _am_stamp_count=1 15644 for _am_header in $config_headers :; do 15645 case $_am_header in 15646 $_am_arg | $_am_arg:* ) 15647 break ;; 15648 * ) 15649 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15650 esac 15651 done 15652 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15653 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15654 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15655 X"$_am_arg" : 'X\(//\)$' \| \ 15656 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15657 $as_echo X"$_am_arg" | 15658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15659 s//\1/ 15660 q 15661 } 15662 /^X\(\/\/\)[^/].*/{ 15663 s//\1/ 15664 q 15665 } 15666 /^X\(\/\/\)$/{ 15667 s//\1/ 15668 q 15669 } 15670 /^X\(\/\).*/{ 15671 s//\1/ 15672 q 15673 } 15674 s/.*/./; q'`/stamp-h$_am_stamp_count 15675 ;; 15676 15677 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15678 $as_echo "$as_me: executing $ac_file commands" >&6;} 15679 ;; 15680 esac 15681 15682 15683 case $ac_file$ac_mode in 15684 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15685 # Older Autoconf quotes --file arguments for eval, but not when files 15686 # are listed without --file. Let's play safe and only enable the eval 15687 # if we detect the quoting. 15688 case $CONFIG_FILES in 15689 *\'*) eval set x "$CONFIG_FILES" ;; 15690 *) set x $CONFIG_FILES ;; 15691 esac 15692 shift 15693 for mf 15694 do 15695 # Strip MF so we end up with the name of the file. 15696 mf=`echo "$mf" | sed -e 's/:.*$//'` 15697 # Check whether this is an Automake generated Makefile or not. 15698 # We used to match only the files named 'Makefile.in', but 15699 # some people rename them; so instead we look at the file content. 15700 # Grep'ing the first line is not enough: some people post-process 15701 # each Makefile.in and add a new line on top of each file to say so. 15702 # Grep'ing the whole file is not good either: AIX grep has a line 15703 # limit of 2048, but all sed's we know have understand at least 4000. 15704 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15705 dirpart=`$as_dirname -- "$mf" || 15706 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15707 X"$mf" : 'X\(//\)[^/]' \| \ 15708 X"$mf" : 'X\(//\)$' \| \ 15709 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15710 $as_echo X"$mf" | 15711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15712 s//\1/ 15713 q 15714 } 15715 /^X\(\/\/\)[^/].*/{ 15716 s//\1/ 15717 q 15718 } 15719 /^X\(\/\/\)$/{ 15720 s//\1/ 15721 q 15722 } 15723 /^X\(\/\).*/{ 15724 s//\1/ 15725 q 15726 } 15727 s/.*/./; q'` 15728 else 15729 continue 15730 fi 15731 # Extract the definition of DEPDIR, am__include, and am__quote 15732 # from the Makefile without running 'make'. 15733 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15734 test -z "$DEPDIR" && continue 15735 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15736 test -z "$am__include" && continue 15737 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15738 # Find all dependency output files, they are included files with 15739 # $(DEPDIR) in their names. We invoke sed twice because it is the 15740 # simplest approach to changing $(DEPDIR) to its actual value in the 15741 # expansion. 15742 for file in `sed -n " 15743 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15744 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15745 # Make sure the directory exists. 15746 test -f "$dirpart/$file" && continue 15747 fdir=`$as_dirname -- "$file" || 15748 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15749 X"$file" : 'X\(//\)[^/]' \| \ 15750 X"$file" : 'X\(//\)$' \| \ 15751 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15752 $as_echo X"$file" | 15753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15754 s//\1/ 15755 q 15756 } 15757 /^X\(\/\/\)[^/].*/{ 15758 s//\1/ 15759 q 15760 } 15761 /^X\(\/\/\)$/{ 15762 s//\1/ 15763 q 15764 } 15765 /^X\(\/\).*/{ 15766 s//\1/ 15767 q 15768 } 15769 s/.*/./; q'` 15770 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15771 # echo "creating $dirpart/$file" 15772 echo '# dummy' > "$dirpart/$file" 15773 done 15774 done 15775 } 15776 ;; 15777 "libtool":C) 15778 15779 # See if we are running on zsh, and set the options which allow our 15780 # commands through without removal of \ escapes. 15781 if test -n "${ZSH_VERSION+set}" ; then 15782 setopt NO_GLOB_SUBST 15783 fi 15784 15785 cfgfile="${ofile}T" 15786 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15787 $RM "$cfgfile" 15788 15789 cat <<_LT_EOF >> "$cfgfile" 15790 #! $SHELL 15791 15792 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15793 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15795 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 15796 # 15797 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15798 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 15799 # Written by Gordon Matzigkeit, 1996 15800 # 15801 # This file is part of GNU Libtool. 15802 # 15803 # GNU Libtool is free software; you can redistribute it and/or 15804 # modify it under the terms of the GNU General Public License as 15805 # published by the Free Software Foundation; either version 2 of 15806 # the License, or (at your option) any later version. 15807 # 15808 # As a special exception to the GNU General Public License, 15809 # if you distribute this file as part of a program or library that 15810 # is built using GNU Libtool, you may include this file under the 15811 # same distribution terms that you use for the rest of that program. 15812 # 15813 # GNU Libtool is distributed in the hope that it will be useful, 15814 # but WITHOUT ANY WARRANTY; without even the implied warranty of 15815 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15816 # GNU General Public License for more details. 15817 # 15818 # You should have received a copy of the GNU General Public License 15819 # along with GNU Libtool; see the file COPYING. If not, a copy 15820 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15821 # obtained by writing to the Free Software Foundation, Inc., 15822 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15823 15824 15825 # The names of the tagged configurations supported by this script. 15826 available_tags="" 15827 15828 # ### BEGIN LIBTOOL CONFIG 15829 15830 # Whether or not to build shared libraries. 15831 build_libtool_libs=$enable_shared 15832 15833 # Which release of libtool.m4 was used? 15834 macro_version=$macro_version 15835 macro_revision=$macro_revision 15836 15837 # Whether or not to build static libraries. 15838 build_old_libs=$enable_static 15839 15840 # What type of objects to build. 15841 pic_mode=$pic_mode 15842 15843 # Whether or not to optimize for fast installation. 15844 fast_install=$enable_fast_install 15845 15846 # Shell to use when invoking shell scripts. 15847 SHELL=$lt_SHELL 15848 15849 # An echo program that protects backslashes. 15850 ECHO=$lt_ECHO 15851 15852 # The host system. 15853 host_alias=$host_alias 15854 host=$host 15855 host_os=$host_os 15856 15857 # The build system. 15858 build_alias=$build_alias 15859 build=$build 15860 build_os=$build_os 15861 15862 # A sed program that does not truncate output. 15863 SED=$lt_SED 15864 15865 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 15866 Xsed="\$SED -e 1s/^X//" 15867 15868 # A grep program that handles long lines. 15869 GREP=$lt_GREP 15870 15871 # An ERE matcher. 15872 EGREP=$lt_EGREP 15873 15874 # A literal string matcher. 15875 FGREP=$lt_FGREP 15876 15877 # A BSD- or MS-compatible name lister. 15878 NM=$lt_NM 15879 15880 # Whether we need soft or hard links. 15881 LN_S=$lt_LN_S 15882 15883 # What is the maximum length of a command? 15884 max_cmd_len=$max_cmd_len 15885 15886 # Object file suffix (normally "o"). 15887 objext=$ac_objext 15888 15889 # Executable file suffix (normally ""). 15890 exeext=$exeext 15891 15892 # whether the shell understands "unset". 15893 lt_unset=$lt_unset 15894 15895 # turn spaces into newlines. 15896 SP2NL=$lt_lt_SP2NL 15897 15898 # turn newlines into spaces. 15899 NL2SP=$lt_lt_NL2SP 15900 15901 # An object symbol dumper. 15902 OBJDUMP=$lt_OBJDUMP 15903 15904 # Method to check whether dependent libraries are shared objects. 15905 deplibs_check_method=$lt_deplibs_check_method 15906 15907 # Command to use when deplibs_check_method == "file_magic". 15908 file_magic_cmd=$lt_file_magic_cmd 15909 15910 # The archiver. 15911 AR=$lt_AR 15912 AR_FLAGS=$lt_AR_FLAGS 15913 15914 # A symbol stripping program. 15915 STRIP=$lt_STRIP 15916 15917 # Commands used to install an old-style archive. 15918 RANLIB=$lt_RANLIB 15919 old_postinstall_cmds=$lt_old_postinstall_cmds 15920 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15921 15922 # Whether to use a lock for old archive extraction. 15923 lock_old_archive_extraction=$lock_old_archive_extraction 15924 15925 # A C compiler. 15926 LTCC=$lt_CC 15927 15928 # LTCC compiler flags. 15929 LTCFLAGS=$lt_CFLAGS 15930 15931 # Take the output of nm and produce a listing of raw symbols and C names. 15932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15933 15934 # Transform the output of nm in a proper C declaration. 15935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15936 15937 # Transform the output of nm in a C name address pair. 15938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15939 15940 # Transform the output of nm in a C name address pair when lib prefix is needed. 15941 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15942 15943 # The name of the directory that contains temporary libtool files. 15944 objdir=$objdir 15945 15946 # Used to examine libraries when file_magic_cmd begins with "file". 15947 MAGIC_CMD=$MAGIC_CMD 15948 15949 # Must we lock files when doing compilation? 15950 need_locks=$lt_need_locks 15951 15952 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15953 DSYMUTIL=$lt_DSYMUTIL 15954 15955 # Tool to change global to local symbols on Mac OS X. 15956 NMEDIT=$lt_NMEDIT 15957 15958 # Tool to manipulate fat objects and archives on Mac OS X. 15959 LIPO=$lt_LIPO 15960 15961 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 15962 OTOOL=$lt_OTOOL 15963 15964 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15965 OTOOL64=$lt_OTOOL64 15966 15967 # Old archive suffix (normally "a"). 15968 libext=$libext 15969 15970 # Shared library suffix (normally ".so"). 15971 shrext_cmds=$lt_shrext_cmds 15972 15973 # The commands to extract the exported symbol list from a shared archive. 15974 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15975 15976 # Variables whose values should be saved in libtool wrapper scripts and 15977 # restored at link time. 15978 variables_saved_for_relink=$lt_variables_saved_for_relink 15979 15980 # Do we need the "lib" prefix for modules? 15981 need_lib_prefix=$need_lib_prefix 15982 15983 # Do we need a version for libraries? 15984 need_version=$need_version 15985 15986 # Library versioning type. 15987 version_type=$version_type 15988 15989 # Shared library runtime path variable. 15990 runpath_var=$runpath_var 15991 15992 # Shared library path variable. 15993 shlibpath_var=$shlibpath_var 15994 15995 # Is shlibpath searched before the hard-coded library search path? 15996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15997 15998 # Format of library name prefix. 15999 libname_spec=$lt_libname_spec 16000 16001 # List of archive names. First name is the real one, the rest are links. 16002 # The last name is the one that the linker finds with -lNAME 16003 library_names_spec=$lt_library_names_spec 16004 16005 # The coded name of the library, if different from the real name. 16006 soname_spec=$lt_soname_spec 16007 16008 # Permission mode override for installation of shared libraries. 16009 install_override_mode=$lt_install_override_mode 16010 16011 # Command to use after installation of a shared archive. 16012 postinstall_cmds=$lt_postinstall_cmds 16013 16014 # Command to use after uninstallation of a shared archive. 16015 postuninstall_cmds=$lt_postuninstall_cmds 16016 16017 # Commands used to finish a libtool library installation in a directory. 16018 finish_cmds=$lt_finish_cmds 16019 16020 # As "finish_cmds", except a single script fragment to be evaled but 16021 # not shown. 16022 finish_eval=$lt_finish_eval 16023 16024 # Whether we should hardcode library paths into libraries. 16025 hardcode_into_libs=$hardcode_into_libs 16026 16027 # Compile-time system search path for libraries. 16028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16029 16030 # Run-time system search path for libraries. 16031 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16032 16033 # Whether dlopen is supported. 16034 dlopen_support=$enable_dlopen 16035 16036 # Whether dlopen of programs is supported. 16037 dlopen_self=$enable_dlopen_self 16038 16039 # Whether dlopen of statically linked programs is supported. 16040 dlopen_self_static=$enable_dlopen_self_static 16041 16042 # Commands to strip libraries. 16043 old_striplib=$lt_old_striplib 16044 striplib=$lt_striplib 16045 16046 16047 # The linker used to build libraries. 16048 LD=$lt_LD 16049 16050 # How to create reloadable object files. 16051 reload_flag=$lt_reload_flag 16052 reload_cmds=$lt_reload_cmds 16053 16054 # Commands used to build an old-style archive. 16055 old_archive_cmds=$lt_old_archive_cmds 16056 16057 # A language specific compiler. 16058 CC=$lt_compiler 16059 16060 # Is the compiler the GNU compiler? 16061 with_gcc=$GCC 16062 16063 # Compiler flag to turn off builtin functions. 16064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16065 16066 # How to pass a linker flag through the compiler. 16067 wl=$lt_lt_prog_compiler_wl 16068 16069 # Additional compiler flags for building library objects. 16070 pic_flag=$lt_lt_prog_compiler_pic 16071 16072 # Compiler flag to prevent dynamic linking. 16073 link_static_flag=$lt_lt_prog_compiler_static 16074 16075 # Does compiler simultaneously support -c and -o options? 16076 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16077 16078 # Whether or not to add -lc for building shared libraries. 16079 build_libtool_need_lc=$archive_cmds_need_lc 16080 16081 # Whether or not to disallow shared libs when runtime libs are static. 16082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16083 16084 # Compiler flag to allow reflexive dlopens. 16085 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16086 16087 # Compiler flag to generate shared objects directly from archives. 16088 whole_archive_flag_spec=$lt_whole_archive_flag_spec 16089 16090 # Whether the compiler copes with passing no objects directly. 16091 compiler_needs_object=$lt_compiler_needs_object 16092 16093 # Create an old-style archive from a shared archive. 16094 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16095 16096 # Create a temporary old-style archive to link instead of a shared archive. 16097 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16098 16099 # Commands used to build a shared archive. 16100 archive_cmds=$lt_archive_cmds 16101 archive_expsym_cmds=$lt_archive_expsym_cmds 16102 16103 # Commands used to build a loadable module if different from building 16104 # a shared archive. 16105 module_cmds=$lt_module_cmds 16106 module_expsym_cmds=$lt_module_expsym_cmds 16107 16108 # Whether we are building with GNU ld or not. 16109 with_gnu_ld=$lt_with_gnu_ld 16110 16111 # Flag that allows shared libraries with undefined symbols to be built. 16112 allow_undefined_flag=$lt_allow_undefined_flag 16113 16114 # Flag that enforces no undefined symbols. 16115 no_undefined_flag=$lt_no_undefined_flag 16116 16117 # Flag to hardcode \$libdir into a binary during linking. 16118 # This must work even if \$libdir does not exist 16119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16120 16121 # If ld is used when linking, flag to hardcode \$libdir into a binary 16122 # during linking. This must work even if \$libdir does not exist. 16123 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16124 16125 # Whether we need a single "-rpath" flag with a separated argument. 16126 hardcode_libdir_separator=$lt_hardcode_libdir_separator 16127 16128 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16129 # DIR into the resulting binary. 16130 hardcode_direct=$hardcode_direct 16131 16132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16133 # DIR into the resulting binary and the resulting library dependency is 16134 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16135 # library is relocated. 16136 hardcode_direct_absolute=$hardcode_direct_absolute 16137 16138 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16139 # into the resulting binary. 16140 hardcode_minus_L=$hardcode_minus_L 16141 16142 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16143 # into the resulting binary. 16144 hardcode_shlibpath_var=$hardcode_shlibpath_var 16145 16146 # Set to "yes" if building a shared library automatically hardcodes DIR 16147 # into the library and all subsequent libraries and executables linked 16148 # against it. 16149 hardcode_automatic=$hardcode_automatic 16150 16151 # Set to yes if linker adds runtime paths of dependent libraries 16152 # to runtime path list. 16153 inherit_rpath=$inherit_rpath 16154 16155 # Whether libtool must link a program against all its dependency libraries. 16156 link_all_deplibs=$link_all_deplibs 16157 16158 # Fix the shell variable \$srcfile for the compiler. 16159 fix_srcfile_path=$lt_fix_srcfile_path 16160 16161 # Set to "yes" if exported symbols are required. 16162 always_export_symbols=$always_export_symbols 16163 16164 # The commands to list exported symbols. 16165 export_symbols_cmds=$lt_export_symbols_cmds 16166 16167 # Symbols that should not be listed in the preloaded symbols. 16168 exclude_expsyms=$lt_exclude_expsyms 16169 16170 # Symbols that must always be exported. 16171 include_expsyms=$lt_include_expsyms 16172 16173 # Commands necessary for linking programs (against libraries) with templates. 16174 prelink_cmds=$lt_prelink_cmds 16175 16176 # Specify filename containing input files. 16177 file_list_spec=$lt_file_list_spec 16178 16179 # How to hardcode a shared library path into an executable. 16180 hardcode_action=$hardcode_action 16181 16182 # ### END LIBTOOL CONFIG 16183 16184 _LT_EOF 16185 16186 case $host_os in 16187 aix3*) 16188 cat <<\_LT_EOF >> "$cfgfile" 16189 # AIX sometimes has problems with the GCC collect2 program. For some 16190 # reason, if we set the COLLECT_NAMES environment variable, the problems 16191 # vanish in a puff of smoke. 16192 if test "X${COLLECT_NAMES+set}" != Xset; then 16193 COLLECT_NAMES= 16194 export COLLECT_NAMES 16195 fi 16196 _LT_EOF 16197 ;; 16198 esac 16199 16200 16201 ltmain="$ac_aux_dir/ltmain.sh" 16202 16203 16204 # We use sed instead of cat because bash on DJGPP gets confused if 16205 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16206 # text mode, it properly converts lines to CR/LF. This bash problem 16207 # is reportedly fixed, but why not run on old versions too? 16208 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16209 || (rm -f "$cfgfile"; exit 1) 16210 16211 case $xsi_shell in 16212 yes) 16213 cat << \_LT_EOF >> "$cfgfile" 16214 16215 # func_dirname file append nondir_replacement 16216 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 16217 # otherwise set result to NONDIR_REPLACEMENT. 16218 func_dirname () 16219 { 16220 case ${1} in 16221 */*) func_dirname_result="${1%/*}${2}" ;; 16222 * ) func_dirname_result="${3}" ;; 16223 esac 16224 } 16225 16226 # func_basename file 16227 func_basename () 16228 { 16229 func_basename_result="${1##*/}" 16230 } 16231 16232 # func_dirname_and_basename file append nondir_replacement 16233 # perform func_basename and func_dirname in a single function 16234 # call: 16235 # dirname: Compute the dirname of FILE. If nonempty, 16236 # add APPEND to the result, otherwise set result 16237 # to NONDIR_REPLACEMENT. 16238 # value returned in "$func_dirname_result" 16239 # basename: Compute filename of FILE. 16240 # value retuned in "$func_basename_result" 16241 # Implementation must be kept synchronized with func_dirname 16242 # and func_basename. For efficiency, we do not delegate to 16243 # those functions but instead duplicate the functionality here. 16244 func_dirname_and_basename () 16245 { 16246 case ${1} in 16247 */*) func_dirname_result="${1%/*}${2}" ;; 16248 * ) func_dirname_result="${3}" ;; 16249 esac 16250 func_basename_result="${1##*/}" 16251 } 16252 16253 # func_stripname prefix suffix name 16254 # strip PREFIX and SUFFIX off of NAME. 16255 # PREFIX and SUFFIX must not contain globbing or regex special 16256 # characters, hashes, percent signs, but SUFFIX may contain a leading 16257 # dot (in which case that matches only a dot). 16258 func_stripname () 16259 { 16260 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16261 # positional parameters, so assign one to ordinary parameter first. 16262 func_stripname_result=${3} 16263 func_stripname_result=${func_stripname_result#"${1}"} 16264 func_stripname_result=${func_stripname_result%"${2}"} 16265 } 16266 16267 # func_opt_split 16268 func_opt_split () 16269 { 16270 func_opt_split_opt=${1%%=*} 16271 func_opt_split_arg=${1#*=} 16272 } 16273 16274 # func_lo2o object 16275 func_lo2o () 16276 { 16277 case ${1} in 16278 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16279 *) func_lo2o_result=${1} ;; 16280 esac 16281 } 16282 16283 # func_xform libobj-or-source 16284 func_xform () 16285 { 16286 func_xform_result=${1%.*}.lo 16287 } 16288 16289 # func_arith arithmetic-term... 16290 func_arith () 16291 { 16292 func_arith_result=$(( $* )) 16293 } 16294 16295 # func_len string 16296 # STRING may not start with a hyphen. 16297 func_len () 16298 { 16299 func_len_result=${#1} 16300 } 16301 16302 _LT_EOF 16303 ;; 16304 *) # Bourne compatible functions. 16305 cat << \_LT_EOF >> "$cfgfile" 16306 16307 # func_dirname file append nondir_replacement 16308 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 16309 # otherwise set result to NONDIR_REPLACEMENT. 16310 func_dirname () 16311 { 16312 # Extract subdirectory from the argument. 16313 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 16314 if test "X$func_dirname_result" = "X${1}"; then 16315 func_dirname_result="${3}" 16316 else 16317 func_dirname_result="$func_dirname_result${2}" 16318 fi 16319 } 16320 16321 # func_basename file 16322 func_basename () 16323 { 16324 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 16325 } 16326 16327 16328 # func_stripname prefix suffix name 16329 # strip PREFIX and SUFFIX off of NAME. 16330 # PREFIX and SUFFIX must not contain globbing or regex special 16331 # characters, hashes, percent signs, but SUFFIX may contain a leading 16332 # dot (in which case that matches only a dot). 16333 # func_strip_suffix prefix name 16334 func_stripname () 16335 { 16336 case ${2} in 16337 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 16338 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 16339 esac 16340 } 16341 16342 # sed scripts: 16343 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16344 my_sed_long_arg='1s/^-[^=]*=//' 16345 16346 # func_opt_split 16347 func_opt_split () 16348 { 16349 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 16350 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 16351 } 16352 16353 # func_lo2o object 16354 func_lo2o () 16355 { 16356 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 16357 } 16358 16359 # func_xform libobj-or-source 16360 func_xform () 16361 { 16362 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 16363 } 16364 16365 # func_arith arithmetic-term... 16366 func_arith () 16367 { 16368 func_arith_result=`expr "$@"` 16369 } 16370 16371 # func_len string 16372 # STRING may not start with a hyphen. 16373 func_len () 16374 { 16375 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16376 } 16377 16378 _LT_EOF 16379 esac 16380 16381 case $lt_shell_append in 16382 yes) 16383 cat << \_LT_EOF >> "$cfgfile" 16384 16385 # func_append var value 16386 # Append VALUE to the end of shell variable VAR. 16387 func_append () 16388 { 16389 eval "$1+=\$2" 16390 } 16391 _LT_EOF 16392 ;; 16393 *) 16394 cat << \_LT_EOF >> "$cfgfile" 16395 16396 # func_append var value 16397 # Append VALUE to the end of shell variable VAR. 16398 func_append () 16399 { 16400 eval "$1=\$$1\$2" 16401 } 16402 16403 _LT_EOF 16404 ;; 16405 esac 16406 16407 16408 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16409 || (rm -f "$cfgfile"; exit 1) 16410 16411 mv -f "$cfgfile" "$ofile" || 16412 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16413 chmod +x "$ofile" 16414 16415 ;; 16416 "default-1":C) 16417 for ac_file in $CONFIG_FILES; do 16418 # Support "outfile[:infile[:infile...]]" 16419 case "$ac_file" in 16420 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 16421 esac 16422 # PO directories have a Makefile.in generated from Makefile.in.in. 16423 case "$ac_file" in */Makefile.in) 16424 # Adjust a relative srcdir. 16425 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 16426 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 16427 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 16428 # In autoconf-2.13 it is called $ac_given_srcdir. 16429 # In autoconf-2.50 it is called $srcdir. 16430 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 16431 case "$ac_given_srcdir" in 16432 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 16433 /*) top_srcdir="$ac_given_srcdir" ;; 16434 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 16435 esac 16436 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 16437 rm -f "$ac_dir/POTFILES" 16438 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 16439 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 16440 POMAKEFILEDEPS="POTFILES.in" 16441 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 16442 # on $ac_dir but don't depend on user-specified configuration 16443 # parameters. 16444 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 16445 # The LINGUAS file contains the set of available languages. 16446 if test -n "$OBSOLETE_ALL_LINGUAS"; then 16447 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 16448 fi 16449 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 16450 # Hide the ALL_LINGUAS assigment from automake. 16451 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 16452 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 16453 else 16454 # The set of available languages was given in configure.ac. 16455 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 16456 fi 16457 case "$ac_given_srcdir" in 16458 .) srcdirpre= ;; 16459 *) srcdirpre='$(srcdir)/' ;; 16460 esac 16461 POFILES= 16462 GMOFILES= 16463 UPDATEPOFILES= 16464 DUMMYPOFILES= 16465 for lang in $ALL_LINGUAS; do 16466 POFILES="$POFILES $srcdirpre$lang.po" 16467 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 16468 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 16469 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 16470 done 16471 # CATALOGS depends on both $ac_dir and the user's LINGUAS 16472 # environment variable. 16473 INST_LINGUAS= 16474 if test -n "$ALL_LINGUAS"; then 16475 for presentlang in $ALL_LINGUAS; do 16476 useit=no 16477 if test "%UNSET%" != "$LINGUAS"; then 16478 desiredlanguages="$LINGUAS" 16479 else 16480 desiredlanguages="$ALL_LINGUAS" 16481 fi 16482 for desiredlang in $desiredlanguages; do 16483 # Use the presentlang catalog if desiredlang is 16484 # a. equal to presentlang, or 16485 # b. a variant of presentlang (because in this case, 16486 # presentlang can be used as a fallback for messages 16487 # which are not translated in the desiredlang catalog). 16488 case "$desiredlang" in 16489 "$presentlang"*) useit=yes;; 16490 esac 16491 done 16492 if test $useit = yes; then 16493 INST_LINGUAS="$INST_LINGUAS $presentlang" 16494 fi 16495 done 16496 fi 16497 CATALOGS= 16498 if test -n "$INST_LINGUAS"; then 16499 for lang in $INST_LINGUAS; do 16500 CATALOGS="$CATALOGS $lang.gmo" 16501 done 16502 fi 16503 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 16504 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" 16505 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 16506 if test -f "$f"; then 16507 case "$f" in 16508 *.orig | *.bak | *~) ;; 16509 *) cat "$f" >> "$ac_dir/Makefile" ;; 16510 esac 16511 fi 16512 done 16513 fi 16514 ;; 16515 esac 16516 done ;; 16517 16518 esac 16519 done # for ac_tag 16520 16521 16522 as_fn_exit 0 16523 _ACEOF 16524 ac_clean_files=$ac_clean_files_save 16525 16526 test $ac_write_fail = 0 || 16527 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16528 16529 16530 # configure is writing to config.log, and then calls config.status. 16531 # config.status does its own redirection, appending to config.log. 16532 # Unfortunately, on DOS this fails, as config.log is still kept open 16533 # by configure, so config.status won't be able to write to it; its 16534 # output is simply discarded. So we exec the FD to /dev/null, 16535 # effectively closing config.log, so it can be properly (re)opened and 16536 # appended to by config.status. When coming back to configure, we 16537 # need to make the FD available again. 16538 if test "$no_create" != yes; then 16539 ac_cs_success=: 16540 ac_config_status_args= 16541 test "$silent" = yes && 16542 ac_config_status_args="$ac_config_status_args --quiet" 16543 exec 5>/dev/null 16544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16545 exec 5>>config.log 16546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16547 # would make configure fail if this is the last instruction. 16548 $ac_cs_success || as_fn_exit 1 16549 fi 16550 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16552 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16553 fi 16554 16555 16556 16557 touch config.status.tmp 16558 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 16559 sed '/as_fn_exit 0/i \ 16560 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 16561 touch --reference=Makefile Makefile.tmp \ 16562 mv Makefile.tmp Makefile \ 16563 ' config.status > config.status.tmp 16564 touch --reference=config.status config.status.tmp 16565 mv config.status.tmp config.status 16566 chmod +x config.status 16567 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 16568 touch --reference=Makefile Makefile.tmp 16569 mv Makefile.tmp Makefile 16570 else 16571 rm -f config.status.tmp 16572 fi 16573