1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for libctf 1.2.0. 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='libctf' 589 PACKAGE_TARNAME='libctf' 590 PACKAGE_VERSION='1.2.0' 591 PACKAGE_STRING='libctf 1.2.0' 592 PACKAGE_BUGREPORT='' 593 PACKAGE_URL='' 594 595 ac_unique_file="ctf-impl.h" 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_header_list= 634 ac_func_list= 635 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 VERSION_FLAGS_NOBFD 640 VERSION_FLAGS 641 HAVE_TCL_TRY 642 EXPECT 643 CTF_LIBADD 644 SHARED_LDFLAGS 645 BUILD_INFO_FALSE 646 BUILD_INFO_TRUE 647 NEED_CTF_QSORT_R_FALSE 648 NEED_CTF_QSORT_R_TRUE 649 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE 650 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE 651 zlibinc 652 zlibdir 653 ac_libctf_warn_cflags 654 bfdincludedir 655 bfdlibdir 656 target_noncanonical 657 host_noncanonical 658 INSTALL_LIBBFD_FALSE 659 INSTALL_LIBBFD_TRUE 660 MAINT 661 MAINTAINER_MODE_FALSE 662 MAINTAINER_MODE_TRUE 663 WERROR 664 WARN_PEDANTIC 665 c_warn 666 warn 667 OTOOL64 668 OTOOL 669 LIPO 670 NMEDIT 671 DSYMUTIL 672 LLVM_CONFIG 673 OBJDUMP 674 LN_S 675 NM 676 ac_ct_DUMPBIN 677 DUMPBIN 678 LD 679 FGREP 680 SED 681 LIBTOOL 682 CATOBJEXT 683 GENCAT 684 INSTOBJEXT 685 DATADIRNAME 686 CATALOGS 687 INCINTL 688 LIBINTL_DEP 689 POSUB 690 LTLIBINTL 691 LIBINTL 692 INTLLIBS 693 LTLIBICONV 694 LIBICONV 695 INTL_MACOSX_LIBS 696 MSGMERGE 697 XGETTEXT 698 GMSGFMT 699 MSGFMT 700 USE_NLS 701 MKINSTALLDIRS 702 ac_ct_AR 703 AR 704 RANLIB 705 AM_BACKSLASH 706 AM_DEFAULT_VERBOSITY 707 AM_DEFAULT_V 708 AM_V 709 am__fastdepCC_FALSE 710 am__fastdepCC_TRUE 711 CCDEPMODE 712 am__nodep 713 AMDEPBACKSLASH 714 AMDEP_FALSE 715 AMDEP_TRUE 716 am__quote 717 am__include 718 DEPDIR 719 am__untar 720 am__tar 721 AMTAR 722 am__leading_dot 723 SET_MAKE 724 AWK 725 mkdir_p 726 MKDIR_P 727 INSTALL_STRIP_PROGRAM 728 STRIP 729 install_sh 730 MAKEINFO 731 AUTOHEADER 732 AUTOMAKE 733 AUTOCONF 734 ACLOCAL 735 VERSION 736 PACKAGE 737 CYGPATH_W 738 am__isrc 739 INSTALL_DATA 740 INSTALL_SCRIPT 741 INSTALL_PROGRAM 742 EGREP 743 GREP 744 CPP 745 OBJEXT 746 EXEEXT 747 ac_ct_CC 748 CPPFLAGS 749 LDFLAGS 750 CFLAGS 751 CC 752 target_os 753 target_vendor 754 target_cpu 755 target 756 host_os 757 host_vendor 758 host_cpu 759 host 760 build_os 761 build_vendor 762 build_cpu 763 build 764 target_alias 765 host_alias 766 build_alias 767 LIBS 768 ECHO_T 769 ECHO_N 770 ECHO_C 771 DEFS 772 mandir 773 localedir 774 libdir 775 psdir 776 pdfdir 777 dvidir 778 htmldir 779 infodir 780 docdir 781 oldincludedir 782 includedir 783 localstatedir 784 sharedstatedir 785 sysconfdir 786 datadir 787 datarootdir 788 libexecdir 789 sbindir 790 bindir 791 program_transform_name 792 prefix 793 exec_prefix 794 PACKAGE_URL 795 PACKAGE_BUGREPORT 796 PACKAGE_STRING 797 PACKAGE_VERSION 798 PACKAGE_TARNAME 799 PACKAGE_NAME 800 PATH_SEPARATOR 801 SHELL' 802 ac_subst_files='' 803 ac_user_opts=' 804 enable_option_checking 805 enable_dependency_tracking 806 enable_silent_rules 807 enable_nls 808 with_gnu_ld 809 enable_rpath 810 with_libiconv_prefix 811 with_libiconv_type 812 with_libintl_prefix 813 with_libintl_type 814 enable_shared 815 enable_static 816 with_pic 817 enable_fast_install 818 enable_libtool_lock 819 enable_largefile 820 enable_werror_always 821 enable_maintainer_mode 822 enable_install_libbfd 823 with_system_zlib 824 enable_libctf_hash_debugging 825 ' 826 ac_precious_vars='build_alias 827 host_alias 828 target_alias 829 CC 830 CFLAGS 831 LDFLAGS 832 LIBS 833 CPPFLAGS 834 CPP' 835 836 837 # Initialize some variables set by options. 838 ac_init_help= 839 ac_init_version=false 840 ac_unrecognized_opts= 841 ac_unrecognized_sep= 842 # The variables have the same names as the options, with 843 # dashes changed to underlines. 844 cache_file=/dev/null 845 exec_prefix=NONE 846 no_create= 847 no_recursion= 848 prefix=NONE 849 program_prefix=NONE 850 program_suffix=NONE 851 program_transform_name=s,x,x, 852 silent= 853 site= 854 srcdir= 855 verbose= 856 x_includes=NONE 857 x_libraries=NONE 858 859 # Installation directory options. 860 # These are left unexpanded so users can "make install exec_prefix=/foo" 861 # and all the variables that are supposed to be based on exec_prefix 862 # by default will actually change. 863 # Use braces instead of parens because sh, perl, etc. also accept them. 864 # (The list follows the same order as the GNU Coding Standards.) 865 bindir='${exec_prefix}/bin' 866 sbindir='${exec_prefix}/sbin' 867 libexecdir='${exec_prefix}/libexec' 868 datarootdir='${prefix}/share' 869 datadir='${datarootdir}' 870 sysconfdir='${prefix}/etc' 871 sharedstatedir='${prefix}/com' 872 localstatedir='${prefix}/var' 873 includedir='${prefix}/include' 874 oldincludedir='/usr/include' 875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 876 infodir='${datarootdir}/info' 877 htmldir='${docdir}' 878 dvidir='${docdir}' 879 pdfdir='${docdir}' 880 psdir='${docdir}' 881 libdir='${exec_prefix}/lib' 882 localedir='${datarootdir}/locale' 883 mandir='${datarootdir}/man' 884 885 ac_prev= 886 ac_dashdash= 887 for ac_option 888 do 889 # If the previous option needs an argument, assign it. 890 if test -n "$ac_prev"; then 891 eval $ac_prev=\$ac_option 892 ac_prev= 893 continue 894 fi 895 896 case $ac_option in 897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 898 *=) ac_optarg= ;; 899 *) ac_optarg=yes ;; 900 esac 901 902 # Accept the important Cygnus configure options, so we can diagnose typos. 903 904 case $ac_dashdash$ac_option in 905 --) 906 ac_dashdash=yes ;; 907 908 -bindir | --bindir | --bindi | --bind | --bin | --bi) 909 ac_prev=bindir ;; 910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 911 bindir=$ac_optarg ;; 912 913 -build | --build | --buil | --bui | --bu) 914 ac_prev=build_alias ;; 915 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 916 build_alias=$ac_optarg ;; 917 918 -cache-file | --cache-file | --cache-fil | --cache-fi \ 919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 920 ac_prev=cache_file ;; 921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 923 cache_file=$ac_optarg ;; 924 925 --config-cache | -C) 926 cache_file=config.cache ;; 927 928 -datadir | --datadir | --datadi | --datad) 929 ac_prev=datadir ;; 930 -datadir=* | --datadir=* | --datadi=* | --datad=*) 931 datadir=$ac_optarg ;; 932 933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 934 | --dataroo | --dataro | --datar) 935 ac_prev=datarootdir ;; 936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 938 datarootdir=$ac_optarg ;; 939 940 -disable-* | --disable-*) 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 942 # Reject names that are not valid shell variable names. 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 944 as_fn_error $? "invalid feature name: $ac_useropt" 945 ac_useropt_orig=$ac_useropt 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 947 case $ac_user_opts in 948 *" 949 "enable_$ac_useropt" 950 "*) ;; 951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 952 ac_unrecognized_sep=', ';; 953 esac 954 eval enable_$ac_useropt=no ;; 955 956 -docdir | --docdir | --docdi | --doc | --do) 957 ac_prev=docdir ;; 958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 959 docdir=$ac_optarg ;; 960 961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 962 ac_prev=dvidir ;; 963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 964 dvidir=$ac_optarg ;; 965 966 -enable-* | --enable-*) 967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 968 # Reject names that are not valid shell variable names. 969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 970 as_fn_error $? "invalid feature name: $ac_useropt" 971 ac_useropt_orig=$ac_useropt 972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 973 case $ac_user_opts in 974 *" 975 "enable_$ac_useropt" 976 "*) ;; 977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 978 ac_unrecognized_sep=', ';; 979 esac 980 eval enable_$ac_useropt=\$ac_optarg ;; 981 982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 984 | --exec | --exe | --ex) 985 ac_prev=exec_prefix ;; 986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 988 | --exec=* | --exe=* | --ex=*) 989 exec_prefix=$ac_optarg ;; 990 991 -gas | --gas | --ga | --g) 992 # Obsolete; use --with-gas. 993 with_gas=yes ;; 994 995 -help | --help | --hel | --he | -h) 996 ac_init_help=long ;; 997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 998 ac_init_help=recursive ;; 999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1000 ac_init_help=short ;; 1001 1002 -host | --host | --hos | --ho) 1003 ac_prev=host_alias ;; 1004 -host=* | --host=* | --hos=* | --ho=*) 1005 host_alias=$ac_optarg ;; 1006 1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1008 ac_prev=htmldir ;; 1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1010 | --ht=*) 1011 htmldir=$ac_optarg ;; 1012 1013 -includedir | --includedir | --includedi | --included | --include \ 1014 | --includ | --inclu | --incl | --inc) 1015 ac_prev=includedir ;; 1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1017 | --includ=* | --inclu=* | --incl=* | --inc=*) 1018 includedir=$ac_optarg ;; 1019 1020 -infodir | --infodir | --infodi | --infod | --info | --inf) 1021 ac_prev=infodir ;; 1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1023 infodir=$ac_optarg ;; 1024 1025 -libdir | --libdir | --libdi | --libd) 1026 ac_prev=libdir ;; 1027 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1028 libdir=$ac_optarg ;; 1029 1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1031 | --libexe | --libex | --libe) 1032 ac_prev=libexecdir ;; 1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1034 | --libexe=* | --libex=* | --libe=*) 1035 libexecdir=$ac_optarg ;; 1036 1037 -localedir | --localedir | --localedi | --localed | --locale) 1038 ac_prev=localedir ;; 1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1040 localedir=$ac_optarg ;; 1041 1042 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1043 | --localstate | --localstat | --localsta | --localst | --locals) 1044 ac_prev=localstatedir ;; 1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1047 localstatedir=$ac_optarg ;; 1048 1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1050 ac_prev=mandir ;; 1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1052 mandir=$ac_optarg ;; 1053 1054 -nfp | --nfp | --nf) 1055 # Obsolete; use --without-fp. 1056 with_fp=no ;; 1057 1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1059 | --no-cr | --no-c | -n) 1060 no_create=yes ;; 1061 1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1064 no_recursion=yes ;; 1065 1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1068 | --oldin | --oldi | --old | --ol | --o) 1069 ac_prev=oldincludedir ;; 1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1073 oldincludedir=$ac_optarg ;; 1074 1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1076 ac_prev=prefix ;; 1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1078 prefix=$ac_optarg ;; 1079 1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1081 | --program-pre | --program-pr | --program-p) 1082 ac_prev=program_prefix ;; 1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1085 program_prefix=$ac_optarg ;; 1086 1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1088 | --program-suf | --program-su | --program-s) 1089 ac_prev=program_suffix ;; 1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1092 program_suffix=$ac_optarg ;; 1093 1094 -program-transform-name | --program-transform-name \ 1095 | --program-transform-nam | --program-transform-na \ 1096 | --program-transform-n | --program-transform- \ 1097 | --program-transform | --program-transfor \ 1098 | --program-transfo | --program-transf \ 1099 | --program-trans | --program-tran \ 1100 | --progr-tra | --program-tr | --program-t) 1101 ac_prev=program_transform_name ;; 1102 -program-transform-name=* | --program-transform-name=* \ 1103 | --program-transform-nam=* | --program-transform-na=* \ 1104 | --program-transform-n=* | --program-transform-=* \ 1105 | --program-transform=* | --program-transfor=* \ 1106 | --program-transfo=* | --program-transf=* \ 1107 | --program-trans=* | --program-tran=* \ 1108 | --progr-tra=* | --program-tr=* | --program-t=*) 1109 program_transform_name=$ac_optarg ;; 1110 1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1112 ac_prev=pdfdir ;; 1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1114 pdfdir=$ac_optarg ;; 1115 1116 -psdir | --psdir | --psdi | --psd | --ps) 1117 ac_prev=psdir ;; 1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1119 psdir=$ac_optarg ;; 1120 1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1122 | -silent | --silent | --silen | --sile | --sil) 1123 silent=yes ;; 1124 1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1126 ac_prev=sbindir ;; 1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1128 | --sbi=* | --sb=*) 1129 sbindir=$ac_optarg ;; 1130 1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1133 | --sharedst | --shareds | --shared | --share | --shar \ 1134 | --sha | --sh) 1135 ac_prev=sharedstatedir ;; 1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1139 | --sha=* | --sh=*) 1140 sharedstatedir=$ac_optarg ;; 1141 1142 -site | --site | --sit) 1143 ac_prev=site ;; 1144 -site=* | --site=* | --sit=*) 1145 site=$ac_optarg ;; 1146 1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1148 ac_prev=srcdir ;; 1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1150 srcdir=$ac_optarg ;; 1151 1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1153 | --syscon | --sysco | --sysc | --sys | --sy) 1154 ac_prev=sysconfdir ;; 1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1157 sysconfdir=$ac_optarg ;; 1158 1159 -target | --target | --targe | --targ | --tar | --ta | --t) 1160 ac_prev=target_alias ;; 1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1162 target_alias=$ac_optarg ;; 1163 1164 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1165 verbose=yes ;; 1166 1167 -version | --version | --versio | --versi | --vers | -V) 1168 ac_init_version=: ;; 1169 1170 -with-* | --with-*) 1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1172 # Reject names that are not valid shell variable names. 1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1174 as_fn_error $? "invalid package name: $ac_useropt" 1175 ac_useropt_orig=$ac_useropt 1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1177 case $ac_user_opts in 1178 *" 1179 "with_$ac_useropt" 1180 "*) ;; 1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1182 ac_unrecognized_sep=', ';; 1183 esac 1184 eval with_$ac_useropt=\$ac_optarg ;; 1185 1186 -without-* | --without-*) 1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1188 # Reject names that are not valid shell variable names. 1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1190 as_fn_error $? "invalid package name: $ac_useropt" 1191 ac_useropt_orig=$ac_useropt 1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1193 case $ac_user_opts in 1194 *" 1195 "with_$ac_useropt" 1196 "*) ;; 1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1198 ac_unrecognized_sep=', ';; 1199 esac 1200 eval with_$ac_useropt=no ;; 1201 1202 --x) 1203 # Obsolete; use --with-x. 1204 with_x=yes ;; 1205 1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1207 | --x-incl | --x-inc | --x-in | --x-i) 1208 ac_prev=x_includes ;; 1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1211 x_includes=$ac_optarg ;; 1212 1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1215 ac_prev=x_libraries ;; 1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1218 x_libraries=$ac_optarg ;; 1219 1220 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1221 Try \`$0 --help' for more information" 1222 ;; 1223 1224 *=*) 1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1226 # Reject names that are not valid shell variable names. 1227 case $ac_envvar in #( 1228 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1230 esac 1231 eval $ac_envvar=\$ac_optarg 1232 export $ac_envvar ;; 1233 1234 *) 1235 # FIXME: should be removed in autoconf 3.0. 1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1240 ;; 1241 1242 esac 1243 done 1244 1245 if test -n "$ac_prev"; then 1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1247 as_fn_error $? "missing argument to $ac_option" 1248 fi 1249 1250 if test -n "$ac_unrecognized_opts"; then 1251 case $enable_option_checking in 1252 no) ;; 1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1255 esac 1256 fi 1257 1258 # Check all directory arguments for consistency. 1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1260 datadir sysconfdir sharedstatedir localstatedir includedir \ 1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1262 libdir localedir mandir 1263 do 1264 eval ac_val=\$$ac_var 1265 # Remove trailing slashes. 1266 case $ac_val in 1267 */ ) 1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1269 eval $ac_var=\$ac_val;; 1270 esac 1271 # Be sure to have absolute directory names. 1272 case $ac_val in 1273 [\\/$]* | ?:[\\/]* ) continue;; 1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1275 esac 1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1277 done 1278 1279 # There might be people who depend on the old broken behavior: `$host' 1280 # used to hold the argument of --host etc. 1281 # FIXME: To remove some day. 1282 build=$build_alias 1283 host=$host_alias 1284 target=$target_alias 1285 1286 # FIXME: To remove some day. 1287 if test "x$host_alias" != x; then 1288 if test "x$build_alias" = x; then 1289 cross_compiling=maybe 1290 elif test "x$build_alias" != "x$host_alias"; then 1291 cross_compiling=yes 1292 fi 1293 fi 1294 1295 ac_tool_prefix= 1296 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1297 1298 test "$silent" = yes && exec 6>/dev/null 1299 1300 1301 ac_pwd=`pwd` && test -n "$ac_pwd" && 1302 ac_ls_di=`ls -di .` && 1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1304 as_fn_error $? "working directory cannot be determined" 1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1306 as_fn_error $? "pwd does not report name of working directory" 1307 1308 1309 # Find the source files, if location was not specified. 1310 if test -z "$srcdir"; then 1311 ac_srcdir_defaulted=yes 1312 # Try the directory containing this script, then the parent directory. 1313 ac_confdir=`$as_dirname -- "$as_myself" || 1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1315 X"$as_myself" : 'X\(//\)[^/]' \| \ 1316 X"$as_myself" : 'X\(//\)$' \| \ 1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1318 $as_echo X"$as_myself" | 1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)[^/].*/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)$/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\).*/{ 1332 s//\1/ 1333 q 1334 } 1335 s/.*/./; q'` 1336 srcdir=$ac_confdir 1337 if test ! -r "$srcdir/$ac_unique_file"; then 1338 srcdir=.. 1339 fi 1340 else 1341 ac_srcdir_defaulted=no 1342 fi 1343 if test ! -r "$srcdir/$ac_unique_file"; then 1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1346 fi 1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1348 ac_abs_confdir=`( 1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1350 pwd)` 1351 # When building in place, set srcdir=. 1352 if test "$ac_abs_confdir" = "$ac_pwd"; then 1353 srcdir=. 1354 fi 1355 # Remove unnecessary trailing slashes from srcdir. 1356 # Double slashes in file names in object file debugging info 1357 # mess up M-x gdb in Emacs. 1358 case $srcdir in 1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1360 esac 1361 for ac_var in $ac_precious_vars; do 1362 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_env_${ac_var}_value=\$${ac_var} 1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1366 done 1367 1368 # 1369 # Report the --help message. 1370 # 1371 if test "$ac_init_help" = "long"; then 1372 # Omit some internal or obsolete options to make the list less imposing. 1373 # This message is too long to be a string in the A/UX 3.1 sh. 1374 cat <<_ACEOF 1375 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems. 1376 1377 Usage: $0 [OPTION]... [VAR=VALUE]... 1378 1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1380 VAR=VALUE. See below for descriptions of some of the useful variables. 1381 1382 Defaults for the options are specified in brackets. 1383 1384 Configuration: 1385 -h, --help display this help and exit 1386 --help=short display options specific to this package 1387 --help=recursive display the short help of all the included packages 1388 -V, --version display version information and exit 1389 -q, --quiet, --silent do not print \`checking ...' messages 1390 --cache-file=FILE cache test results in FILE [disabled] 1391 -C, --config-cache alias for \`--cache-file=config.cache' 1392 -n, --no-create do not create output files 1393 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1394 1395 Installation directories: 1396 --prefix=PREFIX install architecture-independent files in PREFIX 1397 [$ac_default_prefix] 1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1399 [PREFIX] 1400 1401 By default, \`make install' will install all the files in 1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1404 for instance \`--prefix=\$HOME'. 1405 1406 For better control, use the options below. 1407 1408 Fine tuning of the installation directories: 1409 --bindir=DIR user executables [EPREFIX/bin] 1410 --sbindir=DIR system admin executables [EPREFIX/sbin] 1411 --libexecdir=DIR program executables [EPREFIX/libexec] 1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1415 --libdir=DIR object code libraries [EPREFIX/lib] 1416 --includedir=DIR C header files [PREFIX/include] 1417 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1420 --infodir=DIR info documentation [DATAROOTDIR/info] 1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1422 --mandir=DIR man documentation [DATAROOTDIR/man] 1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf] 1424 --htmldir=DIR html documentation [DOCDIR] 1425 --dvidir=DIR dvi documentation [DOCDIR] 1426 --pdfdir=DIR pdf documentation [DOCDIR] 1427 --psdir=DIR ps documentation [DOCDIR] 1428 _ACEOF 1429 1430 cat <<\_ACEOF 1431 1432 Program names: 1433 --program-prefix=PREFIX prepend PREFIX to installed program names 1434 --program-suffix=SUFFIX append SUFFIX to installed program names 1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1436 1437 System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440 --target=TARGET configure for building compilers for TARGET [HOST] 1441 _ACEOF 1442 fi 1443 1444 if test -n "$ac_init_help"; then 1445 case $ac_init_help in 1446 short | recursive ) echo "Configuration of libctf 1.2.0:";; 1447 esac 1448 cat <<\_ACEOF 1449 1450 Optional Features: 1451 --disable-option-checking ignore unrecognized --enable/--with options 1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1454 --enable-dependency-tracking 1455 do not reject slow dependency extractors 1456 --disable-dependency-tracking 1457 speeds up one-time build 1458 --enable-silent-rules less verbose build output (undo: "make V=1") 1459 --disable-silent-rules verbose build output (undo: "make V=0") 1460 --disable-nls do not use Native Language Support 1461 --disable-rpath do not hardcode runtime library paths 1462 --enable-shared[=PKGS] build shared libraries [default=no] 1463 --enable-static[=PKGS] build static libraries [default=yes] 1464 --enable-fast-install[=PKGS] 1465 optimize for fast installation [default=yes] 1466 --disable-libtool-lock avoid locking (might break parallel builds) 1467 --disable-largefile omit support for large files 1468 --enable-werror-always enable -Werror despite compiler version 1469 --enable-maintainer-mode 1470 enable make rules and dependencies not useful (and 1471 sometimes confusing) to the casual installer 1472 --enable-install-libbfd controls installation of libbfd and related headers 1473 --enable-libctf-hash-debugging 1474 Enable expensive debugging of CTF deduplication type 1475 hashing [default=no] 1476 1477 Optional Packages: 1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1480 --with-gnu-ld assume the C compiler uses GNU ld default=no 1481 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1482 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1483 --with-libiconv-type=TYPE type of library to search for (auto/static/shared) 1484 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1485 --without-libintl-prefix don't search for libintl in includedir and libdir 1486 --with-libintl-type=TYPE type of library to search for (auto/static/shared) 1487 --with-pic try to use only PIC/non-PIC objects [default=use 1488 both] 1489 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1490 --with-system-zlib use installed libz 1491 1492 Some influential environment variables: 1493 CC C compiler command 1494 CFLAGS C compiler flags 1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1496 nonstandard directory <lib dir> 1497 LIBS libraries to pass to the linker, e.g. -l<library> 1498 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1499 you have headers in a nonstandard directory <include dir> 1500 CPP C preprocessor 1501 1502 Use these variables to override the choices made by `configure' or to help 1503 it to find libraries and programs with nonstandard names/locations. 1504 1505 Report bugs to the package provider. 1506 _ACEOF 1507 ac_status=$? 1508 fi 1509 1510 if test "$ac_init_help" = "recursive"; then 1511 # If there are subdirs, report their specific --help. 1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1513 test -d "$ac_dir" || 1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1515 continue 1516 ac_builddir=. 1517 1518 case "$ac_dir" in 1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) 1521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1522 # A ".." for each directory in $ac_dir_suffix. 1523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1524 case $ac_top_builddir_sub in 1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1527 esac ;; 1528 esac 1529 ac_abs_top_builddir=$ac_pwd 1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1531 # for backward compatibility: 1532 ac_top_builddir=$ac_top_build_prefix 1533 1534 case $srcdir in 1535 .) # We are building in place. 1536 ac_srcdir=. 1537 ac_top_srcdir=$ac_top_builddir_sub 1538 ac_abs_top_srcdir=$ac_pwd ;; 1539 [\\/]* | ?:[\\/]* ) # Absolute name. 1540 ac_srcdir=$srcdir$ac_dir_suffix; 1541 ac_top_srcdir=$srcdir 1542 ac_abs_top_srcdir=$srcdir ;; 1543 *) # Relative name. 1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1545 ac_top_srcdir=$ac_top_build_prefix$srcdir 1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1547 esac 1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1549 1550 cd "$ac_dir" || { ac_status=$?; continue; } 1551 # Check for guested configure. 1552 if test -f "$ac_srcdir/configure.gnu"; then 1553 echo && 1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1555 elif test -f "$ac_srcdir/configure"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure" --help=recursive 1558 else 1559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1560 fi || ac_status=$? 1561 cd "$ac_pwd" || { ac_status=$?; break; } 1562 done 1563 fi 1564 1565 test -n "$ac_init_help" && exit $ac_status 1566 if $ac_init_version; then 1567 cat <<\_ACEOF 1568 libctf configure 1.2.0 1569 generated by GNU Autoconf 2.69 1570 1571 Copyright (C) 2012 Free Software Foundation, Inc. 1572 This configure script is free software; the Free Software Foundation 1573 gives unlimited permission to copy, distribute and modify it. 1574 _ACEOF 1575 exit 1576 fi 1577 1578 ## ------------------------ ## 1579 ## Autoconf initialization. ## 1580 ## ------------------------ ## 1581 1582 # ac_fn_c_try_compile LINENO 1583 # -------------------------- 1584 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1585 ac_fn_c_try_compile () 1586 { 1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1588 rm -f conftest.$ac_objext 1589 if { { ac_try="$ac_compile" 1590 case "(($ac_try" in 1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1592 *) ac_try_echo=$ac_try;; 1593 esac 1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1595 $as_echo "$ac_try_echo"; } >&5 1596 (eval "$ac_compile") 2>conftest.err 1597 ac_status=$? 1598 if test -s conftest.err; then 1599 grep -v '^ *+' conftest.err >conftest.er1 1600 cat conftest.er1 >&5 1601 mv -f conftest.er1 conftest.err 1602 fi 1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1604 test $ac_status = 0; } && { 1605 test -z "$ac_c_werror_flag" || 1606 test ! -s conftest.err 1607 } && test -s conftest.$ac_objext; then : 1608 ac_retval=0 1609 else 1610 $as_echo "$as_me: failed program was:" >&5 1611 sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614 fi 1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1616 as_fn_set_status $ac_retval 1617 1618 } # ac_fn_c_try_compile 1619 1620 # ac_fn_c_try_cpp LINENO 1621 # ---------------------- 1622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1623 ac_fn_c_try_cpp () 1624 { 1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 if { { ac_try="$ac_cpp conftest.$ac_ext" 1627 case "(($ac_try" in 1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1629 *) ac_try_echo=$ac_try;; 1630 esac 1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1632 $as_echo "$ac_try_echo"; } >&5 1633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1634 ac_status=$? 1635 if test -s conftest.err; then 1636 grep -v '^ *+' conftest.err >conftest.er1 1637 cat conftest.er1 >&5 1638 mv -f conftest.er1 conftest.err 1639 fi 1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641 test $ac_status = 0; } > conftest.i && { 1642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1643 test ! -s conftest.err 1644 }; then : 1645 ac_retval=0 1646 else 1647 $as_echo "$as_me: failed program was:" >&5 1648 sed 's/^/| /' conftest.$ac_ext >&5 1649 1650 ac_retval=1 1651 fi 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 as_fn_set_status $ac_retval 1654 1655 } # ac_fn_c_try_cpp 1656 1657 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1658 # ------------------------------------------------------- 1659 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1660 # the include files in INCLUDES and setting the cache variable VAR 1661 # accordingly. 1662 ac_fn_c_check_header_mongrel () 1663 { 1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1665 if eval \${$3+:} false; then : 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667 $as_echo_n "checking for $2... " >&6; } 1668 if eval \${$3+:} false; then : 1669 $as_echo_n "(cached) " >&6 1670 fi 1671 eval ac_res=\$$3 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1673 $as_echo "$ac_res" >&6; } 1674 else 1675 # Is the header compilable? 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1677 $as_echo_n "checking $2 usability... " >&6; } 1678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1679 /* end confdefs.h. */ 1680 $4 1681 #include <$2> 1682 _ACEOF 1683 if ac_fn_c_try_compile "$LINENO"; then : 1684 ac_header_compiler=yes 1685 else 1686 ac_header_compiler=no 1687 fi 1688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1690 $as_echo "$ac_header_compiler" >&6; } 1691 1692 # Is the header present? 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1694 $as_echo_n "checking $2 presence... " >&6; } 1695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1696 /* end confdefs.h. */ 1697 #include <$2> 1698 _ACEOF 1699 if ac_fn_c_try_cpp "$LINENO"; then : 1700 ac_header_preproc=yes 1701 else 1702 ac_header_preproc=no 1703 fi 1704 rm -f conftest.err conftest.i conftest.$ac_ext 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1706 $as_echo "$ac_header_preproc" >&6; } 1707 1708 # So? What about this header? 1709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1710 yes:no: ) 1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1712 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1714 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1715 ;; 1716 no:yes:* ) 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1718 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1720 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1722 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1724 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1726 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1727 ;; 1728 esac 1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1730 $as_echo_n "checking for $2... " >&6; } 1731 if eval \${$3+:} false; then : 1732 $as_echo_n "(cached) " >&6 1733 else 1734 eval "$3=\$ac_header_compiler" 1735 fi 1736 eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738 $as_echo "$ac_res" >&6; } 1739 fi 1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1741 1742 } # ac_fn_c_check_header_mongrel 1743 1744 # ac_fn_c_try_run LINENO 1745 # ---------------------- 1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1747 # that executables *can* be run. 1748 ac_fn_c_try_run () 1749 { 1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1751 if { { ac_try="$ac_link" 1752 case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755 esac 1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757 $as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_link") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1762 { { case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765 esac 1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767 $as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_try") 2>&5 1769 ac_status=$? 1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1771 test $ac_status = 0; }; }; then : 1772 ac_retval=0 1773 else 1774 $as_echo "$as_me: program exited with status $ac_status" >&5 1775 $as_echo "$as_me: failed program was:" >&5 1776 sed 's/^/| /' conftest.$ac_ext >&5 1777 1778 ac_retval=$ac_status 1779 fi 1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 as_fn_set_status $ac_retval 1783 1784 } # ac_fn_c_try_run 1785 1786 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1787 # ------------------------------------------------------- 1788 # Tests whether HEADER exists and can be compiled using the include files in 1789 # INCLUDES, setting the cache variable VAR accordingly. 1790 ac_fn_c_check_header_compile () 1791 { 1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1794 $as_echo_n "checking for $2... " >&6; } 1795 if eval \${$3+:} false; then : 1796 $as_echo_n "(cached) " >&6 1797 else 1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1799 /* end confdefs.h. */ 1800 $4 1801 #include <$2> 1802 _ACEOF 1803 if ac_fn_c_try_compile "$LINENO"; then : 1804 eval "$3=yes" 1805 else 1806 eval "$3=no" 1807 fi 1808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809 fi 1810 eval ac_res=\$$3 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1812 $as_echo "$ac_res" >&6; } 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 1815 } # ac_fn_c_check_header_compile 1816 1817 # ac_fn_c_try_link LINENO 1818 # ----------------------- 1819 # Try to link conftest.$ac_ext, and return whether this succeeded. 1820 ac_fn_c_try_link () 1821 { 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1823 rm -f conftest.$ac_objext conftest$ac_exeext 1824 if { { ac_try="$ac_link" 1825 case "(($ac_try" in 1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1827 *) ac_try_echo=$ac_try;; 1828 esac 1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1830 $as_echo "$ac_try_echo"; } >&5 1831 (eval "$ac_link") 2>conftest.err 1832 ac_status=$? 1833 if test -s conftest.err; then 1834 grep -v '^ *+' conftest.err >conftest.er1 1835 cat conftest.er1 >&5 1836 mv -f conftest.er1 conftest.err 1837 fi 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; } && { 1840 test -z "$ac_c_werror_flag" || 1841 test ! -s conftest.err 1842 } && test -s conftest$ac_exeext && { 1843 test "$cross_compiling" = yes || 1844 test -x conftest$ac_exeext 1845 }; then : 1846 ac_retval=0 1847 else 1848 $as_echo "$as_me: failed program was:" >&5 1849 sed 's/^/| /' conftest.$ac_ext >&5 1850 1851 ac_retval=1 1852 fi 1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1855 # interfere with the next link command; also delete a directory that is 1856 # left behind by Apple's compiler. We do this before executing the actions. 1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 as_fn_set_status $ac_retval 1860 1861 } # ac_fn_c_try_link 1862 1863 # ac_fn_c_check_func LINENO FUNC VAR 1864 # ---------------------------------- 1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1866 ac_fn_c_check_func () 1867 { 1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870 $as_echo_n "checking for $2... " >&6; } 1871 if eval \${$3+:} false; then : 1872 $as_echo_n "(cached) " >&6 1873 else 1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1875 /* end confdefs.h. */ 1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1878 #define $2 innocuous_$2 1879 1880 /* System header to define __stub macros and hopefully few prototypes, 1881 which can conflict with char $2 (); below. 1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1883 <limits.h> exists even on freestanding compilers. */ 1884 1885 #ifdef __STDC__ 1886 # include <limits.h> 1887 #else 1888 # include <assert.h> 1889 #endif 1890 1891 #undef $2 1892 1893 /* Override any GCC internal prototype to avoid an error. 1894 Use char because int might match the return type of a GCC 1895 builtin and then its argument prototype would still apply. */ 1896 #ifdef __cplusplus 1897 extern "C" 1898 #endif 1899 char $2 (); 1900 /* The GNU C library defines this for functions which it implements 1901 to always fail with ENOSYS. Some functions are actually named 1902 something starting with __ and the normal name is an alias. */ 1903 #if defined __stub_$2 || defined __stub___$2 1904 choke me 1905 #endif 1906 1907 int 1908 main () 1909 { 1910 return $2 (); 1911 ; 1912 return 0; 1913 } 1914 _ACEOF 1915 if ac_fn_c_try_link "$LINENO"; then : 1916 eval "$3=yes" 1917 else 1918 eval "$3=no" 1919 fi 1920 rm -f core conftest.err conftest.$ac_objext \ 1921 conftest$ac_exeext conftest.$ac_ext 1922 fi 1923 eval ac_res=\$$3 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1925 $as_echo "$ac_res" >&6; } 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 1928 } # ac_fn_c_check_func 1929 1930 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1931 # --------------------------------------------- 1932 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1933 # accordingly. 1934 ac_fn_c_check_decl () 1935 { 1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1937 as_decl_name=`echo $2|sed 's/ *(.*//'` 1938 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1940 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1941 if eval \${$3+:} false; then : 1942 $as_echo_n "(cached) " >&6 1943 else 1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945 /* end confdefs.h. */ 1946 $4 1947 int 1948 main () 1949 { 1950 #ifndef $as_decl_name 1951 #ifdef __cplusplus 1952 (void) $as_decl_use; 1953 #else 1954 (void) $as_decl_name; 1955 #endif 1956 #endif 1957 1958 ; 1959 return 0; 1960 } 1961 _ACEOF 1962 if ac_fn_c_try_compile "$LINENO"; then : 1963 eval "$3=yes" 1964 else 1965 eval "$3=no" 1966 fi 1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1968 fi 1969 eval ac_res=\$$3 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1971 $as_echo "$ac_res" >&6; } 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974 } # ac_fn_c_check_decl 1975 cat >config.log <<_ACEOF 1976 This file contains any messages produced by compilers while 1977 running configure, to aid debugging if configure makes a mistake. 1978 1979 It was created by libctf $as_me 1.2.0, which was 1980 generated by GNU Autoconf 2.69. Invocation command line was 1981 1982 $ $0 $@ 1983 1984 _ACEOF 1985 exec 5>>config.log 1986 { 1987 cat <<_ASUNAME 1988 ## --------- ## 1989 ## Platform. ## 1990 ## --------- ## 1991 1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1993 uname -m = `(uname -m) 2>/dev/null || echo unknown` 1994 uname -r = `(uname -r) 2>/dev/null || echo unknown` 1995 uname -s = `(uname -s) 2>/dev/null || echo unknown` 1996 uname -v = `(uname -v) 2>/dev/null || echo unknown` 1997 1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2000 2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2008 2009 _ASUNAME 2010 2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2012 for as_dir in $PATH 2013 do 2014 IFS=$as_save_IFS 2015 test -z "$as_dir" && as_dir=. 2016 $as_echo "PATH: $as_dir" 2017 done 2018 IFS=$as_save_IFS 2019 2020 } >&5 2021 2022 cat >&5 <<_ACEOF 2023 2024 2025 ## ----------- ## 2026 ## Core tests. ## 2027 ## ----------- ## 2028 2029 _ACEOF 2030 2031 2032 # Keep a trace of the command line. 2033 # Strip out --no-create and --no-recursion so they do not pile up. 2034 # Strip out --silent because we don't want to record it for future runs. 2035 # Also quote any args containing shell meta-characters. 2036 # Make two passes to allow for proper duplicate-argument suppression. 2037 ac_configure_args= 2038 ac_configure_args0= 2039 ac_configure_args1= 2040 ac_must_keep_next=false 2041 for ac_pass in 1 2 2042 do 2043 for ac_arg 2044 do 2045 case $ac_arg in 2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2048 | -silent | --silent | --silen | --sile | --sil) 2049 continue ;; 2050 *\'*) 2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2052 esac 2053 case $ac_pass in 2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2055 2) 2056 as_fn_append ac_configure_args1 " '$ac_arg'" 2057 if test $ac_must_keep_next = true; then 2058 ac_must_keep_next=false # Got value, back to normal. 2059 else 2060 case $ac_arg in 2061 *=* | --config-cache | -C | -disable-* | --disable-* \ 2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2064 | -with-* | --with-* | -without-* | --without-* | --x) 2065 case "$ac_configure_args0 " in 2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2067 esac 2068 ;; 2069 -* ) ac_must_keep_next=true ;; 2070 esac 2071 fi 2072 as_fn_append ac_configure_args " '$ac_arg'" 2073 ;; 2074 esac 2075 done 2076 done 2077 { ac_configure_args0=; unset ac_configure_args0;} 2078 { ac_configure_args1=; unset ac_configure_args1;} 2079 2080 # When interrupted or exit'd, cleanup temporary files, and complete 2081 # config.log. We remove comments because anyway the quotes in there 2082 # would cause problems or look ugly. 2083 # WARNING: Use '\'' to represent an apostrophe within the trap. 2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2085 trap 'exit_status=$? 2086 # Save into config.log some information that might help in debugging. 2087 { 2088 echo 2089 2090 $as_echo "## ---------------- ## 2091 ## Cache variables. ## 2092 ## ---------------- ##" 2093 echo 2094 # The following way of writing the cache mishandles newlines in values, 2095 ( 2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2097 eval ac_val=\$$ac_var 2098 case $ac_val in #( 2099 *${as_nl}*) 2100 case $ac_var in #( 2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2103 esac 2104 case $ac_var in #( 2105 _ | IFS | as_nl) ;; #( 2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2107 *) { eval $ac_var=; unset $ac_var;} ;; 2108 esac ;; 2109 esac 2110 done 2111 (set) 2>&1 | 2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2113 *${as_nl}ac_space=\ *) 2114 sed -n \ 2115 "s/'\''/'\''\\\\'\'''\''/g; 2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2117 ;; #( 2118 *) 2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2120 ;; 2121 esac | 2122 sort 2123 ) 2124 echo 2125 2126 $as_echo "## ----------------- ## 2127 ## Output variables. ## 2128 ## ----------------- ##" 2129 echo 2130 for ac_var in $ac_subst_vars 2131 do 2132 eval ac_val=\$$ac_var 2133 case $ac_val in 2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2135 esac 2136 $as_echo "$ac_var='\''$ac_val'\''" 2137 done | sort 2138 echo 2139 2140 if test -n "$ac_subst_files"; then 2141 $as_echo "## ------------------- ## 2142 ## File substitutions. ## 2143 ## ------------------- ##" 2144 echo 2145 for ac_var in $ac_subst_files 2146 do 2147 eval ac_val=\$$ac_var 2148 case $ac_val in 2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2150 esac 2151 $as_echo "$ac_var='\''$ac_val'\''" 2152 done | sort 2153 echo 2154 fi 2155 2156 if test -s confdefs.h; then 2157 $as_echo "## ----------- ## 2158 ## confdefs.h. ## 2159 ## ----------- ##" 2160 echo 2161 cat confdefs.h 2162 echo 2163 fi 2164 test "$ac_signal" != 0 && 2165 $as_echo "$as_me: caught signal $ac_signal" 2166 $as_echo "$as_me: exit $exit_status" 2167 } >&5 2168 rm -f core *.core core.conftest.* && 2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2170 exit $exit_status 2171 ' 0 2172 for ac_signal in 1 2 13 15; do 2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2174 done 2175 ac_signal=0 2176 2177 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2178 rm -f -r conftest* confdefs.h 2179 2180 $as_echo "/* confdefs.h */" > confdefs.h 2181 2182 # Predefined preprocessor variables. 2183 2184 cat >>confdefs.h <<_ACEOF 2185 #define PACKAGE_NAME "$PACKAGE_NAME" 2186 _ACEOF 2187 2188 cat >>confdefs.h <<_ACEOF 2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2190 _ACEOF 2191 2192 cat >>confdefs.h <<_ACEOF 2193 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2194 _ACEOF 2195 2196 cat >>confdefs.h <<_ACEOF 2197 #define PACKAGE_STRING "$PACKAGE_STRING" 2198 _ACEOF 2199 2200 cat >>confdefs.h <<_ACEOF 2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2202 _ACEOF 2203 2204 cat >>confdefs.h <<_ACEOF 2205 #define PACKAGE_URL "$PACKAGE_URL" 2206 _ACEOF 2207 2208 2209 # Let the site file select an alternate cache file if it wants to. 2210 # Prefer an explicitly selected file to automatically selected ones. 2211 ac_site_file1=NONE 2212 ac_site_file2=NONE 2213 if test -n "$CONFIG_SITE"; then 2214 # We do not want a PATH search for config.site. 2215 case $CONFIG_SITE in #(( 2216 -*) ac_site_file1=./$CONFIG_SITE;; 2217 */*) ac_site_file1=$CONFIG_SITE;; 2218 *) ac_site_file1=./$CONFIG_SITE;; 2219 esac 2220 elif test "x$prefix" != xNONE; then 2221 ac_site_file1=$prefix/share/config.site 2222 ac_site_file2=$prefix/etc/config.site 2223 else 2224 ac_site_file1=$ac_default_prefix/share/config.site 2225 ac_site_file2=$ac_default_prefix/etc/config.site 2226 fi 2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2228 do 2229 test "x$ac_site_file" = xNONE && continue 2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2233 sed 's/^/| /' "$ac_site_file" >&5 2234 . "$ac_site_file" \ 2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2237 as_fn_error $? "failed to load site script $ac_site_file 2238 See \`config.log' for more details" "$LINENO" 5; } 2239 fi 2240 done 2241 2242 if test -r "$cache_file"; then 2243 # Some versions of bash will fail to source /dev/null (special files 2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2247 $as_echo "$as_me: loading cache $cache_file" >&6;} 2248 case $cache_file in 2249 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2250 *) . "./$cache_file";; 2251 esac 2252 fi 2253 else 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2255 $as_echo "$as_me: creating cache $cache_file" >&6;} 2256 >$cache_file 2257 fi 2258 2259 gt_needs="$gt_needs " 2260 as_fn_append ac_header_list " stdlib.h" 2261 as_fn_append ac_header_list " unistd.h" 2262 as_fn_append ac_header_list " sys/param.h" 2263 as_fn_append ac_func_list " qsort_r" 2264 # Check that the precious variables saved in the cache have kept the same 2265 # value. 2266 ac_cache_corrupted=false 2267 for ac_var in $ac_precious_vars; do 2268 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2269 eval ac_new_set=\$ac_env_${ac_var}_set 2270 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2271 eval ac_new_val=\$ac_env_${ac_var}_value 2272 case $ac_old_set,$ac_new_set in 2273 set,) 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2276 ac_cache_corrupted=: ;; 2277 ,set) 2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2280 ac_cache_corrupted=: ;; 2281 ,);; 2282 *) 2283 if test "x$ac_old_val" != "x$ac_new_val"; then 2284 # differences in whitespace do not lead to failure. 2285 ac_old_val_w=`echo x $ac_old_val` 2286 ac_new_val_w=`echo x $ac_new_val` 2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2290 ac_cache_corrupted=: 2291 else 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2294 eval $ac_var=\$ac_old_val 2295 fi 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2300 fi;; 2301 esac 2302 # Pass precious variables to config.status. 2303 if test "$ac_new_set" = set; then 2304 case $ac_new_val in 2305 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2306 *) ac_arg=$ac_var=$ac_new_val ;; 2307 esac 2308 case " $ac_configure_args " in 2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2310 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2311 esac 2312 fi 2313 done 2314 if $ac_cache_corrupted; then 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2319 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2320 fi 2321 ## -------------------- ## 2322 ## Main body of script. ## 2323 ## -------------------- ## 2324 2325 ac_ext=c 2326 ac_cpp='$CPP $CPPFLAGS' 2327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2329 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2330 2331 2332 2333 2334 2335 2336 ac_aux_dir= 2337 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2338 if test -f "$ac_dir/install-sh"; then 2339 ac_aux_dir=$ac_dir 2340 ac_install_sh="$ac_aux_dir/install-sh -c" 2341 break 2342 elif test -f "$ac_dir/install.sh"; then 2343 ac_aux_dir=$ac_dir 2344 ac_install_sh="$ac_aux_dir/install.sh -c" 2345 break 2346 elif test -f "$ac_dir/shtool"; then 2347 ac_aux_dir=$ac_dir 2348 ac_install_sh="$ac_aux_dir/shtool install -c" 2349 break 2350 fi 2351 done 2352 if test -z "$ac_aux_dir"; then 2353 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2354 fi 2355 2356 # These three variables are undocumented and unsupported, 2357 # and are intended to be withdrawn in a future Autoconf release. 2358 # They can cause serious problems if a builder's source tree is in a directory 2359 # whose full name contains unusual characters. 2360 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2361 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2362 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2363 2364 2365 # Make sure we can run config.sub. 2366 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2367 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2368 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2370 $as_echo_n "checking build system type... " >&6; } 2371 if ${ac_cv_build+:} false; then : 2372 $as_echo_n "(cached) " >&6 2373 else 2374 ac_build_alias=$build_alias 2375 test "x$ac_build_alias" = x && 2376 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2377 test "x$ac_build_alias" = x && 2378 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2381 2382 fi 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2384 $as_echo "$ac_cv_build" >&6; } 2385 case $ac_cv_build in 2386 *-*-*) ;; 2387 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2388 esac 2389 build=$ac_cv_build 2390 ac_save_IFS=$IFS; IFS='-' 2391 set x $ac_cv_build 2392 shift 2393 build_cpu=$1 2394 build_vendor=$2 2395 shift; shift 2396 # Remember, the first character of IFS is used to create $*, 2397 # except with old shells: 2398 build_os=$* 2399 IFS=$ac_save_IFS 2400 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2401 2402 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2404 $as_echo_n "checking host system type... " >&6; } 2405 if ${ac_cv_host+:} false; then : 2406 $as_echo_n "(cached) " >&6 2407 else 2408 if test "x$host_alias" = x; then 2409 ac_cv_host=$ac_cv_build 2410 else 2411 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2412 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2413 fi 2414 2415 fi 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2417 $as_echo "$ac_cv_host" >&6; } 2418 case $ac_cv_host in 2419 *-*-*) ;; 2420 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2421 esac 2422 host=$ac_cv_host 2423 ac_save_IFS=$IFS; IFS='-' 2424 set x $ac_cv_host 2425 shift 2426 host_cpu=$1 2427 host_vendor=$2 2428 shift; shift 2429 # Remember, the first character of IFS is used to create $*, 2430 # except with old shells: 2431 host_os=$* 2432 IFS=$ac_save_IFS 2433 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2434 2435 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2437 $as_echo_n "checking target system type... " >&6; } 2438 if ${ac_cv_target+:} false; then : 2439 $as_echo_n "(cached) " >&6 2440 else 2441 if test "x$target_alias" = x; then 2442 ac_cv_target=$ac_cv_host 2443 else 2444 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2445 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2446 fi 2447 2448 fi 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2450 $as_echo "$ac_cv_target" >&6; } 2451 case $ac_cv_target in 2452 *-*-*) ;; 2453 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2454 esac 2455 target=$ac_cv_target 2456 ac_save_IFS=$IFS; IFS='-' 2457 set x $ac_cv_target 2458 shift 2459 target_cpu=$1 2460 target_vendor=$2 2461 shift; shift 2462 # Remember, the first character of IFS is used to create $*, 2463 # except with old shells: 2464 target_os=$* 2465 IFS=$ac_save_IFS 2466 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2467 2468 2469 # The aliases save the names the user supplied, while $host etc. 2470 # will get canonicalized. 2471 test -n "$target_alias" && 2472 test "$program_prefix$program_suffix$program_transform_name" = \ 2473 NONENONEs,x,x, && 2474 program_prefix=${target_alias}- 2475 # Expand $ac_aux_dir to an absolute path. 2476 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2477 2478 ac_ext=c 2479 ac_cpp='$CPP $CPPFLAGS' 2480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2482 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2483 if test -n "$ac_tool_prefix"; then 2484 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2485 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2487 $as_echo_n "checking for $ac_word... " >&6; } 2488 if ${ac_cv_prog_CC+:} false; then : 2489 $as_echo_n "(cached) " >&6 2490 else 2491 if test -n "$CC"; then 2492 ac_cv_prog_CC="$CC" # Let the user override the test. 2493 else 2494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2495 for as_dir in $PATH 2496 do 2497 IFS=$as_save_IFS 2498 test -z "$as_dir" && as_dir=. 2499 for ac_exec_ext in '' $ac_executable_extensions; do 2500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2501 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2503 break 2 2504 fi 2505 done 2506 done 2507 IFS=$as_save_IFS 2508 2509 fi 2510 fi 2511 CC=$ac_cv_prog_CC 2512 if test -n "$CC"; then 2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2514 $as_echo "$CC" >&6; } 2515 else 2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2517 $as_echo "no" >&6; } 2518 fi 2519 2520 2521 fi 2522 if test -z "$ac_cv_prog_CC"; then 2523 ac_ct_CC=$CC 2524 # Extract the first word of "gcc", so it can be a program name with args. 2525 set dummy gcc; ac_word=$2 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2527 $as_echo_n "checking for $ac_word... " >&6; } 2528 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2529 $as_echo_n "(cached) " >&6 2530 else 2531 if test -n "$ac_ct_CC"; then 2532 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2533 else 2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2535 for as_dir in $PATH 2536 do 2537 IFS=$as_save_IFS 2538 test -z "$as_dir" && as_dir=. 2539 for ac_exec_ext in '' $ac_executable_extensions; do 2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2541 ac_cv_prog_ac_ct_CC="gcc" 2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2543 break 2 2544 fi 2545 done 2546 done 2547 IFS=$as_save_IFS 2548 2549 fi 2550 fi 2551 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2552 if test -n "$ac_ct_CC"; then 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2554 $as_echo "$ac_ct_CC" >&6; } 2555 else 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2557 $as_echo "no" >&6; } 2558 fi 2559 2560 if test "x$ac_ct_CC" = x; then 2561 CC="" 2562 else 2563 case $cross_compiling:$ac_tool_warned in 2564 yes:) 2565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2567 ac_tool_warned=yes ;; 2568 esac 2569 CC=$ac_ct_CC 2570 fi 2571 else 2572 CC="$ac_cv_prog_CC" 2573 fi 2574 2575 if test -z "$CC"; then 2576 if test -n "$ac_tool_prefix"; then 2577 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2578 set dummy ${ac_tool_prefix}cc; ac_word=$2 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2580 $as_echo_n "checking for $ac_word... " >&6; } 2581 if ${ac_cv_prog_CC+:} false; then : 2582 $as_echo_n "(cached) " >&6 2583 else 2584 if test -n "$CC"; then 2585 ac_cv_prog_CC="$CC" # Let the user override the test. 2586 else 2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2588 for as_dir in $PATH 2589 do 2590 IFS=$as_save_IFS 2591 test -z "$as_dir" && as_dir=. 2592 for ac_exec_ext in '' $ac_executable_extensions; do 2593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2594 ac_cv_prog_CC="${ac_tool_prefix}cc" 2595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2596 break 2 2597 fi 2598 done 2599 done 2600 IFS=$as_save_IFS 2601 2602 fi 2603 fi 2604 CC=$ac_cv_prog_CC 2605 if test -n "$CC"; then 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2607 $as_echo "$CC" >&6; } 2608 else 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2610 $as_echo "no" >&6; } 2611 fi 2612 2613 2614 fi 2615 fi 2616 if test -z "$CC"; then 2617 # Extract the first word of "cc", so it can be a program name with args. 2618 set dummy cc; ac_word=$2 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2620 $as_echo_n "checking for $ac_word... " >&6; } 2621 if ${ac_cv_prog_CC+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623 else 2624 if test -n "$CC"; then 2625 ac_cv_prog_CC="$CC" # Let the user override the test. 2626 else 2627 ac_prog_rejected=no 2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2629 for as_dir in $PATH 2630 do 2631 IFS=$as_save_IFS 2632 test -z "$as_dir" && as_dir=. 2633 for ac_exec_ext in '' $ac_executable_extensions; do 2634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2636 ac_prog_rejected=yes 2637 continue 2638 fi 2639 ac_cv_prog_CC="cc" 2640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2641 break 2 2642 fi 2643 done 2644 done 2645 IFS=$as_save_IFS 2646 2647 if test $ac_prog_rejected = yes; then 2648 # We found a bogon in the path, so make sure we never use it. 2649 set dummy $ac_cv_prog_CC 2650 shift 2651 if test $# != 0; then 2652 # We chose a different compiler from the bogus one. 2653 # However, it has the same basename, so the bogon will be chosen 2654 # first if we set CC to just the basename; use the full file name. 2655 shift 2656 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2657 fi 2658 fi 2659 fi 2660 fi 2661 CC=$ac_cv_prog_CC 2662 if test -n "$CC"; then 2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2664 $as_echo "$CC" >&6; } 2665 else 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2667 $as_echo "no" >&6; } 2668 fi 2669 2670 2671 fi 2672 if test -z "$CC"; then 2673 if test -n "$ac_tool_prefix"; then 2674 for ac_prog in cl.exe 2675 do 2676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2679 $as_echo_n "checking for $ac_word... " >&6; } 2680 if ${ac_cv_prog_CC+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682 else 2683 if test -n "$CC"; then 2684 ac_cv_prog_CC="$CC" # Let the user override the test. 2685 else 2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2687 for as_dir in $PATH 2688 do 2689 IFS=$as_save_IFS 2690 test -z "$as_dir" && as_dir=. 2691 for ac_exec_ext in '' $ac_executable_extensions; do 2692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2693 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2695 break 2 2696 fi 2697 done 2698 done 2699 IFS=$as_save_IFS 2700 2701 fi 2702 fi 2703 CC=$ac_cv_prog_CC 2704 if test -n "$CC"; then 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2706 $as_echo "$CC" >&6; } 2707 else 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2709 $as_echo "no" >&6; } 2710 fi 2711 2712 2713 test -n "$CC" && break 2714 done 2715 fi 2716 if test -z "$CC"; then 2717 ac_ct_CC=$CC 2718 for ac_prog in cl.exe 2719 do 2720 # Extract the first word of "$ac_prog", so it can be a program name with args. 2721 set dummy $ac_prog; ac_word=$2 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2723 $as_echo_n "checking for $ac_word... " >&6; } 2724 if ${ac_cv_prog_ac_ct_CC+:} false; then : 2725 $as_echo_n "(cached) " >&6 2726 else 2727 if test -n "$ac_ct_CC"; then 2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2729 else 2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2731 for as_dir in $PATH 2732 do 2733 IFS=$as_save_IFS 2734 test -z "$as_dir" && as_dir=. 2735 for ac_exec_ext in '' $ac_executable_extensions; do 2736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2737 ac_cv_prog_ac_ct_CC="$ac_prog" 2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2739 break 2 2740 fi 2741 done 2742 done 2743 IFS=$as_save_IFS 2744 2745 fi 2746 fi 2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2748 if test -n "$ac_ct_CC"; then 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2750 $as_echo "$ac_ct_CC" >&6; } 2751 else 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2753 $as_echo "no" >&6; } 2754 fi 2755 2756 2757 test -n "$ac_ct_CC" && break 2758 done 2759 2760 if test "x$ac_ct_CC" = x; then 2761 CC="" 2762 else 2763 case $cross_compiling:$ac_tool_warned in 2764 yes:) 2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2767 ac_tool_warned=yes ;; 2768 esac 2769 CC=$ac_ct_CC 2770 fi 2771 fi 2772 2773 fi 2774 2775 2776 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2778 as_fn_error $? "no acceptable C compiler found in \$PATH 2779 See \`config.log' for more details" "$LINENO" 5; } 2780 2781 # Provide some information about the compiler. 2782 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2783 set X $ac_compile 2784 ac_compiler=$2 2785 for ac_option in --version -v -V -qversion; do 2786 { { ac_try="$ac_compiler $ac_option >&5" 2787 case "(($ac_try" in 2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2789 *) ac_try_echo=$ac_try;; 2790 esac 2791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2792 $as_echo "$ac_try_echo"; } >&5 2793 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2794 ac_status=$? 2795 if test -s conftest.err; then 2796 sed '10a\ 2797 ... rest of stderr output deleted ... 2798 10q' conftest.err >conftest.er1 2799 cat conftest.er1 >&5 2800 fi 2801 rm -f conftest.er1 conftest.err 2802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2803 test $ac_status = 0; } 2804 done 2805 2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2807 /* end confdefs.h. */ 2808 2809 int 2810 main () 2811 { 2812 2813 ; 2814 return 0; 2815 } 2816 _ACEOF 2817 ac_clean_files_save=$ac_clean_files 2818 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2819 # Try to create an executable without -o first, disregard a.out. 2820 # It will help us diagnose broken compilers, and finding out an intuition 2821 # of exeext. 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2823 $as_echo_n "checking whether the C compiler works... " >&6; } 2824 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2825 2826 # The possible output files: 2827 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2828 2829 ac_rmfiles= 2830 for ac_file in $ac_files 2831 do 2832 case $ac_file in 2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2834 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2835 esac 2836 done 2837 rm -f $ac_rmfiles 2838 2839 if { { ac_try="$ac_link_default" 2840 case "(($ac_try" in 2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2842 *) ac_try_echo=$ac_try;; 2843 esac 2844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2845 $as_echo "$ac_try_echo"; } >&5 2846 (eval "$ac_link_default") 2>&5 2847 ac_status=$? 2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2849 test $ac_status = 0; }; then : 2850 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2851 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2852 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2853 # so that the user can short-circuit this test for compilers unknown to 2854 # Autoconf. 2855 for ac_file in $ac_files '' 2856 do 2857 test -f "$ac_file" || continue 2858 case $ac_file in 2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2860 ;; 2861 [ab].out ) 2862 # We found the default executable, but exeext='' is most 2863 # certainly right. 2864 break;; 2865 *.* ) 2866 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2867 then :; else 2868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2869 fi 2870 # We set ac_cv_exeext here because the later test for it is not 2871 # safe: cross compilers may not add the suffix if given an `-o' 2872 # argument, so we may need to know it at that point already. 2873 # Even if this section looks crufty: it has the advantage of 2874 # actually working. 2875 break;; 2876 * ) 2877 break;; 2878 esac 2879 done 2880 test "$ac_cv_exeext" = no && ac_cv_exeext= 2881 2882 else 2883 ac_file='' 2884 fi 2885 if test -z "$ac_file"; then : 2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2887 $as_echo "no" >&6; } 2888 $as_echo "$as_me: failed program was:" >&5 2889 sed 's/^/| /' conftest.$ac_ext >&5 2890 2891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2893 as_fn_error 77 "C compiler cannot create executables 2894 See \`config.log' for more details" "$LINENO" 5; } 2895 else 2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2897 $as_echo "yes" >&6; } 2898 fi 2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2900 $as_echo_n "checking for C compiler default output file name... " >&6; } 2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2902 $as_echo "$ac_file" >&6; } 2903 ac_exeext=$ac_cv_exeext 2904 2905 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2906 ac_clean_files=$ac_clean_files_save 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2908 $as_echo_n "checking for suffix of executables... " >&6; } 2909 if { { ac_try="$ac_link" 2910 case "(($ac_try" in 2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2912 *) ac_try_echo=$ac_try;; 2913 esac 2914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2915 $as_echo "$ac_try_echo"; } >&5 2916 (eval "$ac_link") 2>&5 2917 ac_status=$? 2918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2919 test $ac_status = 0; }; then : 2920 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2922 # work properly (i.e., refer to `conftest.exe'), while it won't with 2923 # `rm'. 2924 for ac_file in conftest.exe conftest conftest.*; do 2925 test -f "$ac_file" || continue 2926 case $ac_file in 2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2929 break;; 2930 * ) break;; 2931 esac 2932 done 2933 else 2934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2936 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2937 See \`config.log' for more details" "$LINENO" 5; } 2938 fi 2939 rm -f conftest conftest$ac_cv_exeext 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2941 $as_echo "$ac_cv_exeext" >&6; } 2942 2943 rm -f conftest.$ac_ext 2944 EXEEXT=$ac_cv_exeext 2945 ac_exeext=$EXEEXT 2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2947 /* end confdefs.h. */ 2948 #include <stdio.h> 2949 int 2950 main () 2951 { 2952 FILE *f = fopen ("conftest.out", "w"); 2953 return ferror (f) || fclose (f) != 0; 2954 2955 ; 2956 return 0; 2957 } 2958 _ACEOF 2959 ac_clean_files="$ac_clean_files conftest.out" 2960 # Check that the compiler produces executables we can run. If not, either 2961 # the compiler is broken, or we cross compile. 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2963 $as_echo_n "checking whether we are cross compiling... " >&6; } 2964 if test "$cross_compiling" != yes; then 2965 { { ac_try="$ac_link" 2966 case "(($ac_try" in 2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2968 *) ac_try_echo=$ac_try;; 2969 esac 2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2971 $as_echo "$ac_try_echo"; } >&5 2972 (eval "$ac_link") 2>&5 2973 ac_status=$? 2974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2975 test $ac_status = 0; } 2976 if { ac_try='./conftest$ac_cv_exeext' 2977 { { case "(($ac_try" in 2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2979 *) ac_try_echo=$ac_try;; 2980 esac 2981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2982 $as_echo "$ac_try_echo"; } >&5 2983 (eval "$ac_try") 2>&5 2984 ac_status=$? 2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2986 test $ac_status = 0; }; }; then 2987 cross_compiling=no 2988 else 2989 if test "$cross_compiling" = maybe; then 2990 cross_compiling=yes 2991 else 2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2994 as_fn_error $? "cannot run C compiled programs. 2995 If you meant to cross compile, use \`--host'. 2996 See \`config.log' for more details" "$LINENO" 5; } 2997 fi 2998 fi 2999 fi 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3001 $as_echo "$cross_compiling" >&6; } 3002 3003 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3004 ac_clean_files=$ac_clean_files_save 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3006 $as_echo_n "checking for suffix of object files... " >&6; } 3007 if ${ac_cv_objext+:} false; then : 3008 $as_echo_n "(cached) " >&6 3009 else 3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3011 /* end confdefs.h. */ 3012 3013 int 3014 main () 3015 { 3016 3017 ; 3018 return 0; 3019 } 3020 _ACEOF 3021 rm -f conftest.o conftest.obj 3022 if { { ac_try="$ac_compile" 3023 case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026 esac 3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3028 $as_echo "$ac_try_echo"; } >&5 3029 (eval "$ac_compile") 2>&5 3030 ac_status=$? 3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3032 test $ac_status = 0; }; then : 3033 for ac_file in conftest.o conftest.obj conftest.*; do 3034 test -f "$ac_file" || continue; 3035 case $ac_file in 3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3038 break;; 3039 esac 3040 done 3041 else 3042 $as_echo "$as_me: failed program was:" >&5 3043 sed 's/^/| /' conftest.$ac_ext >&5 3044 3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3047 as_fn_error $? "cannot compute suffix of object files: cannot compile 3048 See \`config.log' for more details" "$LINENO" 5; } 3049 fi 3050 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3051 fi 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3053 $as_echo "$ac_cv_objext" >&6; } 3054 OBJEXT=$ac_cv_objext 3055 ac_objext=$OBJEXT 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3057 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3058 if ${ac_cv_c_compiler_gnu+:} false; then : 3059 $as_echo_n "(cached) " >&6 3060 else 3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3062 /* end confdefs.h. */ 3063 3064 int 3065 main () 3066 { 3067 #ifndef __GNUC__ 3068 choke me 3069 #endif 3070 3071 ; 3072 return 0; 3073 } 3074 _ACEOF 3075 if ac_fn_c_try_compile "$LINENO"; then : 3076 ac_compiler_gnu=yes 3077 else 3078 ac_compiler_gnu=no 3079 fi 3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3082 3083 fi 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3085 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3086 if test $ac_compiler_gnu = yes; then 3087 GCC=yes 3088 else 3089 GCC= 3090 fi 3091 ac_test_CFLAGS=${CFLAGS+set} 3092 ac_save_CFLAGS=$CFLAGS 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3094 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3095 if ${ac_cv_prog_cc_g+:} false; then : 3096 $as_echo_n "(cached) " >&6 3097 else 3098 ac_save_c_werror_flag=$ac_c_werror_flag 3099 ac_c_werror_flag=yes 3100 ac_cv_prog_cc_g=no 3101 CFLAGS="-g" 3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3103 /* end confdefs.h. */ 3104 3105 int 3106 main () 3107 { 3108 3109 ; 3110 return 0; 3111 } 3112 _ACEOF 3113 if ac_fn_c_try_compile "$LINENO"; then : 3114 ac_cv_prog_cc_g=yes 3115 else 3116 CFLAGS="" 3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3118 /* end confdefs.h. */ 3119 3120 int 3121 main () 3122 { 3123 3124 ; 3125 return 0; 3126 } 3127 _ACEOF 3128 if ac_fn_c_try_compile "$LINENO"; then : 3129 3130 else 3131 ac_c_werror_flag=$ac_save_c_werror_flag 3132 CFLAGS="-g" 3133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3134 /* end confdefs.h. */ 3135 3136 int 3137 main () 3138 { 3139 3140 ; 3141 return 0; 3142 } 3143 _ACEOF 3144 if ac_fn_c_try_compile "$LINENO"; then : 3145 ac_cv_prog_cc_g=yes 3146 fi 3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3148 fi 3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3150 fi 3151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3152 ac_c_werror_flag=$ac_save_c_werror_flag 3153 fi 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3155 $as_echo "$ac_cv_prog_cc_g" >&6; } 3156 if test "$ac_test_CFLAGS" = set; then 3157 CFLAGS=$ac_save_CFLAGS 3158 elif test $ac_cv_prog_cc_g = yes; then 3159 if test "$GCC" = yes; then 3160 CFLAGS="-g -O2" 3161 else 3162 CFLAGS="-g" 3163 fi 3164 else 3165 if test "$GCC" = yes; then 3166 CFLAGS="-O2" 3167 else 3168 CFLAGS= 3169 fi 3170 fi 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3172 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3173 if ${ac_cv_prog_cc_c89+:} false; then : 3174 $as_echo_n "(cached) " >&6 3175 else 3176 ac_cv_prog_cc_c89=no 3177 ac_save_CC=$CC 3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3179 /* end confdefs.h. */ 3180 #include <stdarg.h> 3181 #include <stdio.h> 3182 struct stat; 3183 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3184 struct buf { int x; }; 3185 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3186 static char *e (p, i) 3187 char **p; 3188 int i; 3189 { 3190 return p[i]; 3191 } 3192 static char *f (char * (*g) (char **, int), char **p, ...) 3193 { 3194 char *s; 3195 va_list v; 3196 va_start (v,p); 3197 s = g (p, va_arg (v,int)); 3198 va_end (v); 3199 return s; 3200 } 3201 3202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3203 function prototypes and stuff, but not '\xHH' hex character constants. 3204 These don't provoke an error unfortunately, instead are silently treated 3205 as 'x'. The following induces an error, until -std is added to get 3206 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3207 array size at least. It's necessary to write '\x00'==0 to get something 3208 that's true only with -std. */ 3209 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3210 3211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3212 inside strings and character constants. */ 3213 #define FOO(x) 'x' 3214 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3215 3216 int test (int i, double x); 3217 struct s1 {int (*f) (int a);}; 3218 struct s2 {int (*f) (double a);}; 3219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3220 int argc; 3221 char **argv; 3222 int 3223 main () 3224 { 3225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3226 ; 3227 return 0; 3228 } 3229 _ACEOF 3230 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3231 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3232 do 3233 CC="$ac_save_CC $ac_arg" 3234 if ac_fn_c_try_compile "$LINENO"; then : 3235 ac_cv_prog_cc_c89=$ac_arg 3236 fi 3237 rm -f core conftest.err conftest.$ac_objext 3238 test "x$ac_cv_prog_cc_c89" != "xno" && break 3239 done 3240 rm -f conftest.$ac_ext 3241 CC=$ac_save_CC 3242 3243 fi 3244 # AC_CACHE_VAL 3245 case "x$ac_cv_prog_cc_c89" in 3246 x) 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3248 $as_echo "none needed" >&6; } ;; 3249 xno) 3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3251 $as_echo "unsupported" >&6; } ;; 3252 *) 3253 CC="$CC $ac_cv_prog_cc_c89" 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3256 esac 3257 if test "x$ac_cv_prog_cc_c89" != xno; then : 3258 3259 fi 3260 3261 ac_ext=c 3262 ac_cpp='$CPP $CPPFLAGS' 3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3266 3267 ac_ext=c 3268 ac_cpp='$CPP $CPPFLAGS' 3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3273 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3274 if ${am_cv_prog_cc_c_o+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276 else 3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3278 /* end confdefs.h. */ 3279 3280 int 3281 main () 3282 { 3283 3284 ; 3285 return 0; 3286 } 3287 _ACEOF 3288 # Make sure it works both with $CC and with simple cc. 3289 # Following AC_PROG_CC_C_O, we do the test twice because some 3290 # compilers refuse to overwrite an existing .o file with -o, 3291 # though they will create one. 3292 am_cv_prog_cc_c_o=yes 3293 for am_i in 1 2; do 3294 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3295 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3296 ac_status=$? 3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3298 (exit $ac_status); } \ 3299 && test -f conftest2.$ac_objext; then 3300 : OK 3301 else 3302 am_cv_prog_cc_c_o=no 3303 break 3304 fi 3305 done 3306 rm -f core conftest* 3307 unset am_i 3308 fi 3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3310 $as_echo "$am_cv_prog_cc_c_o" >&6; } 3311 if test "$am_cv_prog_cc_c_o" != yes; then 3312 # Losing compiler, so override with the script. 3313 # FIXME: It is wrong to rewrite CC. 3314 # But if we don't then we get into trouble of one sort or another. 3315 # A longer-term fix would be to have automake use am__CC in this case, 3316 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3317 CC="$am_aux_dir/compile $CC" 3318 fi 3319 ac_ext=c 3320 ac_cpp='$CPP $CPPFLAGS' 3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3324 3325 3326 3327 ac_ext=c 3328 ac_cpp='$CPP $CPPFLAGS' 3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3333 $as_echo_n "checking how to run the C preprocessor... " >&6; } 3334 # On Suns, sometimes $CPP names a directory. 3335 if test -n "$CPP" && test -d "$CPP"; then 3336 CPP= 3337 fi 3338 if test -z "$CPP"; then 3339 if ${ac_cv_prog_CPP+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341 else 3342 # Double quotes because CPP needs to be expanded 3343 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3344 do 3345 ac_preproc_ok=false 3346 for ac_c_preproc_warn_flag in '' yes 3347 do 3348 # Use a header file that comes with gcc, so configuring glibc 3349 # with a fresh cross-compiler works. 3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3351 # <limits.h> exists even on freestanding compilers. 3352 # On the NeXT, cc -E runs the code through the compiler's parser, 3353 # not just through cpp. "Syntax error" is here to catch this case. 3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3355 /* end confdefs.h. */ 3356 #ifdef __STDC__ 3357 # include <limits.h> 3358 #else 3359 # include <assert.h> 3360 #endif 3361 Syntax error 3362 _ACEOF 3363 if ac_fn_c_try_cpp "$LINENO"; then : 3364 3365 else 3366 # Broken: fails on valid input. 3367 continue 3368 fi 3369 rm -f conftest.err conftest.i conftest.$ac_ext 3370 3371 # OK, works on sane cases. Now check whether nonexistent headers 3372 # can be detected and how. 3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374 /* end confdefs.h. */ 3375 #include <ac_nonexistent.h> 3376 _ACEOF 3377 if ac_fn_c_try_cpp "$LINENO"; then : 3378 # Broken: success on invalid input. 3379 continue 3380 else 3381 # Passes both tests. 3382 ac_preproc_ok=: 3383 break 3384 fi 3385 rm -f conftest.err conftest.i conftest.$ac_ext 3386 3387 done 3388 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3389 rm -f conftest.i conftest.err conftest.$ac_ext 3390 if $ac_preproc_ok; then : 3391 break 3392 fi 3393 3394 done 3395 ac_cv_prog_CPP=$CPP 3396 3397 fi 3398 CPP=$ac_cv_prog_CPP 3399 else 3400 ac_cv_prog_CPP=$CPP 3401 fi 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3403 $as_echo "$CPP" >&6; } 3404 ac_preproc_ok=false 3405 for ac_c_preproc_warn_flag in '' yes 3406 do 3407 # Use a header file that comes with gcc, so configuring glibc 3408 # with a fresh cross-compiler works. 3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3410 # <limits.h> exists even on freestanding compilers. 3411 # On the NeXT, cc -E runs the code through the compiler's parser, 3412 # not just through cpp. "Syntax error" is here to catch this case. 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414 /* end confdefs.h. */ 3415 #ifdef __STDC__ 3416 # include <limits.h> 3417 #else 3418 # include <assert.h> 3419 #endif 3420 Syntax error 3421 _ACEOF 3422 if ac_fn_c_try_cpp "$LINENO"; then : 3423 3424 else 3425 # Broken: fails on valid input. 3426 continue 3427 fi 3428 rm -f conftest.err conftest.i conftest.$ac_ext 3429 3430 # OK, works on sane cases. Now check whether nonexistent headers 3431 # can be detected and how. 3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3433 /* end confdefs.h. */ 3434 #include <ac_nonexistent.h> 3435 _ACEOF 3436 if ac_fn_c_try_cpp "$LINENO"; then : 3437 # Broken: success on invalid input. 3438 continue 3439 else 3440 # Passes both tests. 3441 ac_preproc_ok=: 3442 break 3443 fi 3444 rm -f conftest.err conftest.i conftest.$ac_ext 3445 3446 done 3447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3448 rm -f conftest.i conftest.err conftest.$ac_ext 3449 if $ac_preproc_ok; then : 3450 3451 else 3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3454 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3455 See \`config.log' for more details" "$LINENO" 5; } 3456 fi 3457 3458 ac_ext=c 3459 ac_cpp='$CPP $CPPFLAGS' 3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3463 3464 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3466 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3467 if ${ac_cv_path_GREP+:} false; then : 3468 $as_echo_n "(cached) " >&6 3469 else 3470 if test -z "$GREP"; then 3471 ac_path_GREP_found=false 3472 # Loop through the user's path and test for each of PROGNAME-LIST 3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3474 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3475 do 3476 IFS=$as_save_IFS 3477 test -z "$as_dir" && as_dir=. 3478 for ac_prog in grep ggrep; do 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3481 as_fn_executable_p "$ac_path_GREP" || continue 3482 # Check for GNU ac_path_GREP and select it if it is found. 3483 # Check for GNU $ac_path_GREP 3484 case `"$ac_path_GREP" --version 2>&1` in 3485 *GNU*) 3486 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3487 *) 3488 ac_count=0 3489 $as_echo_n 0123456789 >"conftest.in" 3490 while : 3491 do 3492 cat "conftest.in" "conftest.in" >"conftest.tmp" 3493 mv "conftest.tmp" "conftest.in" 3494 cp "conftest.in" "conftest.nl" 3495 $as_echo 'GREP' >> "conftest.nl" 3496 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3498 as_fn_arith $ac_count + 1 && ac_count=$as_val 3499 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3500 # Best one so far, save it but keep looking for a better one 3501 ac_cv_path_GREP="$ac_path_GREP" 3502 ac_path_GREP_max=$ac_count 3503 fi 3504 # 10*(2^10) chars as input seems more than enough 3505 test $ac_count -gt 10 && break 3506 done 3507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3508 esac 3509 3510 $ac_path_GREP_found && break 3 3511 done 3512 done 3513 done 3514 IFS=$as_save_IFS 3515 if test -z "$ac_cv_path_GREP"; then 3516 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3517 fi 3518 else 3519 ac_cv_path_GREP=$GREP 3520 fi 3521 3522 fi 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3524 $as_echo "$ac_cv_path_GREP" >&6; } 3525 GREP="$ac_cv_path_GREP" 3526 3527 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3529 $as_echo_n "checking for egrep... " >&6; } 3530 if ${ac_cv_path_EGREP+:} false; then : 3531 $as_echo_n "(cached) " >&6 3532 else 3533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3534 then ac_cv_path_EGREP="$GREP -E" 3535 else 3536 if test -z "$EGREP"; then 3537 ac_path_EGREP_found=false 3538 # Loop through the user's path and test for each of PROGNAME-LIST 3539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3540 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3541 do 3542 IFS=$as_save_IFS 3543 test -z "$as_dir" && as_dir=. 3544 for ac_prog in egrep; do 3545 for ac_exec_ext in '' $ac_executable_extensions; do 3546 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3547 as_fn_executable_p "$ac_path_EGREP" || continue 3548 # Check for GNU ac_path_EGREP and select it if it is found. 3549 # Check for GNU $ac_path_EGREP 3550 case `"$ac_path_EGREP" --version 2>&1` in 3551 *GNU*) 3552 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3553 *) 3554 ac_count=0 3555 $as_echo_n 0123456789 >"conftest.in" 3556 while : 3557 do 3558 cat "conftest.in" "conftest.in" >"conftest.tmp" 3559 mv "conftest.tmp" "conftest.in" 3560 cp "conftest.in" "conftest.nl" 3561 $as_echo 'EGREP' >> "conftest.nl" 3562 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3564 as_fn_arith $ac_count + 1 && ac_count=$as_val 3565 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3566 # Best one so far, save it but keep looking for a better one 3567 ac_cv_path_EGREP="$ac_path_EGREP" 3568 ac_path_EGREP_max=$ac_count 3569 fi 3570 # 10*(2^10) chars as input seems more than enough 3571 test $ac_count -gt 10 && break 3572 done 3573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3574 esac 3575 3576 $ac_path_EGREP_found && break 3 3577 done 3578 done 3579 done 3580 IFS=$as_save_IFS 3581 if test -z "$ac_cv_path_EGREP"; then 3582 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3583 fi 3584 else 3585 ac_cv_path_EGREP=$EGREP 3586 fi 3587 3588 fi 3589 fi 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3591 $as_echo "$ac_cv_path_EGREP" >&6; } 3592 EGREP="$ac_cv_path_EGREP" 3593 3594 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3596 $as_echo_n "checking for ANSI C header files... " >&6; } 3597 if ${ac_cv_header_stdc+:} false; then : 3598 $as_echo_n "(cached) " >&6 3599 else 3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3601 /* end confdefs.h. */ 3602 #include <stdlib.h> 3603 #include <stdarg.h> 3604 #include <string.h> 3605 #include <float.h> 3606 3607 int 3608 main () 3609 { 3610 3611 ; 3612 return 0; 3613 } 3614 _ACEOF 3615 if ac_fn_c_try_compile "$LINENO"; then : 3616 ac_cv_header_stdc=yes 3617 else 3618 ac_cv_header_stdc=no 3619 fi 3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3621 3622 if test $ac_cv_header_stdc = yes; then 3623 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3625 /* end confdefs.h. */ 3626 #include <string.h> 3627 3628 _ACEOF 3629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3630 $EGREP "memchr" >/dev/null 2>&1; then : 3631 3632 else 3633 ac_cv_header_stdc=no 3634 fi 3635 rm -f conftest* 3636 3637 fi 3638 3639 if test $ac_cv_header_stdc = yes; then 3640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642 /* end confdefs.h. */ 3643 #include <stdlib.h> 3644 3645 _ACEOF 3646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3647 $EGREP "free" >/dev/null 2>&1; then : 3648 3649 else 3650 ac_cv_header_stdc=no 3651 fi 3652 rm -f conftest* 3653 3654 fi 3655 3656 if test $ac_cv_header_stdc = yes; then 3657 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3658 if test "$cross_compiling" = yes; then : 3659 : 3660 else 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662 /* end confdefs.h. */ 3663 #include <ctype.h> 3664 #include <stdlib.h> 3665 #if ((' ' & 0x0FF) == 0x020) 3666 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3667 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3668 #else 3669 # define ISLOWER(c) \ 3670 (('a' <= (c) && (c) <= 'i') \ 3671 || ('j' <= (c) && (c) <= 'r') \ 3672 || ('s' <= (c) && (c) <= 'z')) 3673 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3674 #endif 3675 3676 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3677 int 3678 main () 3679 { 3680 int i; 3681 for (i = 0; i < 256; i++) 3682 if (XOR (islower (i), ISLOWER (i)) 3683 || toupper (i) != TOUPPER (i)) 3684 return 2; 3685 return 0; 3686 } 3687 _ACEOF 3688 if ac_fn_c_try_run "$LINENO"; then : 3689 3690 else 3691 ac_cv_header_stdc=no 3692 fi 3693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3694 conftest.$ac_objext conftest.beam conftest.$ac_ext 3695 fi 3696 3697 fi 3698 fi 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3700 $as_echo "$ac_cv_header_stdc" >&6; } 3701 if test $ac_cv_header_stdc = yes; then 3702 3703 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 3704 3705 fi 3706 3707 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3709 inttypes.h stdint.h unistd.h 3710 do : 3711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3712 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3713 " 3714 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3715 cat >>confdefs.h <<_ACEOF 3716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3717 _ACEOF 3718 3719 fi 3720 3721 done 3722 3723 3724 3725 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3726 if test "x$ac_cv_header_minix_config_h" = xyes; then : 3727 MINIX=yes 3728 else 3729 MINIX= 3730 fi 3731 3732 3733 if test "$MINIX" = yes; then 3734 3735 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3736 3737 3738 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3739 3740 3741 $as_echo "#define _MINIX 1" >>confdefs.h 3742 3743 fi 3744 3745 3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3747 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3748 if ${ac_cv_safe_to_define___extensions__+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750 else 3751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3752 /* end confdefs.h. */ 3753 3754 # define __EXTENSIONS__ 1 3755 $ac_includes_default 3756 int 3757 main () 3758 { 3759 3760 ; 3761 return 0; 3762 } 3763 _ACEOF 3764 if ac_fn_c_try_compile "$LINENO"; then : 3765 ac_cv_safe_to_define___extensions__=yes 3766 else 3767 ac_cv_safe_to_define___extensions__=no 3768 fi 3769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3770 fi 3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3772 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3773 test $ac_cv_safe_to_define___extensions__ = yes && 3774 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3775 3776 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3777 3778 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3779 3780 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3781 3782 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3783 3784 3785 am__api_version='1.15' 3786 3787 # Find a good install program. We prefer a C program (faster), 3788 # so one script is as good as another. But avoid the broken or 3789 # incompatible versions: 3790 # SysV /etc/install, /usr/sbin/install 3791 # SunOS /usr/etc/install 3792 # IRIX /sbin/install 3793 # AIX /bin/install 3794 # AmigaOS /C/install, which installs bootblocks on floppy discs 3795 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3796 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 3797 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3798 # OS/2's system install, which has a completely different semantic 3799 # ./install, which can be erroneously created by make from ./install.sh. 3800 # Reject install programs that cannot install multiple files. 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3802 $as_echo_n "checking for a BSD-compatible install... " >&6; } 3803 if test -z "$INSTALL"; then 3804 if ${ac_cv_path_install+:} false; then : 3805 $as_echo_n "(cached) " >&6 3806 else 3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3808 for as_dir in $PATH 3809 do 3810 IFS=$as_save_IFS 3811 test -z "$as_dir" && as_dir=. 3812 # Account for people who put trailing slashes in PATH elements. 3813 case $as_dir/ in #(( 3814 ./ | .// | /[cC]/* | \ 3815 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3816 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3817 /usr/ucb/* ) ;; 3818 *) 3819 # OSF1 and SCO ODT 3.0 have their own names for install. 3820 # Don't use installbsd from OSF since it installs stuff as root 3821 # by default. 3822 for ac_prog in ginstall scoinst install; do 3823 for ac_exec_ext in '' $ac_executable_extensions; do 3824 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3825 if test $ac_prog = install && 3826 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3827 # AIX install. It has an incompatible calling convention. 3828 : 3829 elif test $ac_prog = install && 3830 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3831 # program-specific install script used by HP pwplus--don't use. 3832 : 3833 else 3834 rm -rf conftest.one conftest.two conftest.dir 3835 echo one > conftest.one 3836 echo two > conftest.two 3837 mkdir conftest.dir 3838 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3839 test -s conftest.one && test -s conftest.two && 3840 test -s conftest.dir/conftest.one && 3841 test -s conftest.dir/conftest.two 3842 then 3843 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3844 break 3 3845 fi 3846 fi 3847 fi 3848 done 3849 done 3850 ;; 3851 esac 3852 3853 done 3854 IFS=$as_save_IFS 3855 3856 rm -rf conftest.one conftest.two conftest.dir 3857 3858 fi 3859 if test "${ac_cv_path_install+set}" = set; then 3860 INSTALL=$ac_cv_path_install 3861 else 3862 # As a last resort, use the slow shell script. Don't cache a 3863 # value for INSTALL within a source directory, because that will 3864 # break other packages using the cache if that directory is 3865 # removed, or if the value is a relative name. 3866 INSTALL=$ac_install_sh 3867 fi 3868 fi 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3870 $as_echo "$INSTALL" >&6; } 3871 3872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3873 # It thinks the first close brace ends the variable substitution. 3874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3875 3876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3877 3878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3879 3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3881 $as_echo_n "checking whether build environment is sane... " >&6; } 3882 # Reject unsafe characters in $srcdir or the absolute working directory 3883 # name. Accept space and tab only in the latter. 3884 am_lf=' 3885 ' 3886 case `pwd` in 3887 *[\\\"\#\$\&\'\`$am_lf]*) 3888 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3889 esac 3890 case $srcdir in 3891 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3892 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3893 esac 3894 3895 # Do 'set' in a subshell so we don't clobber the current shell's 3896 # arguments. Must try -L first in case configure is actually a 3897 # symlink; some systems play weird games with the mod time of symlinks 3898 # (eg FreeBSD returns the mod time of the symlink's containing 3899 # directory). 3900 if ( 3901 am_has_slept=no 3902 for am_try in 1 2; do 3903 echo "timestamp, slept: $am_has_slept" > conftest.file 3904 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3905 if test "$*" = "X"; then 3906 # -L didn't work. 3907 set X `ls -t "$srcdir/configure" conftest.file` 3908 fi 3909 if test "$*" != "X $srcdir/configure conftest.file" \ 3910 && test "$*" != "X conftest.file $srcdir/configure"; then 3911 3912 # If neither matched, then we have a broken ls. This can happen 3913 # if, for instance, CONFIG_SHELL is bash and it inherits a 3914 # broken ls alias from the environment. This has actually 3915 # happened. Such a system could not be considered "sane". 3916 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3917 alias in your environment" "$LINENO" 5 3918 fi 3919 if test "$2" = conftest.file || test $am_try -eq 2; then 3920 break 3921 fi 3922 # Just in case. 3923 sleep 1 3924 am_has_slept=yes 3925 done 3926 test "$2" = conftest.file 3927 ) 3928 then 3929 # Ok. 3930 : 3931 else 3932 as_fn_error $? "newly created file is older than distributed files! 3933 Check your system clock" "$LINENO" 5 3934 fi 3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3936 $as_echo "yes" >&6; } 3937 # If we didn't sleep, we still need to ensure time stamps of config.status and 3938 # generated files are strictly newer. 3939 am_sleep_pid= 3940 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3941 ( sleep 1 ) & 3942 am_sleep_pid=$! 3943 fi 3944 3945 rm -f conftest.file 3946 3947 test "$program_prefix" != NONE && 3948 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3949 # Use a double $ so make ignores it. 3950 test "$program_suffix" != NONE && 3951 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3952 # Double any \ or $. 3953 # By default was `s,x,x', remove it if useless. 3954 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3955 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3956 3957 if test x"${MISSING+set}" != xset; then 3958 case $am_aux_dir in 3959 *\ * | *\ *) 3960 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3961 *) 3962 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3963 esac 3964 fi 3965 # Use eval to expand $SHELL 3966 if eval "$MISSING --is-lightweight"; then 3967 am_missing_run="$MISSING " 3968 else 3969 am_missing_run= 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3971 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3972 fi 3973 3974 if test x"${install_sh+set}" != xset; then 3975 case $am_aux_dir in 3976 *\ * | *\ *) 3977 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3978 *) 3979 install_sh="\${SHELL} $am_aux_dir/install-sh" 3980 esac 3981 fi 3982 3983 # Installed binaries are usually stripped using 'strip' when the user 3984 # run "make install-strip". However 'strip' might not be the right 3985 # tool to use in cross-compilation environments, therefore Automake 3986 # will honor the 'STRIP' environment variable to overrule this program. 3987 if test "$cross_compiling" != no; then 3988 if test -n "$ac_tool_prefix"; then 3989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3990 set dummy ${ac_tool_prefix}strip; ac_word=$2 3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3992 $as_echo_n "checking for $ac_word... " >&6; } 3993 if ${ac_cv_prog_STRIP+:} false; then : 3994 $as_echo_n "(cached) " >&6 3995 else 3996 if test -n "$STRIP"; then 3997 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3998 else 3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4000 for as_dir in $PATH 4001 do 4002 IFS=$as_save_IFS 4003 test -z "$as_dir" && as_dir=. 4004 for ac_exec_ext in '' $ac_executable_extensions; do 4005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4006 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4008 break 2 4009 fi 4010 done 4011 done 4012 IFS=$as_save_IFS 4013 4014 fi 4015 fi 4016 STRIP=$ac_cv_prog_STRIP 4017 if test -n "$STRIP"; then 4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4019 $as_echo "$STRIP" >&6; } 4020 else 4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4022 $as_echo "no" >&6; } 4023 fi 4024 4025 4026 fi 4027 if test -z "$ac_cv_prog_STRIP"; then 4028 ac_ct_STRIP=$STRIP 4029 # Extract the first word of "strip", so it can be a program name with args. 4030 set dummy strip; ac_word=$2 4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4032 $as_echo_n "checking for $ac_word... " >&6; } 4033 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 4034 $as_echo_n "(cached) " >&6 4035 else 4036 if test -n "$ac_ct_STRIP"; then 4037 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4038 else 4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4040 for as_dir in $PATH 4041 do 4042 IFS=$as_save_IFS 4043 test -z "$as_dir" && as_dir=. 4044 for ac_exec_ext in '' $ac_executable_extensions; do 4045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4046 ac_cv_prog_ac_ct_STRIP="strip" 4047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4048 break 2 4049 fi 4050 done 4051 done 4052 IFS=$as_save_IFS 4053 4054 fi 4055 fi 4056 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4057 if test -n "$ac_ct_STRIP"; then 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4059 $as_echo "$ac_ct_STRIP" >&6; } 4060 else 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4062 $as_echo "no" >&6; } 4063 fi 4064 4065 if test "x$ac_ct_STRIP" = x; then 4066 STRIP=":" 4067 else 4068 case $cross_compiling:$ac_tool_warned in 4069 yes:) 4070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4072 ac_tool_warned=yes ;; 4073 esac 4074 STRIP=$ac_ct_STRIP 4075 fi 4076 else 4077 STRIP="$ac_cv_prog_STRIP" 4078 fi 4079 4080 fi 4081 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4082 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4084 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4085 if test -z "$MKDIR_P"; then 4086 if ${ac_cv_path_mkdir+:} false; then : 4087 $as_echo_n "(cached) " >&6 4088 else 4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4090 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4091 do 4092 IFS=$as_save_IFS 4093 test -z "$as_dir" && as_dir=. 4094 for ac_prog in mkdir gmkdir; do 4095 for ac_exec_ext in '' $ac_executable_extensions; do 4096 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 4097 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4098 'mkdir (GNU coreutils) '* | \ 4099 'mkdir (coreutils) '* | \ 4100 'mkdir (fileutils) '4.1*) 4101 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4102 break 3;; 4103 esac 4104 done 4105 done 4106 done 4107 IFS=$as_save_IFS 4108 4109 fi 4110 4111 test -d ./--version && rmdir ./--version 4112 if test "${ac_cv_path_mkdir+set}" = set; then 4113 MKDIR_P="$ac_cv_path_mkdir -p" 4114 else 4115 # As a last resort, use the slow shell script. Don't cache a 4116 # value for MKDIR_P within a source directory, because that will 4117 # break other packages using the cache if that directory is 4118 # removed, or if the value is a relative name. 4119 MKDIR_P="$ac_install_sh -d" 4120 fi 4121 fi 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4123 $as_echo "$MKDIR_P" >&6; } 4124 4125 for ac_prog in gawk mawk nawk awk 4126 do 4127 # Extract the first word of "$ac_prog", so it can be a program name with args. 4128 set dummy $ac_prog; ac_word=$2 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4130 $as_echo_n "checking for $ac_word... " >&6; } 4131 if ${ac_cv_prog_AWK+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133 else 4134 if test -n "$AWK"; then 4135 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4136 else 4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4138 for as_dir in $PATH 4139 do 4140 IFS=$as_save_IFS 4141 test -z "$as_dir" && as_dir=. 4142 for ac_exec_ext in '' $ac_executable_extensions; do 4143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4144 ac_cv_prog_AWK="$ac_prog" 4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4146 break 2 4147 fi 4148 done 4149 done 4150 IFS=$as_save_IFS 4151 4152 fi 4153 fi 4154 AWK=$ac_cv_prog_AWK 4155 if test -n "$AWK"; then 4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4157 $as_echo "$AWK" >&6; } 4158 else 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4160 $as_echo "no" >&6; } 4161 fi 4162 4163 4164 test -n "$AWK" && break 4165 done 4166 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4168 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4169 set x ${MAKE-make} 4170 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4171 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4172 $as_echo_n "(cached) " >&6 4173 else 4174 cat >conftest.make <<\_ACEOF 4175 SHELL = /bin/sh 4176 all: 4177 @echo '@@@%%%=$(MAKE)=@@@%%%' 4178 _ACEOF 4179 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4180 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4181 *@@@%%%=?*=@@@%%%*) 4182 eval ac_cv_prog_make_${ac_make}_set=yes;; 4183 *) 4184 eval ac_cv_prog_make_${ac_make}_set=no;; 4185 esac 4186 rm -f conftest.make 4187 fi 4188 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4190 $as_echo "yes" >&6; } 4191 SET_MAKE= 4192 else 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4194 $as_echo "no" >&6; } 4195 SET_MAKE="MAKE=${MAKE-make}" 4196 fi 4197 4198 rm -rf .tst 2>/dev/null 4199 mkdir .tst 2>/dev/null 4200 if test -d .tst; then 4201 am__leading_dot=. 4202 else 4203 am__leading_dot=_ 4204 fi 4205 rmdir .tst 2>/dev/null 4206 4207 DEPDIR="${am__leading_dot}deps" 4208 4209 ac_config_commands="$ac_config_commands depfiles" 4210 4211 4212 am_make=${MAKE-make} 4213 cat > confinc << 'END' 4214 am__doit: 4215 @echo this is the am__doit target 4216 .PHONY: am__doit 4217 END 4218 # If we don't find an include directive, just comment out the code. 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4220 $as_echo_n "checking for style of include used by $am_make... " >&6; } 4221 am__include="#" 4222 am__quote= 4223 _am_result=none 4224 # First try GNU make style include. 4225 echo "include confinc" > confmf 4226 # Ignore all kinds of additional output from 'make'. 4227 case `$am_make -s -f confmf 2> /dev/null` in #( 4228 *the\ am__doit\ target*) 4229 am__include=include 4230 am__quote= 4231 _am_result=GNU 4232 ;; 4233 esac 4234 # Now try BSD make style include. 4235 if test "$am__include" = "#"; then 4236 echo '.include "confinc"' > confmf 4237 case `$am_make -s -f confmf 2> /dev/null` in #( 4238 *the\ am__doit\ target*) 4239 am__include=.include 4240 am__quote="\"" 4241 _am_result=BSD 4242 ;; 4243 esac 4244 fi 4245 4246 4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4248 $as_echo "$_am_result" >&6; } 4249 rm -f confinc confmf 4250 4251 # Check whether --enable-dependency-tracking was given. 4252 if test "${enable_dependency_tracking+set}" = set; then : 4253 enableval=$enable_dependency_tracking; 4254 fi 4255 4256 if test "x$enable_dependency_tracking" != xno; then 4257 am_depcomp="$ac_aux_dir/depcomp" 4258 AMDEPBACKSLASH='\' 4259 am__nodep='_no' 4260 fi 4261 if test "x$enable_dependency_tracking" != xno; then 4262 AMDEP_TRUE= 4263 AMDEP_FALSE='#' 4264 else 4265 AMDEP_TRUE='#' 4266 AMDEP_FALSE= 4267 fi 4268 4269 4270 # Check whether --enable-silent-rules was given. 4271 if test "${enable_silent_rules+set}" = set; then : 4272 enableval=$enable_silent_rules; 4273 fi 4274 4275 case $enable_silent_rules in # ((( 4276 yes) AM_DEFAULT_VERBOSITY=0;; 4277 no) AM_DEFAULT_VERBOSITY=1;; 4278 *) AM_DEFAULT_VERBOSITY=1;; 4279 esac 4280 am_make=${MAKE-make} 4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4282 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4283 if ${am_cv_make_support_nested_variables+:} false; then : 4284 $as_echo_n "(cached) " >&6 4285 else 4286 if $as_echo 'TRUE=$(BAR$(V)) 4287 BAR0=false 4288 BAR1=true 4289 V=1 4290 am__doit: 4291 @$(TRUE) 4292 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4293 am_cv_make_support_nested_variables=yes 4294 else 4295 am_cv_make_support_nested_variables=no 4296 fi 4297 fi 4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4299 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4300 if test $am_cv_make_support_nested_variables = yes; then 4301 AM_V='$(V)' 4302 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4303 else 4304 AM_V=$AM_DEFAULT_VERBOSITY 4305 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4306 fi 4307 AM_BACKSLASH='\' 4308 4309 if test "`cd $srcdir && pwd`" != "`pwd`"; then 4310 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4311 # is not polluted with repeated "-I." 4312 am__isrc=' -I$(srcdir)' 4313 # test to see if srcdir already configured 4314 if test -f $srcdir/config.status; then 4315 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4316 fi 4317 fi 4318 4319 # test whether we have cygpath 4320 if test -z "$CYGPATH_W"; then 4321 if (cygpath --version) >/dev/null 2>/dev/null; then 4322 CYGPATH_W='cygpath -w' 4323 else 4324 CYGPATH_W=echo 4325 fi 4326 fi 4327 4328 4329 # Define the identity of the package. 4330 PACKAGE='libctf' 4331 VERSION='1.2.0' 4332 4333 4334 cat >>confdefs.h <<_ACEOF 4335 #define PACKAGE "$PACKAGE" 4336 _ACEOF 4337 4338 4339 cat >>confdefs.h <<_ACEOF 4340 #define VERSION "$VERSION" 4341 _ACEOF 4342 4343 # Some tools Automake needs. 4344 4345 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4346 4347 4348 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4349 4350 4351 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4352 4353 4354 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4355 4356 4357 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4358 4359 # For better backward compatibility. To be removed once Automake 1.9.x 4360 # dies out for good. For more background, see: 4361 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4362 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4363 mkdir_p='$(MKDIR_P)' 4364 4365 # We need awk for the "check" target (and possibly the TAP driver). The 4366 # system "awk" is bad on some platforms. 4367 # Always define AMTAR for backward compatibility. Yes, it's still used 4368 # in the wild :-( We should find a proper way to deprecate it ... 4369 AMTAR='$${TAR-tar}' 4370 4371 4372 # We'll loop over all known methods to create a tar archive until one works. 4373 _am_tools='gnutar pax cpio none' 4374 4375 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4376 4377 4378 4379 4380 4381 depcc="$CC" am_compiler_list= 4382 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4384 $as_echo_n "checking dependency style of $depcc... " >&6; } 4385 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387 else 4388 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4389 # We make a subdir and do the tests there. Otherwise we can end up 4390 # making bogus files that we don't know about and never remove. For 4391 # instance it was reported that on HP-UX the gcc test will end up 4392 # making a dummy file named 'D' -- because '-MD' means "put the output 4393 # in D". 4394 rm -rf conftest.dir 4395 mkdir conftest.dir 4396 # Copy depcomp to subdir because otherwise we won't find it if we're 4397 # using a relative directory. 4398 cp "$am_depcomp" conftest.dir 4399 cd conftest.dir 4400 # We will build objects and dependencies in a subdirectory because 4401 # it helps to detect inapplicable dependency modes. For instance 4402 # both Tru64's cc and ICC support -MD to output dependencies as a 4403 # side effect of compilation, but ICC will put the dependencies in 4404 # the current directory while Tru64 will put them in the object 4405 # directory. 4406 mkdir sub 4407 4408 am_cv_CC_dependencies_compiler_type=none 4409 if test "$am_compiler_list" = ""; then 4410 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4411 fi 4412 am__universal=false 4413 case " $depcc " in #( 4414 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4415 esac 4416 4417 for depmode in $am_compiler_list; do 4418 # Setup a source with many dependencies, because some compilers 4419 # like to wrap large dependency lists on column 80 (with \), and 4420 # we should not choose a depcomp mode which is confused by this. 4421 # 4422 # We need to recreate these files for each test, as the compiler may 4423 # overwrite some of them when testing with obscure command lines. 4424 # This happens at least with the AIX C compiler. 4425 : > sub/conftest.c 4426 for i in 1 2 3 4 5 6; do 4427 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4428 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4429 # Solaris 10 /bin/sh. 4430 echo '/* dummy */' > sub/conftst$i.h 4431 done 4432 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4433 4434 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4435 # mode. It turns out that the SunPro C++ compiler does not properly 4436 # handle '-M -o', and we need to detect this. Also, some Intel 4437 # versions had trouble with output in subdirs. 4438 am__obj=sub/conftest.${OBJEXT-o} 4439 am__minus_obj="-o $am__obj" 4440 case $depmode in 4441 gcc) 4442 # This depmode causes a compiler race in universal mode. 4443 test "$am__universal" = false || continue 4444 ;; 4445 nosideeffect) 4446 # After this tag, mechanisms are not by side-effect, so they'll 4447 # only be used when explicitly requested. 4448 if test "x$enable_dependency_tracking" = xyes; then 4449 continue 4450 else 4451 break 4452 fi 4453 ;; 4454 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4455 # This compiler won't grok '-c -o', but also, the minuso test has 4456 # not run yet. These depmodes are late enough in the game, and 4457 # so weak that their functioning should not be impacted. 4458 am__obj=conftest.${OBJEXT-o} 4459 am__minus_obj= 4460 ;; 4461 none) break ;; 4462 esac 4463 if depmode=$depmode \ 4464 source=sub/conftest.c object=$am__obj \ 4465 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4466 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4467 >/dev/null 2>conftest.err && 4468 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4469 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4470 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4471 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4472 # icc doesn't choke on unknown options, it will just issue warnings 4473 # or remarks (even with -Werror). So we grep stderr for any message 4474 # that says an option was ignored or not supported. 4475 # When given -MP, icc 7.0 and 7.1 complain thusly: 4476 # icc: Command line warning: ignoring option '-M'; no argument required 4477 # The diagnosis changed in icc 8.0: 4478 # icc: Command line remark: option '-MP' not supported 4479 if (grep 'ignoring option' conftest.err || 4480 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4481 am_cv_CC_dependencies_compiler_type=$depmode 4482 break 4483 fi 4484 fi 4485 done 4486 4487 cd .. 4488 rm -rf conftest.dir 4489 else 4490 am_cv_CC_dependencies_compiler_type=none 4491 fi 4492 4493 fi 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4495 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4496 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4497 4498 if 4499 test "x$enable_dependency_tracking" != xno \ 4500 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4501 am__fastdepCC_TRUE= 4502 am__fastdepCC_FALSE='#' 4503 else 4504 am__fastdepCC_TRUE='#' 4505 am__fastdepCC_FALSE= 4506 fi 4507 4508 4509 4510 # POSIX will say in a future version that running "rm -f" with no argument 4511 # is OK; and we want to be able to make that assumption in our Makefile 4512 # recipes. So use an aggressive probe to check that the usage we want is 4513 # actually supported "in the wild" to an acceptable degree. 4514 # See automake bug#10828. 4515 # To make any issue more visible, cause the running configure to be aborted 4516 # by default if the 'rm' program in use doesn't match our expectations; the 4517 # user can still override this though. 4518 if rm -f && rm -fr && rm -rf; then : OK; else 4519 cat >&2 <<'END' 4520 Oops! 4521 4522 Your 'rm' program seems unable to run without file operands specified 4523 on the command line, even when the '-f' option is present. This is contrary 4524 to the behaviour of most rm programs out there, and not conforming with 4525 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4526 4527 Please tell bug-automake@gnu.org about your system, including the value 4528 of your $PATH and any error possibly output before this message. This 4529 can help us improve future automake versions. 4530 4531 END 4532 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4533 echo 'Configuration will proceed anyway, since you have set the' >&2 4534 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4535 echo >&2 4536 else 4537 cat >&2 <<'END' 4538 Aborting the configuration process, to ensure you take notice of the issue. 4539 4540 You can download and install GNU coreutils to get an 'rm' implementation 4541 that behaves properly: <http://www.gnu.org/software/coreutils/>. 4542 4543 If you want to complete the configuration process using your problematic 4544 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4545 to "yes", and re-run configure. 4546 4547 END 4548 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4549 fi 4550 fi 4551 4552 # Check whether --enable-silent-rules was given. 4553 if test "${enable_silent_rules+set}" = set; then : 4554 enableval=$enable_silent_rules; 4555 fi 4556 4557 case $enable_silent_rules in # ((( 4558 yes) AM_DEFAULT_VERBOSITY=0;; 4559 no) AM_DEFAULT_VERBOSITY=1;; 4560 *) AM_DEFAULT_VERBOSITY=0;; 4561 esac 4562 am_make=${MAKE-make} 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4564 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4565 if ${am_cv_make_support_nested_variables+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567 else 4568 if $as_echo 'TRUE=$(BAR$(V)) 4569 BAR0=false 4570 BAR1=true 4571 V=1 4572 am__doit: 4573 @$(TRUE) 4574 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4575 am_cv_make_support_nested_variables=yes 4576 else 4577 am_cv_make_support_nested_variables=no 4578 fi 4579 fi 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4581 $as_echo "$am_cv_make_support_nested_variables" >&6; } 4582 if test $am_cv_make_support_nested_variables = yes; then 4583 AM_V='$(V)' 4584 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4585 else 4586 AM_V=$AM_DEFAULT_VERBOSITY 4587 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4588 fi 4589 AM_BACKSLASH='\' 4590 4591 4592 # Checks for programs. 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4594 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4595 set x ${MAKE-make} 4596 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4597 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4598 $as_echo_n "(cached) " >&6 4599 else 4600 cat >conftest.make <<\_ACEOF 4601 SHELL = /bin/sh 4602 all: 4603 @echo '@@@%%%=$(MAKE)=@@@%%%' 4604 _ACEOF 4605 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4606 case `${MAKE-make} -f conftest.make 2>/dev/null` in 4607 *@@@%%%=?*=@@@%%%*) 4608 eval ac_cv_prog_make_${ac_make}_set=yes;; 4609 *) 4610 eval ac_cv_prog_make_${ac_make}_set=no;; 4611 esac 4612 rm -f conftest.make 4613 fi 4614 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4616 $as_echo "yes" >&6; } 4617 SET_MAKE= 4618 else 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4620 $as_echo "no" >&6; } 4621 SET_MAKE="MAKE=${MAKE-make}" 4622 fi 4623 4624 ac_ext=c 4625 ac_cpp='$CPP $CPPFLAGS' 4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4629 if test -n "$ac_tool_prefix"; then 4630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4631 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4633 $as_echo_n "checking for $ac_word... " >&6; } 4634 if ${ac_cv_prog_CC+:} false; then : 4635 $as_echo_n "(cached) " >&6 4636 else 4637 if test -n "$CC"; then 4638 ac_cv_prog_CC="$CC" # Let the user override the test. 4639 else 4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4641 for as_dir in $PATH 4642 do 4643 IFS=$as_save_IFS 4644 test -z "$as_dir" && as_dir=. 4645 for ac_exec_ext in '' $ac_executable_extensions; do 4646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4647 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4649 break 2 4650 fi 4651 done 4652 done 4653 IFS=$as_save_IFS 4654 4655 fi 4656 fi 4657 CC=$ac_cv_prog_CC 4658 if test -n "$CC"; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4660 $as_echo "$CC" >&6; } 4661 else 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4663 $as_echo "no" >&6; } 4664 fi 4665 4666 4667 fi 4668 if test -z "$ac_cv_prog_CC"; then 4669 ac_ct_CC=$CC 4670 # Extract the first word of "gcc", so it can be a program name with args. 4671 set dummy gcc; ac_word=$2 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4673 $as_echo_n "checking for $ac_word... " >&6; } 4674 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4675 $as_echo_n "(cached) " >&6 4676 else 4677 if test -n "$ac_ct_CC"; then 4678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4679 else 4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4681 for as_dir in $PATH 4682 do 4683 IFS=$as_save_IFS 4684 test -z "$as_dir" && as_dir=. 4685 for ac_exec_ext in '' $ac_executable_extensions; do 4686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4687 ac_cv_prog_ac_ct_CC="gcc" 4688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4689 break 2 4690 fi 4691 done 4692 done 4693 IFS=$as_save_IFS 4694 4695 fi 4696 fi 4697 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4698 if test -n "$ac_ct_CC"; then 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4700 $as_echo "$ac_ct_CC" >&6; } 4701 else 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4703 $as_echo "no" >&6; } 4704 fi 4705 4706 if test "x$ac_ct_CC" = x; then 4707 CC="" 4708 else 4709 case $cross_compiling:$ac_tool_warned in 4710 yes:) 4711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4713 ac_tool_warned=yes ;; 4714 esac 4715 CC=$ac_ct_CC 4716 fi 4717 else 4718 CC="$ac_cv_prog_CC" 4719 fi 4720 4721 if test -z "$CC"; then 4722 if test -n "$ac_tool_prefix"; then 4723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4724 set dummy ${ac_tool_prefix}cc; ac_word=$2 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4726 $as_echo_n "checking for $ac_word... " >&6; } 4727 if ${ac_cv_prog_CC+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729 else 4730 if test -n "$CC"; then 4731 ac_cv_prog_CC="$CC" # Let the user override the test. 4732 else 4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734 for as_dir in $PATH 4735 do 4736 IFS=$as_save_IFS 4737 test -z "$as_dir" && as_dir=. 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4740 ac_cv_prog_CC="${ac_tool_prefix}cc" 4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4742 break 2 4743 fi 4744 done 4745 done 4746 IFS=$as_save_IFS 4747 4748 fi 4749 fi 4750 CC=$ac_cv_prog_CC 4751 if test -n "$CC"; then 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4753 $as_echo "$CC" >&6; } 4754 else 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4756 $as_echo "no" >&6; } 4757 fi 4758 4759 4760 fi 4761 fi 4762 if test -z "$CC"; then 4763 # Extract the first word of "cc", so it can be a program name with args. 4764 set dummy cc; ac_word=$2 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4766 $as_echo_n "checking for $ac_word... " >&6; } 4767 if ${ac_cv_prog_CC+:} false; then : 4768 $as_echo_n "(cached) " >&6 4769 else 4770 if test -n "$CC"; then 4771 ac_cv_prog_CC="$CC" # Let the user override the test. 4772 else 4773 ac_prog_rejected=no 4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4775 for as_dir in $PATH 4776 do 4777 IFS=$as_save_IFS 4778 test -z "$as_dir" && as_dir=. 4779 for ac_exec_ext in '' $ac_executable_extensions; do 4780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4782 ac_prog_rejected=yes 4783 continue 4784 fi 4785 ac_cv_prog_CC="cc" 4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4787 break 2 4788 fi 4789 done 4790 done 4791 IFS=$as_save_IFS 4792 4793 if test $ac_prog_rejected = yes; then 4794 # We found a bogon in the path, so make sure we never use it. 4795 set dummy $ac_cv_prog_CC 4796 shift 4797 if test $# != 0; then 4798 # We chose a different compiler from the bogus one. 4799 # However, it has the same basename, so the bogon will be chosen 4800 # first if we set CC to just the basename; use the full file name. 4801 shift 4802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4803 fi 4804 fi 4805 fi 4806 fi 4807 CC=$ac_cv_prog_CC 4808 if test -n "$CC"; then 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4810 $as_echo "$CC" >&6; } 4811 else 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4813 $as_echo "no" >&6; } 4814 fi 4815 4816 4817 fi 4818 if test -z "$CC"; then 4819 if test -n "$ac_tool_prefix"; then 4820 for ac_prog in cl.exe 4821 do 4822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4825 $as_echo_n "checking for $ac_word... " >&6; } 4826 if ${ac_cv_prog_CC+:} false; then : 4827 $as_echo_n "(cached) " >&6 4828 else 4829 if test -n "$CC"; then 4830 ac_cv_prog_CC="$CC" # Let the user override the test. 4831 else 4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4833 for as_dir in $PATH 4834 do 4835 IFS=$as_save_IFS 4836 test -z "$as_dir" && as_dir=. 4837 for ac_exec_ext in '' $ac_executable_extensions; do 4838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4841 break 2 4842 fi 4843 done 4844 done 4845 IFS=$as_save_IFS 4846 4847 fi 4848 fi 4849 CC=$ac_cv_prog_CC 4850 if test -n "$CC"; then 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4852 $as_echo "$CC" >&6; } 4853 else 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4855 $as_echo "no" >&6; } 4856 fi 4857 4858 4859 test -n "$CC" && break 4860 done 4861 fi 4862 if test -z "$CC"; then 4863 ac_ct_CC=$CC 4864 for ac_prog in cl.exe 4865 do 4866 # Extract the first word of "$ac_prog", so it can be a program name with args. 4867 set dummy $ac_prog; ac_word=$2 4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4869 $as_echo_n "checking for $ac_word... " >&6; } 4870 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4871 $as_echo_n "(cached) " >&6 4872 else 4873 if test -n "$ac_ct_CC"; then 4874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4875 else 4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4877 for as_dir in $PATH 4878 do 4879 IFS=$as_save_IFS 4880 test -z "$as_dir" && as_dir=. 4881 for ac_exec_ext in '' $ac_executable_extensions; do 4882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4883 ac_cv_prog_ac_ct_CC="$ac_prog" 4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4885 break 2 4886 fi 4887 done 4888 done 4889 IFS=$as_save_IFS 4890 4891 fi 4892 fi 4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4894 if test -n "$ac_ct_CC"; then 4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4896 $as_echo "$ac_ct_CC" >&6; } 4897 else 4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4899 $as_echo "no" >&6; } 4900 fi 4901 4902 4903 test -n "$ac_ct_CC" && break 4904 done 4905 4906 if test "x$ac_ct_CC" = x; then 4907 CC="" 4908 else 4909 case $cross_compiling:$ac_tool_warned in 4910 yes:) 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4913 ac_tool_warned=yes ;; 4914 esac 4915 CC=$ac_ct_CC 4916 fi 4917 fi 4918 4919 fi 4920 4921 4922 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4924 as_fn_error $? "no acceptable C compiler found in \$PATH 4925 See \`config.log' for more details" "$LINENO" 5; } 4926 4927 # Provide some information about the compiler. 4928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4929 set X $ac_compile 4930 ac_compiler=$2 4931 for ac_option in --version -v -V -qversion; do 4932 { { ac_try="$ac_compiler $ac_option >&5" 4933 case "(($ac_try" in 4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4935 *) ac_try_echo=$ac_try;; 4936 esac 4937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4938 $as_echo "$ac_try_echo"; } >&5 4939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4940 ac_status=$? 4941 if test -s conftest.err; then 4942 sed '10a\ 4943 ... rest of stderr output deleted ... 4944 10q' conftest.err >conftest.er1 4945 cat conftest.er1 >&5 4946 fi 4947 rm -f conftest.er1 conftest.err 4948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4949 test $ac_status = 0; } 4950 done 4951 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4953 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4954 if ${ac_cv_c_compiler_gnu+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956 else 4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958 /* end confdefs.h. */ 4959 4960 int 4961 main () 4962 { 4963 #ifndef __GNUC__ 4964 choke me 4965 #endif 4966 4967 ; 4968 return 0; 4969 } 4970 _ACEOF 4971 if ac_fn_c_try_compile "$LINENO"; then : 4972 ac_compiler_gnu=yes 4973 else 4974 ac_compiler_gnu=no 4975 fi 4976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4977 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4978 4979 fi 4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4981 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4982 if test $ac_compiler_gnu = yes; then 4983 GCC=yes 4984 else 4985 GCC= 4986 fi 4987 ac_test_CFLAGS=${CFLAGS+set} 4988 ac_save_CFLAGS=$CFLAGS 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4990 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4991 if ${ac_cv_prog_cc_g+:} false; then : 4992 $as_echo_n "(cached) " >&6 4993 else 4994 ac_save_c_werror_flag=$ac_c_werror_flag 4995 ac_c_werror_flag=yes 4996 ac_cv_prog_cc_g=no 4997 CFLAGS="-g" 4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4999 /* end confdefs.h. */ 5000 5001 int 5002 main () 5003 { 5004 5005 ; 5006 return 0; 5007 } 5008 _ACEOF 5009 if ac_fn_c_try_compile "$LINENO"; then : 5010 ac_cv_prog_cc_g=yes 5011 else 5012 CFLAGS="" 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5014 /* end confdefs.h. */ 5015 5016 int 5017 main () 5018 { 5019 5020 ; 5021 return 0; 5022 } 5023 _ACEOF 5024 if ac_fn_c_try_compile "$LINENO"; then : 5025 5026 else 5027 ac_c_werror_flag=$ac_save_c_werror_flag 5028 CFLAGS="-g" 5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5030 /* end confdefs.h. */ 5031 5032 int 5033 main () 5034 { 5035 5036 ; 5037 return 0; 5038 } 5039 _ACEOF 5040 if ac_fn_c_try_compile "$LINENO"; then : 5041 ac_cv_prog_cc_g=yes 5042 fi 5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5044 fi 5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5046 fi 5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5048 ac_c_werror_flag=$ac_save_c_werror_flag 5049 fi 5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5051 $as_echo "$ac_cv_prog_cc_g" >&6; } 5052 if test "$ac_test_CFLAGS" = set; then 5053 CFLAGS=$ac_save_CFLAGS 5054 elif test $ac_cv_prog_cc_g = yes; then 5055 if test "$GCC" = yes; then 5056 CFLAGS="-g -O2" 5057 else 5058 CFLAGS="-g" 5059 fi 5060 else 5061 if test "$GCC" = yes; then 5062 CFLAGS="-O2" 5063 else 5064 CFLAGS= 5065 fi 5066 fi 5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5069 if ${ac_cv_prog_cc_c89+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071 else 5072 ac_cv_prog_cc_c89=no 5073 ac_save_CC=$CC 5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075 /* end confdefs.h. */ 5076 #include <stdarg.h> 5077 #include <stdio.h> 5078 struct stat; 5079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5080 struct buf { int x; }; 5081 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5082 static char *e (p, i) 5083 char **p; 5084 int i; 5085 { 5086 return p[i]; 5087 } 5088 static char *f (char * (*g) (char **, int), char **p, ...) 5089 { 5090 char *s; 5091 va_list v; 5092 va_start (v,p); 5093 s = g (p, va_arg (v,int)); 5094 va_end (v); 5095 return s; 5096 } 5097 5098 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5099 function prototypes and stuff, but not '\xHH' hex character constants. 5100 These don't provoke an error unfortunately, instead are silently treated 5101 as 'x'. The following induces an error, until -std is added to get 5102 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5103 array size at least. It's necessary to write '\x00'==0 to get something 5104 that's true only with -std. */ 5105 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5106 5107 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5108 inside strings and character constants. */ 5109 #define FOO(x) 'x' 5110 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5111 5112 int test (int i, double x); 5113 struct s1 {int (*f) (int a);}; 5114 struct s2 {int (*f) (double a);}; 5115 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5116 int argc; 5117 char **argv; 5118 int 5119 main () 5120 { 5121 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5122 ; 5123 return 0; 5124 } 5125 _ACEOF 5126 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5127 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5128 do 5129 CC="$ac_save_CC $ac_arg" 5130 if ac_fn_c_try_compile "$LINENO"; then : 5131 ac_cv_prog_cc_c89=$ac_arg 5132 fi 5133 rm -f core conftest.err conftest.$ac_objext 5134 test "x$ac_cv_prog_cc_c89" != "xno" && break 5135 done 5136 rm -f conftest.$ac_ext 5137 CC=$ac_save_CC 5138 5139 fi 5140 # AC_CACHE_VAL 5141 case "x$ac_cv_prog_cc_c89" in 5142 x) 5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5144 $as_echo "none needed" >&6; } ;; 5145 xno) 5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5147 $as_echo "unsupported" >&6; } ;; 5148 *) 5149 CC="$CC $ac_cv_prog_cc_c89" 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5151 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5152 esac 5153 if test "x$ac_cv_prog_cc_c89" != xno; then : 5154 5155 fi 5156 5157 ac_ext=c 5158 ac_cpp='$CPP $CPPFLAGS' 5159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5161 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5162 5163 ac_ext=c 5164 ac_cpp='$CPP $CPPFLAGS' 5165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5167 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5169 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5170 if ${am_cv_prog_cc_c_o+:} false; then : 5171 $as_echo_n "(cached) " >&6 5172 else 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5174 /* end confdefs.h. */ 5175 5176 int 5177 main () 5178 { 5179 5180 ; 5181 return 0; 5182 } 5183 _ACEOF 5184 # Make sure it works both with $CC and with simple cc. 5185 # Following AC_PROG_CC_C_O, we do the test twice because some 5186 # compilers refuse to overwrite an existing .o file with -o, 5187 # though they will create one. 5188 am_cv_prog_cc_c_o=yes 5189 for am_i in 1 2; do 5190 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5191 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5192 ac_status=$? 5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5194 (exit $ac_status); } \ 5195 && test -f conftest2.$ac_objext; then 5196 : OK 5197 else 5198 am_cv_prog_cc_c_o=no 5199 break 5200 fi 5201 done 5202 rm -f core conftest* 5203 unset am_i 5204 fi 5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5206 $as_echo "$am_cv_prog_cc_c_o" >&6; } 5207 if test "$am_cv_prog_cc_c_o" != yes; then 5208 # Losing compiler, so override with the script. 5209 # FIXME: It is wrong to rewrite CC. 5210 # But if we don't then we get into trouble of one sort or another. 5211 # A longer-term fix would be to have automake use am__CC in this case, 5212 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5213 CC="$am_aux_dir/compile $CC" 5214 fi 5215 ac_ext=c 5216 ac_cpp='$CPP $CPPFLAGS' 5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5220 5221 5222 if test -n "$ac_tool_prefix"; then 5223 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5224 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5226 $as_echo_n "checking for $ac_word... " >&6; } 5227 if ${ac_cv_prog_RANLIB+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229 else 5230 if test -n "$RANLIB"; then 5231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5232 else 5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5234 for as_dir in $PATH 5235 do 5236 IFS=$as_save_IFS 5237 test -z "$as_dir" && as_dir=. 5238 for ac_exec_ext in '' $ac_executable_extensions; do 5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5240 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5242 break 2 5243 fi 5244 done 5245 done 5246 IFS=$as_save_IFS 5247 5248 fi 5249 fi 5250 RANLIB=$ac_cv_prog_RANLIB 5251 if test -n "$RANLIB"; then 5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5253 $as_echo "$RANLIB" >&6; } 5254 else 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5256 $as_echo "no" >&6; } 5257 fi 5258 5259 5260 fi 5261 if test -z "$ac_cv_prog_RANLIB"; then 5262 ac_ct_RANLIB=$RANLIB 5263 # Extract the first word of "ranlib", so it can be a program name with args. 5264 set dummy ranlib; ac_word=$2 5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5266 $as_echo_n "checking for $ac_word... " >&6; } 5267 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5268 $as_echo_n "(cached) " >&6 5269 else 5270 if test -n "$ac_ct_RANLIB"; then 5271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5272 else 5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5274 for as_dir in $PATH 5275 do 5276 IFS=$as_save_IFS 5277 test -z "$as_dir" && as_dir=. 5278 for ac_exec_ext in '' $ac_executable_extensions; do 5279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5280 ac_cv_prog_ac_ct_RANLIB="ranlib" 5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5282 break 2 5283 fi 5284 done 5285 done 5286 IFS=$as_save_IFS 5287 5288 fi 5289 fi 5290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5291 if test -n "$ac_ct_RANLIB"; then 5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5293 $as_echo "$ac_ct_RANLIB" >&6; } 5294 else 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5296 $as_echo "no" >&6; } 5297 fi 5298 5299 if test "x$ac_ct_RANLIB" = x; then 5300 RANLIB=":" 5301 else 5302 case $cross_compiling:$ac_tool_warned in 5303 yes:) 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5306 ac_tool_warned=yes ;; 5307 esac 5308 RANLIB=$ac_ct_RANLIB 5309 fi 5310 else 5311 RANLIB="$ac_cv_prog_RANLIB" 5312 fi 5313 5314 if test -n "$ac_tool_prefix"; then 5315 for ac_prog in ar lib "link -lib" 5316 do 5317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320 $as_echo_n "checking for $ac_word... " >&6; } 5321 if ${ac_cv_prog_AR+:} false; then : 5322 $as_echo_n "(cached) " >&6 5323 else 5324 if test -n "$AR"; then 5325 ac_cv_prog_AR="$AR" # Let the user override the test. 5326 else 5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5328 for as_dir in $PATH 5329 do 5330 IFS=$as_save_IFS 5331 test -z "$as_dir" && as_dir=. 5332 for ac_exec_ext in '' $ac_executable_extensions; do 5333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5334 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5336 break 2 5337 fi 5338 done 5339 done 5340 IFS=$as_save_IFS 5341 5342 fi 5343 fi 5344 AR=$ac_cv_prog_AR 5345 if test -n "$AR"; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5347 $as_echo "$AR" >&6; } 5348 else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350 $as_echo "no" >&6; } 5351 fi 5352 5353 5354 test -n "$AR" && break 5355 done 5356 fi 5357 if test -z "$AR"; then 5358 ac_ct_AR=$AR 5359 for ac_prog in ar lib "link -lib" 5360 do 5361 # Extract the first word of "$ac_prog", so it can be a program name with args. 5362 set dummy $ac_prog; ac_word=$2 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364 $as_echo_n "checking for $ac_word... " >&6; } 5365 if ${ac_cv_prog_ac_ct_AR+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 if test -n "$ac_ct_AR"; then 5369 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5370 else 5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5372 for as_dir in $PATH 5373 do 5374 IFS=$as_save_IFS 5375 test -z "$as_dir" && as_dir=. 5376 for ac_exec_ext in '' $ac_executable_extensions; do 5377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5378 ac_cv_prog_ac_ct_AR="$ac_prog" 5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5380 break 2 5381 fi 5382 done 5383 done 5384 IFS=$as_save_IFS 5385 5386 fi 5387 fi 5388 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5389 if test -n "$ac_ct_AR"; then 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5391 $as_echo "$ac_ct_AR" >&6; } 5392 else 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5394 $as_echo "no" >&6; } 5395 fi 5396 5397 5398 test -n "$ac_ct_AR" && break 5399 done 5400 5401 if test "x$ac_ct_AR" = x; then 5402 AR="false" 5403 else 5404 case $cross_compiling:$ac_tool_warned in 5405 yes:) 5406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5408 ac_tool_warned=yes ;; 5409 esac 5410 AR=$ac_ct_AR 5411 fi 5412 fi 5413 5414 : ${AR=ar} 5415 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 5417 $as_echo_n "checking the archiver ($AR) interface... " >&6; } 5418 if ${am_cv_ar_interface+:} false; then : 5419 $as_echo_n "(cached) " >&6 5420 else 5421 ac_ext=c 5422 ac_cpp='$CPP $CPPFLAGS' 5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5426 5427 am_cv_ar_interface=ar 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5429 /* end confdefs.h. */ 5430 int some_variable = 0; 5431 _ACEOF 5432 if ac_fn_c_try_compile "$LINENO"; then : 5433 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 5434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5435 (eval $am_ar_try) 2>&5 5436 ac_status=$? 5437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5438 test $ac_status = 0; } 5439 if test "$ac_status" -eq 0; then 5440 am_cv_ar_interface=ar 5441 else 5442 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 5443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 5444 (eval $am_ar_try) 2>&5 5445 ac_status=$? 5446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5447 test $ac_status = 0; } 5448 if test "$ac_status" -eq 0; then 5449 am_cv_ar_interface=lib 5450 else 5451 am_cv_ar_interface=unknown 5452 fi 5453 fi 5454 rm -f conftest.lib libconftest.a 5455 5456 fi 5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5458 ac_ext=c 5459 ac_cpp='$CPP $CPPFLAGS' 5460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5463 5464 fi 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 5466 $as_echo "$am_cv_ar_interface" >&6; } 5467 5468 case $am_cv_ar_interface in 5469 ar) 5470 ;; 5471 lib) 5472 # Microsoft lib, so override with the ar-lib wrapper script. 5473 # FIXME: It is wrong to rewrite AR. 5474 # But if we don't then we get into trouble of one sort or another. 5475 # A longer-term fix would be to have automake use am__AR in this case, 5476 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 5477 # similar. 5478 AR="$am_aux_dir/ar-lib $AR" 5479 ;; 5480 unknown) 5481 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 5482 ;; 5483 esac 5484 5485 5486 MKINSTALLDIRS= 5487 if test -n "$ac_aux_dir"; then 5488 case "$ac_aux_dir" in 5489 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 5490 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 5491 esac 5492 fi 5493 if test -z "$MKINSTALLDIRS"; then 5494 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5495 fi 5496 5497 5498 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5500 $as_echo_n "checking whether NLS is requested... " >&6; } 5501 # Check whether --enable-nls was given. 5502 if test "${enable_nls+set}" = set; then : 5503 enableval=$enable_nls; USE_NLS=$enableval 5504 else 5505 USE_NLS=yes 5506 fi 5507 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5509 $as_echo "$USE_NLS" >&6; } 5510 5511 5512 5513 5514 5515 5516 # Prepare PATH_SEPARATOR. 5517 # The user is always right. 5518 if test "${PATH_SEPARATOR+set}" != set; then 5519 echo "#! /bin/sh" >conf$$.sh 5520 echo "exit 0" >>conf$$.sh 5521 chmod +x conf$$.sh 5522 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5523 PATH_SEPARATOR=';' 5524 else 5525 PATH_SEPARATOR=: 5526 fi 5527 rm -f conf$$.sh 5528 fi 5529 5530 # Find out how to test for executable files. Don't use a zero-byte file, 5531 # as systems may use methods other than mode bits to determine executability. 5532 cat >conf$$.file <<_ASEOF 5533 #! /bin/sh 5534 exit 0 5535 _ASEOF 5536 chmod +x conf$$.file 5537 if test -x conf$$.file >/dev/null 2>&1; then 5538 ac_executable_p="test -x" 5539 else 5540 ac_executable_p="test -f" 5541 fi 5542 rm -f conf$$.file 5543 5544 # Extract the first word of "msgfmt", so it can be a program name with args. 5545 set dummy msgfmt; ac_word=$2 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5547 $as_echo_n "checking for $ac_word... " >&6; } 5548 if ${ac_cv_path_MSGFMT+:} false; then : 5549 $as_echo_n "(cached) " >&6 5550 else 5551 case "$MSGFMT" in 5552 [\\/]* | ?:[\\/]*) 5553 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5554 ;; 5555 *) 5556 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5557 for ac_dir in $PATH; do 5558 IFS="$ac_save_IFS" 5559 test -z "$ac_dir" && ac_dir=. 5560 for ac_exec_ext in '' $ac_executable_extensions; do 5561 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5562 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 5563 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5564 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 5565 break 2 5566 fi 5567 fi 5568 done 5569 done 5570 IFS="$ac_save_IFS" 5571 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 5572 ;; 5573 esac 5574 fi 5575 MSGFMT="$ac_cv_path_MSGFMT" 5576 if test "$MSGFMT" != ":"; then 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5578 $as_echo "$MSGFMT" >&6; } 5579 else 5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5581 $as_echo "no" >&6; } 5582 fi 5583 5584 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5585 set dummy gmsgfmt; ac_word=$2 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5587 $as_echo_n "checking for $ac_word... " >&6; } 5588 if ${ac_cv_path_GMSGFMT+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590 else 5591 case $GMSGFMT in 5592 [\\/]* | ?:[\\/]*) 5593 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5594 ;; 5595 *) 5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5597 for as_dir in $PATH 5598 do 5599 IFS=$as_save_IFS 5600 test -z "$as_dir" && as_dir=. 5601 for ac_exec_ext in '' $ac_executable_extensions; do 5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5603 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5605 break 2 5606 fi 5607 done 5608 done 5609 IFS=$as_save_IFS 5610 5611 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5612 ;; 5613 esac 5614 fi 5615 GMSGFMT=$ac_cv_path_GMSGFMT 5616 if test -n "$GMSGFMT"; then 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5618 $as_echo "$GMSGFMT" >&6; } 5619 else 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5621 $as_echo "no" >&6; } 5622 fi 5623 5624 5625 5626 5627 # Prepare PATH_SEPARATOR. 5628 # The user is always right. 5629 if test "${PATH_SEPARATOR+set}" != set; then 5630 echo "#! /bin/sh" >conf$$.sh 5631 echo "exit 0" >>conf$$.sh 5632 chmod +x conf$$.sh 5633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5634 PATH_SEPARATOR=';' 5635 else 5636 PATH_SEPARATOR=: 5637 fi 5638 rm -f conf$$.sh 5639 fi 5640 5641 # Find out how to test for executable files. Don't use a zero-byte file, 5642 # as systems may use methods other than mode bits to determine executability. 5643 cat >conf$$.file <<_ASEOF 5644 #! /bin/sh 5645 exit 0 5646 _ASEOF 5647 chmod +x conf$$.file 5648 if test -x conf$$.file >/dev/null 2>&1; then 5649 ac_executable_p="test -x" 5650 else 5651 ac_executable_p="test -f" 5652 fi 5653 rm -f conf$$.file 5654 5655 # Extract the first word of "xgettext", so it can be a program name with args. 5656 set dummy xgettext; ac_word=$2 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5658 $as_echo_n "checking for $ac_word... " >&6; } 5659 if ${ac_cv_path_XGETTEXT+:} false; then : 5660 $as_echo_n "(cached) " >&6 5661 else 5662 case "$XGETTEXT" in 5663 [\\/]* | ?:[\\/]*) 5664 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5665 ;; 5666 *) 5667 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5668 for ac_dir in $PATH; do 5669 IFS="$ac_save_IFS" 5670 test -z "$ac_dir" && ac_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5673 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5674 (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 5675 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 5676 break 2 5677 fi 5678 fi 5679 done 5680 done 5681 IFS="$ac_save_IFS" 5682 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5683 ;; 5684 esac 5685 fi 5686 XGETTEXT="$ac_cv_path_XGETTEXT" 5687 if test "$XGETTEXT" != ":"; then 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5689 $as_echo "$XGETTEXT" >&6; } 5690 else 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5692 $as_echo "no" >&6; } 5693 fi 5694 5695 rm -f messages.po 5696 5697 5698 # Prepare PATH_SEPARATOR. 5699 # The user is always right. 5700 if test "${PATH_SEPARATOR+set}" != set; then 5701 echo "#! /bin/sh" >conf$$.sh 5702 echo "exit 0" >>conf$$.sh 5703 chmod +x conf$$.sh 5704 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5705 PATH_SEPARATOR=';' 5706 else 5707 PATH_SEPARATOR=: 5708 fi 5709 rm -f conf$$.sh 5710 fi 5711 5712 # Find out how to test for executable files. Don't use a zero-byte file, 5713 # as systems may use methods other than mode bits to determine executability. 5714 cat >conf$$.file <<_ASEOF 5715 #! /bin/sh 5716 exit 0 5717 _ASEOF 5718 chmod +x conf$$.file 5719 if test -x conf$$.file >/dev/null 2>&1; then 5720 ac_executable_p="test -x" 5721 else 5722 ac_executable_p="test -f" 5723 fi 5724 rm -f conf$$.file 5725 5726 # Extract the first word of "msgmerge", so it can be a program name with args. 5727 set dummy msgmerge; ac_word=$2 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5729 $as_echo_n "checking for $ac_word... " >&6; } 5730 if ${ac_cv_path_MSGMERGE+:} false; then : 5731 $as_echo_n "(cached) " >&6 5732 else 5733 case "$MSGMERGE" in 5734 [\\/]* | ?:[\\/]*) 5735 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 5736 ;; 5737 *) 5738 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5739 for ac_dir in $PATH; do 5740 IFS="$ac_save_IFS" 5741 test -z "$ac_dir" && ac_dir=. 5742 for ac_exec_ext in '' $ac_executable_extensions; do 5743 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5744 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 5745 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 5746 break 2 5747 fi 5748 fi 5749 done 5750 done 5751 IFS="$ac_save_IFS" 5752 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 5753 ;; 5754 esac 5755 fi 5756 MSGMERGE="$ac_cv_path_MSGMERGE" 5757 if test "$MSGMERGE" != ":"; then 5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 5759 $as_echo "$MSGMERGE" >&6; } 5760 else 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5762 $as_echo "no" >&6; } 5763 fi 5764 5765 5766 if test "$GMSGFMT" != ":"; then 5767 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 5768 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5769 : ; 5770 else 5771 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 5773 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 5774 GMSGFMT=":" 5775 fi 5776 fi 5777 5778 if test "$XGETTEXT" != ":"; then 5779 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5780 (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 5781 : ; 5782 else 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 5784 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 5785 XGETTEXT=":" 5786 fi 5787 rm -f messages.po 5788 fi 5789 5790 ac_config_commands="$ac_config_commands default-1" 5791 5792 5793 5794 if test "X$prefix" = "XNONE"; then 5795 acl_final_prefix="$ac_default_prefix" 5796 else 5797 acl_final_prefix="$prefix" 5798 fi 5799 if test "X$exec_prefix" = "XNONE"; then 5800 acl_final_exec_prefix='${prefix}' 5801 else 5802 acl_final_exec_prefix="$exec_prefix" 5803 fi 5804 acl_save_prefix="$prefix" 5805 prefix="$acl_final_prefix" 5806 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 5807 prefix="$acl_save_prefix" 5808 5809 5810 # Check whether --with-gnu-ld was given. 5811 if test "${with_gnu_ld+set}" = set; then : 5812 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5813 else 5814 with_gnu_ld=no 5815 fi 5816 5817 # Prepare PATH_SEPARATOR. 5818 # The user is always right. 5819 if test "${PATH_SEPARATOR+set}" != set; then 5820 echo "#! /bin/sh" >conf$$.sh 5821 echo "exit 0" >>conf$$.sh 5822 chmod +x conf$$.sh 5823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5824 PATH_SEPARATOR=';' 5825 else 5826 PATH_SEPARATOR=: 5827 fi 5828 rm -f conf$$.sh 5829 fi 5830 ac_prog=ld 5831 if test "$GCC" = yes; then 5832 # Check if gcc -print-prog-name=ld gives a path. 5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 5834 $as_echo_n "checking for ld used by GCC... " >&6; } 5835 case $host in 5836 *-*-mingw*) 5837 # gcc leaves a trailing carriage return which upsets mingw 5838 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5839 *) 5840 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5841 esac 5842 case $ac_prog in 5843 # Accept absolute paths. 5844 [\\/]* | [A-Za-z]:[\\/]*) 5845 re_direlt='/[^/][^/]*/\.\./' 5846 # Canonicalize the path of ld 5847 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 5848 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5849 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 5850 done 5851 test -z "$LD" && LD="$ac_prog" 5852 ;; 5853 "") 5854 # If it fails, then pretend we aren't using GCC. 5855 ac_prog=ld 5856 ;; 5857 *) 5858 # If it is relative, then search for the first ld in PATH. 5859 with_gnu_ld=unknown 5860 ;; 5861 esac 5862 elif test "$with_gnu_ld" = yes; then 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5864 $as_echo_n "checking for GNU ld... " >&6; } 5865 else 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5867 $as_echo_n "checking for non-GNU ld... " >&6; } 5868 fi 5869 if ${acl_cv_path_LD+:} false; then : 5870 $as_echo_n "(cached) " >&6 5871 else 5872 if test -z "$LD"; then 5873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5874 for ac_dir in $PATH; do 5875 test -z "$ac_dir" && ac_dir=. 5876 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5877 acl_cv_path_LD="$ac_dir/$ac_prog" 5878 # Check to see if the program is GNU ld. I'd rather use --version, 5879 # but apparently some GNU ld's only accept -v. 5880 # Break only if it was the GNU/non-GNU ld that we prefer. 5881 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then 5882 test "$with_gnu_ld" != no && break 5883 else 5884 test "$with_gnu_ld" != yes && break 5885 fi 5886 fi 5887 done 5888 IFS="$ac_save_ifs" 5889 else 5890 acl_cv_path_LD="$LD" # Let the user override the test with a path. 5891 fi 5892 fi 5893 5894 LD="$acl_cv_path_LD" 5895 if test -n "$LD"; then 5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5897 $as_echo "$LD" >&6; } 5898 else 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5900 $as_echo "no" >&6; } 5901 fi 5902 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5904 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5905 if ${acl_cv_prog_gnu_ld+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907 else 5908 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5909 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then 5910 acl_cv_prog_gnu_ld=yes 5911 else 5912 acl_cv_prog_gnu_ld=no 5913 fi 5914 fi 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5916 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 5917 with_gnu_ld=$acl_cv_prog_gnu_ld 5918 5919 5920 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5922 $as_echo_n "checking for shared library run path origin... " >&6; } 5923 if ${acl_cv_rpath+:} false; then : 5924 $as_echo_n "(cached) " >&6 5925 else 5926 5927 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5928 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5929 . ./conftest.sh 5930 rm -f ./conftest.sh 5931 acl_cv_rpath=done 5932 5933 fi 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5935 $as_echo "$acl_cv_rpath" >&6; } 5936 wl="$acl_cv_wl" 5937 libext="$acl_cv_libext" 5938 shlibext="$acl_cv_shlibext" 5939 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5940 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5941 hardcode_direct="$acl_cv_hardcode_direct" 5942 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5943 # Check whether --enable-rpath was given. 5944 if test "${enable_rpath+set}" = set; then : 5945 enableval=$enable_rpath; : 5946 else 5947 enable_rpath=yes 5948 fi 5949 5950 5951 5952 5953 5954 5955 5956 5957 use_additional=yes 5958 5959 acl_save_prefix="$prefix" 5960 prefix="$acl_final_prefix" 5961 acl_save_exec_prefix="$exec_prefix" 5962 exec_prefix="$acl_final_exec_prefix" 5963 5964 eval additional_includedir=\"$includedir\" 5965 eval additional_libdir=\"$libdir\" 5966 5967 exec_prefix="$acl_save_exec_prefix" 5968 prefix="$acl_save_prefix" 5969 5970 5971 # Check whether --with-libiconv-prefix was given. 5972 if test "${with_libiconv_prefix+set}" = set; then : 5973 withval=$with_libiconv_prefix; 5974 if test "X$withval" = "Xno"; then 5975 use_additional=no 5976 else 5977 if test "X$withval" = "X"; then 5978 5979 acl_save_prefix="$prefix" 5980 prefix="$acl_final_prefix" 5981 acl_save_exec_prefix="$exec_prefix" 5982 exec_prefix="$acl_final_exec_prefix" 5983 5984 eval additional_includedir=\"$includedir\" 5985 eval additional_libdir=\"$libdir\" 5986 5987 exec_prefix="$acl_save_exec_prefix" 5988 prefix="$acl_save_prefix" 5989 5990 else 5991 additional_includedir="$withval/include" 5992 additional_libdir="$withval/lib" 5993 fi 5994 fi 5995 5996 fi 5997 5998 5999 # Check whether --with-libiconv-type was given. 6000 if test "${with_libiconv_type+set}" = set; then : 6001 withval=$with_libiconv_type; with_libiconv_type=$withval 6002 else 6003 with_libiconv_type=auto 6004 fi 6005 6006 lib_type=`eval echo \$with_libiconv_type` 6007 6008 LIBICONV= 6009 LTLIBICONV= 6010 INCICONV= 6011 rpathdirs= 6012 ltrpathdirs= 6013 names_already_handled= 6014 names_next_round='iconv ' 6015 while test -n "$names_next_round"; do 6016 names_this_round="$names_next_round" 6017 names_next_round= 6018 for name in $names_this_round; do 6019 already_handled= 6020 for n in $names_already_handled; do 6021 if test "$n" = "$name"; then 6022 already_handled=yes 6023 break 6024 fi 6025 done 6026 if test -z "$already_handled"; then 6027 names_already_handled="$names_already_handled $name" 6028 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6029 eval value=\"\$HAVE_LIB$uppername\" 6030 if test -n "$value"; then 6031 if test "$value" = yes; then 6032 eval value=\"\$LIB$uppername\" 6033 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 6034 eval value=\"\$LTLIB$uppername\" 6035 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 6036 else 6037 : 6038 fi 6039 else 6040 found_dir= 6041 found_la= 6042 found_so= 6043 found_a= 6044 if test $use_additional = yes; then 6045 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6046 found_dir="$additional_libdir" 6047 found_so="$additional_libdir/lib$name.$shlibext" 6048 if test -f "$additional_libdir/lib$name.la"; then 6049 found_la="$additional_libdir/lib$name.la" 6050 fi 6051 elif test x$lib_type != xshared; then 6052 if test -f "$additional_libdir/lib$name.$libext"; then 6053 found_dir="$additional_libdir" 6054 found_a="$additional_libdir/lib$name.$libext" 6055 if test -f "$additional_libdir/lib$name.la"; then 6056 found_la="$additional_libdir/lib$name.la" 6057 fi 6058 fi 6059 fi 6060 fi 6061 if test "X$found_dir" = "X"; then 6062 for x in $LDFLAGS $LTLIBICONV; do 6063 6064 acl_save_prefix="$prefix" 6065 prefix="$acl_final_prefix" 6066 acl_save_exec_prefix="$exec_prefix" 6067 exec_prefix="$acl_final_exec_prefix" 6068 eval x=\"$x\" 6069 exec_prefix="$acl_save_exec_prefix" 6070 prefix="$acl_save_prefix" 6071 6072 case "$x" in 6073 -L*) 6074 dir=`echo "X$x" | sed -e 's/^X-L//'` 6075 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6076 found_dir="$dir" 6077 found_so="$dir/lib$name.$shlibext" 6078 if test -f "$dir/lib$name.la"; then 6079 found_la="$dir/lib$name.la" 6080 fi 6081 elif test x$lib_type != xshared; then 6082 if test -f "$dir/lib$name.$libext"; then 6083 found_dir="$dir" 6084 found_a="$dir/lib$name.$libext" 6085 if test -f "$dir/lib$name.la"; then 6086 found_la="$dir/lib$name.la" 6087 fi 6088 fi 6089 fi 6090 ;; 6091 esac 6092 if test "X$found_dir" != "X"; then 6093 break 6094 fi 6095 done 6096 fi 6097 if test "X$found_dir" != "X"; then 6098 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 6099 if test "X$found_so" != "X"; then 6100 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6102 else 6103 haveit= 6104 for x in $ltrpathdirs; do 6105 if test "X$x" = "X$found_dir"; then 6106 haveit=yes 6107 break 6108 fi 6109 done 6110 if test -z "$haveit"; then 6111 ltrpathdirs="$ltrpathdirs $found_dir" 6112 fi 6113 if test "$hardcode_direct" = yes; then 6114 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6115 else 6116 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6118 haveit= 6119 for x in $rpathdirs; do 6120 if test "X$x" = "X$found_dir"; then 6121 haveit=yes 6122 break 6123 fi 6124 done 6125 if test -z "$haveit"; then 6126 rpathdirs="$rpathdirs $found_dir" 6127 fi 6128 else 6129 haveit= 6130 for x in $LDFLAGS $LIBICONV; do 6131 6132 acl_save_prefix="$prefix" 6133 prefix="$acl_final_prefix" 6134 acl_save_exec_prefix="$exec_prefix" 6135 exec_prefix="$acl_final_exec_prefix" 6136 eval x=\"$x\" 6137 exec_prefix="$acl_save_exec_prefix" 6138 prefix="$acl_save_prefix" 6139 6140 if test "X$x" = "X-L$found_dir"; then 6141 haveit=yes 6142 break 6143 fi 6144 done 6145 if test -z "$haveit"; then 6146 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6147 fi 6148 if test "$hardcode_minus_L" != no; then 6149 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6150 else 6151 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6152 fi 6153 fi 6154 fi 6155 fi 6156 else 6157 if test "X$found_a" != "X"; then 6158 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6159 else 6160 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6161 fi 6162 fi 6163 additional_includedir= 6164 case "$found_dir" in 6165 */lib | */lib/) 6166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6167 additional_includedir="$basedir/include" 6168 ;; 6169 esac 6170 if test "X$additional_includedir" != "X"; then 6171 if test "X$additional_includedir" != "X/usr/include"; then 6172 haveit= 6173 if test "X$additional_includedir" = "X/usr/local/include"; then 6174 if test -n "$GCC"; then 6175 case $host_os in 6176 linux*) haveit=yes;; 6177 esac 6178 fi 6179 fi 6180 if test -z "$haveit"; then 6181 for x in $CPPFLAGS $INCICONV; do 6182 6183 acl_save_prefix="$prefix" 6184 prefix="$acl_final_prefix" 6185 acl_save_exec_prefix="$exec_prefix" 6186 exec_prefix="$acl_final_exec_prefix" 6187 eval x=\"$x\" 6188 exec_prefix="$acl_save_exec_prefix" 6189 prefix="$acl_save_prefix" 6190 6191 if test "X$x" = "X-I$additional_includedir"; then 6192 haveit=yes 6193 break 6194 fi 6195 done 6196 if test -z "$haveit"; then 6197 if test -d "$additional_includedir"; then 6198 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6199 fi 6200 fi 6201 fi 6202 fi 6203 fi 6204 if test -n "$found_la"; then 6205 save_libdir="$libdir" 6206 case "$found_la" in 6207 */* | *\\*) . "$found_la" ;; 6208 *) . "./$found_la" ;; 6209 esac 6210 libdir="$save_libdir" 6211 for dep in $dependency_libs; do 6212 case "$dep" in 6213 -L*) 6214 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6215 if test "X$additional_libdir" != "X/usr/lib"; then 6216 haveit= 6217 if test "X$additional_libdir" = "X/usr/local/lib"; then 6218 if test -n "$GCC"; then 6219 case $host_os in 6220 linux*) haveit=yes;; 6221 esac 6222 fi 6223 fi 6224 if test -z "$haveit"; then 6225 haveit= 6226 for x in $LDFLAGS $LIBICONV; do 6227 6228 acl_save_prefix="$prefix" 6229 prefix="$acl_final_prefix" 6230 acl_save_exec_prefix="$exec_prefix" 6231 exec_prefix="$acl_final_exec_prefix" 6232 eval x=\"$x\" 6233 exec_prefix="$acl_save_exec_prefix" 6234 prefix="$acl_save_prefix" 6235 6236 if test "X$x" = "X-L$additional_libdir"; then 6237 haveit=yes 6238 break 6239 fi 6240 done 6241 if test -z "$haveit"; then 6242 if test -d "$additional_libdir"; then 6243 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6244 fi 6245 fi 6246 haveit= 6247 for x in $LDFLAGS $LTLIBICONV; do 6248 6249 acl_save_prefix="$prefix" 6250 prefix="$acl_final_prefix" 6251 acl_save_exec_prefix="$exec_prefix" 6252 exec_prefix="$acl_final_exec_prefix" 6253 eval x=\"$x\" 6254 exec_prefix="$acl_save_exec_prefix" 6255 prefix="$acl_save_prefix" 6256 6257 if test "X$x" = "X-L$additional_libdir"; then 6258 haveit=yes 6259 break 6260 fi 6261 done 6262 if test -z "$haveit"; then 6263 if test -d "$additional_libdir"; then 6264 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 6265 fi 6266 fi 6267 fi 6268 fi 6269 ;; 6270 -R*) 6271 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6272 if test "$enable_rpath" != no; then 6273 haveit= 6274 for x in $rpathdirs; do 6275 if test "X$x" = "X$dir"; then 6276 haveit=yes 6277 break 6278 fi 6279 done 6280 if test -z "$haveit"; then 6281 rpathdirs="$rpathdirs $dir" 6282 fi 6283 haveit= 6284 for x in $ltrpathdirs; do 6285 if test "X$x" = "X$dir"; then 6286 haveit=yes 6287 break 6288 fi 6289 done 6290 if test -z "$haveit"; then 6291 ltrpathdirs="$ltrpathdirs $dir" 6292 fi 6293 fi 6294 ;; 6295 -l*) 6296 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6297 ;; 6298 *.la) 6299 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6300 ;; 6301 *) 6302 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 6303 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 6304 ;; 6305 esac 6306 done 6307 fi 6308 else 6309 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 6310 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6311 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 6312 else 6313 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext" 6314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext" 6315 fi 6316 fi 6317 fi 6318 fi 6319 done 6320 done 6321 if test "X$rpathdirs" != "X"; then 6322 if test -n "$hardcode_libdir_separator"; then 6323 alldirs= 6324 for found_dir in $rpathdirs; do 6325 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 6326 done 6327 acl_save_libdir="$libdir" 6328 libdir="$alldirs" 6329 eval flag=\"$hardcode_libdir_flag_spec\" 6330 libdir="$acl_save_libdir" 6331 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6332 else 6333 for found_dir in $rpathdirs; do 6334 acl_save_libdir="$libdir" 6335 libdir="$found_dir" 6336 eval flag=\"$hardcode_libdir_flag_spec\" 6337 libdir="$acl_save_libdir" 6338 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6339 done 6340 fi 6341 fi 6342 if test "X$ltrpathdirs" != "X"; then 6343 for found_dir in $ltrpathdirs; do 6344 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 6345 done 6346 fi 6347 6348 6349 6350 6351 6352 if test -f ../gettext/uninstalled-config.sh; then 6353 relative_builddir='$(top_builddir)/../gettext' 6354 . ../gettext/uninstalled-config.sh 6355 else 6356 # The sister gettext directory doesn't exist and won't collect information on 6357 # using gettext for us. Call a bundled AM_GNU_GETTEXT. 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 6382 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 6383 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 6384 $as_echo_n "(cached) " >&6 6385 else 6386 gt_save_LIBS="$LIBS" 6387 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6389 /* end confdefs.h. */ 6390 #include <CoreFoundation/CFPreferences.h> 6391 int 6392 main () 6393 { 6394 CFPreferencesCopyAppValue(NULL, NULL) 6395 ; 6396 return 0; 6397 } 6398 _ACEOF 6399 if ac_fn_c_try_link "$LINENO"; then : 6400 gt_cv_func_CFPreferencesCopyAppValue=yes 6401 else 6402 gt_cv_func_CFPreferencesCopyAppValue=no 6403 fi 6404 rm -f core conftest.err conftest.$ac_objext \ 6405 conftest$ac_exeext conftest.$ac_ext 6406 LIBS="$gt_save_LIBS" 6407 fi 6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 6409 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 6410 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 6411 6412 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 6413 6414 fi 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 6416 $as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; } 6417 if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then : 6418 $as_echo_n "(cached) " >&6 6419 else 6420 gt_save_LIBS="$LIBS" 6421 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6423 /* end confdefs.h. */ 6424 #include <CoreFoundation/CFLocale.h> 6425 int 6426 main () 6427 { 6428 CFLocaleCopyPreferredLanguages(); 6429 ; 6430 return 0; 6431 } 6432 _ACEOF 6433 if ac_fn_c_try_link "$LINENO"; then : 6434 gt_cv_func_CFLocaleCopyPreferredLanguages=yes 6435 else 6436 gt_cv_func_CFLocaleCopyPreferredLanguages=no 6437 fi 6438 rm -f core conftest.err conftest.$ac_objext \ 6439 conftest$ac_exeext conftest.$ac_ext 6440 LIBS="$gt_save_LIBS" 6441 fi 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 6443 $as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } 6444 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 6445 6446 $as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h 6447 6448 fi 6449 INTL_MACOSX_LIBS= 6450 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ 6451 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then 6452 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreServices" 6453 fi 6454 6455 6456 6457 6458 6459 6460 LIBINTL= 6461 LTLIBINTL= 6462 POSUB= 6463 6464 case " $gt_needs " in 6465 *" need-formatstring-macros "*) gt_api_version=3 ;; 6466 *" need-ngettext "*) gt_api_version=2 ;; 6467 *) gt_api_version=1 ;; 6468 esac 6469 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 6470 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 6471 6472 if test "$USE_NLS" = "yes"; then 6473 gt_use_preinstalled_gnugettext=no 6474 6475 6476 if test $gt_api_version -ge 3; then 6477 gt_revision_test_code=' 6478 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6479 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 6480 #endif 6481 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 6482 ' 6483 else 6484 gt_revision_test_code= 6485 fi 6486 if test $gt_api_version -ge 2; then 6487 gt_expression_test_code=' + * ngettext ("", "", 0)' 6488 else 6489 gt_expression_test_code= 6490 fi 6491 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 6493 $as_echo_n "checking for GNU gettext in libc... " >&6; } 6494 if eval \${$gt_func_gnugettext_libc+:} false; then : 6495 $as_echo_n "(cached) " >&6 6496 else 6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6498 /* end confdefs.h. */ 6499 6500 #include <libintl.h> 6501 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 6502 extern int _nl_msg_cat_cntr; 6503 extern int *_nl_domain_bindings; 6504 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) 6505 #else 6506 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 6507 #endif 6508 $gt_revision_test_code 6509 6510 int 6511 main () 6512 { 6513 6514 bindtextdomain ("", ""); 6515 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 6516 6517 ; 6518 return 0; 6519 } 6520 _ACEOF 6521 if ac_fn_c_try_link "$LINENO"; then : 6522 eval "$gt_func_gnugettext_libc=yes" 6523 else 6524 eval "$gt_func_gnugettext_libc=no" 6525 fi 6526 rm -f core conftest.err conftest.$ac_objext \ 6527 conftest$ac_exeext conftest.$ac_ext 6528 fi 6529 eval ac_res=\$$gt_func_gnugettext_libc 6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 6531 $as_echo "$ac_res" >&6; } 6532 6533 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 6534 6535 6536 6537 6538 6539 am_save_CPPFLAGS="$CPPFLAGS" 6540 6541 for element in $INCICONV; do 6542 haveit= 6543 for x in $CPPFLAGS; do 6544 6545 acl_save_prefix="$prefix" 6546 prefix="$acl_final_prefix" 6547 acl_save_exec_prefix="$exec_prefix" 6548 exec_prefix="$acl_final_exec_prefix" 6549 eval x=\"$x\" 6550 exec_prefix="$acl_save_exec_prefix" 6551 prefix="$acl_save_prefix" 6552 6553 if test "X$x" = "X$element"; then 6554 haveit=yes 6555 break 6556 fi 6557 done 6558 if test -z "$haveit"; then 6559 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6560 fi 6561 done 6562 6563 6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 6565 $as_echo_n "checking for iconv... " >&6; } 6566 if ${am_cv_func_iconv+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568 else 6569 6570 am_cv_func_iconv="no, consider installing GNU libiconv" 6571 am_cv_lib_iconv=no 6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6573 /* end confdefs.h. */ 6574 6575 #include <stdlib.h> 6576 #include <iconv.h> 6577 6578 int 6579 main () 6580 { 6581 iconv_t cd = iconv_open("",""); 6582 iconv(cd,NULL,NULL,NULL,NULL); 6583 iconv_close(cd); 6584 ; 6585 return 0; 6586 } 6587 _ACEOF 6588 if ac_fn_c_try_link "$LINENO"; then : 6589 am_cv_func_iconv=yes 6590 fi 6591 rm -f core conftest.err conftest.$ac_objext \ 6592 conftest$ac_exeext conftest.$ac_ext 6593 if test "$am_cv_func_iconv" != yes; then 6594 am_save_LIBS="$LIBS" 6595 LIBS="$LIBS $LIBICONV" 6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6597 /* end confdefs.h. */ 6598 6599 #include <stdlib.h> 6600 #include <iconv.h> 6601 6602 int 6603 main () 6604 { 6605 iconv_t cd = iconv_open("",""); 6606 iconv(cd,NULL,NULL,NULL,NULL); 6607 iconv_close(cd); 6608 ; 6609 return 0; 6610 } 6611 _ACEOF 6612 if ac_fn_c_try_link "$LINENO"; then : 6613 am_cv_lib_iconv=yes 6614 am_cv_func_iconv=yes 6615 fi 6616 rm -f core conftest.err conftest.$ac_objext \ 6617 conftest$ac_exeext conftest.$ac_ext 6618 LIBS="$am_save_LIBS" 6619 fi 6620 6621 fi 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 6623 $as_echo "$am_cv_func_iconv" >&6; } 6624 if test "$am_cv_func_iconv" = yes; then 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 6626 $as_echo_n "checking for working iconv... " >&6; } 6627 if ${am_cv_func_iconv_works+:} false; then : 6628 $as_echo_n "(cached) " >&6 6629 else 6630 6631 am_save_LIBS="$LIBS" 6632 if test $am_cv_lib_iconv = yes; then 6633 LIBS="$LIBS $LIBICONV" 6634 fi 6635 am_cv_func_iconv_works=no 6636 for ac_iconv_const in '' 'const'; do 6637 if test "$cross_compiling" = yes; then : 6638 case "$host_os" in 6639 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 6640 *) am_cv_func_iconv_works="guessing yes" ;; 6641 esac 6642 else 6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644 /* end confdefs.h. */ 6645 6646 #include <iconv.h> 6647 #include <string.h> 6648 6649 #ifndef ICONV_CONST 6650 # define ICONV_CONST $ac_iconv_const 6651 #endif 6652 6653 int 6654 main () 6655 { 6656 int result = 0; 6657 /* Test against AIX 5.1...7.2 bug: Failures are not distinguishable from 6658 successful returns. This is even documented in 6659 <https://www.ibm.com/support/knowledgecenter/ssw_aix_72/i_bostechref/iconv.html> */ 6660 { 6661 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 6662 if (cd_utf8_to_88591 != (iconv_t)(-1)) 6663 { 6664 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ 6665 char buf[10]; 6666 ICONV_CONST char *inptr = input; 6667 size_t inbytesleft = strlen (input); 6668 char *outptr = buf; 6669 size_t outbytesleft = sizeof (buf); 6670 size_t res = iconv (cd_utf8_to_88591, 6671 &inptr, &inbytesleft, 6672 &outptr, &outbytesleft); 6673 if (res == 0) 6674 result |= 1; 6675 iconv_close (cd_utf8_to_88591); 6676 } 6677 } 6678 /* Test against Solaris 10 bug: Failures are not distinguishable from 6679 successful returns. */ 6680 { 6681 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 6682 if (cd_ascii_to_88591 != (iconv_t)(-1)) 6683 { 6684 static ICONV_CONST char input[] = "\263"; 6685 char buf[10]; 6686 ICONV_CONST char *inptr = input; 6687 size_t inbytesleft = strlen (input); 6688 char *outptr = buf; 6689 size_t outbytesleft = sizeof (buf); 6690 size_t res = iconv (cd_ascii_to_88591, 6691 &inptr, &inbytesleft, 6692 &outptr, &outbytesleft); 6693 if (res == 0) 6694 result |= 2; 6695 iconv_close (cd_ascii_to_88591); 6696 } 6697 } 6698 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 6699 { 6700 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 6701 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6702 { 6703 static ICONV_CONST char input[] = "\304"; 6704 static char buf[2] = { (char)0xDE, (char)0xAD }; 6705 ICONV_CONST char *inptr = input; 6706 size_t inbytesleft = 1; 6707 char *outptr = buf; 6708 size_t outbytesleft = 1; 6709 size_t res = iconv (cd_88591_to_utf8, 6710 &inptr, &inbytesleft, 6711 &outptr, &outbytesleft); 6712 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 6713 result |= 4; 6714 iconv_close (cd_88591_to_utf8); 6715 } 6716 } 6717 #if 0 /* This bug could be worked around by the caller. */ 6718 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 6719 { 6720 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 6721 if (cd_88591_to_utf8 != (iconv_t)(-1)) 6722 { 6723 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 6724 char buf[50]; 6725 ICONV_CONST char *inptr = input; 6726 size_t inbytesleft = strlen (input); 6727 char *outptr = buf; 6728 size_t outbytesleft = sizeof (buf); 6729 size_t res = iconv (cd_88591_to_utf8, 6730 &inptr, &inbytesleft, 6731 &outptr, &outbytesleft); 6732 if ((int)res > 0) 6733 result |= 8; 6734 iconv_close (cd_88591_to_utf8); 6735 } 6736 } 6737 #endif 6738 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 6739 provided. */ 6740 { 6741 /* Try standardized names. */ 6742 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); 6743 /* Try IRIX, OSF/1 names. */ 6744 iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); 6745 /* Try AIX names. */ 6746 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); 6747 /* Try HP-UX names. */ 6748 iconv_t cd4 = iconv_open ("utf8", "eucJP"); 6749 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) 6750 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) 6751 result |= 16; 6752 if (cd1 != (iconv_t)(-1)) 6753 iconv_close (cd1); 6754 if (cd2 != (iconv_t)(-1)) 6755 iconv_close (cd2); 6756 if (cd3 != (iconv_t)(-1)) 6757 iconv_close (cd3); 6758 if (cd4 != (iconv_t)(-1)) 6759 iconv_close (cd4); 6760 } 6761 return result; 6762 6763 ; 6764 return 0; 6765 } 6766 _ACEOF 6767 if ac_fn_c_try_run "$LINENO"; then : 6768 am_cv_func_iconv_works=yes 6769 fi 6770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6771 conftest.$ac_objext conftest.beam conftest.$ac_ext 6772 fi 6773 6774 test "$am_cv_func_iconv_works" = no || break 6775 done 6776 LIBS="$am_save_LIBS" 6777 6778 fi 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 6780 $as_echo "$am_cv_func_iconv_works" >&6; } 6781 case "$am_cv_func_iconv_works" in 6782 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 6783 *) am_func_iconv=yes ;; 6784 esac 6785 else 6786 am_func_iconv=no am_cv_lib_iconv=no 6787 fi 6788 if test "$am_func_iconv" = yes; then 6789 6790 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 6791 6792 fi 6793 if test "$am_cv_lib_iconv" = yes; then 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 6795 $as_echo_n "checking how to link with libiconv... " >&6; } 6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6797 $as_echo "$LIBICONV" >&6; } 6798 else 6799 CPPFLAGS="$am_save_CPPFLAGS" 6800 LIBICONV= 6801 LTLIBICONV= 6802 fi 6803 6804 6805 6806 6807 6808 6809 use_additional=yes 6810 6811 acl_save_prefix="$prefix" 6812 prefix="$acl_final_prefix" 6813 acl_save_exec_prefix="$exec_prefix" 6814 exec_prefix="$acl_final_exec_prefix" 6815 6816 eval additional_includedir=\"$includedir\" 6817 eval additional_libdir=\"$libdir\" 6818 6819 exec_prefix="$acl_save_exec_prefix" 6820 prefix="$acl_save_prefix" 6821 6822 6823 # Check whether --with-libintl-prefix was given. 6824 if test "${with_libintl_prefix+set}" = set; then : 6825 withval=$with_libintl_prefix; 6826 if test "X$withval" = "Xno"; then 6827 use_additional=no 6828 else 6829 if test "X$withval" = "X"; then 6830 6831 acl_save_prefix="$prefix" 6832 prefix="$acl_final_prefix" 6833 acl_save_exec_prefix="$exec_prefix" 6834 exec_prefix="$acl_final_exec_prefix" 6835 6836 eval additional_includedir=\"$includedir\" 6837 eval additional_libdir=\"$libdir\" 6838 6839 exec_prefix="$acl_save_exec_prefix" 6840 prefix="$acl_save_prefix" 6841 6842 else 6843 additional_includedir="$withval/include" 6844 additional_libdir="$withval/lib" 6845 fi 6846 fi 6847 6848 fi 6849 6850 6851 # Check whether --with-libintl-type was given. 6852 if test "${with_libintl_type+set}" = set; then : 6853 withval=$with_libintl_type; with_libintl_type=$withval 6854 else 6855 with_libintl_type=auto 6856 fi 6857 6858 lib_type=`eval echo \$with_libintl_type` 6859 6860 LIBINTL= 6861 LTLIBINTL= 6862 INCINTL= 6863 rpathdirs= 6864 ltrpathdirs= 6865 names_already_handled= 6866 names_next_round='intl ' 6867 while test -n "$names_next_round"; do 6868 names_this_round="$names_next_round" 6869 names_next_round= 6870 for name in $names_this_round; do 6871 already_handled= 6872 for n in $names_already_handled; do 6873 if test "$n" = "$name"; then 6874 already_handled=yes 6875 break 6876 fi 6877 done 6878 if test -z "$already_handled"; then 6879 names_already_handled="$names_already_handled $name" 6880 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6881 eval value=\"\$HAVE_LIB$uppername\" 6882 if test -n "$value"; then 6883 if test "$value" = yes; then 6884 eval value=\"\$LIB$uppername\" 6885 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 6886 eval value=\"\$LTLIB$uppername\" 6887 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 6888 else 6889 : 6890 fi 6891 else 6892 found_dir= 6893 found_la= 6894 found_so= 6895 found_a= 6896 if test $use_additional = yes; then 6897 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6898 found_dir="$additional_libdir" 6899 found_so="$additional_libdir/lib$name.$shlibext" 6900 if test -f "$additional_libdir/lib$name.la"; then 6901 found_la="$additional_libdir/lib$name.la" 6902 fi 6903 elif test x$lib_type != xshared; then 6904 if test -f "$additional_libdir/lib$name.$libext"; then 6905 found_dir="$additional_libdir" 6906 found_a="$additional_libdir/lib$name.$libext" 6907 if test -f "$additional_libdir/lib$name.la"; then 6908 found_la="$additional_libdir/lib$name.la" 6909 fi 6910 fi 6911 fi 6912 fi 6913 if test "X$found_dir" = "X"; then 6914 for x in $LDFLAGS $LTLIBINTL; do 6915 6916 acl_save_prefix="$prefix" 6917 prefix="$acl_final_prefix" 6918 acl_save_exec_prefix="$exec_prefix" 6919 exec_prefix="$acl_final_exec_prefix" 6920 eval x=\"$x\" 6921 exec_prefix="$acl_save_exec_prefix" 6922 prefix="$acl_save_prefix" 6923 6924 case "$x" in 6925 -L*) 6926 dir=`echo "X$x" | sed -e 's/^X-L//'` 6927 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then 6928 found_dir="$dir" 6929 found_so="$dir/lib$name.$shlibext" 6930 if test -f "$dir/lib$name.la"; then 6931 found_la="$dir/lib$name.la" 6932 fi 6933 elif test x$lib_type != xshared; then 6934 if test -f "$dir/lib$name.$libext"; then 6935 found_dir="$dir" 6936 found_a="$dir/lib$name.$libext" 6937 if test -f "$dir/lib$name.la"; then 6938 found_la="$dir/lib$name.la" 6939 fi 6940 fi 6941 fi 6942 ;; 6943 esac 6944 if test "X$found_dir" != "X"; then 6945 break 6946 fi 6947 done 6948 fi 6949 if test "X$found_dir" != "X"; then 6950 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 6951 if test "X$found_so" != "X"; then 6952 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6953 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6954 else 6955 haveit= 6956 for x in $ltrpathdirs; do 6957 if test "X$x" = "X$found_dir"; then 6958 haveit=yes 6959 break 6960 fi 6961 done 6962 if test -z "$haveit"; then 6963 ltrpathdirs="$ltrpathdirs $found_dir" 6964 fi 6965 if test "$hardcode_direct" = yes; then 6966 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6967 else 6968 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6969 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6970 haveit= 6971 for x in $rpathdirs; do 6972 if test "X$x" = "X$found_dir"; then 6973 haveit=yes 6974 break 6975 fi 6976 done 6977 if test -z "$haveit"; then 6978 rpathdirs="$rpathdirs $found_dir" 6979 fi 6980 else 6981 haveit= 6982 for x in $LDFLAGS $LIBINTL; do 6983 6984 acl_save_prefix="$prefix" 6985 prefix="$acl_final_prefix" 6986 acl_save_exec_prefix="$exec_prefix" 6987 exec_prefix="$acl_final_exec_prefix" 6988 eval x=\"$x\" 6989 exec_prefix="$acl_save_exec_prefix" 6990 prefix="$acl_save_prefix" 6991 6992 if test "X$x" = "X-L$found_dir"; then 6993 haveit=yes 6994 break 6995 fi 6996 done 6997 if test -z "$haveit"; then 6998 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 6999 fi 7000 if test "$hardcode_minus_L" != no; then 7001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 7002 else 7003 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7004 fi 7005 fi 7006 fi 7007 fi 7008 else 7009 if test "X$found_a" != "X"; then 7010 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 7011 else 7012 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 7013 fi 7014 fi 7015 additional_includedir= 7016 case "$found_dir" in 7017 */lib | */lib/) 7018 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7019 additional_includedir="$basedir/include" 7020 ;; 7021 esac 7022 if test "X$additional_includedir" != "X"; then 7023 if test "X$additional_includedir" != "X/usr/include"; then 7024 haveit= 7025 if test "X$additional_includedir" = "X/usr/local/include"; then 7026 if test -n "$GCC"; then 7027 case $host_os in 7028 linux*) haveit=yes;; 7029 esac 7030 fi 7031 fi 7032 if test -z "$haveit"; then 7033 for x in $CPPFLAGS $INCINTL; do 7034 7035 acl_save_prefix="$prefix" 7036 prefix="$acl_final_prefix" 7037 acl_save_exec_prefix="$exec_prefix" 7038 exec_prefix="$acl_final_exec_prefix" 7039 eval x=\"$x\" 7040 exec_prefix="$acl_save_exec_prefix" 7041 prefix="$acl_save_prefix" 7042 7043 if test "X$x" = "X-I$additional_includedir"; then 7044 haveit=yes 7045 break 7046 fi 7047 done 7048 if test -z "$haveit"; then 7049 if test -d "$additional_includedir"; then 7050 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 7051 fi 7052 fi 7053 fi 7054 fi 7055 fi 7056 if test -n "$found_la"; then 7057 save_libdir="$libdir" 7058 case "$found_la" in 7059 */* | *\\*) . "$found_la" ;; 7060 *) . "./$found_la" ;; 7061 esac 7062 libdir="$save_libdir" 7063 for dep in $dependency_libs; do 7064 case "$dep" in 7065 -L*) 7066 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 7067 if test "X$additional_libdir" != "X/usr/lib"; then 7068 haveit= 7069 if test "X$additional_libdir" = "X/usr/local/lib"; then 7070 if test -n "$GCC"; then 7071 case $host_os in 7072 linux*) haveit=yes;; 7073 esac 7074 fi 7075 fi 7076 if test -z "$haveit"; then 7077 haveit= 7078 for x in $LDFLAGS $LIBINTL; do 7079 7080 acl_save_prefix="$prefix" 7081 prefix="$acl_final_prefix" 7082 acl_save_exec_prefix="$exec_prefix" 7083 exec_prefix="$acl_final_exec_prefix" 7084 eval x=\"$x\" 7085 exec_prefix="$acl_save_exec_prefix" 7086 prefix="$acl_save_prefix" 7087 7088 if test "X$x" = "X-L$additional_libdir"; then 7089 haveit=yes 7090 break 7091 fi 7092 done 7093 if test -z "$haveit"; then 7094 if test -d "$additional_libdir"; then 7095 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 7096 fi 7097 fi 7098 haveit= 7099 for x in $LDFLAGS $LTLIBINTL; do 7100 7101 acl_save_prefix="$prefix" 7102 prefix="$acl_final_prefix" 7103 acl_save_exec_prefix="$exec_prefix" 7104 exec_prefix="$acl_final_exec_prefix" 7105 eval x=\"$x\" 7106 exec_prefix="$acl_save_exec_prefix" 7107 prefix="$acl_save_prefix" 7108 7109 if test "X$x" = "X-L$additional_libdir"; then 7110 haveit=yes 7111 break 7112 fi 7113 done 7114 if test -z "$haveit"; then 7115 if test -d "$additional_libdir"; then 7116 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 7117 fi 7118 fi 7119 fi 7120 fi 7121 ;; 7122 -R*) 7123 dir=`echo "X$dep" | sed -e 's/^X-R//'` 7124 if test "$enable_rpath" != no; then 7125 haveit= 7126 for x in $rpathdirs; do 7127 if test "X$x" = "X$dir"; then 7128 haveit=yes 7129 break 7130 fi 7131 done 7132 if test -z "$haveit"; then 7133 rpathdirs="$rpathdirs $dir" 7134 fi 7135 haveit= 7136 for x in $ltrpathdirs; do 7137 if test "X$x" = "X$dir"; then 7138 haveit=yes 7139 break 7140 fi 7141 done 7142 if test -z "$haveit"; then 7143 ltrpathdirs="$ltrpathdirs $dir" 7144 fi 7145 fi 7146 ;; 7147 -l*) 7148 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 7149 ;; 7150 *.la) 7151 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 7152 ;; 7153 *) 7154 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 7155 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 7156 ;; 7157 esac 7158 done 7159 fi 7160 else 7161 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then 7162 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 7163 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 7164 else 7165 LIBINTL="${LIBINTL}${LIBINTL:+ }-l:lib$name.$libext" 7166 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l:lib$name.$libext" 7167 fi 7168 fi 7169 fi 7170 fi 7171 done 7172 done 7173 if test "X$rpathdirs" != "X"; then 7174 if test -n "$hardcode_libdir_separator"; then 7175 alldirs= 7176 for found_dir in $rpathdirs; do 7177 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 7178 done 7179 acl_save_libdir="$libdir" 7180 libdir="$alldirs" 7181 eval flag=\"$hardcode_libdir_flag_spec\" 7182 libdir="$acl_save_libdir" 7183 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7184 else 7185 for found_dir in $rpathdirs; do 7186 acl_save_libdir="$libdir" 7187 libdir="$found_dir" 7188 eval flag=\"$hardcode_libdir_flag_spec\" 7189 libdir="$acl_save_libdir" 7190 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 7191 done 7192 fi 7193 fi 7194 if test "X$ltrpathdirs" != "X"; then 7195 for found_dir in $ltrpathdirs; do 7196 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 7197 done 7198 fi 7199 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 7201 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 7202 if eval \${$gt_func_gnugettext_libintl+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204 else 7205 gt_save_CPPFLAGS="$CPPFLAGS" 7206 CPPFLAGS="$CPPFLAGS $INCINTL" 7207 gt_save_LIBS="$LIBS" 7208 LIBS="$LIBS $LIBINTL" 7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210 /* end confdefs.h. */ 7211 7212 #include <libintl.h> 7213 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 7214 extern int _nl_msg_cat_cntr; 7215 extern 7216 #ifdef __cplusplus 7217 "C" 7218 #endif 7219 const char *_nl_expand_alias (const char *); 7220 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 7221 #else 7222 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 7223 #endif 7224 $gt_revision_test_code 7225 7226 int 7227 main () 7228 { 7229 7230 bindtextdomain ("", ""); 7231 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 7232 7233 ; 7234 return 0; 7235 } 7236 _ACEOF 7237 if ac_fn_c_try_link "$LINENO"; then : 7238 eval "$gt_func_gnugettext_libintl=yes" 7239 else 7240 eval "$gt_func_gnugettext_libintl=no" 7241 fi 7242 rm -f core conftest.err conftest.$ac_objext \ 7243 conftest$ac_exeext conftest.$ac_ext 7244 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 7245 LIBS="$LIBS $LIBICONV" 7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247 /* end confdefs.h. */ 7248 7249 #include <libintl.h> 7250 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 7251 extern int _nl_msg_cat_cntr; 7252 extern 7253 #ifdef __cplusplus 7254 "C" 7255 #endif 7256 const char *_nl_expand_alias (const char *); 7257 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) 7258 #else 7259 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 7260 #endif 7261 $gt_revision_test_code 7262 7263 int 7264 main () 7265 { 7266 7267 bindtextdomain ("", ""); 7268 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION 7269 7270 ; 7271 return 0; 7272 } 7273 _ACEOF 7274 if ac_fn_c_try_link "$LINENO"; then : 7275 LIBINTL="$LIBINTL $LIBICONV" 7276 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 7277 eval "$gt_func_gnugettext_libintl=yes" 7278 7279 fi 7280 rm -f core conftest.err conftest.$ac_objext \ 7281 conftest$ac_exeext conftest.$ac_ext 7282 fi 7283 CPPFLAGS="$gt_save_CPPFLAGS" 7284 LIBS="$gt_save_LIBS" 7285 fi 7286 eval ac_res=\$$gt_func_gnugettext_libintl 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7288 $as_echo "$ac_res" >&6; } 7289 fi 7290 7291 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 7292 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 7293 && test "$PACKAGE" != gettext-runtime \ 7294 && test "$PACKAGE" != gettext-tools; }; then 7295 gt_use_preinstalled_gnugettext=yes 7296 else 7297 LIBINTL= 7298 LTLIBINTL= 7299 INCINTL= 7300 fi 7301 7302 7303 7304 if test -n "$INTL_MACOSX_LIBS"; then 7305 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7306 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7307 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 7308 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 7309 fi 7310 fi 7311 7312 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7313 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7314 7315 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 7316 7317 else 7318 USE_NLS=no 7319 fi 7320 fi 7321 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 7323 $as_echo_n "checking whether to use NLS... " >&6; } 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 7325 $as_echo "$USE_NLS" >&6; } 7326 if test "$USE_NLS" = "yes"; then 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 7328 $as_echo_n "checking where the gettext function comes from... " >&6; } 7329 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7330 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7331 gt_source="external libintl" 7332 else 7333 gt_source="libc" 7334 fi 7335 else 7336 gt_source="included intl directory" 7337 fi 7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 7339 $as_echo "$gt_source" >&6; } 7340 fi 7341 7342 if test "$USE_NLS" = "yes"; then 7343 7344 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7345 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 7347 $as_echo_n "checking how to link with libintl... " >&6; } 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 7349 $as_echo "$LIBINTL" >&6; } 7350 7351 for element in $INCINTL; do 7352 haveit= 7353 for x in $CPPFLAGS; do 7354 7355 acl_save_prefix="$prefix" 7356 prefix="$acl_final_prefix" 7357 acl_save_exec_prefix="$exec_prefix" 7358 exec_prefix="$acl_final_exec_prefix" 7359 eval x=\"$x\" 7360 exec_prefix="$acl_save_exec_prefix" 7361 prefix="$acl_save_prefix" 7362 7363 if test "X$x" = "X$element"; then 7364 haveit=yes 7365 break 7366 fi 7367 done 7368 if test -z "$haveit"; then 7369 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7370 fi 7371 done 7372 7373 fi 7374 7375 7376 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 7377 7378 7379 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 7380 7381 fi 7382 7383 POSUB=po 7384 fi 7385 7386 7387 7388 INTLLIBS="$LIBINTL" 7389 7390 7391 7392 7393 7394 7395 fi 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 7408 $as_echo_n "checking whether NLS is requested... " >&6; } 7409 if test x"$USE_NLS" != xyes; then 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7411 $as_echo "no" >&6; } 7412 else 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7414 $as_echo "yes" >&6; } 7415 7416 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 7417 7418 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 7420 $as_echo_n "checking for catalogs to be installed... " >&6; } 7421 # Look for .po and .gmo files in the source directory. 7422 CATALOGS= 7423 XLINGUAS= 7424 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do 7425 # If there aren't any .gmo files the shell will give us the 7426 # literal string "../path/to/srcdir/po/*.gmo" which has to be 7427 # weeded out. 7428 case "$cat" in *\**) 7429 continue;; 7430 esac 7431 # The quadruple backslash is collapsed to a double backslash 7432 # by the backticks, then collapsed again by the double quotes, 7433 # leaving us with one backslash in the sed expression (right 7434 # before the dot that mustn't act as a wildcard). 7435 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` 7436 lang=`echo $cat | sed -e "s!\\\\.gmo!!"` 7437 # The user is allowed to set LINGUAS to a list of languages to 7438 # install catalogs for. If it's empty that means "all of them." 7439 if test "x$LINGUAS" = x; then 7440 CATALOGS="$CATALOGS $cat" 7441 XLINGUAS="$XLINGUAS $lang" 7442 else 7443 case "$LINGUAS" in *$lang*) 7444 CATALOGS="$CATALOGS $cat" 7445 XLINGUAS="$XLINGUAS $lang" 7446 ;; 7447 esac 7448 fi 7449 done 7450 LINGUAS="$XLINGUAS" 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 7452 $as_echo "$LINGUAS" >&6; } 7453 7454 7455 DATADIRNAME=share 7456 7457 INSTOBJEXT=.mo 7458 7459 GENCAT=gencat 7460 7461 CATOBJEXT=.gmo 7462 7463 fi 7464 7465 # Check whether --enable-shared was given. 7466 if test "${enable_shared+set}" = set; then : 7467 enableval=$enable_shared; p=${PACKAGE-default} 7468 case $enableval in 7469 yes) enable_shared=yes ;; 7470 no) enable_shared=no ;; 7471 *) 7472 enable_shared=no 7473 # Look at the argument we got. We use all the common list separators. 7474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7475 for pkg in $enableval; do 7476 IFS="$lt_save_ifs" 7477 if test "X$pkg" = "X$p"; then 7478 enable_shared=yes 7479 fi 7480 done 7481 IFS="$lt_save_ifs" 7482 ;; 7483 esac 7484 else 7485 enable_shared=no 7486 fi 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 case `pwd` in 7498 *\ * | *\ *) 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 7500 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 7501 esac 7502 7503 7504 7505 macro_version='2.2.7a' 7506 macro_revision='1.3134' 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 ltmain="$ac_aux_dir/ltmain.sh" 7521 7522 # Backslashify metacharacters that are still active within 7523 # double-quoted strings. 7524 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 7525 7526 # Same as above, but do not quote variable references. 7527 double_quote_subst='s/\(["`\\]\)/\\\1/g' 7528 7529 # Sed substitution to delay expansion of an escaped shell variable in a 7530 # double_quote_subst'ed string. 7531 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 7532 7533 # Sed substitution to delay expansion of an escaped single quote. 7534 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 7535 7536 # Sed substitution to avoid accidental globbing in evaled expressions 7537 no_glob_subst='s/\*/\\\*/g' 7538 7539 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 7540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 7541 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 7542 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 7544 $as_echo_n "checking how to print strings... " >&6; } 7545 # Test print first, because it will be a builtin if present. 7546 if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 7547 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 7548 ECHO='print -r --' 7549 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 7550 ECHO='printf %s\n' 7551 else 7552 # Use this function as a fallback that always works. 7553 func_fallback_echo () 7554 { 7555 eval 'cat <<_LTECHO_EOF 7556 $1 7557 _LTECHO_EOF' 7558 } 7559 ECHO='func_fallback_echo' 7560 fi 7561 7562 # func_echo_all arg... 7563 # Invoke $ECHO with all args, space-separated. 7564 func_echo_all () 7565 { 7566 $ECHO "" 7567 } 7568 7569 case "$ECHO" in 7570 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 7571 $as_echo "printf" >&6; } ;; 7572 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 7573 $as_echo "print -r" >&6; } ;; 7574 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 7575 $as_echo "cat" >&6; } ;; 7576 esac 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 7592 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 7593 if ${ac_cv_path_SED+:} false; then : 7594 $as_echo_n "(cached) " >&6 7595 else 7596 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 7597 for ac_i in 1 2 3 4 5 6 7; do 7598 ac_script="$ac_script$as_nl$ac_script" 7599 done 7600 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 7601 { ac_script=; unset ac_script;} 7602 if test -z "$SED"; then 7603 ac_path_SED_found=false 7604 # Loop through the user's path and test for each of PROGNAME-LIST 7605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7606 for as_dir in $PATH 7607 do 7608 IFS=$as_save_IFS 7609 test -z "$as_dir" && as_dir=. 7610 for ac_prog in sed gsed; do 7611 for ac_exec_ext in '' $ac_executable_extensions; do 7612 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 7613 as_fn_executable_p "$ac_path_SED" || continue 7614 # Check for GNU ac_path_SED and select it if it is found. 7615 # Check for GNU $ac_path_SED 7616 case `"$ac_path_SED" --version 2>&1` in 7617 *GNU*) 7618 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 7619 *) 7620 ac_count=0 7621 $as_echo_n 0123456789 >"conftest.in" 7622 while : 7623 do 7624 cat "conftest.in" "conftest.in" >"conftest.tmp" 7625 mv "conftest.tmp" "conftest.in" 7626 cp "conftest.in" "conftest.nl" 7627 $as_echo '' >> "conftest.nl" 7628 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 7629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7630 as_fn_arith $ac_count + 1 && ac_count=$as_val 7631 if test $ac_count -gt ${ac_path_SED_max-0}; then 7632 # Best one so far, save it but keep looking for a better one 7633 ac_cv_path_SED="$ac_path_SED" 7634 ac_path_SED_max=$ac_count 7635 fi 7636 # 10*(2^10) chars as input seems more than enough 7637 test $ac_count -gt 10 && break 7638 done 7639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7640 esac 7641 7642 $ac_path_SED_found && break 3 7643 done 7644 done 7645 done 7646 IFS=$as_save_IFS 7647 if test -z "$ac_cv_path_SED"; then 7648 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 7649 fi 7650 else 7651 ac_cv_path_SED=$SED 7652 fi 7653 7654 fi 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 7656 $as_echo "$ac_cv_path_SED" >&6; } 7657 SED="$ac_cv_path_SED" 7658 rm -f conftest.sed 7659 7660 test -z "$SED" && SED=sed 7661 Xsed="$SED -e 1s/^X//" 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 7674 $as_echo_n "checking for fgrep... " >&6; } 7675 if ${ac_cv_path_FGREP+:} false; then : 7676 $as_echo_n "(cached) " >&6 7677 else 7678 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 7679 then ac_cv_path_FGREP="$GREP -F" 7680 else 7681 if test -z "$FGREP"; then 7682 ac_path_FGREP_found=false 7683 # Loop through the user's path and test for each of PROGNAME-LIST 7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7685 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7686 do 7687 IFS=$as_save_IFS 7688 test -z "$as_dir" && as_dir=. 7689 for ac_prog in fgrep; do 7690 for ac_exec_ext in '' $ac_executable_extensions; do 7691 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 7692 as_fn_executable_p "$ac_path_FGREP" || continue 7693 # Check for GNU ac_path_FGREP and select it if it is found. 7694 # Check for GNU $ac_path_FGREP 7695 case `"$ac_path_FGREP" --version 2>&1` in 7696 *GNU*) 7697 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 7698 *) 7699 ac_count=0 7700 $as_echo_n 0123456789 >"conftest.in" 7701 while : 7702 do 7703 cat "conftest.in" "conftest.in" >"conftest.tmp" 7704 mv "conftest.tmp" "conftest.in" 7705 cp "conftest.in" "conftest.nl" 7706 $as_echo 'FGREP' >> "conftest.nl" 7707 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 7708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7709 as_fn_arith $ac_count + 1 && ac_count=$as_val 7710 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 7711 # Best one so far, save it but keep looking for a better one 7712 ac_cv_path_FGREP="$ac_path_FGREP" 7713 ac_path_FGREP_max=$ac_count 7714 fi 7715 # 10*(2^10) chars as input seems more than enough 7716 test $ac_count -gt 10 && break 7717 done 7718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7719 esac 7720 7721 $ac_path_FGREP_found && break 3 7722 done 7723 done 7724 done 7725 IFS=$as_save_IFS 7726 if test -z "$ac_cv_path_FGREP"; then 7727 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7728 fi 7729 else 7730 ac_cv_path_FGREP=$FGREP 7731 fi 7732 7733 fi 7734 fi 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 7736 $as_echo "$ac_cv_path_FGREP" >&6; } 7737 FGREP="$ac_cv_path_FGREP" 7738 7739 7740 test -z "$GREP" && GREP=grep 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 # Check whether --with-gnu-ld was given. 7761 if test "${with_gnu_ld+set}" = set; then : 7762 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7763 else 7764 with_gnu_ld=no 7765 fi 7766 7767 ac_prog=ld 7768 if test "$GCC" = yes; then 7769 # Check if gcc -print-prog-name=ld gives a path. 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7771 $as_echo_n "checking for ld used by $CC... " >&6; } 7772 case $host in 7773 *-*-mingw*) 7774 # gcc leaves a trailing carriage return which upsets mingw 7775 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7776 *) 7777 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7778 esac 7779 case $ac_prog in 7780 # Accept absolute paths. 7781 [\\/]* | ?:[\\/]*) 7782 re_direlt='/[^/][^/]*/\.\./' 7783 # Canonicalize the pathname of ld 7784 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 7785 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 7786 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 7787 done 7788 test -z "$LD" && LD="$ac_prog" 7789 ;; 7790 "") 7791 # If it fails, then pretend we aren't using GCC. 7792 ac_prog=ld 7793 ;; 7794 *) 7795 # If it is relative, then search for the first ld in PATH. 7796 with_gnu_ld=unknown 7797 ;; 7798 esac 7799 elif test "$with_gnu_ld" = yes; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7801 $as_echo_n "checking for GNU ld... " >&6; } 7802 else 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7804 $as_echo_n "checking for non-GNU ld... " >&6; } 7805 fi 7806 if ${lt_cv_path_LD+:} false; then : 7807 $as_echo_n "(cached) " >&6 7808 else 7809 if test -z "$LD"; then 7810 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7811 for ac_dir in $PATH; do 7812 IFS="$lt_save_ifs" 7813 test -z "$ac_dir" && ac_dir=. 7814 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7815 lt_cv_path_LD="$ac_dir/$ac_prog" 7816 # Check to see if the program is GNU ld. I'd rather use --version, 7817 # but apparently some variants of GNU ld only accept -v. 7818 # Break only if it was the GNU/non-GNU ld that we prefer. 7819 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 7820 *GNU* | *'with BFD'*) 7821 test "$with_gnu_ld" != no && break 7822 ;; 7823 *) 7824 test "$with_gnu_ld" != yes && break 7825 ;; 7826 esac 7827 fi 7828 done 7829 IFS="$lt_save_ifs" 7830 else 7831 lt_cv_path_LD="$LD" # Let the user override the test with a path. 7832 fi 7833 fi 7834 7835 LD="$lt_cv_path_LD" 7836 if test -n "$LD"; then 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7838 $as_echo "$LD" >&6; } 7839 else 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7841 $as_echo "no" >&6; } 7842 fi 7843 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7845 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7846 if ${lt_cv_prog_gnu_ld+:} false; then : 7847 $as_echo_n "(cached) " >&6 7848 else 7849 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7850 case `$LD -v 2>&1 </dev/null` in 7851 *GNU* | *'with BFD'*) 7852 lt_cv_prog_gnu_ld=yes 7853 ;; 7854 *) 7855 lt_cv_prog_gnu_ld=no 7856 ;; 7857 esac 7858 fi 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 7860 $as_echo "$lt_cv_prog_gnu_ld" >&6; } 7861 with_gnu_ld=$lt_cv_prog_gnu_ld 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 7872 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 7873 if ${lt_cv_path_NM+:} false; then : 7874 $as_echo_n "(cached) " >&6 7875 else 7876 if test -n "$NM"; then 7877 # Let the user override the nm to test. 7878 lt_nm_to_check="$NM" 7879 else 7880 lt_nm_to_check="${ac_tool_prefix}nm" 7881 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 7882 lt_nm_to_check="$lt_nm_to_check nm" 7883 fi 7884 fi 7885 for lt_tmp_nm in "$lt_nm_to_check"; do 7886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7887 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 7888 IFS="$lt_save_ifs" 7889 test -z "$ac_dir" && ac_dir=. 7890 # Strip out any user-provided options from the nm to test twice, 7891 # the first time to test to see if nm (rather than its options) has 7892 # an explicit path, the second time to yield a file which can be 7893 # nm'ed itself. 7894 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`" 7895 case "$tmp_nm_path" in 7896 */*|*\\*) tmp_nm="$lt_tmp_nm";; 7897 *) tmp_nm="$ac_dir/$lt_tmp_nm";; 7898 esac 7899 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`" 7900 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then 7901 # Check to see if the nm accepts a BSD-compat flag. 7902 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 7903 # nm: unknown option "B" ignored 7904 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 7905 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B" 7906 break 7907 ;; 7908 *) 7909 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in 7910 *$tmp_nm*) 7911 lt_cv_path_NM="$tmp_nm -p" 7912 break 7913 ;; 7914 *) 7915 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 7916 continue # so that we can try to find one that supports BSD flags 7917 ;; 7918 esac 7919 ;; 7920 esac 7921 fi 7922 done 7923 IFS="$lt_save_ifs" 7924 done 7925 : ${lt_cv_path_NM=no} 7926 fi 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 7928 $as_echo "$lt_cv_path_NM" >&6; } 7929 if test "$lt_cv_path_NM" != "no"; then 7930 NM="$lt_cv_path_NM" 7931 else 7932 # Didn't find any BSD compatible name lister, look for dumpbin. 7933 if test -n "$DUMPBIN"; then : 7934 # Let the user override the test. 7935 else 7936 if test -n "$ac_tool_prefix"; then 7937 for ac_prog in dumpbin "link -dump" 7938 do 7939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7942 $as_echo_n "checking for $ac_word... " >&6; } 7943 if ${ac_cv_prog_DUMPBIN+:} false; then : 7944 $as_echo_n "(cached) " >&6 7945 else 7946 if test -n "$DUMPBIN"; then 7947 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 7948 else 7949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7950 for as_dir in $PATH 7951 do 7952 IFS=$as_save_IFS 7953 test -z "$as_dir" && as_dir=. 7954 for ac_exec_ext in '' $ac_executable_extensions; do 7955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7956 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 7957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7958 break 2 7959 fi 7960 done 7961 done 7962 IFS=$as_save_IFS 7963 7964 fi 7965 fi 7966 DUMPBIN=$ac_cv_prog_DUMPBIN 7967 if test -n "$DUMPBIN"; then 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 7969 $as_echo "$DUMPBIN" >&6; } 7970 else 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7972 $as_echo "no" >&6; } 7973 fi 7974 7975 7976 test -n "$DUMPBIN" && break 7977 done 7978 fi 7979 if test -z "$DUMPBIN"; then 7980 ac_ct_DUMPBIN=$DUMPBIN 7981 for ac_prog in dumpbin "link -dump" 7982 do 7983 # Extract the first word of "$ac_prog", so it can be a program name with args. 7984 set dummy $ac_prog; ac_word=$2 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7986 $as_echo_n "checking for $ac_word... " >&6; } 7987 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 7988 $as_echo_n "(cached) " >&6 7989 else 7990 if test -n "$ac_ct_DUMPBIN"; then 7991 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 7992 else 7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7994 for as_dir in $PATH 7995 do 7996 IFS=$as_save_IFS 7997 test -z "$as_dir" && as_dir=. 7998 for ac_exec_ext in '' $ac_executable_extensions; do 7999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8000 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 8001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8002 break 2 8003 fi 8004 done 8005 done 8006 IFS=$as_save_IFS 8007 8008 fi 8009 fi 8010 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 8011 if test -n "$ac_ct_DUMPBIN"; then 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 8013 $as_echo "$ac_ct_DUMPBIN" >&6; } 8014 else 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8016 $as_echo "no" >&6; } 8017 fi 8018 8019 8020 test -n "$ac_ct_DUMPBIN" && break 8021 done 8022 8023 if test "x$ac_ct_DUMPBIN" = x; then 8024 DUMPBIN=":" 8025 else 8026 case $cross_compiling:$ac_tool_warned in 8027 yes:) 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8030 ac_tool_warned=yes ;; 8031 esac 8032 DUMPBIN=$ac_ct_DUMPBIN 8033 fi 8034 fi 8035 8036 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 8037 *COFF*) 8038 DUMPBIN="$DUMPBIN -symbols" 8039 ;; 8040 *) 8041 DUMPBIN=: 8042 ;; 8043 esac 8044 fi 8045 8046 if test "$DUMPBIN" != ":"; then 8047 NM="$DUMPBIN" 8048 fi 8049 fi 8050 test -z "$NM" && NM=nm 8051 8052 8053 8054 8055 8056 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 8058 $as_echo_n "checking the name lister ($NM) interface... " >&6; } 8059 if ${lt_cv_nm_interface+:} false; then : 8060 $as_echo_n "(cached) " >&6 8061 else 8062 lt_cv_nm_interface="BSD nm" 8063 echo "int some_variable = 0;" > conftest.$ac_ext 8064 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 8065 (eval "$ac_compile" 2>conftest.err) 8066 cat conftest.err >&5 8067 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 8068 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 8069 cat conftest.err >&5 8070 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 8071 cat conftest.out >&5 8072 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 8073 lt_cv_nm_interface="MS dumpbin" 8074 fi 8075 rm -f conftest* 8076 fi 8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 8078 $as_echo "$lt_cv_nm_interface" >&6; } 8079 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 8081 $as_echo_n "checking whether ln -s works... " >&6; } 8082 LN_S=$as_ln_s 8083 if test "$LN_S" = "ln -s"; then 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8085 $as_echo "yes" >&6; } 8086 else 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 8088 $as_echo "no, using $LN_S" >&6; } 8089 fi 8090 8091 # find the maximum length of command line arguments 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 8093 $as_echo_n "checking the maximum length of command line arguments... " >&6; } 8094 if ${lt_cv_sys_max_cmd_len+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096 else 8097 i=0 8098 teststring="ABCD" 8099 8100 case $build_os in 8101 msdosdjgpp*) 8102 # On DJGPP, this test can blow up pretty badly due to problems in libc 8103 # (any single argument exceeding 2000 bytes causes a buffer overrun 8104 # during glob expansion). Even if it were fixed, the result of this 8105 # check would be larger than it should be. 8106 lt_cv_sys_max_cmd_len=12288; # 12K is about right 8107 ;; 8108 8109 gnu*) 8110 # Under GNU Hurd, this test is not required because there is 8111 # no limit to the length of command line arguments. 8112 # Libtool will interpret -1 as no limit whatsoever 8113 lt_cv_sys_max_cmd_len=-1; 8114 ;; 8115 8116 cygwin* | mingw* | cegcc*) 8117 # On Win9x/ME, this test blows up -- it succeeds, but takes 8118 # about 5 minutes as the teststring grows exponentially. 8119 # Worse, since 9x/ME are not pre-emptively multitasking, 8120 # you end up with a "frozen" computer, even though with patience 8121 # the test eventually succeeds (with a max line length of 256k). 8122 # Instead, let's just punt: use the minimum linelength reported by 8123 # all of the supported platforms: 8192 (on NT/2K/XP). 8124 lt_cv_sys_max_cmd_len=8192; 8125 ;; 8126 8127 mint*) 8128 # On MiNT this can take a long time and run out of memory. 8129 lt_cv_sys_max_cmd_len=8192; 8130 ;; 8131 8132 amigaos*) 8133 # On AmigaOS with pdksh, this test takes hours, literally. 8134 # So we just punt and use a minimum line length of 8192. 8135 lt_cv_sys_max_cmd_len=8192; 8136 ;; 8137 8138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8139 # This has been around since 386BSD, at least. Likely further. 8140 if test -x /sbin/sysctl; then 8141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8142 elif test -x /usr/sbin/sysctl; then 8143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8144 else 8145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8146 fi 8147 # And add a safety zone 8148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8150 ;; 8151 8152 interix*) 8153 # We know the value 262144 and hardcode it with a safety zone (like BSD) 8154 lt_cv_sys_max_cmd_len=196608 8155 ;; 8156 8157 osf*) 8158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8160 # nice to cause kernel panics so lets avoid the loop below. 8161 # First set a reasonable default. 8162 lt_cv_sys_max_cmd_len=16384 8163 # 8164 if test -x /sbin/sysconfig; then 8165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8166 *1*) lt_cv_sys_max_cmd_len=-1 ;; 8167 esac 8168 fi 8169 ;; 8170 sco3.2v5*) 8171 lt_cv_sys_max_cmd_len=102400 8172 ;; 8173 sysv5* | sco5v6* | sysv4.2uw2*) 8174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8175 if test -n "$kargmax"; then 8176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 8177 else 8178 lt_cv_sys_max_cmd_len=32768 8179 fi 8180 ;; 8181 *) 8182 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8183 if test -n "$lt_cv_sys_max_cmd_len"; then 8184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8186 else 8187 # Make teststring a little bigger before we do anything with it. 8188 # a 1K string should be a reasonable start. 8189 for i in 1 2 3 4 5 6 7 8 ; do 8190 teststring=$teststring$teststring 8191 done 8192 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8193 # If test is not a shell built-in, we'll probably end up computing a 8194 # maximum length that is only half of the actual maximum length, but 8195 # we can't tell. 8196 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 8197 = "X$teststring$teststring"; } >/dev/null 2>&1 && 8198 test $i != 17 # 1/2 MB should be enough 8199 do 8200 i=`expr $i + 1` 8201 teststring=$teststring$teststring 8202 done 8203 # Only check the string length outside the loop. 8204 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 8205 teststring= 8206 # Add a significant safety factor because C++ compilers can tack on 8207 # massive amounts of additional arguments before passing them to the 8208 # linker. It appears as though 1/2 is a usable value. 8209 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8210 fi 8211 ;; 8212 esac 8213 8214 fi 8215 8216 if test -n $lt_cv_sys_max_cmd_len ; then 8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 8218 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } 8219 else 8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 8221 $as_echo "none" >&6; } 8222 fi 8223 max_cmd_len=$lt_cv_sys_max_cmd_len 8224 8225 8226 8227 8228 8229 8230 : ${CP="cp -f"} 8231 : ${MV="mv -f"} 8232 : ${RM="rm -f"} 8233 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 8235 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 8236 # Try some XSI features 8237 xsi_shell=no 8238 ( _lt_dummy="a/b/c" 8239 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 8240 = c,a/b,, \ 8241 && eval 'test $(( 1 + 1 )) -eq 2 \ 8242 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 8243 && xsi_shell=yes 8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 8245 $as_echo "$xsi_shell" >&6; } 8246 8247 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 8249 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 8250 lt_shell_append=no 8251 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 8252 >/dev/null 2>&1 \ 8253 && lt_shell_append=yes 8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 8255 $as_echo "$lt_shell_append" >&6; } 8256 8257 8258 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8259 lt_unset=unset 8260 else 8261 lt_unset=false 8262 fi 8263 8264 8265 8266 8267 8268 # test EBCDIC or ASCII 8269 case `echo X|tr X '\101'` in 8270 A) # ASCII based system 8271 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8272 lt_SP2NL='tr \040 \012' 8273 lt_NL2SP='tr \015\012 \040\040' 8274 ;; 8275 *) # EBCDIC based system 8276 lt_SP2NL='tr \100 \n' 8277 lt_NL2SP='tr \r\n \100\100' 8278 ;; 8279 esac 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 8290 $as_echo_n "checking for $LD option to reload object files... " >&6; } 8291 if ${lt_cv_ld_reload_flag+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293 else 8294 lt_cv_ld_reload_flag='-r' 8295 fi 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 8297 $as_echo "$lt_cv_ld_reload_flag" >&6; } 8298 reload_flag=$lt_cv_ld_reload_flag 8299 case $reload_flag in 8300 "" | " "*) ;; 8301 *) reload_flag=" $reload_flag" ;; 8302 esac 8303 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8304 case $host_os in 8305 darwin*) 8306 if test "$GCC" = yes; then 8307 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 8308 else 8309 reload_cmds='$LD$reload_flag -o $output$reload_objs' 8310 fi 8311 ;; 8312 esac 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 if test -n "$ac_tool_prefix"; then 8323 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8324 set dummy ${ac_tool_prefix}objdump; ac_word=$2 8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8326 $as_echo_n "checking for $ac_word... " >&6; } 8327 if ${ac_cv_prog_OBJDUMP+:} false; then : 8328 $as_echo_n "(cached) " >&6 8329 else 8330 if test -n "$OBJDUMP"; then 8331 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8332 else 8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8334 for as_dir in $PATH 8335 do 8336 IFS=$as_save_IFS 8337 test -z "$as_dir" && as_dir=. 8338 for ac_exec_ext in '' $ac_executable_extensions; do 8339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8340 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8342 break 2 8343 fi 8344 done 8345 done 8346 IFS=$as_save_IFS 8347 8348 fi 8349 fi 8350 OBJDUMP=$ac_cv_prog_OBJDUMP 8351 if test -n "$OBJDUMP"; then 8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8353 $as_echo "$OBJDUMP" >&6; } 8354 else 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8356 $as_echo "no" >&6; } 8357 fi 8358 8359 8360 fi 8361 if test -z "$ac_cv_prog_OBJDUMP"; then 8362 ac_ct_OBJDUMP=$OBJDUMP 8363 # Extract the first word of "objdump", so it can be a program name with args. 8364 set dummy objdump; ac_word=$2 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8366 $as_echo_n "checking for $ac_word... " >&6; } 8367 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8368 $as_echo_n "(cached) " >&6 8369 else 8370 if test -n "$ac_ct_OBJDUMP"; then 8371 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8372 else 8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8374 for as_dir in $PATH 8375 do 8376 IFS=$as_save_IFS 8377 test -z "$as_dir" && as_dir=. 8378 for ac_exec_ext in '' $ac_executable_extensions; do 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8380 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8382 break 2 8383 fi 8384 done 8385 done 8386 IFS=$as_save_IFS 8387 8388 fi 8389 fi 8390 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8391 if test -n "$ac_ct_OBJDUMP"; then 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8393 $as_echo "$ac_ct_OBJDUMP" >&6; } 8394 else 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8396 $as_echo "no" >&6; } 8397 fi 8398 8399 if test "x$ac_ct_OBJDUMP" = x; then 8400 OBJDUMP="false" 8401 else 8402 case $cross_compiling:$ac_tool_warned in 8403 yes:) 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8406 ac_tool_warned=yes ;; 8407 esac 8408 OBJDUMP=$ac_ct_OBJDUMP 8409 fi 8410 else 8411 OBJDUMP="$ac_cv_prog_OBJDUMP" 8412 fi 8413 8414 test -z "$OBJDUMP" && OBJDUMP=objdump 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 8425 $as_echo_n "checking how to recognize dependent libraries... " >&6; } 8426 if ${lt_cv_deplibs_check_method+:} false; then : 8427 $as_echo_n "(cached) " >&6 8428 else 8429 lt_cv_file_magic_cmd='$MAGIC_CMD' 8430 lt_cv_file_magic_test_file= 8431 lt_cv_deplibs_check_method='unknown' 8432 # Need to set the preceding variable on all platforms that support 8433 # interlibrary dependencies. 8434 # 'none' -- dependencies not supported. 8435 # `unknown' -- same as none, but documents that we really don't know. 8436 # 'pass_all' -- all dependencies passed with no checks. 8437 # 'test_compile' -- check by making test program. 8438 # 'file_magic [[regex]]' -- check by looking for files in library path 8439 # which responds to the $file_magic_cmd with a given extended regex. 8440 # If you have `file' or equivalent on your system and you're not sure 8441 # whether `pass_all' will *always* work, you probably want this one. 8442 8443 case $host_os in 8444 aix[4-9]*) 8445 lt_cv_deplibs_check_method=pass_all 8446 ;; 8447 8448 beos*) 8449 lt_cv_deplibs_check_method=pass_all 8450 ;; 8451 8452 bsdi[45]*) 8453 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 8454 lt_cv_file_magic_cmd='/usr/bin/file -L' 8455 lt_cv_file_magic_test_file=/shlib/libc.so 8456 ;; 8457 8458 cygwin*) 8459 # func_win32_libid is a shell function defined in ltmain.sh 8460 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8461 lt_cv_file_magic_cmd='func_win32_libid' 8462 ;; 8463 8464 mingw* | pw32*) 8465 # Base MSYS/MinGW do not provide the 'file' command needed by 8466 # func_win32_libid shell function, so use a weaker test based on 'objdump', 8467 # unless we find 'file', for example because we are cross-compiling. 8468 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 8469 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 8470 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 8471 lt_cv_file_magic_cmd='func_win32_libid' 8472 else 8473 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 8474 lt_cv_file_magic_cmd='$OBJDUMP -f' 8475 fi 8476 ;; 8477 8478 cegcc*) 8479 # use the weaker test based on 'objdump'. See mingw*. 8480 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 8481 lt_cv_file_magic_cmd='$OBJDUMP -f' 8482 ;; 8483 8484 darwin* | rhapsody*) 8485 lt_cv_deplibs_check_method=pass_all 8486 ;; 8487 8488 freebsd* | dragonfly*) 8489 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8490 case $host_cpu in 8491 i*86 ) 8492 # Not sure whether the presence of OpenBSD here was a mistake. 8493 # Let's accept both of them until this is cleared up. 8494 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 8495 lt_cv_file_magic_cmd=/usr/bin/file 8496 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 8497 ;; 8498 esac 8499 else 8500 lt_cv_deplibs_check_method=pass_all 8501 fi 8502 ;; 8503 8504 gnu*) 8505 lt_cv_deplibs_check_method=pass_all 8506 ;; 8507 8508 haiku*) 8509 lt_cv_deplibs_check_method=pass_all 8510 ;; 8511 8512 hpux10.20* | hpux11*) 8513 lt_cv_file_magic_cmd=/usr/bin/file 8514 case $host_cpu in 8515 ia64*) 8516 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 8517 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 8518 ;; 8519 hppa*64*) 8520 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]' 8521 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 8522 ;; 8523 *) 8524 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 8525 lt_cv_file_magic_test_file=/usr/lib/libc.sl 8526 ;; 8527 esac 8528 ;; 8529 8530 interix[3-9]*) 8531 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 8532 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 8533 ;; 8534 8535 irix5* | irix6* | nonstopux*) 8536 case $LD in 8537 *-32|*"-32 ") libmagic=32-bit;; 8538 *-n32|*"-n32 ") libmagic=N32;; 8539 *-64|*"-64 ") libmagic=64-bit;; 8540 *) libmagic=never-match;; 8541 esac 8542 lt_cv_deplibs_check_method=pass_all 8543 ;; 8544 8545 # This must be Linux ELF. 8546 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 8547 lt_cv_deplibs_check_method=pass_all 8548 ;; 8549 8550 netbsd*) 8551 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 8552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8553 else 8554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 8555 fi 8556 ;; 8557 8558 newos6*) 8559 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 8560 lt_cv_file_magic_cmd=/usr/bin/file 8561 lt_cv_file_magic_test_file=/usr/lib/libnls.so 8562 ;; 8563 8564 *nto* | *qnx*) 8565 lt_cv_deplibs_check_method=pass_all 8566 ;; 8567 8568 openbsd*) 8569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8570 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 8571 else 8572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 8573 fi 8574 ;; 8575 8576 osf3* | osf4* | osf5*) 8577 lt_cv_deplibs_check_method=pass_all 8578 ;; 8579 8580 rdos*) 8581 lt_cv_deplibs_check_method=pass_all 8582 ;; 8583 8584 solaris*) 8585 lt_cv_deplibs_check_method=pass_all 8586 ;; 8587 8588 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8589 lt_cv_deplibs_check_method=pass_all 8590 ;; 8591 8592 sysv4 | sysv4.3*) 8593 case $host_vendor in 8594 motorola) 8595 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]' 8596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 8597 ;; 8598 ncr) 8599 lt_cv_deplibs_check_method=pass_all 8600 ;; 8601 sequent) 8602 lt_cv_file_magic_cmd='/bin/file' 8603 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 8604 ;; 8605 sni) 8606 lt_cv_file_magic_cmd='/bin/file' 8607 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 8608 lt_cv_file_magic_test_file=/lib/libc.so 8609 ;; 8610 siemens) 8611 lt_cv_deplibs_check_method=pass_all 8612 ;; 8613 pc) 8614 lt_cv_deplibs_check_method=pass_all 8615 ;; 8616 esac 8617 ;; 8618 8619 tpf*) 8620 lt_cv_deplibs_check_method=pass_all 8621 ;; 8622 vxworks*) 8623 # Assume VxWorks cross toolchains are built on Linux, possibly 8624 # as canadian for Windows hosts. 8625 lt_cv_deplibs_check_method=pass_all 8626 ;; 8627 esac 8628 8629 fi 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 8631 $as_echo "$lt_cv_deplibs_check_method" >&6; } 8632 file_magic_cmd=$lt_cv_file_magic_cmd 8633 deplibs_check_method=$lt_cv_deplibs_check_method 8634 test -z "$deplibs_check_method" && deplibs_check_method=unknown 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 # Try CLANG_PLUGIN_FILE first since GCC_PLUGIN_OPTION may return the 8649 # wrong plugin_option with clang. 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang" >&5 8651 $as_echo_n "checking for clang... " >&6; } 8652 if ${clang_cv_is_clang+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654 else 8655 8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8657 /* end confdefs.h. */ 8658 8659 #ifdef __clang__ 8660 yes 8661 #endif 8662 8663 _ACEOF 8664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8665 $EGREP "yes" >/dev/null 2>&1; then : 8666 clang_cv_is_clang=yes 8667 else 8668 clang_cv_is_clang=no 8669 fi 8670 rm -f conftest* 8671 8672 fi 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $clang_cv_is_clang" >&5 8674 $as_echo "$clang_cv_is_clang" >&6; } 8675 if test -n "$ac_tool_prefix"; then 8676 # Extract the first word of "${ac_tool_prefix}llvm-config", so it can be a program name with args. 8677 set dummy ${ac_tool_prefix}llvm-config; ac_word=$2 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8679 $as_echo_n "checking for $ac_word... " >&6; } 8680 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 8681 $as_echo_n "(cached) " >&6 8682 else 8683 if test -n "$LLVM_CONFIG"; then 8684 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 8685 else 8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8687 for as_dir in $PATH 8688 do 8689 IFS=$as_save_IFS 8690 test -z "$as_dir" && as_dir=. 8691 for ac_exec_ext in '' $ac_executable_extensions; do 8692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8693 ac_cv_prog_LLVM_CONFIG="${ac_tool_prefix}llvm-config" 8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8695 break 2 8696 fi 8697 done 8698 done 8699 IFS=$as_save_IFS 8700 8701 fi 8702 fi 8703 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 8704 if test -n "$LLVM_CONFIG"; then 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 8706 $as_echo "$LLVM_CONFIG" >&6; } 8707 else 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8709 $as_echo "no" >&6; } 8710 fi 8711 8712 8713 fi 8714 if test -z "$ac_cv_prog_LLVM_CONFIG"; then 8715 ac_ct_LLVM_CONFIG=$LLVM_CONFIG 8716 # Extract the first word of "llvm-config", so it can be a program name with args. 8717 set dummy llvm-config; ac_word=$2 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8719 $as_echo_n "checking for $ac_word... " >&6; } 8720 if ${ac_cv_prog_ac_ct_LLVM_CONFIG+:} false; then : 8721 $as_echo_n "(cached) " >&6 8722 else 8723 if test -n "$ac_ct_LLVM_CONFIG"; then 8724 ac_cv_prog_ac_ct_LLVM_CONFIG="$ac_ct_LLVM_CONFIG" # Let the user override the test. 8725 else 8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8727 for as_dir in $PATH 8728 do 8729 IFS=$as_save_IFS 8730 test -z "$as_dir" && as_dir=. 8731 for ac_exec_ext in '' $ac_executable_extensions; do 8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8733 ac_cv_prog_ac_ct_LLVM_CONFIG="llvm-config" 8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8735 break 2 8736 fi 8737 done 8738 done 8739 IFS=$as_save_IFS 8740 8741 fi 8742 fi 8743 ac_ct_LLVM_CONFIG=$ac_cv_prog_ac_ct_LLVM_CONFIG 8744 if test -n "$ac_ct_LLVM_CONFIG"; then 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LLVM_CONFIG" >&5 8746 $as_echo "$ac_ct_LLVM_CONFIG" >&6; } 8747 else 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8749 $as_echo "no" >&6; } 8750 fi 8751 8752 if test "x$ac_ct_LLVM_CONFIG" = x; then 8753 LLVM_CONFIG="" 8754 else 8755 case $cross_compiling:$ac_tool_warned in 8756 yes:) 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8759 ac_tool_warned=yes ;; 8760 esac 8761 LLVM_CONFIG=$ac_ct_LLVM_CONFIG 8762 fi 8763 else 8764 LLVM_CONFIG="$ac_cv_prog_LLVM_CONFIG" 8765 fi 8766 8767 plugin_file= 8768 if test $clang_cv_is_clang = yes; then 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang plugin file" >&5 8770 $as_echo_n "checking for clang plugin file... " >&6; } 8771 plugin_names="LLVMgold.so" 8772 for plugin in $plugin_names; do 8773 plugin_file=`${CC} ${CFLAGS} --print-file-name $plugin` 8774 if test "$plugin_file" != "$plugin"; then 8775 break; 8776 fi 8777 if test -n "${LLVM_CONFIG}"; then 8778 plugin_file=`${LLVM_CONFIG} --libdir`/$plugin 8779 if test -f "$plugin_file"; then 8780 break; 8781 fi 8782 fi 8783 plugin_file= 8784 done 8785 if test -z "$plugin_file"; then 8786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8787 $as_echo "no" >&6; } 8788 else 8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_file" >&5 8790 $as_echo "$plugin_file" >&6; } 8791 if test -n "$ac_tool_prefix"; then 8792 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8793 set dummy ${ac_tool_prefix}ar; ac_word=$2 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8795 $as_echo_n "checking for $ac_word... " >&6; } 8796 if ${ac_cv_prog_AR+:} false; then : 8797 $as_echo_n "(cached) " >&6 8798 else 8799 if test -n "$AR"; then 8800 ac_cv_prog_AR="$AR" # Let the user override the test. 8801 else 8802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8803 for as_dir in $PATH 8804 do 8805 IFS=$as_save_IFS 8806 test -z "$as_dir" && as_dir=. 8807 for ac_exec_ext in '' $ac_executable_extensions; do 8808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8809 ac_cv_prog_AR="${ac_tool_prefix}ar" 8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8811 break 2 8812 fi 8813 done 8814 done 8815 IFS=$as_save_IFS 8816 8817 fi 8818 fi 8819 AR=$ac_cv_prog_AR 8820 if test -n "$AR"; then 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8822 $as_echo "$AR" >&6; } 8823 else 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8825 $as_echo "no" >&6; } 8826 fi 8827 8828 8829 fi 8830 if test -z "$ac_cv_prog_AR"; then 8831 ac_ct_AR=$AR 8832 # Extract the first word of "ar", so it can be a program name with args. 8833 set dummy ar; ac_word=$2 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8835 $as_echo_n "checking for $ac_word... " >&6; } 8836 if ${ac_cv_prog_ac_ct_AR+:} false; then : 8837 $as_echo_n "(cached) " >&6 8838 else 8839 if test -n "$ac_ct_AR"; then 8840 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8841 else 8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8843 for as_dir in $PATH 8844 do 8845 IFS=$as_save_IFS 8846 test -z "$as_dir" && as_dir=. 8847 for ac_exec_ext in '' $ac_executable_extensions; do 8848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8849 ac_cv_prog_ac_ct_AR="ar" 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8851 break 2 8852 fi 8853 done 8854 done 8855 IFS=$as_save_IFS 8856 8857 fi 8858 fi 8859 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8860 if test -n "$ac_ct_AR"; then 8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8862 $as_echo "$ac_ct_AR" >&6; } 8863 else 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8865 $as_echo "no" >&6; } 8866 fi 8867 8868 if test "x$ac_ct_AR" = x; then 8869 AR="" 8870 else 8871 case $cross_compiling:$ac_tool_warned in 8872 yes:) 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8875 ac_tool_warned=yes ;; 8876 esac 8877 AR=$ac_ct_AR 8878 fi 8879 else 8880 AR="$ac_cv_prog_AR" 8881 fi 8882 8883 if test -z "${AR}"; then 8884 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 8885 fi 8886 plugin_option="--plugin $plugin_file" 8887 touch conftest.c 8888 ${AR} $plugin_option rc conftest.a conftest.c 8889 if test "$?" != 0; then 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 8891 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 8892 plugin_file= 8893 fi 8894 rm -f conftest.* 8895 fi 8896 fi 8897 plugin_file="$plugin_file" 8898 8899 if test -n "$plugin_file"; then 8900 plugin_option="--plugin $plugin_file" 8901 else 8902 if test -n "$ac_tool_prefix"; then 8903 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 8904 set dummy ${ac_tool_prefix}ar; ac_word=$2 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8906 $as_echo_n "checking for $ac_word... " >&6; } 8907 if ${ac_cv_prog_AR+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909 else 8910 if test -n "$AR"; then 8911 ac_cv_prog_AR="$AR" # Let the user override the test. 8912 else 8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8914 for as_dir in $PATH 8915 do 8916 IFS=$as_save_IFS 8917 test -z "$as_dir" && as_dir=. 8918 for ac_exec_ext in '' $ac_executable_extensions; do 8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8920 ac_cv_prog_AR="${ac_tool_prefix}ar" 8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8922 break 2 8923 fi 8924 done 8925 done 8926 IFS=$as_save_IFS 8927 8928 fi 8929 fi 8930 AR=$ac_cv_prog_AR 8931 if test -n "$AR"; then 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 8933 $as_echo "$AR" >&6; } 8934 else 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8936 $as_echo "no" >&6; } 8937 fi 8938 8939 8940 fi 8941 if test -z "$ac_cv_prog_AR"; then 8942 ac_ct_AR=$AR 8943 # Extract the first word of "ar", so it can be a program name with args. 8944 set dummy ar; ac_word=$2 8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8946 $as_echo_n "checking for $ac_word... " >&6; } 8947 if ${ac_cv_prog_ac_ct_AR+:} false; then : 8948 $as_echo_n "(cached) " >&6 8949 else 8950 if test -n "$ac_ct_AR"; then 8951 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 8952 else 8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8954 for as_dir in $PATH 8955 do 8956 IFS=$as_save_IFS 8957 test -z "$as_dir" && as_dir=. 8958 for ac_exec_ext in '' $ac_executable_extensions; do 8959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8960 ac_cv_prog_ac_ct_AR="ar" 8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8962 break 2 8963 fi 8964 done 8965 done 8966 IFS=$as_save_IFS 8967 8968 fi 8969 fi 8970 ac_ct_AR=$ac_cv_prog_ac_ct_AR 8971 if test -n "$ac_ct_AR"; then 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 8973 $as_echo "$ac_ct_AR" >&6; } 8974 else 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8976 $as_echo "no" >&6; } 8977 fi 8978 8979 if test "x$ac_ct_AR" = x; then 8980 AR="" 8981 else 8982 case $cross_compiling:$ac_tool_warned in 8983 yes:) 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8986 ac_tool_warned=yes ;; 8987 esac 8988 AR=$ac_ct_AR 8989 fi 8990 else 8991 AR="$ac_cv_prog_AR" 8992 fi 8993 8994 if test -z "${AR}"; then 8995 as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 8996 fi 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5 8998 $as_echo_n "checking for -plugin option... " >&6; } 8999 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" 9000 plugin_option= 9001 for plugin in $plugin_names; do 9002 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` 9003 if test x$plugin_so = x$plugin; then 9004 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` 9005 fi 9006 if test x$plugin_so != x$plugin; then 9007 plugin_option="--plugin $plugin_so" 9008 break 9009 fi 9010 done 9011 if test -z "$plugin_option"; then 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9013 $as_echo "no" >&6; } 9014 else 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5 9016 $as_echo "$plugin_option" >&6; } 9017 touch conftest.c 9018 ${AR} $plugin_option rc conftest.a conftest.c 9019 if test "$?" != 0; then 9020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 9021 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} 9022 plugin_option= 9023 fi 9024 rm -f conftest.* 9025 fi 9026 plugin_option="$plugin_option" 9027 9028 fi 9029 if test -n "$ac_tool_prefix"; then 9030 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9031 set dummy ${ac_tool_prefix}ar; ac_word=$2 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9033 $as_echo_n "checking for $ac_word... " >&6; } 9034 if ${ac_cv_prog_AR+:} false; then : 9035 $as_echo_n "(cached) " >&6 9036 else 9037 if test -n "$AR"; then 9038 ac_cv_prog_AR="$AR" # Let the user override the test. 9039 else 9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9041 for as_dir in $PATH 9042 do 9043 IFS=$as_save_IFS 9044 test -z "$as_dir" && as_dir=. 9045 for ac_exec_ext in '' $ac_executable_extensions; do 9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9047 ac_cv_prog_AR="${ac_tool_prefix}ar" 9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9049 break 2 9050 fi 9051 done 9052 done 9053 IFS=$as_save_IFS 9054 9055 fi 9056 fi 9057 AR=$ac_cv_prog_AR 9058 if test -n "$AR"; then 9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9060 $as_echo "$AR" >&6; } 9061 else 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9063 $as_echo "no" >&6; } 9064 fi 9065 9066 9067 fi 9068 if test -z "$ac_cv_prog_AR"; then 9069 ac_ct_AR=$AR 9070 # Extract the first word of "ar", so it can be a program name with args. 9071 set dummy ar; ac_word=$2 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9073 $as_echo_n "checking for $ac_word... " >&6; } 9074 if ${ac_cv_prog_ac_ct_AR+:} false; then : 9075 $as_echo_n "(cached) " >&6 9076 else 9077 if test -n "$ac_ct_AR"; then 9078 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9079 else 9080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9081 for as_dir in $PATH 9082 do 9083 IFS=$as_save_IFS 9084 test -z "$as_dir" && as_dir=. 9085 for ac_exec_ext in '' $ac_executable_extensions; do 9086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9087 ac_cv_prog_ac_ct_AR="ar" 9088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9089 break 2 9090 fi 9091 done 9092 done 9093 IFS=$as_save_IFS 9094 9095 fi 9096 fi 9097 ac_ct_AR=$ac_cv_prog_ac_ct_AR 9098 if test -n "$ac_ct_AR"; then 9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9100 $as_echo "$ac_ct_AR" >&6; } 9101 else 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9103 $as_echo "no" >&6; } 9104 fi 9105 9106 if test "x$ac_ct_AR" = x; then 9107 AR="false" 9108 else 9109 case $cross_compiling:$ac_tool_warned in 9110 yes:) 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9113 ac_tool_warned=yes ;; 9114 esac 9115 AR=$ac_ct_AR 9116 fi 9117 else 9118 AR="$ac_cv_prog_AR" 9119 fi 9120 9121 test -z "$AR" && AR=ar 9122 if test -n "$plugin_option"; then 9123 case "$AR" in 9124 *"$plugin_option"*) 9125 ;; 9126 *) 9127 if $AR --help 2>&1 | grep -q "\--plugin"; then 9128 AR="$AR $plugin_option" 9129 fi 9130 ;; 9131 esac 9132 fi 9133 test -z "$AR_FLAGS" && AR_FLAGS=cru 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 if test -n "$ac_tool_prefix"; then 9146 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 9147 set dummy ${ac_tool_prefix}strip; ac_word=$2 9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9149 $as_echo_n "checking for $ac_word... " >&6; } 9150 if ${ac_cv_prog_STRIP+:} false; then : 9151 $as_echo_n "(cached) " >&6 9152 else 9153 if test -n "$STRIP"; then 9154 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 9155 else 9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9157 for as_dir in $PATH 9158 do 9159 IFS=$as_save_IFS 9160 test -z "$as_dir" && as_dir=. 9161 for ac_exec_ext in '' $ac_executable_extensions; do 9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9163 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9165 break 2 9166 fi 9167 done 9168 done 9169 IFS=$as_save_IFS 9170 9171 fi 9172 fi 9173 STRIP=$ac_cv_prog_STRIP 9174 if test -n "$STRIP"; then 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 9176 $as_echo "$STRIP" >&6; } 9177 else 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9179 $as_echo "no" >&6; } 9180 fi 9181 9182 9183 fi 9184 if test -z "$ac_cv_prog_STRIP"; then 9185 ac_ct_STRIP=$STRIP 9186 # Extract the first word of "strip", so it can be a program name with args. 9187 set dummy strip; ac_word=$2 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9189 $as_echo_n "checking for $ac_word... " >&6; } 9190 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192 else 9193 if test -n "$ac_ct_STRIP"; then 9194 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 9195 else 9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9197 for as_dir in $PATH 9198 do 9199 IFS=$as_save_IFS 9200 test -z "$as_dir" && as_dir=. 9201 for ac_exec_ext in '' $ac_executable_extensions; do 9202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9203 ac_cv_prog_ac_ct_STRIP="strip" 9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9205 break 2 9206 fi 9207 done 9208 done 9209 IFS=$as_save_IFS 9210 9211 fi 9212 fi 9213 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 9214 if test -n "$ac_ct_STRIP"; then 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 9216 $as_echo "$ac_ct_STRIP" >&6; } 9217 else 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9219 $as_echo "no" >&6; } 9220 fi 9221 9222 if test "x$ac_ct_STRIP" = x; then 9223 STRIP=":" 9224 else 9225 case $cross_compiling:$ac_tool_warned in 9226 yes:) 9227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9229 ac_tool_warned=yes ;; 9230 esac 9231 STRIP=$ac_ct_STRIP 9232 fi 9233 else 9234 STRIP="$ac_cv_prog_STRIP" 9235 fi 9236 9237 test -z "$STRIP" && STRIP=: 9238 9239 9240 9241 9242 9243 9244 if test -n "$ac_tool_prefix"; then 9245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9248 $as_echo_n "checking for $ac_word... " >&6; } 9249 if ${ac_cv_prog_RANLIB+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251 else 9252 if test -n "$RANLIB"; then 9253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 9254 else 9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9256 for as_dir in $PATH 9257 do 9258 IFS=$as_save_IFS 9259 test -z "$as_dir" && as_dir=. 9260 for ac_exec_ext in '' $ac_executable_extensions; do 9261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9264 break 2 9265 fi 9266 done 9267 done 9268 IFS=$as_save_IFS 9269 9270 fi 9271 fi 9272 RANLIB=$ac_cv_prog_RANLIB 9273 if test -n "$RANLIB"; then 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 9275 $as_echo "$RANLIB" >&6; } 9276 else 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9278 $as_echo "no" >&6; } 9279 fi 9280 9281 9282 fi 9283 if test -z "$ac_cv_prog_RANLIB"; then 9284 ac_ct_RANLIB=$RANLIB 9285 # Extract the first word of "ranlib", so it can be a program name with args. 9286 set dummy ranlib; ac_word=$2 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9288 $as_echo_n "checking for $ac_word... " >&6; } 9289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291 else 9292 if test -n "$ac_ct_RANLIB"; then 9293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 9294 else 9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9296 for as_dir in $PATH 9297 do 9298 IFS=$as_save_IFS 9299 test -z "$as_dir" && as_dir=. 9300 for ac_exec_ext in '' $ac_executable_extensions; do 9301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9302 ac_cv_prog_ac_ct_RANLIB="ranlib" 9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9304 break 2 9305 fi 9306 done 9307 done 9308 IFS=$as_save_IFS 9309 9310 fi 9311 fi 9312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 9313 if test -n "$ac_ct_RANLIB"; then 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 9315 $as_echo "$ac_ct_RANLIB" >&6; } 9316 else 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9318 $as_echo "no" >&6; } 9319 fi 9320 9321 if test "x$ac_ct_RANLIB" = x; then 9322 RANLIB=":" 9323 else 9324 case $cross_compiling:$ac_tool_warned in 9325 yes:) 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9328 ac_tool_warned=yes ;; 9329 esac 9330 RANLIB=$ac_ct_RANLIB 9331 fi 9332 else 9333 RANLIB="$ac_cv_prog_RANLIB" 9334 fi 9335 9336 test -z "$RANLIB" && RANLIB=: 9337 if test -n "$plugin_option" && test "$RANLIB" != ":"; then 9338 case "$RANLIB" in 9339 *"$plugin_option"*) 9340 ;; 9341 *) 9342 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then 9343 RANLIB="$RANLIB $plugin_option" 9344 fi 9345 ;; 9346 esac 9347 fi 9348 9349 9350 9351 9352 9353 9354 # Determine commands to create old-style static archives. 9355 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 9356 old_postinstall_cmds='chmod 644 $oldlib' 9357 old_postuninstall_cmds= 9358 9359 if test -n "$RANLIB"; then 9360 case $host_os in 9361 openbsd*) 9362 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 9363 ;; 9364 *) 9365 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 9366 ;; 9367 esac 9368 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 9369 fi 9370 9371 case $host_os in 9372 darwin*) 9373 lock_old_archive_extraction=yes ;; 9374 *) 9375 lock_old_archive_extraction=no ;; 9376 esac 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 # If no C compiler was specified, use CC. 9417 LTCC=${LTCC-"$CC"} 9418 9419 # If no C compiler flags were specified, use CFLAGS. 9420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9421 9422 # Allow CC to be a program name with arguments. 9423 compiler=$CC 9424 9425 9426 # Check for command to grab the raw symbol name followed by C symbol from nm. 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 9428 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 9429 if ${lt_cv_sys_global_symbol_pipe+:} false; then : 9430 $as_echo_n "(cached) " >&6 9431 else 9432 9433 # These are sane defaults that work on at least a few old systems. 9434 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 9435 9436 # Character class describing NM global symbol codes. 9437 symcode='[BCDEGRST]' 9438 9439 # Regexp to match symbols that can be accessed directly from C. 9440 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 9441 9442 # Define system-specific variables. 9443 case $host_os in 9444 aix*) 9445 symcode='[BCDT]' 9446 ;; 9447 cygwin* | mingw* | pw32* | cegcc*) 9448 symcode='[ABCDGISTW]' 9449 ;; 9450 hpux*) 9451 if test "$host_cpu" = ia64; then 9452 symcode='[ABCDEGRST]' 9453 fi 9454 ;; 9455 irix* | nonstopux*) 9456 symcode='[BCDEGRST]' 9457 ;; 9458 osf*) 9459 symcode='[BCDEGQRST]' 9460 ;; 9461 solaris*) 9462 symcode='[BCDRT]' 9463 ;; 9464 sco3.2v5*) 9465 symcode='[DT]' 9466 ;; 9467 sysv4.2uw2*) 9468 symcode='[DT]' 9469 ;; 9470 sysv5* | sco5v6* | unixware* | OpenUNIX*) 9471 symcode='[ABDT]' 9472 ;; 9473 sysv4) 9474 symcode='[DFNSTU]' 9475 ;; 9476 esac 9477 9478 # If we're using GNU nm, then use its standard symbol codes. 9479 case `$NM -V 2>&1` in 9480 *GNU* | *'with BFD'*) 9481 symcode='[ABCDGIRSTW]' ;; 9482 esac 9483 9484 # Transform an extracted symbol line into a proper C declaration. 9485 # Some systems (esp. on ia64) link data and code symbols differently, 9486 # so use this general approach. 9487 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 9488 9489 # Transform an extracted symbol line into symbol name and symbol address 9490 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 9491 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'" 9492 9493 # Handle CRLF in mingw tool chain 9494 opt_cr= 9495 case $build_os in 9496 mingw*) 9497 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 9498 ;; 9499 esac 9500 9501 # Try without a prefix underscore, then with it. 9502 for ac_symprfx in "" "_"; do 9503 9504 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 9505 symxfrm="\\1 $ac_symprfx\\2 \\2" 9506 9507 # Write the raw and C identifiers. 9508 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 9509 # Fake it for dumpbin and say T for any non-static function 9510 # and D for any global variable. 9511 # Also find C++ and __fastcall symbols from MSVC++, 9512 # which start with @ or ?. 9513 lt_cv_sys_global_symbol_pipe="$AWK '"\ 9514 " {last_section=section; section=\$ 3};"\ 9515 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 9516 " \$ 0!~/External *\|/{next};"\ 9517 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 9518 " {if(hide[section]) next};"\ 9519 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 9520 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 9521 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ 9522 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 9523 " ' prfx=^$ac_symprfx" 9524 else 9525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 9526 fi 9527 9528 # Check to see that the pipe works correctly. 9529 pipe_works=no 9530 9531 rm -f conftest* 9532 cat > conftest.$ac_ext <<_LT_EOF 9533 #ifdef __cplusplus 9534 extern "C" { 9535 #endif 9536 char nm_test_var; 9537 void nm_test_func(void); 9538 void nm_test_func(void){} 9539 #ifdef __cplusplus 9540 } 9541 #endif 9542 int main(){nm_test_var='a';nm_test_func();return(0);} 9543 _LT_EOF 9544 9545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9546 (eval $ac_compile) 2>&5 9547 ac_status=$? 9548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9549 test $ac_status = 0; }; then 9550 # Now try to grab the symbols. 9551 nlist=conftest.nm 9552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 9553 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 9554 ac_status=$? 9555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9556 test $ac_status = 0; } && test -s "$nlist"; then 9557 # Try sorting and uniquifying the output. 9558 if sort "$nlist" | uniq > "$nlist"T; then 9559 mv -f "$nlist"T "$nlist" 9560 else 9561 rm -f "$nlist"T 9562 fi 9563 9564 # Make sure that we snagged all the symbols we need. 9565 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 9566 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 9567 cat <<_LT_EOF > conftest.$ac_ext 9568 #ifdef __cplusplus 9569 extern "C" { 9570 #endif 9571 9572 _LT_EOF 9573 # Now generate the symbol file. 9574 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 9575 9576 cat <<_LT_EOF >> conftest.$ac_ext 9577 9578 /* The mapping between symbol names and symbols. */ 9579 const struct { 9580 const char *name; 9581 void *address; 9582 } 9583 lt__PROGRAM__LTX_preloaded_symbols[] = 9584 { 9585 { "@PROGRAM@", (void *) 0 }, 9586 _LT_EOF 9587 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 9588 cat <<\_LT_EOF >> conftest.$ac_ext 9589 {0, (void *) 0} 9590 }; 9591 9592 /* This works around a problem in FreeBSD linker */ 9593 #ifdef FREEBSD_WORKAROUND 9594 static const void *lt_preloaded_setup() { 9595 return lt__PROGRAM__LTX_preloaded_symbols; 9596 } 9597 #endif 9598 9599 #ifdef __cplusplus 9600 } 9601 #endif 9602 _LT_EOF 9603 # Now try linking the two files. 9604 mv conftest.$ac_objext conftstm.$ac_objext 9605 lt_save_LIBS="$LIBS" 9606 lt_save_CFLAGS="$CFLAGS" 9607 LIBS="conftstm.$ac_objext" 9608 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 9609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 9610 (eval $ac_link) 2>&5 9611 ac_status=$? 9612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9613 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 9614 pipe_works=yes 9615 fi 9616 LIBS="$lt_save_LIBS" 9617 CFLAGS="$lt_save_CFLAGS" 9618 else 9619 echo "cannot find nm_test_func in $nlist" >&5 9620 fi 9621 else 9622 echo "cannot find nm_test_var in $nlist" >&5 9623 fi 9624 else 9625 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 9626 fi 9627 else 9628 echo "$progname: failed program was:" >&5 9629 cat conftest.$ac_ext >&5 9630 fi 9631 rm -rf conftest* conftst* 9632 9633 # Do not use the global_symbol_pipe unless it works. 9634 if test "$pipe_works" = yes; then 9635 break 9636 else 9637 lt_cv_sys_global_symbol_pipe= 9638 fi 9639 done 9640 9641 fi 9642 9643 if test -z "$lt_cv_sys_global_symbol_pipe"; then 9644 lt_cv_sys_global_symbol_to_cdecl= 9645 fi 9646 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 9648 $as_echo "failed" >&6; } 9649 else 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 9651 $as_echo "ok" >&6; } 9652 fi 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 # Check whether --enable-libtool-lock was given. 9676 if test "${enable_libtool_lock+set}" = set; then : 9677 enableval=$enable_libtool_lock; 9678 fi 9679 9680 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 9681 9682 # Some flags need to be propagated to the compiler or linker for good 9683 # libtool support. 9684 case $host in 9685 ia64-*-hpux*) 9686 # Find out which ABI we are using. 9687 echo 'int i;' > conftest.$ac_ext 9688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9689 (eval $ac_compile) 2>&5 9690 ac_status=$? 9691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9692 test $ac_status = 0; }; then 9693 case `/usr/bin/file conftest.$ac_objext` in 9694 *ELF-32*) 9695 HPUX_IA64_MODE="32" 9696 ;; 9697 *ELF-64*) 9698 HPUX_IA64_MODE="64" 9699 ;; 9700 esac 9701 fi 9702 rm -rf conftest* 9703 ;; 9704 *-*-irix6*) 9705 # Find out which ABI we are using. 9706 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 9707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9708 (eval $ac_compile) 2>&5 9709 ac_status=$? 9710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9711 test $ac_status = 0; }; then 9712 if test "$lt_cv_prog_gnu_ld" = yes; then 9713 case `/usr/bin/file conftest.$ac_objext` in 9714 *32-bit*) 9715 LD="${LD-ld} -melf32bsmip" 9716 ;; 9717 *N32*) 9718 LD="${LD-ld} -melf32bmipn32" 9719 ;; 9720 *64-bit*) 9721 LD="${LD-ld} -melf64bmip" 9722 ;; 9723 esac 9724 else 9725 case `/usr/bin/file conftest.$ac_objext` in 9726 *32-bit*) 9727 LD="${LD-ld} -32" 9728 ;; 9729 *N32*) 9730 LD="${LD-ld} -n32" 9731 ;; 9732 *64-bit*) 9733 LD="${LD-ld} -64" 9734 ;; 9735 esac 9736 fi 9737 fi 9738 rm -rf conftest* 9739 ;; 9740 9741 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 9742 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 9743 # Find out which ABI we are using. 9744 echo 'int i;' > conftest.$ac_ext 9745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9746 (eval $ac_compile) 2>&5 9747 ac_status=$? 9748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9749 test $ac_status = 0; }; then 9750 case `/usr/bin/file conftest.o` in 9751 *32-bit*) 9752 case $host in 9753 x86_64-*kfreebsd*-gnu) 9754 LD="${LD-ld} -m elf_i386_fbsd" 9755 ;; 9756 x86_64-*linux*) 9757 case `/usr/bin/file conftest.o` in 9758 *x86-64*) 9759 LD="${LD-ld} -m elf32_x86_64" 9760 ;; 9761 *) 9762 LD="${LD-ld} -m elf_i386" 9763 ;; 9764 esac 9765 ;; 9766 powerpc64le-*linux*) 9767 LD="${LD-ld} -m elf32lppclinux" 9768 ;; 9769 powerpc64-*linux*) 9770 LD="${LD-ld} -m elf32ppclinux" 9771 ;; 9772 s390x-*linux*) 9773 LD="${LD-ld} -m elf_s390" 9774 ;; 9775 sparc64-*linux*) 9776 LD="${LD-ld} -m elf32_sparc" 9777 ;; 9778 esac 9779 ;; 9780 *64-bit*) 9781 case $host in 9782 x86_64-*kfreebsd*-gnu) 9783 LD="${LD-ld} -m elf_x86_64_fbsd" 9784 ;; 9785 x86_64-*linux*) 9786 LD="${LD-ld} -m elf_x86_64" 9787 ;; 9788 powerpcle-*linux*) 9789 LD="${LD-ld} -m elf64lppc" 9790 ;; 9791 powerpc-*linux*) 9792 LD="${LD-ld} -m elf64ppc" 9793 ;; 9794 s390*-*linux*|s390*-*tpf*) 9795 LD="${LD-ld} -m elf64_s390" 9796 ;; 9797 sparc*-*linux*) 9798 LD="${LD-ld} -m elf64_sparc" 9799 ;; 9800 esac 9801 ;; 9802 esac 9803 fi 9804 rm -rf conftest* 9805 ;; 9806 9807 *-*-sco3.2v5*) 9808 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 9809 SAVE_CFLAGS="$CFLAGS" 9810 CFLAGS="$CFLAGS -belf" 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 9812 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } 9813 if ${lt_cv_cc_needs_belf+:} false; then : 9814 $as_echo_n "(cached) " >&6 9815 else 9816 ac_ext=c 9817 ac_cpp='$CPP $CPPFLAGS' 9818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9820 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9821 9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9823 /* end confdefs.h. */ 9824 9825 int 9826 main () 9827 { 9828 9829 ; 9830 return 0; 9831 } 9832 _ACEOF 9833 if ac_fn_c_try_link "$LINENO"; then : 9834 lt_cv_cc_needs_belf=yes 9835 else 9836 lt_cv_cc_needs_belf=no 9837 fi 9838 rm -f core conftest.err conftest.$ac_objext \ 9839 conftest$ac_exeext conftest.$ac_ext 9840 ac_ext=c 9841 ac_cpp='$CPP $CPPFLAGS' 9842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9844 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9845 9846 fi 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 9848 $as_echo "$lt_cv_cc_needs_belf" >&6; } 9849 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 9850 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 9851 CFLAGS="$SAVE_CFLAGS" 9852 fi 9853 ;; 9854 sparc*-*solaris*) 9855 # Find out which ABI we are using. 9856 echo 'int i;' > conftest.$ac_ext 9857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9858 (eval $ac_compile) 2>&5 9859 ac_status=$? 9860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9861 test $ac_status = 0; }; then 9862 case `/usr/bin/file conftest.o` in 9863 *64-bit*) 9864 case $lt_cv_prog_gnu_ld in 9865 yes*) LD="${LD-ld} -m elf64_sparc" ;; 9866 *) 9867 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 9868 LD="${LD-ld} -64" 9869 fi 9870 ;; 9871 esac 9872 ;; 9873 esac 9874 fi 9875 rm -rf conftest* 9876 ;; 9877 esac 9878 9879 need_locks="$enable_libtool_lock" 9880 9881 9882 case $host_os in 9883 rhapsody* | darwin*) 9884 if test -n "$ac_tool_prefix"; then 9885 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 9886 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9888 $as_echo_n "checking for $ac_word... " >&6; } 9889 if ${ac_cv_prog_DSYMUTIL+:} false; then : 9890 $as_echo_n "(cached) " >&6 9891 else 9892 if test -n "$DSYMUTIL"; then 9893 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 9894 else 9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9896 for as_dir in $PATH 9897 do 9898 IFS=$as_save_IFS 9899 test -z "$as_dir" && as_dir=. 9900 for ac_exec_ext in '' $ac_executable_extensions; do 9901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9902 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9904 break 2 9905 fi 9906 done 9907 done 9908 IFS=$as_save_IFS 9909 9910 fi 9911 fi 9912 DSYMUTIL=$ac_cv_prog_DSYMUTIL 9913 if test -n "$DSYMUTIL"; then 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 9915 $as_echo "$DSYMUTIL" >&6; } 9916 else 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9918 $as_echo "no" >&6; } 9919 fi 9920 9921 9922 fi 9923 if test -z "$ac_cv_prog_DSYMUTIL"; then 9924 ac_ct_DSYMUTIL=$DSYMUTIL 9925 # Extract the first word of "dsymutil", so it can be a program name with args. 9926 set dummy dsymutil; ac_word=$2 9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9928 $as_echo_n "checking for $ac_word... " >&6; } 9929 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 9930 $as_echo_n "(cached) " >&6 9931 else 9932 if test -n "$ac_ct_DSYMUTIL"; then 9933 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 9934 else 9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9936 for as_dir in $PATH 9937 do 9938 IFS=$as_save_IFS 9939 test -z "$as_dir" && as_dir=. 9940 for ac_exec_ext in '' $ac_executable_extensions; do 9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9942 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9944 break 2 9945 fi 9946 done 9947 done 9948 IFS=$as_save_IFS 9949 9950 fi 9951 fi 9952 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 9953 if test -n "$ac_ct_DSYMUTIL"; then 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 9955 $as_echo "$ac_ct_DSYMUTIL" >&6; } 9956 else 9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9958 $as_echo "no" >&6; } 9959 fi 9960 9961 if test "x$ac_ct_DSYMUTIL" = x; then 9962 DSYMUTIL=":" 9963 else 9964 case $cross_compiling:$ac_tool_warned in 9965 yes:) 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9968 ac_tool_warned=yes ;; 9969 esac 9970 DSYMUTIL=$ac_ct_DSYMUTIL 9971 fi 9972 else 9973 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 9974 fi 9975 9976 if test -n "$ac_tool_prefix"; then 9977 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 9978 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9980 $as_echo_n "checking for $ac_word... " >&6; } 9981 if ${ac_cv_prog_NMEDIT+:} false; then : 9982 $as_echo_n "(cached) " >&6 9983 else 9984 if test -n "$NMEDIT"; then 9985 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 9986 else 9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9988 for as_dir in $PATH 9989 do 9990 IFS=$as_save_IFS 9991 test -z "$as_dir" && as_dir=. 9992 for ac_exec_ext in '' $ac_executable_extensions; do 9993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9994 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9996 break 2 9997 fi 9998 done 9999 done 10000 IFS=$as_save_IFS 10001 10002 fi 10003 fi 10004 NMEDIT=$ac_cv_prog_NMEDIT 10005 if test -n "$NMEDIT"; then 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 10007 $as_echo "$NMEDIT" >&6; } 10008 else 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10010 $as_echo "no" >&6; } 10011 fi 10012 10013 10014 fi 10015 if test -z "$ac_cv_prog_NMEDIT"; then 10016 ac_ct_NMEDIT=$NMEDIT 10017 # Extract the first word of "nmedit", so it can be a program name with args. 10018 set dummy nmedit; ac_word=$2 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10020 $as_echo_n "checking for $ac_word... " >&6; } 10021 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023 else 10024 if test -n "$ac_ct_NMEDIT"; then 10025 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 10026 else 10027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10028 for as_dir in $PATH 10029 do 10030 IFS=$as_save_IFS 10031 test -z "$as_dir" && as_dir=. 10032 for ac_exec_ext in '' $ac_executable_extensions; do 10033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10034 ac_cv_prog_ac_ct_NMEDIT="nmedit" 10035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10036 break 2 10037 fi 10038 done 10039 done 10040 IFS=$as_save_IFS 10041 10042 fi 10043 fi 10044 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 10045 if test -n "$ac_ct_NMEDIT"; then 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 10047 $as_echo "$ac_ct_NMEDIT" >&6; } 10048 else 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10050 $as_echo "no" >&6; } 10051 fi 10052 10053 if test "x$ac_ct_NMEDIT" = x; then 10054 NMEDIT=":" 10055 else 10056 case $cross_compiling:$ac_tool_warned in 10057 yes:) 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10060 ac_tool_warned=yes ;; 10061 esac 10062 NMEDIT=$ac_ct_NMEDIT 10063 fi 10064 else 10065 NMEDIT="$ac_cv_prog_NMEDIT" 10066 fi 10067 10068 if test -n "$ac_tool_prefix"; then 10069 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 10070 set dummy ${ac_tool_prefix}lipo; ac_word=$2 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10072 $as_echo_n "checking for $ac_word... " >&6; } 10073 if ${ac_cv_prog_LIPO+:} false; then : 10074 $as_echo_n "(cached) " >&6 10075 else 10076 if test -n "$LIPO"; then 10077 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 10078 else 10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10080 for as_dir in $PATH 10081 do 10082 IFS=$as_save_IFS 10083 test -z "$as_dir" && as_dir=. 10084 for ac_exec_ext in '' $ac_executable_extensions; do 10085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10086 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10088 break 2 10089 fi 10090 done 10091 done 10092 IFS=$as_save_IFS 10093 10094 fi 10095 fi 10096 LIPO=$ac_cv_prog_LIPO 10097 if test -n "$LIPO"; then 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 10099 $as_echo "$LIPO" >&6; } 10100 else 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10102 $as_echo "no" >&6; } 10103 fi 10104 10105 10106 fi 10107 if test -z "$ac_cv_prog_LIPO"; then 10108 ac_ct_LIPO=$LIPO 10109 # Extract the first word of "lipo", so it can be a program name with args. 10110 set dummy lipo; ac_word=$2 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10112 $as_echo_n "checking for $ac_word... " >&6; } 10113 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115 else 10116 if test -n "$ac_ct_LIPO"; then 10117 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 10118 else 10119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10120 for as_dir in $PATH 10121 do 10122 IFS=$as_save_IFS 10123 test -z "$as_dir" && as_dir=. 10124 for ac_exec_ext in '' $ac_executable_extensions; do 10125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10126 ac_cv_prog_ac_ct_LIPO="lipo" 10127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10128 break 2 10129 fi 10130 done 10131 done 10132 IFS=$as_save_IFS 10133 10134 fi 10135 fi 10136 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 10137 if test -n "$ac_ct_LIPO"; then 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 10139 $as_echo "$ac_ct_LIPO" >&6; } 10140 else 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10142 $as_echo "no" >&6; } 10143 fi 10144 10145 if test "x$ac_ct_LIPO" = x; then 10146 LIPO=":" 10147 else 10148 case $cross_compiling:$ac_tool_warned in 10149 yes:) 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10152 ac_tool_warned=yes ;; 10153 esac 10154 LIPO=$ac_ct_LIPO 10155 fi 10156 else 10157 LIPO="$ac_cv_prog_LIPO" 10158 fi 10159 10160 if test -n "$ac_tool_prefix"; then 10161 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 10162 set dummy ${ac_tool_prefix}otool; ac_word=$2 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10164 $as_echo_n "checking for $ac_word... " >&6; } 10165 if ${ac_cv_prog_OTOOL+:} false; then : 10166 $as_echo_n "(cached) " >&6 10167 else 10168 if test -n "$OTOOL"; then 10169 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 10170 else 10171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10172 for as_dir in $PATH 10173 do 10174 IFS=$as_save_IFS 10175 test -z "$as_dir" && as_dir=. 10176 for ac_exec_ext in '' $ac_executable_extensions; do 10177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10178 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 10179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10180 break 2 10181 fi 10182 done 10183 done 10184 IFS=$as_save_IFS 10185 10186 fi 10187 fi 10188 OTOOL=$ac_cv_prog_OTOOL 10189 if test -n "$OTOOL"; then 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 10191 $as_echo "$OTOOL" >&6; } 10192 else 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10194 $as_echo "no" >&6; } 10195 fi 10196 10197 10198 fi 10199 if test -z "$ac_cv_prog_OTOOL"; then 10200 ac_ct_OTOOL=$OTOOL 10201 # Extract the first word of "otool", so it can be a program name with args. 10202 set dummy otool; ac_word=$2 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10204 $as_echo_n "checking for $ac_word... " >&6; } 10205 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 10206 $as_echo_n "(cached) " >&6 10207 else 10208 if test -n "$ac_ct_OTOOL"; then 10209 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 10210 else 10211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10212 for as_dir in $PATH 10213 do 10214 IFS=$as_save_IFS 10215 test -z "$as_dir" && as_dir=. 10216 for ac_exec_ext in '' $ac_executable_extensions; do 10217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10218 ac_cv_prog_ac_ct_OTOOL="otool" 10219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10220 break 2 10221 fi 10222 done 10223 done 10224 IFS=$as_save_IFS 10225 10226 fi 10227 fi 10228 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 10229 if test -n "$ac_ct_OTOOL"; then 10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 10231 $as_echo "$ac_ct_OTOOL" >&6; } 10232 else 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10234 $as_echo "no" >&6; } 10235 fi 10236 10237 if test "x$ac_ct_OTOOL" = x; then 10238 OTOOL=":" 10239 else 10240 case $cross_compiling:$ac_tool_warned in 10241 yes:) 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10244 ac_tool_warned=yes ;; 10245 esac 10246 OTOOL=$ac_ct_OTOOL 10247 fi 10248 else 10249 OTOOL="$ac_cv_prog_OTOOL" 10250 fi 10251 10252 if test -n "$ac_tool_prefix"; then 10253 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 10254 set dummy ${ac_tool_prefix}otool64; ac_word=$2 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10256 $as_echo_n "checking for $ac_word... " >&6; } 10257 if ${ac_cv_prog_OTOOL64+:} false; then : 10258 $as_echo_n "(cached) " >&6 10259 else 10260 if test -n "$OTOOL64"; then 10261 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 10262 else 10263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10264 for as_dir in $PATH 10265 do 10266 IFS=$as_save_IFS 10267 test -z "$as_dir" && as_dir=. 10268 for ac_exec_ext in '' $ac_executable_extensions; do 10269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10270 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10272 break 2 10273 fi 10274 done 10275 done 10276 IFS=$as_save_IFS 10277 10278 fi 10279 fi 10280 OTOOL64=$ac_cv_prog_OTOOL64 10281 if test -n "$OTOOL64"; then 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 10283 $as_echo "$OTOOL64" >&6; } 10284 else 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10286 $as_echo "no" >&6; } 10287 fi 10288 10289 10290 fi 10291 if test -z "$ac_cv_prog_OTOOL64"; then 10292 ac_ct_OTOOL64=$OTOOL64 10293 # Extract the first word of "otool64", so it can be a program name with args. 10294 set dummy otool64; ac_word=$2 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10296 $as_echo_n "checking for $ac_word... " >&6; } 10297 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 10298 $as_echo_n "(cached) " >&6 10299 else 10300 if test -n "$ac_ct_OTOOL64"; then 10301 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 10302 else 10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10304 for as_dir in $PATH 10305 do 10306 IFS=$as_save_IFS 10307 test -z "$as_dir" && as_dir=. 10308 for ac_exec_ext in '' $ac_executable_extensions; do 10309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10310 ac_cv_prog_ac_ct_OTOOL64="otool64" 10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10312 break 2 10313 fi 10314 done 10315 done 10316 IFS=$as_save_IFS 10317 10318 fi 10319 fi 10320 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 10321 if test -n "$ac_ct_OTOOL64"; then 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 10323 $as_echo "$ac_ct_OTOOL64" >&6; } 10324 else 10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10326 $as_echo "no" >&6; } 10327 fi 10328 10329 if test "x$ac_ct_OTOOL64" = x; then 10330 OTOOL64=":" 10331 else 10332 case $cross_compiling:$ac_tool_warned in 10333 yes:) 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10336 ac_tool_warned=yes ;; 10337 esac 10338 OTOOL64=$ac_ct_OTOOL64 10339 fi 10340 else 10341 OTOOL64="$ac_cv_prog_OTOOL64" 10342 fi 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 10371 $as_echo_n "checking for -single_module linker flag... " >&6; } 10372 if ${lt_cv_apple_cc_single_mod+:} false; then : 10373 $as_echo_n "(cached) " >&6 10374 else 10375 lt_cv_apple_cc_single_mod=no 10376 if test -z "${LT_MULTI_MODULE}"; then 10377 # By default we will add the -single_module flag. You can override 10378 # by either setting the environment variable LT_MULTI_MODULE 10379 # non-empty at configure time, or by adding -multi_module to the 10380 # link flags. 10381 rm -rf libconftest.dylib* 10382 echo "int foo(void){return 1;}" > conftest.c 10383 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10384 -dynamiclib -Wl,-single_module conftest.c" >&5 10385 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10386 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10387 _lt_result=$? 10388 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 10389 lt_cv_apple_cc_single_mod=yes 10390 else 10391 cat conftest.err >&5 10392 fi 10393 rm -rf libconftest.dylib* 10394 rm -f conftest.* 10395 fi 10396 fi 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 10398 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } 10399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 10400 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 10401 if ${lt_cv_ld_exported_symbols_list+:} false; then : 10402 $as_echo_n "(cached) " >&6 10403 else 10404 lt_cv_ld_exported_symbols_list=no 10405 save_LDFLAGS=$LDFLAGS 10406 echo "_main" > conftest.sym 10407 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10409 /* end confdefs.h. */ 10410 10411 int 10412 main () 10413 { 10414 10415 ; 10416 return 0; 10417 } 10418 _ACEOF 10419 if ac_fn_c_try_link "$LINENO"; then : 10420 lt_cv_ld_exported_symbols_list=yes 10421 else 10422 lt_cv_ld_exported_symbols_list=no 10423 fi 10424 rm -f core conftest.err conftest.$ac_objext \ 10425 conftest$ac_exeext conftest.$ac_ext 10426 LDFLAGS="$save_LDFLAGS" 10427 10428 fi 10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 10430 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 10432 $as_echo_n "checking for -force_load linker flag... " >&6; } 10433 if ${lt_cv_ld_force_load+:} false; then : 10434 $as_echo_n "(cached) " >&6 10435 else 10436 lt_cv_ld_force_load=no 10437 cat > conftest.c << _LT_EOF 10438 int forced_loaded() { return 2;} 10439 _LT_EOF 10440 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 10441 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 10442 echo "$AR cru libconftest.a conftest.o" >&5 10443 $AR cru libconftest.a conftest.o 2>&5 10444 cat > conftest.c << _LT_EOF 10445 int main() { return 0;} 10446 _LT_EOF 10447 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 10448 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10449 _lt_result=$? 10450 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 10451 lt_cv_ld_force_load=yes 10452 else 10453 cat conftest.err >&5 10454 fi 10455 rm -f conftest.err libconftest.a conftest conftest.c 10456 rm -rf conftest.dSYM 10457 10458 fi 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 10460 $as_echo "$lt_cv_ld_force_load" >&6; } 10461 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to 10462 # build without first building modern cctools / linker. 10463 case $host_cpu-$host_os in 10464 *-rhapsody* | *-darwin1.[012]) 10465 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10466 *-darwin1.*) 10467 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10468 *-darwin*) 10469 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the 10470 # deployment target is forced to an earlier version. 10471 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in 10472 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*) 10473 ;; 10474 10.[012][,.]*) 10475 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10476 ;; 10477 *) 10478 ;; 10479 esac 10480 ;; 10481 esac 10482 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10483 _lt_dar_single_mod='$single_module' 10484 fi 10485 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10486 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10487 else 10488 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10489 fi 10490 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10491 _lt_dsymutil='~$DSYMUTIL $lib || :' 10492 else 10493 _lt_dsymutil= 10494 fi 10495 ;; 10496 esac 10497 10498 for ac_header in dlfcn.h 10499 do : 10500 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 10501 " 10502 if test "x$ac_cv_header_dlfcn_h" = xyes; then : 10503 cat >>confdefs.h <<_ACEOF 10504 #define HAVE_DLFCN_H 1 10505 _ACEOF 10506 10507 fi 10508 10509 done 10510 10511 10512 10513 10514 10515 # Set options 10516 10517 10518 10519 enable_dlopen=no 10520 10521 10522 enable_win32_dll=no 10523 10524 10525 10526 # Check whether --enable-static was given. 10527 if test "${enable_static+set}" = set; then : 10528 enableval=$enable_static; p=${PACKAGE-default} 10529 case $enableval in 10530 yes) enable_static=yes ;; 10531 no) enable_static=no ;; 10532 *) 10533 enable_static=no 10534 # Look at the argument we got. We use all the common list separators. 10535 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10536 for pkg in $enableval; do 10537 IFS="$lt_save_ifs" 10538 if test "X$pkg" = "X$p"; then 10539 enable_static=yes 10540 fi 10541 done 10542 IFS="$lt_save_ifs" 10543 ;; 10544 esac 10545 else 10546 enable_static=yes 10547 fi 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 # Check whether --with-pic was given. 10559 if test "${with_pic+set}" = set; then : 10560 withval=$with_pic; pic_mode="$withval" 10561 else 10562 pic_mode=default 10563 fi 10564 10565 10566 test -z "$pic_mode" && pic_mode=default 10567 10568 10569 10570 10571 10572 10573 10574 # Check whether --enable-fast-install was given. 10575 if test "${enable_fast_install+set}" = set; then : 10576 enableval=$enable_fast_install; p=${PACKAGE-default} 10577 case $enableval in 10578 yes) enable_fast_install=yes ;; 10579 no) enable_fast_install=no ;; 10580 *) 10581 enable_fast_install=no 10582 # Look at the argument we got. We use all the common list separators. 10583 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10584 for pkg in $enableval; do 10585 IFS="$lt_save_ifs" 10586 if test "X$pkg" = "X$p"; then 10587 enable_fast_install=yes 10588 fi 10589 done 10590 IFS="$lt_save_ifs" 10591 ;; 10592 esac 10593 else 10594 enable_fast_install=yes 10595 fi 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 # This can be used to rebuild libtool when needed 10608 LIBTOOL_DEPS="$ltmain" 10609 10610 # Always use our own libtool. 10611 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 test -z "$LN_S" && LN_S="ln -s" 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 if test -n "${ZSH_VERSION+set}" ; then 10654 setopt NO_GLOB_SUBST 10655 fi 10656 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 10658 $as_echo_n "checking for objdir... " >&6; } 10659 if ${lt_cv_objdir+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661 else 10662 rm -f .libs 2>/dev/null 10663 mkdir .libs 2>/dev/null 10664 if test -d .libs; then 10665 lt_cv_objdir=.libs 10666 else 10667 # MS-DOS does not allow filenames that begin with a dot. 10668 lt_cv_objdir=_libs 10669 fi 10670 rmdir .libs 2>/dev/null 10671 fi 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 10673 $as_echo "$lt_cv_objdir" >&6; } 10674 objdir=$lt_cv_objdir 10675 10676 10677 10678 10679 10680 cat >>confdefs.h <<_ACEOF 10681 #define LT_OBJDIR "$lt_cv_objdir/" 10682 _ACEOF 10683 10684 10685 10686 10687 case $host_os in 10688 aix3*) 10689 # AIX sometimes has problems with the GCC collect2 program. For some 10690 # reason, if we set the COLLECT_NAMES environment variable, the problems 10691 # vanish in a puff of smoke. 10692 if test "X${COLLECT_NAMES+set}" != Xset; then 10693 COLLECT_NAMES= 10694 export COLLECT_NAMES 10695 fi 10696 ;; 10697 esac 10698 10699 # Global variables: 10700 ofile=libtool 10701 can_build_shared=yes 10702 10703 # All known linkers require a `.a' archive for static linking (except MSVC, 10704 # which needs '.lib'). 10705 libext=a 10706 10707 with_gnu_ld="$lt_cv_prog_gnu_ld" 10708 10709 old_CC="$CC" 10710 old_CFLAGS="$CFLAGS" 10711 10712 # Set sane defaults for various variables 10713 test -z "$CC" && CC=cc 10714 test -z "$LTCC" && LTCC=$CC 10715 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 10716 test -z "$LD" && LD=ld 10717 test -z "$ac_objext" && ac_objext=o 10718 10719 for cc_temp in $compiler""; do 10720 case $cc_temp in 10721 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10722 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10723 \-*) ;; 10724 *) break;; 10725 esac 10726 done 10727 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 10728 10729 10730 # Only perform the check for file, if the check method requires it 10731 test -z "$MAGIC_CMD" && MAGIC_CMD=file 10732 case $deplibs_check_method in 10733 file_magic*) 10734 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 10736 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 10737 if ${lt_cv_path_MAGIC_CMD+:} false; then : 10738 $as_echo_n "(cached) " >&6 10739 else 10740 case $MAGIC_CMD in 10741 [\\/*] | ?:[\\/]*) 10742 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10743 ;; 10744 *) 10745 lt_save_MAGIC_CMD="$MAGIC_CMD" 10746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10747 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10748 for ac_dir in $ac_dummy; do 10749 IFS="$lt_save_ifs" 10750 test -z "$ac_dir" && ac_dir=. 10751 if test -f $ac_dir/${ac_tool_prefix}file; then 10752 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 10753 if test -n "$file_magic_test_file"; then 10754 case $deplibs_check_method in 10755 "file_magic "*) 10756 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10757 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10758 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10759 $EGREP "$file_magic_regex" > /dev/null; then 10760 : 10761 else 10762 cat <<_LT_EOF 1>&2 10763 10764 *** Warning: the command libtool uses to detect shared libraries, 10765 *** $file_magic_cmd, produces output that libtool cannot recognize. 10766 *** The result is that libtool may fail to recognize shared libraries 10767 *** as such. This will affect the creation of libtool libraries that 10768 *** depend on shared libraries, but programs linked with such libtool 10769 *** libraries will work regardless of this problem. Nevertheless, you 10770 *** may want to report the problem to your system manager and/or to 10771 *** bug-libtool@gnu.org 10772 10773 _LT_EOF 10774 fi ;; 10775 esac 10776 fi 10777 break 10778 fi 10779 done 10780 IFS="$lt_save_ifs" 10781 MAGIC_CMD="$lt_save_MAGIC_CMD" 10782 ;; 10783 esac 10784 fi 10785 10786 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10787 if test -n "$MAGIC_CMD"; then 10788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10789 $as_echo "$MAGIC_CMD" >&6; } 10790 else 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10792 $as_echo "no" >&6; } 10793 fi 10794 10795 10796 10797 10798 10799 if test -z "$lt_cv_path_MAGIC_CMD"; then 10800 if test -n "$ac_tool_prefix"; then 10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 10802 $as_echo_n "checking for file... " >&6; } 10803 if ${lt_cv_path_MAGIC_CMD+:} false; then : 10804 $as_echo_n "(cached) " >&6 10805 else 10806 case $MAGIC_CMD in 10807 [\\/*] | ?:[\\/]*) 10808 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10809 ;; 10810 *) 10811 lt_save_MAGIC_CMD="$MAGIC_CMD" 10812 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10813 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10814 for ac_dir in $ac_dummy; do 10815 IFS="$lt_save_ifs" 10816 test -z "$ac_dir" && ac_dir=. 10817 if test -f $ac_dir/file; then 10818 lt_cv_path_MAGIC_CMD="$ac_dir/file" 10819 if test -n "$file_magic_test_file"; then 10820 case $deplibs_check_method in 10821 "file_magic "*) 10822 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10823 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10824 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10825 $EGREP "$file_magic_regex" > /dev/null; then 10826 : 10827 else 10828 cat <<_LT_EOF 1>&2 10829 10830 *** Warning: the command libtool uses to detect shared libraries, 10831 *** $file_magic_cmd, produces output that libtool cannot recognize. 10832 *** The result is that libtool may fail to recognize shared libraries 10833 *** as such. This will affect the creation of libtool libraries that 10834 *** depend on shared libraries, but programs linked with such libtool 10835 *** libraries will work regardless of this problem. Nevertheless, you 10836 *** may want to report the problem to your system manager and/or to 10837 *** bug-libtool@gnu.org 10838 10839 _LT_EOF 10840 fi ;; 10841 esac 10842 fi 10843 break 10844 fi 10845 done 10846 IFS="$lt_save_ifs" 10847 MAGIC_CMD="$lt_save_MAGIC_CMD" 10848 ;; 10849 esac 10850 fi 10851 10852 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10853 if test -n "$MAGIC_CMD"; then 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10855 $as_echo "$MAGIC_CMD" >&6; } 10856 else 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10858 $as_echo "no" >&6; } 10859 fi 10860 10861 10862 else 10863 MAGIC_CMD=: 10864 fi 10865 fi 10866 10867 fi 10868 ;; 10869 esac 10870 10871 # Use C for the default configuration in the libtool script 10872 10873 lt_save_CC="$CC" 10874 ac_ext=c 10875 ac_cpp='$CPP $CPPFLAGS' 10876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10878 ac_compiler_gnu=$ac_cv_c_compiler_gnu 10879 10880 10881 # Source file extension for C test sources. 10882 ac_ext=c 10883 10884 # Object file extension for compiled C test sources. 10885 objext=o 10886 objext=$objext 10887 10888 # Code to be used in simple compile tests 10889 lt_simple_compile_test_code="int some_variable = 0;" 10890 10891 # Code to be used in simple link tests 10892 lt_simple_link_test_code='int main(){return(0);}' 10893 10894 10895 10896 10897 10898 10899 10900 # If no C compiler was specified, use CC. 10901 LTCC=${LTCC-"$CC"} 10902 10903 # If no C compiler flags were specified, use CFLAGS. 10904 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10905 10906 # Allow CC to be a program name with arguments. 10907 compiler=$CC 10908 10909 # Save the default compiler, since it gets overwritten when the other 10910 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10911 compiler_DEFAULT=$CC 10912 10913 # save warnings/boilerplate of simple test code 10914 ac_outfile=conftest.$ac_objext 10915 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10916 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10917 _lt_compiler_boilerplate=`cat conftest.err` 10918 $RM conftest* 10919 10920 ac_outfile=conftest.$ac_objext 10921 echo "$lt_simple_link_test_code" >conftest.$ac_ext 10922 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10923 _lt_linker_boilerplate=`cat conftest.err` 10924 $RM -r conftest* 10925 10926 10927 ## CAVEAT EMPTOR: 10928 ## There is no encapsulation within the following macros, do not change 10929 ## the running order or otherwise move them around unless you know exactly 10930 ## what you are doing... 10931 if test -n "$compiler"; then 10932 10933 lt_prog_compiler_no_builtin_flag= 10934 10935 if test "$GCC" = yes; then 10936 case $cc_basename in 10937 nvcc*) 10938 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10939 *) 10940 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10941 esac 10942 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10944 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10945 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10946 $as_echo_n "(cached) " >&6 10947 else 10948 lt_cv_prog_compiler_rtti_exceptions=no 10949 ac_outfile=conftest.$ac_objext 10950 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10951 lt_compiler_flag="-fno-rtti -fno-exceptions" 10952 # Insert the option either (1) after the last *FLAGS variable, or 10953 # (2) before a word containing "conftest.", or (3) at the end. 10954 # Note that $ac_compile itself does not contain backslashes and begins 10955 # with a dollar sign (not a hyphen), so the echo should work correctly. 10956 # The option is referenced via a variable to avoid confusing sed. 10957 lt_compile=`echo "$ac_compile" | $SED \ 10958 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10959 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10960 -e 's:$: $lt_compiler_flag:'` 10961 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10962 (eval "$lt_compile" 2>conftest.err) 10963 ac_status=$? 10964 cat conftest.err >&5 10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10966 if (exit $ac_status) && test -s "$ac_outfile"; then 10967 # The compiler can only warn and ignore the option if not recognized 10968 # So say no if there are warnings other than the usual output. 10969 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10970 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10971 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10972 lt_cv_prog_compiler_rtti_exceptions=yes 10973 fi 10974 fi 10975 $RM conftest* 10976 10977 fi 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10979 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10980 10981 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10982 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10983 else 10984 : 10985 fi 10986 10987 fi 10988 10989 10990 10991 10992 10993 10994 lt_prog_compiler_wl= 10995 lt_prog_compiler_pic= 10996 lt_prog_compiler_static= 10997 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10999 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } 11000 11001 if test "$GCC" = yes; then 11002 lt_prog_compiler_wl='-Wl,' 11003 lt_prog_compiler_static='-static' 11004 11005 case $host_os in 11006 aix*) 11007 # All AIX code is PIC. 11008 if test "$host_cpu" = ia64; then 11009 # AIX 5 now supports IA64 processor 11010 lt_prog_compiler_static='-Bstatic' 11011 fi 11012 lt_prog_compiler_pic='-fPIC' 11013 ;; 11014 11015 amigaos*) 11016 case $host_cpu in 11017 powerpc) 11018 # see comment about AmigaOS4 .so support 11019 lt_prog_compiler_pic='-fPIC' 11020 ;; 11021 m68k) 11022 # FIXME: we need at least 68020 code to build shared libraries, but 11023 # adding the `-m68020' flag to GCC prevents building anything better, 11024 # like `-m68040'. 11025 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 11026 ;; 11027 esac 11028 ;; 11029 11030 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11031 # PIC is the default for these OSes. 11032 ;; 11033 11034 mingw* | cygwin* | pw32* | os2* | cegcc*) 11035 # This hack is so that the source file can tell whether it is being 11036 # built for inclusion in a dll (and should export symbols for example). 11037 # Although the cygwin gcc ignores -fPIC, still need this for old-style 11038 # (--disable-auto-import) libraries 11039 lt_prog_compiler_pic='-DDLL_EXPORT' 11040 ;; 11041 11042 darwin* | rhapsody*) 11043 # PIC is the default on this platform 11044 # Common symbols not allowed in MH_DYLIB files 11045 lt_prog_compiler_pic='-fno-common' 11046 ;; 11047 11048 haiku*) 11049 # PIC is the default for Haiku. 11050 # The "-static" flag exists, but is broken. 11051 lt_prog_compiler_static= 11052 ;; 11053 11054 hpux*) 11055 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 11056 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 11057 # sets the default TLS model and affects inlining. 11058 case $host_cpu in 11059 hppa*64*) 11060 # +Z the default 11061 ;; 11062 *) 11063 lt_prog_compiler_pic='-fPIC' 11064 ;; 11065 esac 11066 ;; 11067 11068 interix[3-9]*) 11069 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 11070 # Instead, we relocate shared libraries at runtime. 11071 ;; 11072 11073 msdosdjgpp*) 11074 # Just because we use GCC doesn't mean we suddenly get shared libraries 11075 # on systems that don't support them. 11076 lt_prog_compiler_can_build_shared=no 11077 enable_shared=no 11078 ;; 11079 11080 *nto* | *qnx*) 11081 # QNX uses GNU C++, but need to define -shared option too, otherwise 11082 # it will coredump. 11083 lt_prog_compiler_pic='-fPIC -shared' 11084 ;; 11085 11086 sysv4*MP*) 11087 if test -d /usr/nec; then 11088 lt_prog_compiler_pic=-Kconform_pic 11089 fi 11090 ;; 11091 11092 *) 11093 lt_prog_compiler_pic='-fPIC' 11094 ;; 11095 esac 11096 11097 case $cc_basename in 11098 nvcc*) # Cuda Compiler Driver 2.2 11099 lt_prog_compiler_wl='-Xlinker ' 11100 lt_prog_compiler_pic='-Xcompiler -fPIC' 11101 ;; 11102 esac 11103 else 11104 # PORTME Check for flag to pass linker flags through the system compiler. 11105 case $host_os in 11106 aix*) 11107 lt_prog_compiler_wl='-Wl,' 11108 if test "$host_cpu" = ia64; then 11109 # AIX 5 now supports IA64 processor 11110 lt_prog_compiler_static='-Bstatic' 11111 else 11112 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 11113 fi 11114 ;; 11115 11116 mingw* | cygwin* | pw32* | os2* | cegcc*) 11117 # This hack is so that the source file can tell whether it is being 11118 # built for inclusion in a dll (and should export symbols for example). 11119 lt_prog_compiler_pic='-DDLL_EXPORT' 11120 ;; 11121 11122 hpux9* | hpux10* | hpux11*) 11123 lt_prog_compiler_wl='-Wl,' 11124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11125 # not for PA HP-UX. 11126 case $host_cpu in 11127 hppa*64*|ia64*) 11128 # +Z the default 11129 ;; 11130 *) 11131 lt_prog_compiler_pic='+Z' 11132 ;; 11133 esac 11134 # Is there a better lt_prog_compiler_static that works with the bundled CC? 11135 lt_prog_compiler_static='${wl}-a ${wl}archive' 11136 ;; 11137 11138 irix5* | irix6* | nonstopux*) 11139 lt_prog_compiler_wl='-Wl,' 11140 # PIC (with -KPIC) is the default. 11141 lt_prog_compiler_static='-non_shared' 11142 ;; 11143 11144 linux* | k*bsd*-gnu | kopensolaris*-gnu) 11145 case $cc_basename in 11146 # old Intel for x86_64 which still supported -KPIC. 11147 ecc*) 11148 lt_prog_compiler_wl='-Wl,' 11149 lt_prog_compiler_pic='-KPIC' 11150 lt_prog_compiler_static='-static' 11151 ;; 11152 # icc used to be incompatible with GCC. 11153 # ICC 10 doesn't accept -KPIC any more. 11154 icc* | ifort*) 11155 lt_prog_compiler_wl='-Wl,' 11156 lt_prog_compiler_pic='-fPIC' 11157 lt_prog_compiler_static='-static' 11158 ;; 11159 # Lahey Fortran 8.1. 11160 lf95*) 11161 lt_prog_compiler_wl='-Wl,' 11162 lt_prog_compiler_pic='--shared' 11163 lt_prog_compiler_static='--static' 11164 ;; 11165 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 11166 # Portland Group compilers (*not* the Pentium gcc compiler, 11167 # which looks to be a dead project) 11168 lt_prog_compiler_wl='-Wl,' 11169 lt_prog_compiler_pic='-fpic' 11170 lt_prog_compiler_static='-Bstatic' 11171 ;; 11172 ccc*) 11173 lt_prog_compiler_wl='-Wl,' 11174 # All Alpha code is PIC. 11175 lt_prog_compiler_static='-non_shared' 11176 ;; 11177 xl* | bgxl* | bgf* | mpixl*) 11178 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 11179 lt_prog_compiler_wl='-Wl,' 11180 lt_prog_compiler_pic='-qpic' 11181 lt_prog_compiler_static='-qstaticlink' 11182 ;; 11183 *) 11184 case `$CC -V 2>&1 | sed 5q` in 11185 *Sun\ F* | *Sun*Fortran*) 11186 # Sun Fortran 8.3 passes all unrecognized flags to the linker 11187 lt_prog_compiler_pic='-KPIC' 11188 lt_prog_compiler_static='-Bstatic' 11189 lt_prog_compiler_wl='' 11190 ;; 11191 *Sun\ C*) 11192 # Sun C 5.9 11193 lt_prog_compiler_pic='-KPIC' 11194 lt_prog_compiler_static='-Bstatic' 11195 lt_prog_compiler_wl='-Wl,' 11196 ;; 11197 esac 11198 ;; 11199 esac 11200 ;; 11201 11202 newsos6) 11203 lt_prog_compiler_pic='-KPIC' 11204 lt_prog_compiler_static='-Bstatic' 11205 ;; 11206 11207 *nto* | *qnx*) 11208 # QNX uses GNU C++, but need to define -shared option too, otherwise 11209 # it will coredump. 11210 lt_prog_compiler_pic='-fPIC -shared' 11211 ;; 11212 11213 osf3* | osf4* | osf5*) 11214 lt_prog_compiler_wl='-Wl,' 11215 # All OSF/1 code is PIC. 11216 lt_prog_compiler_static='-non_shared' 11217 ;; 11218 11219 rdos*) 11220 lt_prog_compiler_static='-non_shared' 11221 ;; 11222 11223 solaris*) 11224 lt_prog_compiler_pic='-KPIC' 11225 lt_prog_compiler_static='-Bstatic' 11226 case $cc_basename in 11227 f77* | f90* | f95*) 11228 lt_prog_compiler_wl='-Qoption ld ';; 11229 *) 11230 lt_prog_compiler_wl='-Wl,';; 11231 esac 11232 ;; 11233 11234 sunos4*) 11235 lt_prog_compiler_wl='-Qoption ld ' 11236 lt_prog_compiler_pic='-PIC' 11237 lt_prog_compiler_static='-Bstatic' 11238 ;; 11239 11240 sysv4 | sysv4.2uw2* | sysv4.3*) 11241 lt_prog_compiler_wl='-Wl,' 11242 lt_prog_compiler_pic='-KPIC' 11243 lt_prog_compiler_static='-Bstatic' 11244 ;; 11245 11246 sysv4*MP*) 11247 if test -d /usr/nec ;then 11248 lt_prog_compiler_pic='-Kconform_pic' 11249 lt_prog_compiler_static='-Bstatic' 11250 fi 11251 ;; 11252 11253 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11254 lt_prog_compiler_wl='-Wl,' 11255 lt_prog_compiler_pic='-KPIC' 11256 lt_prog_compiler_static='-Bstatic' 11257 ;; 11258 11259 unicos*) 11260 lt_prog_compiler_wl='-Wl,' 11261 lt_prog_compiler_can_build_shared=no 11262 ;; 11263 11264 uts4*) 11265 lt_prog_compiler_pic='-pic' 11266 lt_prog_compiler_static='-Bstatic' 11267 ;; 11268 11269 *) 11270 lt_prog_compiler_can_build_shared=no 11271 ;; 11272 esac 11273 fi 11274 11275 case $host_os in 11276 # For platforms which do not support PIC, -DPIC is meaningless: 11277 *djgpp*) 11278 lt_prog_compiler_pic= 11279 ;; 11280 *) 11281 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 11282 ;; 11283 esac 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 11285 $as_echo "$lt_prog_compiler_pic" >&6; } 11286 11287 11288 11289 11290 11291 11292 # 11293 # Check to make sure the PIC flag actually works. 11294 # 11295 if test -n "$lt_prog_compiler_pic"; then 11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 11297 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 11298 if ${lt_cv_prog_compiler_pic_works+:} false; then : 11299 $as_echo_n "(cached) " >&6 11300 else 11301 lt_cv_prog_compiler_pic_works=no 11302 ac_outfile=conftest.$ac_objext 11303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 11305 # Insert the option either (1) after the last *FLAGS variable, or 11306 # (2) before a word containing "conftest.", or (3) at the end. 11307 # Note that $ac_compile itself does not contain backslashes and begins 11308 # with a dollar sign (not a hyphen), so the echo should work correctly. 11309 # The option is referenced via a variable to avoid confusing sed. 11310 lt_compile=`echo "$ac_compile" | $SED \ 11311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11313 -e 's:$: $lt_compiler_flag:'` 11314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11315 (eval "$lt_compile" 2>conftest.err) 11316 ac_status=$? 11317 cat conftest.err >&5 11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11319 if (exit $ac_status) && test -s "$ac_outfile"; then 11320 # The compiler can only warn and ignore the option if not recognized 11321 # So say no if there are warnings other than the usual output. 11322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 11323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11325 lt_cv_prog_compiler_pic_works=yes 11326 fi 11327 fi 11328 $RM conftest* 11329 11330 fi 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 11332 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 11333 11334 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 11335 case $lt_prog_compiler_pic in 11336 "" | " "*) ;; 11337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 11338 esac 11339 else 11340 lt_prog_compiler_pic= 11341 lt_prog_compiler_can_build_shared=no 11342 fi 11343 11344 fi 11345 11346 11347 11348 11349 11350 11351 # 11352 # Check to make sure the static flag actually works. 11353 # 11354 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11356 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 11357 if ${lt_cv_prog_compiler_static_works+:} false; then : 11358 $as_echo_n "(cached) " >&6 11359 else 11360 lt_cv_prog_compiler_static_works=no 11361 save_LDFLAGS="$LDFLAGS" 11362 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11363 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11364 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11365 # The linker can only warn and ignore the option if not recognized 11366 # So say no if there are warnings 11367 if test -s conftest.err; then 11368 # Append any errors to the config.log. 11369 cat conftest.err 1>&5 11370 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11372 if diff conftest.exp conftest.er2 >/dev/null; then 11373 lt_cv_prog_compiler_static_works=yes 11374 fi 11375 else 11376 lt_cv_prog_compiler_static_works=yes 11377 fi 11378 fi 11379 $RM -r conftest* 11380 LDFLAGS="$save_LDFLAGS" 11381 11382 fi 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 11384 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } 11385 11386 if test x"$lt_cv_prog_compiler_static_works" = xyes; then 11387 : 11388 else 11389 lt_prog_compiler_static= 11390 fi 11391 11392 11393 11394 11395 11396 11397 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11400 if ${lt_cv_prog_compiler_c_o+:} false; then : 11401 $as_echo_n "(cached) " >&6 11402 else 11403 lt_cv_prog_compiler_c_o=no 11404 $RM -r conftest 2>/dev/null 11405 mkdir conftest 11406 cd conftest 11407 mkdir out 11408 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11409 11410 lt_compiler_flag="-o out/conftest2.$ac_objext" 11411 # Insert the option either (1) after the last *FLAGS variable, or 11412 # (2) before a word containing "conftest.", or (3) at the end. 11413 # Note that $ac_compile itself does not contain backslashes and begins 11414 # with a dollar sign (not a hyphen), so the echo should work correctly. 11415 lt_compile=`echo "$ac_compile" | $SED \ 11416 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11417 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11418 -e 's:$: $lt_compiler_flag:'` 11419 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11420 (eval "$lt_compile" 2>out/conftest.err) 11421 ac_status=$? 11422 cat out/conftest.err >&5 11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11424 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11425 then 11426 # The compiler can only warn and ignore the option if not recognized 11427 # So say no if there are warnings 11428 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11429 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11430 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11431 lt_cv_prog_compiler_c_o=yes 11432 fi 11433 fi 11434 chmod u+w . 2>&5 11435 $RM conftest* 11436 # SGI C++ compiler will create directory out/ii_files/ for 11437 # template instantiation 11438 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11439 $RM out/* && rmdir out 11440 cd .. 11441 $RM -r conftest 11442 $RM conftest* 11443 11444 fi 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11446 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11447 11448 11449 11450 11451 11452 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 11454 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 11455 if ${lt_cv_prog_compiler_c_o+:} false; then : 11456 $as_echo_n "(cached) " >&6 11457 else 11458 lt_cv_prog_compiler_c_o=no 11459 $RM -r conftest 2>/dev/null 11460 mkdir conftest 11461 cd conftest 11462 mkdir out 11463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11464 11465 lt_compiler_flag="-o out/conftest2.$ac_objext" 11466 # Insert the option either (1) after the last *FLAGS variable, or 11467 # (2) before a word containing "conftest.", or (3) at the end. 11468 # Note that $ac_compile itself does not contain backslashes and begins 11469 # with a dollar sign (not a hyphen), so the echo should work correctly. 11470 lt_compile=`echo "$ac_compile" | $SED \ 11471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11473 -e 's:$: $lt_compiler_flag:'` 11474 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 11475 (eval "$lt_compile" 2>out/conftest.err) 11476 ac_status=$? 11477 cat out/conftest.err >&5 11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11479 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11480 then 11481 # The compiler can only warn and ignore the option if not recognized 11482 # So say no if there are warnings 11483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 11484 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11485 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11486 lt_cv_prog_compiler_c_o=yes 11487 fi 11488 fi 11489 chmod u+w . 2>&5 11490 $RM conftest* 11491 # SGI C++ compiler will create directory out/ii_files/ for 11492 # template instantiation 11493 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11494 $RM out/* && rmdir out 11495 cd .. 11496 $RM -r conftest 11497 $RM conftest* 11498 11499 fi 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 11501 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } 11502 11503 11504 11505 11506 hard_links="nottested" 11507 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 11508 # do not overwrite the value of need_locks provided by the user 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 11510 $as_echo_n "checking if we can lock with hard links... " >&6; } 11511 hard_links=yes 11512 $RM conftest* 11513 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11514 touch conftest.a 11515 ln conftest.a conftest.b 2>&5 || hard_links=no 11516 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 11518 $as_echo "$hard_links" >&6; } 11519 if test "$hard_links" = no; then 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11521 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11522 need_locks=warn 11523 fi 11524 else 11525 need_locks=no 11526 fi 11527 11528 11529 11530 11531 11532 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11534 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11535 11536 runpath_var= 11537 allow_undefined_flag= 11538 always_export_symbols=no 11539 archive_cmds= 11540 archive_expsym_cmds= 11541 compiler_needs_object=no 11542 enable_shared_with_static_runtimes=no 11543 export_dynamic_flag_spec= 11544 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11545 hardcode_automatic=no 11546 hardcode_direct=no 11547 hardcode_direct_absolute=no 11548 hardcode_libdir_flag_spec= 11549 hardcode_libdir_flag_spec_ld= 11550 hardcode_libdir_separator= 11551 hardcode_minus_L=no 11552 hardcode_shlibpath_var=unsupported 11553 inherit_rpath=no 11554 link_all_deplibs=unknown 11555 module_cmds= 11556 module_expsym_cmds= 11557 old_archive_from_new_cmds= 11558 old_archive_from_expsyms_cmds= 11559 thread_safe_flag_spec= 11560 whole_archive_flag_spec= 11561 # include_expsyms should be a list of space-separated symbols to be *always* 11562 # included in the symbol list 11563 include_expsyms= 11564 # exclude_expsyms can be an extended regexp of symbols to exclude 11565 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11566 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11567 # as well as any symbol that contains `d'. 11568 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 11569 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11570 # platforms (ab)use it in PIC code, but their linkers get confused if 11571 # the symbol is explicitly referenced. Since portable code cannot 11572 # rely on this symbol name, it's probably fine to never include it in 11573 # preloaded symbol tables. 11574 # Exclude shared library initialization/finalization symbols. 11575 extract_expsyms_cmds= 11576 11577 case $host_os in 11578 cygwin* | mingw* | pw32* | cegcc*) 11579 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11580 # When not using gcc, we currently assume that we are using 11581 # Microsoft Visual C++. 11582 if test "$GCC" != yes; then 11583 with_gnu_ld=no 11584 fi 11585 ;; 11586 interix*) 11587 # we just hope/assume this is gcc and not c89 (= MSVC++) 11588 with_gnu_ld=yes 11589 ;; 11590 openbsd*) 11591 with_gnu_ld=no 11592 ;; 11593 esac 11594 11595 ld_shlibs=yes 11596 11597 # On some targets, GNU ld is compatible enough with the native linker 11598 # that we're better off using the native interface for both. 11599 lt_use_gnu_ld_interface=no 11600 if test "$with_gnu_ld" = yes; then 11601 case $host_os in 11602 aix*) 11603 # The AIX port of GNU ld has always aspired to compatibility 11604 # with the native linker. However, as the warning in the GNU ld 11605 # block says, versions before 2.19.5* couldn't really create working 11606 # shared libraries, regardless of the interface used. 11607 case `$LD -v 2>&1` in 11608 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 11609 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 11610 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 11611 *) 11612 lt_use_gnu_ld_interface=yes 11613 ;; 11614 esac 11615 ;; 11616 *) 11617 lt_use_gnu_ld_interface=yes 11618 ;; 11619 esac 11620 fi 11621 11622 if test "$lt_use_gnu_ld_interface" = yes; then 11623 # If archive_cmds runs LD, not CC, wlarc should be empty 11624 wlarc='${wl}' 11625 11626 # Set some defaults for GNU ld with shared library support. These 11627 # are reset later if shared libraries are not supported. Putting them 11628 # here allows them to be overridden if necessary. 11629 runpath_var=LD_RUN_PATH 11630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11631 export_dynamic_flag_spec='${wl}--export-dynamic' 11632 # ancient GNU ld didn't support --whole-archive et. al. 11633 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11634 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11635 else 11636 whole_archive_flag_spec= 11637 fi 11638 supports_anon_versioning=no 11639 case `$LD -v 2>&1` in 11640 *GNU\ gold*) supports_anon_versioning=yes ;; 11641 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11644 *\ 2.11.*) ;; # other 2.11 versions 11645 *) supports_anon_versioning=yes ;; 11646 esac 11647 11648 # See if GNU ld supports shared libraries. 11649 case $host_os in 11650 aix[3-9]*) 11651 # On AIX/PPC, the GNU linker is very broken 11652 if test "$host_cpu" != ia64; then 11653 ld_shlibs=no 11654 cat <<_LT_EOF 1>&2 11655 11656 *** Warning: the GNU linker, at least up to release 2.19, is reported 11657 *** to be unable to reliably create shared libraries on AIX. 11658 *** Therefore, libtool is disabling shared libraries support. If you 11659 *** really care for shared libraries, you may want to install binutils 11660 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 11661 *** You will then need to restart the configuration process. 11662 11663 _LT_EOF 11664 fi 11665 ;; 11666 11667 amigaos*) 11668 case $host_cpu in 11669 powerpc) 11670 # see comment about AmigaOS4 .so support 11671 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11672 archive_expsym_cmds='' 11673 ;; 11674 m68k) 11675 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)' 11676 hardcode_libdir_flag_spec='-L$libdir' 11677 hardcode_minus_L=yes 11678 ;; 11679 esac 11680 ;; 11681 11682 beos*) 11683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11684 allow_undefined_flag=unsupported 11685 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 11686 # support --undefined. This deserves some investigation. FIXME 11687 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11688 else 11689 ld_shlibs=no 11690 fi 11691 ;; 11692 11693 cygwin* | mingw* | pw32* | cegcc*) 11694 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 11695 # as there is no search path for DLLs. 11696 hardcode_libdir_flag_spec='-L$libdir' 11697 export_dynamic_flag_spec='${wl}--export-all-symbols' 11698 allow_undefined_flag=unsupported 11699 always_export_symbols=no 11700 enable_shared_with_static_runtimes=yes 11701 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11702 11703 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11705 # If the export-symbols file already is a .def file (1st line 11706 # is EXPORTS), use it as is; otherwise, prepend... 11707 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11708 cp $export_symbols $output_objdir/$soname.def; 11709 else 11710 echo EXPORTS > $output_objdir/$soname.def; 11711 cat $export_symbols >> $output_objdir/$soname.def; 11712 fi~ 11713 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11714 else 11715 ld_shlibs=no 11716 fi 11717 ;; 11718 11719 haiku*) 11720 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11721 link_all_deplibs=yes 11722 ;; 11723 11724 interix[3-9]*) 11725 hardcode_direct=no 11726 hardcode_shlibpath_var=no 11727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11728 export_dynamic_flag_spec='${wl}-E' 11729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11730 # Instead, shared libraries are loaded at an image base (0x10000000 by 11731 # default) and relocated if they conflict, which is a slow very memory 11732 # consuming and fragmenting process. To avoid this, we pick a random, 11733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11734 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11736 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' 11737 ;; 11738 11739 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi) 11740 tmp_diet=no 11741 if test "$host_os" = linux-dietlibc; then 11742 case $cc_basename in 11743 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11744 esac 11745 fi 11746 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11747 && test "$tmp_diet" = no 11748 then 11749 tmp_addflag=' $pic_flag' 11750 tmp_sharedflag='-shared' 11751 case $cc_basename,$host_cpu in 11752 pgcc*) # Portland Group C compiler 11753 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' 11754 tmp_addflag=' $pic_flag' 11755 ;; 11756 pgf77* | pgf90* | pgf95* | pgfortran*) 11757 # Portland Group f77 and f90 compilers 11758 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' 11759 tmp_addflag=' $pic_flag -Mnomain' ;; 11760 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11761 tmp_addflag=' -i_dynamic' ;; 11762 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11763 tmp_addflag=' -i_dynamic -nofor_main' ;; 11764 ifc* | ifort*) # Intel Fortran compiler 11765 tmp_addflag=' -nofor_main' ;; 11766 lf95*) # Lahey Fortran 8.1 11767 whole_archive_flag_spec= 11768 tmp_sharedflag='--shared' ;; 11769 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11770 tmp_sharedflag='-qmkshrobj' 11771 tmp_addflag= ;; 11772 nvcc*) # Cuda Compiler Driver 2.2 11773 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' 11774 compiler_needs_object=yes 11775 ;; 11776 esac 11777 case `$CC -V 2>&1 | sed 5q` in 11778 *Sun\ C*) # Sun C 5.9 11779 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' 11780 compiler_needs_object=yes 11781 tmp_sharedflag='-G' ;; 11782 *Sun\ F*) # Sun Fortran 8.3 11783 tmp_sharedflag='-G' ;; 11784 esac 11785 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11786 11787 if test "x$supports_anon_versioning" = xyes; then 11788 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11789 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11790 echo "local: *; };" >> $output_objdir/$libname.ver~ 11791 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11792 fi 11793 11794 case $cc_basename in 11795 xlf* | bgf* | bgxlf* | mpixlf*) 11796 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11797 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11798 hardcode_libdir_flag_spec= 11799 hardcode_libdir_flag_spec_ld='-rpath $libdir' 11800 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 11801 if test "x$supports_anon_versioning" = xyes; then 11802 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11803 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11804 echo "local: *; };" >> $output_objdir/$libname.ver~ 11805 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11806 fi 11807 ;; 11808 esac 11809 else 11810 ld_shlibs=no 11811 fi 11812 ;; 11813 11814 netbsd*) 11815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11816 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11817 wlarc= 11818 else 11819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11821 fi 11822 ;; 11823 11824 solaris*) 11825 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11826 ld_shlibs=no 11827 cat <<_LT_EOF 1>&2 11828 11829 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 11830 *** create shared libraries on Solaris systems. Therefore, libtool 11831 *** is disabling shared libraries support. We urge you to upgrade GNU 11832 *** binutils to release 2.9.1 or newer. Another option is to modify 11833 *** your PATH or compiler configuration so that the native linker is 11834 *** used, and then restart. 11835 11836 _LT_EOF 11837 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11840 else 11841 ld_shlibs=no 11842 fi 11843 ;; 11844 11845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11846 case `$LD -v 2>&1` in 11847 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11848 ld_shlibs=no 11849 cat <<_LT_EOF 1>&2 11850 11851 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11852 *** reliably create shared libraries on SCO systems. Therefore, libtool 11853 *** is disabling shared libraries support. We urge you to upgrade GNU 11854 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11855 *** your PATH or compiler configuration so that the native linker is 11856 *** used, and then restart. 11857 11858 _LT_EOF 11859 ;; 11860 *) 11861 # For security reasons, it is highly recommended that you always 11862 # use absolute paths for naming shared libraries, and exclude the 11863 # DT_RUNPATH tag from executables and libraries. But doing so 11864 # requires that you compile everything twice, which is a pain. 11865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11867 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11868 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11869 else 11870 ld_shlibs=no 11871 fi 11872 ;; 11873 esac 11874 ;; 11875 11876 sunos4*) 11877 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11878 wlarc= 11879 hardcode_direct=yes 11880 hardcode_shlibpath_var=no 11881 ;; 11882 11883 *) 11884 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11886 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11887 else 11888 ld_shlibs=no 11889 fi 11890 ;; 11891 esac 11892 11893 if test "$ld_shlibs" = no; then 11894 runpath_var= 11895 hardcode_libdir_flag_spec= 11896 export_dynamic_flag_spec= 11897 whole_archive_flag_spec= 11898 fi 11899 else 11900 # PORTME fill in a description of your system's linker (not GNU ld) 11901 case $host_os in 11902 aix3*) 11903 allow_undefined_flag=unsupported 11904 always_export_symbols=yes 11905 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' 11906 # Note: this linker hardcodes the directories in LIBPATH if there 11907 # are no directories specified by -L. 11908 hardcode_minus_L=yes 11909 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11910 # Neither direct hardcoding nor static linking is supported with a 11911 # broken collect2. 11912 hardcode_direct=unsupported 11913 fi 11914 ;; 11915 11916 aix[4-9]*) 11917 if test "$host_cpu" = ia64; then 11918 # On IA64, the linker does run time linking by default, so we don't 11919 # have to do anything special. 11920 aix_use_runtimelinking=no 11921 exp_sym_flag='-Bexport' 11922 no_entry_flag="" 11923 else 11924 # If we're using GNU nm, then we don't want the "-C" option. 11925 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11926 # Also, AIX nm treats weak defined symbols like other global 11927 # defined symbols, whereas GNU nm marks them as "W". 11928 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11929 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' 11930 else 11931 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' 11932 fi 11933 aix_use_runtimelinking=no 11934 11935 # Test if we are trying to use run time linking or normal 11936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11937 # need to do runtime linking. 11938 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11939 for ld_flag in $LDFLAGS; do 11940 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11941 aix_use_runtimelinking=yes 11942 break 11943 fi 11944 done 11945 ;; 11946 esac 11947 11948 exp_sym_flag='-bexport' 11949 no_entry_flag='-bnoentry' 11950 fi 11951 11952 # When large executables or shared objects are built, AIX ld can 11953 # have problems creating the table of contents. If linking a library 11954 # or program results in "error TOC overflow" add -mminimal-toc to 11955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11957 11958 archive_cmds='' 11959 hardcode_direct=yes 11960 hardcode_direct_absolute=yes 11961 hardcode_libdir_separator=':' 11962 link_all_deplibs=yes 11963 file_list_spec='${wl}-f,' 11964 11965 if test "$GCC" = yes; then 11966 case $host_os in aix4.[012]|aix4.[012].*) 11967 # We only want to do this on AIX 4.2 and lower, the check 11968 # below for broken collect2 doesn't work under 4.3+ 11969 collect2name=`${CC} -print-prog-name=collect2` 11970 if test -f "$collect2name" && 11971 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11972 then 11973 # We have reworked collect2 11974 : 11975 else 11976 # We have old collect2 11977 hardcode_direct=unsupported 11978 # It fails to find uninstalled libraries when the uninstalled 11979 # path is not listed in the libpath. Setting hardcode_minus_L 11980 # to unsupported forces relinking 11981 hardcode_minus_L=yes 11982 hardcode_libdir_flag_spec='-L$libdir' 11983 hardcode_libdir_separator= 11984 fi 11985 ;; 11986 esac 11987 shared_flag='-shared' 11988 if test "$aix_use_runtimelinking" = yes; then 11989 shared_flag="$shared_flag "'${wl}-G' 11990 fi 11991 else 11992 # not using gcc 11993 if test "$host_cpu" = ia64; then 11994 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11995 # chokes on -Wl,-G. The following line is correct: 11996 shared_flag='-G' 11997 else 11998 if test "$aix_use_runtimelinking" = yes; then 11999 shared_flag='${wl}-G' 12000 else 12001 shared_flag='${wl}-bM:SRE' 12002 fi 12003 fi 12004 fi 12005 12006 export_dynamic_flag_spec='${wl}-bexpall' 12007 # It seems that -bexpall does not export symbols beginning with 12008 # underscore (_), so it is better to generate a list of symbols to export. 12009 always_export_symbols=yes 12010 if test "$aix_use_runtimelinking" = yes; then 12011 # Warning - without using the other runtime loading flags (-brtl), 12012 # -berok will link without error, but may produce a broken library. 12013 allow_undefined_flag='-berok' 12014 # Determine the default libpath from the value encoded in an 12015 # empty executable. 12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12017 /* end confdefs.h. */ 12018 12019 int 12020 main () 12021 { 12022 12023 ; 12024 return 0; 12025 } 12026 _ACEOF 12027 if ac_fn_c_try_link "$LINENO"; then : 12028 12029 lt_aix_libpath_sed=' 12030 /Import File Strings/,/^$/ { 12031 /^0/ { 12032 s/^0 *\(.*\)$/\1/ 12033 p 12034 } 12035 }' 12036 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12037 # Check for a 64-bit object if we didn't find anything. 12038 if test -z "$aix_libpath"; then 12039 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12040 fi 12041 fi 12042 rm -f core conftest.err conftest.$ac_objext \ 12043 conftest$ac_exeext conftest.$ac_ext 12044 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12045 12046 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12047 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" 12048 else 12049 if test "$host_cpu" = ia64; then 12050 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 12051 allow_undefined_flag="-z nodefs" 12052 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" 12053 else 12054 # Determine the default libpath from the value encoded in an 12055 # empty executable. 12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12057 /* end confdefs.h. */ 12058 12059 int 12060 main () 12061 { 12062 12063 ; 12064 return 0; 12065 } 12066 _ACEOF 12067 if ac_fn_c_try_link "$LINENO"; then : 12068 12069 lt_aix_libpath_sed=' 12070 /Import File Strings/,/^$/ { 12071 /^0/ { 12072 s/^0 *\(.*\)$/\1/ 12073 p 12074 } 12075 }' 12076 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12077 # Check for a 64-bit object if we didn't find anything. 12078 if test -z "$aix_libpath"; then 12079 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12080 fi 12081 fi 12082 rm -f core conftest.err conftest.$ac_objext \ 12083 conftest$ac_exeext conftest.$ac_ext 12084 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12085 12086 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 12087 # Warning - without using the other run time loading flags, 12088 # -berok will link without error, but may produce a broken library. 12089 no_undefined_flag=' ${wl}-bernotok' 12090 allow_undefined_flag=' ${wl}-berok' 12091 if test "$with_gnu_ld" = yes; then 12092 # We only use this code for GNU lds that support --whole-archive. 12093 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12094 else 12095 # Exported symbols can be pulled into shared objects from archives 12096 whole_archive_flag_spec='$convenience' 12097 fi 12098 archive_cmds_need_lc=yes 12099 # This is similar to how AIX traditionally builds its shared libraries. 12100 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' 12101 fi 12102 fi 12103 ;; 12104 12105 amigaos*) 12106 case $host_cpu in 12107 powerpc) 12108 # see comment about AmigaOS4 .so support 12109 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12110 archive_expsym_cmds='' 12111 ;; 12112 m68k) 12113 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)' 12114 hardcode_libdir_flag_spec='-L$libdir' 12115 hardcode_minus_L=yes 12116 ;; 12117 esac 12118 ;; 12119 12120 bsdi[45]*) 12121 export_dynamic_flag_spec=-rdynamic 12122 ;; 12123 12124 cygwin* | mingw* | pw32* | cegcc*) 12125 # When not using gcc, we currently assume that we are using 12126 # Microsoft Visual C++. 12127 # hardcode_libdir_flag_spec is actually meaningless, as there is 12128 # no search path for DLLs. 12129 hardcode_libdir_flag_spec=' ' 12130 allow_undefined_flag=unsupported 12131 # Tell ltmain to make .lib files, not .a files. 12132 libext=lib 12133 # Tell ltmain to make .dll files, not .so files. 12134 shrext_cmds=".dll" 12135 # FIXME: Setting linknames here is a bad hack. 12136 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 12137 # The linker will automatically build a .lib file if we build a DLL. 12138 old_archive_from_new_cmds='true' 12139 # FIXME: Should let the user specify the lib program. 12140 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 12141 fix_srcfile_path='`cygpath -w "$srcfile"`' 12142 enable_shared_with_static_runtimes=yes 12143 ;; 12144 12145 darwin* | rhapsody*) 12146 12147 12148 archive_cmds_need_lc=no 12149 hardcode_direct=no 12150 hardcode_automatic=yes 12151 hardcode_shlibpath_var=unsupported 12152 if test "$lt_cv_ld_force_load" = "yes"; then 12153 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\"`' 12154 else 12155 whole_archive_flag_spec='' 12156 fi 12157 link_all_deplibs=yes 12158 allow_undefined_flag="$_lt_dar_allow_undefined" 12159 case $cc_basename in 12160 ifort*) _lt_dar_can_shared=yes ;; 12161 *) _lt_dar_can_shared=$GCC ;; 12162 esac 12163 if test "$_lt_dar_can_shared" = "yes"; then 12164 output_verbose_link_cmd=func_echo_all 12165 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12166 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12167 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}" 12168 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}" 12169 12170 else 12171 ld_shlibs=no 12172 fi 12173 12174 ;; 12175 12176 dgux*) 12177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12178 hardcode_libdir_flag_spec='-L$libdir' 12179 hardcode_shlibpath_var=no 12180 ;; 12181 12182 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 12183 # support. Future versions do this automatically, but an explicit c++rt0.o 12184 # does not break anything, and helps significantly (at the cost of a little 12185 # extra space). 12186 freebsd2.2*) 12187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 12188 hardcode_libdir_flag_spec='-R$libdir' 12189 hardcode_direct=yes 12190 hardcode_shlibpath_var=no 12191 ;; 12192 12193 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 12194 freebsd2.*) 12195 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12196 hardcode_direct=yes 12197 hardcode_minus_L=yes 12198 hardcode_shlibpath_var=no 12199 ;; 12200 12201 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 12202 freebsd* | dragonfly*) 12203 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 12204 hardcode_libdir_flag_spec='-R$libdir' 12205 hardcode_direct=yes 12206 hardcode_shlibpath_var=no 12207 ;; 12208 12209 hpux9*) 12210 if test "$GCC" = yes; then 12211 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' 12212 else 12213 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' 12214 fi 12215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12216 hardcode_libdir_separator=: 12217 hardcode_direct=yes 12218 12219 # hardcode_minus_L: Not really in the search PATH, 12220 # but as the default location of the library. 12221 hardcode_minus_L=yes 12222 export_dynamic_flag_spec='${wl}-E' 12223 ;; 12224 12225 hpux10*) 12226 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12227 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12228 else 12229 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12230 fi 12231 if test "$with_gnu_ld" = no; then 12232 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12233 hardcode_libdir_flag_spec_ld='+b $libdir' 12234 hardcode_libdir_separator=: 12235 hardcode_direct=yes 12236 hardcode_direct_absolute=yes 12237 export_dynamic_flag_spec='${wl}-E' 12238 # hardcode_minus_L: Not really in the search PATH, 12239 # but as the default location of the library. 12240 hardcode_minus_L=yes 12241 fi 12242 ;; 12243 12244 hpux11*) 12245 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 12246 case $host_cpu in 12247 hppa*64*) 12248 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12249 ;; 12250 ia64*) 12251 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12252 ;; 12253 *) 12254 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12255 ;; 12256 esac 12257 else 12258 case $host_cpu in 12259 hppa*64*) 12260 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12261 ;; 12262 ia64*) 12263 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12264 ;; 12265 *) 12266 12267 # Older versions of the 11.00 compiler do not understand -b yet 12268 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 12270 $as_echo_n "checking if $CC understands -b... " >&6; } 12271 if ${lt_cv_prog_compiler__b+:} false; then : 12272 $as_echo_n "(cached) " >&6 12273 else 12274 lt_cv_prog_compiler__b=no 12275 save_LDFLAGS="$LDFLAGS" 12276 LDFLAGS="$LDFLAGS -b" 12277 echo "$lt_simple_link_test_code" > conftest.$ac_ext 12278 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 12279 # The linker can only warn and ignore the option if not recognized 12280 # So say no if there are warnings 12281 if test -s conftest.err; then 12282 # Append any errors to the config.log. 12283 cat conftest.err 1>&5 12284 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 12285 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 12286 if diff conftest.exp conftest.er2 >/dev/null; then 12287 lt_cv_prog_compiler__b=yes 12288 fi 12289 else 12290 lt_cv_prog_compiler__b=yes 12291 fi 12292 fi 12293 $RM -r conftest* 12294 LDFLAGS="$save_LDFLAGS" 12295 12296 fi 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 12298 $as_echo "$lt_cv_prog_compiler__b" >&6; } 12299 12300 if test x"$lt_cv_prog_compiler__b" = xyes; then 12301 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12302 else 12303 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 12304 fi 12305 12306 ;; 12307 esac 12308 fi 12309 if test "$with_gnu_ld" = no; then 12310 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 12311 hardcode_libdir_separator=: 12312 12313 case $host_cpu in 12314 hppa*64*|ia64*) 12315 hardcode_direct=no 12316 hardcode_shlibpath_var=no 12317 ;; 12318 *) 12319 hardcode_direct=yes 12320 hardcode_direct_absolute=yes 12321 export_dynamic_flag_spec='${wl}-E' 12322 12323 # hardcode_minus_L: Not really in the search PATH, 12324 # but as the default location of the library. 12325 hardcode_minus_L=yes 12326 ;; 12327 esac 12328 fi 12329 ;; 12330 12331 irix5* | irix6* | nonstopux*) 12332 if test "$GCC" = yes; then 12333 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' 12334 # Try to use the -exported_symbol ld option, if it does not 12335 # work, assume that -exports_file does not work either and 12336 # implicitly export all symbols. 12337 save_LDFLAGS="$LDFLAGS" 12338 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12340 /* end confdefs.h. */ 12341 int foo(void) {} 12342 _ACEOF 12343 if ac_fn_c_try_link "$LINENO"; then : 12344 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' 12345 12346 fi 12347 rm -f core conftest.err conftest.$ac_objext \ 12348 conftest$ac_exeext conftest.$ac_ext 12349 LDFLAGS="$save_LDFLAGS" 12350 else 12351 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' 12352 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' 12353 fi 12354 archive_cmds_need_lc='no' 12355 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12356 hardcode_libdir_separator=: 12357 inherit_rpath=yes 12358 link_all_deplibs=yes 12359 ;; 12360 12361 netbsd*) 12362 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12364 else 12365 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12366 fi 12367 hardcode_libdir_flag_spec='-R$libdir' 12368 hardcode_direct=yes 12369 hardcode_shlibpath_var=no 12370 ;; 12371 12372 newsos6) 12373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12374 hardcode_direct=yes 12375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12376 hardcode_libdir_separator=: 12377 hardcode_shlibpath_var=no 12378 ;; 12379 12380 *nto* | *qnx*) 12381 ;; 12382 12383 openbsd*) 12384 if test -f /usr/libexec/ld.so; then 12385 hardcode_direct=yes 12386 hardcode_shlibpath_var=no 12387 hardcode_direct_absolute=yes 12388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12390 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12391 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12392 export_dynamic_flag_spec='${wl}-E' 12393 else 12394 case $host_os in 12395 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12396 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12397 hardcode_libdir_flag_spec='-R$libdir' 12398 ;; 12399 *) 12400 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 12402 ;; 12403 esac 12404 fi 12405 else 12406 ld_shlibs=no 12407 fi 12408 ;; 12409 12410 os2*) 12411 hardcode_libdir_flag_spec='-L$libdir' 12412 hardcode_minus_L=yes 12413 allow_undefined_flag=unsupported 12414 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' 12415 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12416 ;; 12417 12418 osf3*) 12419 if test "$GCC" = yes; then 12420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12421 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' 12422 else 12423 allow_undefined_flag=' -expect_unresolved \*' 12424 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' 12425 fi 12426 archive_cmds_need_lc='no' 12427 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12428 hardcode_libdir_separator=: 12429 ;; 12430 12431 osf4* | osf5*) # as osf3* with the addition of -msym flag 12432 if test "$GCC" = yes; then 12433 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 12434 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' 12435 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 12436 else 12437 allow_undefined_flag=' -expect_unresolved \*' 12438 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' 12439 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~ 12440 $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' 12441 12442 # Both c and cxx compiler support -rpath directly 12443 hardcode_libdir_flag_spec='-rpath $libdir' 12444 fi 12445 archive_cmds_need_lc='no' 12446 hardcode_libdir_separator=: 12447 ;; 12448 12449 solaris*) 12450 no_undefined_flag=' -z defs' 12451 if test "$GCC" = yes; then 12452 wlarc='${wl}' 12453 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12454 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12455 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12456 else 12457 case `$CC -V 2>&1` in 12458 *"Compilers 5.0"*) 12459 wlarc='' 12460 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12462 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12463 ;; 12464 *) 12465 wlarc='${wl}' 12466 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12467 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12468 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12469 ;; 12470 esac 12471 fi 12472 hardcode_libdir_flag_spec='-R$libdir' 12473 hardcode_shlibpath_var=no 12474 case $host_os in 12475 solaris2.[0-5] | solaris2.[0-5].*) ;; 12476 *) 12477 # The compiler driver will combine and reorder linker options, 12478 # but understands `-z linker_flag'. GCC discards it without `$wl', 12479 # but is careful enough not to reorder. 12480 # Supported since Solaris 2.6 (maybe 2.5.1?) 12481 if test "$GCC" = yes; then 12482 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12483 else 12484 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 12485 fi 12486 ;; 12487 esac 12488 link_all_deplibs=yes 12489 ;; 12490 12491 sunos4*) 12492 if test "x$host_vendor" = xsequent; then 12493 # Use $CC to link under sequent, because it throws in some extra .o 12494 # files that make .init and .fini sections work. 12495 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12496 else 12497 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12498 fi 12499 hardcode_libdir_flag_spec='-L$libdir' 12500 hardcode_direct=yes 12501 hardcode_minus_L=yes 12502 hardcode_shlibpath_var=no 12503 ;; 12504 12505 sysv4) 12506 case $host_vendor in 12507 sni) 12508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12509 hardcode_direct=yes # is this really true??? 12510 ;; 12511 siemens) 12512 ## LD is ld it makes a PLAMLIB 12513 ## CC just makes a GrossModule. 12514 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12515 reload_cmds='$CC -r -o $output$reload_objs' 12516 hardcode_direct=no 12517 ;; 12518 motorola) 12519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12520 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 12521 ;; 12522 esac 12523 runpath_var='LD_RUN_PATH' 12524 hardcode_shlibpath_var=no 12525 ;; 12526 12527 sysv4.3*) 12528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12529 hardcode_shlibpath_var=no 12530 export_dynamic_flag_spec='-Bexport' 12531 ;; 12532 12533 sysv4*MP*) 12534 if test -d /usr/nec; then 12535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12536 hardcode_shlibpath_var=no 12537 runpath_var=LD_RUN_PATH 12538 hardcode_runpath_var=yes 12539 ld_shlibs=yes 12540 fi 12541 ;; 12542 12543 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12544 no_undefined_flag='${wl}-z,text' 12545 archive_cmds_need_lc=no 12546 hardcode_shlibpath_var=no 12547 runpath_var='LD_RUN_PATH' 12548 12549 if test "$GCC" = yes; then 12550 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12551 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12552 else 12553 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12554 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12555 fi 12556 ;; 12557 12558 sysv5* | sco3.2v5* | sco5v6*) 12559 # Note: We can NOT use -z defs as we might desire, because we do not 12560 # link with -lc, and that would cause any symbols used from libc to 12561 # always be unresolved, which means just about no library would 12562 # ever link correctly. If we're not using GNU ld we use -z text 12563 # though, which does catch some bad symbols but isn't as heavy-handed 12564 # as -z defs. 12565 no_undefined_flag='${wl}-z,text' 12566 allow_undefined_flag='${wl}-z,nodefs' 12567 archive_cmds_need_lc=no 12568 hardcode_shlibpath_var=no 12569 hardcode_libdir_flag_spec='${wl}-R,$libdir' 12570 hardcode_libdir_separator=':' 12571 link_all_deplibs=yes 12572 export_dynamic_flag_spec='${wl}-Bexport' 12573 runpath_var='LD_RUN_PATH' 12574 12575 if test "$GCC" = yes; then 12576 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12577 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12578 else 12579 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12580 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12581 fi 12582 ;; 12583 12584 uts4*) 12585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12586 hardcode_libdir_flag_spec='-L$libdir' 12587 hardcode_shlibpath_var=no 12588 ;; 12589 12590 *) 12591 ld_shlibs=no 12592 ;; 12593 esac 12594 12595 if test x$host_vendor = xsni; then 12596 case $host in 12597 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12598 export_dynamic_flag_spec='${wl}-Blargedynsym' 12599 ;; 12600 esac 12601 fi 12602 fi 12603 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12605 $as_echo "$ld_shlibs" >&6; } 12606 test "$ld_shlibs" = no && can_build_shared=no 12607 12608 with_gnu_ld=$with_gnu_ld 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 # 12625 # Do we need to explicitly link libc? 12626 # 12627 case "x$archive_cmds_need_lc" in 12628 x|xyes) 12629 # Assume -lc should be added 12630 archive_cmds_need_lc=yes 12631 12632 if test "$enable_shared" = yes && test "$GCC" = yes; then 12633 case $archive_cmds in 12634 *'~'*) 12635 # FIXME: we may have to deal with multi-command sequences. 12636 ;; 12637 '$CC '*) 12638 # Test whether the compiler implicitly links with -lc since on some 12639 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12640 # to ld, don't add -lc before -lgcc. 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12642 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 12643 if ${lt_cv_archive_cmds_need_lc+:} false; then : 12644 $as_echo_n "(cached) " >&6 12645 else 12646 $RM conftest* 12647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12648 12649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12650 (eval $ac_compile) 2>&5 12651 ac_status=$? 12652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12653 test $ac_status = 0; } 2>conftest.err; then 12654 soname=conftest 12655 lib=conftest 12656 libobjs=conftest.$ac_objext 12657 deplibs= 12658 wl=$lt_prog_compiler_wl 12659 pic_flag=$lt_prog_compiler_pic 12660 compiler_flags=-v 12661 linker_flags=-v 12662 verstring= 12663 output_objdir=. 12664 libname=conftest 12665 lt_save_allow_undefined_flag=$allow_undefined_flag 12666 allow_undefined_flag= 12667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12668 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12669 ac_status=$? 12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12671 test $ac_status = 0; } 12672 then 12673 lt_cv_archive_cmds_need_lc=no 12674 else 12675 lt_cv_archive_cmds_need_lc=yes 12676 fi 12677 allow_undefined_flag=$lt_save_allow_undefined_flag 12678 else 12679 cat conftest.err 1>&5 12680 fi 12681 $RM conftest* 12682 12683 fi 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12685 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 12686 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12687 ;; 12688 esac 12689 fi 12690 ;; 12691 esac 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12850 $as_echo_n "checking dynamic linker characteristics... " >&6; } 12851 12852 if test "$GCC" = yes; then 12853 case $host_os in 12854 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12855 *) lt_awk_arg="/^libraries:/" ;; 12856 esac 12857 case $host_os in 12858 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12859 *) lt_sed_strip_eq="s,=/,/,g" ;; 12860 esac 12861 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12862 case $lt_search_path_spec in 12863 *\;*) 12864 # if the path contains ";" then we assume it to be the separator 12865 # otherwise default to the standard path separator (i.e. ":") - it is 12866 # assumed that no part of a normal pathname contains ";" but that should 12867 # okay in the real world where ";" in dirpaths is itself problematic. 12868 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12869 ;; 12870 *) 12871 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12872 ;; 12873 esac 12874 # Ok, now we have the path, separated by spaces, we can step through it 12875 # and add multilib dir if necessary. 12876 lt_tmp_lt_search_path_spec= 12877 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12878 for lt_sys_path in $lt_search_path_spec; do 12879 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12880 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12881 else 12882 test -d "$lt_sys_path" && \ 12883 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12884 fi 12885 done 12886 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12887 BEGIN {RS=" "; FS="/|\n";} { 12888 lt_foo=""; 12889 lt_count=0; 12890 for (lt_i = NF; lt_i > 0; lt_i--) { 12891 if ($lt_i != "" && $lt_i != ".") { 12892 if ($lt_i == "..") { 12893 lt_count++; 12894 } else { 12895 if (lt_count == 0) { 12896 lt_foo="/" $lt_i lt_foo; 12897 } else { 12898 lt_count--; 12899 } 12900 } 12901 } 12902 } 12903 if (lt_foo != "") { lt_freq[lt_foo]++; } 12904 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12905 }'` 12906 # AWK program above erroneously prepends '/' to C:/dos/paths 12907 # for these hosts. 12908 case $host_os in 12909 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12910 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12911 esac 12912 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12913 else 12914 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12915 fi 12916 library_names_spec= 12917 libname_spec='lib$name' 12918 soname_spec= 12919 shrext_cmds=".so" 12920 postinstall_cmds= 12921 postuninstall_cmds= 12922 finish_cmds= 12923 finish_eval= 12924 shlibpath_var= 12925 shlibpath_overrides_runpath=unknown 12926 version_type=none 12927 dynamic_linker="$host_os ld.so" 12928 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12929 need_lib_prefix=unknown 12930 hardcode_into_libs=no 12931 12932 # when you set need_version to no, make sure it does not cause -set_version 12933 # flags to be left without arguments 12934 need_version=unknown 12935 12936 case $host_os in 12937 aix3*) 12938 version_type=linux 12939 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12940 shlibpath_var=LIBPATH 12941 12942 # AIX 3 has no versioning support, so we append a major version to the name. 12943 soname_spec='${libname}${release}${shared_ext}$major' 12944 ;; 12945 12946 aix[4-9]*) 12947 version_type=linux 12948 need_lib_prefix=no 12949 need_version=no 12950 hardcode_into_libs=yes 12951 if test "$host_cpu" = ia64; then 12952 # AIX 5 supports IA64 12953 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12954 shlibpath_var=LD_LIBRARY_PATH 12955 else 12956 # With GCC up to 2.95.x, collect2 would create an import file 12957 # for dependence libraries. The import file would start with 12958 # the line `#! .'. This would cause the generated library to 12959 # depend on `.', always an invalid library. This was fixed in 12960 # development snapshots of GCC prior to 3.0. 12961 case $host_os in 12962 aix4 | aix4.[01] | aix4.[01].*) 12963 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12964 echo ' yes ' 12965 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12966 : 12967 else 12968 can_build_shared=no 12969 fi 12970 ;; 12971 esac 12972 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12973 # soname into executable. Probably we can add versioning support to 12974 # collect2, so additional links can be useful in future. 12975 if test "$aix_use_runtimelinking" = yes; then 12976 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12977 # instead of lib<name>.a to let people know that these are not 12978 # typical AIX shared libraries. 12979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12980 else 12981 # We preserve .a as extension for shared libraries through AIX4.2 12982 # and later when we are not doing run time linking. 12983 library_names_spec='${libname}${release}.a $libname.a' 12984 soname_spec='${libname}${release}${shared_ext}$major' 12985 fi 12986 shlibpath_var=LIBPATH 12987 fi 12988 ;; 12989 12990 amigaos*) 12991 case $host_cpu in 12992 powerpc) 12993 # Since July 2007 AmigaOS4 officially supports .so libraries. 12994 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12996 ;; 12997 m68k) 12998 library_names_spec='$libname.ixlibrary $libname.a' 12999 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13000 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' 13001 ;; 13002 esac 13003 ;; 13004 13005 beos*) 13006 library_names_spec='${libname}${shared_ext}' 13007 dynamic_linker="$host_os ld.so" 13008 shlibpath_var=LIBRARY_PATH 13009 ;; 13010 13011 bsdi[45]*) 13012 version_type=linux 13013 need_version=no 13014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13015 soname_spec='${libname}${release}${shared_ext}$major' 13016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13017 shlibpath_var=LD_LIBRARY_PATH 13018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13020 # the default ld.so.conf also contains /usr/contrib/lib and 13021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13022 # libtool to hard-code these into programs 13023 ;; 13024 13025 cygwin* | mingw* | pw32* | cegcc*) 13026 version_type=windows 13027 shrext_cmds=".dll" 13028 need_version=no 13029 need_lib_prefix=no 13030 13031 case $GCC,$host_os in 13032 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13033 library_names_spec='$libname.dll.a' 13034 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13035 postinstall_cmds='base_file=`basename \${file}`~ 13036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13037 dldir=$destdir/`dirname \$dlpath`~ 13038 test -d \$dldir || mkdir -p \$dldir~ 13039 $install_prog $dir/$dlname \$dldir/$dlname~ 13040 chmod a+x \$dldir/$dlname~ 13041 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13042 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13043 fi' 13044 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13045 dlpath=$dir/\$dldll~ 13046 $RM \$dlpath' 13047 shlibpath_overrides_runpath=yes 13048 13049 case $host_os in 13050 cygwin*) 13051 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13052 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13053 13054 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 13055 ;; 13056 mingw* | cegcc*) 13057 # MinGW DLLs use traditional 'lib' prefix 13058 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13059 ;; 13060 pw32*) 13061 # pw32 DLLs use 'pw' prefix rather than 'lib' 13062 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13063 ;; 13064 esac 13065 ;; 13066 13067 *) 13068 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13069 ;; 13070 esac 13071 dynamic_linker='Win32 ld.exe' 13072 # FIXME: first we should search . and the directory the executable is in 13073 shlibpath_var=PATH 13074 ;; 13075 13076 darwin* | rhapsody*) 13077 dynamic_linker="$host_os dyld" 13078 version_type=darwin 13079 need_lib_prefix=no 13080 need_version=no 13081 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13082 soname_spec='${libname}${release}${major}$shared_ext' 13083 shlibpath_overrides_runpath=yes 13084 shlibpath_var=DYLD_LIBRARY_PATH 13085 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13086 13087 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 13088 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13089 ;; 13090 13091 dgux*) 13092 version_type=linux 13093 need_lib_prefix=no 13094 need_version=no 13095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13096 soname_spec='${libname}${release}${shared_ext}$major' 13097 shlibpath_var=LD_LIBRARY_PATH 13098 ;; 13099 13100 freebsd* | dragonfly*) 13101 # DragonFly does not have aout. When/if they implement a new 13102 # versioning mechanism, adjust this. 13103 if test -x /usr/bin/objformat; then 13104 objformat=`/usr/bin/objformat` 13105 else 13106 case $host_os in 13107 freebsd[23].*) objformat=aout ;; 13108 *) objformat=elf ;; 13109 esac 13110 fi 13111 version_type=freebsd-$objformat 13112 case $version_type in 13113 freebsd-elf*) 13114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13115 need_version=no 13116 need_lib_prefix=no 13117 ;; 13118 freebsd-*) 13119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13120 need_version=yes 13121 ;; 13122 esac 13123 shlibpath_var=LD_LIBRARY_PATH 13124 case $host_os in 13125 freebsd2.*) 13126 shlibpath_overrides_runpath=yes 13127 ;; 13128 freebsd3.[01]* | freebsdelf3.[01]*) 13129 shlibpath_overrides_runpath=yes 13130 hardcode_into_libs=yes 13131 ;; 13132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13134 shlibpath_overrides_runpath=no 13135 hardcode_into_libs=yes 13136 ;; 13137 *) # from 4.6 on, and DragonFly 13138 shlibpath_overrides_runpath=yes 13139 hardcode_into_libs=yes 13140 ;; 13141 esac 13142 ;; 13143 13144 haiku*) 13145 version_type=linux 13146 need_lib_prefix=no 13147 need_version=no 13148 dynamic_linker="$host_os runtime_loader" 13149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13150 soname_spec='${libname}${release}${shared_ext}$major' 13151 shlibpath_var=LIBRARY_PATH 13152 shlibpath_overrides_runpath=yes 13153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13154 hardcode_into_libs=yes 13155 ;; 13156 13157 hpux9* | hpux10* | hpux11*) 13158 # Give a soname corresponding to the major version so that dld.sl refuses to 13159 # link against other versions. 13160 version_type=sunos 13161 need_lib_prefix=no 13162 need_version=no 13163 case $host_cpu in 13164 ia64*) 13165 shrext_cmds='.so' 13166 hardcode_into_libs=yes 13167 dynamic_linker="$host_os dld.so" 13168 shlibpath_var=LD_LIBRARY_PATH 13169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13171 soname_spec='${libname}${release}${shared_ext}$major' 13172 if test "X$HPUX_IA64_MODE" = X32; then 13173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13174 else 13175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13176 fi 13177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13178 ;; 13179 hppa*64*) 13180 shrext_cmds='.sl' 13181 hardcode_into_libs=yes 13182 dynamic_linker="$host_os dld.sl" 13183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13186 soname_spec='${libname}${release}${shared_ext}$major' 13187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13189 ;; 13190 *) 13191 shrext_cmds='.sl' 13192 dynamic_linker="$host_os dld.sl" 13193 shlibpath_var=SHLIB_PATH 13194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13196 soname_spec='${libname}${release}${shared_ext}$major' 13197 ;; 13198 esac 13199 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13200 postinstall_cmds='chmod 555 $lib' 13201 # or fails outright, so override atomically: 13202 install_override_mode=555 13203 ;; 13204 13205 interix[3-9]*) 13206 version_type=linux 13207 need_lib_prefix=no 13208 need_version=no 13209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13210 soname_spec='${libname}${release}${shared_ext}$major' 13211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13212 shlibpath_var=LD_LIBRARY_PATH 13213 shlibpath_overrides_runpath=no 13214 hardcode_into_libs=yes 13215 ;; 13216 13217 irix5* | irix6* | nonstopux*) 13218 case $host_os in 13219 nonstopux*) version_type=nonstopux ;; 13220 *) 13221 if test "$lt_cv_prog_gnu_ld" = yes; then 13222 version_type=linux 13223 else 13224 version_type=irix 13225 fi ;; 13226 esac 13227 need_lib_prefix=no 13228 need_version=no 13229 soname_spec='${libname}${release}${shared_ext}$major' 13230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13231 case $host_os in 13232 irix5* | nonstopux*) 13233 libsuff= shlibsuff= 13234 ;; 13235 *) 13236 case $LD in # libtool.m4 will add one of these switches to LD 13237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13238 libsuff= shlibsuff= libmagic=32-bit;; 13239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13240 libsuff=32 shlibsuff=N32 libmagic=N32;; 13241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13242 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13243 *) libsuff= shlibsuff= libmagic=never-match;; 13244 esac 13245 ;; 13246 esac 13247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13248 shlibpath_overrides_runpath=no 13249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13251 hardcode_into_libs=yes 13252 ;; 13253 13254 # No shared lib support for Linux oldld, aout, or coff. 13255 linux*oldld* | linux*aout* | linux*coff*) 13256 dynamic_linker=no 13257 ;; 13258 13259 # This must be Linux ELF. 13260 13261 # uclinux* changes (here and below) have been submitted to the libtool 13262 # project, but have not yet been accepted: they are GCC-local changes 13263 # for the time being. (See 13264 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html) 13265 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi) 13266 version_type=linux 13267 need_lib_prefix=no 13268 need_version=no 13269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13270 soname_spec='${libname}${release}${shared_ext}$major' 13271 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13272 shlibpath_var=LD_LIBRARY_PATH 13273 shlibpath_overrides_runpath=no 13274 13275 # Some binutils ld are patched to set DT_RUNPATH 13276 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 13277 $as_echo_n "(cached) " >&6 13278 else 13279 lt_cv_shlibpath_overrides_runpath=no 13280 save_LDFLAGS=$LDFLAGS 13281 save_libdir=$libdir 13282 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 13283 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13285 /* end confdefs.h. */ 13286 13287 int 13288 main () 13289 { 13290 13291 ; 13292 return 0; 13293 } 13294 _ACEOF 13295 if ac_fn_c_try_link "$LINENO"; then : 13296 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13297 lt_cv_shlibpath_overrides_runpath=yes 13298 fi 13299 fi 13300 rm -f core conftest.err conftest.$ac_objext \ 13301 conftest$ac_exeext conftest.$ac_ext 13302 LDFLAGS=$save_LDFLAGS 13303 libdir=$save_libdir 13304 13305 fi 13306 13307 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13308 13309 # This implies no fast_install, which is unacceptable. 13310 # Some rework will be needed to allow for fast_install 13311 # before this can be enabled. 13312 hardcode_into_libs=yes 13313 13314 # Append ld.so.conf contents to the search path 13315 if test -f /etc/ld.so.conf; then 13316 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' ' '` 13317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 13318 fi 13319 13320 # We used to test for /lib/ld.so.1 and disable shared libraries on 13321 # powerpc, because MkLinux only supported shared libraries with the 13322 # GNU dynamic linker. Since this was broken with cross compilers, 13323 # most powerpc-linux boxes support dynamic linking these days and 13324 # people can always --disable-shared, the test was removed, and we 13325 # assume the GNU/Linux dynamic linker is in use. 13326 dynamic_linker='GNU/Linux ld.so' 13327 ;; 13328 13329 netbsd*) 13330 version_type=sunos 13331 need_lib_prefix=no 13332 need_version=no 13333 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13336 dynamic_linker='NetBSD (a.out) ld.so' 13337 else 13338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13339 soname_spec='${libname}${release}${shared_ext}$major' 13340 dynamic_linker='NetBSD ld.elf_so' 13341 fi 13342 shlibpath_var=LD_LIBRARY_PATH 13343 shlibpath_overrides_runpath=yes 13344 hardcode_into_libs=yes 13345 ;; 13346 13347 newsos6) 13348 version_type=linux 13349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13350 shlibpath_var=LD_LIBRARY_PATH 13351 shlibpath_overrides_runpath=yes 13352 ;; 13353 13354 *nto* | *qnx*) 13355 version_type=qnx 13356 need_lib_prefix=no 13357 need_version=no 13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13359 soname_spec='${libname}${release}${shared_ext}$major' 13360 shlibpath_var=LD_LIBRARY_PATH 13361 shlibpath_overrides_runpath=no 13362 hardcode_into_libs=yes 13363 dynamic_linker='ldqnx.so' 13364 ;; 13365 13366 openbsd*) 13367 version_type=sunos 13368 sys_lib_dlsearch_path_spec="/usr/lib" 13369 need_lib_prefix=no 13370 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13371 case $host_os in 13372 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13373 *) need_version=no ;; 13374 esac 13375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13377 shlibpath_var=LD_LIBRARY_PATH 13378 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13379 case $host_os in 13380 openbsd2.[89] | openbsd2.[89].*) 13381 shlibpath_overrides_runpath=no 13382 ;; 13383 *) 13384 shlibpath_overrides_runpath=yes 13385 ;; 13386 esac 13387 else 13388 shlibpath_overrides_runpath=yes 13389 fi 13390 ;; 13391 13392 os2*) 13393 libname_spec='$name' 13394 shrext_cmds=".dll" 13395 need_lib_prefix=no 13396 library_names_spec='$libname${shared_ext} $libname.a' 13397 dynamic_linker='OS/2 ld.exe' 13398 shlibpath_var=LIBPATH 13399 ;; 13400 13401 osf3* | osf4* | osf5*) 13402 version_type=osf 13403 need_lib_prefix=no 13404 need_version=no 13405 soname_spec='${libname}${release}${shared_ext}$major' 13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13407 shlibpath_var=LD_LIBRARY_PATH 13408 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13409 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13410 ;; 13411 13412 rdos*) 13413 dynamic_linker=no 13414 ;; 13415 13416 solaris*) 13417 version_type=linux 13418 need_lib_prefix=no 13419 need_version=no 13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13421 soname_spec='${libname}${release}${shared_ext}$major' 13422 shlibpath_var=LD_LIBRARY_PATH 13423 shlibpath_overrides_runpath=yes 13424 hardcode_into_libs=yes 13425 # ldd complains unless libraries are executable 13426 postinstall_cmds='chmod +x $lib' 13427 ;; 13428 13429 sunos4*) 13430 version_type=sunos 13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13432 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13433 shlibpath_var=LD_LIBRARY_PATH 13434 shlibpath_overrides_runpath=yes 13435 if test "$with_gnu_ld" = yes; then 13436 need_lib_prefix=no 13437 fi 13438 need_version=yes 13439 ;; 13440 13441 sysv4 | sysv4.3*) 13442 version_type=linux 13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13444 soname_spec='${libname}${release}${shared_ext}$major' 13445 shlibpath_var=LD_LIBRARY_PATH 13446 case $host_vendor in 13447 sni) 13448 shlibpath_overrides_runpath=no 13449 need_lib_prefix=no 13450 runpath_var=LD_RUN_PATH 13451 ;; 13452 siemens) 13453 need_lib_prefix=no 13454 ;; 13455 motorola) 13456 need_lib_prefix=no 13457 need_version=no 13458 shlibpath_overrides_runpath=no 13459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13460 ;; 13461 esac 13462 ;; 13463 13464 sysv4*MP*) 13465 if test -d /usr/nec ;then 13466 version_type=linux 13467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13468 soname_spec='$libname${shared_ext}.$major' 13469 shlibpath_var=LD_LIBRARY_PATH 13470 fi 13471 ;; 13472 13473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13474 version_type=freebsd-elf 13475 need_lib_prefix=no 13476 need_version=no 13477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13478 soname_spec='${libname}${release}${shared_ext}$major' 13479 shlibpath_var=LD_LIBRARY_PATH 13480 shlibpath_overrides_runpath=yes 13481 hardcode_into_libs=yes 13482 if test "$with_gnu_ld" = yes; then 13483 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13484 else 13485 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13486 case $host_os in 13487 sco3.2v5*) 13488 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13489 ;; 13490 esac 13491 fi 13492 sys_lib_dlsearch_path_spec='/usr/lib' 13493 ;; 13494 13495 tpf*) 13496 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13497 version_type=linux 13498 need_lib_prefix=no 13499 need_version=no 13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13501 shlibpath_var=LD_LIBRARY_PATH 13502 shlibpath_overrides_runpath=no 13503 hardcode_into_libs=yes 13504 ;; 13505 13506 uts4*) 13507 version_type=linux 13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13509 soname_spec='${libname}${release}${shared_ext}$major' 13510 shlibpath_var=LD_LIBRARY_PATH 13511 ;; 13512 13513 # Shared libraries for VwWorks, >= 7 only at this stage 13514 # and (fpic) still incompatible with "large" code models 13515 # in a few configurations. Only for RTP mode in any case, 13516 # and upon explicit request at configure time. 13517 vxworks7*) 13518 dynamic_linker=no 13519 case ${with_multisubdir}-${enable_shared} in 13520 *large*) 13521 ;; 13522 *mrtp*-yes) 13523 version_type=linux 13524 need_lib_prefix=no 13525 need_version=no 13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13527 soname_spec='${libname}${release}${shared_ext}$major' 13528 dynamic_linker="$host_os module_loader" 13529 ;; 13530 esac 13531 ;; 13532 *) 13533 dynamic_linker=no 13534 ;; 13535 esac 13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13537 $as_echo "$dynamic_linker" >&6; } 13538 test "$dynamic_linker" = no && can_build_shared=no 13539 13540 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13541 if test "$GCC" = yes; then 13542 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13543 fi 13544 13545 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 13546 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 13547 fi 13548 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 13549 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 13550 fi 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13644 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } 13645 hardcode_action= 13646 if test -n "$hardcode_libdir_flag_spec" || 13647 test -n "$runpath_var" || 13648 test "X$hardcode_automatic" = "Xyes" ; then 13649 13650 # We can hardcode non-existent directories. 13651 if test "$hardcode_direct" != no && 13652 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13653 # have to relink, otherwise we might link with an installed library 13654 # when we should be linking with a yet-to-be-installed one 13655 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 13656 test "$hardcode_minus_L" != no; then 13657 # Linking always hardcodes the temporary library directory. 13658 hardcode_action=relink 13659 else 13660 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13661 hardcode_action=immediate 13662 fi 13663 else 13664 # We cannot hardcode anything, or else we can only hardcode existing 13665 # directories. 13666 hardcode_action=unsupported 13667 fi 13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13669 $as_echo "$hardcode_action" >&6; } 13670 13671 if test "$hardcode_action" = relink || 13672 test "$inherit_rpath" = yes; then 13673 # Fast installation is not supported 13674 enable_fast_install=no 13675 elif test "$shlibpath_overrides_runpath" = yes || 13676 test "$enable_shared" = no; then 13677 # Fast installation is not necessary 13678 enable_fast_install=needless 13679 fi 13680 13681 13682 13683 13684 13685 13686 if test "x$enable_dlopen" != xyes; then 13687 enable_dlopen=unknown 13688 enable_dlopen_self=unknown 13689 enable_dlopen_self_static=unknown 13690 else 13691 lt_cv_dlopen=no 13692 lt_cv_dlopen_libs= 13693 13694 case $host_os in 13695 beos*) 13696 lt_cv_dlopen="load_add_on" 13697 lt_cv_dlopen_libs= 13698 lt_cv_dlopen_self=yes 13699 ;; 13700 13701 mingw* | pw32* | cegcc*) 13702 lt_cv_dlopen="LoadLibrary" 13703 lt_cv_dlopen_libs= 13704 ;; 13705 13706 cygwin*) 13707 lt_cv_dlopen="dlopen" 13708 lt_cv_dlopen_libs= 13709 ;; 13710 13711 darwin*) 13712 # if libdl is installed we need to link against it 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13714 $as_echo_n "checking for dlopen in -ldl... " >&6; } 13715 if ${ac_cv_lib_dl_dlopen+:} false; then : 13716 $as_echo_n "(cached) " >&6 13717 else 13718 ac_check_lib_save_LIBS=$LIBS 13719 LIBS="-ldl $LIBS" 13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13721 /* end confdefs.h. */ 13722 13723 /* Override any GCC internal prototype to avoid an error. 13724 Use char because int might match the return type of a GCC 13725 builtin and then its argument prototype would still apply. */ 13726 #ifdef __cplusplus 13727 extern "C" 13728 #endif 13729 char dlopen (); 13730 int 13731 main () 13732 { 13733 return dlopen (); 13734 ; 13735 return 0; 13736 } 13737 _ACEOF 13738 if ac_fn_c_try_link "$LINENO"; then : 13739 ac_cv_lib_dl_dlopen=yes 13740 else 13741 ac_cv_lib_dl_dlopen=no 13742 fi 13743 rm -f core conftest.err conftest.$ac_objext \ 13744 conftest$ac_exeext conftest.$ac_ext 13745 LIBS=$ac_check_lib_save_LIBS 13746 fi 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13748 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13749 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13751 else 13752 13753 lt_cv_dlopen="dyld" 13754 lt_cv_dlopen_libs= 13755 lt_cv_dlopen_self=yes 13756 13757 fi 13758 13759 ;; 13760 13761 *) 13762 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13763 if test "x$ac_cv_func_shl_load" = xyes; then : 13764 lt_cv_dlopen="shl_load" 13765 else 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13767 $as_echo_n "checking for shl_load in -ldld... " >&6; } 13768 if ${ac_cv_lib_dld_shl_load+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770 else 13771 ac_check_lib_save_LIBS=$LIBS 13772 LIBS="-ldld $LIBS" 13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13774 /* end confdefs.h. */ 13775 13776 /* Override any GCC internal prototype to avoid an error. 13777 Use char because int might match the return type of a GCC 13778 builtin and then its argument prototype would still apply. */ 13779 #ifdef __cplusplus 13780 extern "C" 13781 #endif 13782 char shl_load (); 13783 int 13784 main () 13785 { 13786 return shl_load (); 13787 ; 13788 return 0; 13789 } 13790 _ACEOF 13791 if ac_fn_c_try_link "$LINENO"; then : 13792 ac_cv_lib_dld_shl_load=yes 13793 else 13794 ac_cv_lib_dld_shl_load=no 13795 fi 13796 rm -f core conftest.err conftest.$ac_objext \ 13797 conftest$ac_exeext conftest.$ac_ext 13798 LIBS=$ac_check_lib_save_LIBS 13799 fi 13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13801 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13802 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13803 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13804 else 13805 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13806 if test "x$ac_cv_func_dlopen" = xyes; then : 13807 lt_cv_dlopen="dlopen" 13808 else 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13810 $as_echo_n "checking for dlopen in -ldl... " >&6; } 13811 if ${ac_cv_lib_dl_dlopen+:} false; then : 13812 $as_echo_n "(cached) " >&6 13813 else 13814 ac_check_lib_save_LIBS=$LIBS 13815 LIBS="-ldl $LIBS" 13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13817 /* end confdefs.h. */ 13818 13819 /* Override any GCC internal prototype to avoid an error. 13820 Use char because int might match the return type of a GCC 13821 builtin and then its argument prototype would still apply. */ 13822 #ifdef __cplusplus 13823 extern "C" 13824 #endif 13825 char dlopen (); 13826 int 13827 main () 13828 { 13829 return dlopen (); 13830 ; 13831 return 0; 13832 } 13833 _ACEOF 13834 if ac_fn_c_try_link "$LINENO"; then : 13835 ac_cv_lib_dl_dlopen=yes 13836 else 13837 ac_cv_lib_dl_dlopen=no 13838 fi 13839 rm -f core conftest.err conftest.$ac_objext \ 13840 conftest$ac_exeext conftest.$ac_ext 13841 LIBS=$ac_check_lib_save_LIBS 13842 fi 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13844 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13845 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13847 else 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13849 $as_echo_n "checking for dlopen in -lsvld... " >&6; } 13850 if ${ac_cv_lib_svld_dlopen+:} false; then : 13851 $as_echo_n "(cached) " >&6 13852 else 13853 ac_check_lib_save_LIBS=$LIBS 13854 LIBS="-lsvld $LIBS" 13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13856 /* end confdefs.h. */ 13857 13858 /* Override any GCC internal prototype to avoid an error. 13859 Use char because int might match the return type of a GCC 13860 builtin and then its argument prototype would still apply. */ 13861 #ifdef __cplusplus 13862 extern "C" 13863 #endif 13864 char dlopen (); 13865 int 13866 main () 13867 { 13868 return dlopen (); 13869 ; 13870 return 0; 13871 } 13872 _ACEOF 13873 if ac_fn_c_try_link "$LINENO"; then : 13874 ac_cv_lib_svld_dlopen=yes 13875 else 13876 ac_cv_lib_svld_dlopen=no 13877 fi 13878 rm -f core conftest.err conftest.$ac_objext \ 13879 conftest$ac_exeext conftest.$ac_ext 13880 LIBS=$ac_check_lib_save_LIBS 13881 fi 13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13883 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13884 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13886 else 13887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13888 $as_echo_n "checking for dld_link in -ldld... " >&6; } 13889 if ${ac_cv_lib_dld_dld_link+:} false; then : 13890 $as_echo_n "(cached) " >&6 13891 else 13892 ac_check_lib_save_LIBS=$LIBS 13893 LIBS="-ldld $LIBS" 13894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13895 /* end confdefs.h. */ 13896 13897 /* Override any GCC internal prototype to avoid an error. 13898 Use char because int might match the return type of a GCC 13899 builtin and then its argument prototype would still apply. */ 13900 #ifdef __cplusplus 13901 extern "C" 13902 #endif 13903 char dld_link (); 13904 int 13905 main () 13906 { 13907 return dld_link (); 13908 ; 13909 return 0; 13910 } 13911 _ACEOF 13912 if ac_fn_c_try_link "$LINENO"; then : 13913 ac_cv_lib_dld_dld_link=yes 13914 else 13915 ac_cv_lib_dld_dld_link=no 13916 fi 13917 rm -f core conftest.err conftest.$ac_objext \ 13918 conftest$ac_exeext conftest.$ac_ext 13919 LIBS=$ac_check_lib_save_LIBS 13920 fi 13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13922 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13923 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13925 fi 13926 13927 13928 fi 13929 13930 13931 fi 13932 13933 13934 fi 13935 13936 13937 fi 13938 13939 13940 fi 13941 13942 ;; 13943 esac 13944 13945 if test "x$lt_cv_dlopen" != xno; then 13946 enable_dlopen=yes 13947 else 13948 enable_dlopen=no 13949 fi 13950 13951 case $lt_cv_dlopen in 13952 dlopen) 13953 save_CPPFLAGS="$CPPFLAGS" 13954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13955 13956 save_LDFLAGS="$LDFLAGS" 13957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13958 13959 save_LIBS="$LIBS" 13960 LIBS="$lt_cv_dlopen_libs $LIBS" 13961 13962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13963 $as_echo_n "checking whether a program can dlopen itself... " >&6; } 13964 if ${lt_cv_dlopen_self+:} false; then : 13965 $as_echo_n "(cached) " >&6 13966 else 13967 if test "$cross_compiling" = yes; then : 13968 lt_cv_dlopen_self=cross 13969 else 13970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13971 lt_status=$lt_dlunknown 13972 cat > conftest.$ac_ext <<_LT_EOF 13973 #line 13973 "configure" 13974 #include "confdefs.h" 13975 13976 #if HAVE_DLFCN_H 13977 #include <dlfcn.h> 13978 #endif 13979 13980 #include <stdio.h> 13981 13982 #ifdef RTLD_GLOBAL 13983 # define LT_DLGLOBAL RTLD_GLOBAL 13984 #else 13985 # ifdef DL_GLOBAL 13986 # define LT_DLGLOBAL DL_GLOBAL 13987 # else 13988 # define LT_DLGLOBAL 0 13989 # endif 13990 #endif 13991 13992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13993 find out it does not work in some platform. */ 13994 #ifndef LT_DLLAZY_OR_NOW 13995 # ifdef RTLD_LAZY 13996 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13997 # else 13998 # ifdef DL_LAZY 13999 # define LT_DLLAZY_OR_NOW DL_LAZY 14000 # else 14001 # ifdef RTLD_NOW 14002 # define LT_DLLAZY_OR_NOW RTLD_NOW 14003 # else 14004 # ifdef DL_NOW 14005 # define LT_DLLAZY_OR_NOW DL_NOW 14006 # else 14007 # define LT_DLLAZY_OR_NOW 0 14008 # endif 14009 # endif 14010 # endif 14011 # endif 14012 #endif 14013 14014 /* When -fvisbility=hidden is used, assume the code has been annotated 14015 correspondingly for the symbols needed. */ 14016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14017 void fnord () __attribute__((visibility("default"))); 14018 #endif 14019 14020 void fnord () { int i=42; } 14021 int main () 14022 { 14023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14024 int status = $lt_dlunknown; 14025 14026 if (self) 14027 { 14028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14029 else 14030 { 14031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14032 else puts (dlerror ()); 14033 } 14034 /* dlclose (self); */ 14035 } 14036 else 14037 puts (dlerror ()); 14038 14039 return status; 14040 } 14041 _LT_EOF 14042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14043 (eval $ac_link) 2>&5 14044 ac_status=$? 14045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14047 (./conftest; exit; ) >&5 2>/dev/null 14048 lt_status=$? 14049 case x$lt_status in 14050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 14051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 14052 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 14053 esac 14054 else : 14055 # compilation failed 14056 lt_cv_dlopen_self=no 14057 fi 14058 fi 14059 rm -fr conftest* 14060 14061 14062 fi 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 14064 $as_echo "$lt_cv_dlopen_self" >&6; } 14065 14066 if test "x$lt_cv_dlopen_self" = xyes; then 14067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 14069 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 14070 if ${lt_cv_dlopen_self_static+:} false; then : 14071 $as_echo_n "(cached) " >&6 14072 else 14073 if test "$cross_compiling" = yes; then : 14074 lt_cv_dlopen_self_static=cross 14075 else 14076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 14077 lt_status=$lt_dlunknown 14078 cat > conftest.$ac_ext <<_LT_EOF 14079 #line 14079 "configure" 14080 #include "confdefs.h" 14081 14082 #if HAVE_DLFCN_H 14083 #include <dlfcn.h> 14084 #endif 14085 14086 #include <stdio.h> 14087 14088 #ifdef RTLD_GLOBAL 14089 # define LT_DLGLOBAL RTLD_GLOBAL 14090 #else 14091 # ifdef DL_GLOBAL 14092 # define LT_DLGLOBAL DL_GLOBAL 14093 # else 14094 # define LT_DLGLOBAL 0 14095 # endif 14096 #endif 14097 14098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 14099 find out it does not work in some platform. */ 14100 #ifndef LT_DLLAZY_OR_NOW 14101 # ifdef RTLD_LAZY 14102 # define LT_DLLAZY_OR_NOW RTLD_LAZY 14103 # else 14104 # ifdef DL_LAZY 14105 # define LT_DLLAZY_OR_NOW DL_LAZY 14106 # else 14107 # ifdef RTLD_NOW 14108 # define LT_DLLAZY_OR_NOW RTLD_NOW 14109 # else 14110 # ifdef DL_NOW 14111 # define LT_DLLAZY_OR_NOW DL_NOW 14112 # else 14113 # define LT_DLLAZY_OR_NOW 0 14114 # endif 14115 # endif 14116 # endif 14117 # endif 14118 #endif 14119 14120 /* When -fvisbility=hidden is used, assume the code has been annotated 14121 correspondingly for the symbols needed. */ 14122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 14123 void fnord () __attribute__((visibility("default"))); 14124 #endif 14125 14126 void fnord () { int i=42; } 14127 int main () 14128 { 14129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 14130 int status = $lt_dlunknown; 14131 14132 if (self) 14133 { 14134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 14135 else 14136 { 14137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 14138 else puts (dlerror ()); 14139 } 14140 /* dlclose (self); */ 14141 } 14142 else 14143 puts (dlerror ()); 14144 14145 return status; 14146 } 14147 _LT_EOF 14148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14149 (eval $ac_link) 2>&5 14150 ac_status=$? 14151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 14153 (./conftest; exit; ) >&5 2>/dev/null 14154 lt_status=$? 14155 case x$lt_status in 14156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 14157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 14158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 14159 esac 14160 else : 14161 # compilation failed 14162 lt_cv_dlopen_self_static=no 14163 fi 14164 fi 14165 rm -fr conftest* 14166 14167 14168 fi 14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 14170 $as_echo "$lt_cv_dlopen_self_static" >&6; } 14171 fi 14172 14173 CPPFLAGS="$save_CPPFLAGS" 14174 LDFLAGS="$save_LDFLAGS" 14175 LIBS="$save_LIBS" 14176 ;; 14177 esac 14178 14179 case $lt_cv_dlopen_self in 14180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 14181 *) enable_dlopen_self=unknown ;; 14182 esac 14183 14184 case $lt_cv_dlopen_self_static in 14185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 14186 *) enable_dlopen_self_static=unknown ;; 14187 esac 14188 fi 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 striplib= 14207 old_striplib= 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 14209 $as_echo_n "checking whether stripping libraries is possible... " >&6; } 14210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 14211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14212 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14214 $as_echo "yes" >&6; } 14215 else 14216 # FIXME - insert some real tests, host_os isn't really good enough 14217 case $host_os in 14218 darwin*) 14219 if test -n "$STRIP" ; then 14220 striplib="$STRIP -x" 14221 old_striplib="$STRIP -S" 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14223 $as_echo "yes" >&6; } 14224 else 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14226 $as_echo "no" >&6; } 14227 fi 14228 ;; 14229 *) 14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14231 $as_echo "no" >&6; } 14232 ;; 14233 esac 14234 fi 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 # Report which library types will actually be built 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 14249 $as_echo_n "checking if libtool supports shared libraries... " >&6; } 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 14251 $as_echo "$can_build_shared" >&6; } 14252 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 14254 $as_echo_n "checking whether to build shared libraries... " >&6; } 14255 test "$can_build_shared" = "no" && enable_shared=no 14256 14257 # On AIX, shared libraries and static libraries use the same namespace, and 14258 # are all built from PIC. 14259 case $host_os in 14260 aix3*) 14261 test "$enable_shared" = yes && enable_static=no 14262 if test -n "$RANLIB"; then 14263 archive_cmds="$archive_cmds~\$RANLIB \$lib" 14264 postinstall_cmds='$RANLIB $lib' 14265 fi 14266 ;; 14267 14268 aix[4-9]*) 14269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 14270 test "$enable_shared" = yes && enable_static=no 14271 fi 14272 ;; 14273 esac 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 14275 $as_echo "$enable_shared" >&6; } 14276 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 14278 $as_echo_n "checking whether to build static libraries... " >&6; } 14279 # Make sure either enable_shared or enable_static is yes. 14280 test "$enable_shared" = yes || enable_static=yes 14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 14282 $as_echo "$enable_static" >&6; } 14283 14284 14285 14286 14287 fi 14288 ac_ext=c 14289 ac_cpp='$CPP $CPPFLAGS' 14290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14292 ac_compiler_gnu=$ac_cv_c_compiler_gnu 14293 14294 CC="$lt_save_CC" 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 ac_config_commands="$ac_config_commands libtool" 14309 14310 14311 14312 14313 # Only expand once: 14314 14315 14316 # Check whether --enable-largefile was given. 14317 if test "${enable_largefile+set}" = set; then : 14318 enableval=$enable_largefile; 14319 fi 14320 14321 if test "$enable_largefile" != no; then 14322 14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 14324 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 14325 if ${ac_cv_sys_largefile_CC+:} false; then : 14326 $as_echo_n "(cached) " >&6 14327 else 14328 ac_cv_sys_largefile_CC=no 14329 if test "$GCC" != yes; then 14330 ac_save_CC=$CC 14331 while :; do 14332 # IRIX 6.2 and later do not support large files by default, 14333 # so use the C compiler's -n32 option if that helps. 14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14335 /* end confdefs.h. */ 14336 #include <sys/types.h> 14337 /* Check that off_t can represent 2**63 - 1 correctly. 14338 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14339 since some C++ compilers masquerading as C compilers 14340 incorrectly reject 9223372036854775807. */ 14341 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14342 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14343 && LARGE_OFF_T % 2147483647 == 1) 14344 ? 1 : -1]; 14345 int 14346 main () 14347 { 14348 14349 ; 14350 return 0; 14351 } 14352 _ACEOF 14353 if ac_fn_c_try_compile "$LINENO"; then : 14354 break 14355 fi 14356 rm -f core conftest.err conftest.$ac_objext 14357 CC="$CC -n32" 14358 if ac_fn_c_try_compile "$LINENO"; then : 14359 ac_cv_sys_largefile_CC=' -n32'; break 14360 fi 14361 rm -f core conftest.err conftest.$ac_objext 14362 break 14363 done 14364 CC=$ac_save_CC 14365 rm -f conftest.$ac_ext 14366 fi 14367 fi 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 14369 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 14370 if test "$ac_cv_sys_largefile_CC" != no; then 14371 CC=$CC$ac_cv_sys_largefile_CC 14372 fi 14373 14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 14375 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 14376 if ${ac_cv_sys_file_offset_bits+:} false; then : 14377 $as_echo_n "(cached) " >&6 14378 else 14379 while :; do 14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14381 /* end confdefs.h. */ 14382 #include <sys/types.h> 14383 /* Check that off_t can represent 2**63 - 1 correctly. 14384 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14385 since some C++ compilers masquerading as C compilers 14386 incorrectly reject 9223372036854775807. */ 14387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14389 && LARGE_OFF_T % 2147483647 == 1) 14390 ? 1 : -1]; 14391 int 14392 main () 14393 { 14394 14395 ; 14396 return 0; 14397 } 14398 _ACEOF 14399 if ac_fn_c_try_compile "$LINENO"; then : 14400 ac_cv_sys_file_offset_bits=no; break 14401 fi 14402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14404 /* end confdefs.h. */ 14405 #define _FILE_OFFSET_BITS 64 14406 #include <sys/types.h> 14407 /* Check that off_t can represent 2**63 - 1 correctly. 14408 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14409 since some C++ compilers masquerading as C compilers 14410 incorrectly reject 9223372036854775807. */ 14411 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14413 && LARGE_OFF_T % 2147483647 == 1) 14414 ? 1 : -1]; 14415 int 14416 main () 14417 { 14418 14419 ; 14420 return 0; 14421 } 14422 _ACEOF 14423 if ac_fn_c_try_compile "$LINENO"; then : 14424 ac_cv_sys_file_offset_bits=64; break 14425 fi 14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14427 ac_cv_sys_file_offset_bits=unknown 14428 break 14429 done 14430 fi 14431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 14432 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 14433 case $ac_cv_sys_file_offset_bits in #( 14434 no | unknown) ;; 14435 *) 14436 cat >>confdefs.h <<_ACEOF 14437 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 14438 _ACEOF 14439 ;; 14440 esac 14441 rm -rf conftest* 14442 if test $ac_cv_sys_file_offset_bits = unknown; then 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 14444 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 14445 if ${ac_cv_sys_large_files+:} false; then : 14446 $as_echo_n "(cached) " >&6 14447 else 14448 while :; do 14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14450 /* end confdefs.h. */ 14451 #include <sys/types.h> 14452 /* Check that off_t can represent 2**63 - 1 correctly. 14453 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14454 since some C++ compilers masquerading as C compilers 14455 incorrectly reject 9223372036854775807. */ 14456 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14458 && LARGE_OFF_T % 2147483647 == 1) 14459 ? 1 : -1]; 14460 int 14461 main () 14462 { 14463 14464 ; 14465 return 0; 14466 } 14467 _ACEOF 14468 if ac_fn_c_try_compile "$LINENO"; then : 14469 ac_cv_sys_large_files=no; break 14470 fi 14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14473 /* end confdefs.h. */ 14474 #define _LARGE_FILES 1 14475 #include <sys/types.h> 14476 /* Check that off_t can represent 2**63 - 1 correctly. 14477 We can't simply define LARGE_OFF_T to be 9223372036854775807, 14478 since some C++ compilers masquerading as C compilers 14479 incorrectly reject 9223372036854775807. */ 14480 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 14481 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 14482 && LARGE_OFF_T % 2147483647 == 1) 14483 ? 1 : -1]; 14484 int 14485 main () 14486 { 14487 14488 ; 14489 return 0; 14490 } 14491 _ACEOF 14492 if ac_fn_c_try_compile "$LINENO"; then : 14493 ac_cv_sys_large_files=1; break 14494 fi 14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14496 ac_cv_sys_large_files=unknown 14497 break 14498 done 14499 fi 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 14501 $as_echo "$ac_cv_sys_large_files" >&6; } 14502 case $ac_cv_sys_large_files in #( 14503 no | unknown) ;; 14504 *) 14505 cat >>confdefs.h <<_ACEOF 14506 #define _LARGE_FILES $ac_cv_sys_large_files 14507 _ACEOF 14508 ;; 14509 esac 14510 rm -rf conftest* 14511 fi 14512 14513 14514 fi 14515 14516 : ${CONFIG_LT=./config.lt} 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5 14518 $as_echo "$as_me: creating $CONFIG_LT" >&6;} 14519 as_write_fail=0 14520 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1 14521 #! $SHELL 14522 # Generated by $as_me. 14523 # Run this file to recreate a libtool stub with the current configuration. 14524 SHELL=\${CONFIG_SHELL-$SHELL} 14525 export SHELL 14526 _ASEOF 14527 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1 14528 ## -------------------- ## 14529 ## M4sh Initialization. ## 14530 ## -------------------- ## 14531 14532 # Be more Bourne compatible 14533 DUALCASE=1; export DUALCASE # for MKS sh 14534 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14535 emulate sh 14536 NULLCMD=: 14537 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14538 # is contrary to our usage. Disable this feature. 14539 alias -g '${1+"$@"}'='"$@"' 14540 setopt NO_GLOB_SUBST 14541 else 14542 case `(set -o) 2>/dev/null` in #( 14543 *posix*) : 14544 set -o posix ;; #( 14545 *) : 14546 ;; 14547 esac 14548 fi 14549 14550 14551 as_nl=' 14552 ' 14553 export as_nl 14554 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14555 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14556 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14557 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14558 # Prefer a ksh shell builtin over an external printf program on Solaris, 14559 # but without wasting forks for bash or zsh. 14560 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14561 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14562 as_echo='print -r --' 14563 as_echo_n='print -rn --' 14564 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14565 as_echo='printf %s\n' 14566 as_echo_n='printf %s' 14567 else 14568 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14569 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14570 as_echo_n='/usr/ucb/echo -n' 14571 else 14572 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14573 as_echo_n_body='eval 14574 arg=$1; 14575 case $arg in #( 14576 *"$as_nl"*) 14577 expr "X$arg" : "X\\(.*\\)$as_nl"; 14578 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14579 esac; 14580 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14581 ' 14582 export as_echo_n_body 14583 as_echo_n='sh -c $as_echo_n_body as_echo' 14584 fi 14585 export as_echo_body 14586 as_echo='sh -c $as_echo_body as_echo' 14587 fi 14588 14589 # The user is always right. 14590 if test "${PATH_SEPARATOR+set}" != set; then 14591 PATH_SEPARATOR=: 14592 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14593 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14594 PATH_SEPARATOR=';' 14595 } 14596 fi 14597 14598 14599 # IFS 14600 # We need space, tab and new line, in precisely that order. Quoting is 14601 # there to prevent editors from complaining about space-tab. 14602 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 14603 # splitting by setting IFS to empty value.) 14604 IFS=" "" $as_nl" 14605 14606 # Find who we are. Look in the path if we contain no directory separator. 14607 as_myself= 14608 case $0 in #(( 14609 *[\\/]* ) as_myself=$0 ;; 14610 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14611 for as_dir in $PATH 14612 do 14613 IFS=$as_save_IFS 14614 test -z "$as_dir" && as_dir=. 14615 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14616 done 14617 IFS=$as_save_IFS 14618 14619 ;; 14620 esac 14621 # We did not find ourselves, most probably we were run as `sh COMMAND' 14622 # in which case we are not to be found in the path. 14623 if test "x$as_myself" = x; then 14624 as_myself=$0 14625 fi 14626 if test ! -f "$as_myself"; then 14627 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14628 exit 1 14629 fi 14630 14631 # Unset variables that we do not need and which cause bugs (e.g. in 14632 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14633 # suppresses any "Segmentation fault" message there. '((' could 14634 # trigger a bug in pdksh 5.2.14. 14635 for as_var in BASH_ENV ENV MAIL MAILPATH 14636 do eval test x\${$as_var+set} = xset \ 14637 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14638 done 14639 PS1='$ ' 14640 PS2='> ' 14641 PS4='+ ' 14642 14643 # NLS nuisances. 14644 LC_ALL=C 14645 export LC_ALL 14646 LANGUAGE=C 14647 export LANGUAGE 14648 14649 # CDPATH. 14650 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14651 14652 14653 # as_fn_error STATUS ERROR [LINENO LOG_FD] 14654 # ---------------------------------------- 14655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14657 # script with STATUS, using 1 if that was 0. 14658 as_fn_error () 14659 { 14660 as_status=$1; test $as_status -eq 0 && as_status=1 14661 if test "$4"; then 14662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14664 fi 14665 $as_echo "$as_me: error: $2" >&2 14666 as_fn_exit $as_status 14667 } # as_fn_error 14668 14669 14670 # as_fn_set_status STATUS 14671 # ----------------------- 14672 # Set $? to STATUS, without forking. 14673 as_fn_set_status () 14674 { 14675 return $1 14676 } # as_fn_set_status 14677 14678 # as_fn_exit STATUS 14679 # ----------------- 14680 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14681 as_fn_exit () 14682 { 14683 set +e 14684 as_fn_set_status $1 14685 exit $1 14686 } # as_fn_exit 14687 14688 # as_fn_unset VAR 14689 # --------------- 14690 # Portably unset VAR. 14691 as_fn_unset () 14692 { 14693 { eval $1=; unset $1;} 14694 } 14695 as_unset=as_fn_unset 14696 # as_fn_append VAR VALUE 14697 # ---------------------- 14698 # Append the text in VALUE to the end of the definition contained in VAR. Take 14699 # advantage of any shell optimizations that allow amortized linear growth over 14700 # repeated appends, instead of the typical quadratic growth present in naive 14701 # implementations. 14702 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14703 eval 'as_fn_append () 14704 { 14705 eval $1+=\$2 14706 }' 14707 else 14708 as_fn_append () 14709 { 14710 eval $1=\$$1\$2 14711 } 14712 fi # as_fn_append 14713 14714 # as_fn_arith ARG... 14715 # ------------------ 14716 # Perform arithmetic evaluation on the ARGs, and store the result in the 14717 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14718 # must be portable across $(()) and expr. 14719 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14720 eval 'as_fn_arith () 14721 { 14722 as_val=$(( $* )) 14723 }' 14724 else 14725 as_fn_arith () 14726 { 14727 as_val=`expr "$@" || test $? -eq 1` 14728 } 14729 fi # as_fn_arith 14730 14731 14732 if expr a : '\(a\)' >/dev/null 2>&1 && 14733 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14734 as_expr=expr 14735 else 14736 as_expr=false 14737 fi 14738 14739 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14740 as_basename=basename 14741 else 14742 as_basename=false 14743 fi 14744 14745 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14746 as_dirname=dirname 14747 else 14748 as_dirname=false 14749 fi 14750 14751 as_me=`$as_basename -- "$0" || 14752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14753 X"$0" : 'X\(//\)$' \| \ 14754 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14755 $as_echo X/"$0" | 14756 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14757 s//\1/ 14758 q 14759 } 14760 /^X\/\(\/\/\)$/{ 14761 s//\1/ 14762 q 14763 } 14764 /^X\/\(\/\).*/{ 14765 s//\1/ 14766 q 14767 } 14768 s/.*/./; q'` 14769 14770 # Avoid depending upon Character Ranges. 14771 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14772 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14773 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14774 as_cr_digits='0123456789' 14775 as_cr_alnum=$as_cr_Letters$as_cr_digits 14776 14777 ECHO_C= ECHO_N= ECHO_T= 14778 case `echo -n x` in #((((( 14779 -n*) 14780 case `echo 'xy\c'` in 14781 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14782 xy) ECHO_C='\c';; 14783 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14784 ECHO_T=' ';; 14785 esac;; 14786 *) 14787 ECHO_N='-n';; 14788 esac 14789 14790 rm -f conf$$ conf$$.exe conf$$.file 14791 if test -d conf$$.dir; then 14792 rm -f conf$$.dir/conf$$.file 14793 else 14794 rm -f conf$$.dir 14795 mkdir conf$$.dir 2>/dev/null 14796 fi 14797 if (echo >conf$$.file) 2>/dev/null; then 14798 if ln -s conf$$.file conf$$ 2>/dev/null; then 14799 as_ln_s='ln -s' 14800 # ... but there are two gotchas: 14801 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14802 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14803 # In both cases, we have to default to `cp -pR'. 14804 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14805 as_ln_s='cp -pR' 14806 elif ln conf$$.file conf$$ 2>/dev/null; then 14807 as_ln_s=ln 14808 else 14809 as_ln_s='cp -pR' 14810 fi 14811 else 14812 as_ln_s='cp -pR' 14813 fi 14814 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14815 rmdir conf$$.dir 2>/dev/null 14816 14817 14818 # as_fn_mkdir_p 14819 # ------------- 14820 # Create "$as_dir" as a directory, including parents if necessary. 14821 as_fn_mkdir_p () 14822 { 14823 14824 case $as_dir in #( 14825 -*) as_dir=./$as_dir;; 14826 esac 14827 test -d "$as_dir" || eval $as_mkdir_p || { 14828 as_dirs= 14829 while :; do 14830 case $as_dir in #( 14831 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14832 *) as_qdir=$as_dir;; 14833 esac 14834 as_dirs="'$as_qdir' $as_dirs" 14835 as_dir=`$as_dirname -- "$as_dir" || 14836 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14837 X"$as_dir" : 'X\(//\)[^/]' \| \ 14838 X"$as_dir" : 'X\(//\)$' \| \ 14839 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14840 $as_echo X"$as_dir" | 14841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14842 s//\1/ 14843 q 14844 } 14845 /^X\(\/\/\)[^/].*/{ 14846 s//\1/ 14847 q 14848 } 14849 /^X\(\/\/\)$/{ 14850 s//\1/ 14851 q 14852 } 14853 /^X\(\/\).*/{ 14854 s//\1/ 14855 q 14856 } 14857 s/.*/./; q'` 14858 test -d "$as_dir" && break 14859 done 14860 test -z "$as_dirs" || eval "mkdir $as_dirs" 14861 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14862 14863 14864 } # as_fn_mkdir_p 14865 if mkdir -p . 2>/dev/null; then 14866 as_mkdir_p='mkdir -p "$as_dir"' 14867 else 14868 test -d ./-p && rmdir ./-p 14869 as_mkdir_p=false 14870 fi 14871 14872 14873 # as_fn_executable_p FILE 14874 # ----------------------- 14875 # Test if FILE is an executable regular file. 14876 as_fn_executable_p () 14877 { 14878 test -f "$1" && test -x "$1" 14879 } # as_fn_executable_p 14880 as_test_x='test -x' 14881 as_executable_p=as_fn_executable_p 14882 14883 # Sed expression to map a string onto a valid CPP name. 14884 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14885 14886 # Sed expression to map a string onto a valid variable name. 14887 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14888 14889 14890 exec 6>&1 14891 ## --------------------------------- ## 14892 ## Main body of "$CONFIG_LT" script. ## 14893 ## --------------------------------- ## 14894 _ASEOF 14895 test $as_write_fail = 0 && chmod +x "$CONFIG_LT" 14896 14897 cat >>"$CONFIG_LT" <<\_LTEOF 14898 lt_cl_silent=false 14899 exec 5>>config.log 14900 { 14901 echo 14902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14903 ## Running $as_me. ## 14904 _ASBOX 14905 } >&5 14906 14907 lt_cl_help="\ 14908 \`$as_me' creates a local libtool stub from the current configuration, 14909 for use in further configure time tests before the real libtool is 14910 generated. 14911 14912 Usage: $0 [OPTIONS] 14913 14914 -h, --help print this help, then exit 14915 -V, --version print version number, then exit 14916 -q, --quiet do not print progress messages 14917 -d, --debug don't remove temporary files 14918 14919 Report bugs to <bug-libtool@gnu.org>." 14920 14921 lt_cl_version="\ 14922 libctf config.lt 1.2.0 14923 configured by $0, generated by GNU Autoconf 2.69. 14924 14925 Copyright (C) 2009 Free Software Foundation, Inc. 14926 This config.lt script is free software; the Free Software Foundation 14927 gives unlimited permision to copy, distribute and modify it." 14928 14929 while test $# != 0 14930 do 14931 case $1 in 14932 --version | --v* | -V ) 14933 echo "$lt_cl_version"; exit 0 ;; 14934 --help | --h* | -h ) 14935 echo "$lt_cl_help"; exit 0 ;; 14936 --debug | --d* | -d ) 14937 debug=: ;; 14938 --quiet | --q* | --silent | --s* | -q ) 14939 lt_cl_silent=: ;; 14940 14941 -*) as_fn_error $? "unrecognized option: $1 14942 Try \`$0 --help' for more information." "$LINENO" 5 ;; 14943 14944 *) as_fn_error $? "unrecognized argument: $1 14945 Try \`$0 --help' for more information." "$LINENO" 5 ;; 14946 esac 14947 shift 14948 done 14949 14950 if $lt_cl_silent; then 14951 exec 6>/dev/null 14952 fi 14953 _LTEOF 14954 14955 cat >>"$CONFIG_LT" <<_LTEOF 14956 14957 14958 # The HP-UX ksh and POSIX shell print the target directory to stdout 14959 # if CDPATH is set. 14960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14961 14962 sed_quote_subst='$sed_quote_subst' 14963 double_quote_subst='$double_quote_subst' 14964 delay_variable_subst='$delay_variable_subst' 14965 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14966 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14967 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14968 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14969 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14970 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14971 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14972 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14973 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14974 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14975 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14976 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14977 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14978 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14979 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14980 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14981 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14982 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14983 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14984 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14985 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14986 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14987 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14988 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14989 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14990 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14991 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14992 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14993 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14994 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14995 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14996 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14997 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14998 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14999 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15000 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15001 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15002 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15003 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15004 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15005 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15006 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15007 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15008 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15009 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15010 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15011 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15012 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15013 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"`' 15014 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15015 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15016 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15017 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15018 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15019 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15020 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15021 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15022 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15023 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15024 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15025 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15026 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15027 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15028 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15029 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15030 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15031 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15032 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15033 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15034 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15035 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15036 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15037 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15038 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15039 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15040 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15041 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15042 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15043 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15044 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15045 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15046 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15047 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15048 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15049 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15050 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15051 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15052 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15053 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15054 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15055 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15056 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15057 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15058 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15059 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15060 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15061 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15062 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15063 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15064 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15065 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15066 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15067 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15068 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15069 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15070 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15071 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15072 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15073 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15074 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15075 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15076 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15077 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15078 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15079 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15080 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15081 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15082 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15083 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15084 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15085 15086 LTCC='$LTCC' 15087 LTCFLAGS='$LTCFLAGS' 15088 compiler='$compiler_DEFAULT' 15089 15090 # A function that is used when there is no print builtin or printf. 15091 func_fallback_echo () 15092 { 15093 eval 'cat <<_LTECHO_EOF 15094 \$1 15095 _LTECHO_EOF' 15096 } 15097 15098 # Quote evaled strings. 15099 for var in SHELL \ 15100 ECHO \ 15101 SED \ 15102 GREP \ 15103 EGREP \ 15104 FGREP \ 15105 LD \ 15106 NM \ 15107 LN_S \ 15108 lt_SP2NL \ 15109 lt_NL2SP \ 15110 reload_flag \ 15111 OBJDUMP \ 15112 deplibs_check_method \ 15113 file_magic_cmd \ 15114 AR \ 15115 AR_FLAGS \ 15116 STRIP \ 15117 RANLIB \ 15118 CC \ 15119 CFLAGS \ 15120 compiler \ 15121 lt_cv_sys_global_symbol_pipe \ 15122 lt_cv_sys_global_symbol_to_cdecl \ 15123 lt_cv_sys_global_symbol_to_c_name_address \ 15124 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15125 lt_prog_compiler_no_builtin_flag \ 15126 lt_prog_compiler_wl \ 15127 lt_prog_compiler_pic \ 15128 lt_prog_compiler_static \ 15129 lt_cv_prog_compiler_c_o \ 15130 need_locks \ 15131 DSYMUTIL \ 15132 NMEDIT \ 15133 LIPO \ 15134 OTOOL \ 15135 OTOOL64 \ 15136 shrext_cmds \ 15137 export_dynamic_flag_spec \ 15138 whole_archive_flag_spec \ 15139 compiler_needs_object \ 15140 with_gnu_ld \ 15141 allow_undefined_flag \ 15142 no_undefined_flag \ 15143 hardcode_libdir_flag_spec \ 15144 hardcode_libdir_flag_spec_ld \ 15145 hardcode_libdir_separator \ 15146 fix_srcfile_path \ 15147 exclude_expsyms \ 15148 include_expsyms \ 15149 file_list_spec \ 15150 variables_saved_for_relink \ 15151 libname_spec \ 15152 library_names_spec \ 15153 soname_spec \ 15154 install_override_mode \ 15155 finish_eval \ 15156 old_striplib \ 15157 striplib; do 15158 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15159 *[\\\\\\\`\\"\\\$]*) 15160 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15161 ;; 15162 *) 15163 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15164 ;; 15165 esac 15166 done 15167 15168 # Double-quote double-evaled strings. 15169 for var in reload_cmds \ 15170 old_postinstall_cmds \ 15171 old_postuninstall_cmds \ 15172 old_archive_cmds \ 15173 extract_expsyms_cmds \ 15174 old_archive_from_new_cmds \ 15175 old_archive_from_expsyms_cmds \ 15176 archive_cmds \ 15177 archive_expsym_cmds \ 15178 module_cmds \ 15179 module_expsym_cmds \ 15180 export_symbols_cmds \ 15181 prelink_cmds \ 15182 postinstall_cmds \ 15183 postuninstall_cmds \ 15184 finish_cmds \ 15185 sys_lib_search_path_spec \ 15186 sys_lib_dlsearch_path_spec; do 15187 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15188 *[\\\\\\\`\\"\\\$]*) 15189 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15190 ;; 15191 *) 15192 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15193 ;; 15194 esac 15195 done 15196 15197 ac_aux_dir='$ac_aux_dir' 15198 xsi_shell='$xsi_shell' 15199 lt_shell_append='$lt_shell_append' 15200 15201 # See if we are running on zsh, and set the options which allow our 15202 # commands through without removal of \ escapes INIT. 15203 if test -n "\${ZSH_VERSION+set}" ; then 15204 setopt NO_GLOB_SUBST 15205 fi 15206 15207 15208 PACKAGE='$PACKAGE' 15209 VERSION='$VERSION' 15210 TIMESTAMP='$TIMESTAMP' 15211 RM='$RM' 15212 ofile='$ofile' 15213 15214 15215 15216 _LTEOF 15217 15218 cat >>"$CONFIG_LT" <<\_LTEOF 15219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5 15220 $as_echo "$as_me: creating $ofile" >&6;} 15221 15222 15223 # See if we are running on zsh, and set the options which allow our 15224 # commands through without removal of \ escapes. 15225 if test -n "${ZSH_VERSION+set}" ; then 15226 setopt NO_GLOB_SUBST 15227 fi 15228 15229 cfgfile="${ofile}T" 15230 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15231 $RM "$cfgfile" 15232 15233 cat <<_LT_EOF >> "$cfgfile" 15234 #! $SHELL 15235 15236 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15237 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15239 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 15240 # 15241 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15242 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 15243 # Written by Gordon Matzigkeit, 1996 15244 # 15245 # This file is part of GNU Libtool. 15246 # 15247 # GNU Libtool is free software; you can redistribute it and/or 15248 # modify it under the terms of the GNU General Public License as 15249 # published by the Free Software Foundation; either version 2 of 15250 # the License, or (at your option) any later version. 15251 # 15252 # As a special exception to the GNU General Public License, 15253 # if you distribute this file as part of a program or library that 15254 # is built using GNU Libtool, you may include this file under the 15255 # same distribution terms that you use for the rest of that program. 15256 # 15257 # GNU Libtool is distributed in the hope that it will be useful, 15258 # but WITHOUT ANY WARRANTY; without even the implied warranty of 15259 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15260 # GNU General Public License for more details. 15261 # 15262 # You should have received a copy of the GNU General Public License 15263 # along with GNU Libtool; see the file COPYING. If not, a copy 15264 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15265 # obtained by writing to the Free Software Foundation, Inc., 15266 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15267 15268 15269 # The names of the tagged configurations supported by this script. 15270 available_tags="" 15271 15272 # ### BEGIN LIBTOOL CONFIG 15273 15274 # Whether or not to build shared libraries. 15275 build_libtool_libs=$enable_shared 15276 15277 # Which release of libtool.m4 was used? 15278 macro_version=$macro_version 15279 macro_revision=$macro_revision 15280 15281 # Whether or not to build static libraries. 15282 build_old_libs=$enable_static 15283 15284 # What type of objects to build. 15285 pic_mode=$pic_mode 15286 15287 # Whether or not to optimize for fast installation. 15288 fast_install=$enable_fast_install 15289 15290 # Shell to use when invoking shell scripts. 15291 SHELL=$lt_SHELL 15292 15293 # An echo program that protects backslashes. 15294 ECHO=$lt_ECHO 15295 15296 # The host system. 15297 host_alias=$host_alias 15298 host=$host 15299 host_os=$host_os 15300 15301 # The build system. 15302 build_alias=$build_alias 15303 build=$build 15304 build_os=$build_os 15305 15306 # A sed program that does not truncate output. 15307 SED=$lt_SED 15308 15309 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 15310 Xsed="\$SED -e 1s/^X//" 15311 15312 # A grep program that handles long lines. 15313 GREP=$lt_GREP 15314 15315 # An ERE matcher. 15316 EGREP=$lt_EGREP 15317 15318 # A literal string matcher. 15319 FGREP=$lt_FGREP 15320 15321 # A BSD- or MS-compatible name lister. 15322 NM=$lt_NM 15323 15324 # Whether we need soft or hard links. 15325 LN_S=$lt_LN_S 15326 15327 # What is the maximum length of a command? 15328 max_cmd_len=$max_cmd_len 15329 15330 # Object file suffix (normally "o"). 15331 objext=$ac_objext 15332 15333 # Executable file suffix (normally ""). 15334 exeext=$exeext 15335 15336 # whether the shell understands "unset". 15337 lt_unset=$lt_unset 15338 15339 # turn spaces into newlines. 15340 SP2NL=$lt_lt_SP2NL 15341 15342 # turn newlines into spaces. 15343 NL2SP=$lt_lt_NL2SP 15344 15345 # An object symbol dumper. 15346 OBJDUMP=$lt_OBJDUMP 15347 15348 # Method to check whether dependent libraries are shared objects. 15349 deplibs_check_method=$lt_deplibs_check_method 15350 15351 # Command to use when deplibs_check_method == "file_magic". 15352 file_magic_cmd=$lt_file_magic_cmd 15353 15354 # The archiver. 15355 AR=$lt_AR 15356 AR_FLAGS=$lt_AR_FLAGS 15357 15358 # A symbol stripping program. 15359 STRIP=$lt_STRIP 15360 15361 # Commands used to install an old-style archive. 15362 RANLIB=$lt_RANLIB 15363 old_postinstall_cmds=$lt_old_postinstall_cmds 15364 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15365 15366 # Whether to use a lock for old archive extraction. 15367 lock_old_archive_extraction=$lock_old_archive_extraction 15368 15369 # A C compiler. 15370 LTCC=$lt_CC 15371 15372 # LTCC compiler flags. 15373 LTCFLAGS=$lt_CFLAGS 15374 15375 # Take the output of nm and produce a listing of raw symbols and C names. 15376 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15377 15378 # Transform the output of nm in a proper C declaration. 15379 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15380 15381 # Transform the output of nm in a C name address pair. 15382 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15383 15384 # Transform the output of nm in a C name address pair when lib prefix is needed. 15385 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15386 15387 # The name of the directory that contains temporary libtool files. 15388 objdir=$objdir 15389 15390 # Used to examine libraries when file_magic_cmd begins with "file". 15391 MAGIC_CMD=$MAGIC_CMD 15392 15393 # Must we lock files when doing compilation? 15394 need_locks=$lt_need_locks 15395 15396 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15397 DSYMUTIL=$lt_DSYMUTIL 15398 15399 # Tool to change global to local symbols on Mac OS X. 15400 NMEDIT=$lt_NMEDIT 15401 15402 # Tool to manipulate fat objects and archives on Mac OS X. 15403 LIPO=$lt_LIPO 15404 15405 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 15406 OTOOL=$lt_OTOOL 15407 15408 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15409 OTOOL64=$lt_OTOOL64 15410 15411 # Old archive suffix (normally "a"). 15412 libext=$libext 15413 15414 # Shared library suffix (normally ".so"). 15415 shrext_cmds=$lt_shrext_cmds 15416 15417 # The commands to extract the exported symbol list from a shared archive. 15418 extract_expsyms_cmds=$lt_extract_expsyms_cmds 15419 15420 # Variables whose values should be saved in libtool wrapper scripts and 15421 # restored at link time. 15422 variables_saved_for_relink=$lt_variables_saved_for_relink 15423 15424 # Do we need the "lib" prefix for modules? 15425 need_lib_prefix=$need_lib_prefix 15426 15427 # Do we need a version for libraries? 15428 need_version=$need_version 15429 15430 # Library versioning type. 15431 version_type=$version_type 15432 15433 # Shared library runtime path variable. 15434 runpath_var=$runpath_var 15435 15436 # Shared library path variable. 15437 shlibpath_var=$shlibpath_var 15438 15439 # Is shlibpath searched before the hard-coded library search path? 15440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15441 15442 # Format of library name prefix. 15443 libname_spec=$lt_libname_spec 15444 15445 # List of archive names. First name is the real one, the rest are links. 15446 # The last name is the one that the linker finds with -lNAME 15447 library_names_spec=$lt_library_names_spec 15448 15449 # The coded name of the library, if different from the real name. 15450 soname_spec=$lt_soname_spec 15451 15452 # Permission mode override for installation of shared libraries. 15453 install_override_mode=$lt_install_override_mode 15454 15455 # Command to use after installation of a shared archive. 15456 postinstall_cmds=$lt_postinstall_cmds 15457 15458 # Command to use after uninstallation of a shared archive. 15459 postuninstall_cmds=$lt_postuninstall_cmds 15460 15461 # Commands used to finish a libtool library installation in a directory. 15462 finish_cmds=$lt_finish_cmds 15463 15464 # As "finish_cmds", except a single script fragment to be evaled but 15465 # not shown. 15466 finish_eval=$lt_finish_eval 15467 15468 # Whether we should hardcode library paths into libraries. 15469 hardcode_into_libs=$hardcode_into_libs 15470 15471 # Compile-time system search path for libraries. 15472 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15473 15474 # Run-time system search path for libraries. 15475 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15476 15477 # Whether dlopen is supported. 15478 dlopen_support=$enable_dlopen 15479 15480 # Whether dlopen of programs is supported. 15481 dlopen_self=$enable_dlopen_self 15482 15483 # Whether dlopen of statically linked programs is supported. 15484 dlopen_self_static=$enable_dlopen_self_static 15485 15486 # Commands to strip libraries. 15487 old_striplib=$lt_old_striplib 15488 striplib=$lt_striplib 15489 15490 15491 # The linker used to build libraries. 15492 LD=$lt_LD 15493 15494 # How to create reloadable object files. 15495 reload_flag=$lt_reload_flag 15496 reload_cmds=$lt_reload_cmds 15497 15498 # Commands used to build an old-style archive. 15499 old_archive_cmds=$lt_old_archive_cmds 15500 15501 # A language specific compiler. 15502 CC=$lt_compiler 15503 15504 # Is the compiler the GNU compiler? 15505 with_gcc=$GCC 15506 15507 # Compiler flag to turn off builtin functions. 15508 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15509 15510 # How to pass a linker flag through the compiler. 15511 wl=$lt_lt_prog_compiler_wl 15512 15513 # Additional compiler flags for building library objects. 15514 pic_flag=$lt_lt_prog_compiler_pic 15515 15516 # Compiler flag to prevent dynamic linking. 15517 link_static_flag=$lt_lt_prog_compiler_static 15518 15519 # Does compiler simultaneously support -c and -o options? 15520 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15521 15522 # Whether or not to add -lc for building shared libraries. 15523 build_libtool_need_lc=$archive_cmds_need_lc 15524 15525 # Whether or not to disallow shared libs when runtime libs are static. 15526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15527 15528 # Compiler flag to allow reflexive dlopens. 15529 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15530 15531 # Compiler flag to generate shared objects directly from archives. 15532 whole_archive_flag_spec=$lt_whole_archive_flag_spec 15533 15534 # Whether the compiler copes with passing no objects directly. 15535 compiler_needs_object=$lt_compiler_needs_object 15536 15537 # Create an old-style archive from a shared archive. 15538 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15539 15540 # Create a temporary old-style archive to link instead of a shared archive. 15541 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15542 15543 # Commands used to build a shared archive. 15544 archive_cmds=$lt_archive_cmds 15545 archive_expsym_cmds=$lt_archive_expsym_cmds 15546 15547 # Commands used to build a loadable module if different from building 15548 # a shared archive. 15549 module_cmds=$lt_module_cmds 15550 module_expsym_cmds=$lt_module_expsym_cmds 15551 15552 # Whether we are building with GNU ld or not. 15553 with_gnu_ld=$lt_with_gnu_ld 15554 15555 # Flag that allows shared libraries with undefined symbols to be built. 15556 allow_undefined_flag=$lt_allow_undefined_flag 15557 15558 # Flag that enforces no undefined symbols. 15559 no_undefined_flag=$lt_no_undefined_flag 15560 15561 # Flag to hardcode \$libdir into a binary during linking. 15562 # This must work even if \$libdir does not exist 15563 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15564 15565 # If ld is used when linking, flag to hardcode \$libdir into a binary 15566 # during linking. This must work even if \$libdir does not exist. 15567 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15568 15569 # Whether we need a single "-rpath" flag with a separated argument. 15570 hardcode_libdir_separator=$lt_hardcode_libdir_separator 15571 15572 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15573 # DIR into the resulting binary. 15574 hardcode_direct=$hardcode_direct 15575 15576 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15577 # DIR into the resulting binary and the resulting library dependency is 15578 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15579 # library is relocated. 15580 hardcode_direct_absolute=$hardcode_direct_absolute 15581 15582 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15583 # into the resulting binary. 15584 hardcode_minus_L=$hardcode_minus_L 15585 15586 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15587 # into the resulting binary. 15588 hardcode_shlibpath_var=$hardcode_shlibpath_var 15589 15590 # Set to "yes" if building a shared library automatically hardcodes DIR 15591 # into the library and all subsequent libraries and executables linked 15592 # against it. 15593 hardcode_automatic=$hardcode_automatic 15594 15595 # Set to yes if linker adds runtime paths of dependent libraries 15596 # to runtime path list. 15597 inherit_rpath=$inherit_rpath 15598 15599 # Whether libtool must link a program against all its dependency libraries. 15600 link_all_deplibs=$link_all_deplibs 15601 15602 # Fix the shell variable \$srcfile for the compiler. 15603 fix_srcfile_path=$lt_fix_srcfile_path 15604 15605 # Set to "yes" if exported symbols are required. 15606 always_export_symbols=$always_export_symbols 15607 15608 # The commands to list exported symbols. 15609 export_symbols_cmds=$lt_export_symbols_cmds 15610 15611 # Symbols that should not be listed in the preloaded symbols. 15612 exclude_expsyms=$lt_exclude_expsyms 15613 15614 # Symbols that must always be exported. 15615 include_expsyms=$lt_include_expsyms 15616 15617 # Commands necessary for linking programs (against libraries) with templates. 15618 prelink_cmds=$lt_prelink_cmds 15619 15620 # Specify filename containing input files. 15621 file_list_spec=$lt_file_list_spec 15622 15623 # How to hardcode a shared library path into an executable. 15624 hardcode_action=$hardcode_action 15625 15626 # ### END LIBTOOL CONFIG 15627 15628 _LT_EOF 15629 15630 case $host_os in 15631 aix3*) 15632 cat <<\_LT_EOF >> "$cfgfile" 15633 # AIX sometimes has problems with the GCC collect2 program. For some 15634 # reason, if we set the COLLECT_NAMES environment variable, the problems 15635 # vanish in a puff of smoke. 15636 if test "X${COLLECT_NAMES+set}" != Xset; then 15637 COLLECT_NAMES= 15638 export COLLECT_NAMES 15639 fi 15640 _LT_EOF 15641 ;; 15642 esac 15643 15644 15645 ltmain="$ac_aux_dir/ltmain.sh" 15646 15647 15648 # We use sed instead of cat because bash on DJGPP gets confused if 15649 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15650 # text mode, it properly converts lines to CR/LF. This bash problem 15651 # is reportedly fixed, but why not run on old versions too? 15652 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15653 || (rm -f "$cfgfile"; exit 1) 15654 15655 case $xsi_shell in 15656 yes) 15657 cat << \_LT_EOF >> "$cfgfile" 15658 15659 # func_dirname file append nondir_replacement 15660 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 15661 # otherwise set result to NONDIR_REPLACEMENT. 15662 func_dirname () 15663 { 15664 case ${1} in 15665 */*) func_dirname_result="${1%/*}${2}" ;; 15666 * ) func_dirname_result="${3}" ;; 15667 esac 15668 } 15669 15670 # func_basename file 15671 func_basename () 15672 { 15673 func_basename_result="${1##*/}" 15674 } 15675 15676 # func_dirname_and_basename file append nondir_replacement 15677 # perform func_basename and func_dirname in a single function 15678 # call: 15679 # dirname: Compute the dirname of FILE. If nonempty, 15680 # add APPEND to the result, otherwise set result 15681 # to NONDIR_REPLACEMENT. 15682 # value returned in "$func_dirname_result" 15683 # basename: Compute filename of FILE. 15684 # value retuned in "$func_basename_result" 15685 # Implementation must be kept synchronized with func_dirname 15686 # and func_basename. For efficiency, we do not delegate to 15687 # those functions but instead duplicate the functionality here. 15688 func_dirname_and_basename () 15689 { 15690 case ${1} in 15691 */*) func_dirname_result="${1%/*}${2}" ;; 15692 * ) func_dirname_result="${3}" ;; 15693 esac 15694 func_basename_result="${1##*/}" 15695 } 15696 15697 # func_stripname prefix suffix name 15698 # strip PREFIX and SUFFIX off of NAME. 15699 # PREFIX and SUFFIX must not contain globbing or regex special 15700 # characters, hashes, percent signs, but SUFFIX may contain a leading 15701 # dot (in which case that matches only a dot). 15702 func_stripname () 15703 { 15704 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15705 # positional parameters, so assign one to ordinary parameter first. 15706 func_stripname_result=${3} 15707 func_stripname_result=${func_stripname_result#"${1}"} 15708 func_stripname_result=${func_stripname_result%"${2}"} 15709 } 15710 15711 # func_opt_split 15712 func_opt_split () 15713 { 15714 func_opt_split_opt=${1%%=*} 15715 func_opt_split_arg=${1#*=} 15716 } 15717 15718 # func_lo2o object 15719 func_lo2o () 15720 { 15721 case ${1} in 15722 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15723 *) func_lo2o_result=${1} ;; 15724 esac 15725 } 15726 15727 # func_xform libobj-or-source 15728 func_xform () 15729 { 15730 func_xform_result=${1%.*}.lo 15731 } 15732 15733 # func_arith arithmetic-term... 15734 func_arith () 15735 { 15736 func_arith_result=$(( $* )) 15737 } 15738 15739 # func_len string 15740 # STRING may not start with a hyphen. 15741 func_len () 15742 { 15743 func_len_result=${#1} 15744 } 15745 15746 _LT_EOF 15747 ;; 15748 *) # Bourne compatible functions. 15749 cat << \_LT_EOF >> "$cfgfile" 15750 15751 # func_dirname file append nondir_replacement 15752 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 15753 # otherwise set result to NONDIR_REPLACEMENT. 15754 func_dirname () 15755 { 15756 # Extract subdirectory from the argument. 15757 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 15758 if test "X$func_dirname_result" = "X${1}"; then 15759 func_dirname_result="${3}" 15760 else 15761 func_dirname_result="$func_dirname_result${2}" 15762 fi 15763 } 15764 15765 # func_basename file 15766 func_basename () 15767 { 15768 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 15769 } 15770 15771 15772 # func_stripname prefix suffix name 15773 # strip PREFIX and SUFFIX off of NAME. 15774 # PREFIX and SUFFIX must not contain globbing or regex special 15775 # characters, hashes, percent signs, but SUFFIX may contain a leading 15776 # dot (in which case that matches only a dot). 15777 # func_strip_suffix prefix name 15778 func_stripname () 15779 { 15780 case ${2} in 15781 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15782 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15783 esac 15784 } 15785 15786 # sed scripts: 15787 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15788 my_sed_long_arg='1s/^-[^=]*=//' 15789 15790 # func_opt_split 15791 func_opt_split () 15792 { 15793 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 15794 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 15795 } 15796 15797 # func_lo2o object 15798 func_lo2o () 15799 { 15800 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 15801 } 15802 15803 # func_xform libobj-or-source 15804 func_xform () 15805 { 15806 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 15807 } 15808 15809 # func_arith arithmetic-term... 15810 func_arith () 15811 { 15812 func_arith_result=`expr "$@"` 15813 } 15814 15815 # func_len string 15816 # STRING may not start with a hyphen. 15817 func_len () 15818 { 15819 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15820 } 15821 15822 _LT_EOF 15823 esac 15824 15825 case $lt_shell_append in 15826 yes) 15827 cat << \_LT_EOF >> "$cfgfile" 15828 15829 # func_append var value 15830 # Append VALUE to the end of shell variable VAR. 15831 func_append () 15832 { 15833 eval "$1+=\$2" 15834 } 15835 _LT_EOF 15836 ;; 15837 *) 15838 cat << \_LT_EOF >> "$cfgfile" 15839 15840 # func_append var value 15841 # Append VALUE to the end of shell variable VAR. 15842 func_append () 15843 { 15844 eval "$1=\$$1\$2" 15845 } 15846 15847 _LT_EOF 15848 ;; 15849 esac 15850 15851 15852 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15853 || (rm -f "$cfgfile"; exit 1) 15854 15855 mv -f "$cfgfile" "$ofile" || 15856 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15857 chmod +x "$ofile" 15858 15859 15860 as_fn_exit 0 15861 _LTEOF 15862 chmod +x "$CONFIG_LT" 15863 15864 # configure is writing to config.log, but config.lt does its own redirection, 15865 # appending to config.log, which fails on DOS, as config.log is still kept 15866 # open by configure. Here we exec the FD to /dev/null, effectively closing 15867 # config.log, so it can be properly (re)opened and appended to by config.lt. 15868 lt_cl_success=: 15869 test "$silent" = yes && 15870 lt_config_lt_args="$lt_config_lt_args --quiet" 15871 exec 5>/dev/null 15872 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 15873 exec 5>>config.log 15874 $lt_cl_success || as_fn_exit 1 15875 15876 15877 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing 15878 for ac_prog in aclocal 15879 do 15880 # Extract the first word of "$ac_prog", so it can be a program name with args. 15881 set dummy $ac_prog; ac_word=$2 15882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15883 $as_echo_n "checking for $ac_word... " >&6; } 15884 if ${ac_cv_prog_ACLOCAL+:} false; then : 15885 $as_echo_n "(cached) " >&6 15886 else 15887 if test -n "$ACLOCAL"; then 15888 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test. 15889 else 15890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15891 for as_dir in $PATH 15892 do 15893 IFS=$as_save_IFS 15894 test -z "$as_dir" && as_dir=. 15895 for ac_exec_ext in '' $ac_executable_extensions; do 15896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15897 ac_cv_prog_ACLOCAL="$ac_prog" 15898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15899 break 2 15900 fi 15901 done 15902 done 15903 IFS=$as_save_IFS 15904 15905 fi 15906 fi 15907 ACLOCAL=$ac_cv_prog_ACLOCAL 15908 if test -n "$ACLOCAL"; then 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5 15910 $as_echo "$ACLOCAL" >&6; } 15911 else 15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15913 $as_echo "no" >&6; } 15914 fi 15915 15916 15917 test -n "$ACLOCAL" && break 15918 done 15919 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal" 15920 15921 for ac_prog in autoconf 15922 do 15923 # Extract the first word of "$ac_prog", so it can be a program name with args. 15924 set dummy $ac_prog; ac_word=$2 15925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15926 $as_echo_n "checking for $ac_word... " >&6; } 15927 if ${ac_cv_prog_AUTOCONF+:} false; then : 15928 $as_echo_n "(cached) " >&6 15929 else 15930 if test -n "$AUTOCONF"; then 15931 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test. 15932 else 15933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15934 for as_dir in $PATH 15935 do 15936 IFS=$as_save_IFS 15937 test -z "$as_dir" && as_dir=. 15938 for ac_exec_ext in '' $ac_executable_extensions; do 15939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15940 ac_cv_prog_AUTOCONF="$ac_prog" 15941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15942 break 2 15943 fi 15944 done 15945 done 15946 IFS=$as_save_IFS 15947 15948 fi 15949 fi 15950 AUTOCONF=$ac_cv_prog_AUTOCONF 15951 if test -n "$AUTOCONF"; then 15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5 15953 $as_echo "$AUTOCONF" >&6; } 15954 else 15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15956 $as_echo "no" >&6; } 15957 fi 15958 15959 15960 test -n "$AUTOCONF" && break 15961 done 15962 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf" 15963 15964 for ac_prog in autoheader 15965 do 15966 # Extract the first word of "$ac_prog", so it can be a program name with args. 15967 set dummy $ac_prog; ac_word=$2 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15969 $as_echo_n "checking for $ac_word... " >&6; } 15970 if ${ac_cv_prog_AUTOHEADER+:} false; then : 15971 $as_echo_n "(cached) " >&6 15972 else 15973 if test -n "$AUTOHEADER"; then 15974 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test. 15975 else 15976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15977 for as_dir in $PATH 15978 do 15979 IFS=$as_save_IFS 15980 test -z "$as_dir" && as_dir=. 15981 for ac_exec_ext in '' $ac_executable_extensions; do 15982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15983 ac_cv_prog_AUTOHEADER="$ac_prog" 15984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15985 break 2 15986 fi 15987 done 15988 done 15989 IFS=$as_save_IFS 15990 15991 fi 15992 fi 15993 AUTOHEADER=$ac_cv_prog_AUTOHEADER 15994 if test -n "$AUTOHEADER"; then 15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5 15996 $as_echo "$AUTOHEADER" >&6; } 15997 else 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15999 $as_echo "no" >&6; } 16000 fi 16001 16002 16003 test -n "$AUTOHEADER" && break 16004 done 16005 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader" 16006 16007 16008 # Figure out what compiler warnings we can enable. 16009 # See config/warnings.m4 for details. 16010 16011 ac_ext=c 16012 ac_cpp='$CPP $CPPFLAGS' 16013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16015 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16016 16017 warn= 16018 save_CFLAGS="$CFLAGS" 16019 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \ 16020 -Wmissing-format-attribute; do 16021 # Do the check with the no- prefix removed since gcc silently 16022 # accepts any -Wno-* option on purpose 16023 case $real_option in 16024 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 16025 *) option=$real_option ;; 16026 esac 16027 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 16028 16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 16030 $as_echo_n "checking whether $CC supports $option... " >&6; } 16031 if eval \${$as_acx_Woption+:} false; then : 16032 $as_echo_n "(cached) " >&6 16033 else 16034 CFLAGS="$option" 16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16036 /* end confdefs.h. */ 16037 16038 int 16039 main () 16040 { 16041 16042 ; 16043 return 0; 16044 } 16045 _ACEOF 16046 if ac_fn_c_try_compile "$LINENO"; then : 16047 eval "$as_acx_Woption=yes" 16048 else 16049 eval "$as_acx_Woption=no" 16050 fi 16051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16052 16053 fi 16054 eval ac_res=\$$as_acx_Woption 16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16056 $as_echo "$ac_res" >&6; } 16057 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 16058 warn="$warn${warn:+ }$real_option" 16059 fi 16060 done 16061 CFLAGS="$save_CFLAGS" 16062 ac_ext=c 16063 ac_cpp='$CPP $CPPFLAGS' 16064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16066 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16067 16068 16069 ac_ext=c 16070 ac_cpp='$CPP $CPPFLAGS' 16071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16073 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16074 16075 c_warn= 16076 save_CFLAGS="$CFLAGS" 16077 for real_option in -Wstrict-prototypes -Wmissing-prototypes \ 16078 -Wold-style-definition; do 16079 # Do the check with the no- prefix removed since gcc silently 16080 # accepts any -Wno-* option on purpose 16081 case $real_option in 16082 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 16083 *) option=$real_option ;; 16084 esac 16085 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 16086 16087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 16088 $as_echo_n "checking whether $CC supports $option... " >&6; } 16089 if eval \${$as_acx_Woption+:} false; then : 16090 $as_echo_n "(cached) " >&6 16091 else 16092 CFLAGS="$option" 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094 /* end confdefs.h. */ 16095 16096 int 16097 main () 16098 { 16099 16100 ; 16101 return 0; 16102 } 16103 _ACEOF 16104 if ac_fn_c_try_compile "$LINENO"; then : 16105 eval "$as_acx_Woption=yes" 16106 else 16107 eval "$as_acx_Woption=no" 16108 fi 16109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16110 16111 fi 16112 eval ac_res=\$$as_acx_Woption 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16114 $as_echo "$ac_res" >&6; } 16115 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 16116 c_warn="$c_warn${c_warn:+ }$real_option" 16117 fi 16118 done 16119 CFLAGS="$save_CFLAGS" 16120 ac_ext=c 16121 ac_cpp='$CPP $CPPFLAGS' 16122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16124 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16125 16126 16127 ac_ext=c 16128 ac_cpp='$CPP $CPPFLAGS' 16129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16131 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16132 16133 WARN_PEDANTIC= 16134 # Do the check with the no- prefix removed from the warning options 16135 # since gcc silently accepts any -Wno-* option on purpose 16136 if test "$GCC" = yes; then : 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5 16138 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; } 16139 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then : 16140 $as_echo_n "(cached) " >&6 16141 else 16142 save_CFLAGS="$CFLAGS" 16143 CFLAGS="-pedantic -Wlong-long" 16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16145 /* end confdefs.h. */ 16146 16147 int 16148 main () 16149 { 16150 16151 ; 16152 return 0; 16153 } 16154 _ACEOF 16155 if ac_fn_c_try_compile "$LINENO"; then : 16156 acx_cv_prog_cc_pedantic__Wlong_long=yes 16157 else 16158 acx_cv_prog_cc_pedantic__Wlong_long=no 16159 fi 16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16161 CFLAGS="$save_CFLAGS" 16162 fi 16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5 16164 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; } 16165 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then : 16166 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long" 16167 fi 16168 16169 fi 16170 ac_ext=c 16171 ac_cpp='$CPP $CPPFLAGS' 16172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16174 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16175 16176 16177 16178 # Only enable with --enable-werror-always until existing warnings are 16179 # corrected. 16180 ac_ext=c 16181 ac_cpp='$CPP $CPPFLAGS' 16182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16184 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16185 16186 WERROR= 16187 # Check whether --enable-werror-always was given. 16188 if test "${enable_werror_always+set}" = set; then : 16189 enableval=$enable_werror_always; 16190 else 16191 enable_werror_always=no 16192 fi 16193 16194 if test $enable_werror_always = yes; then : 16195 WERROR="$WERROR${WERROR:+ }-Werror" 16196 fi 16197 16198 ac_ext=c 16199 ac_cpp='$CPP $CPPFLAGS' 16200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16202 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16203 16204 16205 16206 16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 16208 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 16209 # Check whether --enable-maintainer-mode was given. 16210 if test "${enable_maintainer_mode+set}" = set; then : 16211 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 16212 else 16213 USE_MAINTAINER_MODE=no 16214 fi 16215 16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 16217 $as_echo "$USE_MAINTAINER_MODE" >&6; } 16218 if test $USE_MAINTAINER_MODE = yes; then 16219 MAINTAINER_MODE_TRUE= 16220 MAINTAINER_MODE_FALSE='#' 16221 else 16222 MAINTAINER_MODE_TRUE='#' 16223 MAINTAINER_MODE_FALSE= 16224 fi 16225 16226 MAINT=$MAINTAINER_MODE_TRUE 16227 16228 16229 case ${build_alias} in 16230 "") build_noncanonical=${build} ;; 16231 *) build_noncanonical=${build_alias} ;; 16232 esac 16233 16234 case ${host_alias} in 16235 "") host_noncanonical=${build_noncanonical} ;; 16236 *) host_noncanonical=${host_alias} ;; 16237 esac 16238 16239 case ${target_alias} in 16240 "") target_noncanonical=${host_noncanonical} ;; 16241 *) target_noncanonical=${target_alias} ;; 16242 esac 16243 16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 16245 $as_echo_n "checking whether to install libbfd... " >&6; } 16246 # Check whether --enable-install-libbfd was given. 16247 if test "${enable_install_libbfd+set}" = set; then : 16248 enableval=$enable_install_libbfd; install_libbfd_p=$enableval 16249 else 16250 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then 16251 install_libbfd_p=yes 16252 else 16253 install_libbfd_p=no 16254 fi 16255 fi 16256 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 16258 $as_echo "$install_libbfd_p" >&6; } 16259 if test $install_libbfd_p = yes; then 16260 INSTALL_LIBBFD_TRUE= 16261 INSTALL_LIBBFD_FALSE='#' 16262 else 16263 INSTALL_LIBBFD_TRUE='#' 16264 INSTALL_LIBBFD_FALSE= 16265 fi 16266 16267 # Need _noncanonical variables for this. 16268 16269 16270 16271 16272 # libbfd.a is a host library containing target dependent code 16273 bfdlibdir='$(libdir)' 16274 bfdincludedir='$(includedir)' 16275 if test "${host}" != "${target}"; then 16276 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' 16277 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' 16278 fi 16279 16280 16281 16282 16283 16284 16285 ac_ext=c 16286 ac_cpp='$CPP $CPPFLAGS' 16287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16289 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16290 16291 ac_libctf_warn_cflags= 16292 save_CFLAGS="$CFLAGS" 16293 for real_option in -Wall; do 16294 # Do the check with the no- prefix removed since gcc silently 16295 # accepts any -Wno-* option on purpose 16296 case $real_option in 16297 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 16298 *) option=$real_option ;; 16299 esac 16300 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 16301 16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 16303 $as_echo_n "checking whether $CC supports $option... " >&6; } 16304 if eval \${$as_acx_Woption+:} false; then : 16305 $as_echo_n "(cached) " >&6 16306 else 16307 CFLAGS="$option" 16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16309 /* end confdefs.h. */ 16310 16311 int 16312 main () 16313 { 16314 16315 ; 16316 return 0; 16317 } 16318 _ACEOF 16319 if ac_fn_c_try_compile "$LINENO"; then : 16320 eval "$as_acx_Woption=yes" 16321 else 16322 eval "$as_acx_Woption=no" 16323 fi 16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16325 16326 fi 16327 eval ac_res=\$$as_acx_Woption 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16329 $as_echo "$ac_res" >&6; } 16330 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 16331 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option" 16332 fi 16333 done 16334 CFLAGS="$save_CFLAGS" 16335 ac_ext=c 16336 ac_cpp='$CPP $CPPFLAGS' 16337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16339 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16340 16341 16342 16343 case "${host}" in 16344 # PR libctf/29292 16345 # libctf's use of mmap doesn't work on Solaris 11.4, so disable it. 16346 *-*-solaris2.11*) 16347 ac_cv_func_mmap_fixed_mapped=no 16348 ;; 16349 esac 16350 16351 16352 16353 16354 for ac_header in $ac_header_list 16355 do : 16356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 16358 " 16359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16360 cat >>confdefs.h <<_ACEOF 16361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16362 _ACEOF 16363 16364 fi 16365 16366 done 16367 16368 16369 16370 16371 16372 16373 16374 save_ASAN_OPTIONS="$ASAN_OPTIONS" 16375 ASAN_OPTIONS=detect_leaks=0 16376 export ASAN_OPTIONS 16377 16378 for ac_func in getpagesize 16379 do : 16380 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 16381 if test "x$ac_cv_func_getpagesize" = xyes; then : 16382 cat >>confdefs.h <<_ACEOF 16383 #define HAVE_GETPAGESIZE 1 16384 _ACEOF 16385 16386 fi 16387 done 16388 16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 16390 $as_echo_n "checking for working mmap... " >&6; } 16391 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 16392 $as_echo_n "(cached) " >&6 16393 else 16394 if test "$cross_compiling" = yes; then : 16395 ac_cv_func_mmap_fixed_mapped=no 16396 else 16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16398 /* end confdefs.h. */ 16399 $ac_includes_default 16400 /* malloc might have been renamed as rpl_malloc. */ 16401 #undef malloc 16402 16403 /* Thanks to Mike Haertel and Jim Avera for this test. 16404 Here is a matrix of mmap possibilities: 16405 mmap private not fixed 16406 mmap private fixed at somewhere currently unmapped 16407 mmap private fixed at somewhere already mapped 16408 mmap shared not fixed 16409 mmap shared fixed at somewhere currently unmapped 16410 mmap shared fixed at somewhere already mapped 16411 For private mappings, we should verify that changes cannot be read() 16412 back from the file, nor mmap's back from the file at a different 16413 address. (There have been systems where private was not correctly 16414 implemented like the infamous i386 svr4.0, and systems where the 16415 VM page cache was not coherent with the file system buffer cache 16416 like early versions of FreeBSD and possibly contemporary NetBSD.) 16417 For shared mappings, we should conversely verify that changes get 16418 propagated back to all the places they're supposed to be. 16419 16420 Grep wants private fixed already mapped. 16421 The main things grep needs to know about mmap are: 16422 * does it exist and is it safe to write into the mmap'd area 16423 * how to use it (BSD variants) */ 16424 16425 #include <fcntl.h> 16426 #include <sys/mman.h> 16427 16428 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 16429 char *malloc (); 16430 #endif 16431 16432 /* This mess was copied from the GNU getpagesize.h. */ 16433 #ifndef HAVE_GETPAGESIZE 16434 # ifdef _SC_PAGESIZE 16435 # define getpagesize() sysconf(_SC_PAGESIZE) 16436 # else /* no _SC_PAGESIZE */ 16437 # ifdef HAVE_SYS_PARAM_H 16438 # include <sys/param.h> 16439 # ifdef EXEC_PAGESIZE 16440 # define getpagesize() EXEC_PAGESIZE 16441 # else /* no EXEC_PAGESIZE */ 16442 # ifdef NBPG 16443 # define getpagesize() NBPG * CLSIZE 16444 # ifndef CLSIZE 16445 # define CLSIZE 1 16446 # endif /* no CLSIZE */ 16447 # else /* no NBPG */ 16448 # ifdef NBPC 16449 # define getpagesize() NBPC 16450 # else /* no NBPC */ 16451 # ifdef PAGESIZE 16452 # define getpagesize() PAGESIZE 16453 # endif /* PAGESIZE */ 16454 # endif /* no NBPC */ 16455 # endif /* no NBPG */ 16456 # endif /* no EXEC_PAGESIZE */ 16457 # else /* no HAVE_SYS_PARAM_H */ 16458 # define getpagesize() 8192 /* punt totally */ 16459 # endif /* no HAVE_SYS_PARAM_H */ 16460 # endif /* no _SC_PAGESIZE */ 16461 16462 #endif /* no HAVE_GETPAGESIZE */ 16463 16464 int 16465 main () 16466 { 16467 char *data, *data2, *data3; 16468 const char *cdata2; 16469 int i, pagesize; 16470 int fd, fd2; 16471 16472 pagesize = getpagesize (); 16473 16474 /* First, make a file with some known garbage in it. */ 16475 data = (char *) malloc (pagesize); 16476 if (!data) 16477 return 1; 16478 for (i = 0; i < pagesize; ++i) 16479 *(data + i) = rand (); 16480 umask (0); 16481 fd = creat ("conftest.mmap", 0600); 16482 if (fd < 0) 16483 return 2; 16484 if (write (fd, data, pagesize) != pagesize) 16485 return 3; 16486 close (fd); 16487 16488 /* Next, check that the tail of a page is zero-filled. File must have 16489 non-zero length, otherwise we risk SIGBUS for entire page. */ 16490 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 16491 if (fd2 < 0) 16492 return 4; 16493 cdata2 = ""; 16494 if (write (fd2, cdata2, 1) != 1) 16495 return 5; 16496 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 16497 if (data2 == MAP_FAILED) 16498 return 6; 16499 for (i = 0; i < pagesize; ++i) 16500 if (*(data2 + i)) 16501 return 7; 16502 close (fd2); 16503 if (munmap (data2, pagesize)) 16504 return 8; 16505 16506 /* Next, try to mmap the file at a fixed address which already has 16507 something else allocated at it. If we can, also make sure that 16508 we see the same garbage. */ 16509 fd = open ("conftest.mmap", O_RDWR); 16510 if (fd < 0) 16511 return 9; 16512 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 16513 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 16514 return 10; 16515 for (i = 0; i < pagesize; ++i) 16516 if (*(data + i) != *(data2 + i)) 16517 return 11; 16518 16519 /* Finally, make sure that changes to the mapped area do not 16520 percolate back to the file as seen by read(). (This is a bug on 16521 some variants of i386 svr4.0.) */ 16522 for (i = 0; i < pagesize; ++i) 16523 *(data2 + i) = *(data2 + i) + 1; 16524 data3 = (char *) malloc (pagesize); 16525 if (!data3) 16526 return 12; 16527 if (read (fd, data3, pagesize) != pagesize) 16528 return 13; 16529 for (i = 0; i < pagesize; ++i) 16530 if (*(data + i) != *(data3 + i)) 16531 return 14; 16532 close (fd); 16533 return 0; 16534 } 16535 _ACEOF 16536 if ac_fn_c_try_run "$LINENO"; then : 16537 ac_cv_func_mmap_fixed_mapped=yes 16538 else 16539 ac_cv_func_mmap_fixed_mapped=no 16540 fi 16541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16542 conftest.$ac_objext conftest.beam conftest.$ac_ext 16543 fi 16544 16545 fi 16546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 16547 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 16548 if test $ac_cv_func_mmap_fixed_mapped = yes; then 16549 16550 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 16551 16552 fi 16553 rm -f conftest.mmap conftest.txt 16554 16555 ASAN_OPTIONS="$save_ASAN_OPTIONS" 16556 16557 # Needed for BFD capability checks. 16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 16559 $as_echo_n "checking for library containing dlsym... " >&6; } 16560 if ${ac_cv_search_dlsym+:} false; then : 16561 $as_echo_n "(cached) " >&6 16562 else 16563 ac_func_search_save_LIBS=$LIBS 16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16565 /* end confdefs.h. */ 16566 16567 /* Override any GCC internal prototype to avoid an error. 16568 Use char because int might match the return type of a GCC 16569 builtin and then its argument prototype would still apply. */ 16570 #ifdef __cplusplus 16571 extern "C" 16572 #endif 16573 char dlsym (); 16574 int 16575 main () 16576 { 16577 return dlsym (); 16578 ; 16579 return 0; 16580 } 16581 _ACEOF 16582 for ac_lib in '' dl; do 16583 if test -z "$ac_lib"; then 16584 ac_res="none required" 16585 else 16586 ac_res=-l$ac_lib 16587 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16588 fi 16589 if ac_fn_c_try_link "$LINENO"; then : 16590 ac_cv_search_dlsym=$ac_res 16591 fi 16592 rm -f core conftest.err conftest.$ac_objext \ 16593 conftest$ac_exeext 16594 if ${ac_cv_search_dlsym+:} false; then : 16595 break 16596 fi 16597 done 16598 if ${ac_cv_search_dlsym+:} false; then : 16599 16600 else 16601 ac_cv_search_dlsym=no 16602 fi 16603 rm conftest.$ac_ext 16604 LIBS=$ac_func_search_save_LIBS 16605 fi 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 16607 $as_echo "$ac_cv_search_dlsym" >&6; } 16608 ac_res=$ac_cv_search_dlsym 16609 if test "$ac_res" != no; then : 16610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16611 16612 fi 16613 16614 16615 # Use the system's zlib library. 16616 zlibdir="-L\$(top_builddir)/../zlib" 16617 zlibinc="-I\$(top_srcdir)/../zlib" 16618 16619 # Check whether --with-system-zlib was given. 16620 if test "${with_system_zlib+set}" = set; then : 16621 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then 16622 zlibdir= 16623 zlibinc= 16624 fi 16625 16626 fi 16627 16628 16629 16630 16631 16632 # Check whether --enable-libctf-hash-debugging was given. 16633 if test "${enable_libctf_hash_debugging+set}" = set; then : 16634 enableval=$enable_libctf_hash_debugging; 16635 case "$enableval" in 16636 yes|no) ;; 16637 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;; 16638 esac 16639 16640 else 16641 enable_libctf_hash_debugging=no 16642 fi 16643 16644 16645 if test "${enable_libctf_hash_debugging}" = yes; then 16646 16647 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h 16648 16649 fi 16650 if test "${enable_libctf_hash_debugging}" = yes; then 16651 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE= 16652 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#' 16653 else 16654 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#' 16655 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE= 16656 fi 16657 16658 16659 # Similar to GDB_AC_CHECK_BFD. 16660 OLD_CFLAGS=$CFLAGS 16661 OLD_LDFLAGS=$LDFLAGS 16662 OLD_LIBS=$LIBS 16663 OLD_CC=$CC 16664 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS 16665 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We 16666 # always want our bfd. 16667 CC="./libtool --quiet --mode=link $OLD_CC" 16668 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" 16669 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" 16670 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` 16671 LIBS="-lbfd -liberty $intl $LIBS" 16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5 16673 $as_echo_n "checking for ELF support in BFD... " >&6; } 16674 if ${ac_cv_libctf_bfd_elf+:} false; then : 16675 $as_echo_n "(cached) " >&6 16676 else 16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16678 /* end confdefs.h. */ 16679 #include <stdlib.h> 16680 #include <string.h> 16681 #include "bfd.h" 16682 #include "elf-bfd.h" 16683 int 16684 main () 16685 { 16686 (void) bfd_section_from_elf_index (NULL, 0); 16687 return 0; 16688 ; 16689 return 0; 16690 } 16691 _ACEOF 16692 if ac_fn_c_try_link "$LINENO"; then : 16693 ac_cv_libctf_bfd_elf=yes 16694 else 16695 ac_cv_libctf_bfd_elf=no 16696 fi 16697 rm -f core conftest.err conftest.$ac_objext \ 16698 conftest$ac_exeext conftest.$ac_ext 16699 fi 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5 16701 $as_echo "$ac_cv_libctf_bfd_elf" >&6; } 16702 CFLAGS=$OLD_CFLAGS 16703 LDFLAGS=$OLD_LDFLAGS 16704 LIBS=$OLD_LIBS 16705 CC=$OLD_CC 16706 16707 if test $ac_cv_libctf_bfd_elf = yes; then 16708 16709 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h 16710 16711 fi 16712 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16714 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16715 if ${ac_cv_c_bigendian+:} false; then : 16716 $as_echo_n "(cached) " >&6 16717 else 16718 ac_cv_c_bigendian=unknown 16719 # See if we're dealing with a universal compiler. 16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16721 /* end confdefs.h. */ 16722 #ifndef __APPLE_CC__ 16723 not a universal capable compiler 16724 #endif 16725 typedef int dummy; 16726 16727 _ACEOF 16728 if ac_fn_c_try_compile "$LINENO"; then : 16729 16730 # Check for potential -arch flags. It is not universal unless 16731 # there are at least two -arch flags with different values. 16732 ac_arch= 16733 ac_prev= 16734 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16735 if test -n "$ac_prev"; then 16736 case $ac_word in 16737 i?86 | x86_64 | ppc | ppc64) 16738 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16739 ac_arch=$ac_word 16740 else 16741 ac_cv_c_bigendian=universal 16742 break 16743 fi 16744 ;; 16745 esac 16746 ac_prev= 16747 elif test "x$ac_word" = "x-arch"; then 16748 ac_prev=arch 16749 fi 16750 done 16751 fi 16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16753 if test $ac_cv_c_bigendian = unknown; then 16754 # See if sys/param.h defines the BYTE_ORDER macro. 16755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16756 /* end confdefs.h. */ 16757 #include <sys/types.h> 16758 #include <sys/param.h> 16759 16760 int 16761 main () 16762 { 16763 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16764 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16765 && LITTLE_ENDIAN) 16766 bogus endian macros 16767 #endif 16768 16769 ; 16770 return 0; 16771 } 16772 _ACEOF 16773 if ac_fn_c_try_compile "$LINENO"; then : 16774 # It does; now see whether it defined to BIG_ENDIAN or not. 16775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16776 /* end confdefs.h. */ 16777 #include <sys/types.h> 16778 #include <sys/param.h> 16779 16780 int 16781 main () 16782 { 16783 #if BYTE_ORDER != BIG_ENDIAN 16784 not big endian 16785 #endif 16786 16787 ; 16788 return 0; 16789 } 16790 _ACEOF 16791 if ac_fn_c_try_compile "$LINENO"; then : 16792 ac_cv_c_bigendian=yes 16793 else 16794 ac_cv_c_bigendian=no 16795 fi 16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16797 fi 16798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16799 fi 16800 if test $ac_cv_c_bigendian = unknown; then 16801 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16803 /* end confdefs.h. */ 16804 #include <limits.h> 16805 16806 int 16807 main () 16808 { 16809 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16810 bogus endian macros 16811 #endif 16812 16813 ; 16814 return 0; 16815 } 16816 _ACEOF 16817 if ac_fn_c_try_compile "$LINENO"; then : 16818 # It does; now see whether it defined to _BIG_ENDIAN or not. 16819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16820 /* end confdefs.h. */ 16821 #include <limits.h> 16822 16823 int 16824 main () 16825 { 16826 #ifndef _BIG_ENDIAN 16827 not big endian 16828 #endif 16829 16830 ; 16831 return 0; 16832 } 16833 _ACEOF 16834 if ac_fn_c_try_compile "$LINENO"; then : 16835 ac_cv_c_bigendian=yes 16836 else 16837 ac_cv_c_bigendian=no 16838 fi 16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16840 fi 16841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16842 fi 16843 if test $ac_cv_c_bigendian = unknown; then 16844 # Compile a test program. 16845 if test "$cross_compiling" = yes; then : 16846 # Try to guess by grepping values from an object file. 16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16848 /* end confdefs.h. */ 16849 short int ascii_mm[] = 16850 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16851 short int ascii_ii[] = 16852 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16853 int use_ascii (int i) { 16854 return ascii_mm[i] + ascii_ii[i]; 16855 } 16856 short int ebcdic_ii[] = 16857 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16858 short int ebcdic_mm[] = 16859 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16860 int use_ebcdic (int i) { 16861 return ebcdic_mm[i] + ebcdic_ii[i]; 16862 } 16863 extern int foo; 16864 16865 int 16866 main () 16867 { 16868 return use_ascii (foo) == use_ebcdic (foo); 16869 ; 16870 return 0; 16871 } 16872 _ACEOF 16873 if ac_fn_c_try_compile "$LINENO"; then : 16874 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16875 ac_cv_c_bigendian=yes 16876 fi 16877 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16878 if test "$ac_cv_c_bigendian" = unknown; then 16879 ac_cv_c_bigendian=no 16880 else 16881 # finding both strings is unlikely to happen, but who knows? 16882 ac_cv_c_bigendian=unknown 16883 fi 16884 fi 16885 fi 16886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16887 else 16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16889 /* end confdefs.h. */ 16890 $ac_includes_default 16891 int 16892 main () 16893 { 16894 16895 /* Are we little or big endian? From Harbison&Steele. */ 16896 union 16897 { 16898 long int l; 16899 char c[sizeof (long int)]; 16900 } u; 16901 u.l = 1; 16902 return u.c[sizeof (long int) - 1] == 1; 16903 16904 ; 16905 return 0; 16906 } 16907 _ACEOF 16908 if ac_fn_c_try_run "$LINENO"; then : 16909 ac_cv_c_bigendian=no 16910 else 16911 ac_cv_c_bigendian=yes 16912 fi 16913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16914 conftest.$ac_objext conftest.beam conftest.$ac_ext 16915 fi 16916 16917 fi 16918 fi 16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16920 $as_echo "$ac_cv_c_bigendian" >&6; } 16921 case $ac_cv_c_bigendian in #( 16922 yes) 16923 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16924 ;; #( 16925 no) 16926 ;; #( 16927 universal) 16928 16929 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16930 16931 ;; #( 16932 *) 16933 as_fn_error $? "unknown endianness 16934 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16935 esac 16936 16937 for ac_header in byteswap.h endian.h valgrind/valgrind.h 16938 do : 16939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16940 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16941 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16942 cat >>confdefs.h <<_ACEOF 16943 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16944 _ACEOF 16945 16946 fi 16947 16948 done 16949 16950 for ac_func in pread 16951 do : 16952 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 16953 if test "x$ac_cv_func_pread" = xyes; then : 16954 cat >>confdefs.h <<_ACEOF 16955 #define HAVE_PREAD 1 16956 _ACEOF 16957 16958 fi 16959 done 16960 16961 16962 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h> 16963 " 16964 if test "x$ac_cv_have_decl_bswap_16" = xyes; then : 16965 ac_have_decl=1 16966 else 16967 ac_have_decl=0 16968 fi 16969 16970 cat >>confdefs.h <<_ACEOF 16971 #define HAVE_DECL_BSWAP_16 $ac_have_decl 16972 _ACEOF 16973 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h> 16974 " 16975 if test "x$ac_cv_have_decl_bswap_32" = xyes; then : 16976 ac_have_decl=1 16977 else 16978 ac_have_decl=0 16979 fi 16980 16981 cat >>confdefs.h <<_ACEOF 16982 #define HAVE_DECL_BSWAP_32 $ac_have_decl 16983 _ACEOF 16984 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h> 16985 " 16986 if test "x$ac_cv_have_decl_bswap_64" = xyes; then : 16987 ac_have_decl=1 16988 else 16989 ac_have_decl=0 16990 fi 16991 16992 cat >>confdefs.h <<_ACEOF 16993 #define HAVE_DECL_BSWAP_64 $ac_have_decl 16994 _ACEOF 16995 16996 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" 16997 if test "x$ac_cv_have_decl_asprintf" = xyes; then : 16998 ac_have_decl=1 16999 else 17000 ac_have_decl=0 17001 fi 17002 17003 cat >>confdefs.h <<_ACEOF 17004 #define HAVE_DECL_ASPRINTF $ac_have_decl 17005 _ACEOF 17006 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" 17007 if test "x$ac_cv_have_decl_vasprintf" = xyes; then : 17008 ac_have_decl=1 17009 else 17010 ac_have_decl=0 17011 fi 17012 17013 cat >>confdefs.h <<_ACEOF 17014 #define HAVE_DECL_VASPRINTF $ac_have_decl 17015 _ACEOF 17016 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" 17017 if test "x$ac_cv_have_decl_stpcpy" = xyes; then : 17018 ac_have_decl=1 17019 else 17020 ac_have_decl=0 17021 fi 17022 17023 cat >>confdefs.h <<_ACEOF 17024 #define HAVE_DECL_STPCPY $ac_have_decl 17025 _ACEOF 17026 17027 17028 17029 17030 17031 for ac_func in $ac_func_list 17032 do : 17033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17035 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17036 cat >>confdefs.h <<_ACEOF 17037 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17038 _ACEOF 17039 17040 fi 17041 done 17042 17043 17044 17045 17046 if test $ac_cv_func_qsort_r = yes; then 17047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5 17048 $as_echo_n "checking for qsort_r signature... " >&6; } 17049 if ${ac_cv_libctf_qsort_r_signature+:} false; then : 17050 $as_echo_n "(cached) " >&6 17051 else 17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17053 /* end confdefs.h. */ 17054 #undef qsort_r 17055 #include <stdlib.h> 17056 void qsort_r (void *, size_t, size_t, 17057 int (*) (void const *, void const *, 17058 void *), 17059 void *); 17060 void (*p) (void *, size_t, size_t, 17061 int (*) (void const *, void const *, 17062 void *), 17063 void *) = qsort_r; 17064 17065 int 17066 main () 17067 { 17068 17069 ; 17070 return 0; 17071 } 17072 _ACEOF 17073 if ac_fn_c_try_link "$LINENO"; then : 17074 ac_cv_libctf_qsort_r_signature=GNU 17075 else 17076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17077 /* end confdefs.h. */ 17078 #undef qsort_r 17079 #include <stdlib.h> 17080 void qsort_r (void *, size_t, size_t, void *, 17081 int (*) (void *, 17082 void const *, 17083 void const *)); 17084 void (*p) (void *, size_t, size_t, void *, 17085 int (*) (void *, void const *, 17086 void const *)) = qsort_r; 17087 17088 int 17089 main () 17090 { 17091 17092 ; 17093 return 0; 17094 } 17095 _ACEOF 17096 if ac_fn_c_try_link "$LINENO"; then : 17097 ac_cv_libctf_qsort_r_signature=BSD 17098 else 17099 ac_cv_libctf_qsort_r_signature=unknown 17100 fi 17101 rm -f core conftest.err conftest.$ac_objext \ 17102 conftest$ac_exeext conftest.$ac_ext 17103 fi 17104 rm -f core conftest.err conftest.$ac_objext \ 17105 conftest$ac_exeext conftest.$ac_ext 17106 fi 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5 17108 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; } 17109 fi 17110 17111 case x$ac_cv_libctf_qsort_r_signature in 17112 xGNU) 17113 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h 17114 ;; 17115 xBSD) 17116 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h 17117 ;; 17118 *) ac_cv_libctf_qsort_r_signature=unknown;; 17119 esac 17120 17121 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then 17122 NEED_CTF_QSORT_R_TRUE= 17123 NEED_CTF_QSORT_R_FALSE='#' 17124 else 17125 NEED_CTF_QSORT_R_TRUE='#' 17126 NEED_CTF_QSORT_R_FALSE= 17127 fi 17128 17129 17130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5 17131 $as_echo_n "checking for O_CLOEXEC... " >&6; } 17132 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then : 17133 $as_echo_n "(cached) " >&6 17134 else 17135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17136 /* end confdefs.h. */ 17137 #include <fcntl.h> 17138 #ifndef O_CLOEXEC 17139 choke me; 17140 #endif 17141 17142 int 17143 main () 17144 { 17145 return O_CLOEXEC; 17146 ; 17147 return 0; 17148 } 17149 _ACEOF 17150 if ac_fn_c_try_link "$LINENO"; then : 17151 ac_cv_libctf_macro_O_CLOEXEC=yes 17152 else 17153 ac_cv_libctf_macro_O_CLOEXEC=no 17154 fi 17155 rm -f core conftest.err conftest.$ac_objext \ 17156 conftest$ac_exeext conftest.$ac_ext 17157 fi 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5 17159 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; } 17160 17161 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then 17162 17163 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h 17164 17165 fi 17166 17167 build_info= 17168 makeinfo_too_old= 17169 for ac_prog in makeinfo 17170 do 17171 # Extract the first word of "$ac_prog", so it can be a program name with args. 17172 set dummy $ac_prog; ac_word=$2 17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17174 $as_echo_n "checking for $ac_word... " >&6; } 17175 if ${ac_cv_prog_MAKEINFO+:} false; then : 17176 $as_echo_n "(cached) " >&6 17177 else 17178 if test -n "$MAKEINFO"; then 17179 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 17180 else 17181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17182 for as_dir in $PATH 17183 do 17184 IFS=$as_save_IFS 17185 test -z "$as_dir" && as_dir=. 17186 for ac_exec_ext in '' $ac_executable_extensions; do 17187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17188 ac_cv_prog_MAKEINFO="$ac_prog" 17189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17190 break 2 17191 fi 17192 done 17193 done 17194 IFS=$as_save_IFS 17195 17196 fi 17197 fi 17198 MAKEINFO=$ac_cv_prog_MAKEINFO 17199 if test -n "$MAKEINFO"; then 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 17201 $as_echo "$MAKEINFO" >&6; } 17202 else 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17204 $as_echo "no" >&6; } 17205 fi 17206 17207 17208 test -n "$MAKEINFO" && break 17209 done 17210 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo" 17211 17212 case " $build_configdirs " in 17213 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;; 17214 esac 17215 17216 # We require texinfo to be 6.3 or later, for a working synindex 17217 # and validatemenus: otherwise we fall back to /bin/true. 17218 if ${MAKEINFO} --version \ 17219 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9]|[1-6][0-9])' >/dev/null 2>&1; then 17220 build_info=yes 17221 else 17222 build_info= 17223 makeinfo_too_old=t 17224 fi 17225 17226 if test -n "$makeinfo_too_old"; then 17227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 17228 *** Makeinfo is too old. Info documentation will not be built." >&5 17229 $as_echo "$as_me: WARNING: 17230 *** Makeinfo is too old. Info documentation will not be built." >&2;} 17231 fi 17232 17233 if test "${build_info}" = yes; then 17234 BUILD_INFO_TRUE= 17235 BUILD_INFO_FALSE='#' 17236 else 17237 BUILD_INFO_TRUE='#' 17238 BUILD_INFO_FALSE= 17239 fi 17240 17241 17242 CTF_LIBADD="-L`pwd`/../libiberty -liberty" 17243 SHARED_LDFLAGS= 17244 17245 # Horrible hacks to build DLLs on Windows and a shared library elsewhere. 17246 if test "$enable_shared" = "yes"; then 17247 # When building a shared libctf, link against the pic version of libiberty 17248 # so that apps that use libctf won't need libiberty just to satisfy any 17249 # libctf references. We can't do that if a pic libiberty is unavailable 17250 # since including non-pic # code would insert text relocations into libctf. 17251 # Note that linking against libbfd as we do here, which is itself linked 17252 # against libiberty, may not satisfy all the libctf libiberty references 17253 # since libbfd may not pull in the entirety of libiberty. 17254 # Also, jam libintl into the right place in all of this: after libiberty, 17255 # which uses it, but before -lcygwin, which it uses. 17256 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 17257 if test -n "$x"; then 17258 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty" 17259 fi 17260 fi 17261 17262 CTF_LIBADD="$CTF_LIBADD $LTLIBINTL" 17263 17264 if test "$enable_shared" = "yes"; then 17265 case "${host}" in 17266 # More hacks to build DLLs on Windows. 17267 *-*-cygwin*) 17268 SHARED_LDFLAGS="-no-undefined" 17269 CTF_LIBADD="$CTF_LIBADD -lcygwin" 17270 ;; 17271 esac 17272 fi 17273 17274 17275 17276 # Extract the first word of "expect", so it can be a program name with args. 17277 set dummy expect; ac_word=$2 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17279 $as_echo_n "checking for $ac_word... " >&6; } 17280 if ${ac_cv_path_EXPECT+:} false; then : 17281 $as_echo_n "(cached) " >&6 17282 else 17283 case $EXPECT in 17284 [\\/]* | ?:[\\/]*) 17285 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path. 17286 ;; 17287 *) 17288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17289 for as_dir in $PATH 17290 do 17291 IFS=$as_save_IFS 17292 test -z "$as_dir" && as_dir=. 17293 for ac_exec_ext in '' $ac_executable_extensions; do 17294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17295 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext" 17296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17297 break 2 17298 fi 17299 done 17300 done 17301 IFS=$as_save_IFS 17302 17303 ;; 17304 esac 17305 fi 17306 EXPECT=$ac_cv_path_EXPECT 17307 if test -n "$EXPECT"; then 17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5 17309 $as_echo "$EXPECT" >&6; } 17310 else 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17312 $as_echo "no" >&6; } 17313 fi 17314 17315 17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5 17317 $as_echo_n "checking for Tcl supporting try/catch... " >&6; } 17318 if ${ac_cv_libctf_tcl_try+:} false; then : 17319 $as_echo_n "(cached) " >&6 17320 else 17321 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF 17322 if [llength [info commands try]] then { puts yes } else { puts no } 17323 EOF 17324 fi` 17325 17326 fi 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5 17328 $as_echo "$ac_cv_libctf_tcl_try" >&6; } 17329 17330 HAVE_TCL_TRY=false 17331 if test "${ac_cv_libctf_tcl_try}" = "yes"; then 17332 HAVE_TCL_TRY=true 17333 fi 17334 17335 17336 # Use a version script, if possible, or an -export-symbols-regex otherwise. 17337 # First figure out the version script flag: then massage the script, if 17338 # needed. 17339 decommented_version_script= 17340 no_version_script= 17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5 17342 $as_echo_n "checking for linker versioning flags... " >&6; } 17343 if ${ac_cv_libctf_version_script+:} false; then : 17344 $as_echo_n "(cached) " >&6 17345 else 17346 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver 17347 old_LDFLAGS="$LDFLAGS" 17348 old_CFLAGS="$CFLAGS" 17349 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver" 17350 CFLAGS="$CFLAGS -fPIC" 17351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17352 /* end confdefs.h. */ 17353 int ctf_foo (void) { return 0; } 17354 int main (void) { return ctf_foo(); } 17355 _ACEOF 17356 if ac_fn_c_try_link "$LINENO"; then : 17357 ac_cv_libctf_version_script="-Wl,--version-script" 17358 fi 17359 rm -f core conftest.err conftest.$ac_objext \ 17360 conftest$ac_exeext conftest.$ac_ext 17361 LDFLAGS="$old_LDFLAGS" 17362 17363 if test -z "$ac_cv_libctf_version_script"; then 17364 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver" 17365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17366 /* end confdefs.h. */ 17367 int ctf_foo (void) { return 0; } 17368 int main (void) { return ctf_foo(); } 17369 _ACEOF 17370 if ac_fn_c_try_link "$LINENO"; then : 17371 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script" 17372 decommented_version_script=t 17373 fi 17374 rm -f core conftest.err conftest.$ac_objext \ 17375 conftest$ac_exeext conftest.$ac_ext 17376 LDFLAGS="$old_LDFLAGS" 17377 fi 17378 CFLAGS="$old_CFLAGS" 17379 17380 if test -z "$ac_cv_libctf_version_script"; then 17381 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*' 17382 no_version_script=t 17383 fi 17384 rm -f conftest.ver 17385 fi 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5 17387 $as_echo "$ac_cv_libctf_version_script" >&6; } 17388 17389 # Ensure that no symbols exist in the version script for libctf-nobfd.so 17390 # that do not exist in the shared library itself, since some linkers (Solaris) 17391 # add such symbols with type NOTYPE, and others (LLVM) complain loudly 17392 # and fail to link. 17393 grep -v 'libctf only' $srcdir/libctf.ver > libctf-nobfd.ver 17394 17395 if test -n "$decommented_version_script"; then 17396 # Solaris's version scripts use shell-style comments rather than the C-style 17397 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this 17398 # name on all platforms that support ld -z gnu-version-script.) 17399 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver 17400 /lib/cpp < libctf-nobfd.ver > libctf-nobfd-decommented.ver 17401 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'" 17402 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'" 17403 elif test -z "$no_version_script"; then 17404 VERSION_FLAGS="$ac_cv_libctf_version_script='$srcdir/libctf.ver'" 17405 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd.ver'" 17406 else 17407 VERSION_FLAGS="$ac_cv_libctf_version_script" 17408 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script" 17409 fi 17410 17411 17412 17413 ac_config_files="$ac_config_files Makefile" 17414 17415 ac_config_headers="$ac_config_headers config.h" 17416 17417 cat >confcache <<\_ACEOF 17418 # This file is a shell script that caches the results of configure 17419 # tests run on this system so they can be shared between configure 17420 # scripts and configure runs, see configure's option --config-cache. 17421 # It is not useful on other systems. If it contains results you don't 17422 # want to keep, you may remove or edit it. 17423 # 17424 # config.status only pays attention to the cache file if you give it 17425 # the --recheck option to rerun configure. 17426 # 17427 # `ac_cv_env_foo' variables (set or unset) will be overridden when 17428 # loading this file, other *unset* `ac_cv_foo' will be assigned the 17429 # following values. 17430 17431 _ACEOF 17432 17433 # The following way of writing the cache mishandles newlines in values, 17434 # but we know of no workaround that is simple, portable, and efficient. 17435 # So, we kill variables containing newlines. 17436 # Ultrix sh set writes to stderr and can't be redirected directly, 17437 # and sets the high bit in the cache file unless we assign to the vars. 17438 ( 17439 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17440 eval ac_val=\$$ac_var 17441 case $ac_val in #( 17442 *${as_nl}*) 17443 case $ac_var in #( 17444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17446 esac 17447 case $ac_var in #( 17448 _ | IFS | as_nl) ;; #( 17449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17450 *) { eval $ac_var=; unset $ac_var;} ;; 17451 esac ;; 17452 esac 17453 done 17454 17455 (set) 2>&1 | 17456 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17457 *${as_nl}ac_space=\ *) 17458 # `set' does not quote correctly, so add quotes: double-quote 17459 # substitution turns \\\\ into \\, and sed turns \\ into \. 17460 sed -n \ 17461 "s/'/'\\\\''/g; 17462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17463 ;; #( 17464 *) 17465 # `set' quotes correctly as required by POSIX, so do not add quotes. 17466 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17467 ;; 17468 esac | 17469 sort 17470 ) | 17471 sed ' 17472 /^ac_cv_env_/b end 17473 t clear 17474 :clear 17475 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17476 t end 17477 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17478 :end' >>confcache 17479 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17480 if test -w "$cache_file"; then 17481 if test "x$cache_file" != "x/dev/null"; then 17482 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17483 $as_echo "$as_me: updating cache $cache_file" >&6;} 17484 if test ! -f "$cache_file" || test -h "$cache_file"; then 17485 cat confcache >"$cache_file" 17486 else 17487 case $cache_file in #( 17488 */* | ?:*) 17489 mv -f confcache "$cache_file"$$ && 17490 mv -f "$cache_file"$$ "$cache_file" ;; #( 17491 *) 17492 mv -f confcache "$cache_file" ;; 17493 esac 17494 fi 17495 fi 17496 else 17497 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17498 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17499 fi 17500 fi 17501 rm -f confcache 17502 17503 test "x$prefix" = xNONE && prefix=$ac_default_prefix 17504 # Let make expand exec_prefix. 17505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17506 17507 DEFS=-DHAVE_CONFIG_H 17508 17509 ac_libobjs= 17510 ac_ltlibobjs= 17511 U= 17512 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17513 # 1. Remove the extension, and $U if already installed. 17514 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17515 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17516 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17517 # will be set to the directory where LIBOBJS objects are built. 17518 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17519 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17520 done 17521 LIBOBJS=$ac_libobjs 17522 17523 LTLIBOBJS=$ac_ltlibobjs 17524 17525 17526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17527 $as_echo_n "checking that generated files are newer than configure... " >&6; } 17528 if test -n "$am_sleep_pid"; then 17529 # Hide warnings about reused PIDs. 17530 wait $am_sleep_pid 2>/dev/null 17531 fi 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17533 $as_echo "done" >&6; } 17534 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17535 as_fn_error $? "conditional \"AMDEP\" was never defined. 17536 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17537 fi 17538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17539 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17540 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17541 fi 17542 if test -n "$EXEEXT"; then 17543 am__EXEEXT_TRUE= 17544 am__EXEEXT_FALSE='#' 17545 else 17546 am__EXEEXT_TRUE='#' 17547 am__EXEEXT_FALSE= 17548 fi 17549 17550 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17551 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17552 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17553 fi 17554 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then 17555 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. 17556 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17557 fi 17558 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then 17559 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined. 17560 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17561 fi 17562 17563 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then 17564 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined. 17565 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17566 fi 17567 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 17568 as_fn_error $? "conditional \"BUILD_INFO\" was never defined. 17569 Usually this means the macro was only invoked conditionally." "$LINENO" 5 17570 fi 17571 17572 : "${CONFIG_STATUS=./config.status}" 17573 ac_write_fail=0 17574 ac_clean_files_save=$ac_clean_files 17575 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17577 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17578 as_write_fail=0 17579 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17580 #! $SHELL 17581 # Generated by $as_me. 17582 # Run this file to recreate the current configuration. 17583 # Compiler output produced by configure, useful for debugging 17584 # configure, is in config.log if it exists. 17585 17586 debug=false 17587 ac_cs_recheck=false 17588 ac_cs_silent=false 17589 17590 SHELL=\${CONFIG_SHELL-$SHELL} 17591 export SHELL 17592 _ASEOF 17593 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17594 ## -------------------- ## 17595 ## M4sh Initialization. ## 17596 ## -------------------- ## 17597 17598 # Be more Bourne compatible 17599 DUALCASE=1; export DUALCASE # for MKS sh 17600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17601 emulate sh 17602 NULLCMD=: 17603 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17604 # is contrary to our usage. Disable this feature. 17605 alias -g '${1+"$@"}'='"$@"' 17606 setopt NO_GLOB_SUBST 17607 else 17608 case `(set -o) 2>/dev/null` in #( 17609 *posix*) : 17610 set -o posix ;; #( 17611 *) : 17612 ;; 17613 esac 17614 fi 17615 17616 17617 as_nl=' 17618 ' 17619 export as_nl 17620 # Printing a long string crashes Solaris 7 /usr/bin/printf. 17621 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17622 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17623 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17624 # Prefer a ksh shell builtin over an external printf program on Solaris, 17625 # but without wasting forks for bash or zsh. 17626 if test -z "$BASH_VERSION$ZSH_VERSION" \ 17627 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17628 as_echo='print -r --' 17629 as_echo_n='print -rn --' 17630 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17631 as_echo='printf %s\n' 17632 as_echo_n='printf %s' 17633 else 17634 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17635 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17636 as_echo_n='/usr/ucb/echo -n' 17637 else 17638 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17639 as_echo_n_body='eval 17640 arg=$1; 17641 case $arg in #( 17642 *"$as_nl"*) 17643 expr "X$arg" : "X\\(.*\\)$as_nl"; 17644 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17645 esac; 17646 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17647 ' 17648 export as_echo_n_body 17649 as_echo_n='sh -c $as_echo_n_body as_echo' 17650 fi 17651 export as_echo_body 17652 as_echo='sh -c $as_echo_body as_echo' 17653 fi 17654 17655 # The user is always right. 17656 if test "${PATH_SEPARATOR+set}" != set; then 17657 PATH_SEPARATOR=: 17658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17659 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17660 PATH_SEPARATOR=';' 17661 } 17662 fi 17663 17664 17665 # IFS 17666 # We need space, tab and new line, in precisely that order. Quoting is 17667 # there to prevent editors from complaining about space-tab. 17668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 17669 # splitting by setting IFS to empty value.) 17670 IFS=" "" $as_nl" 17671 17672 # Find who we are. Look in the path if we contain no directory separator. 17673 as_myself= 17674 case $0 in #(( 17675 *[\\/]* ) as_myself=$0 ;; 17676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17677 for as_dir in $PATH 17678 do 17679 IFS=$as_save_IFS 17680 test -z "$as_dir" && as_dir=. 17681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17682 done 17683 IFS=$as_save_IFS 17684 17685 ;; 17686 esac 17687 # We did not find ourselves, most probably we were run as `sh COMMAND' 17688 # in which case we are not to be found in the path. 17689 if test "x$as_myself" = x; then 17690 as_myself=$0 17691 fi 17692 if test ! -f "$as_myself"; then 17693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17694 exit 1 17695 fi 17696 17697 # Unset variables that we do not need and which cause bugs (e.g. in 17698 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17699 # suppresses any "Segmentation fault" message there. '((' could 17700 # trigger a bug in pdksh 5.2.14. 17701 for as_var in BASH_ENV ENV MAIL MAILPATH 17702 do eval test x\${$as_var+set} = xset \ 17703 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17704 done 17705 PS1='$ ' 17706 PS2='> ' 17707 PS4='+ ' 17708 17709 # NLS nuisances. 17710 LC_ALL=C 17711 export LC_ALL 17712 LANGUAGE=C 17713 export LANGUAGE 17714 17715 # CDPATH. 17716 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17717 17718 17719 # as_fn_error STATUS ERROR [LINENO LOG_FD] 17720 # ---------------------------------------- 17721 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17722 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17723 # script with STATUS, using 1 if that was 0. 17724 as_fn_error () 17725 { 17726 as_status=$1; test $as_status -eq 0 && as_status=1 17727 if test "$4"; then 17728 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17729 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17730 fi 17731 $as_echo "$as_me: error: $2" >&2 17732 as_fn_exit $as_status 17733 } # as_fn_error 17734 17735 17736 # as_fn_set_status STATUS 17737 # ----------------------- 17738 # Set $? to STATUS, without forking. 17739 as_fn_set_status () 17740 { 17741 return $1 17742 } # as_fn_set_status 17743 17744 # as_fn_exit STATUS 17745 # ----------------- 17746 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17747 as_fn_exit () 17748 { 17749 set +e 17750 as_fn_set_status $1 17751 exit $1 17752 } # as_fn_exit 17753 17754 # as_fn_unset VAR 17755 # --------------- 17756 # Portably unset VAR. 17757 as_fn_unset () 17758 { 17759 { eval $1=; unset $1;} 17760 } 17761 as_unset=as_fn_unset 17762 # as_fn_append VAR VALUE 17763 # ---------------------- 17764 # Append the text in VALUE to the end of the definition contained in VAR. Take 17765 # advantage of any shell optimizations that allow amortized linear growth over 17766 # repeated appends, instead of the typical quadratic growth present in naive 17767 # implementations. 17768 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17769 eval 'as_fn_append () 17770 { 17771 eval $1+=\$2 17772 }' 17773 else 17774 as_fn_append () 17775 { 17776 eval $1=\$$1\$2 17777 } 17778 fi # as_fn_append 17779 17780 # as_fn_arith ARG... 17781 # ------------------ 17782 # Perform arithmetic evaluation on the ARGs, and store the result in the 17783 # global $as_val. Take advantage of shells that can avoid forks. The arguments 17784 # must be portable across $(()) and expr. 17785 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17786 eval 'as_fn_arith () 17787 { 17788 as_val=$(( $* )) 17789 }' 17790 else 17791 as_fn_arith () 17792 { 17793 as_val=`expr "$@" || test $? -eq 1` 17794 } 17795 fi # as_fn_arith 17796 17797 17798 if expr a : '\(a\)' >/dev/null 2>&1 && 17799 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17800 as_expr=expr 17801 else 17802 as_expr=false 17803 fi 17804 17805 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17806 as_basename=basename 17807 else 17808 as_basename=false 17809 fi 17810 17811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17812 as_dirname=dirname 17813 else 17814 as_dirname=false 17815 fi 17816 17817 as_me=`$as_basename -- "$0" || 17818 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17819 X"$0" : 'X\(//\)$' \| \ 17820 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17821 $as_echo X/"$0" | 17822 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17823 s//\1/ 17824 q 17825 } 17826 /^X\/\(\/\/\)$/{ 17827 s//\1/ 17828 q 17829 } 17830 /^X\/\(\/\).*/{ 17831 s//\1/ 17832 q 17833 } 17834 s/.*/./; q'` 17835 17836 # Avoid depending upon Character Ranges. 17837 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17838 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17839 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17840 as_cr_digits='0123456789' 17841 as_cr_alnum=$as_cr_Letters$as_cr_digits 17842 17843 ECHO_C= ECHO_N= ECHO_T= 17844 case `echo -n x` in #((((( 17845 -n*) 17846 case `echo 'xy\c'` in 17847 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17848 xy) ECHO_C='\c';; 17849 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17850 ECHO_T=' ';; 17851 esac;; 17852 *) 17853 ECHO_N='-n';; 17854 esac 17855 17856 rm -f conf$$ conf$$.exe conf$$.file 17857 if test -d conf$$.dir; then 17858 rm -f conf$$.dir/conf$$.file 17859 else 17860 rm -f conf$$.dir 17861 mkdir conf$$.dir 2>/dev/null 17862 fi 17863 if (echo >conf$$.file) 2>/dev/null; then 17864 if ln -s conf$$.file conf$$ 2>/dev/null; then 17865 as_ln_s='ln -s' 17866 # ... but there are two gotchas: 17867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17869 # In both cases, we have to default to `cp -pR'. 17870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17871 as_ln_s='cp -pR' 17872 elif ln conf$$.file conf$$ 2>/dev/null; then 17873 as_ln_s=ln 17874 else 17875 as_ln_s='cp -pR' 17876 fi 17877 else 17878 as_ln_s='cp -pR' 17879 fi 17880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17881 rmdir conf$$.dir 2>/dev/null 17882 17883 17884 # as_fn_mkdir_p 17885 # ------------- 17886 # Create "$as_dir" as a directory, including parents if necessary. 17887 as_fn_mkdir_p () 17888 { 17889 17890 case $as_dir in #( 17891 -*) as_dir=./$as_dir;; 17892 esac 17893 test -d "$as_dir" || eval $as_mkdir_p || { 17894 as_dirs= 17895 while :; do 17896 case $as_dir in #( 17897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17898 *) as_qdir=$as_dir;; 17899 esac 17900 as_dirs="'$as_qdir' $as_dirs" 17901 as_dir=`$as_dirname -- "$as_dir" || 17902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17903 X"$as_dir" : 'X\(//\)[^/]' \| \ 17904 X"$as_dir" : 'X\(//\)$' \| \ 17905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17906 $as_echo X"$as_dir" | 17907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17908 s//\1/ 17909 q 17910 } 17911 /^X\(\/\/\)[^/].*/{ 17912 s//\1/ 17913 q 17914 } 17915 /^X\(\/\/\)$/{ 17916 s//\1/ 17917 q 17918 } 17919 /^X\(\/\).*/{ 17920 s//\1/ 17921 q 17922 } 17923 s/.*/./; q'` 17924 test -d "$as_dir" && break 17925 done 17926 test -z "$as_dirs" || eval "mkdir $as_dirs" 17927 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17928 17929 17930 } # as_fn_mkdir_p 17931 if mkdir -p . 2>/dev/null; then 17932 as_mkdir_p='mkdir -p "$as_dir"' 17933 else 17934 test -d ./-p && rmdir ./-p 17935 as_mkdir_p=false 17936 fi 17937 17938 17939 # as_fn_executable_p FILE 17940 # ----------------------- 17941 # Test if FILE is an executable regular file. 17942 as_fn_executable_p () 17943 { 17944 test -f "$1" && test -x "$1" 17945 } # as_fn_executable_p 17946 as_test_x='test -x' 17947 as_executable_p=as_fn_executable_p 17948 17949 # Sed expression to map a string onto a valid CPP name. 17950 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17951 17952 # Sed expression to map a string onto a valid variable name. 17953 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17954 17955 17956 exec 6>&1 17957 ## ----------------------------------- ## 17958 ## Main body of $CONFIG_STATUS script. ## 17959 ## ----------------------------------- ## 17960 _ASEOF 17961 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17962 17963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17964 # Save the log message, to keep $0 and so on meaningful, and to 17965 # report actual input values of CONFIG_FILES etc. instead of their 17966 # values after options handling. 17967 ac_log=" 17968 This file was extended by libctf $as_me 1.2.0, which was 17969 generated by GNU Autoconf 2.69. Invocation command line was 17970 17971 CONFIG_FILES = $CONFIG_FILES 17972 CONFIG_HEADERS = $CONFIG_HEADERS 17973 CONFIG_LINKS = $CONFIG_LINKS 17974 CONFIG_COMMANDS = $CONFIG_COMMANDS 17975 $ $0 $@ 17976 17977 on `(hostname || uname -n) 2>/dev/null | sed 1q` 17978 " 17979 17980 _ACEOF 17981 17982 case $ac_config_files in *" 17983 "*) set x $ac_config_files; shift; ac_config_files=$*;; 17984 esac 17985 17986 case $ac_config_headers in *" 17987 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17988 esac 17989 17990 17991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17992 # Files that config.status was made for. 17993 config_files="$ac_config_files" 17994 config_headers="$ac_config_headers" 17995 config_commands="$ac_config_commands" 17996 17997 _ACEOF 17998 17999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18000 ac_cs_usage="\ 18001 \`$as_me' instantiates files and other configuration actions 18002 from templates according to the current configuration. Unless the files 18003 and actions are specified as TAGs, all are instantiated by default. 18004 18005 Usage: $0 [OPTION]... [TAG]... 18006 18007 -h, --help print this help, then exit 18008 -V, --version print version number and configuration settings, then exit 18009 --config print configuration, then exit 18010 -q, --quiet, --silent 18011 do not print progress messages 18012 -d, --debug don't remove temporary files 18013 --recheck update $as_me by reconfiguring in the same conditions 18014 --file=FILE[:TEMPLATE] 18015 instantiate the configuration file FILE 18016 --header=FILE[:TEMPLATE] 18017 instantiate the configuration header FILE 18018 18019 Configuration files: 18020 $config_files 18021 18022 Configuration headers: 18023 $config_headers 18024 18025 Configuration commands: 18026 $config_commands 18027 18028 Report bugs to the package provider." 18029 18030 _ACEOF 18031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18033 ac_cs_version="\\ 18034 libctf config.status 1.2.0 18035 configured by $0, generated by GNU Autoconf 2.69, 18036 with options \\"\$ac_cs_config\\" 18037 18038 Copyright (C) 2012 Free Software Foundation, Inc. 18039 This config.status script is free software; the Free Software Foundation 18040 gives unlimited permission to copy, distribute and modify it." 18041 18042 ac_pwd='$ac_pwd' 18043 srcdir='$srcdir' 18044 INSTALL='$INSTALL' 18045 MKDIR_P='$MKDIR_P' 18046 AWK='$AWK' 18047 test -n "\$AWK" || AWK=awk 18048 _ACEOF 18049 18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18051 # The default lists apply if the user does not specify any file. 18052 ac_need_defaults=: 18053 while test $# != 0 18054 do 18055 case $1 in 18056 --*=?*) 18057 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18059 ac_shift=: 18060 ;; 18061 --*=) 18062 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18063 ac_optarg= 18064 ac_shift=: 18065 ;; 18066 *) 18067 ac_option=$1 18068 ac_optarg=$2 18069 ac_shift=shift 18070 ;; 18071 esac 18072 18073 case $ac_option in 18074 # Handling of the options. 18075 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18076 ac_cs_recheck=: ;; 18077 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18078 $as_echo "$ac_cs_version"; exit ;; 18079 --config | --confi | --conf | --con | --co | --c ) 18080 $as_echo "$ac_cs_config"; exit ;; 18081 --debug | --debu | --deb | --de | --d | -d ) 18082 debug=: ;; 18083 --file | --fil | --fi | --f ) 18084 $ac_shift 18085 case $ac_optarg in 18086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18087 '') as_fn_error $? "missing file argument" ;; 18088 esac 18089 as_fn_append CONFIG_FILES " '$ac_optarg'" 18090 ac_need_defaults=false;; 18091 --header | --heade | --head | --hea ) 18092 $ac_shift 18093 case $ac_optarg in 18094 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18095 esac 18096 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18097 ac_need_defaults=false;; 18098 --he | --h) 18099 # Conflict between --help and --header 18100 as_fn_error $? "ambiguous option: \`$1' 18101 Try \`$0 --help' for more information.";; 18102 --help | --hel | -h ) 18103 $as_echo "$ac_cs_usage"; exit ;; 18104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18105 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18106 ac_cs_silent=: ;; 18107 18108 # This is an error. 18109 -*) as_fn_error $? "unrecognized option: \`$1' 18110 Try \`$0 --help' for more information." ;; 18111 18112 *) as_fn_append ac_config_targets " $1" 18113 ac_need_defaults=false ;; 18114 18115 esac 18116 shift 18117 done 18118 18119 ac_configure_extra_args= 18120 18121 if $ac_cs_silent; then 18122 exec 6>/dev/null 18123 ac_configure_extra_args="$ac_configure_extra_args --silent" 18124 fi 18125 18126 _ACEOF 18127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18128 if \$ac_cs_recheck; then 18129 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18130 shift 18131 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18132 CONFIG_SHELL='$SHELL' 18133 export CONFIG_SHELL 18134 exec "\$@" 18135 fi 18136 18137 _ACEOF 18138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18139 exec 5>>config.log 18140 { 18141 echo 18142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18143 ## Running $as_me. ## 18144 _ASBOX 18145 $as_echo "$ac_log" 18146 } >&5 18147 18148 _ACEOF 18149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18150 # 18151 # INIT-COMMANDS 18152 # 18153 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18154 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 18155 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 18156 # from automake. 18157 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 18158 # Capture the value of LINGUAS because we need it to compute CATALOGS. 18159 LINGUAS="${LINGUAS-%UNSET%}" 18160 18161 18162 18163 # The HP-UX ksh and POSIX shell print the target directory to stdout 18164 # if CDPATH is set. 18165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18166 18167 sed_quote_subst='$sed_quote_subst' 18168 double_quote_subst='$double_quote_subst' 18169 delay_variable_subst='$delay_variable_subst' 18170 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18171 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18172 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18173 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18174 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18175 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18176 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18177 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18178 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18179 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18180 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18181 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18182 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18183 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18184 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18185 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18186 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18187 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18188 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18189 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18190 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18191 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18192 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18193 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18194 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18195 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18196 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18197 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18198 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18199 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18200 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18201 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18202 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18203 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18204 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18205 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18206 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18207 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18208 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18209 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18210 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18211 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18212 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18213 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18214 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18215 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18216 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18217 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18218 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"`' 18219 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18220 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18221 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18222 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18223 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18224 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18225 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18226 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18227 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18228 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18229 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18230 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18231 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18232 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18233 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18234 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18235 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18236 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18237 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18238 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18239 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18240 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18241 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18242 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18243 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18244 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18245 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18246 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18247 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18248 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18249 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18250 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18251 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18252 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18253 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18254 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18255 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18256 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18257 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18258 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18259 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 18260 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18261 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18262 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18263 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18264 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18265 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18266 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18267 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18268 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18269 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18270 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18271 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18272 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18273 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18274 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18275 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18276 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18277 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18278 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18279 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18280 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18281 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18282 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18283 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18284 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18285 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18286 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18287 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18288 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18289 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18290 18291 LTCC='$LTCC' 18292 LTCFLAGS='$LTCFLAGS' 18293 compiler='$compiler_DEFAULT' 18294 18295 # A function that is used when there is no print builtin or printf. 18296 func_fallback_echo () 18297 { 18298 eval 'cat <<_LTECHO_EOF 18299 \$1 18300 _LTECHO_EOF' 18301 } 18302 18303 # Quote evaled strings. 18304 for var in SHELL \ 18305 ECHO \ 18306 SED \ 18307 GREP \ 18308 EGREP \ 18309 FGREP \ 18310 LD \ 18311 NM \ 18312 LN_S \ 18313 lt_SP2NL \ 18314 lt_NL2SP \ 18315 reload_flag \ 18316 OBJDUMP \ 18317 deplibs_check_method \ 18318 file_magic_cmd \ 18319 AR \ 18320 AR_FLAGS \ 18321 STRIP \ 18322 RANLIB \ 18323 CC \ 18324 CFLAGS \ 18325 compiler \ 18326 lt_cv_sys_global_symbol_pipe \ 18327 lt_cv_sys_global_symbol_to_cdecl \ 18328 lt_cv_sys_global_symbol_to_c_name_address \ 18329 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18330 lt_prog_compiler_no_builtin_flag \ 18331 lt_prog_compiler_wl \ 18332 lt_prog_compiler_pic \ 18333 lt_prog_compiler_static \ 18334 lt_cv_prog_compiler_c_o \ 18335 need_locks \ 18336 DSYMUTIL \ 18337 NMEDIT \ 18338 LIPO \ 18339 OTOOL \ 18340 OTOOL64 \ 18341 shrext_cmds \ 18342 export_dynamic_flag_spec \ 18343 whole_archive_flag_spec \ 18344 compiler_needs_object \ 18345 with_gnu_ld \ 18346 allow_undefined_flag \ 18347 no_undefined_flag \ 18348 hardcode_libdir_flag_spec \ 18349 hardcode_libdir_flag_spec_ld \ 18350 hardcode_libdir_separator \ 18351 fix_srcfile_path \ 18352 exclude_expsyms \ 18353 include_expsyms \ 18354 file_list_spec \ 18355 variables_saved_for_relink \ 18356 libname_spec \ 18357 library_names_spec \ 18358 soname_spec \ 18359 install_override_mode \ 18360 finish_eval \ 18361 old_striplib \ 18362 striplib; do 18363 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18364 *[\\\\\\\`\\"\\\$]*) 18365 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18366 ;; 18367 *) 18368 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18369 ;; 18370 esac 18371 done 18372 18373 # Double-quote double-evaled strings. 18374 for var in reload_cmds \ 18375 old_postinstall_cmds \ 18376 old_postuninstall_cmds \ 18377 old_archive_cmds \ 18378 extract_expsyms_cmds \ 18379 old_archive_from_new_cmds \ 18380 old_archive_from_expsyms_cmds \ 18381 archive_cmds \ 18382 archive_expsym_cmds \ 18383 module_cmds \ 18384 module_expsym_cmds \ 18385 export_symbols_cmds \ 18386 prelink_cmds \ 18387 postinstall_cmds \ 18388 postuninstall_cmds \ 18389 finish_cmds \ 18390 sys_lib_search_path_spec \ 18391 sys_lib_dlsearch_path_spec; do 18392 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18393 *[\\\\\\\`\\"\\\$]*) 18394 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18395 ;; 18396 *) 18397 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18398 ;; 18399 esac 18400 done 18401 18402 ac_aux_dir='$ac_aux_dir' 18403 xsi_shell='$xsi_shell' 18404 lt_shell_append='$lt_shell_append' 18405 18406 # See if we are running on zsh, and set the options which allow our 18407 # commands through without removal of \ escapes INIT. 18408 if test -n "\${ZSH_VERSION+set}" ; then 18409 setopt NO_GLOB_SUBST 18410 fi 18411 18412 18413 PACKAGE='$PACKAGE' 18414 VERSION='$VERSION' 18415 TIMESTAMP='$TIMESTAMP' 18416 RM='$RM' 18417 ofile='$ofile' 18418 18419 ac_aux_dir='$ac_aux_dir' 18420 18421 18422 18423 _ACEOF 18424 18425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18426 18427 # Handling of arguments. 18428 for ac_config_target in $ac_config_targets 18429 do 18430 case $ac_config_target in 18431 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18432 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 18433 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18434 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18435 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18436 18437 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18438 esac 18439 done 18440 18441 18442 # If the user did not use the arguments to specify the items to instantiate, 18443 # then the envvar interface is used. Set only those that are not. 18444 # We use the long form for the default assignment because of an extremely 18445 # bizarre bug on SunOS 4.1.3. 18446 if $ac_need_defaults; then 18447 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18448 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18449 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18450 fi 18451 18452 # Have a temporary directory for convenience. Make it in the build tree 18453 # simply because there is no reason against having it here, and in addition, 18454 # creating and moving files from /tmp can sometimes cause problems. 18455 # Hook for its removal unless debugging. 18456 # Note that there is a small window in which the directory will not be cleaned: 18457 # after its creation but before its name has been assigned to `$tmp'. 18458 $debug || 18459 { 18460 tmp= ac_tmp= 18461 trap 'exit_status=$? 18462 : "${ac_tmp:=$tmp}" 18463 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18464 ' 0 18465 trap 'as_fn_exit 1' 1 2 13 15 18466 } 18467 # Create a (secure) tmp directory for tmp files. 18468 18469 { 18470 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18471 test -d "$tmp" 18472 } || 18473 { 18474 tmp=./conf$$-$RANDOM 18475 (umask 077 && mkdir "$tmp") 18476 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18477 ac_tmp=$tmp 18478 18479 # Set up the scripts for CONFIG_FILES section. 18480 # No need to generate them if there are no CONFIG_FILES. 18481 # This happens for instance with `./config.status config.h'. 18482 if test -n "$CONFIG_FILES"; then 18483 18484 18485 ac_cr=`echo X | tr X '\015'` 18486 # On cygwin, bash can eat \r inside `` if the user requested igncr. 18487 # But we know of no other shell where ac_cr would be empty at this 18488 # point, so we can use a bashism as a fallback. 18489 if test "x$ac_cr" = x; then 18490 eval ac_cr=\$\'\\r\' 18491 fi 18492 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18493 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18494 ac_cs_awk_cr='\\r' 18495 else 18496 ac_cs_awk_cr=$ac_cr 18497 fi 18498 18499 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18500 _ACEOF 18501 18502 18503 { 18504 echo "cat >conf$$subs.awk <<_ACEOF" && 18505 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18506 echo "_ACEOF" 18507 } >conf$$subs.sh || 18508 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18509 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18510 ac_delim='%!_!# ' 18511 for ac_last_try in false false false false false :; do 18512 . ./conf$$subs.sh || 18513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18514 18515 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18516 if test $ac_delim_n = $ac_delim_num; then 18517 break 18518 elif $ac_last_try; then 18519 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18520 else 18521 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18522 fi 18523 done 18524 rm -f conf$$subs.sh 18525 18526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18527 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18528 _ACEOF 18529 sed -n ' 18530 h 18531 s/^/S["/; s/!.*/"]=/ 18532 p 18533 g 18534 s/^[^!]*!// 18535 :repl 18536 t repl 18537 s/'"$ac_delim"'$// 18538 t delim 18539 :nl 18540 h 18541 s/\(.\{148\}\)..*/\1/ 18542 t more1 18543 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18544 p 18545 n 18546 b repl 18547 :more1 18548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18549 p 18550 g 18551 s/.\{148\}// 18552 t nl 18553 :delim 18554 h 18555 s/\(.\{148\}\)..*/\1/ 18556 t more2 18557 s/["\\]/\\&/g; s/^/"/; s/$/"/ 18558 p 18559 b 18560 :more2 18561 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18562 p 18563 g 18564 s/.\{148\}// 18565 t delim 18566 ' <conf$$subs.awk | sed ' 18567 /^[^""]/{ 18568 N 18569 s/\n// 18570 } 18571 ' >>$CONFIG_STATUS || ac_write_fail=1 18572 rm -f conf$$subs.awk 18573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18574 _ACAWK 18575 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18576 for (key in S) S_is_set[key] = 1 18577 FS = "" 18578 18579 } 18580 { 18581 line = $ 0 18582 nfields = split(line, field, "@") 18583 substed = 0 18584 len = length(field[1]) 18585 for (i = 2; i < nfields; i++) { 18586 key = field[i] 18587 keylen = length(key) 18588 if (S_is_set[key]) { 18589 value = S[key] 18590 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18591 len += length(value) + length(field[++i]) 18592 substed = 1 18593 } else 18594 len += 1 + keylen 18595 } 18596 18597 print line 18598 } 18599 18600 _ACAWK 18601 _ACEOF 18602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18603 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18604 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18605 else 18606 cat 18607 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18608 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18609 _ACEOF 18610 18611 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18612 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18613 # trailing colons and then remove the whole line if VPATH becomes empty 18614 # (actually we leave an empty line to preserve line numbers). 18615 if test "x$srcdir" = x.; then 18616 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18617 h 18618 s/// 18619 s/^/:/ 18620 s/[ ]*$/:/ 18621 s/:\$(srcdir):/:/g 18622 s/:\${srcdir}:/:/g 18623 s/:@srcdir@:/:/g 18624 s/^:*// 18625 s/:*$// 18626 x 18627 s/\(=[ ]*\).*/\1/ 18628 G 18629 s/\n// 18630 s/^[^=]*=[ ]*$// 18631 }' 18632 fi 18633 18634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18635 fi # test -n "$CONFIG_FILES" 18636 18637 # Set up the scripts for CONFIG_HEADERS section. 18638 # No need to generate them if there are no CONFIG_HEADERS. 18639 # This happens for instance with `./config.status Makefile'. 18640 if test -n "$CONFIG_HEADERS"; then 18641 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18642 BEGIN { 18643 _ACEOF 18644 18645 # Transform confdefs.h into an awk script `defines.awk', embedded as 18646 # here-document in config.status, that substitutes the proper values into 18647 # config.h.in to produce config.h. 18648 18649 # Create a delimiter string that does not exist in confdefs.h, to ease 18650 # handling of long lines. 18651 ac_delim='%!_!# ' 18652 for ac_last_try in false false :; do 18653 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18654 if test -z "$ac_tt"; then 18655 break 18656 elif $ac_last_try; then 18657 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18658 else 18659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18660 fi 18661 done 18662 18663 # For the awk script, D is an array of macro values keyed by name, 18664 # likewise P contains macro parameters if any. Preserve backslash 18665 # newline sequences. 18666 18667 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18668 sed -n ' 18669 s/.\{148\}/&'"$ac_delim"'/g 18670 t rset 18671 :rset 18672 s/^[ ]*#[ ]*define[ ][ ]*/ / 18673 t def 18674 d 18675 :def 18676 s/\\$// 18677 t bsnl 18678 s/["\\]/\\&/g 18679 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18680 D["\1"]=" \3"/p 18681 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18682 d 18683 :bsnl 18684 s/["\\]/\\&/g 18685 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18686 D["\1"]=" \3\\\\\\n"\\/p 18687 t cont 18688 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18689 t cont 18690 d 18691 :cont 18692 n 18693 s/.\{148\}/&'"$ac_delim"'/g 18694 t clear 18695 :clear 18696 s/\\$// 18697 t bsnlc 18698 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18699 d 18700 :bsnlc 18701 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18702 b cont 18703 ' <confdefs.h | sed ' 18704 s/'"$ac_delim"'/"\\\ 18705 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18706 18707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18708 for (key in D) D_is_set[key] = 1 18709 FS = "" 18710 } 18711 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18712 line = \$ 0 18713 split(line, arg, " ") 18714 if (arg[1] == "#") { 18715 defundef = arg[2] 18716 mac1 = arg[3] 18717 } else { 18718 defundef = substr(arg[1], 2) 18719 mac1 = arg[2] 18720 } 18721 split(mac1, mac2, "(") #) 18722 macro = mac2[1] 18723 prefix = substr(line, 1, index(line, defundef) - 1) 18724 if (D_is_set[macro]) { 18725 # Preserve the white space surrounding the "#". 18726 print prefix "define", macro P[macro] D[macro] 18727 next 18728 } else { 18729 # Replace #undef with comments. This is necessary, for example, 18730 # in the case of _POSIX_SOURCE, which is predefined and required 18731 # on some systems where configure will not decide to define it. 18732 if (defundef == "undef") { 18733 print "/*", prefix defundef, macro, "*/" 18734 next 18735 } 18736 } 18737 } 18738 { print } 18739 _ACAWK 18740 _ACEOF 18741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18742 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18743 fi # test -n "$CONFIG_HEADERS" 18744 18745 18746 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18747 shift 18748 for ac_tag 18749 do 18750 case $ac_tag in 18751 :[FHLC]) ac_mode=$ac_tag; continue;; 18752 esac 18753 case $ac_mode$ac_tag in 18754 :[FHL]*:*);; 18755 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18756 :[FH]-) ac_tag=-:-;; 18757 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18758 esac 18759 ac_save_IFS=$IFS 18760 IFS=: 18761 set x $ac_tag 18762 IFS=$ac_save_IFS 18763 shift 18764 ac_file=$1 18765 shift 18766 18767 case $ac_mode in 18768 :L) ac_source=$1;; 18769 :[FH]) 18770 ac_file_inputs= 18771 for ac_f 18772 do 18773 case $ac_f in 18774 -) ac_f="$ac_tmp/stdin";; 18775 *) # Look for the file first in the build tree, then in the source tree 18776 # (if the path is not absolute). The absolute path cannot be DOS-style, 18777 # because $ac_f cannot contain `:'. 18778 test -f "$ac_f" || 18779 case $ac_f in 18780 [\\/$]*) false;; 18781 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18782 esac || 18783 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18784 esac 18785 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18786 as_fn_append ac_file_inputs " '$ac_f'" 18787 done 18788 18789 # Let's still pretend it is `configure' which instantiates (i.e., don't 18790 # use $as_me), people would be surprised to read: 18791 # /* config.h. Generated by config.status. */ 18792 configure_input='Generated from '` 18793 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18794 `' by configure.' 18795 if test x"$ac_file" != x-; then 18796 configure_input="$ac_file. $configure_input" 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18798 $as_echo "$as_me: creating $ac_file" >&6;} 18799 fi 18800 # Neutralize special characters interpreted by sed in replacement strings. 18801 case $configure_input in #( 18802 *\&* | *\|* | *\\* ) 18803 ac_sed_conf_input=`$as_echo "$configure_input" | 18804 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18805 *) ac_sed_conf_input=$configure_input;; 18806 esac 18807 18808 case $ac_tag in 18809 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18811 esac 18812 ;; 18813 esac 18814 18815 ac_dir=`$as_dirname -- "$ac_file" || 18816 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18817 X"$ac_file" : 'X\(//\)[^/]' \| \ 18818 X"$ac_file" : 'X\(//\)$' \| \ 18819 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18820 $as_echo X"$ac_file" | 18821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18822 s//\1/ 18823 q 18824 } 18825 /^X\(\/\/\)[^/].*/{ 18826 s//\1/ 18827 q 18828 } 18829 /^X\(\/\/\)$/{ 18830 s//\1/ 18831 q 18832 } 18833 /^X\(\/\).*/{ 18834 s//\1/ 18835 q 18836 } 18837 s/.*/./; q'` 18838 as_dir="$ac_dir"; as_fn_mkdir_p 18839 ac_builddir=. 18840 18841 case "$ac_dir" in 18842 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18843 *) 18844 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18845 # A ".." for each directory in $ac_dir_suffix. 18846 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18847 case $ac_top_builddir_sub in 18848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18850 esac ;; 18851 esac 18852 ac_abs_top_builddir=$ac_pwd 18853 ac_abs_builddir=$ac_pwd$ac_dir_suffix 18854 # for backward compatibility: 18855 ac_top_builddir=$ac_top_build_prefix 18856 18857 case $srcdir in 18858 .) # We are building in place. 18859 ac_srcdir=. 18860 ac_top_srcdir=$ac_top_builddir_sub 18861 ac_abs_top_srcdir=$ac_pwd ;; 18862 [\\/]* | ?:[\\/]* ) # Absolute name. 18863 ac_srcdir=$srcdir$ac_dir_suffix; 18864 ac_top_srcdir=$srcdir 18865 ac_abs_top_srcdir=$srcdir ;; 18866 *) # Relative name. 18867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18868 ac_top_srcdir=$ac_top_build_prefix$srcdir 18869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18870 esac 18871 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18872 18873 18874 case $ac_mode in 18875 :F) 18876 # 18877 # CONFIG_FILE 18878 # 18879 18880 case $INSTALL in 18881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18883 esac 18884 ac_MKDIR_P=$MKDIR_P 18885 case $MKDIR_P in 18886 [\\/$]* | ?:[\\/]* ) ;; 18887 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18888 esac 18889 _ACEOF 18890 18891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18892 # If the template does not know about datarootdir, expand it. 18893 # FIXME: This hack should be removed a few years after 2.60. 18894 ac_datarootdir_hack=; ac_datarootdir_seen= 18895 ac_sed_dataroot=' 18896 /datarootdir/ { 18897 p 18898 q 18899 } 18900 /@datadir@/p 18901 /@docdir@/p 18902 /@infodir@/p 18903 /@localedir@/p 18904 /@mandir@/p' 18905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18906 *datarootdir*) ac_datarootdir_seen=yes;; 18907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18910 _ACEOF 18911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18912 ac_datarootdir_hack=' 18913 s&@datadir@&$datadir&g 18914 s&@docdir@&$docdir&g 18915 s&@infodir@&$infodir&g 18916 s&@localedir@&$localedir&g 18917 s&@mandir@&$mandir&g 18918 s&\\\${datarootdir}&$datarootdir&g' ;; 18919 esac 18920 _ACEOF 18921 18922 # Neutralize VPATH when `$srcdir' = `.'. 18923 # Shell code in configure.ac might set extrasub. 18924 # FIXME: do we really want to maintain this feature? 18925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18926 ac_sed_extra="$ac_vpsub 18927 $extrasub 18928 _ACEOF 18929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18930 :t 18931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18932 s|@configure_input@|$ac_sed_conf_input|;t t 18933 s&@top_builddir@&$ac_top_builddir_sub&;t t 18934 s&@top_build_prefix@&$ac_top_build_prefix&;t t 18935 s&@srcdir@&$ac_srcdir&;t t 18936 s&@abs_srcdir@&$ac_abs_srcdir&;t t 18937 s&@top_srcdir@&$ac_top_srcdir&;t t 18938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18939 s&@builddir@&$ac_builddir&;t t 18940 s&@abs_builddir@&$ac_abs_builddir&;t t 18941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18942 s&@INSTALL@&$ac_INSTALL&;t t 18943 s&@MKDIR_P@&$ac_MKDIR_P&;t t 18944 $ac_datarootdir_hack 18945 " 18946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18947 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18948 18949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18950 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18952 "$ac_tmp/out"`; test -z "$ac_out"; } && 18953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18954 which seems to be undefined. Please make sure it is defined" >&5 18955 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18956 which seems to be undefined. Please make sure it is defined" >&2;} 18957 18958 rm -f "$ac_tmp/stdin" 18959 case $ac_file in 18960 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18961 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18962 esac \ 18963 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18964 ;; 18965 :H) 18966 # 18967 # CONFIG_HEADER 18968 # 18969 if test x"$ac_file" != x-; then 18970 { 18971 $as_echo "/* $configure_input */" \ 18972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18973 } >"$ac_tmp/config.h" \ 18974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18975 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18976 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18977 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18978 else 18979 rm -f "$ac_file" 18980 mv "$ac_tmp/config.h" "$ac_file" \ 18981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18982 fi 18983 else 18984 $as_echo "/* $configure_input */" \ 18985 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18986 || as_fn_error $? "could not create -" "$LINENO" 5 18987 fi 18988 # Compute "$ac_file"'s index in $config_headers. 18989 _am_arg="$ac_file" 18990 _am_stamp_count=1 18991 for _am_header in $config_headers :; do 18992 case $_am_header in 18993 $_am_arg | $_am_arg:* ) 18994 break ;; 18995 * ) 18996 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18997 esac 18998 done 18999 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19000 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19001 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19002 X"$_am_arg" : 'X\(//\)$' \| \ 19003 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19004 $as_echo X"$_am_arg" | 19005 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19006 s//\1/ 19007 q 19008 } 19009 /^X\(\/\/\)[^/].*/{ 19010 s//\1/ 19011 q 19012 } 19013 /^X\(\/\/\)$/{ 19014 s//\1/ 19015 q 19016 } 19017 /^X\(\/\).*/{ 19018 s//\1/ 19019 q 19020 } 19021 s/.*/./; q'`/stamp-h$_am_stamp_count 19022 ;; 19023 19024 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19025 $as_echo "$as_me: executing $ac_file commands" >&6;} 19026 ;; 19027 esac 19028 19029 19030 case $ac_file$ac_mode in 19031 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19032 # Older Autoconf quotes --file arguments for eval, but not when files 19033 # are listed without --file. Let's play safe and only enable the eval 19034 # if we detect the quoting. 19035 case $CONFIG_FILES in 19036 *\'*) eval set x "$CONFIG_FILES" ;; 19037 *) set x $CONFIG_FILES ;; 19038 esac 19039 shift 19040 for mf 19041 do 19042 # Strip MF so we end up with the name of the file. 19043 mf=`echo "$mf" | sed -e 's/:.*$//'` 19044 # Check whether this is an Automake generated Makefile or not. 19045 # We used to match only the files named 'Makefile.in', but 19046 # some people rename them; so instead we look at the file content. 19047 # Grep'ing the first line is not enough: some people post-process 19048 # each Makefile.in and add a new line on top of each file to say so. 19049 # Grep'ing the whole file is not good either: AIX grep has a line 19050 # limit of 2048, but all sed's we know have understand at least 4000. 19051 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19052 dirpart=`$as_dirname -- "$mf" || 19053 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19054 X"$mf" : 'X\(//\)[^/]' \| \ 19055 X"$mf" : 'X\(//\)$' \| \ 19056 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19057 $as_echo X"$mf" | 19058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19059 s//\1/ 19060 q 19061 } 19062 /^X\(\/\/\)[^/].*/{ 19063 s//\1/ 19064 q 19065 } 19066 /^X\(\/\/\)$/{ 19067 s//\1/ 19068 q 19069 } 19070 /^X\(\/\).*/{ 19071 s//\1/ 19072 q 19073 } 19074 s/.*/./; q'` 19075 else 19076 continue 19077 fi 19078 # Extract the definition of DEPDIR, am__include, and am__quote 19079 # from the Makefile without running 'make'. 19080 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19081 test -z "$DEPDIR" && continue 19082 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19083 test -z "$am__include" && continue 19084 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19085 # Find all dependency output files, they are included files with 19086 # $(DEPDIR) in their names. We invoke sed twice because it is the 19087 # simplest approach to changing $(DEPDIR) to its actual value in the 19088 # expansion. 19089 for file in `sed -n " 19090 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19091 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19092 # Make sure the directory exists. 19093 test -f "$dirpart/$file" && continue 19094 fdir=`$as_dirname -- "$file" || 19095 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19096 X"$file" : 'X\(//\)[^/]' \| \ 19097 X"$file" : 'X\(//\)$' \| \ 19098 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19099 $as_echo X"$file" | 19100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19101 s//\1/ 19102 q 19103 } 19104 /^X\(\/\/\)[^/].*/{ 19105 s//\1/ 19106 q 19107 } 19108 /^X\(\/\/\)$/{ 19109 s//\1/ 19110 q 19111 } 19112 /^X\(\/\).*/{ 19113 s//\1/ 19114 q 19115 } 19116 s/.*/./; q'` 19117 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19118 # echo "creating $dirpart/$file" 19119 echo '# dummy' > "$dirpart/$file" 19120 done 19121 done 19122 } 19123 ;; 19124 "default-1":C) 19125 for ac_file in $CONFIG_FILES; do 19126 # Support "outfile[:infile[:infile...]]" 19127 case "$ac_file" in 19128 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 19129 esac 19130 # PO directories have a Makefile.in generated from Makefile.in.in. 19131 case "$ac_file" in */Makefile.in) 19132 # Adjust a relative srcdir. 19133 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 19134 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 19135 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 19136 # In autoconf-2.13 it is called $ac_given_srcdir. 19137 # In autoconf-2.50 it is called $srcdir. 19138 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 19139 case "$ac_given_srcdir" in 19140 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 19141 /*) top_srcdir="$ac_given_srcdir" ;; 19142 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 19143 esac 19144 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 19145 rm -f "$ac_dir/POTFILES" 19146 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 19147 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 19148 POMAKEFILEDEPS="POTFILES.in" 19149 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 19150 # on $ac_dir but don't depend on user-specified configuration 19151 # parameters. 19152 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 19153 # The LINGUAS file contains the set of available languages. 19154 if test -n "$OBSOLETE_ALL_LINGUAS"; then 19155 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" 19156 fi 19157 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 19158 # Hide the ALL_LINGUAS assigment from automake. 19159 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 19160 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 19161 else 19162 # The set of available languages was given in configure.ac. 19163 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 19164 fi 19165 case "$ac_given_srcdir" in 19166 .) srcdirpre= ;; 19167 *) srcdirpre='$(srcdir)/' ;; 19168 esac 19169 POFILES= 19170 GMOFILES= 19171 UPDATEPOFILES= 19172 DUMMYPOFILES= 19173 for lang in $ALL_LINGUAS; do 19174 POFILES="$POFILES $srcdirpre$lang.po" 19175 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 19176 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 19177 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 19178 done 19179 # CATALOGS depends on both $ac_dir and the user's LINGUAS 19180 # environment variable. 19181 INST_LINGUAS= 19182 if test -n "$ALL_LINGUAS"; then 19183 for presentlang in $ALL_LINGUAS; do 19184 useit=no 19185 if test "%UNSET%" != "$LINGUAS"; then 19186 desiredlanguages="$LINGUAS" 19187 else 19188 desiredlanguages="$ALL_LINGUAS" 19189 fi 19190 for desiredlang in $desiredlanguages; do 19191 # Use the presentlang catalog if desiredlang is 19192 # a. equal to presentlang, or 19193 # b. a variant of presentlang (because in this case, 19194 # presentlang can be used as a fallback for messages 19195 # which are not translated in the desiredlang catalog). 19196 case "$desiredlang" in 19197 "$presentlang"*) useit=yes;; 19198 esac 19199 done 19200 if test $useit = yes; then 19201 INST_LINGUAS="$INST_LINGUAS $presentlang" 19202 fi 19203 done 19204 fi 19205 CATALOGS= 19206 if test -n "$INST_LINGUAS"; then 19207 for lang in $INST_LINGUAS; do 19208 CATALOGS="$CATALOGS $lang.gmo" 19209 done 19210 fi 19211 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 19212 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" 19213 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 19214 if test -f "$f"; then 19215 case "$f" in 19216 *.orig | *.bak | *~) ;; 19217 *) cat "$f" >> "$ac_dir/Makefile" ;; 19218 esac 19219 fi 19220 done 19221 fi 19222 ;; 19223 esac 19224 done ;; 19225 "libtool":C) 19226 19227 # See if we are running on zsh, and set the options which allow our 19228 # commands through without removal of \ escapes. 19229 if test -n "${ZSH_VERSION+set}" ; then 19230 setopt NO_GLOB_SUBST 19231 fi 19232 19233 cfgfile="${ofile}T" 19234 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19235 $RM "$cfgfile" 19236 19237 cat <<_LT_EOF >> "$cfgfile" 19238 #! $SHELL 19239 19240 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19241 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19242 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19243 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 19244 # 19245 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19246 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 19247 # Written by Gordon Matzigkeit, 1996 19248 # 19249 # This file is part of GNU Libtool. 19250 # 19251 # GNU Libtool is free software; you can redistribute it and/or 19252 # modify it under the terms of the GNU General Public License as 19253 # published by the Free Software Foundation; either version 2 of 19254 # the License, or (at your option) any later version. 19255 # 19256 # As a special exception to the GNU General Public License, 19257 # if you distribute this file as part of a program or library that 19258 # is built using GNU Libtool, you may include this file under the 19259 # same distribution terms that you use for the rest of that program. 19260 # 19261 # GNU Libtool is distributed in the hope that it will be useful, 19262 # but WITHOUT ANY WARRANTY; without even the implied warranty of 19263 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19264 # GNU General Public License for more details. 19265 # 19266 # You should have received a copy of the GNU General Public License 19267 # along with GNU Libtool; see the file COPYING. If not, a copy 19268 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19269 # obtained by writing to the Free Software Foundation, Inc., 19270 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19271 19272 19273 # The names of the tagged configurations supported by this script. 19274 available_tags="" 19275 19276 # ### BEGIN LIBTOOL CONFIG 19277 19278 # Whether or not to build shared libraries. 19279 build_libtool_libs=$enable_shared 19280 19281 # Which release of libtool.m4 was used? 19282 macro_version=$macro_version 19283 macro_revision=$macro_revision 19284 19285 # Whether or not to build static libraries. 19286 build_old_libs=$enable_static 19287 19288 # What type of objects to build. 19289 pic_mode=$pic_mode 19290 19291 # Whether or not to optimize for fast installation. 19292 fast_install=$enable_fast_install 19293 19294 # Shell to use when invoking shell scripts. 19295 SHELL=$lt_SHELL 19296 19297 # An echo program that protects backslashes. 19298 ECHO=$lt_ECHO 19299 19300 # The host system. 19301 host_alias=$host_alias 19302 host=$host 19303 host_os=$host_os 19304 19305 # The build system. 19306 build_alias=$build_alias 19307 build=$build 19308 build_os=$build_os 19309 19310 # A sed program that does not truncate output. 19311 SED=$lt_SED 19312 19313 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 19314 Xsed="\$SED -e 1s/^X//" 19315 19316 # A grep program that handles long lines. 19317 GREP=$lt_GREP 19318 19319 # An ERE matcher. 19320 EGREP=$lt_EGREP 19321 19322 # A literal string matcher. 19323 FGREP=$lt_FGREP 19324 19325 # A BSD- or MS-compatible name lister. 19326 NM=$lt_NM 19327 19328 # Whether we need soft or hard links. 19329 LN_S=$lt_LN_S 19330 19331 # What is the maximum length of a command? 19332 max_cmd_len=$max_cmd_len 19333 19334 # Object file suffix (normally "o"). 19335 objext=$ac_objext 19336 19337 # Executable file suffix (normally ""). 19338 exeext=$exeext 19339 19340 # whether the shell understands "unset". 19341 lt_unset=$lt_unset 19342 19343 # turn spaces into newlines. 19344 SP2NL=$lt_lt_SP2NL 19345 19346 # turn newlines into spaces. 19347 NL2SP=$lt_lt_NL2SP 19348 19349 # An object symbol dumper. 19350 OBJDUMP=$lt_OBJDUMP 19351 19352 # Method to check whether dependent libraries are shared objects. 19353 deplibs_check_method=$lt_deplibs_check_method 19354 19355 # Command to use when deplibs_check_method == "file_magic". 19356 file_magic_cmd=$lt_file_magic_cmd 19357 19358 # The archiver. 19359 AR=$lt_AR 19360 AR_FLAGS=$lt_AR_FLAGS 19361 19362 # A symbol stripping program. 19363 STRIP=$lt_STRIP 19364 19365 # Commands used to install an old-style archive. 19366 RANLIB=$lt_RANLIB 19367 old_postinstall_cmds=$lt_old_postinstall_cmds 19368 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19369 19370 # Whether to use a lock for old archive extraction. 19371 lock_old_archive_extraction=$lock_old_archive_extraction 19372 19373 # A C compiler. 19374 LTCC=$lt_CC 19375 19376 # LTCC compiler flags. 19377 LTCFLAGS=$lt_CFLAGS 19378 19379 # Take the output of nm and produce a listing of raw symbols and C names. 19380 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19381 19382 # Transform the output of nm in a proper C declaration. 19383 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19384 19385 # Transform the output of nm in a C name address pair. 19386 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19387 19388 # Transform the output of nm in a C name address pair when lib prefix is needed. 19389 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19390 19391 # The name of the directory that contains temporary libtool files. 19392 objdir=$objdir 19393 19394 # Used to examine libraries when file_magic_cmd begins with "file". 19395 MAGIC_CMD=$MAGIC_CMD 19396 19397 # Must we lock files when doing compilation? 19398 need_locks=$lt_need_locks 19399 19400 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19401 DSYMUTIL=$lt_DSYMUTIL 19402 19403 # Tool to change global to local symbols on Mac OS X. 19404 NMEDIT=$lt_NMEDIT 19405 19406 # Tool to manipulate fat objects and archives on Mac OS X. 19407 LIPO=$lt_LIPO 19408 19409 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 19410 OTOOL=$lt_OTOOL 19411 19412 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19413 OTOOL64=$lt_OTOOL64 19414 19415 # Old archive suffix (normally "a"). 19416 libext=$libext 19417 19418 # Shared library suffix (normally ".so"). 19419 shrext_cmds=$lt_shrext_cmds 19420 19421 # The commands to extract the exported symbol list from a shared archive. 19422 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19423 19424 # Variables whose values should be saved in libtool wrapper scripts and 19425 # restored at link time. 19426 variables_saved_for_relink=$lt_variables_saved_for_relink 19427 19428 # Do we need the "lib" prefix for modules? 19429 need_lib_prefix=$need_lib_prefix 19430 19431 # Do we need a version for libraries? 19432 need_version=$need_version 19433 19434 # Library versioning type. 19435 version_type=$version_type 19436 19437 # Shared library runtime path variable. 19438 runpath_var=$runpath_var 19439 19440 # Shared library path variable. 19441 shlibpath_var=$shlibpath_var 19442 19443 # Is shlibpath searched before the hard-coded library search path? 19444 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19445 19446 # Format of library name prefix. 19447 libname_spec=$lt_libname_spec 19448 19449 # List of archive names. First name is the real one, the rest are links. 19450 # The last name is the one that the linker finds with -lNAME 19451 library_names_spec=$lt_library_names_spec 19452 19453 # The coded name of the library, if different from the real name. 19454 soname_spec=$lt_soname_spec 19455 19456 # Permission mode override for installation of shared libraries. 19457 install_override_mode=$lt_install_override_mode 19458 19459 # Command to use after installation of a shared archive. 19460 postinstall_cmds=$lt_postinstall_cmds 19461 19462 # Command to use after uninstallation of a shared archive. 19463 postuninstall_cmds=$lt_postuninstall_cmds 19464 19465 # Commands used to finish a libtool library installation in a directory. 19466 finish_cmds=$lt_finish_cmds 19467 19468 # As "finish_cmds", except a single script fragment to be evaled but 19469 # not shown. 19470 finish_eval=$lt_finish_eval 19471 19472 # Whether we should hardcode library paths into libraries. 19473 hardcode_into_libs=$hardcode_into_libs 19474 19475 # Compile-time system search path for libraries. 19476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19477 19478 # Run-time system search path for libraries. 19479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19480 19481 # Whether dlopen is supported. 19482 dlopen_support=$enable_dlopen 19483 19484 # Whether dlopen of programs is supported. 19485 dlopen_self=$enable_dlopen_self 19486 19487 # Whether dlopen of statically linked programs is supported. 19488 dlopen_self_static=$enable_dlopen_self_static 19489 19490 # Commands to strip libraries. 19491 old_striplib=$lt_old_striplib 19492 striplib=$lt_striplib 19493 19494 19495 # The linker used to build libraries. 19496 LD=$lt_LD 19497 19498 # How to create reloadable object files. 19499 reload_flag=$lt_reload_flag 19500 reload_cmds=$lt_reload_cmds 19501 19502 # Commands used to build an old-style archive. 19503 old_archive_cmds=$lt_old_archive_cmds 19504 19505 # A language specific compiler. 19506 CC=$lt_compiler 19507 19508 # Is the compiler the GNU compiler? 19509 with_gcc=$GCC 19510 19511 # Compiler flag to turn off builtin functions. 19512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19513 19514 # How to pass a linker flag through the compiler. 19515 wl=$lt_lt_prog_compiler_wl 19516 19517 # Additional compiler flags for building library objects. 19518 pic_flag=$lt_lt_prog_compiler_pic 19519 19520 # Compiler flag to prevent dynamic linking. 19521 link_static_flag=$lt_lt_prog_compiler_static 19522 19523 # Does compiler simultaneously support -c and -o options? 19524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19525 19526 # Whether or not to add -lc for building shared libraries. 19527 build_libtool_need_lc=$archive_cmds_need_lc 19528 19529 # Whether or not to disallow shared libs when runtime libs are static. 19530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19531 19532 # Compiler flag to allow reflexive dlopens. 19533 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19534 19535 # Compiler flag to generate shared objects directly from archives. 19536 whole_archive_flag_spec=$lt_whole_archive_flag_spec 19537 19538 # Whether the compiler copes with passing no objects directly. 19539 compiler_needs_object=$lt_compiler_needs_object 19540 19541 # Create an old-style archive from a shared archive. 19542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19543 19544 # Create a temporary old-style archive to link instead of a shared archive. 19545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19546 19547 # Commands used to build a shared archive. 19548 archive_cmds=$lt_archive_cmds 19549 archive_expsym_cmds=$lt_archive_expsym_cmds 19550 19551 # Commands used to build a loadable module if different from building 19552 # a shared archive. 19553 module_cmds=$lt_module_cmds 19554 module_expsym_cmds=$lt_module_expsym_cmds 19555 19556 # Whether we are building with GNU ld or not. 19557 with_gnu_ld=$lt_with_gnu_ld 19558 19559 # Flag that allows shared libraries with undefined symbols to be built. 19560 allow_undefined_flag=$lt_allow_undefined_flag 19561 19562 # Flag that enforces no undefined symbols. 19563 no_undefined_flag=$lt_no_undefined_flag 19564 19565 # Flag to hardcode \$libdir into a binary during linking. 19566 # This must work even if \$libdir does not exist 19567 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19568 19569 # If ld is used when linking, flag to hardcode \$libdir into a binary 19570 # during linking. This must work even if \$libdir does not exist. 19571 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19572 19573 # Whether we need a single "-rpath" flag with a separated argument. 19574 hardcode_libdir_separator=$lt_hardcode_libdir_separator 19575 19576 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19577 # DIR into the resulting binary. 19578 hardcode_direct=$hardcode_direct 19579 19580 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19581 # DIR into the resulting binary and the resulting library dependency is 19582 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19583 # library is relocated. 19584 hardcode_direct_absolute=$hardcode_direct_absolute 19585 19586 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19587 # into the resulting binary. 19588 hardcode_minus_L=$hardcode_minus_L 19589 19590 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19591 # into the resulting binary. 19592 hardcode_shlibpath_var=$hardcode_shlibpath_var 19593 19594 # Set to "yes" if building a shared library automatically hardcodes DIR 19595 # into the library and all subsequent libraries and executables linked 19596 # against it. 19597 hardcode_automatic=$hardcode_automatic 19598 19599 # Set to yes if linker adds runtime paths of dependent libraries 19600 # to runtime path list. 19601 inherit_rpath=$inherit_rpath 19602 19603 # Whether libtool must link a program against all its dependency libraries. 19604 link_all_deplibs=$link_all_deplibs 19605 19606 # Fix the shell variable \$srcfile for the compiler. 19607 fix_srcfile_path=$lt_fix_srcfile_path 19608 19609 # Set to "yes" if exported symbols are required. 19610 always_export_symbols=$always_export_symbols 19611 19612 # The commands to list exported symbols. 19613 export_symbols_cmds=$lt_export_symbols_cmds 19614 19615 # Symbols that should not be listed in the preloaded symbols. 19616 exclude_expsyms=$lt_exclude_expsyms 19617 19618 # Symbols that must always be exported. 19619 include_expsyms=$lt_include_expsyms 19620 19621 # Commands necessary for linking programs (against libraries) with templates. 19622 prelink_cmds=$lt_prelink_cmds 19623 19624 # Specify filename containing input files. 19625 file_list_spec=$lt_file_list_spec 19626 19627 # How to hardcode a shared library path into an executable. 19628 hardcode_action=$hardcode_action 19629 19630 # ### END LIBTOOL CONFIG 19631 19632 _LT_EOF 19633 19634 case $host_os in 19635 aix3*) 19636 cat <<\_LT_EOF >> "$cfgfile" 19637 # AIX sometimes has problems with the GCC collect2 program. For some 19638 # reason, if we set the COLLECT_NAMES environment variable, the problems 19639 # vanish in a puff of smoke. 19640 if test "X${COLLECT_NAMES+set}" != Xset; then 19641 COLLECT_NAMES= 19642 export COLLECT_NAMES 19643 fi 19644 _LT_EOF 19645 ;; 19646 esac 19647 19648 19649 ltmain="$ac_aux_dir/ltmain.sh" 19650 19651 19652 # We use sed instead of cat because bash on DJGPP gets confused if 19653 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19654 # text mode, it properly converts lines to CR/LF. This bash problem 19655 # is reportedly fixed, but why not run on old versions too? 19656 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19657 || (rm -f "$cfgfile"; exit 1) 19658 19659 case $xsi_shell in 19660 yes) 19661 cat << \_LT_EOF >> "$cfgfile" 19662 19663 # func_dirname file append nondir_replacement 19664 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19665 # otherwise set result to NONDIR_REPLACEMENT. 19666 func_dirname () 19667 { 19668 case ${1} in 19669 */*) func_dirname_result="${1%/*}${2}" ;; 19670 * ) func_dirname_result="${3}" ;; 19671 esac 19672 } 19673 19674 # func_basename file 19675 func_basename () 19676 { 19677 func_basename_result="${1##*/}" 19678 } 19679 19680 # func_dirname_and_basename file append nondir_replacement 19681 # perform func_basename and func_dirname in a single function 19682 # call: 19683 # dirname: Compute the dirname of FILE. If nonempty, 19684 # add APPEND to the result, otherwise set result 19685 # to NONDIR_REPLACEMENT. 19686 # value returned in "$func_dirname_result" 19687 # basename: Compute filename of FILE. 19688 # value retuned in "$func_basename_result" 19689 # Implementation must be kept synchronized with func_dirname 19690 # and func_basename. For efficiency, we do not delegate to 19691 # those functions but instead duplicate the functionality here. 19692 func_dirname_and_basename () 19693 { 19694 case ${1} in 19695 */*) func_dirname_result="${1%/*}${2}" ;; 19696 * ) func_dirname_result="${3}" ;; 19697 esac 19698 func_basename_result="${1##*/}" 19699 } 19700 19701 # func_stripname prefix suffix name 19702 # strip PREFIX and SUFFIX off of NAME. 19703 # PREFIX and SUFFIX must not contain globbing or regex special 19704 # characters, hashes, percent signs, but SUFFIX may contain a leading 19705 # dot (in which case that matches only a dot). 19706 func_stripname () 19707 { 19708 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19709 # positional parameters, so assign one to ordinary parameter first. 19710 func_stripname_result=${3} 19711 func_stripname_result=${func_stripname_result#"${1}"} 19712 func_stripname_result=${func_stripname_result%"${2}"} 19713 } 19714 19715 # func_opt_split 19716 func_opt_split () 19717 { 19718 func_opt_split_opt=${1%%=*} 19719 func_opt_split_arg=${1#*=} 19720 } 19721 19722 # func_lo2o object 19723 func_lo2o () 19724 { 19725 case ${1} in 19726 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19727 *) func_lo2o_result=${1} ;; 19728 esac 19729 } 19730 19731 # func_xform libobj-or-source 19732 func_xform () 19733 { 19734 func_xform_result=${1%.*}.lo 19735 } 19736 19737 # func_arith arithmetic-term... 19738 func_arith () 19739 { 19740 func_arith_result=$(( $* )) 19741 } 19742 19743 # func_len string 19744 # STRING may not start with a hyphen. 19745 func_len () 19746 { 19747 func_len_result=${#1} 19748 } 19749 19750 _LT_EOF 19751 ;; 19752 *) # Bourne compatible functions. 19753 cat << \_LT_EOF >> "$cfgfile" 19754 19755 # func_dirname file append nondir_replacement 19756 # Compute the dirname of FILE. If nonempty, add APPEND to the result, 19757 # otherwise set result to NONDIR_REPLACEMENT. 19758 func_dirname () 19759 { 19760 # Extract subdirectory from the argument. 19761 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19762 if test "X$func_dirname_result" = "X${1}"; then 19763 func_dirname_result="${3}" 19764 else 19765 func_dirname_result="$func_dirname_result${2}" 19766 fi 19767 } 19768 19769 # func_basename file 19770 func_basename () 19771 { 19772 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19773 } 19774 19775 19776 # func_stripname prefix suffix name 19777 # strip PREFIX and SUFFIX off of NAME. 19778 # PREFIX and SUFFIX must not contain globbing or regex special 19779 # characters, hashes, percent signs, but SUFFIX may contain a leading 19780 # dot (in which case that matches only a dot). 19781 # func_strip_suffix prefix name 19782 func_stripname () 19783 { 19784 case ${2} in 19785 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19786 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19787 esac 19788 } 19789 19790 # sed scripts: 19791 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19792 my_sed_long_arg='1s/^-[^=]*=//' 19793 19794 # func_opt_split 19795 func_opt_split () 19796 { 19797 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19798 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19799 } 19800 19801 # func_lo2o object 19802 func_lo2o () 19803 { 19804 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19805 } 19806 19807 # func_xform libobj-or-source 19808 func_xform () 19809 { 19810 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19811 } 19812 19813 # func_arith arithmetic-term... 19814 func_arith () 19815 { 19816 func_arith_result=`expr "$@"` 19817 } 19818 19819 # func_len string 19820 # STRING may not start with a hyphen. 19821 func_len () 19822 { 19823 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19824 } 19825 19826 _LT_EOF 19827 esac 19828 19829 case $lt_shell_append in 19830 yes) 19831 cat << \_LT_EOF >> "$cfgfile" 19832 19833 # func_append var value 19834 # Append VALUE to the end of shell variable VAR. 19835 func_append () 19836 { 19837 eval "$1+=\$2" 19838 } 19839 _LT_EOF 19840 ;; 19841 *) 19842 cat << \_LT_EOF >> "$cfgfile" 19843 19844 # func_append var value 19845 # Append VALUE to the end of shell variable VAR. 19846 func_append () 19847 { 19848 eval "$1=\$$1\$2" 19849 } 19850 19851 _LT_EOF 19852 ;; 19853 esac 19854 19855 19856 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19857 || (rm -f "$cfgfile"; exit 1) 19858 19859 mv -f "$cfgfile" "$ofile" || 19860 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19861 chmod +x "$ofile" 19862 19863 ;; 19864 19865 esac 19866 done # for ac_tag 19867 19868 19869 as_fn_exit 0 19870 _ACEOF 19871 ac_clean_files=$ac_clean_files_save 19872 19873 test $ac_write_fail = 0 || 19874 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19875 19876 19877 # configure is writing to config.log, and then calls config.status. 19878 # config.status does its own redirection, appending to config.log. 19879 # Unfortunately, on DOS this fails, as config.log is still kept open 19880 # by configure, so config.status won't be able to write to it; its 19881 # output is simply discarded. So we exec the FD to /dev/null, 19882 # effectively closing config.log, so it can be properly (re)opened and 19883 # appended to by config.status. When coming back to configure, we 19884 # need to make the FD available again. 19885 if test "$no_create" != yes; then 19886 ac_cs_success=: 19887 ac_config_status_args= 19888 test "$silent" = yes && 19889 ac_config_status_args="$ac_config_status_args --quiet" 19890 exec 5>/dev/null 19891 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19892 exec 5>>config.log 19893 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19894 # would make configure fail if this is the last instruction. 19895 $ac_cs_success || as_fn_exit 1 19896 fi 19897 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19899 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19900 fi 19901 19902 19903 19904 touch config.status.tmp 19905 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then 19906 sed '/as_fn_exit 0/i \ 19907 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ 19908 touch --reference=Makefile Makefile.tmp \ 19909 mv Makefile.tmp Makefile \ 19910 ' config.status > config.status.tmp 19911 touch --reference=config.status config.status.tmp 19912 mv config.status.tmp config.status 19913 chmod +x config.status 19914 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp 19915 touch --reference=Makefile Makefile.tmp 19916 mv Makefile.tmp Makefile 19917 else 19918 rm -f config.status.tmp 19919 fi 19920