1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.72 for file 5.48. 4 # 5 # Report bugs to <christos (at] astron.com>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, 9 # Inc. 10 # 11 # 12 # This configure script is free software; the Free Software Foundation 13 # gives unlimited permission to copy, distribute and modify it. 14 ## -------------------- ## 15 ## M4sh Initialization. ## 16 ## -------------------- ## 17 18 # Be more Bourne compatible 19 DUALCASE=1; export DUALCASE # for MKS sh 20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21 then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28 else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34 esac ;; 35 esac 36 fi 37 38 39 40 # Reset variables that may have inherited troublesome values from 41 # the environment. 42 43 # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 # side effect of setting IFS to empty, thus disabling word splitting.) 46 # Quoting is to prevent editors from complaining about space-tab. 47 as_nl=' 48 ' 49 export as_nl 50 IFS=" "" $as_nl" 51 52 PS1='$ ' 53 PS2='> ' 54 PS4='+ ' 55 56 # Ensure predictable behavior from utilities with locale-dependent output. 57 LC_ALL=C 58 export LC_ALL 59 LANGUAGE=C 60 export LANGUAGE 61 62 # We cannot yet rely on "unset" to work, but we need these variables 63 # to be unset--not just set to an empty or harmless value--now, to 64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 # also avoids known problems related to "unset" and subshell syntax 66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 done 71 72 # Ensure that fds 0, 1, and 2 are open. 73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77 # The user is always right. 78 if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84 fi 85 86 87 # Find who we are. Look in the path if we contain no directory separator. 88 as_myself= 89 case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92 for as_dir in $PATH 93 do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as 'sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 117 # Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122 # neutralization value for shells without unset; and this also 123 # works around shells that cannot unset nonexistent variables. 124 # Preserve -v and -x to the replacement shell. 125 BASH_ENV=/dev/null 126 ENV=/dev/null 127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128 case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133 esac 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135 # Admittedly, this is quite paranoid, since all the known shells bail 136 # out after a failed 'exec'. 137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142 if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144 then : 145 emulate sh 146 NULLCMD=: 147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 148 # is contrary to our usage. Disable this feature. 149 alias -g '\${1+\"\$@\"}'='\"\$@\"' 150 setopt NO_GLOB_SUBST 151 else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157 esac ;; 158 esac 159 fi 160 " 161 as_required="as_fn_return () { (exit \$1); } 162 as_fn_success () { as_fn_return 0; } 163 as_fn_failure () { as_fn_return 1; } 164 as_fn_ret_success () { return 0; } 165 as_fn_ret_failure () { return 1; } 166 167 exitcode=0 168 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172 if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 then : 174 175 else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177 esac 178 fi 179 test x\$exitcode = x0 || exit 1 180 blah=\$(echo \$(echo blah)) 181 test x\"\$blah\" = xblah || exit 1 182 test -x / || exit 1" 183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 187 188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 192 PATH=/empty FPATH=/empty; export PATH FPATH 193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 195 test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197 then : 198 as_have_required=yes 199 else case e in #( 200 e) as_have_required=no ;; 201 esac 202 fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204 then : 205 206 else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208 as_found=false 209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210 do 211 IFS=$as_save_IFS 212 case $as_dir in #((( 213 '') as_dir=./ ;; 214 */) ;; 215 *) as_dir=$as_dir/ ;; 216 esac 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 225 then : 226 CONFIG_SHELL=$as_shell as_have_required=yes 227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 228 then : 229 break 2 230 fi 231 fi 232 done;; 233 esac 234 as_found=false 235 done 236 IFS=$as_save_IFS 237 if $as_found 238 then : 239 240 else case e in #( 241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 243 then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245 fi ;; 246 esac 247 fi 248 249 250 if test "x$CONFIG_SHELL" != x 251 then : 252 export CONFIG_SHELL 253 # We cannot yet assume a decent shell, so we have to provide a 254 # neutralization value for shells without unset; and this also 255 # works around shells that cannot unset nonexistent variables. 256 # Preserve -v and -x to the replacement shell. 257 BASH_ENV=/dev/null 258 ENV=/dev/null 259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260 case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265 esac 266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 267 # Admittedly, this is quite paranoid, since all the known shells bail 268 # out after a failed 'exec'. 269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270 exit 255 271 fi 272 273 if test x$as_have_required = xno 274 then : 275 printf "%s\n" "$0: This script requires a shell more modern than all" 276 printf "%s\n" "$0: the shells that I found on your system." 277 if test ${ZSH_VERSION+y} ; then 278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 280 else 281 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and 282 $0: christos (at] astron.com about your system, including any 283 $0: error possibly output before this message. Then install 284 $0: a modern shell, or manually run the script under such a 285 $0: shell if you do have one." 286 fi 287 exit 1 288 fi ;; 289 esac 290 fi 291 fi 292 SHELL=${CONFIG_SHELL-/bin/sh} 293 export SHELL 294 # Unset more variables known to interfere with behavior of common tools. 295 CLICOLOR_FORCE= GREP_OPTIONS= 296 unset CLICOLOR_FORCE GREP_OPTIONS 297 298 ## --------------------- ## 299 ## M4sh Shell Functions. ## 300 ## --------------------- ## 301 # as_fn_unset VAR 302 # --------------- 303 # Portably unset VAR. 304 as_fn_unset () 305 { 306 { eval $1=; unset $1;} 307 } 308 as_unset=as_fn_unset 309 310 311 # as_fn_set_status STATUS 312 # ----------------------- 313 # Set $? to STATUS, without forking. 314 as_fn_set_status () 315 { 316 return $1 317 } # as_fn_set_status 318 319 # as_fn_exit STATUS 320 # ----------------- 321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 322 as_fn_exit () 323 { 324 set +e 325 as_fn_set_status $1 326 exit $1 327 } # as_fn_exit 328 329 # as_fn_mkdir_p 330 # ------------- 331 # Create "$as_dir" as a directory, including parents if necessary. 332 as_fn_mkdir_p () 333 { 334 335 case $as_dir in #( 336 -*) as_dir=./$as_dir;; 337 esac 338 test -d "$as_dir" || eval $as_mkdir_p || { 339 as_dirs= 340 while :; do 341 case $as_dir in #( 342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 343 *) as_qdir=$as_dir;; 344 esac 345 as_dirs="'$as_qdir' $as_dirs" 346 as_dir=`$as_dirname -- "$as_dir" || 347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 348 X"$as_dir" : 'X\(//\)[^/]' \| \ 349 X"$as_dir" : 'X\(//\)$' \| \ 350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 351 printf "%s\n" X"$as_dir" | 352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)[^/].*/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\/\)$/{ 361 s//\1/ 362 q 363 } 364 /^X\(\/\).*/{ 365 s//\1/ 366 q 367 } 368 s/.*/./; q'` 369 test -d "$as_dir" && break 370 done 371 test -z "$as_dirs" || eval "mkdir $as_dirs" 372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 373 374 375 } # as_fn_mkdir_p 376 377 # as_fn_executable_p FILE 378 # ----------------------- 379 # Test if FILE is an executable regular file. 380 as_fn_executable_p () 381 { 382 test -f "$1" && test -x "$1" 383 } # as_fn_executable_p 384 # as_fn_append VAR VALUE 385 # ---------------------- 386 # Append the text in VALUE to the end of the definition contained in VAR. Take 387 # advantage of any shell optimizations that allow amortized linear growth over 388 # repeated appends, instead of the typical quadratic growth present in naive 389 # implementations. 390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 391 then : 392 eval 'as_fn_append () 393 { 394 eval $1+=\$2 395 }' 396 else case e in #( 397 e) as_fn_append () 398 { 399 eval $1=\$$1\$2 400 } ;; 401 esac 402 fi # as_fn_append 403 404 # as_fn_arith ARG... 405 # ------------------ 406 # Perform arithmetic evaluation on the ARGs, and store the result in the 407 # global $as_val. Take advantage of shells that can avoid forks. The arguments 408 # must be portable across $(()) and expr. 409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410 then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415 else case e in #( 416 e) as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } ;; 420 esac 421 fi # as_fn_arith 422 423 424 # as_fn_error STATUS ERROR [LINENO LOG_FD] 425 # ---------------------------------------- 426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 428 # script with STATUS, using 1 if that was 0. 429 as_fn_error () 430 { 431 as_status=$1; test $as_status -eq 0 && as_status=1 432 if test "$4"; then 433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 435 fi 436 printf "%s\n" "$as_me: error: $2" >&2 437 as_fn_exit $as_status 438 } # as_fn_error 439 440 if expr a : '\(a\)' >/dev/null 2>&1 && 441 test "X`expr 00001 : '.*\(...\)'`" = X001; then 442 as_expr=expr 443 else 444 as_expr=false 445 fi 446 447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 448 as_basename=basename 449 else 450 as_basename=false 451 fi 452 453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 454 as_dirname=dirname 455 else 456 as_dirname=false 457 fi 458 459 as_me=`$as_basename -- "$0" || 460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 461 X"$0" : 'X\(//\)$' \| \ 462 X"$0" : 'X\(/\)' \| . 2>/dev/null || 463 printf "%s\n" X/"$0" | 464 sed '/^.*\/\([^/][^/]*\)\/*$/{ 465 s//\1/ 466 q 467 } 468 /^X\/\(\/\/\)$/{ 469 s//\1/ 470 q 471 } 472 /^X\/\(\/\).*/{ 473 s//\1/ 474 q 475 } 476 s/.*/./; q'` 477 478 # Avoid depending upon Character Ranges. 479 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 482 as_cr_digits='0123456789' 483 as_cr_alnum=$as_cr_Letters$as_cr_digits 484 485 486 as_lineno_1=$LINENO as_lineno_1a=$LINENO 487 as_lineno_2=$LINENO as_lineno_2a=$LINENO 488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 491 sed -n ' 492 p 493 /[$]LINENO/= 494 ' <$as_myself | 495 sed ' 496 t clear 497 :clear 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 508 chmod +x "$as_me.lineno" || 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 512 # already done that, so ensure we don't try to do so again and fall 513 # in an infinite loop. This has already happened in practice. 514 _as_can_reexec=no; export _as_can_reexec 515 # Don't try to exec as it changes $[0], causing all sort of problems 516 # (the dirname of $[0] is not the place where we might find the 517 # original and so on. Autoconf is especially sensitive to this). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521 } 522 523 524 # Determine whether it's possible to make 'echo' print without a newline. 525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526 # for compatibility with existing Makefiles. 527 ECHO_C= ECHO_N= ECHO_T= 528 case `echo -n x` in #((((( 529 -n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536 *) 537 ECHO_N='-n';; 538 esac 539 540 # For backward compatibility with old third-party macros, we provide 541 # the shell variables $as_echo and $as_echo_n. New code should use 542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543 as_echo='printf %s\n' 544 as_echo_n='printf %s' 545 546 rm -f conf$$ conf$$.exe conf$$.file 547 if test -d conf$$.dir; then 548 rm -f conf$$.dir/conf$$.file 549 else 550 rm -f conf$$.dir 551 mkdir conf$$.dir 2>/dev/null 552 fi 553 if (echo >conf$$.file) 2>/dev/null; then 554 if ln -s conf$$.file conf$$ 2>/dev/null; then 555 as_ln_s='ln -s' 556 # ... but there are two gotchas: 557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 559 # In both cases, we have to default to 'cp -pR'. 560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 561 as_ln_s='cp -pR' 562 elif ln conf$$.file conf$$ 2>/dev/null; then 563 as_ln_s=ln 564 else 565 as_ln_s='cp -pR' 566 fi 567 else 568 as_ln_s='cp -pR' 569 fi 570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 571 rmdir conf$$.dir 2>/dev/null 572 573 if mkdir -p . 2>/dev/null; then 574 as_mkdir_p='mkdir -p "$as_dir"' 575 else 576 test -d ./-p && rmdir ./-p 577 as_mkdir_p=false 578 fi 579 580 as_test_x='test -x' 581 as_executable_p=as_fn_executable_p 582 583 # Sed expression to map a string onto a valid CPP name. 584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 586 587 # Sed expression to map a string onto a valid variable name. 588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 590 591 SHELL=${CONFIG_SHELL-/bin/sh} 592 593 594 test -n "$DJDIR" || exec 7<&0 </dev/null 595 exec 6>&1 596 597 # Name of the host. 598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 599 # so uname gets run too. 600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 601 602 # 603 # Initializations. 604 # 605 ac_default_prefix=/usr/local 606 ac_clean_files= 607 ac_config_libobj_dir=. 608 LIBOBJS= 609 cross_compiling=no 610 subdirs= 611 MFLAGS= 612 MAKEFLAGS= 613 614 # Identity of this package. 615 PACKAGE_NAME='file' 616 PACKAGE_TARNAME='file' 617 PACKAGE_VERSION='5.48' 618 PACKAGE_STRING='file 5.48' 619 PACKAGE_BUGREPORT='christos (at] astron.com' 620 PACKAGE_URL='' 621 622 # Factoring default headers for most tests. 623 ac_includes_default="\ 624 #include <stddef.h> 625 #ifdef HAVE_STDIO_H 626 # include <stdio.h> 627 #endif 628 #ifdef HAVE_STDLIB_H 629 # include <stdlib.h> 630 #endif 631 #ifdef HAVE_STRING_H 632 # include <string.h> 633 #endif 634 #ifdef HAVE_INTTYPES_H 635 # include <inttypes.h> 636 #endif 637 #ifdef HAVE_STDINT_H 638 # include <stdint.h> 639 #endif 640 #ifdef HAVE_STRINGS_H 641 # include <strings.h> 642 #endif 643 #ifdef HAVE_SYS_TYPES_H 644 # include <sys/types.h> 645 #endif 646 #ifdef HAVE_SYS_STAT_H 647 # include <sys/stat.h> 648 #endif 649 #ifdef HAVE_UNISTD_H 650 # include <unistd.h> 651 #endif" 652 653 ac_header_c_list= 654 ac_func_c_list= 655 enable_year2038=yes 656 ac_subst_vars='am__EXEEXT_FALSE 657 am__EXEEXT_TRUE 658 LTLIBOBJS 659 IS_CROSS_COMPILE_FALSE 660 IS_CROSS_COMPILE_TRUE 661 LIBOBJS 662 HAVE_VISIBILITY 663 CFLAG_VISIBILITY 664 LT_SYS_LIBRARY_PATH 665 OTOOL64 666 OTOOL 667 LIPO 668 NMEDIT 669 DSYMUTIL 670 MANIFEST_TOOL 671 RANLIB 672 ac_ct_AR 673 AR 674 DLLTOOL 675 OBJDUMP 676 FILECMD 677 NM 678 ac_ct_DUMPBIN 679 DUMPBIN 680 LD 681 FGREP 682 EGREP 683 GREP 684 SED 685 LIBTOOL 686 LN_S 687 am__fastdepCC_FALSE 688 am__fastdepCC_TRUE 689 CCDEPMODE 690 am__nodep 691 AMDEPBACKSLASH 692 AMDEP_FALSE 693 AMDEP_TRUE 694 am__include 695 DEPDIR 696 OBJEXT 697 EXEEXT 698 ac_ct_CC 699 CPPFLAGS 700 LDFLAGS 701 CFLAGS 702 CC 703 WARNINGS 704 FSECT5_FALSE 705 FSECT5_TRUE 706 fsect 707 pkgdatadir 708 MINGW_FALSE 709 MINGW_TRUE 710 MINGW 711 host_os 712 host_vendor 713 host_cpu 714 host 715 build_os 716 build_vendor 717 build_cpu 718 build 719 MAINT 720 MAINTAINER_MODE_FALSE 721 MAINTAINER_MODE_TRUE 722 AM_BACKSLASH 723 AM_DEFAULT_VERBOSITY 724 AM_DEFAULT_V 725 AM_V 726 CSCOPE 727 ETAGS 728 CTAGS 729 am__untar 730 am__tar 731 AMTAR 732 am__leading_dot 733 SET_MAKE 734 AWK 735 mkdir_p 736 MKDIR_P 737 INSTALL_STRIP_PROGRAM 738 STRIP 739 install_sh 740 MAKEINFO 741 AUTOHEADER 742 AUTOMAKE 743 AUTOCONF 744 ACLOCAL 745 VERSION 746 PACKAGE 747 CYGPATH_W 748 am__isrc 749 INSTALL_DATA 750 INSTALL_SCRIPT 751 INSTALL_PROGRAM 752 target_alias 753 host_alias 754 build_alias 755 LIBS 756 ECHO_T 757 ECHO_N 758 ECHO_C 759 DEFS 760 mandir 761 localedir 762 libdir 763 psdir 764 pdfdir 765 dvidir 766 htmldir 767 infodir 768 docdir 769 oldincludedir 770 includedir 771 runstatedir 772 localstatedir 773 sharedstatedir 774 sysconfdir 775 datadir 776 datarootdir 777 libexecdir 778 sbindir 779 bindir 780 program_transform_name 781 prefix 782 exec_prefix 783 PACKAGE_URL 784 PACKAGE_BUGREPORT 785 PACKAGE_STRING 786 PACKAGE_VERSION 787 PACKAGE_TARNAME 788 PACKAGE_NAME 789 PATH_SEPARATOR 790 SHELL 791 am__quote' 792 ac_subst_files='' 793 ac_user_opts=' 794 enable_option_checking 795 enable_silent_rules 796 enable_maintainer_mode 797 enable_elf 798 enable_elf_core 799 enable_zlib 800 enable_bzlib 801 enable_xzlib 802 enable_zstdlib 803 enable_lzlib 804 enable_lrziplib 805 enable_libseccomp 806 enable_landlock 807 enable_fsect_man5 808 enable_dependency_tracking 809 enable_static 810 with_pic 811 enable_shared 812 enable_fast_install 813 with_aix_soname 814 with_gnu_ld 815 with_sysroot 816 enable_libtool_lock 817 enable_largefile 818 enable_warnings 819 enable_year2038 820 ' 821 ac_precious_vars='build_alias 822 host_alias 823 target_alias 824 CC 825 CFLAGS 826 LDFLAGS 827 LIBS 828 CPPFLAGS 829 LT_SYS_LIBRARY_PATH' 830 831 832 # Initialize some variables set by options. 833 ac_init_help= 834 ac_init_version=false 835 ac_unrecognized_opts= 836 ac_unrecognized_sep= 837 # The variables have the same names as the options, with 838 # dashes changed to underlines. 839 cache_file=/dev/null 840 exec_prefix=NONE 841 no_create= 842 no_recursion= 843 prefix=NONE 844 program_prefix=NONE 845 program_suffix=NONE 846 program_transform_name=s,x,x, 847 silent= 848 site= 849 srcdir= 850 verbose= 851 x_includes=NONE 852 x_libraries=NONE 853 854 # Installation directory options. 855 # These are left unexpanded so users can "make install exec_prefix=/foo" 856 # and all the variables that are supposed to be based on exec_prefix 857 # by default will actually change. 858 # Use braces instead of parens because sh, perl, etc. also accept them. 859 # (The list follows the same order as the GNU Coding Standards.) 860 bindir='${exec_prefix}/bin' 861 sbindir='${exec_prefix}/sbin' 862 libexecdir='${exec_prefix}/libexec' 863 datarootdir='${prefix}/share' 864 datadir='${datarootdir}' 865 sysconfdir='${prefix}/etc' 866 sharedstatedir='${prefix}/com' 867 localstatedir='${prefix}/var' 868 runstatedir='${localstatedir}/run' 869 includedir='${prefix}/include' 870 oldincludedir='/usr/include' 871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 872 infodir='${datarootdir}/info' 873 htmldir='${docdir}' 874 dvidir='${docdir}' 875 pdfdir='${docdir}' 876 psdir='${docdir}' 877 libdir='${exec_prefix}/lib' 878 localedir='${datarootdir}/locale' 879 mandir='${datarootdir}/man' 880 881 ac_prev= 882 ac_dashdash= 883 for ac_option 884 do 885 # If the previous option needs an argument, assign it. 886 if test -n "$ac_prev"; then 887 eval $ac_prev=\$ac_option 888 ac_prev= 889 continue 890 fi 891 892 case $ac_option in 893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 894 *=) ac_optarg= ;; 895 *) ac_optarg=yes ;; 896 esac 897 898 case $ac_dashdash$ac_option in 899 --) 900 ac_dashdash=yes ;; 901 902 -bindir | --bindir | --bindi | --bind | --bin | --bi) 903 ac_prev=bindir ;; 904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 905 bindir=$ac_optarg ;; 906 907 -build | --build | --buil | --bui | --bu) 908 ac_prev=build_alias ;; 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 910 build_alias=$ac_optarg ;; 911 912 -cache-file | --cache-file | --cache-fil | --cache-fi \ 913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 914 ac_prev=cache_file ;; 915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 917 cache_file=$ac_optarg ;; 918 919 --config-cache | -C) 920 cache_file=config.cache ;; 921 922 -datadir | --datadir | --datadi | --datad) 923 ac_prev=datadir ;; 924 -datadir=* | --datadir=* | --datadi=* | --datad=*) 925 datadir=$ac_optarg ;; 926 927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 928 | --dataroo | --dataro | --datar) 929 ac_prev=datarootdir ;; 930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 932 datarootdir=$ac_optarg ;; 933 934 -disable-* | --disable-*) 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 936 # Reject names that are not valid shell variable names. 937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 938 as_fn_error $? "invalid feature name: '$ac_useropt'" 939 ac_useropt_orig=$ac_useropt 940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 941 case $ac_user_opts in 942 *" 943 "enable_$ac_useropt" 944 "*) ;; 945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 946 ac_unrecognized_sep=', ';; 947 esac 948 eval enable_$ac_useropt=no ;; 949 950 -docdir | --docdir | --docdi | --doc | --do) 951 ac_prev=docdir ;; 952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 953 docdir=$ac_optarg ;; 954 955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 956 ac_prev=dvidir ;; 957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 958 dvidir=$ac_optarg ;; 959 960 -enable-* | --enable-*) 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 962 # Reject names that are not valid shell variable names. 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 964 as_fn_error $? "invalid feature name: '$ac_useropt'" 965 ac_useropt_orig=$ac_useropt 966 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 967 case $ac_user_opts in 968 *" 969 "enable_$ac_useropt" 970 "*) ;; 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 972 ac_unrecognized_sep=', ';; 973 esac 974 eval enable_$ac_useropt=\$ac_optarg ;; 975 976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 978 | --exec | --exe | --ex) 979 ac_prev=exec_prefix ;; 980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 982 | --exec=* | --exe=* | --ex=*) 983 exec_prefix=$ac_optarg ;; 984 985 -gas | --gas | --ga | --g) 986 # Obsolete; use --with-gas. 987 with_gas=yes ;; 988 989 -help | --help | --hel | --he | -h) 990 ac_init_help=long ;; 991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 992 ac_init_help=recursive ;; 993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 994 ac_init_help=short ;; 995 996 -host | --host | --hos | --ho) 997 ac_prev=host_alias ;; 998 -host=* | --host=* | --hos=* | --ho=*) 999 host_alias=$ac_optarg ;; 1000 1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1002 ac_prev=htmldir ;; 1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1004 | --ht=*) 1005 htmldir=$ac_optarg ;; 1006 1007 -includedir | --includedir | --includedi | --included | --include \ 1008 | --includ | --inclu | --incl | --inc) 1009 ac_prev=includedir ;; 1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1011 | --includ=* | --inclu=* | --incl=* | --inc=*) 1012 includedir=$ac_optarg ;; 1013 1014 -infodir | --infodir | --infodi | --infod | --info | --inf) 1015 ac_prev=infodir ;; 1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1017 infodir=$ac_optarg ;; 1018 1019 -libdir | --libdir | --libdi | --libd) 1020 ac_prev=libdir ;; 1021 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1022 libdir=$ac_optarg ;; 1023 1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1025 | --libexe | --libex | --libe) 1026 ac_prev=libexecdir ;; 1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1028 | --libexe=* | --libex=* | --libe=*) 1029 libexecdir=$ac_optarg ;; 1030 1031 -localedir | --localedir | --localedi | --localed | --locale) 1032 ac_prev=localedir ;; 1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1034 localedir=$ac_optarg ;; 1035 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1037 | --localstate | --localstat | --localsta | --localst | --locals) 1038 ac_prev=localstatedir ;; 1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1041 localstatedir=$ac_optarg ;; 1042 1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1044 ac_prev=mandir ;; 1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1046 mandir=$ac_optarg ;; 1047 1048 -nfp | --nfp | --nf) 1049 # Obsolete; use --without-fp. 1050 with_fp=no ;; 1051 1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1053 | --no-cr | --no-c | -n) 1054 no_create=yes ;; 1055 1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1058 no_recursion=yes ;; 1059 1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1062 | --oldin | --oldi | --old | --ol | --o) 1063 ac_prev=oldincludedir ;; 1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1067 oldincludedir=$ac_optarg ;; 1068 1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1070 ac_prev=prefix ;; 1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1072 prefix=$ac_optarg ;; 1073 1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1075 | --program-pre | --program-pr | --program-p) 1076 ac_prev=program_prefix ;; 1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1079 program_prefix=$ac_optarg ;; 1080 1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1082 | --program-suf | --program-su | --program-s) 1083 ac_prev=program_suffix ;; 1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1086 program_suffix=$ac_optarg ;; 1087 1088 -program-transform-name | --program-transform-name \ 1089 | --program-transform-nam | --program-transform-na \ 1090 | --program-transform-n | --program-transform- \ 1091 | --program-transform | --program-transfor \ 1092 | --program-transfo | --program-transf \ 1093 | --program-trans | --program-tran \ 1094 | --progr-tra | --program-tr | --program-t) 1095 ac_prev=program_transform_name ;; 1096 -program-transform-name=* | --program-transform-name=* \ 1097 | --program-transform-nam=* | --program-transform-na=* \ 1098 | --program-transform-n=* | --program-transform-=* \ 1099 | --program-transform=* | --program-transfor=* \ 1100 | --program-transfo=* | --program-transf=* \ 1101 | --program-trans=* | --program-tran=* \ 1102 | --progr-tra=* | --program-tr=* | --program-t=*) 1103 program_transform_name=$ac_optarg ;; 1104 1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1106 ac_prev=pdfdir ;; 1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1108 pdfdir=$ac_optarg ;; 1109 1110 -psdir | --psdir | --psdi | --psd | --ps) 1111 ac_prev=psdir ;; 1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1113 psdir=$ac_optarg ;; 1114 1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1116 | -silent | --silent | --silen | --sile | --sil) 1117 silent=yes ;; 1118 1119 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1120 | --runstate | --runstat | --runsta | --runst | --runs \ 1121 | --run | --ru | --r) 1122 ac_prev=runstatedir ;; 1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1125 | --run=* | --ru=* | --r=*) 1126 runstatedir=$ac_optarg ;; 1127 1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1129 ac_prev=sbindir ;; 1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1131 | --sbi=* | --sb=*) 1132 sbindir=$ac_optarg ;; 1133 1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1136 | --sharedst | --shareds | --shared | --share | --shar \ 1137 | --sha | --sh) 1138 ac_prev=sharedstatedir ;; 1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1142 | --sha=* | --sh=*) 1143 sharedstatedir=$ac_optarg ;; 1144 1145 -site | --site | --sit) 1146 ac_prev=site ;; 1147 -site=* | --site=* | --sit=*) 1148 site=$ac_optarg ;; 1149 1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1151 ac_prev=srcdir ;; 1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1153 srcdir=$ac_optarg ;; 1154 1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1156 | --syscon | --sysco | --sysc | --sys | --sy) 1157 ac_prev=sysconfdir ;; 1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1160 sysconfdir=$ac_optarg ;; 1161 1162 -target | --target | --targe | --targ | --tar | --ta | --t) 1163 ac_prev=target_alias ;; 1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1165 target_alias=$ac_optarg ;; 1166 1167 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1168 verbose=yes ;; 1169 1170 -version | --version | --versio | --versi | --vers | -V) 1171 ac_init_version=: ;; 1172 1173 -with-* | --with-*) 1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1175 # Reject names that are not valid shell variable names. 1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1177 as_fn_error $? "invalid package name: '$ac_useropt'" 1178 ac_useropt_orig=$ac_useropt 1179 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1180 case $ac_user_opts in 1181 *" 1182 "with_$ac_useropt" 1183 "*) ;; 1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1185 ac_unrecognized_sep=', ';; 1186 esac 1187 eval with_$ac_useropt=\$ac_optarg ;; 1188 1189 -without-* | --without-*) 1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1191 # Reject names that are not valid shell variable names. 1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1193 as_fn_error $? "invalid package name: '$ac_useropt'" 1194 ac_useropt_orig=$ac_useropt 1195 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1196 case $ac_user_opts in 1197 *" 1198 "with_$ac_useropt" 1199 "*) ;; 1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1201 ac_unrecognized_sep=', ';; 1202 esac 1203 eval with_$ac_useropt=no ;; 1204 1205 --x) 1206 # Obsolete; use --with-x. 1207 with_x=yes ;; 1208 1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1210 | --x-incl | --x-inc | --x-in | --x-i) 1211 ac_prev=x_includes ;; 1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1214 x_includes=$ac_optarg ;; 1215 1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1218 ac_prev=x_libraries ;; 1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1221 x_libraries=$ac_optarg ;; 1222 1223 -*) as_fn_error $? "unrecognized option: '$ac_option' 1224 Try '$0 --help' for more information" 1225 ;; 1226 1227 *=*) 1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1229 # Reject names that are not valid shell variable names. 1230 case $ac_envvar in #( 1231 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1232 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1233 esac 1234 eval $ac_envvar=\$ac_optarg 1235 export $ac_envvar ;; 1236 1237 *) 1238 # FIXME: should be removed in autoconf 3.0. 1239 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1241 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1243 ;; 1244 1245 esac 1246 done 1247 1248 if test -n "$ac_prev"; then 1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1250 as_fn_error $? "missing argument to $ac_option" 1251 fi 1252 1253 if test -n "$ac_unrecognized_opts"; then 1254 case $enable_option_checking in 1255 no) ;; 1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1257 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1258 esac 1259 fi 1260 1261 # Check all directory arguments for consistency. 1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1263 datadir sysconfdir sharedstatedir localstatedir includedir \ 1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1265 libdir localedir mandir runstatedir 1266 do 1267 eval ac_val=\$$ac_var 1268 # Remove trailing slashes. 1269 case $ac_val in 1270 */ ) 1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1272 eval $ac_var=\$ac_val;; 1273 esac 1274 # Be sure to have absolute directory names. 1275 case $ac_val in 1276 [\\/$]* | ?:[\\/]* ) continue;; 1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1278 esac 1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1280 done 1281 1282 # There might be people who depend on the old broken behavior: '$host' 1283 # used to hold the argument of --host etc. 1284 # FIXME: To remove some day. 1285 build=$build_alias 1286 host=$host_alias 1287 target=$target_alias 1288 1289 # FIXME: To remove some day. 1290 if test "x$host_alias" != x; then 1291 if test "x$build_alias" = x; then 1292 cross_compiling=maybe 1293 elif test "x$build_alias" != "x$host_alias"; then 1294 cross_compiling=yes 1295 fi 1296 fi 1297 1298 ac_tool_prefix= 1299 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1300 1301 test "$silent" = yes && exec 6>/dev/null 1302 1303 1304 ac_pwd=`pwd` && test -n "$ac_pwd" && 1305 ac_ls_di=`ls -di .` && 1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1307 as_fn_error $? "working directory cannot be determined" 1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1309 as_fn_error $? "pwd does not report name of working directory" 1310 1311 1312 # Find the source files, if location was not specified. 1313 if test -z "$srcdir"; then 1314 ac_srcdir_defaulted=yes 1315 # Try the directory containing this script, then the parent directory. 1316 ac_confdir=`$as_dirname -- "$as_myself" || 1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1318 X"$as_myself" : 'X\(//\)[^/]' \| \ 1319 X"$as_myself" : 'X\(//\)$' \| \ 1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1321 printf "%s\n" X"$as_myself" | 1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)[^/].*/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\/\)$/{ 1331 s//\1/ 1332 q 1333 } 1334 /^X\(\/\).*/{ 1335 s//\1/ 1336 q 1337 } 1338 s/.*/./; q'` 1339 srcdir=$ac_confdir 1340 if test ! -r "$srcdir/$ac_unique_file"; then 1341 srcdir=.. 1342 fi 1343 else 1344 ac_srcdir_defaulted=no 1345 fi 1346 if test ! -r "$srcdir/$ac_unique_file"; then 1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1349 fi 1350 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1351 ac_abs_confdir=`( 1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1353 pwd)` 1354 # When building in place, set srcdir=. 1355 if test "$ac_abs_confdir" = "$ac_pwd"; then 1356 srcdir=. 1357 fi 1358 # Remove unnecessary trailing slashes from srcdir. 1359 # Double slashes in file names in object file debugging info 1360 # mess up M-x gdb in Emacs. 1361 case $srcdir in 1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1363 esac 1364 for ac_var in $ac_precious_vars; do 1365 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_env_${ac_var}_value=\$${ac_var} 1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1368 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1369 done 1370 1371 # 1372 # Report the --help message. 1373 # 1374 if test "$ac_init_help" = "long"; then 1375 # Omit some internal or obsolete options to make the list less imposing. 1376 # This message is too long to be a string in the A/UX 3.1 sh. 1377 cat <<_ACEOF 1378 'configure' configures file 5.48 to adapt to many kinds of systems. 1379 1380 Usage: $0 [OPTION]... [VAR=VALUE]... 1381 1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1383 VAR=VALUE. See below for descriptions of some of the useful variables. 1384 1385 Defaults for the options are specified in brackets. 1386 1387 Configuration: 1388 -h, --help display this help and exit 1389 --help=short display options specific to this package 1390 --help=recursive display the short help of all the included packages 1391 -V, --version display version information and exit 1392 -q, --quiet, --silent do not print 'checking ...' messages 1393 --cache-file=FILE cache test results in FILE [disabled] 1394 -C, --config-cache alias for '--cache-file=config.cache' 1395 -n, --no-create do not create output files 1396 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1397 1398 Installation directories: 1399 --prefix=PREFIX install architecture-independent files in PREFIX 1400 [$ac_default_prefix] 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1402 [PREFIX] 1403 1404 By default, 'make install' will install all the files in 1405 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1406 an installation prefix other than '$ac_default_prefix' using '--prefix', 1407 for instance '--prefix=\$HOME'. 1408 1409 For better control, use the options below. 1410 1411 Fine tuning of the installation directories: 1412 --bindir=DIR user executables [EPREFIX/bin] 1413 --sbindir=DIR system admin executables [EPREFIX/sbin] 1414 --libexecdir=DIR program executables [EPREFIX/libexec] 1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1419 --libdir=DIR object code libraries [EPREFIX/lib] 1420 --includedir=DIR C header files [PREFIX/include] 1421 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1424 --infodir=DIR info documentation [DATAROOTDIR/info] 1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1426 --mandir=DIR man documentation [DATAROOTDIR/man] 1427 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1428 --htmldir=DIR html documentation [DOCDIR] 1429 --dvidir=DIR dvi documentation [DOCDIR] 1430 --pdfdir=DIR pdf documentation [DOCDIR] 1431 --psdir=DIR ps documentation [DOCDIR] 1432 _ACEOF 1433 1434 cat <<\_ACEOF 1435 1436 Program names: 1437 --program-prefix=PREFIX prepend PREFIX to installed program names 1438 --program-suffix=SUFFIX append SUFFIX to installed program names 1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1440 1441 System types: 1442 --build=BUILD configure for building on BUILD [guessed] 1443 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1444 _ACEOF 1445 fi 1446 1447 if test -n "$ac_init_help"; then 1448 case $ac_init_help in 1449 short | recursive ) echo "Configuration of file 5.48:";; 1450 esac 1451 cat <<\_ACEOF 1452 1453 Optional Features: 1454 --disable-option-checking ignore unrecognized --enable/--with options 1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1457 --enable-silent-rules less verbose build output (undo: "make V=1") 1458 --disable-silent-rules verbose build output (undo: "make V=0") 1459 --enable-maintainer-mode 1460 enable make rules and dependencies not useful (and 1461 sometimes confusing) to the casual installer 1462 --disable-elf disable builtin ELF support 1463 --disable-elf-core disable ELF core file support 1464 --disable-zlib disable zlib compression support [default=auto] 1465 --disable-bzlib disable bz2lib compression support [default=auto] 1466 --disable-xzlib disable liblzma/xz compression support 1467 [default=auto] 1468 --disable-zstdlib disable zstdlib compression support [default=auto] 1469 --disable-lzlib disable liblz (lzip) compression support 1470 [default=auto] 1471 --disable-lrziplib disable liblrzip (lrzip) compression support 1472 [default=auto] 1473 --disable-libseccomp disable libseccomp sandboxing [default=auto] 1474 --disable-landlock disable Landlock filesystem sandboxing 1475 [default=auto] 1476 --enable-fsect-man5 enable file formats in man section 5 1477 --enable-dependency-tracking 1478 do not reject slow dependency extractors 1479 --disable-dependency-tracking 1480 speeds up one-time build 1481 --enable-static[=PKGS] build static libraries [default=no] 1482 --enable-shared[=PKGS] build shared libraries [default=yes] 1483 --enable-fast-install[=PKGS] 1484 optimize for fast installation [default=yes] 1485 --disable-libtool-lock avoid locking (might break parallel builds) 1486 --disable-largefile omit support for large files 1487 --disable-warnings disable compiler warnings 1488 --disable-year2038 don't support timestamps after 2038 1489 1490 Optional Packages: 1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1493 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1494 both] 1495 --with-aix-soname=aix|svr4|both 1496 shared library versioning (aka "SONAME") variant to 1497 provide on AIX, [default=aix]. 1498 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1499 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1500 compiler's sysroot if not specified). 1501 1502 Some influential environment variables: 1503 CC C compiler command 1504 CFLAGS C compiler flags 1505 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1506 nonstandard directory <lib dir> 1507 LIBS libraries to pass to the linker, e.g. -l<library> 1508 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1509 you have headers in a nonstandard directory <include dir> 1510 LT_SYS_LIBRARY_PATH 1511 User-defined run-time library search path. 1512 1513 Use these variables to override the choices made by 'configure' or to help 1514 it to find libraries and programs with nonstandard names/locations. 1515 1516 Report bugs to <christos@astron.com>. 1517 _ACEOF 1518 ac_status=$? 1519 fi 1520 1521 if test "$ac_init_help" = "recursive"; then 1522 # If there are subdirs, report their specific --help. 1523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1524 test -d "$ac_dir" || 1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1526 continue 1527 ac_builddir=. 1528 1529 case "$ac_dir" in 1530 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1531 *) 1532 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1533 # A ".." for each directory in $ac_dir_suffix. 1534 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1535 case $ac_top_builddir_sub in 1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1538 esac ;; 1539 esac 1540 ac_abs_top_builddir=$ac_pwd 1541 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1542 # for backward compatibility: 1543 ac_top_builddir=$ac_top_build_prefix 1544 1545 case $srcdir in 1546 .) # We are building in place. 1547 ac_srcdir=. 1548 ac_top_srcdir=$ac_top_builddir_sub 1549 ac_abs_top_srcdir=$ac_pwd ;; 1550 [\\/]* | ?:[\\/]* ) # Absolute name. 1551 ac_srcdir=$srcdir$ac_dir_suffix; 1552 ac_top_srcdir=$srcdir 1553 ac_abs_top_srcdir=$srcdir ;; 1554 *) # Relative name. 1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1556 ac_top_srcdir=$ac_top_build_prefix$srcdir 1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1558 esac 1559 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1560 1561 cd "$ac_dir" || { ac_status=$?; continue; } 1562 # Check for configure.gnu first; this name is used for a wrapper for 1563 # Metaconfig's "Configure" on case-insensitive file systems. 1564 if test -f "$ac_srcdir/configure.gnu"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1567 elif test -f "$ac_srcdir/configure"; then 1568 echo && 1569 $SHELL "$ac_srcdir/configure" --help=recursive 1570 else 1571 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1572 fi || ac_status=$? 1573 cd "$ac_pwd" || { ac_status=$?; break; } 1574 done 1575 fi 1576 1577 test -n "$ac_init_help" && exit $ac_status 1578 if $ac_init_version; then 1579 cat <<\_ACEOF 1580 file configure 5.48 1581 generated by GNU Autoconf 2.72 1582 1583 Copyright (C) 2023 Free Software Foundation, Inc. 1584 This configure script is free software; the Free Software Foundation 1585 gives unlimited permission to copy, distribute and modify it. 1586 _ACEOF 1587 exit 1588 fi 1589 1590 ## ------------------------ ## 1591 ## Autoconf initialization. ## 1592 ## ------------------------ ## 1593 1594 # ac_fn_c_try_compile LINENO 1595 # -------------------------- 1596 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1597 ac_fn_c_try_compile () 1598 { 1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1600 rm -f conftest.$ac_objext conftest.beam 1601 if { { ac_try="$ac_compile" 1602 case "(($ac_try" in 1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1604 *) ac_try_echo=$ac_try;; 1605 esac 1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1607 printf "%s\n" "$ac_try_echo"; } >&5 1608 (eval "$ac_compile") 2>conftest.err 1609 ac_status=$? 1610 if test -s conftest.err; then 1611 grep -v '^ *+' conftest.err >conftest.er1 1612 cat conftest.er1 >&5 1613 mv -f conftest.er1 conftest.err 1614 fi 1615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1616 test $ac_status = 0; } && { 1617 test -z "$ac_c_werror_flag" || 1618 test ! -s conftest.err 1619 } && test -s conftest.$ac_objext 1620 then : 1621 ac_retval=0 1622 else case e in #( 1623 e) printf "%s\n" "$as_me: failed program was:" >&5 1624 sed 's/^/| /' conftest.$ac_ext >&5 1625 1626 ac_retval=1 ;; 1627 esac 1628 fi 1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1630 as_fn_set_status $ac_retval 1631 1632 } # ac_fn_c_try_compile 1633 1634 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1635 # ------------------------------------------------------- 1636 # Tests whether HEADER exists and can be compiled using the include files in 1637 # INCLUDES, setting the cache variable VAR accordingly. 1638 ac_fn_c_check_header_compile () 1639 { 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1642 printf %s "checking for $2... " >&6; } 1643 if eval test \${$3+y} 1644 then : 1645 printf %s "(cached) " >&6 1646 else case e in #( 1647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1648 /* end confdefs.h. */ 1649 $4 1650 #include <$2> 1651 _ACEOF 1652 if ac_fn_c_try_compile "$LINENO" 1653 then : 1654 eval "$3=yes" 1655 else case e in #( 1656 e) eval "$3=no" ;; 1657 esac 1658 fi 1659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1660 esac 1661 fi 1662 eval ac_res=\$$3 1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664 printf "%s\n" "$ac_res" >&6; } 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 1667 } # ac_fn_c_check_header_compile 1668 1669 # ac_fn_c_try_link LINENO 1670 # ----------------------- 1671 # Try to link conftest.$ac_ext, and return whether this succeeded. 1672 ac_fn_c_try_link () 1673 { 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1676 if { { ac_try="$ac_link" 1677 case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680 esac 1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682 printf "%s\n" "$ac_try_echo"; } >&5 1683 (eval "$ac_link") 2>conftest.err 1684 ac_status=$? 1685 if test -s conftest.err; then 1686 grep -v '^ *+' conftest.err >conftest.er1 1687 cat conftest.er1 >&5 1688 mv -f conftest.er1 conftest.err 1689 fi 1690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1691 test $ac_status = 0; } && { 1692 test -z "$ac_c_werror_flag" || 1693 test ! -s conftest.err 1694 } && test -s conftest$ac_exeext && { 1695 test "$cross_compiling" = yes || 1696 test -x conftest$ac_exeext 1697 } 1698 then : 1699 ac_retval=0 1700 else case e in #( 1701 e) printf "%s\n" "$as_me: failed program was:" >&5 1702 sed 's/^/| /' conftest.$ac_ext >&5 1703 1704 ac_retval=1 ;; 1705 esac 1706 fi 1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1709 # interfere with the next link command; also delete a directory that is 1710 # left behind by Apple's compiler. We do this before executing the actions. 1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715 } # ac_fn_c_try_link 1716 1717 # ac_fn_c_try_run LINENO 1718 # ---------------------- 1719 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1720 # executables *can* be run. 1721 ac_fn_c_try_run () 1722 { 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 if { { ac_try="$ac_link" 1725 case "(($ac_try" in 1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1727 *) ac_try_echo=$ac_try;; 1728 esac 1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1730 printf "%s\n" "$ac_try_echo"; } >&5 1731 (eval "$ac_link") 2>&5 1732 ac_status=$? 1733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1734 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1735 { { case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738 esac 1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740 printf "%s\n" "$ac_try_echo"; } >&5 1741 (eval "$ac_try") 2>&5 1742 ac_status=$? 1743 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; }; } 1745 then : 1746 ac_retval=0 1747 else case e in #( 1748 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1749 printf "%s\n" "$as_me: failed program was:" >&5 1750 sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=$ac_status ;; 1753 esac 1754 fi 1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1757 as_fn_set_status $ac_retval 1758 1759 } # ac_fn_c_try_run 1760 1761 # ac_fn_c_check_func LINENO FUNC VAR 1762 # ---------------------------------- 1763 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1764 ac_fn_c_check_func () 1765 { 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1768 printf %s "checking for $2... " >&6; } 1769 if eval test \${$3+y} 1770 then : 1771 printf %s "(cached) " >&6 1772 else case e in #( 1773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774 /* end confdefs.h. */ 1775 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1777 #define $2 innocuous_$2 1778 1779 /* System header to define __stub macros and hopefully few prototypes, 1780 which can conflict with char $2 (void); below. */ 1781 1782 #include <limits.h> 1783 #undef $2 1784 1785 /* Override any GCC internal prototype to avoid an error. 1786 Use char because int might match the return type of a GCC 1787 builtin and then its argument prototype would still apply. */ 1788 #ifdef __cplusplus 1789 extern "C" 1790 #endif 1791 char $2 (void); 1792 /* The GNU C library defines this for functions which it implements 1793 to always fail with ENOSYS. Some functions are actually named 1794 something starting with __ and the normal name is an alias. */ 1795 #if defined __stub_$2 || defined __stub___$2 1796 choke me 1797 #endif 1798 1799 int 1800 main (void) 1801 { 1802 return $2 (); 1803 ; 1804 return 0; 1805 } 1806 _ACEOF 1807 if ac_fn_c_try_link "$LINENO" 1808 then : 1809 eval "$3=yes" 1810 else case e in #( 1811 e) eval "$3=no" ;; 1812 esac 1813 fi 1814 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1815 conftest$ac_exeext conftest.$ac_ext ;; 1816 esac 1817 fi 1818 eval ac_res=\$$3 1819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820 printf "%s\n" "$ac_res" >&6; } 1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1822 1823 } # ac_fn_c_check_func 1824 1825 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1826 # ------------------------------------------- 1827 # Tests whether TYPE exists after having included INCLUDES, setting cache 1828 # variable VAR accordingly. 1829 ac_fn_c_check_type () 1830 { 1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1833 printf %s "checking for $2... " >&6; } 1834 if eval test \${$3+y} 1835 then : 1836 printf %s "(cached) " >&6 1837 else case e in #( 1838 e) eval "$3=no" 1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1840 /* end confdefs.h. */ 1841 $4 1842 int 1843 main (void) 1844 { 1845 if (sizeof ($2)) 1846 return 0; 1847 ; 1848 return 0; 1849 } 1850 _ACEOF 1851 if ac_fn_c_try_compile "$LINENO" 1852 then : 1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1854 /* end confdefs.h. */ 1855 $4 1856 int 1857 main (void) 1858 { 1859 if (sizeof (($2))) 1860 return 0; 1861 ; 1862 return 0; 1863 } 1864 _ACEOF 1865 if ac_fn_c_try_compile "$LINENO" 1866 then : 1867 1868 else case e in #( 1869 e) eval "$3=yes" ;; 1870 esac 1871 fi 1872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1873 fi 1874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1875 esac 1876 fi 1877 eval ac_res=\$$3 1878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1879 printf "%s\n" "$ac_res" >&6; } 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882 } # ac_fn_c_check_type 1883 1884 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1885 # ---------------------------------------------------- 1886 # Tries to find if the field MEMBER exists in type AGGR, after including 1887 # INCLUDES, setting cache variable VAR accordingly. 1888 ac_fn_c_check_member () 1889 { 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1892 printf %s "checking for $2.$3... " >&6; } 1893 if eval test \${$4+y} 1894 then : 1895 printf %s "(cached) " >&6 1896 else case e in #( 1897 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1898 /* end confdefs.h. */ 1899 $5 1900 int 1901 main (void) 1902 { 1903 static $2 ac_aggr; 1904 if (ac_aggr.$3) 1905 return 0; 1906 ; 1907 return 0; 1908 } 1909 _ACEOF 1910 if ac_fn_c_try_compile "$LINENO" 1911 then : 1912 eval "$4=yes" 1913 else case e in #( 1914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1915 /* end confdefs.h. */ 1916 $5 1917 int 1918 main (void) 1919 { 1920 static $2 ac_aggr; 1921 if (sizeof ac_aggr.$3) 1922 return 0; 1923 ; 1924 return 0; 1925 } 1926 _ACEOF 1927 if ac_fn_c_try_compile "$LINENO" 1928 then : 1929 eval "$4=yes" 1930 else case e in #( 1931 e) eval "$4=no" ;; 1932 esac 1933 fi 1934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1935 esac 1936 fi 1937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1938 esac 1939 fi 1940 eval ac_res=\$$4 1941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942 printf "%s\n" "$ac_res" >&6; } 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 1945 } # ac_fn_c_check_member 1946 1947 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1948 # ------------------------------------------------------------------ 1949 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1950 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1951 ac_fn_check_decl () 1952 { 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 as_decl_name=`echo $2|sed 's/ *(.*//'` 1955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1956 printf %s "checking whether $as_decl_name is declared... " >&6; } 1957 if eval test \${$3+y} 1958 then : 1959 printf %s "(cached) " >&6 1960 else case e in #( 1961 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1962 eval ac_save_FLAGS=\$$6 1963 as_fn_append $6 " $5" 1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1965 /* end confdefs.h. */ 1966 $4 1967 int 1968 main (void) 1969 { 1970 #ifndef $as_decl_name 1971 #ifdef __cplusplus 1972 (void) $as_decl_use; 1973 #else 1974 (void) $as_decl_name; 1975 #endif 1976 #endif 1977 1978 ; 1979 return 0; 1980 } 1981 _ACEOF 1982 if ac_fn_c_try_compile "$LINENO" 1983 then : 1984 eval "$3=yes" 1985 else case e in #( 1986 e) eval "$3=no" ;; 1987 esac 1988 fi 1989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1990 eval $6=\$ac_save_FLAGS 1991 ;; 1992 esac 1993 fi 1994 eval ac_res=\$$3 1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1996 printf "%s\n" "$ac_res" >&6; } 1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1998 1999 } # ac_fn_check_decl 2000 2001 # ac_fn_c_find_uintX_t LINENO BITS VAR 2002 # ------------------------------------ 2003 # Finds an unsigned integer type with width BITS, setting cache variable VAR 2004 # accordingly. 2005 ac_fn_c_find_uintX_t () 2006 { 2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2009 printf %s "checking for uint$2_t... " >&6; } 2010 if eval test \${$3+y} 2011 then : 2012 printf %s "(cached) " >&6 2013 else case e in #( 2014 e) eval "$3=no" 2015 # Order is important - never check a type that is potentially smaller 2016 # than half of the expected target width. 2017 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2018 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2020 /* end confdefs.h. */ 2021 $ac_includes_default 2022 int 2023 main (void) 2024 { 2025 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2026 test_array [0] = 0; 2027 return test_array [0]; 2028 2029 ; 2030 return 0; 2031 } 2032 _ACEOF 2033 if ac_fn_c_try_compile "$LINENO" 2034 then : 2035 case $ac_type in #( 2036 uint$2_t) : 2037 eval "$3=yes" ;; #( 2038 *) : 2039 eval "$3=\$ac_type" ;; 2040 esac 2041 fi 2042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2043 if eval test \"x\$"$3"\" = x"no" 2044 then : 2045 2046 else case e in #( 2047 e) break ;; 2048 esac 2049 fi 2050 done ;; 2051 esac 2052 fi 2053 eval ac_res=\$$3 2054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2055 printf "%s\n" "$ac_res" >&6; } 2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2057 2058 } # ac_fn_c_find_uintX_t 2059 2060 # ac_fn_c_find_intX_t LINENO BITS VAR 2061 # ----------------------------------- 2062 # Finds a signed integer type with width BITS, setting cache variable VAR 2063 # accordingly. 2064 ac_fn_c_find_intX_t () 2065 { 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2068 printf %s "checking for int$2_t... " >&6; } 2069 if eval test \${$3+y} 2070 then : 2071 printf %s "(cached) " >&6 2072 else case e in #( 2073 e) eval "$3=no" 2074 # Order is important - never check a type that is potentially smaller 2075 # than half of the expected target width. 2076 for ac_type in int$2_t 'int' 'long int' \ 2077 'long long int' 'short int' 'signed char'; do 2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2079 /* end confdefs.h. */ 2080 $ac_includes_default 2081 enum { N = $2 / 2 - 1 }; 2082 int 2083 main (void) 2084 { 2085 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2086 test_array [0] = 0; 2087 return test_array [0]; 2088 2089 ; 2090 return 0; 2091 } 2092 _ACEOF 2093 if ac_fn_c_try_compile "$LINENO" 2094 then : 2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2096 /* end confdefs.h. */ 2097 $ac_includes_default 2098 enum { N = $2 / 2 - 1 }; 2099 int 2100 main (void) 2101 { 2102 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2103 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2104 test_array [0] = 0; 2105 return test_array [0]; 2106 2107 ; 2108 return 0; 2109 } 2110 _ACEOF 2111 if ac_fn_c_try_compile "$LINENO" 2112 then : 2113 2114 else case e in #( 2115 e) case $ac_type in #( 2116 int$2_t) : 2117 eval "$3=yes" ;; #( 2118 *) : 2119 eval "$3=\$ac_type" ;; 2120 esac ;; 2121 esac 2122 fi 2123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2124 fi 2125 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2126 if eval test \"x\$"$3"\" = x"no" 2127 then : 2128 2129 else case e in #( 2130 e) break ;; 2131 esac 2132 fi 2133 done ;; 2134 esac 2135 fi 2136 eval ac_res=\$$3 2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2138 printf "%s\n" "$ac_res" >&6; } 2139 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2140 2141 } # ac_fn_c_find_intX_t 2142 ac_configure_args_raw= 2143 for ac_arg 2144 do 2145 case $ac_arg in 2146 *\'*) 2147 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2148 esac 2149 as_fn_append ac_configure_args_raw " '$ac_arg'" 2150 done 2151 2152 case $ac_configure_args_raw in 2153 *$as_nl*) 2154 ac_safe_unquote= ;; 2155 *) 2156 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2157 ac_unsafe_a="$ac_unsafe_z#~" 2158 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2159 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2160 esac 2161 2162 cat >config.log <<_ACEOF 2163 This file contains any messages produced by compilers while 2164 running configure, to aid debugging if configure makes a mistake. 2165 2166 It was created by file $as_me 5.48, which was 2167 generated by GNU Autoconf 2.72. Invocation command line was 2168 2169 $ $0$ac_configure_args_raw 2170 2171 _ACEOF 2172 exec 5>>config.log 2173 { 2174 cat <<_ASUNAME 2175 ## --------- ## 2176 ## Platform. ## 2177 ## --------- ## 2178 2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2180 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2181 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2182 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2183 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2184 2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2186 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2187 2188 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2189 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2191 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2192 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2193 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2194 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2195 2196 _ASUNAME 2197 2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2199 for as_dir in $PATH 2200 do 2201 IFS=$as_save_IFS 2202 case $as_dir in #((( 2203 '') as_dir=./ ;; 2204 */) ;; 2205 *) as_dir=$as_dir/ ;; 2206 esac 2207 printf "%s\n" "PATH: $as_dir" 2208 done 2209 IFS=$as_save_IFS 2210 2211 } >&5 2212 2213 cat >&5 <<_ACEOF 2214 2215 2216 ## ----------- ## 2217 ## Core tests. ## 2218 ## ----------- ## 2219 2220 _ACEOF 2221 2222 2223 # Keep a trace of the command line. 2224 # Strip out --no-create and --no-recursion so they do not pile up. 2225 # Strip out --silent because we don't want to record it for future runs. 2226 # Also quote any args containing shell meta-characters. 2227 # Make two passes to allow for proper duplicate-argument suppression. 2228 ac_configure_args= 2229 ac_configure_args0= 2230 ac_configure_args1= 2231 ac_must_keep_next=false 2232 for ac_pass in 1 2 2233 do 2234 for ac_arg 2235 do 2236 case $ac_arg in 2237 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2239 | -silent | --silent | --silen | --sile | --sil) 2240 continue ;; 2241 *\'*) 2242 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2243 esac 2244 case $ac_pass in 2245 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2246 2) 2247 as_fn_append ac_configure_args1 " '$ac_arg'" 2248 if test $ac_must_keep_next = true; then 2249 ac_must_keep_next=false # Got value, back to normal. 2250 else 2251 case $ac_arg in 2252 *=* | --config-cache | -C | -disable-* | --disable-* \ 2253 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2254 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2255 | -with-* | --with-* | -without-* | --without-* | --x) 2256 case "$ac_configure_args0 " in 2257 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2258 esac 2259 ;; 2260 -* ) ac_must_keep_next=true ;; 2261 esac 2262 fi 2263 as_fn_append ac_configure_args " '$ac_arg'" 2264 ;; 2265 esac 2266 done 2267 done 2268 { ac_configure_args0=; unset ac_configure_args0;} 2269 { ac_configure_args1=; unset ac_configure_args1;} 2270 2271 # When interrupted or exit'd, cleanup temporary files, and complete 2272 # config.log. We remove comments because anyway the quotes in there 2273 # would cause problems or look ugly. 2274 # WARNING: Use '\'' to represent an apostrophe within the trap. 2275 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2276 trap 'exit_status=$? 2277 # Sanitize IFS. 2278 IFS=" "" $as_nl" 2279 # Save into config.log some information that might help in debugging. 2280 { 2281 echo 2282 2283 printf "%s\n" "## ---------------- ## 2284 ## Cache variables. ## 2285 ## ---------------- ##" 2286 echo 2287 # The following way of writing the cache mishandles newlines in values, 2288 ( 2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2290 eval ac_val=\$$ac_var 2291 case $ac_val in #( 2292 *${as_nl}*) 2293 case $ac_var in #( 2294 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2295 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2296 esac 2297 case $ac_var in #( 2298 _ | IFS | as_nl) ;; #( 2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2300 *) { eval $ac_var=; unset $ac_var;} ;; 2301 esac ;; 2302 esac 2303 done 2304 (set) 2>&1 | 2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2306 *${as_nl}ac_space=\ *) 2307 sed -n \ 2308 "s/'\''/'\''\\\\'\'''\''/g; 2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2310 ;; #( 2311 *) 2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2313 ;; 2314 esac | 2315 sort 2316 ) 2317 echo 2318 2319 printf "%s\n" "## ----------------- ## 2320 ## Output variables. ## 2321 ## ----------------- ##" 2322 echo 2323 for ac_var in $ac_subst_vars 2324 do 2325 eval ac_val=\$$ac_var 2326 case $ac_val in 2327 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2328 esac 2329 printf "%s\n" "$ac_var='\''$ac_val'\''" 2330 done | sort 2331 echo 2332 2333 if test -n "$ac_subst_files"; then 2334 printf "%s\n" "## ------------------- ## 2335 ## File substitutions. ## 2336 ## ------------------- ##" 2337 echo 2338 for ac_var in $ac_subst_files 2339 do 2340 eval ac_val=\$$ac_var 2341 case $ac_val in 2342 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2343 esac 2344 printf "%s\n" "$ac_var='\''$ac_val'\''" 2345 done | sort 2346 echo 2347 fi 2348 2349 if test -s confdefs.h; then 2350 printf "%s\n" "## ----------- ## 2351 ## confdefs.h. ## 2352 ## ----------- ##" 2353 echo 2354 cat confdefs.h 2355 echo 2356 fi 2357 test "$ac_signal" != 0 && 2358 printf "%s\n" "$as_me: caught signal $ac_signal" 2359 printf "%s\n" "$as_me: exit $exit_status" 2360 } >&5 2361 rm -f core *.core core.conftest.* && 2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2363 exit $exit_status 2364 ' 0 2365 for ac_signal in 1 2 13 15; do 2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2367 done 2368 ac_signal=0 2369 2370 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2371 rm -f -r conftest* confdefs.h 2372 2373 printf "%s\n" "/* confdefs.h */" > confdefs.h 2374 2375 # Predefined preprocessor variables. 2376 2377 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2378 2379 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2380 2381 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2382 2383 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2384 2385 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2386 2387 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2388 2389 2390 # Let the site file select an alternate cache file if it wants to. 2391 # Prefer an explicitly selected file to automatically selected ones. 2392 if test -n "$CONFIG_SITE"; then 2393 ac_site_files="$CONFIG_SITE" 2394 elif test "x$prefix" != xNONE; then 2395 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2396 else 2397 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2398 fi 2399 2400 for ac_site_file in $ac_site_files 2401 do 2402 case $ac_site_file in #( 2403 */*) : 2404 ;; #( 2405 *) : 2406 ac_site_file=./$ac_site_file ;; 2407 esac 2408 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2410 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2411 sed 's/^/| /' "$ac_site_file" >&5 2412 . "$ac_site_file" \ 2413 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2414 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2415 as_fn_error $? "failed to load site script $ac_site_file 2416 See 'config.log' for more details" "$LINENO" 5; } 2417 fi 2418 done 2419 2420 if test -r "$cache_file"; then 2421 # Some versions of bash will fail to source /dev/null (special files 2422 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2423 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2425 printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2426 case $cache_file in 2427 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2428 *) . "./$cache_file";; 2429 esac 2430 fi 2431 else 2432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2433 printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2434 >$cache_file 2435 fi 2436 2437 # Test code for whether the C compiler supports C89 (global declarations) 2438 ac_c_conftest_c89_globals=' 2439 /* Does the compiler advertise C89 conformance? 2440 Do not test the value of __STDC__, because some compilers set it to 0 2441 while being otherwise adequately conformant. */ 2442 #if !defined __STDC__ 2443 # error "Compiler does not advertise C89 conformance" 2444 #endif 2445 2446 #include <stddef.h> 2447 #include <stdarg.h> 2448 struct stat; 2449 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2450 struct buf { int x; }; 2451 struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2452 static char *e (char **p, int i) 2453 { 2454 return p[i]; 2455 } 2456 static char *f (char * (*g) (char **, int), char **p, ...) 2457 { 2458 char *s; 2459 va_list v; 2460 va_start (v,p); 2461 s = g (p, va_arg (v,int)); 2462 va_end (v); 2463 return s; 2464 } 2465 2466 /* C89 style stringification. */ 2467 #define noexpand_stringify(a) #a 2468 const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2469 2470 /* C89 style token pasting. Exercises some of the corner cases that 2471 e.g. old MSVC gets wrong, but not very hard. */ 2472 #define noexpand_concat(a,b) a##b 2473 #define expand_concat(a,b) noexpand_concat(a,b) 2474 extern int vA; 2475 extern int vbee; 2476 #define aye A 2477 #define bee B 2478 int *pvA = &expand_concat(v,aye); 2479 int *pvbee = &noexpand_concat(v,bee); 2480 2481 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2482 function prototypes and stuff, but not \xHH hex character constants. 2483 These do not provoke an error unfortunately, instead are silently treated 2484 as an "x". The following induces an error, until -std is added to get 2485 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2486 array size at least. It is necessary to write \x00 == 0 to get something 2487 that is true only with -std. */ 2488 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2489 2490 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2491 inside strings and character constants. */ 2492 #define FOO(x) '\''x'\'' 2493 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2494 2495 int test (int i, double x); 2496 struct s1 {int (*f) (int a);}; 2497 struct s2 {int (*f) (double a);}; 2498 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2499 int, int);' 2500 2501 # Test code for whether the C compiler supports C89 (body of main). 2502 ac_c_conftest_c89_main=' 2503 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2504 ' 2505 2506 # Test code for whether the C compiler supports C99 (global declarations) 2507 ac_c_conftest_c99_globals=' 2508 /* Does the compiler advertise C99 conformance? */ 2509 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2510 # error "Compiler does not advertise C99 conformance" 2511 #endif 2512 2513 // See if C++-style comments work. 2514 2515 #include <stdbool.h> 2516 extern int puts (const char *); 2517 extern int printf (const char *, ...); 2518 extern int dprintf (int, const char *, ...); 2519 extern void *malloc (size_t); 2520 extern void free (void *); 2521 2522 // Check varargs macros. These examples are taken from C99 6.10.3.5. 2523 // dprintf is used instead of fprintf to avoid needing to declare 2524 // FILE and stderr. 2525 #define debug(...) dprintf (2, __VA_ARGS__) 2526 #define showlist(...) puts (#__VA_ARGS__) 2527 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2528 static void 2529 test_varargs_macros (void) 2530 { 2531 int x = 1234; 2532 int y = 5678; 2533 debug ("Flag"); 2534 debug ("X = %d\n", x); 2535 showlist (The first, second, and third items.); 2536 report (x>y, "x is %d but y is %d", x, y); 2537 } 2538 2539 // Check long long types. 2540 #define BIG64 18446744073709551615ull 2541 #define BIG32 4294967295ul 2542 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2543 #if !BIG_OK 2544 #error "your preprocessor is broken" 2545 #endif 2546 #if BIG_OK 2547 #else 2548 #error "your preprocessor is broken" 2549 #endif 2550 static long long int bignum = -9223372036854775807LL; 2551 static unsigned long long int ubignum = BIG64; 2552 2553 struct incomplete_array 2554 { 2555 int datasize; 2556 double data[]; 2557 }; 2558 2559 struct named_init { 2560 int number; 2561 const wchar_t *name; 2562 double average; 2563 }; 2564 2565 typedef const char *ccp; 2566 2567 static inline int 2568 test_restrict (ccp restrict text) 2569 { 2570 // Iterate through items via the restricted pointer. 2571 // Also check for declarations in for loops. 2572 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2573 continue; 2574 return 0; 2575 } 2576 2577 // Check varargs and va_copy. 2578 static bool 2579 test_varargs (const char *format, ...) 2580 { 2581 va_list args; 2582 va_start (args, format); 2583 va_list args_copy; 2584 va_copy (args_copy, args); 2585 2586 const char *str = ""; 2587 int number = 0; 2588 float fnumber = 0; 2589 2590 while (*format) 2591 { 2592 switch (*format++) 2593 { 2594 case '\''s'\'': // string 2595 str = va_arg (args_copy, const char *); 2596 break; 2597 case '\''d'\'': // int 2598 number = va_arg (args_copy, int); 2599 break; 2600 case '\''f'\'': // float 2601 fnumber = va_arg (args_copy, double); 2602 break; 2603 default: 2604 break; 2605 } 2606 } 2607 va_end (args_copy); 2608 va_end (args); 2609 2610 return *str && number && fnumber; 2611 } 2612 ' 2613 2614 # Test code for whether the C compiler supports C99 (body of main). 2615 ac_c_conftest_c99_main=' 2616 // Check bool. 2617 _Bool success = false; 2618 success |= (argc != 0); 2619 2620 // Check restrict. 2621 if (test_restrict ("String literal") == 0) 2622 success = true; 2623 char *restrict newvar = "Another string"; 2624 2625 // Check varargs. 2626 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2627 test_varargs_macros (); 2628 2629 // Check flexible array members. 2630 struct incomplete_array *ia = 2631 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2632 ia->datasize = 10; 2633 for (int i = 0; i < ia->datasize; ++i) 2634 ia->data[i] = i * 1.234; 2635 // Work around memory leak warnings. 2636 free (ia); 2637 2638 // Check named initializers. 2639 struct named_init ni = { 2640 .number = 34, 2641 .name = L"Test wide string", 2642 .average = 543.34343, 2643 }; 2644 2645 ni.number = 58; 2646 2647 int dynamic_array[ni.number]; 2648 dynamic_array[0] = argv[0][0]; 2649 dynamic_array[ni.number - 1] = 543; 2650 2651 // work around unused variable warnings 2652 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2653 || dynamic_array[ni.number - 1] != 543); 2654 ' 2655 2656 # Test code for whether the C compiler supports C11 (global declarations) 2657 ac_c_conftest_c11_globals=' 2658 /* Does the compiler advertise C11 conformance? */ 2659 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2660 # error "Compiler does not advertise C11 conformance" 2661 #endif 2662 2663 // Check _Alignas. 2664 char _Alignas (double) aligned_as_double; 2665 char _Alignas (0) no_special_alignment; 2666 extern char aligned_as_int; 2667 char _Alignas (0) _Alignas (int) aligned_as_int; 2668 2669 // Check _Alignof. 2670 enum 2671 { 2672 int_alignment = _Alignof (int), 2673 int_array_alignment = _Alignof (int[100]), 2674 char_alignment = _Alignof (char) 2675 }; 2676 _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2677 2678 // Check _Noreturn. 2679 int _Noreturn does_not_return (void) { for (;;) continue; } 2680 2681 // Check _Static_assert. 2682 struct test_static_assert 2683 { 2684 int x; 2685 _Static_assert (sizeof (int) <= sizeof (long int), 2686 "_Static_assert does not work in struct"); 2687 long int y; 2688 }; 2689 2690 // Check UTF-8 literals. 2691 #define u8 syntax error! 2692 char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2693 2694 // Check duplicate typedefs. 2695 typedef long *long_ptr; 2696 typedef long int *long_ptr; 2697 typedef long_ptr long_ptr; 2698 2699 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2700 struct anonymous 2701 { 2702 union { 2703 struct { int i; int j; }; 2704 struct { int k; long int l; } w; 2705 }; 2706 int m; 2707 } v1; 2708 ' 2709 2710 # Test code for whether the C compiler supports C11 (body of main). 2711 ac_c_conftest_c11_main=' 2712 _Static_assert ((offsetof (struct anonymous, i) 2713 == offsetof (struct anonymous, w.k)), 2714 "Anonymous union alignment botch"); 2715 v1.i = 2; 2716 v1.w.k = 5; 2717 ok |= v1.i != 5; 2718 ' 2719 2720 # Test code for whether the C compiler supports C11 (complete). 2721 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2722 ${ac_c_conftest_c99_globals} 2723 ${ac_c_conftest_c11_globals} 2724 2725 int 2726 main (int argc, char **argv) 2727 { 2728 int ok = 0; 2729 ${ac_c_conftest_c89_main} 2730 ${ac_c_conftest_c99_main} 2731 ${ac_c_conftest_c11_main} 2732 return ok; 2733 } 2734 " 2735 2736 # Test code for whether the C compiler supports C99 (complete). 2737 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2738 ${ac_c_conftest_c99_globals} 2739 2740 int 2741 main (int argc, char **argv) 2742 { 2743 int ok = 0; 2744 ${ac_c_conftest_c89_main} 2745 ${ac_c_conftest_c99_main} 2746 return ok; 2747 } 2748 " 2749 2750 # Test code for whether the C compiler supports C89 (complete). 2751 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2752 2753 int 2754 main (int argc, char **argv) 2755 { 2756 int ok = 0; 2757 ${ac_c_conftest_c89_main} 2758 return ok; 2759 } 2760 " 2761 2762 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2763 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2764 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2765 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2766 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2767 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2768 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2769 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2770 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2771 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2772 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2773 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2774 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2775 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2776 as_fn_append ac_func_c_list " fork HAVE_FORK" 2777 as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2778 2779 # Auxiliary files required by this configure script. 2780 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh" 2781 2782 # Locations in which to look for auxiliary files. 2783 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2784 2785 # Search for a directory containing all of the required auxiliary files, 2786 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2787 # If we don't find one directory that contains all the files we need, 2788 # we report the set of missing files from the *first* directory in 2789 # $ac_aux_dir_candidates and give up. 2790 ac_missing_aux_files="" 2791 ac_first_candidate=: 2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2794 as_found=false 2795 for as_dir in $ac_aux_dir_candidates 2796 do 2797 IFS=$as_save_IFS 2798 case $as_dir in #((( 2799 '') as_dir=./ ;; 2800 */) ;; 2801 *) as_dir=$as_dir/ ;; 2802 esac 2803 as_found=: 2804 2805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2806 ac_aux_dir_found=yes 2807 ac_install_sh= 2808 for ac_aux in $ac_aux_files 2809 do 2810 # As a special case, if "install-sh" is required, that requirement 2811 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2812 # and $ac_install_sh is set appropriately for whichever one is found. 2813 if test x"$ac_aux" = x"install-sh" 2814 then 2815 if test -f "${as_dir}install-sh"; then 2816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2817 ac_install_sh="${as_dir}install-sh -c" 2818 elif test -f "${as_dir}install.sh"; then 2819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2820 ac_install_sh="${as_dir}install.sh -c" 2821 elif test -f "${as_dir}shtool"; then 2822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2823 ac_install_sh="${as_dir}shtool install -c" 2824 else 2825 ac_aux_dir_found=no 2826 if $ac_first_candidate; then 2827 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2828 else 2829 break 2830 fi 2831 fi 2832 else 2833 if test -f "${as_dir}${ac_aux}"; then 2834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2835 else 2836 ac_aux_dir_found=no 2837 if $ac_first_candidate; then 2838 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2839 else 2840 break 2841 fi 2842 fi 2843 fi 2844 done 2845 if test "$ac_aux_dir_found" = yes; then 2846 ac_aux_dir="$as_dir" 2847 break 2848 fi 2849 ac_first_candidate=false 2850 2851 as_found=false 2852 done 2853 IFS=$as_save_IFS 2854 if $as_found 2855 then : 2856 2857 else case e in #( 2858 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2859 esac 2860 fi 2861 2862 2863 # These three variables are undocumented and unsupported, 2864 # and are intended to be withdrawn in a future Autoconf release. 2865 # They can cause serious problems if a builder's source tree is in a directory 2866 # whose full name contains unusual characters. 2867 if test -f "${ac_aux_dir}config.guess"; then 2868 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2869 fi 2870 if test -f "${ac_aux_dir}config.sub"; then 2871 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2872 fi 2873 if test -f "$ac_aux_dir/configure"; then 2874 ac_configure="$SHELL ${ac_aux_dir}configure" 2875 fi 2876 2877 # Check that the precious variables saved in the cache have kept the same 2878 # value. 2879 ac_cache_corrupted=false 2880 for ac_var in $ac_precious_vars; do 2881 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2882 eval ac_new_set=\$ac_env_${ac_var}_set 2883 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2884 eval ac_new_val=\$ac_env_${ac_var}_value 2885 case $ac_old_set,$ac_new_set in 2886 set,) 2887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2888 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2889 ac_cache_corrupted=: ;; 2890 ,set) 2891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2892 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2893 ac_cache_corrupted=: ;; 2894 ,);; 2895 *) 2896 if test "x$ac_old_val" != "x$ac_new_val"; then 2897 # differences in whitespace do not lead to failure. 2898 ac_old_val_w=`echo x $ac_old_val` 2899 ac_new_val_w=`echo x $ac_new_val` 2900 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2902 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2903 ac_cache_corrupted=: 2904 else 2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2906 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2907 eval $ac_var=\$ac_old_val 2908 fi 2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2910 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2912 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2913 fi;; 2914 esac 2915 # Pass precious variables to config.status. 2916 if test "$ac_new_set" = set; then 2917 case $ac_new_val in 2918 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2919 *) ac_arg=$ac_var=$ac_new_val ;; 2920 esac 2921 case " $ac_configure_args " in 2922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2923 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2924 esac 2925 fi 2926 done 2927 if $ac_cache_corrupted; then 2928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2929 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2931 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2932 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2933 and start over" "$LINENO" 5 2934 fi 2935 ## -------------------- ## 2936 ## Main body of script. ## 2937 ## -------------------- ## 2938 2939 ac_ext=c 2940 ac_cpp='$CPP $CPPFLAGS' 2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2944 2945 2946 am__api_version='1.16' 2947 2948 2949 2950 # Find a good install program. We prefer a C program (faster), 2951 # so one script is as good as another. But avoid the broken or 2952 # incompatible versions: 2953 # SysV /etc/install, /usr/sbin/install 2954 # SunOS /usr/etc/install 2955 # IRIX /sbin/install 2956 # AIX /bin/install 2957 # AmigaOS /C/install, which installs bootblocks on floppy discs 2958 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2959 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2960 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2961 # OS/2's system install, which has a completely different semantic 2962 # ./install, which can be erroneously created by make from ./install.sh. 2963 # Reject install programs that cannot install multiple files. 2964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2965 printf %s "checking for a BSD-compatible install... " >&6; } 2966 if test -z "$INSTALL"; then 2967 if test ${ac_cv_path_install+y} 2968 then : 2969 printf %s "(cached) " >&6 2970 else case e in #( 2971 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2972 for as_dir in $PATH 2973 do 2974 IFS=$as_save_IFS 2975 case $as_dir in #((( 2976 '') as_dir=./ ;; 2977 */) ;; 2978 *) as_dir=$as_dir/ ;; 2979 esac 2980 # Account for fact that we put trailing slashes in our PATH walk. 2981 case $as_dir in #(( 2982 ./ | /[cC]/* | \ 2983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2984 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2985 /usr/ucb/* ) ;; 2986 *) 2987 # OSF1 and SCO ODT 3.0 have their own names for install. 2988 # Don't use installbsd from OSF since it installs stuff as root 2989 # by default. 2990 for ac_prog in ginstall scoinst install; do 2991 for ac_exec_ext in '' $ac_executable_extensions; do 2992 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2993 if test $ac_prog = install && 2994 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2995 # AIX install. It has an incompatible calling convention. 2996 : 2997 elif test $ac_prog = install && 2998 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2999 # program-specific install script used by HP pwplus--don't use. 3000 : 3001 else 3002 rm -rf conftest.one conftest.two conftest.dir 3003 echo one > conftest.one 3004 echo two > conftest.two 3005 mkdir conftest.dir 3006 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3007 test -s conftest.one && test -s conftest.two && 3008 test -s conftest.dir/conftest.one && 3009 test -s conftest.dir/conftest.two 3010 then 3011 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3012 break 3 3013 fi 3014 fi 3015 fi 3016 done 3017 done 3018 ;; 3019 esac 3020 3021 done 3022 IFS=$as_save_IFS 3023 3024 rm -rf conftest.one conftest.two conftest.dir 3025 ;; 3026 esac 3027 fi 3028 if test ${ac_cv_path_install+y}; then 3029 INSTALL=$ac_cv_path_install 3030 else 3031 # As a last resort, use the slow shell script. Don't cache a 3032 # value for INSTALL within a source directory, because that will 3033 # break other packages using the cache if that directory is 3034 # removed, or if the value is a relative name. 3035 INSTALL=$ac_install_sh 3036 fi 3037 fi 3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3039 printf "%s\n" "$INSTALL" >&6; } 3040 3041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3042 # It thinks the first close brace ends the variable substitution. 3043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3044 3045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3046 3047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3048 3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3050 printf %s "checking whether build environment is sane... " >&6; } 3051 # Reject unsafe characters in $srcdir or the absolute working directory 3052 # name. Accept space and tab only in the latter. 3053 am_lf=' 3054 ' 3055 case `pwd` in 3056 *[\\\"\#\$\&\'\`$am_lf]*) 3057 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3058 esac 3059 case $srcdir in 3060 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3061 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3062 esac 3063 3064 # Do 'set' in a subshell so we don't clobber the current shell's 3065 # arguments. Must try -L first in case configure is actually a 3066 # symlink; some systems play weird games with the mod time of symlinks 3067 # (eg FreeBSD returns the mod time of the symlink's containing 3068 # directory). 3069 if ( 3070 am_has_slept=no 3071 for am_try in 1 2; do 3072 echo "timestamp, slept: $am_has_slept" > conftest.file 3073 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3074 if test "$*" = "X"; then 3075 # -L didn't work. 3076 set X `ls -t "$srcdir/configure" conftest.file` 3077 fi 3078 if test "$*" != "X $srcdir/configure conftest.file" \ 3079 && test "$*" != "X conftest.file $srcdir/configure"; then 3080 3081 # If neither matched, then we have a broken ls. This can happen 3082 # if, for instance, CONFIG_SHELL is bash and it inherits a 3083 # broken ls alias from the environment. This has actually 3084 # happened. Such a system could not be considered "sane". 3085 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3086 alias in your environment" "$LINENO" 5 3087 fi 3088 if test "$2" = conftest.file || test $am_try -eq 2; then 3089 break 3090 fi 3091 # Just in case. 3092 sleep 1 3093 am_has_slept=yes 3094 done 3095 test "$2" = conftest.file 3096 ) 3097 then 3098 # Ok. 3099 : 3100 else 3101 as_fn_error $? "newly created file is older than distributed files! 3102 Check your system clock" "$LINENO" 5 3103 fi 3104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3105 printf "%s\n" "yes" >&6; } 3106 # If we didn't sleep, we still need to ensure time stamps of config.status and 3107 # generated files are strictly newer. 3108 am_sleep_pid= 3109 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3110 ( sleep 1 ) & 3111 am_sleep_pid=$! 3112 fi 3113 3114 rm -f conftest.file 3115 3116 test "$program_prefix" != NONE && 3117 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3118 # Use a double $ so make ignores it. 3119 test "$program_suffix" != NONE && 3120 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3121 # Double any \ or $. 3122 # By default was 's,x,x', remove it if useless. 3123 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3124 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3125 3126 3127 # Expand $ac_aux_dir to an absolute path. 3128 am_aux_dir=`cd "$ac_aux_dir" && pwd` 3129 3130 3131 if test x"${MISSING+set}" != xset; then 3132 MISSING="\${SHELL} '$am_aux_dir/missing'" 3133 fi 3134 # Use eval to expand $SHELL 3135 if eval "$MISSING --is-lightweight"; then 3136 am_missing_run="$MISSING " 3137 else 3138 am_missing_run= 3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3140 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3141 fi 3142 3143 if test x"${install_sh+set}" != xset; then 3144 case $am_aux_dir in 3145 *\ * | *\ *) 3146 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3147 *) 3148 install_sh="\${SHELL} $am_aux_dir/install-sh" 3149 esac 3150 fi 3151 3152 # Installed binaries are usually stripped using 'strip' when the user 3153 # run "make install-strip". However 'strip' might not be the right 3154 # tool to use in cross-compilation environments, therefore Automake 3155 # will honor the 'STRIP' environment variable to overrule this program. 3156 if test "$cross_compiling" != no; then 3157 if test -n "$ac_tool_prefix"; then 3158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3159 set dummy ${ac_tool_prefix}strip; ac_word=$2 3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161 printf %s "checking for $ac_word... " >&6; } 3162 if test ${ac_cv_prog_STRIP+y} 3163 then : 3164 printf %s "(cached) " >&6 3165 else case e in #( 3166 e) if test -n "$STRIP"; then 3167 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3168 else 3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3170 for as_dir in $PATH 3171 do 3172 IFS=$as_save_IFS 3173 case $as_dir in #((( 3174 '') as_dir=./ ;; 3175 */) ;; 3176 *) as_dir=$as_dir/ ;; 3177 esac 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184 done 3185 done 3186 IFS=$as_save_IFS 3187 3188 fi ;; 3189 esac 3190 fi 3191 STRIP=$ac_cv_prog_STRIP 3192 if test -n "$STRIP"; then 3193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3194 printf "%s\n" "$STRIP" >&6; } 3195 else 3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3197 printf "%s\n" "no" >&6; } 3198 fi 3199 3200 3201 fi 3202 if test -z "$ac_cv_prog_STRIP"; then 3203 ac_ct_STRIP=$STRIP 3204 # Extract the first word of "strip", so it can be a program name with args. 3205 set dummy strip; ac_word=$2 3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3207 printf %s "checking for $ac_word... " >&6; } 3208 if test ${ac_cv_prog_ac_ct_STRIP+y} 3209 then : 3210 printf %s "(cached) " >&6 3211 else case e in #( 3212 e) if test -n "$ac_ct_STRIP"; then 3213 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3214 else 3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3216 for as_dir in $PATH 3217 do 3218 IFS=$as_save_IFS 3219 case $as_dir in #((( 3220 '') as_dir=./ ;; 3221 */) ;; 3222 *) as_dir=$as_dir/ ;; 3223 esac 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_ac_ct_STRIP="strip" 3227 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230 done 3231 done 3232 IFS=$as_save_IFS 3233 3234 fi ;; 3235 esac 3236 fi 3237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3238 if test -n "$ac_ct_STRIP"; then 3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3240 printf "%s\n" "$ac_ct_STRIP" >&6; } 3241 else 3242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3243 printf "%s\n" "no" >&6; } 3244 fi 3245 3246 if test "x$ac_ct_STRIP" = x; then 3247 STRIP=":" 3248 else 3249 case $cross_compiling:$ac_tool_warned in 3250 yes:) 3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3252 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3253 ac_tool_warned=yes ;; 3254 esac 3255 STRIP=$ac_ct_STRIP 3256 fi 3257 else 3258 STRIP="$ac_cv_prog_STRIP" 3259 fi 3260 3261 fi 3262 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3263 3264 3265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3266 printf %s "checking for a race-free mkdir -p... " >&6; } 3267 if test -z "$MKDIR_P"; then 3268 if test ${ac_cv_path_mkdir+y} 3269 then : 3270 printf %s "(cached) " >&6 3271 else case e in #( 3272 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3273 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3274 do 3275 IFS=$as_save_IFS 3276 case $as_dir in #((( 3277 '') as_dir=./ ;; 3278 */) ;; 3279 *) as_dir=$as_dir/ ;; 3280 esac 3281 for ac_prog in mkdir gmkdir; do 3282 for ac_exec_ext in '' $ac_executable_extensions; do 3283 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3284 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3285 'mkdir ('*'coreutils) '* | \ 3286 *'BusyBox '* | \ 3287 'mkdir (fileutils) '4.1*) 3288 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3289 break 3;; 3290 esac 3291 done 3292 done 3293 done 3294 IFS=$as_save_IFS 3295 ;; 3296 esac 3297 fi 3298 3299 test -d ./--version && rmdir ./--version 3300 if test ${ac_cv_path_mkdir+y}; then 3301 MKDIR_P="$ac_cv_path_mkdir -p" 3302 else 3303 # As a last resort, use plain mkdir -p, 3304 # in the hope it doesn't have the bugs of ancient mkdir. 3305 MKDIR_P='mkdir -p' 3306 fi 3307 fi 3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3309 printf "%s\n" "$MKDIR_P" >&6; } 3310 3311 for ac_prog in gawk mawk nawk awk 3312 do 3313 # Extract the first word of "$ac_prog", so it can be a program name with args. 3314 set dummy $ac_prog; ac_word=$2 3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3316 printf %s "checking for $ac_word... " >&6; } 3317 if test ${ac_cv_prog_AWK+y} 3318 then : 3319 printf %s "(cached) " >&6 3320 else case e in #( 3321 e) if test -n "$AWK"; then 3322 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3323 else 3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3325 for as_dir in $PATH 3326 do 3327 IFS=$as_save_IFS 3328 case $as_dir in #((( 3329 '') as_dir=./ ;; 3330 */) ;; 3331 *) as_dir=$as_dir/ ;; 3332 esac 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_AWK="$ac_prog" 3336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339 done 3340 done 3341 IFS=$as_save_IFS 3342 3343 fi ;; 3344 esac 3345 fi 3346 AWK=$ac_cv_prog_AWK 3347 if test -n "$AWK"; then 3348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3349 printf "%s\n" "$AWK" >&6; } 3350 else 3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3352 printf "%s\n" "no" >&6; } 3353 fi 3354 3355 3356 test -n "$AWK" && break 3357 done 3358 3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3360 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3361 set x ${MAKE-make} 3362 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3363 if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3364 then : 3365 printf %s "(cached) " >&6 3366 else case e in #( 3367 e) cat >conftest.make <<\_ACEOF 3368 SHELL = /bin/sh 3369 all: 3370 @echo '@@@%%%=$(MAKE)=@@@%%%' 3371 _ACEOF 3372 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3373 case `${MAKE-make} -f conftest.make 2>/dev/null` in 3374 *@@@%%%=?*=@@@%%%*) 3375 eval ac_cv_prog_make_${ac_make}_set=yes;; 3376 *) 3377 eval ac_cv_prog_make_${ac_make}_set=no;; 3378 esac 3379 rm -f conftest.make ;; 3380 esac 3381 fi 3382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3384 printf "%s\n" "yes" >&6; } 3385 SET_MAKE= 3386 else 3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3388 printf "%s\n" "no" >&6; } 3389 SET_MAKE="MAKE=${MAKE-make}" 3390 fi 3391 3392 rm -rf .tst 2>/dev/null 3393 mkdir .tst 2>/dev/null 3394 if test -d .tst; then 3395 am__leading_dot=. 3396 else 3397 am__leading_dot=_ 3398 fi 3399 rmdir .tst 2>/dev/null 3400 3401 # Check whether --enable-silent-rules was given. 3402 if test ${enable_silent_rules+y} 3403 then : 3404 enableval=$enable_silent_rules; 3405 fi 3406 3407 case $enable_silent_rules in # ((( 3408 yes) AM_DEFAULT_VERBOSITY=0;; 3409 no) AM_DEFAULT_VERBOSITY=1;; 3410 *) AM_DEFAULT_VERBOSITY=1;; 3411 esac 3412 am_make=${MAKE-make} 3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3414 printf %s "checking whether $am_make supports nested variables... " >&6; } 3415 if test ${am_cv_make_support_nested_variables+y} 3416 then : 3417 printf %s "(cached) " >&6 3418 else case e in #( 3419 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3420 BAR0=false 3421 BAR1=true 3422 V=1 3423 am__doit: 3424 @$(TRUE) 3425 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3426 am_cv_make_support_nested_variables=yes 3427 else 3428 am_cv_make_support_nested_variables=no 3429 fi ;; 3430 esac 3431 fi 3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3433 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3434 if test $am_cv_make_support_nested_variables = yes; then 3435 AM_V='$(V)' 3436 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3437 else 3438 AM_V=$AM_DEFAULT_VERBOSITY 3439 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3440 fi 3441 AM_BACKSLASH='\' 3442 3443 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3444 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3445 # is not polluted with repeated "-I." 3446 am__isrc=' -I$(srcdir)' 3447 # test to see if srcdir already configured 3448 if test -f $srcdir/config.status; then 3449 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3450 fi 3451 fi 3452 3453 # test whether we have cygpath 3454 if test -z "$CYGPATH_W"; then 3455 if (cygpath --version) >/dev/null 2>/dev/null; then 3456 CYGPATH_W='cygpath -w' 3457 else 3458 CYGPATH_W=echo 3459 fi 3460 fi 3461 3462 3463 # Define the identity of the package. 3464 PACKAGE='file' 3465 VERSION='5.48' 3466 3467 3468 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3469 3470 3471 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3472 3473 # Some tools Automake needs. 3474 3475 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3476 3477 3478 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3479 3480 3481 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3482 3483 3484 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3485 3486 3487 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3488 3489 # For better backward compatibility. To be removed once Automake 1.9.x 3490 # dies out for good. For more background, see: 3491 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3492 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3493 mkdir_p='$(MKDIR_P)' 3494 3495 # We need awk for the "check" target (and possibly the TAP driver). The 3496 # system "awk" is bad on some platforms. 3497 # Always define AMTAR for backward compatibility. Yes, it's still used 3498 # in the wild :-( We should find a proper way to deprecate it ... 3499 AMTAR='$${TAR-tar}' 3500 3501 3502 # We'll loop over all known methods to create a tar archive until one works. 3503 _am_tools='gnutar pax cpio none' 3504 3505 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3506 3507 3508 3509 3510 3511 # Variables for tags utilities; see am/tags.am 3512 if test -z "$CTAGS"; then 3513 CTAGS=ctags 3514 fi 3515 3516 if test -z "$ETAGS"; then 3517 ETAGS=etags 3518 fi 3519 3520 if test -z "$CSCOPE"; then 3521 CSCOPE=cscope 3522 fi 3523 3524 3525 3526 # POSIX will say in a future version that running "rm -f" with no argument 3527 # is OK; and we want to be able to make that assumption in our Makefile 3528 # recipes. So use an aggressive probe to check that the usage we want is 3529 # actually supported "in the wild" to an acceptable degree. 3530 # See automake bug#10828. 3531 # To make any issue more visible, cause the running configure to be aborted 3532 # by default if the 'rm' program in use doesn't match our expectations; the 3533 # user can still override this though. 3534 if rm -f && rm -fr && rm -rf; then : OK; else 3535 cat >&2 <<'END' 3536 Oops! 3537 3538 Your 'rm' program seems unable to run without file operands specified 3539 on the command line, even when the '-f' option is present. This is contrary 3540 to the behaviour of most rm programs out there, and not conforming with 3541 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3542 3543 Please tell bug-automake@gnu.org about your system, including the value 3544 of your $PATH and any error possibly output before this message. This 3545 can help us improve future automake versions. 3546 3547 END 3548 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3549 echo 'Configuration will proceed anyway, since you have set the' >&2 3550 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3551 echo >&2 3552 else 3553 cat >&2 <<'END' 3554 Aborting the configuration process, to ensure you take notice of the issue. 3555 3556 You can download and install GNU coreutils to get an 'rm' implementation 3557 that behaves properly: <https://www.gnu.org/software/coreutils/>. 3558 3559 If you want to complete the configuration process using your problematic 3560 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3561 to "yes", and re-run configure. 3562 3563 END 3564 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3565 fi 3566 fi 3567 3568 3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3570 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3571 # Check whether --enable-maintainer-mode was given. 3572 if test ${enable_maintainer_mode+y} 3573 then : 3574 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3575 else case e in #( 3576 e) USE_MAINTAINER_MODE=no ;; 3577 esac 3578 fi 3579 3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3581 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 3582 if test $USE_MAINTAINER_MODE = yes; then 3583 MAINTAINER_MODE_TRUE= 3584 MAINTAINER_MODE_FALSE='#' 3585 else 3586 MAINTAINER_MODE_TRUE='#' 3587 MAINTAINER_MODE_FALSE= 3588 fi 3589 3590 MAINT=$MAINTAINER_MODE_TRUE 3591 3592 3593 # Check whether --enable-silent-rules was given. 3594 if test ${enable_silent_rules+y} 3595 then : 3596 enableval=$enable_silent_rules; 3597 fi 3598 3599 case $enable_silent_rules in # ((( 3600 yes) AM_DEFAULT_VERBOSITY=0;; 3601 no) AM_DEFAULT_VERBOSITY=1;; 3602 *) AM_DEFAULT_VERBOSITY=0;; 3603 esac 3604 am_make=${MAKE-make} 3605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3606 printf %s "checking whether $am_make supports nested variables... " >&6; } 3607 if test ${am_cv_make_support_nested_variables+y} 3608 then : 3609 printf %s "(cached) " >&6 3610 else case e in #( 3611 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3612 BAR0=false 3613 BAR1=true 3614 V=1 3615 am__doit: 3616 @$(TRUE) 3617 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3618 am_cv_make_support_nested_variables=yes 3619 else 3620 am_cv_make_support_nested_variables=no 3621 fi ;; 3622 esac 3623 fi 3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3625 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3626 if test $am_cv_make_support_nested_variables = yes; then 3627 AM_V='$(V)' 3628 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3629 else 3630 AM_V=$AM_DEFAULT_VERBOSITY 3631 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3632 fi 3633 AM_BACKSLASH='\' 3634 3635 3636 ac_config_headers="$ac_config_headers config.h" 3637 3638 3639 3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3641 printf %s "checking for builtin ELF support... " >&6; } 3642 # Check whether --enable-elf was given. 3643 if test ${enable_elf+y} 3644 then : 3645 enableval=$enable_elf; if test "${enableval}" = yes; then 3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3647 printf "%s\n" "yes" >&6; } 3648 3649 printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3650 3651 else 3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3653 printf "%s\n" "no" >&6; } 3654 fi 3655 else case e in #( 3656 e) 3657 # enable by default 3658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3659 printf "%s\n" "yes" >&6; } 3660 3661 printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3662 3663 ;; 3664 esac 3665 fi 3666 3667 3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3669 printf %s "checking for ELF core file support... " >&6; } 3670 # Check whether --enable-elf-core was given. 3671 if test ${enable_elf_core+y} 3672 then : 3673 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3675 printf "%s\n" "yes" >&6; } 3676 3677 printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3678 3679 else 3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3681 printf "%s\n" "no" >&6; } 3682 fi 3683 else case e in #( 3684 e) 3685 # enable by default 3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3687 printf "%s\n" "yes" >&6; } 3688 3689 printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3690 3691 ;; 3692 esac 3693 fi 3694 3695 3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3697 printf %s "checking for zlib support... " >&6; } 3698 # Check whether --enable-zlib was given. 3699 if test ${enable_zlib+y} 3700 then : 3701 enableval=$enable_zlib; 3702 fi 3703 3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3705 printf "%s\n" "$enable_zlib" >&6; } 3706 3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5 3708 printf %s "checking for bzlib support... " >&6; } 3709 # Check whether --enable-bzlib was given. 3710 if test ${enable_bzlib+y} 3711 then : 3712 enableval=$enable_bzlib; 3713 fi 3714 3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5 3716 printf "%s\n" "$enable_bzlib" >&6; } 3717 3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5 3719 printf %s "checking for xzlib support... " >&6; } 3720 # Check whether --enable-xzlib was given. 3721 if test ${enable_xzlib+y} 3722 then : 3723 enableval=$enable_xzlib; 3724 fi 3725 3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5 3727 printf "%s\n" "$enable_xzlib" >&6; } 3728 3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5 3730 printf %s "checking for zstdlib support... " >&6; } 3731 # Check whether --enable-zstdlib was given. 3732 if test ${enable_zstdlib+y} 3733 then : 3734 enableval=$enable_zstdlib; 3735 fi 3736 3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5 3738 printf "%s\n" "$enable_zstdlib" >&6; } 3739 3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5 3741 printf %s "checking for lzlib support... " >&6; } 3742 # Check whether --enable-lzlib was given. 3743 if test ${enable_lzlib+y} 3744 then : 3745 enableval=$enable_lzlib; 3746 fi 3747 3748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5 3749 printf "%s\n" "$enable_lzlib" >&6; } 3750 3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrziplib support" >&5 3752 printf %s "checking for lrziplib support... " >&6; } 3753 # Check whether --enable-lrziplib was given. 3754 if test ${enable_lrziplib+y} 3755 then : 3756 enableval=$enable_lrziplib; 3757 fi 3758 3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lrziplib" >&5 3760 printf "%s\n" "$enable_lrziplib" >&6; } 3761 3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5 3763 printf %s "checking for libseccomp support... " >&6; } 3764 # Check whether --enable-libseccomp was given. 3765 if test ${enable_libseccomp+y} 3766 then : 3767 enableval=$enable_libseccomp; 3768 fi 3769 3770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5 3771 printf "%s\n" "$enable_libseccomp" >&6; } 3772 3773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Landlock LSM support" >&5 3774 printf %s "checking for Landlock LSM support... " >&6; } 3775 # Check whether --enable-landlock was given. 3776 if test ${enable_landlock+y} 3777 then : 3778 enableval=$enable_landlock; 3779 fi 3780 3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_landlock" >&5 3782 printf "%s\n" "$enable_landlock" >&6; } 3783 3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3785 printf %s "checking for file formats in man section 5... " >&6; } 3786 # Check whether --enable-fsect-man5 was given. 3787 if test ${enable_fsect_man5+y} 3788 then : 3789 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3791 printf "%s\n" "yes" >&6; } 3792 fsect=5 3793 else 3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795 printf "%s\n" "no" >&6; } 3796 fsect=4 3797 fi 3798 else case e in #( 3799 e) 3800 # disable by default 3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3802 printf "%s\n" "no" >&6; } 3803 fsect=4 3804 ;; 3805 esac 3806 fi 3807 3808 3809 3810 3811 # Make sure we can run config.sub. 3812 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3813 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3814 3815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3816 printf %s "checking build system type... " >&6; } 3817 if test ${ac_cv_build+y} 3818 then : 3819 printf %s "(cached) " >&6 3820 else case e in #( 3821 e) ac_build_alias=$build_alias 3822 test "x$ac_build_alias" = x && 3823 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3824 test "x$ac_build_alias" = x && 3825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3826 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3827 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3828 ;; 3829 esac 3830 fi 3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3832 printf "%s\n" "$ac_cv_build" >&6; } 3833 case $ac_cv_build in 3834 *-*-*) ;; 3835 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3836 esac 3837 build=$ac_cv_build 3838 ac_save_IFS=$IFS; IFS='-' 3839 set x $ac_cv_build 3840 shift 3841 build_cpu=$1 3842 build_vendor=$2 3843 shift; shift 3844 # Remember, the first character of IFS is used to create $*, 3845 # except with old shells: 3846 build_os=$* 3847 IFS=$ac_save_IFS 3848 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3849 3850 3851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3852 printf %s "checking host system type... " >&6; } 3853 if test ${ac_cv_host+y} 3854 then : 3855 printf %s "(cached) " >&6 3856 else case e in #( 3857 e) if test "x$host_alias" = x; then 3858 ac_cv_host=$ac_cv_build 3859 else 3860 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3861 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3862 fi 3863 ;; 3864 esac 3865 fi 3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3867 printf "%s\n" "$ac_cv_host" >&6; } 3868 case $ac_cv_host in 3869 *-*-*) ;; 3870 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3871 esac 3872 host=$ac_cv_host 3873 ac_save_IFS=$IFS; IFS='-' 3874 set x $ac_cv_host 3875 shift 3876 host_cpu=$1 3877 host_vendor=$2 3878 shift; shift 3879 # Remember, the first character of IFS is used to create $*, 3880 # except with old shells: 3881 host_os=$* 3882 IFS=$ac_save_IFS 3883 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3884 3885 3886 case "$host_os" in 3887 mingw32*) 3888 MINGW=1 3889 ;; 3890 *) 3891 MINGW=0 3892 ;; 3893 esac 3894 3895 if test "$MINGW" = 1; then 3896 MINGW_TRUE= 3897 MINGW_FALSE='#' 3898 else 3899 MINGW_TRUE='#' 3900 MINGW_FALSE= 3901 fi 3902 3903 3904 pkgdatadir='$(datadir)/misc' 3905 3906 3907 if test x$fsect = x5; then 3908 FSECT5_TRUE= 3909 FSECT5_FALSE='#' 3910 else 3911 FSECT5_TRUE='#' 3912 FSECT5_FALSE= 3913 fi 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 ac_ext=c 3928 ac_cpp='$CPP $CPPFLAGS' 3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3932 if test -n "$ac_tool_prefix"; then 3933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3934 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3936 printf %s "checking for $ac_word... " >&6; } 3937 if test ${ac_cv_prog_CC+y} 3938 then : 3939 printf %s "(cached) " >&6 3940 else case e in #( 3941 e) if test -n "$CC"; then 3942 ac_cv_prog_CC="$CC" # Let the user override the test. 3943 else 3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945 for as_dir in $PATH 3946 do 3947 IFS=$as_save_IFS 3948 case $as_dir in #((( 3949 '') as_dir=./ ;; 3950 */) ;; 3951 *) as_dir=$as_dir/ ;; 3952 esac 3953 for ac_exec_ext in '' $ac_executable_extensions; do 3954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3955 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3957 break 2 3958 fi 3959 done 3960 done 3961 IFS=$as_save_IFS 3962 3963 fi ;; 3964 esac 3965 fi 3966 CC=$ac_cv_prog_CC 3967 if test -n "$CC"; then 3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3969 printf "%s\n" "$CC" >&6; } 3970 else 3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3972 printf "%s\n" "no" >&6; } 3973 fi 3974 3975 3976 fi 3977 if test -z "$ac_cv_prog_CC"; then 3978 ac_ct_CC=$CC 3979 # Extract the first word of "gcc", so it can be a program name with args. 3980 set dummy gcc; ac_word=$2 3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3982 printf %s "checking for $ac_word... " >&6; } 3983 if test ${ac_cv_prog_ac_ct_CC+y} 3984 then : 3985 printf %s "(cached) " >&6 3986 else case e in #( 3987 e) if test -n "$ac_ct_CC"; then 3988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3989 else 3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991 for as_dir in $PATH 3992 do 3993 IFS=$as_save_IFS 3994 case $as_dir in #((( 3995 '') as_dir=./ ;; 3996 */) ;; 3997 *) as_dir=$as_dir/ ;; 3998 esac 3999 for ac_exec_ext in '' $ac_executable_extensions; do 4000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4001 ac_cv_prog_ac_ct_CC="gcc" 4002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4003 break 2 4004 fi 4005 done 4006 done 4007 IFS=$as_save_IFS 4008 4009 fi ;; 4010 esac 4011 fi 4012 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4013 if test -n "$ac_ct_CC"; then 4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4015 printf "%s\n" "$ac_ct_CC" >&6; } 4016 else 4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4018 printf "%s\n" "no" >&6; } 4019 fi 4020 4021 if test "x$ac_ct_CC" = x; then 4022 CC="" 4023 else 4024 case $cross_compiling:$ac_tool_warned in 4025 yes:) 4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4027 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4028 ac_tool_warned=yes ;; 4029 esac 4030 CC=$ac_ct_CC 4031 fi 4032 else 4033 CC="$ac_cv_prog_CC" 4034 fi 4035 4036 if test -z "$CC"; then 4037 if test -n "$ac_tool_prefix"; then 4038 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4039 set dummy ${ac_tool_prefix}cc; ac_word=$2 4040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4041 printf %s "checking for $ac_word... " >&6; } 4042 if test ${ac_cv_prog_CC+y} 4043 then : 4044 printf %s "(cached) " >&6 4045 else case e in #( 4046 e) if test -n "$CC"; then 4047 ac_cv_prog_CC="$CC" # Let the user override the test. 4048 else 4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4050 for as_dir in $PATH 4051 do 4052 IFS=$as_save_IFS 4053 case $as_dir in #((( 4054 '') as_dir=./ ;; 4055 */) ;; 4056 *) as_dir=$as_dir/ ;; 4057 esac 4058 for ac_exec_ext in '' $ac_executable_extensions; do 4059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4060 ac_cv_prog_CC="${ac_tool_prefix}cc" 4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4062 break 2 4063 fi 4064 done 4065 done 4066 IFS=$as_save_IFS 4067 4068 fi ;; 4069 esac 4070 fi 4071 CC=$ac_cv_prog_CC 4072 if test -n "$CC"; then 4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4074 printf "%s\n" "$CC" >&6; } 4075 else 4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4077 printf "%s\n" "no" >&6; } 4078 fi 4079 4080 4081 fi 4082 fi 4083 if test -z "$CC"; then 4084 # Extract the first word of "cc", so it can be a program name with args. 4085 set dummy cc; ac_word=$2 4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4087 printf %s "checking for $ac_word... " >&6; } 4088 if test ${ac_cv_prog_CC+y} 4089 then : 4090 printf %s "(cached) " >&6 4091 else case e in #( 4092 e) if test -n "$CC"; then 4093 ac_cv_prog_CC="$CC" # Let the user override the test. 4094 else 4095 ac_prog_rejected=no 4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4097 for as_dir in $PATH 4098 do 4099 IFS=$as_save_IFS 4100 case $as_dir in #((( 4101 '') as_dir=./ ;; 4102 */) ;; 4103 *) as_dir=$as_dir/ ;; 4104 esac 4105 for ac_exec_ext in '' $ac_executable_extensions; do 4106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4107 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4108 ac_prog_rejected=yes 4109 continue 4110 fi 4111 ac_cv_prog_CC="cc" 4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4113 break 2 4114 fi 4115 done 4116 done 4117 IFS=$as_save_IFS 4118 4119 if test $ac_prog_rejected = yes; then 4120 # We found a bogon in the path, so make sure we never use it. 4121 set dummy $ac_cv_prog_CC 4122 shift 4123 if test $# != 0; then 4124 # We chose a different compiler from the bogus one. 4125 # However, it has the same basename, so the bogon will be chosen 4126 # first if we set CC to just the basename; use the full file name. 4127 shift 4128 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4129 fi 4130 fi 4131 fi ;; 4132 esac 4133 fi 4134 CC=$ac_cv_prog_CC 4135 if test -n "$CC"; then 4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4137 printf "%s\n" "$CC" >&6; } 4138 else 4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4140 printf "%s\n" "no" >&6; } 4141 fi 4142 4143 4144 fi 4145 if test -z "$CC"; then 4146 if test -n "$ac_tool_prefix"; then 4147 for ac_prog in cl.exe 4148 do 4149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4152 printf %s "checking for $ac_word... " >&6; } 4153 if test ${ac_cv_prog_CC+y} 4154 then : 4155 printf %s "(cached) " >&6 4156 else case e in #( 4157 e) if test -n "$CC"; then 4158 ac_cv_prog_CC="$CC" # Let the user override the test. 4159 else 4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4161 for as_dir in $PATH 4162 do 4163 IFS=$as_save_IFS 4164 case $as_dir in #((( 4165 '') as_dir=./ ;; 4166 */) ;; 4167 *) as_dir=$as_dir/ ;; 4168 esac 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4173 break 2 4174 fi 4175 done 4176 done 4177 IFS=$as_save_IFS 4178 4179 fi ;; 4180 esac 4181 fi 4182 CC=$ac_cv_prog_CC 4183 if test -n "$CC"; then 4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4185 printf "%s\n" "$CC" >&6; } 4186 else 4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4188 printf "%s\n" "no" >&6; } 4189 fi 4190 4191 4192 test -n "$CC" && break 4193 done 4194 fi 4195 if test -z "$CC"; then 4196 ac_ct_CC=$CC 4197 for ac_prog in cl.exe 4198 do 4199 # Extract the first word of "$ac_prog", so it can be a program name with args. 4200 set dummy $ac_prog; ac_word=$2 4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4202 printf %s "checking for $ac_word... " >&6; } 4203 if test ${ac_cv_prog_ac_ct_CC+y} 4204 then : 4205 printf %s "(cached) " >&6 4206 else case e in #( 4207 e) if test -n "$ac_ct_CC"; then 4208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4209 else 4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4211 for as_dir in $PATH 4212 do 4213 IFS=$as_save_IFS 4214 case $as_dir in #((( 4215 '') as_dir=./ ;; 4216 */) ;; 4217 *) as_dir=$as_dir/ ;; 4218 esac 4219 for ac_exec_ext in '' $ac_executable_extensions; do 4220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4221 ac_cv_prog_ac_ct_CC="$ac_prog" 4222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4223 break 2 4224 fi 4225 done 4226 done 4227 IFS=$as_save_IFS 4228 4229 fi ;; 4230 esac 4231 fi 4232 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4233 if test -n "$ac_ct_CC"; then 4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4235 printf "%s\n" "$ac_ct_CC" >&6; } 4236 else 4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4238 printf "%s\n" "no" >&6; } 4239 fi 4240 4241 4242 test -n "$ac_ct_CC" && break 4243 done 4244 4245 if test "x$ac_ct_CC" = x; then 4246 CC="" 4247 else 4248 case $cross_compiling:$ac_tool_warned in 4249 yes:) 4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4251 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4252 ac_tool_warned=yes ;; 4253 esac 4254 CC=$ac_ct_CC 4255 fi 4256 fi 4257 4258 fi 4259 if test -z "$CC"; then 4260 if test -n "$ac_tool_prefix"; then 4261 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4262 set dummy ${ac_tool_prefix}clang; ac_word=$2 4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4264 printf %s "checking for $ac_word... " >&6; } 4265 if test ${ac_cv_prog_CC+y} 4266 then : 4267 printf %s "(cached) " >&6 4268 else case e in #( 4269 e) if test -n "$CC"; then 4270 ac_cv_prog_CC="$CC" # Let the user override the test. 4271 else 4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4273 for as_dir in $PATH 4274 do 4275 IFS=$as_save_IFS 4276 case $as_dir in #((( 4277 '') as_dir=./ ;; 4278 */) ;; 4279 *) as_dir=$as_dir/ ;; 4280 esac 4281 for ac_exec_ext in '' $ac_executable_extensions; do 4282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4283 ac_cv_prog_CC="${ac_tool_prefix}clang" 4284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4285 break 2 4286 fi 4287 done 4288 done 4289 IFS=$as_save_IFS 4290 4291 fi ;; 4292 esac 4293 fi 4294 CC=$ac_cv_prog_CC 4295 if test -n "$CC"; then 4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4297 printf "%s\n" "$CC" >&6; } 4298 else 4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4300 printf "%s\n" "no" >&6; } 4301 fi 4302 4303 4304 fi 4305 if test -z "$ac_cv_prog_CC"; then 4306 ac_ct_CC=$CC 4307 # Extract the first word of "clang", so it can be a program name with args. 4308 set dummy clang; ac_word=$2 4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4310 printf %s "checking for $ac_word... " >&6; } 4311 if test ${ac_cv_prog_ac_ct_CC+y} 4312 then : 4313 printf %s "(cached) " >&6 4314 else case e in #( 4315 e) if test -n "$ac_ct_CC"; then 4316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4317 else 4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4319 for as_dir in $PATH 4320 do 4321 IFS=$as_save_IFS 4322 case $as_dir in #((( 4323 '') as_dir=./ ;; 4324 */) ;; 4325 *) as_dir=$as_dir/ ;; 4326 esac 4327 for ac_exec_ext in '' $ac_executable_extensions; do 4328 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4329 ac_cv_prog_ac_ct_CC="clang" 4330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4331 break 2 4332 fi 4333 done 4334 done 4335 IFS=$as_save_IFS 4336 4337 fi ;; 4338 esac 4339 fi 4340 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4341 if test -n "$ac_ct_CC"; then 4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4343 printf "%s\n" "$ac_ct_CC" >&6; } 4344 else 4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4346 printf "%s\n" "no" >&6; } 4347 fi 4348 4349 if test "x$ac_ct_CC" = x; then 4350 CC="" 4351 else 4352 case $cross_compiling:$ac_tool_warned in 4353 yes:) 4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4355 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4356 ac_tool_warned=yes ;; 4357 esac 4358 CC=$ac_ct_CC 4359 fi 4360 else 4361 CC="$ac_cv_prog_CC" 4362 fi 4363 4364 fi 4365 4366 4367 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4368 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4369 as_fn_error $? "no acceptable C compiler found in \$PATH 4370 See 'config.log' for more details" "$LINENO" 5; } 4371 4372 # Provide some information about the compiler. 4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4374 set X $ac_compile 4375 ac_compiler=$2 4376 for ac_option in --version -v -V -qversion -version; do 4377 { { ac_try="$ac_compiler $ac_option >&5" 4378 case "(($ac_try" in 4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4380 *) ac_try_echo=$ac_try;; 4381 esac 4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4383 printf "%s\n" "$ac_try_echo"; } >&5 4384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4385 ac_status=$? 4386 if test -s conftest.err; then 4387 sed '10a\ 4388 ... rest of stderr output deleted ... 4389 10q' conftest.err >conftest.er1 4390 cat conftest.er1 >&5 4391 fi 4392 rm -f conftest.er1 conftest.err 4393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4394 test $ac_status = 0; } 4395 done 4396 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398 /* end confdefs.h. */ 4399 4400 int 4401 main (void) 4402 { 4403 4404 ; 4405 return 0; 4406 } 4407 _ACEOF 4408 ac_clean_files_save=$ac_clean_files 4409 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4410 # Try to create an executable without -o first, disregard a.out. 4411 # It will help us diagnose broken compilers, and finding out an intuition 4412 # of exeext. 4413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4414 printf %s "checking whether the C compiler works... " >&6; } 4415 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4416 4417 # The possible output files: 4418 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4419 4420 ac_rmfiles= 4421 for ac_file in $ac_files 4422 do 4423 case $ac_file in 4424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4425 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4426 esac 4427 done 4428 rm -f $ac_rmfiles 4429 4430 if { { ac_try="$ac_link_default" 4431 case "(($ac_try" in 4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4433 *) ac_try_echo=$ac_try;; 4434 esac 4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4436 printf "%s\n" "$ac_try_echo"; } >&5 4437 (eval "$ac_link_default") 2>&5 4438 ac_status=$? 4439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4440 test $ac_status = 0; } 4441 then : 4442 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4443 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4444 # in a Makefile. We should not override ac_cv_exeext if it was cached, 4445 # so that the user can short-circuit this test for compilers unknown to 4446 # Autoconf. 4447 for ac_file in $ac_files '' 4448 do 4449 test -f "$ac_file" || continue 4450 case $ac_file in 4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4452 ;; 4453 [ab].out ) 4454 # We found the default executable, but exeext='' is most 4455 # certainly right. 4456 break;; 4457 *.* ) 4458 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4459 then :; else 4460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4461 fi 4462 # We set ac_cv_exeext here because the later test for it is not 4463 # safe: cross compilers may not add the suffix if given an '-o' 4464 # argument, so we may need to know it at that point already. 4465 # Even if this section looks crufty: it has the advantage of 4466 # actually working. 4467 break;; 4468 * ) 4469 break;; 4470 esac 4471 done 4472 test "$ac_cv_exeext" = no && ac_cv_exeext= 4473 4474 else case e in #( 4475 e) ac_file='' ;; 4476 esac 4477 fi 4478 if test -z "$ac_file" 4479 then : 4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4481 printf "%s\n" "no" >&6; } 4482 printf "%s\n" "$as_me: failed program was:" >&5 4483 sed 's/^/| /' conftest.$ac_ext >&5 4484 4485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4486 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4487 as_fn_error 77 "C compiler cannot create executables 4488 See 'config.log' for more details" "$LINENO" 5; } 4489 else case e in #( 4490 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4491 printf "%s\n" "yes" >&6; } ;; 4492 esac 4493 fi 4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4495 printf %s "checking for C compiler default output file name... " >&6; } 4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4497 printf "%s\n" "$ac_file" >&6; } 4498 ac_exeext=$ac_cv_exeext 4499 4500 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4501 ac_clean_files=$ac_clean_files_save 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4503 printf %s "checking for suffix of executables... " >&6; } 4504 if { { ac_try="$ac_link" 4505 case "(($ac_try" in 4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4507 *) ac_try_echo=$ac_try;; 4508 esac 4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4510 printf "%s\n" "$ac_try_echo"; } >&5 4511 (eval "$ac_link") 2>&5 4512 ac_status=$? 4513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4514 test $ac_status = 0; } 4515 then : 4516 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4517 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4518 # work properly (i.e., refer to 'conftest.exe'), while it won't with 4519 # 'rm'. 4520 for ac_file in conftest.exe conftest conftest.*; do 4521 test -f "$ac_file" || continue 4522 case $ac_file in 4523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4524 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4525 break;; 4526 * ) break;; 4527 esac 4528 done 4529 else case e in #( 4530 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4531 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4532 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4533 See 'config.log' for more details" "$LINENO" 5; } ;; 4534 esac 4535 fi 4536 rm -f conftest conftest$ac_cv_exeext 4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4538 printf "%s\n" "$ac_cv_exeext" >&6; } 4539 4540 rm -f conftest.$ac_ext 4541 EXEEXT=$ac_cv_exeext 4542 ac_exeext=$EXEEXT 4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4544 /* end confdefs.h. */ 4545 #include <stdio.h> 4546 int 4547 main (void) 4548 { 4549 FILE *f = fopen ("conftest.out", "w"); 4550 if (!f) 4551 return 1; 4552 return ferror (f) || fclose (f) != 0; 4553 4554 ; 4555 return 0; 4556 } 4557 _ACEOF 4558 ac_clean_files="$ac_clean_files conftest.out" 4559 # Check that the compiler produces executables we can run. If not, either 4560 # the compiler is broken, or we cross compile. 4561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4562 printf %s "checking whether we are cross compiling... " >&6; } 4563 if test "$cross_compiling" != yes; then 4564 { { ac_try="$ac_link" 4565 case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568 esac 4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4570 printf "%s\n" "$ac_try_echo"; } >&5 4571 (eval "$ac_link") 2>&5 4572 ac_status=$? 4573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4574 test $ac_status = 0; } 4575 if { ac_try='./conftest$ac_cv_exeext' 4576 { { case "(($ac_try" in 4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4578 *) ac_try_echo=$ac_try;; 4579 esac 4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4581 printf "%s\n" "$ac_try_echo"; } >&5 4582 (eval "$ac_try") 2>&5 4583 ac_status=$? 4584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4585 test $ac_status = 0; }; }; then 4586 cross_compiling=no 4587 else 4588 if test "$cross_compiling" = maybe; then 4589 cross_compiling=yes 4590 else 4591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4592 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4593 as_fn_error 77 "cannot run C compiled programs. 4594 If you meant to cross compile, use '--host'. 4595 See 'config.log' for more details" "$LINENO" 5; } 4596 fi 4597 fi 4598 fi 4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4600 printf "%s\n" "$cross_compiling" >&6; } 4601 4602 rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4603 conftest.o conftest.obj conftest.out 4604 ac_clean_files=$ac_clean_files_save 4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4606 printf %s "checking for suffix of object files... " >&6; } 4607 if test ${ac_cv_objext+y} 4608 then : 4609 printf %s "(cached) " >&6 4610 else case e in #( 4611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612 /* end confdefs.h. */ 4613 4614 int 4615 main (void) 4616 { 4617 4618 ; 4619 return 0; 4620 } 4621 _ACEOF 4622 rm -f conftest.o conftest.obj 4623 if { { ac_try="$ac_compile" 4624 case "(($ac_try" in 4625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4626 *) ac_try_echo=$ac_try;; 4627 esac 4628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4629 printf "%s\n" "$ac_try_echo"; } >&5 4630 (eval "$ac_compile") 2>&5 4631 ac_status=$? 4632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4633 test $ac_status = 0; } 4634 then : 4635 for ac_file in conftest.o conftest.obj conftest.*; do 4636 test -f "$ac_file" || continue; 4637 case $ac_file in 4638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4639 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4640 break;; 4641 esac 4642 done 4643 else case e in #( 4644 e) printf "%s\n" "$as_me: failed program was:" >&5 4645 sed 's/^/| /' conftest.$ac_ext >&5 4646 4647 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4648 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4649 as_fn_error $? "cannot compute suffix of object files: cannot compile 4650 See 'config.log' for more details" "$LINENO" 5; } ;; 4651 esac 4652 fi 4653 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4654 esac 4655 fi 4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4657 printf "%s\n" "$ac_cv_objext" >&6; } 4658 OBJEXT=$ac_cv_objext 4659 ac_objext=$OBJEXT 4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4661 printf %s "checking whether the compiler supports GNU C... " >&6; } 4662 if test ${ac_cv_c_compiler_gnu+y} 4663 then : 4664 printf %s "(cached) " >&6 4665 else case e in #( 4666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4667 /* end confdefs.h. */ 4668 4669 int 4670 main (void) 4671 { 4672 #ifndef __GNUC__ 4673 choke me 4674 #endif 4675 4676 ; 4677 return 0; 4678 } 4679 _ACEOF 4680 if ac_fn_c_try_compile "$LINENO" 4681 then : 4682 ac_compiler_gnu=yes 4683 else case e in #( 4684 e) ac_compiler_gnu=no ;; 4685 esac 4686 fi 4687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4688 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4689 ;; 4690 esac 4691 fi 4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4693 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4694 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4695 4696 if test $ac_compiler_gnu = yes; then 4697 GCC=yes 4698 else 4699 GCC= 4700 fi 4701 ac_test_CFLAGS=${CFLAGS+y} 4702 ac_save_CFLAGS=$CFLAGS 4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4704 printf %s "checking whether $CC accepts -g... " >&6; } 4705 if test ${ac_cv_prog_cc_g+y} 4706 then : 4707 printf %s "(cached) " >&6 4708 else case e in #( 4709 e) ac_save_c_werror_flag=$ac_c_werror_flag 4710 ac_c_werror_flag=yes 4711 ac_cv_prog_cc_g=no 4712 CFLAGS="-g" 4713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4714 /* end confdefs.h. */ 4715 4716 int 4717 main (void) 4718 { 4719 4720 ; 4721 return 0; 4722 } 4723 _ACEOF 4724 if ac_fn_c_try_compile "$LINENO" 4725 then : 4726 ac_cv_prog_cc_g=yes 4727 else case e in #( 4728 e) CFLAGS="" 4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4730 /* end confdefs.h. */ 4731 4732 int 4733 main (void) 4734 { 4735 4736 ; 4737 return 0; 4738 } 4739 _ACEOF 4740 if ac_fn_c_try_compile "$LINENO" 4741 then : 4742 4743 else case e in #( 4744 e) ac_c_werror_flag=$ac_save_c_werror_flag 4745 CFLAGS="-g" 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747 /* end confdefs.h. */ 4748 4749 int 4750 main (void) 4751 { 4752 4753 ; 4754 return 0; 4755 } 4756 _ACEOF 4757 if ac_fn_c_try_compile "$LINENO" 4758 then : 4759 ac_cv_prog_cc_g=yes 4760 fi 4761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4762 esac 4763 fi 4764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4765 esac 4766 fi 4767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4768 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4769 esac 4770 fi 4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4772 printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4773 if test $ac_test_CFLAGS; then 4774 CFLAGS=$ac_save_CFLAGS 4775 elif test $ac_cv_prog_cc_g = yes; then 4776 if test "$GCC" = yes; then 4777 CFLAGS="-g -O2" 4778 else 4779 CFLAGS="-g" 4780 fi 4781 else 4782 if test "$GCC" = yes; then 4783 CFLAGS="-O2" 4784 else 4785 CFLAGS= 4786 fi 4787 fi 4788 ac_prog_cc_stdc=no 4789 if test x$ac_prog_cc_stdc = xno 4790 then : 4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4792 printf %s "checking for $CC option to enable C11 features... " >&6; } 4793 if test ${ac_cv_prog_cc_c11+y} 4794 then : 4795 printf %s "(cached) " >&6 4796 else case e in #( 4797 e) ac_cv_prog_cc_c11=no 4798 ac_save_CC=$CC 4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4800 /* end confdefs.h. */ 4801 $ac_c_conftest_c11_program 4802 _ACEOF 4803 for ac_arg in '' -std=gnu11 4804 do 4805 CC="$ac_save_CC $ac_arg" 4806 if ac_fn_c_try_compile "$LINENO" 4807 then : 4808 ac_cv_prog_cc_c11=$ac_arg 4809 fi 4810 rm -f core conftest.err conftest.$ac_objext conftest.beam 4811 test "x$ac_cv_prog_cc_c11" != "xno" && break 4812 done 4813 rm -f conftest.$ac_ext 4814 CC=$ac_save_CC ;; 4815 esac 4816 fi 4817 4818 if test "x$ac_cv_prog_cc_c11" = xno 4819 then : 4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4821 printf "%s\n" "unsupported" >&6; } 4822 else case e in #( 4823 e) if test "x$ac_cv_prog_cc_c11" = x 4824 then : 4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4826 printf "%s\n" "none needed" >&6; } 4827 else case e in #( 4828 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4829 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4830 CC="$CC $ac_cv_prog_cc_c11" ;; 4831 esac 4832 fi 4833 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4834 ac_prog_cc_stdc=c11 ;; 4835 esac 4836 fi 4837 fi 4838 if test x$ac_prog_cc_stdc = xno 4839 then : 4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4841 printf %s "checking for $CC option to enable C99 features... " >&6; } 4842 if test ${ac_cv_prog_cc_c99+y} 4843 then : 4844 printf %s "(cached) " >&6 4845 else case e in #( 4846 e) ac_cv_prog_cc_c99=no 4847 ac_save_CC=$CC 4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4849 /* end confdefs.h. */ 4850 $ac_c_conftest_c99_program 4851 _ACEOF 4852 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4853 do 4854 CC="$ac_save_CC $ac_arg" 4855 if ac_fn_c_try_compile "$LINENO" 4856 then : 4857 ac_cv_prog_cc_c99=$ac_arg 4858 fi 4859 rm -f core conftest.err conftest.$ac_objext conftest.beam 4860 test "x$ac_cv_prog_cc_c99" != "xno" && break 4861 done 4862 rm -f conftest.$ac_ext 4863 CC=$ac_save_CC ;; 4864 esac 4865 fi 4866 4867 if test "x$ac_cv_prog_cc_c99" = xno 4868 then : 4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4870 printf "%s\n" "unsupported" >&6; } 4871 else case e in #( 4872 e) if test "x$ac_cv_prog_cc_c99" = x 4873 then : 4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4875 printf "%s\n" "none needed" >&6; } 4876 else case e in #( 4877 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4878 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4879 CC="$CC $ac_cv_prog_cc_c99" ;; 4880 esac 4881 fi 4882 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4883 ac_prog_cc_stdc=c99 ;; 4884 esac 4885 fi 4886 fi 4887 if test x$ac_prog_cc_stdc = xno 4888 then : 4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4890 printf %s "checking for $CC option to enable C89 features... " >&6; } 4891 if test ${ac_cv_prog_cc_c89+y} 4892 then : 4893 printf %s "(cached) " >&6 4894 else case e in #( 4895 e) ac_cv_prog_cc_c89=no 4896 ac_save_CC=$CC 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4898 /* end confdefs.h. */ 4899 $ac_c_conftest_c89_program 4900 _ACEOF 4901 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4902 do 4903 CC="$ac_save_CC $ac_arg" 4904 if ac_fn_c_try_compile "$LINENO" 4905 then : 4906 ac_cv_prog_cc_c89=$ac_arg 4907 fi 4908 rm -f core conftest.err conftest.$ac_objext conftest.beam 4909 test "x$ac_cv_prog_cc_c89" != "xno" && break 4910 done 4911 rm -f conftest.$ac_ext 4912 CC=$ac_save_CC ;; 4913 esac 4914 fi 4915 4916 if test "x$ac_cv_prog_cc_c89" = xno 4917 then : 4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4919 printf "%s\n" "unsupported" >&6; } 4920 else case e in #( 4921 e) if test "x$ac_cv_prog_cc_c89" = x 4922 then : 4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4924 printf "%s\n" "none needed" >&6; } 4925 else case e in #( 4926 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4927 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4928 CC="$CC $ac_cv_prog_cc_c89" ;; 4929 esac 4930 fi 4931 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4932 ac_prog_cc_stdc=c89 ;; 4933 esac 4934 fi 4935 fi 4936 4937 ac_ext=c 4938 ac_cpp='$CPP $CPPFLAGS' 4939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4941 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4942 4943 4944 ac_ext=c 4945 ac_cpp='$CPP $CPPFLAGS' 4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4950 printf %s "checking whether $CC understands -c and -o together... " >&6; } 4951 if test ${am_cv_prog_cc_c_o+y} 4952 then : 4953 printf %s "(cached) " >&6 4954 else case e in #( 4955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4956 /* end confdefs.h. */ 4957 4958 int 4959 main (void) 4960 { 4961 4962 ; 4963 return 0; 4964 } 4965 _ACEOF 4966 # Make sure it works both with $CC and with simple cc. 4967 # Following AC_PROG_CC_C_O, we do the test twice because some 4968 # compilers refuse to overwrite an existing .o file with -o, 4969 # though they will create one. 4970 am_cv_prog_cc_c_o=yes 4971 for am_i in 1 2; do 4972 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4973 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4974 ac_status=$? 4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4976 (exit $ac_status); } \ 4977 && test -f conftest2.$ac_objext; then 4978 : OK 4979 else 4980 am_cv_prog_cc_c_o=no 4981 break 4982 fi 4983 done 4984 rm -f core conftest* 4985 unset am_i ;; 4986 esac 4987 fi 4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4989 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 4990 if test "$am_cv_prog_cc_c_o" != yes; then 4991 # Losing compiler, so override with the script. 4992 # FIXME: It is wrong to rewrite CC. 4993 # But if we don't then we get into trouble of one sort or another. 4994 # A longer-term fix would be to have automake use am__CC in this case, 4995 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4996 CC="$am_aux_dir/compile $CC" 4997 fi 4998 ac_ext=c 4999 ac_cpp='$CPP $CPPFLAGS' 5000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5002 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5003 5004 DEPDIR="${am__leading_dot}deps" 5005 5006 ac_config_commands="$ac_config_commands depfiles" 5007 5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5009 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5010 cat > confinc.mk << 'END' 5011 am__doit: 5012 @echo this is the am__doit target >confinc.out 5013 .PHONY: am__doit 5014 END 5015 am__include="#" 5016 am__quote= 5017 # BSD make does it like this. 5018 echo '.include "confinc.mk" # ignored' > confmf.BSD 5019 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 5020 echo 'include confinc.mk # ignored' > confmf.GNU 5021 _am_result=no 5022 for s in GNU BSD; do 5023 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5024 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5025 ac_status=$? 5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5027 (exit $ac_status); } 5028 case $?:`cat confinc.out 2>/dev/null` in #( 5029 '0:this is the am__doit target') : 5030 case $s in #( 5031 BSD) : 5032 am__include='.include' am__quote='"' ;; #( 5033 *) : 5034 am__include='include' am__quote='' ;; 5035 esac ;; #( 5036 *) : 5037 ;; 5038 esac 5039 if test "$am__include" != "#"; then 5040 _am_result="yes ($s style)" 5041 break 5042 fi 5043 done 5044 rm -f confinc.* confmf.* 5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5046 printf "%s\n" "${_am_result}" >&6; } 5047 5048 # Check whether --enable-dependency-tracking was given. 5049 if test ${enable_dependency_tracking+y} 5050 then : 5051 enableval=$enable_dependency_tracking; 5052 fi 5053 5054 if test "x$enable_dependency_tracking" != xno; then 5055 am_depcomp="$ac_aux_dir/depcomp" 5056 AMDEPBACKSLASH='\' 5057 am__nodep='_no' 5058 fi 5059 if test "x$enable_dependency_tracking" != xno; then 5060 AMDEP_TRUE= 5061 AMDEP_FALSE='#' 5062 else 5063 AMDEP_TRUE='#' 5064 AMDEP_FALSE= 5065 fi 5066 5067 5068 5069 depcc="$CC" am_compiler_list= 5070 5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5072 printf %s "checking dependency style of $depcc... " >&6; } 5073 if test ${am_cv_CC_dependencies_compiler_type+y} 5074 then : 5075 printf %s "(cached) " >&6 5076 else case e in #( 5077 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5078 # We make a subdir and do the tests there. Otherwise we can end up 5079 # making bogus files that we don't know about and never remove. For 5080 # instance it was reported that on HP-UX the gcc test will end up 5081 # making a dummy file named 'D' -- because '-MD' means "put the output 5082 # in D". 5083 rm -rf conftest.dir 5084 mkdir conftest.dir 5085 # Copy depcomp to subdir because otherwise we won't find it if we're 5086 # using a relative directory. 5087 cp "$am_depcomp" conftest.dir 5088 cd conftest.dir 5089 # We will build objects and dependencies in a subdirectory because 5090 # it helps to detect inapplicable dependency modes. For instance 5091 # both Tru64's cc and ICC support -MD to output dependencies as a 5092 # side effect of compilation, but ICC will put the dependencies in 5093 # the current directory while Tru64 will put them in the object 5094 # directory. 5095 mkdir sub 5096 5097 am_cv_CC_dependencies_compiler_type=none 5098 if test "$am_compiler_list" = ""; then 5099 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5100 fi 5101 am__universal=false 5102 case " $depcc " in #( 5103 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5104 esac 5105 5106 for depmode in $am_compiler_list; do 5107 # Setup a source with many dependencies, because some compilers 5108 # like to wrap large dependency lists on column 80 (with \), and 5109 # we should not choose a depcomp mode which is confused by this. 5110 # 5111 # We need to recreate these files for each test, as the compiler may 5112 # overwrite some of them when testing with obscure command lines. 5113 # This happens at least with the AIX C compiler. 5114 : > sub/conftest.c 5115 for i in 1 2 3 4 5 6; do 5116 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5117 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5118 # Solaris 10 /bin/sh. 5119 echo '/* dummy */' > sub/conftst$i.h 5120 done 5121 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5122 5123 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5124 # mode. It turns out that the SunPro C++ compiler does not properly 5125 # handle '-M -o', and we need to detect this. Also, some Intel 5126 # versions had trouble with output in subdirs. 5127 am__obj=sub/conftest.${OBJEXT-o} 5128 am__minus_obj="-o $am__obj" 5129 case $depmode in 5130 gcc) 5131 # This depmode causes a compiler race in universal mode. 5132 test "$am__universal" = false || continue 5133 ;; 5134 nosideeffect) 5135 # After this tag, mechanisms are not by side-effect, so they'll 5136 # only be used when explicitly requested. 5137 if test "x$enable_dependency_tracking" = xyes; then 5138 continue 5139 else 5140 break 5141 fi 5142 ;; 5143 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5144 # This compiler won't grok '-c -o', but also, the minuso test has 5145 # not run yet. These depmodes are late enough in the game, and 5146 # so weak that their functioning should not be impacted. 5147 am__obj=conftest.${OBJEXT-o} 5148 am__minus_obj= 5149 ;; 5150 none) break ;; 5151 esac 5152 if depmode=$depmode \ 5153 source=sub/conftest.c object=$am__obj \ 5154 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5155 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5156 >/dev/null 2>conftest.err && 5157 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5159 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5161 # icc doesn't choke on unknown options, it will just issue warnings 5162 # or remarks (even with -Werror). So we grep stderr for any message 5163 # that says an option was ignored or not supported. 5164 # When given -MP, icc 7.0 and 7.1 complain thusly: 5165 # icc: Command line warning: ignoring option '-M'; no argument required 5166 # The diagnosis changed in icc 8.0: 5167 # icc: Command line remark: option '-MP' not supported 5168 if (grep 'ignoring option' conftest.err || 5169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5170 am_cv_CC_dependencies_compiler_type=$depmode 5171 break 5172 fi 5173 fi 5174 done 5175 5176 cd .. 5177 rm -rf conftest.dir 5178 else 5179 am_cv_CC_dependencies_compiler_type=none 5180 fi 5181 ;; 5182 esac 5183 fi 5184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5185 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5186 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5187 5188 if 5189 test "x$enable_dependency_tracking" != xno \ 5190 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5191 am__fastdepCC_TRUE= 5192 am__fastdepCC_FALSE='#' 5193 else 5194 am__fastdepCC_TRUE='#' 5195 am__fastdepCC_FALSE= 5196 fi 5197 5198 5199 5200 ac_header= ac_cache= 5201 for ac_item in $ac_header_c_list 5202 do 5203 if test $ac_cache; then 5204 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5205 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5206 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5207 fi 5208 ac_header= ac_cache= 5209 elif test $ac_header; then 5210 ac_cache=$ac_item 5211 else 5212 ac_header=$ac_item 5213 fi 5214 done 5215 5216 5217 5218 5219 5220 5221 5222 5223 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5224 then : 5225 5226 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5227 5228 fi 5229 5230 5231 5232 5233 5234 5235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5236 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5237 if test ${ac_cv_safe_to_define___extensions__+y} 5238 then : 5239 printf %s "(cached) " >&6 5240 else case e in #( 5241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5242 /* end confdefs.h. */ 5243 5244 # define __EXTENSIONS__ 1 5245 $ac_includes_default 5246 int 5247 main (void) 5248 { 5249 5250 ; 5251 return 0; 5252 } 5253 _ACEOF 5254 if ac_fn_c_try_compile "$LINENO" 5255 then : 5256 ac_cv_safe_to_define___extensions__=yes 5257 else case e in #( 5258 e) ac_cv_safe_to_define___extensions__=no ;; 5259 esac 5260 fi 5261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5262 esac 5263 fi 5264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5265 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5266 5267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5268 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5269 if test ${ac_cv_should_define__xopen_source+y} 5270 then : 5271 printf %s "(cached) " >&6 5272 else case e in #( 5273 e) ac_cv_should_define__xopen_source=no 5274 if test $ac_cv_header_wchar_h = yes 5275 then : 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5277 /* end confdefs.h. */ 5278 5279 #include <wchar.h> 5280 mbstate_t x; 5281 int 5282 main (void) 5283 { 5284 5285 ; 5286 return 0; 5287 } 5288 _ACEOF 5289 if ac_fn_c_try_compile "$LINENO" 5290 then : 5291 5292 else case e in #( 5293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5294 /* end confdefs.h. */ 5295 5296 #define _XOPEN_SOURCE 500 5297 #include <wchar.h> 5298 mbstate_t x; 5299 int 5300 main (void) 5301 { 5302 5303 ; 5304 return 0; 5305 } 5306 _ACEOF 5307 if ac_fn_c_try_compile "$LINENO" 5308 then : 5309 ac_cv_should_define__xopen_source=yes 5310 fi 5311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5312 esac 5313 fi 5314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5315 fi ;; 5316 esac 5317 fi 5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5319 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5320 5321 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5322 5323 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5324 5325 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5326 5327 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5328 5329 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5330 5331 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5332 5333 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5334 5335 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5336 5337 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5338 5339 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5340 5341 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5342 5343 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5344 5345 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5346 5347 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5348 5349 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5350 5351 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5352 5353 if test $ac_cv_header_minix_config_h = yes 5354 then : 5355 MINIX=yes 5356 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5357 5358 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5359 5360 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5361 5362 else case e in #( 5363 e) MINIX= ;; 5364 esac 5365 fi 5366 if test $ac_cv_safe_to_define___extensions__ = yes 5367 then : 5368 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5369 5370 fi 5371 if test $ac_cv_should_define__xopen_source = yes 5372 then : 5373 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5374 5375 fi 5376 5377 5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5379 printf %s "checking whether byte ordering is bigendian... " >&6; } 5380 if test ${ac_cv_c_bigendian+y} 5381 then : 5382 printf %s "(cached) " >&6 5383 else case e in #( 5384 e) ac_cv_c_bigendian=unknown 5385 # See if we're dealing with a universal compiler. 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387 /* end confdefs.h. */ 5388 #ifndef __APPLE_CC__ 5389 not a universal capable compiler 5390 #endif 5391 typedef int dummy; 5392 5393 _ACEOF 5394 if ac_fn_c_try_compile "$LINENO" 5395 then : 5396 5397 # Check for potential -arch flags. It is not universal unless 5398 # there are at least two -arch flags with different values. 5399 ac_arch= 5400 ac_prev= 5401 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5402 if test -n "$ac_prev"; then 5403 case $ac_word in 5404 i?86 | x86_64 | ppc | ppc64) 5405 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5406 ac_arch=$ac_word 5407 else 5408 ac_cv_c_bigendian=universal 5409 break 5410 fi 5411 ;; 5412 esac 5413 ac_prev= 5414 elif test "x$ac_word" = "x-arch"; then 5415 ac_prev=arch 5416 fi 5417 done 5418 fi 5419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5420 if test $ac_cv_c_bigendian = unknown; then 5421 # See if sys/param.h defines the BYTE_ORDER macro. 5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5423 /* end confdefs.h. */ 5424 #include <sys/types.h> 5425 #include <sys/param.h> 5426 5427 int 5428 main (void) 5429 { 5430 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ 5431 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ 5432 && LITTLE_ENDIAN) 5433 bogus endian macros 5434 #endif 5435 5436 ; 5437 return 0; 5438 } 5439 _ACEOF 5440 if ac_fn_c_try_compile "$LINENO" 5441 then : 5442 # It does; now see whether it defined to BIG_ENDIAN or not. 5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5444 /* end confdefs.h. */ 5445 #include <sys/types.h> 5446 #include <sys/param.h> 5447 5448 int 5449 main (void) 5450 { 5451 #if BYTE_ORDER != BIG_ENDIAN 5452 not big endian 5453 #endif 5454 5455 ; 5456 return 0; 5457 } 5458 _ACEOF 5459 if ac_fn_c_try_compile "$LINENO" 5460 then : 5461 ac_cv_c_bigendian=yes 5462 else case e in #( 5463 e) ac_cv_c_bigendian=no ;; 5464 esac 5465 fi 5466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5467 fi 5468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5469 fi 5470 if test $ac_cv_c_bigendian = unknown; then 5471 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5473 /* end confdefs.h. */ 5474 #include <limits.h> 5475 5476 int 5477 main (void) 5478 { 5479 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5480 bogus endian macros 5481 #endif 5482 5483 ; 5484 return 0; 5485 } 5486 _ACEOF 5487 if ac_fn_c_try_compile "$LINENO" 5488 then : 5489 # It does; now see whether it defined to _BIG_ENDIAN or not. 5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5491 /* end confdefs.h. */ 5492 #include <limits.h> 5493 5494 int 5495 main (void) 5496 { 5497 #ifndef _BIG_ENDIAN 5498 not big endian 5499 #endif 5500 5501 ; 5502 return 0; 5503 } 5504 _ACEOF 5505 if ac_fn_c_try_compile "$LINENO" 5506 then : 5507 ac_cv_c_bigendian=yes 5508 else case e in #( 5509 e) ac_cv_c_bigendian=no ;; 5510 esac 5511 fi 5512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5513 fi 5514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5515 fi 5516 if test $ac_cv_c_bigendian = unknown; then 5517 # Compile a test program. 5518 if test "$cross_compiling" = yes 5519 then : 5520 # Try to guess by grepping values from an object file. 5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522 /* end confdefs.h. */ 5523 unsigned short int ascii_mm[] = 5524 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5525 unsigned short int ascii_ii[] = 5526 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5527 int use_ascii (int i) { 5528 return ascii_mm[i] + ascii_ii[i]; 5529 } 5530 unsigned short int ebcdic_ii[] = 5531 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5532 unsigned short int ebcdic_mm[] = 5533 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5534 int use_ebcdic (int i) { 5535 return ebcdic_mm[i] + ebcdic_ii[i]; 5536 } 5537 int 5538 main (int argc, char **argv) 5539 { 5540 /* Intimidate the compiler so that it does not 5541 optimize the arrays away. */ 5542 char *p = argv[0]; 5543 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 5544 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 5545 return use_ascii (argc) == use_ebcdic (*p); 5546 } 5547 _ACEOF 5548 if ac_fn_c_try_link "$LINENO" 5549 then : 5550 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 5551 ac_cv_c_bigendian=yes 5552 fi 5553 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 5554 if test "$ac_cv_c_bigendian" = unknown; then 5555 ac_cv_c_bigendian=no 5556 else 5557 # finding both strings is unlikely to happen, but who knows? 5558 ac_cv_c_bigendian=unknown 5559 fi 5560 fi 5561 fi 5562 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5563 conftest$ac_exeext conftest.$ac_ext 5564 else case e in #( 5565 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5566 /* end confdefs.h. */ 5567 $ac_includes_default 5568 int 5569 main (void) 5570 { 5571 5572 /* Are we little or big endian? From Harbison&Steele. */ 5573 union 5574 { 5575 long int l; 5576 char c[sizeof (long int)]; 5577 } u; 5578 u.l = 1; 5579 return u.c[sizeof (long int) - 1] == 1; 5580 5581 ; 5582 return 0; 5583 } 5584 _ACEOF 5585 if ac_fn_c_try_run "$LINENO" 5586 then : 5587 ac_cv_c_bigendian=no 5588 else case e in #( 5589 e) ac_cv_c_bigendian=yes ;; 5590 esac 5591 fi 5592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5593 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5594 esac 5595 fi 5596 5597 fi ;; 5598 esac 5599 fi 5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5601 printf "%s\n" "$ac_cv_c_bigendian" >&6; } 5602 case $ac_cv_c_bigendian in #( 5603 yes) 5604 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 5605 ;; #( 5606 no) 5607 ;; #( 5608 universal) 5609 5610 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5611 5612 ;; #( 5613 *) 5614 as_fn_error $? "unknown endianness 5615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5616 esac 5617 5618 5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5620 printf %s "checking whether ln -s works... " >&6; } 5621 LN_S=$as_ln_s 5622 if test "$LN_S" = "ln -s"; then 5623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5624 printf "%s\n" "yes" >&6; } 5625 else 5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5627 printf "%s\n" "no, using $LN_S" >&6; } 5628 fi 5629 5630 case `pwd` in 5631 *\ * | *\ *) 5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5633 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5634 esac 5635 5636 5637 5638 macro_version='2.4.7' 5639 macro_revision='2.4.7' 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 ltmain=$ac_aux_dir/ltmain.sh 5655 5656 # Backslashify metacharacters that are still active within 5657 # double-quoted strings. 5658 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5659 5660 # Same as above, but do not quote variable references. 5661 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5662 5663 # Sed substitution to delay expansion of an escaped shell variable in a 5664 # double_quote_subst'ed string. 5665 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5666 5667 # Sed substitution to delay expansion of an escaped single quote. 5668 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5669 5670 # Sed substitution to avoid accidental globbing in evaled expressions 5671 no_glob_subst='s/\*/\\\*/g' 5672 5673 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5674 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5675 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5676 5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5678 printf %s "checking how to print strings... " >&6; } 5679 # Test print first, because it will be a builtin if present. 5680 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5681 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5682 ECHO='print -r --' 5683 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5684 ECHO='printf %s\n' 5685 else 5686 # Use this function as a fallback that always works. 5687 func_fallback_echo () 5688 { 5689 eval 'cat <<_LTECHO_EOF 5690 $1 5691 _LTECHO_EOF' 5692 } 5693 ECHO='func_fallback_echo' 5694 fi 5695 5696 # func_echo_all arg... 5697 # Invoke $ECHO with all args, space-separated. 5698 func_echo_all () 5699 { 5700 $ECHO "" 5701 } 5702 5703 case $ECHO in 5704 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5705 printf "%s\n" "printf" >&6; } ;; 5706 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5707 printf "%s\n" "print -r" >&6; } ;; 5708 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5709 printf "%s\n" "cat" >&6; } ;; 5710 esac 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5726 printf %s "checking for a sed that does not truncate output... " >&6; } 5727 if test ${ac_cv_path_SED+y} 5728 then : 5729 printf %s "(cached) " >&6 5730 else case e in #( 5731 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5732 for ac_i in 1 2 3 4 5 6 7; do 5733 ac_script="$ac_script$as_nl$ac_script" 5734 done 5735 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5736 { ac_script=; unset ac_script;} 5737 if test -z "$SED"; then 5738 ac_path_SED_found=false 5739 # Loop through the user's path and test for each of PROGNAME-LIST 5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741 for as_dir in $PATH 5742 do 5743 IFS=$as_save_IFS 5744 case $as_dir in #((( 5745 '') as_dir=./ ;; 5746 */) ;; 5747 *) as_dir=$as_dir/ ;; 5748 esac 5749 for ac_prog in sed gsed 5750 do 5751 for ac_exec_ext in '' $ac_executable_extensions; do 5752 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5753 as_fn_executable_p "$ac_path_SED" || continue 5754 # Check for GNU ac_path_SED and select it if it is found. 5755 # Check for GNU $ac_path_SED 5756 case `"$ac_path_SED" --version 2>&1` in #( 5757 *GNU*) 5758 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5759 #( 5760 *) 5761 ac_count=0 5762 printf %s 0123456789 >"conftest.in" 5763 while : 5764 do 5765 cat "conftest.in" "conftest.in" >"conftest.tmp" 5766 mv "conftest.tmp" "conftest.in" 5767 cp "conftest.in" "conftest.nl" 5768 printf "%s\n" '' >> "conftest.nl" 5769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5771 as_fn_arith $ac_count + 1 && ac_count=$as_val 5772 if test $ac_count -gt ${ac_path_SED_max-0}; then 5773 # Best one so far, save it but keep looking for a better one 5774 ac_cv_path_SED="$ac_path_SED" 5775 ac_path_SED_max=$ac_count 5776 fi 5777 # 10*(2^10) chars as input seems more than enough 5778 test $ac_count -gt 10 && break 5779 done 5780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5781 esac 5782 5783 $ac_path_SED_found && break 3 5784 done 5785 done 5786 done 5787 IFS=$as_save_IFS 5788 if test -z "$ac_cv_path_SED"; then 5789 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5790 fi 5791 else 5792 ac_cv_path_SED=$SED 5793 fi 5794 ;; 5795 esac 5796 fi 5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5798 printf "%s\n" "$ac_cv_path_SED" >&6; } 5799 SED="$ac_cv_path_SED" 5800 rm -f conftest.sed 5801 5802 test -z "$SED" && SED=sed 5803 Xsed="$SED -e 1s/^X//" 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5816 printf %s "checking for grep that handles long lines and -e... " >&6; } 5817 if test ${ac_cv_path_GREP+y} 5818 then : 5819 printf %s "(cached) " >&6 5820 else case e in #( 5821 e) if test -z "$GREP"; then 5822 ac_path_GREP_found=false 5823 # Loop through the user's path and test for each of PROGNAME-LIST 5824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5826 do 5827 IFS=$as_save_IFS 5828 case $as_dir in #((( 5829 '') as_dir=./ ;; 5830 */) ;; 5831 *) as_dir=$as_dir/ ;; 5832 esac 5833 for ac_prog in grep ggrep 5834 do 5835 for ac_exec_ext in '' $ac_executable_extensions; do 5836 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5837 as_fn_executable_p "$ac_path_GREP" || continue 5838 # Check for GNU ac_path_GREP and select it if it is found. 5839 # Check for GNU $ac_path_GREP 5840 case `"$ac_path_GREP" --version 2>&1` in #( 5841 *GNU*) 5842 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5843 #( 5844 *) 5845 ac_count=0 5846 printf %s 0123456789 >"conftest.in" 5847 while : 5848 do 5849 cat "conftest.in" "conftest.in" >"conftest.tmp" 5850 mv "conftest.tmp" "conftest.in" 5851 cp "conftest.in" "conftest.nl" 5852 printf "%s\n" 'GREP' >> "conftest.nl" 5853 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5855 as_fn_arith $ac_count + 1 && ac_count=$as_val 5856 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5857 # Best one so far, save it but keep looking for a better one 5858 ac_cv_path_GREP="$ac_path_GREP" 5859 ac_path_GREP_max=$ac_count 5860 fi 5861 # 10*(2^10) chars as input seems more than enough 5862 test $ac_count -gt 10 && break 5863 done 5864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5865 esac 5866 5867 $ac_path_GREP_found && break 3 5868 done 5869 done 5870 done 5871 IFS=$as_save_IFS 5872 if test -z "$ac_cv_path_GREP"; then 5873 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5874 fi 5875 else 5876 ac_cv_path_GREP=$GREP 5877 fi 5878 ;; 5879 esac 5880 fi 5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5882 printf "%s\n" "$ac_cv_path_GREP" >&6; } 5883 GREP="$ac_cv_path_GREP" 5884 5885 5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5887 printf %s "checking for egrep... " >&6; } 5888 if test ${ac_cv_path_EGREP+y} 5889 then : 5890 printf %s "(cached) " >&6 5891 else case e in #( 5892 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5893 then ac_cv_path_EGREP="$GREP -E" 5894 else 5895 if test -z "$EGREP"; then 5896 ac_path_EGREP_found=false 5897 # Loop through the user's path and test for each of PROGNAME-LIST 5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5899 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5900 do 5901 IFS=$as_save_IFS 5902 case $as_dir in #((( 5903 '') as_dir=./ ;; 5904 */) ;; 5905 *) as_dir=$as_dir/ ;; 5906 esac 5907 for ac_prog in egrep 5908 do 5909 for ac_exec_ext in '' $ac_executable_extensions; do 5910 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 5911 as_fn_executable_p "$ac_path_EGREP" || continue 5912 # Check for GNU ac_path_EGREP and select it if it is found. 5913 # Check for GNU $ac_path_EGREP 5914 case `"$ac_path_EGREP" --version 2>&1` in #( 5915 *GNU*) 5916 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5917 #( 5918 *) 5919 ac_count=0 5920 printf %s 0123456789 >"conftest.in" 5921 while : 5922 do 5923 cat "conftest.in" "conftest.in" >"conftest.tmp" 5924 mv "conftest.tmp" "conftest.in" 5925 cp "conftest.in" "conftest.nl" 5926 printf "%s\n" 'EGREP' >> "conftest.nl" 5927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5929 as_fn_arith $ac_count + 1 && ac_count=$as_val 5930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5931 # Best one so far, save it but keep looking for a better one 5932 ac_cv_path_EGREP="$ac_path_EGREP" 5933 ac_path_EGREP_max=$ac_count 5934 fi 5935 # 10*(2^10) chars as input seems more than enough 5936 test $ac_count -gt 10 && break 5937 done 5938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5939 esac 5940 5941 $ac_path_EGREP_found && break 3 5942 done 5943 done 5944 done 5945 IFS=$as_save_IFS 5946 if test -z "$ac_cv_path_EGREP"; then 5947 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5948 fi 5949 else 5950 ac_cv_path_EGREP=$EGREP 5951 fi 5952 5953 fi ;; 5954 esac 5955 fi 5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5957 printf "%s\n" "$ac_cv_path_EGREP" >&6; } 5958 EGREP="$ac_cv_path_EGREP" 5959 5960 EGREP_TRADITIONAL=$EGREP 5961 ac_cv_path_EGREP_TRADITIONAL=$EGREP 5962 5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5964 printf %s "checking for fgrep... " >&6; } 5965 if test ${ac_cv_path_FGREP+y} 5966 then : 5967 printf %s "(cached) " >&6 5968 else case e in #( 5969 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5970 then ac_cv_path_FGREP="$GREP -F" 5971 else 5972 if test -z "$FGREP"; then 5973 ac_path_FGREP_found=false 5974 # Loop through the user's path and test for each of PROGNAME-LIST 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5977 do 5978 IFS=$as_save_IFS 5979 case $as_dir in #((( 5980 '') as_dir=./ ;; 5981 */) ;; 5982 *) as_dir=$as_dir/ ;; 5983 esac 5984 for ac_prog in fgrep 5985 do 5986 for ac_exec_ext in '' $ac_executable_extensions; do 5987 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 5988 as_fn_executable_p "$ac_path_FGREP" || continue 5989 # Check for GNU ac_path_FGREP and select it if it is found. 5990 # Check for GNU $ac_path_FGREP 5991 case `"$ac_path_FGREP" --version 2>&1` in #( 5992 *GNU*) 5993 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5994 #( 5995 *) 5996 ac_count=0 5997 printf %s 0123456789 >"conftest.in" 5998 while : 5999 do 6000 cat "conftest.in" "conftest.in" >"conftest.tmp" 6001 mv "conftest.tmp" "conftest.in" 6002 cp "conftest.in" "conftest.nl" 6003 printf "%s\n" 'FGREP' >> "conftest.nl" 6004 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6006 as_fn_arith $ac_count + 1 && ac_count=$as_val 6007 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6008 # Best one so far, save it but keep looking for a better one 6009 ac_cv_path_FGREP="$ac_path_FGREP" 6010 ac_path_FGREP_max=$ac_count 6011 fi 6012 # 10*(2^10) chars as input seems more than enough 6013 test $ac_count -gt 10 && break 6014 done 6015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6016 esac 6017 6018 $ac_path_FGREP_found && break 3 6019 done 6020 done 6021 done 6022 IFS=$as_save_IFS 6023 if test -z "$ac_cv_path_FGREP"; then 6024 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6025 fi 6026 else 6027 ac_cv_path_FGREP=$FGREP 6028 fi 6029 6030 fi ;; 6031 esac 6032 fi 6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6034 printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6035 FGREP="$ac_cv_path_FGREP" 6036 6037 6038 test -z "$GREP" && GREP=grep 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 # Check whether --with-gnu-ld was given. 6059 if test ${with_gnu_ld+y} 6060 then : 6061 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6062 else case e in #( 6063 e) with_gnu_ld=no ;; 6064 esac 6065 fi 6066 6067 ac_prog=ld 6068 if test yes = "$GCC"; then 6069 # Check if gcc -print-prog-name=ld gives a path. 6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6071 printf %s "checking for ld used by $CC... " >&6; } 6072 case $host in 6073 *-*-mingw*) 6074 # gcc leaves a trailing carriage return, which upsets mingw 6075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6076 *) 6077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6078 esac 6079 case $ac_prog in 6080 # Accept absolute paths. 6081 [\\/]* | ?:[\\/]*) 6082 re_direlt='/[^/][^/]*/\.\./' 6083 # Canonicalize the pathname of ld 6084 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6085 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6086 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6087 done 6088 test -z "$LD" && LD=$ac_prog 6089 ;; 6090 "") 6091 # If it fails, then pretend we aren't using GCC. 6092 ac_prog=ld 6093 ;; 6094 *) 6095 # If it is relative, then search for the first ld in PATH. 6096 with_gnu_ld=unknown 6097 ;; 6098 esac 6099 elif test yes = "$with_gnu_ld"; then 6100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6101 printf %s "checking for GNU ld... " >&6; } 6102 else 6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6104 printf %s "checking for non-GNU ld... " >&6; } 6105 fi 6106 if test ${lt_cv_path_LD+y} 6107 then : 6108 printf %s "(cached) " >&6 6109 else case e in #( 6110 e) if test -z "$LD"; then 6111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6112 for ac_dir in $PATH; do 6113 IFS=$lt_save_ifs 6114 test -z "$ac_dir" && ac_dir=. 6115 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6116 lt_cv_path_LD=$ac_dir/$ac_prog 6117 # Check to see if the program is GNU ld. I'd rather use --version, 6118 # but apparently some variants of GNU ld only accept -v. 6119 # Break only if it was the GNU/non-GNU ld that we prefer. 6120 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6121 *GNU* | *'with BFD'*) 6122 test no != "$with_gnu_ld" && break 6123 ;; 6124 *) 6125 test yes != "$with_gnu_ld" && break 6126 ;; 6127 esac 6128 fi 6129 done 6130 IFS=$lt_save_ifs 6131 else 6132 lt_cv_path_LD=$LD # Let the user override the test with a path. 6133 fi ;; 6134 esac 6135 fi 6136 6137 LD=$lt_cv_path_LD 6138 if test -n "$LD"; then 6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6140 printf "%s\n" "$LD" >&6; } 6141 else 6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6143 printf "%s\n" "no" >&6; } 6144 fi 6145 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6147 printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6148 if test ${lt_cv_prog_gnu_ld+y} 6149 then : 6150 printf %s "(cached) " >&6 6151 else case e in #( 6152 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 6153 case `$LD -v 2>&1 </dev/null` in 6154 *GNU* | *'with BFD'*) 6155 lt_cv_prog_gnu_ld=yes 6156 ;; 6157 *) 6158 lt_cv_prog_gnu_ld=no 6159 ;; 6160 esac ;; 6161 esac 6162 fi 6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6164 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6165 with_gnu_ld=$lt_cv_prog_gnu_ld 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6176 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6177 if test ${lt_cv_path_NM+y} 6178 then : 6179 printf %s "(cached) " >&6 6180 else case e in #( 6181 e) if test -n "$NM"; then 6182 # Let the user override the test. 6183 lt_cv_path_NM=$NM 6184 else 6185 lt_nm_to_check=${ac_tool_prefix}nm 6186 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6187 lt_nm_to_check="$lt_nm_to_check nm" 6188 fi 6189 for lt_tmp_nm in $lt_nm_to_check; do 6190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6191 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6192 IFS=$lt_save_ifs 6193 test -z "$ac_dir" && ac_dir=. 6194 tmp_nm=$ac_dir/$lt_tmp_nm 6195 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6196 # Check to see if the nm accepts a BSD-compat flag. 6197 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6198 # nm: unknown option "B" ignored 6199 # Tru64's nm complains that /dev/null is an invalid object file 6200 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6201 case $build_os in 6202 mingw*) lt_bad_file=conftest.nm/nofile ;; 6203 *) lt_bad_file=/dev/null ;; 6204 esac 6205 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6206 *$lt_bad_file* | *'Invalid file or object type'*) 6207 lt_cv_path_NM="$tmp_nm -B" 6208 break 2 6209 ;; 6210 *) 6211 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6212 */dev/null*) 6213 lt_cv_path_NM="$tmp_nm -p" 6214 break 2 6215 ;; 6216 *) 6217 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6218 continue # so that we can try to find one that supports BSD flags 6219 ;; 6220 esac 6221 ;; 6222 esac 6223 fi 6224 done 6225 IFS=$lt_save_ifs 6226 done 6227 : ${lt_cv_path_NM=no} 6228 fi ;; 6229 esac 6230 fi 6231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6232 printf "%s\n" "$lt_cv_path_NM" >&6; } 6233 if test no != "$lt_cv_path_NM"; then 6234 NM=$lt_cv_path_NM 6235 else 6236 # Didn't find any BSD compatible name lister, look for dumpbin. 6237 if test -n "$DUMPBIN"; then : 6238 # Let the user override the test. 6239 else 6240 if test -n "$ac_tool_prefix"; then 6241 for ac_prog in dumpbin "link -dump" 6242 do 6243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6246 printf %s "checking for $ac_word... " >&6; } 6247 if test ${ac_cv_prog_DUMPBIN+y} 6248 then : 6249 printf %s "(cached) " >&6 6250 else case e in #( 6251 e) if test -n "$DUMPBIN"; then 6252 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6253 else 6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255 for as_dir in $PATH 6256 do 6257 IFS=$as_save_IFS 6258 case $as_dir in #((( 6259 '') as_dir=./ ;; 6260 */) ;; 6261 *) as_dir=$as_dir/ ;; 6262 esac 6263 for ac_exec_ext in '' $ac_executable_extensions; do 6264 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6265 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6267 break 2 6268 fi 6269 done 6270 done 6271 IFS=$as_save_IFS 6272 6273 fi ;; 6274 esac 6275 fi 6276 DUMPBIN=$ac_cv_prog_DUMPBIN 6277 if test -n "$DUMPBIN"; then 6278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6279 printf "%s\n" "$DUMPBIN" >&6; } 6280 else 6281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6282 printf "%s\n" "no" >&6; } 6283 fi 6284 6285 6286 test -n "$DUMPBIN" && break 6287 done 6288 fi 6289 if test -z "$DUMPBIN"; then 6290 ac_ct_DUMPBIN=$DUMPBIN 6291 for ac_prog in dumpbin "link -dump" 6292 do 6293 # Extract the first word of "$ac_prog", so it can be a program name with args. 6294 set dummy $ac_prog; ac_word=$2 6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6296 printf %s "checking for $ac_word... " >&6; } 6297 if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6298 then : 6299 printf %s "(cached) " >&6 6300 else case e in #( 6301 e) if test -n "$ac_ct_DUMPBIN"; then 6302 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6303 else 6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305 for as_dir in $PATH 6306 do 6307 IFS=$as_save_IFS 6308 case $as_dir in #((( 6309 '') as_dir=./ ;; 6310 */) ;; 6311 *) as_dir=$as_dir/ ;; 6312 esac 6313 for ac_exec_ext in '' $ac_executable_extensions; do 6314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6315 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6317 break 2 6318 fi 6319 done 6320 done 6321 IFS=$as_save_IFS 6322 6323 fi ;; 6324 esac 6325 fi 6326 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6327 if test -n "$ac_ct_DUMPBIN"; then 6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6329 printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6330 else 6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6332 printf "%s\n" "no" >&6; } 6333 fi 6334 6335 6336 test -n "$ac_ct_DUMPBIN" && break 6337 done 6338 6339 if test "x$ac_ct_DUMPBIN" = x; then 6340 DUMPBIN=":" 6341 else 6342 case $cross_compiling:$ac_tool_warned in 6343 yes:) 6344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6346 ac_tool_warned=yes ;; 6347 esac 6348 DUMPBIN=$ac_ct_DUMPBIN 6349 fi 6350 fi 6351 6352 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6353 *COFF*) 6354 DUMPBIN="$DUMPBIN -symbols -headers" 6355 ;; 6356 *) 6357 DUMPBIN=: 6358 ;; 6359 esac 6360 fi 6361 6362 if test : != "$DUMPBIN"; then 6363 NM=$DUMPBIN 6364 fi 6365 fi 6366 test -z "$NM" && NM=nm 6367 6368 6369 6370 6371 6372 6373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6374 printf %s "checking the name lister ($NM) interface... " >&6; } 6375 if test ${lt_cv_nm_interface+y} 6376 then : 6377 printf %s "(cached) " >&6 6378 else case e in #( 6379 e) lt_cv_nm_interface="BSD nm" 6380 echo "int some_variable = 0;" > conftest.$ac_ext 6381 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6382 (eval "$ac_compile" 2>conftest.err) 6383 cat conftest.err >&5 6384 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6385 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6386 cat conftest.err >&5 6387 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6388 cat conftest.out >&5 6389 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6390 lt_cv_nm_interface="MS dumpbin" 6391 fi 6392 rm -f conftest* ;; 6393 esac 6394 fi 6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6396 printf "%s\n" "$lt_cv_nm_interface" >&6; } 6397 6398 # find the maximum length of command line arguments 6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6400 printf %s "checking the maximum length of command line arguments... " >&6; } 6401 if test ${lt_cv_sys_max_cmd_len+y} 6402 then : 6403 printf %s "(cached) " >&6 6404 else case e in #( 6405 e) i=0 6406 teststring=ABCD 6407 6408 case $build_os in 6409 msdosdjgpp*) 6410 # On DJGPP, this test can blow up pretty badly due to problems in libc 6411 # (any single argument exceeding 2000 bytes causes a buffer overrun 6412 # during glob expansion). Even if it were fixed, the result of this 6413 # check would be larger than it should be. 6414 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6415 ;; 6416 6417 gnu*) 6418 # Under GNU Hurd, this test is not required because there is 6419 # no limit to the length of command line arguments. 6420 # Libtool will interpret -1 as no limit whatsoever 6421 lt_cv_sys_max_cmd_len=-1; 6422 ;; 6423 6424 cygwin* | mingw* | cegcc*) 6425 # On Win9x/ME, this test blows up -- it succeeds, but takes 6426 # about 5 minutes as the teststring grows exponentially. 6427 # Worse, since 9x/ME are not pre-emptively multitasking, 6428 # you end up with a "frozen" computer, even though with patience 6429 # the test eventually succeeds (with a max line length of 256k). 6430 # Instead, let's just punt: use the minimum linelength reported by 6431 # all of the supported platforms: 8192 (on NT/2K/XP). 6432 lt_cv_sys_max_cmd_len=8192; 6433 ;; 6434 6435 mint*) 6436 # On MiNT this can take a long time and run out of memory. 6437 lt_cv_sys_max_cmd_len=8192; 6438 ;; 6439 6440 amigaos*) 6441 # On AmigaOS with pdksh, this test takes hours, literally. 6442 # So we just punt and use a minimum line length of 8192. 6443 lt_cv_sys_max_cmd_len=8192; 6444 ;; 6445 6446 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6447 # This has been around since 386BSD, at least. Likely further. 6448 if test -x /sbin/sysctl; then 6449 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6450 elif test -x /usr/sbin/sysctl; then 6451 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6452 else 6453 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6454 fi 6455 # And add a safety zone 6456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6458 ;; 6459 6460 interix*) 6461 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6462 lt_cv_sys_max_cmd_len=196608 6463 ;; 6464 6465 os2*) 6466 # The test takes a long time on OS/2. 6467 lt_cv_sys_max_cmd_len=8192 6468 ;; 6469 6470 osf*) 6471 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6472 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6473 # nice to cause kernel panics so lets avoid the loop below. 6474 # First set a reasonable default. 6475 lt_cv_sys_max_cmd_len=16384 6476 # 6477 if test -x /sbin/sysconfig; then 6478 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6479 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6480 esac 6481 fi 6482 ;; 6483 sco3.2v5*) 6484 lt_cv_sys_max_cmd_len=102400 6485 ;; 6486 sysv5* | sco5v6* | sysv4.2uw2*) 6487 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6488 if test -n "$kargmax"; then 6489 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6490 else 6491 lt_cv_sys_max_cmd_len=32768 6492 fi 6493 ;; 6494 *) 6495 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6496 if test -n "$lt_cv_sys_max_cmd_len" && \ 6497 test undefined != "$lt_cv_sys_max_cmd_len"; then 6498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6500 else 6501 # Make teststring a little bigger before we do anything with it. 6502 # a 1K string should be a reasonable start. 6503 for i in 1 2 3 4 5 6 7 8; do 6504 teststring=$teststring$teststring 6505 done 6506 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6507 # If test is not a shell built-in, we'll probably end up computing a 6508 # maximum length that is only half of the actual maximum length, but 6509 # we can't tell. 6510 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6511 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6512 test 17 != "$i" # 1/2 MB should be enough 6513 do 6514 i=`expr $i + 1` 6515 teststring=$teststring$teststring 6516 done 6517 # Only check the string length outside the loop. 6518 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6519 teststring= 6520 # Add a significant safety factor because C++ compilers can tack on 6521 # massive amounts of additional arguments before passing them to the 6522 # linker. It appears as though 1/2 is a usable value. 6523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6524 fi 6525 ;; 6526 esac 6527 ;; 6528 esac 6529 fi 6530 6531 if test -n "$lt_cv_sys_max_cmd_len"; then 6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6533 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6534 else 6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6536 printf "%s\n" "none" >&6; } 6537 fi 6538 max_cmd_len=$lt_cv_sys_max_cmd_len 6539 6540 6541 6542 6543 6544 6545 : ${CP="cp -f"} 6546 : ${MV="mv -f"} 6547 : ${RM="rm -f"} 6548 6549 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6550 lt_unset=unset 6551 else 6552 lt_unset=false 6553 fi 6554 6555 6556 6557 6558 6559 # test EBCDIC or ASCII 6560 case `echo X|tr X '\101'` in 6561 A) # ASCII based system 6562 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6563 lt_SP2NL='tr \040 \012' 6564 lt_NL2SP='tr \015\012 \040\040' 6565 ;; 6566 *) # EBCDIC based system 6567 lt_SP2NL='tr \100 \n' 6568 lt_NL2SP='tr \r\n \100\100' 6569 ;; 6570 esac 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6581 printf %s "checking how to convert $build file names to $host format... " >&6; } 6582 if test ${lt_cv_to_host_file_cmd+y} 6583 then : 6584 printf %s "(cached) " >&6 6585 else case e in #( 6586 e) case $host in 6587 *-*-mingw* ) 6588 case $build in 6589 *-*-mingw* ) # actually msys 6590 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6591 ;; 6592 *-*-cygwin* ) 6593 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6594 ;; 6595 * ) # otherwise, assume *nix 6596 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6597 ;; 6598 esac 6599 ;; 6600 *-*-cygwin* ) 6601 case $build in 6602 *-*-mingw* ) # actually msys 6603 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6604 ;; 6605 *-*-cygwin* ) 6606 lt_cv_to_host_file_cmd=func_convert_file_noop 6607 ;; 6608 * ) # otherwise, assume *nix 6609 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6610 ;; 6611 esac 6612 ;; 6613 * ) # unhandled hosts (and "normal" native builds) 6614 lt_cv_to_host_file_cmd=func_convert_file_noop 6615 ;; 6616 esac 6617 ;; 6618 esac 6619 fi 6620 6621 to_host_file_cmd=$lt_cv_to_host_file_cmd 6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6623 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6624 6625 6626 6627 6628 6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6630 printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6631 if test ${lt_cv_to_tool_file_cmd+y} 6632 then : 6633 printf %s "(cached) " >&6 6634 else case e in #( 6635 e) #assume ordinary cross tools, or native build. 6636 lt_cv_to_tool_file_cmd=func_convert_file_noop 6637 case $host in 6638 *-*-mingw* ) 6639 case $build in 6640 *-*-mingw* ) # actually msys 6641 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6642 ;; 6643 esac 6644 ;; 6645 esac 6646 ;; 6647 esac 6648 fi 6649 6650 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6652 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6653 6654 6655 6656 6657 6658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6659 printf %s "checking for $LD option to reload object files... " >&6; } 6660 if test ${lt_cv_ld_reload_flag+y} 6661 then : 6662 printf %s "(cached) " >&6 6663 else case e in #( 6664 e) lt_cv_ld_reload_flag='-r' ;; 6665 esac 6666 fi 6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6668 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6669 reload_flag=$lt_cv_ld_reload_flag 6670 case $reload_flag in 6671 "" | " "*) ;; 6672 *) reload_flag=" $reload_flag" ;; 6673 esac 6674 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6675 case $host_os in 6676 cygwin* | mingw* | pw32* | cegcc*) 6677 if test yes != "$GCC"; then 6678 reload_cmds=false 6679 fi 6680 ;; 6681 darwin*) 6682 if test yes = "$GCC"; then 6683 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6684 else 6685 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6686 fi 6687 ;; 6688 esac 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 if test -n "$ac_tool_prefix"; then 6699 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6700 set dummy ${ac_tool_prefix}file; ac_word=$2 6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6702 printf %s "checking for $ac_word... " >&6; } 6703 if test ${ac_cv_prog_FILECMD+y} 6704 then : 6705 printf %s "(cached) " >&6 6706 else case e in #( 6707 e) if test -n "$FILECMD"; then 6708 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6709 else 6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6711 for as_dir in $PATH 6712 do 6713 IFS=$as_save_IFS 6714 case $as_dir in #((( 6715 '') as_dir=./ ;; 6716 */) ;; 6717 *) as_dir=$as_dir/ ;; 6718 esac 6719 for ac_exec_ext in '' $ac_executable_extensions; do 6720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6721 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6723 break 2 6724 fi 6725 done 6726 done 6727 IFS=$as_save_IFS 6728 6729 fi ;; 6730 esac 6731 fi 6732 FILECMD=$ac_cv_prog_FILECMD 6733 if test -n "$FILECMD"; then 6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6735 printf "%s\n" "$FILECMD" >&6; } 6736 else 6737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6738 printf "%s\n" "no" >&6; } 6739 fi 6740 6741 6742 fi 6743 if test -z "$ac_cv_prog_FILECMD"; then 6744 ac_ct_FILECMD=$FILECMD 6745 # Extract the first word of "file", so it can be a program name with args. 6746 set dummy file; ac_word=$2 6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748 printf %s "checking for $ac_word... " >&6; } 6749 if test ${ac_cv_prog_ac_ct_FILECMD+y} 6750 then : 6751 printf %s "(cached) " >&6 6752 else case e in #( 6753 e) if test -n "$ac_ct_FILECMD"; then 6754 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6755 else 6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6757 for as_dir in $PATH 6758 do 6759 IFS=$as_save_IFS 6760 case $as_dir in #((( 6761 '') as_dir=./ ;; 6762 */) ;; 6763 *) as_dir=$as_dir/ ;; 6764 esac 6765 for ac_exec_ext in '' $ac_executable_extensions; do 6766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6767 ac_cv_prog_ac_ct_FILECMD="file" 6768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6769 break 2 6770 fi 6771 done 6772 done 6773 IFS=$as_save_IFS 6774 6775 fi ;; 6776 esac 6777 fi 6778 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6779 if test -n "$ac_ct_FILECMD"; then 6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6781 printf "%s\n" "$ac_ct_FILECMD" >&6; } 6782 else 6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6784 printf "%s\n" "no" >&6; } 6785 fi 6786 6787 if test "x$ac_ct_FILECMD" = x; then 6788 FILECMD=":" 6789 else 6790 case $cross_compiling:$ac_tool_warned in 6791 yes:) 6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6793 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6794 ac_tool_warned=yes ;; 6795 esac 6796 FILECMD=$ac_ct_FILECMD 6797 fi 6798 else 6799 FILECMD="$ac_cv_prog_FILECMD" 6800 fi 6801 6802 6803 6804 6805 6806 6807 6808 if test -n "$ac_tool_prefix"; then 6809 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6810 set dummy ${ac_tool_prefix}objdump; ac_word=$2 6811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6812 printf %s "checking for $ac_word... " >&6; } 6813 if test ${ac_cv_prog_OBJDUMP+y} 6814 then : 6815 printf %s "(cached) " >&6 6816 else case e in #( 6817 e) if test -n "$OBJDUMP"; then 6818 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6819 else 6820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6821 for as_dir in $PATH 6822 do 6823 IFS=$as_save_IFS 6824 case $as_dir in #((( 6825 '') as_dir=./ ;; 6826 */) ;; 6827 *) as_dir=$as_dir/ ;; 6828 esac 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835 done 6836 done 6837 IFS=$as_save_IFS 6838 6839 fi ;; 6840 esac 6841 fi 6842 OBJDUMP=$ac_cv_prog_OBJDUMP 6843 if test -n "$OBJDUMP"; then 6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6845 printf "%s\n" "$OBJDUMP" >&6; } 6846 else 6847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848 printf "%s\n" "no" >&6; } 6849 fi 6850 6851 6852 fi 6853 if test -z "$ac_cv_prog_OBJDUMP"; then 6854 ac_ct_OBJDUMP=$OBJDUMP 6855 # Extract the first word of "objdump", so it can be a program name with args. 6856 set dummy objdump; ac_word=$2 6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6858 printf %s "checking for $ac_word... " >&6; } 6859 if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 6860 then : 6861 printf %s "(cached) " >&6 6862 else case e in #( 6863 e) if test -n "$ac_ct_OBJDUMP"; then 6864 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6865 else 6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6867 for as_dir in $PATH 6868 do 6869 IFS=$as_save_IFS 6870 case $as_dir in #((( 6871 '') as_dir=./ ;; 6872 */) ;; 6873 *) as_dir=$as_dir/ ;; 6874 esac 6875 for ac_exec_ext in '' $ac_executable_extensions; do 6876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6877 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6879 break 2 6880 fi 6881 done 6882 done 6883 IFS=$as_save_IFS 6884 6885 fi ;; 6886 esac 6887 fi 6888 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6889 if test -n "$ac_ct_OBJDUMP"; then 6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6891 printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 6892 else 6893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6894 printf "%s\n" "no" >&6; } 6895 fi 6896 6897 if test "x$ac_ct_OBJDUMP" = x; then 6898 OBJDUMP="false" 6899 else 6900 case $cross_compiling:$ac_tool_warned in 6901 yes:) 6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6904 ac_tool_warned=yes ;; 6905 esac 6906 OBJDUMP=$ac_ct_OBJDUMP 6907 fi 6908 else 6909 OBJDUMP="$ac_cv_prog_OBJDUMP" 6910 fi 6911 6912 test -z "$OBJDUMP" && OBJDUMP=objdump 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6923 printf %s "checking how to recognize dependent libraries... " >&6; } 6924 if test ${lt_cv_deplibs_check_method+y} 6925 then : 6926 printf %s "(cached) " >&6 6927 else case e in #( 6928 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 6929 lt_cv_file_magic_test_file= 6930 lt_cv_deplibs_check_method='unknown' 6931 # Need to set the preceding variable on all platforms that support 6932 # interlibrary dependencies. 6933 # 'none' -- dependencies not supported. 6934 # 'unknown' -- same as none, but documents that we really don't know. 6935 # 'pass_all' -- all dependencies passed with no checks. 6936 # 'test_compile' -- check by making test program. 6937 # 'file_magic [[regex]]' -- check by looking for files in library path 6938 # that responds to the $file_magic_cmd with a given extended regex. 6939 # If you have 'file' or equivalent on your system and you're not sure 6940 # whether 'pass_all' will *always* work, you probably want this one. 6941 6942 case $host_os in 6943 aix[4-9]*) 6944 lt_cv_deplibs_check_method=pass_all 6945 ;; 6946 6947 beos*) 6948 lt_cv_deplibs_check_method=pass_all 6949 ;; 6950 6951 bsdi[45]*) 6952 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6953 lt_cv_file_magic_cmd='$FILECMD -L' 6954 lt_cv_file_magic_test_file=/shlib/libc.so 6955 ;; 6956 6957 cygwin*) 6958 # func_win32_libid is a shell function defined in ltmain.sh 6959 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6960 lt_cv_file_magic_cmd='func_win32_libid' 6961 ;; 6962 6963 mingw* | pw32*) 6964 # Base MSYS/MinGW do not provide the 'file' command needed by 6965 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6966 # unless we find 'file', for example because we are cross-compiling. 6967 if ( file / ) >/dev/null 2>&1; then 6968 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6969 lt_cv_file_magic_cmd='func_win32_libid' 6970 else 6971 # Keep this pattern in sync with the one in func_win32_libid. 6972 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6973 lt_cv_file_magic_cmd='$OBJDUMP -f' 6974 fi 6975 ;; 6976 6977 cegcc*) 6978 # use the weaker test based on 'objdump'. See mingw*. 6979 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6980 lt_cv_file_magic_cmd='$OBJDUMP -f' 6981 ;; 6982 6983 darwin* | rhapsody*) 6984 lt_cv_deplibs_check_method=pass_all 6985 ;; 6986 6987 freebsd* | dragonfly* | midnightbsd*) 6988 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6989 case $host_cpu in 6990 i*86 ) 6991 # Not sure whether the presence of OpenBSD here was a mistake. 6992 # Let's accept both of them until this is cleared up. 6993 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6994 lt_cv_file_magic_cmd=$FILECMD 6995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6996 ;; 6997 esac 6998 else 6999 lt_cv_deplibs_check_method=pass_all 7000 fi 7001 ;; 7002 7003 haiku*) 7004 lt_cv_deplibs_check_method=pass_all 7005 ;; 7006 7007 hpux10.20* | hpux11*) 7008 lt_cv_file_magic_cmd=$FILECMD 7009 case $host_cpu in 7010 ia64*) 7011 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7012 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7013 ;; 7014 hppa*64*) 7015 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]' 7016 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7017 ;; 7018 *) 7019 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7020 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7021 ;; 7022 esac 7023 ;; 7024 7025 interix[3-9]*) 7026 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7027 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7028 ;; 7029 7030 irix5* | irix6* | nonstopux*) 7031 case $LD in 7032 *-32|*"-32 ") libmagic=32-bit;; 7033 *-n32|*"-n32 ") libmagic=N32;; 7034 *-64|*"-64 ") libmagic=64-bit;; 7035 *) libmagic=never-match;; 7036 esac 7037 lt_cv_deplibs_check_method=pass_all 7038 ;; 7039 7040 # This must be glibc/ELF. 7041 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7042 lt_cv_deplibs_check_method=pass_all 7043 ;; 7044 7045 netbsd*) 7046 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7048 else 7049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7050 fi 7051 ;; 7052 7053 newos6*) 7054 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7055 lt_cv_file_magic_cmd=$FILECMD 7056 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7057 ;; 7058 7059 *nto* | *qnx*) 7060 lt_cv_deplibs_check_method=pass_all 7061 ;; 7062 7063 openbsd* | bitrig*) 7064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7066 else 7067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7068 fi 7069 ;; 7070 7071 osf3* | osf4* | osf5*) 7072 lt_cv_deplibs_check_method=pass_all 7073 ;; 7074 7075 rdos*) 7076 lt_cv_deplibs_check_method=pass_all 7077 ;; 7078 7079 solaris*) 7080 lt_cv_deplibs_check_method=pass_all 7081 ;; 7082 7083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7084 lt_cv_deplibs_check_method=pass_all 7085 ;; 7086 7087 sysv4 | sysv4.3*) 7088 case $host_vendor in 7089 motorola) 7090 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]' 7091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7092 ;; 7093 ncr) 7094 lt_cv_deplibs_check_method=pass_all 7095 ;; 7096 sequent) 7097 lt_cv_file_magic_cmd='/bin/file' 7098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7099 ;; 7100 sni) 7101 lt_cv_file_magic_cmd='/bin/file' 7102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7103 lt_cv_file_magic_test_file=/lib/libc.so 7104 ;; 7105 siemens) 7106 lt_cv_deplibs_check_method=pass_all 7107 ;; 7108 pc) 7109 lt_cv_deplibs_check_method=pass_all 7110 ;; 7111 esac 7112 ;; 7113 7114 tpf*) 7115 lt_cv_deplibs_check_method=pass_all 7116 ;; 7117 os2*) 7118 lt_cv_deplibs_check_method=pass_all 7119 ;; 7120 esac 7121 ;; 7122 esac 7123 fi 7124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7125 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7126 7127 file_magic_glob= 7128 want_nocaseglob=no 7129 if test "$build" = "$host"; then 7130 case $host_os in 7131 mingw* | pw32*) 7132 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7133 want_nocaseglob=yes 7134 else 7135 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7136 fi 7137 ;; 7138 esac 7139 fi 7140 7141 file_magic_cmd=$lt_cv_file_magic_cmd 7142 deplibs_check_method=$lt_cv_deplibs_check_method 7143 test -z "$deplibs_check_method" && deplibs_check_method=unknown 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 if test -n "$ac_tool_prefix"; then 7167 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7168 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7170 printf %s "checking for $ac_word... " >&6; } 7171 if test ${ac_cv_prog_DLLTOOL+y} 7172 then : 7173 printf %s "(cached) " >&6 7174 else case e in #( 7175 e) if test -n "$DLLTOOL"; then 7176 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7177 else 7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7179 for as_dir in $PATH 7180 do 7181 IFS=$as_save_IFS 7182 case $as_dir in #((( 7183 '') as_dir=./ ;; 7184 */) ;; 7185 *) as_dir=$as_dir/ ;; 7186 esac 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7189 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193 done 7194 done 7195 IFS=$as_save_IFS 7196 7197 fi ;; 7198 esac 7199 fi 7200 DLLTOOL=$ac_cv_prog_DLLTOOL 7201 if test -n "$DLLTOOL"; then 7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7203 printf "%s\n" "$DLLTOOL" >&6; } 7204 else 7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7206 printf "%s\n" "no" >&6; } 7207 fi 7208 7209 7210 fi 7211 if test -z "$ac_cv_prog_DLLTOOL"; then 7212 ac_ct_DLLTOOL=$DLLTOOL 7213 # Extract the first word of "dlltool", so it can be a program name with args. 7214 set dummy dlltool; ac_word=$2 7215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7216 printf %s "checking for $ac_word... " >&6; } 7217 if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7218 then : 7219 printf %s "(cached) " >&6 7220 else case e in #( 7221 e) if test -n "$ac_ct_DLLTOOL"; then 7222 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7223 else 7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7225 for as_dir in $PATH 7226 do 7227 IFS=$as_save_IFS 7228 case $as_dir in #((( 7229 '') as_dir=./ ;; 7230 */) ;; 7231 *) as_dir=$as_dir/ ;; 7232 esac 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7235 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239 done 7240 done 7241 IFS=$as_save_IFS 7242 7243 fi ;; 7244 esac 7245 fi 7246 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7247 if test -n "$ac_ct_DLLTOOL"; then 7248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7249 printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7250 else 7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7252 printf "%s\n" "no" >&6; } 7253 fi 7254 7255 if test "x$ac_ct_DLLTOOL" = x; then 7256 DLLTOOL="false" 7257 else 7258 case $cross_compiling:$ac_tool_warned in 7259 yes:) 7260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7261 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7262 ac_tool_warned=yes ;; 7263 esac 7264 DLLTOOL=$ac_ct_DLLTOOL 7265 fi 7266 else 7267 DLLTOOL="$ac_cv_prog_DLLTOOL" 7268 fi 7269 7270 test -z "$DLLTOOL" && DLLTOOL=dlltool 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7282 printf %s "checking how to associate runtime and link libraries... " >&6; } 7283 if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7284 then : 7285 printf %s "(cached) " >&6 7286 else case e in #( 7287 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 7288 7289 case $host_os in 7290 cygwin* | mingw* | pw32* | cegcc*) 7291 # two different shell functions defined in ltmain.sh; 7292 # decide which one to use based on capabilities of $DLLTOOL 7293 case `$DLLTOOL --help 2>&1` in 7294 *--identify-strict*) 7295 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7296 ;; 7297 *) 7298 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7299 ;; 7300 esac 7301 ;; 7302 *) 7303 # fallback: assume linklib IS sharedlib 7304 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7305 ;; 7306 esac 7307 ;; 7308 esac 7309 fi 7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7311 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7312 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7313 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7314 7315 7316 7317 7318 7319 7320 7321 if test -n "$ac_tool_prefix"; then 7322 for ac_prog in ar 7323 do 7324 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7327 printf %s "checking for $ac_word... " >&6; } 7328 if test ${ac_cv_prog_AR+y} 7329 then : 7330 printf %s "(cached) " >&6 7331 else case e in #( 7332 e) if test -n "$AR"; then 7333 ac_cv_prog_AR="$AR" # Let the user override the test. 7334 else 7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7336 for as_dir in $PATH 7337 do 7338 IFS=$as_save_IFS 7339 case $as_dir in #((( 7340 '') as_dir=./ ;; 7341 */) ;; 7342 *) as_dir=$as_dir/ ;; 7343 esac 7344 for ac_exec_ext in '' $ac_executable_extensions; do 7345 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7346 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7347 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7348 break 2 7349 fi 7350 done 7351 done 7352 IFS=$as_save_IFS 7353 7354 fi ;; 7355 esac 7356 fi 7357 AR=$ac_cv_prog_AR 7358 if test -n "$AR"; then 7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7360 printf "%s\n" "$AR" >&6; } 7361 else 7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7363 printf "%s\n" "no" >&6; } 7364 fi 7365 7366 7367 test -n "$AR" && break 7368 done 7369 fi 7370 if test -z "$AR"; then 7371 ac_ct_AR=$AR 7372 for ac_prog in ar 7373 do 7374 # Extract the first word of "$ac_prog", so it can be a program name with args. 7375 set dummy $ac_prog; ac_word=$2 7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7377 printf %s "checking for $ac_word... " >&6; } 7378 if test ${ac_cv_prog_ac_ct_AR+y} 7379 then : 7380 printf %s "(cached) " >&6 7381 else case e in #( 7382 e) if test -n "$ac_ct_AR"; then 7383 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7384 else 7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7386 for as_dir in $PATH 7387 do 7388 IFS=$as_save_IFS 7389 case $as_dir in #((( 7390 '') as_dir=./ ;; 7391 */) ;; 7392 *) as_dir=$as_dir/ ;; 7393 esac 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7396 ac_cv_prog_ac_ct_AR="$ac_prog" 7397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400 done 7401 done 7402 IFS=$as_save_IFS 7403 7404 fi ;; 7405 esac 7406 fi 7407 ac_ct_AR=$ac_cv_prog_ac_ct_AR 7408 if test -n "$ac_ct_AR"; then 7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7410 printf "%s\n" "$ac_ct_AR" >&6; } 7411 else 7412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7413 printf "%s\n" "no" >&6; } 7414 fi 7415 7416 7417 test -n "$ac_ct_AR" && break 7418 done 7419 7420 if test "x$ac_ct_AR" = x; then 7421 AR="false" 7422 else 7423 case $cross_compiling:$ac_tool_warned in 7424 yes:) 7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7426 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7427 ac_tool_warned=yes ;; 7428 esac 7429 AR=$ac_ct_AR 7430 fi 7431 fi 7432 7433 : ${AR=ar} 7434 7435 7436 7437 7438 7439 7440 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 7441 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7442 # higher priority because thats what people were doing historically (setting 7443 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7444 # variable obsoleted/removed. 7445 7446 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7447 lt_ar_flags=$AR_FLAGS 7448 7449 7450 7451 7452 7453 7454 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7455 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7456 7457 7458 7459 7460 7461 7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7463 printf %s "checking for archiver @FILE support... " >&6; } 7464 if test ${lt_cv_ar_at_file+y} 7465 then : 7466 printf %s "(cached) " >&6 7467 else case e in #( 7468 e) lt_cv_ar_at_file=no 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470 /* end confdefs.h. */ 7471 7472 int 7473 main (void) 7474 { 7475 7476 ; 7477 return 0; 7478 } 7479 _ACEOF 7480 if ac_fn_c_try_compile "$LINENO" 7481 then : 7482 echo conftest.$ac_objext > conftest.lst 7483 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7485 (eval $lt_ar_try) 2>&5 7486 ac_status=$? 7487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7488 test $ac_status = 0; } 7489 if test 0 -eq "$ac_status"; then 7490 # Ensure the archiver fails upon bogus file names. 7491 rm -f conftest.$ac_objext libconftest.a 7492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7493 (eval $lt_ar_try) 2>&5 7494 ac_status=$? 7495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7496 test $ac_status = 0; } 7497 if test 0 -ne "$ac_status"; then 7498 lt_cv_ar_at_file=@ 7499 fi 7500 fi 7501 rm -f conftest.* libconftest.a 7502 7503 fi 7504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7505 ;; 7506 esac 7507 fi 7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7509 printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7510 7511 if test no = "$lt_cv_ar_at_file"; then 7512 archiver_list_spec= 7513 else 7514 archiver_list_spec=$lt_cv_ar_at_file 7515 fi 7516 7517 7518 7519 7520 7521 7522 7523 if test -n "$ac_tool_prefix"; then 7524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7525 set dummy ${ac_tool_prefix}strip; ac_word=$2 7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7527 printf %s "checking for $ac_word... " >&6; } 7528 if test ${ac_cv_prog_STRIP+y} 7529 then : 7530 printf %s "(cached) " >&6 7531 else case e in #( 7532 e) if test -n "$STRIP"; then 7533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7534 else 7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7536 for as_dir in $PATH 7537 do 7538 IFS=$as_save_IFS 7539 case $as_dir in #((( 7540 '') as_dir=./ ;; 7541 */) ;; 7542 *) as_dir=$as_dir/ ;; 7543 esac 7544 for ac_exec_ext in '' $ac_executable_extensions; do 7545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7546 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7548 break 2 7549 fi 7550 done 7551 done 7552 IFS=$as_save_IFS 7553 7554 fi ;; 7555 esac 7556 fi 7557 STRIP=$ac_cv_prog_STRIP 7558 if test -n "$STRIP"; then 7559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7560 printf "%s\n" "$STRIP" >&6; } 7561 else 7562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7563 printf "%s\n" "no" >&6; } 7564 fi 7565 7566 7567 fi 7568 if test -z "$ac_cv_prog_STRIP"; then 7569 ac_ct_STRIP=$STRIP 7570 # Extract the first word of "strip", so it can be a program name with args. 7571 set dummy strip; ac_word=$2 7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7573 printf %s "checking for $ac_word... " >&6; } 7574 if test ${ac_cv_prog_ac_ct_STRIP+y} 7575 then : 7576 printf %s "(cached) " >&6 7577 else case e in #( 7578 e) if test -n "$ac_ct_STRIP"; then 7579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7580 else 7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7582 for as_dir in $PATH 7583 do 7584 IFS=$as_save_IFS 7585 case $as_dir in #((( 7586 '') as_dir=./ ;; 7587 */) ;; 7588 *) as_dir=$as_dir/ ;; 7589 esac 7590 for ac_exec_ext in '' $ac_executable_extensions; do 7591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7592 ac_cv_prog_ac_ct_STRIP="strip" 7593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7594 break 2 7595 fi 7596 done 7597 done 7598 IFS=$as_save_IFS 7599 7600 fi ;; 7601 esac 7602 fi 7603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7604 if test -n "$ac_ct_STRIP"; then 7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7606 printf "%s\n" "$ac_ct_STRIP" >&6; } 7607 else 7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7609 printf "%s\n" "no" >&6; } 7610 fi 7611 7612 if test "x$ac_ct_STRIP" = x; then 7613 STRIP=":" 7614 else 7615 case $cross_compiling:$ac_tool_warned in 7616 yes:) 7617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7619 ac_tool_warned=yes ;; 7620 esac 7621 STRIP=$ac_ct_STRIP 7622 fi 7623 else 7624 STRIP="$ac_cv_prog_STRIP" 7625 fi 7626 7627 test -z "$STRIP" && STRIP=: 7628 7629 7630 7631 7632 7633 7634 if test -n "$ac_tool_prefix"; then 7635 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7636 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7638 printf %s "checking for $ac_word... " >&6; } 7639 if test ${ac_cv_prog_RANLIB+y} 7640 then : 7641 printf %s "(cached) " >&6 7642 else case e in #( 7643 e) if test -n "$RANLIB"; then 7644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7645 else 7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7647 for as_dir in $PATH 7648 do 7649 IFS=$as_save_IFS 7650 case $as_dir in #((( 7651 '') as_dir=./ ;; 7652 */) ;; 7653 *) as_dir=$as_dir/ ;; 7654 esac 7655 for ac_exec_ext in '' $ac_executable_extensions; do 7656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7657 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7659 break 2 7660 fi 7661 done 7662 done 7663 IFS=$as_save_IFS 7664 7665 fi ;; 7666 esac 7667 fi 7668 RANLIB=$ac_cv_prog_RANLIB 7669 if test -n "$RANLIB"; then 7670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7671 printf "%s\n" "$RANLIB" >&6; } 7672 else 7673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7674 printf "%s\n" "no" >&6; } 7675 fi 7676 7677 7678 fi 7679 if test -z "$ac_cv_prog_RANLIB"; then 7680 ac_ct_RANLIB=$RANLIB 7681 # Extract the first word of "ranlib", so it can be a program name with args. 7682 set dummy ranlib; ac_word=$2 7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7684 printf %s "checking for $ac_word... " >&6; } 7685 if test ${ac_cv_prog_ac_ct_RANLIB+y} 7686 then : 7687 printf %s "(cached) " >&6 7688 else case e in #( 7689 e) if test -n "$ac_ct_RANLIB"; then 7690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7691 else 7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7693 for as_dir in $PATH 7694 do 7695 IFS=$as_save_IFS 7696 case $as_dir in #((( 7697 '') as_dir=./ ;; 7698 */) ;; 7699 *) as_dir=$as_dir/ ;; 7700 esac 7701 for ac_exec_ext in '' $ac_executable_extensions; do 7702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7703 ac_cv_prog_ac_ct_RANLIB="ranlib" 7704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7705 break 2 7706 fi 7707 done 7708 done 7709 IFS=$as_save_IFS 7710 7711 fi ;; 7712 esac 7713 fi 7714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7715 if test -n "$ac_ct_RANLIB"; then 7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7717 printf "%s\n" "$ac_ct_RANLIB" >&6; } 7718 else 7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7720 printf "%s\n" "no" >&6; } 7721 fi 7722 7723 if test "x$ac_ct_RANLIB" = x; then 7724 RANLIB=":" 7725 else 7726 case $cross_compiling:$ac_tool_warned in 7727 yes:) 7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7729 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7730 ac_tool_warned=yes ;; 7731 esac 7732 RANLIB=$ac_ct_RANLIB 7733 fi 7734 else 7735 RANLIB="$ac_cv_prog_RANLIB" 7736 fi 7737 7738 test -z "$RANLIB" && RANLIB=: 7739 7740 7741 7742 7743 7744 7745 # Determine commands to create old-style static archives. 7746 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7747 old_postinstall_cmds='chmod 644 $oldlib' 7748 old_postuninstall_cmds= 7749 7750 if test -n "$RANLIB"; then 7751 case $host_os in 7752 bitrig* | openbsd*) 7753 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7754 ;; 7755 *) 7756 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7757 ;; 7758 esac 7759 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7760 fi 7761 7762 case $host_os in 7763 darwin*) 7764 lock_old_archive_extraction=yes ;; 7765 *) 7766 lock_old_archive_extraction=no ;; 7767 esac 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 # If no C compiler was specified, use CC. 7808 LTCC=${LTCC-"$CC"} 7809 7810 # If no C compiler flags were specified, use CFLAGS. 7811 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7812 7813 # Allow CC to be a program name with arguments. 7814 compiler=$CC 7815 7816 7817 # Check for command to grab the raw symbol name followed by C symbol from nm. 7818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7819 printf %s "checking command to parse $NM output from $compiler object... " >&6; } 7820 if test ${lt_cv_sys_global_symbol_pipe+y} 7821 then : 7822 printf %s "(cached) " >&6 7823 else case e in #( 7824 e) 7825 # These are sane defaults that work on at least a few old systems. 7826 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 7827 7828 # Character class describing NM global symbol codes. 7829 symcode='[BCDEGRST]' 7830 7831 # Regexp to match symbols that can be accessed directly from C. 7832 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7833 7834 # Define system-specific variables. 7835 case $host_os in 7836 aix*) 7837 symcode='[BCDT]' 7838 ;; 7839 cygwin* | mingw* | pw32* | cegcc*) 7840 symcode='[ABCDGISTW]' 7841 ;; 7842 hpux*) 7843 if test ia64 = "$host_cpu"; then 7844 symcode='[ABCDEGRST]' 7845 fi 7846 ;; 7847 irix* | nonstopux*) 7848 symcode='[BCDEGRST]' 7849 ;; 7850 osf*) 7851 symcode='[BCDEGQRST]' 7852 ;; 7853 solaris*) 7854 symcode='[BDRT]' 7855 ;; 7856 sco3.2v5*) 7857 symcode='[DT]' 7858 ;; 7859 sysv4.2uw2*) 7860 symcode='[DT]' 7861 ;; 7862 sysv5* | sco5v6* | unixware* | OpenUNIX*) 7863 symcode='[ABDT]' 7864 ;; 7865 sysv4) 7866 symcode='[DFNSTU]' 7867 ;; 7868 esac 7869 7870 # If we're using GNU nm, then use its standard symbol codes. 7871 case `$NM -V 2>&1` in 7872 *GNU* | *'with BFD'*) 7873 symcode='[ABCDGIRSTW]' ;; 7874 esac 7875 7876 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7877 # Gets list of data symbols to import. 7878 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 7879 # Adjust the below global symbol transforms to fixup imported variables. 7880 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7881 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7882 lt_c_name_lib_hook="\ 7883 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7884 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7885 else 7886 # Disable hooks by default. 7887 lt_cv_sys_global_symbol_to_import= 7888 lt_cdecl_hook= 7889 lt_c_name_hook= 7890 lt_c_name_lib_hook= 7891 fi 7892 7893 # Transform an extracted symbol line into a proper C declaration. 7894 # Some systems (esp. on ia64) link data and code symbols differently, 7895 # so use this general approach. 7896 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 7897 $lt_cdecl_hook\ 7898 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7899 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7900 7901 # Transform an extracted symbol line into symbol name and symbol address 7902 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 7903 $lt_c_name_hook\ 7904 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7905 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7906 7907 # Transform an extracted symbol line into symbol name with lib prefix and 7908 # symbol address. 7909 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 7910 $lt_c_name_lib_hook\ 7911 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7912 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7913 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7914 7915 # Handle CRLF in mingw tool chain 7916 opt_cr= 7917 case $build_os in 7918 mingw*) 7919 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7920 ;; 7921 esac 7922 7923 # Try without a prefix underscore, then with it. 7924 for ac_symprfx in "" "_"; do 7925 7926 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7927 symxfrm="\\1 $ac_symprfx\\2 \\2" 7928 7929 # Write the raw and C identifiers. 7930 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7931 # Fake it for dumpbin and say T for any non-static function, 7932 # D for any global variable and I for any imported variable. 7933 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7934 # which start with @ or ?. 7935 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7936 " {last_section=section; section=\$ 3};"\ 7937 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7938 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7939 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7940 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7941 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7942 " \$ 0!~/External *\|/{next};"\ 7943 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7944 " {if(hide[section]) next};"\ 7945 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7946 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7947 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7948 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7949 " ' prfx=^$ac_symprfx" 7950 else 7951 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7952 fi 7953 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 7954 7955 # Check to see that the pipe works correctly. 7956 pipe_works=no 7957 7958 rm -f conftest* 7959 cat > conftest.$ac_ext <<_LT_EOF 7960 #ifdef __cplusplus 7961 extern "C" { 7962 #endif 7963 char nm_test_var; 7964 void nm_test_func(void); 7965 void nm_test_func(void){} 7966 #ifdef __cplusplus 7967 } 7968 #endif 7969 int main(){nm_test_var='a';nm_test_func();return(0);} 7970 _LT_EOF 7971 7972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7973 (eval $ac_compile) 2>&5 7974 ac_status=$? 7975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7976 test $ac_status = 0; }; then 7977 # Now try to grab the symbols. 7978 nlist=conftest.nm 7979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7980 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7981 ac_status=$? 7982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7983 test $ac_status = 0; } && test -s "$nlist"; then 7984 # Try sorting and uniquifying the output. 7985 if sort "$nlist" | uniq > "$nlist"T; then 7986 mv -f "$nlist"T "$nlist" 7987 else 7988 rm -f "$nlist"T 7989 fi 7990 7991 # Make sure that we snagged all the symbols we need. 7992 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7993 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7994 cat <<_LT_EOF > conftest.$ac_ext 7995 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7996 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7997 /* DATA imports from DLLs on WIN32 can't be const, because runtime 7998 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7999 # define LT_DLSYM_CONST 8000 #elif defined __osf__ 8001 /* This system does not cope well with relocations in const data. */ 8002 # define LT_DLSYM_CONST 8003 #else 8004 # define LT_DLSYM_CONST const 8005 #endif 8006 8007 #ifdef __cplusplus 8008 extern "C" { 8009 #endif 8010 8011 _LT_EOF 8012 # Now generate the symbol file. 8013 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8014 8015 cat <<_LT_EOF >> conftest.$ac_ext 8016 8017 /* The mapping between symbol names and symbols. */ 8018 LT_DLSYM_CONST struct { 8019 const char *name; 8020 void *address; 8021 } 8022 lt__PROGRAM__LTX_preloaded_symbols[] = 8023 { 8024 { "@PROGRAM@", (void *) 0 }, 8025 _LT_EOF 8026 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8027 cat <<\_LT_EOF >> conftest.$ac_ext 8028 {0, (void *) 0} 8029 }; 8030 8031 /* This works around a problem in FreeBSD linker */ 8032 #ifdef FREEBSD_WORKAROUND 8033 static const void *lt_preloaded_setup() { 8034 return lt__PROGRAM__LTX_preloaded_symbols; 8035 } 8036 #endif 8037 8038 #ifdef __cplusplus 8039 } 8040 #endif 8041 _LT_EOF 8042 # Now try linking the two files. 8043 mv conftest.$ac_objext conftstm.$ac_objext 8044 lt_globsym_save_LIBS=$LIBS 8045 lt_globsym_save_CFLAGS=$CFLAGS 8046 LIBS=conftstm.$ac_objext 8047 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8049 (eval $ac_link) 2>&5 8050 ac_status=$? 8051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8052 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8053 pipe_works=yes 8054 fi 8055 LIBS=$lt_globsym_save_LIBS 8056 CFLAGS=$lt_globsym_save_CFLAGS 8057 else 8058 echo "cannot find nm_test_func in $nlist" >&5 8059 fi 8060 else 8061 echo "cannot find nm_test_var in $nlist" >&5 8062 fi 8063 else 8064 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8065 fi 8066 else 8067 echo "$progname: failed program was:" >&5 8068 cat conftest.$ac_ext >&5 8069 fi 8070 rm -rf conftest* conftst* 8071 8072 # Do not use the global_symbol_pipe unless it works. 8073 if test yes = "$pipe_works"; then 8074 break 8075 else 8076 lt_cv_sys_global_symbol_pipe= 8077 fi 8078 done 8079 ;; 8080 esac 8081 fi 8082 8083 if test -z "$lt_cv_sys_global_symbol_pipe"; then 8084 lt_cv_sys_global_symbol_to_cdecl= 8085 fi 8086 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8088 printf "%s\n" "failed" >&6; } 8089 else 8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8091 printf "%s\n" "ok" >&6; } 8092 fi 8093 8094 # Response file support. 8095 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8096 nm_file_list_spec='@' 8097 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8098 nm_file_list_spec='@' 8099 fi 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8138 printf %s "checking for sysroot... " >&6; } 8139 8140 # Check whether --with-sysroot was given. 8141 if test ${with_sysroot+y} 8142 then : 8143 withval=$with_sysroot; 8144 else case e in #( 8145 e) with_sysroot=no ;; 8146 esac 8147 fi 8148 8149 8150 lt_sysroot= 8151 case $with_sysroot in #( 8152 yes) 8153 if test yes = "$GCC"; then 8154 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8155 fi 8156 ;; #( 8157 /*) 8158 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8159 ;; #( 8160 no|'') 8161 ;; #( 8162 *) 8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8164 printf "%s\n" "$with_sysroot" >&6; } 8165 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8166 ;; 8167 esac 8168 8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8170 printf "%s\n" "${lt_sysroot:-no}" >&6; } 8171 8172 8173 8174 8175 8176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8177 printf %s "checking for a working dd... " >&6; } 8178 if test ${ac_cv_path_lt_DD+y} 8179 then : 8180 printf %s "(cached) " >&6 8181 else case e in #( 8182 e) printf 0123456789abcdef0123456789abcdef >conftest.i 8183 cat conftest.i conftest.i >conftest2.i 8184 : ${lt_DD:=$DD} 8185 if test -z "$lt_DD"; then 8186 ac_path_lt_DD_found=false 8187 # Loop through the user's path and test for each of PROGNAME-LIST 8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8189 for as_dir in $PATH 8190 do 8191 IFS=$as_save_IFS 8192 case $as_dir in #((( 8193 '') as_dir=./ ;; 8194 */) ;; 8195 *) as_dir=$as_dir/ ;; 8196 esac 8197 for ac_prog in dd 8198 do 8199 for ac_exec_ext in '' $ac_executable_extensions; do 8200 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8201 as_fn_executable_p "$ac_path_lt_DD" || continue 8202 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8203 cmp -s conftest.i conftest.out \ 8204 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8205 fi 8206 $ac_path_lt_DD_found && break 3 8207 done 8208 done 8209 done 8210 IFS=$as_save_IFS 8211 if test -z "$ac_cv_path_lt_DD"; then 8212 : 8213 fi 8214 else 8215 ac_cv_path_lt_DD=$lt_DD 8216 fi 8217 8218 rm -f conftest.i conftest2.i conftest.out ;; 8219 esac 8220 fi 8221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8222 printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8223 8224 8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8226 printf %s "checking how to truncate binary pipes... " >&6; } 8227 if test ${lt_cv_truncate_bin+y} 8228 then : 8229 printf %s "(cached) " >&6 8230 else case e in #( 8231 e) printf 0123456789abcdef0123456789abcdef >conftest.i 8232 cat conftest.i conftest.i >conftest2.i 8233 lt_cv_truncate_bin= 8234 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8235 cmp -s conftest.i conftest.out \ 8236 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8237 fi 8238 rm -f conftest.i conftest2.i conftest.out 8239 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 8240 esac 8241 fi 8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8243 printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8244 8245 8246 8247 8248 8249 8250 8251 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8252 func_cc_basename () 8253 { 8254 for cc_temp in $*""; do 8255 case $cc_temp in 8256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8258 \-*) ;; 8259 *) break;; 8260 esac 8261 done 8262 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8263 } 8264 8265 # Check whether --enable-libtool-lock was given. 8266 if test ${enable_libtool_lock+y} 8267 then : 8268 enableval=$enable_libtool_lock; 8269 fi 8270 8271 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8272 8273 # Some flags need to be propagated to the compiler or linker for good 8274 # libtool support. 8275 case $host in 8276 ia64-*-hpux*) 8277 # Find out what ABI is being produced by ac_compile, and set mode 8278 # options accordingly. 8279 echo 'int i;' > conftest.$ac_ext 8280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8281 (eval $ac_compile) 2>&5 8282 ac_status=$? 8283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8284 test $ac_status = 0; }; then 8285 case `$FILECMD conftest.$ac_objext` in 8286 *ELF-32*) 8287 HPUX_IA64_MODE=32 8288 ;; 8289 *ELF-64*) 8290 HPUX_IA64_MODE=64 8291 ;; 8292 esac 8293 fi 8294 rm -rf conftest* 8295 ;; 8296 *-*-irix6*) 8297 # Find out what ABI is being produced by ac_compile, and set linker 8298 # options accordingly. 8299 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8301 (eval $ac_compile) 2>&5 8302 ac_status=$? 8303 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8304 test $ac_status = 0; }; then 8305 if test yes = "$lt_cv_prog_gnu_ld"; then 8306 case `$FILECMD conftest.$ac_objext` in 8307 *32-bit*) 8308 LD="${LD-ld} -melf32bsmip" 8309 ;; 8310 *N32*) 8311 LD="${LD-ld} -melf32bmipn32" 8312 ;; 8313 *64-bit*) 8314 LD="${LD-ld} -melf64bmip" 8315 ;; 8316 esac 8317 else 8318 case `$FILECMD conftest.$ac_objext` in 8319 *32-bit*) 8320 LD="${LD-ld} -32" 8321 ;; 8322 *N32*) 8323 LD="${LD-ld} -n32" 8324 ;; 8325 *64-bit*) 8326 LD="${LD-ld} -64" 8327 ;; 8328 esac 8329 fi 8330 fi 8331 rm -rf conftest* 8332 ;; 8333 8334 mips64*-*linux*) 8335 # Find out what ABI is being produced by ac_compile, and set linker 8336 # options accordingly. 8337 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8339 (eval $ac_compile) 2>&5 8340 ac_status=$? 8341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8342 test $ac_status = 0; }; then 8343 emul=elf 8344 case `$FILECMD conftest.$ac_objext` in 8345 *32-bit*) 8346 emul="${emul}32" 8347 ;; 8348 *64-bit*) 8349 emul="${emul}64" 8350 ;; 8351 esac 8352 case `$FILECMD conftest.$ac_objext` in 8353 *MSB*) 8354 emul="${emul}btsmip" 8355 ;; 8356 *LSB*) 8357 emul="${emul}ltsmip" 8358 ;; 8359 esac 8360 case `$FILECMD conftest.$ac_objext` in 8361 *N32*) 8362 emul="${emul}n32" 8363 ;; 8364 esac 8365 LD="${LD-ld} -m $emul" 8366 fi 8367 rm -rf conftest* 8368 ;; 8369 8370 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8371 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8372 # Find out what ABI is being produced by ac_compile, and set linker 8373 # options accordingly. Note that the listed cases only cover the 8374 # situations where additional linker options are needed (such as when 8375 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8376 # vice versa); the common cases where no linker options are needed do 8377 # not appear in the list. 8378 echo 'int i;' > conftest.$ac_ext 8379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8380 (eval $ac_compile) 2>&5 8381 ac_status=$? 8382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8383 test $ac_status = 0; }; then 8384 case `$FILECMD conftest.o` in 8385 *32-bit*) 8386 case $host in 8387 x86_64-*kfreebsd*-gnu) 8388 LD="${LD-ld} -m elf_i386_fbsd" 8389 ;; 8390 x86_64-*linux*) 8391 case `$FILECMD conftest.o` in 8392 *x86-64*) 8393 LD="${LD-ld} -m elf32_x86_64" 8394 ;; 8395 *) 8396 LD="${LD-ld} -m elf_i386" 8397 ;; 8398 esac 8399 ;; 8400 powerpc64le-*linux*) 8401 LD="${LD-ld} -m elf32lppclinux" 8402 ;; 8403 powerpc64-*linux*) 8404 LD="${LD-ld} -m elf32ppclinux" 8405 ;; 8406 s390x-*linux*) 8407 LD="${LD-ld} -m elf_s390" 8408 ;; 8409 sparc64-*linux*) 8410 LD="${LD-ld} -m elf32_sparc" 8411 ;; 8412 esac 8413 ;; 8414 *64-bit*) 8415 case $host in 8416 x86_64-*kfreebsd*-gnu) 8417 LD="${LD-ld} -m elf_x86_64_fbsd" 8418 ;; 8419 x86_64-*linux*) 8420 LD="${LD-ld} -m elf_x86_64" 8421 ;; 8422 powerpcle-*linux*) 8423 LD="${LD-ld} -m elf64lppc" 8424 ;; 8425 powerpc-*linux*) 8426 LD="${LD-ld} -m elf64ppc" 8427 ;; 8428 s390*-*linux*|s390*-*tpf*) 8429 LD="${LD-ld} -m elf64_s390" 8430 ;; 8431 sparc*-*linux*) 8432 LD="${LD-ld} -m elf64_sparc" 8433 ;; 8434 esac 8435 ;; 8436 esac 8437 fi 8438 rm -rf conftest* 8439 ;; 8440 8441 *-*-sco3.2v5*) 8442 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8443 SAVE_CFLAGS=$CFLAGS 8444 CFLAGS="$CFLAGS -belf" 8445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8446 printf %s "checking whether the C compiler needs -belf... " >&6; } 8447 if test ${lt_cv_cc_needs_belf+y} 8448 then : 8449 printf %s "(cached) " >&6 8450 else case e in #( 8451 e) ac_ext=c 8452 ac_cpp='$CPP $CPPFLAGS' 8453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8455 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8456 8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458 /* end confdefs.h. */ 8459 8460 int 8461 main (void) 8462 { 8463 8464 ; 8465 return 0; 8466 } 8467 _ACEOF 8468 if ac_fn_c_try_link "$LINENO" 8469 then : 8470 lt_cv_cc_needs_belf=yes 8471 else case e in #( 8472 e) lt_cv_cc_needs_belf=no ;; 8473 esac 8474 fi 8475 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8476 conftest$ac_exeext conftest.$ac_ext 8477 ac_ext=c 8478 ac_cpp='$CPP $CPPFLAGS' 8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu 8482 ;; 8483 esac 8484 fi 8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8486 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8487 if test yes != "$lt_cv_cc_needs_belf"; then 8488 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8489 CFLAGS=$SAVE_CFLAGS 8490 fi 8491 ;; 8492 *-*solaris*) 8493 # Find out what ABI is being produced by ac_compile, and set linker 8494 # options accordingly. 8495 echo 'int i;' > conftest.$ac_ext 8496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8497 (eval $ac_compile) 2>&5 8498 ac_status=$? 8499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8500 test $ac_status = 0; }; then 8501 case `$FILECMD conftest.o` in 8502 *64-bit*) 8503 case $lt_cv_prog_gnu_ld in 8504 yes*) 8505 case $host in 8506 i?86-*-solaris*|x86_64-*-solaris*) 8507 LD="${LD-ld} -m elf_x86_64" 8508 ;; 8509 sparc*-*-solaris*) 8510 LD="${LD-ld} -m elf64_sparc" 8511 ;; 8512 esac 8513 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8514 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8515 LD=${LD-ld}_sol2 8516 fi 8517 ;; 8518 *) 8519 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8520 LD="${LD-ld} -64" 8521 fi 8522 ;; 8523 esac 8524 ;; 8525 esac 8526 fi 8527 rm -rf conftest* 8528 ;; 8529 esac 8530 8531 need_locks=$enable_libtool_lock 8532 8533 if test -n "$ac_tool_prefix"; then 8534 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8535 set dummy ${ac_tool_prefix}mt; ac_word=$2 8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8537 printf %s "checking for $ac_word... " >&6; } 8538 if test ${ac_cv_prog_MANIFEST_TOOL+y} 8539 then : 8540 printf %s "(cached) " >&6 8541 else case e in #( 8542 e) if test -n "$MANIFEST_TOOL"; then 8543 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8544 else 8545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8546 for as_dir in $PATH 8547 do 8548 IFS=$as_save_IFS 8549 case $as_dir in #((( 8550 '') as_dir=./ ;; 8551 */) ;; 8552 *) as_dir=$as_dir/ ;; 8553 esac 8554 for ac_exec_ext in '' $ac_executable_extensions; do 8555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8556 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8558 break 2 8559 fi 8560 done 8561 done 8562 IFS=$as_save_IFS 8563 8564 fi ;; 8565 esac 8566 fi 8567 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8568 if test -n "$MANIFEST_TOOL"; then 8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8570 printf "%s\n" "$MANIFEST_TOOL" >&6; } 8571 else 8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8573 printf "%s\n" "no" >&6; } 8574 fi 8575 8576 8577 fi 8578 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8579 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8580 # Extract the first word of "mt", so it can be a program name with args. 8581 set dummy mt; ac_word=$2 8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8583 printf %s "checking for $ac_word... " >&6; } 8584 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8585 then : 8586 printf %s "(cached) " >&6 8587 else case e in #( 8588 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8589 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8590 else 8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8592 for as_dir in $PATH 8593 do 8594 IFS=$as_save_IFS 8595 case $as_dir in #((( 8596 '') as_dir=./ ;; 8597 */) ;; 8598 *) as_dir=$as_dir/ ;; 8599 esac 8600 for ac_exec_ext in '' $ac_executable_extensions; do 8601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8602 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8604 break 2 8605 fi 8606 done 8607 done 8608 IFS=$as_save_IFS 8609 8610 fi ;; 8611 esac 8612 fi 8613 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8614 if test -n "$ac_ct_MANIFEST_TOOL"; then 8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8616 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8617 else 8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8619 printf "%s\n" "no" >&6; } 8620 fi 8621 8622 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8623 MANIFEST_TOOL=":" 8624 else 8625 case $cross_compiling:$ac_tool_warned in 8626 yes:) 8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8628 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8629 ac_tool_warned=yes ;; 8630 esac 8631 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8632 fi 8633 else 8634 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8635 fi 8636 8637 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8639 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8640 if test ${lt_cv_path_mainfest_tool+y} 8641 then : 8642 printf %s "(cached) " >&6 8643 else case e in #( 8644 e) lt_cv_path_mainfest_tool=no 8645 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8646 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8647 cat conftest.err >&5 8648 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8649 lt_cv_path_mainfest_tool=yes 8650 fi 8651 rm -f conftest* ;; 8652 esac 8653 fi 8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8655 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8656 if test yes != "$lt_cv_path_mainfest_tool"; then 8657 MANIFEST_TOOL=: 8658 fi 8659 8660 8661 8662 8663 8664 8665 case $host_os in 8666 rhapsody* | darwin*) 8667 if test -n "$ac_tool_prefix"; then 8668 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8669 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8671 printf %s "checking for $ac_word... " >&6; } 8672 if test ${ac_cv_prog_DSYMUTIL+y} 8673 then : 8674 printf %s "(cached) " >&6 8675 else case e in #( 8676 e) if test -n "$DSYMUTIL"; then 8677 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8678 else 8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8680 for as_dir in $PATH 8681 do 8682 IFS=$as_save_IFS 8683 case $as_dir in #((( 8684 '') as_dir=./ ;; 8685 */) ;; 8686 *) as_dir=$as_dir/ ;; 8687 esac 8688 for ac_exec_ext in '' $ac_executable_extensions; do 8689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8690 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8692 break 2 8693 fi 8694 done 8695 done 8696 IFS=$as_save_IFS 8697 8698 fi ;; 8699 esac 8700 fi 8701 DSYMUTIL=$ac_cv_prog_DSYMUTIL 8702 if test -n "$DSYMUTIL"; then 8703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8704 printf "%s\n" "$DSYMUTIL" >&6; } 8705 else 8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8707 printf "%s\n" "no" >&6; } 8708 fi 8709 8710 8711 fi 8712 if test -z "$ac_cv_prog_DSYMUTIL"; then 8713 ac_ct_DSYMUTIL=$DSYMUTIL 8714 # Extract the first word of "dsymutil", so it can be a program name with args. 8715 set dummy dsymutil; ac_word=$2 8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8717 printf %s "checking for $ac_word... " >&6; } 8718 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8719 then : 8720 printf %s "(cached) " >&6 8721 else case e in #( 8722 e) if test -n "$ac_ct_DSYMUTIL"; then 8723 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8724 else 8725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8726 for as_dir in $PATH 8727 do 8728 IFS=$as_save_IFS 8729 case $as_dir in #((( 8730 '') as_dir=./ ;; 8731 */) ;; 8732 *) as_dir=$as_dir/ ;; 8733 esac 8734 for ac_exec_ext in '' $ac_executable_extensions; do 8735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8736 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8738 break 2 8739 fi 8740 done 8741 done 8742 IFS=$as_save_IFS 8743 8744 fi ;; 8745 esac 8746 fi 8747 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8748 if test -n "$ac_ct_DSYMUTIL"; then 8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8750 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8751 else 8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8753 printf "%s\n" "no" >&6; } 8754 fi 8755 8756 if test "x$ac_ct_DSYMUTIL" = x; then 8757 DSYMUTIL=":" 8758 else 8759 case $cross_compiling:$ac_tool_warned in 8760 yes:) 8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8763 ac_tool_warned=yes ;; 8764 esac 8765 DSYMUTIL=$ac_ct_DSYMUTIL 8766 fi 8767 else 8768 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8769 fi 8770 8771 if test -n "$ac_tool_prefix"; then 8772 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8773 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8775 printf %s "checking for $ac_word... " >&6; } 8776 if test ${ac_cv_prog_NMEDIT+y} 8777 then : 8778 printf %s "(cached) " >&6 8779 else case e in #( 8780 e) if test -n "$NMEDIT"; then 8781 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8782 else 8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8784 for as_dir in $PATH 8785 do 8786 IFS=$as_save_IFS 8787 case $as_dir in #((( 8788 '') as_dir=./ ;; 8789 */) ;; 8790 *) as_dir=$as_dir/ ;; 8791 esac 8792 for ac_exec_ext in '' $ac_executable_extensions; do 8793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8794 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8796 break 2 8797 fi 8798 done 8799 done 8800 IFS=$as_save_IFS 8801 8802 fi ;; 8803 esac 8804 fi 8805 NMEDIT=$ac_cv_prog_NMEDIT 8806 if test -n "$NMEDIT"; then 8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8808 printf "%s\n" "$NMEDIT" >&6; } 8809 else 8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8811 printf "%s\n" "no" >&6; } 8812 fi 8813 8814 8815 fi 8816 if test -z "$ac_cv_prog_NMEDIT"; then 8817 ac_ct_NMEDIT=$NMEDIT 8818 # Extract the first word of "nmedit", so it can be a program name with args. 8819 set dummy nmedit; ac_word=$2 8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8821 printf %s "checking for $ac_word... " >&6; } 8822 if test ${ac_cv_prog_ac_ct_NMEDIT+y} 8823 then : 8824 printf %s "(cached) " >&6 8825 else case e in #( 8826 e) if test -n "$ac_ct_NMEDIT"; then 8827 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8828 else 8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8830 for as_dir in $PATH 8831 do 8832 IFS=$as_save_IFS 8833 case $as_dir in #((( 8834 '') as_dir=./ ;; 8835 */) ;; 8836 *) as_dir=$as_dir/ ;; 8837 esac 8838 for ac_exec_ext in '' $ac_executable_extensions; do 8839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8840 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8842 break 2 8843 fi 8844 done 8845 done 8846 IFS=$as_save_IFS 8847 8848 fi ;; 8849 esac 8850 fi 8851 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8852 if test -n "$ac_ct_NMEDIT"; then 8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8854 printf "%s\n" "$ac_ct_NMEDIT" >&6; } 8855 else 8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8857 printf "%s\n" "no" >&6; } 8858 fi 8859 8860 if test "x$ac_ct_NMEDIT" = x; then 8861 NMEDIT=":" 8862 else 8863 case $cross_compiling:$ac_tool_warned in 8864 yes:) 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8867 ac_tool_warned=yes ;; 8868 esac 8869 NMEDIT=$ac_ct_NMEDIT 8870 fi 8871 else 8872 NMEDIT="$ac_cv_prog_NMEDIT" 8873 fi 8874 8875 if test -n "$ac_tool_prefix"; then 8876 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8877 set dummy ${ac_tool_prefix}lipo; ac_word=$2 8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8879 printf %s "checking for $ac_word... " >&6; } 8880 if test ${ac_cv_prog_LIPO+y} 8881 then : 8882 printf %s "(cached) " >&6 8883 else case e in #( 8884 e) if test -n "$LIPO"; then 8885 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8886 else 8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8888 for as_dir in $PATH 8889 do 8890 IFS=$as_save_IFS 8891 case $as_dir in #((( 8892 '') as_dir=./ ;; 8893 */) ;; 8894 *) as_dir=$as_dir/ ;; 8895 esac 8896 for ac_exec_ext in '' $ac_executable_extensions; do 8897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8900 break 2 8901 fi 8902 done 8903 done 8904 IFS=$as_save_IFS 8905 8906 fi ;; 8907 esac 8908 fi 8909 LIPO=$ac_cv_prog_LIPO 8910 if test -n "$LIPO"; then 8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8912 printf "%s\n" "$LIPO" >&6; } 8913 else 8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8915 printf "%s\n" "no" >&6; } 8916 fi 8917 8918 8919 fi 8920 if test -z "$ac_cv_prog_LIPO"; then 8921 ac_ct_LIPO=$LIPO 8922 # Extract the first word of "lipo", so it can be a program name with args. 8923 set dummy lipo; ac_word=$2 8924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8925 printf %s "checking for $ac_word... " >&6; } 8926 if test ${ac_cv_prog_ac_ct_LIPO+y} 8927 then : 8928 printf %s "(cached) " >&6 8929 else case e in #( 8930 e) if test -n "$ac_ct_LIPO"; then 8931 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8932 else 8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8934 for as_dir in $PATH 8935 do 8936 IFS=$as_save_IFS 8937 case $as_dir in #((( 8938 '') as_dir=./ ;; 8939 */) ;; 8940 *) as_dir=$as_dir/ ;; 8941 esac 8942 for ac_exec_ext in '' $ac_executable_extensions; do 8943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8944 ac_cv_prog_ac_ct_LIPO="lipo" 8945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8946 break 2 8947 fi 8948 done 8949 done 8950 IFS=$as_save_IFS 8951 8952 fi ;; 8953 esac 8954 fi 8955 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8956 if test -n "$ac_ct_LIPO"; then 8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8958 printf "%s\n" "$ac_ct_LIPO" >&6; } 8959 else 8960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8961 printf "%s\n" "no" >&6; } 8962 fi 8963 8964 if test "x$ac_ct_LIPO" = x; then 8965 LIPO=":" 8966 else 8967 case $cross_compiling:$ac_tool_warned in 8968 yes:) 8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8971 ac_tool_warned=yes ;; 8972 esac 8973 LIPO=$ac_ct_LIPO 8974 fi 8975 else 8976 LIPO="$ac_cv_prog_LIPO" 8977 fi 8978 8979 if test -n "$ac_tool_prefix"; then 8980 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8981 set dummy ${ac_tool_prefix}otool; ac_word=$2 8982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8983 printf %s "checking for $ac_word... " >&6; } 8984 if test ${ac_cv_prog_OTOOL+y} 8985 then : 8986 printf %s "(cached) " >&6 8987 else case e in #( 8988 e) if test -n "$OTOOL"; then 8989 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8990 else 8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8992 for as_dir in $PATH 8993 do 8994 IFS=$as_save_IFS 8995 case $as_dir in #((( 8996 '') as_dir=./ ;; 8997 */) ;; 8998 *) as_dir=$as_dir/ ;; 8999 esac 9000 for ac_exec_ext in '' $ac_executable_extensions; do 9001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9002 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9004 break 2 9005 fi 9006 done 9007 done 9008 IFS=$as_save_IFS 9009 9010 fi ;; 9011 esac 9012 fi 9013 OTOOL=$ac_cv_prog_OTOOL 9014 if test -n "$OTOOL"; then 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9016 printf "%s\n" "$OTOOL" >&6; } 9017 else 9018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9019 printf "%s\n" "no" >&6; } 9020 fi 9021 9022 9023 fi 9024 if test -z "$ac_cv_prog_OTOOL"; then 9025 ac_ct_OTOOL=$OTOOL 9026 # Extract the first word of "otool", so it can be a program name with args. 9027 set dummy otool; ac_word=$2 9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9029 printf %s "checking for $ac_word... " >&6; } 9030 if test ${ac_cv_prog_ac_ct_OTOOL+y} 9031 then : 9032 printf %s "(cached) " >&6 9033 else case e in #( 9034 e) if test -n "$ac_ct_OTOOL"; then 9035 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9036 else 9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9038 for as_dir in $PATH 9039 do 9040 IFS=$as_save_IFS 9041 case $as_dir in #((( 9042 '') as_dir=./ ;; 9043 */) ;; 9044 *) as_dir=$as_dir/ ;; 9045 esac 9046 for ac_exec_ext in '' $ac_executable_extensions; do 9047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9048 ac_cv_prog_ac_ct_OTOOL="otool" 9049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9050 break 2 9051 fi 9052 done 9053 done 9054 IFS=$as_save_IFS 9055 9056 fi ;; 9057 esac 9058 fi 9059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9060 if test -n "$ac_ct_OTOOL"; then 9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9062 printf "%s\n" "$ac_ct_OTOOL" >&6; } 9063 else 9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9065 printf "%s\n" "no" >&6; } 9066 fi 9067 9068 if test "x$ac_ct_OTOOL" = x; then 9069 OTOOL=":" 9070 else 9071 case $cross_compiling:$ac_tool_warned in 9072 yes:) 9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9074 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9075 ac_tool_warned=yes ;; 9076 esac 9077 OTOOL=$ac_ct_OTOOL 9078 fi 9079 else 9080 OTOOL="$ac_cv_prog_OTOOL" 9081 fi 9082 9083 if test -n "$ac_tool_prefix"; then 9084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9085 set dummy ${ac_tool_prefix}otool64; ac_word=$2 9086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9087 printf %s "checking for $ac_word... " >&6; } 9088 if test ${ac_cv_prog_OTOOL64+y} 9089 then : 9090 printf %s "(cached) " >&6 9091 else case e in #( 9092 e) if test -n "$OTOOL64"; then 9093 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9094 else 9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9096 for as_dir in $PATH 9097 do 9098 IFS=$as_save_IFS 9099 case $as_dir in #((( 9100 '') as_dir=./ ;; 9101 */) ;; 9102 *) as_dir=$as_dir/ ;; 9103 esac 9104 for ac_exec_ext in '' $ac_executable_extensions; do 9105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9106 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9108 break 2 9109 fi 9110 done 9111 done 9112 IFS=$as_save_IFS 9113 9114 fi ;; 9115 esac 9116 fi 9117 OTOOL64=$ac_cv_prog_OTOOL64 9118 if test -n "$OTOOL64"; then 9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9120 printf "%s\n" "$OTOOL64" >&6; } 9121 else 9122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9123 printf "%s\n" "no" >&6; } 9124 fi 9125 9126 9127 fi 9128 if test -z "$ac_cv_prog_OTOOL64"; then 9129 ac_ct_OTOOL64=$OTOOL64 9130 # Extract the first word of "otool64", so it can be a program name with args. 9131 set dummy otool64; ac_word=$2 9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9133 printf %s "checking for $ac_word... " >&6; } 9134 if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9135 then : 9136 printf %s "(cached) " >&6 9137 else case e in #( 9138 e) if test -n "$ac_ct_OTOOL64"; then 9139 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9140 else 9141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9142 for as_dir in $PATH 9143 do 9144 IFS=$as_save_IFS 9145 case $as_dir in #((( 9146 '') as_dir=./ ;; 9147 */) ;; 9148 *) as_dir=$as_dir/ ;; 9149 esac 9150 for ac_exec_ext in '' $ac_executable_extensions; do 9151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9152 ac_cv_prog_ac_ct_OTOOL64="otool64" 9153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9154 break 2 9155 fi 9156 done 9157 done 9158 IFS=$as_save_IFS 9159 9160 fi ;; 9161 esac 9162 fi 9163 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9164 if test -n "$ac_ct_OTOOL64"; then 9165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9166 printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9167 else 9168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9169 printf "%s\n" "no" >&6; } 9170 fi 9171 9172 if test "x$ac_ct_OTOOL64" = x; then 9173 OTOOL64=":" 9174 else 9175 case $cross_compiling:$ac_tool_warned in 9176 yes:) 9177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9178 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9179 ac_tool_warned=yes ;; 9180 esac 9181 OTOOL64=$ac_ct_OTOOL64 9182 fi 9183 else 9184 OTOOL64="$ac_cv_prog_OTOOL64" 9185 fi 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9214 printf %s "checking for -single_module linker flag... " >&6; } 9215 if test ${lt_cv_apple_cc_single_mod+y} 9216 then : 9217 printf %s "(cached) " >&6 9218 else case e in #( 9219 e) lt_cv_apple_cc_single_mod=no 9220 if test -z "$LT_MULTI_MODULE"; then 9221 # By default we will add the -single_module flag. You can override 9222 # by either setting the environment variable LT_MULTI_MODULE 9223 # non-empty at configure time, or by adding -multi_module to the 9224 # link flags. 9225 rm -rf libconftest.dylib* 9226 echo "int foo(void){return 1;}" > conftest.c 9227 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9228 -dynamiclib -Wl,-single_module conftest.c" >&5 9229 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9230 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9231 _lt_result=$? 9232 # If there is a non-empty error log, and "single_module" 9233 # appears in it, assume the flag caused a linker warning 9234 if test -s conftest.err && $GREP single_module conftest.err; then 9235 cat conftest.err >&5 9236 # Otherwise, if the output was created with a 0 exit code from 9237 # the compiler, it worked. 9238 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9239 lt_cv_apple_cc_single_mod=yes 9240 else 9241 cat conftest.err >&5 9242 fi 9243 rm -rf libconftest.dylib* 9244 rm -f conftest.* 9245 fi ;; 9246 esac 9247 fi 9248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9249 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9250 9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9252 printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9253 if test ${lt_cv_ld_exported_symbols_list+y} 9254 then : 9255 printf %s "(cached) " >&6 9256 else case e in #( 9257 e) lt_cv_ld_exported_symbols_list=no 9258 save_LDFLAGS=$LDFLAGS 9259 echo "_main" > conftest.sym 9260 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262 /* end confdefs.h. */ 9263 9264 int 9265 main (void) 9266 { 9267 9268 ; 9269 return 0; 9270 } 9271 _ACEOF 9272 if ac_fn_c_try_link "$LINENO" 9273 then : 9274 lt_cv_ld_exported_symbols_list=yes 9275 else case e in #( 9276 e) lt_cv_ld_exported_symbols_list=no ;; 9277 esac 9278 fi 9279 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9280 conftest$ac_exeext conftest.$ac_ext 9281 LDFLAGS=$save_LDFLAGS 9282 ;; 9283 esac 9284 fi 9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9286 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9287 9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9289 printf %s "checking for -force_load linker flag... " >&6; } 9290 if test ${lt_cv_ld_force_load+y} 9291 then : 9292 printf %s "(cached) " >&6 9293 else case e in #( 9294 e) lt_cv_ld_force_load=no 9295 cat > conftest.c << _LT_EOF 9296 int forced_loaded() { return 2;} 9297 _LT_EOF 9298 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9299 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9300 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9301 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9302 echo "$RANLIB libconftest.a" >&5 9303 $RANLIB libconftest.a 2>&5 9304 cat > conftest.c << _LT_EOF 9305 int main() { return 0;} 9306 _LT_EOF 9307 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9308 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9309 _lt_result=$? 9310 if test -s conftest.err && $GREP force_load conftest.err; then 9311 cat conftest.err >&5 9312 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9313 lt_cv_ld_force_load=yes 9314 else 9315 cat conftest.err >&5 9316 fi 9317 rm -f conftest.err libconftest.a conftest conftest.c 9318 rm -rf conftest.dSYM 9319 ;; 9320 esac 9321 fi 9322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9323 printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9324 case $host_os in 9325 rhapsody* | darwin1.[012]) 9326 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9327 darwin1.*) 9328 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9329 darwin*) 9330 case $MACOSX_DEPLOYMENT_TARGET,$host in 9331 10.[012],*|,*powerpc*-darwin[5-8]*) 9332 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9333 *) 9334 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9335 esac 9336 ;; 9337 esac 9338 if test yes = "$lt_cv_apple_cc_single_mod"; then 9339 _lt_dar_single_mod='$single_module' 9340 fi 9341 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9342 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9343 else 9344 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9345 fi 9346 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9347 _lt_dsymutil='~$DSYMUTIL $lib || :' 9348 else 9349 _lt_dsymutil= 9350 fi 9351 ;; 9352 esac 9353 9354 # func_munge_path_list VARIABLE PATH 9355 # ----------------------------------- 9356 # VARIABLE is name of variable containing _space_ separated list of 9357 # directories to be munged by the contents of PATH, which is string 9358 # having a format: 9359 # "DIR[:DIR]:" 9360 # string "DIR[ DIR]" will be prepended to VARIABLE 9361 # ":DIR[:DIR]" 9362 # string "DIR[ DIR]" will be appended to VARIABLE 9363 # "DIRP[:DIRP]::[DIRA:]DIRA" 9364 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9365 # "DIRA[ DIRA]" will be appended to VARIABLE 9366 # "DIR[:DIR]" 9367 # VARIABLE will be replaced by "DIR[ DIR]" 9368 func_munge_path_list () 9369 { 9370 case x$2 in 9371 x) 9372 ;; 9373 *:) 9374 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9375 ;; 9376 x:*) 9377 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9378 ;; 9379 *::*) 9380 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9381 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9382 ;; 9383 *) 9384 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9385 ;; 9386 esac 9387 } 9388 9389 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9390 " 9391 if test "x$ac_cv_header_dlfcn_h" = xyes 9392 then : 9393 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9394 9395 fi 9396 9397 9398 9399 9400 9401 # Set options 9402 # Check whether --enable-static was given. 9403 if test ${enable_static+y} 9404 then : 9405 enableval=$enable_static; p=${PACKAGE-default} 9406 case $enableval in 9407 yes) enable_static=yes ;; 9408 no) enable_static=no ;; 9409 *) 9410 enable_static=no 9411 # Look at the argument we got. We use all the common list separators. 9412 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9413 for pkg in $enableval; do 9414 IFS=$lt_save_ifs 9415 if test "X$pkg" = "X$p"; then 9416 enable_static=yes 9417 fi 9418 done 9419 IFS=$lt_save_ifs 9420 ;; 9421 esac 9422 else case e in #( 9423 e) enable_static=no ;; 9424 esac 9425 fi 9426 9427 9428 9429 9430 9431 9432 9433 9434 # Check whether --with-pic was given. 9435 if test ${with_pic+y} 9436 then : 9437 withval=$with_pic; lt_p=${PACKAGE-default} 9438 case $withval in 9439 yes|no) pic_mode=$withval ;; 9440 *) 9441 pic_mode=default 9442 # Look at the argument we got. We use all the common list separators. 9443 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9444 for lt_pkg in $withval; do 9445 IFS=$lt_save_ifs 9446 if test "X$lt_pkg" = "X$lt_p"; then 9447 pic_mode=yes 9448 fi 9449 done 9450 IFS=$lt_save_ifs 9451 ;; 9452 esac 9453 else case e in #( 9454 e) pic_mode=yes ;; 9455 esac 9456 fi 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 enable_dlopen=no 9467 9468 9469 enable_win32_dll=no 9470 9471 9472 # Check whether --enable-shared was given. 9473 if test ${enable_shared+y} 9474 then : 9475 enableval=$enable_shared; p=${PACKAGE-default} 9476 case $enableval in 9477 yes) enable_shared=yes ;; 9478 no) enable_shared=no ;; 9479 *) 9480 enable_shared=no 9481 # Look at the argument we got. We use all the common list separators. 9482 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9483 for pkg in $enableval; do 9484 IFS=$lt_save_ifs 9485 if test "X$pkg" = "X$p"; then 9486 enable_shared=yes 9487 fi 9488 done 9489 IFS=$lt_save_ifs 9490 ;; 9491 esac 9492 else case e in #( 9493 e) enable_shared=yes ;; 9494 esac 9495 fi 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 # Check whether --enable-fast-install was given. 9508 if test ${enable_fast_install+y} 9509 then : 9510 enableval=$enable_fast_install; p=${PACKAGE-default} 9511 case $enableval in 9512 yes) enable_fast_install=yes ;; 9513 no) enable_fast_install=no ;; 9514 *) 9515 enable_fast_install=no 9516 # Look at the argument we got. We use all the common list separators. 9517 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9518 for pkg in $enableval; do 9519 IFS=$lt_save_ifs 9520 if test "X$pkg" = "X$p"; then 9521 enable_fast_install=yes 9522 fi 9523 done 9524 IFS=$lt_save_ifs 9525 ;; 9526 esac 9527 else case e in #( 9528 e) enable_fast_install=yes ;; 9529 esac 9530 fi 9531 9532 9533 9534 9535 9536 9537 9538 9539 shared_archive_member_spec= 9540 case $host,$enable_shared in 9541 power*-*-aix[5-9]*,yes) 9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9543 printf %s "checking which variant of shared library versioning to provide... " >&6; } 9544 9545 # Check whether --with-aix-soname was given. 9546 if test ${with_aix_soname+y} 9547 then : 9548 withval=$with_aix_soname; case $withval in 9549 aix|svr4|both) 9550 ;; 9551 *) 9552 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9553 ;; 9554 esac 9555 lt_cv_with_aix_soname=$with_aix_soname 9556 else case e in #( 9557 e) if test ${lt_cv_with_aix_soname+y} 9558 then : 9559 printf %s "(cached) " >&6 9560 else case e in #( 9561 e) lt_cv_with_aix_soname=aix ;; 9562 esac 9563 fi 9564 9565 with_aix_soname=$lt_cv_with_aix_soname ;; 9566 esac 9567 fi 9568 9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9570 printf "%s\n" "$with_aix_soname" >&6; } 9571 if test aix != "$with_aix_soname"; then 9572 # For the AIX way of multilib, we name the shared archive member 9573 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9574 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9575 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9576 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9577 if test 64 = "${OBJECT_MODE-32}"; then 9578 shared_archive_member_spec=shr_64 9579 else 9580 shared_archive_member_spec=shr 9581 fi 9582 fi 9583 ;; 9584 *) 9585 with_aix_soname=aix 9586 ;; 9587 esac 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 # This can be used to rebuild libtool when needed 9599 LIBTOOL_DEPS=$ltmain 9600 9601 # Always use our own libtool. 9602 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 test -z "$LN_S" && LN_S="ln -s" 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 if test -n "${ZSH_VERSION+set}"; then 9649 setopt NO_GLOB_SUBST 9650 fi 9651 9652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9653 printf %s "checking for objdir... " >&6; } 9654 if test ${lt_cv_objdir+y} 9655 then : 9656 printf %s "(cached) " >&6 9657 else case e in #( 9658 e) rm -f .libs 2>/dev/null 9659 mkdir .libs 2>/dev/null 9660 if test -d .libs; then 9661 lt_cv_objdir=.libs 9662 else 9663 # MS-DOS does not allow filenames that begin with a dot. 9664 lt_cv_objdir=_libs 9665 fi 9666 rmdir .libs 2>/dev/null ;; 9667 esac 9668 fi 9669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9670 printf "%s\n" "$lt_cv_objdir" >&6; } 9671 objdir=$lt_cv_objdir 9672 9673 9674 9675 9676 9677 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9678 9679 9680 9681 9682 case $host_os in 9683 aix3*) 9684 # AIX sometimes has problems with the GCC collect2 program. For some 9685 # reason, if we set the COLLECT_NAMES environment variable, the problems 9686 # vanish in a puff of smoke. 9687 if test set != "${COLLECT_NAMES+set}"; then 9688 COLLECT_NAMES= 9689 export COLLECT_NAMES 9690 fi 9691 ;; 9692 esac 9693 9694 # Global variables: 9695 ofile=libtool 9696 can_build_shared=yes 9697 9698 # All known linkers require a '.a' archive for static linking (except MSVC and 9699 # ICC, which need '.lib'). 9700 libext=a 9701 9702 with_gnu_ld=$lt_cv_prog_gnu_ld 9703 9704 old_CC=$CC 9705 old_CFLAGS=$CFLAGS 9706 9707 # Set sane defaults for various variables 9708 test -z "$CC" && CC=cc 9709 test -z "$LTCC" && LTCC=$CC 9710 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9711 test -z "$LD" && LD=ld 9712 test -z "$ac_objext" && ac_objext=o 9713 9714 func_cc_basename $compiler 9715 cc_basename=$func_cc_basename_result 9716 9717 9718 # Only perform the check for file, if the check method requires it 9719 test -z "$MAGIC_CMD" && MAGIC_CMD=file 9720 case $deplibs_check_method in 9721 file_magic*) 9722 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9724 printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9725 if test ${lt_cv_path_MAGIC_CMD+y} 9726 then : 9727 printf %s "(cached) " >&6 9728 else case e in #( 9729 e) case $MAGIC_CMD in 9730 [\\/*] | ?:[\\/]*) 9731 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9732 ;; 9733 *) 9734 lt_save_MAGIC_CMD=$MAGIC_CMD 9735 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9736 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9737 for ac_dir in $ac_dummy; do 9738 IFS=$lt_save_ifs 9739 test -z "$ac_dir" && ac_dir=. 9740 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9741 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9742 if test -n "$file_magic_test_file"; then 9743 case $deplibs_check_method in 9744 "file_magic "*) 9745 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9746 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9747 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9748 $EGREP "$file_magic_regex" > /dev/null; then 9749 : 9750 else 9751 cat <<_LT_EOF 1>&2 9752 9753 *** Warning: the command libtool uses to detect shared libraries, 9754 *** $file_magic_cmd, produces output that libtool cannot recognize. 9755 *** The result is that libtool may fail to recognize shared libraries 9756 *** as such. This will affect the creation of libtool libraries that 9757 *** depend on shared libraries, but programs linked with such libtool 9758 *** libraries will work regardless of this problem. Nevertheless, you 9759 *** may want to report the problem to your system manager and/or to 9760 *** bug-libtool@gnu.org 9761 9762 _LT_EOF 9763 fi ;; 9764 esac 9765 fi 9766 break 9767 fi 9768 done 9769 IFS=$lt_save_ifs 9770 MAGIC_CMD=$lt_save_MAGIC_CMD 9771 ;; 9772 esac ;; 9773 esac 9774 fi 9775 9776 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9777 if test -n "$MAGIC_CMD"; then 9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9779 printf "%s\n" "$MAGIC_CMD" >&6; } 9780 else 9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9782 printf "%s\n" "no" >&6; } 9783 fi 9784 9785 9786 9787 9788 9789 if test -z "$lt_cv_path_MAGIC_CMD"; then 9790 if test -n "$ac_tool_prefix"; then 9791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9792 printf %s "checking for file... " >&6; } 9793 if test ${lt_cv_path_MAGIC_CMD+y} 9794 then : 9795 printf %s "(cached) " >&6 9796 else case e in #( 9797 e) case $MAGIC_CMD in 9798 [\\/*] | ?:[\\/]*) 9799 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9800 ;; 9801 *) 9802 lt_save_MAGIC_CMD=$MAGIC_CMD 9803 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9804 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9805 for ac_dir in $ac_dummy; do 9806 IFS=$lt_save_ifs 9807 test -z "$ac_dir" && ac_dir=. 9808 if test -f "$ac_dir/file"; then 9809 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9810 if test -n "$file_magic_test_file"; then 9811 case $deplibs_check_method in 9812 "file_magic "*) 9813 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9814 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9815 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9816 $EGREP "$file_magic_regex" > /dev/null; then 9817 : 9818 else 9819 cat <<_LT_EOF 1>&2 9820 9821 *** Warning: the command libtool uses to detect shared libraries, 9822 *** $file_magic_cmd, produces output that libtool cannot recognize. 9823 *** The result is that libtool may fail to recognize shared libraries 9824 *** as such. This will affect the creation of libtool libraries that 9825 *** depend on shared libraries, but programs linked with such libtool 9826 *** libraries will work regardless of this problem. Nevertheless, you 9827 *** may want to report the problem to your system manager and/or to 9828 *** bug-libtool@gnu.org 9829 9830 _LT_EOF 9831 fi ;; 9832 esac 9833 fi 9834 break 9835 fi 9836 done 9837 IFS=$lt_save_ifs 9838 MAGIC_CMD=$lt_save_MAGIC_CMD 9839 ;; 9840 esac ;; 9841 esac 9842 fi 9843 9844 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9845 if test -n "$MAGIC_CMD"; then 9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9847 printf "%s\n" "$MAGIC_CMD" >&6; } 9848 else 9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9850 printf "%s\n" "no" >&6; } 9851 fi 9852 9853 9854 else 9855 MAGIC_CMD=: 9856 fi 9857 fi 9858 9859 fi 9860 ;; 9861 esac 9862 9863 # Use C for the default configuration in the libtool script 9864 9865 lt_save_CC=$CC 9866 ac_ext=c 9867 ac_cpp='$CPP $CPPFLAGS' 9868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9870 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9871 9872 9873 # Source file extension for C test sources. 9874 ac_ext=c 9875 9876 # Object file extension for compiled C test sources. 9877 objext=o 9878 objext=$objext 9879 9880 # Code to be used in simple compile tests 9881 lt_simple_compile_test_code="int some_variable = 0;" 9882 9883 # Code to be used in simple link tests 9884 lt_simple_link_test_code='int main(){return(0);}' 9885 9886 9887 9888 9889 9890 9891 9892 # If no C compiler was specified, use CC. 9893 LTCC=${LTCC-"$CC"} 9894 9895 # If no C compiler flags were specified, use CFLAGS. 9896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9897 9898 # Allow CC to be a program name with arguments. 9899 compiler=$CC 9900 9901 # Save the default compiler, since it gets overwritten when the other 9902 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9903 compiler_DEFAULT=$CC 9904 9905 # save warnings/boilerplate of simple test code 9906 ac_outfile=conftest.$ac_objext 9907 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9908 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9909 _lt_compiler_boilerplate=`cat conftest.err` 9910 $RM conftest* 9911 9912 ac_outfile=conftest.$ac_objext 9913 echo "$lt_simple_link_test_code" >conftest.$ac_ext 9914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9915 _lt_linker_boilerplate=`cat conftest.err` 9916 $RM -r conftest* 9917 9918 9919 ## CAVEAT EMPTOR: 9920 ## There is no encapsulation within the following macros, do not change 9921 ## the running order or otherwise move them around unless you know exactly 9922 ## what you are doing... 9923 if test -n "$compiler"; then 9924 9925 lt_prog_compiler_no_builtin_flag= 9926 9927 if test yes = "$GCC"; then 9928 case $cc_basename in 9929 nvcc*) 9930 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9931 *) 9932 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9933 esac 9934 9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9936 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9937 if test ${lt_cv_prog_compiler_rtti_exceptions+y} 9938 then : 9939 printf %s "(cached) " >&6 9940 else case e in #( 9941 e) lt_cv_prog_compiler_rtti_exceptions=no 9942 ac_outfile=conftest.$ac_objext 9943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9944 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9945 # Insert the option either (1) after the last *FLAGS variable, or 9946 # (2) before a word containing "conftest.", or (3) at the end. 9947 # Note that $ac_compile itself does not contain backslashes and begins 9948 # with a dollar sign (not a hyphen), so the echo should work correctly. 9949 # The option is referenced via a variable to avoid confusing sed. 9950 lt_compile=`echo "$ac_compile" | $SED \ 9951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9953 -e 's:$: $lt_compiler_flag:'` 9954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9955 (eval "$lt_compile" 2>conftest.err) 9956 ac_status=$? 9957 cat conftest.err >&5 9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9959 if (exit $ac_status) && test -s "$ac_outfile"; then 9960 # The compiler can only warn and ignore the option if not recognized 9961 # So say no if there are warnings other than the usual output. 9962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9965 lt_cv_prog_compiler_rtti_exceptions=yes 9966 fi 9967 fi 9968 $RM conftest* 9969 ;; 9970 esac 9971 fi 9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9973 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9974 9975 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9976 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9977 else 9978 : 9979 fi 9980 9981 fi 9982 9983 9984 9985 9986 9987 9988 lt_prog_compiler_wl= 9989 lt_prog_compiler_pic= 9990 lt_prog_compiler_static= 9991 9992 9993 if test yes = "$GCC"; then 9994 lt_prog_compiler_wl='-Wl,' 9995 lt_prog_compiler_static='-static' 9996 9997 case $host_os in 9998 aix*) 9999 # All AIX code is PIC. 10000 if test ia64 = "$host_cpu"; then 10001 # AIX 5 now supports IA64 processor 10002 lt_prog_compiler_static='-Bstatic' 10003 fi 10004 lt_prog_compiler_pic='-fPIC' 10005 ;; 10006 10007 amigaos*) 10008 case $host_cpu in 10009 powerpc) 10010 # see comment about AmigaOS4 .so support 10011 lt_prog_compiler_pic='-fPIC' 10012 ;; 10013 m68k) 10014 # FIXME: we need at least 68020 code to build shared libraries, but 10015 # adding the '-m68020' flag to GCC prevents building anything better, 10016 # like '-m68040'. 10017 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10018 ;; 10019 esac 10020 ;; 10021 10022 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10023 # PIC is the default for these OSes. 10024 ;; 10025 10026 mingw* | cygwin* | pw32* | os2* | cegcc*) 10027 # This hack is so that the source file can tell whether it is being 10028 # built for inclusion in a dll (and should export symbols for example). 10029 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10030 # (--disable-auto-import) libraries 10031 lt_prog_compiler_pic='-DDLL_EXPORT' 10032 case $host_os in 10033 os2*) 10034 lt_prog_compiler_static='$wl-static' 10035 ;; 10036 esac 10037 ;; 10038 10039 darwin* | rhapsody*) 10040 # PIC is the default on this platform 10041 # Common symbols not allowed in MH_DYLIB files 10042 lt_prog_compiler_pic='-fno-common' 10043 ;; 10044 10045 haiku*) 10046 # PIC is the default for Haiku. 10047 # The "-static" flag exists, but is broken. 10048 lt_prog_compiler_static= 10049 ;; 10050 10051 hpux*) 10052 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10053 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10054 # sets the default TLS model and affects inlining. 10055 case $host_cpu in 10056 hppa*64*) 10057 # +Z the default 10058 ;; 10059 *) 10060 lt_prog_compiler_pic='-fPIC' 10061 ;; 10062 esac 10063 ;; 10064 10065 interix[3-9]*) 10066 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10067 # Instead, we relocate shared libraries at runtime. 10068 ;; 10069 10070 msdosdjgpp*) 10071 # Just because we use GCC doesn't mean we suddenly get shared libraries 10072 # on systems that don't support them. 10073 lt_prog_compiler_can_build_shared=no 10074 enable_shared=no 10075 ;; 10076 10077 *nto* | *qnx*) 10078 # QNX uses GNU C++, but need to define -shared option too, otherwise 10079 # it will coredump. 10080 lt_prog_compiler_pic='-fPIC -shared' 10081 ;; 10082 10083 sysv4*MP*) 10084 if test -d /usr/nec; then 10085 lt_prog_compiler_pic=-Kconform_pic 10086 fi 10087 ;; 10088 10089 *) 10090 lt_prog_compiler_pic='-fPIC' 10091 ;; 10092 esac 10093 10094 case $cc_basename in 10095 nvcc*) # Cuda Compiler Driver 2.2 10096 lt_prog_compiler_wl='-Xlinker ' 10097 if test -n "$lt_prog_compiler_pic"; then 10098 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10099 fi 10100 ;; 10101 esac 10102 else 10103 # PORTME Check for flag to pass linker flags through the system compiler. 10104 case $host_os in 10105 aix*) 10106 lt_prog_compiler_wl='-Wl,' 10107 if test ia64 = "$host_cpu"; then 10108 # AIX 5 now supports IA64 processor 10109 lt_prog_compiler_static='-Bstatic' 10110 else 10111 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10112 fi 10113 ;; 10114 10115 darwin* | rhapsody*) 10116 # PIC is the default on this platform 10117 # Common symbols not allowed in MH_DYLIB files 10118 lt_prog_compiler_pic='-fno-common' 10119 case $cc_basename in 10120 nagfor*) 10121 # NAG Fortran compiler 10122 lt_prog_compiler_wl='-Wl,-Wl,,' 10123 lt_prog_compiler_pic='-PIC' 10124 lt_prog_compiler_static='-Bstatic' 10125 ;; 10126 esac 10127 ;; 10128 10129 mingw* | cygwin* | pw32* | os2* | cegcc*) 10130 # This hack is so that the source file can tell whether it is being 10131 # built for inclusion in a dll (and should export symbols for example). 10132 lt_prog_compiler_pic='-DDLL_EXPORT' 10133 case $host_os in 10134 os2*) 10135 lt_prog_compiler_static='$wl-static' 10136 ;; 10137 esac 10138 ;; 10139 10140 hpux9* | hpux10* | hpux11*) 10141 lt_prog_compiler_wl='-Wl,' 10142 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10143 # not for PA HP-UX. 10144 case $host_cpu in 10145 hppa*64*|ia64*) 10146 # +Z the default 10147 ;; 10148 *) 10149 lt_prog_compiler_pic='+Z' 10150 ;; 10151 esac 10152 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10153 lt_prog_compiler_static='$wl-a ${wl}archive' 10154 ;; 10155 10156 irix5* | irix6* | nonstopux*) 10157 lt_prog_compiler_wl='-Wl,' 10158 # PIC (with -KPIC) is the default. 10159 lt_prog_compiler_static='-non_shared' 10160 ;; 10161 10162 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10163 case $cc_basename in 10164 # old Intel for x86_64, which still supported -KPIC. 10165 ecc*) 10166 lt_prog_compiler_wl='-Wl,' 10167 lt_prog_compiler_pic='-KPIC' 10168 lt_prog_compiler_static='-static' 10169 ;; 10170 # icc used to be incompatible with GCC. 10171 # ICC 10 doesn't accept -KPIC any more. 10172 icc* | ifort*) 10173 lt_prog_compiler_wl='-Wl,' 10174 lt_prog_compiler_pic='-fPIC' 10175 lt_prog_compiler_static='-static' 10176 ;; 10177 # Lahey Fortran 8.1. 10178 lf95*) 10179 lt_prog_compiler_wl='-Wl,' 10180 lt_prog_compiler_pic='--shared' 10181 lt_prog_compiler_static='--static' 10182 ;; 10183 nagfor*) 10184 # NAG Fortran compiler 10185 lt_prog_compiler_wl='-Wl,-Wl,,' 10186 lt_prog_compiler_pic='-PIC' 10187 lt_prog_compiler_static='-Bstatic' 10188 ;; 10189 tcc*) 10190 # Fabrice Bellard et al's Tiny C Compiler 10191 lt_prog_compiler_wl='-Wl,' 10192 lt_prog_compiler_pic='-fPIC' 10193 lt_prog_compiler_static='-static' 10194 ;; 10195 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10196 # Portland Group compilers (*not* the Pentium gcc compiler, 10197 # which looks to be a dead project) 10198 lt_prog_compiler_wl='-Wl,' 10199 lt_prog_compiler_pic='-fpic' 10200 lt_prog_compiler_static='-Bstatic' 10201 ;; 10202 ccc*) 10203 lt_prog_compiler_wl='-Wl,' 10204 # All Alpha code is PIC. 10205 lt_prog_compiler_static='-non_shared' 10206 ;; 10207 xl* | bgxl* | bgf* | mpixl*) 10208 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10209 lt_prog_compiler_wl='-Wl,' 10210 lt_prog_compiler_pic='-qpic' 10211 lt_prog_compiler_static='-qstaticlink' 10212 ;; 10213 *) 10214 case `$CC -V 2>&1 | $SED 5q` in 10215 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10216 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10217 lt_prog_compiler_pic='-KPIC' 10218 lt_prog_compiler_static='-Bstatic' 10219 lt_prog_compiler_wl='' 10220 ;; 10221 *Sun\ F* | *Sun*Fortran*) 10222 lt_prog_compiler_pic='-KPIC' 10223 lt_prog_compiler_static='-Bstatic' 10224 lt_prog_compiler_wl='-Qoption ld ' 10225 ;; 10226 *Sun\ C*) 10227 # Sun C 5.9 10228 lt_prog_compiler_pic='-KPIC' 10229 lt_prog_compiler_static='-Bstatic' 10230 lt_prog_compiler_wl='-Wl,' 10231 ;; 10232 *Intel*\ [CF]*Compiler*) 10233 lt_prog_compiler_wl='-Wl,' 10234 lt_prog_compiler_pic='-fPIC' 10235 lt_prog_compiler_static='-static' 10236 ;; 10237 *Portland\ Group*) 10238 lt_prog_compiler_wl='-Wl,' 10239 lt_prog_compiler_pic='-fpic' 10240 lt_prog_compiler_static='-Bstatic' 10241 ;; 10242 esac 10243 ;; 10244 esac 10245 ;; 10246 10247 newsos6) 10248 lt_prog_compiler_pic='-KPIC' 10249 lt_prog_compiler_static='-Bstatic' 10250 ;; 10251 10252 *nto* | *qnx*) 10253 # QNX uses GNU C++, but need to define -shared option too, otherwise 10254 # it will coredump. 10255 lt_prog_compiler_pic='-fPIC -shared' 10256 ;; 10257 10258 osf3* | osf4* | osf5*) 10259 lt_prog_compiler_wl='-Wl,' 10260 # All OSF/1 code is PIC. 10261 lt_prog_compiler_static='-non_shared' 10262 ;; 10263 10264 rdos*) 10265 lt_prog_compiler_static='-non_shared' 10266 ;; 10267 10268 solaris*) 10269 lt_prog_compiler_pic='-KPIC' 10270 lt_prog_compiler_static='-Bstatic' 10271 case $cc_basename in 10272 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10273 lt_prog_compiler_wl='-Qoption ld ';; 10274 *) 10275 lt_prog_compiler_wl='-Wl,';; 10276 esac 10277 ;; 10278 10279 sunos4*) 10280 lt_prog_compiler_wl='-Qoption ld ' 10281 lt_prog_compiler_pic='-PIC' 10282 lt_prog_compiler_static='-Bstatic' 10283 ;; 10284 10285 sysv4 | sysv4.2uw2* | sysv4.3*) 10286 lt_prog_compiler_wl='-Wl,' 10287 lt_prog_compiler_pic='-KPIC' 10288 lt_prog_compiler_static='-Bstatic' 10289 ;; 10290 10291 sysv4*MP*) 10292 if test -d /usr/nec; then 10293 lt_prog_compiler_pic='-Kconform_pic' 10294 lt_prog_compiler_static='-Bstatic' 10295 fi 10296 ;; 10297 10298 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10299 lt_prog_compiler_wl='-Wl,' 10300 lt_prog_compiler_pic='-KPIC' 10301 lt_prog_compiler_static='-Bstatic' 10302 ;; 10303 10304 unicos*) 10305 lt_prog_compiler_wl='-Wl,' 10306 lt_prog_compiler_can_build_shared=no 10307 ;; 10308 10309 uts4*) 10310 lt_prog_compiler_pic='-pic' 10311 lt_prog_compiler_static='-Bstatic' 10312 ;; 10313 10314 *) 10315 lt_prog_compiler_can_build_shared=no 10316 ;; 10317 esac 10318 fi 10319 10320 case $host_os in 10321 # For platforms that do not support PIC, -DPIC is meaningless: 10322 *djgpp*) 10323 lt_prog_compiler_pic= 10324 ;; 10325 *) 10326 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10327 ;; 10328 esac 10329 10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10331 printf %s "checking for $compiler option to produce PIC... " >&6; } 10332 if test ${lt_cv_prog_compiler_pic+y} 10333 then : 10334 printf %s "(cached) " >&6 10335 else case e in #( 10336 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10337 esac 10338 fi 10339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10340 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10341 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10342 10343 # 10344 # Check to make sure the PIC flag actually works. 10345 # 10346 if test -n "$lt_prog_compiler_pic"; then 10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10348 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10349 if test ${lt_cv_prog_compiler_pic_works+y} 10350 then : 10351 printf %s "(cached) " >&6 10352 else case e in #( 10353 e) lt_cv_prog_compiler_pic_works=no 10354 ac_outfile=conftest.$ac_objext 10355 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10356 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10357 # Insert the option either (1) after the last *FLAGS variable, or 10358 # (2) before a word containing "conftest.", or (3) at the end. 10359 # Note that $ac_compile itself does not contain backslashes and begins 10360 # with a dollar sign (not a hyphen), so the echo should work correctly. 10361 # The option is referenced via a variable to avoid confusing sed. 10362 lt_compile=`echo "$ac_compile" | $SED \ 10363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10365 -e 's:$: $lt_compiler_flag:'` 10366 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10367 (eval "$lt_compile" 2>conftest.err) 10368 ac_status=$? 10369 cat conftest.err >&5 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10371 if (exit $ac_status) && test -s "$ac_outfile"; then 10372 # The compiler can only warn and ignore the option if not recognized 10373 # So say no if there are warnings other than the usual output. 10374 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10376 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10377 lt_cv_prog_compiler_pic_works=yes 10378 fi 10379 fi 10380 $RM conftest* 10381 ;; 10382 esac 10383 fi 10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10385 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10386 10387 if test yes = "$lt_cv_prog_compiler_pic_works"; then 10388 case $lt_prog_compiler_pic in 10389 "" | " "*) ;; 10390 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10391 esac 10392 else 10393 lt_prog_compiler_pic= 10394 lt_prog_compiler_can_build_shared=no 10395 fi 10396 10397 fi 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 # 10410 # Check to make sure the static flag actually works. 10411 # 10412 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10414 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10415 if test ${lt_cv_prog_compiler_static_works+y} 10416 then : 10417 printf %s "(cached) " >&6 10418 else case e in #( 10419 e) lt_cv_prog_compiler_static_works=no 10420 save_LDFLAGS=$LDFLAGS 10421 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10422 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10424 # The linker can only warn and ignore the option if not recognized 10425 # So say no if there are warnings 10426 if test -s conftest.err; then 10427 # Append any errors to the config.log. 10428 cat conftest.err 1>&5 10429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10431 if diff conftest.exp conftest.er2 >/dev/null; then 10432 lt_cv_prog_compiler_static_works=yes 10433 fi 10434 else 10435 lt_cv_prog_compiler_static_works=yes 10436 fi 10437 fi 10438 $RM -r conftest* 10439 LDFLAGS=$save_LDFLAGS 10440 ;; 10441 esac 10442 fi 10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10444 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10445 10446 if test yes = "$lt_cv_prog_compiler_static_works"; then 10447 : 10448 else 10449 lt_prog_compiler_static= 10450 fi 10451 10452 10453 10454 10455 10456 10457 10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10459 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10460 if test ${lt_cv_prog_compiler_c_o+y} 10461 then : 10462 printf %s "(cached) " >&6 10463 else case e in #( 10464 e) lt_cv_prog_compiler_c_o=no 10465 $RM -r conftest 2>/dev/null 10466 mkdir conftest 10467 cd conftest 10468 mkdir out 10469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10470 10471 lt_compiler_flag="-o out/conftest2.$ac_objext" 10472 # Insert the option either (1) after the last *FLAGS variable, or 10473 # (2) before a word containing "conftest.", or (3) at the end. 10474 # Note that $ac_compile itself does not contain backslashes and begins 10475 # with a dollar sign (not a hyphen), so the echo should work correctly. 10476 lt_compile=`echo "$ac_compile" | $SED \ 10477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10479 -e 's:$: $lt_compiler_flag:'` 10480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10481 (eval "$lt_compile" 2>out/conftest.err) 10482 ac_status=$? 10483 cat out/conftest.err >&5 10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10485 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10486 then 10487 # The compiler can only warn and ignore the option if not recognized 10488 # So say no if there are warnings 10489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10492 lt_cv_prog_compiler_c_o=yes 10493 fi 10494 fi 10495 chmod u+w . 2>&5 10496 $RM conftest* 10497 # SGI C++ compiler will create directory out/ii_files/ for 10498 # template instantiation 10499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10500 $RM out/* && rmdir out 10501 cd .. 10502 $RM -r conftest 10503 $RM conftest* 10504 ;; 10505 esac 10506 fi 10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10508 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10509 10510 10511 10512 10513 10514 10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10516 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10517 if test ${lt_cv_prog_compiler_c_o+y} 10518 then : 10519 printf %s "(cached) " >&6 10520 else case e in #( 10521 e) lt_cv_prog_compiler_c_o=no 10522 $RM -r conftest 2>/dev/null 10523 mkdir conftest 10524 cd conftest 10525 mkdir out 10526 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10527 10528 lt_compiler_flag="-o out/conftest2.$ac_objext" 10529 # Insert the option either (1) after the last *FLAGS variable, or 10530 # (2) before a word containing "conftest.", or (3) at the end. 10531 # Note that $ac_compile itself does not contain backslashes and begins 10532 # with a dollar sign (not a hyphen), so the echo should work correctly. 10533 lt_compile=`echo "$ac_compile" | $SED \ 10534 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10535 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10536 -e 's:$: $lt_compiler_flag:'` 10537 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10538 (eval "$lt_compile" 2>out/conftest.err) 10539 ac_status=$? 10540 cat out/conftest.err >&5 10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10542 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10543 then 10544 # The compiler can only warn and ignore the option if not recognized 10545 # So say no if there are warnings 10546 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10547 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10548 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10549 lt_cv_prog_compiler_c_o=yes 10550 fi 10551 fi 10552 chmod u+w . 2>&5 10553 $RM conftest* 10554 # SGI C++ compiler will create directory out/ii_files/ for 10555 # template instantiation 10556 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10557 $RM out/* && rmdir out 10558 cd .. 10559 $RM -r conftest 10560 $RM conftest* 10561 ;; 10562 esac 10563 fi 10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10565 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10566 10567 10568 10569 10570 hard_links=nottested 10571 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10572 # do not overwrite the value of need_locks provided by the user 10573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10574 printf %s "checking if we can lock with hard links... " >&6; } 10575 hard_links=yes 10576 $RM conftest* 10577 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10578 touch conftest.a 10579 ln conftest.a conftest.b 2>&5 || hard_links=no 10580 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10582 printf "%s\n" "$hard_links" >&6; } 10583 if test no = "$hard_links"; then 10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10585 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10586 need_locks=warn 10587 fi 10588 else 10589 need_locks=no 10590 fi 10591 10592 10593 10594 10595 10596 10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10598 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10599 10600 runpath_var= 10601 allow_undefined_flag= 10602 always_export_symbols=no 10603 archive_cmds= 10604 archive_expsym_cmds= 10605 compiler_needs_object=no 10606 enable_shared_with_static_runtimes=no 10607 export_dynamic_flag_spec= 10608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10609 hardcode_automatic=no 10610 hardcode_direct=no 10611 hardcode_direct_absolute=no 10612 hardcode_libdir_flag_spec= 10613 hardcode_libdir_separator= 10614 hardcode_minus_L=no 10615 hardcode_shlibpath_var=unsupported 10616 inherit_rpath=no 10617 link_all_deplibs=unknown 10618 module_cmds= 10619 module_expsym_cmds= 10620 old_archive_from_new_cmds= 10621 old_archive_from_expsyms_cmds= 10622 thread_safe_flag_spec= 10623 whole_archive_flag_spec= 10624 # include_expsyms should be a list of space-separated symbols to be *always* 10625 # included in the symbol list 10626 include_expsyms= 10627 # exclude_expsyms can be an extended regexp of symbols to exclude 10628 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10629 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10630 # as well as any symbol that contains 'd'. 10631 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10632 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10633 # platforms (ab)use it in PIC code, but their linkers get confused if 10634 # the symbol is explicitly referenced. Since portable code cannot 10635 # rely on this symbol name, it's probably fine to never include it in 10636 # preloaded symbol tables. 10637 # Exclude shared library initialization/finalization symbols. 10638 extract_expsyms_cmds= 10639 10640 case $host_os in 10641 cygwin* | mingw* | pw32* | cegcc*) 10642 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10643 # When not using gcc, we currently assume that we are using 10644 # Microsoft Visual C++ or Intel C++ Compiler. 10645 if test yes != "$GCC"; then 10646 with_gnu_ld=no 10647 fi 10648 ;; 10649 interix*) 10650 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10651 with_gnu_ld=yes 10652 ;; 10653 openbsd* | bitrig*) 10654 with_gnu_ld=no 10655 ;; 10656 esac 10657 10658 ld_shlibs=yes 10659 10660 # On some targets, GNU ld is compatible enough with the native linker 10661 # that we're better off using the native interface for both. 10662 lt_use_gnu_ld_interface=no 10663 if test yes = "$with_gnu_ld"; then 10664 case $host_os in 10665 aix*) 10666 # The AIX port of GNU ld has always aspired to compatibility 10667 # with the native linker. However, as the warning in the GNU ld 10668 # block says, versions before 2.19.5* couldn't really create working 10669 # shared libraries, regardless of the interface used. 10670 case `$LD -v 2>&1` in 10671 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10672 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10673 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10674 *) 10675 lt_use_gnu_ld_interface=yes 10676 ;; 10677 esac 10678 ;; 10679 *) 10680 lt_use_gnu_ld_interface=yes 10681 ;; 10682 esac 10683 fi 10684 10685 if test yes = "$lt_use_gnu_ld_interface"; then 10686 # If archive_cmds runs LD, not CC, wlarc should be empty 10687 wlarc='$wl' 10688 10689 # Set some defaults for GNU ld with shared library support. These 10690 # are reset later if shared libraries are not supported. Putting them 10691 # here allows them to be overridden if necessary. 10692 runpath_var=LD_RUN_PATH 10693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10694 export_dynamic_flag_spec='$wl--export-dynamic' 10695 # ancient GNU ld didn't support --whole-archive et. al. 10696 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10697 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10698 else 10699 whole_archive_flag_spec= 10700 fi 10701 supports_anon_versioning=no 10702 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10703 *GNU\ gold*) supports_anon_versioning=yes ;; 10704 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10705 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10706 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10707 *\ 2.11.*) ;; # other 2.11 versions 10708 *) supports_anon_versioning=yes ;; 10709 esac 10710 10711 # See if GNU ld supports shared libraries. 10712 case $host_os in 10713 aix[3-9]*) 10714 # On AIX/PPC, the GNU linker is very broken 10715 if test ia64 != "$host_cpu"; then 10716 ld_shlibs=no 10717 cat <<_LT_EOF 1>&2 10718 10719 *** Warning: the GNU linker, at least up to release 2.19, is reported 10720 *** to be unable to reliably create shared libraries on AIX. 10721 *** Therefore, libtool is disabling shared libraries support. If you 10722 *** really care for shared libraries, you may want to install binutils 10723 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10724 *** You will then need to restart the configuration process. 10725 10726 _LT_EOF 10727 fi 10728 ;; 10729 10730 amigaos*) 10731 case $host_cpu in 10732 powerpc) 10733 # see comment about AmigaOS4 .so support 10734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10735 archive_expsym_cmds='' 10736 ;; 10737 m68k) 10738 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)' 10739 hardcode_libdir_flag_spec='-L$libdir' 10740 hardcode_minus_L=yes 10741 ;; 10742 esac 10743 ;; 10744 10745 beos*) 10746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10747 allow_undefined_flag=unsupported 10748 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc 10749 # support --undefined. This deserves some investigation. FIXME 10750 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10751 else 10752 ld_shlibs=no 10753 fi 10754 ;; 10755 10756 cygwin* | mingw* | pw32* | cegcc*) 10757 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10758 # as there is no search path for DLLs. 10759 hardcode_libdir_flag_spec='-L$libdir' 10760 export_dynamic_flag_spec='$wl--export-all-symbols' 10761 allow_undefined_flag=unsupported 10762 always_export_symbols=no 10763 enable_shared_with_static_runtimes=yes 10764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10765 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10766 10767 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10769 # If the export-symbols file already is a .def file, use it as 10770 # is; otherwise, prepend EXPORTS... 10771 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10772 cp $export_symbols $output_objdir/$soname.def; 10773 else 10774 echo EXPORTS > $output_objdir/$soname.def; 10775 cat $export_symbols >> $output_objdir/$soname.def; 10776 fi~ 10777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10778 else 10779 ld_shlibs=no 10780 fi 10781 ;; 10782 10783 haiku*) 10784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10785 link_all_deplibs=yes 10786 ;; 10787 10788 os2*) 10789 hardcode_libdir_flag_spec='-L$libdir' 10790 hardcode_minus_L=yes 10791 allow_undefined_flag=unsupported 10792 shrext_cmds=.dll 10793 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10794 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10795 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10796 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10797 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10798 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10799 emximp -o $lib $output_objdir/$libname.def' 10800 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10801 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10802 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10803 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10804 prefix_cmds="$SED"~ 10805 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10806 prefix_cmds="$prefix_cmds -e 1d"; 10807 fi~ 10808 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10809 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10810 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10811 emximp -o $lib $output_objdir/$libname.def' 10812 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10813 enable_shared_with_static_runtimes=yes 10814 file_list_spec='@' 10815 ;; 10816 10817 interix[3-9]*) 10818 hardcode_direct=no 10819 hardcode_shlibpath_var=no 10820 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10821 export_dynamic_flag_spec='$wl-E' 10822 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10823 # Instead, shared libraries are loaded at an image base (0x10000000 by 10824 # default) and relocated if they conflict, which is a slow very memory 10825 # consuming and fragmenting process. To avoid this, we pick a random, 10826 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10827 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10828 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10829 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' 10830 ;; 10831 10832 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10833 tmp_diet=no 10834 if test linux-dietlibc = "$host_os"; then 10835 case $cc_basename in 10836 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10837 esac 10838 fi 10839 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10840 && test no = "$tmp_diet" 10841 then 10842 tmp_addflag=' $pic_flag' 10843 tmp_sharedflag='-shared' 10844 case $cc_basename,$host_cpu in 10845 pgcc*) # Portland Group C compiler 10846 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' 10847 tmp_addflag=' $pic_flag' 10848 ;; 10849 pgf77* | pgf90* | pgf95* | pgfortran*) 10850 # Portland Group f77 and f90 compilers 10851 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' 10852 tmp_addflag=' $pic_flag -Mnomain' ;; 10853 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10854 tmp_addflag=' -i_dynamic' ;; 10855 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10856 tmp_addflag=' -i_dynamic -nofor_main' ;; 10857 ifc* | ifort*) # Intel Fortran compiler 10858 tmp_addflag=' -nofor_main' ;; 10859 lf95*) # Lahey Fortran 8.1 10860 whole_archive_flag_spec= 10861 tmp_sharedflag='--shared' ;; 10862 nagfor*) # NAGFOR 5.3 10863 tmp_sharedflag='-Wl,-shared' ;; 10864 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10865 tmp_sharedflag='-qmkshrobj' 10866 tmp_addflag= ;; 10867 nvcc*) # Cuda Compiler Driver 2.2 10868 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' 10869 compiler_needs_object=yes 10870 ;; 10871 esac 10872 case `$CC -V 2>&1 | $SED 5q` in 10873 *Sun\ C*) # Sun C 5.9 10874 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' 10875 compiler_needs_object=yes 10876 tmp_sharedflag='-G' ;; 10877 *Sun\ F*) # Sun Fortran 8.3 10878 tmp_sharedflag='-G' ;; 10879 esac 10880 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10881 10882 if test yes = "$supports_anon_versioning"; then 10883 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10884 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10885 echo "local: *; };" >> $output_objdir/$libname.ver~ 10886 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10887 fi 10888 10889 case $cc_basename in 10890 tcc*) 10891 export_dynamic_flag_spec='-rdynamic' 10892 ;; 10893 xlf* | bgf* | bgxlf* | mpixlf*) 10894 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10895 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10896 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10897 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10898 if test yes = "$supports_anon_versioning"; then 10899 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10900 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10901 echo "local: *; };" >> $output_objdir/$libname.ver~ 10902 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10903 fi 10904 ;; 10905 esac 10906 else 10907 ld_shlibs=no 10908 fi 10909 ;; 10910 10911 netbsd*) 10912 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10913 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10914 wlarc= 10915 else 10916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10917 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10918 fi 10919 ;; 10920 10921 solaris*) 10922 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10923 ld_shlibs=no 10924 cat <<_LT_EOF 1>&2 10925 10926 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 10927 *** create shared libraries on Solaris systems. Therefore, libtool 10928 *** is disabling shared libraries support. We urge you to upgrade GNU 10929 *** binutils to release 2.9.1 or newer. Another option is to modify 10930 *** your PATH or compiler configuration so that the native linker is 10931 *** used, and then restart. 10932 10933 _LT_EOF 10934 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10935 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10936 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10937 else 10938 ld_shlibs=no 10939 fi 10940 ;; 10941 10942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10943 case `$LD -v 2>&1` in 10944 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10945 ld_shlibs=no 10946 cat <<_LT_EOF 1>&2 10947 10948 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10949 *** reliably create shared libraries on SCO systems. Therefore, libtool 10950 *** is disabling shared libraries support. We urge you to upgrade GNU 10951 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10952 *** your PATH or compiler configuration so that the native linker is 10953 *** used, and then restart. 10954 10955 _LT_EOF 10956 ;; 10957 *) 10958 # For security reasons, it is highly recommended that you always 10959 # use absolute paths for naming shared libraries, and exclude the 10960 # DT_RUNPATH tag from executables and libraries. But doing so 10961 # requires that you compile everything twice, which is a pain. 10962 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10963 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10966 else 10967 ld_shlibs=no 10968 fi 10969 ;; 10970 esac 10971 ;; 10972 10973 sunos4*) 10974 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10975 wlarc= 10976 hardcode_direct=yes 10977 hardcode_shlibpath_var=no 10978 ;; 10979 10980 *) 10981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10984 else 10985 ld_shlibs=no 10986 fi 10987 ;; 10988 esac 10989 10990 if test no = "$ld_shlibs"; then 10991 runpath_var= 10992 hardcode_libdir_flag_spec= 10993 export_dynamic_flag_spec= 10994 whole_archive_flag_spec= 10995 fi 10996 else 10997 # PORTME fill in a description of your system's linker (not GNU ld) 10998 case $host_os in 10999 aix3*) 11000 allow_undefined_flag=unsupported 11001 always_export_symbols=yes 11002 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' 11003 # Note: this linker hardcodes the directories in LIBPATH if there 11004 # are no directories specified by -L. 11005 hardcode_minus_L=yes 11006 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11007 # Neither direct hardcoding nor static linking is supported with a 11008 # broken collect2. 11009 hardcode_direct=unsupported 11010 fi 11011 ;; 11012 11013 aix[4-9]*) 11014 if test ia64 = "$host_cpu"; then 11015 # On IA64, the linker does run time linking by default, so we don't 11016 # have to do anything special. 11017 aix_use_runtimelinking=no 11018 exp_sym_flag='-Bexport' 11019 no_entry_flag= 11020 else 11021 # If we're using GNU nm, then we don't want the "-C" option. 11022 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11023 # Without the "-l" option, or with the "-B" option, AIX nm treats 11024 # weak defined symbols like other global defined symbols, whereas 11025 # GNU nm marks them as "W". 11026 # While the 'weak' keyword is ignored in the Export File, we need 11027 # it in the Import File for the 'aix-soname' feature, so we have 11028 # to replace the "-B" option with "-P" for AIX nm. 11029 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11030 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 11031 else 11032 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 11033 fi 11034 aix_use_runtimelinking=no 11035 11036 # Test if we are trying to use run time linking or normal 11037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11038 # have runtime linking enabled, and use it for executables. 11039 # For shared libraries, we enable/disable runtime linking 11040 # depending on the kind of the shared library created - 11041 # when "with_aix_soname,aix_use_runtimelinking" is: 11042 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11043 # "aix,yes" lib.so shared, rtl:yes, for executables 11044 # lib.a static archive 11045 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11046 # lib.a(lib.so.V) shared, rtl:no, for executables 11047 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11048 # lib.a(lib.so.V) shared, rtl:no 11049 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11050 # lib.a static archive 11051 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11052 for ld_flag in $LDFLAGS; do 11053 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11054 aix_use_runtimelinking=yes 11055 break 11056 fi 11057 done 11058 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11059 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11060 # so we don't have lib.a shared libs to link our executables. 11061 # We have to force runtime linking in this case. 11062 aix_use_runtimelinking=yes 11063 LDFLAGS="$LDFLAGS -Wl,-brtl" 11064 fi 11065 ;; 11066 esac 11067 11068 exp_sym_flag='-bexport' 11069 no_entry_flag='-bnoentry' 11070 fi 11071 11072 # When large executables or shared objects are built, AIX ld can 11073 # have problems creating the table of contents. If linking a library 11074 # or program results in "error TOC overflow" add -mminimal-toc to 11075 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11076 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11077 11078 archive_cmds='' 11079 hardcode_direct=yes 11080 hardcode_direct_absolute=yes 11081 hardcode_libdir_separator=':' 11082 link_all_deplibs=yes 11083 file_list_spec='$wl-f,' 11084 case $with_aix_soname,$aix_use_runtimelinking in 11085 aix,*) ;; # traditional, no import file 11086 svr4,* | *,yes) # use import file 11087 # The Import File defines what to hardcode. 11088 hardcode_direct=no 11089 hardcode_direct_absolute=no 11090 ;; 11091 esac 11092 11093 if test yes = "$GCC"; then 11094 case $host_os in aix4.[012]|aix4.[012].*) 11095 # We only want to do this on AIX 4.2 and lower, the check 11096 # below for broken collect2 doesn't work under 4.3+ 11097 collect2name=`$CC -print-prog-name=collect2` 11098 if test -f "$collect2name" && 11099 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11100 then 11101 # We have reworked collect2 11102 : 11103 else 11104 # We have old collect2 11105 hardcode_direct=unsupported 11106 # It fails to find uninstalled libraries when the uninstalled 11107 # path is not listed in the libpath. Setting hardcode_minus_L 11108 # to unsupported forces relinking 11109 hardcode_minus_L=yes 11110 hardcode_libdir_flag_spec='-L$libdir' 11111 hardcode_libdir_separator= 11112 fi 11113 ;; 11114 esac 11115 shared_flag='-shared' 11116 if test yes = "$aix_use_runtimelinking"; then 11117 shared_flag="$shared_flag "'$wl-G' 11118 fi 11119 # Need to ensure runtime linking is disabled for the traditional 11120 # shared library, or the linker may eventually find shared libraries 11121 # /with/ Import File - we do not want to mix them. 11122 shared_flag_aix='-shared' 11123 shared_flag_svr4='-shared $wl-G' 11124 else 11125 # not using gcc 11126 if test ia64 = "$host_cpu"; then 11127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11128 # chokes on -Wl,-G. The following line is correct: 11129 shared_flag='-G' 11130 else 11131 if test yes = "$aix_use_runtimelinking"; then 11132 shared_flag='$wl-G' 11133 else 11134 shared_flag='$wl-bM:SRE' 11135 fi 11136 shared_flag_aix='$wl-bM:SRE' 11137 shared_flag_svr4='$wl-G' 11138 fi 11139 fi 11140 11141 export_dynamic_flag_spec='$wl-bexpall' 11142 # It seems that -bexpall does not export symbols beginning with 11143 # underscore (_), so it is better to generate a list of symbols to export. 11144 always_export_symbols=yes 11145 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11146 # Warning - without using the other runtime loading flags (-brtl), 11147 # -berok will link without error, but may produce a broken library. 11148 allow_undefined_flag='-berok' 11149 # Determine the default libpath from the value encoded in an 11150 # empty executable. 11151 if test set = "${lt_cv_aix_libpath+set}"; then 11152 aix_libpath=$lt_cv_aix_libpath 11153 else 11154 if test ${lt_cv_aix_libpath_+y} 11155 then : 11156 printf %s "(cached) " >&6 11157 else case e in #( 11158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11159 /* end confdefs.h. */ 11160 11161 int 11162 main (void) 11163 { 11164 11165 ; 11166 return 0; 11167 } 11168 _ACEOF 11169 if ac_fn_c_try_link "$LINENO" 11170 then : 11171 11172 lt_aix_libpath_sed=' 11173 /Import File Strings/,/^$/ { 11174 /^0/ { 11175 s/^0 *\([^ ]*\) *$/\1/ 11176 p 11177 } 11178 }' 11179 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11180 # Check for a 64-bit object if we didn't find anything. 11181 if test -z "$lt_cv_aix_libpath_"; then 11182 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11183 fi 11184 fi 11185 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11186 conftest$ac_exeext conftest.$ac_ext 11187 if test -z "$lt_cv_aix_libpath_"; then 11188 lt_cv_aix_libpath_=/usr/lib:/lib 11189 fi 11190 ;; 11191 esac 11192 fi 11193 11194 aix_libpath=$lt_cv_aix_libpath_ 11195 fi 11196 11197 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11198 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11199 else 11200 if test ia64 = "$host_cpu"; then 11201 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11202 allow_undefined_flag="-z nodefs" 11203 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" 11204 else 11205 # Determine the default libpath from the value encoded in an 11206 # empty executable. 11207 if test set = "${lt_cv_aix_libpath+set}"; then 11208 aix_libpath=$lt_cv_aix_libpath 11209 else 11210 if test ${lt_cv_aix_libpath_+y} 11211 then : 11212 printf %s "(cached) " >&6 11213 else case e in #( 11214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11215 /* end confdefs.h. */ 11216 11217 int 11218 main (void) 11219 { 11220 11221 ; 11222 return 0; 11223 } 11224 _ACEOF 11225 if ac_fn_c_try_link "$LINENO" 11226 then : 11227 11228 lt_aix_libpath_sed=' 11229 /Import File Strings/,/^$/ { 11230 /^0/ { 11231 s/^0 *\([^ ]*\) *$/\1/ 11232 p 11233 } 11234 }' 11235 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11236 # Check for a 64-bit object if we didn't find anything. 11237 if test -z "$lt_cv_aix_libpath_"; then 11238 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11239 fi 11240 fi 11241 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11242 conftest$ac_exeext conftest.$ac_ext 11243 if test -z "$lt_cv_aix_libpath_"; then 11244 lt_cv_aix_libpath_=/usr/lib:/lib 11245 fi 11246 ;; 11247 esac 11248 fi 11249 11250 aix_libpath=$lt_cv_aix_libpath_ 11251 fi 11252 11253 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11254 # Warning - without using the other run time loading flags, 11255 # -berok will link without error, but may produce a broken library. 11256 no_undefined_flag=' $wl-bernotok' 11257 allow_undefined_flag=' $wl-berok' 11258 if test yes = "$with_gnu_ld"; then 11259 # We only use this code for GNU lds that support --whole-archive. 11260 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11261 else 11262 # Exported symbols can be pulled into shared objects from archives 11263 whole_archive_flag_spec='$convenience' 11264 fi 11265 archive_cmds_need_lc=yes 11266 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11267 # -brtl affects multiple linker settings, -berok does not and is overridden later 11268 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11269 if test svr4 != "$with_aix_soname"; then 11270 # This is similar to how AIX traditionally builds its shared libraries. 11271 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11272 fi 11273 if test aix != "$with_aix_soname"; then 11274 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11275 else 11276 # used by -dlpreopen to get the symbols 11277 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11278 fi 11279 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11280 fi 11281 fi 11282 ;; 11283 11284 amigaos*) 11285 case $host_cpu in 11286 powerpc) 11287 # see comment about AmigaOS4 .so support 11288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11289 archive_expsym_cmds='' 11290 ;; 11291 m68k) 11292 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)' 11293 hardcode_libdir_flag_spec='-L$libdir' 11294 hardcode_minus_L=yes 11295 ;; 11296 esac 11297 ;; 11298 11299 bsdi[45]*) 11300 export_dynamic_flag_spec=-rdynamic 11301 ;; 11302 11303 cygwin* | mingw* | pw32* | cegcc*) 11304 # When not using gcc, we currently assume that we are using 11305 # Microsoft Visual C++ or Intel C++ Compiler. 11306 # hardcode_libdir_flag_spec is actually meaningless, as there is 11307 # no search path for DLLs. 11308 case $cc_basename in 11309 cl* | icl*) 11310 # Native MSVC or ICC 11311 hardcode_libdir_flag_spec=' ' 11312 allow_undefined_flag=unsupported 11313 always_export_symbols=yes 11314 file_list_spec='@' 11315 # Tell ltmain to make .lib files, not .a files. 11316 libext=lib 11317 # Tell ltmain to make .dll files, not .so files. 11318 shrext_cmds=.dll 11319 # FIXME: Setting linknames here is a bad hack. 11320 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11321 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11322 cp "$export_symbols" "$output_objdir/$soname.def"; 11323 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11324 else 11325 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11326 fi~ 11327 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11328 linknames=' 11329 # The linker will not automatically build a static lib if we build a DLL. 11330 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11331 enable_shared_with_static_runtimes=yes 11332 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11334 # Don't use ranlib 11335 old_postinstall_cmds='chmod 644 $oldlib' 11336 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11337 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11338 case $lt_outputfile in 11339 *.exe|*.EXE) ;; 11340 *) 11341 lt_outputfile=$lt_outputfile.exe 11342 lt_tool_outputfile=$lt_tool_outputfile.exe 11343 ;; 11344 esac~ 11345 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11346 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11347 $RM "$lt_outputfile.manifest"; 11348 fi' 11349 ;; 11350 *) 11351 # Assume MSVC and ICC wrapper 11352 hardcode_libdir_flag_spec=' ' 11353 allow_undefined_flag=unsupported 11354 # Tell ltmain to make .lib files, not .a files. 11355 libext=lib 11356 # Tell ltmain to make .dll files, not .so files. 11357 shrext_cmds=.dll 11358 # FIXME: Setting linknames here is a bad hack. 11359 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11360 # The linker will automatically build a .lib file if we build a DLL. 11361 old_archive_from_new_cmds='true' 11362 # FIXME: Should let the user specify the lib program. 11363 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11364 enable_shared_with_static_runtimes=yes 11365 ;; 11366 esac 11367 ;; 11368 11369 darwin* | rhapsody*) 11370 11371 11372 archive_cmds_need_lc=no 11373 hardcode_direct=no 11374 hardcode_automatic=yes 11375 hardcode_shlibpath_var=unsupported 11376 if test yes = "$lt_cv_ld_force_load"; then 11377 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\"`' 11378 11379 else 11380 whole_archive_flag_spec='' 11381 fi 11382 link_all_deplibs=yes 11383 allow_undefined_flag=$_lt_dar_allow_undefined 11384 case $cc_basename in 11385 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11386 *) _lt_dar_can_shared=$GCC ;; 11387 esac 11388 if test yes = "$_lt_dar_can_shared"; then 11389 output_verbose_link_cmd=func_echo_all 11390 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11391 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11392 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" 11393 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" 11394 11395 else 11396 ld_shlibs=no 11397 fi 11398 11399 ;; 11400 11401 dgux*) 11402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11403 hardcode_libdir_flag_spec='-L$libdir' 11404 hardcode_shlibpath_var=no 11405 ;; 11406 11407 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11408 # support. Future versions do this automatically, but an explicit c++rt0.o 11409 # does not break anything, and helps significantly (at the cost of a little 11410 # extra space). 11411 freebsd2.2*) 11412 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11413 hardcode_libdir_flag_spec='-R$libdir' 11414 hardcode_direct=yes 11415 hardcode_shlibpath_var=no 11416 ;; 11417 11418 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11419 freebsd2.*) 11420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11421 hardcode_direct=yes 11422 hardcode_minus_L=yes 11423 hardcode_shlibpath_var=no 11424 ;; 11425 11426 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11427 freebsd* | dragonfly* | midnightbsd*) 11428 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11429 hardcode_libdir_flag_spec='-R$libdir' 11430 hardcode_direct=yes 11431 hardcode_shlibpath_var=no 11432 ;; 11433 11434 hpux9*) 11435 if test yes = "$GCC"; then 11436 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11437 else 11438 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11439 fi 11440 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11441 hardcode_libdir_separator=: 11442 hardcode_direct=yes 11443 11444 # hardcode_minus_L: Not really in the search PATH, 11445 # but as the default location of the library. 11446 hardcode_minus_L=yes 11447 export_dynamic_flag_spec='$wl-E' 11448 ;; 11449 11450 hpux10*) 11451 if test yes,no = "$GCC,$with_gnu_ld"; then 11452 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11453 else 11454 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11455 fi 11456 if test no = "$with_gnu_ld"; then 11457 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11458 hardcode_libdir_separator=: 11459 hardcode_direct=yes 11460 hardcode_direct_absolute=yes 11461 export_dynamic_flag_spec='$wl-E' 11462 # hardcode_minus_L: Not really in the search PATH, 11463 # but as the default location of the library. 11464 hardcode_minus_L=yes 11465 fi 11466 ;; 11467 11468 hpux11*) 11469 if test yes,no = "$GCC,$with_gnu_ld"; then 11470 case $host_cpu in 11471 hppa*64*) 11472 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11473 ;; 11474 ia64*) 11475 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11476 ;; 11477 *) 11478 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11479 ;; 11480 esac 11481 else 11482 case $host_cpu in 11483 hppa*64*) 11484 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11485 ;; 11486 ia64*) 11487 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11488 ;; 11489 *) 11490 11491 # Older versions of the 11.00 compiler do not understand -b yet 11492 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11494 printf %s "checking if $CC understands -b... " >&6; } 11495 if test ${lt_cv_prog_compiler__b+y} 11496 then : 11497 printf %s "(cached) " >&6 11498 else case e in #( 11499 e) lt_cv_prog_compiler__b=no 11500 save_LDFLAGS=$LDFLAGS 11501 LDFLAGS="$LDFLAGS -b" 11502 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11503 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11504 # The linker can only warn and ignore the option if not recognized 11505 # So say no if there are warnings 11506 if test -s conftest.err; then 11507 # Append any errors to the config.log. 11508 cat conftest.err 1>&5 11509 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11511 if diff conftest.exp conftest.er2 >/dev/null; then 11512 lt_cv_prog_compiler__b=yes 11513 fi 11514 else 11515 lt_cv_prog_compiler__b=yes 11516 fi 11517 fi 11518 $RM -r conftest* 11519 LDFLAGS=$save_LDFLAGS 11520 ;; 11521 esac 11522 fi 11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11524 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11525 11526 if test yes = "$lt_cv_prog_compiler__b"; then 11527 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11528 else 11529 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11530 fi 11531 11532 ;; 11533 esac 11534 fi 11535 if test no = "$with_gnu_ld"; then 11536 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11537 hardcode_libdir_separator=: 11538 11539 case $host_cpu in 11540 hppa*64*|ia64*) 11541 hardcode_direct=no 11542 hardcode_shlibpath_var=no 11543 ;; 11544 *) 11545 hardcode_direct=yes 11546 hardcode_direct_absolute=yes 11547 export_dynamic_flag_spec='$wl-E' 11548 11549 # hardcode_minus_L: Not really in the search PATH, 11550 # but as the default location of the library. 11551 hardcode_minus_L=yes 11552 ;; 11553 esac 11554 fi 11555 ;; 11556 11557 irix5* | irix6* | nonstopux*) 11558 if test yes = "$GCC"; then 11559 archive_cmds='$CC -shared $pic_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' 11560 # Try to use the -exported_symbol ld option, if it does not 11561 # work, assume that -exports_file does not work either and 11562 # implicitly export all symbols. 11563 # This should be the same for all languages, so no per-tag cache variable. 11564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11565 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11566 if test ${lt_cv_irix_exported_symbol+y} 11567 then : 11568 printf %s "(cached) " >&6 11569 else case e in #( 11570 e) save_LDFLAGS=$LDFLAGS 11571 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11573 /* end confdefs.h. */ 11574 int foo (void) { return 0; } 11575 _ACEOF 11576 if ac_fn_c_try_link "$LINENO" 11577 then : 11578 lt_cv_irix_exported_symbol=yes 11579 else case e in #( 11580 e) lt_cv_irix_exported_symbol=no ;; 11581 esac 11582 fi 11583 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11584 conftest$ac_exeext conftest.$ac_ext 11585 LDFLAGS=$save_LDFLAGS ;; 11586 esac 11587 fi 11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11589 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11590 if test yes = "$lt_cv_irix_exported_symbol"; then 11591 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib' 11592 fi 11593 else 11594 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' 11595 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' 11596 fi 11597 archive_cmds_need_lc='no' 11598 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11599 hardcode_libdir_separator=: 11600 inherit_rpath=yes 11601 link_all_deplibs=yes 11602 ;; 11603 11604 linux*) 11605 case $cc_basename in 11606 tcc*) 11607 # Fabrice Bellard et al's Tiny C Compiler 11608 ld_shlibs=yes 11609 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11610 ;; 11611 esac 11612 ;; 11613 11614 netbsd*) 11615 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11617 else 11618 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11619 fi 11620 hardcode_libdir_flag_spec='-R$libdir' 11621 hardcode_direct=yes 11622 hardcode_shlibpath_var=no 11623 ;; 11624 11625 newsos6) 11626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11627 hardcode_direct=yes 11628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11629 hardcode_libdir_separator=: 11630 hardcode_shlibpath_var=no 11631 ;; 11632 11633 *nto* | *qnx*) 11634 ;; 11635 11636 openbsd* | bitrig*) 11637 if test -f /usr/libexec/ld.so; then 11638 hardcode_direct=yes 11639 hardcode_shlibpath_var=no 11640 hardcode_direct_absolute=yes 11641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11643 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11644 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11645 export_dynamic_flag_spec='$wl-E' 11646 else 11647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11648 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11649 fi 11650 else 11651 ld_shlibs=no 11652 fi 11653 ;; 11654 11655 os2*) 11656 hardcode_libdir_flag_spec='-L$libdir' 11657 hardcode_minus_L=yes 11658 allow_undefined_flag=unsupported 11659 shrext_cmds=.dll 11660 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11661 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11662 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11663 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11664 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11665 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11666 emximp -o $lib $output_objdir/$libname.def' 11667 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11670 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11671 prefix_cmds="$SED"~ 11672 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11673 prefix_cmds="$prefix_cmds -e 1d"; 11674 fi~ 11675 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11676 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11677 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11678 emximp -o $lib $output_objdir/$libname.def' 11679 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11680 enable_shared_with_static_runtimes=yes 11681 file_list_spec='@' 11682 ;; 11683 11684 osf3*) 11685 if test yes = "$GCC"; then 11686 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11687 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' 11688 else 11689 allow_undefined_flag=' -expect_unresolved \*' 11690 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' 11691 fi 11692 archive_cmds_need_lc='no' 11693 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11694 hardcode_libdir_separator=: 11695 ;; 11696 11697 osf4* | osf5*) # as osf3* with the addition of -msym flag 11698 if test yes = "$GCC"; then 11699 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11700 archive_cmds='$CC -shared$allow_undefined_flag $pic_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' 11701 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11702 else 11703 allow_undefined_flag=' -expect_unresolved \*' 11704 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' 11705 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~ 11706 $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' 11707 11708 # Both c and cxx compiler support -rpath directly 11709 hardcode_libdir_flag_spec='-rpath $libdir' 11710 fi 11711 archive_cmds_need_lc='no' 11712 hardcode_libdir_separator=: 11713 ;; 11714 11715 solaris*) 11716 no_undefined_flag=' -z defs' 11717 if test yes = "$GCC"; then 11718 wlarc='$wl' 11719 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11720 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11721 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11722 else 11723 case `$CC -V 2>&1` in 11724 *"Compilers 5.0"*) 11725 wlarc='' 11726 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11728 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11729 ;; 11730 *) 11731 wlarc='$wl' 11732 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11733 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11734 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11735 ;; 11736 esac 11737 fi 11738 hardcode_libdir_flag_spec='-R$libdir' 11739 hardcode_shlibpath_var=no 11740 case $host_os in 11741 solaris2.[0-5] | solaris2.[0-5].*) ;; 11742 *) 11743 # The compiler driver will combine and reorder linker options, 11744 # but understands '-z linker_flag'. GCC discards it without '$wl', 11745 # but is careful enough not to reorder. 11746 # Supported since Solaris 2.6 (maybe 2.5.1?) 11747 if test yes = "$GCC"; then 11748 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11749 else 11750 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11751 fi 11752 ;; 11753 esac 11754 link_all_deplibs=yes 11755 ;; 11756 11757 sunos4*) 11758 if test sequent = "$host_vendor"; then 11759 # Use $CC to link under sequent, because it throws in some extra .o 11760 # files that make .init and .fini sections work. 11761 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11762 else 11763 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11764 fi 11765 hardcode_libdir_flag_spec='-L$libdir' 11766 hardcode_direct=yes 11767 hardcode_minus_L=yes 11768 hardcode_shlibpath_var=no 11769 ;; 11770 11771 sysv4) 11772 case $host_vendor in 11773 sni) 11774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11775 hardcode_direct=yes # is this really true??? 11776 ;; 11777 siemens) 11778 ## LD is ld it makes a PLAMLIB 11779 ## CC just makes a GrossModule. 11780 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11781 reload_cmds='$CC -r -o $output$reload_objs' 11782 hardcode_direct=no 11783 ;; 11784 motorola) 11785 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11786 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11787 ;; 11788 esac 11789 runpath_var='LD_RUN_PATH' 11790 hardcode_shlibpath_var=no 11791 ;; 11792 11793 sysv4.3*) 11794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11795 hardcode_shlibpath_var=no 11796 export_dynamic_flag_spec='-Bexport' 11797 ;; 11798 11799 sysv4*MP*) 11800 if test -d /usr/nec; then 11801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11802 hardcode_shlibpath_var=no 11803 runpath_var=LD_RUN_PATH 11804 hardcode_runpath_var=yes 11805 ld_shlibs=yes 11806 fi 11807 ;; 11808 11809 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11810 no_undefined_flag='$wl-z,text' 11811 archive_cmds_need_lc=no 11812 hardcode_shlibpath_var=no 11813 runpath_var='LD_RUN_PATH' 11814 11815 if test yes = "$GCC"; then 11816 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11817 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11818 else 11819 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11820 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11821 fi 11822 ;; 11823 11824 sysv5* | sco3.2v5* | sco5v6*) 11825 # Note: We CANNOT use -z defs as we might desire, because we do not 11826 # link with -lc, and that would cause any symbols used from libc to 11827 # always be unresolved, which means just about no library would 11828 # ever link correctly. If we're not using GNU ld we use -z text 11829 # though, which does catch some bad symbols but isn't as heavy-handed 11830 # as -z defs. 11831 no_undefined_flag='$wl-z,text' 11832 allow_undefined_flag='$wl-z,nodefs' 11833 archive_cmds_need_lc=no 11834 hardcode_shlibpath_var=no 11835 hardcode_libdir_flag_spec='$wl-R,$libdir' 11836 hardcode_libdir_separator=':' 11837 link_all_deplibs=yes 11838 export_dynamic_flag_spec='$wl-Bexport' 11839 runpath_var='LD_RUN_PATH' 11840 11841 if test yes = "$GCC"; then 11842 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11843 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11844 else 11845 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11846 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11847 fi 11848 ;; 11849 11850 uts4*) 11851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11852 hardcode_libdir_flag_spec='-L$libdir' 11853 hardcode_shlibpath_var=no 11854 ;; 11855 11856 *) 11857 ld_shlibs=no 11858 ;; 11859 esac 11860 11861 if test sni = "$host_vendor"; then 11862 case $host in 11863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11864 export_dynamic_flag_spec='$wl-Blargedynsym' 11865 ;; 11866 esac 11867 fi 11868 fi 11869 11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11871 printf "%s\n" "$ld_shlibs" >&6; } 11872 test no = "$ld_shlibs" && can_build_shared=no 11873 11874 with_gnu_ld=$with_gnu_ld 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 # 11891 # Do we need to explicitly link libc? 11892 # 11893 case "x$archive_cmds_need_lc" in 11894 x|xyes) 11895 # Assume -lc should be added 11896 archive_cmds_need_lc=yes 11897 11898 if test yes,yes = "$GCC,$enable_shared"; then 11899 case $archive_cmds in 11900 *'~'*) 11901 # FIXME: we may have to deal with multi-command sequences. 11902 ;; 11903 '$CC '*) 11904 # Test whether the compiler implicitly links with -lc since on some 11905 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11906 # to ld, don't add -lc before -lgcc. 11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11908 printf %s "checking whether -lc should be explicitly linked in... " >&6; } 11909 if test ${lt_cv_archive_cmds_need_lc+y} 11910 then : 11911 printf %s "(cached) " >&6 11912 else case e in #( 11913 e) $RM conftest* 11914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11915 11916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11917 (eval $ac_compile) 2>&5 11918 ac_status=$? 11919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11920 test $ac_status = 0; } 2>conftest.err; then 11921 soname=conftest 11922 lib=conftest 11923 libobjs=conftest.$ac_objext 11924 deplibs= 11925 wl=$lt_prog_compiler_wl 11926 pic_flag=$lt_prog_compiler_pic 11927 compiler_flags=-v 11928 linker_flags=-v 11929 verstring= 11930 output_objdir=. 11931 libname=conftest 11932 lt_save_allow_undefined_flag=$allow_undefined_flag 11933 allow_undefined_flag= 11934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11935 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11936 ac_status=$? 11937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11938 test $ac_status = 0; } 11939 then 11940 lt_cv_archive_cmds_need_lc=no 11941 else 11942 lt_cv_archive_cmds_need_lc=yes 11943 fi 11944 allow_undefined_flag=$lt_save_allow_undefined_flag 11945 else 11946 cat conftest.err 1>&5 11947 fi 11948 $RM conftest* 11949 ;; 11950 esac 11951 fi 11952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11953 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 11954 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11955 ;; 11956 esac 11957 fi 11958 ;; 11959 esac 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12113 printf %s "checking dynamic linker characteristics... " >&6; } 12114 12115 if test yes = "$GCC"; then 12116 case $host_os in 12117 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12118 *) lt_awk_arg='/^libraries:/' ;; 12119 esac 12120 case $host_os in 12121 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12122 *) lt_sed_strip_eq='s|=/|/|g' ;; 12123 esac 12124 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12125 case $lt_search_path_spec in 12126 *\;*) 12127 # if the path contains ";" then we assume it to be the separator 12128 # otherwise default to the standard path separator (i.e. ":") - it is 12129 # assumed that no part of a normal pathname contains ";" but that should 12130 # okay in the real world where ";" in dirpaths is itself problematic. 12131 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12132 ;; 12133 *) 12134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12135 ;; 12136 esac 12137 # Ok, now we have the path, separated by spaces, we can step through it 12138 # and add multilib dir if necessary... 12139 lt_tmp_lt_search_path_spec= 12140 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12141 # ...but if some path component already ends with the multilib dir we assume 12142 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12143 case "$lt_multi_os_dir; $lt_search_path_spec " in 12144 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12145 lt_multi_os_dir= 12146 ;; 12147 esac 12148 for lt_sys_path in $lt_search_path_spec; do 12149 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12150 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12151 elif test -n "$lt_multi_os_dir"; then 12152 test -d "$lt_sys_path" && \ 12153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12154 fi 12155 done 12156 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12157 BEGIN {RS = " "; FS = "/|\n";} { 12158 lt_foo = ""; 12159 lt_count = 0; 12160 for (lt_i = NF; lt_i > 0; lt_i--) { 12161 if ($lt_i != "" && $lt_i != ".") { 12162 if ($lt_i == "..") { 12163 lt_count++; 12164 } else { 12165 if (lt_count == 0) { 12166 lt_foo = "/" $lt_i lt_foo; 12167 } else { 12168 lt_count--; 12169 } 12170 } 12171 } 12172 } 12173 if (lt_foo != "") { lt_freq[lt_foo]++; } 12174 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12175 }'` 12176 # AWK program above erroneously prepends '/' to C:/dos/paths 12177 # for these hosts. 12178 case $host_os in 12179 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12180 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12181 esac 12182 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12183 else 12184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12185 fi 12186 library_names_spec= 12187 libname_spec='lib$name' 12188 soname_spec= 12189 shrext_cmds=.so 12190 postinstall_cmds= 12191 postuninstall_cmds= 12192 finish_cmds= 12193 finish_eval= 12194 shlibpath_var= 12195 shlibpath_overrides_runpath=unknown 12196 version_type=none 12197 dynamic_linker="$host_os ld.so" 12198 sys_lib_dlsearch_path_spec="/lib /usr/lib" 12199 need_lib_prefix=unknown 12200 hardcode_into_libs=no 12201 12202 # when you set need_version to no, make sure it does not cause -set_version 12203 # flags to be left without arguments 12204 need_version=unknown 12205 12206 12207 12208 case $host_os in 12209 aix3*) 12210 version_type=linux # correct to gnu/linux during the next big refactor 12211 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12212 shlibpath_var=LIBPATH 12213 12214 # AIX 3 has no versioning support, so we append a major version to the name. 12215 soname_spec='$libname$release$shared_ext$major' 12216 ;; 12217 12218 aix[4-9]*) 12219 version_type=linux # correct to gnu/linux during the next big refactor 12220 need_lib_prefix=no 12221 need_version=no 12222 hardcode_into_libs=yes 12223 if test ia64 = "$host_cpu"; then 12224 # AIX 5 supports IA64 12225 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12226 shlibpath_var=LD_LIBRARY_PATH 12227 else 12228 # With GCC up to 2.95.x, collect2 would create an import file 12229 # for dependence libraries. The import file would start with 12230 # the line '#! .'. This would cause the generated library to 12231 # depend on '.', always an invalid library. This was fixed in 12232 # development snapshots of GCC prior to 3.0. 12233 case $host_os in 12234 aix4 | aix4.[01] | aix4.[01].*) 12235 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12236 echo ' yes ' 12237 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12238 : 12239 else 12240 can_build_shared=no 12241 fi 12242 ;; 12243 esac 12244 # Using Import Files as archive members, it is possible to support 12245 # filename-based versioning of shared library archives on AIX. While 12246 # this would work for both with and without runtime linking, it will 12247 # prevent static linking of such archives. So we do filename-based 12248 # shared library versioning with .so extension only, which is used 12249 # when both runtime linking and shared linking is enabled. 12250 # Unfortunately, runtime linking may impact performance, so we do 12251 # not want this to be the default eventually. Also, we use the 12252 # versioned .so libs for executables only if there is the -brtl 12253 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12254 # To allow for filename-based versioning support, we need to create 12255 # libNAME.so.V as an archive file, containing: 12256 # *) an Import File, referring to the versioned filename of the 12257 # archive as well as the shared archive member, telling the 12258 # bitwidth (32 or 64) of that shared object, and providing the 12259 # list of exported symbols of that shared object, eventually 12260 # decorated with the 'weak' keyword 12261 # *) the shared object with the F_LOADONLY flag set, to really avoid 12262 # it being seen by the linker. 12263 # At run time we better use the real file rather than another symlink, 12264 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12265 12266 case $with_aix_soname,$aix_use_runtimelinking in 12267 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12268 # soname into executable. Probably we can add versioning support to 12269 # collect2, so additional links can be useful in future. 12270 aix,yes) # traditional libtool 12271 dynamic_linker='AIX unversionable lib.so' 12272 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12273 # instead of lib<name>.a to let people know that these are not 12274 # typical AIX shared libraries. 12275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12276 ;; 12277 aix,no) # traditional AIX only 12278 dynamic_linker='AIX lib.a(lib.so.V)' 12279 # We preserve .a as extension for shared libraries through AIX4.2 12280 # and later when we are not doing run time linking. 12281 library_names_spec='$libname$release.a $libname.a' 12282 soname_spec='$libname$release$shared_ext$major' 12283 ;; 12284 svr4,*) # full svr4 only 12285 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12286 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12287 # We do not specify a path in Import Files, so LIBPATH fires. 12288 shlibpath_overrides_runpath=yes 12289 ;; 12290 *,yes) # both, prefer svr4 12291 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12292 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12293 # unpreferred sharedlib libNAME.a needs extra handling 12294 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12295 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12296 # We do not specify a path in Import Files, so LIBPATH fires. 12297 shlibpath_overrides_runpath=yes 12298 ;; 12299 *,no) # both, prefer aix 12300 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12301 library_names_spec='$libname$release.a $libname.a' 12302 soname_spec='$libname$release$shared_ext$major' 12303 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12304 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12305 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12306 ;; 12307 esac 12308 shlibpath_var=LIBPATH 12309 fi 12310 ;; 12311 12312 amigaos*) 12313 case $host_cpu in 12314 powerpc) 12315 # Since July 2007 AmigaOS4 officially supports .so libraries. 12316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12317 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12318 ;; 12319 m68k) 12320 library_names_spec='$libname.ixlibrary $libname.a' 12321 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12322 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 12323 ;; 12324 esac 12325 ;; 12326 12327 beos*) 12328 library_names_spec='$libname$shared_ext' 12329 dynamic_linker="$host_os ld.so" 12330 shlibpath_var=LIBRARY_PATH 12331 ;; 12332 12333 bsdi[45]*) 12334 version_type=linux # correct to gnu/linux during the next big refactor 12335 need_version=no 12336 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12337 soname_spec='$libname$release$shared_ext$major' 12338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12339 shlibpath_var=LD_LIBRARY_PATH 12340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12342 # the default ld.so.conf also contains /usr/contrib/lib and 12343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12344 # libtool to hard-code these into programs 12345 ;; 12346 12347 cygwin* | mingw* | pw32* | cegcc*) 12348 version_type=windows 12349 shrext_cmds=.dll 12350 need_version=no 12351 need_lib_prefix=no 12352 12353 case $GCC,$cc_basename in 12354 yes,*) 12355 # gcc 12356 library_names_spec='$libname.dll.a' 12357 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12358 postinstall_cmds='base_file=`basename \$file`~ 12359 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12360 dldir=$destdir/`dirname \$dlpath`~ 12361 test -d \$dldir || mkdir -p \$dldir~ 12362 $install_prog $dir/$dlname \$dldir/$dlname~ 12363 chmod a+x \$dldir/$dlname~ 12364 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12365 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12366 fi' 12367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12368 dlpath=$dir/\$dldll~ 12369 $RM \$dlpath' 12370 shlibpath_overrides_runpath=yes 12371 12372 case $host_os in 12373 cygwin*) 12374 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12375 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12376 12377 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12378 ;; 12379 mingw* | cegcc*) 12380 # MinGW DLLs use traditional 'lib' prefix 12381 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12382 ;; 12383 pw32*) 12384 # pw32 DLLs use 'pw' prefix rather than 'lib' 12385 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12386 ;; 12387 esac 12388 dynamic_linker='Win32 ld.exe' 12389 ;; 12390 12391 *,cl* | *,icl*) 12392 # Native MSVC or ICC 12393 libname_spec='$name' 12394 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12395 library_names_spec='$libname.dll.lib' 12396 12397 case $build_os in 12398 mingw*) 12399 sys_lib_search_path_spec= 12400 lt_save_ifs=$IFS 12401 IFS=';' 12402 for lt_path in $LIB 12403 do 12404 IFS=$lt_save_ifs 12405 # Let DOS variable expansion print the short 8.3 style file name. 12406 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12407 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12408 done 12409 IFS=$lt_save_ifs 12410 # Convert to MSYS style. 12411 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12412 ;; 12413 cygwin*) 12414 # Convert to unix form, then to dos form, then back to unix form 12415 # but this time dos style (no spaces!) so that the unix form looks 12416 # like /cygdrive/c/PROGRA~1:/cygdr... 12417 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12418 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12419 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12420 ;; 12421 *) 12422 sys_lib_search_path_spec=$LIB 12423 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12424 # It is most probably a Windows format PATH. 12425 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12426 else 12427 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12428 fi 12429 # FIXME: find the short name or the path components, as spaces are 12430 # common. (e.g. "Program Files" -> "PROGRA~1") 12431 ;; 12432 esac 12433 12434 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12435 postinstall_cmds='base_file=`basename \$file`~ 12436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12437 dldir=$destdir/`dirname \$dlpath`~ 12438 test -d \$dldir || mkdir -p \$dldir~ 12439 $install_prog $dir/$dlname \$dldir/$dlname' 12440 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12441 dlpath=$dir/\$dldll~ 12442 $RM \$dlpath' 12443 shlibpath_overrides_runpath=yes 12444 dynamic_linker='Win32 link.exe' 12445 ;; 12446 12447 *) 12448 # Assume MSVC and ICC wrapper 12449 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12450 dynamic_linker='Win32 ld.exe' 12451 ;; 12452 esac 12453 # FIXME: first we should search . and the directory the executable is in 12454 shlibpath_var=PATH 12455 ;; 12456 12457 darwin* | rhapsody*) 12458 dynamic_linker="$host_os dyld" 12459 version_type=darwin 12460 need_lib_prefix=no 12461 need_version=no 12462 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12463 soname_spec='$libname$release$major$shared_ext' 12464 shlibpath_overrides_runpath=yes 12465 shlibpath_var=DYLD_LIBRARY_PATH 12466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12467 12468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12470 ;; 12471 12472 dgux*) 12473 version_type=linux # correct to gnu/linux during the next big refactor 12474 need_lib_prefix=no 12475 need_version=no 12476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12477 soname_spec='$libname$release$shared_ext$major' 12478 shlibpath_var=LD_LIBRARY_PATH 12479 ;; 12480 12481 freebsd* | dragonfly* | midnightbsd*) 12482 # DragonFly does not have aout. When/if they implement a new 12483 # versioning mechanism, adjust this. 12484 if test -x /usr/bin/objformat; then 12485 objformat=`/usr/bin/objformat` 12486 else 12487 case $host_os in 12488 freebsd[23].*) objformat=aout ;; 12489 *) objformat=elf ;; 12490 esac 12491 fi 12492 version_type=freebsd-$objformat 12493 case $version_type in 12494 freebsd-elf*) 12495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12496 soname_spec='$libname$release$shared_ext$major' 12497 need_version=no 12498 need_lib_prefix=no 12499 ;; 12500 freebsd-*) 12501 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12502 need_version=yes 12503 ;; 12504 esac 12505 shlibpath_var=LD_LIBRARY_PATH 12506 case $host_os in 12507 freebsd2.*) 12508 shlibpath_overrides_runpath=yes 12509 ;; 12510 freebsd3.[01]* | freebsdelf3.[01]*) 12511 shlibpath_overrides_runpath=yes 12512 hardcode_into_libs=yes 12513 ;; 12514 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12515 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12516 shlibpath_overrides_runpath=no 12517 hardcode_into_libs=yes 12518 ;; 12519 *) # from 4.6 on, and DragonFly 12520 shlibpath_overrides_runpath=yes 12521 hardcode_into_libs=yes 12522 ;; 12523 esac 12524 ;; 12525 12526 haiku*) 12527 version_type=linux # correct to gnu/linux during the next big refactor 12528 need_lib_prefix=no 12529 need_version=no 12530 dynamic_linker="$host_os runtime_loader" 12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12532 soname_spec='$libname$release$shared_ext$major' 12533 shlibpath_var=LIBRARY_PATH 12534 shlibpath_overrides_runpath=no 12535 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12536 hardcode_into_libs=yes 12537 ;; 12538 12539 hpux9* | hpux10* | hpux11*) 12540 # Give a soname corresponding to the major version so that dld.sl refuses to 12541 # link against other versions. 12542 version_type=sunos 12543 need_lib_prefix=no 12544 need_version=no 12545 case $host_cpu in 12546 ia64*) 12547 shrext_cmds='.so' 12548 hardcode_into_libs=yes 12549 dynamic_linker="$host_os dld.so" 12550 shlibpath_var=LD_LIBRARY_PATH 12551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12553 soname_spec='$libname$release$shared_ext$major' 12554 if test 32 = "$HPUX_IA64_MODE"; then 12555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12556 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12557 else 12558 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12559 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12560 fi 12561 ;; 12562 hppa*64*) 12563 shrext_cmds='.sl' 12564 hardcode_into_libs=yes 12565 dynamic_linker="$host_os dld.sl" 12566 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12569 soname_spec='$libname$release$shared_ext$major' 12570 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12571 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12572 ;; 12573 *) 12574 shrext_cmds='.sl' 12575 dynamic_linker="$host_os dld.sl" 12576 shlibpath_var=SHLIB_PATH 12577 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12578 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12579 soname_spec='$libname$release$shared_ext$major' 12580 ;; 12581 esac 12582 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12583 postinstall_cmds='chmod 555 $lib' 12584 # or fails outright, so override atomically: 12585 install_override_mode=555 12586 ;; 12587 12588 interix[3-9]*) 12589 version_type=linux # correct to gnu/linux during the next big refactor 12590 need_lib_prefix=no 12591 need_version=no 12592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12593 soname_spec='$libname$release$shared_ext$major' 12594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12595 shlibpath_var=LD_LIBRARY_PATH 12596 shlibpath_overrides_runpath=no 12597 hardcode_into_libs=yes 12598 ;; 12599 12600 irix5* | irix6* | nonstopux*) 12601 case $host_os in 12602 nonstopux*) version_type=nonstopux ;; 12603 *) 12604 if test yes = "$lt_cv_prog_gnu_ld"; then 12605 version_type=linux # correct to gnu/linux during the next big refactor 12606 else 12607 version_type=irix 12608 fi ;; 12609 esac 12610 need_lib_prefix=no 12611 need_version=no 12612 soname_spec='$libname$release$shared_ext$major' 12613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12614 case $host_os in 12615 irix5* | nonstopux*) 12616 libsuff= shlibsuff= 12617 ;; 12618 *) 12619 case $LD in # libtool.m4 will add one of these switches to LD 12620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12621 libsuff= shlibsuff= libmagic=32-bit;; 12622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12623 libsuff=32 shlibsuff=N32 libmagic=N32;; 12624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12625 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12626 *) libsuff= shlibsuff= libmagic=never-match;; 12627 esac 12628 ;; 12629 esac 12630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12631 shlibpath_overrides_runpath=no 12632 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12633 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12634 hardcode_into_libs=yes 12635 ;; 12636 12637 # No shared lib support for Linux oldld, aout, or coff. 12638 linux*oldld* | linux*aout* | linux*coff*) 12639 dynamic_linker=no 12640 ;; 12641 12642 linux*android*) 12643 version_type=none # Android doesn't support versioned libraries. 12644 need_lib_prefix=no 12645 need_version=no 12646 library_names_spec='$libname$release$shared_ext' 12647 soname_spec='$libname$release$shared_ext' 12648 finish_cmds= 12649 shlibpath_var=LD_LIBRARY_PATH 12650 shlibpath_overrides_runpath=yes 12651 12652 # This implies no fast_install, which is unacceptable. 12653 # Some rework will be needed to allow for fast_install 12654 # before this can be enabled. 12655 hardcode_into_libs=yes 12656 12657 dynamic_linker='Android linker' 12658 # Don't embed -rpath directories since the linker doesn't support them. 12659 hardcode_libdir_flag_spec='-L$libdir' 12660 ;; 12661 12662 # This must be glibc/ELF. 12663 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12664 version_type=linux # correct to gnu/linux during the next big refactor 12665 need_lib_prefix=no 12666 need_version=no 12667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12668 soname_spec='$libname$release$shared_ext$major' 12669 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12670 shlibpath_var=LD_LIBRARY_PATH 12671 shlibpath_overrides_runpath=no 12672 12673 # Some binutils ld are patched to set DT_RUNPATH 12674 if test ${lt_cv_shlibpath_overrides_runpath+y} 12675 then : 12676 printf %s "(cached) " >&6 12677 else case e in #( 12678 e) lt_cv_shlibpath_overrides_runpath=no 12679 save_LDFLAGS=$LDFLAGS 12680 save_libdir=$libdir 12681 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12682 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12684 /* end confdefs.h. */ 12685 12686 int 12687 main (void) 12688 { 12689 12690 ; 12691 return 0; 12692 } 12693 _ACEOF 12694 if ac_fn_c_try_link "$LINENO" 12695 then : 12696 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12697 then : 12698 lt_cv_shlibpath_overrides_runpath=yes 12699 fi 12700 fi 12701 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12702 conftest$ac_exeext conftest.$ac_ext 12703 LDFLAGS=$save_LDFLAGS 12704 libdir=$save_libdir 12705 ;; 12706 esac 12707 fi 12708 12709 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12710 12711 # This implies no fast_install, which is unacceptable. 12712 # Some rework will be needed to allow for fast_install 12713 # before this can be enabled. 12714 hardcode_into_libs=yes 12715 12716 # Ideally, we could use ldconfig to report *all* directores which are 12717 # searched for libraries, however this is still not possible. Aside from not 12718 # being certain /sbin/ldconfig is available, command 12719 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12720 # even though it is searched at run-time. Try to do the best guess by 12721 # appending ld.so.conf contents (and includes) to the search path. 12722 if test -f /etc/ld.so.conf; then 12723 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' ' '` 12724 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12725 fi 12726 12727 # We used to test for /lib/ld.so.1 and disable shared libraries on 12728 # powerpc, because MkLinux only supported shared libraries with the 12729 # GNU dynamic linker. Since this was broken with cross compilers, 12730 # most powerpc-linux boxes support dynamic linking these days and 12731 # people can always --disable-shared, the test was removed, and we 12732 # assume the GNU/Linux dynamic linker is in use. 12733 dynamic_linker='GNU/Linux ld.so' 12734 ;; 12735 12736 netbsd*) 12737 version_type=sunos 12738 need_lib_prefix=no 12739 need_version=no 12740 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12741 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12742 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12743 dynamic_linker='NetBSD (a.out) ld.so' 12744 else 12745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12746 soname_spec='$libname$release$shared_ext$major' 12747 dynamic_linker='NetBSD ld.elf_so' 12748 fi 12749 shlibpath_var=LD_LIBRARY_PATH 12750 shlibpath_overrides_runpath=yes 12751 hardcode_into_libs=yes 12752 ;; 12753 12754 newsos6) 12755 version_type=linux # correct to gnu/linux during the next big refactor 12756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12757 shlibpath_var=LD_LIBRARY_PATH 12758 shlibpath_overrides_runpath=yes 12759 ;; 12760 12761 *nto* | *qnx*) 12762 version_type=qnx 12763 need_lib_prefix=no 12764 need_version=no 12765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12766 soname_spec='$libname$release$shared_ext$major' 12767 shlibpath_var=LD_LIBRARY_PATH 12768 shlibpath_overrides_runpath=no 12769 hardcode_into_libs=yes 12770 dynamic_linker='ldqnx.so' 12771 ;; 12772 12773 openbsd* | bitrig*) 12774 version_type=sunos 12775 sys_lib_dlsearch_path_spec=/usr/lib 12776 need_lib_prefix=no 12777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12778 need_version=no 12779 else 12780 need_version=yes 12781 fi 12782 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12784 shlibpath_var=LD_LIBRARY_PATH 12785 shlibpath_overrides_runpath=yes 12786 ;; 12787 12788 os2*) 12789 libname_spec='$name' 12790 version_type=windows 12791 shrext_cmds=.dll 12792 need_version=no 12793 need_lib_prefix=no 12794 # OS/2 can only load a DLL with a base name of 8 characters or less. 12795 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12796 v=$($ECHO $release$versuffix | tr -d .-); 12797 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12798 $ECHO $n$v`$shared_ext' 12799 library_names_spec='${libname}_dll.$libext' 12800 dynamic_linker='OS/2 ld.exe' 12801 shlibpath_var=BEGINLIBPATH 12802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12804 postinstall_cmds='base_file=`basename \$file`~ 12805 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12806 dldir=$destdir/`dirname \$dlpath`~ 12807 test -d \$dldir || mkdir -p \$dldir~ 12808 $install_prog $dir/$dlname \$dldir/$dlname~ 12809 chmod a+x \$dldir/$dlname~ 12810 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12811 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12812 fi' 12813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12814 dlpath=$dir/\$dldll~ 12815 $RM \$dlpath' 12816 ;; 12817 12818 osf3* | osf4* | osf5*) 12819 version_type=osf 12820 need_lib_prefix=no 12821 need_version=no 12822 soname_spec='$libname$release$shared_ext$major' 12823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12824 shlibpath_var=LD_LIBRARY_PATH 12825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12827 ;; 12828 12829 rdos*) 12830 dynamic_linker=no 12831 ;; 12832 12833 solaris*) 12834 version_type=linux # correct to gnu/linux during the next big refactor 12835 need_lib_prefix=no 12836 need_version=no 12837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12838 soname_spec='$libname$release$shared_ext$major' 12839 shlibpath_var=LD_LIBRARY_PATH 12840 shlibpath_overrides_runpath=yes 12841 hardcode_into_libs=yes 12842 # ldd complains unless libraries are executable 12843 postinstall_cmds='chmod +x $lib' 12844 ;; 12845 12846 sunos4*) 12847 version_type=sunos 12848 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12850 shlibpath_var=LD_LIBRARY_PATH 12851 shlibpath_overrides_runpath=yes 12852 if test yes = "$with_gnu_ld"; then 12853 need_lib_prefix=no 12854 fi 12855 need_version=yes 12856 ;; 12857 12858 sysv4 | sysv4.3*) 12859 version_type=linux # correct to gnu/linux during the next big refactor 12860 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12861 soname_spec='$libname$release$shared_ext$major' 12862 shlibpath_var=LD_LIBRARY_PATH 12863 case $host_vendor in 12864 sni) 12865 shlibpath_overrides_runpath=no 12866 need_lib_prefix=no 12867 runpath_var=LD_RUN_PATH 12868 ;; 12869 siemens) 12870 need_lib_prefix=no 12871 ;; 12872 motorola) 12873 need_lib_prefix=no 12874 need_version=no 12875 shlibpath_overrides_runpath=no 12876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12877 ;; 12878 esac 12879 ;; 12880 12881 sysv4*MP*) 12882 if test -d /usr/nec; then 12883 version_type=linux # correct to gnu/linux during the next big refactor 12884 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12885 soname_spec='$libname$shared_ext.$major' 12886 shlibpath_var=LD_LIBRARY_PATH 12887 fi 12888 ;; 12889 12890 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12891 version_type=sco 12892 need_lib_prefix=no 12893 need_version=no 12894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12895 soname_spec='$libname$release$shared_ext$major' 12896 shlibpath_var=LD_LIBRARY_PATH 12897 shlibpath_overrides_runpath=yes 12898 hardcode_into_libs=yes 12899 if test yes = "$with_gnu_ld"; then 12900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12901 else 12902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12903 case $host_os in 12904 sco3.2v5*) 12905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12906 ;; 12907 esac 12908 fi 12909 sys_lib_dlsearch_path_spec='/usr/lib' 12910 ;; 12911 12912 tpf*) 12913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12914 version_type=linux # correct to gnu/linux during the next big refactor 12915 need_lib_prefix=no 12916 need_version=no 12917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12918 shlibpath_var=LD_LIBRARY_PATH 12919 shlibpath_overrides_runpath=no 12920 hardcode_into_libs=yes 12921 ;; 12922 12923 uts4*) 12924 version_type=linux # correct to gnu/linux during the next big refactor 12925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12926 soname_spec='$libname$release$shared_ext$major' 12927 shlibpath_var=LD_LIBRARY_PATH 12928 ;; 12929 12930 *) 12931 dynamic_linker=no 12932 ;; 12933 esac 12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12935 printf "%s\n" "$dynamic_linker" >&6; } 12936 test no = "$dynamic_linker" && can_build_shared=no 12937 12938 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12939 if test yes = "$GCC"; then 12940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12941 fi 12942 12943 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12944 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12945 fi 12946 12947 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12948 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12949 fi 12950 12951 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12952 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12953 12954 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12955 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12956 12957 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12958 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13057 printf %s "checking how to hardcode library paths into programs... " >&6; } 13058 hardcode_action= 13059 if test -n "$hardcode_libdir_flag_spec" || 13060 test -n "$runpath_var" || 13061 test yes = "$hardcode_automatic"; then 13062 13063 # We can hardcode non-existent directories. 13064 if test no != "$hardcode_direct" && 13065 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13066 # have to relink, otherwise we might link with an installed library 13067 # when we should be linking with a yet-to-be-installed one 13068 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13069 test no != "$hardcode_minus_L"; then 13070 # Linking always hardcodes the temporary library directory. 13071 hardcode_action=relink 13072 else 13073 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13074 hardcode_action=immediate 13075 fi 13076 else 13077 # We cannot hardcode anything, or else we can only hardcode existing 13078 # directories. 13079 hardcode_action=unsupported 13080 fi 13081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13082 printf "%s\n" "$hardcode_action" >&6; } 13083 13084 if test relink = "$hardcode_action" || 13085 test yes = "$inherit_rpath"; then 13086 # Fast installation is not supported 13087 enable_fast_install=no 13088 elif test yes = "$shlibpath_overrides_runpath" || 13089 test no = "$enable_shared"; then 13090 # Fast installation is not necessary 13091 enable_fast_install=needless 13092 fi 13093 13094 13095 13096 13097 13098 13099 if test yes != "$enable_dlopen"; then 13100 enable_dlopen=unknown 13101 enable_dlopen_self=unknown 13102 enable_dlopen_self_static=unknown 13103 else 13104 lt_cv_dlopen=no 13105 lt_cv_dlopen_libs= 13106 13107 case $host_os in 13108 beos*) 13109 lt_cv_dlopen=load_add_on 13110 lt_cv_dlopen_libs= 13111 lt_cv_dlopen_self=yes 13112 ;; 13113 13114 mingw* | pw32* | cegcc*) 13115 lt_cv_dlopen=LoadLibrary 13116 lt_cv_dlopen_libs= 13117 ;; 13118 13119 cygwin*) 13120 lt_cv_dlopen=dlopen 13121 lt_cv_dlopen_libs= 13122 ;; 13123 13124 darwin*) 13125 # if libdl is installed we need to link against it 13126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13127 printf %s "checking for dlopen in -ldl... " >&6; } 13128 if test ${ac_cv_lib_dl_dlopen+y} 13129 then : 13130 printf %s "(cached) " >&6 13131 else case e in #( 13132 e) ac_check_lib_save_LIBS=$LIBS 13133 LIBS="-ldl $LIBS" 13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13135 /* end confdefs.h. */ 13136 13137 /* Override any GCC internal prototype to avoid an error. 13138 Use char because int might match the return type of a GCC 13139 builtin and then its argument prototype would still apply. 13140 The 'extern "C"' is for builds by C++ compilers; 13141 although this is not generally supported in C code supporting it here 13142 has little cost and some practical benefit (sr 110532). */ 13143 #ifdef __cplusplus 13144 extern "C" 13145 #endif 13146 char dlopen (void); 13147 int 13148 main (void) 13149 { 13150 return dlopen (); 13151 ; 13152 return 0; 13153 } 13154 _ACEOF 13155 if ac_fn_c_try_link "$LINENO" 13156 then : 13157 ac_cv_lib_dl_dlopen=yes 13158 else case e in #( 13159 e) ac_cv_lib_dl_dlopen=no ;; 13160 esac 13161 fi 13162 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13163 conftest$ac_exeext conftest.$ac_ext 13164 LIBS=$ac_check_lib_save_LIBS ;; 13165 esac 13166 fi 13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13168 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13169 if test "x$ac_cv_lib_dl_dlopen" = xyes 13170 then : 13171 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13172 else case e in #( 13173 e) 13174 lt_cv_dlopen=dyld 13175 lt_cv_dlopen_libs= 13176 lt_cv_dlopen_self=yes 13177 ;; 13178 esac 13179 fi 13180 13181 ;; 13182 13183 tpf*) 13184 # Don't try to run any link tests for TPF. We know it's impossible 13185 # because TPF is a cross-compiler, and we know how we open DSOs. 13186 lt_cv_dlopen=dlopen 13187 lt_cv_dlopen_libs= 13188 lt_cv_dlopen_self=no 13189 ;; 13190 13191 *) 13192 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13193 if test "x$ac_cv_func_shl_load" = xyes 13194 then : 13195 lt_cv_dlopen=shl_load 13196 else case e in #( 13197 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13198 printf %s "checking for shl_load in -ldld... " >&6; } 13199 if test ${ac_cv_lib_dld_shl_load+y} 13200 then : 13201 printf %s "(cached) " >&6 13202 else case e in #( 13203 e) ac_check_lib_save_LIBS=$LIBS 13204 LIBS="-ldld $LIBS" 13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13206 /* end confdefs.h. */ 13207 13208 /* Override any GCC internal prototype to avoid an error. 13209 Use char because int might match the return type of a GCC 13210 builtin and then its argument prototype would still apply. 13211 The 'extern "C"' is for builds by C++ compilers; 13212 although this is not generally supported in C code supporting it here 13213 has little cost and some practical benefit (sr 110532). */ 13214 #ifdef __cplusplus 13215 extern "C" 13216 #endif 13217 char shl_load (void); 13218 int 13219 main (void) 13220 { 13221 return shl_load (); 13222 ; 13223 return 0; 13224 } 13225 _ACEOF 13226 if ac_fn_c_try_link "$LINENO" 13227 then : 13228 ac_cv_lib_dld_shl_load=yes 13229 else case e in #( 13230 e) ac_cv_lib_dld_shl_load=no ;; 13231 esac 13232 fi 13233 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13234 conftest$ac_exeext conftest.$ac_ext 13235 LIBS=$ac_check_lib_save_LIBS ;; 13236 esac 13237 fi 13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13239 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13240 if test "x$ac_cv_lib_dld_shl_load" = xyes 13241 then : 13242 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13243 else case e in #( 13244 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13245 if test "x$ac_cv_func_dlopen" = xyes 13246 then : 13247 lt_cv_dlopen=dlopen 13248 else case e in #( 13249 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13250 printf %s "checking for dlopen in -ldl... " >&6; } 13251 if test ${ac_cv_lib_dl_dlopen+y} 13252 then : 13253 printf %s "(cached) " >&6 13254 else case e in #( 13255 e) ac_check_lib_save_LIBS=$LIBS 13256 LIBS="-ldl $LIBS" 13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13258 /* end confdefs.h. */ 13259 13260 /* Override any GCC internal prototype to avoid an error. 13261 Use char because int might match the return type of a GCC 13262 builtin and then its argument prototype would still apply. 13263 The 'extern "C"' is for builds by C++ compilers; 13264 although this is not generally supported in C code supporting it here 13265 has little cost and some practical benefit (sr 110532). */ 13266 #ifdef __cplusplus 13267 extern "C" 13268 #endif 13269 char dlopen (void); 13270 int 13271 main (void) 13272 { 13273 return dlopen (); 13274 ; 13275 return 0; 13276 } 13277 _ACEOF 13278 if ac_fn_c_try_link "$LINENO" 13279 then : 13280 ac_cv_lib_dl_dlopen=yes 13281 else case e in #( 13282 e) ac_cv_lib_dl_dlopen=no ;; 13283 esac 13284 fi 13285 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13286 conftest$ac_exeext conftest.$ac_ext 13287 LIBS=$ac_check_lib_save_LIBS ;; 13288 esac 13289 fi 13290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13291 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13292 if test "x$ac_cv_lib_dl_dlopen" = xyes 13293 then : 13294 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13295 else case e in #( 13296 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13297 printf %s "checking for dlopen in -lsvld... " >&6; } 13298 if test ${ac_cv_lib_svld_dlopen+y} 13299 then : 13300 printf %s "(cached) " >&6 13301 else case e in #( 13302 e) ac_check_lib_save_LIBS=$LIBS 13303 LIBS="-lsvld $LIBS" 13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13305 /* end confdefs.h. */ 13306 13307 /* Override any GCC internal prototype to avoid an error. 13308 Use char because int might match the return type of a GCC 13309 builtin and then its argument prototype would still apply. 13310 The 'extern "C"' is for builds by C++ compilers; 13311 although this is not generally supported in C code supporting it here 13312 has little cost and some practical benefit (sr 110532). */ 13313 #ifdef __cplusplus 13314 extern "C" 13315 #endif 13316 char dlopen (void); 13317 int 13318 main (void) 13319 { 13320 return dlopen (); 13321 ; 13322 return 0; 13323 } 13324 _ACEOF 13325 if ac_fn_c_try_link "$LINENO" 13326 then : 13327 ac_cv_lib_svld_dlopen=yes 13328 else case e in #( 13329 e) ac_cv_lib_svld_dlopen=no ;; 13330 esac 13331 fi 13332 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13333 conftest$ac_exeext conftest.$ac_ext 13334 LIBS=$ac_check_lib_save_LIBS ;; 13335 esac 13336 fi 13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13338 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13339 if test "x$ac_cv_lib_svld_dlopen" = xyes 13340 then : 13341 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13342 else case e in #( 13343 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13344 printf %s "checking for dld_link in -ldld... " >&6; } 13345 if test ${ac_cv_lib_dld_dld_link+y} 13346 then : 13347 printf %s "(cached) " >&6 13348 else case e in #( 13349 e) ac_check_lib_save_LIBS=$LIBS 13350 LIBS="-ldld $LIBS" 13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13352 /* end confdefs.h. */ 13353 13354 /* Override any GCC internal prototype to avoid an error. 13355 Use char because int might match the return type of a GCC 13356 builtin and then its argument prototype would still apply. 13357 The 'extern "C"' is for builds by C++ compilers; 13358 although this is not generally supported in C code supporting it here 13359 has little cost and some practical benefit (sr 110532). */ 13360 #ifdef __cplusplus 13361 extern "C" 13362 #endif 13363 char dld_link (void); 13364 int 13365 main (void) 13366 { 13367 return dld_link (); 13368 ; 13369 return 0; 13370 } 13371 _ACEOF 13372 if ac_fn_c_try_link "$LINENO" 13373 then : 13374 ac_cv_lib_dld_dld_link=yes 13375 else case e in #( 13376 e) ac_cv_lib_dld_dld_link=no ;; 13377 esac 13378 fi 13379 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13380 conftest$ac_exeext conftest.$ac_ext 13381 LIBS=$ac_check_lib_save_LIBS ;; 13382 esac 13383 fi 13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13385 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13386 if test "x$ac_cv_lib_dld_dld_link" = xyes 13387 then : 13388 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13389 fi 13390 13391 ;; 13392 esac 13393 fi 13394 13395 ;; 13396 esac 13397 fi 13398 13399 ;; 13400 esac 13401 fi 13402 13403 ;; 13404 esac 13405 fi 13406 13407 ;; 13408 esac 13409 fi 13410 13411 ;; 13412 esac 13413 13414 if test no = "$lt_cv_dlopen"; then 13415 enable_dlopen=no 13416 else 13417 enable_dlopen=yes 13418 fi 13419 13420 case $lt_cv_dlopen in 13421 dlopen) 13422 save_CPPFLAGS=$CPPFLAGS 13423 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13424 13425 save_LDFLAGS=$LDFLAGS 13426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13427 13428 save_LIBS=$LIBS 13429 LIBS="$lt_cv_dlopen_libs $LIBS" 13430 13431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13432 printf %s "checking whether a program can dlopen itself... " >&6; } 13433 if test ${lt_cv_dlopen_self+y} 13434 then : 13435 printf %s "(cached) " >&6 13436 else case e in #( 13437 e) if test yes = "$cross_compiling"; then : 13438 lt_cv_dlopen_self=cross 13439 else 13440 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13441 lt_status=$lt_dlunknown 13442 cat > conftest.$ac_ext <<_LT_EOF 13443 #line $LINENO "configure" 13444 #include "confdefs.h" 13445 13446 #if HAVE_DLFCN_H 13447 #include <dlfcn.h> 13448 #endif 13449 13450 #include <stdio.h> 13451 13452 #ifdef RTLD_GLOBAL 13453 # define LT_DLGLOBAL RTLD_GLOBAL 13454 #else 13455 # ifdef DL_GLOBAL 13456 # define LT_DLGLOBAL DL_GLOBAL 13457 # else 13458 # define LT_DLGLOBAL 0 13459 # endif 13460 #endif 13461 13462 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13463 find out it does not work in some platform. */ 13464 #ifndef LT_DLLAZY_OR_NOW 13465 # ifdef RTLD_LAZY 13466 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13467 # else 13468 # ifdef DL_LAZY 13469 # define LT_DLLAZY_OR_NOW DL_LAZY 13470 # else 13471 # ifdef RTLD_NOW 13472 # define LT_DLLAZY_OR_NOW RTLD_NOW 13473 # else 13474 # ifdef DL_NOW 13475 # define LT_DLLAZY_OR_NOW DL_NOW 13476 # else 13477 # define LT_DLLAZY_OR_NOW 0 13478 # endif 13479 # endif 13480 # endif 13481 # endif 13482 #endif 13483 13484 /* When -fvisibility=hidden is used, assume the code has been annotated 13485 correspondingly for the symbols needed. */ 13486 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13487 int fnord () __attribute__((visibility("default"))); 13488 #endif 13489 13490 int fnord () { return 42; } 13491 int main () 13492 { 13493 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13494 int status = $lt_dlunknown; 13495 13496 if (self) 13497 { 13498 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13499 else 13500 { 13501 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13502 else puts (dlerror ()); 13503 } 13504 /* dlclose (self); */ 13505 } 13506 else 13507 puts (dlerror ()); 13508 13509 return status; 13510 } 13511 _LT_EOF 13512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13513 (eval $ac_link) 2>&5 13514 ac_status=$? 13515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13516 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13517 (./conftest; exit; ) >&5 2>/dev/null 13518 lt_status=$? 13519 case x$lt_status in 13520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13522 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13523 esac 13524 else : 13525 # compilation failed 13526 lt_cv_dlopen_self=no 13527 fi 13528 fi 13529 rm -fr conftest* 13530 13531 ;; 13532 esac 13533 fi 13534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13535 printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13536 13537 if test yes = "$lt_cv_dlopen_self"; then 13538 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13540 printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13541 if test ${lt_cv_dlopen_self_static+y} 13542 then : 13543 printf %s "(cached) " >&6 13544 else case e in #( 13545 e) if test yes = "$cross_compiling"; then : 13546 lt_cv_dlopen_self_static=cross 13547 else 13548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13549 lt_status=$lt_dlunknown 13550 cat > conftest.$ac_ext <<_LT_EOF 13551 #line $LINENO "configure" 13552 #include "confdefs.h" 13553 13554 #if HAVE_DLFCN_H 13555 #include <dlfcn.h> 13556 #endif 13557 13558 #include <stdio.h> 13559 13560 #ifdef RTLD_GLOBAL 13561 # define LT_DLGLOBAL RTLD_GLOBAL 13562 #else 13563 # ifdef DL_GLOBAL 13564 # define LT_DLGLOBAL DL_GLOBAL 13565 # else 13566 # define LT_DLGLOBAL 0 13567 # endif 13568 #endif 13569 13570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13571 find out it does not work in some platform. */ 13572 #ifndef LT_DLLAZY_OR_NOW 13573 # ifdef RTLD_LAZY 13574 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13575 # else 13576 # ifdef DL_LAZY 13577 # define LT_DLLAZY_OR_NOW DL_LAZY 13578 # else 13579 # ifdef RTLD_NOW 13580 # define LT_DLLAZY_OR_NOW RTLD_NOW 13581 # else 13582 # ifdef DL_NOW 13583 # define LT_DLLAZY_OR_NOW DL_NOW 13584 # else 13585 # define LT_DLLAZY_OR_NOW 0 13586 # endif 13587 # endif 13588 # endif 13589 # endif 13590 #endif 13591 13592 /* When -fvisibility=hidden is used, assume the code has been annotated 13593 correspondingly for the symbols needed. */ 13594 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13595 int fnord () __attribute__((visibility("default"))); 13596 #endif 13597 13598 int fnord () { return 42; } 13599 int main () 13600 { 13601 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13602 int status = $lt_dlunknown; 13603 13604 if (self) 13605 { 13606 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13607 else 13608 { 13609 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13610 else puts (dlerror ()); 13611 } 13612 /* dlclose (self); */ 13613 } 13614 else 13615 puts (dlerror ()); 13616 13617 return status; 13618 } 13619 _LT_EOF 13620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13621 (eval $ac_link) 2>&5 13622 ac_status=$? 13623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13624 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13625 (./conftest; exit; ) >&5 2>/dev/null 13626 lt_status=$? 13627 case x$lt_status in 13628 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13629 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13630 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13631 esac 13632 else : 13633 # compilation failed 13634 lt_cv_dlopen_self_static=no 13635 fi 13636 fi 13637 rm -fr conftest* 13638 13639 ;; 13640 esac 13641 fi 13642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13643 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13644 fi 13645 13646 CPPFLAGS=$save_CPPFLAGS 13647 LDFLAGS=$save_LDFLAGS 13648 LIBS=$save_LIBS 13649 ;; 13650 esac 13651 13652 case $lt_cv_dlopen_self in 13653 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13654 *) enable_dlopen_self=unknown ;; 13655 esac 13656 13657 case $lt_cv_dlopen_self_static in 13658 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13659 *) enable_dlopen_self_static=unknown ;; 13660 esac 13661 fi 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 striplib= 13680 old_striplib= 13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13682 printf %s "checking whether stripping libraries is possible... " >&6; } 13683 if test -z "$STRIP"; then 13684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13685 printf "%s\n" "no" >&6; } 13686 else 13687 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13688 old_striplib="$STRIP --strip-debug" 13689 striplib="$STRIP --strip-unneeded" 13690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13691 printf "%s\n" "yes" >&6; } 13692 else 13693 case $host_os in 13694 darwin*) 13695 # FIXME - insert some real tests, host_os isn't really good enough 13696 striplib="$STRIP -x" 13697 old_striplib="$STRIP -S" 13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13699 printf "%s\n" "yes" >&6; } 13700 ;; 13701 freebsd*) 13702 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13703 old_striplib="$STRIP --strip-debug" 13704 striplib="$STRIP --strip-unneeded" 13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13706 printf "%s\n" "yes" >&6; } 13707 else 13708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13709 printf "%s\n" "no" >&6; } 13710 fi 13711 ;; 13712 *) 13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13714 printf "%s\n" "no" >&6; } 13715 ;; 13716 esac 13717 fi 13718 fi 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 # Report what library types will actually be built 13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13733 printf %s "checking if libtool supports shared libraries... " >&6; } 13734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13735 printf "%s\n" "$can_build_shared" >&6; } 13736 13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13738 printf %s "checking whether to build shared libraries... " >&6; } 13739 test no = "$can_build_shared" && enable_shared=no 13740 13741 # On AIX, shared libraries and static libraries use the same namespace, and 13742 # are all built from PIC. 13743 case $host_os in 13744 aix3*) 13745 test yes = "$enable_shared" && enable_static=no 13746 if test -n "$RANLIB"; then 13747 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13748 postinstall_cmds='$RANLIB $lib' 13749 fi 13750 ;; 13751 13752 aix[4-9]*) 13753 if test ia64 != "$host_cpu"; then 13754 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13755 yes,aix,yes) ;; # shared object as lib.so file only 13756 yes,svr4,*) ;; # shared object as lib.so archive member only 13757 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13758 esac 13759 fi 13760 ;; 13761 esac 13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13763 printf "%s\n" "$enable_shared" >&6; } 13764 13765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13766 printf %s "checking whether to build static libraries... " >&6; } 13767 # Make sure either enable_shared or enable_static is yes. 13768 test yes = "$enable_shared" || enable_static=yes 13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13770 printf "%s\n" "$enable_static" >&6; } 13771 13772 13773 13774 13775 fi 13776 ac_ext=c 13777 ac_cpp='$CPP $CPPFLAGS' 13778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13780 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13781 13782 CC=$lt_save_CC 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 ac_config_commands="$ac_config_commands libtool" 13799 13800 13801 13802 13803 # Only expand once: 13804 13805 13806 13807 13808 CFLAG_VISIBILITY= 13809 HAVE_VISIBILITY=0 13810 if test -n "$GCC"; then 13811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 13812 printf %s "checking whether the -Werror option is usable... " >&6; } 13813 if test ${gl_cv_cc_vis_werror+y} 13814 then : 13815 printf %s "(cached) " >&6 13816 else case e in #( 13817 e) gl_save_CFLAGS="$CFLAGS" 13818 CFLAGS="$CFLAGS -Werror" 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820 /* end confdefs.h. */ 13821 13822 int 13823 main (void) 13824 { 13825 13826 ; 13827 return 0; 13828 } 13829 _ACEOF 13830 if ac_fn_c_try_compile "$LINENO" 13831 then : 13832 gl_cv_cc_vis_werror=yes 13833 else case e in #( 13834 e) gl_cv_cc_vis_werror=no ;; 13835 esac 13836 fi 13837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13838 CFLAGS="$gl_save_CFLAGS" 13839 ;; 13840 esac 13841 fi 13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 13843 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 13845 printf %s "checking for simple visibility declarations... " >&6; } 13846 if test ${gl_cv_cc_visibility+y} 13847 then : 13848 printf %s "(cached) " >&6 13849 else case e in #( 13850 e) gl_save_CFLAGS="$CFLAGS" 13851 CFLAGS="$CFLAGS -fvisibility=hidden" 13852 if test $gl_cv_cc_vis_werror = yes; then 13853 CFLAGS="$CFLAGS -Werror" 13854 fi 13855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13856 /* end confdefs.h. */ 13857 extern __attribute__((__visibility__("hidden"))) int hiddenvar; 13858 extern __attribute__((__visibility__("default"))) int exportedvar; 13859 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 13860 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 13861 void dummyfunc (void) {} 13862 13863 int 13864 main (void) 13865 { 13866 13867 ; 13868 return 0; 13869 } 13870 _ACEOF 13871 if ac_fn_c_try_compile "$LINENO" 13872 then : 13873 gl_cv_cc_visibility=yes 13874 else case e in #( 13875 e) gl_cv_cc_visibility=no ;; 13876 esac 13877 fi 13878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 13879 CFLAGS="$gl_save_CFLAGS" 13880 ;; 13881 esac 13882 fi 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 13884 printf "%s\n" "$gl_cv_cc_visibility" >&6; } 13885 if test $gl_cv_cc_visibility = yes; then 13886 CFLAG_VISIBILITY="-fvisibility=hidden" 13887 HAVE_VISIBILITY=1 13888 fi 13889 fi 13890 13891 13892 13893 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 13894 13895 13896 13897 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 13898 if test "x$ac_cv_header_sys_mkdev_h" = xyes 13899 then : 13900 13901 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h 13902 13903 fi 13904 13905 if test $ac_cv_header_sys_mkdev_h = no; then 13906 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 13907 if test "x$ac_cv_header_sys_sysmacros_h" = xyes 13908 then : 13909 13910 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 13911 13912 fi 13913 13914 fi 13915 13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 13917 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 13918 if test ${ac_cv_header_sys_wait_h+y} 13919 then : 13920 printf %s "(cached) " >&6 13921 else case e in #( 13922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13923 /* end confdefs.h. */ 13924 #include <sys/types.h> 13925 #include <sys/wait.h> 13926 #ifndef WEXITSTATUS 13927 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 13928 #endif 13929 #ifndef WIFEXITED 13930 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 13931 #endif 13932 13933 int 13934 main (void) 13935 { 13936 int s; 13937 wait (&s); 13938 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 13939 ; 13940 return 0; 13941 } 13942 _ACEOF 13943 if ac_fn_c_try_compile "$LINENO" 13944 then : 13945 ac_cv_header_sys_wait_h=yes 13946 else case e in #( 13947 e) ac_cv_header_sys_wait_h=no ;; 13948 esac 13949 fi 13950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 13951 esac 13952 fi 13953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 13954 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 13955 if test $ac_cv_header_sys_wait_h = yes; then 13956 13957 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 13958 13959 fi 13960 13961 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 13962 if test "x$ac_cv_header_stdint_h" = xyes 13963 then : 13964 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 13965 13966 fi 13967 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 13968 if test "x$ac_cv_header_fcntl_h" = xyes 13969 then : 13970 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 13971 13972 fi 13973 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 13974 if test "x$ac_cv_header_inttypes_h" = xyes 13975 then : 13976 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 13977 13978 fi 13979 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 13980 if test "x$ac_cv_header_unistd_h" = xyes 13981 then : 13982 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 13983 13984 fi 13985 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 13986 if test "x$ac_cv_header_byteswap_h" = xyes 13987 then : 13988 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h 13989 13990 fi 13991 13992 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" 13993 if test "x$ac_cv_header_spawn_h" = xyes 13994 then : 13995 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h 13996 13997 fi 13998 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 13999 if test "x$ac_cv_header_utime_h" = xyes 14000 then : 14001 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 14002 14003 fi 14004 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 14005 if test "x$ac_cv_header_wchar_h" = xyes 14006 then : 14007 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 14008 14009 fi 14010 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 14011 if test "x$ac_cv_header_wctype_h" = xyes 14012 then : 14013 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h 14014 14015 fi 14016 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 14017 if test "x$ac_cv_header_limits_h" = xyes 14018 then : 14019 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 14020 14021 fi 14022 14023 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 14024 if test "x$ac_cv_header_getopt_h" = xyes 14025 then : 14026 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 14027 14028 fi 14029 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 14030 if test "x$ac_cv_header_err_h" = xyes 14031 then : 14032 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 14033 14034 fi 14035 ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default" 14036 if test "x$ac_cv_header_xlocale_h" = xyes 14037 then : 14038 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h 14039 14040 fi 14041 14042 ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default" 14043 if test "x$ac_cv_header_sys_bswap_h" = xyes 14044 then : 14045 printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h 14046 14047 fi 14048 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 14049 if test "x$ac_cv_header_sys_mman_h" = xyes 14050 then : 14051 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 14052 14053 fi 14054 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 14055 if test "x$ac_cv_header_sys_stat_h" = xyes 14056 then : 14057 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 14058 14059 fi 14060 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 14061 if test "x$ac_cv_header_sys_types_h" = xyes 14062 then : 14063 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 14064 14065 fi 14066 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default" 14067 if test "x$ac_cv_header_sys_utime_h" = xyes 14068 then : 14069 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h 14070 14071 fi 14072 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 14073 if test "x$ac_cv_header_sys_time_h" = xyes 14074 then : 14075 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 14076 14077 fi 14078 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 14079 if test "x$ac_cv_header_sys_sysmacros_h" = xyes 14080 then : 14081 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 14082 14083 fi 14084 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 14085 if test "x$ac_cv_header_sys_ioctl_h" = xyes 14086 then : 14087 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 14088 14089 fi 14090 14091 if test "$enable_zlib" != "no"; then 14092 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 14093 if test "x$ac_cv_header_zlib_h" = xyes 14094 then : 14095 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 14096 14097 fi 14098 14099 fi 14100 if test "$enable_bzlib" != "no"; then 14101 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 14102 if test "x$ac_cv_header_bzlib_h" = xyes 14103 then : 14104 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 14105 14106 fi 14107 14108 fi 14109 if test "$enable_xzlib" != "no"; then 14110 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 14111 if test "x$ac_cv_header_lzma_h" = xyes 14112 then : 14113 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 14114 14115 fi 14116 14117 fi 14118 if test "$enable_zstdlib" != "no"; then 14119 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 14120 if test "x$ac_cv_header_zstd_h" = xyes 14121 then : 14122 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h 14123 14124 fi 14125 ac_fn_c_check_header_compile "$LINENO" "zstd_errors.h" "ac_cv_header_zstd_errors_h" "$ac_includes_default" 14126 if test "x$ac_cv_header_zstd_errors_h" = xyes 14127 then : 14128 printf "%s\n" "#define HAVE_ZSTD_ERRORS_H 1" >>confdefs.h 14129 14130 fi 14131 14132 fi 14133 if test "$enable_lzlib" != "no"; then 14134 ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default" 14135 if test "x$ac_cv_header_lzlib_h" = xyes 14136 then : 14137 printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h 14138 14139 fi 14140 14141 fi 14142 if test "$enable_lrziplib" != "no"; then 14143 ac_fn_c_check_header_compile "$LINENO" "Lrzip.h" "ac_cv_header_Lrzip_h" "$ac_includes_default" 14144 if test "x$ac_cv_header_Lrzip_h" = xyes 14145 then : 14146 printf "%s\n" "#define HAVE_LRZIP_H 1" >>confdefs.h 14147 14148 fi 14149 14150 fi 14151 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h> 14152 " 14153 if test "x$ac_cv_type_sig_t" = xyes 14154 then : 14155 14156 printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h 14157 14158 fi 14159 14160 14161 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14162 if test "x$ac_cv_type_off_t" = xyes 14163 then : 14164 14165 else case e in #( 14166 e) 14167 printf "%s\n" "#define off_t long int" >>confdefs.h 14168 ;; 14169 esac 14170 fi 14171 14172 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14173 if test "x$ac_cv_type_size_t" = xyes 14174 then : 14175 14176 else case e in #( 14177 e) 14178 printf "%s\n" "#define size_t unsigned int" >>confdefs.h 14179 ;; 14180 esac 14181 fi 14182 14183 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 14184 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes 14185 then : 14186 14187 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h 14188 14189 14190 fi 14191 14192 14193 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 14194 " 14195 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes 14196 then : 14197 14198 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 14199 14200 14201 fi 14202 14203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 14204 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 14205 if test ${ac_cv_struct_tm+y} 14206 then : 14207 printf %s "(cached) " >&6 14208 else case e in #( 14209 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14210 /* end confdefs.h. */ 14211 #include <sys/types.h> 14212 #include <time.h> 14213 14214 int 14215 main (void) 14216 { 14217 struct tm tm; 14218 int *p = &tm.tm_sec; 14219 return !p; 14220 ; 14221 return 0; 14222 } 14223 _ACEOF 14224 if ac_fn_c_try_compile "$LINENO" 14225 then : 14226 ac_cv_struct_tm=time.h 14227 else case e in #( 14228 e) ac_cv_struct_tm=sys/time.h ;; 14229 esac 14230 fi 14231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14232 esac 14233 fi 14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 14235 printf "%s\n" "$ac_cv_struct_tm" >&6; } 14236 if test $ac_cv_struct_tm = sys/time.h; then 14237 14238 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 14239 14240 fi 14241 14242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14243 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14244 if test ${ac_cv_c_undeclared_builtin_options+y} 14245 then : 14246 printf %s "(cached) " >&6 14247 else case e in #( 14248 e) ac_save_CFLAGS=$CFLAGS 14249 ac_cv_c_undeclared_builtin_options='cannot detect' 14250 for ac_arg in '' -fno-builtin; do 14251 CFLAGS="$ac_save_CFLAGS $ac_arg" 14252 # This test program should *not* compile successfully. 14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14254 /* end confdefs.h. */ 14255 14256 int 14257 main (void) 14258 { 14259 (void) strchr; 14260 ; 14261 return 0; 14262 } 14263 _ACEOF 14264 if ac_fn_c_try_compile "$LINENO" 14265 then : 14266 14267 else case e in #( 14268 e) # This test program should compile successfully. 14269 # No library function is consistently available on 14270 # freestanding implementations, so test against a dummy 14271 # declaration. Include always-available headers on the 14272 # off chance that they somehow elicit warnings. 14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14274 /* end confdefs.h. */ 14275 #include <float.h> 14276 #include <limits.h> 14277 #include <stdarg.h> 14278 #include <stddef.h> 14279 extern void ac_decl (int, char *); 14280 14281 int 14282 main (void) 14283 { 14284 (void) ac_decl (0, (char *) 0); 14285 (void) ac_decl; 14286 14287 ; 14288 return 0; 14289 } 14290 _ACEOF 14291 if ac_fn_c_try_compile "$LINENO" 14292 then : 14293 if test x"$ac_arg" = x 14294 then : 14295 ac_cv_c_undeclared_builtin_options='none needed' 14296 else case e in #( 14297 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14298 esac 14299 fi 14300 break 14301 fi 14302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14303 esac 14304 fi 14305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14306 done 14307 CFLAGS=$ac_save_CFLAGS 14308 ;; 14309 esac 14310 fi 14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14312 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14313 case $ac_cv_c_undeclared_builtin_options in #( 14314 'cannot detect') : 14315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14316 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14317 as_fn_error $? "cannot make $CC report undeclared builtins 14318 See 'config.log' for more details" "$LINENO" 5; } ;; #( 14319 'none needed') : 14320 ac_c_undeclared_builtin_options='' ;; #( 14321 *) : 14322 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14323 esac 14324 14325 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 14326 #include <$ac_cv_struct_tm> 14327 14328 " 14329 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes 14330 then : 14331 14332 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 14333 14334 14335 fi 14336 14337 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 14338 14339 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 14340 14341 else 14342 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 14343 " "$ac_c_undeclared_builtin_options" "CFLAGS" 14344 if test "x$ac_cv_have_decl_tzname" = xyes 14345 then : 14346 ac_have_decl=1 14347 else case e in #( 14348 e) ac_have_decl=0 ;; 14349 esac 14350 fi 14351 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 14352 14353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14354 printf %s "checking for tzname... " >&6; } 14355 if test ${ac_cv_var_tzname+y} 14356 then : 14357 printf %s "(cached) " >&6 14358 else case e in #( 14359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14360 /* end confdefs.h. */ 14361 #include <time.h> 14362 #if !HAVE_DECL_TZNAME 14363 extern char *tzname[]; 14364 #endif 14365 14366 int 14367 main (void) 14368 { 14369 return tzname[0][0]; 14370 ; 14371 return 0; 14372 } 14373 _ACEOF 14374 if ac_fn_c_try_link "$LINENO" 14375 then : 14376 ac_cv_var_tzname=yes 14377 else case e in #( 14378 e) ac_cv_var_tzname=no ;; 14379 esac 14380 fi 14381 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14382 conftest$ac_exeext conftest.$ac_ext ;; 14383 esac 14384 fi 14385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14386 printf "%s\n" "$ac_cv_var_tzname" >&6; } 14387 if test $ac_cv_var_tzname = yes; then 14388 14389 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 14390 14391 fi 14392 fi 14393 14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 14395 printf %s "checking for tm_zone in struct tm... " >&6; } 14396 if test ${ac_cv_struct_tm_zone+y} 14397 then : 14398 printf %s "(cached) " >&6 14399 else case e in #( 14400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14401 /* end confdefs.h. */ 14402 #include <sys/types.h> 14403 #include <$ac_cv_struct_tm> 14404 int 14405 main (void) 14406 { 14407 struct tm tm; tm.tm_zone; 14408 ; 14409 return 0; 14410 } 14411 _ACEOF 14412 if ac_fn_c_try_compile "$LINENO" 14413 then : 14414 ac_cv_struct_tm_zone=yes 14415 else case e in #( 14416 e) ac_cv_struct_tm_zone=no ;; 14417 esac 14418 fi 14419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14420 esac 14421 fi 14422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 14423 printf "%s\n" "$ac_cv_struct_tm_zone" >&6; } 14424 if test "$ac_cv_struct_tm_zone" = yes; then 14425 14426 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 14427 14428 fi 14429 14430 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 14431 # consider it declared and we won't give our own extern. 14432 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 14433 " "$ac_c_undeclared_builtin_options" "CFLAGS" 14434 if test "x$ac_cv_have_decl_tzname" = xyes 14435 then : 14436 ac_have_decl=1 14437 else case e in #( 14438 e) ac_have_decl=0 ;; 14439 esac 14440 fi 14441 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 14442 14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14444 printf %s "checking for tzname... " >&6; } 14445 if test ${ac_cv_var_tzname+y} 14446 then : 14447 printf %s "(cached) " >&6 14448 else case e in #( 14449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14450 /* end confdefs.h. */ 14451 #include <time.h> 14452 int 14453 main (void) 14454 { 14455 #if !HAVE_DECL_TZNAME 14456 extern char *tzname[]; 14457 #endif 14458 return tzname[0][0]; 14459 ; 14460 return 0; 14461 } 14462 _ACEOF 14463 if ac_fn_c_try_link "$LINENO" 14464 then : 14465 ac_cv_var_tzname=yes 14466 else case e in #( 14467 e) ac_cv_var_tzname=no ;; 14468 esac 14469 fi 14470 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14471 conftest$ac_exeext conftest.$ac_ext ;; 14472 esac 14473 fi 14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14475 printf "%s\n" "$ac_cv_var_tzname" >&6; } 14476 if test $ac_cv_var_tzname = yes; then 14477 14478 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 14479 14480 fi 14481 14482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 14483 printf %s "checking for tm_isdst in struct tm... " >&6; } 14484 if test ${ac_cv_struct_tm_isdst+y} 14485 then : 14486 printf %s "(cached) " >&6 14487 else case e in #( 14488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14489 /* end confdefs.h. */ 14490 #include <sys/types.h> 14491 #include <$ac_cv_struct_tm> 14492 int 14493 main (void) 14494 { 14495 struct tm tm; tm.tm_isdst; 14496 ; 14497 return 0; 14498 } 14499 _ACEOF 14500 if ac_fn_c_try_compile "$LINENO" 14501 then : 14502 ac_cv_struct_tm_isdst=yes 14503 else case e in #( 14504 e) ac_cv_struct_tm_isdst=no ;; 14505 esac 14506 fi 14507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14508 esac 14509 fi 14510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 14511 printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; } 14512 if test "$ac_cv_struct_tm_isdst" = yes; then 14513 14514 printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h 14515 14516 fi 14517 14518 14519 ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 14520 #include <stdlib.h> 14521 " "$ac_c_undeclared_builtin_options" "CFLAGS" 14522 if test "x$ac_cv_have_decl_daylight" = xyes 14523 then : 14524 ac_have_decl=1 14525 else case e in #( 14526 e) ac_have_decl=0 ;; 14527 esac 14528 fi 14529 printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h 14530 14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 14532 printf %s "checking for daylight... " >&6; } 14533 if test ${ac_cv_var_daylight+y} 14534 then : 14535 printf %s "(cached) " >&6 14536 else case e in #( 14537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14538 /* end confdefs.h. */ 14539 #include <time.h> 14540 #include <stdlib.h> 14541 int 14542 main (void) 14543 { 14544 #if !HAVE_DECL_DAYLIGHT 14545 extern int daylight; 14546 #endif 14547 daylight = atoi("1"); 14548 ; 14549 return 0; 14550 } 14551 _ACEOF 14552 if ac_fn_c_try_link "$LINENO" 14553 then : 14554 ac_cv_var_daylight=yes 14555 else case e in #( 14556 e) ac_cv_var_daylight=no ;; 14557 esac 14558 fi 14559 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14560 conftest$ac_exeext conftest.$ac_ext ;; 14561 esac 14562 fi 14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 14564 printf "%s\n" "$ac_cv_var_daylight" >&6; } 14565 if test $ac_cv_var_daylight = yes; then 14566 14567 printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h 14568 14569 fi 14570 14571 # Check whether --enable-largefile was given. 14572 if test ${enable_largefile+y} 14573 then : 14574 enableval=$enable_largefile; 14575 fi 14576 if test "$enable_largefile,$enable_year2038" != no,no 14577 then : 14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 14579 printf %s "checking for $CC option to enable large file support... " >&6; } 14580 if test ${ac_cv_sys_largefile_opts+y} 14581 then : 14582 printf %s "(cached) " >&6 14583 else case e in #( 14584 e) ac_save_CC="$CC" 14585 ac_opt_found=no 14586 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 14587 if test x"$ac_opt" != x"none needed" 14588 then : 14589 CC="$ac_save_CC $ac_opt" 14590 fi 14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14592 /* end confdefs.h. */ 14593 #include <sys/types.h> 14594 #ifndef FTYPE 14595 # define FTYPE off_t 14596 #endif 14597 /* Check that FTYPE can represent 2**63 - 1 correctly. 14598 We can't simply define LARGE_FTYPE to be 9223372036854775807, 14599 since some C++ compilers masquerading as C compilers 14600 incorrectly reject 9223372036854775807. */ 14601 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 14602 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 14603 && LARGE_FTYPE % 2147483647 == 1) 14604 ? 1 : -1]; 14605 int 14606 main (void) 14607 { 14608 14609 ; 14610 return 0; 14611 } 14612 _ACEOF 14613 if ac_fn_c_try_compile "$LINENO" 14614 then : 14615 if test x"$ac_opt" = x"none needed" 14616 then : 14617 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 14618 CC="$CC -DFTYPE=ino_t" 14619 if ac_fn_c_try_compile "$LINENO" 14620 then : 14621 14622 else case e in #( 14623 e) CC="$CC -D_FILE_OFFSET_BITS=64" 14624 if ac_fn_c_try_compile "$LINENO" 14625 then : 14626 ac_opt='-D_FILE_OFFSET_BITS=64' 14627 fi 14628 rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 14629 esac 14630 fi 14631 rm -f core conftest.err conftest.$ac_objext conftest.beam 14632 fi 14633 ac_cv_sys_largefile_opts=$ac_opt 14634 ac_opt_found=yes 14635 fi 14636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14637 test $ac_opt_found = no || break 14638 done 14639 CC="$ac_save_CC" 14640 14641 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 14642 esac 14643 fi 14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 14645 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 14646 14647 ac_have_largefile=yes 14648 case $ac_cv_sys_largefile_opts in #( 14649 "none needed") : 14650 ;; #( 14651 "supported through gnulib") : 14652 ;; #( 14653 "support not detected") : 14654 ac_have_largefile=no ;; #( 14655 "-D_FILE_OFFSET_BITS=64") : 14656 14657 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14658 ;; #( 14659 "-D_LARGE_FILES=1") : 14660 14661 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 14662 ;; #( 14663 "-n32") : 14664 CC="$CC -n32" ;; #( 14665 *) : 14666 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 14667 esac 14668 14669 if test "$enable_year2038" != no 14670 then : 14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 14672 printf %s "checking for $CC option for timestamps after 2038... " >&6; } 14673 if test ${ac_cv_sys_year2038_opts+y} 14674 then : 14675 printf %s "(cached) " >&6 14676 else case e in #( 14677 e) ac_save_CPPFLAGS="$CPPFLAGS" 14678 ac_opt_found=no 14679 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do 14680 if test x"$ac_opt" != x"none needed" 14681 then : 14682 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 14683 fi 14684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14685 /* end confdefs.h. */ 14686 14687 #include <time.h> 14688 /* Check that time_t can represent 2**32 - 1 correctly. */ 14689 #define LARGE_TIME_T \\ 14690 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 14691 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 14692 && LARGE_TIME_T % 65537 == 0) 14693 ? 1 : -1]; 14694 14695 int 14696 main (void) 14697 { 14698 14699 ; 14700 return 0; 14701 } 14702 _ACEOF 14703 if ac_fn_c_try_compile "$LINENO" 14704 then : 14705 ac_cv_sys_year2038_opts="$ac_opt" 14706 ac_opt_found=yes 14707 fi 14708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14709 test $ac_opt_found = no || break 14710 done 14711 CPPFLAGS="$ac_save_CPPFLAGS" 14712 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 14713 esac 14714 fi 14715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 14716 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 14717 14718 ac_have_year2038=yes 14719 case $ac_cv_sys_year2038_opts in #( 14720 "none needed") : 14721 ;; #( 14722 "support not detected") : 14723 ac_have_year2038=no ;; #( 14724 "-D_TIME_BITS=64") : 14725 14726 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 14727 ;; #( 14728 "-D__MINGW_USE_VC2005_COMPAT") : 14729 14730 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 14731 ;; #( 14732 "-U_USE_32_BIT_TIME_T"*) : 14733 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14734 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14735 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 14736 will stop working after mid-January 2038. Remove 14737 _USE_32BIT_TIME_T from the compiler flags. 14738 See 'config.log' for more details" "$LINENO" 5; } ;; #( 14739 *) : 14740 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 14741 esac 14742 14743 fi 14744 14745 fi 14746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 14747 printf %s "checking for declarations of fseeko and ftello... " >&6; } 14748 if test ${ac_cv_func_fseeko_ftello+y} 14749 then : 14750 printf %s "(cached) " >&6 14751 else case e in #( 14752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14753 /* end confdefs.h. */ 14754 14755 #if defined __hpux && !defined _LARGEFILE_SOURCE 14756 # include <limits.h> 14757 # if LONG_MAX >> 31 == 0 14758 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 14759 # endif 14760 #endif 14761 #include <sys/types.h> /* for off_t */ 14762 #include <stdio.h> 14763 14764 int 14765 main (void) 14766 { 14767 14768 int (*fp1) (FILE *, off_t, int) = fseeko; 14769 off_t (*fp2) (FILE *) = ftello; 14770 return fseeko (stdin, 0, 0) 14771 && fp1 (stdin, 0, 0) 14772 && ftello (stdin) >= 0 14773 && fp2 (stdin) >= 0; 14774 14775 ; 14776 return 0; 14777 } 14778 _ACEOF 14779 if ac_fn_c_try_compile "$LINENO" 14780 then : 14781 ac_cv_func_fseeko_ftello=yes 14782 else case e in #( 14783 e) ac_save_CPPFLAGS="$CPPFLAGS" 14784 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" 14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14786 /* end confdefs.h. */ 14787 14788 #if defined __hpux && !defined _LARGEFILE_SOURCE 14789 # include <limits.h> 14790 # if LONG_MAX >> 31 == 0 14791 # error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 14792 # endif 14793 #endif 14794 #include <sys/types.h> /* for off_t */ 14795 #include <stdio.h> 14796 14797 int 14798 main (void) 14799 { 14800 14801 int (*fp1) (FILE *, off_t, int) = fseeko; 14802 off_t (*fp2) (FILE *) = ftello; 14803 return fseeko (stdin, 0, 0) 14804 && fp1 (stdin, 0, 0) 14805 && ftello (stdin) >= 0 14806 && fp2 (stdin) >= 0; 14807 14808 ; 14809 return 0; 14810 } 14811 _ACEOF 14812 if ac_fn_c_try_compile "$LINENO" 14813 then : 14814 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" 14815 else case e in #( 14816 e) ac_cv_func_fseeko_ftello=no ;; 14817 esac 14818 fi 14819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14820 esac 14821 fi 14822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14823 esac 14824 fi 14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 14826 printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } 14827 if test "$ac_cv_func_fseeko_ftello" != no 14828 then : 14829 14830 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 14831 14832 fi 14833 if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" 14834 then : 14835 14836 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 14837 14838 fi 14839 14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 14841 printf %s "checking for mbstate_t... " >&6; } 14842 if test ${ac_cv_type_mbstate_t+y} 14843 then : 14844 printf %s "(cached) " >&6 14845 else case e in #( 14846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14847 /* end confdefs.h. */ 14848 $ac_includes_default 14849 # include <wchar.h> 14850 int 14851 main (void) 14852 { 14853 mbstate_t x; return sizeof x; 14854 ; 14855 return 0; 14856 } 14857 _ACEOF 14858 if ac_fn_c_try_compile "$LINENO" 14859 then : 14860 ac_cv_type_mbstate_t=yes 14861 else case e in #( 14862 e) ac_cv_type_mbstate_t=no ;; 14863 esac 14864 fi 14865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14866 esac 14867 fi 14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 14869 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 14870 if test $ac_cv_type_mbstate_t = yes; then 14871 14872 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 14873 14874 else 14875 14876 printf "%s\n" "#define mbstate_t int" >>confdefs.h 14877 14878 fi 14879 14880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 14881 printf %s "checking for struct option in getopt... " >&6; } 14882 if test ${ac_cv_struct_option_getopt_h+y} 14883 then : 14884 printf %s "(cached) " >&6 14885 else case e in #( 14886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14887 /* end confdefs.h. */ 14888 #include <getopt.h> 14889 int 14890 main (void) 14891 { 14892 struct option op; op.name; 14893 ; 14894 return 0; 14895 } 14896 _ACEOF 14897 if ac_fn_c_try_compile "$LINENO" 14898 then : 14899 ac_cv_struct_option_getopt_h=yes 14900 else case e in #( 14901 e) ac_cv_struct_option_getopt_h=no ;; 14902 esac 14903 fi 14904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14905 esac 14906 fi 14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 14908 printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; } 14909 if test "$ac_cv_struct_option_getopt_h" = yes; then 14910 14911 printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 14912 14913 fi 14914 14915 14916 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 14917 " 14918 if test "x$ac_cv_type_pid_t" = xyes 14919 then : 14920 14921 else case e in #( 14922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14923 /* end confdefs.h. */ 14924 14925 #if defined _WIN64 && !defined __CYGWIN__ 14926 LLP64 14927 #endif 14928 14929 int 14930 main (void) 14931 { 14932 14933 ; 14934 return 0; 14935 } 14936 14937 _ACEOF 14938 if ac_fn_c_try_compile "$LINENO" 14939 then : 14940 ac_pid_type='int' 14941 else case e in #( 14942 e) ac_pid_type='__int64' ;; 14943 esac 14944 fi 14945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14946 14947 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 14948 14949 ;; 14950 esac 14951 fi 14952 14953 14954 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 14955 case $ac_cv_c_uint8_t in #( 14956 no|yes) ;; #( 14957 *) 14958 14959 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h 14960 14961 14962 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h 14963 ;; 14964 esac 14965 14966 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 14967 case $ac_cv_c_uint16_t in #( 14968 no|yes) ;; #( 14969 *) 14970 14971 14972 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h 14973 ;; 14974 esac 14975 14976 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 14977 case $ac_cv_c_uint32_t in #( 14978 no|yes) ;; #( 14979 *) 14980 14981 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h 14982 14983 14984 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h 14985 ;; 14986 esac 14987 14988 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 14989 case $ac_cv_c_int32_t in #( 14990 no|yes) ;; #( 14991 *) 14992 14993 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h 14994 ;; 14995 esac 14996 14997 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 14998 case $ac_cv_c_uint64_t in #( 14999 no|yes) ;; #( 15000 *) 15001 15002 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h 15003 15004 15005 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h 15006 ;; 15007 esac 15008 15009 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 15010 case $ac_cv_c_int64_t in #( 15011 no|yes) ;; #( 15012 *) 15013 15014 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h 15015 ;; 15016 esac 15017 15018 15019 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 15020 if test "x$ac_cv_type_intptr_t" = xyes 15021 then : 15022 15023 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h 15024 15025 else case e in #( 15026 e) for ac_type in 'int' 'long int' 'long long int'; do 15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15028 /* end confdefs.h. */ 15029 $ac_includes_default 15030 int 15031 main (void) 15032 { 15033 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 15034 test_array [0] = 0; 15035 return test_array [0]; 15036 15037 ; 15038 return 0; 15039 } 15040 _ACEOF 15041 if ac_fn_c_try_compile "$LINENO" 15042 then : 15043 15044 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h 15045 15046 ac_type= 15047 fi 15048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15049 test -z "$ac_type" && break 15050 done ;; 15051 esac 15052 fi 15053 15054 15055 15056 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 15057 if test "x$ac_cv_type_uintptr_t" = xyes 15058 then : 15059 15060 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 15061 15062 else case e in #( 15063 e) for ac_type in 'unsigned int' 'unsigned long int' \ 15064 'unsigned long long int'; do 15065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15066 /* end confdefs.h. */ 15067 $ac_includes_default 15068 int 15069 main (void) 15070 { 15071 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 15072 test_array [0] = 0; 15073 return test_array [0]; 15074 15075 ; 15076 return 0; 15077 } 15078 _ACEOF 15079 if ac_fn_c_try_compile "$LINENO" 15080 then : 15081 15082 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 15083 15084 ac_type= 15085 fi 15086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15087 test -z "$ac_type" && break 15088 done ;; 15089 esac 15090 fi 15091 15092 15093 if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no 15094 then : 15095 # If we're not cross compiling and 'touch' works with a large 15096 # timestamp, then we can presume the system supports wider time_t 15097 # *somehow* and we just weren't able to detect it. One common 15098 # case that we deliberately *don't* probe for is a system that 15099 # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers 15100 # wide time_t. (It would be inappropriate for us to override an 15101 # intentional use of -m32.) Error out, demanding use of 15102 # --disable-year2038 if this is intentional. 15103 if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null 15104 then : 15105 case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #( 15106 *'Feb 7 2106'* | *'Feb 7 17:10'*) : 15107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 15108 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 15109 as_fn_error $? "this system appears to support timestamps after 15110 mid-January 2038, but no mechanism for enabling wide 15111 'time_t' was detected. Did you mean to build a 64-bit 15112 binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with 15113 32-bit time_t, configure with '--disable-year2038'. 15114 See 'config.log' for more details" "$LINENO" 5; } ;; #( 15115 *) : 15116 ;; 15117 esac 15118 fi 15119 fi 15120 15121 ac_func= 15122 for ac_item in $ac_func_c_list 15123 do 15124 if test $ac_func; then 15125 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 15126 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 15127 echo "#define $ac_item 1" >> confdefs.h 15128 fi 15129 ac_func= 15130 else 15131 ac_func=$ac_item 15132 fi 15133 done 15134 15135 15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15137 printf %s "checking for working mmap... " >&6; } 15138 if test ${ac_cv_func_mmap_fixed_mapped+y} 15139 then : 15140 printf %s "(cached) " >&6 15141 else case e in #( 15142 e) if test "$cross_compiling" = yes 15143 then : 15144 case "$host_os" in # (( 15145 # Guess yes on platforms where we know the result. 15146 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 15147 # If we don't know, assume the worst. 15148 *) ac_cv_func_mmap_fixed_mapped=no ;; 15149 esac 15150 else case e in #( 15151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15152 /* end confdefs.h. */ 15153 $ac_includes_default 15154 /* malloc might have been renamed as rpl_malloc. */ 15155 #undef malloc 15156 15157 /* Thanks to Mike Haertel and Jim Avera for this test. 15158 Here is a matrix of mmap possibilities: 15159 mmap private not fixed 15160 mmap private fixed at somewhere currently unmapped 15161 mmap private fixed at somewhere already mapped 15162 mmap shared not fixed 15163 mmap shared fixed at somewhere currently unmapped 15164 mmap shared fixed at somewhere already mapped 15165 For private mappings, we should verify that changes cannot be read() 15166 back from the file, nor mmap's back from the file at a different 15167 address. (There have been systems where private was not correctly 15168 implemented like the infamous i386 svr4.0, and systems where the 15169 VM page cache was not coherent with the file system buffer cache 15170 like early versions of FreeBSD and possibly contemporary NetBSD.) 15171 For shared mappings, we should conversely verify that changes get 15172 propagated back to all the places they're supposed to be. */ 15173 15174 #include <fcntl.h> 15175 #include <sys/mman.h> 15176 15177 #ifndef getpagesize 15178 /* Prefer sysconf to the legacy getpagesize function, as getpagesize has 15179 been removed from POSIX and is limited to page sizes that fit in 'int'. */ 15180 # ifdef _SC_PAGESIZE 15181 # define getpagesize() sysconf (_SC_PAGESIZE) 15182 # elif defined _SC_PAGE_SIZE 15183 # define getpagesize() sysconf (_SC_PAGE_SIZE) 15184 # elif HAVE_GETPAGESIZE 15185 int getpagesize (); 15186 # else 15187 # ifdef HAVE_SYS_PARAM_H 15188 # include <sys/param.h> 15189 # ifdef EXEC_PAGESIZE 15190 # define getpagesize() EXEC_PAGESIZE 15191 # else /* no EXEC_PAGESIZE */ 15192 # ifdef NBPG 15193 # define getpagesize() NBPG * CLSIZE 15194 # ifndef CLSIZE 15195 # define CLSIZE 1 15196 # endif /* no CLSIZE */ 15197 # else /* no NBPG */ 15198 # ifdef NBPC 15199 # define getpagesize() NBPC 15200 # else /* no NBPC */ 15201 # ifdef PAGESIZE 15202 # define getpagesize() PAGESIZE 15203 # endif /* PAGESIZE */ 15204 # endif /* no NBPC */ 15205 # endif /* no NBPG */ 15206 # endif /* no EXEC_PAGESIZE */ 15207 # else /* no HAVE_SYS_PARAM_H */ 15208 # define getpagesize() 8192 /* punt totally */ 15209 # endif /* no HAVE_SYS_PARAM_H */ 15210 # endif 15211 #endif 15212 15213 int 15214 main (void) 15215 { 15216 char *data, *data2, *data3; 15217 const char *cdata2; 15218 long i, pagesize; 15219 int fd, fd2; 15220 15221 pagesize = getpagesize (); 15222 15223 /* First, make a file with some known garbage in it. */ 15224 data = (char *) malloc (pagesize); 15225 if (!data) 15226 return 1; 15227 for (i = 0; i < pagesize; ++i) 15228 *(data + i) = rand (); 15229 umask (0); 15230 fd = creat ("conftest.mmap", 0600); 15231 if (fd < 0) 15232 return 2; 15233 if (write (fd, data, pagesize) != pagesize) 15234 return 3; 15235 close (fd); 15236 15237 /* Next, check that the tail of a page is zero-filled. File must have 15238 non-zero length, otherwise we risk SIGBUS for entire page. */ 15239 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 15240 if (fd2 < 0) 15241 return 4; 15242 cdata2 = ""; 15243 if (write (fd2, cdata2, 1) != 1) 15244 return 5; 15245 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 15246 if (data2 == MAP_FAILED) 15247 return 6; 15248 for (i = 0; i < pagesize; ++i) 15249 if (*(data2 + i)) 15250 return 7; 15251 close (fd2); 15252 /* 'return 8;' not currently used. */ 15253 15254 /* Next, try to mmap the file at a fixed address which already has 15255 something else allocated at it. If we can, also make sure that 15256 we see the same garbage. */ 15257 fd = open ("conftest.mmap", O_RDWR); 15258 if (fd < 0) 15259 return 9; 15260 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15261 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15262 return 10; 15263 for (i = 0; i < pagesize; ++i) 15264 if (*(data + i) != *(data2 + i)) 15265 return 11; 15266 15267 /* Finally, make sure that changes to the mapped area do not 15268 percolate back to the file as seen by read(). (This is a bug on 15269 some variants of i386 svr4.0.) */ 15270 for (i = 0; i < pagesize; ++i) 15271 *(data2 + i) = *(data2 + i) + 1; 15272 data3 = (char *) malloc (pagesize); 15273 if (!data3) 15274 return 12; 15275 if (read (fd, data3, pagesize) != pagesize) 15276 return 13; 15277 for (i = 0; i < pagesize; ++i) 15278 if (*(data + i) != *(data3 + i)) 15279 return 14; 15280 close (fd); 15281 free (data); 15282 free (data3); 15283 return 0; 15284 } 15285 _ACEOF 15286 if ac_fn_c_try_run "$LINENO" 15287 then : 15288 ac_cv_func_mmap_fixed_mapped=yes 15289 else case e in #( 15290 e) ac_cv_func_mmap_fixed_mapped=no ;; 15291 esac 15292 fi 15293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15294 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15295 esac 15296 fi 15297 ;; 15298 esac 15299 fi 15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15301 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 15302 if test $ac_cv_func_mmap_fixed_mapped = yes; then 15303 15304 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 15305 15306 fi 15307 rm -f conftest.mmap conftest.txt 15308 15309 15310 15311 15312 15313 15314 if test "x$ac_cv_func_fork" = xyes; then 15315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15316 printf %s "checking for working fork... " >&6; } 15317 if test ${ac_cv_func_fork_works+y} 15318 then : 15319 printf %s "(cached) " >&6 15320 else case e in #( 15321 e) if test "$cross_compiling" = yes 15322 then : 15323 ac_cv_func_fork_works=cross 15324 else case e in #( 15325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15326 /* end confdefs.h. */ 15327 $ac_includes_default 15328 int 15329 main (void) 15330 { 15331 15332 /* By R. Kuhlmann. */ 15333 return fork () < 0; 15334 15335 ; 15336 return 0; 15337 } 15338 _ACEOF 15339 if ac_fn_c_try_run "$LINENO" 15340 then : 15341 ac_cv_func_fork_works=yes 15342 else case e in #( 15343 e) ac_cv_func_fork_works=no ;; 15344 esac 15345 fi 15346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15347 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15348 esac 15349 fi 15350 ;; 15351 esac 15352 fi 15353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15354 printf "%s\n" "$ac_cv_func_fork_works" >&6; } 15355 15356 else 15357 ac_cv_func_fork_works=$ac_cv_func_fork 15358 fi 15359 if test "x$ac_cv_func_fork_works" = xcross; then 15360 case $host in 15361 *-*-amigaos* | *-*-msdosdjgpp*) 15362 # Override, as these systems have only a dummy fork() stub 15363 ac_cv_func_fork_works=no 15364 ;; 15365 *) 15366 ac_cv_func_fork_works=yes 15367 ;; 15368 esac 15369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15370 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15371 fi 15372 ac_cv_func_vfork_works=$ac_cv_func_vfork 15373 if test "x$ac_cv_func_vfork" = xyes; then 15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15375 printf %s "checking for working vfork... " >&6; } 15376 if test ${ac_cv_func_vfork_works+y} 15377 then : 15378 printf %s "(cached) " >&6 15379 else case e in #( 15380 e) if test "$cross_compiling" = yes 15381 then : 15382 ac_cv_func_vfork_works=cross 15383 else case e in #( 15384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15385 /* end confdefs.h. */ 15386 /* Thanks to Paul Eggert for this test. */ 15387 $ac_includes_default 15388 #include <signal.h> 15389 #include <sys/wait.h> 15390 #ifdef HAVE_VFORK_H 15391 # include <vfork.h> 15392 #endif 15393 15394 static void 15395 do_nothing (int sig) 15396 { 15397 (void) sig; 15398 } 15399 15400 /* On some sparc systems, changes by the child to local and incoming 15401 argument registers are propagated back to the parent. The compiler 15402 is told about this with #include <vfork.h>, but some compilers 15403 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15404 static variable whose address is put into a register that is 15405 clobbered by the vfork. */ 15406 static void 15407 sparc_address_test (int arg) 15408 { 15409 static pid_t child; 15410 if (!child) { 15411 child = vfork (); 15412 if (child < 0) { 15413 perror ("vfork"); 15414 _exit(2); 15415 } 15416 if (!child) { 15417 arg = getpid(); 15418 write(-1, "", 0); 15419 _exit (arg); 15420 } 15421 } 15422 } 15423 15424 int 15425 main (void) 15426 { 15427 pid_t parent = getpid (); 15428 pid_t child; 15429 15430 sparc_address_test (0); 15431 15432 /* On Solaris 2.4, changes by the child to the signal handler 15433 also munge signal handlers in the parent. To detect this, 15434 start by putting the parent's handler in a known state. */ 15435 signal (SIGTERM, SIG_DFL); 15436 15437 child = vfork (); 15438 15439 if (child == 0) { 15440 /* Here is another test for sparc vfork register problems. This 15441 test uses lots of local variables, at least as many local 15442 variables as main has allocated so far including compiler 15443 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15444 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15445 reuse the register of parent for one of the local variables, 15446 since it will think that parent can't possibly be used any more 15447 in this routine. Assigning to the local variable will thus 15448 munge parent in the parent process. */ 15449 pid_t 15450 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15451 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15452 /* Convince the compiler that p..p7 are live; otherwise, it might 15453 use the same hardware register for all 8 local variables. */ 15454 if (p != p1 || p != p2 || p != p3 || p != p4 15455 || p != p5 || p != p6 || p != p7) 15456 _exit(1); 15457 15458 /* Alter the child's signal handler. */ 15459 if (signal (SIGTERM, do_nothing) != SIG_DFL) 15460 _exit(1); 15461 15462 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15463 from child file descriptors. If the child closes a descriptor 15464 before it execs or exits, this munges the parent's descriptor 15465 as well. Test for this by closing stdout in the child. */ 15466 _exit(close(fileno(stdout)) != 0); 15467 } else { 15468 int status; 15469 struct stat st; 15470 15471 while (wait(&status) != child) 15472 ; 15473 return ( 15474 /* Was there some problem with vforking? */ 15475 child < 0 15476 15477 /* Did the child munge the parent's signal handler? */ 15478 || signal (SIGTERM, SIG_DFL) != SIG_DFL 15479 15480 /* Did the child fail? (This shouldn't happen.) */ 15481 || status 15482 15483 /* Did the vfork/compiler bug occur? */ 15484 || parent != getpid() 15485 15486 /* Did the file descriptor bug occur? */ 15487 || fstat(fileno(stdout), &st) != 0 15488 ); 15489 } 15490 } 15491 _ACEOF 15492 if ac_fn_c_try_run "$LINENO" 15493 then : 15494 ac_cv_func_vfork_works=yes 15495 else case e in #( 15496 e) ac_cv_func_vfork_works=no ;; 15497 esac 15498 fi 15499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15500 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15501 esac 15502 fi 15503 ;; 15504 esac 15505 fi 15506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15507 printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 15508 15509 fi; 15510 if test "x$ac_cv_func_fork_works" = xcross; then 15511 ac_cv_func_vfork_works=$ac_cv_func_vfork 15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15513 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15514 fi 15515 15516 if test "x$ac_cv_func_vfork_works" = xyes; then 15517 15518 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15519 15520 else 15521 15522 printf "%s\n" "#define vfork fork" >>confdefs.h 15523 15524 fi 15525 if test "x$ac_cv_func_fork_works" = xyes; then 15526 15527 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 15528 15529 fi 15530 15531 15532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 15533 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 15534 if test ${ac_cv_func_mbrtowc+y} 15535 then : 15536 printf %s "(cached) " >&6 15537 else case e in #( 15538 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15539 /* end confdefs.h. */ 15540 #include <wchar.h> 15541 int 15542 main (void) 15543 { 15544 wchar_t wc; 15545 char const s[] = ""; 15546 size_t n = 1; 15547 mbstate_t state; 15548 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 15549 ; 15550 return 0; 15551 } 15552 _ACEOF 15553 if ac_fn_c_try_link "$LINENO" 15554 then : 15555 ac_cv_func_mbrtowc=yes 15556 else case e in #( 15557 e) ac_cv_func_mbrtowc=no ;; 15558 esac 15559 fi 15560 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15561 conftest$ac_exeext conftest.$ac_ext ;; 15562 esac 15563 fi 15564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 15565 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; } 15566 if test $ac_cv_func_mbrtowc = yes; then 15567 15568 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 15569 15570 fi 15571 15572 15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 15574 printf %s "checking for gcc compiler warnings... " >&6; } 15575 # Check whether --enable-warnings was given. 15576 if test ${enable_warnings+y} 15577 then : 15578 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 15579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15580 printf "%s\n" "no" >&6; } 15581 WARNINGS= 15582 else 15583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15584 printf "%s\n" "yes" >&6; } 15585 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15586 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15587 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15588 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15589 fi 15590 else case e in #( 15591 e) 15592 if test "$GCC" = yes; then 15593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15594 printf "%s\n" "yes" >&6; } 15595 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15596 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15597 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15598 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15599 else 15600 WARNINGS= 15601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15602 printf "%s\n" "no" >&6; } 15603 fi ;; 15604 esac 15605 fi 15606 15607 15608 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 15609 if test "x$ac_cv_func_strndup" = xyes 15610 then : 15611 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 15612 15613 fi 15614 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 15615 if test "x$ac_cv_func_mkstemp" = xyes 15616 then : 15617 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 15618 15619 fi 15620 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 15621 if test "x$ac_cv_func_mkostemp" = xyes 15622 then : 15623 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 15624 15625 fi 15626 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 15627 if test "x$ac_cv_func_utimes" = xyes 15628 then : 15629 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 15630 15631 fi 15632 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" 15633 if test "x$ac_cv_func_utime" = xyes 15634 then : 15635 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h 15636 15637 fi 15638 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" 15639 if test "x$ac_cv_func_wcwidth" = xyes 15640 then : 15641 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h 15642 15643 fi 15644 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" 15645 if test "x$ac_cv_func_strtof" = xyes 15646 then : 15647 printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h 15648 15649 fi 15650 ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale" 15651 if test "x$ac_cv_func_newlocale" = xyes 15652 then : 15653 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h 15654 15655 fi 15656 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale" 15657 if test "x$ac_cv_func_uselocale" = xyes 15658 then : 15659 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h 15660 15661 fi 15662 ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale" 15663 if test "x$ac_cv_func_freelocale" = xyes 15664 then : 15665 printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h 15666 15667 fi 15668 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" 15669 if test "x$ac_cv_func_memmem" = xyes 15670 then : 15671 printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h 15672 15673 fi 15674 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 15675 if test "x$ac_cv_func_pipe2" = xyes 15676 then : 15677 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 15678 15679 fi 15680 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" 15681 if test "x$ac_cv_func_posix_spawnp" = xyes 15682 then : 15683 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h 15684 15685 fi 15686 15687 15688 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 15689 if test "x$ac_cv_func_getopt_long" = xyes 15690 then : 15691 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h 15692 15693 else case e in #( 15694 e) case " $LIBOBJS " in 15695 *" getopt_long.$ac_objext "* ) ;; 15696 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 15697 ;; 15698 esac 15699 ;; 15700 esac 15701 fi 15702 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 15703 if test "x$ac_cv_func_asprintf" = xyes 15704 then : 15705 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 15706 15707 else case e in #( 15708 e) case " $LIBOBJS " in 15709 *" asprintf.$ac_objext "* ) ;; 15710 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 15711 ;; 15712 esac 15713 ;; 15714 esac 15715 fi 15716 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 15717 if test "x$ac_cv_func_vasprintf" = xyes 15718 then : 15719 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 15720 15721 else case e in #( 15722 e) case " $LIBOBJS " in 15723 *" vasprintf.$ac_objext "* ) ;; 15724 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 15725 ;; 15726 esac 15727 ;; 15728 esac 15729 fi 15730 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15731 if test "x$ac_cv_func_strlcpy" = xyes 15732 then : 15733 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 15734 15735 else case e in #( 15736 e) case " $LIBOBJS " in 15737 *" strlcpy.$ac_objext "* ) ;; 15738 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15739 ;; 15740 esac 15741 ;; 15742 esac 15743 fi 15744 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15745 if test "x$ac_cv_func_strlcat" = xyes 15746 then : 15747 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 15748 15749 else case e in #( 15750 e) case " $LIBOBJS " in 15751 *" strlcat.$ac_objext "* ) ;; 15752 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 15753 ;; 15754 esac 15755 ;; 15756 esac 15757 fi 15758 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 15759 if test "x$ac_cv_func_getline" = xyes 15760 then : 15761 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h 15762 15763 else case e in #( 15764 e) case " $LIBOBJS " in 15765 *" getline.$ac_objext "* ) ;; 15766 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 15767 ;; 15768 esac 15769 ;; 15770 esac 15771 fi 15772 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 15773 if test "x$ac_cv_func_ctime_r" = xyes 15774 then : 15775 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 15776 15777 else case e in #( 15778 e) case " $LIBOBJS " in 15779 *" ctime_r.$ac_objext "* ) ;; 15780 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 15781 ;; 15782 esac 15783 ;; 15784 esac 15785 fi 15786 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 15787 if test "x$ac_cv_func_asctime_r" = xyes 15788 then : 15789 printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h 15790 15791 else case e in #( 15792 e) case " $LIBOBJS " in 15793 *" asctime_r.$ac_objext "* ) ;; 15794 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 15795 ;; 15796 esac 15797 ;; 15798 esac 15799 fi 15800 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 15801 if test "x$ac_cv_func_localtime_r" = xyes 15802 then : 15803 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 15804 15805 else case e in #( 15806 e) case " $LIBOBJS " in 15807 *" localtime_r.$ac_objext "* ) ;; 15808 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 15809 ;; 15810 esac 15811 ;; 15812 esac 15813 fi 15814 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 15815 if test "x$ac_cv_func_gmtime_r" = xyes 15816 then : 15817 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 15818 15819 else case e in #( 15820 e) case " $LIBOBJS " in 15821 *" gmtime_r.$ac_objext "* ) ;; 15822 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 15823 ;; 15824 esac 15825 ;; 15826 esac 15827 fi 15828 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 15829 if test "x$ac_cv_func_pread" = xyes 15830 then : 15831 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 15832 15833 else case e in #( 15834 e) case " $LIBOBJS " in 15835 *" pread.$ac_objext "* ) ;; 15836 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 15837 ;; 15838 esac 15839 ;; 15840 esac 15841 fi 15842 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 15843 if test "x$ac_cv_func_strcasestr" = xyes 15844 then : 15845 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 15846 15847 else case e in #( 15848 e) case " $LIBOBJS " in 15849 *" strcasestr.$ac_objext "* ) ;; 15850 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 15851 ;; 15852 esac 15853 ;; 15854 esac 15855 fi 15856 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 15857 if test "x$ac_cv_func_fmtcheck" = xyes 15858 then : 15859 printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h 15860 15861 else case e in #( 15862 e) case " $LIBOBJS " in 15863 *" fmtcheck.$ac_objext "* ) ;; 15864 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 15865 ;; 15866 esac 15867 ;; 15868 esac 15869 fi 15870 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 15871 if test "x$ac_cv_func_dprintf" = xyes 15872 then : 15873 printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h 15874 15875 else case e in #( 15876 e) case " $LIBOBJS " in 15877 *" dprintf.$ac_objext "* ) ;; 15878 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 15879 ;; 15880 esac 15881 ;; 15882 esac 15883 fi 15884 15885 15886 if test "$enable_zlib" != "no"; then 15887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 15888 printf %s "checking for gzopen in -lz... " >&6; } 15889 if test ${ac_cv_lib_z_gzopen+y} 15890 then : 15891 printf %s "(cached) " >&6 15892 else case e in #( 15893 e) ac_check_lib_save_LIBS=$LIBS 15894 LIBS="-lz $LIBS" 15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15896 /* end confdefs.h. */ 15897 15898 /* Override any GCC internal prototype to avoid an error. 15899 Use char because int might match the return type of a GCC 15900 builtin and then its argument prototype would still apply. 15901 The 'extern "C"' is for builds by C++ compilers; 15902 although this is not generally supported in C code supporting it here 15903 has little cost and some practical benefit (sr 110532). */ 15904 #ifdef __cplusplus 15905 extern "C" 15906 #endif 15907 char gzopen (void); 15908 int 15909 main (void) 15910 { 15911 return gzopen (); 15912 ; 15913 return 0; 15914 } 15915 _ACEOF 15916 if ac_fn_c_try_link "$LINENO" 15917 then : 15918 ac_cv_lib_z_gzopen=yes 15919 else case e in #( 15920 e) ac_cv_lib_z_gzopen=no ;; 15921 esac 15922 fi 15923 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15924 conftest$ac_exeext conftest.$ac_ext 15925 LIBS=$ac_check_lib_save_LIBS ;; 15926 esac 15927 fi 15928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 15929 printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 15930 if test "x$ac_cv_lib_z_gzopen" = xyes 15931 then : 15932 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 15933 15934 LIBS="-lz $LIBS" 15935 15936 fi 15937 15938 fi 15939 if test "$enable_bzlib" != "no"; then 15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5 15941 printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; } 15942 if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y} 15943 then : 15944 printf %s "(cached) " >&6 15945 else case e in #( 15946 e) ac_check_lib_save_LIBS=$LIBS 15947 LIBS="-lbz2 $LIBS" 15948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15949 /* end confdefs.h. */ 15950 15951 /* Override any GCC internal prototype to avoid an error. 15952 Use char because int might match the return type of a GCC 15953 builtin and then its argument prototype would still apply. 15954 The 'extern "C"' is for builds by C++ compilers; 15955 although this is not generally supported in C code supporting it here 15956 has little cost and some practical benefit (sr 110532). */ 15957 #ifdef __cplusplus 15958 extern "C" 15959 #endif 15960 char BZ2_bzCompressInit (void); 15961 int 15962 main (void) 15963 { 15964 return BZ2_bzCompressInit (); 15965 ; 15966 return 0; 15967 } 15968 _ACEOF 15969 if ac_fn_c_try_link "$LINENO" 15970 then : 15971 ac_cv_lib_bz2_BZ2_bzCompressInit=yes 15972 else case e in #( 15973 e) ac_cv_lib_bz2_BZ2_bzCompressInit=no ;; 15974 esac 15975 fi 15976 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15977 conftest$ac_exeext conftest.$ac_ext 15978 LIBS=$ac_check_lib_save_LIBS ;; 15979 esac 15980 fi 15981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 15982 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; } 15983 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes 15984 then : 15985 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h 15986 15987 LIBS="-lbz2 $LIBS" 15988 15989 fi 15990 15991 fi 15992 if test "$enable_xzlib" != "no"; then 15993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5 15994 printf %s "checking for lzma_stream_decoder in -llzma... " >&6; } 15995 if test ${ac_cv_lib_lzma_lzma_stream_decoder+y} 15996 then : 15997 printf %s "(cached) " >&6 15998 else case e in #( 15999 e) ac_check_lib_save_LIBS=$LIBS 16000 LIBS="-llzma $LIBS" 16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16002 /* end confdefs.h. */ 16003 16004 /* Override any GCC internal prototype to avoid an error. 16005 Use char because int might match the return type of a GCC 16006 builtin and then its argument prototype would still apply. 16007 The 'extern "C"' is for builds by C++ compilers; 16008 although this is not generally supported in C code supporting it here 16009 has little cost and some practical benefit (sr 110532). */ 16010 #ifdef __cplusplus 16011 extern "C" 16012 #endif 16013 char lzma_stream_decoder (void); 16014 int 16015 main (void) 16016 { 16017 return lzma_stream_decoder (); 16018 ; 16019 return 0; 16020 } 16021 _ACEOF 16022 if ac_fn_c_try_link "$LINENO" 16023 then : 16024 ac_cv_lib_lzma_lzma_stream_decoder=yes 16025 else case e in #( 16026 e) ac_cv_lib_lzma_lzma_stream_decoder=no ;; 16027 esac 16028 fi 16029 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16030 conftest$ac_exeext conftest.$ac_ext 16031 LIBS=$ac_check_lib_save_LIBS ;; 16032 esac 16033 fi 16034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5 16035 printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; } 16036 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes 16037 then : 16038 printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h 16039 16040 LIBS="-llzma $LIBS" 16041 16042 fi 16043 16044 fi 16045 if test "$enable_zstdlib" != "no"; then 16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5 16047 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; } 16048 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y} 16049 then : 16050 printf %s "(cached) " >&6 16051 else case e in #( 16052 e) ac_check_lib_save_LIBS=$LIBS 16053 LIBS="-lzstd $LIBS" 16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16055 /* end confdefs.h. */ 16056 16057 /* Override any GCC internal prototype to avoid an error. 16058 Use char because int might match the return type of a GCC 16059 builtin and then its argument prototype would still apply. 16060 The 'extern "C"' is for builds by C++ compilers; 16061 although this is not generally supported in C code supporting it here 16062 has little cost and some practical benefit (sr 110532). */ 16063 #ifdef __cplusplus 16064 extern "C" 16065 #endif 16066 char ZSTD_createDStream (void); 16067 int 16068 main (void) 16069 { 16070 return ZSTD_createDStream (); 16071 ; 16072 return 0; 16073 } 16074 _ACEOF 16075 if ac_fn_c_try_link "$LINENO" 16076 then : 16077 ac_cv_lib_zstd_ZSTD_createDStream=yes 16078 else case e in #( 16079 e) ac_cv_lib_zstd_ZSTD_createDStream=no ;; 16080 esac 16081 fi 16082 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16083 conftest$ac_exeext conftest.$ac_ext 16084 LIBS=$ac_check_lib_save_LIBS ;; 16085 esac 16086 fi 16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5 16088 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; } 16089 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes 16090 then : 16091 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h 16092 16093 LIBS="-lzstd $LIBS" 16094 16095 fi 16096 16097 fi 16098 if test "$enable_lzlib" != "no"; then 16099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5 16100 printf %s "checking for LZ_decompress_open in -llz... " >&6; } 16101 if test ${ac_cv_lib_lz_LZ_decompress_open+y} 16102 then : 16103 printf %s "(cached) " >&6 16104 else case e in #( 16105 e) ac_check_lib_save_LIBS=$LIBS 16106 LIBS="-llz $LIBS" 16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16108 /* end confdefs.h. */ 16109 16110 /* Override any GCC internal prototype to avoid an error. 16111 Use char because int might match the return type of a GCC 16112 builtin and then its argument prototype would still apply. 16113 The 'extern "C"' is for builds by C++ compilers; 16114 although this is not generally supported in C code supporting it here 16115 has little cost and some practical benefit (sr 110532). */ 16116 #ifdef __cplusplus 16117 extern "C" 16118 #endif 16119 char LZ_decompress_open (void); 16120 int 16121 main (void) 16122 { 16123 return LZ_decompress_open (); 16124 ; 16125 return 0; 16126 } 16127 _ACEOF 16128 if ac_fn_c_try_link "$LINENO" 16129 then : 16130 ac_cv_lib_lz_LZ_decompress_open=yes 16131 else case e in #( 16132 e) ac_cv_lib_lz_LZ_decompress_open=no ;; 16133 esac 16134 fi 16135 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16136 conftest$ac_exeext conftest.$ac_ext 16137 LIBS=$ac_check_lib_save_LIBS ;; 16138 esac 16139 fi 16140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5 16141 printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; } 16142 if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes 16143 then : 16144 printf "%s\n" "#define HAVE_LIBLZ 1" >>confdefs.h 16145 16146 LIBS="-llz $LIBS" 16147 16148 fi 16149 16150 fi 16151 if test "$enable_lrziplib" != "no"; then 16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrzip_new in -llrzip" >&5 16153 printf %s "checking for lrzip_new in -llrzip... " >&6; } 16154 if test ${ac_cv_lib_lrzip_lrzip_new+y} 16155 then : 16156 printf %s "(cached) " >&6 16157 else case e in #( 16158 e) ac_check_lib_save_LIBS=$LIBS 16159 LIBS="-llrzip $LIBS" 16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161 /* end confdefs.h. */ 16162 16163 /* Override any GCC internal prototype to avoid an error. 16164 Use char because int might match the return type of a GCC 16165 builtin and then its argument prototype would still apply. 16166 The 'extern "C"' is for builds by C++ compilers; 16167 although this is not generally supported in C code supporting it here 16168 has little cost and some practical benefit (sr 110532). */ 16169 #ifdef __cplusplus 16170 extern "C" 16171 #endif 16172 char lrzip_new (void); 16173 int 16174 main (void) 16175 { 16176 return lrzip_new (); 16177 ; 16178 return 0; 16179 } 16180 _ACEOF 16181 if ac_fn_c_try_link "$LINENO" 16182 then : 16183 ac_cv_lib_lrzip_lrzip_new=yes 16184 else case e in #( 16185 e) ac_cv_lib_lrzip_lrzip_new=no ;; 16186 esac 16187 fi 16188 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16189 conftest$ac_exeext conftest.$ac_ext 16190 LIBS=$ac_check_lib_save_LIBS ;; 16191 esac 16192 fi 16193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lrzip_lrzip_new" >&5 16194 printf "%s\n" "$ac_cv_lib_lrzip_lrzip_new" >&6; } 16195 if test "x$ac_cv_lib_lrzip_lrzip_new" = xyes 16196 then : 16197 printf "%s\n" "#define HAVE_LIBLRZIP 1" >>confdefs.h 16198 16199 LIBS="-llrzip $LIBS" 16200 16201 fi 16202 16203 fi 16204 16205 if test "$enable_libseccomp" != "no"; then 16206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5 16207 printf %s "checking for seccomp_init in -lseccomp... " >&6; } 16208 if test ${ac_cv_lib_seccomp_seccomp_init+y} 16209 then : 16210 printf %s "(cached) " >&6 16211 else case e in #( 16212 e) ac_check_lib_save_LIBS=$LIBS 16213 LIBS="-lseccomp $LIBS" 16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16215 /* end confdefs.h. */ 16216 16217 /* Override any GCC internal prototype to avoid an error. 16218 Use char because int might match the return type of a GCC 16219 builtin and then its argument prototype would still apply. 16220 The 'extern "C"' is for builds by C++ compilers; 16221 although this is not generally supported in C code supporting it here 16222 has little cost and some practical benefit (sr 110532). */ 16223 #ifdef __cplusplus 16224 extern "C" 16225 #endif 16226 char seccomp_init (void); 16227 int 16228 main (void) 16229 { 16230 return seccomp_init (); 16231 ; 16232 return 0; 16233 } 16234 _ACEOF 16235 if ac_fn_c_try_link "$LINENO" 16236 then : 16237 ac_cv_lib_seccomp_seccomp_init=yes 16238 else case e in #( 16239 e) ac_cv_lib_seccomp_seccomp_init=no ;; 16240 esac 16241 fi 16242 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16243 conftest$ac_exeext conftest.$ac_ext 16244 LIBS=$ac_check_lib_save_LIBS ;; 16245 esac 16246 fi 16247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5 16248 printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; } 16249 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes 16250 then : 16251 printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h 16252 16253 LIBS="-lseccomp $LIBS" 16254 16255 fi 16256 16257 fi 16258 if test "$enable_landlock" != "no"; then 16259 ac_fn_c_check_header_compile "$LINENO" "linux/landlock.h" "ac_cv_header_linux_landlock_h" "$ac_includes_default" 16260 if test "x$ac_cv_header_linux_landlock_h" = xyes 16261 then : 16262 printf "%s\n" "#define HAVE_LINUX_LANDLOCK_H 1" >>confdefs.h 16263 16264 fi 16265 16266 fi 16267 if test "$MINGW" = 1; then 16268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 16269 printf %s "checking for regexec in -lgnurx... " >&6; } 16270 if test ${ac_cv_lib_gnurx_regexec+y} 16271 then : 16272 printf %s "(cached) " >&6 16273 else case e in #( 16274 e) ac_check_lib_save_LIBS=$LIBS 16275 LIBS="-lgnurx $LIBS" 16276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16277 /* end confdefs.h. */ 16278 16279 /* Override any GCC internal prototype to avoid an error. 16280 Use char because int might match the return type of a GCC 16281 builtin and then its argument prototype would still apply. 16282 The 'extern "C"' is for builds by C++ compilers; 16283 although this is not generally supported in C code supporting it here 16284 has little cost and some practical benefit (sr 110532). */ 16285 #ifdef __cplusplus 16286 extern "C" 16287 #endif 16288 char regexec (void); 16289 int 16290 main (void) 16291 { 16292 return regexec (); 16293 ; 16294 return 0; 16295 } 16296 _ACEOF 16297 if ac_fn_c_try_link "$LINENO" 16298 then : 16299 ac_cv_lib_gnurx_regexec=yes 16300 else case e in #( 16301 e) ac_cv_lib_gnurx_regexec=no ;; 16302 esac 16303 fi 16304 rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16305 conftest$ac_exeext conftest.$ac_ext 16306 LIBS=$ac_check_lib_save_LIBS ;; 16307 esac 16308 fi 16309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 16310 printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; } 16311 if test "x$ac_cv_lib_gnurx_regexec" = xyes 16312 then : 16313 printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h 16314 16315 LIBS="-lgnurx $LIBS" 16316 16317 else case e in #( 16318 e) as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 ;; 16319 esac 16320 fi 16321 16322 fi 16323 16324 if test "$cross_compiling" = yes; then 16325 IS_CROSS_COMPILE_TRUE= 16326 IS_CROSS_COMPILE_FALSE='#' 16327 else 16328 IS_CROSS_COMPILE_TRUE='#' 16329 IS_CROSS_COMPILE_FALSE= 16330 fi 16331 16332 16333 if test "$enable_zlib" = "yes"; then 16334 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 16335 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 16336 fi 16337 fi 16338 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 16339 16340 printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h 16341 16342 fi 16343 if test "$enable_bzlib" = "yes"; then 16344 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then 16345 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5 16346 fi 16347 fi 16348 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then 16349 16350 printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h 16351 16352 fi 16353 if test "$enable_xzlib" = "yes"; then 16354 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then 16355 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5 16356 fi 16357 fi 16358 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then 16359 16360 printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h 16361 16362 fi 16363 if test "$enable_zstdlib" = "yes"; then 16364 if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then 16365 as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5 16366 fi 16367 fi 16368 if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then 16369 16370 printf "%s\n" "#define ZSTDLIBSUPPORT 1" >>confdefs.h 16371 16372 fi 16373 if test "$enable_lzlib" = "yes"; then 16374 if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then 16375 as_fn_error $? "lzlib support requested but not found" "$LINENO" 5 16376 fi 16377 fi 16378 if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then 16379 16380 printf "%s\n" "#define LZLIBSUPPORT 1" >>confdefs.h 16381 16382 fi 16383 16384 if test "$enable_lrziplib" = "yes"; then 16385 if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" != "yesyes"; then 16386 as_fn_error $? "lrzip support requested but not found" "$LINENO" 5 16387 fi 16388 fi 16389 if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" = "yesyes"; then 16390 16391 printf "%s\n" "#define LRZIPLIBSUPPORT 1" >>confdefs.h 16392 16393 fi 16394 16395 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc" 16396 16397 cat >confcache <<\_ACEOF 16398 # This file is a shell script that caches the results of configure 16399 # tests run on this system so they can be shared between configure 16400 # scripts and configure runs, see configure's option --config-cache. 16401 # It is not useful on other systems. If it contains results you don't 16402 # want to keep, you may remove or edit it. 16403 # 16404 # config.status only pays attention to the cache file if you give it 16405 # the --recheck option to rerun configure. 16406 # 16407 # 'ac_cv_env_foo' variables (set or unset) will be overridden when 16408 # loading this file, other *unset* 'ac_cv_foo' will be assigned the 16409 # following values. 16410 16411 _ACEOF 16412 16413 # The following way of writing the cache mishandles newlines in values, 16414 # but we know of no workaround that is simple, portable, and efficient. 16415 # So, we kill variables containing newlines. 16416 # Ultrix sh set writes to stderr and can't be redirected directly, 16417 # and sets the high bit in the cache file unless we assign to the vars. 16418 ( 16419 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16420 eval ac_val=\$$ac_var 16421 case $ac_val in #( 16422 *${as_nl}*) 16423 case $ac_var in #( 16424 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16425 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16426 esac 16427 case $ac_var in #( 16428 _ | IFS | as_nl) ;; #( 16429 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16430 *) { eval $ac_var=; unset $ac_var;} ;; 16431 esac ;; 16432 esac 16433 done 16434 16435 (set) 2>&1 | 16436 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16437 *${as_nl}ac_space=\ *) 16438 # 'set' does not quote correctly, so add quotes: double-quote 16439 # substitution turns \\\\ into \\, and sed turns \\ into \. 16440 sed -n \ 16441 "s/'/'\\\\''/g; 16442 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16443 ;; #( 16444 *) 16445 # 'set' quotes correctly as required by POSIX, so do not add quotes. 16446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16447 ;; 16448 esac | 16449 sort 16450 ) | 16451 sed ' 16452 /^ac_cv_env_/b end 16453 t clear 16454 :clear 16455 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 16456 t end 16457 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16458 :end' >>confcache 16459 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16460 if test -w "$cache_file"; then 16461 if test "x$cache_file" != "x/dev/null"; then 16462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16463 printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 16464 if test ! -f "$cache_file" || test -h "$cache_file"; then 16465 cat confcache >"$cache_file" 16466 else 16467 case $cache_file in #( 16468 */* | ?:*) 16469 mv -f confcache "$cache_file"$$ && 16470 mv -f "$cache_file"$$ "$cache_file" ;; #( 16471 *) 16472 mv -f confcache "$cache_file" ;; 16473 esac 16474 fi 16475 fi 16476 else 16477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16478 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 16479 fi 16480 fi 16481 rm -f confcache 16482 16483 test "x$prefix" = xNONE && prefix=$ac_default_prefix 16484 # Let make expand exec_prefix. 16485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16486 16487 DEFS=-DHAVE_CONFIG_H 16488 16489 ac_libobjs= 16490 ac_ltlibobjs= 16491 U= 16492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16493 # 1. Remove the extension, and $U if already installed. 16494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16495 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 16496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16497 # will be set to the directory where LIBOBJS objects are built. 16498 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16499 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16500 done 16501 LIBOBJS=$ac_libobjs 16502 16503 LTLIBOBJS=$ac_ltlibobjs 16504 16505 16506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16507 printf %s "checking that generated files are newer than configure... " >&6; } 16508 if test -n "$am_sleep_pid"; then 16509 # Hide warnings about reused PIDs. 16510 wait $am_sleep_pid 2>/dev/null 16511 fi 16512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 16513 printf "%s\n" "done" >&6; } 16514 if test -n "$EXEEXT"; then 16515 am__EXEEXT_TRUE= 16516 am__EXEEXT_FALSE='#' 16517 else 16518 am__EXEEXT_TRUE='#' 16519 am__EXEEXT_FALSE= 16520 fi 16521 16522 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 16523 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 16524 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16525 fi 16526 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 16527 as_fn_error $? "conditional \"MINGW\" was never defined. 16528 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16529 fi 16530 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 16531 as_fn_error $? "conditional \"FSECT5\" was never defined. 16532 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16533 fi 16534 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16535 as_fn_error $? "conditional \"AMDEP\" was never defined. 16536 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16537 fi 16538 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16539 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16540 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16541 fi 16542 16543 # Check whether --enable-year2038 was given. 16544 if test ${enable_year2038+y} 16545 then : 16546 enableval=$enable_year2038; 16547 fi 16548 16549 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 16550 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 16551 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16552 fi 16553 16554 : "${CONFIG_STATUS=./config.status}" 16555 ac_write_fail=0 16556 ac_clean_files_save=$ac_clean_files 16557 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16559 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 16560 as_write_fail=0 16561 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16562 #! $SHELL 16563 # Generated by $as_me. 16564 # Run this file to recreate the current configuration. 16565 # Compiler output produced by configure, useful for debugging 16566 # configure, is in config.log if it exists. 16567 16568 debug=false 16569 ac_cs_recheck=false 16570 ac_cs_silent=false 16571 16572 SHELL=\${CONFIG_SHELL-$SHELL} 16573 export SHELL 16574 _ASEOF 16575 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16576 ## -------------------- ## 16577 ## M4sh Initialization. ## 16578 ## -------------------- ## 16579 16580 # Be more Bourne compatible 16581 DUALCASE=1; export DUALCASE # for MKS sh 16582 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 16583 then : 16584 emulate sh 16585 NULLCMD=: 16586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16587 # is contrary to our usage. Disable this feature. 16588 alias -g '${1+"$@"}'='"$@"' 16589 setopt NO_GLOB_SUBST 16590 else case e in #( 16591 e) case `(set -o) 2>/dev/null` in #( 16592 *posix*) : 16593 set -o posix ;; #( 16594 *) : 16595 ;; 16596 esac ;; 16597 esac 16598 fi 16599 16600 16601 16602 # Reset variables that may have inherited troublesome values from 16603 # the environment. 16604 16605 # IFS needs to be set, to space, tab, and newline, in precisely that order. 16606 # (If _AS_PATH_WALK were called with IFS unset, it would have the 16607 # side effect of setting IFS to empty, thus disabling word splitting.) 16608 # Quoting is to prevent editors from complaining about space-tab. 16609 as_nl=' 16610 ' 16611 export as_nl 16612 IFS=" "" $as_nl" 16613 16614 PS1='$ ' 16615 PS2='> ' 16616 PS4='+ ' 16617 16618 # Ensure predictable behavior from utilities with locale-dependent output. 16619 LC_ALL=C 16620 export LC_ALL 16621 LANGUAGE=C 16622 export LANGUAGE 16623 16624 # We cannot yet rely on "unset" to work, but we need these variables 16625 # to be unset--not just set to an empty or harmless value--now, to 16626 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 16627 # also avoids known problems related to "unset" and subshell syntax 16628 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 16629 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 16630 do eval test \${$as_var+y} \ 16631 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16632 done 16633 16634 # Ensure that fds 0, 1, and 2 are open. 16635 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 16636 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 16637 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 16638 16639 # The user is always right. 16640 if ${PATH_SEPARATOR+false} :; then 16641 PATH_SEPARATOR=: 16642 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16643 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16644 PATH_SEPARATOR=';' 16645 } 16646 fi 16647 16648 16649 # Find who we are. Look in the path if we contain no directory separator. 16650 as_myself= 16651 case $0 in #(( 16652 *[\\/]* ) as_myself=$0 ;; 16653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16654 for as_dir in $PATH 16655 do 16656 IFS=$as_save_IFS 16657 case $as_dir in #((( 16658 '') as_dir=./ ;; 16659 */) ;; 16660 *) as_dir=$as_dir/ ;; 16661 esac 16662 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 16663 done 16664 IFS=$as_save_IFS 16665 16666 ;; 16667 esac 16668 # We did not find ourselves, most probably we were run as 'sh COMMAND' 16669 # in which case we are not to be found in the path. 16670 if test "x$as_myself" = x; then 16671 as_myself=$0 16672 fi 16673 if test ! -f "$as_myself"; then 16674 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16675 exit 1 16676 fi 16677 16678 16679 16680 # as_fn_error STATUS ERROR [LINENO LOG_FD] 16681 # ---------------------------------------- 16682 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16683 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16684 # script with STATUS, using 1 if that was 0. 16685 as_fn_error () 16686 { 16687 as_status=$1; test $as_status -eq 0 && as_status=1 16688 if test "$4"; then 16689 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16691 fi 16692 printf "%s\n" "$as_me: error: $2" >&2 16693 as_fn_exit $as_status 16694 } # as_fn_error 16695 16696 16697 # as_fn_set_status STATUS 16698 # ----------------------- 16699 # Set $? to STATUS, without forking. 16700 as_fn_set_status () 16701 { 16702 return $1 16703 } # as_fn_set_status 16704 16705 # as_fn_exit STATUS 16706 # ----------------- 16707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16708 as_fn_exit () 16709 { 16710 set +e 16711 as_fn_set_status $1 16712 exit $1 16713 } # as_fn_exit 16714 16715 # as_fn_unset VAR 16716 # --------------- 16717 # Portably unset VAR. 16718 as_fn_unset () 16719 { 16720 { eval $1=; unset $1;} 16721 } 16722 as_unset=as_fn_unset 16723 16724 # as_fn_append VAR VALUE 16725 # ---------------------- 16726 # Append the text in VALUE to the end of the definition contained in VAR. Take 16727 # advantage of any shell optimizations that allow amortized linear growth over 16728 # repeated appends, instead of the typical quadratic growth present in naive 16729 # implementations. 16730 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 16731 then : 16732 eval 'as_fn_append () 16733 { 16734 eval $1+=\$2 16735 }' 16736 else case e in #( 16737 e) as_fn_append () 16738 { 16739 eval $1=\$$1\$2 16740 } ;; 16741 esac 16742 fi # as_fn_append 16743 16744 # as_fn_arith ARG... 16745 # ------------------ 16746 # Perform arithmetic evaluation on the ARGs, and store the result in the 16747 # global $as_val. Take advantage of shells that can avoid forks. The arguments 16748 # must be portable across $(()) and expr. 16749 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 16750 then : 16751 eval 'as_fn_arith () 16752 { 16753 as_val=$(( $* )) 16754 }' 16755 else case e in #( 16756 e) as_fn_arith () 16757 { 16758 as_val=`expr "$@" || test $? -eq 1` 16759 } ;; 16760 esac 16761 fi # as_fn_arith 16762 16763 16764 if expr a : '\(a\)' >/dev/null 2>&1 && 16765 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16766 as_expr=expr 16767 else 16768 as_expr=false 16769 fi 16770 16771 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16772 as_basename=basename 16773 else 16774 as_basename=false 16775 fi 16776 16777 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16778 as_dirname=dirname 16779 else 16780 as_dirname=false 16781 fi 16782 16783 as_me=`$as_basename -- "$0" || 16784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16785 X"$0" : 'X\(//\)$' \| \ 16786 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16787 printf "%s\n" X/"$0" | 16788 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16789 s//\1/ 16790 q 16791 } 16792 /^X\/\(\/\/\)$/{ 16793 s//\1/ 16794 q 16795 } 16796 /^X\/\(\/\).*/{ 16797 s//\1/ 16798 q 16799 } 16800 s/.*/./; q'` 16801 16802 # Avoid depending upon Character Ranges. 16803 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16804 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16805 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16806 as_cr_digits='0123456789' 16807 as_cr_alnum=$as_cr_Letters$as_cr_digits 16808 16809 16810 # Determine whether it's possible to make 'echo' print without a newline. 16811 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 16812 # for compatibility with existing Makefiles. 16813 ECHO_C= ECHO_N= ECHO_T= 16814 case `echo -n x` in #((((( 16815 -n*) 16816 case `echo 'xy\c'` in 16817 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16818 xy) ECHO_C='\c';; 16819 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16820 ECHO_T=' ';; 16821 esac;; 16822 *) 16823 ECHO_N='-n';; 16824 esac 16825 16826 # For backward compatibility with old third-party macros, we provide 16827 # the shell variables $as_echo and $as_echo_n. New code should use 16828 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 16829 as_echo='printf %s\n' 16830 as_echo_n='printf %s' 16831 16832 rm -f conf$$ conf$$.exe conf$$.file 16833 if test -d conf$$.dir; then 16834 rm -f conf$$.dir/conf$$.file 16835 else 16836 rm -f conf$$.dir 16837 mkdir conf$$.dir 2>/dev/null 16838 fi 16839 if (echo >conf$$.file) 2>/dev/null; then 16840 if ln -s conf$$.file conf$$ 2>/dev/null; then 16841 as_ln_s='ln -s' 16842 # ... but there are two gotchas: 16843 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 16844 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 16845 # In both cases, we have to default to 'cp -pR'. 16846 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16847 as_ln_s='cp -pR' 16848 elif ln conf$$.file conf$$ 2>/dev/null; then 16849 as_ln_s=ln 16850 else 16851 as_ln_s='cp -pR' 16852 fi 16853 else 16854 as_ln_s='cp -pR' 16855 fi 16856 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16857 rmdir conf$$.dir 2>/dev/null 16858 16859 16860 # as_fn_mkdir_p 16861 # ------------- 16862 # Create "$as_dir" as a directory, including parents if necessary. 16863 as_fn_mkdir_p () 16864 { 16865 16866 case $as_dir in #( 16867 -*) as_dir=./$as_dir;; 16868 esac 16869 test -d "$as_dir" || eval $as_mkdir_p || { 16870 as_dirs= 16871 while :; do 16872 case $as_dir in #( 16873 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16874 *) as_qdir=$as_dir;; 16875 esac 16876 as_dirs="'$as_qdir' $as_dirs" 16877 as_dir=`$as_dirname -- "$as_dir" || 16878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16879 X"$as_dir" : 'X\(//\)[^/]' \| \ 16880 X"$as_dir" : 'X\(//\)$' \| \ 16881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16882 printf "%s\n" X"$as_dir" | 16883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16884 s//\1/ 16885 q 16886 } 16887 /^X\(\/\/\)[^/].*/{ 16888 s//\1/ 16889 q 16890 } 16891 /^X\(\/\/\)$/{ 16892 s//\1/ 16893 q 16894 } 16895 /^X\(\/\).*/{ 16896 s//\1/ 16897 q 16898 } 16899 s/.*/./; q'` 16900 test -d "$as_dir" && break 16901 done 16902 test -z "$as_dirs" || eval "mkdir $as_dirs" 16903 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16904 16905 16906 } # as_fn_mkdir_p 16907 if mkdir -p . 2>/dev/null; then 16908 as_mkdir_p='mkdir -p "$as_dir"' 16909 else 16910 test -d ./-p && rmdir ./-p 16911 as_mkdir_p=false 16912 fi 16913 16914 16915 # as_fn_executable_p FILE 16916 # ----------------------- 16917 # Test if FILE is an executable regular file. 16918 as_fn_executable_p () 16919 { 16920 test -f "$1" && test -x "$1" 16921 } # as_fn_executable_p 16922 as_test_x='test -x' 16923 as_executable_p=as_fn_executable_p 16924 16925 # Sed expression to map a string onto a valid CPP name. 16926 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 16927 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 16928 16929 # Sed expression to map a string onto a valid variable name. 16930 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 16931 as_tr_sh="eval sed '$as_sed_sh'" # deprecated 16932 16933 16934 exec 6>&1 16935 ## ----------------------------------- ## 16936 ## Main body of $CONFIG_STATUS script. ## 16937 ## ----------------------------------- ## 16938 _ASEOF 16939 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16940 16941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16942 # Save the log message, to keep $0 and so on meaningful, and to 16943 # report actual input values of CONFIG_FILES etc. instead of their 16944 # values after options handling. 16945 ac_log=" 16946 This file was extended by file $as_me 5.48, which was 16947 generated by GNU Autoconf 2.72. Invocation command line was 16948 16949 CONFIG_FILES = $CONFIG_FILES 16950 CONFIG_HEADERS = $CONFIG_HEADERS 16951 CONFIG_LINKS = $CONFIG_LINKS 16952 CONFIG_COMMANDS = $CONFIG_COMMANDS 16953 $ $0 $@ 16954 16955 on `(hostname || uname -n) 2>/dev/null | sed 1q` 16956 " 16957 16958 _ACEOF 16959 16960 case $ac_config_files in *" 16961 "*) set x $ac_config_files; shift; ac_config_files=$*;; 16962 esac 16963 16964 case $ac_config_headers in *" 16965 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 16966 esac 16967 16968 16969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16970 # Files that config.status was made for. 16971 config_files="$ac_config_files" 16972 config_headers="$ac_config_headers" 16973 config_commands="$ac_config_commands" 16974 16975 _ACEOF 16976 16977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16978 ac_cs_usage="\ 16979 '$as_me' instantiates files and other configuration actions 16980 from templates according to the current configuration. Unless the files 16981 and actions are specified as TAGs, all are instantiated by default. 16982 16983 Usage: $0 [OPTION]... [TAG]... 16984 16985 -h, --help print this help, then exit 16986 -V, --version print version number and configuration settings, then exit 16987 --config print configuration, then exit 16988 -q, --quiet, --silent 16989 do not print progress messages 16990 -d, --debug don't remove temporary files 16991 --recheck update $as_me by reconfiguring in the same conditions 16992 --file=FILE[:TEMPLATE] 16993 instantiate the configuration file FILE 16994 --header=FILE[:TEMPLATE] 16995 instantiate the configuration header FILE 16996 16997 Configuration files: 16998 $config_files 16999 17000 Configuration headers: 17001 $config_headers 17002 17003 Configuration commands: 17004 $config_commands 17005 17006 Report bugs to <christos (at] astron.com>." 17007 17008 _ACEOF 17009 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 17010 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 17011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17012 ac_cs_config='$ac_cs_config_escaped' 17013 ac_cs_version="\\ 17014 file config.status 5.48 17015 configured by $0, generated by GNU Autoconf 2.72, 17016 with options \\"\$ac_cs_config\\" 17017 17018 Copyright (C) 2023 Free Software Foundation, Inc. 17019 This config.status script is free software; the Free Software Foundation 17020 gives unlimited permission to copy, distribute and modify it." 17021 17022 ac_pwd='$ac_pwd' 17023 srcdir='$srcdir' 17024 INSTALL='$INSTALL' 17025 MKDIR_P='$MKDIR_P' 17026 AWK='$AWK' 17027 test -n "\$AWK" || AWK=awk 17028 _ACEOF 17029 17030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17031 # The default lists apply if the user does not specify any file. 17032 ac_need_defaults=: 17033 while test $# != 0 17034 do 17035 case $1 in 17036 --*=?*) 17037 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17038 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17039 ac_shift=: 17040 ;; 17041 --*=) 17042 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17043 ac_optarg= 17044 ac_shift=: 17045 ;; 17046 *) 17047 ac_option=$1 17048 ac_optarg=$2 17049 ac_shift=shift 17050 ;; 17051 esac 17052 17053 case $ac_option in 17054 # Handling of the options. 17055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17056 ac_cs_recheck=: ;; 17057 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17058 printf "%s\n" "$ac_cs_version"; exit ;; 17059 --config | --confi | --conf | --con | --co | --c ) 17060 printf "%s\n" "$ac_cs_config"; exit ;; 17061 --debug | --debu | --deb | --de | --d | -d ) 17062 debug=: ;; 17063 --file | --fil | --fi | --f ) 17064 $ac_shift 17065 case $ac_optarg in 17066 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17067 '') as_fn_error $? "missing file argument" ;; 17068 esac 17069 as_fn_append CONFIG_FILES " '$ac_optarg'" 17070 ac_need_defaults=false;; 17071 --header | --heade | --head | --hea ) 17072 $ac_shift 17073 case $ac_optarg in 17074 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17075 esac 17076 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17077 ac_need_defaults=false;; 17078 --he | --h) 17079 # Conflict between --help and --header 17080 as_fn_error $? "ambiguous option: '$1' 17081 Try '$0 --help' for more information.";; 17082 --help | --hel | -h ) 17083 printf "%s\n" "$ac_cs_usage"; exit ;; 17084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17085 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17086 ac_cs_silent=: ;; 17087 17088 # This is an error. 17089 -*) as_fn_error $? "unrecognized option: '$1' 17090 Try '$0 --help' for more information." ;; 17091 17092 *) as_fn_append ac_config_targets " $1" 17093 ac_need_defaults=false ;; 17094 17095 esac 17096 shift 17097 done 17098 17099 ac_configure_extra_args= 17100 17101 if $ac_cs_silent; then 17102 exec 6>/dev/null 17103 ac_configure_extra_args="$ac_configure_extra_args --silent" 17104 fi 17105 17106 _ACEOF 17107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17108 if \$ac_cs_recheck; then 17109 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17110 shift 17111 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 17112 CONFIG_SHELL='$SHELL' 17113 export CONFIG_SHELL 17114 exec "\$@" 17115 fi 17116 17117 _ACEOF 17118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17119 exec 5>>config.log 17120 { 17121 echo 17122 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17123 ## Running $as_me. ## 17124 _ASBOX 17125 printf "%s\n" "$ac_log" 17126 } >&5 17127 17128 _ACEOF 17129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17130 # 17131 # INIT-COMMANDS 17132 # 17133 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17134 17135 17136 # The HP-UX ksh and POSIX shell print the target directory to stdout 17137 # if CDPATH is set. 17138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17139 17140 sed_quote_subst='$sed_quote_subst' 17141 double_quote_subst='$double_quote_subst' 17142 delay_variable_subst='$delay_variable_subst' 17143 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17144 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17145 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17146 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17147 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17148 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17149 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17150 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17151 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17152 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17153 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17154 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17155 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17156 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17157 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17158 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17159 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17160 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17161 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17162 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17163 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17164 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17165 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17166 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17167 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17168 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17169 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17170 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17171 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17172 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17173 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17174 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17175 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17176 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17177 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 17178 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17179 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17180 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17181 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17182 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17183 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17184 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17185 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17186 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 17187 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17188 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17189 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17190 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17191 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17192 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17193 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17194 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17195 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17196 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17197 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17198 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17199 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17200 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17201 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17202 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17203 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"`' 17204 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17205 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17206 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17207 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17208 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17209 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17210 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17211 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17212 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17213 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17214 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17215 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17216 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17217 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17218 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17219 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17220 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17221 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17222 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17223 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17224 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17225 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17226 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17227 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17228 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17229 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17230 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17231 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17232 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17233 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17234 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17235 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17236 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17237 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17238 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17239 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17240 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17241 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17242 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17243 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17244 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17245 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17246 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17247 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17248 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17249 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17250 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17251 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17252 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17253 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17254 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17255 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17256 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17257 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17258 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17259 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17260 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17261 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17262 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17263 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17264 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17265 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17266 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17267 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17268 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17269 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17270 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17271 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17272 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17273 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17274 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17275 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17276 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17277 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17278 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17279 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17280 17281 LTCC='$LTCC' 17282 LTCFLAGS='$LTCFLAGS' 17283 compiler='$compiler_DEFAULT' 17284 17285 # A function that is used when there is no print builtin or printf. 17286 func_fallback_echo () 17287 { 17288 eval 'cat <<_LTECHO_EOF 17289 \$1 17290 _LTECHO_EOF' 17291 } 17292 17293 # Quote evaled strings. 17294 for var in SHELL \ 17295 ECHO \ 17296 PATH_SEPARATOR \ 17297 SED \ 17298 GREP \ 17299 EGREP \ 17300 FGREP \ 17301 LD \ 17302 NM \ 17303 LN_S \ 17304 lt_SP2NL \ 17305 lt_NL2SP \ 17306 reload_flag \ 17307 FILECMD \ 17308 OBJDUMP \ 17309 deplibs_check_method \ 17310 file_magic_cmd \ 17311 file_magic_glob \ 17312 want_nocaseglob \ 17313 DLLTOOL \ 17314 sharedlib_from_linklib_cmd \ 17315 AR \ 17316 archiver_list_spec \ 17317 STRIP \ 17318 RANLIB \ 17319 CC \ 17320 CFLAGS \ 17321 compiler \ 17322 lt_cv_sys_global_symbol_pipe \ 17323 lt_cv_sys_global_symbol_to_cdecl \ 17324 lt_cv_sys_global_symbol_to_import \ 17325 lt_cv_sys_global_symbol_to_c_name_address \ 17326 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17327 lt_cv_nm_interface \ 17328 nm_file_list_spec \ 17329 lt_cv_truncate_bin \ 17330 lt_prog_compiler_no_builtin_flag \ 17331 lt_prog_compiler_pic \ 17332 lt_prog_compiler_wl \ 17333 lt_prog_compiler_static \ 17334 lt_cv_prog_compiler_c_o \ 17335 need_locks \ 17336 MANIFEST_TOOL \ 17337 DSYMUTIL \ 17338 NMEDIT \ 17339 LIPO \ 17340 OTOOL \ 17341 OTOOL64 \ 17342 shrext_cmds \ 17343 export_dynamic_flag_spec \ 17344 whole_archive_flag_spec \ 17345 compiler_needs_object \ 17346 with_gnu_ld \ 17347 allow_undefined_flag \ 17348 no_undefined_flag \ 17349 hardcode_libdir_flag_spec \ 17350 hardcode_libdir_separator \ 17351 exclude_expsyms \ 17352 include_expsyms \ 17353 file_list_spec \ 17354 variables_saved_for_relink \ 17355 libname_spec \ 17356 library_names_spec \ 17357 soname_spec \ 17358 install_override_mode \ 17359 finish_eval \ 17360 old_striplib \ 17361 striplib; do 17362 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17363 *[\\\\\\\`\\"\\\$]*) 17364 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17365 ;; 17366 *) 17367 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17368 ;; 17369 esac 17370 done 17371 17372 # Double-quote double-evaled strings. 17373 for var in reload_cmds \ 17374 old_postinstall_cmds \ 17375 old_postuninstall_cmds \ 17376 old_archive_cmds \ 17377 extract_expsyms_cmds \ 17378 old_archive_from_new_cmds \ 17379 old_archive_from_expsyms_cmds \ 17380 archive_cmds \ 17381 archive_expsym_cmds \ 17382 module_cmds \ 17383 module_expsym_cmds \ 17384 export_symbols_cmds \ 17385 prelink_cmds \ 17386 postlink_cmds \ 17387 postinstall_cmds \ 17388 postuninstall_cmds \ 17389 finish_cmds \ 17390 sys_lib_search_path_spec \ 17391 configure_time_dlsearch_path \ 17392 configure_time_lt_sys_library_path; do 17393 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17394 *[\\\\\\\`\\"\\\$]*) 17395 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17396 ;; 17397 *) 17398 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17399 ;; 17400 esac 17401 done 17402 17403 ac_aux_dir='$ac_aux_dir' 17404 17405 # See if we are running on zsh, and set the options that allow our 17406 # commands through without removal of \ escapes INIT. 17407 if test -n "\${ZSH_VERSION+set}"; then 17408 setopt NO_GLOB_SUBST 17409 fi 17410 17411 17412 PACKAGE='$PACKAGE' 17413 VERSION='$VERSION' 17414 RM='$RM' 17415 ofile='$ofile' 17416 17417 17418 17419 17420 _ACEOF 17421 17422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17423 17424 # Handling of arguments. 17425 for ac_config_target in $ac_config_targets 17426 do 17427 case $ac_config_target in 17428 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17429 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17430 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17431 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17432 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17433 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 17434 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 17435 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17436 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 17437 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;; 17438 17439 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 17440 esac 17441 done 17442 17443 17444 # If the user did not use the arguments to specify the items to instantiate, 17445 # then the envvar interface is used. Set only those that are not. 17446 # We use the long form for the default assignment because of an extremely 17447 # bizarre bug on SunOS 4.1.3. 17448 if $ac_need_defaults; then 17449 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 17450 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 17451 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 17452 fi 17453 17454 # Have a temporary directory for convenience. Make it in the build tree 17455 # simply because there is no reason against having it here, and in addition, 17456 # creating and moving files from /tmp can sometimes cause problems. 17457 # Hook for its removal unless debugging. 17458 # Note that there is a small window in which the directory will not be cleaned: 17459 # after its creation but before its name has been assigned to '$tmp'. 17460 $debug || 17461 { 17462 tmp= ac_tmp= 17463 trap 'exit_status=$? 17464 : "${ac_tmp:=$tmp}" 17465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17466 ' 0 17467 trap 'as_fn_exit 1' 1 2 13 15 17468 } 17469 # Create a (secure) tmp directory for tmp files. 17470 17471 { 17472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17473 test -d "$tmp" 17474 } || 17475 { 17476 tmp=./conf$$-$RANDOM 17477 (umask 077 && mkdir "$tmp") 17478 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17479 ac_tmp=$tmp 17480 17481 # Set up the scripts for CONFIG_FILES section. 17482 # No need to generate them if there are no CONFIG_FILES. 17483 # This happens for instance with './config.status config.h'. 17484 if test -n "$CONFIG_FILES"; then 17485 17486 17487 ac_cr=`echo X | tr X '\015'` 17488 # On cygwin, bash can eat \r inside `` if the user requested igncr. 17489 # But we know of no other shell where ac_cr would be empty at this 17490 # point, so we can use a bashism as a fallback. 17491 if test "x$ac_cr" = x; then 17492 eval ac_cr=\$\'\\r\' 17493 fi 17494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17496 ac_cs_awk_cr='\\r' 17497 else 17498 ac_cs_awk_cr=$ac_cr 17499 fi 17500 17501 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17502 _ACEOF 17503 17504 17505 { 17506 echo "cat >conf$$subs.awk <<_ACEOF" && 17507 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17508 echo "_ACEOF" 17509 } >conf$$subs.sh || 17510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17511 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17512 ac_delim='%!_!# ' 17513 for ac_last_try in false false false false false :; do 17514 . ./conf$$subs.sh || 17515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17516 17517 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17518 if test $ac_delim_n = $ac_delim_num; then 17519 break 17520 elif $ac_last_try; then 17521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17522 else 17523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17524 fi 17525 done 17526 rm -f conf$$subs.sh 17527 17528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17529 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17530 _ACEOF 17531 sed -n ' 17532 h 17533 s/^/S["/; s/!.*/"]=/ 17534 p 17535 g 17536 s/^[^!]*!// 17537 :repl 17538 t repl 17539 s/'"$ac_delim"'$// 17540 t delim 17541 :nl 17542 h 17543 s/\(.\{148\}\)..*/\1/ 17544 t more1 17545 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17546 p 17547 n 17548 b repl 17549 :more1 17550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17551 p 17552 g 17553 s/.\{148\}// 17554 t nl 17555 :delim 17556 h 17557 s/\(.\{148\}\)..*/\1/ 17558 t more2 17559 s/["\\]/\\&/g; s/^/"/; s/$/"/ 17560 p 17561 b 17562 :more2 17563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17564 p 17565 g 17566 s/.\{148\}// 17567 t delim 17568 ' <conf$$subs.awk | sed ' 17569 /^[^""]/{ 17570 N 17571 s/\n// 17572 } 17573 ' >>$CONFIG_STATUS || ac_write_fail=1 17574 rm -f conf$$subs.awk 17575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17576 _ACAWK 17577 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17578 for (key in S) S_is_set[key] = 1 17579 FS = "" 17580 17581 } 17582 { 17583 line = $ 0 17584 nfields = split(line, field, "@") 17585 substed = 0 17586 len = length(field[1]) 17587 for (i = 2; i < nfields; i++) { 17588 key = field[i] 17589 keylen = length(key) 17590 if (S_is_set[key]) { 17591 value = S[key] 17592 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17593 len += length(value) + length(field[++i]) 17594 substed = 1 17595 } else 17596 len += 1 + keylen 17597 } 17598 17599 print line 17600 } 17601 17602 _ACAWK 17603 _ACEOF 17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17605 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17606 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17607 else 17608 cat 17609 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17610 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17611 _ACEOF 17612 17613 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17614 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17615 # trailing colons and then remove the whole line if VPATH becomes empty 17616 # (actually we leave an empty line to preserve line numbers). 17617 if test "x$srcdir" = x.; then 17618 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17619 h 17620 s/// 17621 s/^/:/ 17622 s/[ ]*$/:/ 17623 s/:\$(srcdir):/:/g 17624 s/:\${srcdir}:/:/g 17625 s/:@srcdir@:/:/g 17626 s/^:*// 17627 s/:*$// 17628 x 17629 s/\(=[ ]*\).*/\1/ 17630 G 17631 s/\n// 17632 s/^[^=]*=[ ]*$// 17633 }' 17634 fi 17635 17636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17637 fi # test -n "$CONFIG_FILES" 17638 17639 # Set up the scripts for CONFIG_HEADERS section. 17640 # No need to generate them if there are no CONFIG_HEADERS. 17641 # This happens for instance with './config.status Makefile'. 17642 if test -n "$CONFIG_HEADERS"; then 17643 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17644 BEGIN { 17645 _ACEOF 17646 17647 # Transform confdefs.h into an awk script 'defines.awk', embedded as 17648 # here-document in config.status, that substitutes the proper values into 17649 # config.h.in to produce config.h. 17650 17651 # Create a delimiter string that does not exist in confdefs.h, to ease 17652 # handling of long lines. 17653 ac_delim='%!_!# ' 17654 for ac_last_try in false false :; do 17655 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17656 if test -z "$ac_tt"; then 17657 break 17658 elif $ac_last_try; then 17659 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17660 else 17661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17662 fi 17663 done 17664 17665 # For the awk script, D is an array of macro values keyed by name, 17666 # likewise P contains macro parameters if any. Preserve backslash 17667 # newline sequences. 17668 17669 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17670 sed -n ' 17671 s/.\{148\}/&'"$ac_delim"'/g 17672 t rset 17673 :rset 17674 s/^[ ]*#[ ]*define[ ][ ]*/ / 17675 t def 17676 d 17677 :def 17678 s/\\$// 17679 t bsnl 17680 s/["\\]/\\&/g 17681 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17682 D["\1"]=" \3"/p 17683 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17684 d 17685 :bsnl 17686 s/["\\]/\\&/g 17687 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17688 D["\1"]=" \3\\\\\\n"\\/p 17689 t cont 17690 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17691 t cont 17692 d 17693 :cont 17694 n 17695 s/.\{148\}/&'"$ac_delim"'/g 17696 t clear 17697 :clear 17698 s/\\$// 17699 t bsnlc 17700 s/["\\]/\\&/g; s/^/"/; s/$/"/p 17701 d 17702 :bsnlc 17703 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17704 b cont 17705 ' <confdefs.h | sed ' 17706 s/'"$ac_delim"'/"\\\ 17707 "/g' >>$CONFIG_STATUS || ac_write_fail=1 17708 17709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17710 for (key in D) D_is_set[key] = 1 17711 FS = "" 17712 } 17713 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17714 line = \$ 0 17715 split(line, arg, " ") 17716 if (arg[1] == "#") { 17717 defundef = arg[2] 17718 mac1 = arg[3] 17719 } else { 17720 defundef = substr(arg[1], 2) 17721 mac1 = arg[2] 17722 } 17723 split(mac1, mac2, "(") #) 17724 macro = mac2[1] 17725 prefix = substr(line, 1, index(line, defundef) - 1) 17726 if (D_is_set[macro]) { 17727 # Preserve the white space surrounding the "#". 17728 print prefix "define", macro P[macro] D[macro] 17729 next 17730 } else { 17731 # Replace #undef with comments. This is necessary, for example, 17732 # in the case of _POSIX_SOURCE, which is predefined and required 17733 # on some systems where configure will not decide to define it. 17734 if (defundef == "undef") { 17735 print "/*", prefix defundef, macro, "*/" 17736 next 17737 } 17738 } 17739 } 17740 { print } 17741 _ACAWK 17742 _ACEOF 17743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17744 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17745 fi # test -n "$CONFIG_HEADERS" 17746 17747 17748 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17749 shift 17750 for ac_tag 17751 do 17752 case $ac_tag in 17753 :[FHLC]) ac_mode=$ac_tag; continue;; 17754 esac 17755 case $ac_mode$ac_tag in 17756 :[FHL]*:*);; 17757 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 17758 :[FH]-) ac_tag=-:-;; 17759 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17760 esac 17761 ac_save_IFS=$IFS 17762 IFS=: 17763 set x $ac_tag 17764 IFS=$ac_save_IFS 17765 shift 17766 ac_file=$1 17767 shift 17768 17769 case $ac_mode in 17770 :L) ac_source=$1;; 17771 :[FH]) 17772 ac_file_inputs= 17773 for ac_f 17774 do 17775 case $ac_f in 17776 -) ac_f="$ac_tmp/stdin";; 17777 *) # Look for the file first in the build tree, then in the source tree 17778 # (if the path is not absolute). The absolute path cannot be DOS-style, 17779 # because $ac_f cannot contain ':'. 17780 test -f "$ac_f" || 17781 case $ac_f in 17782 [\\/$]*) false;; 17783 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17784 esac || 17785 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 17786 esac 17787 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17788 as_fn_append ac_file_inputs " '$ac_f'" 17789 done 17790 17791 # Let's still pretend it is 'configure' which instantiates (i.e., don't 17792 # use $as_me), people would be surprised to read: 17793 # /* config.h. Generated by config.status. */ 17794 configure_input='Generated from '` 17795 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17796 `' by configure.' 17797 if test x"$ac_file" != x-; then 17798 configure_input="$ac_file. $configure_input" 17799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17800 printf "%s\n" "$as_me: creating $ac_file" >&6;} 17801 fi 17802 # Neutralize special characters interpreted by sed in replacement strings. 17803 case $configure_input in #( 17804 *\&* | *\|* | *\\* ) 17805 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 17806 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17807 *) ac_sed_conf_input=$configure_input;; 17808 esac 17809 17810 case $ac_tag in 17811 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17813 esac 17814 ;; 17815 esac 17816 17817 ac_dir=`$as_dirname -- "$ac_file" || 17818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17819 X"$ac_file" : 'X\(//\)[^/]' \| \ 17820 X"$ac_file" : 'X\(//\)$' \| \ 17821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 17822 printf "%s\n" X"$ac_file" | 17823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17824 s//\1/ 17825 q 17826 } 17827 /^X\(\/\/\)[^/].*/{ 17828 s//\1/ 17829 q 17830 } 17831 /^X\(\/\/\)$/{ 17832 s//\1/ 17833 q 17834 } 17835 /^X\(\/\).*/{ 17836 s//\1/ 17837 q 17838 } 17839 s/.*/./; q'` 17840 as_dir="$ac_dir"; as_fn_mkdir_p 17841 ac_builddir=. 17842 17843 case "$ac_dir" in 17844 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17845 *) 17846 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 17847 # A ".." for each directory in $ac_dir_suffix. 17848 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17849 case $ac_top_builddir_sub in 17850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17852 esac ;; 17853 esac 17854 ac_abs_top_builddir=$ac_pwd 17855 ac_abs_builddir=$ac_pwd$ac_dir_suffix 17856 # for backward compatibility: 17857 ac_top_builddir=$ac_top_build_prefix 17858 17859 case $srcdir in 17860 .) # We are building in place. 17861 ac_srcdir=. 17862 ac_top_srcdir=$ac_top_builddir_sub 17863 ac_abs_top_srcdir=$ac_pwd ;; 17864 [\\/]* | ?:[\\/]* ) # Absolute name. 17865 ac_srcdir=$srcdir$ac_dir_suffix; 17866 ac_top_srcdir=$srcdir 17867 ac_abs_top_srcdir=$srcdir ;; 17868 *) # Relative name. 17869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17870 ac_top_srcdir=$ac_top_build_prefix$srcdir 17871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17872 esac 17873 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17874 17875 17876 case $ac_mode in 17877 :F) 17878 # 17879 # CONFIG_FILE 17880 # 17881 17882 case $INSTALL in 17883 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17884 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17885 esac 17886 ac_MKDIR_P=$MKDIR_P 17887 case $MKDIR_P in 17888 [\\/$]* | ?:[\\/]* ) ;; 17889 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17890 esac 17891 _ACEOF 17892 17893 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17894 # If the template does not know about datarootdir, expand it. 17895 # FIXME: This hack should be removed a few years after 2.60. 17896 ac_datarootdir_hack=; ac_datarootdir_seen= 17897 ac_sed_dataroot=' 17898 /datarootdir/ { 17899 p 17900 q 17901 } 17902 /@datadir@/p 17903 /@docdir@/p 17904 /@infodir@/p 17905 /@localedir@/p 17906 /@mandir@/p' 17907 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17908 *datarootdir*) ac_datarootdir_seen=yes;; 17909 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17911 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17912 _ACEOF 17913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17914 ac_datarootdir_hack=' 17915 s&@datadir@&$datadir&g 17916 s&@docdir@&$docdir&g 17917 s&@infodir@&$infodir&g 17918 s&@localedir@&$localedir&g 17919 s&@mandir@&$mandir&g 17920 s&\\\${datarootdir}&$datarootdir&g' ;; 17921 esac 17922 _ACEOF 17923 17924 # Neutralize VPATH when '$srcdir' = '.'. 17925 # Shell code in configure.ac might set extrasub. 17926 # FIXME: do we really want to maintain this feature? 17927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17928 ac_sed_extra="$ac_vpsub 17929 $extrasub 17930 _ACEOF 17931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17932 :t 17933 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17934 s|@configure_input@|$ac_sed_conf_input|;t t 17935 s&@top_builddir@&$ac_top_builddir_sub&;t t 17936 s&@top_build_prefix@&$ac_top_build_prefix&;t t 17937 s&@srcdir@&$ac_srcdir&;t t 17938 s&@abs_srcdir@&$ac_abs_srcdir&;t t 17939 s&@top_srcdir@&$ac_top_srcdir&;t t 17940 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17941 s&@builddir@&$ac_builddir&;t t 17942 s&@abs_builddir@&$ac_abs_builddir&;t t 17943 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17944 s&@INSTALL@&$ac_INSTALL&;t t 17945 s&@MKDIR_P@&$ac_MKDIR_P&;t t 17946 $ac_datarootdir_hack 17947 " 17948 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17949 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17950 17951 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17952 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17954 "$ac_tmp/out"`; test -z "$ac_out"; } && 17955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 17956 which seems to be undefined. Please make sure it is defined" >&5 17957 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 17958 which seems to be undefined. Please make sure it is defined" >&2;} 17959 17960 rm -f "$ac_tmp/stdin" 17961 case $ac_file in 17962 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17963 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17964 esac \ 17965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17966 ;; 17967 :H) 17968 # 17969 # CONFIG_HEADER 17970 # 17971 if test x"$ac_file" != x-; then 17972 { 17973 printf "%s\n" "/* $configure_input */" >&1 \ 17974 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 17975 } >"$ac_tmp/config.h" \ 17976 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17977 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 17979 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 17980 else 17981 rm -f "$ac_file" 17982 mv "$ac_tmp/config.h" "$ac_file" \ 17983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17984 fi 17985 else 17986 printf "%s\n" "/* $configure_input */" >&1 \ 17987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 17988 || as_fn_error $? "could not create -" "$LINENO" 5 17989 fi 17990 # Compute "$ac_file"'s index in $config_headers. 17991 _am_arg="$ac_file" 17992 _am_stamp_count=1 17993 for _am_header in $config_headers :; do 17994 case $_am_header in 17995 $_am_arg | $_am_arg:* ) 17996 break ;; 17997 * ) 17998 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 17999 esac 18000 done 18001 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18002 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18003 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18004 X"$_am_arg" : 'X\(//\)$' \| \ 18005 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18006 printf "%s\n" X"$_am_arg" | 18007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18008 s//\1/ 18009 q 18010 } 18011 /^X\(\/\/\)[^/].*/{ 18012 s//\1/ 18013 q 18014 } 18015 /^X\(\/\/\)$/{ 18016 s//\1/ 18017 q 18018 } 18019 /^X\(\/\).*/{ 18020 s//\1/ 18021 q 18022 } 18023 s/.*/./; q'`/stamp-h$_am_stamp_count 18024 ;; 18025 18026 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18027 printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 18028 ;; 18029 esac 18030 18031 18032 case $ac_file$ac_mode in 18033 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18034 # Older Autoconf quotes --file arguments for eval, but not when files 18035 # are listed without --file. Let's play safe and only enable the eval 18036 # if we detect the quoting. 18037 # TODO: see whether this extra hack can be removed once we start 18038 # requiring Autoconf 2.70 or later. 18039 case $CONFIG_FILES in #( 18040 *\'*) : 18041 eval set x "$CONFIG_FILES" ;; #( 18042 *) : 18043 set x $CONFIG_FILES ;; #( 18044 *) : 18045 ;; 18046 esac 18047 shift 18048 # Used to flag and report bootstrapping failures. 18049 am_rc=0 18050 for am_mf 18051 do 18052 # Strip MF so we end up with the name of the file. 18053 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 18054 # Check whether this is an Automake generated Makefile which includes 18055 # dependency-tracking related rules and includes. 18056 # Grep'ing the whole file directly is not great: AIX grep has a line 18057 # limit of 2048, but all sed's we know have understand at least 4000. 18058 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18059 || continue 18060 am_dirpart=`$as_dirname -- "$am_mf" || 18061 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18062 X"$am_mf" : 'X\(//\)[^/]' \| \ 18063 X"$am_mf" : 'X\(//\)$' \| \ 18064 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18065 printf "%s\n" X"$am_mf" | 18066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18067 s//\1/ 18068 q 18069 } 18070 /^X\(\/\/\)[^/].*/{ 18071 s//\1/ 18072 q 18073 } 18074 /^X\(\/\/\)$/{ 18075 s//\1/ 18076 q 18077 } 18078 /^X\(\/\).*/{ 18079 s//\1/ 18080 q 18081 } 18082 s/.*/./; q'` 18083 am_filepart=`$as_basename -- "$am_mf" || 18084 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18085 X"$am_mf" : 'X\(//\)$' \| \ 18086 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18087 printf "%s\n" X/"$am_mf" | 18088 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18089 s//\1/ 18090 q 18091 } 18092 /^X\/\(\/\/\)$/{ 18093 s//\1/ 18094 q 18095 } 18096 /^X\/\(\/\).*/{ 18097 s//\1/ 18098 q 18099 } 18100 s/.*/./; q'` 18101 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18102 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18103 | $MAKE -f - am--depfiles" >&5 18104 (cd "$am_dirpart" \ 18105 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18106 | $MAKE -f - am--depfiles) >&5 2>&5 18107 ac_status=$? 18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18109 (exit $ac_status); } || am_rc=$? 18110 done 18111 if test $am_rc -ne 0; then 18112 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 18113 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 18114 as_fn_error $? "Something went wrong bootstrapping makefile fragments 18115 for automatic dependency tracking. If GNU make was not used, consider 18116 re-running the configure script with MAKE=\"gmake\" (or whatever is 18117 necessary). You can also try re-running configure with the 18118 '--disable-dependency-tracking' option to at least be able to build 18119 the package (albeit without support for automatic dependency tracking). 18120 See 'config.log' for more details" "$LINENO" 5; } 18121 fi 18122 { am_dirpart=; unset am_dirpart;} 18123 { am_filepart=; unset am_filepart;} 18124 { am_mf=; unset am_mf;} 18125 { am_rc=; unset am_rc;} 18126 rm -f conftest-deps.mk 18127 } 18128 ;; 18129 "libtool":C) 18130 18131 # See if we are running on zsh, and set the options that allow our 18132 # commands through without removal of \ escapes. 18133 if test -n "${ZSH_VERSION+set}"; then 18134 setopt NO_GLOB_SUBST 18135 fi 18136 18137 cfgfile=${ofile}T 18138 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18139 $RM "$cfgfile" 18140 18141 cat <<_LT_EOF >> "$cfgfile" 18142 #! $SHELL 18143 # Generated automatically by $as_me ($PACKAGE) $VERSION 18144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18145 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 18146 18147 # Provide generalized library-building support services. 18148 # Written by Gordon Matzigkeit, 1996 18149 18150 # Copyright (C) 2014 Free Software Foundation, Inc. 18151 # This is free software; see the source for copying conditions. There is NO 18152 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18153 18154 # GNU Libtool is free software; you can redistribute it and/or modify 18155 # it under the terms of the GNU General Public License as published by 18156 # the Free Software Foundation; either version 2 of of the License, or 18157 # (at your option) any later version. 18158 # 18159 # As a special exception to the GNU General Public License, if you 18160 # distribute this file as part of a program or library that is built 18161 # using GNU Libtool, you may include this file under the same 18162 # distribution terms that you use for the rest of that program. 18163 # 18164 # GNU Libtool is distributed in the hope that it will be useful, but 18165 # WITHOUT ANY WARRANTY; without even the implied warranty of 18166 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18167 # GNU General Public License for more details. 18168 # 18169 # You should have received a copy of the GNU General Public License 18170 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18171 18172 18173 # The names of the tagged configurations supported by this script. 18174 available_tags='' 18175 18176 # Configured defaults for sys_lib_dlsearch_path munging. 18177 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18178 18179 # ### BEGIN LIBTOOL CONFIG 18180 18181 # Which release of libtool.m4 was used? 18182 macro_version=$macro_version 18183 macro_revision=$macro_revision 18184 18185 # Whether or not to build static libraries. 18186 build_old_libs=$enable_static 18187 18188 # What type of objects to build. 18189 pic_mode=$pic_mode 18190 18191 # Whether or not to build shared libraries. 18192 build_libtool_libs=$enable_shared 18193 18194 # Whether or not to optimize for fast installation. 18195 fast_install=$enable_fast_install 18196 18197 # Shared archive member basename,for filename based shared library versioning on AIX. 18198 shared_archive_member_spec=$shared_archive_member_spec 18199 18200 # Shell to use when invoking shell scripts. 18201 SHELL=$lt_SHELL 18202 18203 # An echo program that protects backslashes. 18204 ECHO=$lt_ECHO 18205 18206 # The PATH separator for the build system. 18207 PATH_SEPARATOR=$lt_PATH_SEPARATOR 18208 18209 # The host system. 18210 host_alias=$host_alias 18211 host=$host 18212 host_os=$host_os 18213 18214 # The build system. 18215 build_alias=$build_alias 18216 build=$build 18217 build_os=$build_os 18218 18219 # A sed program that does not truncate output. 18220 SED=$lt_SED 18221 18222 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 18223 Xsed="\$SED -e 1s/^X//" 18224 18225 # A grep program that handles long lines. 18226 GREP=$lt_GREP 18227 18228 # An ERE matcher. 18229 EGREP=$lt_EGREP 18230 18231 # A literal string matcher. 18232 FGREP=$lt_FGREP 18233 18234 # A BSD- or MS-compatible name lister. 18235 NM=$lt_NM 18236 18237 # Whether we need soft or hard links. 18238 LN_S=$lt_LN_S 18239 18240 # What is the maximum length of a command? 18241 max_cmd_len=$max_cmd_len 18242 18243 # Object file suffix (normally "o"). 18244 objext=$ac_objext 18245 18246 # Executable file suffix (normally ""). 18247 exeext=$exeext 18248 18249 # whether the shell understands "unset". 18250 lt_unset=$lt_unset 18251 18252 # turn spaces into newlines. 18253 SP2NL=$lt_lt_SP2NL 18254 18255 # turn newlines into spaces. 18256 NL2SP=$lt_lt_NL2SP 18257 18258 # convert \$build file names to \$host format. 18259 to_host_file_cmd=$lt_cv_to_host_file_cmd 18260 18261 # convert \$build files to toolchain format. 18262 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18263 18264 # A file(cmd) program that detects file types. 18265 FILECMD=$lt_FILECMD 18266 18267 # An object symbol dumper. 18268 OBJDUMP=$lt_OBJDUMP 18269 18270 # Method to check whether dependent libraries are shared objects. 18271 deplibs_check_method=$lt_deplibs_check_method 18272 18273 # Command to use when deplibs_check_method = "file_magic". 18274 file_magic_cmd=$lt_file_magic_cmd 18275 18276 # How to find potential files when deplibs_check_method = "file_magic". 18277 file_magic_glob=$lt_file_magic_glob 18278 18279 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18280 want_nocaseglob=$lt_want_nocaseglob 18281 18282 # DLL creation program. 18283 DLLTOOL=$lt_DLLTOOL 18284 18285 # Command to associate shared and link libraries. 18286 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18287 18288 # The archiver. 18289 AR=$lt_AR 18290 18291 # Flags to create an archive (by configure). 18292 lt_ar_flags=$lt_ar_flags 18293 18294 # Flags to create an archive. 18295 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 18296 18297 # How to feed a file listing to the archiver. 18298 archiver_list_spec=$lt_archiver_list_spec 18299 18300 # A symbol stripping program. 18301 STRIP=$lt_STRIP 18302 18303 # Commands used to install an old-style archive. 18304 RANLIB=$lt_RANLIB 18305 old_postinstall_cmds=$lt_old_postinstall_cmds 18306 old_postuninstall_cmds=$lt_old_postuninstall_cmds 18307 18308 # Whether to use a lock for old archive extraction. 18309 lock_old_archive_extraction=$lock_old_archive_extraction 18310 18311 # A C compiler. 18312 LTCC=$lt_CC 18313 18314 # LTCC compiler flags. 18315 LTCFLAGS=$lt_CFLAGS 18316 18317 # Take the output of nm and produce a listing of raw symbols and C names. 18318 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18319 18320 # Transform the output of nm in a proper C declaration. 18321 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18322 18323 # Transform the output of nm into a list of symbols to manually relocate. 18324 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18325 18326 # Transform the output of nm in a C name address pair. 18327 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18328 18329 # Transform the output of nm in a C name address pair when lib prefix is needed. 18330 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18331 18332 # The name lister interface. 18333 nm_interface=$lt_lt_cv_nm_interface 18334 18335 # Specify filename containing input files for \$NM. 18336 nm_file_list_spec=$lt_nm_file_list_spec 18337 18338 # The root where to search for dependent libraries,and where our libraries should be installed. 18339 lt_sysroot=$lt_sysroot 18340 18341 # Command to truncate a binary pipe. 18342 lt_truncate_bin=$lt_lt_cv_truncate_bin 18343 18344 # The name of the directory that contains temporary libtool files. 18345 objdir=$objdir 18346 18347 # Used to examine libraries when file_magic_cmd begins with "file". 18348 MAGIC_CMD=$MAGIC_CMD 18349 18350 # Must we lock files when doing compilation? 18351 need_locks=$lt_need_locks 18352 18353 # Manifest tool. 18354 MANIFEST_TOOL=$lt_MANIFEST_TOOL 18355 18356 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18357 DSYMUTIL=$lt_DSYMUTIL 18358 18359 # Tool to change global to local symbols on Mac OS X. 18360 NMEDIT=$lt_NMEDIT 18361 18362 # Tool to manipulate fat objects and archives on Mac OS X. 18363 LIPO=$lt_LIPO 18364 18365 # ldd/readelf like tool for Mach-O binaries on Mac OS X. 18366 OTOOL=$lt_OTOOL 18367 18368 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18369 OTOOL64=$lt_OTOOL64 18370 18371 # Old archive suffix (normally "a"). 18372 libext=$libext 18373 18374 # Shared library suffix (normally ".so"). 18375 shrext_cmds=$lt_shrext_cmds 18376 18377 # The commands to extract the exported symbol list from a shared archive. 18378 extract_expsyms_cmds=$lt_extract_expsyms_cmds 18379 18380 # Variables whose values should be saved in libtool wrapper scripts and 18381 # restored at link time. 18382 variables_saved_for_relink=$lt_variables_saved_for_relink 18383 18384 # Do we need the "lib" prefix for modules? 18385 need_lib_prefix=$need_lib_prefix 18386 18387 # Do we need a version for libraries? 18388 need_version=$need_version 18389 18390 # Library versioning type. 18391 version_type=$version_type 18392 18393 # Shared library runtime path variable. 18394 runpath_var=$runpath_var 18395 18396 # Shared library path variable. 18397 shlibpath_var=$shlibpath_var 18398 18399 # Is shlibpath searched before the hard-coded library search path? 18400 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18401 18402 # Format of library name prefix. 18403 libname_spec=$lt_libname_spec 18404 18405 # List of archive names. First name is the real one, the rest are links. 18406 # The last name is the one that the linker finds with -lNAME 18407 library_names_spec=$lt_library_names_spec 18408 18409 # The coded name of the library, if different from the real name. 18410 soname_spec=$lt_soname_spec 18411 18412 # Permission mode override for installation of shared libraries. 18413 install_override_mode=$lt_install_override_mode 18414 18415 # Command to use after installation of a shared archive. 18416 postinstall_cmds=$lt_postinstall_cmds 18417 18418 # Command to use after uninstallation of a shared archive. 18419 postuninstall_cmds=$lt_postuninstall_cmds 18420 18421 # Commands used to finish a libtool library installation in a directory. 18422 finish_cmds=$lt_finish_cmds 18423 18424 # As "finish_cmds", except a single script fragment to be evaled but 18425 # not shown. 18426 finish_eval=$lt_finish_eval 18427 18428 # Whether we should hardcode library paths into libraries. 18429 hardcode_into_libs=$hardcode_into_libs 18430 18431 # Compile-time system search path for libraries. 18432 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18433 18434 # Detected run-time system search path for libraries. 18435 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18436 18437 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18438 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18439 18440 # Whether dlopen is supported. 18441 dlopen_support=$enable_dlopen 18442 18443 # Whether dlopen of programs is supported. 18444 dlopen_self=$enable_dlopen_self 18445 18446 # Whether dlopen of statically linked programs is supported. 18447 dlopen_self_static=$enable_dlopen_self_static 18448 18449 # Commands to strip libraries. 18450 old_striplib=$lt_old_striplib 18451 striplib=$lt_striplib 18452 18453 18454 # The linker used to build libraries. 18455 LD=$lt_LD 18456 18457 # How to create reloadable object files. 18458 reload_flag=$lt_reload_flag 18459 reload_cmds=$lt_reload_cmds 18460 18461 # Commands used to build an old-style archive. 18462 old_archive_cmds=$lt_old_archive_cmds 18463 18464 # A language specific compiler. 18465 CC=$lt_compiler 18466 18467 # Is the compiler the GNU compiler? 18468 with_gcc=$GCC 18469 18470 # Compiler flag to turn off builtin functions. 18471 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18472 18473 # Additional compiler flags for building library objects. 18474 pic_flag=$lt_lt_prog_compiler_pic 18475 18476 # How to pass a linker flag through the compiler. 18477 wl=$lt_lt_prog_compiler_wl 18478 18479 # Compiler flag to prevent dynamic linking. 18480 link_static_flag=$lt_lt_prog_compiler_static 18481 18482 # Does compiler simultaneously support -c and -o options? 18483 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18484 18485 # Whether or not to add -lc for building shared libraries. 18486 build_libtool_need_lc=$archive_cmds_need_lc 18487 18488 # Whether or not to disallow shared libs when runtime libs are static. 18489 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18490 18491 # Compiler flag to allow reflexive dlopens. 18492 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18493 18494 # Compiler flag to generate shared objects directly from archives. 18495 whole_archive_flag_spec=$lt_whole_archive_flag_spec 18496 18497 # Whether the compiler copes with passing no objects directly. 18498 compiler_needs_object=$lt_compiler_needs_object 18499 18500 # Create an old-style archive from a shared archive. 18501 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18502 18503 # Create a temporary old-style archive to link instead of a shared archive. 18504 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18505 18506 # Commands used to build a shared archive. 18507 archive_cmds=$lt_archive_cmds 18508 archive_expsym_cmds=$lt_archive_expsym_cmds 18509 18510 # Commands used to build a loadable module if different from building 18511 # a shared archive. 18512 module_cmds=$lt_module_cmds 18513 module_expsym_cmds=$lt_module_expsym_cmds 18514 18515 # Whether we are building with GNU ld or not. 18516 with_gnu_ld=$lt_with_gnu_ld 18517 18518 # Flag that allows shared libraries with undefined symbols to be built. 18519 allow_undefined_flag=$lt_allow_undefined_flag 18520 18521 # Flag that enforces no undefined symbols. 18522 no_undefined_flag=$lt_no_undefined_flag 18523 18524 # Flag to hardcode \$libdir into a binary during linking. 18525 # This must work even if \$libdir does not exist 18526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18527 18528 # Whether we need a single "-rpath" flag with a separated argument. 18529 hardcode_libdir_separator=$lt_hardcode_libdir_separator 18530 18531 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18532 # DIR into the resulting binary. 18533 hardcode_direct=$hardcode_direct 18534 18535 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18536 # DIR into the resulting binary and the resulting library dependency is 18537 # "absolute",i.e impossible to change by setting \$shlibpath_var if the 18538 # library is relocated. 18539 hardcode_direct_absolute=$hardcode_direct_absolute 18540 18541 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18542 # into the resulting binary. 18543 hardcode_minus_L=$hardcode_minus_L 18544 18545 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18546 # into the resulting binary. 18547 hardcode_shlibpath_var=$hardcode_shlibpath_var 18548 18549 # Set to "yes" if building a shared library automatically hardcodes DIR 18550 # into the library and all subsequent libraries and executables linked 18551 # against it. 18552 hardcode_automatic=$hardcode_automatic 18553 18554 # Set to yes if linker adds runtime paths of dependent libraries 18555 # to runtime path list. 18556 inherit_rpath=$inherit_rpath 18557 18558 # Whether libtool must link a program against all its dependency libraries. 18559 link_all_deplibs=$link_all_deplibs 18560 18561 # Set to "yes" if exported symbols are required. 18562 always_export_symbols=$always_export_symbols 18563 18564 # The commands to list exported symbols. 18565 export_symbols_cmds=$lt_export_symbols_cmds 18566 18567 # Symbols that should not be listed in the preloaded symbols. 18568 exclude_expsyms=$lt_exclude_expsyms 18569 18570 # Symbols that must always be exported. 18571 include_expsyms=$lt_include_expsyms 18572 18573 # Commands necessary for linking programs (against libraries) with templates. 18574 prelink_cmds=$lt_prelink_cmds 18575 18576 # Commands necessary for finishing linking programs. 18577 postlink_cmds=$lt_postlink_cmds 18578 18579 # Specify filename containing input files. 18580 file_list_spec=$lt_file_list_spec 18581 18582 # How to hardcode a shared library path into an executable. 18583 hardcode_action=$hardcode_action 18584 18585 # ### END LIBTOOL CONFIG 18586 18587 _LT_EOF 18588 18589 cat <<'_LT_EOF' >> "$cfgfile" 18590 18591 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18592 18593 # func_munge_path_list VARIABLE PATH 18594 # ----------------------------------- 18595 # VARIABLE is name of variable containing _space_ separated list of 18596 # directories to be munged by the contents of PATH, which is string 18597 # having a format: 18598 # "DIR[:DIR]:" 18599 # string "DIR[ DIR]" will be prepended to VARIABLE 18600 # ":DIR[:DIR]" 18601 # string "DIR[ DIR]" will be appended to VARIABLE 18602 # "DIRP[:DIRP]::[DIRA:]DIRA" 18603 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18604 # "DIRA[ DIRA]" will be appended to VARIABLE 18605 # "DIR[:DIR]" 18606 # VARIABLE will be replaced by "DIR[ DIR]" 18607 func_munge_path_list () 18608 { 18609 case x$2 in 18610 x) 18611 ;; 18612 *:) 18613 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18614 ;; 18615 x:*) 18616 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18617 ;; 18618 *::*) 18619 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18620 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18621 ;; 18622 *) 18623 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18624 ;; 18625 esac 18626 } 18627 18628 18629 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18630 func_cc_basename () 18631 { 18632 for cc_temp in $*""; do 18633 case $cc_temp in 18634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18636 \-*) ;; 18637 *) break;; 18638 esac 18639 done 18640 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18641 } 18642 18643 18644 # ### END FUNCTIONS SHARED WITH CONFIGURE 18645 18646 _LT_EOF 18647 18648 case $host_os in 18649 aix3*) 18650 cat <<\_LT_EOF >> "$cfgfile" 18651 # AIX sometimes has problems with the GCC collect2 program. For some 18652 # reason, if we set the COLLECT_NAMES environment variable, the problems 18653 # vanish in a puff of smoke. 18654 if test set != "${COLLECT_NAMES+set}"; then 18655 COLLECT_NAMES= 18656 export COLLECT_NAMES 18657 fi 18658 _LT_EOF 18659 ;; 18660 esac 18661 18662 18663 18664 ltmain=$ac_aux_dir/ltmain.sh 18665 18666 18667 # We use sed instead of cat because bash on DJGPP gets confused if 18668 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18669 # text mode, it properly converts lines to CR/LF. This bash problem 18670 # is reportedly fixed, but why not run on old versions too? 18671 $SED '$q' "$ltmain" >> "$cfgfile" \ 18672 || (rm -f "$cfgfile"; exit 1) 18673 18674 mv -f "$cfgfile" "$ofile" || 18675 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18676 chmod +x "$ofile" 18677 18678 ;; 18679 18680 esac 18681 done # for ac_tag 18682 18683 18684 as_fn_exit 0 18685 _ACEOF 18686 ac_clean_files=$ac_clean_files_save 18687 18688 test $ac_write_fail = 0 || 18689 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18690 18691 18692 # configure is writing to config.log, and then calls config.status. 18693 # config.status does its own redirection, appending to config.log. 18694 # Unfortunately, on DOS this fails, as config.log is still kept open 18695 # by configure, so config.status won't be able to write to it; its 18696 # output is simply discarded. So we exec the FD to /dev/null, 18697 # effectively closing config.log, so it can be properly (re)opened and 18698 # appended to by config.status. When coming back to configure, we 18699 # need to make the FD available again. 18700 if test "$no_create" != yes; then 18701 ac_cs_success=: 18702 ac_config_status_args= 18703 test "$silent" = yes && 18704 ac_config_status_args="$ac_config_status_args --quiet" 18705 exec 5>/dev/null 18706 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18707 exec 5>>config.log 18708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18709 # would make configure fail if this is the last instruction. 18710 $ac_cs_success || as_fn_exit 1 18711 fi 18712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18714 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18715 fi 18716 18717 18718