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@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 19DUALCASE=1; export DUALCASE # for MKS sh 20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 21then : 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 28else case e in #( 29 e) case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac ;; 35esac 36fi 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. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export 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). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${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 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 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 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if 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 114fi 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. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $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'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 144then : 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 151else case e in #( 152 e) case \`(set -o) 2>/dev/null\` in #( 153 *posix*) : 154 set -o posix ;; #( 155 *) : 156 ;; 157esac ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else case e in #( 176 e) exitcode=1; echo positional parameters were not saved. ;; 177esac 178fi 179test x\$exitcode = x0 || exit 1 180blah=\$(echo \$(echo blah)) 181test x\"\$blah\" = xblah || exit 1 182test -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 195test \$(( 1 + 1 )) = 2 || exit 1" 196 if (eval "$as_required") 2>/dev/null 197then : 198 as_have_required=yes 199else case e in #( 200 e) as_have_required=no ;; 201esac 202fi 203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 204then : 205 206else case e in #( 207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 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 225then : 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 228then : 229 break 2 230fi 231fi 232 done;; 233 esac 234 as_found=false 235done 236IFS=$as_save_IFS 237if $as_found 238then : 239 240else 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 243then : 244 CONFIG_SHELL=$SHELL as_have_required=yes 245fi ;; 246esac 247fi 248 249 250 if test "x$CONFIG_SHELL" != x 251then : 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. 257BASH_ENV=/dev/null 258ENV=/dev/null 259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 260case $- in # (((( 261 *v*x* | *x*v* ) as_opts=-vx ;; 262 *v* ) as_opts=-v ;; 263 *x* ) as_opts=-x ;; 264 * ) as_opts= ;; 265esac 266exec $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'. 269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 270exit 255 271fi 272 273 if test x$as_have_required = xno 274then : 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@gnu.org and 282$0: christos@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 288fi ;; 289esac 290fi 291fi 292SHELL=${CONFIG_SHELL-/bin/sh} 293export SHELL 294# Unset more variables known to interfere with behavior of common tools. 295CLICOLOR_FORCE= GREP_OPTIONS= 296unset CLICOLOR_FORCE GREP_OPTIONS 297 298## --------------------- ## 299## M4sh Shell Functions. ## 300## --------------------- ## 301# as_fn_unset VAR 302# --------------- 303# Portably unset VAR. 304as_fn_unset () 305{ 306 { eval $1=; unset $1;} 307} 308as_unset=as_fn_unset 309 310 311# as_fn_set_status STATUS 312# ----------------------- 313# Set $? to STATUS, without forking. 314as_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. 322as_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. 332as_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 || 351printf "%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. 380as_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. 390if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 391then : 392 eval 'as_fn_append () 393 { 394 eval $1+=\$2 395 }' 396else case e in #( 397 e) as_fn_append () 398 { 399 eval $1=\$$1\$2 400 } ;; 401esac 402fi # 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. 409if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 410then : 411 eval 'as_fn_arith () 412 { 413 as_val=$(( $* )) 414 }' 415else case e in #( 416 e) as_fn_arith () 417 { 418 as_val=`expr "$@" || test $? -eq 1` 419 } ;; 420esac 421fi # 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. 429as_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 440if expr a : '\(a\)' >/dev/null 2>&1 && 441 test "X`expr 00001 : '.*\(...\)'`" = X001; then 442 as_expr=expr 443else 444 as_expr=false 445fi 446 447if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 448 as_basename=basename 449else 450 as_basename=false 451fi 452 453if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 454 as_dirname=dirname 455else 456 as_dirname=false 457fi 458 459as_me=`$as_basename -- "$0" || 460$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 461 X"$0" : 'X\(//\)$' \| \ 462 X"$0" : 'X\(/\)' \| . 2>/dev/null || 463printf "%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. 479as_cr_letters='abcdefghijklmnopqrstuvwxyz' 480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 481as_cr_Letters=$as_cr_letters$as_cr_LETTERS 482as_cr_digits='0123456789' 483as_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. 527ECHO_C= ECHO_N= ECHO_T= 528case `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';; 538esac 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. 543as_echo='printf %s\n' 544as_echo_n='printf %s' 545 546rm -f conf$$ conf$$.exe conf$$.file 547if test -d conf$$.dir; then 548 rm -f conf$$.dir/conf$$.file 549else 550 rm -f conf$$.dir 551 mkdir conf$$.dir 2>/dev/null 552fi 553if (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 567else 568 as_ln_s='cp -pR' 569fi 570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 571rmdir conf$$.dir 2>/dev/null 572 573if mkdir -p . 2>/dev/null; then 574 as_mkdir_p='mkdir -p "$as_dir"' 575else 576 test -d ./-p && rmdir ./-p 577 as_mkdir_p=false 578fi 579 580as_test_x='test -x' 581as_executable_p=as_fn_executable_p 582 583# Sed expression to map a string onto a valid CPP name. 584as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 585as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 586 587# Sed expression to map a string onto a valid variable name. 588as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 589as_tr_sh="eval sed '$as_sed_sh'" # deprecated 590 591SHELL=${CONFIG_SHELL-/bin/sh} 592 593 594test -n "$DJDIR" || exec 7<&0 </dev/null 595exec 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. 600ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 601 602# 603# Initializations. 604# 605ac_default_prefix=/usr/local 606ac_clean_files= 607ac_config_libobj_dir=. 608LIBOBJS= 609cross_compiling=no 610subdirs= 611MFLAGS= 612MAKEFLAGS= 613 614# Identity of this package. 615PACKAGE_NAME='file' 616PACKAGE_TARNAME='file' 617PACKAGE_VERSION='5.48' 618PACKAGE_STRING='file 5.48' 619PACKAGE_BUGREPORT='christos@astron.com' 620PACKAGE_URL='' 621 622# Factoring default headers for most tests. 623ac_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 653ac_header_c_list= 654ac_func_c_list= 655enable_year2038=yes 656ac_subst_vars='am__EXEEXT_FALSE 657am__EXEEXT_TRUE 658LTLIBOBJS 659IS_CROSS_COMPILE_FALSE 660IS_CROSS_COMPILE_TRUE 661LIBOBJS 662HAVE_VISIBILITY 663CFLAG_VISIBILITY 664LT_SYS_LIBRARY_PATH 665OTOOL64 666OTOOL 667LIPO 668NMEDIT 669DSYMUTIL 670MANIFEST_TOOL 671RANLIB 672ac_ct_AR 673AR 674DLLTOOL 675OBJDUMP 676FILECMD 677NM 678ac_ct_DUMPBIN 679DUMPBIN 680LD 681FGREP 682EGREP 683GREP 684SED 685LIBTOOL 686LN_S 687am__fastdepCC_FALSE 688am__fastdepCC_TRUE 689CCDEPMODE 690am__nodep 691AMDEPBACKSLASH 692AMDEP_FALSE 693AMDEP_TRUE 694am__include 695DEPDIR 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703WARNINGS 704FSECT5_FALSE 705FSECT5_TRUE 706fsect 707pkgdatadir 708MINGW_FALSE 709MINGW_TRUE 710MINGW 711host_os 712host_vendor 713host_cpu 714host 715build_os 716build_vendor 717build_cpu 718build 719am__xargs_n 720am__rm_f_notfound 721AM_BACKSLASH 722AM_DEFAULT_VERBOSITY 723AM_DEFAULT_V 724AM_V 725CSCOPE 726ETAGS 727CTAGS 728am__untar 729am__tar 730AMTAR 731am__leading_dot 732SET_MAKE 733AWK 734mkdir_p 735MKDIR_P 736INSTALL_STRIP_PROGRAM 737STRIP 738install_sh 739MAKEINFO 740AUTOHEADER 741AUTOMAKE 742AUTOCONF 743ACLOCAL 744VERSION 745PACKAGE 746CYGPATH_W 747am__isrc 748INSTALL_DATA 749INSTALL_SCRIPT 750INSTALL_PROGRAM 751target_alias 752host_alias 753build_alias 754LIBS 755ECHO_T 756ECHO_N 757ECHO_C 758DEFS 759mandir 760localedir 761libdir 762psdir 763pdfdir 764dvidir 765htmldir 766infodir 767docdir 768oldincludedir 769includedir 770runstatedir 771localstatedir 772sharedstatedir 773sysconfdir 774datadir 775datarootdir 776libexecdir 777sbindir 778bindir 779program_transform_name 780prefix 781exec_prefix 782PACKAGE_URL 783PACKAGE_BUGREPORT 784PACKAGE_STRING 785PACKAGE_VERSION 786PACKAGE_TARNAME 787PACKAGE_NAME 788PATH_SEPARATOR 789SHELL 790am__quote' 791ac_subst_files='' 792ac_user_opts=' 793enable_option_checking 794enable_silent_rules 795enable_elf 796enable_elf_core 797enable_zlib 798enable_bzlib 799enable_xzlib 800enable_zstdlib 801enable_lzlib 802enable_lrziplib 803enable_libseccomp 804enable_landlock 805enable_fsect_man5 806enable_dependency_tracking 807enable_static 808with_pic 809enable_shared 810enable_fast_install 811with_aix_soname 812with_gnu_ld 813with_sysroot 814enable_libtool_lock 815enable_largefile 816enable_warnings 817enable_year2038 818' 819 ac_precious_vars='build_alias 820host_alias 821target_alias 822CC 823CFLAGS 824LDFLAGS 825LIBS 826CPPFLAGS 827LT_SYS_LIBRARY_PATH' 828 829 830# Initialize some variables set by options. 831ac_init_help= 832ac_init_version=false 833ac_unrecognized_opts= 834ac_unrecognized_sep= 835# The variables have the same names as the options, with 836# dashes changed to underlines. 837cache_file=/dev/null 838exec_prefix=NONE 839no_create= 840no_recursion= 841prefix=NONE 842program_prefix=NONE 843program_suffix=NONE 844program_transform_name=s,x,x, 845silent= 846site= 847srcdir= 848verbose= 849x_includes=NONE 850x_libraries=NONE 851 852# Installation directory options. 853# These are left unexpanded so users can "make install exec_prefix=/foo" 854# and all the variables that are supposed to be based on exec_prefix 855# by default will actually change. 856# Use braces instead of parens because sh, perl, etc. also accept them. 857# (The list follows the same order as the GNU Coding Standards.) 858bindir='${exec_prefix}/bin' 859sbindir='${exec_prefix}/sbin' 860libexecdir='${exec_prefix}/libexec' 861datarootdir='${prefix}/share' 862datadir='${datarootdir}' 863sysconfdir='${prefix}/etc' 864sharedstatedir='${prefix}/com' 865localstatedir='${prefix}/var' 866runstatedir='${localstatedir}/run' 867includedir='${prefix}/include' 868oldincludedir='/usr/include' 869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 870infodir='${datarootdir}/info' 871htmldir='${docdir}' 872dvidir='${docdir}' 873pdfdir='${docdir}' 874psdir='${docdir}' 875libdir='${exec_prefix}/lib' 876localedir='${datarootdir}/locale' 877mandir='${datarootdir}/man' 878 879ac_prev= 880ac_dashdash= 881for ac_option 882do 883 # If the previous option needs an argument, assign it. 884 if test -n "$ac_prev"; then 885 eval $ac_prev=\$ac_option 886 ac_prev= 887 continue 888 fi 889 890 case $ac_option in 891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 892 *=) ac_optarg= ;; 893 *) ac_optarg=yes ;; 894 esac 895 896 case $ac_dashdash$ac_option in 897 --) 898 ac_dashdash=yes ;; 899 900 -bindir | --bindir | --bindi | --bind | --bin | --bi) 901 ac_prev=bindir ;; 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 903 bindir=$ac_optarg ;; 904 905 -build | --build | --buil | --bui | --bu) 906 ac_prev=build_alias ;; 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 908 build_alias=$ac_optarg ;; 909 910 -cache-file | --cache-file | --cache-fil | --cache-fi \ 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 912 ac_prev=cache_file ;; 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 915 cache_file=$ac_optarg ;; 916 917 --config-cache | -C) 918 cache_file=config.cache ;; 919 920 -datadir | --datadir | --datadi | --datad) 921 ac_prev=datadir ;; 922 -datadir=* | --datadir=* | --datadi=* | --datad=*) 923 datadir=$ac_optarg ;; 924 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 926 | --dataroo | --dataro | --datar) 927 ac_prev=datarootdir ;; 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 930 datarootdir=$ac_optarg ;; 931 932 -disable-* | --disable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: '$ac_useropt'" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=no ;; 947 948 -docdir | --docdir | --docdi | --doc | --do) 949 ac_prev=docdir ;; 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 951 docdir=$ac_optarg ;; 952 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 954 ac_prev=dvidir ;; 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 956 dvidir=$ac_optarg ;; 957 958 -enable-* | --enable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: '$ac_useropt'" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=\$ac_optarg ;; 973 974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 976 | --exec | --exe | --ex) 977 ac_prev=exec_prefix ;; 978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 980 | --exec=* | --exe=* | --ex=*) 981 exec_prefix=$ac_optarg ;; 982 983 -gas | --gas | --ga | --g) 984 # Obsolete; use --with-gas. 985 with_gas=yes ;; 986 987 -help | --help | --hel | --he | -h) 988 ac_init_help=long ;; 989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 990 ac_init_help=recursive ;; 991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 992 ac_init_help=short ;; 993 994 -host | --host | --hos | --ho) 995 ac_prev=host_alias ;; 996 -host=* | --host=* | --hos=* | --ho=*) 997 host_alias=$ac_optarg ;; 998 999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1000 ac_prev=htmldir ;; 1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1002 | --ht=*) 1003 htmldir=$ac_optarg ;; 1004 1005 -includedir | --includedir | --includedi | --included | --include \ 1006 | --includ | --inclu | --incl | --inc) 1007 ac_prev=includedir ;; 1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1009 | --includ=* | --inclu=* | --incl=* | --inc=*) 1010 includedir=$ac_optarg ;; 1011 1012 -infodir | --infodir | --infodi | --infod | --info | --inf) 1013 ac_prev=infodir ;; 1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1015 infodir=$ac_optarg ;; 1016 1017 -libdir | --libdir | --libdi | --libd) 1018 ac_prev=libdir ;; 1019 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1020 libdir=$ac_optarg ;; 1021 1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1023 | --libexe | --libex | --libe) 1024 ac_prev=libexecdir ;; 1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1026 | --libexe=* | --libex=* | --libe=*) 1027 libexecdir=$ac_optarg ;; 1028 1029 -localedir | --localedir | --localedi | --localed | --locale) 1030 ac_prev=localedir ;; 1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1032 localedir=$ac_optarg ;; 1033 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1035 | --localstate | --localstat | --localsta | --localst | --locals) 1036 ac_prev=localstatedir ;; 1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1039 localstatedir=$ac_optarg ;; 1040 1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1042 ac_prev=mandir ;; 1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1044 mandir=$ac_optarg ;; 1045 1046 -nfp | --nfp | --nf) 1047 # Obsolete; use --without-fp. 1048 with_fp=no ;; 1049 1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1051 | --no-cr | --no-c | -n) 1052 no_create=yes ;; 1053 1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1056 no_recursion=yes ;; 1057 1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1060 | --oldin | --oldi | --old | --ol | --o) 1061 ac_prev=oldincludedir ;; 1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1065 oldincludedir=$ac_optarg ;; 1066 1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1068 ac_prev=prefix ;; 1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1070 prefix=$ac_optarg ;; 1071 1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1073 | --program-pre | --program-pr | --program-p) 1074 ac_prev=program_prefix ;; 1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1077 program_prefix=$ac_optarg ;; 1078 1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1080 | --program-suf | --program-su | --program-s) 1081 ac_prev=program_suffix ;; 1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1084 program_suffix=$ac_optarg ;; 1085 1086 -program-transform-name | --program-transform-name \ 1087 | --program-transform-nam | --program-transform-na \ 1088 | --program-transform-n | --program-transform- \ 1089 | --program-transform | --program-transfor \ 1090 | --program-transfo | --program-transf \ 1091 | --program-trans | --program-tran \ 1092 | --progr-tra | --program-tr | --program-t) 1093 ac_prev=program_transform_name ;; 1094 -program-transform-name=* | --program-transform-name=* \ 1095 | --program-transform-nam=* | --program-transform-na=* \ 1096 | --program-transform-n=* | --program-transform-=* \ 1097 | --program-transform=* | --program-transfor=* \ 1098 | --program-transfo=* | --program-transf=* \ 1099 | --program-trans=* | --program-tran=* \ 1100 | --progr-tra=* | --program-tr=* | --program-t=*) 1101 program_transform_name=$ac_optarg ;; 1102 1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1104 ac_prev=pdfdir ;; 1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1106 pdfdir=$ac_optarg ;; 1107 1108 -psdir | --psdir | --psdi | --psd | --ps) 1109 ac_prev=psdir ;; 1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1111 psdir=$ac_optarg ;; 1112 1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1114 | -silent | --silent | --silen | --sile | --sil) 1115 silent=yes ;; 1116 1117 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1118 | --runstate | --runstat | --runsta | --runst | --runs \ 1119 | --run | --ru | --r) 1120 ac_prev=runstatedir ;; 1121 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1122 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1123 | --run=* | --ru=* | --r=*) 1124 runstatedir=$ac_optarg ;; 1125 1126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1127 ac_prev=sbindir ;; 1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1129 | --sbi=* | --sb=*) 1130 sbindir=$ac_optarg ;; 1131 1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1134 | --sharedst | --shareds | --shared | --share | --shar \ 1135 | --sha | --sh) 1136 ac_prev=sharedstatedir ;; 1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1140 | --sha=* | --sh=*) 1141 sharedstatedir=$ac_optarg ;; 1142 1143 -site | --site | --sit) 1144 ac_prev=site ;; 1145 -site=* | --site=* | --sit=*) 1146 site=$ac_optarg ;; 1147 1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1149 ac_prev=srcdir ;; 1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1151 srcdir=$ac_optarg ;; 1152 1153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1154 | --syscon | --sysco | --sysc | --sys | --sy) 1155 ac_prev=sysconfdir ;; 1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1158 sysconfdir=$ac_optarg ;; 1159 1160 -target | --target | --targe | --targ | --tar | --ta | --t) 1161 ac_prev=target_alias ;; 1162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1163 target_alias=$ac_optarg ;; 1164 1165 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1166 verbose=yes ;; 1167 1168 -version | --version | --versio | --versi | --vers | -V) 1169 ac_init_version=: ;; 1170 1171 -with-* | --with-*) 1172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1173 # Reject names that are not valid shell variable names. 1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1175 as_fn_error $? "invalid package name: '$ac_useropt'" 1176 ac_useropt_orig=$ac_useropt 1177 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1178 case $ac_user_opts in 1179 *" 1180"with_$ac_useropt" 1181"*) ;; 1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1183 ac_unrecognized_sep=', ';; 1184 esac 1185 eval with_$ac_useropt=\$ac_optarg ;; 1186 1187 -without-* | --without-*) 1188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1189 # Reject names that are not valid shell variable names. 1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1191 as_fn_error $? "invalid package name: '$ac_useropt'" 1192 ac_useropt_orig=$ac_useropt 1193 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1194 case $ac_user_opts in 1195 *" 1196"with_$ac_useropt" 1197"*) ;; 1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1199 ac_unrecognized_sep=', ';; 1200 esac 1201 eval with_$ac_useropt=no ;; 1202 1203 --x) 1204 # Obsolete; use --with-x. 1205 with_x=yes ;; 1206 1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1208 | --x-incl | --x-inc | --x-in | --x-i) 1209 ac_prev=x_includes ;; 1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1212 x_includes=$ac_optarg ;; 1213 1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1216 ac_prev=x_libraries ;; 1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1219 x_libraries=$ac_optarg ;; 1220 1221 -*) as_fn_error $? "unrecognized option: '$ac_option' 1222Try '$0 --help' for more information" 1223 ;; 1224 1225 *=*) 1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1227 # Reject names that are not valid shell variable names. 1228 case $ac_envvar in #( 1229 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1230 as_fn_error $? "invalid variable name: '$ac_envvar'" ;; 1231 esac 1232 eval $ac_envvar=\$ac_optarg 1233 export $ac_envvar ;; 1234 1235 *) 1236 # FIXME: should be removed in autoconf 3.0. 1237 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1239 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1241 ;; 1242 1243 esac 1244done 1245 1246if test -n "$ac_prev"; then 1247 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1248 as_fn_error $? "missing argument to $ac_option" 1249fi 1250 1251if test -n "$ac_unrecognized_opts"; then 1252 case $enable_option_checking in 1253 no) ;; 1254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1255 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1256 esac 1257fi 1258 1259# Check all directory arguments for consistency. 1260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1261 datadir sysconfdir sharedstatedir localstatedir includedir \ 1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1263 libdir localedir mandir runstatedir 1264do 1265 eval ac_val=\$$ac_var 1266 # Remove trailing slashes. 1267 case $ac_val in 1268 */ ) 1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1270 eval $ac_var=\$ac_val;; 1271 esac 1272 # Be sure to have absolute directory names. 1273 case $ac_val in 1274 [\\/$]* | ?:[\\/]* ) continue;; 1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1276 esac 1277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1278done 1279 1280# There might be people who depend on the old broken behavior: '$host' 1281# used to hold the argument of --host etc. 1282# FIXME: To remove some day. 1283build=$build_alias 1284host=$host_alias 1285target=$target_alias 1286 1287# FIXME: To remove some day. 1288if test "x$host_alias" != x; then 1289 if test "x$build_alias" = x; then 1290 cross_compiling=maybe 1291 elif test "x$build_alias" != "x$host_alias"; then 1292 cross_compiling=yes 1293 fi 1294fi 1295 1296ac_tool_prefix= 1297test -n "$host_alias" && ac_tool_prefix=$host_alias- 1298 1299test "$silent" = yes && exec 6>/dev/null 1300 1301 1302ac_pwd=`pwd` && test -n "$ac_pwd" && 1303ac_ls_di=`ls -di .` && 1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1305 as_fn_error $? "working directory cannot be determined" 1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1307 as_fn_error $? "pwd does not report name of working directory" 1308 1309 1310# Find the source files, if location was not specified. 1311if test -z "$srcdir"; then 1312 ac_srcdir_defaulted=yes 1313 # Try the directory containing this script, then the parent directory. 1314 ac_confdir=`$as_dirname -- "$as_myself" || 1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1316 X"$as_myself" : 'X\(//\)[^/]' \| \ 1317 X"$as_myself" : 'X\(//\)$' \| \ 1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1319printf "%s\n" X"$as_myself" | 1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1321 s//\1/ 1322 q 1323 } 1324 /^X\(\/\/\)[^/].*/{ 1325 s//\1/ 1326 q 1327 } 1328 /^X\(\/\/\)$/{ 1329 s//\1/ 1330 q 1331 } 1332 /^X\(\/\).*/{ 1333 s//\1/ 1334 q 1335 } 1336 s/.*/./; q'` 1337 srcdir=$ac_confdir 1338 if test ! -r "$srcdir/$ac_unique_file"; then 1339 srcdir=.. 1340 fi 1341else 1342 ac_srcdir_defaulted=no 1343fi 1344if test ! -r "$srcdir/$ac_unique_file"; then 1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1347fi 1348ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" 1349ac_abs_confdir=`( 1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1351 pwd)` 1352# When building in place, set srcdir=. 1353if test "$ac_abs_confdir" = "$ac_pwd"; then 1354 srcdir=. 1355fi 1356# Remove unnecessary trailing slashes from srcdir. 1357# Double slashes in file names in object file debugging info 1358# mess up M-x gdb in Emacs. 1359case $srcdir in 1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1361esac 1362for ac_var in $ac_precious_vars; do 1363 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_env_${ac_var}_value=\$${ac_var} 1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1366 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1367done 1368 1369# 1370# Report the --help message. 1371# 1372if test "$ac_init_help" = "long"; then 1373 # Omit some internal or obsolete options to make the list less imposing. 1374 # This message is too long to be a string in the A/UX 3.1 sh. 1375 cat <<_ACEOF 1376'configure' configures file 5.48 to adapt to many kinds of systems. 1377 1378Usage: $0 [OPTION]... [VAR=VALUE]... 1379 1380To assign environment variables (e.g., CC, CFLAGS...), specify them as 1381VAR=VALUE. See below for descriptions of some of the useful variables. 1382 1383Defaults for the options are specified in brackets. 1384 1385Configuration: 1386 -h, --help display this help and exit 1387 --help=short display options specific to this package 1388 --help=recursive display the short help of all the included packages 1389 -V, --version display version information and exit 1390 -q, --quiet, --silent do not print 'checking ...' messages 1391 --cache-file=FILE cache test results in FILE [disabled] 1392 -C, --config-cache alias for '--cache-file=config.cache' 1393 -n, --no-create do not create output files 1394 --srcdir=DIR find the sources in DIR [configure dir or '..'] 1395 1396Installation directories: 1397 --prefix=PREFIX install architecture-independent files in PREFIX 1398 [$ac_default_prefix] 1399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1400 [PREFIX] 1401 1402By default, 'make install' will install all the files in 1403'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify 1404an installation prefix other than '$ac_default_prefix' using '--prefix', 1405for instance '--prefix=\$HOME'. 1406 1407For better control, use the options below. 1408 1409Fine tuning of the installation directories: 1410 --bindir=DIR user executables [EPREFIX/bin] 1411 --sbindir=DIR system admin executables [EPREFIX/sbin] 1412 --libexecdir=DIR program executables [EPREFIX/libexec] 1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1416 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1417 --libdir=DIR object code libraries [EPREFIX/lib] 1418 --includedir=DIR C header files [PREFIX/include] 1419 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1422 --infodir=DIR info documentation [DATAROOTDIR/info] 1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1424 --mandir=DIR man documentation [DATAROOTDIR/man] 1425 --docdir=DIR documentation root [DATAROOTDIR/doc/file] 1426 --htmldir=DIR html documentation [DOCDIR] 1427 --dvidir=DIR dvi documentation [DOCDIR] 1428 --pdfdir=DIR pdf documentation [DOCDIR] 1429 --psdir=DIR ps documentation [DOCDIR] 1430_ACEOF 1431 1432 cat <<\_ACEOF 1433 1434Program names: 1435 --program-prefix=PREFIX prepend PREFIX to installed program names 1436 --program-suffix=SUFFIX append SUFFIX to installed program names 1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 case $ac_init_help in 1447 short | recursive ) echo "Configuration of file 5.48:";; 1448 esac 1449 cat <<\_ACEOF 1450 1451Optional Features: 1452 --disable-option-checking ignore unrecognized --enable/--with options 1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1455 --enable-silent-rules less verbose build output (undo: "make V=1") 1456 --disable-silent-rules verbose build output (undo: "make V=0") 1457 --disable-elf disable builtin ELF support 1458 --disable-elf-core disable ELF core file support 1459 --disable-zlib disable zlib compression support [default=auto] 1460 --disable-bzlib disable bz2lib compression support [default=auto] 1461 --disable-xzlib disable liblzma/xz compression support 1462 [default=auto] 1463 --disable-zstdlib disable zstdlib compression support [default=auto] 1464 --disable-lzlib disable liblz (lzip) compression support 1465 [default=auto] 1466 --disable-lrziplib disable liblrzip (lrzip) compression support 1467 [default=auto] 1468 --disable-libseccomp disable libseccomp sandboxing [default=auto] 1469 --disable-landlock disable Landlock filesystem sandboxing 1470 [default=auto] 1471 --enable-fsect-man5 enable file formats in man section 5 1472 --enable-dependency-tracking 1473 do not reject slow dependency extractors 1474 --disable-dependency-tracking 1475 speeds up one-time build 1476 --enable-static[=PKGS] build static libraries [default=no] 1477 --enable-shared[=PKGS] build shared libraries [default=yes] 1478 --enable-fast-install[=PKGS] 1479 optimize for fast installation [default=yes] 1480 --disable-libtool-lock avoid locking (might break parallel builds) 1481 --disable-largefile omit support for large files 1482 --disable-warnings disable compiler warnings 1483 --disable-year2038 don't support timestamps after 2038 1484 1485Optional Packages: 1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1488 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1489 both] 1490 --with-aix-soname=aix|svr4|both 1491 shared library versioning (aka "SONAME") variant to 1492 provide on AIX, [default=aix]. 1493 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1494 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1495 compiler's sysroot if not specified). 1496 1497Some influential environment variables: 1498 CC C compiler command 1499 CFLAGS C compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 LIBS libraries to pass to the linker, e.g. -l<library> 1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1504 you have headers in a nonstandard directory <include dir> 1505 LT_SYS_LIBRARY_PATH 1506 User-defined run-time library search path. 1507 1508Use these variables to override the choices made by 'configure' or to help 1509it to find libraries and programs with nonstandard names/locations. 1510 1511Report bugs to <christos@astron.com>. 1512_ACEOF 1513ac_status=$? 1514fi 1515 1516if test "$ac_init_help" = "recursive"; then 1517 # If there are subdirs, report their specific --help. 1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1519 test -d "$ac_dir" || 1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1521 continue 1522 ac_builddir=. 1523 1524case "$ac_dir" in 1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526*) 1527 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1528 # A ".." for each directory in $ac_dir_suffix. 1529 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1530 case $ac_top_builddir_sub in 1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1533 esac ;; 1534esac 1535ac_abs_top_builddir=$ac_pwd 1536ac_abs_builddir=$ac_pwd$ac_dir_suffix 1537# for backward compatibility: 1538ac_top_builddir=$ac_top_build_prefix 1539 1540case $srcdir in 1541 .) # We are building in place. 1542 ac_srcdir=. 1543 ac_top_srcdir=$ac_top_builddir_sub 1544 ac_abs_top_srcdir=$ac_pwd ;; 1545 [\\/]* | ?:[\\/]* ) # Absolute name. 1546 ac_srcdir=$srcdir$ac_dir_suffix; 1547 ac_top_srcdir=$srcdir 1548 ac_abs_top_srcdir=$srcdir ;; 1549 *) # Relative name. 1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1551 ac_top_srcdir=$ac_top_build_prefix$srcdir 1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1553esac 1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1555 1556 cd "$ac_dir" || { ac_status=$?; continue; } 1557 # Check for configure.gnu first; this name is used for a wrapper for 1558 # Metaconfig's "Configure" on case-insensitive file systems. 1559 if test -f "$ac_srcdir/configure.gnu"; then 1560 echo && 1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1562 elif test -f "$ac_srcdir/configure"; then 1563 echo && 1564 $SHELL "$ac_srcdir/configure" --help=recursive 1565 else 1566 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1567 fi || ac_status=$? 1568 cd "$ac_pwd" || { ac_status=$?; break; } 1569 done 1570fi 1571 1572test -n "$ac_init_help" && exit $ac_status 1573if $ac_init_version; then 1574 cat <<\_ACEOF 1575file configure 5.48 1576generated by GNU Autoconf 2.72 1577 1578Copyright (C) 2023 Free Software Foundation, Inc. 1579This configure script is free software; the Free Software Foundation 1580gives unlimited permission to copy, distribute and modify it. 1581_ACEOF 1582 exit 1583fi 1584 1585## ------------------------ ## 1586## Autoconf initialization. ## 1587## ------------------------ ## 1588 1589# ac_fn_c_try_compile LINENO 1590# -------------------------- 1591# Try to compile conftest.$ac_ext, and return whether this succeeded. 1592ac_fn_c_try_compile () 1593{ 1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1595 rm -f conftest.$ac_objext conftest.beam 1596 if { { ac_try="$ac_compile" 1597case "(($ac_try" in 1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1599 *) ac_try_echo=$ac_try;; 1600esac 1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1602printf "%s\n" "$ac_try_echo"; } >&5 1603 (eval "$ac_compile") 2>conftest.err 1604 ac_status=$? 1605 if test -s conftest.err; then 1606 grep -v '^ *+' conftest.err >conftest.er1 1607 cat conftest.er1 >&5 1608 mv -f conftest.er1 conftest.err 1609 fi 1610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1611 test $ac_status = 0; } && { 1612 test -z "$ac_c_werror_flag" || 1613 test ! -s conftest.err 1614 } && test -s conftest.$ac_objext 1615then : 1616 ac_retval=0 1617else case e in #( 1618 e) printf "%s\n" "$as_me: failed program was:" >&5 1619sed 's/^/| /' conftest.$ac_ext >&5 1620 1621 ac_retval=1 ;; 1622esac 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_compile 1628 1629# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1630# ------------------------------------------------------- 1631# Tests whether HEADER exists and can be compiled using the include files in 1632# INCLUDES, setting the cache variable VAR accordingly. 1633ac_fn_c_check_header_compile () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1637printf %s "checking for $2... " >&6; } 1638if eval test \${$3+y} 1639then : 1640 printf %s "(cached) " >&6 1641else case e in #( 1642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1643/* end confdefs.h. */ 1644$4 1645#include <$2> 1646_ACEOF 1647if ac_fn_c_try_compile "$LINENO" 1648then : 1649 eval "$3=yes" 1650else case e in #( 1651 e) eval "$3=no" ;; 1652esac 1653fi 1654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1655esac 1656fi 1657eval ac_res=\$$3 1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1659printf "%s\n" "$ac_res" >&6; } 1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1661 1662} # ac_fn_c_check_header_compile 1663 1664# ac_fn_c_try_link LINENO 1665# ----------------------- 1666# Try to link conftest.$ac_ext, and return whether this succeeded. 1667ac_fn_c_try_link () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1671 if { { ac_try="$ac_link" 1672case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675esac 1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677printf "%s\n" "$ac_try_echo"; } >&5 1678 (eval "$ac_link") 2>conftest.err 1679 ac_status=$? 1680 if test -s conftest.err; then 1681 grep -v '^ *+' conftest.err >conftest.er1 1682 cat conftest.er1 >&5 1683 mv -f conftest.er1 conftest.err 1684 fi 1685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; } && { 1687 test -z "$ac_c_werror_flag" || 1688 test ! -s conftest.err 1689 } && test -s conftest$ac_exeext && { 1690 test "$cross_compiling" = yes || 1691 test -x conftest$ac_exeext 1692 } 1693then : 1694 ac_retval=0 1695else case e in #( 1696 e) printf "%s\n" "$as_me: failed program was:" >&5 1697sed 's/^/| /' conftest.$ac_ext >&5 1698 1699 ac_retval=1 ;; 1700esac 1701fi 1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1704 # interfere with the next link command; also delete a directory that is 1705 # left behind by Apple's compiler. We do this before executing the actions. 1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_link 1711 1712# ac_fn_c_try_run LINENO 1713# ---------------------- 1714# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1715# executables *can* be run. 1716ac_fn_c_try_run () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 if { { ac_try="$ac_link" 1720case "(($ac_try" in 1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1722 *) ac_try_echo=$ac_try;; 1723esac 1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1725printf "%s\n" "$ac_try_echo"; } >&5 1726 (eval "$ac_link") 2>&5 1727 ac_status=$? 1728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1730 { { case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735printf "%s\n" "$ac_try_echo"; } >&5 1736 (eval "$ac_try") 2>&5 1737 ac_status=$? 1738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1739 test $ac_status = 0; }; } 1740then : 1741 ac_retval=0 1742else case e in #( 1743 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1744 printf "%s\n" "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=$ac_status ;; 1748esac 1749fi 1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1752 as_fn_set_status $ac_retval 1753 1754} # ac_fn_c_try_run 1755 1756# ac_fn_c_check_func LINENO FUNC VAR 1757# ---------------------------------- 1758# Tests whether FUNC exists, setting the cache variable VAR accordingly 1759ac_fn_c_check_func () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1763printf %s "checking for $2... " >&6; } 1764if eval test \${$3+y} 1765then : 1766 printf %s "(cached) " >&6 1767else case e in #( 1768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1772#define $2 innocuous_$2 1773 1774/* System header to define __stub macros and hopefully few prototypes, 1775 which can conflict with char $2 (void); below. */ 1776 1777#include <limits.h> 1778#undef $2 1779 1780/* Override any GCC internal prototype to avoid an error. 1781 Use char because int might match the return type of a GCC 1782 builtin and then its argument prototype would still apply. */ 1783#ifdef __cplusplus 1784extern "C" 1785#endif 1786char $2 (void); 1787/* The GNU C library defines this for functions which it implements 1788 to always fail with ENOSYS. Some functions are actually named 1789 something starting with __ and the normal name is an alias. */ 1790#if defined __stub_$2 || defined __stub___$2 1791choke me 1792#endif 1793 1794int 1795main (void) 1796{ 1797return $2 (); 1798 ; 1799 return 0; 1800} 1801_ACEOF 1802if ac_fn_c_try_link "$LINENO" 1803then : 1804 eval "$3=yes" 1805else case e in #( 1806 e) eval "$3=no" ;; 1807esac 1808fi 1809rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1810 conftest$ac_exeext conftest.$ac_ext ;; 1811esac 1812fi 1813eval ac_res=\$$3 1814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815printf "%s\n" "$ac_res" >&6; } 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 1818} # ac_fn_c_check_func 1819 1820# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1821# ------------------------------------------- 1822# Tests whether TYPE exists after having included INCLUDES, setting cache 1823# variable VAR accordingly. 1824ac_fn_c_check_type () 1825{ 1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1828printf %s "checking for $2... " >&6; } 1829if eval test \${$3+y} 1830then : 1831 printf %s "(cached) " >&6 1832else case e in #( 1833 e) eval "$3=no" 1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1835/* end confdefs.h. */ 1836$4 1837int 1838main (void) 1839{ 1840if (sizeof ($2)) 1841 return 0; 1842 ; 1843 return 0; 1844} 1845_ACEOF 1846if ac_fn_c_try_compile "$LINENO" 1847then : 1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1849/* end confdefs.h. */ 1850$4 1851int 1852main (void) 1853{ 1854if (sizeof (($2))) 1855 return 0; 1856 ; 1857 return 0; 1858} 1859_ACEOF 1860if ac_fn_c_try_compile "$LINENO" 1861then : 1862 1863else case e in #( 1864 e) eval "$3=yes" ;; 1865esac 1866fi 1867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1868fi 1869rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1870esac 1871fi 1872eval ac_res=\$$3 1873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874printf "%s\n" "$ac_res" >&6; } 1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1876 1877} # ac_fn_c_check_type 1878 1879# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1880# ---------------------------------------------------- 1881# Tries to find if the field MEMBER exists in type AGGR, after including 1882# INCLUDES, setting cache variable VAR accordingly. 1883ac_fn_c_check_member () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 1887printf %s "checking for $2.$3... " >&6; } 1888if eval test \${$4+y} 1889then : 1890 printf %s "(cached) " >&6 1891else case e in #( 1892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1893/* end confdefs.h. */ 1894$5 1895int 1896main (void) 1897{ 1898static $2 ac_aggr; 1899if (ac_aggr.$3) 1900return 0; 1901 ; 1902 return 0; 1903} 1904_ACEOF 1905if ac_fn_c_try_compile "$LINENO" 1906then : 1907 eval "$4=yes" 1908else case e in #( 1909 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$5 1912int 1913main (void) 1914{ 1915static $2 ac_aggr; 1916if (sizeof ac_aggr.$3) 1917return 0; 1918 ; 1919 return 0; 1920} 1921_ACEOF 1922if ac_fn_c_try_compile "$LINENO" 1923then : 1924 eval "$4=yes" 1925else case e in #( 1926 e) eval "$4=no" ;; 1927esac 1928fi 1929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1930esac 1931fi 1932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 1933esac 1934fi 1935eval ac_res=\$$4 1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1937printf "%s\n" "$ac_res" >&6; } 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 1940} # ac_fn_c_check_member 1941 1942# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1943# ------------------------------------------------------------------ 1944# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1945# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1946ac_fn_check_decl () 1947{ 1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1949 as_decl_name=`echo $2|sed 's/ *(.*//'` 1950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1951printf %s "checking whether $as_decl_name is declared... " >&6; } 1952if eval test \${$3+y} 1953then : 1954 printf %s "(cached) " >&6 1955else case e in #( 1956 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1957 eval ac_save_FLAGS=\$$6 1958 as_fn_append $6 " $5" 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961$4 1962int 1963main (void) 1964{ 1965#ifndef $as_decl_name 1966#ifdef __cplusplus 1967 (void) $as_decl_use; 1968#else 1969 (void) $as_decl_name; 1970#endif 1971#endif 1972 1973 ; 1974 return 0; 1975} 1976_ACEOF 1977if ac_fn_c_try_compile "$LINENO" 1978then : 1979 eval "$3=yes" 1980else case e in #( 1981 e) eval "$3=no" ;; 1982esac 1983fi 1984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1985 eval $6=\$ac_save_FLAGS 1986 ;; 1987esac 1988fi 1989eval ac_res=\$$3 1990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1991printf "%s\n" "$ac_res" >&6; } 1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1993 1994} # ac_fn_check_decl 1995 1996# ac_fn_c_find_uintX_t LINENO BITS VAR 1997# ------------------------------------ 1998# Finds an unsigned integer type with width BITS, setting cache variable VAR 1999# accordingly. 2000ac_fn_c_find_uintX_t () 2001{ 2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2004printf %s "checking for uint$2_t... " >&6; } 2005if eval test \${$3+y} 2006then : 2007 printf %s "(cached) " >&6 2008else case e in #( 2009 e) eval "$3=no" 2010 # Order is important - never check a type that is potentially smaller 2011 # than half of the expected target width. 2012 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2013 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$ac_includes_default 2017int 2018main (void) 2019{ 2020static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2021test_array [0] = 0; 2022return test_array [0]; 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO" 2029then : 2030 case $ac_type in #( 2031 uint$2_t) : 2032 eval "$3=yes" ;; #( 2033 *) : 2034 eval "$3=\$ac_type" ;; 2035esac 2036fi 2037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2038 if eval test \"x\$"$3"\" = x"no" 2039then : 2040 2041else case e in #( 2042 e) break ;; 2043esac 2044fi 2045 done ;; 2046esac 2047fi 2048eval ac_res=\$$3 2049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2050printf "%s\n" "$ac_res" >&6; } 2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2052 2053} # ac_fn_c_find_uintX_t 2054 2055# ac_fn_c_find_intX_t LINENO BITS VAR 2056# ----------------------------------- 2057# Finds a signed integer type with width BITS, setting cache variable VAR 2058# accordingly. 2059ac_fn_c_find_intX_t () 2060{ 2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2063printf %s "checking for int$2_t... " >&6; } 2064if eval test \${$3+y} 2065then : 2066 printf %s "(cached) " >&6 2067else case e in #( 2068 e) eval "$3=no" 2069 # Order is important - never check a type that is potentially smaller 2070 # than half of the expected target width. 2071 for ac_type in int$2_t 'int' 'long int' \ 2072 'long long int' 'short int' 'signed char'; do 2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2074/* end confdefs.h. */ 2075$ac_includes_default 2076 enum { N = $2 / 2 - 1 }; 2077int 2078main (void) 2079{ 2080static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2081test_array [0] = 0; 2082return test_array [0]; 2083 2084 ; 2085 return 0; 2086} 2087_ACEOF 2088if ac_fn_c_try_compile "$LINENO" 2089then : 2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2091/* end confdefs.h. */ 2092$ac_includes_default 2093 enum { N = $2 / 2 - 1 }; 2094int 2095main (void) 2096{ 2097static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2098 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2099test_array [0] = 0; 2100return test_array [0]; 2101 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_compile "$LINENO" 2107then : 2108 2109else case e in #( 2110 e) case $ac_type in #( 2111 int$2_t) : 2112 eval "$3=yes" ;; #( 2113 *) : 2114 eval "$3=\$ac_type" ;; 2115esac ;; 2116esac 2117fi 2118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2119fi 2120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2121 if eval test \"x\$"$3"\" = x"no" 2122then : 2123 2124else case e in #( 2125 e) break ;; 2126esac 2127fi 2128 done ;; 2129esac 2130fi 2131eval ac_res=\$$3 2132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2133printf "%s\n" "$ac_res" >&6; } 2134 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2135 2136} # ac_fn_c_find_intX_t 2137ac_configure_args_raw= 2138for ac_arg 2139do 2140 case $ac_arg in 2141 *\'*) 2142 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2143 esac 2144 as_fn_append ac_configure_args_raw " '$ac_arg'" 2145done 2146 2147case $ac_configure_args_raw in 2148 *$as_nl*) 2149 ac_safe_unquote= ;; 2150 *) 2151 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2152 ac_unsafe_a="$ac_unsafe_z#~" 2153 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2154 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2155esac 2156 2157cat >config.log <<_ACEOF 2158This file contains any messages produced by compilers while 2159running configure, to aid debugging if configure makes a mistake. 2160 2161It was created by file $as_me 5.48, which was 2162generated by GNU Autoconf 2.72. Invocation command line was 2163 2164 $ $0$ac_configure_args_raw 2165 2166_ACEOF 2167exec 5>>config.log 2168{ 2169cat <<_ASUNAME 2170## --------- ## 2171## Platform. ## 2172## --------- ## 2173 2174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2175uname -m = `(uname -m) 2>/dev/null || echo unknown` 2176uname -r = `(uname -r) 2>/dev/null || echo unknown` 2177uname -s = `(uname -s) 2>/dev/null || echo unknown` 2178uname -v = `(uname -v) 2>/dev/null || echo unknown` 2179 2180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2182 2183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2186/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2190 2191_ASUNAME 2192 2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2194for as_dir in $PATH 2195do 2196 IFS=$as_save_IFS 2197 case $as_dir in #((( 2198 '') as_dir=./ ;; 2199 */) ;; 2200 *) as_dir=$as_dir/ ;; 2201 esac 2202 printf "%s\n" "PATH: $as_dir" 2203 done 2204IFS=$as_save_IFS 2205 2206} >&5 2207 2208cat >&5 <<_ACEOF 2209 2210 2211## ----------- ## 2212## Core tests. ## 2213## ----------- ## 2214 2215_ACEOF 2216 2217 2218# Keep a trace of the command line. 2219# Strip out --no-create and --no-recursion so they do not pile up. 2220# Strip out --silent because we don't want to record it for future runs. 2221# Also quote any args containing shell meta-characters. 2222# Make two passes to allow for proper duplicate-argument suppression. 2223ac_configure_args= 2224ac_configure_args0= 2225ac_configure_args1= 2226ac_must_keep_next=false 2227for ac_pass in 1 2 2228do 2229 for ac_arg 2230 do 2231 case $ac_arg in 2232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2234 | -silent | --silent | --silen | --sile | --sil) 2235 continue ;; 2236 *\'*) 2237 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2238 esac 2239 case $ac_pass in 2240 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2241 2) 2242 as_fn_append ac_configure_args1 " '$ac_arg'" 2243 if test $ac_must_keep_next = true; then 2244 ac_must_keep_next=false # Got value, back to normal. 2245 else 2246 case $ac_arg in 2247 *=* | --config-cache | -C | -disable-* | --disable-* \ 2248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2250 | -with-* | --with-* | -without-* | --without-* | --x) 2251 case "$ac_configure_args0 " in 2252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2253 esac 2254 ;; 2255 -* ) ac_must_keep_next=true ;; 2256 esac 2257 fi 2258 as_fn_append ac_configure_args " '$ac_arg'" 2259 ;; 2260 esac 2261 done 2262done 2263{ ac_configure_args0=; unset ac_configure_args0;} 2264{ ac_configure_args1=; unset ac_configure_args1;} 2265 2266# When interrupted or exit'd, cleanup temporary files, and complete 2267# config.log. We remove comments because anyway the quotes in there 2268# would cause problems or look ugly. 2269# WARNING: Use '\'' to represent an apostrophe within the trap. 2270# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2271trap 'exit_status=$? 2272 # Sanitize IFS. 2273 IFS=" "" $as_nl" 2274 # Save into config.log some information that might help in debugging. 2275 { 2276 echo 2277 2278 printf "%s\n" "## ---------------- ## 2279## Cache variables. ## 2280## ---------------- ##" 2281 echo 2282 # The following way of writing the cache mishandles newlines in values, 2283( 2284 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2285 eval ac_val=\$$ac_var 2286 case $ac_val in #( 2287 *${as_nl}*) 2288 case $ac_var in #( 2289 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2290printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2291 esac 2292 case $ac_var in #( 2293 _ | IFS | as_nl) ;; #( 2294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2295 *) { eval $ac_var=; unset $ac_var;} ;; 2296 esac ;; 2297 esac 2298 done 2299 (set) 2>&1 | 2300 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2301 *${as_nl}ac_space=\ *) 2302 sed -n \ 2303 "s/'\''/'\''\\\\'\'''\''/g; 2304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2305 ;; #( 2306 *) 2307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2308 ;; 2309 esac | 2310 sort 2311) 2312 echo 2313 2314 printf "%s\n" "## ----------------- ## 2315## Output variables. ## 2316## ----------------- ##" 2317 echo 2318 for ac_var in $ac_subst_vars 2319 do 2320 eval ac_val=\$$ac_var 2321 case $ac_val in 2322 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2323 esac 2324 printf "%s\n" "$ac_var='\''$ac_val'\''" 2325 done | sort 2326 echo 2327 2328 if test -n "$ac_subst_files"; then 2329 printf "%s\n" "## ------------------- ## 2330## File substitutions. ## 2331## ------------------- ##" 2332 echo 2333 for ac_var in $ac_subst_files 2334 do 2335 eval ac_val=\$$ac_var 2336 case $ac_val in 2337 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2338 esac 2339 printf "%s\n" "$ac_var='\''$ac_val'\''" 2340 done | sort 2341 echo 2342 fi 2343 2344 if test -s confdefs.h; then 2345 printf "%s\n" "## ----------- ## 2346## confdefs.h. ## 2347## ----------- ##" 2348 echo 2349 cat confdefs.h 2350 echo 2351 fi 2352 test "$ac_signal" != 0 && 2353 printf "%s\n" "$as_me: caught signal $ac_signal" 2354 printf "%s\n" "$as_me: exit $exit_status" 2355 } >&5 2356 rm -f core *.core core.conftest.* && 2357 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2358 exit $exit_status 2359' 0 2360for ac_signal in 1 2 13 15; do 2361 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2362done 2363ac_signal=0 2364 2365# confdefs.h avoids OS command line length limits that DEFS can exceed. 2366rm -f -r conftest* confdefs.h 2367 2368printf "%s\n" "/* confdefs.h */" > confdefs.h 2369 2370# Predefined preprocessor variables. 2371 2372printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2373 2374printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2375 2376printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2377 2378printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2379 2380printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2381 2382printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2383 2384 2385# Let the site file select an alternate cache file if it wants to. 2386# Prefer an explicitly selected file to automatically selected ones. 2387if test -n "$CONFIG_SITE"; then 2388 ac_site_files="$CONFIG_SITE" 2389elif test "x$prefix" != xNONE; then 2390 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2391else 2392 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2393fi 2394 2395for ac_site_file in $ac_site_files 2396do 2397 case $ac_site_file in #( 2398 */*) : 2399 ;; #( 2400 *) : 2401 ac_site_file=./$ac_site_file ;; 2402esac 2403 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2405printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2406 sed 's/^/| /' "$ac_site_file" >&5 2407 . "$ac_site_file" \ 2408 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2409printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2410as_fn_error $? "failed to load site script $ac_site_file 2411See 'config.log' for more details" "$LINENO" 5; } 2412 fi 2413done 2414 2415if test -r "$cache_file"; then 2416 # Some versions of bash will fail to source /dev/null (special files 2417 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2418 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2420printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2421 case $cache_file in 2422 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2423 *) . "./$cache_file";; 2424 esac 2425 fi 2426else 2427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2428printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2429 >$cache_file 2430fi 2431 2432# Test code for whether the C compiler supports C89 (global declarations) 2433ac_c_conftest_c89_globals=' 2434/* Does the compiler advertise C89 conformance? 2435 Do not test the value of __STDC__, because some compilers set it to 0 2436 while being otherwise adequately conformant. */ 2437#if !defined __STDC__ 2438# error "Compiler does not advertise C89 conformance" 2439#endif 2440 2441#include <stddef.h> 2442#include <stdarg.h> 2443struct stat; 2444/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2445struct buf { int x; }; 2446struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2447static char *e (char **p, int i) 2448{ 2449 return p[i]; 2450} 2451static char *f (char * (*g) (char **, int), char **p, ...) 2452{ 2453 char *s; 2454 va_list v; 2455 va_start (v,p); 2456 s = g (p, va_arg (v,int)); 2457 va_end (v); 2458 return s; 2459} 2460 2461/* C89 style stringification. */ 2462#define noexpand_stringify(a) #a 2463const char *stringified = noexpand_stringify(arbitrary+token=sequence); 2464 2465/* C89 style token pasting. Exercises some of the corner cases that 2466 e.g. old MSVC gets wrong, but not very hard. */ 2467#define noexpand_concat(a,b) a##b 2468#define expand_concat(a,b) noexpand_concat(a,b) 2469extern int vA; 2470extern int vbee; 2471#define aye A 2472#define bee B 2473int *pvA = &expand_concat(v,aye); 2474int *pvbee = &noexpand_concat(v,bee); 2475 2476/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2477 function prototypes and stuff, but not \xHH hex character constants. 2478 These do not provoke an error unfortunately, instead are silently treated 2479 as an "x". The following induces an error, until -std is added to get 2480 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2481 array size at least. It is necessary to write \x00 == 0 to get something 2482 that is true only with -std. */ 2483int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2484 2485/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2486 inside strings and character constants. */ 2487#define FOO(x) '\''x'\'' 2488int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2489 2490int test (int i, double x); 2491struct s1 {int (*f) (int a);}; 2492struct s2 {int (*f) (double a);}; 2493int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2494 int, int);' 2495 2496# Test code for whether the C compiler supports C89 (body of main). 2497ac_c_conftest_c89_main=' 2498ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2499' 2500 2501# Test code for whether the C compiler supports C99 (global declarations) 2502ac_c_conftest_c99_globals=' 2503/* Does the compiler advertise C99 conformance? */ 2504#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2505# error "Compiler does not advertise C99 conformance" 2506#endif 2507 2508// See if C++-style comments work. 2509 2510#include <stdbool.h> 2511extern int puts (const char *); 2512extern int printf (const char *, ...); 2513extern int dprintf (int, const char *, ...); 2514extern void *malloc (size_t); 2515extern void free (void *); 2516 2517// Check varargs macros. These examples are taken from C99 6.10.3.5. 2518// dprintf is used instead of fprintf to avoid needing to declare 2519// FILE and stderr. 2520#define debug(...) dprintf (2, __VA_ARGS__) 2521#define showlist(...) puts (#__VA_ARGS__) 2522#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2523static void 2524test_varargs_macros (void) 2525{ 2526 int x = 1234; 2527 int y = 5678; 2528 debug ("Flag"); 2529 debug ("X = %d\n", x); 2530 showlist (The first, second, and third items.); 2531 report (x>y, "x is %d but y is %d", x, y); 2532} 2533 2534// Check long long types. 2535#define BIG64 18446744073709551615ull 2536#define BIG32 4294967295ul 2537#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2538#if !BIG_OK 2539 #error "your preprocessor is broken" 2540#endif 2541#if BIG_OK 2542#else 2543 #error "your preprocessor is broken" 2544#endif 2545static long long int bignum = -9223372036854775807LL; 2546static unsigned long long int ubignum = BIG64; 2547 2548struct incomplete_array 2549{ 2550 int datasize; 2551 double data[]; 2552}; 2553 2554struct named_init { 2555 int number; 2556 const wchar_t *name; 2557 double average; 2558}; 2559 2560typedef const char *ccp; 2561 2562static inline int 2563test_restrict (ccp restrict text) 2564{ 2565 // Iterate through items via the restricted pointer. 2566 // Also check for declarations in for loops. 2567 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2568 continue; 2569 return 0; 2570} 2571 2572// Check varargs and va_copy. 2573static bool 2574test_varargs (const char *format, ...) 2575{ 2576 va_list args; 2577 va_start (args, format); 2578 va_list args_copy; 2579 va_copy (args_copy, args); 2580 2581 const char *str = ""; 2582 int number = 0; 2583 float fnumber = 0; 2584 2585 while (*format) 2586 { 2587 switch (*format++) 2588 { 2589 case '\''s'\'': // string 2590 str = va_arg (args_copy, const char *); 2591 break; 2592 case '\''d'\'': // int 2593 number = va_arg (args_copy, int); 2594 break; 2595 case '\''f'\'': // float 2596 fnumber = va_arg (args_copy, double); 2597 break; 2598 default: 2599 break; 2600 } 2601 } 2602 va_end (args_copy); 2603 va_end (args); 2604 2605 return *str && number && fnumber; 2606} 2607' 2608 2609# Test code for whether the C compiler supports C99 (body of main). 2610ac_c_conftest_c99_main=' 2611 // Check bool. 2612 _Bool success = false; 2613 success |= (argc != 0); 2614 2615 // Check restrict. 2616 if (test_restrict ("String literal") == 0) 2617 success = true; 2618 char *restrict newvar = "Another string"; 2619 2620 // Check varargs. 2621 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2622 test_varargs_macros (); 2623 2624 // Check flexible array members. 2625 struct incomplete_array *ia = 2626 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2627 ia->datasize = 10; 2628 for (int i = 0; i < ia->datasize; ++i) 2629 ia->data[i] = i * 1.234; 2630 // Work around memory leak warnings. 2631 free (ia); 2632 2633 // Check named initializers. 2634 struct named_init ni = { 2635 .number = 34, 2636 .name = L"Test wide string", 2637 .average = 543.34343, 2638 }; 2639 2640 ni.number = 58; 2641 2642 int dynamic_array[ni.number]; 2643 dynamic_array[0] = argv[0][0]; 2644 dynamic_array[ni.number - 1] = 543; 2645 2646 // work around unused variable warnings 2647 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2648 || dynamic_array[ni.number - 1] != 543); 2649' 2650 2651# Test code for whether the C compiler supports C11 (global declarations) 2652ac_c_conftest_c11_globals=' 2653/* Does the compiler advertise C11 conformance? */ 2654#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2655# error "Compiler does not advertise C11 conformance" 2656#endif 2657 2658// Check _Alignas. 2659char _Alignas (double) aligned_as_double; 2660char _Alignas (0) no_special_alignment; 2661extern char aligned_as_int; 2662char _Alignas (0) _Alignas (int) aligned_as_int; 2663 2664// Check _Alignof. 2665enum 2666{ 2667 int_alignment = _Alignof (int), 2668 int_array_alignment = _Alignof (int[100]), 2669 char_alignment = _Alignof (char) 2670}; 2671_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2672 2673// Check _Noreturn. 2674int _Noreturn does_not_return (void) { for (;;) continue; } 2675 2676// Check _Static_assert. 2677struct test_static_assert 2678{ 2679 int x; 2680 _Static_assert (sizeof (int) <= sizeof (long int), 2681 "_Static_assert does not work in struct"); 2682 long int y; 2683}; 2684 2685// Check UTF-8 literals. 2686#define u8 syntax error! 2687char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2688 2689// Check duplicate typedefs. 2690typedef long *long_ptr; 2691typedef long int *long_ptr; 2692typedef long_ptr long_ptr; 2693 2694// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2695struct anonymous 2696{ 2697 union { 2698 struct { int i; int j; }; 2699 struct { int k; long int l; } w; 2700 }; 2701 int m; 2702} v1; 2703' 2704 2705# Test code for whether the C compiler supports C11 (body of main). 2706ac_c_conftest_c11_main=' 2707 _Static_assert ((offsetof (struct anonymous, i) 2708 == offsetof (struct anonymous, w.k)), 2709 "Anonymous union alignment botch"); 2710 v1.i = 2; 2711 v1.w.k = 5; 2712 ok |= v1.i != 5; 2713' 2714 2715# Test code for whether the C compiler supports C11 (complete). 2716ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2717${ac_c_conftest_c99_globals} 2718${ac_c_conftest_c11_globals} 2719 2720int 2721main (int argc, char **argv) 2722{ 2723 int ok = 0; 2724 ${ac_c_conftest_c89_main} 2725 ${ac_c_conftest_c99_main} 2726 ${ac_c_conftest_c11_main} 2727 return ok; 2728} 2729" 2730 2731# Test code for whether the C compiler supports C99 (complete). 2732ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2733${ac_c_conftest_c99_globals} 2734 2735int 2736main (int argc, char **argv) 2737{ 2738 int ok = 0; 2739 ${ac_c_conftest_c89_main} 2740 ${ac_c_conftest_c99_main} 2741 return ok; 2742} 2743" 2744 2745# Test code for whether the C compiler supports C89 (complete). 2746ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2747 2748int 2749main (int argc, char **argv) 2750{ 2751 int ok = 0; 2752 ${ac_c_conftest_c89_main} 2753 return ok; 2754} 2755" 2756 2757as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2758as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2759as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2760as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2761as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2762as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2763as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2764as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2765as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2766as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 2767as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 2768as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" 2769as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" 2770as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2771as_fn_append ac_func_c_list " fork HAVE_FORK" 2772as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2773 2774# Auxiliary files required by this configure script. 2775ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh" 2776 2777# Locations in which to look for auxiliary files. 2778ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2779 2780# Search for a directory containing all of the required auxiliary files, 2781# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2782# If we don't find one directory that contains all the files we need, 2783# we report the set of missing files from the *first* directory in 2784# $ac_aux_dir_candidates and give up. 2785ac_missing_aux_files="" 2786ac_first_candidate=: 2787printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2789as_found=false 2790for as_dir in $ac_aux_dir_candidates 2791do 2792 IFS=$as_save_IFS 2793 case $as_dir in #((( 2794 '') as_dir=./ ;; 2795 */) ;; 2796 *) as_dir=$as_dir/ ;; 2797 esac 2798 as_found=: 2799 2800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2801 ac_aux_dir_found=yes 2802 ac_install_sh= 2803 for ac_aux in $ac_aux_files 2804 do 2805 # As a special case, if "install-sh" is required, that requirement 2806 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2807 # and $ac_install_sh is set appropriately for whichever one is found. 2808 if test x"$ac_aux" = x"install-sh" 2809 then 2810 if test -f "${as_dir}install-sh"; then 2811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2812 ac_install_sh="${as_dir}install-sh -c" 2813 elif test -f "${as_dir}install.sh"; then 2814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2815 ac_install_sh="${as_dir}install.sh -c" 2816 elif test -f "${as_dir}shtool"; then 2817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2818 ac_install_sh="${as_dir}shtool install -c" 2819 else 2820 ac_aux_dir_found=no 2821 if $ac_first_candidate; then 2822 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2823 else 2824 break 2825 fi 2826 fi 2827 else 2828 if test -f "${as_dir}${ac_aux}"; then 2829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2830 else 2831 ac_aux_dir_found=no 2832 if $ac_first_candidate; then 2833 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2834 else 2835 break 2836 fi 2837 fi 2838 fi 2839 done 2840 if test "$ac_aux_dir_found" = yes; then 2841 ac_aux_dir="$as_dir" 2842 break 2843 fi 2844 ac_first_candidate=false 2845 2846 as_found=false 2847done 2848IFS=$as_save_IFS 2849if $as_found 2850then : 2851 2852else case e in #( 2853 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; 2854esac 2855fi 2856 2857 2858# These three variables are undocumented and unsupported, 2859# and are intended to be withdrawn in a future Autoconf release. 2860# They can cause serious problems if a builder's source tree is in a directory 2861# whose full name contains unusual characters. 2862if test -f "${ac_aux_dir}config.guess"; then 2863 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2864fi 2865if test -f "${ac_aux_dir}config.sub"; then 2866 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2867fi 2868if test -f "$ac_aux_dir/configure"; then 2869 ac_configure="$SHELL ${ac_aux_dir}configure" 2870fi 2871 2872# Check that the precious variables saved in the cache have kept the same 2873# value. 2874ac_cache_corrupted=false 2875for ac_var in $ac_precious_vars; do 2876 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2877 eval ac_new_set=\$ac_env_${ac_var}_set 2878 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2879 eval ac_new_val=\$ac_env_${ac_var}_value 2880 case $ac_old_set,$ac_new_set in 2881 set,) 2882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 2883printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} 2884 ac_cache_corrupted=: ;; 2885 ,set) 2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 2887printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} 2888 ac_cache_corrupted=: ;; 2889 ,);; 2890 *) 2891 if test "x$ac_old_val" != "x$ac_new_val"; then 2892 # differences in whitespace do not lead to failure. 2893 ac_old_val_w=`echo x $ac_old_val` 2894 ac_new_val_w=`echo x $ac_new_val` 2895 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 2897printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} 2898 ac_cache_corrupted=: 2899 else 2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 2901printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} 2902 eval $ac_var=\$ac_old_val 2903 fi 2904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 2905printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} 2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 2907printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} 2908 fi;; 2909 esac 2910 # Pass precious variables to config.status. 2911 if test "$ac_new_set" = set; then 2912 case $ac_new_val in 2913 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2914 *) ac_arg=$ac_var=$ac_new_val ;; 2915 esac 2916 case " $ac_configure_args " in 2917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2918 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2919 esac 2920 fi 2921done 2922if $ac_cache_corrupted; then 2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 2924printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2926printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2927 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' 2928 and start over" "$LINENO" 5 2929fi 2930## -------------------- ## 2931## Main body of script. ## 2932## -------------------- ## 2933 2934ac_ext=c 2935ac_cpp='$CPP $CPPFLAGS' 2936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2938ac_compiler_gnu=$ac_cv_c_compiler_gnu 2939 2940 2941am__api_version='1.18' 2942 2943 2944 2945 # Find a good install program. We prefer a C program (faster), 2946# so one script is as good as another. But avoid the broken or 2947# incompatible versions: 2948# SysV /etc/install, /usr/sbin/install 2949# SunOS /usr/etc/install 2950# IRIX /sbin/install 2951# AIX /bin/install 2952# AmigaOS /C/install, which installs bootblocks on floppy discs 2953# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2954# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2955# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2956# OS/2's system install, which has a completely different semantic 2957# ./install, which can be erroneously created by make from ./install.sh. 2958# Reject install programs that cannot install multiple files. 2959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2960printf %s "checking for a BSD-compatible install... " >&6; } 2961if test -z "$INSTALL"; then 2962if test ${ac_cv_path_install+y} 2963then : 2964 printf %s "(cached) " >&6 2965else case e in #( 2966 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2967for as_dir in $PATH 2968do 2969 IFS=$as_save_IFS 2970 case $as_dir in #((( 2971 '') as_dir=./ ;; 2972 */) ;; 2973 *) as_dir=$as_dir/ ;; 2974 esac 2975 # Account for fact that we put trailing slashes in our PATH walk. 2976case $as_dir in #(( 2977 ./ | /[cC]/* | \ 2978 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2979 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2980 /usr/ucb/* ) ;; 2981 *) 2982 # OSF1 and SCO ODT 3.0 have their own names for install. 2983 # Don't use installbsd from OSF since it installs stuff as root 2984 # by default. 2985 for ac_prog in ginstall scoinst install; do 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2988 if test $ac_prog = install && 2989 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2990 # AIX install. It has an incompatible calling convention. 2991 : 2992 elif test $ac_prog = install && 2993 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2994 # program-specific install script used by HP pwplus--don't use. 2995 : 2996 else 2997 rm -rf conftest.one conftest.two conftest.dir 2998 echo one > conftest.one 2999 echo two > conftest.two 3000 mkdir conftest.dir 3001 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 3002 test -s conftest.one && test -s conftest.two && 3003 test -s conftest.dir/conftest.one && 3004 test -s conftest.dir/conftest.two 3005 then 3006 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 3007 break 3 3008 fi 3009 fi 3010 fi 3011 done 3012 done 3013 ;; 3014esac 3015 3016 done 3017IFS=$as_save_IFS 3018 3019rm -rf conftest.one conftest.two conftest.dir 3020 ;; 3021esac 3022fi 3023 if test ${ac_cv_path_install+y}; then 3024 INSTALL=$ac_cv_path_install 3025 else 3026 # As a last resort, use the slow shell script. Don't cache a 3027 # value for INSTALL within a source directory, because that will 3028 # break other packages using the cache if that directory is 3029 # removed, or if the value is a relative name. 3030 INSTALL=$ac_install_sh 3031 fi 3032fi 3033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3034printf "%s\n" "$INSTALL" >&6; } 3035 3036# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3037# It thinks the first close brace ends the variable substitution. 3038test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3039 3040test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3041 3042test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3043 3044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 3045printf %s "checking whether sleep supports fractional seconds... " >&6; } 3046if test ${am_cv_sleep_fractional_seconds+y} 3047then : 3048 printf %s "(cached) " >&6 3049else case e in #( 3050 e) if sleep 0.001 2>/dev/null 3051then : 3052 am_cv_sleep_fractional_seconds=yes 3053else case e in #( 3054 e) am_cv_sleep_fractional_seconds=no ;; 3055esac 3056fi 3057 ;; 3058esac 3059fi 3060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 3061printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } 3062 3063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 3064printf %s "checking filesystem timestamp resolution... " >&6; } 3065if test ${am_cv_filesystem_timestamp_resolution+y} 3066then : 3067 printf %s "(cached) " >&6 3068else case e in #( 3069 e) # Default to the worst case. 3070am_cv_filesystem_timestamp_resolution=2 3071 3072# Only try to go finer than 1 sec if sleep can do it. 3073# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, 3074# - 1 sec is not much of a win compared to 2 sec, and 3075# - it takes 2 seconds to perform the test whether 1 sec works. 3076# 3077# Instead, just use the default 2s on platforms that have 1s resolution, 3078# accept the extra 1s delay when using $sleep in the Automake tests, in 3079# exchange for not incurring the 2s delay for running the test for all 3080# packages. 3081# 3082am_try_resolutions= 3083if test "$am_cv_sleep_fractional_seconds" = yes; then 3084 # Even a millisecond often causes a bunch of false positives, 3085 # so just try a hundredth of a second. The time saved between .001 and 3086 # .01 is not terribly consequential. 3087 am_try_resolutions="0.01 0.1 $am_try_resolutions" 3088fi 3089 3090# In order to catch current-generation FAT out, we must *modify* files 3091# that already exist; the *creation* timestamp is finer. Use names 3092# that make ls -t sort them differently when they have equal 3093# timestamps than when they have distinct timestamps, keeping 3094# in mind that ls -t prints the *newest* file first. 3095rm -f conftest.ts? 3096: > conftest.ts1 3097: > conftest.ts2 3098: > conftest.ts3 3099 3100# Make sure ls -t actually works. Do 'set' in a subshell so we don't 3101# clobber the current shell's arguments. (Outer-level square brackets 3102# are removed by m4; they're present so that m4 does not expand 3103# <dollar><star>; be careful, easy to get confused.) 3104if ( 3105 set X `ls -t conftest.ts[12]` && 3106 { 3107 test "$*" != "X conftest.ts1 conftest.ts2" || 3108 test "$*" != "X conftest.ts2 conftest.ts1"; 3109 } 3110); then :; else 3111 # If neither matched, then we have a broken ls. This can happen 3112 # if, for instance, CONFIG_SHELL is bash and it inherits a 3113 # broken ls alias from the environment. This has actually 3114 # happened. Such a system could not be considered "sane". 3115 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 3116 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 3117printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 3118as_fn_error $? "ls -t produces unexpected output. 3119Make sure there is not a broken ls alias in your environment. 3120See 'config.log' for more details" "$LINENO" 5; } 3121fi 3122 3123for am_try_res in $am_try_resolutions; do 3124 # Any one fine-grained sleep might happen to cross the boundary 3125 # between two values of a coarser actual resolution, but if we do 3126 # two fine-grained sleeps in a row, at least one of them will fall 3127 # entirely within a coarse interval. 3128 echo alpha > conftest.ts1 3129 sleep $am_try_res 3130 echo beta > conftest.ts2 3131 sleep $am_try_res 3132 echo gamma > conftest.ts3 3133 3134 # We assume that 'ls -t' will make use of high-resolution 3135 # timestamps if the operating system supports them at all. 3136 if (set X `ls -t conftest.ts?` && 3137 test "$2" = conftest.ts3 && 3138 test "$3" = conftest.ts2 && 3139 test "$4" = conftest.ts1); then 3140 # 3141 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done, 3142 # because we don't need to test make. 3143 make_ok=true 3144 if test $am_try_res != 1; then 3145 # But if we've succeeded so far with a subsecond resolution, we 3146 # have one more thing to check: make. It can happen that 3147 # everything else supports the subsecond mtimes, but make doesn't; 3148 # notably on macOS, which ships make 3.81 from 2006 (the last one 3149 # released under GPLv2). https://bugs.gnu.org/68808 3150 # 3151 # We test $MAKE if it is defined in the environment, else "make". 3152 # It might get overridden later, but our hope is that in practice 3153 # it does not matter: it is the system "make" which is (by far) 3154 # the most likely to be broken, whereas if the user overrides it, 3155 # probably they did so with a better, or at least not worse, make. 3156 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html 3157 # 3158 # Create a Makefile (real tab character here): 3159 rm -f conftest.mk 3160 echo 'conftest.ts1: conftest.ts2' >conftest.mk 3161 echo ' touch conftest.ts2' >>conftest.mk 3162 # 3163 # Now, running 3164 # touch conftest.ts1; touch conftest.ts2; make 3165 # should touch ts1 because ts2 is newer. This could happen by luck, 3166 # but most often, it will fail if make's support is insufficient. So 3167 # test for several consecutive successes. 3168 # 3169 # (We reuse conftest.ts[12] because we still want to modify existing 3170 # files, not create new ones, per above.) 3171 n=0 3172 make=${MAKE-make} 3173 until test $n -eq 3; do 3174 echo one > conftest.ts1 3175 sleep $am_try_res 3176 echo two > conftest.ts2 # ts2 should now be newer than ts1 3177 if $make -f conftest.mk | grep 'up to date' >/dev/null; then 3178 make_ok=false 3179 break # out of $n loop 3180 fi 3181 n=`expr $n + 1` 3182 done 3183 fi 3184 # 3185 if $make_ok; then 3186 # Everything we know to check worked out, so call this resolution good. 3187 am_cv_filesystem_timestamp_resolution=$am_try_res 3188 break # out of $am_try_res loop 3189 fi 3190 # Otherwise, we'll go on to check the next resolution. 3191 fi 3192done 3193rm -f conftest.ts? 3194# (end _am_filesystem_timestamp_resolution) 3195 ;; 3196esac 3197fi 3198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 3199printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } 3200 3201# This check should not be cached, as it may vary across builds of 3202# different projects. 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3204printf %s "checking whether build environment is sane... " >&6; } 3205# Reject unsafe characters in $srcdir or the absolute working directory 3206# name. Accept space and tab only in the latter. 3207am_lf=' 3208' 3209case `pwd` in 3210 *[\\\"\#\$\&\'\`$am_lf]*) 3211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3212printf "%s\n" "no" >&6; } 3213 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3214esac 3215case $srcdir in 3216 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3218printf "%s\n" "no" >&6; } 3219 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3220esac 3221 3222# Do 'set' in a subshell so we don't clobber the current shell's 3223# arguments. Must try -L first in case configure is actually a 3224# symlink; some systems play weird games with the mod time of symlinks 3225# (eg FreeBSD returns the mod time of the symlink's containing 3226# directory). 3227am_build_env_is_sane=no 3228am_has_slept=no 3229rm -f conftest.file 3230for am_try in 1 2; do 3231 echo "timestamp, slept: $am_has_slept" > conftest.file 3232 if ( 3233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3234 if test "$*" = "X"; then 3235 # -L didn't work. 3236 set X `ls -t "$srcdir/configure" conftest.file` 3237 fi 3238 test "$2" = conftest.file 3239 ); then 3240 am_build_env_is_sane=yes 3241 break 3242 fi 3243 # Just in case. 3244 sleep "$am_cv_filesystem_timestamp_resolution" 3245 am_has_slept=yes 3246done 3247 3248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 3249printf "%s\n" "$am_build_env_is_sane" >&6; } 3250if test "$am_build_env_is_sane" = no; then 3251 as_fn_error $? "newly created file is older than distributed files! 3252Check your system clock" "$LINENO" 5 3253fi 3254 3255# If we didn't sleep, we still need to ensure time stamps of config.status and 3256# generated files are strictly newer. 3257am_sleep_pid= 3258if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 3259then : 3260 3261else case e in #( 3262 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & 3263 am_sleep_pid=$! 3264 ;; 3265esac 3266fi 3267 3268rm -f conftest.file 3269 3270test "$program_prefix" != NONE && 3271 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3272# Use a double $ so make ignores it. 3273test "$program_suffix" != NONE && 3274 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3275# Double any \ or $. 3276# By default was 's,x,x', remove it if useless. 3277ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3278program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 3279 3280 3281# Expand $ac_aux_dir to an absolute path. 3282am_aux_dir=`cd "$ac_aux_dir" && pwd` 3283 3284 3285 if test x"${MISSING+set}" != xset; then 3286 MISSING="\${SHELL} '$am_aux_dir/missing'" 3287fi 3288# Use eval to expand $SHELL 3289if eval "$MISSING --is-lightweight"; then 3290 am_missing_run="$MISSING " 3291else 3292 am_missing_run= 3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3294printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3295fi 3296 3297if test x"${install_sh+set}" != xset; then 3298 case $am_aux_dir in 3299 *\ * | *\ *) 3300 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3301 *) 3302 install_sh="\${SHELL} $am_aux_dir/install-sh" 3303 esac 3304fi 3305 3306# Installed binaries are usually stripped using 'strip' when the user 3307# run "make install-strip". However 'strip' might not be the right 3308# tool to use in cross-compilation environments, therefore Automake 3309# will honor the 'STRIP' environment variable to overrule this program. 3310if test "$cross_compiling" != no; then 3311 if test -n "$ac_tool_prefix"; then 3312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3313set dummy ${ac_tool_prefix}strip; ac_word=$2 3314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3315printf %s "checking for $ac_word... " >&6; } 3316if test ${ac_cv_prog_STRIP+y} 3317then : 3318 printf %s "(cached) " >&6 3319else case e in #( 3320 e) if test -n "$STRIP"; then 3321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3322else 3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3324for as_dir in $PATH 3325do 3326 IFS=$as_save_IFS 3327 case $as_dir in #((( 3328 '') as_dir=./ ;; 3329 */) ;; 3330 *) as_dir=$as_dir/ ;; 3331 esac 3332 for ac_exec_ext in '' $ac_executable_extensions; do 3333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3334 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3336 break 2 3337 fi 3338done 3339 done 3340IFS=$as_save_IFS 3341 3342fi ;; 3343esac 3344fi 3345STRIP=$ac_cv_prog_STRIP 3346if test -n "$STRIP"; then 3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3348printf "%s\n" "$STRIP" >&6; } 3349else 3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351printf "%s\n" "no" >&6; } 3352fi 3353 3354 3355fi 3356if test -z "$ac_cv_prog_STRIP"; then 3357 ac_ct_STRIP=$STRIP 3358 # Extract the first word of "strip", so it can be a program name with args. 3359set dummy strip; ac_word=$2 3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361printf %s "checking for $ac_word... " >&6; } 3362if test ${ac_cv_prog_ac_ct_STRIP+y} 3363then : 3364 printf %s "(cached) " >&6 3365else case e in #( 3366 e) if test -n "$ac_ct_STRIP"; then 3367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3368else 3369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3370for as_dir in $PATH 3371do 3372 IFS=$as_save_IFS 3373 case $as_dir in #((( 3374 '') as_dir=./ ;; 3375 */) ;; 3376 *) as_dir=$as_dir/ ;; 3377 esac 3378 for ac_exec_ext in '' $ac_executable_extensions; do 3379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3380 ac_cv_prog_ac_ct_STRIP="strip" 3381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3382 break 2 3383 fi 3384done 3385 done 3386IFS=$as_save_IFS 3387 3388fi ;; 3389esac 3390fi 3391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3392if test -n "$ac_ct_STRIP"; then 3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3394printf "%s\n" "$ac_ct_STRIP" >&6; } 3395else 3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3397printf "%s\n" "no" >&6; } 3398fi 3399 3400 if test "x$ac_ct_STRIP" = x; then 3401 STRIP=":" 3402 else 3403 case $cross_compiling:$ac_tool_warned in 3404yes:) 3405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3406printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3407ac_tool_warned=yes ;; 3408esac 3409 STRIP=$ac_ct_STRIP 3410 fi 3411else 3412 STRIP="$ac_cv_prog_STRIP" 3413fi 3414 3415fi 3416INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3417 3418 3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 3420printf %s "checking for a race-free mkdir -p... " >&6; } 3421if test -z "$MKDIR_P"; then 3422 if test ${ac_cv_path_mkdir+y} 3423then : 3424 printf %s "(cached) " >&6 3425else case e in #( 3426 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3427for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3428do 3429 IFS=$as_save_IFS 3430 case $as_dir in #((( 3431 '') as_dir=./ ;; 3432 */) ;; 3433 *) as_dir=$as_dir/ ;; 3434 esac 3435 for ac_prog in mkdir gmkdir; do 3436 for ac_exec_ext in '' $ac_executable_extensions; do 3437 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 3438 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 3439 'mkdir ('*'coreutils) '* | \ 3440 *'BusyBox '* | \ 3441 'mkdir (fileutils) '4.1*) 3442 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 3443 break 3;; 3444 esac 3445 done 3446 done 3447 done 3448IFS=$as_save_IFS 3449 ;; 3450esac 3451fi 3452 3453 test -d ./--version && rmdir ./--version 3454 if test ${ac_cv_path_mkdir+y}; then 3455 MKDIR_P="$ac_cv_path_mkdir -p" 3456 else 3457 # As a last resort, use plain mkdir -p, 3458 # in the hope it doesn't have the bugs of ancient mkdir. 3459 MKDIR_P='mkdir -p' 3460 fi 3461fi 3462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3463printf "%s\n" "$MKDIR_P" >&6; } 3464 3465for ac_prog in gawk mawk nawk awk 3466do 3467 # Extract the first word of "$ac_prog", so it can be a program name with args. 3468set dummy $ac_prog; ac_word=$2 3469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3470printf %s "checking for $ac_word... " >&6; } 3471if test ${ac_cv_prog_AWK+y} 3472then : 3473 printf %s "(cached) " >&6 3474else case e in #( 3475 e) if test -n "$AWK"; then 3476 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3477else 3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3479for as_dir in $PATH 3480do 3481 IFS=$as_save_IFS 3482 case $as_dir in #((( 3483 '') as_dir=./ ;; 3484 */) ;; 3485 *) as_dir=$as_dir/ ;; 3486 esac 3487 for ac_exec_ext in '' $ac_executable_extensions; do 3488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3489 ac_cv_prog_AWK="$ac_prog" 3490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3491 break 2 3492 fi 3493done 3494 done 3495IFS=$as_save_IFS 3496 3497fi ;; 3498esac 3499fi 3500AWK=$ac_cv_prog_AWK 3501if test -n "$AWK"; then 3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3503printf "%s\n" "$AWK" >&6; } 3504else 3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3506printf "%s\n" "no" >&6; } 3507fi 3508 3509 3510 test -n "$AWK" && break 3511done 3512 3513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3514printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3515set x ${MAKE-make} 3516ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3517if eval test \${ac_cv_prog_make_${ac_make}_set+y} 3518then : 3519 printf %s "(cached) " >&6 3520else case e in #( 3521 e) cat >conftest.make <<\_ACEOF 3522SHELL = /bin/sh 3523all: 3524 @echo '@@@%%%=$(MAKE)=@@@%%%' 3525_ACEOF 3526# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3527case `${MAKE-make} -f conftest.make 2>/dev/null` in 3528 *@@@%%%=?*=@@@%%%*) 3529 eval ac_cv_prog_make_${ac_make}_set=yes;; 3530 *) 3531 eval ac_cv_prog_make_${ac_make}_set=no;; 3532esac 3533rm -f conftest.make ;; 3534esac 3535fi 3536if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3538printf "%s\n" "yes" >&6; } 3539 SET_MAKE= 3540else 3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3542printf "%s\n" "no" >&6; } 3543 SET_MAKE="MAKE=${MAKE-make}" 3544fi 3545 3546rm -rf .tst 2>/dev/null 3547mkdir .tst 2>/dev/null 3548if test -d .tst; then 3549 am__leading_dot=. 3550else 3551 am__leading_dot=_ 3552fi 3553rmdir .tst 2>/dev/null 3554 3555AM_DEFAULT_VERBOSITY=1 3556# Check whether --enable-silent-rules was given. 3557if test ${enable_silent_rules+y} 3558then : 3559 enableval=$enable_silent_rules; 3560fi 3561 3562am_make=${MAKE-make} 3563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3564printf %s "checking whether $am_make supports nested variables... " >&6; } 3565if test ${am_cv_make_support_nested_variables+y} 3566then : 3567 printf %s "(cached) " >&6 3568else case e in #( 3569 e) if printf "%s\n" 'TRUE=$(BAR$(V)) 3570BAR0=false 3571BAR1=true 3572V=1 3573am__doit: 3574 @$(TRUE) 3575.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3576 am_cv_make_support_nested_variables=yes 3577else 3578 am_cv_make_support_nested_variables=no 3579fi ;; 3580esac 3581fi 3582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3583printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 3584AM_BACKSLASH='\' 3585 3586am__rm_f_notfound= 3587if (rm -f && rm -fr && rm -rf) 2>/dev/null 3588then : 3589 3590else case e in #( 3591 e) am__rm_f_notfound='""' ;; 3592esac 3593fi 3594 3595 3596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 3597printf %s "checking xargs -n works... " >&6; } 3598if test ${am_cv_xargs_n_works+y} 3599then : 3600 printf %s "(cached) " >&6 3601else case e in #( 3602 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 36033" 3604then : 3605 am_cv_xargs_n_works=yes 3606else case e in #( 3607 e) am_cv_xargs_n_works=no ;; 3608esac 3609fi ;; 3610esac 3611fi 3612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 3613printf "%s\n" "$am_cv_xargs_n_works" >&6; } 3614if test "$am_cv_xargs_n_works" = yes 3615then : 3616 am__xargs_n='xargs -n' 3617else case e in #( 3618 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' 3619 ;; 3620esac 3621fi 3622 3623if test "`cd $srcdir && pwd`" != "`pwd`"; then 3624 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3625 # is not polluted with repeated "-I." 3626 am__isrc=' -I$(srcdir)' 3627 # test to see if srcdir already configured 3628 if test -f $srcdir/config.status; then 3629 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3630 fi 3631fi 3632 3633# test whether we have cygpath 3634if test -z "$CYGPATH_W"; then 3635 if (cygpath --version) >/dev/null 2>/dev/null; then 3636 CYGPATH_W='cygpath -w' 3637 else 3638 CYGPATH_W=echo 3639 fi 3640fi 3641 3642 3643# Define the identity of the package. 3644 PACKAGE='file' 3645 VERSION='5.48' 3646 3647 3648printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 3649 3650 3651printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 3652 3653# Some tools Automake needs. 3654 3655ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3656 3657 3658AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3659 3660 3661AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3662 3663 3664AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3665 3666 3667MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3668 3669# For better backward compatibility. To be removed once Automake 1.9.x 3670# dies out for good. For more background, see: 3671# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3672# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3673mkdir_p='$(MKDIR_P)' 3674 3675# We need awk for the "check" target (and possibly the TAP driver). The 3676# system "awk" is bad on some platforms. 3677# Always define AMTAR for backward compatibility. Yes, it's still used 3678# in the wild :-( We should find a proper way to deprecate it ... 3679AMTAR='$${TAR-tar}' 3680 3681 3682# We'll loop over all known methods to create a tar archive until one works. 3683_am_tools='gnutar plaintar pax cpio none' 3684 3685# The POSIX 1988 'ustar' format is defined with fixed-size fields. 3686 # There is notably a 21 bits limit for the UID and the GID. In fact, 3687 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 3688 # and bug#13588). 3689 am_max_uid=2097151 # 2^21 - 1 3690 am_max_gid=$am_max_uid 3691 # The $UID and $GID variables are not portable, so we need to resort 3692 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 3693 # below are definitely unexpected, so allow the users to see them 3694 # (that is, avoid stderr redirection). 3695 am_uid=`id -u || echo unknown` 3696 am_gid=`id -g || echo unknown` 3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 3698printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } 3699 if test x$am_uid = xunknown; then 3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5 3701printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;} 3702 elif test $am_uid -le $am_max_uid; then 3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3704printf "%s\n" "yes" >&6; } 3705 else 3706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3707printf "%s\n" "no" >&6; } 3708 _am_tools=none 3709 fi 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 3711printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } 3712 if test x$gm_gid = xunknown; then 3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5 3714printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;} 3715 elif test $am_gid -le $am_max_gid; then 3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3717printf "%s\n" "yes" >&6; } 3718 else 3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3720printf "%s\n" "no" >&6; } 3721 _am_tools=none 3722 fi 3723 3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 3725printf %s "checking how to create a ustar tar archive... " >&6; } 3726 3727 # Go ahead even if we have the value already cached. We do so because we 3728 # need to set the values for the 'am__tar' and 'am__untar' variables. 3729 _am_tools=${am_cv_prog_tar_ustar-$_am_tools} 3730 3731 for _am_tool in $_am_tools; do 3732 case $_am_tool in 3733 gnutar) 3734 for _am_tar in tar gnutar gtar; do 3735 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3736 ($_am_tar --version) >&5 2>&5 3737 ac_status=$? 3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3739 (exit $ac_status); } && break 3740 done 3741 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' 3742 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' 3743 am__untar="$_am_tar -xf -" 3744 ;; 3745 plaintar) 3746 # Must skip GNU tar: if it does not support --format= it doesn't create 3747 # ustar tarball either. 3748 (tar --version) >/dev/null 2>&1 && continue 3749 am__tar='tar chf - "$$tardir"' 3750 am__tar_='tar chf - "$tardir"' 3751 am__untar='tar xf -' 3752 ;; 3753 pax) 3754 am__tar='pax -L -x ustar -w "$$tardir"' 3755 am__tar_='pax -L -x ustar -w "$tardir"' 3756 am__untar='pax -r' 3757 ;; 3758 cpio) 3759 am__tar='find "$$tardir" -print | cpio -o -H ustar -L' 3760 am__tar_='find "$tardir" -print | cpio -o -H ustar -L' 3761 am__untar='cpio -i -H ustar -d' 3762 ;; 3763 none) 3764 am__tar=false 3765 am__tar_=false 3766 am__untar=false 3767 ;; 3768 esac 3769 3770 # If the value was cached, stop now. We just wanted to have am__tar 3771 # and am__untar set. 3772 test -n "${am_cv_prog_tar_ustar}" && break 3773 3774 # tar/untar a dummy directory, and stop if the command works. 3775 rm -rf conftest.dir 3776 mkdir conftest.dir 3777 echo GrepMe > conftest.dir/file 3778 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3779 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3780 ac_status=$? 3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3782 (exit $ac_status); } 3783 rm -rf conftest.dir 3784 if test -s conftest.tar; then 3785 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3786 ($am__untar <conftest.tar) >&5 2>&5 3787 ac_status=$? 3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3789 (exit $ac_status); } 3790 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3791 (cat conftest.dir/file) >&5 2>&5 3792 ac_status=$? 3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3794 (exit $ac_status); } 3795 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3796 fi 3797 done 3798 rm -rf conftest.dir 3799 3800 if test ${am_cv_prog_tar_ustar+y} 3801then : 3802 printf %s "(cached) " >&6 3803else case e in #( 3804 e) am_cv_prog_tar_ustar=$_am_tool ;; 3805esac 3806fi 3807 3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 3809printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } 3810 3811 3812 3813 3814 3815# Variables for tags utilities; see am/tags.am 3816if test -z "$CTAGS"; then 3817 CTAGS=ctags 3818fi 3819 3820if test -z "$ETAGS"; then 3821 ETAGS=etags 3822fi 3823 3824if test -z "$CSCOPE"; then 3825 CSCOPE=cscope 3826fi 3827 3828 3829 3830 3831 3832 3833 3834 3835AM_DEFAULT_VERBOSITY=0 3836 3837 3838 3839ac_config_headers="$ac_config_headers config.h" 3840 3841 3842 3843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5 3844printf %s "checking for builtin ELF support... " >&6; } 3845# Check whether --enable-elf was given. 3846if test ${enable_elf+y} 3847then : 3848 enableval=$enable_elf; if test "${enableval}" = yes; then 3849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3850printf "%s\n" "yes" >&6; } 3851 3852printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3853 3854else 3855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3856printf "%s\n" "no" >&6; } 3857fi 3858else case e in #( 3859 e) 3860 # enable by default 3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3862printf "%s\n" "yes" >&6; } 3863 3864printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h 3865 3866 ;; 3867esac 3868fi 3869 3870 3871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5 3872printf %s "checking for ELF core file support... " >&6; } 3873# Check whether --enable-elf-core was given. 3874if test ${enable_elf_core+y} 3875then : 3876 enableval=$enable_elf_core; if test "${enableval}" = yes; then 3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3878printf "%s\n" "yes" >&6; } 3879 3880printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3881 3882else 3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3884printf "%s\n" "no" >&6; } 3885fi 3886else case e in #( 3887 e) 3888 # enable by default 3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3890printf "%s\n" "yes" >&6; } 3891 3892printf "%s\n" "#define ELFCORE 1" >>confdefs.h 3893 3894 ;; 3895esac 3896fi 3897 3898 3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5 3900printf %s "checking for zlib support... " >&6; } 3901# Check whether --enable-zlib was given. 3902if test ${enable_zlib+y} 3903then : 3904 enableval=$enable_zlib; 3905fi 3906 3907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5 3908printf "%s\n" "$enable_zlib" >&6; } 3909 3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5 3911printf %s "checking for bzlib support... " >&6; } 3912# Check whether --enable-bzlib was given. 3913if test ${enable_bzlib+y} 3914then : 3915 enableval=$enable_bzlib; 3916fi 3917 3918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5 3919printf "%s\n" "$enable_bzlib" >&6; } 3920 3921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5 3922printf %s "checking for xzlib support... " >&6; } 3923# Check whether --enable-xzlib was given. 3924if test ${enable_xzlib+y} 3925then : 3926 enableval=$enable_xzlib; 3927fi 3928 3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5 3930printf "%s\n" "$enable_xzlib" >&6; } 3931 3932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zstdlib support" >&5 3933printf %s "checking for zstdlib support... " >&6; } 3934# Check whether --enable-zstdlib was given. 3935if test ${enable_zstdlib+y} 3936then : 3937 enableval=$enable_zstdlib; 3938fi 3939 3940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zstdlib" >&5 3941printf "%s\n" "$enable_zstdlib" >&6; } 3942 3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzlib support" >&5 3944printf %s "checking for lzlib support... " >&6; } 3945# Check whether --enable-lzlib was given. 3946if test ${enable_lzlib+y} 3947then : 3948 enableval=$enable_lzlib; 3949fi 3950 3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lzlib" >&5 3952printf "%s\n" "$enable_lzlib" >&6; } 3953 3954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrziplib support" >&5 3955printf %s "checking for lrziplib support... " >&6; } 3956# Check whether --enable-lrziplib was given. 3957if test ${enable_lrziplib+y} 3958then : 3959 enableval=$enable_lrziplib; 3960fi 3961 3962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_lrziplib" >&5 3963printf "%s\n" "$enable_lrziplib" >&6; } 3964 3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5 3966printf %s "checking for libseccomp support... " >&6; } 3967# Check whether --enable-libseccomp was given. 3968if test ${enable_libseccomp+y} 3969then : 3970 enableval=$enable_libseccomp; 3971fi 3972 3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5 3974printf "%s\n" "$enable_libseccomp" >&6; } 3975 3976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Landlock LSM support" >&5 3977printf %s "checking for Landlock LSM support... " >&6; } 3978# Check whether --enable-landlock was given. 3979if test ${enable_landlock+y} 3980then : 3981 enableval=$enable_landlock; 3982fi 3983 3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_landlock" >&5 3985printf "%s\n" "$enable_landlock" >&6; } 3986 3987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5 3988printf %s "checking for file formats in man section 5... " >&6; } 3989# Check whether --enable-fsect-man5 was given. 3990if test ${enable_fsect_man5+y} 3991then : 3992 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then 3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3994printf "%s\n" "yes" >&6; } 3995 fsect=5 3996else 3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3998printf "%s\n" "no" >&6; } 3999 fsect=4 4000fi 4001else case e in #( 4002 e) 4003 # disable by default 4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4005printf "%s\n" "no" >&6; } 4006 fsect=4 4007 ;; 4008esac 4009fi 4010 4011 4012 4013 4014 # Make sure we can run config.sub. 4015$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4016 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4017 4018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4019printf %s "checking build system type... " >&6; } 4020if test ${ac_cv_build+y} 4021then : 4022 printf %s "(cached) " >&6 4023else case e in #( 4024 e) ac_build_alias=$build_alias 4025test "x$ac_build_alias" = x && 4026 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4027test "x$ac_build_alias" = x && 4028 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4029ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4030 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4031 ;; 4032esac 4033fi 4034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4035printf "%s\n" "$ac_cv_build" >&6; } 4036case $ac_cv_build in 4037*-*-*) ;; 4038*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4039esac 4040build=$ac_cv_build 4041ac_save_IFS=$IFS; IFS='-' 4042set x $ac_cv_build 4043shift 4044build_cpu=$1 4045build_vendor=$2 4046shift; shift 4047# Remember, the first character of IFS is used to create $*, 4048# except with old shells: 4049build_os=$* 4050IFS=$ac_save_IFS 4051case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4052 4053 4054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4055printf %s "checking host system type... " >&6; } 4056if test ${ac_cv_host+y} 4057then : 4058 printf %s "(cached) " >&6 4059else case e in #( 4060 e) if test "x$host_alias" = x; then 4061 ac_cv_host=$ac_cv_build 4062else 4063 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4064 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4065fi 4066 ;; 4067esac 4068fi 4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4070printf "%s\n" "$ac_cv_host" >&6; } 4071case $ac_cv_host in 4072*-*-*) ;; 4073*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4074esac 4075host=$ac_cv_host 4076ac_save_IFS=$IFS; IFS='-' 4077set x $ac_cv_host 4078shift 4079host_cpu=$1 4080host_vendor=$2 4081shift; shift 4082# Remember, the first character of IFS is used to create $*, 4083# except with old shells: 4084host_os=$* 4085IFS=$ac_save_IFS 4086case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4087 4088 4089case "$host_os" in 4090 mingw32*) 4091 MINGW=1 4092 ;; 4093 *) 4094 MINGW=0 4095 ;; 4096esac 4097 4098 if test "$MINGW" = 1; then 4099 MINGW_TRUE= 4100 MINGW_FALSE='#' 4101else 4102 MINGW_TRUE='#' 4103 MINGW_FALSE= 4104fi 4105 4106 4107pkgdatadir='$(datadir)/misc' 4108 4109 4110 if test x$fsect = x5; then 4111 FSECT5_TRUE= 4112 FSECT5_FALSE='#' 4113else 4114 FSECT5_TRUE='#' 4115 FSECT5_FALSE= 4116fi 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130ac_ext=c 4131ac_cpp='$CPP $CPPFLAGS' 4132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4134ac_compiler_gnu=$ac_cv_c_compiler_gnu 4135if test -n "$ac_tool_prefix"; then 4136 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4137set dummy ${ac_tool_prefix}gcc; ac_word=$2 4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4139printf %s "checking for $ac_word... " >&6; } 4140if test ${ac_cv_prog_CC+y} 4141then : 4142 printf %s "(cached) " >&6 4143else case e in #( 4144 e) if test -n "$CC"; then 4145 ac_cv_prog_CC="$CC" # Let the user override the test. 4146else 4147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4148for as_dir in $PATH 4149do 4150 IFS=$as_save_IFS 4151 case $as_dir in #((( 4152 '') as_dir=./ ;; 4153 */) ;; 4154 *) as_dir=$as_dir/ ;; 4155 esac 4156 for ac_exec_ext in '' $ac_executable_extensions; do 4157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4158 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4160 break 2 4161 fi 4162done 4163 done 4164IFS=$as_save_IFS 4165 4166fi ;; 4167esac 4168fi 4169CC=$ac_cv_prog_CC 4170if test -n "$CC"; then 4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4172printf "%s\n" "$CC" >&6; } 4173else 4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4175printf "%s\n" "no" >&6; } 4176fi 4177 4178 4179fi 4180if test -z "$ac_cv_prog_CC"; then 4181 ac_ct_CC=$CC 4182 # Extract the first word of "gcc", so it can be a program name with args. 4183set dummy gcc; ac_word=$2 4184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4185printf %s "checking for $ac_word... " >&6; } 4186if test ${ac_cv_prog_ac_ct_CC+y} 4187then : 4188 printf %s "(cached) " >&6 4189else case e in #( 4190 e) if test -n "$ac_ct_CC"; then 4191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4192else 4193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4194for as_dir in $PATH 4195do 4196 IFS=$as_save_IFS 4197 case $as_dir in #((( 4198 '') as_dir=./ ;; 4199 */) ;; 4200 *) as_dir=$as_dir/ ;; 4201 esac 4202 for ac_exec_ext in '' $ac_executable_extensions; do 4203 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4204 ac_cv_prog_ac_ct_CC="gcc" 4205 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4206 break 2 4207 fi 4208done 4209 done 4210IFS=$as_save_IFS 4211 4212fi ;; 4213esac 4214fi 4215ac_ct_CC=$ac_cv_prog_ac_ct_CC 4216if test -n "$ac_ct_CC"; then 4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4218printf "%s\n" "$ac_ct_CC" >&6; } 4219else 4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4221printf "%s\n" "no" >&6; } 4222fi 4223 4224 if test "x$ac_ct_CC" = x; then 4225 CC="" 4226 else 4227 case $cross_compiling:$ac_tool_warned in 4228yes:) 4229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4230printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4231ac_tool_warned=yes ;; 4232esac 4233 CC=$ac_ct_CC 4234 fi 4235else 4236 CC="$ac_cv_prog_CC" 4237fi 4238 4239if test -z "$CC"; then 4240 if test -n "$ac_tool_prefix"; then 4241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4242set dummy ${ac_tool_prefix}cc; ac_word=$2 4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4244printf %s "checking for $ac_word... " >&6; } 4245if test ${ac_cv_prog_CC+y} 4246then : 4247 printf %s "(cached) " >&6 4248else case e in #( 4249 e) if test -n "$CC"; then 4250 ac_cv_prog_CC="$CC" # Let the user override the test. 4251else 4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4253for as_dir in $PATH 4254do 4255 IFS=$as_save_IFS 4256 case $as_dir in #((( 4257 '') as_dir=./ ;; 4258 */) ;; 4259 *) as_dir=$as_dir/ ;; 4260 esac 4261 for ac_exec_ext in '' $ac_executable_extensions; do 4262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4263 ac_cv_prog_CC="${ac_tool_prefix}cc" 4264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4265 break 2 4266 fi 4267done 4268 done 4269IFS=$as_save_IFS 4270 4271fi ;; 4272esac 4273fi 4274CC=$ac_cv_prog_CC 4275if test -n "$CC"; then 4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4277printf "%s\n" "$CC" >&6; } 4278else 4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4280printf "%s\n" "no" >&6; } 4281fi 4282 4283 4284 fi 4285fi 4286if test -z "$CC"; then 4287 # Extract the first word of "cc", so it can be a program name with args. 4288set dummy cc; ac_word=$2 4289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4290printf %s "checking for $ac_word... " >&6; } 4291if test ${ac_cv_prog_CC+y} 4292then : 4293 printf %s "(cached) " >&6 4294else case e in #( 4295 e) if test -n "$CC"; then 4296 ac_cv_prog_CC="$CC" # Let the user override the test. 4297else 4298 ac_prog_rejected=no 4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH 4301do 4302 IFS=$as_save_IFS 4303 case $as_dir in #((( 4304 '') as_dir=./ ;; 4305 */) ;; 4306 *) as_dir=$as_dir/ ;; 4307 esac 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4310 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4311 ac_prog_rejected=yes 4312 continue 4313 fi 4314 ac_cv_prog_CC="cc" 4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4316 break 2 4317 fi 4318done 4319 done 4320IFS=$as_save_IFS 4321 4322if test $ac_prog_rejected = yes; then 4323 # We found a bogon in the path, so make sure we never use it. 4324 set dummy $ac_cv_prog_CC 4325 shift 4326 if test $# != 0; then 4327 # We chose a different compiler from the bogus one. 4328 # However, it has the same basename, so the bogon will be chosen 4329 # first if we set CC to just the basename; use the full file name. 4330 shift 4331 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 4332 fi 4333fi 4334fi ;; 4335esac 4336fi 4337CC=$ac_cv_prog_CC 4338if test -n "$CC"; then 4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4340printf "%s\n" "$CC" >&6; } 4341else 4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4343printf "%s\n" "no" >&6; } 4344fi 4345 4346 4347fi 4348if test -z "$CC"; then 4349 if test -n "$ac_tool_prefix"; then 4350 for ac_prog in cl.exe 4351 do 4352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4353set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4355printf %s "checking for $ac_word... " >&6; } 4356if test ${ac_cv_prog_CC+y} 4357then : 4358 printf %s "(cached) " >&6 4359else case e in #( 4360 e) if test -n "$CC"; then 4361 ac_cv_prog_CC="$CC" # Let the user override the test. 4362else 4363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4364for as_dir in $PATH 4365do 4366 IFS=$as_save_IFS 4367 case $as_dir in #((( 4368 '') as_dir=./ ;; 4369 */) ;; 4370 *) as_dir=$as_dir/ ;; 4371 esac 4372 for ac_exec_ext in '' $ac_executable_extensions; do 4373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4374 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4376 break 2 4377 fi 4378done 4379 done 4380IFS=$as_save_IFS 4381 4382fi ;; 4383esac 4384fi 4385CC=$ac_cv_prog_CC 4386if test -n "$CC"; then 4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4388printf "%s\n" "$CC" >&6; } 4389else 4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4391printf "%s\n" "no" >&6; } 4392fi 4393 4394 4395 test -n "$CC" && break 4396 done 4397fi 4398if test -z "$CC"; then 4399 ac_ct_CC=$CC 4400 for ac_prog in cl.exe 4401do 4402 # Extract the first word of "$ac_prog", so it can be a program name with args. 4403set dummy $ac_prog; ac_word=$2 4404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4405printf %s "checking for $ac_word... " >&6; } 4406if test ${ac_cv_prog_ac_ct_CC+y} 4407then : 4408 printf %s "(cached) " >&6 4409else case e in #( 4410 e) if test -n "$ac_ct_CC"; then 4411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4412else 4413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4414for as_dir in $PATH 4415do 4416 IFS=$as_save_IFS 4417 case $as_dir in #((( 4418 '') as_dir=./ ;; 4419 */) ;; 4420 *) as_dir=$as_dir/ ;; 4421 esac 4422 for ac_exec_ext in '' $ac_executable_extensions; do 4423 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4424 ac_cv_prog_ac_ct_CC="$ac_prog" 4425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4426 break 2 4427 fi 4428done 4429 done 4430IFS=$as_save_IFS 4431 4432fi ;; 4433esac 4434fi 4435ac_ct_CC=$ac_cv_prog_ac_ct_CC 4436if test -n "$ac_ct_CC"; then 4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4438printf "%s\n" "$ac_ct_CC" >&6; } 4439else 4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4441printf "%s\n" "no" >&6; } 4442fi 4443 4444 4445 test -n "$ac_ct_CC" && break 4446done 4447 4448 if test "x$ac_ct_CC" = x; then 4449 CC="" 4450 else 4451 case $cross_compiling:$ac_tool_warned in 4452yes:) 4453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4454printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4455ac_tool_warned=yes ;; 4456esac 4457 CC=$ac_ct_CC 4458 fi 4459fi 4460 4461fi 4462if test -z "$CC"; then 4463 if test -n "$ac_tool_prefix"; then 4464 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 4465set dummy ${ac_tool_prefix}clang; ac_word=$2 4466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4467printf %s "checking for $ac_word... " >&6; } 4468if test ${ac_cv_prog_CC+y} 4469then : 4470 printf %s "(cached) " >&6 4471else case e in #( 4472 e) if test -n "$CC"; then 4473 ac_cv_prog_CC="$CC" # Let the user override the test. 4474else 4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4476for as_dir in $PATH 4477do 4478 IFS=$as_save_IFS 4479 case $as_dir in #((( 4480 '') as_dir=./ ;; 4481 */) ;; 4482 *) as_dir=$as_dir/ ;; 4483 esac 4484 for ac_exec_ext in '' $ac_executable_extensions; do 4485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4486 ac_cv_prog_CC="${ac_tool_prefix}clang" 4487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4488 break 2 4489 fi 4490done 4491 done 4492IFS=$as_save_IFS 4493 4494fi ;; 4495esac 4496fi 4497CC=$ac_cv_prog_CC 4498if test -n "$CC"; then 4499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4500printf "%s\n" "$CC" >&6; } 4501else 4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4503printf "%s\n" "no" >&6; } 4504fi 4505 4506 4507fi 4508if test -z "$ac_cv_prog_CC"; then 4509 ac_ct_CC=$CC 4510 # Extract the first word of "clang", so it can be a program name with args. 4511set dummy clang; ac_word=$2 4512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4513printf %s "checking for $ac_word... " >&6; } 4514if test ${ac_cv_prog_ac_ct_CC+y} 4515then : 4516 printf %s "(cached) " >&6 4517else case e in #( 4518 e) if test -n "$ac_ct_CC"; then 4519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4520else 4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 case $as_dir in #((( 4526 '') as_dir=./ ;; 4527 */) ;; 4528 *) as_dir=$as_dir/ ;; 4529 esac 4530 for ac_exec_ext in '' $ac_executable_extensions; do 4531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4532 ac_cv_prog_ac_ct_CC="clang" 4533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4534 break 2 4535 fi 4536done 4537 done 4538IFS=$as_save_IFS 4539 4540fi ;; 4541esac 4542fi 4543ac_ct_CC=$ac_cv_prog_ac_ct_CC 4544if test -n "$ac_ct_CC"; then 4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4546printf "%s\n" "$ac_ct_CC" >&6; } 4547else 4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4549printf "%s\n" "no" >&6; } 4550fi 4551 4552 if test "x$ac_ct_CC" = x; then 4553 CC="" 4554 else 4555 case $cross_compiling:$ac_tool_warned in 4556yes:) 4557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4558printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4559ac_tool_warned=yes ;; 4560esac 4561 CC=$ac_ct_CC 4562 fi 4563else 4564 CC="$ac_cv_prog_CC" 4565fi 4566 4567fi 4568 4569 4570test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4571printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4572as_fn_error $? "no acceptable C compiler found in \$PATH 4573See 'config.log' for more details" "$LINENO" 5; } 4574 4575# Provide some information about the compiler. 4576printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4577set X $ac_compile 4578ac_compiler=$2 4579for ac_option in --version -v -V -qversion -version; do 4580 { { ac_try="$ac_compiler $ac_option >&5" 4581case "(($ac_try" in 4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4583 *) ac_try_echo=$ac_try;; 4584esac 4585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4586printf "%s\n" "$ac_try_echo"; } >&5 4587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4588 ac_status=$? 4589 if test -s conftest.err; then 4590 sed '10a\ 4591... rest of stderr output deleted ... 4592 10q' conftest.err >conftest.er1 4593 cat conftest.er1 >&5 4594 fi 4595 rm -f conftest.er1 conftest.err 4596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4597 test $ac_status = 0; } 4598done 4599 4600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4601/* end confdefs.h. */ 4602 4603int 4604main (void) 4605{ 4606 4607 ; 4608 return 0; 4609} 4610_ACEOF 4611ac_clean_files_save=$ac_clean_files 4612ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4613# Try to create an executable without -o first, disregard a.out. 4614# It will help us diagnose broken compilers, and finding out an intuition 4615# of exeext. 4616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4617printf %s "checking whether the C compiler works... " >&6; } 4618ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4619 4620# The possible output files: 4621ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4622 4623ac_rmfiles= 4624for ac_file in $ac_files 4625do 4626 case $ac_file in 4627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4628 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4629 esac 4630done 4631rm -f $ac_rmfiles 4632 4633if { { ac_try="$ac_link_default" 4634case "(($ac_try" in 4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4636 *) ac_try_echo=$ac_try;; 4637esac 4638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4639printf "%s\n" "$ac_try_echo"; } >&5 4640 (eval "$ac_link_default") 2>&5 4641 ac_status=$? 4642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4643 test $ac_status = 0; } 4644then : 4645 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. 4646# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' 4647# in a Makefile. We should not override ac_cv_exeext if it was cached, 4648# so that the user can short-circuit this test for compilers unknown to 4649# Autoconf. 4650for ac_file in $ac_files '' 4651do 4652 test -f "$ac_file" || continue 4653 case $ac_file in 4654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4655 ;; 4656 [ab].out ) 4657 # We found the default executable, but exeext='' is most 4658 # certainly right. 4659 break;; 4660 *.* ) 4661 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 4662 then :; else 4663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4664 fi 4665 # We set ac_cv_exeext here because the later test for it is not 4666 # safe: cross compilers may not add the suffix if given an '-o' 4667 # argument, so we may need to know it at that point already. 4668 # Even if this section looks crufty: it has the advantage of 4669 # actually working. 4670 break;; 4671 * ) 4672 break;; 4673 esac 4674done 4675test "$ac_cv_exeext" = no && ac_cv_exeext= 4676 4677else case e in #( 4678 e) ac_file='' ;; 4679esac 4680fi 4681if test -z "$ac_file" 4682then : 4683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4684printf "%s\n" "no" >&6; } 4685printf "%s\n" "$as_me: failed program was:" >&5 4686sed 's/^/| /' conftest.$ac_ext >&5 4687 4688{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4689printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4690as_fn_error 77 "C compiler cannot create executables 4691See 'config.log' for more details" "$LINENO" 5; } 4692else case e in #( 4693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4694printf "%s\n" "yes" >&6; } ;; 4695esac 4696fi 4697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4698printf %s "checking for C compiler default output file name... " >&6; } 4699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4700printf "%s\n" "$ac_file" >&6; } 4701ac_exeext=$ac_cv_exeext 4702 4703rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4704ac_clean_files=$ac_clean_files_save 4705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4706printf %s "checking for suffix of executables... " >&6; } 4707if { { ac_try="$ac_link" 4708case "(($ac_try" in 4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4710 *) ac_try_echo=$ac_try;; 4711esac 4712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4713printf "%s\n" "$ac_try_echo"; } >&5 4714 (eval "$ac_link") 2>&5 4715 ac_status=$? 4716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4717 test $ac_status = 0; } 4718then : 4719 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) 4720# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will 4721# work properly (i.e., refer to 'conftest.exe'), while it won't with 4722# 'rm'. 4723for ac_file in conftest.exe conftest conftest.*; do 4724 test -f "$ac_file" || continue 4725 case $ac_file in 4726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4727 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4728 break;; 4729 * ) break;; 4730 esac 4731done 4732else case e in #( 4733 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4734printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4735as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4736See 'config.log' for more details" "$LINENO" 5; } ;; 4737esac 4738fi 4739rm -f conftest conftest$ac_cv_exeext 4740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4741printf "%s\n" "$ac_cv_exeext" >&6; } 4742 4743rm -f conftest.$ac_ext 4744EXEEXT=$ac_cv_exeext 4745ac_exeext=$EXEEXT 4746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748#include <stdio.h> 4749int 4750main (void) 4751{ 4752FILE *f = fopen ("conftest.out", "w"); 4753 if (!f) 4754 return 1; 4755 return ferror (f) || fclose (f) != 0; 4756 4757 ; 4758 return 0; 4759} 4760_ACEOF 4761ac_clean_files="$ac_clean_files conftest.out" 4762# Check that the compiler produces executables we can run. If not, either 4763# the compiler is broken, or we cross compile. 4764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4765printf %s "checking whether we are cross compiling... " >&6; } 4766if test "$cross_compiling" != yes; then 4767 { { ac_try="$ac_link" 4768case "(($ac_try" in 4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4770 *) ac_try_echo=$ac_try;; 4771esac 4772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4773printf "%s\n" "$ac_try_echo"; } >&5 4774 (eval "$ac_link") 2>&5 4775 ac_status=$? 4776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4777 test $ac_status = 0; } 4778 if { ac_try='./conftest$ac_cv_exeext' 4779 { { case "(($ac_try" in 4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4781 *) ac_try_echo=$ac_try;; 4782esac 4783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4784printf "%s\n" "$ac_try_echo"; } >&5 4785 (eval "$ac_try") 2>&5 4786 ac_status=$? 4787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4788 test $ac_status = 0; }; }; then 4789 cross_compiling=no 4790 else 4791 if test "$cross_compiling" = maybe; then 4792 cross_compiling=yes 4793 else 4794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4795printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4796as_fn_error 77 "cannot run C compiled programs. 4797If you meant to cross compile, use '--host'. 4798See 'config.log' for more details" "$LINENO" 5; } 4799 fi 4800 fi 4801fi 4802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4803printf "%s\n" "$cross_compiling" >&6; } 4804 4805rm -f conftest.$ac_ext conftest$ac_cv_exeext \ 4806 conftest.o conftest.obj conftest.out 4807ac_clean_files=$ac_clean_files_save 4808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4809printf %s "checking for suffix of object files... " >&6; } 4810if test ${ac_cv_objext+y} 4811then : 4812 printf %s "(cached) " >&6 4813else case e in #( 4814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4815/* end confdefs.h. */ 4816 4817int 4818main (void) 4819{ 4820 4821 ; 4822 return 0; 4823} 4824_ACEOF 4825rm -f conftest.o conftest.obj 4826if { { ac_try="$ac_compile" 4827case "(($ac_try" in 4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4829 *) ac_try_echo=$ac_try;; 4830esac 4831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4832printf "%s\n" "$ac_try_echo"; } >&5 4833 (eval "$ac_compile") 2>&5 4834 ac_status=$? 4835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4836 test $ac_status = 0; } 4837then : 4838 for ac_file in conftest.o conftest.obj conftest.*; do 4839 test -f "$ac_file" || continue; 4840 case $ac_file in 4841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4842 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4843 break;; 4844 esac 4845done 4846else case e in #( 4847 e) printf "%s\n" "$as_me: failed program was:" >&5 4848sed 's/^/| /' conftest.$ac_ext >&5 4849 4850{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 4851printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 4852as_fn_error $? "cannot compute suffix of object files: cannot compile 4853See 'config.log' for more details" "$LINENO" 5; } ;; 4854esac 4855fi 4856rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; 4857esac 4858fi 4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4860printf "%s\n" "$ac_cv_objext" >&6; } 4861OBJEXT=$ac_cv_objext 4862ac_objext=$OBJEXT 4863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 4864printf %s "checking whether the compiler supports GNU C... " >&6; } 4865if test ${ac_cv_c_compiler_gnu+y} 4866then : 4867 printf %s "(cached) " >&6 4868else case e in #( 4869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4870/* end confdefs.h. */ 4871 4872int 4873main (void) 4874{ 4875#ifndef __GNUC__ 4876 choke me 4877#endif 4878 4879 ; 4880 return 0; 4881} 4882_ACEOF 4883if ac_fn_c_try_compile "$LINENO" 4884then : 4885 ac_compiler_gnu=yes 4886else case e in #( 4887 e) ac_compiler_gnu=no ;; 4888esac 4889fi 4890rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4891ac_cv_c_compiler_gnu=$ac_compiler_gnu 4892 ;; 4893esac 4894fi 4895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4896printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 4897ac_compiler_gnu=$ac_cv_c_compiler_gnu 4898 4899if test $ac_compiler_gnu = yes; then 4900 GCC=yes 4901else 4902 GCC= 4903fi 4904ac_test_CFLAGS=${CFLAGS+y} 4905ac_save_CFLAGS=$CFLAGS 4906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4907printf %s "checking whether $CC accepts -g... " >&6; } 4908if test ${ac_cv_prog_cc_g+y} 4909then : 4910 printf %s "(cached) " >&6 4911else case e in #( 4912 e) ac_save_c_werror_flag=$ac_c_werror_flag 4913 ac_c_werror_flag=yes 4914 ac_cv_prog_cc_g=no 4915 CFLAGS="-g" 4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917/* end confdefs.h. */ 4918 4919int 4920main (void) 4921{ 4922 4923 ; 4924 return 0; 4925} 4926_ACEOF 4927if ac_fn_c_try_compile "$LINENO" 4928then : 4929 ac_cv_prog_cc_g=yes 4930else case e in #( 4931 e) CFLAGS="" 4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4933/* end confdefs.h. */ 4934 4935int 4936main (void) 4937{ 4938 4939 ; 4940 return 0; 4941} 4942_ACEOF 4943if ac_fn_c_try_compile "$LINENO" 4944then : 4945 4946else case e in #( 4947 e) ac_c_werror_flag=$ac_save_c_werror_flag 4948 CFLAGS="-g" 4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4950/* end confdefs.h. */ 4951 4952int 4953main (void) 4954{ 4955 4956 ; 4957 return 0; 4958} 4959_ACEOF 4960if ac_fn_c_try_compile "$LINENO" 4961then : 4962 ac_cv_prog_cc_g=yes 4963fi 4964rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4965esac 4966fi 4967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 4968esac 4969fi 4970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4971 ac_c_werror_flag=$ac_save_c_werror_flag ;; 4972esac 4973fi 4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4975printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 4976if test $ac_test_CFLAGS; then 4977 CFLAGS=$ac_save_CFLAGS 4978elif test $ac_cv_prog_cc_g = yes; then 4979 if test "$GCC" = yes; then 4980 CFLAGS="-g -O2" 4981 else 4982 CFLAGS="-g" 4983 fi 4984else 4985 if test "$GCC" = yes; then 4986 CFLAGS="-O2" 4987 else 4988 CFLAGS= 4989 fi 4990fi 4991ac_prog_cc_stdc=no 4992if test x$ac_prog_cc_stdc = xno 4993then : 4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 4995printf %s "checking for $CC option to enable C11 features... " >&6; } 4996if test ${ac_cv_prog_cc_c11+y} 4997then : 4998 printf %s "(cached) " >&6 4999else case e in #( 5000 e) ac_cv_prog_cc_c11=no 5001ac_save_CC=$CC 5002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5003/* end confdefs.h. */ 5004$ac_c_conftest_c11_program 5005_ACEOF 5006for ac_arg in '' -std=gnu11 5007do 5008 CC="$ac_save_CC $ac_arg" 5009 if ac_fn_c_try_compile "$LINENO" 5010then : 5011 ac_cv_prog_cc_c11=$ac_arg 5012fi 5013rm -f core conftest.err conftest.$ac_objext conftest.beam 5014 test "x$ac_cv_prog_cc_c11" != "xno" && break 5015done 5016rm -f conftest.$ac_ext 5017CC=$ac_save_CC ;; 5018esac 5019fi 5020 5021if test "x$ac_cv_prog_cc_c11" = xno 5022then : 5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5024printf "%s\n" "unsupported" >&6; } 5025else case e in #( 5026 e) if test "x$ac_cv_prog_cc_c11" = x 5027then : 5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5029printf "%s\n" "none needed" >&6; } 5030else case e in #( 5031 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5032printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5033 CC="$CC $ac_cv_prog_cc_c11" ;; 5034esac 5035fi 5036 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5037 ac_prog_cc_stdc=c11 ;; 5038esac 5039fi 5040fi 5041if test x$ac_prog_cc_stdc = xno 5042then : 5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5044printf %s "checking for $CC option to enable C99 features... " >&6; } 5045if test ${ac_cv_prog_cc_c99+y} 5046then : 5047 printf %s "(cached) " >&6 5048else case e in #( 5049 e) ac_cv_prog_cc_c99=no 5050ac_save_CC=$CC 5051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053$ac_c_conftest_c99_program 5054_ACEOF 5055for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5056do 5057 CC="$ac_save_CC $ac_arg" 5058 if ac_fn_c_try_compile "$LINENO" 5059then : 5060 ac_cv_prog_cc_c99=$ac_arg 5061fi 5062rm -f core conftest.err conftest.$ac_objext conftest.beam 5063 test "x$ac_cv_prog_cc_c99" != "xno" && break 5064done 5065rm -f conftest.$ac_ext 5066CC=$ac_save_CC ;; 5067esac 5068fi 5069 5070if test "x$ac_cv_prog_cc_c99" = xno 5071then : 5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5073printf "%s\n" "unsupported" >&6; } 5074else case e in #( 5075 e) if test "x$ac_cv_prog_cc_c99" = x 5076then : 5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5078printf "%s\n" "none needed" >&6; } 5079else case e in #( 5080 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5081printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5082 CC="$CC $ac_cv_prog_cc_c99" ;; 5083esac 5084fi 5085 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5086 ac_prog_cc_stdc=c99 ;; 5087esac 5088fi 5089fi 5090if test x$ac_prog_cc_stdc = xno 5091then : 5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5093printf %s "checking for $CC option to enable C89 features... " >&6; } 5094if test ${ac_cv_prog_cc_c89+y} 5095then : 5096 printf %s "(cached) " >&6 5097else case e in #( 5098 e) ac_cv_prog_cc_c89=no 5099ac_save_CC=$CC 5100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101/* end confdefs.h. */ 5102$ac_c_conftest_c89_program 5103_ACEOF 5104for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5105do 5106 CC="$ac_save_CC $ac_arg" 5107 if ac_fn_c_try_compile "$LINENO" 5108then : 5109 ac_cv_prog_cc_c89=$ac_arg 5110fi 5111rm -f core conftest.err conftest.$ac_objext conftest.beam 5112 test "x$ac_cv_prog_cc_c89" != "xno" && break 5113done 5114rm -f conftest.$ac_ext 5115CC=$ac_save_CC ;; 5116esac 5117fi 5118 5119if test "x$ac_cv_prog_cc_c89" = xno 5120then : 5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5122printf "%s\n" "unsupported" >&6; } 5123else case e in #( 5124 e) if test "x$ac_cv_prog_cc_c89" = x 5125then : 5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5127printf "%s\n" "none needed" >&6; } 5128else case e in #( 5129 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5130printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5131 CC="$CC $ac_cv_prog_cc_c89" ;; 5132esac 5133fi 5134 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5135 ac_prog_cc_stdc=c89 ;; 5136esac 5137fi 5138fi 5139 5140ac_ext=c 5141ac_cpp='$CPP $CPPFLAGS' 5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5144ac_compiler_gnu=$ac_cv_c_compiler_gnu 5145 5146 5147 ac_ext=c 5148ac_cpp='$CPP $CPPFLAGS' 5149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5151ac_compiler_gnu=$ac_cv_c_compiler_gnu 5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5153printf %s "checking whether $CC understands -c and -o together... " >&6; } 5154if test ${am_cv_prog_cc_c_o+y} 5155then : 5156 printf %s "(cached) " >&6 5157else case e in #( 5158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160 5161int 5162main (void) 5163{ 5164 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169 # Make sure it works both with $CC and with simple cc. 5170 # Following AC_PROG_CC_C_O, we do the test twice because some 5171 # compilers refuse to overwrite an existing .o file with -o, 5172 # though they will create one. 5173 am_cv_prog_cc_c_o=yes 5174 for am_i in 1 2; do 5175 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5176 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5177 ac_status=$? 5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5179 (exit $ac_status); } \ 5180 && test -f conftest2.$ac_objext; then 5181 : OK 5182 else 5183 am_cv_prog_cc_c_o=no 5184 break 5185 fi 5186 done 5187 # aligned with autoconf, so not including core; see bug#72225. 5188 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \ 5189 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \ 5190 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM 5191 unset am_i ;; 5192esac 5193fi 5194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5195printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } 5196if test "$am_cv_prog_cc_c_o" != yes; then 5197 # Losing compiler, so override with the script. 5198 # FIXME: It is wrong to rewrite CC. 5199 # But if we don't then we get into trouble of one sort or another. 5200 # A longer-term fix would be to have automake use am__CC in this case, 5201 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5202 CC="$am_aux_dir/compile $CC" 5203fi 5204ac_ext=c 5205ac_cpp='$CPP $CPPFLAGS' 5206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5208ac_compiler_gnu=$ac_cv_c_compiler_gnu 5209 5210DEPDIR="${am__leading_dot}deps" 5211 5212ac_config_commands="$ac_config_commands depfiles" 5213 5214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 5215printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } 5216cat > confinc.mk << 'END' 5217am__doit: 5218 @echo this is the am__doit target >confinc.out 5219.PHONY: am__doit 5220END 5221am__include="#" 5222am__quote= 5223# BSD make does it like this. 5224echo '.include "confinc.mk" # ignored' > confmf.BSD 5225# Other make implementations (GNU, Solaris 10, AIX) do it like this. 5226echo 'include confinc.mk # ignored' > confmf.GNU 5227_am_result=no 5228for s in GNU BSD; do 5229 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 5230 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 5231 ac_status=$? 5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5233 (exit $ac_status); } 5234 case $?:`cat confinc.out 2>/dev/null` in #( 5235 '0:this is the am__doit target') : 5236 case $s in #( 5237 BSD) : 5238 am__include='.include' am__quote='"' ;; #( 5239 *) : 5240 am__include='include' am__quote='' ;; 5241esac ;; #( 5242 *) : 5243 ;; 5244esac 5245 if test "$am__include" != "#"; then 5246 _am_result="yes ($s style)" 5247 break 5248 fi 5249done 5250rm -f confinc.* confmf.* 5251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 5252printf "%s\n" "${_am_result}" >&6; } 5253 5254# Check whether --enable-dependency-tracking was given. 5255if test ${enable_dependency_tracking+y} 5256then : 5257 enableval=$enable_dependency_tracking; 5258fi 5259 5260if test "x$enable_dependency_tracking" != xno; then 5261 am_depcomp="$ac_aux_dir/depcomp" 5262 AMDEPBACKSLASH='\' 5263 am__nodep='_no' 5264fi 5265 if test "x$enable_dependency_tracking" != xno; then 5266 AMDEP_TRUE= 5267 AMDEP_FALSE='#' 5268else 5269 AMDEP_TRUE='#' 5270 AMDEP_FALSE= 5271fi 5272 5273 5274 5275depcc="$CC" am_compiler_list= 5276 5277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5278printf %s "checking dependency style of $depcc... " >&6; } 5279if test ${am_cv_CC_dependencies_compiler_type+y} 5280then : 5281 printf %s "(cached) " >&6 5282else case e in #( 5283 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5284 # We make a subdir and do the tests there. Otherwise we can end up 5285 # making bogus files that we don't know about and never remove. For 5286 # instance it was reported that on HP-UX the gcc test will end up 5287 # making a dummy file named 'D' -- because '-MD' means "put the output 5288 # in D". 5289 rm -rf conftest.dir 5290 mkdir conftest.dir 5291 # Copy depcomp to subdir because otherwise we won't find it if we're 5292 # using a relative directory. 5293 cp "$am_depcomp" conftest.dir 5294 cd conftest.dir 5295 # We will build objects and dependencies in a subdirectory because 5296 # it helps to detect inapplicable dependency modes. For instance 5297 # both Tru64's cc and ICC support -MD to output dependencies as a 5298 # side effect of compilation, but ICC will put the dependencies in 5299 # the current directory while Tru64 will put them in the object 5300 # directory. 5301 mkdir sub 5302 5303 am_cv_CC_dependencies_compiler_type=none 5304 if test "$am_compiler_list" = ""; then 5305 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5306 fi 5307 am__universal=false 5308 case " $depcc " in #( 5309 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5310 esac 5311 5312 for depmode in $am_compiler_list; do 5313 # Setup a source with many dependencies, because some compilers 5314 # like to wrap large dependency lists on column 80 (with \), and 5315 # we should not choose a depcomp mode which is confused by this. 5316 # 5317 # We need to recreate these files for each test, as the compiler may 5318 # overwrite some of them when testing with obscure command lines. 5319 # This happens at least with the AIX C compiler. 5320 : > sub/conftest.c 5321 for i in 1 2 3 4 5 6; do 5322 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5323 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5324 # Solaris 10 /bin/sh. 5325 echo '/* dummy */' > sub/conftst$i.h 5326 done 5327 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5328 5329 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5330 # mode. It turns out that the SunPro C++ compiler does not properly 5331 # handle '-M -o', and we need to detect this. Also, some Intel 5332 # versions had trouble with output in subdirs. 5333 am__obj=sub/conftest.${OBJEXT-o} 5334 am__minus_obj="-o $am__obj" 5335 case $depmode in 5336 gcc) 5337 # This depmode causes a compiler race in universal mode. 5338 test "$am__universal" = false || continue 5339 ;; 5340 nosideeffect) 5341 # After this tag, mechanisms are not by side-effect, so they'll 5342 # only be used when explicitly requested. 5343 if test "x$enable_dependency_tracking" = xyes; then 5344 continue 5345 else 5346 break 5347 fi 5348 ;; 5349 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5350 # This compiler won't grok '-c -o', but also, the minuso test has 5351 # not run yet. These depmodes are late enough in the game, and 5352 # so weak that their functioning should not be impacted. 5353 am__obj=conftest.${OBJEXT-o} 5354 am__minus_obj= 5355 ;; 5356 none) break ;; 5357 esac 5358 if depmode=$depmode \ 5359 source=sub/conftest.c object=$am__obj \ 5360 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5361 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5362 >/dev/null 2>conftest.err && 5363 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5364 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5365 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5366 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5367 # icc doesn't choke on unknown options, it will just issue warnings 5368 # or remarks (even with -Werror). So we grep stderr for any message 5369 # that says an option was ignored or not supported. 5370 # When given -MP, icc 7.0 and 7.1 complain thus: 5371 # icc: Command line warning: ignoring option '-M'; no argument required 5372 # The diagnosis changed in icc 8.0: 5373 # icc: Command line remark: option '-MP' not supported 5374 if (grep 'ignoring option' conftest.err || 5375 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5376 am_cv_CC_dependencies_compiler_type=$depmode 5377 break 5378 fi 5379 fi 5380 done 5381 5382 cd .. 5383 rm -rf conftest.dir 5384else 5385 am_cv_CC_dependencies_compiler_type=none 5386fi 5387 ;; 5388esac 5389fi 5390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5391printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 5392CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5393 5394 if 5395 test "x$enable_dependency_tracking" != xno \ 5396 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5397 am__fastdepCC_TRUE= 5398 am__fastdepCC_FALSE='#' 5399else 5400 am__fastdepCC_TRUE='#' 5401 am__fastdepCC_FALSE= 5402fi 5403 5404 5405 5406ac_header= ac_cache= 5407for ac_item in $ac_header_c_list 5408do 5409 if test $ac_cache; then 5410 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 5411 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 5412 printf "%s\n" "#define $ac_item 1" >> confdefs.h 5413 fi 5414 ac_header= ac_cache= 5415 elif test $ac_header; then 5416 ac_cache=$ac_item 5417 else 5418 ac_header=$ac_item 5419 fi 5420done 5421 5422 5423 5424 5425 5426 5427 5428 5429if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 5430then : 5431 5432printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 5433 5434fi 5435 5436 5437 5438 5439 5440 5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5442printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5443if test ${ac_cv_safe_to_define___extensions__+y} 5444then : 5445 printf %s "(cached) " >&6 5446else case e in #( 5447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5448/* end confdefs.h. */ 5449 5450# define __EXTENSIONS__ 1 5451 $ac_includes_default 5452int 5453main (void) 5454{ 5455 5456 ; 5457 return 0; 5458} 5459_ACEOF 5460if ac_fn_c_try_compile "$LINENO" 5461then : 5462 ac_cv_safe_to_define___extensions__=yes 5463else case e in #( 5464 e) ac_cv_safe_to_define___extensions__=no ;; 5465esac 5466fi 5467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5468esac 5469fi 5470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5471printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 5472 5473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 5474printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 5475if test ${ac_cv_should_define__xopen_source+y} 5476then : 5477 printf %s "(cached) " >&6 5478else case e in #( 5479 e) ac_cv_should_define__xopen_source=no 5480 if test $ac_cv_header_wchar_h = yes 5481then : 5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5483/* end confdefs.h. */ 5484 5485 #include <wchar.h> 5486 mbstate_t x; 5487int 5488main (void) 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_compile "$LINENO" 5496then : 5497 5498else case e in #( 5499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5500/* end confdefs.h. */ 5501 5502 #define _XOPEN_SOURCE 500 5503 #include <wchar.h> 5504 mbstate_t x; 5505int 5506main (void) 5507{ 5508 5509 ; 5510 return 0; 5511} 5512_ACEOF 5513if ac_fn_c_try_compile "$LINENO" 5514then : 5515 ac_cv_should_define__xopen_source=yes 5516fi 5517rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5518esac 5519fi 5520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5521fi ;; 5522esac 5523fi 5524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 5525printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 5526 5527 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 5528 5529 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 5530 5531 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 5532 5533 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 5534 5535 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 5536 5537 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 5538 5539 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5540 5541 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 5542 5543 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 5544 5545 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 5546 5547 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h 5548 5549 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 5550 5551 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 5552 5553 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 5554 5555 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 5556 5557 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 5558 5559 if test $ac_cv_header_minix_config_h = yes 5560then : 5561 MINIX=yes 5562 printf "%s\n" "#define _MINIX 1" >>confdefs.h 5563 5564 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 5565 5566 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 5567 5568else case e in #( 5569 e) MINIX= ;; 5570esac 5571fi 5572 if test $ac_cv_safe_to_define___extensions__ = yes 5573then : 5574 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 5575 5576fi 5577 if test $ac_cv_should_define__xopen_source = yes 5578then : 5579 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 5580 5581fi 5582 5583 5584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 5585printf %s "checking whether byte ordering is bigendian... " >&6; } 5586if test ${ac_cv_c_bigendian+y} 5587then : 5588 printf %s "(cached) " >&6 5589else case e in #( 5590 e) ac_cv_c_bigendian=unknown 5591 # See if we're dealing with a universal compiler. 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594#ifndef __APPLE_CC__ 5595 not a universal capable compiler 5596 #endif 5597 typedef int dummy; 5598 5599_ACEOF 5600if ac_fn_c_try_compile "$LINENO" 5601then : 5602 5603 # Check for potential -arch flags. It is not universal unless 5604 # there are at least two -arch flags with different values. 5605 ac_arch= 5606 ac_prev= 5607 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 5608 if test -n "$ac_prev"; then 5609 case $ac_word in 5610 i?86 | x86_64 | ppc | ppc64) 5611 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 5612 ac_arch=$ac_word 5613 else 5614 ac_cv_c_bigendian=universal 5615 break 5616 fi 5617 ;; 5618 esac 5619 ac_prev= 5620 elif test "x$ac_word" = "x-arch"; then 5621 ac_prev=arch 5622 fi 5623 done 5624fi 5625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5626 if test $ac_cv_c_bigendian = unknown; then 5627 # See if sys/param.h defines the BYTE_ORDER macro. 5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5629/* end confdefs.h. */ 5630#include <sys/types.h> 5631 #include <sys/param.h> 5632 5633int 5634main (void) 5635{ 5636#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ 5637 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ 5638 && LITTLE_ENDIAN) 5639 bogus endian macros 5640 #endif 5641 5642 ; 5643 return 0; 5644} 5645_ACEOF 5646if ac_fn_c_try_compile "$LINENO" 5647then : 5648 # It does; now see whether it defined to BIG_ENDIAN or not. 5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650/* end confdefs.h. */ 5651#include <sys/types.h> 5652 #include <sys/param.h> 5653 5654int 5655main (void) 5656{ 5657#if BYTE_ORDER != BIG_ENDIAN 5658 not big endian 5659 #endif 5660 5661 ; 5662 return 0; 5663} 5664_ACEOF 5665if ac_fn_c_try_compile "$LINENO" 5666then : 5667 ac_cv_c_bigendian=yes 5668else case e in #( 5669 e) ac_cv_c_bigendian=no ;; 5670esac 5671fi 5672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5673fi 5674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5675 fi 5676 if test $ac_cv_c_bigendian = unknown; then 5677 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5679/* end confdefs.h. */ 5680#include <limits.h> 5681 5682int 5683main (void) 5684{ 5685#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 5686 bogus endian macros 5687 #endif 5688 5689 ; 5690 return 0; 5691} 5692_ACEOF 5693if ac_fn_c_try_compile "$LINENO" 5694then : 5695 # It does; now see whether it defined to _BIG_ENDIAN or not. 5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5697/* end confdefs.h. */ 5698#include <limits.h> 5699 5700int 5701main (void) 5702{ 5703#ifndef _BIG_ENDIAN 5704 not big endian 5705 #endif 5706 5707 ; 5708 return 0; 5709} 5710_ACEOF 5711if ac_fn_c_try_compile "$LINENO" 5712then : 5713 ac_cv_c_bigendian=yes 5714else case e in #( 5715 e) ac_cv_c_bigendian=no ;; 5716esac 5717fi 5718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5719fi 5720rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5721 fi 5722 if test $ac_cv_c_bigendian = unknown; then 5723 # Compile a test program. 5724 if test "$cross_compiling" = yes 5725then : 5726 # Try to guess by grepping values from an object file. 5727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5728/* end confdefs.h. */ 5729unsigned short int ascii_mm[] = 5730 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 5731 unsigned short int ascii_ii[] = 5732 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 5733 int use_ascii (int i) { 5734 return ascii_mm[i] + ascii_ii[i]; 5735 } 5736 unsigned short int ebcdic_ii[] = 5737 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 5738 unsigned short int ebcdic_mm[] = 5739 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 5740 int use_ebcdic (int i) { 5741 return ebcdic_mm[i] + ebcdic_ii[i]; 5742 } 5743 int 5744 main (int argc, char **argv) 5745 { 5746 /* Intimidate the compiler so that it does not 5747 optimize the arrays away. */ 5748 char *p = argv[0]; 5749 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; 5750 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; 5751 return use_ascii (argc) == use_ebcdic (*p); 5752 } 5753_ACEOF 5754if ac_fn_c_try_link "$LINENO" 5755then : 5756 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then 5757 ac_cv_c_bigendian=yes 5758 fi 5759 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then 5760 if test "$ac_cv_c_bigendian" = unknown; then 5761 ac_cv_c_bigendian=no 5762 else 5763 # finding both strings is unlikely to happen, but who knows? 5764 ac_cv_c_bigendian=unknown 5765 fi 5766 fi 5767fi 5768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5769 conftest$ac_exeext conftest.$ac_ext 5770else case e in #( 5771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772/* end confdefs.h. */ 5773$ac_includes_default 5774int 5775main (void) 5776{ 5777 5778 /* Are we little or big endian? From Harbison&Steele. */ 5779 union 5780 { 5781 long int l; 5782 char c[sizeof (long int)]; 5783 } u; 5784 u.l = 1; 5785 return u.c[sizeof (long int) - 1] == 1; 5786 5787 ; 5788 return 0; 5789} 5790_ACEOF 5791if ac_fn_c_try_run "$LINENO" 5792then : 5793 ac_cv_c_bigendian=no 5794else case e in #( 5795 e) ac_cv_c_bigendian=yes ;; 5796esac 5797fi 5798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5799 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 5800esac 5801fi 5802 5803 fi ;; 5804esac 5805fi 5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 5807printf "%s\n" "$ac_cv_c_bigendian" >&6; } 5808 case $ac_cv_c_bigendian in #( 5809 yes) 5810 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 5811;; #( 5812 no) 5813 ;; #( 5814 universal) 5815 5816printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 5817 5818 ;; #( 5819 *) 5820 as_fn_error $? "unknown endianness 5821 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 5822 esac 5823 5824 5825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5826printf %s "checking whether ln -s works... " >&6; } 5827LN_S=$as_ln_s 5828if test "$LN_S" = "ln -s"; then 5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5830printf "%s\n" "yes" >&6; } 5831else 5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5833printf "%s\n" "no, using $LN_S" >&6; } 5834fi 5835 5836case `pwd` in 5837 *\ * | *\ *) 5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5839printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5840esac 5841 5842 5843 5844macro_version='2.4.7' 5845macro_revision='2.4.7' 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860ltmain=$ac_aux_dir/ltmain.sh 5861 5862# Backslashify metacharacters that are still active within 5863# double-quoted strings. 5864sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5865 5866# Same as above, but do not quote variable references. 5867double_quote_subst='s/\(["`\\]\)/\\\1/g' 5868 5869# Sed substitution to delay expansion of an escaped shell variable in a 5870# double_quote_subst'ed string. 5871delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5872 5873# Sed substitution to delay expansion of an escaped single quote. 5874delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5875 5876# Sed substitution to avoid accidental globbing in evaled expressions 5877no_glob_subst='s/\*/\\\*/g' 5878 5879ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5880ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5881ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5882 5883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5884printf %s "checking how to print strings... " >&6; } 5885# Test print first, because it will be a builtin if present. 5886if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5887 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5888 ECHO='print -r --' 5889elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5890 ECHO='printf %s\n' 5891else 5892 # Use this function as a fallback that always works. 5893 func_fallback_echo () 5894 { 5895 eval 'cat <<_LTECHO_EOF 5896$1 5897_LTECHO_EOF' 5898 } 5899 ECHO='func_fallback_echo' 5900fi 5901 5902# func_echo_all arg... 5903# Invoke $ECHO with all args, space-separated. 5904func_echo_all () 5905{ 5906 $ECHO "" 5907} 5908 5909case $ECHO in 5910 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5911printf "%s\n" "printf" >&6; } ;; 5912 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5913printf "%s\n" "print -r" >&6; } ;; 5914 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5915printf "%s\n" "cat" >&6; } ;; 5916esac 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5932printf %s "checking for a sed that does not truncate output... " >&6; } 5933if test ${ac_cv_path_SED+y} 5934then : 5935 printf %s "(cached) " >&6 5936else case e in #( 5937 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5938 for ac_i in 1 2 3 4 5 6 7; do 5939 ac_script="$ac_script$as_nl$ac_script" 5940 done 5941 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5942 { ac_script=; unset ac_script;} 5943 if test -z "$SED"; then 5944 ac_path_SED_found=false 5945 # Loop through the user's path and test for each of PROGNAME-LIST 5946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5947for as_dir in $PATH 5948do 5949 IFS=$as_save_IFS 5950 case $as_dir in #((( 5951 '') as_dir=./ ;; 5952 */) ;; 5953 *) as_dir=$as_dir/ ;; 5954 esac 5955 for ac_prog in sed gsed 5956 do 5957 for ac_exec_ext in '' $ac_executable_extensions; do 5958 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 5959 as_fn_executable_p "$ac_path_SED" || continue 5960# Check for GNU ac_path_SED and select it if it is found. 5961 # Check for GNU $ac_path_SED 5962case `"$ac_path_SED" --version 2>&1` in #( 5963*GNU*) 5964 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5965#( 5966*) 5967 ac_count=0 5968 printf %s 0123456789 >"conftest.in" 5969 while : 5970 do 5971 cat "conftest.in" "conftest.in" >"conftest.tmp" 5972 mv "conftest.tmp" "conftest.in" 5973 cp "conftest.in" "conftest.nl" 5974 printf "%s\n" '' >> "conftest.nl" 5975 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5977 as_fn_arith $ac_count + 1 && ac_count=$as_val 5978 if test $ac_count -gt ${ac_path_SED_max-0}; then 5979 # Best one so far, save it but keep looking for a better one 5980 ac_cv_path_SED="$ac_path_SED" 5981 ac_path_SED_max=$ac_count 5982 fi 5983 # 10*(2^10) chars as input seems more than enough 5984 test $ac_count -gt 10 && break 5985 done 5986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5987esac 5988 5989 $ac_path_SED_found && break 3 5990 done 5991 done 5992 done 5993IFS=$as_save_IFS 5994 if test -z "$ac_cv_path_SED"; then 5995 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5996 fi 5997else 5998 ac_cv_path_SED=$SED 5999fi 6000 ;; 6001esac 6002fi 6003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6004printf "%s\n" "$ac_cv_path_SED" >&6; } 6005 SED="$ac_cv_path_SED" 6006 rm -f conftest.sed 6007 6008test -z "$SED" && SED=sed 6009Xsed="$SED -e 1s/^X//" 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6022printf %s "checking for grep that handles long lines and -e... " >&6; } 6023if test ${ac_cv_path_GREP+y} 6024then : 6025 printf %s "(cached) " >&6 6026else case e in #( 6027 e) if test -z "$GREP"; then 6028 ac_path_GREP_found=false 6029 # Loop through the user's path and test for each of PROGNAME-LIST 6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6031for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6032do 6033 IFS=$as_save_IFS 6034 case $as_dir in #((( 6035 '') as_dir=./ ;; 6036 */) ;; 6037 *) as_dir=$as_dir/ ;; 6038 esac 6039 for ac_prog in grep ggrep 6040 do 6041 for ac_exec_ext in '' $ac_executable_extensions; do 6042 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 6043 as_fn_executable_p "$ac_path_GREP" || continue 6044# Check for GNU ac_path_GREP and select it if it is found. 6045 # Check for GNU $ac_path_GREP 6046case `"$ac_path_GREP" --version 2>&1` in #( 6047*GNU*) 6048 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6049#( 6050*) 6051 ac_count=0 6052 printf %s 0123456789 >"conftest.in" 6053 while : 6054 do 6055 cat "conftest.in" "conftest.in" >"conftest.tmp" 6056 mv "conftest.tmp" "conftest.in" 6057 cp "conftest.in" "conftest.nl" 6058 printf "%s\n" 'GREP' >> "conftest.nl" 6059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6061 as_fn_arith $ac_count + 1 && ac_count=$as_val 6062 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6063 # Best one so far, save it but keep looking for a better one 6064 ac_cv_path_GREP="$ac_path_GREP" 6065 ac_path_GREP_max=$ac_count 6066 fi 6067 # 10*(2^10) chars as input seems more than enough 6068 test $ac_count -gt 10 && break 6069 done 6070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6071esac 6072 6073 $ac_path_GREP_found && break 3 6074 done 6075 done 6076 done 6077IFS=$as_save_IFS 6078 if test -z "$ac_cv_path_GREP"; then 6079 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6080 fi 6081else 6082 ac_cv_path_GREP=$GREP 6083fi 6084 ;; 6085esac 6086fi 6087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6088printf "%s\n" "$ac_cv_path_GREP" >&6; } 6089 GREP="$ac_cv_path_GREP" 6090 6091 6092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6093printf %s "checking for egrep... " >&6; } 6094if test ${ac_cv_path_EGREP+y} 6095then : 6096 printf %s "(cached) " >&6 6097else case e in #( 6098 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6099 then ac_cv_path_EGREP="$GREP -E" 6100 else 6101 if test -z "$EGREP"; then 6102 ac_path_EGREP_found=false 6103 # Loop through the user's path and test for each of PROGNAME-LIST 6104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6106do 6107 IFS=$as_save_IFS 6108 case $as_dir in #((( 6109 '') as_dir=./ ;; 6110 */) ;; 6111 *) as_dir=$as_dir/ ;; 6112 esac 6113 for ac_prog in egrep 6114 do 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6117 as_fn_executable_p "$ac_path_EGREP" || continue 6118# Check for GNU ac_path_EGREP and select it if it is found. 6119 # Check for GNU $ac_path_EGREP 6120case `"$ac_path_EGREP" --version 2>&1` in #( 6121*GNU*) 6122 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6123#( 6124*) 6125 ac_count=0 6126 printf %s 0123456789 >"conftest.in" 6127 while : 6128 do 6129 cat "conftest.in" "conftest.in" >"conftest.tmp" 6130 mv "conftest.tmp" "conftest.in" 6131 cp "conftest.in" "conftest.nl" 6132 printf "%s\n" 'EGREP' >> "conftest.nl" 6133 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6134 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6135 as_fn_arith $ac_count + 1 && ac_count=$as_val 6136 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6137 # Best one so far, save it but keep looking for a better one 6138 ac_cv_path_EGREP="$ac_path_EGREP" 6139 ac_path_EGREP_max=$ac_count 6140 fi 6141 # 10*(2^10) chars as input seems more than enough 6142 test $ac_count -gt 10 && break 6143 done 6144 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6145esac 6146 6147 $ac_path_EGREP_found && break 3 6148 done 6149 done 6150 done 6151IFS=$as_save_IFS 6152 if test -z "$ac_cv_path_EGREP"; then 6153 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6154 fi 6155else 6156 ac_cv_path_EGREP=$EGREP 6157fi 6158 6159 fi ;; 6160esac 6161fi 6162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6163printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6164 EGREP="$ac_cv_path_EGREP" 6165 6166 EGREP_TRADITIONAL=$EGREP 6167 ac_cv_path_EGREP_TRADITIONAL=$EGREP 6168 6169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6170printf %s "checking for fgrep... " >&6; } 6171if test ${ac_cv_path_FGREP+y} 6172then : 6173 printf %s "(cached) " >&6 6174else case e in #( 6175 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6176 then ac_cv_path_FGREP="$GREP -F" 6177 else 6178 if test -z "$FGREP"; then 6179 ac_path_FGREP_found=false 6180 # Loop through the user's path and test for each of PROGNAME-LIST 6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6182for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6183do 6184 IFS=$as_save_IFS 6185 case $as_dir in #((( 6186 '') as_dir=./ ;; 6187 */) ;; 6188 *) as_dir=$as_dir/ ;; 6189 esac 6190 for ac_prog in fgrep 6191 do 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" 6194 as_fn_executable_p "$ac_path_FGREP" || continue 6195# Check for GNU ac_path_FGREP and select it if it is found. 6196 # Check for GNU $ac_path_FGREP 6197case `"$ac_path_FGREP" --version 2>&1` in #( 6198*GNU*) 6199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6200#( 6201*) 6202 ac_count=0 6203 printf %s 0123456789 >"conftest.in" 6204 while : 6205 do 6206 cat "conftest.in" "conftest.in" >"conftest.tmp" 6207 mv "conftest.tmp" "conftest.in" 6208 cp "conftest.in" "conftest.nl" 6209 printf "%s\n" 'FGREP' >> "conftest.nl" 6210 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6212 as_fn_arith $ac_count + 1 && ac_count=$as_val 6213 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6214 # Best one so far, save it but keep looking for a better one 6215 ac_cv_path_FGREP="$ac_path_FGREP" 6216 ac_path_FGREP_max=$ac_count 6217 fi 6218 # 10*(2^10) chars as input seems more than enough 6219 test $ac_count -gt 10 && break 6220 done 6221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6222esac 6223 6224 $ac_path_FGREP_found && break 3 6225 done 6226 done 6227 done 6228IFS=$as_save_IFS 6229 if test -z "$ac_cv_path_FGREP"; then 6230 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6231 fi 6232else 6233 ac_cv_path_FGREP=$FGREP 6234fi 6235 6236 fi ;; 6237esac 6238fi 6239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6240printf "%s\n" "$ac_cv_path_FGREP" >&6; } 6241 FGREP="$ac_cv_path_FGREP" 6242 6243 6244test -z "$GREP" && GREP=grep 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264# Check whether --with-gnu-ld was given. 6265if test ${with_gnu_ld+y} 6266then : 6267 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 6268else case e in #( 6269 e) with_gnu_ld=no ;; 6270esac 6271fi 6272 6273ac_prog=ld 6274if test yes = "$GCC"; then 6275 # Check if gcc -print-prog-name=ld gives a path. 6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6277printf %s "checking for ld used by $CC... " >&6; } 6278 case $host in 6279 *-*-mingw*) 6280 # gcc leaves a trailing carriage return, which upsets mingw 6281 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6282 *) 6283 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6284 esac 6285 case $ac_prog in 6286 # Accept absolute paths. 6287 [\\/]* | ?:[\\/]*) 6288 re_direlt='/[^/][^/]*/\.\./' 6289 # Canonicalize the pathname of ld 6290 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6291 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6292 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6293 done 6294 test -z "$LD" && LD=$ac_prog 6295 ;; 6296 "") 6297 # If it fails, then pretend we aren't using GCC. 6298 ac_prog=ld 6299 ;; 6300 *) 6301 # If it is relative, then search for the first ld in PATH. 6302 with_gnu_ld=unknown 6303 ;; 6304 esac 6305elif test yes = "$with_gnu_ld"; then 6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6307printf %s "checking for GNU ld... " >&6; } 6308else 6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6310printf %s "checking for non-GNU ld... " >&6; } 6311fi 6312if test ${lt_cv_path_LD+y} 6313then : 6314 printf %s "(cached) " >&6 6315else case e in #( 6316 e) if test -z "$LD"; then 6317 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6318 for ac_dir in $PATH; do 6319 IFS=$lt_save_ifs 6320 test -z "$ac_dir" && ac_dir=. 6321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6322 lt_cv_path_LD=$ac_dir/$ac_prog 6323 # Check to see if the program is GNU ld. I'd rather use --version, 6324 # but apparently some variants of GNU ld only accept -v. 6325 # Break only if it was the GNU/non-GNU ld that we prefer. 6326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6327 *GNU* | *'with BFD'*) 6328 test no != "$with_gnu_ld" && break 6329 ;; 6330 *) 6331 test yes != "$with_gnu_ld" && break 6332 ;; 6333 esac 6334 fi 6335 done 6336 IFS=$lt_save_ifs 6337else 6338 lt_cv_path_LD=$LD # Let the user override the test with a path. 6339fi ;; 6340esac 6341fi 6342 6343LD=$lt_cv_path_LD 6344if test -n "$LD"; then 6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6346printf "%s\n" "$LD" >&6; } 6347else 6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6349printf "%s\n" "no" >&6; } 6350fi 6351test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6353printf %s "checking if the linker ($LD) is GNU ld... " >&6; } 6354if test ${lt_cv_prog_gnu_ld+y} 6355then : 6356 printf %s "(cached) " >&6 6357else case e in #( 6358 e) # I'd rather use --version here, but apparently some GNU lds only accept -v. 6359case `$LD -v 2>&1 </dev/null` in 6360*GNU* | *'with BFD'*) 6361 lt_cv_prog_gnu_ld=yes 6362 ;; 6363*) 6364 lt_cv_prog_gnu_ld=no 6365 ;; 6366esac ;; 6367esac 6368fi 6369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6370printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } 6371with_gnu_ld=$lt_cv_prog_gnu_ld 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6382printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6383if test ${lt_cv_path_NM+y} 6384then : 6385 printf %s "(cached) " >&6 6386else case e in #( 6387 e) if test -n "$NM"; then 6388 # Let the user override the test. 6389 lt_cv_path_NM=$NM 6390else 6391 lt_nm_to_check=${ac_tool_prefix}nm 6392 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6393 lt_nm_to_check="$lt_nm_to_check nm" 6394 fi 6395 for lt_tmp_nm in $lt_nm_to_check; do 6396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6397 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6398 IFS=$lt_save_ifs 6399 test -z "$ac_dir" && ac_dir=. 6400 tmp_nm=$ac_dir/$lt_tmp_nm 6401 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6402 # Check to see if the nm accepts a BSD-compat flag. 6403 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6404 # nm: unknown option "B" ignored 6405 # Tru64's nm complains that /dev/null is an invalid object file 6406 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6407 case $build_os in 6408 mingw*) lt_bad_file=conftest.nm/nofile ;; 6409 *) lt_bad_file=/dev/null ;; 6410 esac 6411 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 6412 *$lt_bad_file* | *'Invalid file or object type'*) 6413 lt_cv_path_NM="$tmp_nm -B" 6414 break 2 6415 ;; 6416 *) 6417 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 6418 */dev/null*) 6419 lt_cv_path_NM="$tmp_nm -p" 6420 break 2 6421 ;; 6422 *) 6423 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6424 continue # so that we can try to find one that supports BSD flags 6425 ;; 6426 esac 6427 ;; 6428 esac 6429 fi 6430 done 6431 IFS=$lt_save_ifs 6432 done 6433 : ${lt_cv_path_NM=no} 6434fi ;; 6435esac 6436fi 6437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6438printf "%s\n" "$lt_cv_path_NM" >&6; } 6439if test no != "$lt_cv_path_NM"; then 6440 NM=$lt_cv_path_NM 6441else 6442 # Didn't find any BSD compatible name lister, look for dumpbin. 6443 if test -n "$DUMPBIN"; then : 6444 # Let the user override the test. 6445 else 6446 if test -n "$ac_tool_prefix"; then 6447 for ac_prog in dumpbin "link -dump" 6448 do 6449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6450set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6452printf %s "checking for $ac_word... " >&6; } 6453if test ${ac_cv_prog_DUMPBIN+y} 6454then : 6455 printf %s "(cached) " >&6 6456else case e in #( 6457 e) if test -n "$DUMPBIN"; then 6458 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6459else 6460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6461for as_dir in $PATH 6462do 6463 IFS=$as_save_IFS 6464 case $as_dir in #((( 6465 '') as_dir=./ ;; 6466 */) ;; 6467 *) as_dir=$as_dir/ ;; 6468 esac 6469 for ac_exec_ext in '' $ac_executable_extensions; do 6470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6471 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6473 break 2 6474 fi 6475done 6476 done 6477IFS=$as_save_IFS 6478 6479fi ;; 6480esac 6481fi 6482DUMPBIN=$ac_cv_prog_DUMPBIN 6483if test -n "$DUMPBIN"; then 6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6485printf "%s\n" "$DUMPBIN" >&6; } 6486else 6487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6488printf "%s\n" "no" >&6; } 6489fi 6490 6491 6492 test -n "$DUMPBIN" && break 6493 done 6494fi 6495if test -z "$DUMPBIN"; then 6496 ac_ct_DUMPBIN=$DUMPBIN 6497 for ac_prog in dumpbin "link -dump" 6498do 6499 # Extract the first word of "$ac_prog", so it can be a program name with args. 6500set dummy $ac_prog; ac_word=$2 6501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6502printf %s "checking for $ac_word... " >&6; } 6503if test ${ac_cv_prog_ac_ct_DUMPBIN+y} 6504then : 6505 printf %s "(cached) " >&6 6506else case e in #( 6507 e) if test -n "$ac_ct_DUMPBIN"; then 6508 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6509else 6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6511for as_dir in $PATH 6512do 6513 IFS=$as_save_IFS 6514 case $as_dir in #((( 6515 '') as_dir=./ ;; 6516 */) ;; 6517 *) as_dir=$as_dir/ ;; 6518 esac 6519 for ac_exec_ext in '' $ac_executable_extensions; do 6520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6521 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6523 break 2 6524 fi 6525done 6526 done 6527IFS=$as_save_IFS 6528 6529fi ;; 6530esac 6531fi 6532ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6533if test -n "$ac_ct_DUMPBIN"; then 6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6535printf "%s\n" "$ac_ct_DUMPBIN" >&6; } 6536else 6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6538printf "%s\n" "no" >&6; } 6539fi 6540 6541 6542 test -n "$ac_ct_DUMPBIN" && break 6543done 6544 6545 if test "x$ac_ct_DUMPBIN" = x; then 6546 DUMPBIN=":" 6547 else 6548 case $cross_compiling:$ac_tool_warned in 6549yes:) 6550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6551printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6552ac_tool_warned=yes ;; 6553esac 6554 DUMPBIN=$ac_ct_DUMPBIN 6555 fi 6556fi 6557 6558 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 6559 *COFF*) 6560 DUMPBIN="$DUMPBIN -symbols -headers" 6561 ;; 6562 *) 6563 DUMPBIN=: 6564 ;; 6565 esac 6566 fi 6567 6568 if test : != "$DUMPBIN"; then 6569 NM=$DUMPBIN 6570 fi 6571fi 6572test -z "$NM" && NM=nm 6573 6574 6575 6576 6577 6578 6579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6580printf %s "checking the name lister ($NM) interface... " >&6; } 6581if test ${lt_cv_nm_interface+y} 6582then : 6583 printf %s "(cached) " >&6 6584else case e in #( 6585 e) lt_cv_nm_interface="BSD nm" 6586 echo "int some_variable = 0;" > conftest.$ac_ext 6587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6588 (eval "$ac_compile" 2>conftest.err) 6589 cat conftest.err >&5 6590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6592 cat conftest.err >&5 6593 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6594 cat conftest.out >&5 6595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6596 lt_cv_nm_interface="MS dumpbin" 6597 fi 6598 rm -f conftest* ;; 6599esac 6600fi 6601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6602printf "%s\n" "$lt_cv_nm_interface" >&6; } 6603 6604# find the maximum length of command line arguments 6605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6606printf %s "checking the maximum length of command line arguments... " >&6; } 6607if test ${lt_cv_sys_max_cmd_len+y} 6608then : 6609 printf %s "(cached) " >&6 6610else case e in #( 6611 e) i=0 6612 teststring=ABCD 6613 6614 case $build_os in 6615 msdosdjgpp*) 6616 # On DJGPP, this test can blow up pretty badly due to problems in libc 6617 # (any single argument exceeding 2000 bytes causes a buffer overrun 6618 # during glob expansion). Even if it were fixed, the result of this 6619 # check would be larger than it should be. 6620 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6621 ;; 6622 6623 gnu*) 6624 # Under GNU Hurd, this test is not required because there is 6625 # no limit to the length of command line arguments. 6626 # Libtool will interpret -1 as no limit whatsoever 6627 lt_cv_sys_max_cmd_len=-1; 6628 ;; 6629 6630 cygwin* | mingw* | cegcc*) 6631 # On Win9x/ME, this test blows up -- it succeeds, but takes 6632 # about 5 minutes as the teststring grows exponentially. 6633 # Worse, since 9x/ME are not pre-emptively multitasking, 6634 # you end up with a "frozen" computer, even though with patience 6635 # the test eventually succeeds (with a max line length of 256k). 6636 # Instead, let's just punt: use the minimum linelength reported by 6637 # all of the supported platforms: 8192 (on NT/2K/XP). 6638 lt_cv_sys_max_cmd_len=8192; 6639 ;; 6640 6641 mint*) 6642 # On MiNT this can take a long time and run out of memory. 6643 lt_cv_sys_max_cmd_len=8192; 6644 ;; 6645 6646 amigaos*) 6647 # On AmigaOS with pdksh, this test takes hours, literally. 6648 # So we just punt and use a minimum line length of 8192. 6649 lt_cv_sys_max_cmd_len=8192; 6650 ;; 6651 6652 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 6653 # This has been around since 386BSD, at least. Likely further. 6654 if test -x /sbin/sysctl; then 6655 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6656 elif test -x /usr/sbin/sysctl; then 6657 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6658 else 6659 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6660 fi 6661 # And add a safety zone 6662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6664 ;; 6665 6666 interix*) 6667 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6668 lt_cv_sys_max_cmd_len=196608 6669 ;; 6670 6671 os2*) 6672 # The test takes a long time on OS/2. 6673 lt_cv_sys_max_cmd_len=8192 6674 ;; 6675 6676 osf*) 6677 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6678 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6679 # nice to cause kernel panics so lets avoid the loop below. 6680 # First set a reasonable default. 6681 lt_cv_sys_max_cmd_len=16384 6682 # 6683 if test -x /sbin/sysconfig; then 6684 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6685 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6686 esac 6687 fi 6688 ;; 6689 sco3.2v5*) 6690 lt_cv_sys_max_cmd_len=102400 6691 ;; 6692 sysv5* | sco5v6* | sysv4.2uw2*) 6693 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6694 if test -n "$kargmax"; then 6695 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` 6696 else 6697 lt_cv_sys_max_cmd_len=32768 6698 fi 6699 ;; 6700 *) 6701 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6702 if test -n "$lt_cv_sys_max_cmd_len" && \ 6703 test undefined != "$lt_cv_sys_max_cmd_len"; then 6704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6706 else 6707 # Make teststring a little bigger before we do anything with it. 6708 # a 1K string should be a reasonable start. 6709 for i in 1 2 3 4 5 6 7 8; do 6710 teststring=$teststring$teststring 6711 done 6712 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6713 # If test is not a shell built-in, we'll probably end up computing a 6714 # maximum length that is only half of the actual maximum length, but 6715 # we can't tell. 6716 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6717 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6718 test 17 != "$i" # 1/2 MB should be enough 6719 do 6720 i=`expr $i + 1` 6721 teststring=$teststring$teststring 6722 done 6723 # Only check the string length outside the loop. 6724 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6725 teststring= 6726 # Add a significant safety factor because C++ compilers can tack on 6727 # massive amounts of additional arguments before passing them to the 6728 # linker. It appears as though 1/2 is a usable value. 6729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6730 fi 6731 ;; 6732 esac 6733 ;; 6734esac 6735fi 6736 6737if test -n "$lt_cv_sys_max_cmd_len"; then 6738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6739printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } 6740else 6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6742printf "%s\n" "none" >&6; } 6743fi 6744max_cmd_len=$lt_cv_sys_max_cmd_len 6745 6746 6747 6748 6749 6750 6751: ${CP="cp -f"} 6752: ${MV="mv -f"} 6753: ${RM="rm -f"} 6754 6755if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6756 lt_unset=unset 6757else 6758 lt_unset=false 6759fi 6760 6761 6762 6763 6764 6765# test EBCDIC or ASCII 6766case `echo X|tr X '\101'` in 6767 A) # ASCII based system 6768 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6769 lt_SP2NL='tr \040 \012' 6770 lt_NL2SP='tr \015\012 \040\040' 6771 ;; 6772 *) # EBCDIC based system 6773 lt_SP2NL='tr \100 \n' 6774 lt_NL2SP='tr \r\n \100\100' 6775 ;; 6776esac 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6787printf %s "checking how to convert $build file names to $host format... " >&6; } 6788if test ${lt_cv_to_host_file_cmd+y} 6789then : 6790 printf %s "(cached) " >&6 6791else case e in #( 6792 e) case $host in 6793 *-*-mingw* ) 6794 case $build in 6795 *-*-mingw* ) # actually msys 6796 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6797 ;; 6798 *-*-cygwin* ) 6799 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6800 ;; 6801 * ) # otherwise, assume *nix 6802 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6803 ;; 6804 esac 6805 ;; 6806 *-*-cygwin* ) 6807 case $build in 6808 *-*-mingw* ) # actually msys 6809 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6810 ;; 6811 *-*-cygwin* ) 6812 lt_cv_to_host_file_cmd=func_convert_file_noop 6813 ;; 6814 * ) # otherwise, assume *nix 6815 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6816 ;; 6817 esac 6818 ;; 6819 * ) # unhandled hosts (and "normal" native builds) 6820 lt_cv_to_host_file_cmd=func_convert_file_noop 6821 ;; 6822esac 6823 ;; 6824esac 6825fi 6826 6827to_host_file_cmd=$lt_cv_to_host_file_cmd 6828{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6829printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } 6830 6831 6832 6833 6834 6835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6836printf %s "checking how to convert $build file names to toolchain format... " >&6; } 6837if test ${lt_cv_to_tool_file_cmd+y} 6838then : 6839 printf %s "(cached) " >&6 6840else case e in #( 6841 e) #assume ordinary cross tools, or native build. 6842lt_cv_to_tool_file_cmd=func_convert_file_noop 6843case $host in 6844 *-*-mingw* ) 6845 case $build in 6846 *-*-mingw* ) # actually msys 6847 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6848 ;; 6849 esac 6850 ;; 6851esac 6852 ;; 6853esac 6854fi 6855 6856to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6858printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } 6859 6860 6861 6862 6863 6864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6865printf %s "checking for $LD option to reload object files... " >&6; } 6866if test ${lt_cv_ld_reload_flag+y} 6867then : 6868 printf %s "(cached) " >&6 6869else case e in #( 6870 e) lt_cv_ld_reload_flag='-r' ;; 6871esac 6872fi 6873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6874printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } 6875reload_flag=$lt_cv_ld_reload_flag 6876case $reload_flag in 6877"" | " "*) ;; 6878*) reload_flag=" $reload_flag" ;; 6879esac 6880reload_cmds='$LD$reload_flag -o $output$reload_objs' 6881case $host_os in 6882 cygwin* | mingw* | pw32* | cegcc*) 6883 if test yes != "$GCC"; then 6884 reload_cmds=false 6885 fi 6886 ;; 6887 darwin*) 6888 if test yes = "$GCC"; then 6889 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6890 else 6891 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6892 fi 6893 ;; 6894esac 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904if test -n "$ac_tool_prefix"; then 6905 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. 6906set dummy ${ac_tool_prefix}file; ac_word=$2 6907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908printf %s "checking for $ac_word... " >&6; } 6909if test ${ac_cv_prog_FILECMD+y} 6910then : 6911 printf %s "(cached) " >&6 6912else case e in #( 6913 e) if test -n "$FILECMD"; then 6914 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 6919 IFS=$as_save_IFS 6920 case $as_dir in #((( 6921 '') as_dir=./ ;; 6922 */) ;; 6923 *) as_dir=$as_dir/ ;; 6924 esac 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6927 ac_cv_prog_FILECMD="${ac_tool_prefix}file" 6928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931done 6932 done 6933IFS=$as_save_IFS 6934 6935fi ;; 6936esac 6937fi 6938FILECMD=$ac_cv_prog_FILECMD 6939if test -n "$FILECMD"; then 6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 6941printf "%s\n" "$FILECMD" >&6; } 6942else 6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6944printf "%s\n" "no" >&6; } 6945fi 6946 6947 6948fi 6949if test -z "$ac_cv_prog_FILECMD"; then 6950 ac_ct_FILECMD=$FILECMD 6951 # Extract the first word of "file", so it can be a program name with args. 6952set dummy file; ac_word=$2 6953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6954printf %s "checking for $ac_word... " >&6; } 6955if test ${ac_cv_prog_ac_ct_FILECMD+y} 6956then : 6957 printf %s "(cached) " >&6 6958else case e in #( 6959 e) if test -n "$ac_ct_FILECMD"; then 6960 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. 6961else 6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6963for as_dir in $PATH 6964do 6965 IFS=$as_save_IFS 6966 case $as_dir in #((( 6967 '') as_dir=./ ;; 6968 */) ;; 6969 *) as_dir=$as_dir/ ;; 6970 esac 6971 for ac_exec_ext in '' $ac_executable_extensions; do 6972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6973 ac_cv_prog_ac_ct_FILECMD="file" 6974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6975 break 2 6976 fi 6977done 6978 done 6979IFS=$as_save_IFS 6980 6981fi ;; 6982esac 6983fi 6984ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD 6985if test -n "$ac_ct_FILECMD"; then 6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 6987printf "%s\n" "$ac_ct_FILECMD" >&6; } 6988else 6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6990printf "%s\n" "no" >&6; } 6991fi 6992 6993 if test "x$ac_ct_FILECMD" = x; then 6994 FILECMD=":" 6995 else 6996 case $cross_compiling:$ac_tool_warned in 6997yes:) 6998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6999printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7000ac_tool_warned=yes ;; 7001esac 7002 FILECMD=$ac_ct_FILECMD 7003 fi 7004else 7005 FILECMD="$ac_cv_prog_FILECMD" 7006fi 7007 7008 7009 7010 7011 7012 7013 7014if test -n "$ac_tool_prefix"; then 7015 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7016set dummy ${ac_tool_prefix}objdump; ac_word=$2 7017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7018printf %s "checking for $ac_word... " >&6; } 7019if test ${ac_cv_prog_OBJDUMP+y} 7020then : 7021 printf %s "(cached) " >&6 7022else case e in #( 7023 e) if test -n "$OBJDUMP"; then 7024 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7025else 7026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7027for as_dir in $PATH 7028do 7029 IFS=$as_save_IFS 7030 case $as_dir in #((( 7031 '') as_dir=./ ;; 7032 */) ;; 7033 *) as_dir=$as_dir/ ;; 7034 esac 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7037 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041done 7042 done 7043IFS=$as_save_IFS 7044 7045fi ;; 7046esac 7047fi 7048OBJDUMP=$ac_cv_prog_OBJDUMP 7049if test -n "$OBJDUMP"; then 7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7051printf "%s\n" "$OBJDUMP" >&6; } 7052else 7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7054printf "%s\n" "no" >&6; } 7055fi 7056 7057 7058fi 7059if test -z "$ac_cv_prog_OBJDUMP"; then 7060 ac_ct_OBJDUMP=$OBJDUMP 7061 # Extract the first word of "objdump", so it can be a program name with args. 7062set dummy objdump; ac_word=$2 7063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7064printf %s "checking for $ac_word... " >&6; } 7065if test ${ac_cv_prog_ac_ct_OBJDUMP+y} 7066then : 7067 printf %s "(cached) " >&6 7068else case e in #( 7069 e) if test -n "$ac_ct_OBJDUMP"; then 7070 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7071else 7072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7073for as_dir in $PATH 7074do 7075 IFS=$as_save_IFS 7076 case $as_dir in #((( 7077 '') as_dir=./ ;; 7078 */) ;; 7079 *) as_dir=$as_dir/ ;; 7080 esac 7081 for ac_exec_ext in '' $ac_executable_extensions; do 7082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7083 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7085 break 2 7086 fi 7087done 7088 done 7089IFS=$as_save_IFS 7090 7091fi ;; 7092esac 7093fi 7094ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7095if test -n "$ac_ct_OBJDUMP"; then 7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7097printf "%s\n" "$ac_ct_OBJDUMP" >&6; } 7098else 7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7100printf "%s\n" "no" >&6; } 7101fi 7102 7103 if test "x$ac_ct_OBJDUMP" = x; then 7104 OBJDUMP="false" 7105 else 7106 case $cross_compiling:$ac_tool_warned in 7107yes:) 7108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7109printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7110ac_tool_warned=yes ;; 7111esac 7112 OBJDUMP=$ac_ct_OBJDUMP 7113 fi 7114else 7115 OBJDUMP="$ac_cv_prog_OBJDUMP" 7116fi 7117 7118test -z "$OBJDUMP" && OBJDUMP=objdump 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7129printf %s "checking how to recognize dependent libraries... " >&6; } 7130if test ${lt_cv_deplibs_check_method+y} 7131then : 7132 printf %s "(cached) " >&6 7133else case e in #( 7134 e) lt_cv_file_magic_cmd='$MAGIC_CMD' 7135lt_cv_file_magic_test_file= 7136lt_cv_deplibs_check_method='unknown' 7137# Need to set the preceding variable on all platforms that support 7138# interlibrary dependencies. 7139# 'none' -- dependencies not supported. 7140# 'unknown' -- same as none, but documents that we really don't know. 7141# 'pass_all' -- all dependencies passed with no checks. 7142# 'test_compile' -- check by making test program. 7143# 'file_magic [[regex]]' -- check by looking for files in library path 7144# that responds to the $file_magic_cmd with a given extended regex. 7145# If you have 'file' or equivalent on your system and you're not sure 7146# whether 'pass_all' will *always* work, you probably want this one. 7147 7148case $host_os in 7149aix[4-9]*) 7150 lt_cv_deplibs_check_method=pass_all 7151 ;; 7152 7153beos*) 7154 lt_cv_deplibs_check_method=pass_all 7155 ;; 7156 7157bsdi[45]*) 7158 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7159 lt_cv_file_magic_cmd='$FILECMD -L' 7160 lt_cv_file_magic_test_file=/shlib/libc.so 7161 ;; 7162 7163cygwin*) 7164 # func_win32_libid is a shell function defined in ltmain.sh 7165 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7166 lt_cv_file_magic_cmd='func_win32_libid' 7167 ;; 7168 7169mingw* | pw32*) 7170 # Base MSYS/MinGW do not provide the 'file' command needed by 7171 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7172 # unless we find 'file', for example because we are cross-compiling. 7173 if ( file / ) >/dev/null 2>&1; then 7174 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7175 lt_cv_file_magic_cmd='func_win32_libid' 7176 else 7177 # Keep this pattern in sync with the one in func_win32_libid. 7178 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7179 lt_cv_file_magic_cmd='$OBJDUMP -f' 7180 fi 7181 ;; 7182 7183cegcc*) 7184 # use the weaker test based on 'objdump'. See mingw*. 7185 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7186 lt_cv_file_magic_cmd='$OBJDUMP -f' 7187 ;; 7188 7189darwin* | rhapsody*) 7190 lt_cv_deplibs_check_method=pass_all 7191 ;; 7192 7193freebsd* | dragonfly* | midnightbsd*) 7194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7195 case $host_cpu in 7196 i*86 ) 7197 # Not sure whether the presence of OpenBSD here was a mistake. 7198 # Let's accept both of them until this is cleared up. 7199 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7200 lt_cv_file_magic_cmd=$FILECMD 7201 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7202 ;; 7203 esac 7204 else 7205 lt_cv_deplibs_check_method=pass_all 7206 fi 7207 ;; 7208 7209haiku*) 7210 lt_cv_deplibs_check_method=pass_all 7211 ;; 7212 7213hpux10.20* | hpux11*) 7214 lt_cv_file_magic_cmd=$FILECMD 7215 case $host_cpu in 7216 ia64*) 7217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7218 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7219 ;; 7220 hppa*64*) 7221 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]' 7222 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7223 ;; 7224 *) 7225 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7226 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7227 ;; 7228 esac 7229 ;; 7230 7231interix[3-9]*) 7232 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7233 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7234 ;; 7235 7236irix5* | irix6* | nonstopux*) 7237 case $LD in 7238 *-32|*"-32 ") libmagic=32-bit;; 7239 *-n32|*"-n32 ") libmagic=N32;; 7240 *-64|*"-64 ") libmagic=64-bit;; 7241 *) libmagic=never-match;; 7242 esac 7243 lt_cv_deplibs_check_method=pass_all 7244 ;; 7245 7246# This must be glibc/ELF. 7247linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7248 lt_cv_deplibs_check_method=pass_all 7249 ;; 7250 7251netbsd*) 7252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7253 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7254 else 7255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7256 fi 7257 ;; 7258 7259newos6*) 7260 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7261 lt_cv_file_magic_cmd=$FILECMD 7262 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7263 ;; 7264 7265*nto* | *qnx*) 7266 lt_cv_deplibs_check_method=pass_all 7267 ;; 7268 7269openbsd* | bitrig*) 7270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 7271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7272 else 7273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7274 fi 7275 ;; 7276 7277osf3* | osf4* | osf5*) 7278 lt_cv_deplibs_check_method=pass_all 7279 ;; 7280 7281rdos*) 7282 lt_cv_deplibs_check_method=pass_all 7283 ;; 7284 7285solaris*) 7286 lt_cv_deplibs_check_method=pass_all 7287 ;; 7288 7289sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7290 lt_cv_deplibs_check_method=pass_all 7291 ;; 7292 7293sysv4 | sysv4.3*) 7294 case $host_vendor in 7295 motorola) 7296 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]' 7297 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7298 ;; 7299 ncr) 7300 lt_cv_deplibs_check_method=pass_all 7301 ;; 7302 sequent) 7303 lt_cv_file_magic_cmd='/bin/file' 7304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7305 ;; 7306 sni) 7307 lt_cv_file_magic_cmd='/bin/file' 7308 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7309 lt_cv_file_magic_test_file=/lib/libc.so 7310 ;; 7311 siemens) 7312 lt_cv_deplibs_check_method=pass_all 7313 ;; 7314 pc) 7315 lt_cv_deplibs_check_method=pass_all 7316 ;; 7317 esac 7318 ;; 7319 7320tpf*) 7321 lt_cv_deplibs_check_method=pass_all 7322 ;; 7323os2*) 7324 lt_cv_deplibs_check_method=pass_all 7325 ;; 7326esac 7327 ;; 7328esac 7329fi 7330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7331printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } 7332 7333file_magic_glob= 7334want_nocaseglob=no 7335if test "$build" = "$host"; then 7336 case $host_os in 7337 mingw* | pw32*) 7338 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7339 want_nocaseglob=yes 7340 else 7341 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7342 fi 7343 ;; 7344 esac 7345fi 7346 7347file_magic_cmd=$lt_cv_file_magic_cmd 7348deplibs_check_method=$lt_cv_deplibs_check_method 7349test -z "$deplibs_check_method" && deplibs_check_method=unknown 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372if test -n "$ac_tool_prefix"; then 7373 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7374set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7376printf %s "checking for $ac_word... " >&6; } 7377if test ${ac_cv_prog_DLLTOOL+y} 7378then : 7379 printf %s "(cached) " >&6 7380else case e in #( 7381 e) if test -n "$DLLTOOL"; then 7382 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7383else 7384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7385for as_dir in $PATH 7386do 7387 IFS=$as_save_IFS 7388 case $as_dir in #((( 7389 '') as_dir=./ ;; 7390 */) ;; 7391 *) as_dir=$as_dir/ ;; 7392 esac 7393 for ac_exec_ext in '' $ac_executable_extensions; do 7394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7395 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7397 break 2 7398 fi 7399done 7400 done 7401IFS=$as_save_IFS 7402 7403fi ;; 7404esac 7405fi 7406DLLTOOL=$ac_cv_prog_DLLTOOL 7407if test -n "$DLLTOOL"; then 7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7409printf "%s\n" "$DLLTOOL" >&6; } 7410else 7411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7412printf "%s\n" "no" >&6; } 7413fi 7414 7415 7416fi 7417if test -z "$ac_cv_prog_DLLTOOL"; then 7418 ac_ct_DLLTOOL=$DLLTOOL 7419 # Extract the first word of "dlltool", so it can be a program name with args. 7420set dummy dlltool; ac_word=$2 7421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7422printf %s "checking for $ac_word... " >&6; } 7423if test ${ac_cv_prog_ac_ct_DLLTOOL+y} 7424then : 7425 printf %s "(cached) " >&6 7426else case e in #( 7427 e) if test -n "$ac_ct_DLLTOOL"; then 7428 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7429else 7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431for as_dir in $PATH 7432do 7433 IFS=$as_save_IFS 7434 case $as_dir in #((( 7435 '') as_dir=./ ;; 7436 */) ;; 7437 *) as_dir=$as_dir/ ;; 7438 esac 7439 for ac_exec_ext in '' $ac_executable_extensions; do 7440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7441 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7443 break 2 7444 fi 7445done 7446 done 7447IFS=$as_save_IFS 7448 7449fi ;; 7450esac 7451fi 7452ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7453if test -n "$ac_ct_DLLTOOL"; then 7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7455printf "%s\n" "$ac_ct_DLLTOOL" >&6; } 7456else 7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7458printf "%s\n" "no" >&6; } 7459fi 7460 7461 if test "x$ac_ct_DLLTOOL" = x; then 7462 DLLTOOL="false" 7463 else 7464 case $cross_compiling:$ac_tool_warned in 7465yes:) 7466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7467printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7468ac_tool_warned=yes ;; 7469esac 7470 DLLTOOL=$ac_ct_DLLTOOL 7471 fi 7472else 7473 DLLTOOL="$ac_cv_prog_DLLTOOL" 7474fi 7475 7476test -z "$DLLTOOL" && DLLTOOL=dlltool 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7488printf %s "checking how to associate runtime and link libraries... " >&6; } 7489if test ${lt_cv_sharedlib_from_linklib_cmd+y} 7490then : 7491 printf %s "(cached) " >&6 7492else case e in #( 7493 e) lt_cv_sharedlib_from_linklib_cmd='unknown' 7494 7495case $host_os in 7496cygwin* | mingw* | pw32* | cegcc*) 7497 # two different shell functions defined in ltmain.sh; 7498 # decide which one to use based on capabilities of $DLLTOOL 7499 case `$DLLTOOL --help 2>&1` in 7500 *--identify-strict*) 7501 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7502 ;; 7503 *) 7504 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7505 ;; 7506 esac 7507 ;; 7508*) 7509 # fallback: assume linklib IS sharedlib 7510 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7511 ;; 7512esac 7513 ;; 7514esac 7515fi 7516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7517printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7518sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7519test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7520 7521 7522 7523 7524 7525 7526 7527if test -n "$ac_tool_prefix"; then 7528 for ac_prog in ar 7529 do 7530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7531set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7533printf %s "checking for $ac_word... " >&6; } 7534if test ${ac_cv_prog_AR+y} 7535then : 7536 printf %s "(cached) " >&6 7537else case e in #( 7538 e) if test -n "$AR"; then 7539 ac_cv_prog_AR="$AR" # Let the user override the test. 7540else 7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7542for as_dir in $PATH 7543do 7544 IFS=$as_save_IFS 7545 case $as_dir in #((( 7546 '') as_dir=./ ;; 7547 */) ;; 7548 *) as_dir=$as_dir/ ;; 7549 esac 7550 for ac_exec_ext in '' $ac_executable_extensions; do 7551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7552 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7554 break 2 7555 fi 7556done 7557 done 7558IFS=$as_save_IFS 7559 7560fi ;; 7561esac 7562fi 7563AR=$ac_cv_prog_AR 7564if test -n "$AR"; then 7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7566printf "%s\n" "$AR" >&6; } 7567else 7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7569printf "%s\n" "no" >&6; } 7570fi 7571 7572 7573 test -n "$AR" && break 7574 done 7575fi 7576if test -z "$AR"; then 7577 ac_ct_AR=$AR 7578 for ac_prog in ar 7579do 7580 # Extract the first word of "$ac_prog", so it can be a program name with args. 7581set dummy $ac_prog; ac_word=$2 7582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7583printf %s "checking for $ac_word... " >&6; } 7584if test ${ac_cv_prog_ac_ct_AR+y} 7585then : 7586 printf %s "(cached) " >&6 7587else case e in #( 7588 e) if test -n "$ac_ct_AR"; then 7589 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7590else 7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7592for as_dir in $PATH 7593do 7594 IFS=$as_save_IFS 7595 case $as_dir in #((( 7596 '') as_dir=./ ;; 7597 */) ;; 7598 *) as_dir=$as_dir/ ;; 7599 esac 7600 for ac_exec_ext in '' $ac_executable_extensions; do 7601 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7602 ac_cv_prog_ac_ct_AR="$ac_prog" 7603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7604 break 2 7605 fi 7606done 7607 done 7608IFS=$as_save_IFS 7609 7610fi ;; 7611esac 7612fi 7613ac_ct_AR=$ac_cv_prog_ac_ct_AR 7614if test -n "$ac_ct_AR"; then 7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7616printf "%s\n" "$ac_ct_AR" >&6; } 7617else 7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7619printf "%s\n" "no" >&6; } 7620fi 7621 7622 7623 test -n "$ac_ct_AR" && break 7624done 7625 7626 if test "x$ac_ct_AR" = x; then 7627 AR="false" 7628 else 7629 case $cross_compiling:$ac_tool_warned in 7630yes:) 7631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7632printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7633ac_tool_warned=yes ;; 7634esac 7635 AR=$ac_ct_AR 7636 fi 7637fi 7638 7639: ${AR=ar} 7640 7641 7642 7643 7644 7645 7646# Use ARFLAGS variable as AR's operation code to sync the variable naming with 7647# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 7648# higher priority because thats what people were doing historically (setting 7649# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 7650# variable obsoleted/removed. 7651 7652test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 7653lt_ar_flags=$AR_FLAGS 7654 7655 7656 7657 7658 7659 7660# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 7661# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 7662 7663 7664 7665 7666 7667 7668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7669printf %s "checking for archiver @FILE support... " >&6; } 7670if test ${lt_cv_ar_at_file+y} 7671then : 7672 printf %s "(cached) " >&6 7673else case e in #( 7674 e) lt_cv_ar_at_file=no 7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7676/* end confdefs.h. */ 7677 7678int 7679main (void) 7680{ 7681 7682 ; 7683 return 0; 7684} 7685_ACEOF 7686if ac_fn_c_try_compile "$LINENO" 7687then : 7688 echo conftest.$ac_objext > conftest.lst 7689 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7691 (eval $lt_ar_try) 2>&5 7692 ac_status=$? 7693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7694 test $ac_status = 0; } 7695 if test 0 -eq "$ac_status"; then 7696 # Ensure the archiver fails upon bogus file names. 7697 rm -f conftest.$ac_objext libconftest.a 7698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7699 (eval $lt_ar_try) 2>&5 7700 ac_status=$? 7701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7702 test $ac_status = 0; } 7703 if test 0 -ne "$ac_status"; then 7704 lt_cv_ar_at_file=@ 7705 fi 7706 fi 7707 rm -f conftest.* libconftest.a 7708 7709fi 7710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7711 ;; 7712esac 7713fi 7714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7715printf "%s\n" "$lt_cv_ar_at_file" >&6; } 7716 7717if test no = "$lt_cv_ar_at_file"; then 7718 archiver_list_spec= 7719else 7720 archiver_list_spec=$lt_cv_ar_at_file 7721fi 7722 7723 7724 7725 7726 7727 7728 7729if test -n "$ac_tool_prefix"; then 7730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7731set dummy ${ac_tool_prefix}strip; ac_word=$2 7732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7733printf %s "checking for $ac_word... " >&6; } 7734if test ${ac_cv_prog_STRIP+y} 7735then : 7736 printf %s "(cached) " >&6 7737else case e in #( 7738 e) if test -n "$STRIP"; then 7739 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7740else 7741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7742for as_dir in $PATH 7743do 7744 IFS=$as_save_IFS 7745 case $as_dir in #((( 7746 '') as_dir=./ ;; 7747 */) ;; 7748 *) as_dir=$as_dir/ ;; 7749 esac 7750 for ac_exec_ext in '' $ac_executable_extensions; do 7751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7752 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7754 break 2 7755 fi 7756done 7757 done 7758IFS=$as_save_IFS 7759 7760fi ;; 7761esac 7762fi 7763STRIP=$ac_cv_prog_STRIP 7764if test -n "$STRIP"; then 7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7766printf "%s\n" "$STRIP" >&6; } 7767else 7768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7769printf "%s\n" "no" >&6; } 7770fi 7771 7772 7773fi 7774if test -z "$ac_cv_prog_STRIP"; then 7775 ac_ct_STRIP=$STRIP 7776 # Extract the first word of "strip", so it can be a program name with args. 7777set dummy strip; ac_word=$2 7778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7779printf %s "checking for $ac_word... " >&6; } 7780if test ${ac_cv_prog_ac_ct_STRIP+y} 7781then : 7782 printf %s "(cached) " >&6 7783else case e in #( 7784 e) if test -n "$ac_ct_STRIP"; then 7785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7786else 7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7788for as_dir in $PATH 7789do 7790 IFS=$as_save_IFS 7791 case $as_dir in #((( 7792 '') as_dir=./ ;; 7793 */) ;; 7794 *) as_dir=$as_dir/ ;; 7795 esac 7796 for ac_exec_ext in '' $ac_executable_extensions; do 7797 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7798 ac_cv_prog_ac_ct_STRIP="strip" 7799 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7800 break 2 7801 fi 7802done 7803 done 7804IFS=$as_save_IFS 7805 7806fi ;; 7807esac 7808fi 7809ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7810if test -n "$ac_ct_STRIP"; then 7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7812printf "%s\n" "$ac_ct_STRIP" >&6; } 7813else 7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7815printf "%s\n" "no" >&6; } 7816fi 7817 7818 if test "x$ac_ct_STRIP" = x; then 7819 STRIP=":" 7820 else 7821 case $cross_compiling:$ac_tool_warned in 7822yes:) 7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7824printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7825ac_tool_warned=yes ;; 7826esac 7827 STRIP=$ac_ct_STRIP 7828 fi 7829else 7830 STRIP="$ac_cv_prog_STRIP" 7831fi 7832 7833test -z "$STRIP" && STRIP=: 7834 7835 7836 7837 7838 7839 7840if test -n "$ac_tool_prefix"; then 7841 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7842set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7844printf %s "checking for $ac_word... " >&6; } 7845if test ${ac_cv_prog_RANLIB+y} 7846then : 7847 printf %s "(cached) " >&6 7848else case e in #( 7849 e) if test -n "$RANLIB"; then 7850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7851else 7852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7853for as_dir in $PATH 7854do 7855 IFS=$as_save_IFS 7856 case $as_dir in #((( 7857 '') as_dir=./ ;; 7858 */) ;; 7859 *) as_dir=$as_dir/ ;; 7860 esac 7861 for ac_exec_ext in '' $ac_executable_extensions; do 7862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7865 break 2 7866 fi 7867done 7868 done 7869IFS=$as_save_IFS 7870 7871fi ;; 7872esac 7873fi 7874RANLIB=$ac_cv_prog_RANLIB 7875if test -n "$RANLIB"; then 7876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7877printf "%s\n" "$RANLIB" >&6; } 7878else 7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7880printf "%s\n" "no" >&6; } 7881fi 7882 7883 7884fi 7885if test -z "$ac_cv_prog_RANLIB"; then 7886 ac_ct_RANLIB=$RANLIB 7887 # Extract the first word of "ranlib", so it can be a program name with args. 7888set dummy ranlib; ac_word=$2 7889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7890printf %s "checking for $ac_word... " >&6; } 7891if test ${ac_cv_prog_ac_ct_RANLIB+y} 7892then : 7893 printf %s "(cached) " >&6 7894else case e in #( 7895 e) if test -n "$ac_ct_RANLIB"; then 7896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7897else 7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899for as_dir in $PATH 7900do 7901 IFS=$as_save_IFS 7902 case $as_dir in #((( 7903 '') as_dir=./ ;; 7904 */) ;; 7905 *) as_dir=$as_dir/ ;; 7906 esac 7907 for ac_exec_ext in '' $ac_executable_extensions; do 7908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7909 ac_cv_prog_ac_ct_RANLIB="ranlib" 7910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7911 break 2 7912 fi 7913done 7914 done 7915IFS=$as_save_IFS 7916 7917fi ;; 7918esac 7919fi 7920ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7921if test -n "$ac_ct_RANLIB"; then 7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7923printf "%s\n" "$ac_ct_RANLIB" >&6; } 7924else 7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7926printf "%s\n" "no" >&6; } 7927fi 7928 7929 if test "x$ac_ct_RANLIB" = x; then 7930 RANLIB=":" 7931 else 7932 case $cross_compiling:$ac_tool_warned in 7933yes:) 7934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7935printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7936ac_tool_warned=yes ;; 7937esac 7938 RANLIB=$ac_ct_RANLIB 7939 fi 7940else 7941 RANLIB="$ac_cv_prog_RANLIB" 7942fi 7943 7944test -z "$RANLIB" && RANLIB=: 7945 7946 7947 7948 7949 7950 7951# Determine commands to create old-style static archives. 7952old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7953old_postinstall_cmds='chmod 644 $oldlib' 7954old_postuninstall_cmds= 7955 7956if test -n "$RANLIB"; then 7957 case $host_os in 7958 bitrig* | openbsd*) 7959 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7960 ;; 7961 *) 7962 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7963 ;; 7964 esac 7965 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7966fi 7967 7968case $host_os in 7969 darwin*) 7970 lock_old_archive_extraction=yes ;; 7971 *) 7972 lock_old_archive_extraction=no ;; 7973esac 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013# If no C compiler was specified, use CC. 8014LTCC=${LTCC-"$CC"} 8015 8016# If no C compiler flags were specified, use CFLAGS. 8017LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8018 8019# Allow CC to be a program name with arguments. 8020compiler=$CC 8021 8022 8023# Check for command to grab the raw symbol name followed by C symbol from nm. 8024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8025printf %s "checking command to parse $NM output from $compiler object... " >&6; } 8026if test ${lt_cv_sys_global_symbol_pipe+y} 8027then : 8028 printf %s "(cached) " >&6 8029else case e in #( 8030 e) 8031# These are sane defaults that work on at least a few old systems. 8032# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8033 8034# Character class describing NM global symbol codes. 8035symcode='[BCDEGRST]' 8036 8037# Regexp to match symbols that can be accessed directly from C. 8038sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8039 8040# Define system-specific variables. 8041case $host_os in 8042aix*) 8043 symcode='[BCDT]' 8044 ;; 8045cygwin* | mingw* | pw32* | cegcc*) 8046 symcode='[ABCDGISTW]' 8047 ;; 8048hpux*) 8049 if test ia64 = "$host_cpu"; then 8050 symcode='[ABCDEGRST]' 8051 fi 8052 ;; 8053irix* | nonstopux*) 8054 symcode='[BCDEGRST]' 8055 ;; 8056osf*) 8057 symcode='[BCDEGQRST]' 8058 ;; 8059solaris*) 8060 symcode='[BDRT]' 8061 ;; 8062sco3.2v5*) 8063 symcode='[DT]' 8064 ;; 8065sysv4.2uw2*) 8066 symcode='[DT]' 8067 ;; 8068sysv5* | sco5v6* | unixware* | OpenUNIX*) 8069 symcode='[ABDT]' 8070 ;; 8071sysv4) 8072 symcode='[DFNSTU]' 8073 ;; 8074esac 8075 8076# If we're using GNU nm, then use its standard symbol codes. 8077case `$NM -V 2>&1` in 8078*GNU* | *'with BFD'*) 8079 symcode='[ABCDGIRSTW]' ;; 8080esac 8081 8082if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8083 # Gets list of data symbols to import. 8084 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 8085 # Adjust the below global symbol transforms to fixup imported variables. 8086 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 8087 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 8088 lt_c_name_lib_hook="\ 8089 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 8090 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 8091else 8092 # Disable hooks by default. 8093 lt_cv_sys_global_symbol_to_import= 8094 lt_cdecl_hook= 8095 lt_c_name_hook= 8096 lt_c_name_lib_hook= 8097fi 8098 8099# Transform an extracted symbol line into a proper C declaration. 8100# Some systems (esp. on ia64) link data and code symbols differently, 8101# so use this general approach. 8102lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 8103$lt_cdecl_hook\ 8104" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 8105" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 8106 8107# Transform an extracted symbol line into symbol name and symbol address 8108lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 8109$lt_c_name_hook\ 8110" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8111" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 8112 8113# Transform an extracted symbol line into symbol name with lib prefix and 8114# symbol address. 8115lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 8116$lt_c_name_lib_hook\ 8117" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 8118" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 8119" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 8120 8121# Handle CRLF in mingw tool chain 8122opt_cr= 8123case $build_os in 8124mingw*) 8125 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8126 ;; 8127esac 8128 8129# Try without a prefix underscore, then with it. 8130for ac_symprfx in "" "_"; do 8131 8132 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8133 symxfrm="\\1 $ac_symprfx\\2 \\2" 8134 8135 # Write the raw and C identifiers. 8136 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8137 # Fake it for dumpbin and say T for any non-static function, 8138 # D for any global variable and I for any imported variable. 8139 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 8140 # which start with @ or ?. 8141 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8142" {last_section=section; section=\$ 3};"\ 8143" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8144" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8145" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 8146" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 8147" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 8148" \$ 0!~/External *\|/{next};"\ 8149" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8150" {if(hide[section]) next};"\ 8151" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 8152" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 8153" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 8154" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 8155" ' prfx=^$ac_symprfx" 8156 else 8157 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8158 fi 8159 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 8160 8161 # Check to see that the pipe works correctly. 8162 pipe_works=no 8163 8164 rm -f conftest* 8165 cat > conftest.$ac_ext <<_LT_EOF 8166#ifdef __cplusplus 8167extern "C" { 8168#endif 8169char nm_test_var; 8170void nm_test_func(void); 8171void nm_test_func(void){} 8172#ifdef __cplusplus 8173} 8174#endif 8175int main(){nm_test_var='a';nm_test_func();return(0);} 8176_LT_EOF 8177 8178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8179 (eval $ac_compile) 2>&5 8180 ac_status=$? 8181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8182 test $ac_status = 0; }; then 8183 # Now try to grab the symbols. 8184 nlist=conftest.nm 8185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8186 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8187 ac_status=$? 8188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8189 test $ac_status = 0; } && test -s "$nlist"; then 8190 # Try sorting and uniquifying the output. 8191 if sort "$nlist" | uniq > "$nlist"T; then 8192 mv -f "$nlist"T "$nlist" 8193 else 8194 rm -f "$nlist"T 8195 fi 8196 8197 # Make sure that we snagged all the symbols we need. 8198 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8199 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8200 cat <<_LT_EOF > conftest.$ac_ext 8201/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8202#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 8203/* DATA imports from DLLs on WIN32 can't be const, because runtime 8204 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8205# define LT_DLSYM_CONST 8206#elif defined __osf__ 8207/* This system does not cope well with relocations in const data. */ 8208# define LT_DLSYM_CONST 8209#else 8210# define LT_DLSYM_CONST const 8211#endif 8212 8213#ifdef __cplusplus 8214extern "C" { 8215#endif 8216 8217_LT_EOF 8218 # Now generate the symbol file. 8219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8220 8221 cat <<_LT_EOF >> conftest.$ac_ext 8222 8223/* The mapping between symbol names and symbols. */ 8224LT_DLSYM_CONST struct { 8225 const char *name; 8226 void *address; 8227} 8228lt__PROGRAM__LTX_preloaded_symbols[] = 8229{ 8230 { "@PROGRAM@", (void *) 0 }, 8231_LT_EOF 8232 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8233 cat <<\_LT_EOF >> conftest.$ac_ext 8234 {0, (void *) 0} 8235}; 8236 8237/* This works around a problem in FreeBSD linker */ 8238#ifdef FREEBSD_WORKAROUND 8239static const void *lt_preloaded_setup() { 8240 return lt__PROGRAM__LTX_preloaded_symbols; 8241} 8242#endif 8243 8244#ifdef __cplusplus 8245} 8246#endif 8247_LT_EOF 8248 # Now try linking the two files. 8249 mv conftest.$ac_objext conftstm.$ac_objext 8250 lt_globsym_save_LIBS=$LIBS 8251 lt_globsym_save_CFLAGS=$CFLAGS 8252 LIBS=conftstm.$ac_objext 8253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8254 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8255 (eval $ac_link) 2>&5 8256 ac_status=$? 8257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8258 test $ac_status = 0; } && test -s conftest$ac_exeext; then 8259 pipe_works=yes 8260 fi 8261 LIBS=$lt_globsym_save_LIBS 8262 CFLAGS=$lt_globsym_save_CFLAGS 8263 else 8264 echo "cannot find nm_test_func in $nlist" >&5 8265 fi 8266 else 8267 echo "cannot find nm_test_var in $nlist" >&5 8268 fi 8269 else 8270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8271 fi 8272 else 8273 echo "$progname: failed program was:" >&5 8274 cat conftest.$ac_ext >&5 8275 fi 8276 rm -rf conftest* conftst* 8277 8278 # Do not use the global_symbol_pipe unless it works. 8279 if test yes = "$pipe_works"; then 8280 break 8281 else 8282 lt_cv_sys_global_symbol_pipe= 8283 fi 8284done 8285 ;; 8286esac 8287fi 8288 8289if test -z "$lt_cv_sys_global_symbol_pipe"; then 8290 lt_cv_sys_global_symbol_to_cdecl= 8291fi 8292if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8294printf "%s\n" "failed" >&6; } 8295else 8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8297printf "%s\n" "ok" >&6; } 8298fi 8299 8300# Response file support. 8301if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8302 nm_file_list_spec='@' 8303elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8304 nm_file_list_spec='@' 8305fi 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8344printf %s "checking for sysroot... " >&6; } 8345 8346# Check whether --with-sysroot was given. 8347if test ${with_sysroot+y} 8348then : 8349 withval=$with_sysroot; 8350else case e in #( 8351 e) with_sysroot=no ;; 8352esac 8353fi 8354 8355 8356lt_sysroot= 8357case $with_sysroot in #( 8358 yes) 8359 if test yes = "$GCC"; then 8360 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8361 fi 8362 ;; #( 8363 /*) 8364 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 8365 ;; #( 8366 no|'') 8367 ;; #( 8368 *) 8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 8370printf "%s\n" "$with_sysroot" >&6; } 8371 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8372 ;; 8373esac 8374 8375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8376printf "%s\n" "${lt_sysroot:-no}" >&6; } 8377 8378 8379 8380 8381 8382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 8383printf %s "checking for a working dd... " >&6; } 8384if test ${ac_cv_path_lt_DD+y} 8385then : 8386 printf %s "(cached) " >&6 8387else case e in #( 8388 e) printf 0123456789abcdef0123456789abcdef >conftest.i 8389cat conftest.i conftest.i >conftest2.i 8390: ${lt_DD:=$DD} 8391if test -z "$lt_DD"; then 8392 ac_path_lt_DD_found=false 8393 # Loop through the user's path and test for each of PROGNAME-LIST 8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8395for as_dir in $PATH 8396do 8397 IFS=$as_save_IFS 8398 case $as_dir in #((( 8399 '') as_dir=./ ;; 8400 */) ;; 8401 *) as_dir=$as_dir/ ;; 8402 esac 8403 for ac_prog in dd 8404 do 8405 for ac_exec_ext in '' $ac_executable_extensions; do 8406 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" 8407 as_fn_executable_p "$ac_path_lt_DD" || continue 8408if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8409 cmp -s conftest.i conftest.out \ 8410 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 8411fi 8412 $ac_path_lt_DD_found && break 3 8413 done 8414 done 8415 done 8416IFS=$as_save_IFS 8417 if test -z "$ac_cv_path_lt_DD"; then 8418 : 8419 fi 8420else 8421 ac_cv_path_lt_DD=$lt_DD 8422fi 8423 8424rm -f conftest.i conftest2.i conftest.out ;; 8425esac 8426fi 8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 8428printf "%s\n" "$ac_cv_path_lt_DD" >&6; } 8429 8430 8431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 8432printf %s "checking how to truncate binary pipes... " >&6; } 8433if test ${lt_cv_truncate_bin+y} 8434then : 8435 printf %s "(cached) " >&6 8436else case e in #( 8437 e) printf 0123456789abcdef0123456789abcdef >conftest.i 8438cat conftest.i conftest.i >conftest2.i 8439lt_cv_truncate_bin= 8440if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 8441 cmp -s conftest.i conftest.out \ 8442 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 8443fi 8444rm -f conftest.i conftest2.i conftest.out 8445test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; 8446esac 8447fi 8448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 8449printf "%s\n" "$lt_cv_truncate_bin" >&6; } 8450 8451 8452 8453 8454 8455 8456 8457# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 8458func_cc_basename () 8459{ 8460 for cc_temp in $*""; do 8461 case $cc_temp in 8462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8464 \-*) ;; 8465 *) break;; 8466 esac 8467 done 8468 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8469} 8470 8471# Check whether --enable-libtool-lock was given. 8472if test ${enable_libtool_lock+y} 8473then : 8474 enableval=$enable_libtool_lock; 8475fi 8476 8477test no = "$enable_libtool_lock" || enable_libtool_lock=yes 8478 8479# Some flags need to be propagated to the compiler or linker for good 8480# libtool support. 8481case $host in 8482ia64-*-hpux*) 8483 # Find out what ABI is being produced by ac_compile, and set mode 8484 # options accordingly. 8485 echo 'int i;' > conftest.$ac_ext 8486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8487 (eval $ac_compile) 2>&5 8488 ac_status=$? 8489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8490 test $ac_status = 0; }; then 8491 case `$FILECMD conftest.$ac_objext` in 8492 *ELF-32*) 8493 HPUX_IA64_MODE=32 8494 ;; 8495 *ELF-64*) 8496 HPUX_IA64_MODE=64 8497 ;; 8498 esac 8499 fi 8500 rm -rf conftest* 8501 ;; 8502*-*-irix6*) 8503 # Find out what ABI is being produced by ac_compile, and set linker 8504 # options accordingly. 8505 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8507 (eval $ac_compile) 2>&5 8508 ac_status=$? 8509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8510 test $ac_status = 0; }; then 8511 if test yes = "$lt_cv_prog_gnu_ld"; then 8512 case `$FILECMD conftest.$ac_objext` in 8513 *32-bit*) 8514 LD="${LD-ld} -melf32bsmip" 8515 ;; 8516 *N32*) 8517 LD="${LD-ld} -melf32bmipn32" 8518 ;; 8519 *64-bit*) 8520 LD="${LD-ld} -melf64bmip" 8521 ;; 8522 esac 8523 else 8524 case `$FILECMD conftest.$ac_objext` in 8525 *32-bit*) 8526 LD="${LD-ld} -32" 8527 ;; 8528 *N32*) 8529 LD="${LD-ld} -n32" 8530 ;; 8531 *64-bit*) 8532 LD="${LD-ld} -64" 8533 ;; 8534 esac 8535 fi 8536 fi 8537 rm -rf conftest* 8538 ;; 8539 8540mips64*-*linux*) 8541 # Find out what ABI is being produced by ac_compile, and set linker 8542 # options accordingly. 8543 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8545 (eval $ac_compile) 2>&5 8546 ac_status=$? 8547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8548 test $ac_status = 0; }; then 8549 emul=elf 8550 case `$FILECMD conftest.$ac_objext` in 8551 *32-bit*) 8552 emul="${emul}32" 8553 ;; 8554 *64-bit*) 8555 emul="${emul}64" 8556 ;; 8557 esac 8558 case `$FILECMD conftest.$ac_objext` in 8559 *MSB*) 8560 emul="${emul}btsmip" 8561 ;; 8562 *LSB*) 8563 emul="${emul}ltsmip" 8564 ;; 8565 esac 8566 case `$FILECMD conftest.$ac_objext` in 8567 *N32*) 8568 emul="${emul}n32" 8569 ;; 8570 esac 8571 LD="${LD-ld} -m $emul" 8572 fi 8573 rm -rf conftest* 8574 ;; 8575 8576x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8577s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8578 # Find out what ABI is being produced by ac_compile, and set linker 8579 # options accordingly. Note that the listed cases only cover the 8580 # situations where additional linker options are needed (such as when 8581 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8582 # vice versa); the common cases where no linker options are needed do 8583 # not appear in the list. 8584 echo 'int i;' > conftest.$ac_ext 8585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8586 (eval $ac_compile) 2>&5 8587 ac_status=$? 8588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8589 test $ac_status = 0; }; then 8590 case `$FILECMD conftest.o` in 8591 *32-bit*) 8592 case $host in 8593 x86_64-*kfreebsd*-gnu) 8594 LD="${LD-ld} -m elf_i386_fbsd" 8595 ;; 8596 x86_64-*linux*) 8597 case `$FILECMD conftest.o` in 8598 *x86-64*) 8599 LD="${LD-ld} -m elf32_x86_64" 8600 ;; 8601 *) 8602 LD="${LD-ld} -m elf_i386" 8603 ;; 8604 esac 8605 ;; 8606 powerpc64le-*linux*) 8607 LD="${LD-ld} -m elf32lppclinux" 8608 ;; 8609 powerpc64-*linux*) 8610 LD="${LD-ld} -m elf32ppclinux" 8611 ;; 8612 s390x-*linux*) 8613 LD="${LD-ld} -m elf_s390" 8614 ;; 8615 sparc64-*linux*) 8616 LD="${LD-ld} -m elf32_sparc" 8617 ;; 8618 esac 8619 ;; 8620 *64-bit*) 8621 case $host in 8622 x86_64-*kfreebsd*-gnu) 8623 LD="${LD-ld} -m elf_x86_64_fbsd" 8624 ;; 8625 x86_64-*linux*) 8626 LD="${LD-ld} -m elf_x86_64" 8627 ;; 8628 powerpcle-*linux*) 8629 LD="${LD-ld} -m elf64lppc" 8630 ;; 8631 powerpc-*linux*) 8632 LD="${LD-ld} -m elf64ppc" 8633 ;; 8634 s390*-*linux*|s390*-*tpf*) 8635 LD="${LD-ld} -m elf64_s390" 8636 ;; 8637 sparc*-*linux*) 8638 LD="${LD-ld} -m elf64_sparc" 8639 ;; 8640 esac 8641 ;; 8642 esac 8643 fi 8644 rm -rf conftest* 8645 ;; 8646 8647*-*-sco3.2v5*) 8648 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8649 SAVE_CFLAGS=$CFLAGS 8650 CFLAGS="$CFLAGS -belf" 8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8652printf %s "checking whether the C compiler needs -belf... " >&6; } 8653if test ${lt_cv_cc_needs_belf+y} 8654then : 8655 printf %s "(cached) " >&6 8656else case e in #( 8657 e) ac_ext=c 8658ac_cpp='$CPP $CPPFLAGS' 8659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8661ac_compiler_gnu=$ac_cv_c_compiler_gnu 8662 8663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8664/* end confdefs.h. */ 8665 8666int 8667main (void) 8668{ 8669 8670 ; 8671 return 0; 8672} 8673_ACEOF 8674if ac_fn_c_try_link "$LINENO" 8675then : 8676 lt_cv_cc_needs_belf=yes 8677else case e in #( 8678 e) lt_cv_cc_needs_belf=no ;; 8679esac 8680fi 8681rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8682 conftest$ac_exeext conftest.$ac_ext 8683 ac_ext=c 8684ac_cpp='$CPP $CPPFLAGS' 8685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8687ac_compiler_gnu=$ac_cv_c_compiler_gnu 8688 ;; 8689esac 8690fi 8691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8692printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } 8693 if test yes != "$lt_cv_cc_needs_belf"; then 8694 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8695 CFLAGS=$SAVE_CFLAGS 8696 fi 8697 ;; 8698*-*solaris*) 8699 # Find out what ABI is being produced by ac_compile, and set linker 8700 # options accordingly. 8701 echo 'int i;' > conftest.$ac_ext 8702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8703 (eval $ac_compile) 2>&5 8704 ac_status=$? 8705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8706 test $ac_status = 0; }; then 8707 case `$FILECMD conftest.o` in 8708 *64-bit*) 8709 case $lt_cv_prog_gnu_ld in 8710 yes*) 8711 case $host in 8712 i?86-*-solaris*|x86_64-*-solaris*) 8713 LD="${LD-ld} -m elf_x86_64" 8714 ;; 8715 sparc*-*-solaris*) 8716 LD="${LD-ld} -m elf64_sparc" 8717 ;; 8718 esac 8719 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8720 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8721 LD=${LD-ld}_sol2 8722 fi 8723 ;; 8724 *) 8725 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8726 LD="${LD-ld} -64" 8727 fi 8728 ;; 8729 esac 8730 ;; 8731 esac 8732 fi 8733 rm -rf conftest* 8734 ;; 8735esac 8736 8737need_locks=$enable_libtool_lock 8738 8739if test -n "$ac_tool_prefix"; then 8740 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8741set dummy ${ac_tool_prefix}mt; ac_word=$2 8742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8743printf %s "checking for $ac_word... " >&6; } 8744if test ${ac_cv_prog_MANIFEST_TOOL+y} 8745then : 8746 printf %s "(cached) " >&6 8747else case e in #( 8748 e) if test -n "$MANIFEST_TOOL"; then 8749 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8750else 8751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8752for as_dir in $PATH 8753do 8754 IFS=$as_save_IFS 8755 case $as_dir in #((( 8756 '') as_dir=./ ;; 8757 */) ;; 8758 *) as_dir=$as_dir/ ;; 8759 esac 8760 for ac_exec_ext in '' $ac_executable_extensions; do 8761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8762 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8764 break 2 8765 fi 8766done 8767 done 8768IFS=$as_save_IFS 8769 8770fi ;; 8771esac 8772fi 8773MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8774if test -n "$MANIFEST_TOOL"; then 8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8776printf "%s\n" "$MANIFEST_TOOL" >&6; } 8777else 8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8779printf "%s\n" "no" >&6; } 8780fi 8781 8782 8783fi 8784if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8786 # Extract the first word of "mt", so it can be a program name with args. 8787set dummy mt; ac_word=$2 8788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8789printf %s "checking for $ac_word... " >&6; } 8790if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} 8791then : 8792 printf %s "(cached) " >&6 8793else case e in #( 8794 e) if test -n "$ac_ct_MANIFEST_TOOL"; then 8795 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8796else 8797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8798for as_dir in $PATH 8799do 8800 IFS=$as_save_IFS 8801 case $as_dir in #((( 8802 '') as_dir=./ ;; 8803 */) ;; 8804 *) as_dir=$as_dir/ ;; 8805 esac 8806 for ac_exec_ext in '' $ac_executable_extensions; do 8807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8808 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8810 break 2 8811 fi 8812done 8813 done 8814IFS=$as_save_IFS 8815 8816fi ;; 8817esac 8818fi 8819ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8820if test -n "$ac_ct_MANIFEST_TOOL"; then 8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8822printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } 8823else 8824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8825printf "%s\n" "no" >&6; } 8826fi 8827 8828 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8829 MANIFEST_TOOL=":" 8830 else 8831 case $cross_compiling:$ac_tool_warned in 8832yes:) 8833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8834printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8835ac_tool_warned=yes ;; 8836esac 8837 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8838 fi 8839else 8840 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8841fi 8842 8843test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8845printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8846if test ${lt_cv_path_mainfest_tool+y} 8847then : 8848 printf %s "(cached) " >&6 8849else case e in #( 8850 e) lt_cv_path_mainfest_tool=no 8851 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8852 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8853 cat conftest.err >&5 8854 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8855 lt_cv_path_mainfest_tool=yes 8856 fi 8857 rm -f conftest* ;; 8858esac 8859fi 8860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8861printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } 8862if test yes != "$lt_cv_path_mainfest_tool"; then 8863 MANIFEST_TOOL=: 8864fi 8865 8866 8867 8868 8869 8870 8871 case $host_os in 8872 rhapsody* | darwin*) 8873 if test -n "$ac_tool_prefix"; then 8874 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8875set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8877printf %s "checking for $ac_word... " >&6; } 8878if test ${ac_cv_prog_DSYMUTIL+y} 8879then : 8880 printf %s "(cached) " >&6 8881else case e in #( 8882 e) if test -n "$DSYMUTIL"; then 8883 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8884else 8885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8886for as_dir in $PATH 8887do 8888 IFS=$as_save_IFS 8889 case $as_dir in #((( 8890 '') as_dir=./ ;; 8891 */) ;; 8892 *) as_dir=$as_dir/ ;; 8893 esac 8894 for ac_exec_ext in '' $ac_executable_extensions; do 8895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8896 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8898 break 2 8899 fi 8900done 8901 done 8902IFS=$as_save_IFS 8903 8904fi ;; 8905esac 8906fi 8907DSYMUTIL=$ac_cv_prog_DSYMUTIL 8908if test -n "$DSYMUTIL"; then 8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8910printf "%s\n" "$DSYMUTIL" >&6; } 8911else 8912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8913printf "%s\n" "no" >&6; } 8914fi 8915 8916 8917fi 8918if test -z "$ac_cv_prog_DSYMUTIL"; then 8919 ac_ct_DSYMUTIL=$DSYMUTIL 8920 # Extract the first word of "dsymutil", so it can be a program name with args. 8921set dummy dsymutil; ac_word=$2 8922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8923printf %s "checking for $ac_word... " >&6; } 8924if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} 8925then : 8926 printf %s "(cached) " >&6 8927else case e in #( 8928 e) if test -n "$ac_ct_DSYMUTIL"; then 8929 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8930else 8931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8932for as_dir in $PATH 8933do 8934 IFS=$as_save_IFS 8935 case $as_dir in #((( 8936 '') as_dir=./ ;; 8937 */) ;; 8938 *) as_dir=$as_dir/ ;; 8939 esac 8940 for ac_exec_ext in '' $ac_executable_extensions; do 8941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8942 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8944 break 2 8945 fi 8946done 8947 done 8948IFS=$as_save_IFS 8949 8950fi ;; 8951esac 8952fi 8953ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8954if test -n "$ac_ct_DSYMUTIL"; then 8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8956printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } 8957else 8958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8959printf "%s\n" "no" >&6; } 8960fi 8961 8962 if test "x$ac_ct_DSYMUTIL" = x; then 8963 DSYMUTIL=":" 8964 else 8965 case $cross_compiling:$ac_tool_warned in 8966yes:) 8967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8968printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8969ac_tool_warned=yes ;; 8970esac 8971 DSYMUTIL=$ac_ct_DSYMUTIL 8972 fi 8973else 8974 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8975fi 8976 8977 if test -n "$ac_tool_prefix"; then 8978 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8979set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8981printf %s "checking for $ac_word... " >&6; } 8982if test ${ac_cv_prog_NMEDIT+y} 8983then : 8984 printf %s "(cached) " >&6 8985else case e in #( 8986 e) if test -n "$NMEDIT"; then 8987 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8988else 8989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8990for as_dir in $PATH 8991do 8992 IFS=$as_save_IFS 8993 case $as_dir in #((( 8994 '') as_dir=./ ;; 8995 */) ;; 8996 *) as_dir=$as_dir/ ;; 8997 esac 8998 for ac_exec_ext in '' $ac_executable_extensions; do 8999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9000 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 9001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9002 break 2 9003 fi 9004done 9005 done 9006IFS=$as_save_IFS 9007 9008fi ;; 9009esac 9010fi 9011NMEDIT=$ac_cv_prog_NMEDIT 9012if test -n "$NMEDIT"; then 9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 9014printf "%s\n" "$NMEDIT" >&6; } 9015else 9016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9017printf "%s\n" "no" >&6; } 9018fi 9019 9020 9021fi 9022if test -z "$ac_cv_prog_NMEDIT"; then 9023 ac_ct_NMEDIT=$NMEDIT 9024 # Extract the first word of "nmedit", so it can be a program name with args. 9025set dummy nmedit; ac_word=$2 9026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9027printf %s "checking for $ac_word... " >&6; } 9028if test ${ac_cv_prog_ac_ct_NMEDIT+y} 9029then : 9030 printf %s "(cached) " >&6 9031else case e in #( 9032 e) if test -n "$ac_ct_NMEDIT"; then 9033 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 9034else 9035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9036for as_dir in $PATH 9037do 9038 IFS=$as_save_IFS 9039 case $as_dir in #((( 9040 '') as_dir=./ ;; 9041 */) ;; 9042 *) as_dir=$as_dir/ ;; 9043 esac 9044 for ac_exec_ext in '' $ac_executable_extensions; do 9045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9046 ac_cv_prog_ac_ct_NMEDIT="nmedit" 9047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9048 break 2 9049 fi 9050done 9051 done 9052IFS=$as_save_IFS 9053 9054fi ;; 9055esac 9056fi 9057ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 9058if test -n "$ac_ct_NMEDIT"; then 9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 9060printf "%s\n" "$ac_ct_NMEDIT" >&6; } 9061else 9062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9063printf "%s\n" "no" >&6; } 9064fi 9065 9066 if test "x$ac_ct_NMEDIT" = x; then 9067 NMEDIT=":" 9068 else 9069 case $cross_compiling:$ac_tool_warned in 9070yes:) 9071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9072printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9073ac_tool_warned=yes ;; 9074esac 9075 NMEDIT=$ac_ct_NMEDIT 9076 fi 9077else 9078 NMEDIT="$ac_cv_prog_NMEDIT" 9079fi 9080 9081 if test -n "$ac_tool_prefix"; then 9082 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 9083set dummy ${ac_tool_prefix}lipo; ac_word=$2 9084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9085printf %s "checking for $ac_word... " >&6; } 9086if test ${ac_cv_prog_LIPO+y} 9087then : 9088 printf %s "(cached) " >&6 9089else case e in #( 9090 e) if test -n "$LIPO"; then 9091 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9092else 9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9094for as_dir in $PATH 9095do 9096 IFS=$as_save_IFS 9097 case $as_dir in #((( 9098 '') as_dir=./ ;; 9099 */) ;; 9100 *) as_dir=$as_dir/ ;; 9101 esac 9102 for ac_exec_ext in '' $ac_executable_extensions; do 9103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9104 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9106 break 2 9107 fi 9108done 9109 done 9110IFS=$as_save_IFS 9111 9112fi ;; 9113esac 9114fi 9115LIPO=$ac_cv_prog_LIPO 9116if test -n "$LIPO"; then 9117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9118printf "%s\n" "$LIPO" >&6; } 9119else 9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9121printf "%s\n" "no" >&6; } 9122fi 9123 9124 9125fi 9126if test -z "$ac_cv_prog_LIPO"; then 9127 ac_ct_LIPO=$LIPO 9128 # Extract the first word of "lipo", so it can be a program name with args. 9129set dummy lipo; ac_word=$2 9130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9131printf %s "checking for $ac_word... " >&6; } 9132if test ${ac_cv_prog_ac_ct_LIPO+y} 9133then : 9134 printf %s "(cached) " >&6 9135else case e in #( 9136 e) if test -n "$ac_ct_LIPO"; then 9137 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9138else 9139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9140for as_dir in $PATH 9141do 9142 IFS=$as_save_IFS 9143 case $as_dir in #((( 9144 '') as_dir=./ ;; 9145 */) ;; 9146 *) as_dir=$as_dir/ ;; 9147 esac 9148 for ac_exec_ext in '' $ac_executable_extensions; do 9149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9150 ac_cv_prog_ac_ct_LIPO="lipo" 9151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9152 break 2 9153 fi 9154done 9155 done 9156IFS=$as_save_IFS 9157 9158fi ;; 9159esac 9160fi 9161ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9162if test -n "$ac_ct_LIPO"; then 9163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9164printf "%s\n" "$ac_ct_LIPO" >&6; } 9165else 9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9167printf "%s\n" "no" >&6; } 9168fi 9169 9170 if test "x$ac_ct_LIPO" = x; then 9171 LIPO=":" 9172 else 9173 case $cross_compiling:$ac_tool_warned in 9174yes:) 9175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9176printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9177ac_tool_warned=yes ;; 9178esac 9179 LIPO=$ac_ct_LIPO 9180 fi 9181else 9182 LIPO="$ac_cv_prog_LIPO" 9183fi 9184 9185 if test -n "$ac_tool_prefix"; then 9186 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9187set dummy ${ac_tool_prefix}otool; ac_word=$2 9188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9189printf %s "checking for $ac_word... " >&6; } 9190if test ${ac_cv_prog_OTOOL+y} 9191then : 9192 printf %s "(cached) " >&6 9193else case e in #( 9194 e) if test -n "$OTOOL"; then 9195 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9196else 9197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9198for as_dir in $PATH 9199do 9200 IFS=$as_save_IFS 9201 case $as_dir in #((( 9202 '') as_dir=./ ;; 9203 */) ;; 9204 *) as_dir=$as_dir/ ;; 9205 esac 9206 for ac_exec_ext in '' $ac_executable_extensions; do 9207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9208 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9210 break 2 9211 fi 9212done 9213 done 9214IFS=$as_save_IFS 9215 9216fi ;; 9217esac 9218fi 9219OTOOL=$ac_cv_prog_OTOOL 9220if test -n "$OTOOL"; then 9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9222printf "%s\n" "$OTOOL" >&6; } 9223else 9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9225printf "%s\n" "no" >&6; } 9226fi 9227 9228 9229fi 9230if test -z "$ac_cv_prog_OTOOL"; then 9231 ac_ct_OTOOL=$OTOOL 9232 # Extract the first word of "otool", so it can be a program name with args. 9233set dummy otool; ac_word=$2 9234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9235printf %s "checking for $ac_word... " >&6; } 9236if test ${ac_cv_prog_ac_ct_OTOOL+y} 9237then : 9238 printf %s "(cached) " >&6 9239else case e in #( 9240 e) if test -n "$ac_ct_OTOOL"; then 9241 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9242else 9243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9244for as_dir in $PATH 9245do 9246 IFS=$as_save_IFS 9247 case $as_dir in #((( 9248 '') as_dir=./ ;; 9249 */) ;; 9250 *) as_dir=$as_dir/ ;; 9251 esac 9252 for ac_exec_ext in '' $ac_executable_extensions; do 9253 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9254 ac_cv_prog_ac_ct_OTOOL="otool" 9255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9256 break 2 9257 fi 9258done 9259 done 9260IFS=$as_save_IFS 9261 9262fi ;; 9263esac 9264fi 9265ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9266if test -n "$ac_ct_OTOOL"; then 9267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9268printf "%s\n" "$ac_ct_OTOOL" >&6; } 9269else 9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9271printf "%s\n" "no" >&6; } 9272fi 9273 9274 if test "x$ac_ct_OTOOL" = x; then 9275 OTOOL=":" 9276 else 9277 case $cross_compiling:$ac_tool_warned in 9278yes:) 9279{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9280printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9281ac_tool_warned=yes ;; 9282esac 9283 OTOOL=$ac_ct_OTOOL 9284 fi 9285else 9286 OTOOL="$ac_cv_prog_OTOOL" 9287fi 9288 9289 if test -n "$ac_tool_prefix"; then 9290 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9291set dummy ${ac_tool_prefix}otool64; ac_word=$2 9292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9293printf %s "checking for $ac_word... " >&6; } 9294if test ${ac_cv_prog_OTOOL64+y} 9295then : 9296 printf %s "(cached) " >&6 9297else case e in #( 9298 e) if test -n "$OTOOL64"; then 9299 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9300else 9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9302for as_dir in $PATH 9303do 9304 IFS=$as_save_IFS 9305 case $as_dir in #((( 9306 '') as_dir=./ ;; 9307 */) ;; 9308 *) as_dir=$as_dir/ ;; 9309 esac 9310 for ac_exec_ext in '' $ac_executable_extensions; do 9311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9312 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9314 break 2 9315 fi 9316done 9317 done 9318IFS=$as_save_IFS 9319 9320fi ;; 9321esac 9322fi 9323OTOOL64=$ac_cv_prog_OTOOL64 9324if test -n "$OTOOL64"; then 9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9326printf "%s\n" "$OTOOL64" >&6; } 9327else 9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9329printf "%s\n" "no" >&6; } 9330fi 9331 9332 9333fi 9334if test -z "$ac_cv_prog_OTOOL64"; then 9335 ac_ct_OTOOL64=$OTOOL64 9336 # Extract the first word of "otool64", so it can be a program name with args. 9337set dummy otool64; ac_word=$2 9338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9339printf %s "checking for $ac_word... " >&6; } 9340if test ${ac_cv_prog_ac_ct_OTOOL64+y} 9341then : 9342 printf %s "(cached) " >&6 9343else case e in #( 9344 e) if test -n "$ac_ct_OTOOL64"; then 9345 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9346else 9347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9348for as_dir in $PATH 9349do 9350 IFS=$as_save_IFS 9351 case $as_dir in #((( 9352 '') as_dir=./ ;; 9353 */) ;; 9354 *) as_dir=$as_dir/ ;; 9355 esac 9356 for ac_exec_ext in '' $ac_executable_extensions; do 9357 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9358 ac_cv_prog_ac_ct_OTOOL64="otool64" 9359 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9360 break 2 9361 fi 9362done 9363 done 9364IFS=$as_save_IFS 9365 9366fi ;; 9367esac 9368fi 9369ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9370if test -n "$ac_ct_OTOOL64"; then 9371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9372printf "%s\n" "$ac_ct_OTOOL64" >&6; } 9373else 9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9375printf "%s\n" "no" >&6; } 9376fi 9377 9378 if test "x$ac_ct_OTOOL64" = x; then 9379 OTOOL64=":" 9380 else 9381 case $cross_compiling:$ac_tool_warned in 9382yes:) 9383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9384printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9385ac_tool_warned=yes ;; 9386esac 9387 OTOOL64=$ac_ct_OTOOL64 9388 fi 9389else 9390 OTOOL64="$ac_cv_prog_OTOOL64" 9391fi 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9420printf %s "checking for -single_module linker flag... " >&6; } 9421if test ${lt_cv_apple_cc_single_mod+y} 9422then : 9423 printf %s "(cached) " >&6 9424else case e in #( 9425 e) lt_cv_apple_cc_single_mod=no 9426 if test -z "$LT_MULTI_MODULE"; then 9427 # By default we will add the -single_module flag. You can override 9428 # by either setting the environment variable LT_MULTI_MODULE 9429 # non-empty at configure time, or by adding -multi_module to the 9430 # link flags. 9431 rm -rf libconftest.dylib* 9432 echo "int foo(void){return 1;}" > conftest.c 9433 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9434-dynamiclib -Wl,-single_module conftest.c" >&5 9435 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9436 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9437 _lt_result=$? 9438 # If there is a non-empty error log, and "single_module" 9439 # appears in it, assume the flag caused a linker warning 9440 if test -s conftest.err && $GREP single_module conftest.err; then 9441 cat conftest.err >&5 9442 # Otherwise, if the output was created with a 0 exit code from 9443 # the compiler, it worked. 9444 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 9445 lt_cv_apple_cc_single_mod=yes 9446 else 9447 cat conftest.err >&5 9448 fi 9449 rm -rf libconftest.dylib* 9450 rm -f conftest.* 9451 fi ;; 9452esac 9453fi 9454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9455printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } 9456 9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9458printf %s "checking for -exported_symbols_list linker flag... " >&6; } 9459if test ${lt_cv_ld_exported_symbols_list+y} 9460then : 9461 printf %s "(cached) " >&6 9462else case e in #( 9463 e) lt_cv_ld_exported_symbols_list=no 9464 save_LDFLAGS=$LDFLAGS 9465 echo "_main" > conftest.sym 9466 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9468/* end confdefs.h. */ 9469 9470int 9471main (void) 9472{ 9473 9474 ; 9475 return 0; 9476} 9477_ACEOF 9478if ac_fn_c_try_link "$LINENO" 9479then : 9480 lt_cv_ld_exported_symbols_list=yes 9481else case e in #( 9482 e) lt_cv_ld_exported_symbols_list=no ;; 9483esac 9484fi 9485rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9486 conftest$ac_exeext conftest.$ac_ext 9487 LDFLAGS=$save_LDFLAGS 9488 ;; 9489esac 9490fi 9491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9492printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } 9493 9494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9495printf %s "checking for -force_load linker flag... " >&6; } 9496if test ${lt_cv_ld_force_load+y} 9497then : 9498 printf %s "(cached) " >&6 9499else case e in #( 9500 e) lt_cv_ld_force_load=no 9501 cat > conftest.c << _LT_EOF 9502int forced_loaded() { return 2;} 9503_LT_EOF 9504 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9505 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9506 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 9507 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 9508 echo "$RANLIB libconftest.a" >&5 9509 $RANLIB libconftest.a 2>&5 9510 cat > conftest.c << _LT_EOF 9511int main() { return 0;} 9512_LT_EOF 9513 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9514 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9515 _lt_result=$? 9516 if test -s conftest.err && $GREP force_load conftest.err; then 9517 cat conftest.err >&5 9518 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 9519 lt_cv_ld_force_load=yes 9520 else 9521 cat conftest.err >&5 9522 fi 9523 rm -f conftest.err libconftest.a conftest conftest.c 9524 rm -rf conftest.dSYM 9525 ;; 9526esac 9527fi 9528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9529printf "%s\n" "$lt_cv_ld_force_load" >&6; } 9530 case $host_os in 9531 rhapsody* | darwin1.[012]) 9532 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 9533 darwin1.*) 9534 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9535 darwin*) 9536 case $MACOSX_DEPLOYMENT_TARGET,$host in 9537 10.[012],*|,*powerpc*-darwin[5-8]*) 9538 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 9539 *) 9540 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 9541 esac 9542 ;; 9543 esac 9544 if test yes = "$lt_cv_apple_cc_single_mod"; then 9545 _lt_dar_single_mod='$single_module' 9546 fi 9547 if test yes = "$lt_cv_ld_exported_symbols_list"; then 9548 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 9549 else 9550 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 9551 fi 9552 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 9553 _lt_dsymutil='~$DSYMUTIL $lib || :' 9554 else 9555 _lt_dsymutil= 9556 fi 9557 ;; 9558 esac 9559 9560# func_munge_path_list VARIABLE PATH 9561# ----------------------------------- 9562# VARIABLE is name of variable containing _space_ separated list of 9563# directories to be munged by the contents of PATH, which is string 9564# having a format: 9565# "DIR[:DIR]:" 9566# string "DIR[ DIR]" will be prepended to VARIABLE 9567# ":DIR[:DIR]" 9568# string "DIR[ DIR]" will be appended to VARIABLE 9569# "DIRP[:DIRP]::[DIRA:]DIRA" 9570# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 9571# "DIRA[ DIRA]" will be appended to VARIABLE 9572# "DIR[:DIR]" 9573# VARIABLE will be replaced by "DIR[ DIR]" 9574func_munge_path_list () 9575{ 9576 case x$2 in 9577 x) 9578 ;; 9579 *:) 9580 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 9581 ;; 9582 x:*) 9583 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 9584 ;; 9585 *::*) 9586 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 9587 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 9588 ;; 9589 *) 9590 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 9591 ;; 9592 esac 9593} 9594 9595ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9596" 9597if test "x$ac_cv_header_dlfcn_h" = xyes 9598then : 9599 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 9600 9601fi 9602 9603 9604 9605 9606 9607# Set options 9608# Check whether --enable-static was given. 9609if test ${enable_static+y} 9610then : 9611 enableval=$enable_static; p=${PACKAGE-default} 9612 case $enableval in 9613 yes) enable_static=yes ;; 9614 no) enable_static=no ;; 9615 *) 9616 enable_static=no 9617 # Look at the argument we got. We use all the common list separators. 9618 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9619 for pkg in $enableval; do 9620 IFS=$lt_save_ifs 9621 if test "X$pkg" = "X$p"; then 9622 enable_static=yes 9623 fi 9624 done 9625 IFS=$lt_save_ifs 9626 ;; 9627 esac 9628else case e in #( 9629 e) enable_static=no ;; 9630esac 9631fi 9632 9633 9634 9635 9636 9637 9638 9639 9640# Check whether --with-pic was given. 9641if test ${with_pic+y} 9642then : 9643 withval=$with_pic; lt_p=${PACKAGE-default} 9644 case $withval in 9645 yes|no) pic_mode=$withval ;; 9646 *) 9647 pic_mode=default 9648 # Look at the argument we got. We use all the common list separators. 9649 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9650 for lt_pkg in $withval; do 9651 IFS=$lt_save_ifs 9652 if test "X$lt_pkg" = "X$lt_p"; then 9653 pic_mode=yes 9654 fi 9655 done 9656 IFS=$lt_save_ifs 9657 ;; 9658 esac 9659else case e in #( 9660 e) pic_mode=yes ;; 9661esac 9662fi 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 enable_dlopen=no 9673 9674 9675 enable_win32_dll=no 9676 9677 9678 # Check whether --enable-shared was given. 9679if test ${enable_shared+y} 9680then : 9681 enableval=$enable_shared; p=${PACKAGE-default} 9682 case $enableval in 9683 yes) enable_shared=yes ;; 9684 no) enable_shared=no ;; 9685 *) 9686 enable_shared=no 9687 # Look at the argument we got. We use all the common list separators. 9688 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9689 for pkg in $enableval; do 9690 IFS=$lt_save_ifs 9691 if test "X$pkg" = "X$p"; then 9692 enable_shared=yes 9693 fi 9694 done 9695 IFS=$lt_save_ifs 9696 ;; 9697 esac 9698else case e in #( 9699 e) enable_shared=yes ;; 9700esac 9701fi 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 # Check whether --enable-fast-install was given. 9714if test ${enable_fast_install+y} 9715then : 9716 enableval=$enable_fast_install; p=${PACKAGE-default} 9717 case $enableval in 9718 yes) enable_fast_install=yes ;; 9719 no) enable_fast_install=no ;; 9720 *) 9721 enable_fast_install=no 9722 # Look at the argument we got. We use all the common list separators. 9723 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9724 for pkg in $enableval; do 9725 IFS=$lt_save_ifs 9726 if test "X$pkg" = "X$p"; then 9727 enable_fast_install=yes 9728 fi 9729 done 9730 IFS=$lt_save_ifs 9731 ;; 9732 esac 9733else case e in #( 9734 e) enable_fast_install=yes ;; 9735esac 9736fi 9737 9738 9739 9740 9741 9742 9743 9744 9745 shared_archive_member_spec= 9746case $host,$enable_shared in 9747power*-*-aix[5-9]*,yes) 9748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9749printf %s "checking which variant of shared library versioning to provide... " >&6; } 9750 9751# Check whether --with-aix-soname was given. 9752if test ${with_aix_soname+y} 9753then : 9754 withval=$with_aix_soname; case $withval in 9755 aix|svr4|both) 9756 ;; 9757 *) 9758 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9759 ;; 9760 esac 9761 lt_cv_with_aix_soname=$with_aix_soname 9762else case e in #( 9763 e) if test ${lt_cv_with_aix_soname+y} 9764then : 9765 printf %s "(cached) " >&6 9766else case e in #( 9767 e) lt_cv_with_aix_soname=aix ;; 9768esac 9769fi 9770 9771 with_aix_soname=$lt_cv_with_aix_soname ;; 9772esac 9773fi 9774 9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9776printf "%s\n" "$with_aix_soname" >&6; } 9777 if test aix != "$with_aix_soname"; then 9778 # For the AIX way of multilib, we name the shared archive member 9779 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9780 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9781 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9782 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9783 if test 64 = "${OBJECT_MODE-32}"; then 9784 shared_archive_member_spec=shr_64 9785 else 9786 shared_archive_member_spec=shr 9787 fi 9788 fi 9789 ;; 9790*) 9791 with_aix_soname=aix 9792 ;; 9793esac 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804# This can be used to rebuild libtool when needed 9805LIBTOOL_DEPS=$ltmain 9806 9807# Always use our own libtool. 9808LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839test -z "$LN_S" && LN_S="ln -s" 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854if test -n "${ZSH_VERSION+set}"; then 9855 setopt NO_GLOB_SUBST 9856fi 9857 9858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9859printf %s "checking for objdir... " >&6; } 9860if test ${lt_cv_objdir+y} 9861then : 9862 printf %s "(cached) " >&6 9863else case e in #( 9864 e) rm -f .libs 2>/dev/null 9865mkdir .libs 2>/dev/null 9866if test -d .libs; then 9867 lt_cv_objdir=.libs 9868else 9869 # MS-DOS does not allow filenames that begin with a dot. 9870 lt_cv_objdir=_libs 9871fi 9872rmdir .libs 2>/dev/null ;; 9873esac 9874fi 9875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9876printf "%s\n" "$lt_cv_objdir" >&6; } 9877objdir=$lt_cv_objdir 9878 9879 9880 9881 9882 9883printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h 9884 9885 9886 9887 9888case $host_os in 9889aix3*) 9890 # AIX sometimes has problems with the GCC collect2 program. For some 9891 # reason, if we set the COLLECT_NAMES environment variable, the problems 9892 # vanish in a puff of smoke. 9893 if test set != "${COLLECT_NAMES+set}"; then 9894 COLLECT_NAMES= 9895 export COLLECT_NAMES 9896 fi 9897 ;; 9898esac 9899 9900# Global variables: 9901ofile=libtool 9902can_build_shared=yes 9903 9904# All known linkers require a '.a' archive for static linking (except MSVC and 9905# ICC, which need '.lib'). 9906libext=a 9907 9908with_gnu_ld=$lt_cv_prog_gnu_ld 9909 9910old_CC=$CC 9911old_CFLAGS=$CFLAGS 9912 9913# Set sane defaults for various variables 9914test -z "$CC" && CC=cc 9915test -z "$LTCC" && LTCC=$CC 9916test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9917test -z "$LD" && LD=ld 9918test -z "$ac_objext" && ac_objext=o 9919 9920func_cc_basename $compiler 9921cc_basename=$func_cc_basename_result 9922 9923 9924# Only perform the check for file, if the check method requires it 9925test -z "$MAGIC_CMD" && MAGIC_CMD=file 9926case $deplibs_check_method in 9927file_magic*) 9928 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9930printf %s "checking for ${ac_tool_prefix}file... " >&6; } 9931if test ${lt_cv_path_MAGIC_CMD+y} 9932then : 9933 printf %s "(cached) " >&6 9934else case e in #( 9935 e) case $MAGIC_CMD in 9936[\\/*] | ?:[\\/]*) 9937 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9938 ;; 9939*) 9940 lt_save_MAGIC_CMD=$MAGIC_CMD 9941 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9942 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9943 for ac_dir in $ac_dummy; do 9944 IFS=$lt_save_ifs 9945 test -z "$ac_dir" && ac_dir=. 9946 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9947 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9948 if test -n "$file_magic_test_file"; then 9949 case $deplibs_check_method in 9950 "file_magic "*) 9951 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9952 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9954 $EGREP "$file_magic_regex" > /dev/null; then 9955 : 9956 else 9957 cat <<_LT_EOF 1>&2 9958 9959*** Warning: the command libtool uses to detect shared libraries, 9960*** $file_magic_cmd, produces output that libtool cannot recognize. 9961*** The result is that libtool may fail to recognize shared libraries 9962*** as such. This will affect the creation of libtool libraries that 9963*** depend on shared libraries, but programs linked with such libtool 9964*** libraries will work regardless of this problem. Nevertheless, you 9965*** may want to report the problem to your system manager and/or to 9966*** bug-libtool@gnu.org 9967 9968_LT_EOF 9969 fi ;; 9970 esac 9971 fi 9972 break 9973 fi 9974 done 9975 IFS=$lt_save_ifs 9976 MAGIC_CMD=$lt_save_MAGIC_CMD 9977 ;; 9978esac ;; 9979esac 9980fi 9981 9982MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9983if test -n "$MAGIC_CMD"; then 9984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9985printf "%s\n" "$MAGIC_CMD" >&6; } 9986else 9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9988printf "%s\n" "no" >&6; } 9989fi 9990 9991 9992 9993 9994 9995if test -z "$lt_cv_path_MAGIC_CMD"; then 9996 if test -n "$ac_tool_prefix"; then 9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9998printf %s "checking for file... " >&6; } 9999if test ${lt_cv_path_MAGIC_CMD+y} 10000then : 10001 printf %s "(cached) " >&6 10002else case e in #( 10003 e) case $MAGIC_CMD in 10004[\\/*] | ?:[\\/]*) 10005 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 10006 ;; 10007*) 10008 lt_save_MAGIC_CMD=$MAGIC_CMD 10009 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 10010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 10011 for ac_dir in $ac_dummy; do 10012 IFS=$lt_save_ifs 10013 test -z "$ac_dir" && ac_dir=. 10014 if test -f "$ac_dir/file"; then 10015 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 10016 if test -n "$file_magic_test_file"; then 10017 case $deplibs_check_method in 10018 "file_magic "*) 10019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 10020 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10022 $EGREP "$file_magic_regex" > /dev/null; then 10023 : 10024 else 10025 cat <<_LT_EOF 1>&2 10026 10027*** Warning: the command libtool uses to detect shared libraries, 10028*** $file_magic_cmd, produces output that libtool cannot recognize. 10029*** The result is that libtool may fail to recognize shared libraries 10030*** as such. This will affect the creation of libtool libraries that 10031*** depend on shared libraries, but programs linked with such libtool 10032*** libraries will work regardless of this problem. Nevertheless, you 10033*** may want to report the problem to your system manager and/or to 10034*** bug-libtool@gnu.org 10035 10036_LT_EOF 10037 fi ;; 10038 esac 10039 fi 10040 break 10041 fi 10042 done 10043 IFS=$lt_save_ifs 10044 MAGIC_CMD=$lt_save_MAGIC_CMD 10045 ;; 10046esac ;; 10047esac 10048fi 10049 10050MAGIC_CMD=$lt_cv_path_MAGIC_CMD 10051if test -n "$MAGIC_CMD"; then 10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 10053printf "%s\n" "$MAGIC_CMD" >&6; } 10054else 10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10056printf "%s\n" "no" >&6; } 10057fi 10058 10059 10060 else 10061 MAGIC_CMD=: 10062 fi 10063fi 10064 10065 fi 10066 ;; 10067esac 10068 10069# Use C for the default configuration in the libtool script 10070 10071lt_save_CC=$CC 10072ac_ext=c 10073ac_cpp='$CPP $CPPFLAGS' 10074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10076ac_compiler_gnu=$ac_cv_c_compiler_gnu 10077 10078 10079# Source file extension for C test sources. 10080ac_ext=c 10081 10082# Object file extension for compiled C test sources. 10083objext=o 10084objext=$objext 10085 10086# Code to be used in simple compile tests 10087lt_simple_compile_test_code="int some_variable = 0;" 10088 10089# Code to be used in simple link tests 10090lt_simple_link_test_code='int main(){return(0);}' 10091 10092 10093 10094 10095 10096 10097 10098# If no C compiler was specified, use CC. 10099LTCC=${LTCC-"$CC"} 10100 10101# If no C compiler flags were specified, use CFLAGS. 10102LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10103 10104# Allow CC to be a program name with arguments. 10105compiler=$CC 10106 10107# Save the default compiler, since it gets overwritten when the other 10108# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10109compiler_DEFAULT=$CC 10110 10111# save warnings/boilerplate of simple test code 10112ac_outfile=conftest.$ac_objext 10113echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10114eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10115_lt_compiler_boilerplate=`cat conftest.err` 10116$RM conftest* 10117 10118ac_outfile=conftest.$ac_objext 10119echo "$lt_simple_link_test_code" >conftest.$ac_ext 10120eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10121_lt_linker_boilerplate=`cat conftest.err` 10122$RM -r conftest* 10123 10124 10125## CAVEAT EMPTOR: 10126## There is no encapsulation within the following macros, do not change 10127## the running order or otherwise move them around unless you know exactly 10128## what you are doing... 10129if test -n "$compiler"; then 10130 10131lt_prog_compiler_no_builtin_flag= 10132 10133if test yes = "$GCC"; then 10134 case $cc_basename in 10135 nvcc*) 10136 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10137 *) 10138 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10139 esac 10140 10141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10142printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10143if test ${lt_cv_prog_compiler_rtti_exceptions+y} 10144then : 10145 printf %s "(cached) " >&6 10146else case e in #( 10147 e) lt_cv_prog_compiler_rtti_exceptions=no 10148 ac_outfile=conftest.$ac_objext 10149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10150 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 10151 # Insert the option either (1) after the last *FLAGS variable, or 10152 # (2) before a word containing "conftest.", or (3) at the end. 10153 # Note that $ac_compile itself does not contain backslashes and begins 10154 # with a dollar sign (not a hyphen), so the echo should work correctly. 10155 # The option is referenced via a variable to avoid confusing sed. 10156 lt_compile=`echo "$ac_compile" | $SED \ 10157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10159 -e 's:$: $lt_compiler_flag:'` 10160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10161 (eval "$lt_compile" 2>conftest.err) 10162 ac_status=$? 10163 cat conftest.err >&5 10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10165 if (exit $ac_status) && test -s "$ac_outfile"; then 10166 # The compiler can only warn and ignore the option if not recognized 10167 # So say no if there are warnings other than the usual output. 10168 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10171 lt_cv_prog_compiler_rtti_exceptions=yes 10172 fi 10173 fi 10174 $RM conftest* 10175 ;; 10176esac 10177fi 10178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10179printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10180 10181if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 10182 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10183else 10184 : 10185fi 10186 10187fi 10188 10189 10190 10191 10192 10193 10194 lt_prog_compiler_wl= 10195lt_prog_compiler_pic= 10196lt_prog_compiler_static= 10197 10198 10199 if test yes = "$GCC"; then 10200 lt_prog_compiler_wl='-Wl,' 10201 lt_prog_compiler_static='-static' 10202 10203 case $host_os in 10204 aix*) 10205 # All AIX code is PIC. 10206 if test ia64 = "$host_cpu"; then 10207 # AIX 5 now supports IA64 processor 10208 lt_prog_compiler_static='-Bstatic' 10209 fi 10210 lt_prog_compiler_pic='-fPIC' 10211 ;; 10212 10213 amigaos*) 10214 case $host_cpu in 10215 powerpc) 10216 # see comment about AmigaOS4 .so support 10217 lt_prog_compiler_pic='-fPIC' 10218 ;; 10219 m68k) 10220 # FIXME: we need at least 68020 code to build shared libraries, but 10221 # adding the '-m68020' flag to GCC prevents building anything better, 10222 # like '-m68040'. 10223 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10224 ;; 10225 esac 10226 ;; 10227 10228 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10229 # PIC is the default for these OSes. 10230 ;; 10231 10232 mingw* | cygwin* | pw32* | os2* | cegcc*) 10233 # This hack is so that the source file can tell whether it is being 10234 # built for inclusion in a dll (and should export symbols for example). 10235 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10236 # (--disable-auto-import) libraries 10237 lt_prog_compiler_pic='-DDLL_EXPORT' 10238 case $host_os in 10239 os2*) 10240 lt_prog_compiler_static='$wl-static' 10241 ;; 10242 esac 10243 ;; 10244 10245 darwin* | rhapsody*) 10246 # PIC is the default on this platform 10247 # Common symbols not allowed in MH_DYLIB files 10248 lt_prog_compiler_pic='-fno-common' 10249 ;; 10250 10251 haiku*) 10252 # PIC is the default for Haiku. 10253 # The "-static" flag exists, but is broken. 10254 lt_prog_compiler_static= 10255 ;; 10256 10257 hpux*) 10258 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10259 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10260 # sets the default TLS model and affects inlining. 10261 case $host_cpu in 10262 hppa*64*) 10263 # +Z the default 10264 ;; 10265 *) 10266 lt_prog_compiler_pic='-fPIC' 10267 ;; 10268 esac 10269 ;; 10270 10271 interix[3-9]*) 10272 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10273 # Instead, we relocate shared libraries at runtime. 10274 ;; 10275 10276 msdosdjgpp*) 10277 # Just because we use GCC doesn't mean we suddenly get shared libraries 10278 # on systems that don't support them. 10279 lt_prog_compiler_can_build_shared=no 10280 enable_shared=no 10281 ;; 10282 10283 *nto* | *qnx*) 10284 # QNX uses GNU C++, but need to define -shared option too, otherwise 10285 # it will coredump. 10286 lt_prog_compiler_pic='-fPIC -shared' 10287 ;; 10288 10289 sysv4*MP*) 10290 if test -d /usr/nec; then 10291 lt_prog_compiler_pic=-Kconform_pic 10292 fi 10293 ;; 10294 10295 *) 10296 lt_prog_compiler_pic='-fPIC' 10297 ;; 10298 esac 10299 10300 case $cc_basename in 10301 nvcc*) # Cuda Compiler Driver 2.2 10302 lt_prog_compiler_wl='-Xlinker ' 10303 if test -n "$lt_prog_compiler_pic"; then 10304 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10305 fi 10306 ;; 10307 esac 10308 else 10309 # PORTME Check for flag to pass linker flags through the system compiler. 10310 case $host_os in 10311 aix*) 10312 lt_prog_compiler_wl='-Wl,' 10313 if test ia64 = "$host_cpu"; then 10314 # AIX 5 now supports IA64 processor 10315 lt_prog_compiler_static='-Bstatic' 10316 else 10317 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10318 fi 10319 ;; 10320 10321 darwin* | rhapsody*) 10322 # PIC is the default on this platform 10323 # Common symbols not allowed in MH_DYLIB files 10324 lt_prog_compiler_pic='-fno-common' 10325 case $cc_basename in 10326 nagfor*) 10327 # NAG Fortran compiler 10328 lt_prog_compiler_wl='-Wl,-Wl,,' 10329 lt_prog_compiler_pic='-PIC' 10330 lt_prog_compiler_static='-Bstatic' 10331 ;; 10332 esac 10333 ;; 10334 10335 mingw* | cygwin* | pw32* | os2* | cegcc*) 10336 # This hack is so that the source file can tell whether it is being 10337 # built for inclusion in a dll (and should export symbols for example). 10338 lt_prog_compiler_pic='-DDLL_EXPORT' 10339 case $host_os in 10340 os2*) 10341 lt_prog_compiler_static='$wl-static' 10342 ;; 10343 esac 10344 ;; 10345 10346 hpux9* | hpux10* | hpux11*) 10347 lt_prog_compiler_wl='-Wl,' 10348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10349 # not for PA HP-UX. 10350 case $host_cpu in 10351 hppa*64*|ia64*) 10352 # +Z the default 10353 ;; 10354 *) 10355 lt_prog_compiler_pic='+Z' 10356 ;; 10357 esac 10358 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10359 lt_prog_compiler_static='$wl-a ${wl}archive' 10360 ;; 10361 10362 irix5* | irix6* | nonstopux*) 10363 lt_prog_compiler_wl='-Wl,' 10364 # PIC (with -KPIC) is the default. 10365 lt_prog_compiler_static='-non_shared' 10366 ;; 10367 10368 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10369 case $cc_basename in 10370 # old Intel for x86_64, which still supported -KPIC. 10371 ecc*) 10372 lt_prog_compiler_wl='-Wl,' 10373 lt_prog_compiler_pic='-KPIC' 10374 lt_prog_compiler_static='-static' 10375 ;; 10376 # icc used to be incompatible with GCC. 10377 # ICC 10 doesn't accept -KPIC any more. 10378 icc* | ifort*) 10379 lt_prog_compiler_wl='-Wl,' 10380 lt_prog_compiler_pic='-fPIC' 10381 lt_prog_compiler_static='-static' 10382 ;; 10383 # Lahey Fortran 8.1. 10384 lf95*) 10385 lt_prog_compiler_wl='-Wl,' 10386 lt_prog_compiler_pic='--shared' 10387 lt_prog_compiler_static='--static' 10388 ;; 10389 nagfor*) 10390 # NAG Fortran compiler 10391 lt_prog_compiler_wl='-Wl,-Wl,,' 10392 lt_prog_compiler_pic='-PIC' 10393 lt_prog_compiler_static='-Bstatic' 10394 ;; 10395 tcc*) 10396 # Fabrice Bellard et al's Tiny C Compiler 10397 lt_prog_compiler_wl='-Wl,' 10398 lt_prog_compiler_pic='-fPIC' 10399 lt_prog_compiler_static='-static' 10400 ;; 10401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10402 # Portland Group compilers (*not* the Pentium gcc compiler, 10403 # which looks to be a dead project) 10404 lt_prog_compiler_wl='-Wl,' 10405 lt_prog_compiler_pic='-fpic' 10406 lt_prog_compiler_static='-Bstatic' 10407 ;; 10408 ccc*) 10409 lt_prog_compiler_wl='-Wl,' 10410 # All Alpha code is PIC. 10411 lt_prog_compiler_static='-non_shared' 10412 ;; 10413 xl* | bgxl* | bgf* | mpixl*) 10414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10415 lt_prog_compiler_wl='-Wl,' 10416 lt_prog_compiler_pic='-qpic' 10417 lt_prog_compiler_static='-qstaticlink' 10418 ;; 10419 *) 10420 case `$CC -V 2>&1 | $SED 5q` in 10421 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10422 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10423 lt_prog_compiler_pic='-KPIC' 10424 lt_prog_compiler_static='-Bstatic' 10425 lt_prog_compiler_wl='' 10426 ;; 10427 *Sun\ F* | *Sun*Fortran*) 10428 lt_prog_compiler_pic='-KPIC' 10429 lt_prog_compiler_static='-Bstatic' 10430 lt_prog_compiler_wl='-Qoption ld ' 10431 ;; 10432 *Sun\ C*) 10433 # Sun C 5.9 10434 lt_prog_compiler_pic='-KPIC' 10435 lt_prog_compiler_static='-Bstatic' 10436 lt_prog_compiler_wl='-Wl,' 10437 ;; 10438 *Intel*\ [CF]*Compiler*) 10439 lt_prog_compiler_wl='-Wl,' 10440 lt_prog_compiler_pic='-fPIC' 10441 lt_prog_compiler_static='-static' 10442 ;; 10443 *Portland\ Group*) 10444 lt_prog_compiler_wl='-Wl,' 10445 lt_prog_compiler_pic='-fpic' 10446 lt_prog_compiler_static='-Bstatic' 10447 ;; 10448 esac 10449 ;; 10450 esac 10451 ;; 10452 10453 newsos6) 10454 lt_prog_compiler_pic='-KPIC' 10455 lt_prog_compiler_static='-Bstatic' 10456 ;; 10457 10458 *nto* | *qnx*) 10459 # QNX uses GNU C++, but need to define -shared option too, otherwise 10460 # it will coredump. 10461 lt_prog_compiler_pic='-fPIC -shared' 10462 ;; 10463 10464 osf3* | osf4* | osf5*) 10465 lt_prog_compiler_wl='-Wl,' 10466 # All OSF/1 code is PIC. 10467 lt_prog_compiler_static='-non_shared' 10468 ;; 10469 10470 rdos*) 10471 lt_prog_compiler_static='-non_shared' 10472 ;; 10473 10474 solaris*) 10475 lt_prog_compiler_pic='-KPIC' 10476 lt_prog_compiler_static='-Bstatic' 10477 case $cc_basename in 10478 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10479 lt_prog_compiler_wl='-Qoption ld ';; 10480 *) 10481 lt_prog_compiler_wl='-Wl,';; 10482 esac 10483 ;; 10484 10485 sunos4*) 10486 lt_prog_compiler_wl='-Qoption ld ' 10487 lt_prog_compiler_pic='-PIC' 10488 lt_prog_compiler_static='-Bstatic' 10489 ;; 10490 10491 sysv4 | sysv4.2uw2* | sysv4.3*) 10492 lt_prog_compiler_wl='-Wl,' 10493 lt_prog_compiler_pic='-KPIC' 10494 lt_prog_compiler_static='-Bstatic' 10495 ;; 10496 10497 sysv4*MP*) 10498 if test -d /usr/nec; then 10499 lt_prog_compiler_pic='-Kconform_pic' 10500 lt_prog_compiler_static='-Bstatic' 10501 fi 10502 ;; 10503 10504 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10505 lt_prog_compiler_wl='-Wl,' 10506 lt_prog_compiler_pic='-KPIC' 10507 lt_prog_compiler_static='-Bstatic' 10508 ;; 10509 10510 unicos*) 10511 lt_prog_compiler_wl='-Wl,' 10512 lt_prog_compiler_can_build_shared=no 10513 ;; 10514 10515 uts4*) 10516 lt_prog_compiler_pic='-pic' 10517 lt_prog_compiler_static='-Bstatic' 10518 ;; 10519 10520 *) 10521 lt_prog_compiler_can_build_shared=no 10522 ;; 10523 esac 10524 fi 10525 10526case $host_os in 10527 # For platforms that do not support PIC, -DPIC is meaningless: 10528 *djgpp*) 10529 lt_prog_compiler_pic= 10530 ;; 10531 *) 10532 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10533 ;; 10534esac 10535 10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10537printf %s "checking for $compiler option to produce PIC... " >&6; } 10538if test ${lt_cv_prog_compiler_pic+y} 10539then : 10540 printf %s "(cached) " >&6 10541else case e in #( 10542 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; 10543esac 10544fi 10545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10546printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } 10547lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10548 10549# 10550# Check to make sure the PIC flag actually works. 10551# 10552if test -n "$lt_prog_compiler_pic"; then 10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10554printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10555if test ${lt_cv_prog_compiler_pic_works+y} 10556then : 10557 printf %s "(cached) " >&6 10558else case e in #( 10559 e) lt_cv_prog_compiler_pic_works=no 10560 ac_outfile=conftest.$ac_objext 10561 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10562 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10563 # Insert the option either (1) after the last *FLAGS variable, or 10564 # (2) before a word containing "conftest.", or (3) at the end. 10565 # Note that $ac_compile itself does not contain backslashes and begins 10566 # with a dollar sign (not a hyphen), so the echo should work correctly. 10567 # The option is referenced via a variable to avoid confusing sed. 10568 lt_compile=`echo "$ac_compile" | $SED \ 10569 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10570 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10571 -e 's:$: $lt_compiler_flag:'` 10572 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10573 (eval "$lt_compile" 2>conftest.err) 10574 ac_status=$? 10575 cat conftest.err >&5 10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10577 if (exit $ac_status) && test -s "$ac_outfile"; then 10578 # The compiler can only warn and ignore the option if not recognized 10579 # So say no if there are warnings other than the usual output. 10580 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10582 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10583 lt_cv_prog_compiler_pic_works=yes 10584 fi 10585 fi 10586 $RM conftest* 10587 ;; 10588esac 10589fi 10590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10591printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } 10592 10593if test yes = "$lt_cv_prog_compiler_pic_works"; then 10594 case $lt_prog_compiler_pic in 10595 "" | " "*) ;; 10596 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10597 esac 10598else 10599 lt_prog_compiler_pic= 10600 lt_prog_compiler_can_build_shared=no 10601fi 10602 10603fi 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615# 10616# Check to make sure the static flag actually works. 10617# 10618wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10620printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10621if test ${lt_cv_prog_compiler_static_works+y} 10622then : 10623 printf %s "(cached) " >&6 10624else case e in #( 10625 e) lt_cv_prog_compiler_static_works=no 10626 save_LDFLAGS=$LDFLAGS 10627 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10628 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10630 # The linker can only warn and ignore the option if not recognized 10631 # So say no if there are warnings 10632 if test -s conftest.err; then 10633 # Append any errors to the config.log. 10634 cat conftest.err 1>&5 10635 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10637 if diff conftest.exp conftest.er2 >/dev/null; then 10638 lt_cv_prog_compiler_static_works=yes 10639 fi 10640 else 10641 lt_cv_prog_compiler_static_works=yes 10642 fi 10643 fi 10644 $RM -r conftest* 10645 LDFLAGS=$save_LDFLAGS 10646 ;; 10647esac 10648fi 10649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10650printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } 10651 10652if test yes = "$lt_cv_prog_compiler_static_works"; then 10653 : 10654else 10655 lt_prog_compiler_static= 10656fi 10657 10658 10659 10660 10661 10662 10663 10664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10665printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10666if test ${lt_cv_prog_compiler_c_o+y} 10667then : 10668 printf %s "(cached) " >&6 10669else case e in #( 10670 e) lt_cv_prog_compiler_c_o=no 10671 $RM -r conftest 2>/dev/null 10672 mkdir conftest 10673 cd conftest 10674 mkdir out 10675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10676 10677 lt_compiler_flag="-o out/conftest2.$ac_objext" 10678 # Insert the option either (1) after the last *FLAGS variable, or 10679 # (2) before a word containing "conftest.", or (3) at the end. 10680 # Note that $ac_compile itself does not contain backslashes and begins 10681 # with a dollar sign (not a hyphen), so the echo should work correctly. 10682 lt_compile=`echo "$ac_compile" | $SED \ 10683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10685 -e 's:$: $lt_compiler_flag:'` 10686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10687 (eval "$lt_compile" 2>out/conftest.err) 10688 ac_status=$? 10689 cat out/conftest.err >&5 10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10691 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10692 then 10693 # The compiler can only warn and ignore the option if not recognized 10694 # So say no if there are warnings 10695 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10696 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10697 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10698 lt_cv_prog_compiler_c_o=yes 10699 fi 10700 fi 10701 chmod u+w . 2>&5 10702 $RM conftest* 10703 # SGI C++ compiler will create directory out/ii_files/ for 10704 # template instantiation 10705 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10706 $RM out/* && rmdir out 10707 cd .. 10708 $RM -r conftest 10709 $RM conftest* 10710 ;; 10711esac 10712fi 10713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10714printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10715 10716 10717 10718 10719 10720 10721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10722printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10723if test ${lt_cv_prog_compiler_c_o+y} 10724then : 10725 printf %s "(cached) " >&6 10726else case e in #( 10727 e) lt_cv_prog_compiler_c_o=no 10728 $RM -r conftest 2>/dev/null 10729 mkdir conftest 10730 cd conftest 10731 mkdir out 10732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10733 10734 lt_compiler_flag="-o out/conftest2.$ac_objext" 10735 # Insert the option either (1) after the last *FLAGS variable, or 10736 # (2) before a word containing "conftest.", or (3) at the end. 10737 # Note that $ac_compile itself does not contain backslashes and begins 10738 # with a dollar sign (not a hyphen), so the echo should work correctly. 10739 lt_compile=`echo "$ac_compile" | $SED \ 10740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10742 -e 's:$: $lt_compiler_flag:'` 10743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10744 (eval "$lt_compile" 2>out/conftest.err) 10745 ac_status=$? 10746 cat out/conftest.err >&5 10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10748 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10749 then 10750 # The compiler can only warn and ignore the option if not recognized 10751 # So say no if there are warnings 10752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10755 lt_cv_prog_compiler_c_o=yes 10756 fi 10757 fi 10758 chmod u+w . 2>&5 10759 $RM conftest* 10760 # SGI C++ compiler will create directory out/ii_files/ for 10761 # template instantiation 10762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10763 $RM out/* && rmdir out 10764 cd .. 10765 $RM -r conftest 10766 $RM conftest* 10767 ;; 10768esac 10769fi 10770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10771printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } 10772 10773 10774 10775 10776hard_links=nottested 10777if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10778 # do not overwrite the value of need_locks provided by the user 10779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10780printf %s "checking if we can lock with hard links... " >&6; } 10781 hard_links=yes 10782 $RM conftest* 10783 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10784 touch conftest.a 10785 ln conftest.a conftest.b 2>&5 || hard_links=no 10786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10788printf "%s\n" "$hard_links" >&6; } 10789 if test no = "$hard_links"; then 10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10791printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10792 need_locks=warn 10793 fi 10794else 10795 need_locks=no 10796fi 10797 10798 10799 10800 10801 10802 10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10804printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10805 10806 runpath_var= 10807 allow_undefined_flag= 10808 always_export_symbols=no 10809 archive_cmds= 10810 archive_expsym_cmds= 10811 compiler_needs_object=no 10812 enable_shared_with_static_runtimes=no 10813 export_dynamic_flag_spec= 10814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10815 hardcode_automatic=no 10816 hardcode_direct=no 10817 hardcode_direct_absolute=no 10818 hardcode_libdir_flag_spec= 10819 hardcode_libdir_separator= 10820 hardcode_minus_L=no 10821 hardcode_shlibpath_var=unsupported 10822 inherit_rpath=no 10823 link_all_deplibs=unknown 10824 module_cmds= 10825 module_expsym_cmds= 10826 old_archive_from_new_cmds= 10827 old_archive_from_expsyms_cmds= 10828 thread_safe_flag_spec= 10829 whole_archive_flag_spec= 10830 # include_expsyms should be a list of space-separated symbols to be *always* 10831 # included in the symbol list 10832 include_expsyms= 10833 # exclude_expsyms can be an extended regexp of symbols to exclude 10834 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10835 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10836 # as well as any symbol that contains 'd'. 10837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10839 # platforms (ab)use it in PIC code, but their linkers get confused if 10840 # the symbol is explicitly referenced. Since portable code cannot 10841 # rely on this symbol name, it's probably fine to never include it in 10842 # preloaded symbol tables. 10843 # Exclude shared library initialization/finalization symbols. 10844 extract_expsyms_cmds= 10845 10846 case $host_os in 10847 cygwin* | mingw* | pw32* | cegcc*) 10848 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10849 # When not using gcc, we currently assume that we are using 10850 # Microsoft Visual C++ or Intel C++ Compiler. 10851 if test yes != "$GCC"; then 10852 with_gnu_ld=no 10853 fi 10854 ;; 10855 interix*) 10856 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10857 with_gnu_ld=yes 10858 ;; 10859 openbsd* | bitrig*) 10860 with_gnu_ld=no 10861 ;; 10862 esac 10863 10864 ld_shlibs=yes 10865 10866 # On some targets, GNU ld is compatible enough with the native linker 10867 # that we're better off using the native interface for both. 10868 lt_use_gnu_ld_interface=no 10869 if test yes = "$with_gnu_ld"; then 10870 case $host_os in 10871 aix*) 10872 # The AIX port of GNU ld has always aspired to compatibility 10873 # with the native linker. However, as the warning in the GNU ld 10874 # block says, versions before 2.19.5* couldn't really create working 10875 # shared libraries, regardless of the interface used. 10876 case `$LD -v 2>&1` in 10877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10879 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10880 *) 10881 lt_use_gnu_ld_interface=yes 10882 ;; 10883 esac 10884 ;; 10885 *) 10886 lt_use_gnu_ld_interface=yes 10887 ;; 10888 esac 10889 fi 10890 10891 if test yes = "$lt_use_gnu_ld_interface"; then 10892 # If archive_cmds runs LD, not CC, wlarc should be empty 10893 wlarc='$wl' 10894 10895 # Set some defaults for GNU ld with shared library support. These 10896 # are reset later if shared libraries are not supported. Putting them 10897 # here allows them to be overridden if necessary. 10898 runpath_var=LD_RUN_PATH 10899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10900 export_dynamic_flag_spec='$wl--export-dynamic' 10901 # ancient GNU ld didn't support --whole-archive et. al. 10902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10903 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10904 else 10905 whole_archive_flag_spec= 10906 fi 10907 supports_anon_versioning=no 10908 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in 10909 *GNU\ gold*) supports_anon_versioning=yes ;; 10910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10913 *\ 2.11.*) ;; # other 2.11 versions 10914 *) supports_anon_versioning=yes ;; 10915 esac 10916 10917 # See if GNU ld supports shared libraries. 10918 case $host_os in 10919 aix[3-9]*) 10920 # On AIX/PPC, the GNU linker is very broken 10921 if test ia64 != "$host_cpu"; then 10922 ld_shlibs=no 10923 cat <<_LT_EOF 1>&2 10924 10925*** Warning: the GNU linker, at least up to release 2.19, is reported 10926*** to be unable to reliably create shared libraries on AIX. 10927*** Therefore, libtool is disabling shared libraries support. If you 10928*** really care for shared libraries, you may want to install binutils 10929*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10930*** You will then need to restart the configuration process. 10931 10932_LT_EOF 10933 fi 10934 ;; 10935 10936 amigaos*) 10937 case $host_cpu in 10938 powerpc) 10939 # see comment about AmigaOS4 .so support 10940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10941 archive_expsym_cmds='' 10942 ;; 10943 m68k) 10944 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)' 10945 hardcode_libdir_flag_spec='-L$libdir' 10946 hardcode_minus_L=yes 10947 ;; 10948 esac 10949 ;; 10950 10951 beos*) 10952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10953 allow_undefined_flag=unsupported 10954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10955 # support --undefined. This deserves some investigation. FIXME 10956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10957 else 10958 ld_shlibs=no 10959 fi 10960 ;; 10961 10962 cygwin* | mingw* | pw32* | cegcc*) 10963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10964 # as there is no search path for DLLs. 10965 hardcode_libdir_flag_spec='-L$libdir' 10966 export_dynamic_flag_spec='$wl--export-all-symbols' 10967 allow_undefined_flag=unsupported 10968 always_export_symbols=no 10969 enable_shared_with_static_runtimes=yes 10970 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' 10971 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10972 10973 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10975 # If the export-symbols file already is a .def file, use it as 10976 # is; otherwise, prepend EXPORTS... 10977 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10978 cp $export_symbols $output_objdir/$soname.def; 10979 else 10980 echo EXPORTS > $output_objdir/$soname.def; 10981 cat $export_symbols >> $output_objdir/$soname.def; 10982 fi~ 10983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10984 else 10985 ld_shlibs=no 10986 fi 10987 ;; 10988 10989 haiku*) 10990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10991 link_all_deplibs=yes 10992 ;; 10993 10994 os2*) 10995 hardcode_libdir_flag_spec='-L$libdir' 10996 hardcode_minus_L=yes 10997 allow_undefined_flag=unsupported 10998 shrext_cmds=.dll 10999 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11000 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11001 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11002 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11003 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11004 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11005 emximp -o $lib $output_objdir/$libname.def' 11006 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11007 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11008 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11009 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11010 prefix_cmds="$SED"~ 11011 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11012 prefix_cmds="$prefix_cmds -e 1d"; 11013 fi~ 11014 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11015 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11016 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11017 emximp -o $lib $output_objdir/$libname.def' 11018 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11019 enable_shared_with_static_runtimes=yes 11020 file_list_spec='@' 11021 ;; 11022 11023 interix[3-9]*) 11024 hardcode_direct=no 11025 hardcode_shlibpath_var=no 11026 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11027 export_dynamic_flag_spec='$wl-E' 11028 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11029 # Instead, shared libraries are loaded at an image base (0x10000000 by 11030 # default) and relocated if they conflict, which is a slow very memory 11031 # consuming and fragmenting process. To avoid this, we pick a random, 11032 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11033 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11034 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11035 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' 11036 ;; 11037 11038 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 11039 tmp_diet=no 11040 if test linux-dietlibc = "$host_os"; then 11041 case $cc_basename in 11042 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11043 esac 11044 fi 11045 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11046 && test no = "$tmp_diet" 11047 then 11048 tmp_addflag=' $pic_flag' 11049 tmp_sharedflag='-shared' 11050 case $cc_basename,$host_cpu in 11051 pgcc*) # Portland Group C compiler 11052 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' 11053 tmp_addflag=' $pic_flag' 11054 ;; 11055 pgf77* | pgf90* | pgf95* | pgfortran*) 11056 # Portland Group f77 and f90 compilers 11057 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' 11058 tmp_addflag=' $pic_flag -Mnomain' ;; 11059 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11060 tmp_addflag=' -i_dynamic' ;; 11061 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11062 tmp_addflag=' -i_dynamic -nofor_main' ;; 11063 ifc* | ifort*) # Intel Fortran compiler 11064 tmp_addflag=' -nofor_main' ;; 11065 lf95*) # Lahey Fortran 8.1 11066 whole_archive_flag_spec= 11067 tmp_sharedflag='--shared' ;; 11068 nagfor*) # NAGFOR 5.3 11069 tmp_sharedflag='-Wl,-shared' ;; 11070 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 11071 tmp_sharedflag='-qmkshrobj' 11072 tmp_addflag= ;; 11073 nvcc*) # Cuda Compiler Driver 2.2 11074 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' 11075 compiler_needs_object=yes 11076 ;; 11077 esac 11078 case `$CC -V 2>&1 | $SED 5q` in 11079 *Sun\ C*) # Sun C 5.9 11080 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' 11081 compiler_needs_object=yes 11082 tmp_sharedflag='-G' ;; 11083 *Sun\ F*) # Sun Fortran 8.3 11084 tmp_sharedflag='-G' ;; 11085 esac 11086 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11087 11088 if test yes = "$supports_anon_versioning"; then 11089 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11090 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11091 echo "local: *; };" >> $output_objdir/$libname.ver~ 11092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 11093 fi 11094 11095 case $cc_basename in 11096 tcc*) 11097 export_dynamic_flag_spec='-rdynamic' 11098 ;; 11099 xlf* | bgf* | bgxlf* | mpixlf*) 11100 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 11101 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 11102 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11103 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 11104 if test yes = "$supports_anon_versioning"; then 11105 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 11106 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11107 echo "local: *; };" >> $output_objdir/$libname.ver~ 11108 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 11109 fi 11110 ;; 11111 esac 11112 else 11113 ld_shlibs=no 11114 fi 11115 ;; 11116 11117 netbsd*) 11118 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11119 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11120 wlarc= 11121 else 11122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11123 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11124 fi 11125 ;; 11126 11127 solaris*) 11128 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11129 ld_shlibs=no 11130 cat <<_LT_EOF 1>&2 11131 11132*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11133*** create shared libraries on Solaris systems. Therefore, libtool 11134*** is disabling shared libraries support. We urge you to upgrade GNU 11135*** binutils to release 2.9.1 or newer. Another option is to modify 11136*** your PATH or compiler configuration so that the native linker is 11137*** used, and then restart. 11138 11139_LT_EOF 11140 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11142 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11143 else 11144 ld_shlibs=no 11145 fi 11146 ;; 11147 11148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11149 case `$LD -v 2>&1` in 11150 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11151 ld_shlibs=no 11152 cat <<_LT_EOF 1>&2 11153 11154*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 11155*** reliably create shared libraries on SCO systems. Therefore, libtool 11156*** is disabling shared libraries support. We urge you to upgrade GNU 11157*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11158*** your PATH or compiler configuration so that the native linker is 11159*** used, and then restart. 11160 11161_LT_EOF 11162 ;; 11163 *) 11164 # For security reasons, it is highly recommended that you always 11165 # use absolute paths for naming shared libraries, and exclude the 11166 # DT_RUNPATH tag from executables and libraries. But doing so 11167 # requires that you compile everything twice, which is a pain. 11168 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11171 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11172 else 11173 ld_shlibs=no 11174 fi 11175 ;; 11176 esac 11177 ;; 11178 11179 sunos4*) 11180 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11181 wlarc= 11182 hardcode_direct=yes 11183 hardcode_shlibpath_var=no 11184 ;; 11185 11186 *) 11187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11189 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 11190 else 11191 ld_shlibs=no 11192 fi 11193 ;; 11194 esac 11195 11196 if test no = "$ld_shlibs"; then 11197 runpath_var= 11198 hardcode_libdir_flag_spec= 11199 export_dynamic_flag_spec= 11200 whole_archive_flag_spec= 11201 fi 11202 else 11203 # PORTME fill in a description of your system's linker (not GNU ld) 11204 case $host_os in 11205 aix3*) 11206 allow_undefined_flag=unsupported 11207 always_export_symbols=yes 11208 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' 11209 # Note: this linker hardcodes the directories in LIBPATH if there 11210 # are no directories specified by -L. 11211 hardcode_minus_L=yes 11212 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 11213 # Neither direct hardcoding nor static linking is supported with a 11214 # broken collect2. 11215 hardcode_direct=unsupported 11216 fi 11217 ;; 11218 11219 aix[4-9]*) 11220 if test ia64 = "$host_cpu"; then 11221 # On IA64, the linker does run time linking by default, so we don't 11222 # have to do anything special. 11223 aix_use_runtimelinking=no 11224 exp_sym_flag='-Bexport' 11225 no_entry_flag= 11226 else 11227 # If we're using GNU nm, then we don't want the "-C" option. 11228 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 11229 # Without the "-l" option, or with the "-B" option, AIX nm treats 11230 # weak defined symbols like other global defined symbols, whereas 11231 # GNU nm marks them as "W". 11232 # While the 'weak' keyword is ignored in the Export File, we need 11233 # it in the Import File for the 'aix-soname' feature, so we have 11234 # to replace the "-B" option with "-P" for AIX nm. 11235 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11236 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' 11237 else 11238 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' 11239 fi 11240 aix_use_runtimelinking=no 11241 11242 # Test if we are trying to use run time linking or normal 11243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11244 # have runtime linking enabled, and use it for executables. 11245 # For shared libraries, we enable/disable runtime linking 11246 # depending on the kind of the shared library created - 11247 # when "with_aix_soname,aix_use_runtimelinking" is: 11248 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 11249 # "aix,yes" lib.so shared, rtl:yes, for executables 11250 # lib.a static archive 11251 # "both,no" lib.so.V(shr.o) shared, rtl:yes 11252 # lib.a(lib.so.V) shared, rtl:no, for executables 11253 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 11254 # lib.a(lib.so.V) shared, rtl:no 11255 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 11256 # lib.a static archive 11257 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11258 for ld_flag in $LDFLAGS; do 11259 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 11260 aix_use_runtimelinking=yes 11261 break 11262 fi 11263 done 11264 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 11265 # With aix-soname=svr4, we create the lib.so.V shared archives only, 11266 # so we don't have lib.a shared libs to link our executables. 11267 # We have to force runtime linking in this case. 11268 aix_use_runtimelinking=yes 11269 LDFLAGS="$LDFLAGS -Wl,-brtl" 11270 fi 11271 ;; 11272 esac 11273 11274 exp_sym_flag='-bexport' 11275 no_entry_flag='-bnoentry' 11276 fi 11277 11278 # When large executables or shared objects are built, AIX ld can 11279 # have problems creating the table of contents. If linking a library 11280 # or program results in "error TOC overflow" add -mminimal-toc to 11281 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11282 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11283 11284 archive_cmds='' 11285 hardcode_direct=yes 11286 hardcode_direct_absolute=yes 11287 hardcode_libdir_separator=':' 11288 link_all_deplibs=yes 11289 file_list_spec='$wl-f,' 11290 case $with_aix_soname,$aix_use_runtimelinking in 11291 aix,*) ;; # traditional, no import file 11292 svr4,* | *,yes) # use import file 11293 # The Import File defines what to hardcode. 11294 hardcode_direct=no 11295 hardcode_direct_absolute=no 11296 ;; 11297 esac 11298 11299 if test yes = "$GCC"; then 11300 case $host_os in aix4.[012]|aix4.[012].*) 11301 # We only want to do this on AIX 4.2 and lower, the check 11302 # below for broken collect2 doesn't work under 4.3+ 11303 collect2name=`$CC -print-prog-name=collect2` 11304 if test -f "$collect2name" && 11305 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11306 then 11307 # We have reworked collect2 11308 : 11309 else 11310 # We have old collect2 11311 hardcode_direct=unsupported 11312 # It fails to find uninstalled libraries when the uninstalled 11313 # path is not listed in the libpath. Setting hardcode_minus_L 11314 # to unsupported forces relinking 11315 hardcode_minus_L=yes 11316 hardcode_libdir_flag_spec='-L$libdir' 11317 hardcode_libdir_separator= 11318 fi 11319 ;; 11320 esac 11321 shared_flag='-shared' 11322 if test yes = "$aix_use_runtimelinking"; then 11323 shared_flag="$shared_flag "'$wl-G' 11324 fi 11325 # Need to ensure runtime linking is disabled for the traditional 11326 # shared library, or the linker may eventually find shared libraries 11327 # /with/ Import File - we do not want to mix them. 11328 shared_flag_aix='-shared' 11329 shared_flag_svr4='-shared $wl-G' 11330 else 11331 # not using gcc 11332 if test ia64 = "$host_cpu"; then 11333 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11334 # chokes on -Wl,-G. The following line is correct: 11335 shared_flag='-G' 11336 else 11337 if test yes = "$aix_use_runtimelinking"; then 11338 shared_flag='$wl-G' 11339 else 11340 shared_flag='$wl-bM:SRE' 11341 fi 11342 shared_flag_aix='$wl-bM:SRE' 11343 shared_flag_svr4='$wl-G' 11344 fi 11345 fi 11346 11347 export_dynamic_flag_spec='$wl-bexpall' 11348 # It seems that -bexpall does not export symbols beginning with 11349 # underscore (_), so it is better to generate a list of symbols to export. 11350 always_export_symbols=yes 11351 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 11352 # Warning - without using the other runtime loading flags (-brtl), 11353 # -berok will link without error, but may produce a broken library. 11354 allow_undefined_flag='-berok' 11355 # Determine the default libpath from the value encoded in an 11356 # empty executable. 11357 if test set = "${lt_cv_aix_libpath+set}"; then 11358 aix_libpath=$lt_cv_aix_libpath 11359else 11360 if test ${lt_cv_aix_libpath_+y} 11361then : 11362 printf %s "(cached) " >&6 11363else case e in #( 11364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11365/* end confdefs.h. */ 11366 11367int 11368main (void) 11369{ 11370 11371 ; 11372 return 0; 11373} 11374_ACEOF 11375if ac_fn_c_try_link "$LINENO" 11376then : 11377 11378 lt_aix_libpath_sed=' 11379 /Import File Strings/,/^$/ { 11380 /^0/ { 11381 s/^0 *\([^ ]*\) *$/\1/ 11382 p 11383 } 11384 }' 11385 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11386 # Check for a 64-bit object if we didn't find anything. 11387 if test -z "$lt_cv_aix_libpath_"; then 11388 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11389 fi 11390fi 11391rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11392 conftest$ac_exeext conftest.$ac_ext 11393 if test -z "$lt_cv_aix_libpath_"; then 11394 lt_cv_aix_libpath_=/usr/lib:/lib 11395 fi 11396 ;; 11397esac 11398fi 11399 11400 aix_libpath=$lt_cv_aix_libpath_ 11401fi 11402 11403 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11404 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 11405 else 11406 if test ia64 = "$host_cpu"; then 11407 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11408 allow_undefined_flag="-z nodefs" 11409 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" 11410 else 11411 # Determine the default libpath from the value encoded in an 11412 # empty executable. 11413 if test set = "${lt_cv_aix_libpath+set}"; then 11414 aix_libpath=$lt_cv_aix_libpath 11415else 11416 if test ${lt_cv_aix_libpath_+y} 11417then : 11418 printf %s "(cached) " >&6 11419else case e in #( 11420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11421/* end confdefs.h. */ 11422 11423int 11424main (void) 11425{ 11426 11427 ; 11428 return 0; 11429} 11430_ACEOF 11431if ac_fn_c_try_link "$LINENO" 11432then : 11433 11434 lt_aix_libpath_sed=' 11435 /Import File Strings/,/^$/ { 11436 /^0/ { 11437 s/^0 *\([^ ]*\) *$/\1/ 11438 p 11439 } 11440 }' 11441 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11442 # Check for a 64-bit object if we didn't find anything. 11443 if test -z "$lt_cv_aix_libpath_"; then 11444 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11445 fi 11446fi 11447rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11448 conftest$ac_exeext conftest.$ac_ext 11449 if test -z "$lt_cv_aix_libpath_"; then 11450 lt_cv_aix_libpath_=/usr/lib:/lib 11451 fi 11452 ;; 11453esac 11454fi 11455 11456 aix_libpath=$lt_cv_aix_libpath_ 11457fi 11458 11459 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11460 # Warning - without using the other run time loading flags, 11461 # -berok will link without error, but may produce a broken library. 11462 no_undefined_flag=' $wl-bernotok' 11463 allow_undefined_flag=' $wl-berok' 11464 if test yes = "$with_gnu_ld"; then 11465 # We only use this code for GNU lds that support --whole-archive. 11466 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11467 else 11468 # Exported symbols can be pulled into shared objects from archives 11469 whole_archive_flag_spec='$convenience' 11470 fi 11471 archive_cmds_need_lc=yes 11472 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11473 # -brtl affects multiple linker settings, -berok does not and is overridden later 11474 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11475 if test svr4 != "$with_aix_soname"; then 11476 # This is similar to how AIX traditionally builds its shared libraries. 11477 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' 11478 fi 11479 if test aix != "$with_aix_soname"; then 11480 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' 11481 else 11482 # used by -dlpreopen to get the symbols 11483 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11484 fi 11485 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11486 fi 11487 fi 11488 ;; 11489 11490 amigaos*) 11491 case $host_cpu in 11492 powerpc) 11493 # see comment about AmigaOS4 .so support 11494 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11495 archive_expsym_cmds='' 11496 ;; 11497 m68k) 11498 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)' 11499 hardcode_libdir_flag_spec='-L$libdir' 11500 hardcode_minus_L=yes 11501 ;; 11502 esac 11503 ;; 11504 11505 bsdi[45]*) 11506 export_dynamic_flag_spec=-rdynamic 11507 ;; 11508 11509 cygwin* | mingw* | pw32* | cegcc*) 11510 # When not using gcc, we currently assume that we are using 11511 # Microsoft Visual C++ or Intel C++ Compiler. 11512 # hardcode_libdir_flag_spec is actually meaningless, as there is 11513 # no search path for DLLs. 11514 case $cc_basename in 11515 cl* | icl*) 11516 # Native MSVC or ICC 11517 hardcode_libdir_flag_spec=' ' 11518 allow_undefined_flag=unsupported 11519 always_export_symbols=yes 11520 file_list_spec='@' 11521 # Tell ltmain to make .lib files, not .a files. 11522 libext=lib 11523 # Tell ltmain to make .dll files, not .so files. 11524 shrext_cmds=.dll 11525 # FIXME: Setting linknames here is a bad hack. 11526 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11527 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11528 cp "$export_symbols" "$output_objdir/$soname.def"; 11529 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11530 else 11531 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11532 fi~ 11533 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11534 linknames=' 11535 # The linker will not automatically build a static lib if we build a DLL. 11536 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11537 enable_shared_with_static_runtimes=yes 11538 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11539 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11540 # Don't use ranlib 11541 old_postinstall_cmds='chmod 644 $oldlib' 11542 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11543 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11544 case $lt_outputfile in 11545 *.exe|*.EXE) ;; 11546 *) 11547 lt_outputfile=$lt_outputfile.exe 11548 lt_tool_outputfile=$lt_tool_outputfile.exe 11549 ;; 11550 esac~ 11551 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11552 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11553 $RM "$lt_outputfile.manifest"; 11554 fi' 11555 ;; 11556 *) 11557 # Assume MSVC and ICC wrapper 11558 hardcode_libdir_flag_spec=' ' 11559 allow_undefined_flag=unsupported 11560 # Tell ltmain to make .lib files, not .a files. 11561 libext=lib 11562 # Tell ltmain to make .dll files, not .so files. 11563 shrext_cmds=.dll 11564 # FIXME: Setting linknames here is a bad hack. 11565 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11566 # The linker will automatically build a .lib file if we build a DLL. 11567 old_archive_from_new_cmds='true' 11568 # FIXME: Should let the user specify the lib program. 11569 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11570 enable_shared_with_static_runtimes=yes 11571 ;; 11572 esac 11573 ;; 11574 11575 darwin* | rhapsody*) 11576 11577 11578 archive_cmds_need_lc=no 11579 hardcode_direct=no 11580 hardcode_automatic=yes 11581 hardcode_shlibpath_var=unsupported 11582 if test yes = "$lt_cv_ld_force_load"; then 11583 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\"`' 11584 11585 else 11586 whole_archive_flag_spec='' 11587 fi 11588 link_all_deplibs=yes 11589 allow_undefined_flag=$_lt_dar_allow_undefined 11590 case $cc_basename in 11591 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11592 *) _lt_dar_can_shared=$GCC ;; 11593 esac 11594 if test yes = "$_lt_dar_can_shared"; then 11595 output_verbose_link_cmd=func_echo_all 11596 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11597 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11598 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" 11599 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" 11600 11601 else 11602 ld_shlibs=no 11603 fi 11604 11605 ;; 11606 11607 dgux*) 11608 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11609 hardcode_libdir_flag_spec='-L$libdir' 11610 hardcode_shlibpath_var=no 11611 ;; 11612 11613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11614 # support. Future versions do this automatically, but an explicit c++rt0.o 11615 # does not break anything, and helps significantly (at the cost of a little 11616 # extra space). 11617 freebsd2.2*) 11618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11619 hardcode_libdir_flag_spec='-R$libdir' 11620 hardcode_direct=yes 11621 hardcode_shlibpath_var=no 11622 ;; 11623 11624 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11625 freebsd2.*) 11626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11627 hardcode_direct=yes 11628 hardcode_minus_L=yes 11629 hardcode_shlibpath_var=no 11630 ;; 11631 11632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11633 freebsd* | dragonfly* | midnightbsd*) 11634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11635 hardcode_libdir_flag_spec='-R$libdir' 11636 hardcode_direct=yes 11637 hardcode_shlibpath_var=no 11638 ;; 11639 11640 hpux9*) 11641 if test yes = "$GCC"; then 11642 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' 11643 else 11644 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' 11645 fi 11646 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11647 hardcode_libdir_separator=: 11648 hardcode_direct=yes 11649 11650 # hardcode_minus_L: Not really in the search PATH, 11651 # but as the default location of the library. 11652 hardcode_minus_L=yes 11653 export_dynamic_flag_spec='$wl-E' 11654 ;; 11655 11656 hpux10*) 11657 if test yes,no = "$GCC,$with_gnu_ld"; then 11658 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11659 else 11660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11661 fi 11662 if test no = "$with_gnu_ld"; then 11663 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11664 hardcode_libdir_separator=: 11665 hardcode_direct=yes 11666 hardcode_direct_absolute=yes 11667 export_dynamic_flag_spec='$wl-E' 11668 # hardcode_minus_L: Not really in the search PATH, 11669 # but as the default location of the library. 11670 hardcode_minus_L=yes 11671 fi 11672 ;; 11673 11674 hpux11*) 11675 if test yes,no = "$GCC,$with_gnu_ld"; then 11676 case $host_cpu in 11677 hppa*64*) 11678 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11679 ;; 11680 ia64*) 11681 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11682 ;; 11683 *) 11684 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11685 ;; 11686 esac 11687 else 11688 case $host_cpu in 11689 hppa*64*) 11690 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11691 ;; 11692 ia64*) 11693 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11694 ;; 11695 *) 11696 11697 # Older versions of the 11.00 compiler do not understand -b yet 11698 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11700printf %s "checking if $CC understands -b... " >&6; } 11701if test ${lt_cv_prog_compiler__b+y} 11702then : 11703 printf %s "(cached) " >&6 11704else case e in #( 11705 e) lt_cv_prog_compiler__b=no 11706 save_LDFLAGS=$LDFLAGS 11707 LDFLAGS="$LDFLAGS -b" 11708 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11709 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11710 # The linker can only warn and ignore the option if not recognized 11711 # So say no if there are warnings 11712 if test -s conftest.err; then 11713 # Append any errors to the config.log. 11714 cat conftest.err 1>&5 11715 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11717 if diff conftest.exp conftest.er2 >/dev/null; then 11718 lt_cv_prog_compiler__b=yes 11719 fi 11720 else 11721 lt_cv_prog_compiler__b=yes 11722 fi 11723 fi 11724 $RM -r conftest* 11725 LDFLAGS=$save_LDFLAGS 11726 ;; 11727esac 11728fi 11729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11730printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } 11731 11732if test yes = "$lt_cv_prog_compiler__b"; then 11733 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11734else 11735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11736fi 11737 11738 ;; 11739 esac 11740 fi 11741 if test no = "$with_gnu_ld"; then 11742 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11743 hardcode_libdir_separator=: 11744 11745 case $host_cpu in 11746 hppa*64*|ia64*) 11747 hardcode_direct=no 11748 hardcode_shlibpath_var=no 11749 ;; 11750 *) 11751 hardcode_direct=yes 11752 hardcode_direct_absolute=yes 11753 export_dynamic_flag_spec='$wl-E' 11754 11755 # hardcode_minus_L: Not really in the search PATH, 11756 # but as the default location of the library. 11757 hardcode_minus_L=yes 11758 ;; 11759 esac 11760 fi 11761 ;; 11762 11763 irix5* | irix6* | nonstopux*) 11764 if test yes = "$GCC"; then 11765 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' 11766 # Try to use the -exported_symbol ld option, if it does not 11767 # work, assume that -exports_file does not work either and 11768 # implicitly export all symbols. 11769 # This should be the same for all languages, so no per-tag cache variable. 11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11771printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11772if test ${lt_cv_irix_exported_symbol+y} 11773then : 11774 printf %s "(cached) " >&6 11775else case e in #( 11776 e) save_LDFLAGS=$LDFLAGS 11777 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11779/* end confdefs.h. */ 11780int foo (void) { return 0; } 11781_ACEOF 11782if ac_fn_c_try_link "$LINENO" 11783then : 11784 lt_cv_irix_exported_symbol=yes 11785else case e in #( 11786 e) lt_cv_irix_exported_symbol=no ;; 11787esac 11788fi 11789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11790 conftest$ac_exeext conftest.$ac_ext 11791 LDFLAGS=$save_LDFLAGS ;; 11792esac 11793fi 11794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11795printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } 11796 if test yes = "$lt_cv_irix_exported_symbol"; then 11797 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' 11798 fi 11799 else 11800 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' 11801 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' 11802 fi 11803 archive_cmds_need_lc='no' 11804 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11805 hardcode_libdir_separator=: 11806 inherit_rpath=yes 11807 link_all_deplibs=yes 11808 ;; 11809 11810 linux*) 11811 case $cc_basename in 11812 tcc*) 11813 # Fabrice Bellard et al's Tiny C Compiler 11814 ld_shlibs=yes 11815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11816 ;; 11817 esac 11818 ;; 11819 11820 netbsd*) 11821 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11823 else 11824 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11825 fi 11826 hardcode_libdir_flag_spec='-R$libdir' 11827 hardcode_direct=yes 11828 hardcode_shlibpath_var=no 11829 ;; 11830 11831 newsos6) 11832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11833 hardcode_direct=yes 11834 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11835 hardcode_libdir_separator=: 11836 hardcode_shlibpath_var=no 11837 ;; 11838 11839 *nto* | *qnx*) 11840 ;; 11841 11842 openbsd* | bitrig*) 11843 if test -f /usr/libexec/ld.so; then 11844 hardcode_direct=yes 11845 hardcode_shlibpath_var=no 11846 hardcode_direct_absolute=yes 11847 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11848 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11849 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11850 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11851 export_dynamic_flag_spec='$wl-E' 11852 else 11853 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11854 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11855 fi 11856 else 11857 ld_shlibs=no 11858 fi 11859 ;; 11860 11861 os2*) 11862 hardcode_libdir_flag_spec='-L$libdir' 11863 hardcode_minus_L=yes 11864 allow_undefined_flag=unsupported 11865 shrext_cmds=.dll 11866 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11867 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11868 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11869 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11870 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11871 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11872 emximp -o $lib $output_objdir/$libname.def' 11873 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11874 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11875 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11876 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11877 prefix_cmds="$SED"~ 11878 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11879 prefix_cmds="$prefix_cmds -e 1d"; 11880 fi~ 11881 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11882 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11883 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11884 emximp -o $lib $output_objdir/$libname.def' 11885 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11886 enable_shared_with_static_runtimes=yes 11887 file_list_spec='@' 11888 ;; 11889 11890 osf3*) 11891 if test yes = "$GCC"; then 11892 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11893 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' 11894 else 11895 allow_undefined_flag=' -expect_unresolved \*' 11896 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' 11897 fi 11898 archive_cmds_need_lc='no' 11899 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11900 hardcode_libdir_separator=: 11901 ;; 11902 11903 osf4* | osf5*) # as osf3* with the addition of -msym flag 11904 if test yes = "$GCC"; then 11905 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11906 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' 11907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11908 else 11909 allow_undefined_flag=' -expect_unresolved \*' 11910 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' 11911 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~ 11912 $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' 11913 11914 # Both c and cxx compiler support -rpath directly 11915 hardcode_libdir_flag_spec='-rpath $libdir' 11916 fi 11917 archive_cmds_need_lc='no' 11918 hardcode_libdir_separator=: 11919 ;; 11920 11921 solaris*) 11922 no_undefined_flag=' -z defs' 11923 if test yes = "$GCC"; then 11924 wlarc='$wl' 11925 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11926 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11927 $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' 11928 else 11929 case `$CC -V 2>&1` in 11930 *"Compilers 5.0"*) 11931 wlarc='' 11932 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11933 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11934 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11935 ;; 11936 *) 11937 wlarc='$wl' 11938 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11940 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11941 ;; 11942 esac 11943 fi 11944 hardcode_libdir_flag_spec='-R$libdir' 11945 hardcode_shlibpath_var=no 11946 case $host_os in 11947 solaris2.[0-5] | solaris2.[0-5].*) ;; 11948 *) 11949 # The compiler driver will combine and reorder linker options, 11950 # but understands '-z linker_flag'. GCC discards it without '$wl', 11951 # but is careful enough not to reorder. 11952 # Supported since Solaris 2.6 (maybe 2.5.1?) 11953 if test yes = "$GCC"; then 11954 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11955 else 11956 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11957 fi 11958 ;; 11959 esac 11960 link_all_deplibs=yes 11961 ;; 11962 11963 sunos4*) 11964 if test sequent = "$host_vendor"; then 11965 # Use $CC to link under sequent, because it throws in some extra .o 11966 # files that make .init and .fini sections work. 11967 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11968 else 11969 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11970 fi 11971 hardcode_libdir_flag_spec='-L$libdir' 11972 hardcode_direct=yes 11973 hardcode_minus_L=yes 11974 hardcode_shlibpath_var=no 11975 ;; 11976 11977 sysv4) 11978 case $host_vendor in 11979 sni) 11980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11981 hardcode_direct=yes # is this really true??? 11982 ;; 11983 siemens) 11984 ## LD is ld it makes a PLAMLIB 11985 ## CC just makes a GrossModule. 11986 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11987 reload_cmds='$CC -r -o $output$reload_objs' 11988 hardcode_direct=no 11989 ;; 11990 motorola) 11991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11992 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11993 ;; 11994 esac 11995 runpath_var='LD_RUN_PATH' 11996 hardcode_shlibpath_var=no 11997 ;; 11998 11999 sysv4.3*) 12000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12001 hardcode_shlibpath_var=no 12002 export_dynamic_flag_spec='-Bexport' 12003 ;; 12004 12005 sysv4*MP*) 12006 if test -d /usr/nec; then 12007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12008 hardcode_shlibpath_var=no 12009 runpath_var=LD_RUN_PATH 12010 hardcode_runpath_var=yes 12011 ld_shlibs=yes 12012 fi 12013 ;; 12014 12015 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12016 no_undefined_flag='$wl-z,text' 12017 archive_cmds_need_lc=no 12018 hardcode_shlibpath_var=no 12019 runpath_var='LD_RUN_PATH' 12020 12021 if test yes = "$GCC"; then 12022 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12023 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12024 else 12025 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12026 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12027 fi 12028 ;; 12029 12030 sysv5* | sco3.2v5* | sco5v6*) 12031 # Note: We CANNOT use -z defs as we might desire, because we do not 12032 # link with -lc, and that would cause any symbols used from libc to 12033 # always be unresolved, which means just about no library would 12034 # ever link correctly. If we're not using GNU ld we use -z text 12035 # though, which does catch some bad symbols but isn't as heavy-handed 12036 # as -z defs. 12037 no_undefined_flag='$wl-z,text' 12038 allow_undefined_flag='$wl-z,nodefs' 12039 archive_cmds_need_lc=no 12040 hardcode_shlibpath_var=no 12041 hardcode_libdir_flag_spec='$wl-R,$libdir' 12042 hardcode_libdir_separator=':' 12043 link_all_deplibs=yes 12044 export_dynamic_flag_spec='$wl-Bexport' 12045 runpath_var='LD_RUN_PATH' 12046 12047 if test yes = "$GCC"; then 12048 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12049 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12050 else 12051 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12052 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12053 fi 12054 ;; 12055 12056 uts4*) 12057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12058 hardcode_libdir_flag_spec='-L$libdir' 12059 hardcode_shlibpath_var=no 12060 ;; 12061 12062 *) 12063 ld_shlibs=no 12064 ;; 12065 esac 12066 12067 if test sni = "$host_vendor"; then 12068 case $host in 12069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12070 export_dynamic_flag_spec='$wl-Blargedynsym' 12071 ;; 12072 esac 12073 fi 12074 fi 12075 12076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 12077printf "%s\n" "$ld_shlibs" >&6; } 12078test no = "$ld_shlibs" && can_build_shared=no 12079 12080with_gnu_ld=$with_gnu_ld 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096# 12097# Do we need to explicitly link libc? 12098# 12099case "x$archive_cmds_need_lc" in 12100x|xyes) 12101 # Assume -lc should be added 12102 archive_cmds_need_lc=yes 12103 12104 if test yes,yes = "$GCC,$enable_shared"; then 12105 case $archive_cmds in 12106 *'~'*) 12107 # FIXME: we may have to deal with multi-command sequences. 12108 ;; 12109 '$CC '*) 12110 # Test whether the compiler implicitly links with -lc since on some 12111 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12112 # to ld, don't add -lc before -lgcc. 12113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 12114printf %s "checking whether -lc should be explicitly linked in... " >&6; } 12115if test ${lt_cv_archive_cmds_need_lc+y} 12116then : 12117 printf %s "(cached) " >&6 12118else case e in #( 12119 e) $RM conftest* 12120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12121 12122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12123 (eval $ac_compile) 2>&5 12124 ac_status=$? 12125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12126 test $ac_status = 0; } 2>conftest.err; then 12127 soname=conftest 12128 lib=conftest 12129 libobjs=conftest.$ac_objext 12130 deplibs= 12131 wl=$lt_prog_compiler_wl 12132 pic_flag=$lt_prog_compiler_pic 12133 compiler_flags=-v 12134 linker_flags=-v 12135 verstring= 12136 output_objdir=. 12137 libname=conftest 12138 lt_save_allow_undefined_flag=$allow_undefined_flag 12139 allow_undefined_flag= 12140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 12141 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12142 ac_status=$? 12143 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12144 test $ac_status = 0; } 12145 then 12146 lt_cv_archive_cmds_need_lc=no 12147 else 12148 lt_cv_archive_cmds_need_lc=yes 12149 fi 12150 allow_undefined_flag=$lt_save_allow_undefined_flag 12151 else 12152 cat conftest.err 1>&5 12153 fi 12154 $RM conftest* 12155 ;; 12156esac 12157fi 12158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 12159printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } 12160 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 12161 ;; 12162 esac 12163 fi 12164 ;; 12165esac 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12319printf %s "checking dynamic linker characteristics... " >&6; } 12320 12321if test yes = "$GCC"; then 12322 case $host_os in 12323 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 12324 *) lt_awk_arg='/^libraries:/' ;; 12325 esac 12326 case $host_os in 12327 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 12328 *) lt_sed_strip_eq='s|=/|/|g' ;; 12329 esac 12330 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12331 case $lt_search_path_spec in 12332 *\;*) 12333 # if the path contains ";" then we assume it to be the separator 12334 # otherwise default to the standard path separator (i.e. ":") - it is 12335 # assumed that no part of a normal pathname contains ";" but that should 12336 # okay in the real world where ";" in dirpaths is itself problematic. 12337 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12338 ;; 12339 *) 12340 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12341 ;; 12342 esac 12343 # Ok, now we have the path, separated by spaces, we can step through it 12344 # and add multilib dir if necessary... 12345 lt_tmp_lt_search_path_spec= 12346 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12347 # ...but if some path component already ends with the multilib dir we assume 12348 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 12349 case "$lt_multi_os_dir; $lt_search_path_spec " in 12350 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 12351 lt_multi_os_dir= 12352 ;; 12353 esac 12354 for lt_sys_path in $lt_search_path_spec; do 12355 if test -d "$lt_sys_path$lt_multi_os_dir"; then 12356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 12357 elif test -n "$lt_multi_os_dir"; then 12358 test -d "$lt_sys_path" && \ 12359 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12360 fi 12361 done 12362 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12363BEGIN {RS = " "; FS = "/|\n";} { 12364 lt_foo = ""; 12365 lt_count = 0; 12366 for (lt_i = NF; lt_i > 0; lt_i--) { 12367 if ($lt_i != "" && $lt_i != ".") { 12368 if ($lt_i == "..") { 12369 lt_count++; 12370 } else { 12371 if (lt_count == 0) { 12372 lt_foo = "/" $lt_i lt_foo; 12373 } else { 12374 lt_count--; 12375 } 12376 } 12377 } 12378 } 12379 if (lt_foo != "") { lt_freq[lt_foo]++; } 12380 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12381}'` 12382 # AWK program above erroneously prepends '/' to C:/dos/paths 12383 # for these hosts. 12384 case $host_os in 12385 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12386 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 12387 esac 12388 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12389else 12390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12391fi 12392library_names_spec= 12393libname_spec='lib$name' 12394soname_spec= 12395shrext_cmds=.so 12396postinstall_cmds= 12397postuninstall_cmds= 12398finish_cmds= 12399finish_eval= 12400shlibpath_var= 12401shlibpath_overrides_runpath=unknown 12402version_type=none 12403dynamic_linker="$host_os ld.so" 12404sys_lib_dlsearch_path_spec="/lib /usr/lib" 12405need_lib_prefix=unknown 12406hardcode_into_libs=no 12407 12408# when you set need_version to no, make sure it does not cause -set_version 12409# flags to be left without arguments 12410need_version=unknown 12411 12412 12413 12414case $host_os in 12415aix3*) 12416 version_type=linux # correct to gnu/linux during the next big refactor 12417 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12418 shlibpath_var=LIBPATH 12419 12420 # AIX 3 has no versioning support, so we append a major version to the name. 12421 soname_spec='$libname$release$shared_ext$major' 12422 ;; 12423 12424aix[4-9]*) 12425 version_type=linux # correct to gnu/linux during the next big refactor 12426 need_lib_prefix=no 12427 need_version=no 12428 hardcode_into_libs=yes 12429 if test ia64 = "$host_cpu"; then 12430 # AIX 5 supports IA64 12431 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12432 shlibpath_var=LD_LIBRARY_PATH 12433 else 12434 # With GCC up to 2.95.x, collect2 would create an import file 12435 # for dependence libraries. The import file would start with 12436 # the line '#! .'. This would cause the generated library to 12437 # depend on '.', always an invalid library. This was fixed in 12438 # development snapshots of GCC prior to 3.0. 12439 case $host_os in 12440 aix4 | aix4.[01] | aix4.[01].*) 12441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12442 echo ' yes ' 12443 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12444 : 12445 else 12446 can_build_shared=no 12447 fi 12448 ;; 12449 esac 12450 # Using Import Files as archive members, it is possible to support 12451 # filename-based versioning of shared library archives on AIX. While 12452 # this would work for both with and without runtime linking, it will 12453 # prevent static linking of such archives. So we do filename-based 12454 # shared library versioning with .so extension only, which is used 12455 # when both runtime linking and shared linking is enabled. 12456 # Unfortunately, runtime linking may impact performance, so we do 12457 # not want this to be the default eventually. Also, we use the 12458 # versioned .so libs for executables only if there is the -brtl 12459 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12460 # To allow for filename-based versioning support, we need to create 12461 # libNAME.so.V as an archive file, containing: 12462 # *) an Import File, referring to the versioned filename of the 12463 # archive as well as the shared archive member, telling the 12464 # bitwidth (32 or 64) of that shared object, and providing the 12465 # list of exported symbols of that shared object, eventually 12466 # decorated with the 'weak' keyword 12467 # *) the shared object with the F_LOADONLY flag set, to really avoid 12468 # it being seen by the linker. 12469 # At run time we better use the real file rather than another symlink, 12470 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12471 12472 case $with_aix_soname,$aix_use_runtimelinking in 12473 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12474 # soname into executable. Probably we can add versioning support to 12475 # collect2, so additional links can be useful in future. 12476 aix,yes) # traditional libtool 12477 dynamic_linker='AIX unversionable lib.so' 12478 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12479 # instead of lib<name>.a to let people know that these are not 12480 # typical AIX shared libraries. 12481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12482 ;; 12483 aix,no) # traditional AIX only 12484 dynamic_linker='AIX lib.a(lib.so.V)' 12485 # We preserve .a as extension for shared libraries through AIX4.2 12486 # and later when we are not doing run time linking. 12487 library_names_spec='$libname$release.a $libname.a' 12488 soname_spec='$libname$release$shared_ext$major' 12489 ;; 12490 svr4,*) # full svr4 only 12491 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12492 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12493 # We do not specify a path in Import Files, so LIBPATH fires. 12494 shlibpath_overrides_runpath=yes 12495 ;; 12496 *,yes) # both, prefer svr4 12497 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12498 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12499 # unpreferred sharedlib libNAME.a needs extra handling 12500 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"' 12501 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"' 12502 # We do not specify a path in Import Files, so LIBPATH fires. 12503 shlibpath_overrides_runpath=yes 12504 ;; 12505 *,no) # both, prefer aix 12506 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12507 library_names_spec='$libname$release.a $libname.a' 12508 soname_spec='$libname$release$shared_ext$major' 12509 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12510 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)' 12511 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"' 12512 ;; 12513 esac 12514 shlibpath_var=LIBPATH 12515 fi 12516 ;; 12517 12518amigaos*) 12519 case $host_cpu in 12520 powerpc) 12521 # Since July 2007 AmigaOS4 officially supports .so libraries. 12522 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12523 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12524 ;; 12525 m68k) 12526 library_names_spec='$libname.ixlibrary $libname.a' 12527 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12528 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' 12529 ;; 12530 esac 12531 ;; 12532 12533beos*) 12534 library_names_spec='$libname$shared_ext' 12535 dynamic_linker="$host_os ld.so" 12536 shlibpath_var=LIBRARY_PATH 12537 ;; 12538 12539bsdi[45]*) 12540 version_type=linux # correct to gnu/linux during the next big refactor 12541 need_version=no 12542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12543 soname_spec='$libname$release$shared_ext$major' 12544 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12545 shlibpath_var=LD_LIBRARY_PATH 12546 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12547 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12548 # the default ld.so.conf also contains /usr/contrib/lib and 12549 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12550 # libtool to hard-code these into programs 12551 ;; 12552 12553cygwin* | mingw* | pw32* | cegcc*) 12554 version_type=windows 12555 shrext_cmds=.dll 12556 need_version=no 12557 need_lib_prefix=no 12558 12559 case $GCC,$cc_basename in 12560 yes,*) 12561 # gcc 12562 library_names_spec='$libname.dll.a' 12563 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12564 postinstall_cmds='base_file=`basename \$file`~ 12565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12566 dldir=$destdir/`dirname \$dlpath`~ 12567 test -d \$dldir || mkdir -p \$dldir~ 12568 $install_prog $dir/$dlname \$dldir/$dlname~ 12569 chmod a+x \$dldir/$dlname~ 12570 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12571 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12572 fi' 12573 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12574 dlpath=$dir/\$dldll~ 12575 $RM \$dlpath' 12576 shlibpath_overrides_runpath=yes 12577 12578 case $host_os in 12579 cygwin*) 12580 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12581 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12582 12583 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12584 ;; 12585 mingw* | cegcc*) 12586 # MinGW DLLs use traditional 'lib' prefix 12587 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12588 ;; 12589 pw32*) 12590 # pw32 DLLs use 'pw' prefix rather than 'lib' 12591 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12592 ;; 12593 esac 12594 dynamic_linker='Win32 ld.exe' 12595 ;; 12596 12597 *,cl* | *,icl*) 12598 # Native MSVC or ICC 12599 libname_spec='$name' 12600 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12601 library_names_spec='$libname.dll.lib' 12602 12603 case $build_os in 12604 mingw*) 12605 sys_lib_search_path_spec= 12606 lt_save_ifs=$IFS 12607 IFS=';' 12608 for lt_path in $LIB 12609 do 12610 IFS=$lt_save_ifs 12611 # Let DOS variable expansion print the short 8.3 style file name. 12612 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12613 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12614 done 12615 IFS=$lt_save_ifs 12616 # Convert to MSYS style. 12617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12618 ;; 12619 cygwin*) 12620 # Convert to unix form, then to dos form, then back to unix form 12621 # but this time dos style (no spaces!) so that the unix form looks 12622 # like /cygdrive/c/PROGRA~1:/cygdr... 12623 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12624 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12625 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12626 ;; 12627 *) 12628 sys_lib_search_path_spec=$LIB 12629 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12630 # It is most probably a Windows format PATH. 12631 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12632 else 12633 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12634 fi 12635 # FIXME: find the short name or the path components, as spaces are 12636 # common. (e.g. "Program Files" -> "PROGRA~1") 12637 ;; 12638 esac 12639 12640 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12641 postinstall_cmds='base_file=`basename \$file`~ 12642 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12643 dldir=$destdir/`dirname \$dlpath`~ 12644 test -d \$dldir || mkdir -p \$dldir~ 12645 $install_prog $dir/$dlname \$dldir/$dlname' 12646 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12647 dlpath=$dir/\$dldll~ 12648 $RM \$dlpath' 12649 shlibpath_overrides_runpath=yes 12650 dynamic_linker='Win32 link.exe' 12651 ;; 12652 12653 *) 12654 # Assume MSVC and ICC wrapper 12655 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12656 dynamic_linker='Win32 ld.exe' 12657 ;; 12658 esac 12659 # FIXME: first we should search . and the directory the executable is in 12660 shlibpath_var=PATH 12661 ;; 12662 12663darwin* | rhapsody*) 12664 dynamic_linker="$host_os dyld" 12665 version_type=darwin 12666 need_lib_prefix=no 12667 need_version=no 12668 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12669 soname_spec='$libname$release$major$shared_ext' 12670 shlibpath_overrides_runpath=yes 12671 shlibpath_var=DYLD_LIBRARY_PATH 12672 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12673 12674 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12675 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12676 ;; 12677 12678dgux*) 12679 version_type=linux # correct to gnu/linux during the next big refactor 12680 need_lib_prefix=no 12681 need_version=no 12682 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12683 soname_spec='$libname$release$shared_ext$major' 12684 shlibpath_var=LD_LIBRARY_PATH 12685 ;; 12686 12687freebsd* | dragonfly* | midnightbsd*) 12688 # DragonFly does not have aout. When/if they implement a new 12689 # versioning mechanism, adjust this. 12690 if test -x /usr/bin/objformat; then 12691 objformat=`/usr/bin/objformat` 12692 else 12693 case $host_os in 12694 freebsd[23].*) objformat=aout ;; 12695 *) objformat=elf ;; 12696 esac 12697 fi 12698 version_type=freebsd-$objformat 12699 case $version_type in 12700 freebsd-elf*) 12701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12702 soname_spec='$libname$release$shared_ext$major' 12703 need_version=no 12704 need_lib_prefix=no 12705 ;; 12706 freebsd-*) 12707 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12708 need_version=yes 12709 ;; 12710 esac 12711 shlibpath_var=LD_LIBRARY_PATH 12712 case $host_os in 12713 freebsd2.*) 12714 shlibpath_overrides_runpath=yes 12715 ;; 12716 freebsd3.[01]* | freebsdelf3.[01]*) 12717 shlibpath_overrides_runpath=yes 12718 hardcode_into_libs=yes 12719 ;; 12720 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12721 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12722 shlibpath_overrides_runpath=no 12723 hardcode_into_libs=yes 12724 ;; 12725 *) # from 4.6 on, and DragonFly 12726 shlibpath_overrides_runpath=yes 12727 hardcode_into_libs=yes 12728 ;; 12729 esac 12730 ;; 12731 12732haiku*) 12733 version_type=linux # correct to gnu/linux during the next big refactor 12734 need_lib_prefix=no 12735 need_version=no 12736 dynamic_linker="$host_os runtime_loader" 12737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12738 soname_spec='$libname$release$shared_ext$major' 12739 shlibpath_var=LIBRARY_PATH 12740 shlibpath_overrides_runpath=no 12741 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12742 hardcode_into_libs=yes 12743 ;; 12744 12745hpux9* | hpux10* | hpux11*) 12746 # Give a soname corresponding to the major version so that dld.sl refuses to 12747 # link against other versions. 12748 version_type=sunos 12749 need_lib_prefix=no 12750 need_version=no 12751 case $host_cpu in 12752 ia64*) 12753 shrext_cmds='.so' 12754 hardcode_into_libs=yes 12755 dynamic_linker="$host_os dld.so" 12756 shlibpath_var=LD_LIBRARY_PATH 12757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12759 soname_spec='$libname$release$shared_ext$major' 12760 if test 32 = "$HPUX_IA64_MODE"; then 12761 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12762 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12763 else 12764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12765 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12766 fi 12767 ;; 12768 hppa*64*) 12769 shrext_cmds='.sl' 12770 hardcode_into_libs=yes 12771 dynamic_linker="$host_os dld.sl" 12772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12775 soname_spec='$libname$release$shared_ext$major' 12776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12778 ;; 12779 *) 12780 shrext_cmds='.sl' 12781 dynamic_linker="$host_os dld.sl" 12782 shlibpath_var=SHLIB_PATH 12783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12785 soname_spec='$libname$release$shared_ext$major' 12786 ;; 12787 esac 12788 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12789 postinstall_cmds='chmod 555 $lib' 12790 # or fails outright, so override atomically: 12791 install_override_mode=555 12792 ;; 12793 12794interix[3-9]*) 12795 version_type=linux # correct to gnu/linux during the next big refactor 12796 need_lib_prefix=no 12797 need_version=no 12798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12799 soname_spec='$libname$release$shared_ext$major' 12800 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12801 shlibpath_var=LD_LIBRARY_PATH 12802 shlibpath_overrides_runpath=no 12803 hardcode_into_libs=yes 12804 ;; 12805 12806irix5* | irix6* | nonstopux*) 12807 case $host_os in 12808 nonstopux*) version_type=nonstopux ;; 12809 *) 12810 if test yes = "$lt_cv_prog_gnu_ld"; then 12811 version_type=linux # correct to gnu/linux during the next big refactor 12812 else 12813 version_type=irix 12814 fi ;; 12815 esac 12816 need_lib_prefix=no 12817 need_version=no 12818 soname_spec='$libname$release$shared_ext$major' 12819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12820 case $host_os in 12821 irix5* | nonstopux*) 12822 libsuff= shlibsuff= 12823 ;; 12824 *) 12825 case $LD in # libtool.m4 will add one of these switches to LD 12826 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12827 libsuff= shlibsuff= libmagic=32-bit;; 12828 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12829 libsuff=32 shlibsuff=N32 libmagic=N32;; 12830 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12831 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12832 *) libsuff= shlibsuff= libmagic=never-match;; 12833 esac 12834 ;; 12835 esac 12836 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12837 shlibpath_overrides_runpath=no 12838 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12839 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12840 hardcode_into_libs=yes 12841 ;; 12842 12843# No shared lib support for Linux oldld, aout, or coff. 12844linux*oldld* | linux*aout* | linux*coff*) 12845 dynamic_linker=no 12846 ;; 12847 12848linux*android*) 12849 version_type=none # Android doesn't support versioned libraries. 12850 need_lib_prefix=no 12851 need_version=no 12852 library_names_spec='$libname$release$shared_ext' 12853 soname_spec='$libname$release$shared_ext' 12854 finish_cmds= 12855 shlibpath_var=LD_LIBRARY_PATH 12856 shlibpath_overrides_runpath=yes 12857 12858 # This implies no fast_install, which is unacceptable. 12859 # Some rework will be needed to allow for fast_install 12860 # before this can be enabled. 12861 hardcode_into_libs=yes 12862 12863 dynamic_linker='Android linker' 12864 # Don't embed -rpath directories since the linker doesn't support them. 12865 hardcode_libdir_flag_spec='-L$libdir' 12866 ;; 12867 12868# This must be glibc/ELF. 12869linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12870 version_type=linux # correct to gnu/linux during the next big refactor 12871 need_lib_prefix=no 12872 need_version=no 12873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12874 soname_spec='$libname$release$shared_ext$major' 12875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12876 shlibpath_var=LD_LIBRARY_PATH 12877 shlibpath_overrides_runpath=no 12878 12879 # Some binutils ld are patched to set DT_RUNPATH 12880 if test ${lt_cv_shlibpath_overrides_runpath+y} 12881then : 12882 printf %s "(cached) " >&6 12883else case e in #( 12884 e) lt_cv_shlibpath_overrides_runpath=no 12885 save_LDFLAGS=$LDFLAGS 12886 save_libdir=$libdir 12887 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12888 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12890/* end confdefs.h. */ 12891 12892int 12893main (void) 12894{ 12895 12896 ; 12897 return 0; 12898} 12899_ACEOF 12900if ac_fn_c_try_link "$LINENO" 12901then : 12902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null 12903then : 12904 lt_cv_shlibpath_overrides_runpath=yes 12905fi 12906fi 12907rm -f core conftest.err conftest.$ac_objext conftest.beam \ 12908 conftest$ac_exeext conftest.$ac_ext 12909 LDFLAGS=$save_LDFLAGS 12910 libdir=$save_libdir 12911 ;; 12912esac 12913fi 12914 12915 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12916 12917 # This implies no fast_install, which is unacceptable. 12918 # Some rework will be needed to allow for fast_install 12919 # before this can be enabled. 12920 hardcode_into_libs=yes 12921 12922 # Ideally, we could use ldconfig to report *all* directores which are 12923 # searched for libraries, however this is still not possible. Aside from not 12924 # being certain /sbin/ldconfig is available, command 12925 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12926 # even though it is searched at run-time. Try to do the best guess by 12927 # appending ld.so.conf contents (and includes) to the search path. 12928 if test -f /etc/ld.so.conf; then 12929 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' ' '` 12930 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12931 fi 12932 12933 # We used to test for /lib/ld.so.1 and disable shared libraries on 12934 # powerpc, because MkLinux only supported shared libraries with the 12935 # GNU dynamic linker. Since this was broken with cross compilers, 12936 # most powerpc-linux boxes support dynamic linking these days and 12937 # people can always --disable-shared, the test was removed, and we 12938 # assume the GNU/Linux dynamic linker is in use. 12939 dynamic_linker='GNU/Linux ld.so' 12940 ;; 12941 12942netbsd*) 12943 version_type=sunos 12944 need_lib_prefix=no 12945 need_version=no 12946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12947 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12949 dynamic_linker='NetBSD (a.out) ld.so' 12950 else 12951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12952 soname_spec='$libname$release$shared_ext$major' 12953 dynamic_linker='NetBSD ld.elf_so' 12954 fi 12955 shlibpath_var=LD_LIBRARY_PATH 12956 shlibpath_overrides_runpath=yes 12957 hardcode_into_libs=yes 12958 ;; 12959 12960newsos6) 12961 version_type=linux # correct to gnu/linux during the next big refactor 12962 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12963 shlibpath_var=LD_LIBRARY_PATH 12964 shlibpath_overrides_runpath=yes 12965 ;; 12966 12967*nto* | *qnx*) 12968 version_type=qnx 12969 need_lib_prefix=no 12970 need_version=no 12971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12972 soname_spec='$libname$release$shared_ext$major' 12973 shlibpath_var=LD_LIBRARY_PATH 12974 shlibpath_overrides_runpath=no 12975 hardcode_into_libs=yes 12976 dynamic_linker='ldqnx.so' 12977 ;; 12978 12979openbsd* | bitrig*) 12980 version_type=sunos 12981 sys_lib_dlsearch_path_spec=/usr/lib 12982 need_lib_prefix=no 12983 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12984 need_version=no 12985 else 12986 need_version=yes 12987 fi 12988 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12990 shlibpath_var=LD_LIBRARY_PATH 12991 shlibpath_overrides_runpath=yes 12992 ;; 12993 12994os2*) 12995 libname_spec='$name' 12996 version_type=windows 12997 shrext_cmds=.dll 12998 need_version=no 12999 need_lib_prefix=no 13000 # OS/2 can only load a DLL with a base name of 8 characters or less. 13001 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 13002 v=$($ECHO $release$versuffix | tr -d .-); 13003 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 13004 $ECHO $n$v`$shared_ext' 13005 library_names_spec='${libname}_dll.$libext' 13006 dynamic_linker='OS/2 ld.exe' 13007 shlibpath_var=BEGINLIBPATH 13008 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13009 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13010 postinstall_cmds='base_file=`basename \$file`~ 13011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 13012 dldir=$destdir/`dirname \$dlpath`~ 13013 test -d \$dldir || mkdir -p \$dldir~ 13014 $install_prog $dir/$dlname \$dldir/$dlname~ 13015 chmod a+x \$dldir/$dlname~ 13016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13018 fi' 13019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 13020 dlpath=$dir/\$dldll~ 13021 $RM \$dlpath' 13022 ;; 13023 13024osf3* | osf4* | osf5*) 13025 version_type=osf 13026 need_lib_prefix=no 13027 need_version=no 13028 soname_spec='$libname$release$shared_ext$major' 13029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13030 shlibpath_var=LD_LIBRARY_PATH 13031 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13033 ;; 13034 13035rdos*) 13036 dynamic_linker=no 13037 ;; 13038 13039solaris*) 13040 version_type=linux # correct to gnu/linux during the next big refactor 13041 need_lib_prefix=no 13042 need_version=no 13043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13044 soname_spec='$libname$release$shared_ext$major' 13045 shlibpath_var=LD_LIBRARY_PATH 13046 shlibpath_overrides_runpath=yes 13047 hardcode_into_libs=yes 13048 # ldd complains unless libraries are executable 13049 postinstall_cmds='chmod +x $lib' 13050 ;; 13051 13052sunos4*) 13053 version_type=sunos 13054 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 13055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13056 shlibpath_var=LD_LIBRARY_PATH 13057 shlibpath_overrides_runpath=yes 13058 if test yes = "$with_gnu_ld"; then 13059 need_lib_prefix=no 13060 fi 13061 need_version=yes 13062 ;; 13063 13064sysv4 | sysv4.3*) 13065 version_type=linux # correct to gnu/linux during the next big refactor 13066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13067 soname_spec='$libname$release$shared_ext$major' 13068 shlibpath_var=LD_LIBRARY_PATH 13069 case $host_vendor in 13070 sni) 13071 shlibpath_overrides_runpath=no 13072 need_lib_prefix=no 13073 runpath_var=LD_RUN_PATH 13074 ;; 13075 siemens) 13076 need_lib_prefix=no 13077 ;; 13078 motorola) 13079 need_lib_prefix=no 13080 need_version=no 13081 shlibpath_overrides_runpath=no 13082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13083 ;; 13084 esac 13085 ;; 13086 13087sysv4*MP*) 13088 if test -d /usr/nec; then 13089 version_type=linux # correct to gnu/linux during the next big refactor 13090 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 13091 soname_spec='$libname$shared_ext.$major' 13092 shlibpath_var=LD_LIBRARY_PATH 13093 fi 13094 ;; 13095 13096sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13097 version_type=sco 13098 need_lib_prefix=no 13099 need_version=no 13100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 13101 soname_spec='$libname$release$shared_ext$major' 13102 shlibpath_var=LD_LIBRARY_PATH 13103 shlibpath_overrides_runpath=yes 13104 hardcode_into_libs=yes 13105 if test yes = "$with_gnu_ld"; then 13106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13107 else 13108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13109 case $host_os in 13110 sco3.2v5*) 13111 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13112 ;; 13113 esac 13114 fi 13115 sys_lib_dlsearch_path_spec='/usr/lib' 13116 ;; 13117 13118tpf*) 13119 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13120 version_type=linux # correct to gnu/linux during the next big refactor 13121 need_lib_prefix=no 13122 need_version=no 13123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13124 shlibpath_var=LD_LIBRARY_PATH 13125 shlibpath_overrides_runpath=no 13126 hardcode_into_libs=yes 13127 ;; 13128 13129uts4*) 13130 version_type=linux # correct to gnu/linux during the next big refactor 13131 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 13132 soname_spec='$libname$release$shared_ext$major' 13133 shlibpath_var=LD_LIBRARY_PATH 13134 ;; 13135 13136*) 13137 dynamic_linker=no 13138 ;; 13139esac 13140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 13141printf "%s\n" "$dynamic_linker" >&6; } 13142test no = "$dynamic_linker" && can_build_shared=no 13143 13144variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13145if test yes = "$GCC"; then 13146 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13147fi 13148 13149if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 13150 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 13151fi 13152 13153if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 13154 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 13155fi 13156 13157# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 13158configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 13159 13160# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 13161func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 13162 13163# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 13164configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 13263printf %s "checking how to hardcode library paths into programs... " >&6; } 13264hardcode_action= 13265if test -n "$hardcode_libdir_flag_spec" || 13266 test -n "$runpath_var" || 13267 test yes = "$hardcode_automatic"; then 13268 13269 # We can hardcode non-existent directories. 13270 if test no != "$hardcode_direct" && 13271 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13272 # have to relink, otherwise we might link with an installed library 13273 # when we should be linking with a yet-to-be-installed one 13274 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 13275 test no != "$hardcode_minus_L"; then 13276 # Linking always hardcodes the temporary library directory. 13277 hardcode_action=relink 13278 else 13279 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13280 hardcode_action=immediate 13281 fi 13282else 13283 # We cannot hardcode anything, or else we can only hardcode existing 13284 # directories. 13285 hardcode_action=unsupported 13286fi 13287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 13288printf "%s\n" "$hardcode_action" >&6; } 13289 13290if test relink = "$hardcode_action" || 13291 test yes = "$inherit_rpath"; then 13292 # Fast installation is not supported 13293 enable_fast_install=no 13294elif test yes = "$shlibpath_overrides_runpath" || 13295 test no = "$enable_shared"; then 13296 # Fast installation is not necessary 13297 enable_fast_install=needless 13298fi 13299 13300 13301 13302 13303 13304 13305 if test yes != "$enable_dlopen"; then 13306 enable_dlopen=unknown 13307 enable_dlopen_self=unknown 13308 enable_dlopen_self_static=unknown 13309else 13310 lt_cv_dlopen=no 13311 lt_cv_dlopen_libs= 13312 13313 case $host_os in 13314 beos*) 13315 lt_cv_dlopen=load_add_on 13316 lt_cv_dlopen_libs= 13317 lt_cv_dlopen_self=yes 13318 ;; 13319 13320 mingw* | pw32* | cegcc*) 13321 lt_cv_dlopen=LoadLibrary 13322 lt_cv_dlopen_libs= 13323 ;; 13324 13325 cygwin*) 13326 lt_cv_dlopen=dlopen 13327 lt_cv_dlopen_libs= 13328 ;; 13329 13330 darwin*) 13331 # if libdl is installed we need to link against it 13332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13333printf %s "checking for dlopen in -ldl... " >&6; } 13334if test ${ac_cv_lib_dl_dlopen+y} 13335then : 13336 printf %s "(cached) " >&6 13337else case e in #( 13338 e) ac_check_lib_save_LIBS=$LIBS 13339LIBS="-ldl $LIBS" 13340cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13341/* end confdefs.h. */ 13342 13343/* Override any GCC internal prototype to avoid an error. 13344 Use char because int might match the return type of a GCC 13345 builtin and then its argument prototype would still apply. 13346 The 'extern "C"' is for builds by C++ compilers; 13347 although this is not generally supported in C code supporting it here 13348 has little cost and some practical benefit (sr 110532). */ 13349#ifdef __cplusplus 13350extern "C" 13351#endif 13352char dlopen (void); 13353int 13354main (void) 13355{ 13356return dlopen (); 13357 ; 13358 return 0; 13359} 13360_ACEOF 13361if ac_fn_c_try_link "$LINENO" 13362then : 13363 ac_cv_lib_dl_dlopen=yes 13364else case e in #( 13365 e) ac_cv_lib_dl_dlopen=no ;; 13366esac 13367fi 13368rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13369 conftest$ac_exeext conftest.$ac_ext 13370LIBS=$ac_check_lib_save_LIBS ;; 13371esac 13372fi 13373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13374printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13375if test "x$ac_cv_lib_dl_dlopen" = xyes 13376then : 13377 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13378else case e in #( 13379 e) 13380 lt_cv_dlopen=dyld 13381 lt_cv_dlopen_libs= 13382 lt_cv_dlopen_self=yes 13383 ;; 13384esac 13385fi 13386 13387 ;; 13388 13389 tpf*) 13390 # Don't try to run any link tests for TPF. We know it's impossible 13391 # because TPF is a cross-compiler, and we know how we open DSOs. 13392 lt_cv_dlopen=dlopen 13393 lt_cv_dlopen_libs= 13394 lt_cv_dlopen_self=no 13395 ;; 13396 13397 *) 13398 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13399if test "x$ac_cv_func_shl_load" = xyes 13400then : 13401 lt_cv_dlopen=shl_load 13402else case e in #( 13403 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13404printf %s "checking for shl_load in -ldld... " >&6; } 13405if test ${ac_cv_lib_dld_shl_load+y} 13406then : 13407 printf %s "(cached) " >&6 13408else case e in #( 13409 e) ac_check_lib_save_LIBS=$LIBS 13410LIBS="-ldld $LIBS" 13411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13412/* end confdefs.h. */ 13413 13414/* Override any GCC internal prototype to avoid an error. 13415 Use char because int might match the return type of a GCC 13416 builtin and then its argument prototype would still apply. 13417 The 'extern "C"' is for builds by C++ compilers; 13418 although this is not generally supported in C code supporting it here 13419 has little cost and some practical benefit (sr 110532). */ 13420#ifdef __cplusplus 13421extern "C" 13422#endif 13423char shl_load (void); 13424int 13425main (void) 13426{ 13427return shl_load (); 13428 ; 13429 return 0; 13430} 13431_ACEOF 13432if ac_fn_c_try_link "$LINENO" 13433then : 13434 ac_cv_lib_dld_shl_load=yes 13435else case e in #( 13436 e) ac_cv_lib_dld_shl_load=no ;; 13437esac 13438fi 13439rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13440 conftest$ac_exeext conftest.$ac_ext 13441LIBS=$ac_check_lib_save_LIBS ;; 13442esac 13443fi 13444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13445printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13446if test "x$ac_cv_lib_dld_shl_load" = xyes 13447then : 13448 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13449else case e in #( 13450 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13451if test "x$ac_cv_func_dlopen" = xyes 13452then : 13453 lt_cv_dlopen=dlopen 13454else case e in #( 13455 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13456printf %s "checking for dlopen in -ldl... " >&6; } 13457if test ${ac_cv_lib_dl_dlopen+y} 13458then : 13459 printf %s "(cached) " >&6 13460else case e in #( 13461 e) ac_check_lib_save_LIBS=$LIBS 13462LIBS="-ldl $LIBS" 13463cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13464/* end confdefs.h. */ 13465 13466/* Override any GCC internal prototype to avoid an error. 13467 Use char because int might match the return type of a GCC 13468 builtin and then its argument prototype would still apply. 13469 The 'extern "C"' is for builds by C++ compilers; 13470 although this is not generally supported in C code supporting it here 13471 has little cost and some practical benefit (sr 110532). */ 13472#ifdef __cplusplus 13473extern "C" 13474#endif 13475char dlopen (void); 13476int 13477main (void) 13478{ 13479return dlopen (); 13480 ; 13481 return 0; 13482} 13483_ACEOF 13484if ac_fn_c_try_link "$LINENO" 13485then : 13486 ac_cv_lib_dl_dlopen=yes 13487else case e in #( 13488 e) ac_cv_lib_dl_dlopen=no ;; 13489esac 13490fi 13491rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13492 conftest$ac_exeext conftest.$ac_ext 13493LIBS=$ac_check_lib_save_LIBS ;; 13494esac 13495fi 13496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13497printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13498if test "x$ac_cv_lib_dl_dlopen" = xyes 13499then : 13500 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13501else case e in #( 13502 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13503printf %s "checking for dlopen in -lsvld... " >&6; } 13504if test ${ac_cv_lib_svld_dlopen+y} 13505then : 13506 printf %s "(cached) " >&6 13507else case e in #( 13508 e) ac_check_lib_save_LIBS=$LIBS 13509LIBS="-lsvld $LIBS" 13510cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13511/* end confdefs.h. */ 13512 13513/* Override any GCC internal prototype to avoid an error. 13514 Use char because int might match the return type of a GCC 13515 builtin and then its argument prototype would still apply. 13516 The 'extern "C"' is for builds by C++ compilers; 13517 although this is not generally supported in C code supporting it here 13518 has little cost and some practical benefit (sr 110532). */ 13519#ifdef __cplusplus 13520extern "C" 13521#endif 13522char dlopen (void); 13523int 13524main (void) 13525{ 13526return dlopen (); 13527 ; 13528 return 0; 13529} 13530_ACEOF 13531if ac_fn_c_try_link "$LINENO" 13532then : 13533 ac_cv_lib_svld_dlopen=yes 13534else case e in #( 13535 e) ac_cv_lib_svld_dlopen=no ;; 13536esac 13537fi 13538rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13539 conftest$ac_exeext conftest.$ac_ext 13540LIBS=$ac_check_lib_save_LIBS ;; 13541esac 13542fi 13543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13544printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } 13545if test "x$ac_cv_lib_svld_dlopen" = xyes 13546then : 13547 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13548else case e in #( 13549 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13550printf %s "checking for dld_link in -ldld... " >&6; } 13551if test ${ac_cv_lib_dld_dld_link+y} 13552then : 13553 printf %s "(cached) " >&6 13554else case e in #( 13555 e) ac_check_lib_save_LIBS=$LIBS 13556LIBS="-ldld $LIBS" 13557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13558/* end confdefs.h. */ 13559 13560/* Override any GCC internal prototype to avoid an error. 13561 Use char because int might match the return type of a GCC 13562 builtin and then its argument prototype would still apply. 13563 The 'extern "C"' is for builds by C++ compilers; 13564 although this is not generally supported in C code supporting it here 13565 has little cost and some practical benefit (sr 110532). */ 13566#ifdef __cplusplus 13567extern "C" 13568#endif 13569char dld_link (void); 13570int 13571main (void) 13572{ 13573return dld_link (); 13574 ; 13575 return 0; 13576} 13577_ACEOF 13578if ac_fn_c_try_link "$LINENO" 13579then : 13580 ac_cv_lib_dld_dld_link=yes 13581else case e in #( 13582 e) ac_cv_lib_dld_dld_link=no ;; 13583esac 13584fi 13585rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13586 conftest$ac_exeext conftest.$ac_ext 13587LIBS=$ac_check_lib_save_LIBS ;; 13588esac 13589fi 13590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13591printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } 13592if test "x$ac_cv_lib_dld_dld_link" = xyes 13593then : 13594 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13595fi 13596 13597 ;; 13598esac 13599fi 13600 13601 ;; 13602esac 13603fi 13604 13605 ;; 13606esac 13607fi 13608 13609 ;; 13610esac 13611fi 13612 13613 ;; 13614esac 13615fi 13616 13617 ;; 13618 esac 13619 13620 if test no = "$lt_cv_dlopen"; then 13621 enable_dlopen=no 13622 else 13623 enable_dlopen=yes 13624 fi 13625 13626 case $lt_cv_dlopen in 13627 dlopen) 13628 save_CPPFLAGS=$CPPFLAGS 13629 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13630 13631 save_LDFLAGS=$LDFLAGS 13632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13633 13634 save_LIBS=$LIBS 13635 LIBS="$lt_cv_dlopen_libs $LIBS" 13636 13637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13638printf %s "checking whether a program can dlopen itself... " >&6; } 13639if test ${lt_cv_dlopen_self+y} 13640then : 13641 printf %s "(cached) " >&6 13642else case e in #( 13643 e) if test yes = "$cross_compiling"; then : 13644 lt_cv_dlopen_self=cross 13645else 13646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13647 lt_status=$lt_dlunknown 13648 cat > conftest.$ac_ext <<_LT_EOF 13649#line $LINENO "configure" 13650#include "confdefs.h" 13651 13652#if HAVE_DLFCN_H 13653#include <dlfcn.h> 13654#endif 13655 13656#include <stdio.h> 13657 13658#ifdef RTLD_GLOBAL 13659# define LT_DLGLOBAL RTLD_GLOBAL 13660#else 13661# ifdef DL_GLOBAL 13662# define LT_DLGLOBAL DL_GLOBAL 13663# else 13664# define LT_DLGLOBAL 0 13665# endif 13666#endif 13667 13668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13669 find out it does not work in some platform. */ 13670#ifndef LT_DLLAZY_OR_NOW 13671# ifdef RTLD_LAZY 13672# define LT_DLLAZY_OR_NOW RTLD_LAZY 13673# else 13674# ifdef DL_LAZY 13675# define LT_DLLAZY_OR_NOW DL_LAZY 13676# else 13677# ifdef RTLD_NOW 13678# define LT_DLLAZY_OR_NOW RTLD_NOW 13679# else 13680# ifdef DL_NOW 13681# define LT_DLLAZY_OR_NOW DL_NOW 13682# else 13683# define LT_DLLAZY_OR_NOW 0 13684# endif 13685# endif 13686# endif 13687# endif 13688#endif 13689 13690/* When -fvisibility=hidden is used, assume the code has been annotated 13691 correspondingly for the symbols needed. */ 13692#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13693int fnord () __attribute__((visibility("default"))); 13694#endif 13695 13696int fnord () { return 42; } 13697int main () 13698{ 13699 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13700 int status = $lt_dlunknown; 13701 13702 if (self) 13703 { 13704 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13705 else 13706 { 13707 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13708 else puts (dlerror ()); 13709 } 13710 /* dlclose (self); */ 13711 } 13712 else 13713 puts (dlerror ()); 13714 13715 return status; 13716} 13717_LT_EOF 13718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13719 (eval $ac_link) 2>&5 13720 ac_status=$? 13721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13722 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13723 (./conftest; exit; ) >&5 2>/dev/null 13724 lt_status=$? 13725 case x$lt_status in 13726 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13727 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13728 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13729 esac 13730 else : 13731 # compilation failed 13732 lt_cv_dlopen_self=no 13733 fi 13734fi 13735rm -fr conftest* 13736 13737 ;; 13738esac 13739fi 13740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13741printf "%s\n" "$lt_cv_dlopen_self" >&6; } 13742 13743 if test yes = "$lt_cv_dlopen_self"; then 13744 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13746printf %s "checking whether a statically linked program can dlopen itself... " >&6; } 13747if test ${lt_cv_dlopen_self_static+y} 13748then : 13749 printf %s "(cached) " >&6 13750else case e in #( 13751 e) if test yes = "$cross_compiling"; then : 13752 lt_cv_dlopen_self_static=cross 13753else 13754 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13755 lt_status=$lt_dlunknown 13756 cat > conftest.$ac_ext <<_LT_EOF 13757#line $LINENO "configure" 13758#include "confdefs.h" 13759 13760#if HAVE_DLFCN_H 13761#include <dlfcn.h> 13762#endif 13763 13764#include <stdio.h> 13765 13766#ifdef RTLD_GLOBAL 13767# define LT_DLGLOBAL RTLD_GLOBAL 13768#else 13769# ifdef DL_GLOBAL 13770# define LT_DLGLOBAL DL_GLOBAL 13771# else 13772# define LT_DLGLOBAL 0 13773# endif 13774#endif 13775 13776/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13777 find out it does not work in some platform. */ 13778#ifndef LT_DLLAZY_OR_NOW 13779# ifdef RTLD_LAZY 13780# define LT_DLLAZY_OR_NOW RTLD_LAZY 13781# else 13782# ifdef DL_LAZY 13783# define LT_DLLAZY_OR_NOW DL_LAZY 13784# else 13785# ifdef RTLD_NOW 13786# define LT_DLLAZY_OR_NOW RTLD_NOW 13787# else 13788# ifdef DL_NOW 13789# define LT_DLLAZY_OR_NOW DL_NOW 13790# else 13791# define LT_DLLAZY_OR_NOW 0 13792# endif 13793# endif 13794# endif 13795# endif 13796#endif 13797 13798/* When -fvisibility=hidden is used, assume the code has been annotated 13799 correspondingly for the symbols needed. */ 13800#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13801int fnord () __attribute__((visibility("default"))); 13802#endif 13803 13804int fnord () { return 42; } 13805int main () 13806{ 13807 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13808 int status = $lt_dlunknown; 13809 13810 if (self) 13811 { 13812 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13813 else 13814 { 13815 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13816 else puts (dlerror ()); 13817 } 13818 /* dlclose (self); */ 13819 } 13820 else 13821 puts (dlerror ()); 13822 13823 return status; 13824} 13825_LT_EOF 13826 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13827 (eval $ac_link) 2>&5 13828 ac_status=$? 13829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13830 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13831 (./conftest; exit; ) >&5 2>/dev/null 13832 lt_status=$? 13833 case x$lt_status in 13834 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13835 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13836 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13837 esac 13838 else : 13839 # compilation failed 13840 lt_cv_dlopen_self_static=no 13841 fi 13842fi 13843rm -fr conftest* 13844 13845 ;; 13846esac 13847fi 13848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13849printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } 13850 fi 13851 13852 CPPFLAGS=$save_CPPFLAGS 13853 LDFLAGS=$save_LDFLAGS 13854 LIBS=$save_LIBS 13855 ;; 13856 esac 13857 13858 case $lt_cv_dlopen_self in 13859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13860 *) enable_dlopen_self=unknown ;; 13861 esac 13862 13863 case $lt_cv_dlopen_self_static in 13864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13865 *) enable_dlopen_self_static=unknown ;; 13866 esac 13867fi 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885striplib= 13886old_striplib= 13887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13888printf %s "checking whether stripping libraries is possible... " >&6; } 13889if test -z "$STRIP"; then 13890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13891printf "%s\n" "no" >&6; } 13892else 13893 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13894 old_striplib="$STRIP --strip-debug" 13895 striplib="$STRIP --strip-unneeded" 13896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13897printf "%s\n" "yes" >&6; } 13898 else 13899 case $host_os in 13900 darwin*) 13901 # FIXME - insert some real tests, host_os isn't really good enough 13902 striplib="$STRIP -x" 13903 old_striplib="$STRIP -S" 13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13905printf "%s\n" "yes" >&6; } 13906 ;; 13907 freebsd*) 13908 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13909 old_striplib="$STRIP --strip-debug" 13910 striplib="$STRIP --strip-unneeded" 13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13912printf "%s\n" "yes" >&6; } 13913 else 13914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13915printf "%s\n" "no" >&6; } 13916 fi 13917 ;; 13918 *) 13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13920printf "%s\n" "no" >&6; } 13921 ;; 13922 esac 13923 fi 13924fi 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 # Report what library types will actually be built 13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13939printf %s "checking if libtool supports shared libraries... " >&6; } 13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13941printf "%s\n" "$can_build_shared" >&6; } 13942 13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13944printf %s "checking whether to build shared libraries... " >&6; } 13945 test no = "$can_build_shared" && enable_shared=no 13946 13947 # On AIX, shared libraries and static libraries use the same namespace, and 13948 # are all built from PIC. 13949 case $host_os in 13950 aix3*) 13951 test yes = "$enable_shared" && enable_static=no 13952 if test -n "$RANLIB"; then 13953 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13954 postinstall_cmds='$RANLIB $lib' 13955 fi 13956 ;; 13957 13958 aix[4-9]*) 13959 if test ia64 != "$host_cpu"; then 13960 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13961 yes,aix,yes) ;; # shared object as lib.so file only 13962 yes,svr4,*) ;; # shared object as lib.so archive member only 13963 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13964 esac 13965 fi 13966 ;; 13967 esac 13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13969printf "%s\n" "$enable_shared" >&6; } 13970 13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13972printf %s "checking whether to build static libraries... " >&6; } 13973 # Make sure either enable_shared or enable_static is yes. 13974 test yes = "$enable_shared" || enable_static=yes 13975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13976printf "%s\n" "$enable_static" >&6; } 13977 13978 13979 13980 13981fi 13982ac_ext=c 13983ac_cpp='$CPP $CPPFLAGS' 13984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13986ac_compiler_gnu=$ac_cv_c_compiler_gnu 13987 13988CC=$lt_save_CC 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 ac_config_commands="$ac_config_commands libtool" 14005 14006 14007 14008 14009# Only expand once: 14010 14011 14012 14013 14014 CFLAG_VISIBILITY= 14015 HAVE_VISIBILITY=0 14016 if test -n "$GCC"; then 14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 14018printf %s "checking whether the -Werror option is usable... " >&6; } 14019 if test ${gl_cv_cc_vis_werror+y} 14020then : 14021 printf %s "(cached) " >&6 14022else case e in #( 14023 e) 14024 gl_save_CFLAGS="$CFLAGS" 14025 CFLAGS="$CFLAGS -Werror" 14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14027/* end confdefs.h. */ 14028 14029int 14030main (void) 14031{ 14032 14033 ; 14034 return 0; 14035} 14036_ACEOF 14037if ac_fn_c_try_compile "$LINENO" 14038then : 14039 gl_cv_cc_vis_werror=yes 14040else case e in #( 14041 e) gl_cv_cc_vis_werror=no ;; 14042esac 14043fi 14044rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14045 CFLAGS="$gl_save_CFLAGS" ;; 14046esac 14047fi 14048 14049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 14050printf "%s\n" "$gl_cv_cc_vis_werror" >&6; } 14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 14052printf %s "checking for simple visibility declarations... " >&6; } 14053 if test ${gl_cv_cc_visibility+y} 14054then : 14055 printf %s "(cached) " >&6 14056else case e in #( 14057 e) 14058 gl_save_CFLAGS="$CFLAGS" 14059 CFLAGS="$CFLAGS -fvisibility=hidden" 14060 if test $gl_cv_cc_vis_werror = yes; then 14061 CFLAGS="$CFLAGS -Werror" 14062 fi 14063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14064/* end confdefs.h. */ 14065extern __attribute__((__visibility__("hidden"))) int hiddenvar; 14066 extern __attribute__((__visibility__("default"))) int exportedvar; 14067 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 14068 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 14069 void dummyfunc (void) {} 14070 14071int 14072main (void) 14073{ 14074 14075 ; 14076 return 0; 14077} 14078_ACEOF 14079if ac_fn_c_try_compile "$LINENO" 14080then : 14081 gl_cv_cc_visibility=yes 14082else case e in #( 14083 e) gl_cv_cc_visibility=no ;; 14084esac 14085fi 14086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14087 CFLAGS="$gl_save_CFLAGS" ;; 14088esac 14089fi 14090 14091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 14092printf "%s\n" "$gl_cv_cc_visibility" >&6; } 14093 if test $gl_cv_cc_visibility = yes; then 14094 CFLAG_VISIBILITY="-fvisibility=hidden" 14095 HAVE_VISIBILITY=1 14096 fi 14097 fi 14098 14099 14100 14101printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h 14102 14103 14104 14105ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 14106if test "x$ac_cv_header_sys_mkdev_h" = xyes 14107then : 14108 14109printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h 14110 14111fi 14112 14113if test $ac_cv_header_sys_mkdev_h = no; then 14114 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 14115if test "x$ac_cv_header_sys_sysmacros_h" = xyes 14116then : 14117 14118printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 14119 14120fi 14121 14122fi 14123 14124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 14125printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 14126if test ${ac_cv_header_sys_wait_h+y} 14127then : 14128 printf %s "(cached) " >&6 14129else case e in #( 14130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14131/* end confdefs.h. */ 14132#include <sys/types.h> 14133#include <sys/wait.h> 14134#ifndef WEXITSTATUS 14135# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 14136#endif 14137#ifndef WIFEXITED 14138# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 14139#endif 14140 14141int 14142main (void) 14143{ 14144 int s; 14145 wait (&s); 14146 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 14147 ; 14148 return 0; 14149} 14150_ACEOF 14151if ac_fn_c_try_compile "$LINENO" 14152then : 14153 ac_cv_header_sys_wait_h=yes 14154else case e in #( 14155 e) ac_cv_header_sys_wait_h=no ;; 14156esac 14157fi 14158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14159esac 14160fi 14161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 14162printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; } 14163if test $ac_cv_header_sys_wait_h = yes; then 14164 14165printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 14166 14167fi 14168 14169ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 14170if test "x$ac_cv_header_stdint_h" = xyes 14171then : 14172 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h 14173 14174fi 14175ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 14176if test "x$ac_cv_header_fcntl_h" = xyes 14177then : 14178 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 14179 14180fi 14181ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 14182if test "x$ac_cv_header_inttypes_h" = xyes 14183then : 14184 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h 14185 14186fi 14187ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 14188if test "x$ac_cv_header_unistd_h" = xyes 14189then : 14190 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h 14191 14192fi 14193ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" 14194if test "x$ac_cv_header_byteswap_h" = xyes 14195then : 14196 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h 14197 14198fi 14199 14200ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" 14201if test "x$ac_cv_header_spawn_h" = xyes 14202then : 14203 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h 14204 14205fi 14206ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 14207if test "x$ac_cv_header_utime_h" = xyes 14208then : 14209 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 14210 14211fi 14212ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 14213if test "x$ac_cv_header_wchar_h" = xyes 14214then : 14215 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 14216 14217fi 14218ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" 14219if test "x$ac_cv_header_wctype_h" = xyes 14220then : 14221 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h 14222 14223fi 14224ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" 14225if test "x$ac_cv_header_limits_h" = xyes 14226then : 14227 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h 14228 14229fi 14230 14231ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 14232if test "x$ac_cv_header_getopt_h" = xyes 14233then : 14234 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h 14235 14236fi 14237ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default" 14238if test "x$ac_cv_header_err_h" = xyes 14239then : 14240 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h 14241 14242fi 14243ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default" 14244if test "x$ac_cv_header_xlocale_h" = xyes 14245then : 14246 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h 14247 14248fi 14249 14250ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default" 14251if test "x$ac_cv_header_sys_bswap_h" = xyes 14252then : 14253 printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h 14254 14255fi 14256ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 14257if test "x$ac_cv_header_sys_mman_h" = xyes 14258then : 14259 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 14260 14261fi 14262ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 14263if test "x$ac_cv_header_sys_stat_h" = xyes 14264then : 14265 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 14266 14267fi 14268ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 14269if test "x$ac_cv_header_sys_types_h" = xyes 14270then : 14271 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 14272 14273fi 14274ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default" 14275if test "x$ac_cv_header_sys_utime_h" = xyes 14276then : 14277 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h 14278 14279fi 14280ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 14281if test "x$ac_cv_header_sys_time_h" = xyes 14282then : 14283 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 14284 14285fi 14286ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 14287if test "x$ac_cv_header_sys_sysmacros_h" = xyes 14288then : 14289 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 14290 14291fi 14292ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 14293if test "x$ac_cv_header_sys_ioctl_h" = xyes 14294then : 14295 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 14296 14297fi 14298 14299if test "$enable_zlib" != "no"; then 14300 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 14301if test "x$ac_cv_header_zlib_h" = xyes 14302then : 14303 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 14304 14305fi 14306 14307fi 14308if test "$enable_bzlib" != "no"; then 14309 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 14310if test "x$ac_cv_header_bzlib_h" = xyes 14311then : 14312 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 14313 14314fi 14315 14316fi 14317if test "$enable_xzlib" != "no"; then 14318 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 14319if test "x$ac_cv_header_lzma_h" = xyes 14320then : 14321 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 14322 14323fi 14324 14325fi 14326if test "$enable_zstdlib" != "no"; then 14327 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default" 14328if test "x$ac_cv_header_zstd_h" = xyes 14329then : 14330 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h 14331 14332fi 14333ac_fn_c_check_header_compile "$LINENO" "zstd_errors.h" "ac_cv_header_zstd_errors_h" "$ac_includes_default" 14334if test "x$ac_cv_header_zstd_errors_h" = xyes 14335then : 14336 printf "%s\n" "#define HAVE_ZSTD_ERRORS_H 1" >>confdefs.h 14337 14338fi 14339 14340fi 14341if test "$enable_lzlib" != "no"; then 14342 ac_fn_c_check_header_compile "$LINENO" "lzlib.h" "ac_cv_header_lzlib_h" "$ac_includes_default" 14343if test "x$ac_cv_header_lzlib_h" = xyes 14344then : 14345 printf "%s\n" "#define HAVE_LZLIB_H 1" >>confdefs.h 14346 14347fi 14348 14349fi 14350if test "$enable_lrziplib" != "no"; then 14351 ac_fn_c_check_header_compile "$LINENO" "Lrzip.h" "ac_cv_header_Lrzip_h" "$ac_includes_default" 14352if test "x$ac_cv_header_Lrzip_h" = xyes 14353then : 14354 printf "%s\n" "#define HAVE_LRZIP_H 1" >>confdefs.h 14355 14356fi 14357 14358fi 14359ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h> 14360" 14361if test "x$ac_cv_type_sig_t" = xyes 14362then : 14363 14364printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h 14365 14366fi 14367 14368 14369ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 14370if test "x$ac_cv_type_off_t" = xyes 14371then : 14372 14373else case e in #( 14374 e) 14375printf "%s\n" "#define off_t long int" >>confdefs.h 14376 ;; 14377esac 14378fi 14379 14380ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 14381if test "x$ac_cv_type_size_t" = xyes 14382then : 14383 14384else case e in #( 14385 e) 14386printf "%s\n" "#define size_t unsigned int" >>confdefs.h 14387 ;; 14388esac 14389fi 14390 14391ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 14392if test "x$ac_cv_member_struct_stat_st_rdev" = xyes 14393then : 14394 14395printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h 14396 14397 14398fi 14399 14400 14401ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 14402" 14403if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes 14404then : 14405 14406printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h 14407 14408 14409fi 14410 14411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 14412printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 14413if test ${ac_cv_struct_tm+y} 14414then : 14415 printf %s "(cached) " >&6 14416else case e in #( 14417 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14418/* end confdefs.h. */ 14419#include <sys/types.h> 14420#include <time.h> 14421 14422int 14423main (void) 14424{ 14425struct tm tm; 14426 int *p = &tm.tm_sec; 14427 return !p; 14428 ; 14429 return 0; 14430} 14431_ACEOF 14432if ac_fn_c_try_compile "$LINENO" 14433then : 14434 ac_cv_struct_tm=time.h 14435else case e in #( 14436 e) ac_cv_struct_tm=sys/time.h ;; 14437esac 14438fi 14439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14440esac 14441fi 14442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 14443printf "%s\n" "$ac_cv_struct_tm" >&6; } 14444if test $ac_cv_struct_tm = sys/time.h; then 14445 14446printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 14447 14448fi 14449 14450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 14451printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 14452if test ${ac_cv_c_undeclared_builtin_options+y} 14453then : 14454 printf %s "(cached) " >&6 14455else case e in #( 14456 e) ac_save_CFLAGS=$CFLAGS 14457 ac_cv_c_undeclared_builtin_options='cannot detect' 14458 for ac_arg in '' -fno-builtin; do 14459 CFLAGS="$ac_save_CFLAGS $ac_arg" 14460 # This test program should *not* compile successfully. 14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14462/* end confdefs.h. */ 14463 14464int 14465main (void) 14466{ 14467(void) strchr; 14468 ; 14469 return 0; 14470} 14471_ACEOF 14472if ac_fn_c_try_compile "$LINENO" 14473then : 14474 14475else case e in #( 14476 e) # This test program should compile successfully. 14477 # No library function is consistently available on 14478 # freestanding implementations, so test against a dummy 14479 # declaration. Include always-available headers on the 14480 # off chance that they somehow elicit warnings. 14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14482/* end confdefs.h. */ 14483#include <float.h> 14484#include <limits.h> 14485#include <stdarg.h> 14486#include <stddef.h> 14487extern void ac_decl (int, char *); 14488 14489int 14490main (void) 14491{ 14492(void) ac_decl (0, (char *) 0); 14493 (void) ac_decl; 14494 14495 ; 14496 return 0; 14497} 14498_ACEOF 14499if ac_fn_c_try_compile "$LINENO" 14500then : 14501 if test x"$ac_arg" = x 14502then : 14503 ac_cv_c_undeclared_builtin_options='none needed' 14504else case e in #( 14505 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; 14506esac 14507fi 14508 break 14509fi 14510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14511esac 14512fi 14513rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14514 done 14515 CFLAGS=$ac_save_CFLAGS 14516 ;; 14517esac 14518fi 14519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 14520printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 14521 case $ac_cv_c_undeclared_builtin_options in #( 14522 'cannot detect') : 14523 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14524printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14525as_fn_error $? "cannot make $CC report undeclared builtins 14526See 'config.log' for more details" "$LINENO" 5; } ;; #( 14527 'none needed') : 14528 ac_c_undeclared_builtin_options='' ;; #( 14529 *) : 14530 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 14531esac 14532 14533ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 14534#include <$ac_cv_struct_tm> 14535 14536" 14537if test "x$ac_cv_member_struct_tm_tm_zone" = xyes 14538then : 14539 14540printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 14541 14542 14543fi 14544 14545if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 14546 14547printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 14548 14549else 14550 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 14551" "$ac_c_undeclared_builtin_options" "CFLAGS" 14552if test "x$ac_cv_have_decl_tzname" = xyes 14553then : 14554 ac_have_decl=1 14555else case e in #( 14556 e) ac_have_decl=0 ;; 14557esac 14558fi 14559printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 14560 14561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14562printf %s "checking for tzname... " >&6; } 14563if test ${ac_cv_var_tzname+y} 14564then : 14565 printf %s "(cached) " >&6 14566else case e in #( 14567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14568/* end confdefs.h. */ 14569#include <time.h> 14570#if !HAVE_DECL_TZNAME 14571extern char *tzname[]; 14572#endif 14573 14574int 14575main (void) 14576{ 14577return tzname[0][0]; 14578 ; 14579 return 0; 14580} 14581_ACEOF 14582if ac_fn_c_try_link "$LINENO" 14583then : 14584 ac_cv_var_tzname=yes 14585else case e in #( 14586 e) ac_cv_var_tzname=no ;; 14587esac 14588fi 14589rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14590 conftest$ac_exeext conftest.$ac_ext ;; 14591esac 14592fi 14593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14594printf "%s\n" "$ac_cv_var_tzname" >&6; } 14595 if test $ac_cv_var_tzname = yes; then 14596 14597printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 14598 14599 fi 14600fi 14601 14602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5 14603printf %s "checking for tm_zone in struct tm... " >&6; } 14604if test ${ac_cv_struct_tm_zone+y} 14605then : 14606 printf %s "(cached) " >&6 14607else case e in #( 14608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14609/* end confdefs.h. */ 14610#include <sys/types.h> 14611#include <$ac_cv_struct_tm> 14612int 14613main (void) 14614{ 14615struct tm tm; tm.tm_zone; 14616 ; 14617 return 0; 14618} 14619_ACEOF 14620if ac_fn_c_try_compile "$LINENO" 14621then : 14622 ac_cv_struct_tm_zone=yes 14623else case e in #( 14624 e) ac_cv_struct_tm_zone=no ;; 14625esac 14626fi 14627rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14628esac 14629fi 14630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5 14631printf "%s\n" "$ac_cv_struct_tm_zone" >&6; } 14632if test "$ac_cv_struct_tm_zone" = yes; then 14633 14634printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 14635 14636fi 14637 14638# On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will 14639# consider it declared and we won't give our own extern. 14640ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 14641" "$ac_c_undeclared_builtin_options" "CFLAGS" 14642if test "x$ac_cv_have_decl_tzname" = xyes 14643then : 14644 ac_have_decl=1 14645else case e in #( 14646 e) ac_have_decl=0 ;; 14647esac 14648fi 14649printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 14650 14651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 14652printf %s "checking for tzname... " >&6; } 14653if test ${ac_cv_var_tzname+y} 14654then : 14655 printf %s "(cached) " >&6 14656else case e in #( 14657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14658/* end confdefs.h. */ 14659#include <time.h> 14660int 14661main (void) 14662{ 14663#if !HAVE_DECL_TZNAME 14664extern char *tzname[]; 14665#endif 14666return tzname[0][0]; 14667 ; 14668 return 0; 14669} 14670_ACEOF 14671if ac_fn_c_try_link "$LINENO" 14672then : 14673 ac_cv_var_tzname=yes 14674else case e in #( 14675 e) ac_cv_var_tzname=no ;; 14676esac 14677fi 14678rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14679 conftest$ac_exeext conftest.$ac_ext ;; 14680esac 14681fi 14682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 14683printf "%s\n" "$ac_cv_var_tzname" >&6; } 14684 if test $ac_cv_var_tzname = yes; then 14685 14686printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 14687 14688 fi 14689 14690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5 14691printf %s "checking for tm_isdst in struct tm... " >&6; } 14692if test ${ac_cv_struct_tm_isdst+y} 14693then : 14694 printf %s "(cached) " >&6 14695else case e in #( 14696 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14697/* end confdefs.h. */ 14698#include <sys/types.h> 14699#include <$ac_cv_struct_tm> 14700int 14701main (void) 14702{ 14703struct tm tm; tm.tm_isdst; 14704 ; 14705 return 0; 14706} 14707_ACEOF 14708if ac_fn_c_try_compile "$LINENO" 14709then : 14710 ac_cv_struct_tm_isdst=yes 14711else case e in #( 14712 e) ac_cv_struct_tm_isdst=no ;; 14713esac 14714fi 14715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 14716esac 14717fi 14718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5 14719printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; } 14720if test "$ac_cv_struct_tm_isdst" = yes; then 14721 14722printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h 14723 14724fi 14725 14726 14727ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h> 14728#include <stdlib.h> 14729" "$ac_c_undeclared_builtin_options" "CFLAGS" 14730if test "x$ac_cv_have_decl_daylight" = xyes 14731then : 14732 ac_have_decl=1 14733else case e in #( 14734 e) ac_have_decl=0 ;; 14735esac 14736fi 14737printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h 14738 14739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5 14740printf %s "checking for daylight... " >&6; } 14741if test ${ac_cv_var_daylight+y} 14742then : 14743 printf %s "(cached) " >&6 14744else case e in #( 14745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14746/* end confdefs.h. */ 14747#include <time.h> 14748#include <stdlib.h> 14749int 14750main (void) 14751{ 14752#if !HAVE_DECL_DAYLIGHT 14753extern int daylight; 14754#endif 14755daylight = atoi("1"); 14756 ; 14757 return 0; 14758} 14759_ACEOF 14760if ac_fn_c_try_link "$LINENO" 14761then : 14762 ac_cv_var_daylight=yes 14763else case e in #( 14764 e) ac_cv_var_daylight=no ;; 14765esac 14766fi 14767rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14768 conftest$ac_exeext conftest.$ac_ext ;; 14769esac 14770fi 14771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5 14772printf "%s\n" "$ac_cv_var_daylight" >&6; } 14773 if test $ac_cv_var_daylight = yes; then 14774 14775printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h 14776 14777 fi 14778 14779# Check whether --enable-largefile was given. 14780if test ${enable_largefile+y} 14781then : 14782 enableval=$enable_largefile; 14783fi 14784if test "$enable_largefile,$enable_year2038" != no,no 14785then : 14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 14787printf %s "checking for $CC option to enable large file support... " >&6; } 14788if test ${ac_cv_sys_largefile_opts+y} 14789then : 14790 printf %s "(cached) " >&6 14791else case e in #( 14792 e) ac_save_CC="$CC" 14793 ac_opt_found=no 14794 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do 14795 if test x"$ac_opt" != x"none needed" 14796then : 14797 CC="$ac_save_CC $ac_opt" 14798fi 14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14800/* end confdefs.h. */ 14801#include <sys/types.h> 14802#ifndef FTYPE 14803# define FTYPE off_t 14804#endif 14805 /* Check that FTYPE can represent 2**63 - 1 correctly. 14806 We can't simply define LARGE_FTYPE to be 9223372036854775807, 14807 since some C++ compilers masquerading as C compilers 14808 incorrectly reject 9223372036854775807. */ 14809#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) 14810 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 14811 && LARGE_FTYPE % 2147483647 == 1) 14812 ? 1 : -1]; 14813int 14814main (void) 14815{ 14816 14817 ; 14818 return 0; 14819} 14820_ACEOF 14821if ac_fn_c_try_compile "$LINENO" 14822then : 14823 if test x"$ac_opt" = x"none needed" 14824then : 14825 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. 14826 CC="$CC -DFTYPE=ino_t" 14827 if ac_fn_c_try_compile "$LINENO" 14828then : 14829 14830else case e in #( 14831 e) CC="$CC -D_FILE_OFFSET_BITS=64" 14832 if ac_fn_c_try_compile "$LINENO" 14833then : 14834 ac_opt='-D_FILE_OFFSET_BITS=64' 14835fi 14836rm -f core conftest.err conftest.$ac_objext conftest.beam ;; 14837esac 14838fi 14839rm -f core conftest.err conftest.$ac_objext conftest.beam 14840fi 14841 ac_cv_sys_largefile_opts=$ac_opt 14842 ac_opt_found=yes 14843fi 14844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14845 test $ac_opt_found = no || break 14846 done 14847 CC="$ac_save_CC" 14848 14849 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; 14850esac 14851fi 14852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 14853printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } 14854 14855ac_have_largefile=yes 14856case $ac_cv_sys_largefile_opts in #( 14857 "none needed") : 14858 ;; #( 14859 "supported through gnulib") : 14860 ;; #( 14861 "support not detected") : 14862 ac_have_largefile=no ;; #( 14863 "-D_FILE_OFFSET_BITS=64") : 14864 14865printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 14866 ;; #( 14867 "-D_LARGE_FILES=1") : 14868 14869printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 14870 ;; #( 14871 "-n32") : 14872 CC="$CC -n32" ;; #( 14873 *) : 14874 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; 14875esac 14876 14877if test "$enable_year2038" != no 14878then : 14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 14880printf %s "checking for $CC option for timestamps after 2038... " >&6; } 14881if test ${ac_cv_sys_year2038_opts+y} 14882then : 14883 printf %s "(cached) " >&6 14884else case e in #( 14885 e) ac_save_CPPFLAGS="$CPPFLAGS" 14886 ac_opt_found=no 14887 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 14888 if test x"$ac_opt" != x"none needed" 14889then : 14890 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" 14891fi 14892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894 14895 #include <time.h> 14896 /* Check that time_t can represent 2**32 - 1 correctly. */ 14897 #define LARGE_TIME_T \\ 14898 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) 14899 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 14900 && LARGE_TIME_T % 65537 == 0) 14901 ? 1 : -1]; 14902 14903int 14904main (void) 14905{ 14906 14907 ; 14908 return 0; 14909} 14910_ACEOF 14911if ac_fn_c_try_compile "$LINENO" 14912then : 14913 ac_cv_sys_year2038_opts="$ac_opt" 14914 ac_opt_found=yes 14915fi 14916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14917 test $ac_opt_found = no || break 14918 done 14919 CPPFLAGS="$ac_save_CPPFLAGS" 14920 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; 14921esac 14922fi 14923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 14924printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } 14925 14926ac_have_year2038=yes 14927case $ac_cv_sys_year2038_opts in #( 14928 "none needed") : 14929 ;; #( 14930 "support not detected") : 14931 ac_have_year2038=no ;; #( 14932 "-D_TIME_BITS=64") : 14933 14934printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h 14935 ;; #( 14936 "-D__MINGW_USE_VC2005_COMPAT") : 14937 14938printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h 14939 ;; #( 14940 "-U_USE_32_BIT_TIME_T"*) : 14941 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 14942printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 14943as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It 14944will stop working after mid-January 2038. Remove 14945_USE_32BIT_TIME_T from the compiler flags. 14946See 'config.log' for more details" "$LINENO" 5; } ;; #( 14947 *) : 14948 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; 14949esac 14950 14951fi 14952 14953fi 14954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 14955printf %s "checking for declarations of fseeko and ftello... " >&6; } 14956if test ${ac_cv_func_fseeko_ftello+y} 14957then : 14958 printf %s "(cached) " >&6 14959else case e in #( 14960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14961/* end confdefs.h. */ 14962 14963#if defined __hpux && !defined _LARGEFILE_SOURCE 14964# include <limits.h> 14965# if LONG_MAX >> 31 == 0 14966# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 14967# endif 14968#endif 14969#include <sys/types.h> /* for off_t */ 14970#include <stdio.h> 14971 14972int 14973main (void) 14974{ 14975 14976 int (*fp1) (FILE *, off_t, int) = fseeko; 14977 off_t (*fp2) (FILE *) = ftello; 14978 return fseeko (stdin, 0, 0) 14979 && fp1 (stdin, 0, 0) 14980 && ftello (stdin) >= 0 14981 && fp2 (stdin) >= 0; 14982 14983 ; 14984 return 0; 14985} 14986_ACEOF 14987if ac_fn_c_try_compile "$LINENO" 14988then : 14989 ac_cv_func_fseeko_ftello=yes 14990else case e in #( 14991 e) ac_save_CPPFLAGS="$CPPFLAGS" 14992 CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" 14993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14994/* end confdefs.h. */ 14995 14996#if defined __hpux && !defined _LARGEFILE_SOURCE 14997# include <limits.h> 14998# if LONG_MAX >> 31 == 0 14999# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" 15000# endif 15001#endif 15002#include <sys/types.h> /* for off_t */ 15003#include <stdio.h> 15004 15005int 15006main (void) 15007{ 15008 15009 int (*fp1) (FILE *, off_t, int) = fseeko; 15010 off_t (*fp2) (FILE *) = ftello; 15011 return fseeko (stdin, 0, 0) 15012 && fp1 (stdin, 0, 0) 15013 && ftello (stdin) >= 0 15014 && fp2 (stdin) >= 0; 15015 15016 ; 15017 return 0; 15018} 15019_ACEOF 15020if ac_fn_c_try_compile "$LINENO" 15021then : 15022 ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" 15023else case e in #( 15024 e) ac_cv_func_fseeko_ftello=no ;; 15025esac 15026fi 15027rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15028esac 15029fi 15030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15031esac 15032fi 15033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 15034printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } 15035if test "$ac_cv_func_fseeko_ftello" != no 15036then : 15037 15038printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 15039 15040fi 15041if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" 15042then : 15043 15044printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 15045 15046fi 15047 15048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 15049printf %s "checking for mbstate_t... " >&6; } 15050if test ${ac_cv_type_mbstate_t+y} 15051then : 15052 printf %s "(cached) " >&6 15053else case e in #( 15054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15055/* end confdefs.h. */ 15056$ac_includes_default 15057# include <wchar.h> 15058int 15059main (void) 15060{ 15061mbstate_t x; return sizeof x; 15062 ; 15063 return 0; 15064} 15065_ACEOF 15066if ac_fn_c_try_compile "$LINENO" 15067then : 15068 ac_cv_type_mbstate_t=yes 15069else case e in #( 15070 e) ac_cv_type_mbstate_t=no ;; 15071esac 15072fi 15073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15074esac 15075fi 15076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 15077printf "%s\n" "$ac_cv_type_mbstate_t" >&6; } 15078 if test $ac_cv_type_mbstate_t = yes; then 15079 15080printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h 15081 15082 else 15083 15084printf "%s\n" "#define mbstate_t int" >>confdefs.h 15085 15086 fi 15087 15088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5 15089printf %s "checking for struct option in getopt... " >&6; } 15090if test ${ac_cv_struct_option_getopt_h+y} 15091then : 15092 printf %s "(cached) " >&6 15093else case e in #( 15094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15095/* end confdefs.h. */ 15096#include <getopt.h> 15097int 15098main (void) 15099{ 15100struct option op; op.name; 15101 ; 15102 return 0; 15103} 15104_ACEOF 15105if ac_fn_c_try_compile "$LINENO" 15106then : 15107 ac_cv_struct_option_getopt_h=yes 15108else case e in #( 15109 e) ac_cv_struct_option_getopt_h=no ;; 15110esac 15111fi 15112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15113esac 15114fi 15115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5 15116printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; } 15117if test "$ac_cv_struct_option_getopt_h" = yes; then 15118 15119printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h 15120 15121fi 15122 15123 15124 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 15125" 15126if test "x$ac_cv_type_pid_t" = xyes 15127then : 15128 15129else case e in #( 15130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15131/* end confdefs.h. */ 15132 15133 #if defined _WIN64 && !defined __CYGWIN__ 15134 LLP64 15135 #endif 15136 15137int 15138main (void) 15139{ 15140 15141 ; 15142 return 0; 15143} 15144 15145_ACEOF 15146if ac_fn_c_try_compile "$LINENO" 15147then : 15148 ac_pid_type='int' 15149else case e in #( 15150 e) ac_pid_type='__int64' ;; 15151esac 15152fi 15153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15154 15155printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 15156 15157 ;; 15158esac 15159fi 15160 15161 15162ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 15163case $ac_cv_c_uint8_t in #( 15164 no|yes) ;; #( 15165 *) 15166 15167printf "%s\n" "#define _UINT8_T 1" >>confdefs.h 15168 15169 15170printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h 15171;; 15172 esac 15173 15174ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 15175case $ac_cv_c_uint16_t in #( 15176 no|yes) ;; #( 15177 *) 15178 15179 15180printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h 15181;; 15182 esac 15183 15184ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 15185case $ac_cv_c_uint32_t in #( 15186 no|yes) ;; #( 15187 *) 15188 15189printf "%s\n" "#define _UINT32_T 1" >>confdefs.h 15190 15191 15192printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h 15193;; 15194 esac 15195 15196ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 15197case $ac_cv_c_int32_t in #( 15198 no|yes) ;; #( 15199 *) 15200 15201printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h 15202;; 15203esac 15204 15205ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 15206case $ac_cv_c_uint64_t in #( 15207 no|yes) ;; #( 15208 *) 15209 15210printf "%s\n" "#define _UINT64_T 1" >>confdefs.h 15211 15212 15213printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h 15214;; 15215 esac 15216 15217ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 15218case $ac_cv_c_int64_t in #( 15219 no|yes) ;; #( 15220 *) 15221 15222printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h 15223;; 15224esac 15225 15226 15227 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 15228if test "x$ac_cv_type_intptr_t" = xyes 15229then : 15230 15231printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h 15232 15233else case e in #( 15234 e) for ac_type in 'int' 'long int' 'long long int'; do 15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15236/* end confdefs.h. */ 15237$ac_includes_default 15238int 15239main (void) 15240{ 15241static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 15242test_array [0] = 0; 15243return test_array [0]; 15244 15245 ; 15246 return 0; 15247} 15248_ACEOF 15249if ac_fn_c_try_compile "$LINENO" 15250then : 15251 15252printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h 15253 15254 ac_type= 15255fi 15256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15257 test -z "$ac_type" && break 15258 done ;; 15259esac 15260fi 15261 15262 15263 15264 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" 15265if test "x$ac_cv_type_uintptr_t" = xyes 15266then : 15267 15268printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h 15269 15270else case e in #( 15271 e) for ac_type in 'unsigned int' 'unsigned long int' \ 15272 'unsigned long long int'; do 15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15274/* end confdefs.h. */ 15275$ac_includes_default 15276int 15277main (void) 15278{ 15279static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))]; 15280test_array [0] = 0; 15281return test_array [0]; 15282 15283 ; 15284 return 0; 15285} 15286_ACEOF 15287if ac_fn_c_try_compile "$LINENO" 15288then : 15289 15290printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h 15291 15292 ac_type= 15293fi 15294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15295 test -z "$ac_type" && break 15296 done ;; 15297esac 15298fi 15299 15300 15301if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no 15302then : 15303 # If we're not cross compiling and 'touch' works with a large 15304 # timestamp, then we can presume the system supports wider time_t 15305 # *somehow* and we just weren't able to detect it. One common 15306 # case that we deliberately *don't* probe for is a system that 15307 # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers 15308 # wide time_t. (It would be inappropriate for us to override an 15309 # intentional use of -m32.) Error out, demanding use of 15310 # --disable-year2038 if this is intentional. 15311 if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null 15312then : 15313 case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #( 15314 *'Feb 7 2106'* | *'Feb 7 17:10'*) : 15315 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 15316printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 15317as_fn_error $? "this system appears to support timestamps after 15318mid-January 2038, but no mechanism for enabling wide 15319'time_t' was detected. Did you mean to build a 64-bit 15320binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with 1532132-bit time_t, configure with '--disable-year2038'. 15322See 'config.log' for more details" "$LINENO" 5; } ;; #( 15323 *) : 15324 ;; 15325esac 15326fi 15327fi 15328 15329ac_func= 15330for ac_item in $ac_func_c_list 15331do 15332 if test $ac_func; then 15333 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 15334 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 15335 echo "#define $ac_item 1" >> confdefs.h 15336 fi 15337 ac_func= 15338 else 15339 ac_func=$ac_item 15340 fi 15341done 15342 15343 15344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 15345printf %s "checking for working mmap... " >&6; } 15346if test ${ac_cv_func_mmap_fixed_mapped+y} 15347then : 15348 printf %s "(cached) " >&6 15349else case e in #( 15350 e) if test "$cross_compiling" = yes 15351then : 15352 case "$host_os" in # (( 15353 # Guess yes on platforms where we know the result. 15354 linux*) ac_cv_func_mmap_fixed_mapped=yes ;; 15355 # If we don't know, assume the worst. 15356 *) ac_cv_func_mmap_fixed_mapped=no ;; 15357 esac 15358else case e in #( 15359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15360/* end confdefs.h. */ 15361$ac_includes_default 15362/* malloc might have been renamed as rpl_malloc. */ 15363#undef malloc 15364 15365/* Thanks to Mike Haertel and Jim Avera for this test. 15366 Here is a matrix of mmap possibilities: 15367 mmap private not fixed 15368 mmap private fixed at somewhere currently unmapped 15369 mmap private fixed at somewhere already mapped 15370 mmap shared not fixed 15371 mmap shared fixed at somewhere currently unmapped 15372 mmap shared fixed at somewhere already mapped 15373 For private mappings, we should verify that changes cannot be read() 15374 back from the file, nor mmap's back from the file at a different 15375 address. (There have been systems where private was not correctly 15376 implemented like the infamous i386 svr4.0, and systems where the 15377 VM page cache was not coherent with the file system buffer cache 15378 like early versions of FreeBSD and possibly contemporary NetBSD.) 15379 For shared mappings, we should conversely verify that changes get 15380 propagated back to all the places they're supposed to be. */ 15381 15382#include <fcntl.h> 15383#include <sys/mman.h> 15384 15385#ifndef getpagesize 15386/* Prefer sysconf to the legacy getpagesize function, as getpagesize has 15387 been removed from POSIX and is limited to page sizes that fit in 'int'. */ 15388# ifdef _SC_PAGESIZE 15389# define getpagesize() sysconf (_SC_PAGESIZE) 15390# elif defined _SC_PAGE_SIZE 15391# define getpagesize() sysconf (_SC_PAGE_SIZE) 15392# elif HAVE_GETPAGESIZE 15393int getpagesize (); 15394# else 15395# ifdef HAVE_SYS_PARAM_H 15396# include <sys/param.h> 15397# ifdef EXEC_PAGESIZE 15398# define getpagesize() EXEC_PAGESIZE 15399# else /* no EXEC_PAGESIZE */ 15400# ifdef NBPG 15401# define getpagesize() NBPG * CLSIZE 15402# ifndef CLSIZE 15403# define CLSIZE 1 15404# endif /* no CLSIZE */ 15405# else /* no NBPG */ 15406# ifdef NBPC 15407# define getpagesize() NBPC 15408# else /* no NBPC */ 15409# ifdef PAGESIZE 15410# define getpagesize() PAGESIZE 15411# endif /* PAGESIZE */ 15412# endif /* no NBPC */ 15413# endif /* no NBPG */ 15414# endif /* no EXEC_PAGESIZE */ 15415# else /* no HAVE_SYS_PARAM_H */ 15416# define getpagesize() 8192 /* punt totally */ 15417# endif /* no HAVE_SYS_PARAM_H */ 15418# endif 15419#endif 15420 15421int 15422main (void) 15423{ 15424 char *data, *data2, *data3; 15425 const char *cdata2; 15426 long i, pagesize; 15427 int fd, fd2; 15428 15429 pagesize = getpagesize (); 15430 15431 /* First, make a file with some known garbage in it. */ 15432 data = (char *) malloc (pagesize); 15433 if (!data) 15434 return 1; 15435 for (i = 0; i < pagesize; ++i) 15436 *(data + i) = rand (); 15437 umask (0); 15438 fd = creat ("conftest.mmap", 0600); 15439 if (fd < 0) 15440 return 2; 15441 if (write (fd, data, pagesize) != pagesize) 15442 return 3; 15443 close (fd); 15444 15445 /* Next, check that the tail of a page is zero-filled. File must have 15446 non-zero length, otherwise we risk SIGBUS for entire page. */ 15447 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 15448 if (fd2 < 0) 15449 return 4; 15450 cdata2 = ""; 15451 if (write (fd2, cdata2, 1) != 1) 15452 return 5; 15453 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 15454 if (data2 == MAP_FAILED) 15455 return 6; 15456 for (i = 0; i < pagesize; ++i) 15457 if (*(data2 + i)) 15458 return 7; 15459 close (fd2); 15460 /* 'return 8;' not currently used. */ 15461 15462 /* Next, try to mmap the file at a fixed address which already has 15463 something else allocated at it. If we can, also make sure that 15464 we see the same garbage. */ 15465 fd = open ("conftest.mmap", O_RDWR); 15466 if (fd < 0) 15467 return 9; 15468 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 15469 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 15470 return 10; 15471 for (i = 0; i < pagesize; ++i) 15472 if (*(data + i) != *(data2 + i)) 15473 return 11; 15474 15475 /* Finally, make sure that changes to the mapped area do not 15476 percolate back to the file as seen by read(). (This is a bug on 15477 some variants of i386 svr4.0.) */ 15478 for (i = 0; i < pagesize; ++i) 15479 *(data2 + i) = *(data2 + i) + 1; 15480 data3 = (char *) malloc (pagesize); 15481 if (!data3) 15482 return 12; 15483 if (read (fd, data3, pagesize) != pagesize) 15484 return 13; 15485 for (i = 0; i < pagesize; ++i) 15486 if (*(data + i) != *(data3 + i)) 15487 return 14; 15488 close (fd); 15489 free (data); 15490 free (data3); 15491 return 0; 15492} 15493_ACEOF 15494if ac_fn_c_try_run "$LINENO" 15495then : 15496 ac_cv_func_mmap_fixed_mapped=yes 15497else case e in #( 15498 e) ac_cv_func_mmap_fixed_mapped=no ;; 15499esac 15500fi 15501rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15502 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15503esac 15504fi 15505 ;; 15506esac 15507fi 15508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 15509printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } 15510if test $ac_cv_func_mmap_fixed_mapped = yes; then 15511 15512printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 15513 15514fi 15515rm -f conftest.mmap conftest.txt 15516 15517 15518 15519 15520 15521 15522if test "x$ac_cv_func_fork" = xyes; then 15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 15524printf %s "checking for working fork... " >&6; } 15525if test ${ac_cv_func_fork_works+y} 15526then : 15527 printf %s "(cached) " >&6 15528else case e in #( 15529 e) if test "$cross_compiling" = yes 15530then : 15531 ac_cv_func_fork_works=cross 15532else case e in #( 15533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535$ac_includes_default 15536int 15537main (void) 15538{ 15539 15540 /* By R. Kuhlmann. */ 15541 return fork () < 0; 15542 15543 ; 15544 return 0; 15545} 15546_ACEOF 15547if ac_fn_c_try_run "$LINENO" 15548then : 15549 ac_cv_func_fork_works=yes 15550else case e in #( 15551 e) ac_cv_func_fork_works=no ;; 15552esac 15553fi 15554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15555 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15556esac 15557fi 15558 ;; 15559esac 15560fi 15561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 15562printf "%s\n" "$ac_cv_func_fork_works" >&6; } 15563 15564else 15565 ac_cv_func_fork_works=$ac_cv_func_fork 15566fi 15567if test "x$ac_cv_func_fork_works" = xcross; then 15568 case $host in 15569 *-*-amigaos* | *-*-msdosdjgpp*) 15570 # Override, as these systems have only a dummy fork() stub 15571 ac_cv_func_fork_works=no 15572 ;; 15573 *) 15574 ac_cv_func_fork_works=yes 15575 ;; 15576 esac 15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 15578printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 15579fi 15580ac_cv_func_vfork_works=$ac_cv_func_vfork 15581if test "x$ac_cv_func_vfork" = xyes; then 15582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 15583printf %s "checking for working vfork... " >&6; } 15584if test ${ac_cv_func_vfork_works+y} 15585then : 15586 printf %s "(cached) " >&6 15587else case e in #( 15588 e) if test "$cross_compiling" = yes 15589then : 15590 ac_cv_func_vfork_works=cross 15591else case e in #( 15592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15593/* end confdefs.h. */ 15594/* Thanks to Paul Eggert for this test. */ 15595$ac_includes_default 15596#include <signal.h> 15597#include <sys/wait.h> 15598#ifdef HAVE_VFORK_H 15599# include <vfork.h> 15600#endif 15601 15602static void 15603do_nothing (int sig) 15604{ 15605 (void) sig; 15606} 15607 15608/* On some sparc systems, changes by the child to local and incoming 15609 argument registers are propagated back to the parent. The compiler 15610 is told about this with #include <vfork.h>, but some compilers 15611 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 15612 static variable whose address is put into a register that is 15613 clobbered by the vfork. */ 15614static void 15615sparc_address_test (int arg) 15616{ 15617 static pid_t child; 15618 if (!child) { 15619 child = vfork (); 15620 if (child < 0) { 15621 perror ("vfork"); 15622 _exit(2); 15623 } 15624 if (!child) { 15625 arg = getpid(); 15626 write(-1, "", 0); 15627 _exit (arg); 15628 } 15629 } 15630} 15631 15632int 15633main (void) 15634{ 15635 pid_t parent = getpid (); 15636 pid_t child; 15637 15638 sparc_address_test (0); 15639 15640 /* On Solaris 2.4, changes by the child to the signal handler 15641 also munge signal handlers in the parent. To detect this, 15642 start by putting the parent's handler in a known state. */ 15643 signal (SIGTERM, SIG_DFL); 15644 15645 child = vfork (); 15646 15647 if (child == 0) { 15648 /* Here is another test for sparc vfork register problems. This 15649 test uses lots of local variables, at least as many local 15650 variables as main has allocated so far including compiler 15651 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 15652 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 15653 reuse the register of parent for one of the local variables, 15654 since it will think that parent can't possibly be used any more 15655 in this routine. Assigning to the local variable will thus 15656 munge parent in the parent process. */ 15657 pid_t 15658 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 15659 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 15660 /* Convince the compiler that p..p7 are live; otherwise, it might 15661 use the same hardware register for all 8 local variables. */ 15662 if (p != p1 || p != p2 || p != p3 || p != p4 15663 || p != p5 || p != p6 || p != p7) 15664 _exit(1); 15665 15666 /* Alter the child's signal handler. */ 15667 if (signal (SIGTERM, do_nothing) != SIG_DFL) 15668 _exit(1); 15669 15670 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 15671 from child file descriptors. If the child closes a descriptor 15672 before it execs or exits, this munges the parent's descriptor 15673 as well. Test for this by closing stdout in the child. */ 15674 _exit(close(fileno(stdout)) != 0); 15675 } else { 15676 int status; 15677 struct stat st; 15678 15679 while (wait(&status) != child) 15680 ; 15681 return ( 15682 /* Was there some problem with vforking? */ 15683 child < 0 15684 15685 /* Did the child munge the parent's signal handler? */ 15686 || signal (SIGTERM, SIG_DFL) != SIG_DFL 15687 15688 /* Did the child fail? (This shouldn't happen.) */ 15689 || status 15690 15691 /* Did the vfork/compiler bug occur? */ 15692 || parent != getpid() 15693 15694 /* Did the file descriptor bug occur? */ 15695 || fstat(fileno(stdout), &st) != 0 15696 ); 15697 } 15698} 15699_ACEOF 15700if ac_fn_c_try_run "$LINENO" 15701then : 15702 ac_cv_func_vfork_works=yes 15703else case e in #( 15704 e) ac_cv_func_vfork_works=no ;; 15705esac 15706fi 15707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15708 conftest.$ac_objext conftest.beam conftest.$ac_ext ;; 15709esac 15710fi 15711 ;; 15712esac 15713fi 15714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 15715printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 15716 15717fi; 15718if test "x$ac_cv_func_fork_works" = xcross; then 15719 ac_cv_func_vfork_works=$ac_cv_func_vfork 15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 15721printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 15722fi 15723 15724if test "x$ac_cv_func_vfork_works" = xyes; then 15725 15726printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 15727 15728else 15729 15730printf "%s\n" "#define vfork fork" >>confdefs.h 15731 15732fi 15733if test "x$ac_cv_func_fork_works" = xyes; then 15734 15735printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 15736 15737fi 15738 15739 15740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5 15741printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; } 15742if test ${ac_cv_func_mbrtowc+y} 15743then : 15744 printf %s "(cached) " >&6 15745else case e in #( 15746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15747/* end confdefs.h. */ 15748#include <wchar.h> 15749int 15750main (void) 15751{ 15752wchar_t wc; 15753 char const s[] = ""; 15754 size_t n = 1; 15755 mbstate_t state; 15756 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); 15757 ; 15758 return 0; 15759} 15760_ACEOF 15761if ac_fn_c_try_link "$LINENO" 15762then : 15763 ac_cv_func_mbrtowc=yes 15764else case e in #( 15765 e) ac_cv_func_mbrtowc=no ;; 15766esac 15767fi 15768rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15769 conftest$ac_exeext conftest.$ac_ext ;; 15770esac 15771fi 15772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5 15773printf "%s\n" "$ac_cv_func_mbrtowc" >&6; } 15774 if test $ac_cv_func_mbrtowc = yes; then 15775 15776printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 15777 15778 fi 15779 15780 15781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5 15782printf %s "checking for gcc compiler warnings... " >&6; } 15783# Check whether --enable-warnings was given. 15784if test ${enable_warnings+y} 15785then : 15786 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then 15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15788printf "%s\n" "no" >&6; } 15789 WARNINGS= 15790else 15791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15792printf "%s\n" "yes" >&6; } 15793 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15794 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15795 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15796 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15797fi 15798else case e in #( 15799 e) 15800if test "$GCC" = yes; then 15801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15802printf "%s\n" "yes" >&6; } 15803 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ 15804 -Wmissing-declarations -Wredundant-decls -Wnested-externs \ 15805 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \ 15806 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2" 15807else 15808 WARNINGS= 15809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15810printf "%s\n" "no" >&6; } 15811fi ;; 15812esac 15813fi 15814 15815 15816ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup" 15817if test "x$ac_cv_func_strndup" = xyes 15818then : 15819 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h 15820 15821fi 15822ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 15823if test "x$ac_cv_func_mkstemp" = xyes 15824then : 15825 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h 15826 15827fi 15828ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp" 15829if test "x$ac_cv_func_mkostemp" = xyes 15830then : 15831 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h 15832 15833fi 15834ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 15835if test "x$ac_cv_func_utimes" = xyes 15836then : 15837 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 15838 15839fi 15840ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime" 15841if test "x$ac_cv_func_utime" = xyes 15842then : 15843 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h 15844 15845fi 15846ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth" 15847if test "x$ac_cv_func_wcwidth" = xyes 15848then : 15849 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h 15850 15851fi 15852ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof" 15853if test "x$ac_cv_func_strtof" = xyes 15854then : 15855 printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h 15856 15857fi 15858ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale" 15859if test "x$ac_cv_func_newlocale" = xyes 15860then : 15861 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h 15862 15863fi 15864ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale" 15865if test "x$ac_cv_func_uselocale" = xyes 15866then : 15867 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h 15868 15869fi 15870ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale" 15871if test "x$ac_cv_func_freelocale" = xyes 15872then : 15873 printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h 15874 15875fi 15876ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" 15877if test "x$ac_cv_func_memmem" = xyes 15878then : 15879 printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h 15880 15881fi 15882ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 15883if test "x$ac_cv_func_pipe2" = xyes 15884then : 15885 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 15886 15887fi 15888ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" 15889if test "x$ac_cv_func_posix_spawnp" = xyes 15890then : 15891 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h 15892 15893fi 15894 15895 15896ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 15897if test "x$ac_cv_func_getopt_long" = xyes 15898then : 15899 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h 15900 15901else case e in #( 15902 e) case " $LIBOBJS " in 15903 *" getopt_long.$ac_objext "* ) ;; 15904 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext" 15905 ;; 15906esac 15907 ;; 15908esac 15909fi 15910ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 15911if test "x$ac_cv_func_asprintf" = xyes 15912then : 15913 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h 15914 15915else case e in #( 15916 e) case " $LIBOBJS " in 15917 *" asprintf.$ac_objext "* ) ;; 15918 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 15919 ;; 15920esac 15921 ;; 15922esac 15923fi 15924ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 15925if test "x$ac_cv_func_vasprintf" = xyes 15926then : 15927 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h 15928 15929else case e in #( 15930 e) case " $LIBOBJS " in 15931 *" vasprintf.$ac_objext "* ) ;; 15932 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext" 15933 ;; 15934esac 15935 ;; 15936esac 15937fi 15938ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 15939if test "x$ac_cv_func_strlcpy" = xyes 15940then : 15941 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 15942 15943else case e in #( 15944 e) case " $LIBOBJS " in 15945 *" strlcpy.$ac_objext "* ) ;; 15946 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 15947 ;; 15948esac 15949 ;; 15950esac 15951fi 15952ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 15953if test "x$ac_cv_func_strlcat" = xyes 15954then : 15955 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h 15956 15957else case e in #( 15958 e) case " $LIBOBJS " in 15959 *" strlcat.$ac_objext "* ) ;; 15960 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 15961 ;; 15962esac 15963 ;; 15964esac 15965fi 15966ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 15967if test "x$ac_cv_func_getline" = xyes 15968then : 15969 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h 15970 15971else case e in #( 15972 e) case " $LIBOBJS " in 15973 *" getline.$ac_objext "* ) ;; 15974 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 15975 ;; 15976esac 15977 ;; 15978esac 15979fi 15980ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r" 15981if test "x$ac_cv_func_ctime_r" = xyes 15982then : 15983 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h 15984 15985else case e in #( 15986 e) case " $LIBOBJS " in 15987 *" ctime_r.$ac_objext "* ) ;; 15988 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext" 15989 ;; 15990esac 15991 ;; 15992esac 15993fi 15994ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r" 15995if test "x$ac_cv_func_asctime_r" = xyes 15996then : 15997 printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h 15998 15999else case e in #( 16000 e) case " $LIBOBJS " in 16001 *" asctime_r.$ac_objext "* ) ;; 16002 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext" 16003 ;; 16004esac 16005 ;; 16006esac 16007fi 16008ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" 16009if test "x$ac_cv_func_localtime_r" = xyes 16010then : 16011 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h 16012 16013else case e in #( 16014 e) case " $LIBOBJS " in 16015 *" localtime_r.$ac_objext "* ) ;; 16016 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 16017 ;; 16018esac 16019 ;; 16020esac 16021fi 16022ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" 16023if test "x$ac_cv_func_gmtime_r" = xyes 16024then : 16025 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h 16026 16027else case e in #( 16028 e) case " $LIBOBJS " in 16029 *" gmtime_r.$ac_objext "* ) ;; 16030 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext" 16031 ;; 16032esac 16033 ;; 16034esac 16035fi 16036ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 16037if test "x$ac_cv_func_pread" = xyes 16038then : 16039 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 16040 16041else case e in #( 16042 e) case " $LIBOBJS " in 16043 *" pread.$ac_objext "* ) ;; 16044 *) LIBOBJS="$LIBOBJS pread.$ac_objext" 16045 ;; 16046esac 16047 ;; 16048esac 16049fi 16050ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" 16051if test "x$ac_cv_func_strcasestr" = xyes 16052then : 16053 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h 16054 16055else case e in #( 16056 e) case " $LIBOBJS " in 16057 *" strcasestr.$ac_objext "* ) ;; 16058 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext" 16059 ;; 16060esac 16061 ;; 16062esac 16063fi 16064ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck" 16065if test "x$ac_cv_func_fmtcheck" = xyes 16066then : 16067 printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h 16068 16069else case e in #( 16070 e) case " $LIBOBJS " in 16071 *" fmtcheck.$ac_objext "* ) ;; 16072 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext" 16073 ;; 16074esac 16075 ;; 16076esac 16077fi 16078ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf" 16079if test "x$ac_cv_func_dprintf" = xyes 16080then : 16081 printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h 16082 16083else case e in #( 16084 e) case " $LIBOBJS " in 16085 *" dprintf.$ac_objext "* ) ;; 16086 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext" 16087 ;; 16088esac 16089 ;; 16090esac 16091fi 16092 16093 16094if test "$enable_zlib" != "no"; then 16095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5 16096printf %s "checking for gzopen in -lz... " >&6; } 16097if test ${ac_cv_lib_z_gzopen+y} 16098then : 16099 printf %s "(cached) " >&6 16100else case e in #( 16101 e) ac_check_lib_save_LIBS=$LIBS 16102LIBS="-lz $LIBS" 16103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16104/* end confdefs.h. */ 16105 16106/* Override any GCC internal prototype to avoid an error. 16107 Use char because int might match the return type of a GCC 16108 builtin and then its argument prototype would still apply. 16109 The 'extern "C"' is for builds by C++ compilers; 16110 although this is not generally supported in C code supporting it here 16111 has little cost and some practical benefit (sr 110532). */ 16112#ifdef __cplusplus 16113extern "C" 16114#endif 16115char gzopen (void); 16116int 16117main (void) 16118{ 16119return gzopen (); 16120 ; 16121 return 0; 16122} 16123_ACEOF 16124if ac_fn_c_try_link "$LINENO" 16125then : 16126 ac_cv_lib_z_gzopen=yes 16127else case e in #( 16128 e) ac_cv_lib_z_gzopen=no ;; 16129esac 16130fi 16131rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16132 conftest$ac_exeext conftest.$ac_ext 16133LIBS=$ac_check_lib_save_LIBS ;; 16134esac 16135fi 16136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5 16137printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; } 16138if test "x$ac_cv_lib_z_gzopen" = xyes 16139then : 16140 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h 16141 16142 LIBS="-lz $LIBS" 16143 16144fi 16145 16146fi 16147if test "$enable_bzlib" != "no"; then 16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5 16149printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; } 16150if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y} 16151then : 16152 printf %s "(cached) " >&6 16153else case e in #( 16154 e) ac_check_lib_save_LIBS=$LIBS 16155LIBS="-lbz2 $LIBS" 16156cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16157/* end confdefs.h. */ 16158 16159/* Override any GCC internal prototype to avoid an error. 16160 Use char because int might match the return type of a GCC 16161 builtin and then its argument prototype would still apply. 16162 The 'extern "C"' is for builds by C++ compilers; 16163 although this is not generally supported in C code supporting it here 16164 has little cost and some practical benefit (sr 110532). */ 16165#ifdef __cplusplus 16166extern "C" 16167#endif 16168char BZ2_bzCompressInit (void); 16169int 16170main (void) 16171{ 16172return BZ2_bzCompressInit (); 16173 ; 16174 return 0; 16175} 16176_ACEOF 16177if ac_fn_c_try_link "$LINENO" 16178then : 16179 ac_cv_lib_bz2_BZ2_bzCompressInit=yes 16180else case e in #( 16181 e) ac_cv_lib_bz2_BZ2_bzCompressInit=no ;; 16182esac 16183fi 16184rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16185 conftest$ac_exeext conftest.$ac_ext 16186LIBS=$ac_check_lib_save_LIBS ;; 16187esac 16188fi 16189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5 16190printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; } 16191if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes 16192then : 16193 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h 16194 16195 LIBS="-lbz2 $LIBS" 16196 16197fi 16198 16199fi 16200if test "$enable_xzlib" != "no"; then 16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5 16202printf %s "checking for lzma_stream_decoder in -llzma... " >&6; } 16203if test ${ac_cv_lib_lzma_lzma_stream_decoder+y} 16204then : 16205 printf %s "(cached) " >&6 16206else case e in #( 16207 e) ac_check_lib_save_LIBS=$LIBS 16208LIBS="-llzma $LIBS" 16209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16210/* end confdefs.h. */ 16211 16212/* Override any GCC internal prototype to avoid an error. 16213 Use char because int might match the return type of a GCC 16214 builtin and then its argument prototype would still apply. 16215 The 'extern "C"' is for builds by C++ compilers; 16216 although this is not generally supported in C code supporting it here 16217 has little cost and some practical benefit (sr 110532). */ 16218#ifdef __cplusplus 16219extern "C" 16220#endif 16221char lzma_stream_decoder (void); 16222int 16223main (void) 16224{ 16225return lzma_stream_decoder (); 16226 ; 16227 return 0; 16228} 16229_ACEOF 16230if ac_fn_c_try_link "$LINENO" 16231then : 16232 ac_cv_lib_lzma_lzma_stream_decoder=yes 16233else case e in #( 16234 e) ac_cv_lib_lzma_lzma_stream_decoder=no ;; 16235esac 16236fi 16237rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16238 conftest$ac_exeext conftest.$ac_ext 16239LIBS=$ac_check_lib_save_LIBS ;; 16240esac 16241fi 16242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5 16243printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; } 16244if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes 16245then : 16246 printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h 16247 16248 LIBS="-llzma $LIBS" 16249 16250fi 16251 16252fi 16253if test "$enable_zstdlib" != "no"; then 16254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5 16255printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; } 16256if test ${ac_cv_lib_zstd_ZSTD_createDStream+y} 16257then : 16258 printf %s "(cached) " >&6 16259else case e in #( 16260 e) ac_check_lib_save_LIBS=$LIBS 16261LIBS="-lzstd $LIBS" 16262cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16263/* end confdefs.h. */ 16264 16265/* Override any GCC internal prototype to avoid an error. 16266 Use char because int might match the return type of a GCC 16267 builtin and then its argument prototype would still apply. 16268 The 'extern "C"' is for builds by C++ compilers; 16269 although this is not generally supported in C code supporting it here 16270 has little cost and some practical benefit (sr 110532). */ 16271#ifdef __cplusplus 16272extern "C" 16273#endif 16274char ZSTD_createDStream (void); 16275int 16276main (void) 16277{ 16278return ZSTD_createDStream (); 16279 ; 16280 return 0; 16281} 16282_ACEOF 16283if ac_fn_c_try_link "$LINENO" 16284then : 16285 ac_cv_lib_zstd_ZSTD_createDStream=yes 16286else case e in #( 16287 e) ac_cv_lib_zstd_ZSTD_createDStream=no ;; 16288esac 16289fi 16290rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16291 conftest$ac_exeext conftest.$ac_ext 16292LIBS=$ac_check_lib_save_LIBS ;; 16293esac 16294fi 16295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5 16296printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; } 16297if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes 16298then : 16299 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h 16300 16301 LIBS="-lzstd $LIBS" 16302 16303fi 16304 16305fi 16306if test "$enable_lzlib" != "no"; then 16307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LZ_decompress_open in -llz" >&5 16308printf %s "checking for LZ_decompress_open in -llz... " >&6; } 16309if test ${ac_cv_lib_lz_LZ_decompress_open+y} 16310then : 16311 printf %s "(cached) " >&6 16312else case e in #( 16313 e) ac_check_lib_save_LIBS=$LIBS 16314LIBS="-llz $LIBS" 16315cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16316/* end confdefs.h. */ 16317 16318/* Override any GCC internal prototype to avoid an error. 16319 Use char because int might match the return type of a GCC 16320 builtin and then its argument prototype would still apply. 16321 The 'extern "C"' is for builds by C++ compilers; 16322 although this is not generally supported in C code supporting it here 16323 has little cost and some practical benefit (sr 110532). */ 16324#ifdef __cplusplus 16325extern "C" 16326#endif 16327char LZ_decompress_open (void); 16328int 16329main (void) 16330{ 16331return LZ_decompress_open (); 16332 ; 16333 return 0; 16334} 16335_ACEOF 16336if ac_fn_c_try_link "$LINENO" 16337then : 16338 ac_cv_lib_lz_LZ_decompress_open=yes 16339else case e in #( 16340 e) ac_cv_lib_lz_LZ_decompress_open=no ;; 16341esac 16342fi 16343rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16344 conftest$ac_exeext conftest.$ac_ext 16345LIBS=$ac_check_lib_save_LIBS ;; 16346esac 16347fi 16348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lz_LZ_decompress_open" >&5 16349printf "%s\n" "$ac_cv_lib_lz_LZ_decompress_open" >&6; } 16350if test "x$ac_cv_lib_lz_LZ_decompress_open" = xyes 16351then : 16352 printf "%s\n" "#define HAVE_LIBLZ 1" >>confdefs.h 16353 16354 LIBS="-llz $LIBS" 16355 16356fi 16357 16358fi 16359if test "$enable_lrziplib" != "no"; then 16360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lrzip_new in -llrzip" >&5 16361printf %s "checking for lrzip_new in -llrzip... " >&6; } 16362if test ${ac_cv_lib_lrzip_lrzip_new+y} 16363then : 16364 printf %s "(cached) " >&6 16365else case e in #( 16366 e) ac_check_lib_save_LIBS=$LIBS 16367LIBS="-llrzip $LIBS" 16368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16369/* end confdefs.h. */ 16370 16371/* Override any GCC internal prototype to avoid an error. 16372 Use char because int might match the return type of a GCC 16373 builtin and then its argument prototype would still apply. 16374 The 'extern "C"' is for builds by C++ compilers; 16375 although this is not generally supported in C code supporting it here 16376 has little cost and some practical benefit (sr 110532). */ 16377#ifdef __cplusplus 16378extern "C" 16379#endif 16380char lrzip_new (void); 16381int 16382main (void) 16383{ 16384return lrzip_new (); 16385 ; 16386 return 0; 16387} 16388_ACEOF 16389if ac_fn_c_try_link "$LINENO" 16390then : 16391 ac_cv_lib_lrzip_lrzip_new=yes 16392else case e in #( 16393 e) ac_cv_lib_lrzip_lrzip_new=no ;; 16394esac 16395fi 16396rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16397 conftest$ac_exeext conftest.$ac_ext 16398LIBS=$ac_check_lib_save_LIBS ;; 16399esac 16400fi 16401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lrzip_lrzip_new" >&5 16402printf "%s\n" "$ac_cv_lib_lrzip_lrzip_new" >&6; } 16403if test "x$ac_cv_lib_lrzip_lrzip_new" = xyes 16404then : 16405 printf "%s\n" "#define HAVE_LIBLRZIP 1" >>confdefs.h 16406 16407 LIBS="-llrzip $LIBS" 16408 16409fi 16410 16411fi 16412 16413if test "$enable_libseccomp" != "no"; then 16414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5 16415printf %s "checking for seccomp_init in -lseccomp... " >&6; } 16416if test ${ac_cv_lib_seccomp_seccomp_init+y} 16417then : 16418 printf %s "(cached) " >&6 16419else case e in #( 16420 e) ac_check_lib_save_LIBS=$LIBS 16421LIBS="-lseccomp $LIBS" 16422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16423/* end confdefs.h. */ 16424 16425/* Override any GCC internal prototype to avoid an error. 16426 Use char because int might match the return type of a GCC 16427 builtin and then its argument prototype would still apply. 16428 The 'extern "C"' is for builds by C++ compilers; 16429 although this is not generally supported in C code supporting it here 16430 has little cost and some practical benefit (sr 110532). */ 16431#ifdef __cplusplus 16432extern "C" 16433#endif 16434char seccomp_init (void); 16435int 16436main (void) 16437{ 16438return seccomp_init (); 16439 ; 16440 return 0; 16441} 16442_ACEOF 16443if ac_fn_c_try_link "$LINENO" 16444then : 16445 ac_cv_lib_seccomp_seccomp_init=yes 16446else case e in #( 16447 e) ac_cv_lib_seccomp_seccomp_init=no ;; 16448esac 16449fi 16450rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16451 conftest$ac_exeext conftest.$ac_ext 16452LIBS=$ac_check_lib_save_LIBS ;; 16453esac 16454fi 16455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5 16456printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; } 16457if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes 16458then : 16459 printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h 16460 16461 LIBS="-lseccomp $LIBS" 16462 16463fi 16464 16465fi 16466if test "$enable_landlock" != "no"; then 16467 ac_fn_c_check_header_compile "$LINENO" "linux/landlock.h" "ac_cv_header_linux_landlock_h" "$ac_includes_default" 16468if test "x$ac_cv_header_linux_landlock_h" = xyes 16469then : 16470 printf "%s\n" "#define HAVE_LINUX_LANDLOCK_H 1" >>confdefs.h 16471 16472fi 16473 16474fi 16475if test "$MINGW" = 1; then 16476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5 16477printf %s "checking for regexec in -lgnurx... " >&6; } 16478if test ${ac_cv_lib_gnurx_regexec+y} 16479then : 16480 printf %s "(cached) " >&6 16481else case e in #( 16482 e) ac_check_lib_save_LIBS=$LIBS 16483LIBS="-lgnurx $LIBS" 16484cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16485/* end confdefs.h. */ 16486 16487/* Override any GCC internal prototype to avoid an error. 16488 Use char because int might match the return type of a GCC 16489 builtin and then its argument prototype would still apply. 16490 The 'extern "C"' is for builds by C++ compilers; 16491 although this is not generally supported in C code supporting it here 16492 has little cost and some practical benefit (sr 110532). */ 16493#ifdef __cplusplus 16494extern "C" 16495#endif 16496char regexec (void); 16497int 16498main (void) 16499{ 16500return regexec (); 16501 ; 16502 return 0; 16503} 16504_ACEOF 16505if ac_fn_c_try_link "$LINENO" 16506then : 16507 ac_cv_lib_gnurx_regexec=yes 16508else case e in #( 16509 e) ac_cv_lib_gnurx_regexec=no ;; 16510esac 16511fi 16512rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16513 conftest$ac_exeext conftest.$ac_ext 16514LIBS=$ac_check_lib_save_LIBS ;; 16515esac 16516fi 16517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5 16518printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; } 16519if test "x$ac_cv_lib_gnurx_regexec" = xyes 16520then : 16521 printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h 16522 16523 LIBS="-lgnurx $LIBS" 16524 16525else case e in #( 16526 e) as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5 ;; 16527esac 16528fi 16529 16530fi 16531 16532 if test "$cross_compiling" = yes; then 16533 IS_CROSS_COMPILE_TRUE= 16534 IS_CROSS_COMPILE_FALSE='#' 16535else 16536 IS_CROSS_COMPILE_TRUE='#' 16537 IS_CROSS_COMPILE_FALSE= 16538fi 16539 16540 16541if test "$enable_zlib" = "yes"; then 16542 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then 16543 as_fn_error $? "zlib support requested but not found" "$LINENO" 5 16544 fi 16545fi 16546if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then 16547 16548printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h 16549 16550fi 16551if test "$enable_bzlib" = "yes"; then 16552 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then 16553 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5 16554 fi 16555fi 16556if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then 16557 16558printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h 16559 16560fi 16561if test "$enable_xzlib" = "yes"; then 16562 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then 16563 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5 16564 fi 16565fi 16566if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then 16567 16568printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h 16569 16570fi 16571if test "$enable_zstdlib" = "yes"; then 16572 if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" != "yesyes"; then 16573 as_fn_error $? "zstdlib support requested but not found" "$LINENO" 5 16574 fi 16575fi 16576if test "$ac_cv_header_zstd_h$ac_cv_lib_zstd_ZSTD_createDStream" = "yesyes"; then 16577 16578printf "%s\n" "#define ZSTDLIBSUPPORT 1" >>confdefs.h 16579 16580fi 16581if test "$enable_lzlib" = "yes"; then 16582 if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" != "yesyes"; then 16583 as_fn_error $? "lzlib support requested but not found" "$LINENO" 5 16584 fi 16585fi 16586if test "$ac_cv_header_lzlib_h$ac_cv_lib_lz_LZ_decompress_open" = "yesyes"; then 16587 16588printf "%s\n" "#define LZLIBSUPPORT 1" >>confdefs.h 16589 16590fi 16591 16592if test "$enable_lrziplib" = "yes"; then 16593 if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" != "yesyes"; then 16594 as_fn_error $? "lrzip support requested but not found" "$LINENO" 5 16595 fi 16596fi 16597if test "$ac_cv_header_Lrzip_h$ac_cv_lib_lrzip_lrzip_new" = "yesyes"; then 16598 16599printf "%s\n" "#define LRZIPLIBSUPPORT 1" >>confdefs.h 16600 16601fi 16602 16603ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc" 16604 16605cat >confcache <<\_ACEOF 16606# This file is a shell script that caches the results of configure 16607# tests run on this system so they can be shared between configure 16608# scripts and configure runs, see configure's option --config-cache. 16609# It is not useful on other systems. If it contains results you don't 16610# want to keep, you may remove or edit it. 16611# 16612# config.status only pays attention to the cache file if you give it 16613# the --recheck option to rerun configure. 16614# 16615# 'ac_cv_env_foo' variables (set or unset) will be overridden when 16616# loading this file, other *unset* 'ac_cv_foo' will be assigned the 16617# following values. 16618 16619_ACEOF 16620 16621# The following way of writing the cache mishandles newlines in values, 16622# but we know of no workaround that is simple, portable, and efficient. 16623# So, we kill variables containing newlines. 16624# Ultrix sh set writes to stderr and can't be redirected directly, 16625# and sets the high bit in the cache file unless we assign to the vars. 16626( 16627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16628 eval ac_val=\$$ac_var 16629 case $ac_val in #( 16630 *${as_nl}*) 16631 case $ac_var in #( 16632 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16633printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16634 esac 16635 case $ac_var in #( 16636 _ | IFS | as_nl) ;; #( 16637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16638 *) { eval $ac_var=; unset $ac_var;} ;; 16639 esac ;; 16640 esac 16641 done 16642 16643 (set) 2>&1 | 16644 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16645 *${as_nl}ac_space=\ *) 16646 # 'set' does not quote correctly, so add quotes: double-quote 16647 # substitution turns \\\\ into \\, and sed turns \\ into \. 16648 sed -n \ 16649 "s/'/'\\\\''/g; 16650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16651 ;; #( 16652 *) 16653 # 'set' quotes correctly as required by POSIX, so do not add quotes. 16654 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16655 ;; 16656 esac | 16657 sort 16658) | 16659 sed ' 16660 /^ac_cv_env_/b end 16661 t clear 16662 :clear 16663 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 16664 t end 16665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16666 :end' >>confcache 16667if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16668 if test -w "$cache_file"; then 16669 if test "x$cache_file" != "x/dev/null"; then 16670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16671printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 16672 if test ! -f "$cache_file" || test -h "$cache_file"; then 16673 cat confcache >"$cache_file" 16674 else 16675 case $cache_file in #( 16676 */* | ?:*) 16677 mv -f confcache "$cache_file"$$ && 16678 mv -f "$cache_file"$$ "$cache_file" ;; #( 16679 *) 16680 mv -f confcache "$cache_file" ;; 16681 esac 16682 fi 16683 fi 16684 else 16685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16686printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 16687 fi 16688fi 16689rm -f confcache 16690 16691test "x$prefix" = xNONE && prefix=$ac_default_prefix 16692# Let make expand exec_prefix. 16693test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16694 16695DEFS=-DHAVE_CONFIG_H 16696 16697ac_libobjs= 16698ac_ltlibobjs= 16699U= 16700for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16701 # 1. Remove the extension, and $U if already installed. 16702 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16703 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 16704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16705 # will be set to the directory where LIBOBJS objects are built. 16706 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16707 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16708done 16709LIBOBJS=$ac_libobjs 16710 16711LTLIBOBJS=$ac_ltlibobjs 16712 16713 16714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16715printf %s "checking that generated files are newer than configure... " >&6; } 16716 if test -n "$am_sleep_pid"; then 16717 # Hide warnings about reused PIDs. 16718 wait $am_sleep_pid 2>/dev/null 16719 fi 16720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 16721printf "%s\n" "done" >&6; } 16722case $enable_silent_rules in # ((( 16723 yes) AM_DEFAULT_VERBOSITY=0;; 16724 no) AM_DEFAULT_VERBOSITY=1;; 16725esac 16726if test $am_cv_make_support_nested_variables = yes; then 16727 AM_V='$(V)' 16728 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 16729else 16730 AM_V=$AM_DEFAULT_VERBOSITY 16731 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 16732fi 16733 16734 if test -n "$EXEEXT"; then 16735 am__EXEEXT_TRUE= 16736 am__EXEEXT_FALSE='#' 16737else 16738 am__EXEEXT_TRUE='#' 16739 am__EXEEXT_FALSE= 16740fi 16741 16742if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 16743 as_fn_error $? "conditional \"MINGW\" was never defined. 16744Usually this means the macro was only invoked conditionally." "$LINENO" 5 16745fi 16746if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then 16747 as_fn_error $? "conditional \"FSECT5\" was never defined. 16748Usually this means the macro was only invoked conditionally." "$LINENO" 5 16749fi 16750if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16751 as_fn_error $? "conditional \"AMDEP\" was never defined. 16752Usually this means the macro was only invoked conditionally." "$LINENO" 5 16753fi 16754if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16755 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16756Usually this means the macro was only invoked conditionally." "$LINENO" 5 16757fi 16758 16759# Check whether --enable-year2038 was given. 16760if test ${enable_year2038+y} 16761then : 16762 enableval=$enable_year2038; 16763fi 16764 16765if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then 16766 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined. 16767Usually this means the macro was only invoked conditionally." "$LINENO" 5 16768fi 16769 16770: "${CONFIG_STATUS=./config.status}" 16771ac_write_fail=0 16772ac_clean_files_save=$ac_clean_files 16773ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16775printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 16776as_write_fail=0 16777cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16778#! $SHELL 16779# Generated by $as_me. 16780# Run this file to recreate the current configuration. 16781# Compiler output produced by configure, useful for debugging 16782# configure, is in config.log if it exists. 16783 16784debug=false 16785ac_cs_recheck=false 16786ac_cs_silent=false 16787 16788SHELL=\${CONFIG_SHELL-$SHELL} 16789export SHELL 16790_ASEOF 16791cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16792## -------------------- ## 16793## M4sh Initialization. ## 16794## -------------------- ## 16795 16796# Be more Bourne compatible 16797DUALCASE=1; export DUALCASE # for MKS sh 16798if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 16799then : 16800 emulate sh 16801 NULLCMD=: 16802 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16803 # is contrary to our usage. Disable this feature. 16804 alias -g '${1+"$@"}'='"$@"' 16805 setopt NO_GLOB_SUBST 16806else case e in #( 16807 e) case `(set -o) 2>/dev/null` in #( 16808 *posix*) : 16809 set -o posix ;; #( 16810 *) : 16811 ;; 16812esac ;; 16813esac 16814fi 16815 16816 16817 16818# Reset variables that may have inherited troublesome values from 16819# the environment. 16820 16821# IFS needs to be set, to space, tab, and newline, in precisely that order. 16822# (If _AS_PATH_WALK were called with IFS unset, it would have the 16823# side effect of setting IFS to empty, thus disabling word splitting.) 16824# Quoting is to prevent editors from complaining about space-tab. 16825as_nl=' 16826' 16827export as_nl 16828IFS=" "" $as_nl" 16829 16830PS1='$ ' 16831PS2='> ' 16832PS4='+ ' 16833 16834# Ensure predictable behavior from utilities with locale-dependent output. 16835LC_ALL=C 16836export LC_ALL 16837LANGUAGE=C 16838export LANGUAGE 16839 16840# We cannot yet rely on "unset" to work, but we need these variables 16841# to be unset--not just set to an empty or harmless value--now, to 16842# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 16843# also avoids known problems related to "unset" and subshell syntax 16844# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 16845for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 16846do eval test \${$as_var+y} \ 16847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16848done 16849 16850# Ensure that fds 0, 1, and 2 are open. 16851if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 16852if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 16853if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 16854 16855# The user is always right. 16856if ${PATH_SEPARATOR+false} :; then 16857 PATH_SEPARATOR=: 16858 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16859 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16860 PATH_SEPARATOR=';' 16861 } 16862fi 16863 16864 16865# Find who we are. Look in the path if we contain no directory separator. 16866as_myself= 16867case $0 in #(( 16868 *[\\/]* ) as_myself=$0 ;; 16869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16870for as_dir in $PATH 16871do 16872 IFS=$as_save_IFS 16873 case $as_dir in #((( 16874 '') as_dir=./ ;; 16875 */) ;; 16876 *) as_dir=$as_dir/ ;; 16877 esac 16878 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 16879 done 16880IFS=$as_save_IFS 16881 16882 ;; 16883esac 16884# We did not find ourselves, most probably we were run as 'sh COMMAND' 16885# in which case we are not to be found in the path. 16886if test "x$as_myself" = x; then 16887 as_myself=$0 16888fi 16889if test ! -f "$as_myself"; then 16890 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16891 exit 1 16892fi 16893 16894 16895 16896# as_fn_error STATUS ERROR [LINENO LOG_FD] 16897# ---------------------------------------- 16898# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16899# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16900# script with STATUS, using 1 if that was 0. 16901as_fn_error () 16902{ 16903 as_status=$1; test $as_status -eq 0 && as_status=1 16904 if test "$4"; then 16905 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16907 fi 16908 printf "%s\n" "$as_me: error: $2" >&2 16909 as_fn_exit $as_status 16910} # as_fn_error 16911 16912 16913# as_fn_set_status STATUS 16914# ----------------------- 16915# Set $? to STATUS, without forking. 16916as_fn_set_status () 16917{ 16918 return $1 16919} # as_fn_set_status 16920 16921# as_fn_exit STATUS 16922# ----------------- 16923# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16924as_fn_exit () 16925{ 16926 set +e 16927 as_fn_set_status $1 16928 exit $1 16929} # as_fn_exit 16930 16931# as_fn_unset VAR 16932# --------------- 16933# Portably unset VAR. 16934as_fn_unset () 16935{ 16936 { eval $1=; unset $1;} 16937} 16938as_unset=as_fn_unset 16939 16940# as_fn_append VAR VALUE 16941# ---------------------- 16942# Append the text in VALUE to the end of the definition contained in VAR. Take 16943# advantage of any shell optimizations that allow amortized linear growth over 16944# repeated appends, instead of the typical quadratic growth present in naive 16945# implementations. 16946if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 16947then : 16948 eval 'as_fn_append () 16949 { 16950 eval $1+=\$2 16951 }' 16952else case e in #( 16953 e) as_fn_append () 16954 { 16955 eval $1=\$$1\$2 16956 } ;; 16957esac 16958fi # as_fn_append 16959 16960# as_fn_arith ARG... 16961# ------------------ 16962# Perform arithmetic evaluation on the ARGs, and store the result in the 16963# global $as_val. Take advantage of shells that can avoid forks. The arguments 16964# must be portable across $(()) and expr. 16965if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 16966then : 16967 eval 'as_fn_arith () 16968 { 16969 as_val=$(( $* )) 16970 }' 16971else case e in #( 16972 e) as_fn_arith () 16973 { 16974 as_val=`expr "$@" || test $? -eq 1` 16975 } ;; 16976esac 16977fi # as_fn_arith 16978 16979 16980if expr a : '\(a\)' >/dev/null 2>&1 && 16981 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16982 as_expr=expr 16983else 16984 as_expr=false 16985fi 16986 16987if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16988 as_basename=basename 16989else 16990 as_basename=false 16991fi 16992 16993if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16994 as_dirname=dirname 16995else 16996 as_dirname=false 16997fi 16998 16999as_me=`$as_basename -- "$0" || 17000$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17001 X"$0" : 'X\(//\)$' \| \ 17002 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17003printf "%s\n" X/"$0" | 17004 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17005 s//\1/ 17006 q 17007 } 17008 /^X\/\(\/\/\)$/{ 17009 s//\1/ 17010 q 17011 } 17012 /^X\/\(\/\).*/{ 17013 s//\1/ 17014 q 17015 } 17016 s/.*/./; q'` 17017 17018# Avoid depending upon Character Ranges. 17019as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17020as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17021as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17022as_cr_digits='0123456789' 17023as_cr_alnum=$as_cr_Letters$as_cr_digits 17024 17025 17026# Determine whether it's possible to make 'echo' print without a newline. 17027# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 17028# for compatibility with existing Makefiles. 17029ECHO_C= ECHO_N= ECHO_T= 17030case `echo -n x` in #((((( 17031-n*) 17032 case `echo 'xy\c'` in 17033 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17034 xy) ECHO_C='\c';; 17035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17036 ECHO_T=' ';; 17037 esac;; 17038*) 17039 ECHO_N='-n';; 17040esac 17041 17042# For backward compatibility with old third-party macros, we provide 17043# the shell variables $as_echo and $as_echo_n. New code should use 17044# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 17045as_echo='printf %s\n' 17046as_echo_n='printf %s' 17047 17048rm -f conf$$ conf$$.exe conf$$.file 17049if test -d conf$$.dir; then 17050 rm -f conf$$.dir/conf$$.file 17051else 17052 rm -f conf$$.dir 17053 mkdir conf$$.dir 2>/dev/null 17054fi 17055if (echo >conf$$.file) 2>/dev/null; then 17056 if ln -s conf$$.file conf$$ 2>/dev/null; then 17057 as_ln_s='ln -s' 17058 # ... but there are two gotchas: 17059 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. 17060 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. 17061 # In both cases, we have to default to 'cp -pR'. 17062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17063 as_ln_s='cp -pR' 17064 elif ln conf$$.file conf$$ 2>/dev/null; then 17065 as_ln_s=ln 17066 else 17067 as_ln_s='cp -pR' 17068 fi 17069else 17070 as_ln_s='cp -pR' 17071fi 17072rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17073rmdir conf$$.dir 2>/dev/null 17074 17075 17076# as_fn_mkdir_p 17077# ------------- 17078# Create "$as_dir" as a directory, including parents if necessary. 17079as_fn_mkdir_p () 17080{ 17081 17082 case $as_dir in #( 17083 -*) as_dir=./$as_dir;; 17084 esac 17085 test -d "$as_dir" || eval $as_mkdir_p || { 17086 as_dirs= 17087 while :; do 17088 case $as_dir in #( 17089 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17090 *) as_qdir=$as_dir;; 17091 esac 17092 as_dirs="'$as_qdir' $as_dirs" 17093 as_dir=`$as_dirname -- "$as_dir" || 17094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17095 X"$as_dir" : 'X\(//\)[^/]' \| \ 17096 X"$as_dir" : 'X\(//\)$' \| \ 17097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17098printf "%s\n" X"$as_dir" | 17099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17100 s//\1/ 17101 q 17102 } 17103 /^X\(\/\/\)[^/].*/{ 17104 s//\1/ 17105 q 17106 } 17107 /^X\(\/\/\)$/{ 17108 s//\1/ 17109 q 17110 } 17111 /^X\(\/\).*/{ 17112 s//\1/ 17113 q 17114 } 17115 s/.*/./; q'` 17116 test -d "$as_dir" && break 17117 done 17118 test -z "$as_dirs" || eval "mkdir $as_dirs" 17119 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17120 17121 17122} # as_fn_mkdir_p 17123if mkdir -p . 2>/dev/null; then 17124 as_mkdir_p='mkdir -p "$as_dir"' 17125else 17126 test -d ./-p && rmdir ./-p 17127 as_mkdir_p=false 17128fi 17129 17130 17131# as_fn_executable_p FILE 17132# ----------------------- 17133# Test if FILE is an executable regular file. 17134as_fn_executable_p () 17135{ 17136 test -f "$1" && test -x "$1" 17137} # as_fn_executable_p 17138as_test_x='test -x' 17139as_executable_p=as_fn_executable_p 17140 17141# Sed expression to map a string onto a valid CPP name. 17142as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 17143as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated 17144 17145# Sed expression to map a string onto a valid variable name. 17146as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 17147as_tr_sh="eval sed '$as_sed_sh'" # deprecated 17148 17149 17150exec 6>&1 17151## ----------------------------------- ## 17152## Main body of $CONFIG_STATUS script. ## 17153## ----------------------------------- ## 17154_ASEOF 17155test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17156 17157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17158# Save the log message, to keep $0 and so on meaningful, and to 17159# report actual input values of CONFIG_FILES etc. instead of their 17160# values after options handling. 17161ac_log=" 17162This file was extended by file $as_me 5.48, which was 17163generated by GNU Autoconf 2.72. Invocation command line was 17164 17165 CONFIG_FILES = $CONFIG_FILES 17166 CONFIG_HEADERS = $CONFIG_HEADERS 17167 CONFIG_LINKS = $CONFIG_LINKS 17168 CONFIG_COMMANDS = $CONFIG_COMMANDS 17169 $ $0 $@ 17170 17171on `(hostname || uname -n) 2>/dev/null | sed 1q` 17172" 17173 17174_ACEOF 17175 17176case $ac_config_files in *" 17177"*) set x $ac_config_files; shift; ac_config_files=$*;; 17178esac 17179 17180case $ac_config_headers in *" 17181"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17182esac 17183 17184 17185cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17186# Files that config.status was made for. 17187config_files="$ac_config_files" 17188config_headers="$ac_config_headers" 17189config_commands="$ac_config_commands" 17190 17191_ACEOF 17192 17193cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17194ac_cs_usage="\ 17195'$as_me' instantiates files and other configuration actions 17196from templates according to the current configuration. Unless the files 17197and actions are specified as TAGs, all are instantiated by default. 17198 17199Usage: $0 [OPTION]... [TAG]... 17200 17201 -h, --help print this help, then exit 17202 -V, --version print version number and configuration settings, then exit 17203 --config print configuration, then exit 17204 -q, --quiet, --silent 17205 do not print progress messages 17206 -d, --debug don't remove temporary files 17207 --recheck update $as_me by reconfiguring in the same conditions 17208 --file=FILE[:TEMPLATE] 17209 instantiate the configuration file FILE 17210 --header=FILE[:TEMPLATE] 17211 instantiate the configuration header FILE 17212 17213Configuration files: 17214$config_files 17215 17216Configuration headers: 17217$config_headers 17218 17219Configuration commands: 17220$config_commands 17221 17222Report bugs to <christos@astron.com>." 17223 17224_ACEOF 17225ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 17226ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 17227cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17228ac_cs_config='$ac_cs_config_escaped' 17229ac_cs_version="\\ 17230file config.status 5.48 17231configured by $0, generated by GNU Autoconf 2.72, 17232 with options \\"\$ac_cs_config\\" 17233 17234Copyright (C) 2023 Free Software Foundation, Inc. 17235This config.status script is free software; the Free Software Foundation 17236gives unlimited permission to copy, distribute and modify it." 17237 17238ac_pwd='$ac_pwd' 17239srcdir='$srcdir' 17240INSTALL='$INSTALL' 17241MKDIR_P='$MKDIR_P' 17242AWK='$AWK' 17243test -n "\$AWK" || AWK=awk 17244_ACEOF 17245 17246cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17247# The default lists apply if the user does not specify any file. 17248ac_need_defaults=: 17249while test $# != 0 17250do 17251 case $1 in 17252 --*=?*) 17253 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17254 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17255 ac_shift=: 17256 ;; 17257 --*=) 17258 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17259 ac_optarg= 17260 ac_shift=: 17261 ;; 17262 *) 17263 ac_option=$1 17264 ac_optarg=$2 17265 ac_shift=shift 17266 ;; 17267 esac 17268 17269 case $ac_option in 17270 # Handling of the options. 17271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17272 ac_cs_recheck=: ;; 17273 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17274 printf "%s\n" "$ac_cs_version"; exit ;; 17275 --config | --confi | --conf | --con | --co | --c ) 17276 printf "%s\n" "$ac_cs_config"; exit ;; 17277 --debug | --debu | --deb | --de | --d | -d ) 17278 debug=: ;; 17279 --file | --fil | --fi | --f ) 17280 $ac_shift 17281 case $ac_optarg in 17282 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17283 '') as_fn_error $? "missing file argument" ;; 17284 esac 17285 as_fn_append CONFIG_FILES " '$ac_optarg'" 17286 ac_need_defaults=false;; 17287 --header | --heade | --head | --hea ) 17288 $ac_shift 17289 case $ac_optarg in 17290 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17291 esac 17292 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17293 ac_need_defaults=false;; 17294 --he | --h) 17295 # Conflict between --help and --header 17296 as_fn_error $? "ambiguous option: '$1' 17297Try '$0 --help' for more information.";; 17298 --help | --hel | -h ) 17299 printf "%s\n" "$ac_cs_usage"; exit ;; 17300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17301 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17302 ac_cs_silent=: ;; 17303 17304 # This is an error. 17305 -*) as_fn_error $? "unrecognized option: '$1' 17306Try '$0 --help' for more information." ;; 17307 17308 *) as_fn_append ac_config_targets " $1" 17309 ac_need_defaults=false ;; 17310 17311 esac 17312 shift 17313done 17314 17315ac_configure_extra_args= 17316 17317if $ac_cs_silent; then 17318 exec 6>/dev/null 17319 ac_configure_extra_args="$ac_configure_extra_args --silent" 17320fi 17321 17322_ACEOF 17323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17324if \$ac_cs_recheck; then 17325 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17326 shift 17327 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 17328 CONFIG_SHELL='$SHELL' 17329 export CONFIG_SHELL 17330 exec "\$@" 17331fi 17332 17333_ACEOF 17334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17335exec 5>>config.log 17336{ 17337 echo 17338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17339## Running $as_me. ## 17340_ASBOX 17341 printf "%s\n" "$ac_log" 17342} >&5 17343 17344_ACEOF 17345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17346# 17347# INIT-COMMANDS 17348# 17349AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17350 17351 17352# The HP-UX ksh and POSIX shell print the target directory to stdout 17353# if CDPATH is set. 17354(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17355 17356sed_quote_subst='$sed_quote_subst' 17357double_quote_subst='$double_quote_subst' 17358delay_variable_subst='$delay_variable_subst' 17359macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17360macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17361enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17362pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17363enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17364enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17365shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17366SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17367ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17368PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17369host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17370host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17371host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17372build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17373build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17374build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17375SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17376Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17377GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17378EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17379FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17380LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17381NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17382LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17383max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17384ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17385exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17386lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17387lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17388lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17389lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17390lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17391reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17392reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17393FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' 17394OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17395deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17396file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17397file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17398want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17399DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17400sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17401AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17402lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 17403AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17404archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17405STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17406RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17407old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17408old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17409old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17410lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17411CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17412CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17413compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17414GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17415lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17416lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17417lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17418lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17419lt_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"`' 17420lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17421nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17422lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17423lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17424objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17425MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17426lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17427lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17428lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17429lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17430lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17431need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17432MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17433DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17434NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17435LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17436OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17437OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17438libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17439shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17440extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17441archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17442enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17443export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17444whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17445compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17446old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17447old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17448archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17449archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17450module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17451module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17452with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17453allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17454no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17455hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17456hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17457hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17458hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17459hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17460hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17461hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17462inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17463link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17464always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17465export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17466exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17467include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17468prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17469postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17470file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17471variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17472need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17473need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17474version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17475runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17476shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17477shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17478libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17479library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17480soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17481install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17482postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17483postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17484finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17485finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17486hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17487sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17488configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17489configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17490hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17491enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17492enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17493enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17494old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17495striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17496 17497LTCC='$LTCC' 17498LTCFLAGS='$LTCFLAGS' 17499compiler='$compiler_DEFAULT' 17500 17501# A function that is used when there is no print builtin or printf. 17502func_fallback_echo () 17503{ 17504 eval 'cat <<_LTECHO_EOF 17505\$1 17506_LTECHO_EOF' 17507} 17508 17509# Quote evaled strings. 17510for var in SHELL \ 17511ECHO \ 17512PATH_SEPARATOR \ 17513SED \ 17514GREP \ 17515EGREP \ 17516FGREP \ 17517LD \ 17518NM \ 17519LN_S \ 17520lt_SP2NL \ 17521lt_NL2SP \ 17522reload_flag \ 17523FILECMD \ 17524OBJDUMP \ 17525deplibs_check_method \ 17526file_magic_cmd \ 17527file_magic_glob \ 17528want_nocaseglob \ 17529DLLTOOL \ 17530sharedlib_from_linklib_cmd \ 17531AR \ 17532archiver_list_spec \ 17533STRIP \ 17534RANLIB \ 17535CC \ 17536CFLAGS \ 17537compiler \ 17538lt_cv_sys_global_symbol_pipe \ 17539lt_cv_sys_global_symbol_to_cdecl \ 17540lt_cv_sys_global_symbol_to_import \ 17541lt_cv_sys_global_symbol_to_c_name_address \ 17542lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17543lt_cv_nm_interface \ 17544nm_file_list_spec \ 17545lt_cv_truncate_bin \ 17546lt_prog_compiler_no_builtin_flag \ 17547lt_prog_compiler_pic \ 17548lt_prog_compiler_wl \ 17549lt_prog_compiler_static \ 17550lt_cv_prog_compiler_c_o \ 17551need_locks \ 17552MANIFEST_TOOL \ 17553DSYMUTIL \ 17554NMEDIT \ 17555LIPO \ 17556OTOOL \ 17557OTOOL64 \ 17558shrext_cmds \ 17559export_dynamic_flag_spec \ 17560whole_archive_flag_spec \ 17561compiler_needs_object \ 17562with_gnu_ld \ 17563allow_undefined_flag \ 17564no_undefined_flag \ 17565hardcode_libdir_flag_spec \ 17566hardcode_libdir_separator \ 17567exclude_expsyms \ 17568include_expsyms \ 17569file_list_spec \ 17570variables_saved_for_relink \ 17571libname_spec \ 17572library_names_spec \ 17573soname_spec \ 17574install_override_mode \ 17575finish_eval \ 17576old_striplib \ 17577striplib; do 17578 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17579 *[\\\\\\\`\\"\\\$]*) 17580 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17581 ;; 17582 *) 17583 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17584 ;; 17585 esac 17586done 17587 17588# Double-quote double-evaled strings. 17589for var in reload_cmds \ 17590old_postinstall_cmds \ 17591old_postuninstall_cmds \ 17592old_archive_cmds \ 17593extract_expsyms_cmds \ 17594old_archive_from_new_cmds \ 17595old_archive_from_expsyms_cmds \ 17596archive_cmds \ 17597archive_expsym_cmds \ 17598module_cmds \ 17599module_expsym_cmds \ 17600export_symbols_cmds \ 17601prelink_cmds \ 17602postlink_cmds \ 17603postinstall_cmds \ 17604postuninstall_cmds \ 17605finish_cmds \ 17606sys_lib_search_path_spec \ 17607configure_time_dlsearch_path \ 17608configure_time_lt_sys_library_path; do 17609 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17610 *[\\\\\\\`\\"\\\$]*) 17611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17612 ;; 17613 *) 17614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17615 ;; 17616 esac 17617done 17618 17619ac_aux_dir='$ac_aux_dir' 17620 17621# See if we are running on zsh, and set the options that allow our 17622# commands through without removal of \ escapes INIT. 17623if test -n "\${ZSH_VERSION+set}"; then 17624 setopt NO_GLOB_SUBST 17625fi 17626 17627 17628 PACKAGE='$PACKAGE' 17629 VERSION='$VERSION' 17630 RM='$RM' 17631 ofile='$ofile' 17632 17633 17634 17635 17636_ACEOF 17637 17638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17639 17640# Handling of arguments. 17641for ac_config_target in $ac_config_targets 17642do 17643 case $ac_config_target in 17644 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 17645 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17646 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17647 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17648 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17649 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;; 17650 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 17651 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17652 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 17653 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;; 17654 17655 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; 17656 esac 17657done 17658 17659 17660# If the user did not use the arguments to specify the items to instantiate, 17661# then the envvar interface is used. Set only those that are not. 17662# We use the long form for the default assignment because of an extremely 17663# bizarre bug on SunOS 4.1.3. 17664if $ac_need_defaults; then 17665 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 17666 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 17667 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 17668fi 17669 17670# Have a temporary directory for convenience. Make it in the build tree 17671# simply because there is no reason against having it here, and in addition, 17672# creating and moving files from /tmp can sometimes cause problems. 17673# Hook for its removal unless debugging. 17674# Note that there is a small window in which the directory will not be cleaned: 17675# after its creation but before its name has been assigned to '$tmp'. 17676$debug || 17677{ 17678 tmp= ac_tmp= 17679 trap 'exit_status=$? 17680 : "${ac_tmp:=$tmp}" 17681 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17682' 0 17683 trap 'as_fn_exit 1' 1 2 13 15 17684} 17685# Create a (secure) tmp directory for tmp files. 17686 17687{ 17688 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17689 test -d "$tmp" 17690} || 17691{ 17692 tmp=./conf$$-$RANDOM 17693 (umask 077 && mkdir "$tmp") 17694} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17695ac_tmp=$tmp 17696 17697# Set up the scripts for CONFIG_FILES section. 17698# No need to generate them if there are no CONFIG_FILES. 17699# This happens for instance with './config.status config.h'. 17700if test -n "$CONFIG_FILES"; then 17701 17702 17703ac_cr=`echo X | tr X '\015'` 17704# On cygwin, bash can eat \r inside `` if the user requested igncr. 17705# But we know of no other shell where ac_cr would be empty at this 17706# point, so we can use a bashism as a fallback. 17707if test "x$ac_cr" = x; then 17708 eval ac_cr=\$\'\\r\' 17709fi 17710ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17711if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17712 ac_cs_awk_cr='\\r' 17713else 17714 ac_cs_awk_cr=$ac_cr 17715fi 17716 17717echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17718_ACEOF 17719 17720 17721{ 17722 echo "cat >conf$$subs.awk <<_ACEOF" && 17723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17724 echo "_ACEOF" 17725} >conf$$subs.sh || 17726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17727ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17728ac_delim='%!_!# ' 17729for ac_last_try in false false false false false :; do 17730 . ./conf$$subs.sh || 17731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17732 17733 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17734 if test $ac_delim_n = $ac_delim_num; then 17735 break 17736 elif $ac_last_try; then 17737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17738 else 17739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17740 fi 17741done 17742rm -f conf$$subs.sh 17743 17744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17745cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17746_ACEOF 17747sed -n ' 17748h 17749s/^/S["/; s/!.*/"]=/ 17750p 17751g 17752s/^[^!]*!// 17753:repl 17754t repl 17755s/'"$ac_delim"'$// 17756t delim 17757:nl 17758h 17759s/\(.\{148\}\)..*/\1/ 17760t more1 17761s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17762p 17763n 17764b repl 17765:more1 17766s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17767p 17768g 17769s/.\{148\}// 17770t nl 17771:delim 17772h 17773s/\(.\{148\}\)..*/\1/ 17774t more2 17775s/["\\]/\\&/g; s/^/"/; s/$/"/ 17776p 17777b 17778:more2 17779s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17780p 17781g 17782s/.\{148\}// 17783t delim 17784' <conf$$subs.awk | sed ' 17785/^[^""]/{ 17786 N 17787 s/\n// 17788} 17789' >>$CONFIG_STATUS || ac_write_fail=1 17790rm -f conf$$subs.awk 17791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17792_ACAWK 17793cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17794 for (key in S) S_is_set[key] = 1 17795 FS = "" 17796 17797} 17798{ 17799 line = $ 0 17800 nfields = split(line, field, "@") 17801 substed = 0 17802 len = length(field[1]) 17803 for (i = 2; i < nfields; i++) { 17804 key = field[i] 17805 keylen = length(key) 17806 if (S_is_set[key]) { 17807 value = S[key] 17808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17809 len += length(value) + length(field[++i]) 17810 substed = 1 17811 } else 17812 len += 1 + keylen 17813 } 17814 17815 print line 17816} 17817 17818_ACAWK 17819_ACEOF 17820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17821if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17822 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17823else 17824 cat 17825fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17826 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17827_ACEOF 17828 17829# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17830# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17831# trailing colons and then remove the whole line if VPATH becomes empty 17832# (actually we leave an empty line to preserve line numbers). 17833if test "x$srcdir" = x.; then 17834 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17835h 17836s/// 17837s/^/:/ 17838s/[ ]*$/:/ 17839s/:\$(srcdir):/:/g 17840s/:\${srcdir}:/:/g 17841s/:@srcdir@:/:/g 17842s/^:*// 17843s/:*$// 17844x 17845s/\(=[ ]*\).*/\1/ 17846G 17847s/\n// 17848s/^[^=]*=[ ]*$// 17849}' 17850fi 17851 17852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17853fi # test -n "$CONFIG_FILES" 17854 17855# Set up the scripts for CONFIG_HEADERS section. 17856# No need to generate them if there are no CONFIG_HEADERS. 17857# This happens for instance with './config.status Makefile'. 17858if test -n "$CONFIG_HEADERS"; then 17859cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17860BEGIN { 17861_ACEOF 17862 17863# Transform confdefs.h into an awk script 'defines.awk', embedded as 17864# here-document in config.status, that substitutes the proper values into 17865# config.h.in to produce config.h. 17866 17867# Create a delimiter string that does not exist in confdefs.h, to ease 17868# handling of long lines. 17869ac_delim='%!_!# ' 17870for ac_last_try in false false :; do 17871 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17872 if test -z "$ac_tt"; then 17873 break 17874 elif $ac_last_try; then 17875 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17876 else 17877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17878 fi 17879done 17880 17881# For the awk script, D is an array of macro values keyed by name, 17882# likewise P contains macro parameters if any. Preserve backslash 17883# newline sequences. 17884 17885ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17886sed -n ' 17887s/.\{148\}/&'"$ac_delim"'/g 17888t rset 17889:rset 17890s/^[ ]*#[ ]*define[ ][ ]*/ / 17891t def 17892d 17893:def 17894s/\\$// 17895t bsnl 17896s/["\\]/\\&/g 17897s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17898D["\1"]=" \3"/p 17899s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17900d 17901:bsnl 17902s/["\\]/\\&/g 17903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17904D["\1"]=" \3\\\\\\n"\\/p 17905t cont 17906s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17907t cont 17908d 17909:cont 17910n 17911s/.\{148\}/&'"$ac_delim"'/g 17912t clear 17913:clear 17914s/\\$// 17915t bsnlc 17916s/["\\]/\\&/g; s/^/"/; s/$/"/p 17917d 17918:bsnlc 17919s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17920b cont 17921' <confdefs.h | sed ' 17922s/'"$ac_delim"'/"\\\ 17923"/g' >>$CONFIG_STATUS || ac_write_fail=1 17924 17925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17926 for (key in D) D_is_set[key] = 1 17927 FS = "" 17928} 17929/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17930 line = \$ 0 17931 split(line, arg, " ") 17932 if (arg[1] == "#") { 17933 defundef = arg[2] 17934 mac1 = arg[3] 17935 } else { 17936 defundef = substr(arg[1], 2) 17937 mac1 = arg[2] 17938 } 17939 split(mac1, mac2, "(") #) 17940 macro = mac2[1] 17941 prefix = substr(line, 1, index(line, defundef) - 1) 17942 if (D_is_set[macro]) { 17943 # Preserve the white space surrounding the "#". 17944 print prefix "define", macro P[macro] D[macro] 17945 next 17946 } else { 17947 # Replace #undef with comments. This is necessary, for example, 17948 # in the case of _POSIX_SOURCE, which is predefined and required 17949 # on some systems where configure will not decide to define it. 17950 if (defundef == "undef") { 17951 print "/*", prefix defundef, macro, "*/" 17952 next 17953 } 17954 } 17955} 17956{ print } 17957_ACAWK 17958_ACEOF 17959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17960 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17961fi # test -n "$CONFIG_HEADERS" 17962 17963 17964eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17965shift 17966for ac_tag 17967do 17968 case $ac_tag in 17969 :[FHLC]) ac_mode=$ac_tag; continue;; 17970 esac 17971 case $ac_mode$ac_tag in 17972 :[FHL]*:*);; 17973 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; 17974 :[FH]-) ac_tag=-:-;; 17975 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17976 esac 17977 ac_save_IFS=$IFS 17978 IFS=: 17979 set x $ac_tag 17980 IFS=$ac_save_IFS 17981 shift 17982 ac_file=$1 17983 shift 17984 17985 case $ac_mode in 17986 :L) ac_source=$1;; 17987 :[FH]) 17988 ac_file_inputs= 17989 for ac_f 17990 do 17991 case $ac_f in 17992 -) ac_f="$ac_tmp/stdin";; 17993 *) # Look for the file first in the build tree, then in the source tree 17994 # (if the path is not absolute). The absolute path cannot be DOS-style, 17995 # because $ac_f cannot contain ':'. 17996 test -f "$ac_f" || 17997 case $ac_f in 17998 [\\/$]*) false;; 17999 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18000 esac || 18001 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; 18002 esac 18003 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18004 as_fn_append ac_file_inputs " '$ac_f'" 18005 done 18006 18007 # Let's still pretend it is 'configure' which instantiates (i.e., don't 18008 # use $as_me), people would be surprised to read: 18009 # /* config.h. Generated by config.status. */ 18010 configure_input='Generated from '` 18011 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18012 `' by configure.' 18013 if test x"$ac_file" != x-; then 18014 configure_input="$ac_file. $configure_input" 18015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18016printf "%s\n" "$as_me: creating $ac_file" >&6;} 18017 fi 18018 # Neutralize special characters interpreted by sed in replacement strings. 18019 case $configure_input in #( 18020 *\&* | *\|* | *\\* ) 18021 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 18022 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18023 *) ac_sed_conf_input=$configure_input;; 18024 esac 18025 18026 case $ac_tag in 18027 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18029 esac 18030 ;; 18031 esac 18032 18033 ac_dir=`$as_dirname -- "$ac_file" || 18034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18035 X"$ac_file" : 'X\(//\)[^/]' \| \ 18036 X"$ac_file" : 'X\(//\)$' \| \ 18037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18038printf "%s\n" X"$ac_file" | 18039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18040 s//\1/ 18041 q 18042 } 18043 /^X\(\/\/\)[^/].*/{ 18044 s//\1/ 18045 q 18046 } 18047 /^X\(\/\/\)$/{ 18048 s//\1/ 18049 q 18050 } 18051 /^X\(\/\).*/{ 18052 s//\1/ 18053 q 18054 } 18055 s/.*/./; q'` 18056 as_dir="$ac_dir"; as_fn_mkdir_p 18057 ac_builddir=. 18058 18059case "$ac_dir" in 18060.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18061*) 18062 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 18063 # A ".." for each directory in $ac_dir_suffix. 18064 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18065 case $ac_top_builddir_sub in 18066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18068 esac ;; 18069esac 18070ac_abs_top_builddir=$ac_pwd 18071ac_abs_builddir=$ac_pwd$ac_dir_suffix 18072# for backward compatibility: 18073ac_top_builddir=$ac_top_build_prefix 18074 18075case $srcdir in 18076 .) # We are building in place. 18077 ac_srcdir=. 18078 ac_top_srcdir=$ac_top_builddir_sub 18079 ac_abs_top_srcdir=$ac_pwd ;; 18080 [\\/]* | ?:[\\/]* ) # Absolute name. 18081 ac_srcdir=$srcdir$ac_dir_suffix; 18082 ac_top_srcdir=$srcdir 18083 ac_abs_top_srcdir=$srcdir ;; 18084 *) # Relative name. 18085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18086 ac_top_srcdir=$ac_top_build_prefix$srcdir 18087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18088esac 18089ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18090 18091 18092 case $ac_mode in 18093 :F) 18094 # 18095 # CONFIG_FILE 18096 # 18097 18098 case $INSTALL in 18099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18100 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18101 esac 18102 ac_MKDIR_P=$MKDIR_P 18103 case $MKDIR_P in 18104 [\\/$]* | ?:[\\/]* ) ;; 18105 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18106 esac 18107_ACEOF 18108 18109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18110# If the template does not know about datarootdir, expand it. 18111# FIXME: This hack should be removed a few years after 2.60. 18112ac_datarootdir_hack=; ac_datarootdir_seen= 18113ac_sed_dataroot=' 18114/datarootdir/ { 18115 p 18116 q 18117} 18118/@datadir@/p 18119/@docdir@/p 18120/@infodir@/p 18121/@localedir@/p 18122/@mandir@/p' 18123case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18124*datarootdir*) ac_datarootdir_seen=yes;; 18125*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18127printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18128_ACEOF 18129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18130 ac_datarootdir_hack=' 18131 s&@datadir@&$datadir&g 18132 s&@docdir@&$docdir&g 18133 s&@infodir@&$infodir&g 18134 s&@localedir@&$localedir&g 18135 s&@mandir@&$mandir&g 18136 s&\\\${datarootdir}&$datarootdir&g' ;; 18137esac 18138_ACEOF 18139 18140# Neutralize VPATH when '$srcdir' = '.'. 18141# Shell code in configure.ac might set extrasub. 18142# FIXME: do we really want to maintain this feature? 18143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18144ac_sed_extra="$ac_vpsub 18145$extrasub 18146_ACEOF 18147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18148:t 18149/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18150s|@configure_input@|$ac_sed_conf_input|;t t 18151s&@top_builddir@&$ac_top_builddir_sub&;t t 18152s&@top_build_prefix@&$ac_top_build_prefix&;t t 18153s&@srcdir@&$ac_srcdir&;t t 18154s&@abs_srcdir@&$ac_abs_srcdir&;t t 18155s&@top_srcdir@&$ac_top_srcdir&;t t 18156s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18157s&@builddir@&$ac_builddir&;t t 18158s&@abs_builddir@&$ac_abs_builddir&;t t 18159s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18160s&@INSTALL@&$ac_INSTALL&;t t 18161s&@MKDIR_P@&$ac_MKDIR_P&;t t 18162$ac_datarootdir_hack 18163" 18164eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18165 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18166 18167test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18168 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18169 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18170 "$ac_tmp/out"`; test -z "$ac_out"; } && 18171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' 18172which seems to be undefined. Please make sure it is defined" >&5 18173printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' 18174which seems to be undefined. Please make sure it is defined" >&2;} 18175 18176 rm -f "$ac_tmp/stdin" 18177 case $ac_file in 18178 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18179 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18180 esac \ 18181 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18182 ;; 18183 :H) 18184 # 18185 # CONFIG_HEADER 18186 # 18187 if test x"$ac_file" != x-; then 18188 { 18189 printf "%s\n" "/* $configure_input */" >&1 \ 18190 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18191 } >"$ac_tmp/config.h" \ 18192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18193 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18195printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 18196 else 18197 rm -f "$ac_file" 18198 mv "$ac_tmp/config.h" "$ac_file" \ 18199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18200 fi 18201 else 18202 printf "%s\n" "/* $configure_input */" >&1 \ 18203 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18204 || as_fn_error $? "could not create -" "$LINENO" 5 18205 fi 18206# Compute "$ac_file"'s index in $config_headers. 18207_am_arg="$ac_file" 18208_am_stamp_count=1 18209for _am_header in $config_headers :; do 18210 case $_am_header in 18211 $_am_arg | $_am_arg:* ) 18212 break ;; 18213 * ) 18214 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18215 esac 18216done 18217echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18218$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18219 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18220 X"$_am_arg" : 'X\(//\)$' \| \ 18221 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18222printf "%s\n" X"$_am_arg" | 18223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18224 s//\1/ 18225 q 18226 } 18227 /^X\(\/\/\)[^/].*/{ 18228 s//\1/ 18229 q 18230 } 18231 /^X\(\/\/\)$/{ 18232 s//\1/ 18233 q 18234 } 18235 /^X\(\/\).*/{ 18236 s//\1/ 18237 q 18238 } 18239 s/.*/./; q'`/stamp-h$_am_stamp_count 18240 ;; 18241 18242 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18243printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 18244 ;; 18245 esac 18246 18247 18248 case $ac_file$ac_mode in 18249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18250 # Older Autoconf quotes --file arguments for eval, but not when files 18251 # are listed without --file. Let's play safe and only enable the eval 18252 # if we detect the quoting. 18253 # TODO: see whether this extra hack can be removed once we start 18254 # requiring Autoconf 2.70 or later. 18255 case $CONFIG_FILES in #( 18256 *\'*) : 18257 eval set x "$CONFIG_FILES" ;; #( 18258 *) : 18259 set x $CONFIG_FILES ;; #( 18260 *) : 18261 ;; 18262esac 18263 shift 18264 # Used to flag and report bootstrapping failures. 18265 am_rc=0 18266 for am_mf 18267 do 18268 # Strip MF so we end up with the name of the file. 18269 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` 18270 # Check whether this is an Automake generated Makefile which includes 18271 # dependency-tracking related rules and includes. 18272 # Grep'ing the whole file directly is not great: AIX grep has a line 18273 # limit of 2048, but all sed's we know have understand at least 4000. 18274 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18275 || continue 18276 am_dirpart=`$as_dirname -- "$am_mf" || 18277$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18278 X"$am_mf" : 'X\(//\)[^/]' \| \ 18279 X"$am_mf" : 'X\(//\)$' \| \ 18280 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18281printf "%s\n" X"$am_mf" | 18282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18283 s//\1/ 18284 q 18285 } 18286 /^X\(\/\/\)[^/].*/{ 18287 s//\1/ 18288 q 18289 } 18290 /^X\(\/\/\)$/{ 18291 s//\1/ 18292 q 18293 } 18294 /^X\(\/\).*/{ 18295 s//\1/ 18296 q 18297 } 18298 s/.*/./; q'` 18299 am_filepart=`$as_basename -- "$am_mf" || 18300$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18301 X"$am_mf" : 'X\(//\)$' \| \ 18302 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18303printf "%s\n" X/"$am_mf" | 18304 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18305 s//\1/ 18306 q 18307 } 18308 /^X\/\(\/\/\)$/{ 18309 s//\1/ 18310 q 18311 } 18312 /^X\/\(\/\).*/{ 18313 s//\1/ 18314 q 18315 } 18316 s/.*/./; q'` 18317 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18318 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18319 | $MAKE -f - am--depfiles" >&5 18320 (cd "$am_dirpart" \ 18321 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18322 | $MAKE -f - am--depfiles) >&5 2>&5 18323 ac_status=$? 18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18325 (exit $ac_status); } || am_rc=$? 18326 done 18327 if test $am_rc -ne 0; then 18328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 18329printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} 18330as_fn_error $? "Something went wrong bootstrapping makefile fragments 18331 for automatic dependency tracking. If GNU make was not used, consider 18332 re-running the configure script with MAKE=\"gmake\" (or whatever is 18333 necessary). You can also try re-running configure with the 18334 '--disable-dependency-tracking' option to at least be able to build 18335 the package (albeit without support for automatic dependency tracking). 18336See 'config.log' for more details" "$LINENO" 5; } 18337 fi 18338 { am_dirpart=; unset am_dirpart;} 18339 { am_filepart=; unset am_filepart;} 18340 { am_mf=; unset am_mf;} 18341 { am_rc=; unset am_rc;} 18342 rm -f conftest-deps.mk 18343} 18344 ;; 18345 "libtool":C) 18346 18347 # See if we are running on zsh, and set the options that allow our 18348 # commands through without removal of \ escapes. 18349 if test -n "${ZSH_VERSION+set}"; then 18350 setopt NO_GLOB_SUBST 18351 fi 18352 18353 cfgfile=${ofile}T 18354 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18355 $RM "$cfgfile" 18356 18357 cat <<_LT_EOF >> "$cfgfile" 18358#! $SHELL 18359# Generated automatically by $as_me ($PACKAGE) $VERSION 18360# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18361# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18362 18363# Provide generalized library-building support services. 18364# Written by Gordon Matzigkeit, 1996 18365 18366# Copyright (C) 2014 Free Software Foundation, Inc. 18367# This is free software; see the source for copying conditions. There is NO 18368# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18369 18370# GNU Libtool is free software; you can redistribute it and/or modify 18371# it under the terms of the GNU General Public License as published by 18372# the Free Software Foundation; either version 2 of of the License, or 18373# (at your option) any later version. 18374# 18375# As a special exception to the GNU General Public License, if you 18376# distribute this file as part of a program or library that is built 18377# using GNU Libtool, you may include this file under the same 18378# distribution terms that you use for the rest of that program. 18379# 18380# GNU Libtool is distributed in the hope that it will be useful, but 18381# WITHOUT ANY WARRANTY; without even the implied warranty of 18382# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18383# GNU General Public License for more details. 18384# 18385# You should have received a copy of the GNU General Public License 18386# along with this program. If not, see <http://www.gnu.org/licenses/>. 18387 18388 18389# The names of the tagged configurations supported by this script. 18390available_tags='' 18391 18392# Configured defaults for sys_lib_dlsearch_path munging. 18393: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18394 18395# ### BEGIN LIBTOOL CONFIG 18396 18397# Which release of libtool.m4 was used? 18398macro_version=$macro_version 18399macro_revision=$macro_revision 18400 18401# Whether or not to build static libraries. 18402build_old_libs=$enable_static 18403 18404# What type of objects to build. 18405pic_mode=$pic_mode 18406 18407# Whether or not to build shared libraries. 18408build_libtool_libs=$enable_shared 18409 18410# Whether or not to optimize for fast installation. 18411fast_install=$enable_fast_install 18412 18413# Shared archive member basename,for filename based shared library versioning on AIX. 18414shared_archive_member_spec=$shared_archive_member_spec 18415 18416# Shell to use when invoking shell scripts. 18417SHELL=$lt_SHELL 18418 18419# An echo program that protects backslashes. 18420ECHO=$lt_ECHO 18421 18422# The PATH separator for the build system. 18423PATH_SEPARATOR=$lt_PATH_SEPARATOR 18424 18425# The host system. 18426host_alias=$host_alias 18427host=$host 18428host_os=$host_os 18429 18430# The build system. 18431build_alias=$build_alias 18432build=$build 18433build_os=$build_os 18434 18435# A sed program that does not truncate output. 18436SED=$lt_SED 18437 18438# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18439Xsed="\$SED -e 1s/^X//" 18440 18441# A grep program that handles long lines. 18442GREP=$lt_GREP 18443 18444# An ERE matcher. 18445EGREP=$lt_EGREP 18446 18447# A literal string matcher. 18448FGREP=$lt_FGREP 18449 18450# A BSD- or MS-compatible name lister. 18451NM=$lt_NM 18452 18453# Whether we need soft or hard links. 18454LN_S=$lt_LN_S 18455 18456# What is the maximum length of a command? 18457max_cmd_len=$max_cmd_len 18458 18459# Object file suffix (normally "o"). 18460objext=$ac_objext 18461 18462# Executable file suffix (normally ""). 18463exeext=$exeext 18464 18465# whether the shell understands "unset". 18466lt_unset=$lt_unset 18467 18468# turn spaces into newlines. 18469SP2NL=$lt_lt_SP2NL 18470 18471# turn newlines into spaces. 18472NL2SP=$lt_lt_NL2SP 18473 18474# convert \$build file names to \$host format. 18475to_host_file_cmd=$lt_cv_to_host_file_cmd 18476 18477# convert \$build files to toolchain format. 18478to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18479 18480# A file(cmd) program that detects file types. 18481FILECMD=$lt_FILECMD 18482 18483# An object symbol dumper. 18484OBJDUMP=$lt_OBJDUMP 18485 18486# Method to check whether dependent libraries are shared objects. 18487deplibs_check_method=$lt_deplibs_check_method 18488 18489# Command to use when deplibs_check_method = "file_magic". 18490file_magic_cmd=$lt_file_magic_cmd 18491 18492# How to find potential files when deplibs_check_method = "file_magic". 18493file_magic_glob=$lt_file_magic_glob 18494 18495# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18496want_nocaseglob=$lt_want_nocaseglob 18497 18498# DLL creation program. 18499DLLTOOL=$lt_DLLTOOL 18500 18501# Command to associate shared and link libraries. 18502sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18503 18504# The archiver. 18505AR=$lt_AR 18506 18507# Flags to create an archive (by configure). 18508lt_ar_flags=$lt_ar_flags 18509 18510# Flags to create an archive. 18511AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 18512 18513# How to feed a file listing to the archiver. 18514archiver_list_spec=$lt_archiver_list_spec 18515 18516# A symbol stripping program. 18517STRIP=$lt_STRIP 18518 18519# Commands used to install an old-style archive. 18520RANLIB=$lt_RANLIB 18521old_postinstall_cmds=$lt_old_postinstall_cmds 18522old_postuninstall_cmds=$lt_old_postuninstall_cmds 18523 18524# Whether to use a lock for old archive extraction. 18525lock_old_archive_extraction=$lock_old_archive_extraction 18526 18527# A C compiler. 18528LTCC=$lt_CC 18529 18530# LTCC compiler flags. 18531LTCFLAGS=$lt_CFLAGS 18532 18533# Take the output of nm and produce a listing of raw symbols and C names. 18534global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18535 18536# Transform the output of nm in a proper C declaration. 18537global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18538 18539# Transform the output of nm into a list of symbols to manually relocate. 18540global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18541 18542# Transform the output of nm in a C name address pair. 18543global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18544 18545# Transform the output of nm in a C name address pair when lib prefix is needed. 18546global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18547 18548# The name lister interface. 18549nm_interface=$lt_lt_cv_nm_interface 18550 18551# Specify filename containing input files for \$NM. 18552nm_file_list_spec=$lt_nm_file_list_spec 18553 18554# The root where to search for dependent libraries,and where our libraries should be installed. 18555lt_sysroot=$lt_sysroot 18556 18557# Command to truncate a binary pipe. 18558lt_truncate_bin=$lt_lt_cv_truncate_bin 18559 18560# The name of the directory that contains temporary libtool files. 18561objdir=$objdir 18562 18563# Used to examine libraries when file_magic_cmd begins with "file". 18564MAGIC_CMD=$MAGIC_CMD 18565 18566# Must we lock files when doing compilation? 18567need_locks=$lt_need_locks 18568 18569# Manifest tool. 18570MANIFEST_TOOL=$lt_MANIFEST_TOOL 18571 18572# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18573DSYMUTIL=$lt_DSYMUTIL 18574 18575# Tool to change global to local symbols on Mac OS X. 18576NMEDIT=$lt_NMEDIT 18577 18578# Tool to manipulate fat objects and archives on Mac OS X. 18579LIPO=$lt_LIPO 18580 18581# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18582OTOOL=$lt_OTOOL 18583 18584# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18585OTOOL64=$lt_OTOOL64 18586 18587# Old archive suffix (normally "a"). 18588libext=$libext 18589 18590# Shared library suffix (normally ".so"). 18591shrext_cmds=$lt_shrext_cmds 18592 18593# The commands to extract the exported symbol list from a shared archive. 18594extract_expsyms_cmds=$lt_extract_expsyms_cmds 18595 18596# Variables whose values should be saved in libtool wrapper scripts and 18597# restored at link time. 18598variables_saved_for_relink=$lt_variables_saved_for_relink 18599 18600# Do we need the "lib" prefix for modules? 18601need_lib_prefix=$need_lib_prefix 18602 18603# Do we need a version for libraries? 18604need_version=$need_version 18605 18606# Library versioning type. 18607version_type=$version_type 18608 18609# Shared library runtime path variable. 18610runpath_var=$runpath_var 18611 18612# Shared library path variable. 18613shlibpath_var=$shlibpath_var 18614 18615# Is shlibpath searched before the hard-coded library search path? 18616shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18617 18618# Format of library name prefix. 18619libname_spec=$lt_libname_spec 18620 18621# List of archive names. First name is the real one, the rest are links. 18622# The last name is the one that the linker finds with -lNAME 18623library_names_spec=$lt_library_names_spec 18624 18625# The coded name of the library, if different from the real name. 18626soname_spec=$lt_soname_spec 18627 18628# Permission mode override for installation of shared libraries. 18629install_override_mode=$lt_install_override_mode 18630 18631# Command to use after installation of a shared archive. 18632postinstall_cmds=$lt_postinstall_cmds 18633 18634# Command to use after uninstallation of a shared archive. 18635postuninstall_cmds=$lt_postuninstall_cmds 18636 18637# Commands used to finish a libtool library installation in a directory. 18638finish_cmds=$lt_finish_cmds 18639 18640# As "finish_cmds", except a single script fragment to be evaled but 18641# not shown. 18642finish_eval=$lt_finish_eval 18643 18644# Whether we should hardcode library paths into libraries. 18645hardcode_into_libs=$hardcode_into_libs 18646 18647# Compile-time system search path for libraries. 18648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18649 18650# Detected run-time system search path for libraries. 18651sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18652 18653# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18654configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18655 18656# Whether dlopen is supported. 18657dlopen_support=$enable_dlopen 18658 18659# Whether dlopen of programs is supported. 18660dlopen_self=$enable_dlopen_self 18661 18662# Whether dlopen of statically linked programs is supported. 18663dlopen_self_static=$enable_dlopen_self_static 18664 18665# Commands to strip libraries. 18666old_striplib=$lt_old_striplib 18667striplib=$lt_striplib 18668 18669 18670# The linker used to build libraries. 18671LD=$lt_LD 18672 18673# How to create reloadable object files. 18674reload_flag=$lt_reload_flag 18675reload_cmds=$lt_reload_cmds 18676 18677# Commands used to build an old-style archive. 18678old_archive_cmds=$lt_old_archive_cmds 18679 18680# A language specific compiler. 18681CC=$lt_compiler 18682 18683# Is the compiler the GNU compiler? 18684with_gcc=$GCC 18685 18686# Compiler flag to turn off builtin functions. 18687no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18688 18689# Additional compiler flags for building library objects. 18690pic_flag=$lt_lt_prog_compiler_pic 18691 18692# How to pass a linker flag through the compiler. 18693wl=$lt_lt_prog_compiler_wl 18694 18695# Compiler flag to prevent dynamic linking. 18696link_static_flag=$lt_lt_prog_compiler_static 18697 18698# Does compiler simultaneously support -c and -o options? 18699compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18700 18701# Whether or not to add -lc for building shared libraries. 18702build_libtool_need_lc=$archive_cmds_need_lc 18703 18704# Whether or not to disallow shared libs when runtime libs are static. 18705allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18706 18707# Compiler flag to allow reflexive dlopens. 18708export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18709 18710# Compiler flag to generate shared objects directly from archives. 18711whole_archive_flag_spec=$lt_whole_archive_flag_spec 18712 18713# Whether the compiler copes with passing no objects directly. 18714compiler_needs_object=$lt_compiler_needs_object 18715 18716# Create an old-style archive from a shared archive. 18717old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18718 18719# Create a temporary old-style archive to link instead of a shared archive. 18720old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18721 18722# Commands used to build a shared archive. 18723archive_cmds=$lt_archive_cmds 18724archive_expsym_cmds=$lt_archive_expsym_cmds 18725 18726# Commands used to build a loadable module if different from building 18727# a shared archive. 18728module_cmds=$lt_module_cmds 18729module_expsym_cmds=$lt_module_expsym_cmds 18730 18731# Whether we are building with GNU ld or not. 18732with_gnu_ld=$lt_with_gnu_ld 18733 18734# Flag that allows shared libraries with undefined symbols to be built. 18735allow_undefined_flag=$lt_allow_undefined_flag 18736 18737# Flag that enforces no undefined symbols. 18738no_undefined_flag=$lt_no_undefined_flag 18739 18740# Flag to hardcode \$libdir into a binary during linking. 18741# This must work even if \$libdir does not exist 18742hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18743 18744# Whether we need a single "-rpath" flag with a separated argument. 18745hardcode_libdir_separator=$lt_hardcode_libdir_separator 18746 18747# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18748# DIR into the resulting binary. 18749hardcode_direct=$hardcode_direct 18750 18751# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18752# DIR into the resulting binary and the resulting library dependency is 18753# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18754# library is relocated. 18755hardcode_direct_absolute=$hardcode_direct_absolute 18756 18757# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18758# into the resulting binary. 18759hardcode_minus_L=$hardcode_minus_L 18760 18761# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18762# into the resulting binary. 18763hardcode_shlibpath_var=$hardcode_shlibpath_var 18764 18765# Set to "yes" if building a shared library automatically hardcodes DIR 18766# into the library and all subsequent libraries and executables linked 18767# against it. 18768hardcode_automatic=$hardcode_automatic 18769 18770# Set to yes if linker adds runtime paths of dependent libraries 18771# to runtime path list. 18772inherit_rpath=$inherit_rpath 18773 18774# Whether libtool must link a program against all its dependency libraries. 18775link_all_deplibs=$link_all_deplibs 18776 18777# Set to "yes" if exported symbols are required. 18778always_export_symbols=$always_export_symbols 18779 18780# The commands to list exported symbols. 18781export_symbols_cmds=$lt_export_symbols_cmds 18782 18783# Symbols that should not be listed in the preloaded symbols. 18784exclude_expsyms=$lt_exclude_expsyms 18785 18786# Symbols that must always be exported. 18787include_expsyms=$lt_include_expsyms 18788 18789# Commands necessary for linking programs (against libraries) with templates. 18790prelink_cmds=$lt_prelink_cmds 18791 18792# Commands necessary for finishing linking programs. 18793postlink_cmds=$lt_postlink_cmds 18794 18795# Specify filename containing input files. 18796file_list_spec=$lt_file_list_spec 18797 18798# How to hardcode a shared library path into an executable. 18799hardcode_action=$hardcode_action 18800 18801# ### END LIBTOOL CONFIG 18802 18803_LT_EOF 18804 18805 cat <<'_LT_EOF' >> "$cfgfile" 18806 18807# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18808 18809# func_munge_path_list VARIABLE PATH 18810# ----------------------------------- 18811# VARIABLE is name of variable containing _space_ separated list of 18812# directories to be munged by the contents of PATH, which is string 18813# having a format: 18814# "DIR[:DIR]:" 18815# string "DIR[ DIR]" will be prepended to VARIABLE 18816# ":DIR[:DIR]" 18817# string "DIR[ DIR]" will be appended to VARIABLE 18818# "DIRP[:DIRP]::[DIRA:]DIRA" 18819# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18820# "DIRA[ DIRA]" will be appended to VARIABLE 18821# "DIR[:DIR]" 18822# VARIABLE will be replaced by "DIR[ DIR]" 18823func_munge_path_list () 18824{ 18825 case x$2 in 18826 x) 18827 ;; 18828 *:) 18829 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18830 ;; 18831 x:*) 18832 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18833 ;; 18834 *::*) 18835 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18836 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18837 ;; 18838 *) 18839 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18840 ;; 18841 esac 18842} 18843 18844 18845# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18846func_cc_basename () 18847{ 18848 for cc_temp in $*""; do 18849 case $cc_temp in 18850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18852 \-*) ;; 18853 *) break;; 18854 esac 18855 done 18856 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18857} 18858 18859 18860# ### END FUNCTIONS SHARED WITH CONFIGURE 18861 18862_LT_EOF 18863 18864 case $host_os in 18865 aix3*) 18866 cat <<\_LT_EOF >> "$cfgfile" 18867# AIX sometimes has problems with the GCC collect2 program. For some 18868# reason, if we set the COLLECT_NAMES environment variable, the problems 18869# vanish in a puff of smoke. 18870if test set != "${COLLECT_NAMES+set}"; then 18871 COLLECT_NAMES= 18872 export COLLECT_NAMES 18873fi 18874_LT_EOF 18875 ;; 18876 esac 18877 18878 18879 18880ltmain=$ac_aux_dir/ltmain.sh 18881 18882 18883 # We use sed instead of cat because bash on DJGPP gets confused if 18884 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18885 # text mode, it properly converts lines to CR/LF. This bash problem 18886 # is reportedly fixed, but why not run on old versions too? 18887 $SED '$q' "$ltmain" >> "$cfgfile" \ 18888 || (rm -f "$cfgfile"; exit 1) 18889 18890 mv -f "$cfgfile" "$ofile" || 18891 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18892 chmod +x "$ofile" 18893 18894 ;; 18895 18896 esac 18897done # for ac_tag 18898 18899 18900as_fn_exit 0 18901_ACEOF 18902ac_clean_files=$ac_clean_files_save 18903 18904test $ac_write_fail = 0 || 18905 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18906 18907 18908# configure is writing to config.log, and then calls config.status. 18909# config.status does its own redirection, appending to config.log. 18910# Unfortunately, on DOS this fails, as config.log is still kept open 18911# by configure, so config.status won't be able to write to it; its 18912# output is simply discarded. So we exec the FD to /dev/null, 18913# effectively closing config.log, so it can be properly (re)opened and 18914# appended to by config.status. When coming back to configure, we 18915# need to make the FD available again. 18916if test "$no_create" != yes; then 18917 ac_cs_success=: 18918 ac_config_status_args= 18919 test "$silent" = yes && 18920 ac_config_status_args="$ac_config_status_args --quiet" 18921 exec 5>/dev/null 18922 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18923 exec 5>>config.log 18924 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18925 # would make configure fail if this is the last instruction. 18926 $ac_cs_success || as_fn_exit 1 18927fi 18928if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18930printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18931fi 18932 18933 18934