2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for file 5.43.
5 # Report bugs to <christos@astron.com>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
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 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
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.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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.
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
129 *v*x* | *x*v* ) as_opts=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 *) as_dir=$as_dir/ ;;
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
242 CONFIG_SHELL=$SHELL as_have_required=yes
247 if test "x$CONFIG_SHELL" != x
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279 $0: christos@astron.com about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
288 SHELL=${CONFIG_SHELL-/bin/sh}
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
299 # Portably unset VAR.
302 { eval $1=; unset $1;}
307 # as_fn_set_status STATUS
308 # -----------------------
309 # Set $? to STATUS, without forking.
317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326 # Do nothing but, unlike ":", preserve the value of $?.
335 # Create "$as_dir" as a directory, including parents if necessary.
340 -*) as_dir=./$as_dir;;
342 test -d "$as_dir" || eval $as_mkdir_p || {
346 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
349 as_dirs="'$as_qdir' $as_dirs"
350 as_dir=`$as_dirname -- "$as_dir" ||
351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352 X"$as_dir" : 'X\(//\)[^/]' \| \
353 X"$as_dir" : 'X\(//\)$' \| \
354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355 printf "%s\n" X"$as_dir" |
356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
373 test -d "$as_dir" && break
375 test -z "$as_dirs" || eval "mkdir $as_dirs"
376 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
381 # as_fn_executable_p FILE
382 # -----------------------
383 # Test if FILE is an executable regular file.
384 as_fn_executable_p ()
386 test -f "$1" && test -x "$1"
387 } # as_fn_executable_p
388 # as_fn_append VAR VALUE
389 # ----------------------
390 # Append the text in VALUE to the end of the definition contained in VAR. Take
391 # advantage of any shell optimizations that allow amortized linear growth over
392 # repeated appends, instead of the typical quadratic growth present in naive
394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 eval 'as_fn_append ()
409 # Perform arithmetic evaluation on the ARGs, and store the result in the
410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
411 # must be portable across $(()) and expr.
412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
421 as_val=`expr "$@" || test $? -eq 1`
427 # Do nothing but, unlike ":", preserve the value of $?.
434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
435 # ----------------------------------------
436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438 # script with STATUS, using 1 if that was 0.
441 as_status=$1; test $as_status -eq 0 && as_status=1
443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 printf "%s\n" "$as_me: error: $2" >&2
447 as_fn_exit $as_status
450 if expr a : '\(a\)' >/dev/null 2>&1 &&
451 test "X`expr 00001 : '.*\(...\)'`" = X001; then
457 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_me=`$as_basename -- "$0" ||
470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471 X"$0" : 'X\(//\)$' \| \
472 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473 printf "%s\n" X/"$0" |
474 sed '/^.*\/\([^/][^/]*\)\/*$/{
488 # Avoid depending upon Character Ranges.
489 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492 as_cr_digits='0123456789'
493 as_cr_alnum=$as_cr_Letters$as_cr_digits
496 as_lineno_1=$LINENO as_lineno_1a=$LINENO
497 as_lineno_2=$LINENO as_lineno_2a=$LINENO
498 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
512 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
516 chmod +x "$as_me.lineno" ||
517 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520 # already done that, so ensure we don't try to do so again and fall
521 # in an infinite loop. This has already happened in practice.
522 _as_can_reexec=no; export _as_can_reexec
523 # Don't try to exec as it changes $[0], causing all sort of problems
524 # (the dirname of $[0] is not the place where we might find the
525 # original and so on. Autoconf is especially sensitive to this).
527 # Exit status is that of the last command.
532 # Determine whether it's possible to make 'echo' print without a newline.
533 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534 # for compatibility with existing Makefiles.
535 ECHO_C= ECHO_N= ECHO_T=
536 case `echo -n x` in #(((((
538 case `echo 'xy\c'` in
539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
548 # For backward compatibility with old third-party macros, we provide
549 # the shell variables $as_echo and $as_echo_n. New code should use
550 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551 as_echo='printf %s\n'
552 as_echo_n='printf %s'
555 rm -f conf$$ conf$$.exe conf$$.file
556 if test -d conf$$.dir; then
557 rm -f conf$$.dir/conf$$.file
560 mkdir conf$$.dir 2>/dev/null
562 if (echo >conf$$.file) 2>/dev/null; then
563 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 # ... but there are two gotchas:
566 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568 # In both cases, we have to default to `cp -pR'.
569 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 elif ln conf$$.file conf$$ 2>/dev/null; then
579 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580 rmdir conf$$.dir 2>/dev/null
582 if mkdir -p . 2>/dev/null; then
583 as_mkdir_p='mkdir -p "$as_dir"'
585 test -d ./-p && rmdir ./-p
590 as_executable_p=as_fn_executable_p
592 # Sed expression to map a string onto a valid CPP name.
593 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595 # Sed expression to map a string onto a valid variable name.
596 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598 SHELL=${CONFIG_SHELL-/bin/sh}
601 test -n "$DJDIR" || exec 7<&0 </dev/null
605 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606 # so uname gets run too.
607 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
612 ac_default_prefix=/usr/local
614 ac_config_libobj_dir=.
621 # Identity of this package.
623 PACKAGE_TARNAME='file'
624 PACKAGE_VERSION='5.43'
625 PACKAGE_STRING='file 5.43'
626 PACKAGE_BUGREPORT='christos@astron.com'
629 # Factoring default headers for most tests.
630 ac_includes_default="\
641 #ifdef HAVE_INTTYPES_H
642 # include <inttypes.h>
647 #ifdef HAVE_STRINGS_H
648 # include <strings.h>
650 #ifdef HAVE_SYS_TYPES_H
651 # include <sys/types.h>
653 #ifdef HAVE_SYS_STAT_H
654 # include <sys/stat.h>
662 ac_subst_vars='am__EXEEXT_FALSE
665 IS_CROSS_COMPILE_FALSE
666 IS_CROSS_COMPILE_TRUE
739 INSTALL_STRIP_PROGRAM
782 program_transform_name
796 enable_option_checking
805 enable_dependency_tracking
817 ac_precious_vars='build_alias
828 # Initialize some variables set by options.
830 ac_init_version=false
831 ac_unrecognized_opts=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 runstatedir='${localstatedir}/run'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: \`$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
944 eval enable_$ac_useropt=no ;;
946 -docdir | --docdir | --docdi | --doc | --do)
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: \`$ac_useropt'"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
970 eval enable_$ac_useropt=\$ac_optarg ;;
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
985 -help | --help | --hel | --he | -h)
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 htmldir=$ac_optarg ;;
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1015 -libdir | --libdir | --libdi | --libd)
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1106 -psdir | --psdir | --psdi | --psd | --ps)
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1115 -runstatedir | --runstatedir | --runstatedi | --runstated \
1116 | --runstate | --runstat | --runsta | --runst | --runs \
1117 | --run | --ru | --r)
1118 ac_prev=runstatedir ;;
1119 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121 | --run=* | --ru=* | --r=*)
1122 runstatedir=$ac_optarg ;;
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 sbindir=$ac_optarg ;;
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 sharedstatedir=$ac_optarg ;;
1141 -site | --site | --sit)
1143 -site=* | --site=* | --sit=*)
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: \`$ac_useropt'"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=\$ac_optarg ;;
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: \`$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1199 eval with_$ac_useropt=no ;;
1202 # Obsolete; use --with-x.
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1234 # FIXME: should be removed in autoconf 3.0.
1235 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir runstatedir
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1270 # Be sure to have absolute directory names.
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1283 target=$target_alias
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 printf "%s\n" X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1340 ac_srcdir_defaulted=no
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1374 \`configure' configures file 5.43 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/file]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of file 5.43:";;
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --disable-elf disable builtin ELF support
1456 --disable-elf-core disable ELF core file support
1457 --disable-zlib disable zlib compression support [default=auto]
1458 --disable-bzlib disable bz2lib compression support [default=auto]
1459 --disable-xzlib disable liblzma/xz compression support
1461 --disable-libseccomp disable libseccomp sandboxing [default=auto]
1462 --enable-fsect-man5 enable file formats in man section 5
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --enable-static[=PKGS] build static libraries [default=no]
1468 --enable-shared[=PKGS] build shared libraries [default=yes]
1469 --enable-fast-install[=PKGS]
1470 optimize for fast installation [default=yes]
1471 --disable-libtool-lock avoid locking (might break parallel builds)
1472 --disable-largefile omit support for large files
1473 --disable-warnings disable compiler warnings
1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1478 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1480 --with-aix-soname=aix|svr4|both
1481 shared library versioning (aka "SONAME") variant to
1482 provide on AIX, [default=aix].
1483 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1484 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1485 compiler's sysroot if not specified).
1487 Some influential environment variables:
1488 CC C compiler command
1489 CFLAGS C compiler flags
1490 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1491 nonstandard directory <lib dir>
1492 LIBS libraries to pass to the linker, e.g. -l<library>
1493 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494 you have headers in a nonstandard directory <include dir>
1496 User-defined run-time library search path.
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1501 Report bugs to <christos@astron.com>.
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1531 .) # We are building in place.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for configure.gnu first; this name is used for a wrapper for
1548 # Metaconfig's "Configure" on case-insensitive file systems.
1549 if test -f "$ac_srcdir/configure.gnu"; then
1551 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552 elif test -f "$ac_srcdir/configure"; then
1554 $SHELL "$ac_srcdir/configure" --help=recursive
1556 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 cd "$ac_pwd" || { ac_status=$?; break; }
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1566 generated by GNU Autoconf 2.71
1568 Copyright (C) 2021 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585 rm -f conftest.$ac_objext conftest.beam
1586 if { { ac_try="$ac_compile"
1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589 *) ac_try_echo=$ac_try;;
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 printf "%s\n" "$ac_try_echo"; } >&5
1593 (eval "$ac_compile") 2>conftest.err
1595 if test -s conftest.err; then
1596 grep -v '^ *+' conftest.err >conftest.er1
1597 cat conftest.er1 >&5
1598 mv -f conftest.er1 conftest.err
1600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601 test $ac_status = 0; } && {
1602 test -z "$ac_c_werror_flag" ||
1603 test ! -s conftest.err
1604 } && test -s conftest.$ac_objext
1608 printf "%s\n" "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1616 } # ac_fn_c_try_compile
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 printf %s "checking for $2... " >&6; }
1627 if eval test \${$3+y}
1629 printf %s "(cached) " >&6
1631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632 /* end confdefs.h. */
1636 if ac_fn_c_try_compile "$LINENO"
1642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 printf "%s\n" "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 } # ac_fn_c_check_header_compile
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1654 # executables *can* be run.
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 printf "%s\n" "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }
1682 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1683 printf "%s\n" "$as_me: failed program was:" >&5
1684 sed 's/^/| /' conftest.$ac_ext >&5
1686 ac_retval=$ac_status
1688 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690 as_fn_set_status $ac_retval
1694 # ac_fn_c_try_link LINENO
1695 # -----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded.
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1701 if { { ac_try="$ac_link"
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 printf "%s\n" "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>conftest.err
1710 if test -s conftest.err; then
1711 grep -v '^ *+' conftest.err >conftest.er1
1712 cat conftest.er1 >&5
1713 mv -f conftest.er1 conftest.err
1715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && {
1717 test -z "$ac_c_werror_flag" ||
1718 test ! -s conftest.err
1719 } && test -s conftest$ac_exeext && {
1720 test "$cross_compiling" = yes ||
1721 test -x conftest$ac_exeext
1726 printf "%s\n" "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1739 } # ac_fn_c_try_link
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 printf %s "checking for $2... " >&6; }
1749 if eval test \${$3+y}
1751 printf %s "(cached) " >&6
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (); below. */
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1787 if ac_fn_c_try_link "$LINENO"
1793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1794 conftest$ac_exeext conftest.$ac_ext
1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 printf "%s\n" "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_func
1803 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1804 # -------------------------------------------
1805 # Tests whether TYPE exists after having included INCLUDES, setting cache
1806 # variable VAR accordingly.
1807 ac_fn_c_check_type ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 printf %s "checking for $2... " >&6; }
1812 if eval test \${$3+y}
1814 printf %s "(cached) " >&6
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1829 if ac_fn_c_try_compile "$LINENO"
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1843 if ac_fn_c_try_compile "$LINENO"
1849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 printf "%s\n" "$ac_res" >&6; }
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858 } # ac_fn_c_check_type
1860 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1861 # ----------------------------------------------------
1862 # Tries to find if the field MEMBER exists in type AGGR, after including
1863 # INCLUDES, setting cache variable VAR accordingly.
1864 ac_fn_c_check_member ()
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1868 printf %s "checking for $2.$3... " >&6; }
1869 if eval test \${$4+y}
1871 printf %s "(cached) " >&6
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1886 if ac_fn_c_try_compile "$LINENO"
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1897 if (sizeof ac_aggr.$3)
1903 if ac_fn_c_try_compile "$LINENO"
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915 printf "%s\n" "$ac_res" >&6; }
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 } # ac_fn_c_check_member
1920 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1921 # ------------------------------------------------------------------
1922 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 as_decl_name=`echo $2|sed 's/ *(.*//'`
1928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1929 printf %s "checking whether $as_decl_name is declared... " >&6; }
1930 if eval test \${$3+y}
1932 printf %s "(cached) " >&6
1934 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935 eval ac_save_FLAGS=\$$6
1936 as_fn_append $6 " $5"
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1943 #ifndef $as_decl_name
1945 (void) $as_decl_use;
1947 (void) $as_decl_name;
1955 if ac_fn_c_try_compile "$LINENO"
1961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1962 eval $6=\$ac_save_FLAGS
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 printf "%s\n" "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 } # ac_fn_check_decl
1972 # ac_fn_c_find_uintX_t LINENO BITS VAR
1973 # ------------------------------------
1974 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1976 ac_fn_c_find_uintX_t ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1980 printf %s "checking for uint$2_t... " >&6; }
1981 if eval test \${$3+y}
1983 printf %s "(cached) " >&6
1986 # Order is important - never check a type that is potentially smaller
1987 # than half of the expected target width.
1988 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1989 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $ac_includes_default
1996 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1998 return test_array [0];
2004 if ac_fn_c_try_compile "$LINENO"
2010 eval "$3=\$ac_type" ;;
2013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2014 if eval test \"x\$"$3"\" = x"no"
2023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 printf "%s\n" "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_find_uintX_t
2029 # ac_fn_c_find_intX_t LINENO BITS VAR
2030 # -----------------------------------
2031 # Finds a signed integer type with width BITS, setting cache variable VAR
2033 ac_fn_c_find_intX_t ()
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2037 printf %s "checking for int$2_t... " >&6; }
2038 if eval test \${$3+y}
2040 printf %s "(cached) " >&6
2043 # Order is important - never check a type that is potentially smaller
2044 # than half of the expected target width.
2045 for ac_type in int$2_t 'int' 'long int' \
2046 'long long int' 'short int' 'signed char'; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 $ac_includes_default
2050 enum { N = $2 / 2 - 1 };
2054 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2056 return test_array [0];
2062 if ac_fn_c_try_compile "$LINENO"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 $ac_includes_default
2067 enum { N = $2 / 2 - 1 };
2071 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2072 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2074 return test_array [0];
2080 if ac_fn_c_try_compile "$LINENO"
2088 eval "$3=\$ac_type" ;;
2091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2094 if eval test \"x\$"$3"\" = x"no"
2103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 printf "%s\n" "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_find_intX_t
2108 ac_configure_args_raw=
2113 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2115 as_fn_append ac_configure_args_raw " '$ac_arg'"
2118 case $ac_configure_args_raw in
2122 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2123 ac_unsafe_a="$ac_unsafe_z#~"
2124 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2125 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2128 cat >config.log <<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2132 It was created by file $as_me 5.43, which was
2133 generated by GNU Autoconf 2.71. Invocation command line was
2135 $ $0$ac_configure_args_raw
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 case $as_dir in #(((
2171 *) as_dir=$as_dir/ ;;
2173 printf "%s\n" "PATH: $as_dir"
2189 # Keep a trace of the command line.
2190 # Strip out --no-create and --no-recursion so they do not pile up.
2191 # Strip out --silent because we don't want to record it for future runs.
2192 # Also quote any args containing shell meta-characters.
2193 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_must_keep_next=false
2203 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205 | -silent | --silent | --silen | --sile | --sil)
2208 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2213 as_fn_append ac_configure_args1 " '$ac_arg'"
2214 if test $ac_must_keep_next = true; then
2215 ac_must_keep_next=false # Got value, back to normal.
2218 *=* | --config-cache | -C | -disable-* | --disable-* \
2219 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221 | -with-* | --with-* | -without-* | --without-* | --x)
2222 case "$ac_configure_args0 " in
2223 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2226 -* ) ac_must_keep_next=true ;;
2229 as_fn_append ac_configure_args " '$ac_arg'"
2234 { ac_configure_args0=; unset ac_configure_args0;}
2235 { ac_configure_args1=; unset ac_configure_args1;}
2237 # When interrupted or exit'd, cleanup temporary files, and complete
2238 # config.log. We remove comments because anyway the quotes in there
2239 # would cause problems or look ugly.
2240 # WARNING: Use '\'' to represent an apostrophe within the trap.
2241 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242 trap 'exit_status=$?
2245 # Save into config.log some information that might help in debugging.
2249 printf "%s\n" "## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##"
2253 # The following way of writing the cache mishandles newlines in values,
2255 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2256 eval ac_val=\$$ac_var
2260 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2261 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2264 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;;
2271 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2272 *${as_nl}ac_space=\ *)
2274 "s/'\''/'\''\\\\'\'''\''/g;
2275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2285 printf "%s\n" "## ----------------- ##
2286 ## Output variables. ##
2287 ## ----------------- ##"
2289 for ac_var in $ac_subst_vars
2291 eval ac_val=\$$ac_var
2293 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 printf "%s\n" "$ac_var='\''$ac_val'\''"
2299 if test -n "$ac_subst_files"; then
2300 printf "%s\n" "## ------------------- ##
2301 ## File substitutions. ##
2302 ## ------------------- ##"
2304 for ac_var in $ac_subst_files
2306 eval ac_val=\$$ac_var
2308 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 printf "%s\n" "$ac_var='\''$ac_val'\''"
2315 if test -s confdefs.h; then
2316 printf "%s\n" "## ----------- ##
2323 test "$ac_signal" != 0 &&
2324 printf "%s\n" "$as_me: caught signal $ac_signal"
2325 printf "%s\n" "$as_me: exit $exit_status"
2327 rm -f core *.core core.conftest.* &&
2328 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2331 for ac_signal in 1 2 13 15; do
2332 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2337 rm -f -r conftest* confdefs.h
2339 printf "%s\n" "/* confdefs.h */" > confdefs.h
2341 # Predefined preprocessor variables.
2343 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2345 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2347 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2349 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2351 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2353 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer an explicitly selected file to automatically selected ones.
2358 if test -n "$CONFIG_SITE"; then
2359 ac_site_files="$CONFIG_SITE"
2360 elif test "x$prefix" != xNONE; then
2361 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2363 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2366 for ac_site_file in $ac_site_files
2368 case $ac_site_file in #(
2372 ac_site_file=./$ac_site_file ;;
2374 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2376 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2377 sed 's/^/| /' "$ac_site_file" >&5
2379 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2381 as_fn_error $? "failed to load site script $ac_site_file
2382 See \`config.log' for more details" "$LINENO" 5; }
2386 if test -r "$cache_file"; then
2387 # Some versions of bash will fail to source /dev/null (special files
2388 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2389 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2391 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2393 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2394 *) . "./$cache_file";;
2398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2399 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2403 # Test code for whether the C compiler supports C89 (global declarations)
2404 ac_c_conftest_c89_globals='
2405 /* Does the compiler advertise C89 conformance?
2406 Do not test the value of __STDC__, because some compilers set it to 0
2407 while being otherwise adequately conformant. */
2408 #if !defined __STDC__
2409 # error "Compiler does not advertise C89 conformance"
2415 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2416 struct buf { int x; };
2417 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2418 static char *e (p, i)
2424 static char *f (char * (*g) (char **, int), char **p, ...)
2429 s = g (p, va_arg (v,int));
2434 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2435 function prototypes and stuff, but not \xHH hex character constants.
2436 These do not provoke an error unfortunately, instead are silently treated
2437 as an "x". The following induces an error, until -std is added to get
2438 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2439 array size at least. It is necessary to write \x00 == 0 to get something
2440 that is true only with -std. */
2441 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2443 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2444 inside strings and character constants. */
2445 #define FOO(x) '\''x'\''
2446 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2448 int test (int i, double x);
2449 struct s1 {int (*f) (int a);};
2450 struct s2 {int (*f) (double a);};
2451 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2454 # Test code for whether the C compiler supports C89 (body of main).
2455 ac_c_conftest_c89_main='
2456 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2459 # Test code for whether the C compiler supports C99 (global declarations)
2460 ac_c_conftest_c99_globals='
2461 // Does the compiler advertise C99 conformance?
2462 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2463 # error "Compiler does not advertise C99 conformance"
2466 #include <stdbool.h>
2467 extern int puts (const char *);
2468 extern int printf (const char *, ...);
2469 extern int dprintf (int, const char *, ...);
2470 extern void *malloc (size_t);
2472 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2473 // dprintf is used instead of fprintf to avoid needing to declare
2475 #define debug(...) dprintf (2, __VA_ARGS__)
2476 #define showlist(...) puts (#__VA_ARGS__)
2477 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2479 test_varargs_macros (void)
2484 debug ("X = %d\n", x);
2485 showlist (The first, second, and third items.);
2486 report (x>y, "x is %d but y is %d", x, y);
2489 // Check long long types.
2490 #define BIG64 18446744073709551615ull
2491 #define BIG32 4294967295ul
2492 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2494 #error "your preprocessor is broken"
2498 #error "your preprocessor is broken"
2500 static long long int bignum = -9223372036854775807LL;
2501 static unsigned long long int ubignum = BIG64;
2503 struct incomplete_array
2511 const wchar_t *name;
2515 typedef const char *ccp;
2518 test_restrict (ccp restrict text)
2520 // See if C++-style comments work.
2521 // Iterate through items via the restricted pointer.
2522 // Also check for declarations in for loops.
2523 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2528 // Check varargs and va_copy.
2530 test_varargs (const char *format, ...)
2533 va_start (args, format);
2535 va_copy (args_copy, args);
2537 const char *str = "";
2545 case '\''s'\'': // string
2546 str = va_arg (args_copy, const char *);
2548 case '\''d'\'': // int
2549 number = va_arg (args_copy, int);
2551 case '\''f'\'': // float
2552 fnumber = va_arg (args_copy, double);
2561 return *str && number && fnumber;
2565 # Test code for whether the C compiler supports C99 (body of main).
2566 ac_c_conftest_c99_main='
2568 _Bool success = false;
2569 success |= (argc != 0);
2572 if (test_restrict ("String literal") == 0)
2574 char *restrict newvar = "Another string";
2577 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2578 test_varargs_macros ();
2580 // Check flexible array members.
2581 struct incomplete_array *ia =
2582 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2584 for (int i = 0; i < ia->datasize; ++i)
2585 ia->data[i] = i * 1.234;
2587 // Check named initializers.
2588 struct named_init ni = {
2590 .name = L"Test wide string",
2591 .average = 543.34343,
2596 int dynamic_array[ni.number];
2597 dynamic_array[0] = argv[0][0];
2598 dynamic_array[ni.number - 1] = 543;
2600 // work around unused variable warnings
2601 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2602 || dynamic_array[ni.number - 1] != 543);
2605 # Test code for whether the C compiler supports C11 (global declarations)
2606 ac_c_conftest_c11_globals='
2607 // Does the compiler advertise C11 conformance?
2608 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2609 # error "Compiler does not advertise C11 conformance"
2613 char _Alignas (double) aligned_as_double;
2614 char _Alignas (0) no_special_alignment;
2615 extern char aligned_as_int;
2616 char _Alignas (0) _Alignas (int) aligned_as_int;
2621 int_alignment = _Alignof (int),
2622 int_array_alignment = _Alignof (int[100]),
2623 char_alignment = _Alignof (char)
2625 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2628 int _Noreturn does_not_return (void) { for (;;) continue; }
2630 // Check _Static_assert.
2631 struct test_static_assert
2634 _Static_assert (sizeof (int) <= sizeof (long int),
2635 "_Static_assert does not work in struct");
2639 // Check UTF-8 literals.
2640 #define u8 syntax error!
2641 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2643 // Check duplicate typedefs.
2644 typedef long *long_ptr;
2645 typedef long int *long_ptr;
2646 typedef long_ptr long_ptr;
2648 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2652 struct { int i; int j; };
2653 struct { int k; long int l; } w;
2659 # Test code for whether the C compiler supports C11 (body of main).
2660 ac_c_conftest_c11_main='
2661 _Static_assert ((offsetof (struct anonymous, i)
2662 == offsetof (struct anonymous, w.k)),
2663 "Anonymous union alignment botch");
2669 # Test code for whether the C compiler supports C11 (complete).
2670 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2671 ${ac_c_conftest_c99_globals}
2672 ${ac_c_conftest_c11_globals}
2675 main (int argc, char **argv)
2678 ${ac_c_conftest_c89_main}
2679 ${ac_c_conftest_c99_main}
2680 ${ac_c_conftest_c11_main}
2685 # Test code for whether the C compiler supports C99 (complete).
2686 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2687 ${ac_c_conftest_c99_globals}
2690 main (int argc, char **argv)
2693 ${ac_c_conftest_c89_main}
2694 ${ac_c_conftest_c99_main}
2699 # Test code for whether the C compiler supports C89 (complete).
2700 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2703 main (int argc, char **argv)
2706 ${ac_c_conftest_c89_main}
2711 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2712 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2713 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2714 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2715 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2716 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2717 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2718 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2719 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2720 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2721 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2722 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2723 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
2724 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2725 as_fn_append ac_func_c_list " fork HAVE_FORK"
2726 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2728 # Auxiliary files required by this configure script.
2729 ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
2731 # Locations in which to look for auxiliary files.
2732 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2734 # Search for a directory containing all of the required auxiliary files,
2735 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2736 # If we don't find one directory that contains all the files we need,
2737 # we report the set of missing files from the *first* directory in
2738 # $ac_aux_dir_candidates and give up.
2739 ac_missing_aux_files=""
2740 ac_first_candidate=:
2741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $ac_aux_dir_candidates
2747 case $as_dir in #(((
2750 *) as_dir=$as_dir/ ;;
2754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2755 ac_aux_dir_found=yes
2757 for ac_aux in $ac_aux_files
2759 # As a special case, if "install-sh" is required, that requirement
2760 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2761 # and $ac_install_sh is set appropriately for whichever one is found.
2762 if test x"$ac_aux" = x"install-sh"
2764 if test -f "${as_dir}install-sh"; then
2765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2766 ac_install_sh="${as_dir}install-sh -c"
2767 elif test -f "${as_dir}install.sh"; then
2768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2769 ac_install_sh="${as_dir}install.sh -c"
2770 elif test -f "${as_dir}shtool"; then
2771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2772 ac_install_sh="${as_dir}shtool install -c"
2775 if $ac_first_candidate; then
2776 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2782 if test -f "${as_dir}${ac_aux}"; then
2783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2786 if $ac_first_candidate; then
2787 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2794 if test "$ac_aux_dir_found" = yes; then
2795 ac_aux_dir="$as_dir"
2798 ac_first_candidate=false
2807 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2811 # These three variables are undocumented and unsupported,
2812 # and are intended to be withdrawn in a future Autoconf release.
2813 # They can cause serious problems if a builder's source tree is in a directory
2814 # whose full name contains unusual characters.
2815 if test -f "${ac_aux_dir}config.guess"; then
2816 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2818 if test -f "${ac_aux_dir}config.sub"; then
2819 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2821 if test -f "$ac_aux_dir/configure"; then
2822 ac_configure="$SHELL ${ac_aux_dir}configure"
2825 # Check that the precious variables saved in the cache have kept the same
2827 ac_cache_corrupted=false
2828 for ac_var in $ac_precious_vars; do
2829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2830 eval ac_new_set=\$ac_env_${ac_var}_set
2831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2832 eval ac_new_val=\$ac_env_${ac_var}_value
2833 case $ac_old_set,$ac_new_set in
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2836 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2837 ac_cache_corrupted=: ;;
2839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2840 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2841 ac_cache_corrupted=: ;;
2844 if test "x$ac_old_val" != "x$ac_new_val"; then
2845 # differences in whitespace do not lead to failure.
2846 ac_old_val_w=`echo x $ac_old_val`
2847 ac_new_val_w=`echo x $ac_new_val`
2848 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2850 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2851 ac_cache_corrupted=:
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2854 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2855 eval $ac_var=\$ac_old_val
2857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2858 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2860 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2863 # Pass precious variables to config.status.
2864 if test "$ac_new_set" = set; then
2866 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2867 *) ac_arg=$ac_var=$ac_new_val ;;
2869 case " $ac_configure_args " in
2870 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2871 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2875 if $ac_cache_corrupted; then
2876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2879 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2880 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2881 and start over" "$LINENO" 5
2883 ## -------------------- ##
2884 ## Main body of script. ##
2885 ## -------------------- ##
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2894 am__api_version='1.16'
2898 # Find a good install program. We prefer a C program (faster),
2899 # so one script is as good as another. But avoid the broken or
2900 # incompatible versions:
2901 # SysV /etc/install, /usr/sbin/install
2902 # SunOS /usr/etc/install
2903 # IRIX /sbin/install
2905 # AmigaOS /C/install, which installs bootblocks on floppy discs
2906 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2907 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2908 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2909 # OS/2's system install, which has a completely different semantic
2910 # ./install, which can be erroneously created by make from ./install.sh.
2911 # Reject install programs that cannot install multiple files.
2912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2913 printf %s "checking for a BSD-compatible install... " >&6; }
2914 if test -z "$INSTALL"; then
2915 if test ${ac_cv_path_install+y}
2917 printf %s "(cached) " >&6
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 case $as_dir in #(((
2926 *) as_dir=$as_dir/ ;;
2928 # Account for fact that we put trailing slashes in our PATH walk.
2931 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2932 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2935 # OSF1 and SCO ODT 3.0 have their own names for install.
2936 # Don't use installbsd from OSF since it installs stuff as root
2938 for ac_prog in ginstall scoinst install; do
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2941 if test $ac_prog = install &&
2942 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2943 # AIX install. It has an incompatible calling convention.
2945 elif test $ac_prog = install &&
2946 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2947 # program-specific install script used by HP pwplus--don't use.
2950 rm -rf conftest.one conftest.two conftest.dir
2951 echo one > conftest.one
2952 echo two > conftest.two
2954 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2955 test -s conftest.one && test -s conftest.two &&
2956 test -s conftest.dir/conftest.one &&
2957 test -s conftest.dir/conftest.two
2959 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2972 rm -rf conftest.one conftest.two conftest.dir
2975 if test ${ac_cv_path_install+y}; then
2976 INSTALL=$ac_cv_path_install
2978 # As a last resort, use the slow shell script. Don't cache a
2979 # value for INSTALL within a source directory, because that will
2980 # break other packages using the cache if that directory is
2981 # removed, or if the value is a relative name.
2982 INSTALL=$ac_install_sh
2985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2986 printf "%s\n" "$INSTALL" >&6; }
2988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2989 # It thinks the first close brace ends the variable substitution.
2990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2997 printf %s "checking whether build environment is sane... " >&6; }
2998 # Reject unsafe characters in $srcdir or the absolute working directory
2999 # name. Accept space and tab only in the latter.
3003 *[\\\"\#\$\&\'\`$am_lf]*)
3004 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3007 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3008 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3011 # Do 'set' in a subshell so we don't clobber the current shell's
3012 # arguments. Must try -L first in case configure is actually a
3013 # symlink; some systems play weird games with the mod time of symlinks
3014 # (eg FreeBSD returns the mod time of the symlink's containing
3018 for am_try in 1 2; do
3019 echo "timestamp, slept: $am_has_slept" > conftest.file
3020 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3021 if test "$*" = "X"; then
3023 set X `ls -t "$srcdir/configure" conftest.file`
3025 if test "$*" != "X $srcdir/configure conftest.file" \
3026 && test "$*" != "X conftest.file $srcdir/configure"; then
3028 # If neither matched, then we have a broken ls. This can happen
3029 # if, for instance, CONFIG_SHELL is bash and it inherits a
3030 # broken ls alias from the environment. This has actually
3031 # happened. Such a system could not be considered "sane".
3032 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3033 alias in your environment" "$LINENO" 5
3035 if test "$2" = conftest.file || test $am_try -eq 2; then
3042 test "$2" = conftest.file
3048 as_fn_error $? "newly created file is older than distributed files!
3049 Check your system clock" "$LINENO" 5
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 printf "%s\n" "yes" >&6; }
3053 # If we didn't sleep, we still need to ensure time stamps of config.status and
3054 # generated files are strictly newer.
3056 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3063 test "$program_prefix" != NONE &&
3064 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3065 # Use a double $ so make ignores it.
3066 test "$program_suffix" != NONE &&
3067 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3068 # Double any \ or $.
3069 # By default was `s,x,x', remove it if useless.
3070 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3071 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3074 # Expand $ac_aux_dir to an absolute path.
3075 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3078 if test x"${MISSING+set}" != xset; then
3079 MISSING="\${SHELL} '$am_aux_dir/missing'"
3081 # Use eval to expand $SHELL
3082 if eval "$MISSING --is-lightweight"; then
3083 am_missing_run="$MISSING "
3086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3087 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3090 if test x"${install_sh+set}" != xset; then
3093 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3095 install_sh="\${SHELL} $am_aux_dir/install-sh"
3099 # Installed binaries are usually stripped using 'strip' when the user
3100 # run "make install-strip". However 'strip' might not be the right
3101 # tool to use in cross-compilation environments, therefore Automake
3102 # will honor the 'STRIP' environment variable to overrule this program.
3103 if test "$cross_compiling" != no; then
3104 if test -n "$ac_tool_prefix"; then
3105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3106 set dummy ${ac_tool_prefix}strip; ac_word=$2
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 printf %s "checking for $ac_word... " >&6; }
3109 if test ${ac_cv_prog_STRIP+y}
3111 printf %s "(cached) " >&6
3113 if test -n "$STRIP"; then
3114 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120 case $as_dir in #(((
3123 *) as_dir=$as_dir/ ;;
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3137 STRIP=$ac_cv_prog_STRIP
3138 if test -n "$STRIP"; then
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3140 printf "%s\n" "$STRIP" >&6; }
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 printf "%s\n" "no" >&6; }
3148 if test -z "$ac_cv_prog_STRIP"; then
3150 # Extract the first word of "strip", so it can be a program name with args.
3151 set dummy strip; ac_word=$2
3152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 printf %s "checking for $ac_word... " >&6; }
3154 if test ${ac_cv_prog_ac_ct_STRIP+y}
3156 printf %s "(cached) " >&6
3158 if test -n "$ac_ct_STRIP"; then
3159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 case $as_dir in #(((
3168 *) as_dir=$as_dir/ ;;
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3172 ac_cv_prog_ac_ct_STRIP="strip"
3173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3183 if test -n "$ac_ct_STRIP"; then
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3185 printf "%s\n" "$ac_ct_STRIP" >&6; }
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 printf "%s\n" "no" >&6; }
3191 if test "x$ac_ct_STRIP" = x; then
3194 case $cross_compiling:$ac_tool_warned in
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3197 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3198 ac_tool_warned=yes ;;
3203 STRIP="$ac_cv_prog_STRIP"
3207 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3211 printf %s "checking for a race-free mkdir -p... " >&6; }
3212 if test -z "$MKDIR_P"; then
3213 if test ${ac_cv_path_mkdir+y}
3215 printf %s "(cached) " >&6
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3221 case $as_dir in #(((
3224 *) as_dir=$as_dir/ ;;
3226 for ac_prog in mkdir gmkdir; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3229 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3230 'mkdir ('*'coreutils) '* | \
3232 'mkdir (fileutils) '4.1*)
3233 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3243 test -d ./--version && rmdir ./--version
3244 if test ${ac_cv_path_mkdir+y}; then
3245 MKDIR_P="$ac_cv_path_mkdir -p"
3247 # As a last resort, use the slow shell script. Don't cache a
3248 # value for MKDIR_P within a source directory, because that will
3249 # break other packages using the cache if that directory is
3250 # removed, or if the value is a relative name.
3251 MKDIR_P="$ac_install_sh -d"
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3255 printf "%s\n" "$MKDIR_P" >&6; }
3257 for ac_prog in gawk mawk nawk awk
3259 # Extract the first word of "$ac_prog", so it can be a program name with args.
3260 set dummy $ac_prog; ac_word=$2
3261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 printf %s "checking for $ac_word... " >&6; }
3263 if test ${ac_cv_prog_AWK+y}
3265 printf %s "(cached) " >&6
3267 if test -n "$AWK"; then
3268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 case $as_dir in #(((
3277 *) as_dir=$as_dir/ ;;
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_AWK="$ac_prog"
3282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3292 if test -n "$AWK"; then
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3294 printf "%s\n" "$AWK" >&6; }
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 printf "%s\n" "no" >&6; }
3301 test -n "$AWK" && break
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3305 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3307 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3308 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3310 printf %s "(cached) " >&6
3312 cat >conftest.make <<\_ACEOF
3315 @echo '@@@%%%=$(MAKE)=@@@%%%'
3317 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3318 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320 eval ac_cv_prog_make_${ac_make}_set=yes;;
3322 eval ac_cv_prog_make_${ac_make}_set=no;;
3326 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 printf "%s\n" "yes" >&6; }
3331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 printf "%s\n" "no" >&6; }
3333 SET_MAKE="MAKE=${MAKE-make}"
3336 rm -rf .tst 2>/dev/null
3337 mkdir .tst 2>/dev/null
3338 if test -d .tst; then
3343 rmdir .tst 2>/dev/null
3345 # Check whether --enable-silent-rules was given.
3346 if test ${enable_silent_rules+y}
3348 enableval=$enable_silent_rules;
3351 case $enable_silent_rules in # (((
3352 yes) AM_DEFAULT_VERBOSITY=0;;
3353 no) AM_DEFAULT_VERBOSITY=1;;
3354 *) AM_DEFAULT_VERBOSITY=1;;
3356 am_make=${MAKE-make}
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3358 printf %s "checking whether $am_make supports nested variables... " >&6; }
3359 if test ${am_cv_make_support_nested_variables+y}
3361 printf %s "(cached) " >&6
3363 if printf "%s\n" 'TRUE=$(BAR$(V))
3369 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3370 am_cv_make_support_nested_variables=yes
3372 am_cv_make_support_nested_variables=no
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3376 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3377 if test $am_cv_make_support_nested_variables = yes; then
3379 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3381 AM_V=$AM_DEFAULT_VERBOSITY
3382 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3386 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3387 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3388 # is not polluted with repeated "-I."
3389 am__isrc=' -I$(srcdir)'
3390 # test to see if srcdir already configured
3391 if test -f $srcdir/config.status; then
3392 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3396 # test whether we have cygpath
3397 if test -z "$CYGPATH_W"; then
3398 if (cygpath --version) >/dev/null 2>/dev/null; then
3399 CYGPATH_W='cygpath -w'
3406 # Define the identity of the package.
3411 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3414 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3416 # Some tools Automake needs.
3418 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3421 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3424 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3427 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3430 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3432 # For better backward compatibility. To be removed once Automake 1.9.x
3433 # dies out for good. For more background, see:
3434 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3435 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3436 mkdir_p='$(MKDIR_P)'
3438 # We need awk for the "check" target (and possibly the TAP driver). The
3439 # system "awk" is bad on some platforms.
3440 # Always define AMTAR for backward compatibility. Yes, it's still used
3441 # in the wild :-( We should find a proper way to deprecate it ...
3445 # We'll loop over all known methods to create a tar archive until one works.
3446 _am_tools='gnutar pax cpio none'
3448 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3454 # Variables for tags utilities; see am/tags.am
3455 if test -z "$CTAGS"; then
3459 if test -z "$ETAGS"; then
3463 if test -z "$CSCOPE"; then
3469 # POSIX will say in a future version that running "rm -f" with no argument
3470 # is OK; and we want to be able to make that assumption in our Makefile
3471 # recipes. So use an aggressive probe to check that the usage we want is
3472 # actually supported "in the wild" to an acceptable degree.
3473 # See automake bug#10828.
3474 # To make any issue more visible, cause the running configure to be aborted
3475 # by default if the 'rm' program in use doesn't match our expectations; the
3476 # user can still override this though.
3477 if rm -f && rm -fr && rm -rf; then : OK; else
3481 Your 'rm' program seems unable to run without file operands specified
3482 on the command line, even when the '-f' option is present. This is contrary
3483 to the behaviour of most rm programs out there, and not conforming with
3484 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3486 Please tell bug-automake@gnu.org about your system, including the value
3487 of your $PATH and any error possibly output before this message. This
3488 can help us improve future automake versions.
3491 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3492 echo 'Configuration will proceed anyway, since you have set the' >&2
3493 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3497 Aborting the configuration process, to ensure you take notice of the issue.
3499 You can download and install GNU coreutils to get an 'rm' implementation
3500 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3502 If you want to complete the configuration process using your problematic
3503 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3504 to "yes", and re-run configure.
3507 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3511 # Check whether --enable-silent-rules was given.
3512 if test ${enable_silent_rules+y}
3514 enableval=$enable_silent_rules;
3517 case $enable_silent_rules in # (((
3518 yes) AM_DEFAULT_VERBOSITY=0;;
3519 no) AM_DEFAULT_VERBOSITY=1;;
3520 *) AM_DEFAULT_VERBOSITY=0;;
3522 am_make=${MAKE-make}
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3524 printf %s "checking whether $am_make supports nested variables... " >&6; }
3525 if test ${am_cv_make_support_nested_variables+y}
3527 printf %s "(cached) " >&6
3529 if printf "%s\n" 'TRUE=$(BAR$(V))
3535 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3536 am_cv_make_support_nested_variables=yes
3538 am_cv_make_support_nested_variables=no
3541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3542 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3543 if test $am_cv_make_support_nested_variables = yes; then
3545 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3547 AM_V=$AM_DEFAULT_VERBOSITY
3548 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3553 ac_config_headers="$ac_config_headers config.h"
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin ELF support" >&5
3558 printf %s "checking for builtin ELF support... " >&6; }
3559 # Check whether --enable-elf was given.
3560 if test ${enable_elf+y}
3562 enableval=$enable_elf; if test "${enableval}" = yes; then
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 printf "%s\n" "yes" >&6; }
3566 printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576 printf "%s\n" "yes" >&6; }
3578 printf "%s\n" "#define BUILTIN_ELF 1" >>confdefs.h
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF core file support" >&5
3585 printf %s "checking for ELF core file support... " >&6; }
3586 # Check whether --enable-elf-core was given.
3587 if test ${enable_elf_core+y}
3589 enableval=$enable_elf_core; if test "${enableval}" = yes; then
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3591 printf "%s\n" "yes" >&6; }
3593 printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 printf "%s\n" "no" >&6; }
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3603 printf "%s\n" "yes" >&6; }
3605 printf "%s\n" "#define ELFCORE 1" >>confdefs.h
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib support" >&5
3612 printf %s "checking for zlib support... " >&6; }
3613 # Check whether --enable-zlib was given.
3614 if test ${enable_zlib+y}
3616 enableval=$enable_zlib;
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_zlib" >&5
3620 printf "%s\n" "$enable_zlib" >&6; }
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzlib support" >&5
3623 printf %s "checking for bzlib support... " >&6; }
3624 # Check whether --enable-bzlib was given.
3625 if test ${enable_bzlib+y}
3627 enableval=$enable_bzlib;
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bzlib" >&5
3631 printf "%s\n" "$enable_bzlib" >&6; }
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xzlib support" >&5
3634 printf %s "checking for xzlib support... " >&6; }
3635 # Check whether --enable-xzlib was given.
3636 if test ${enable_xzlib+y}
3638 enableval=$enable_xzlib;
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_xzlib" >&5
3642 printf "%s\n" "$enable_xzlib" >&6; }
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseccomp support" >&5
3645 printf %s "checking for libseccomp support... " >&6; }
3646 # Check whether --enable-libseccomp was given.
3647 if test ${enable_libseccomp+y}
3649 enableval=$enable_libseccomp;
3652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_libseccomp" >&5
3653 printf "%s\n" "$enable_libseccomp" >&6; }
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file formats in man section 5" >&5
3656 printf %s "checking for file formats in man section 5... " >&6; }
3657 # Check whether --enable-fsect-man5 was given.
3658 if test ${enable_fsect_man5+y}
3660 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
3661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3662 printf "%s\n" "yes" >&6; }
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 printf "%s\n" "no" >&6; }
3671 # disable by default
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 printf "%s\n" "no" >&6; }
3681 # Make sure we can run config.sub.
3682 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3683 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3686 printf %s "checking build system type... " >&6; }
3687 if test ${ac_cv_build+y}
3689 printf %s "(cached) " >&6
3691 ac_build_alias=$build_alias
3692 test "x$ac_build_alias" = x &&
3693 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3694 test "x$ac_build_alias" = x &&
3695 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3696 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3697 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3701 printf "%s\n" "$ac_cv_build" >&6; }
3702 case $ac_cv_build in
3704 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3707 ac_save_IFS=$IFS; IFS='-'
3713 # Remember, the first character of IFS is used to create $*,
3714 # except with old shells:
3717 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3721 printf %s "checking host system type... " >&6; }
3722 if test ${ac_cv_host+y}
3724 printf %s "(cached) " >&6
3726 if test "x$host_alias" = x; then
3727 ac_cv_host=$ac_cv_build
3729 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3730 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3735 printf "%s\n" "$ac_cv_host" >&6; }
3738 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3741 ac_save_IFS=$IFS; IFS='-'
3747 # Remember, the first character of IFS is used to create $*,
3748 # except with old shells:
3751 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3763 if test "$MINGW" = 1; then
3772 pkgdatadir='$(datadir)/misc'
3775 if test x$fsect = x5; then
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 if test -n "$ac_tool_prefix"; then
3801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 printf %s "checking for $ac_word... " >&6; }
3805 if test ${ac_cv_prog_CC+y}
3807 printf %s "(cached) " >&6
3809 if test -n "$CC"; then
3810 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 case $as_dir in #(((
3819 *) as_dir=$as_dir/ ;;
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3834 if test -n "$CC"; then
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836 printf "%s\n" "$CC" >&6; }
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3844 if test -z "$ac_cv_prog_CC"; then
3846 # Extract the first word of "gcc", so it can be a program name with args.
3847 set dummy gcc; ac_word=$2
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 printf %s "checking for $ac_word... " >&6; }
3850 if test ${ac_cv_prog_ac_ct_CC+y}
3852 printf %s "(cached) " >&6
3854 if test -n "$ac_ct_CC"; then
3855 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 case $as_dir in #(((
3864 *) as_dir=$as_dir/ ;;
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3868 ac_cv_prog_ac_ct_CC="gcc"
3869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3878 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3879 if test -n "$ac_ct_CC"; then
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3881 printf "%s\n" "$ac_ct_CC" >&6; }
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 printf "%s\n" "no" >&6; }
3887 if test "x$ac_ct_CC" = x; then
3890 case $cross_compiling:$ac_tool_warned in
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3893 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3894 ac_tool_warned=yes ;;
3902 if test -z "$CC"; then
3903 if test -n "$ac_tool_prefix"; then
3904 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3905 set dummy ${ac_tool_prefix}cc; ac_word=$2
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 printf %s "checking for $ac_word... " >&6; }
3908 if test ${ac_cv_prog_CC+y}
3910 printf %s "(cached) " >&6
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 case $as_dir in #(((
3922 *) as_dir=$as_dir/ ;;
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3926 ac_cv_prog_CC="${ac_tool_prefix}cc"
3927 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3937 if test -n "$CC"; then
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 printf "%s\n" "$CC" >&6; }
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 printf "%s\n" "no" >&6; }
3948 if test -z "$CC"; then
3949 # Extract the first word of "cc", so it can be a program name with args.
3950 set dummy cc; ac_word=$2
3951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 printf %s "checking for $ac_word... " >&6; }
3953 if test ${ac_cv_prog_CC+y}
3955 printf %s "(cached) " >&6
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 case $as_dir in #(((
3968 *) as_dir=$as_dir/ ;;
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3972 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3973 ac_prog_rejected=yes
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3984 if test $ac_prog_rejected = yes; then
3985 # We found a bogon in the path, so make sure we never use it.
3986 set dummy $ac_cv_prog_CC
3988 if test $# != 0; then
3989 # We chose a different compiler from the bogus one.
3990 # However, it has the same basename, so the bogon will be chosen
3991 # first if we set CC to just the basename; use the full file name.
3993 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3999 if test -n "$CC"; then
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4001 printf "%s\n" "$CC" >&6; }
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4004 printf "%s\n" "no" >&6; }
4009 if test -z "$CC"; then
4010 if test -n "$ac_tool_prefix"; then
4011 for ac_prog in cl.exe
4013 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 printf %s "checking for $ac_word... " >&6; }
4017 if test ${ac_cv_prog_CC+y}
4019 printf %s "(cached) " >&6
4021 if test -n "$CC"; then
4022 ac_cv_prog_CC="$CC" # Let the user override the test.
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 case $as_dir in #(((
4031 *) as_dir=$as_dir/ ;;
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4046 if test -n "$CC"; then
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4048 printf "%s\n" "$CC" >&6; }
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 printf "%s\n" "no" >&6; }
4055 test -n "$CC" && break
4058 if test -z "$CC"; then
4060 for ac_prog in cl.exe
4062 # Extract the first word of "$ac_prog", so it can be a program name with args.
4063 set dummy $ac_prog; ac_word=$2
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065 printf %s "checking for $ac_word... " >&6; }
4066 if test ${ac_cv_prog_ac_ct_CC+y}
4068 printf %s "(cached) " >&6
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 case $as_dir in #(((
4080 *) as_dir=$as_dir/ ;;
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_CC="$ac_prog"
4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4095 if test -n "$ac_ct_CC"; then
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4097 printf "%s\n" "$ac_ct_CC" >&6; }
4099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 printf "%s\n" "no" >&6; }
4104 test -n "$ac_ct_CC" && break
4107 if test "x$ac_ct_CC" = x; then
4110 case $cross_compiling:$ac_tool_warned in
4112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4113 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4114 ac_tool_warned=yes ;;
4121 if test -z "$CC"; then
4122 if test -n "$ac_tool_prefix"; then
4123 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4124 set dummy ${ac_tool_prefix}clang; ac_word=$2
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 printf %s "checking for $ac_word... " >&6; }
4127 if test ${ac_cv_prog_CC+y}
4129 printf %s "(cached) " >&6
4131 if test -n "$CC"; then
4132 ac_cv_prog_CC="$CC" # Let the user override the test.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 case $as_dir in #(((
4141 *) as_dir=$as_dir/ ;;
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC="${ac_tool_prefix}clang"
4146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4156 if test -n "$CC"; then
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 printf "%s\n" "$CC" >&6; }
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 printf "%s\n" "no" >&6; }
4166 if test -z "$ac_cv_prog_CC"; then
4168 # Extract the first word of "clang", so it can be a program name with args.
4169 set dummy clang; ac_word=$2
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 printf %s "checking for $ac_word... " >&6; }
4172 if test ${ac_cv_prog_ac_ct_CC+y}
4174 printf %s "(cached) " >&6
4176 if test -n "$ac_ct_CC"; then
4177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 case $as_dir in #(((
4186 *) as_dir=$as_dir/ ;;
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_ac_ct_CC="clang"
4191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4201 if test -n "$ac_ct_CC"; then
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4203 printf "%s\n" "$ac_ct_CC" >&6; }
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 printf "%s\n" "no" >&6; }
4209 if test "x$ac_ct_CC" = x; then
4212 case $cross_compiling:$ac_tool_warned in
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4215 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4216 ac_tool_warned=yes ;;
4227 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4228 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4229 as_fn_error $? "no acceptable C compiler found in \$PATH
4230 See \`config.log' for more details" "$LINENO" 5; }
4232 # Provide some information about the compiler.
4233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4236 for ac_option in --version -v -V -qversion -version; do
4237 { { ac_try="$ac_compiler $ac_option >&5"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243 printf "%s\n" "$ac_try_echo"; } >&5
4244 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4246 if test -s conftest.err; then
4248 ... rest of stderr output deleted ...
4249 10q' conftest.err >conftest.er1
4250 cat conftest.er1 >&5
4252 rm -f conftest.er1 conftest.err
4253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4254 test $ac_status = 0; }
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4268 ac_clean_files_save=$ac_clean_files
4269 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4270 # Try to create an executable without -o first, disregard a.out.
4271 # It will help us diagnose broken compilers, and finding out an intuition
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4274 printf %s "checking whether the C compiler works... " >&6; }
4275 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4277 # The possible output files:
4278 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4281 for ac_file in $ac_files
4284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4285 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4290 if { { ac_try="$ac_link_default"
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 printf "%s\n" "$ac_try_echo"; } >&5
4297 (eval "$ac_link_default") 2>&5
4299 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; }
4302 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4303 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4304 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4305 # so that the user can short-circuit this test for compilers unknown to
4307 for ac_file in $ac_files ''
4309 test -f "$ac_file" || continue
4311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4314 # We found the default executable, but exeext='' is most
4318 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4322 # We set ac_cv_exeext here because the later test for it is not
4323 # safe: cross compilers may not add the suffix if given an `-o'
4324 # argument, so we may need to know it at that point already.
4325 # Even if this section looks crufty: it has the advantage of
4332 test "$ac_cv_exeext" = no && ac_cv_exeext=
4337 if test -z "$ac_file"
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 printf "%s\n" "no" >&6; }
4341 printf "%s\n" "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4345 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4346 as_fn_error 77 "C compiler cannot create executables
4347 See \`config.log' for more details" "$LINENO" 5; }
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4350 printf "%s\n" "yes" >&6; }
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4353 printf %s "checking for C compiler default output file name... " >&6; }
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4355 printf "%s\n" "$ac_file" >&6; }
4356 ac_exeext=$ac_cv_exeext
4358 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4359 ac_clean_files=$ac_clean_files_save
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4361 printf %s "checking for suffix of executables... " >&6; }
4362 if { { ac_try="$ac_link"
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 printf "%s\n" "$ac_try_echo"; } >&5
4369 (eval "$ac_link") 2>&5
4371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }
4374 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4375 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4376 # work properly (i.e., refer to `conftest.exe'), while it won't with
4378 for ac_file in conftest.exe conftest conftest.*; do
4379 test -f "$ac_file" || continue
4381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4382 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4388 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4390 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4391 See \`config.log' for more details" "$LINENO" 5; }
4393 rm -f conftest conftest$ac_cv_exeext
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4395 printf "%s\n" "$ac_cv_exeext" >&6; }
4397 rm -f conftest.$ac_ext
4398 EXEEXT=$ac_cv_exeext
4400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401 /* end confdefs.h. */
4406 FILE *f = fopen ("conftest.out", "w");
4407 return ferror (f) || fclose (f) != 0;
4413 ac_clean_files="$ac_clean_files conftest.out"
4414 # Check that the compiler produces executables we can run. If not, either
4415 # the compiler is broken, or we cross compile.
4416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4417 printf %s "checking whether we are cross compiling... " >&6; }
4418 if test "$cross_compiling" != yes; then
4419 { { ac_try="$ac_link"
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 printf "%s\n" "$ac_try_echo"; } >&5
4426 (eval "$ac_link") 2>&5
4428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4430 if { ac_try='./conftest$ac_cv_exeext'
4431 { { case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 printf "%s\n" "$ac_try_echo"; } >&5
4437 (eval "$ac_try") 2>&5
4439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440 test $ac_status = 0; }; }; then
4443 if test "$cross_compiling" = maybe; then
4446 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4447 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4448 as_fn_error 77 "cannot run C compiled programs.
4449 If you meant to cross compile, use \`--host'.
4450 See \`config.log' for more details" "$LINENO" 5; }
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4455 printf "%s\n" "$cross_compiling" >&6; }
4457 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4458 ac_clean_files=$ac_clean_files_save
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4460 printf %s "checking for suffix of object files... " >&6; }
4461 if test ${ac_cv_objext+y}
4463 printf %s "(cached) " >&6
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4476 rm -f conftest.o conftest.obj
4477 if { { ac_try="$ac_compile"
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 printf "%s\n" "$ac_try_echo"; } >&5
4484 (eval "$ac_compile") 2>&5
4486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }
4489 for ac_file in conftest.o conftest.obj conftest.*; do
4490 test -f "$ac_file" || continue;
4492 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4493 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4498 printf "%s\n" "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4501 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error $? "cannot compute suffix of object files: cannot compile
4504 See \`config.log' for more details" "$LINENO" 5; }
4506 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4509 printf "%s\n" "$ac_cv_objext" >&6; }
4510 OBJEXT=$ac_cv_objext
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4513 printf %s "checking whether the compiler supports GNU C... " >&6; }
4514 if test ${ac_cv_c_compiler_gnu+y}
4516 printf %s "(cached) " >&6
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4532 if ac_fn_c_try_compile "$LINENO"
4538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4543 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4546 if test $ac_compiler_gnu = yes; then
4551 ac_test_CFLAGS=${CFLAGS+y}
4552 ac_save_CFLAGS=$CFLAGS
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4554 printf %s "checking whether $CC accepts -g... " >&6; }
4555 if test ${ac_cv_prog_cc_g+y}
4557 printf %s "(cached) " >&6
4559 ac_save_c_werror_flag=$ac_c_werror_flag
4560 ac_c_werror_flag=yes
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4574 if ac_fn_c_try_compile "$LINENO"
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4590 if ac_fn_c_try_compile "$LINENO"
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4607 if ac_fn_c_try_compile "$LINENO"
4611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4616 ac_c_werror_flag=$ac_save_c_werror_flag
4618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4619 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4620 if test $ac_test_CFLAGS; then
4621 CFLAGS=$ac_save_CFLAGS
4622 elif test $ac_cv_prog_cc_g = yes; then
4623 if test "$GCC" = yes; then
4629 if test "$GCC" = yes; then
4636 if test x$ac_prog_cc_stdc = xno
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4639 printf %s "checking for $CC option to enable C11 features... " >&6; }
4640 if test ${ac_cv_prog_cc_c11+y}
4642 printf %s "(cached) " >&6
4644 ac_cv_prog_cc_c11=no
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648 $ac_c_conftest_c11_program
4650 for ac_arg in '' -std=gnu11
4652 CC="$ac_save_CC $ac_arg"
4653 if ac_fn_c_try_compile "$LINENO"
4655 ac_cv_prog_cc_c11=$ac_arg
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam
4658 test "x$ac_cv_prog_cc_c11" != "xno" && break
4660 rm -f conftest.$ac_ext
4664 if test "x$ac_cv_prog_cc_c11" = xno
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4667 printf "%s\n" "unsupported" >&6; }
4669 if test "x$ac_cv_prog_cc_c11" = x
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4672 printf "%s\n" "none needed" >&6; }
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4675 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4676 CC="$CC $ac_cv_prog_cc_c11"
4678 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4682 if test x$ac_prog_cc_stdc = xno
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4685 printf %s "checking for $CC option to enable C99 features... " >&6; }
4686 if test ${ac_cv_prog_cc_c99+y}
4688 printf %s "(cached) " >&6
4690 ac_cv_prog_cc_c99=no
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 $ac_c_conftest_c99_program
4696 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4698 CC="$ac_save_CC $ac_arg"
4699 if ac_fn_c_try_compile "$LINENO"
4701 ac_cv_prog_cc_c99=$ac_arg
4703 rm -f core conftest.err conftest.$ac_objext conftest.beam
4704 test "x$ac_cv_prog_cc_c99" != "xno" && break
4706 rm -f conftest.$ac_ext
4710 if test "x$ac_cv_prog_cc_c99" = xno
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4713 printf "%s\n" "unsupported" >&6; }
4715 if test "x$ac_cv_prog_cc_c99" = x
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4718 printf "%s\n" "none needed" >&6; }
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4721 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4722 CC="$CC $ac_cv_prog_cc_c99"
4724 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4728 if test x$ac_prog_cc_stdc = xno
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4731 printf %s "checking for $CC option to enable C89 features... " >&6; }
4732 if test ${ac_cv_prog_cc_c89+y}
4734 printf %s "(cached) " >&6
4736 ac_cv_prog_cc_c89=no
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 $ac_c_conftest_c89_program
4742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4744 CC="$ac_save_CC $ac_arg"
4745 if ac_fn_c_try_compile "$LINENO"
4747 ac_cv_prog_cc_c89=$ac_arg
4749 rm -f core conftest.err conftest.$ac_objext conftest.beam
4750 test "x$ac_cv_prog_cc_c89" != "xno" && break
4752 rm -f conftest.$ac_ext
4756 if test "x$ac_cv_prog_cc_c89" = xno
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4759 printf "%s\n" "unsupported" >&6; }
4761 if test "x$ac_cv_prog_cc_c89" = x
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4764 printf "%s\n" "none needed" >&6; }
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4767 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4768 CC="$CC $ac_cv_prog_cc_c89"
4770 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4776 ac_cpp='$CPP $CPPFLAGS'
4777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783 ac_cpp='$CPP $CPPFLAGS'
4784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4788 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4789 if test ${am_cv_prog_cc_c_o+y}
4791 printf %s "(cached) " >&6
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4804 # Make sure it works both with $CC and with simple cc.
4805 # Following AC_PROG_CC_C_O, we do the test twice because some
4806 # compilers refuse to overwrite an existing .o file with -o,
4807 # though they will create one.
4808 am_cv_prog_cc_c_o=yes
4810 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4811 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } \
4815 && test -f conftest2.$ac_objext; then
4818 am_cv_prog_cc_c_o=no
4822 rm -f core conftest*
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4826 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4827 if test "$am_cv_prog_cc_c_o" != yes; then
4828 # Losing compiler, so override with the script.
4829 # FIXME: It is wrong to rewrite CC.
4830 # But if we don't then we get into trouble of one sort or another.
4831 # A longer-term fix would be to have automake use am__CC in this case,
4832 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4833 CC="$am_aux_dir/compile $CC"
4836 ac_cpp='$CPP $CPPFLAGS'
4837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4841 DEPDIR="${am__leading_dot}deps"
4843 ac_config_commands="$ac_config_commands depfiles"
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4846 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4847 cat > confinc.mk << 'END'
4849 @echo this is the am__doit target >confinc.out
4854 # BSD make does it like this.
4855 echo '.include "confinc.mk" # ignored' > confmf.BSD
4856 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4857 echo 'include confinc.mk # ignored' > confmf.GNU
4859 for s in GNU BSD; do
4860 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4861 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }
4865 case $?:`cat confinc.out 2>/dev/null` in #(
4866 '0:this is the am__doit target') :
4869 am__include='.include' am__quote='"' ;; #(
4871 am__include='include' am__quote='' ;;
4876 if test "$am__include" != "#"; then
4877 _am_result="yes ($s style)"
4881 rm -f confinc.* confmf.*
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4883 printf "%s\n" "${_am_result}" >&6; }
4885 # Check whether --enable-dependency-tracking was given.
4886 if test ${enable_dependency_tracking+y}
4888 enableval=$enable_dependency_tracking;
4891 if test "x$enable_dependency_tracking" != xno; then
4892 am_depcomp="$ac_aux_dir/depcomp"
4896 if test "x$enable_dependency_tracking" != xno; then
4906 depcc="$CC" am_compiler_list=
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4909 printf %s "checking dependency style of $depcc... " >&6; }
4910 if test ${am_cv_CC_dependencies_compiler_type+y}
4912 printf %s "(cached) " >&6
4914 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4915 # We make a subdir and do the tests there. Otherwise we can end up
4916 # making bogus files that we don't know about and never remove. For
4917 # instance it was reported that on HP-UX the gcc test will end up
4918 # making a dummy file named 'D' -- because '-MD' means "put the output
4922 # Copy depcomp to subdir because otherwise we won't find it if we're
4923 # using a relative directory.
4924 cp "$am_depcomp" conftest.dir
4926 # We will build objects and dependencies in a subdirectory because
4927 # it helps to detect inapplicable dependency modes. For instance
4928 # both Tru64's cc and ICC support -MD to output dependencies as a
4929 # side effect of compilation, but ICC will put the dependencies in
4930 # the current directory while Tru64 will put them in the object
4934 am_cv_CC_dependencies_compiler_type=none
4935 if test "$am_compiler_list" = ""; then
4936 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4939 case " $depcc " in #(
4940 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4943 for depmode in $am_compiler_list; do
4944 # Setup a source with many dependencies, because some compilers
4945 # like to wrap large dependency lists on column 80 (with \), and
4946 # we should not choose a depcomp mode which is confused by this.
4948 # We need to recreate these files for each test, as the compiler may
4949 # overwrite some of them when testing with obscure command lines.
4950 # This happens at least with the AIX C compiler.
4952 for i in 1 2 3 4 5 6; do
4953 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4954 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4955 # Solaris 10 /bin/sh.
4956 echo '/* dummy */' > sub/conftst$i.h
4958 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4960 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4961 # mode. It turns out that the SunPro C++ compiler does not properly
4962 # handle '-M -o', and we need to detect this. Also, some Intel
4963 # versions had trouble with output in subdirs.
4964 am__obj=sub/conftest.${OBJEXT-o}
4965 am__minus_obj="-o $am__obj"
4968 # This depmode causes a compiler race in universal mode.
4969 test "$am__universal" = false || continue
4972 # After this tag, mechanisms are not by side-effect, so they'll
4973 # only be used when explicitly requested.
4974 if test "x$enable_dependency_tracking" = xyes; then
4980 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4981 # This compiler won't grok '-c -o', but also, the minuso test has
4982 # not run yet. These depmodes are late enough in the game, and
4983 # so weak that their functioning should not be impacted.
4984 am__obj=conftest.${OBJEXT-o}
4989 if depmode=$depmode \
4990 source=sub/conftest.c object=$am__obj \
4991 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4992 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4993 >/dev/null 2>conftest.err &&
4994 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4995 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4996 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4997 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4998 # icc doesn't choke on unknown options, it will just issue warnings
4999 # or remarks (even with -Werror). So we grep stderr for any message
5000 # that says an option was ignored or not supported.
5001 # When given -MP, icc 7.0 and 7.1 complain thusly:
5002 # icc: Command line warning: ignoring option '-M'; no argument required
5003 # The diagnosis changed in icc 8.0:
5004 # icc: Command line remark: option '-MP' not supported
5005 if (grep 'ignoring option' conftest.err ||
5006 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5007 am_cv_CC_dependencies_compiler_type=$depmode
5016 am_cv_CC_dependencies_compiler_type=none
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5021 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5022 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5025 test "x$enable_dependency_tracking" != xno \
5026 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5028 am__fastdepCC_FALSE='#'
5030 am__fastdepCC_TRUE='#'
5031 am__fastdepCC_FALSE=
5036 ac_header= ac_cache=
5037 for ac_item in $ac_header_c_list
5039 if test $ac_cache; then
5040 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5041 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5042 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5044 ac_header= ac_cache=
5045 elif test $ac_header; then
5059 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5062 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5072 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5073 if test ${ac_cv_safe_to_define___extensions__+y}
5075 printf %s "(cached) " >&6
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5080 # define __EXTENSIONS__ 1
5081 $ac_includes_default
5090 if ac_fn_c_try_compile "$LINENO"
5092 ac_cv_safe_to_define___extensions__=yes
5094 ac_cv_safe_to_define___extensions__=no
5096 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5099 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5102 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5103 if test ${ac_cv_should_define__xopen_source+y}
5105 printf %s "(cached) " >&6
5107 ac_cv_should_define__xopen_source=no
5108 if test $ac_cv_header_wchar_h = yes
5110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h. */
5123 if ac_fn_c_try_compile "$LINENO"
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5130 #define _XOPEN_SOURCE 500
5141 if ac_fn_c_try_compile "$LINENO"
5143 ac_cv_should_define__xopen_source=yes
5145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5151 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5153 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5155 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5157 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5159 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5161 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5163 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5165 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5167 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5169 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5171 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5173 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5175 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5177 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5179 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5181 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5183 if test $ac_cv_header_minix_config_h = yes
5186 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5188 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5190 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5195 if test $ac_cv_safe_to_define___extensions__ = yes
5197 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5200 if test $ac_cv_should_define__xopen_source = yes
5202 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5208 printf %s "checking whether byte ordering is bigendian... " >&6; }
5209 if test ${ac_cv_c_bigendian+y}
5211 printf %s "(cached) " >&6
5213 ac_cv_c_bigendian=unknown
5214 # See if we're dealing with a universal compiler.
5215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5216 /* end confdefs.h. */
5217 #ifndef __APPLE_CC__
5218 not a universal capable compiler
5223 if ac_fn_c_try_compile "$LINENO"
5226 # Check for potential -arch flags. It is not universal unless
5227 # there are at least two -arch flags with different values.
5230 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5231 if test -n "$ac_prev"; then
5233 i?86 | x86_64 | ppc | ppc64)
5234 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5237 ac_cv_c_bigendian=universal
5243 elif test "x$ac_word" = "x-arch"; then
5248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5249 if test $ac_cv_c_bigendian = unknown; then
5250 # See if sys/param.h defines the BYTE_ORDER macro.
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #include <sys/types.h>
5254 #include <sys/param.h>
5259 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5260 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5269 if ac_fn_c_try_compile "$LINENO"
5271 # It does; now see whether it defined to BIG_ENDIAN or not.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <sys/types.h>
5275 #include <sys/param.h>
5280 #if BYTE_ORDER != BIG_ENDIAN
5288 if ac_fn_c_try_compile "$LINENO"
5290 ac_cv_c_bigendian=yes
5292 ac_cv_c_bigendian=no
5294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5298 if test $ac_cv_c_bigendian = unknown; then
5299 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5307 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5315 if ac_fn_c_try_compile "$LINENO"
5317 # It does; now see whether it defined to _BIG_ENDIAN or not.
5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319 /* end confdefs.h. */
5333 if ac_fn_c_try_compile "$LINENO"
5335 ac_cv_c_bigendian=yes
5337 ac_cv_c_bigendian=no
5339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5343 if test $ac_cv_c_bigendian = unknown; then
5344 # Compile a test program.
5345 if test "$cross_compiling" = yes
5347 # Try to guess by grepping values from an object file.
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 unsigned short int ascii_mm[] =
5351 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5352 unsigned short int ascii_ii[] =
5353 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5354 int use_ascii (int i) {
5355 return ascii_mm[i] + ascii_ii[i];
5357 unsigned short int ebcdic_ii[] =
5358 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5359 unsigned short int ebcdic_mm[] =
5360 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5361 int use_ebcdic (int i) {
5362 return ebcdic_mm[i] + ebcdic_ii[i];
5369 return use_ascii (foo) == use_ebcdic (foo);
5374 if ac_fn_c_try_compile "$LINENO"
5376 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5377 ac_cv_c_bigendian=yes
5379 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5380 if test "$ac_cv_c_bigendian" = unknown; then
5381 ac_cv_c_bigendian=no
5383 # finding both strings is unlikely to happen, but who knows?
5384 ac_cv_c_bigendian=unknown
5388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 $ac_includes_default
5397 /* Are we little or big endian? From Harbison&Steele. */
5401 char c[sizeof (long int)];
5404 return u.c[sizeof (long int) - 1] == 1;
5410 if ac_fn_c_try_run "$LINENO"
5412 ac_cv_c_bigendian=no
5414 ac_cv_c_bigendian=yes
5416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5417 conftest.$ac_objext conftest.beam conftest.$ac_ext
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5423 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
5424 case $ac_cv_c_bigendian in #(
5426 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
5432 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5436 as_fn_error $? "unknown endianness
5437 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5442 printf %s "checking whether ln -s works... " >&6; }
5444 if test "$LN_S" = "ln -s"; then
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446 printf "%s\n" "yes" >&6; }
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5449 printf "%s\n" "no, using $LN_S" >&6; }
5454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5455 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5460 macro_version='2.4.6'
5461 macro_revision='2.4.6'
5476 ltmain=$ac_aux_dir/ltmain.sh
5478 # Backslashify metacharacters that are still active within
5479 # double-quoted strings.
5480 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5482 # Same as above, but do not quote variable references.
5483 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5485 # Sed substitution to delay expansion of an escaped shell variable in a
5486 # double_quote_subst'ed string.
5487 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5489 # Sed substitution to delay expansion of an escaped single quote.
5490 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5492 # Sed substitution to avoid accidental globbing in evaled expressions
5493 no_glob_subst='s/\*/\\\*/g'
5495 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5496 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5497 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5500 printf %s "checking how to print strings... " >&6; }
5501 # Test print first, because it will be a builtin if present.
5502 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5503 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5505 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5508 # Use this function as a fallback that always works.
5509 func_fallback_echo ()
5511 eval 'cat <<_LTECHO_EOF
5515 ECHO='func_fallback_echo'
5518 # func_echo_all arg...
5519 # Invoke $ECHO with all args, space-separated.
5526 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5527 printf "%s\n" "printf" >&6; } ;;
5528 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5529 printf "%s\n" "print -r" >&6; } ;;
5530 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5531 printf "%s\n" "cat" >&6; } ;;
5547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5548 printf %s "checking for a sed that does not truncate output... " >&6; }
5549 if test ${ac_cv_path_SED+y}
5551 printf %s "(cached) " >&6
5553 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5554 for ac_i in 1 2 3 4 5 6 7; do
5555 ac_script="$ac_script$as_nl$ac_script"
5557 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5558 { ac_script=; unset ac_script;}
5559 if test -z "$SED"; then
5560 ac_path_SED_found=false
5561 # Loop through the user's path and test for each of PROGNAME-LIST
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 case $as_dir in #(((
5569 *) as_dir=$as_dir/ ;;
5571 for ac_prog in sed gsed
5573 for ac_exec_ext in '' $ac_executable_extensions; do
5574 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5575 as_fn_executable_p "$ac_path_SED" || continue
5576 # Check for GNU ac_path_SED and select it if it is found.
5577 # Check for GNU $ac_path_SED
5578 case `"$ac_path_SED" --version 2>&1` in
5580 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5583 printf %s 0123456789 >"conftest.in"
5586 cat "conftest.in" "conftest.in" >"conftest.tmp"
5587 mv "conftest.tmp" "conftest.in"
5588 cp "conftest.in" "conftest.nl"
5589 printf "%s\n" '' >> "conftest.nl"
5590 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5592 as_fn_arith $ac_count + 1 && ac_count=$as_val
5593 if test $ac_count -gt ${ac_path_SED_max-0}; then
5594 # Best one so far, save it but keep looking for a better one
5595 ac_cv_path_SED="$ac_path_SED"
5596 ac_path_SED_max=$ac_count
5598 # 10*(2^10) chars as input seems more than enough
5599 test $ac_count -gt 10 && break
5601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5604 $ac_path_SED_found && break 3
5609 if test -z "$ac_cv_path_SED"; then
5610 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5618 printf "%s\n" "$ac_cv_path_SED" >&6; }
5619 SED="$ac_cv_path_SED"
5622 test -z "$SED" && SED=sed
5623 Xsed="$SED -e 1s/^X//"
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5636 printf %s "checking for grep that handles long lines and -e... " >&6; }
5637 if test ${ac_cv_path_GREP+y}
5639 printf %s "(cached) " >&6
5641 if test -z "$GREP"; then
5642 ac_path_GREP_found=false
5643 # Loop through the user's path and test for each of PROGNAME-LIST
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5648 case $as_dir in #(((
5651 *) as_dir=$as_dir/ ;;
5653 for ac_prog in grep ggrep
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5657 as_fn_executable_p "$ac_path_GREP" || continue
5658 # Check for GNU ac_path_GREP and select it if it is found.
5659 # Check for GNU $ac_path_GREP
5660 case `"$ac_path_GREP" --version 2>&1` in
5662 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5665 printf %s 0123456789 >"conftest.in"
5668 cat "conftest.in" "conftest.in" >"conftest.tmp"
5669 mv "conftest.tmp" "conftest.in"
5670 cp "conftest.in" "conftest.nl"
5671 printf "%s\n" 'GREP' >> "conftest.nl"
5672 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5674 as_fn_arith $ac_count + 1 && ac_count=$as_val
5675 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5676 # Best one so far, save it but keep looking for a better one
5677 ac_cv_path_GREP="$ac_path_GREP"
5678 ac_path_GREP_max=$ac_count
5680 # 10*(2^10) chars as input seems more than enough
5681 test $ac_count -gt 10 && break
5683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5686 $ac_path_GREP_found && break 3
5691 if test -z "$ac_cv_path_GREP"; then
5692 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5695 ac_cv_path_GREP=$GREP
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5700 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5701 GREP="$ac_cv_path_GREP"
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5705 printf %s "checking for egrep... " >&6; }
5706 if test ${ac_cv_path_EGREP+y}
5708 printf %s "(cached) " >&6
5710 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5711 then ac_cv_path_EGREP="$GREP -E"
5713 if test -z "$EGREP"; then
5714 ac_path_EGREP_found=false
5715 # Loop through the user's path and test for each of PROGNAME-LIST
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5720 case $as_dir in #(((
5723 *) as_dir=$as_dir/ ;;
5725 for ac_prog in egrep
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5729 as_fn_executable_p "$ac_path_EGREP" || continue
5730 # Check for GNU ac_path_EGREP and select it if it is found.
5731 # Check for GNU $ac_path_EGREP
5732 case `"$ac_path_EGREP" --version 2>&1` in
5734 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5737 printf %s 0123456789 >"conftest.in"
5740 cat "conftest.in" "conftest.in" >"conftest.tmp"
5741 mv "conftest.tmp" "conftest.in"
5742 cp "conftest.in" "conftest.nl"
5743 printf "%s\n" 'EGREP' >> "conftest.nl"
5744 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5745 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5746 as_fn_arith $ac_count + 1 && ac_count=$as_val
5747 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5748 # Best one so far, save it but keep looking for a better one
5749 ac_cv_path_EGREP="$ac_path_EGREP"
5750 ac_path_EGREP_max=$ac_count
5752 # 10*(2^10) chars as input seems more than enough
5753 test $ac_count -gt 10 && break
5755 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5758 $ac_path_EGREP_found && break 3
5763 if test -z "$ac_cv_path_EGREP"; then
5764 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5767 ac_cv_path_EGREP=$EGREP
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5773 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5774 EGREP="$ac_cv_path_EGREP"
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5778 printf %s "checking for fgrep... " >&6; }
5779 if test ${ac_cv_path_FGREP+y}
5781 printf %s "(cached) " >&6
5783 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5784 then ac_cv_path_FGREP="$GREP -F"
5786 if test -z "$FGREP"; then
5787 ac_path_FGREP_found=false
5788 # Loop through the user's path and test for each of PROGNAME-LIST
5789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5793 case $as_dir in #(((
5796 *) as_dir=$as_dir/ ;;
5798 for ac_prog in fgrep
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5802 as_fn_executable_p "$ac_path_FGREP" || continue
5803 # Check for GNU ac_path_FGREP and select it if it is found.
5804 # Check for GNU $ac_path_FGREP
5805 case `"$ac_path_FGREP" --version 2>&1` in
5807 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5810 printf %s 0123456789 >"conftest.in"
5813 cat "conftest.in" "conftest.in" >"conftest.tmp"
5814 mv "conftest.tmp" "conftest.in"
5815 cp "conftest.in" "conftest.nl"
5816 printf "%s\n" 'FGREP' >> "conftest.nl"
5817 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5818 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5819 as_fn_arith $ac_count + 1 && ac_count=$as_val
5820 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5821 # Best one so far, save it but keep looking for a better one
5822 ac_cv_path_FGREP="$ac_path_FGREP"
5823 ac_path_FGREP_max=$ac_count
5825 # 10*(2^10) chars as input seems more than enough
5826 test $ac_count -gt 10 && break
5828 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831 $ac_path_FGREP_found && break 3
5836 if test -z "$ac_cv_path_FGREP"; then
5837 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5840 ac_cv_path_FGREP=$FGREP
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5846 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5847 FGREP="$ac_cv_path_FGREP"
5850 test -z "$GREP" && GREP=grep
5870 # Check whether --with-gnu-ld was given.
5871 if test ${with_gnu_ld+y}
5873 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5879 if test yes = "$GCC"; then
5880 # Check if gcc -print-prog-name=ld gives a path.
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5882 printf %s "checking for ld used by $CC... " >&6; }
5885 # gcc leaves a trailing carriage return, which upsets mingw
5886 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5888 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5891 # Accept absolute paths.
5893 re_direlt='/[^/][^/]*/\.\./'
5894 # Canonicalize the pathname of ld
5895 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5896 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5897 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5899 test -z "$LD" && LD=$ac_prog
5902 # If it fails, then pretend we aren't using GCC.
5906 # If it is relative, then search for the first ld in PATH.
5910 elif test yes = "$with_gnu_ld"; then
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5912 printf %s "checking for GNU ld... " >&6; }
5914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5915 printf %s "checking for non-GNU ld... " >&6; }
5917 if test ${lt_cv_path_LD+y}
5919 printf %s "(cached) " >&6
5921 if test -z "$LD"; then
5922 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5923 for ac_dir in $PATH; do
5925 test -z "$ac_dir" && ac_dir=.
5926 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5927 lt_cv_path_LD=$ac_dir/$ac_prog
5928 # Check to see if the program is GNU ld. I'd rather use --version,
5929 # but apparently some variants of GNU ld only accept -v.
5930 # Break only if it was the GNU/non-GNU ld that we prefer.
5931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5932 *GNU* | *'with BFD'*)
5933 test no != "$with_gnu_ld" && break
5936 test yes != "$with_gnu_ld" && break
5943 lt_cv_path_LD=$LD # Let the user override the test with a path.
5948 if test -n "$LD"; then
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5950 printf "%s\n" "$LD" >&6; }
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 printf "%s\n" "no" >&6; }
5955 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5957 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5958 if test ${lt_cv_prog_gnu_ld+y}
5960 printf %s "(cached) " >&6
5962 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5963 case `$LD -v 2>&1 </dev/null` in
5964 *GNU* | *'with BFD'*)
5965 lt_cv_prog_gnu_ld=yes
5968 lt_cv_prog_gnu_ld=no
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5973 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5974 with_gnu_ld=$lt_cv_prog_gnu_ld
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5985 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5986 if test ${lt_cv_path_NM+y}
5988 printf %s "(cached) " >&6
5990 if test -n "$NM"; then
5991 # Let the user override the test.
5994 lt_nm_to_check=${ac_tool_prefix}nm
5995 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5996 lt_nm_to_check="$lt_nm_to_check nm"
5998 for lt_tmp_nm in $lt_nm_to_check; do
5999 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6000 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6002 test -z "$ac_dir" && ac_dir=.
6003 tmp_nm=$ac_dir/$lt_tmp_nm
6004 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6005 # Check to see if the nm accepts a BSD-compat flag.
6006 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6007 # nm: unknown option "B" ignored
6008 # Tru64's nm complains that /dev/null is an invalid object file
6009 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6011 mingw*) lt_bad_file=conftest.nm/nofile ;;
6012 *) lt_bad_file=/dev/null ;;
6014 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6015 *$lt_bad_file* | *'Invalid file or object type'*)
6016 lt_cv_path_NM="$tmp_nm -B"
6020 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6022 lt_cv_path_NM="$tmp_nm -p"
6026 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6027 continue # so that we can try to find one that supports BSD flags
6036 : ${lt_cv_path_NM=no}
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6040 printf "%s\n" "$lt_cv_path_NM" >&6; }
6041 if test no != "$lt_cv_path_NM"; then
6044 # Didn't find any BSD compatible name lister, look for dumpbin.
6045 if test -n "$DUMPBIN"; then :
6046 # Let the user override the test.
6048 if test -n "$ac_tool_prefix"; then
6049 for ac_prog in dumpbin "link -dump"
6051 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6052 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 printf %s "checking for $ac_word... " >&6; }
6055 if test ${ac_cv_prog_DUMPBIN+y}
6057 printf %s "(cached) " >&6
6059 if test -n "$DUMPBIN"; then
6060 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 case $as_dir in #(((
6069 *) as_dir=$as_dir/ ;;
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6073 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6074 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6083 DUMPBIN=$ac_cv_prog_DUMPBIN
6084 if test -n "$DUMPBIN"; then
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6086 printf "%s\n" "$DUMPBIN" >&6; }
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 printf "%s\n" "no" >&6; }
6093 test -n "$DUMPBIN" && break
6096 if test -z "$DUMPBIN"; then
6097 ac_ct_DUMPBIN=$DUMPBIN
6098 for ac_prog in dumpbin "link -dump"
6100 # Extract the first word of "$ac_prog", so it can be a program name with args.
6101 set dummy $ac_prog; ac_word=$2
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 printf %s "checking for $ac_word... " >&6; }
6104 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6106 printf %s "(cached) " >&6
6108 if test -n "$ac_ct_DUMPBIN"; then
6109 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 case $as_dir in #(((
6118 *) as_dir=$as_dir/ ;;
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6122 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6132 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6133 if test -n "$ac_ct_DUMPBIN"; then
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6135 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 printf "%s\n" "no" >&6; }
6142 test -n "$ac_ct_DUMPBIN" && break
6145 if test "x$ac_ct_DUMPBIN" = x; then
6148 case $cross_compiling:$ac_tool_warned in
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6151 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6152 ac_tool_warned=yes ;;
6154 DUMPBIN=$ac_ct_DUMPBIN
6158 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6160 DUMPBIN="$DUMPBIN -symbols -headers"
6168 if test : != "$DUMPBIN"; then
6172 test -z "$NM" && NM=nm
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6180 printf %s "checking the name lister ($NM) interface... " >&6; }
6181 if test ${lt_cv_nm_interface+y}
6183 printf %s "(cached) " >&6
6185 lt_cv_nm_interface="BSD nm"
6186 echo "int some_variable = 0;" > conftest.$ac_ext
6187 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6188 (eval "$ac_compile" 2>conftest.err)
6189 cat conftest.err >&5
6190 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6192 cat conftest.err >&5
6193 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6194 cat conftest.out >&5
6195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6196 lt_cv_nm_interface="MS dumpbin"
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6201 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6203 # find the maximum length of command line arguments
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6205 printf %s "checking the maximum length of command line arguments... " >&6; }
6206 if test ${lt_cv_sys_max_cmd_len+y}
6208 printf %s "(cached) " >&6
6215 # On DJGPP, this test can blow up pretty badly due to problems in libc
6216 # (any single argument exceeding 2000 bytes causes a buffer overrun
6217 # during glob expansion). Even if it were fixed, the result of this
6218 # check would be larger than it should be.
6219 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6223 # Under GNU Hurd, this test is not required because there is
6224 # no limit to the length of command line arguments.
6225 # Libtool will interpret -1 as no limit whatsoever
6226 lt_cv_sys_max_cmd_len=-1;
6229 cygwin* | mingw* | cegcc*)
6230 # On Win9x/ME, this test blows up -- it succeeds, but takes
6231 # about 5 minutes as the teststring grows exponentially.
6232 # Worse, since 9x/ME are not pre-emptively multitasking,
6233 # you end up with a "frozen" computer, even though with patience
6234 # the test eventually succeeds (with a max line length of 256k).
6235 # Instead, let's just punt: use the minimum linelength reported by
6236 # all of the supported platforms: 8192 (on NT/2K/XP).
6237 lt_cv_sys_max_cmd_len=8192;
6241 # On MiNT this can take a long time and run out of memory.
6242 lt_cv_sys_max_cmd_len=8192;
6246 # On AmigaOS with pdksh, this test takes hours, literally.
6247 # So we just punt and use a minimum line length of 8192.
6248 lt_cv_sys_max_cmd_len=8192;
6251 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6252 # This has been around since 386BSD, at least. Likely further.
6253 if test -x /sbin/sysctl; then
6254 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6255 elif test -x /usr/sbin/sysctl; then
6256 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6258 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6260 # And add a safety zone
6261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6266 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6267 lt_cv_sys_max_cmd_len=196608
6271 # The test takes a long time on OS/2.
6272 lt_cv_sys_max_cmd_len=8192
6276 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6277 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6278 # nice to cause kernel panics so lets avoid the loop below.
6279 # First set a reasonable default.
6280 lt_cv_sys_max_cmd_len=16384
6282 if test -x /sbin/sysconfig; then
6283 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6284 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6289 lt_cv_sys_max_cmd_len=102400
6291 sysv5* | sco5v6* | sysv4.2uw2*)
6292 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6293 if test -n "$kargmax"; then
6294 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6296 lt_cv_sys_max_cmd_len=32768
6300 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6301 if test -n "$lt_cv_sys_max_cmd_len" && \
6302 test undefined != "$lt_cv_sys_max_cmd_len"; then
6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6306 # Make teststring a little bigger before we do anything with it.
6307 # a 1K string should be a reasonable start.
6308 for i in 1 2 3 4 5 6 7 8; do
6309 teststring=$teststring$teststring
6311 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6312 # If test is not a shell built-in, we'll probably end up computing a
6313 # maximum length that is only half of the actual maximum length, but
6315 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6316 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6317 test 17 != "$i" # 1/2 MB should be enough
6320 teststring=$teststring$teststring
6322 # Only check the string length outside the loop.
6323 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6325 # Add a significant safety factor because C++ compilers can tack on
6326 # massive amounts of additional arguments before passing them to the
6327 # linker. It appears as though 1/2 is a usable value.
6328 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6335 if test -n "$lt_cv_sys_max_cmd_len"; then
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6337 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6340 printf "%s\n" "none" >&6; }
6342 max_cmd_len=$lt_cv_sys_max_cmd_len
6353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6363 # test EBCDIC or ASCII
6364 case `echo X|tr X '\101'` in
6365 A) # ASCII based system
6366 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6367 lt_SP2NL='tr \040 \012'
6368 lt_NL2SP='tr \015\012 \040\040'
6370 *) # EBCDIC based system
6371 lt_SP2NL='tr \100 \n'
6372 lt_NL2SP='tr \r\n \100\100'
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6385 printf %s "checking how to convert $build file names to $host format... " >&6; }
6386 if test ${lt_cv_to_host_file_cmd+y}
6388 printf %s "(cached) " >&6
6393 *-*-mingw* ) # actually msys
6394 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6397 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6399 * ) # otherwise, assume *nix
6400 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6406 *-*-mingw* ) # actually msys
6407 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6410 lt_cv_to_host_file_cmd=func_convert_file_noop
6412 * ) # otherwise, assume *nix
6413 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6417 * ) # unhandled hosts (and "normal" native builds)
6418 lt_cv_to_host_file_cmd=func_convert_file_noop
6424 to_host_file_cmd=$lt_cv_to_host_file_cmd
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6426 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6433 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6434 if test ${lt_cv_to_tool_file_cmd+y}
6436 printf %s "(cached) " >&6
6438 #assume ordinary cross tools, or native build.
6439 lt_cv_to_tool_file_cmd=func_convert_file_noop
6443 *-*-mingw* ) # actually msys
6444 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6452 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6454 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6461 printf %s "checking for $LD option to reload object files... " >&6; }
6462 if test ${lt_cv_ld_reload_flag+y}
6464 printf %s "(cached) " >&6
6466 lt_cv_ld_reload_flag='-r'
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6469 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6470 reload_flag=$lt_cv_ld_reload_flag
6471 case $reload_flag in
6473 *) reload_flag=" $reload_flag" ;;
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6477 cygwin* | mingw* | pw32* | cegcc*)
6478 if test yes != "$GCC"; then
6483 if test yes = "$GCC"; then
6484 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6486 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6499 if test -n "$ac_tool_prefix"; then
6500 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6501 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 printf %s "checking for $ac_word... " >&6; }
6504 if test ${ac_cv_prog_OBJDUMP+y}
6506 printf %s "(cached) " >&6
6508 if test -n "$OBJDUMP"; then
6509 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6515 case $as_dir in #(((
6518 *) as_dir=$as_dir/ ;;
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6532 OBJDUMP=$ac_cv_prog_OBJDUMP
6533 if test -n "$OBJDUMP"; then
6534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6535 printf "%s\n" "$OBJDUMP" >&6; }
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 printf "%s\n" "no" >&6; }
6543 if test -z "$ac_cv_prog_OBJDUMP"; then
6544 ac_ct_OBJDUMP=$OBJDUMP
6545 # Extract the first word of "objdump", so it can be a program name with args.
6546 set dummy objdump; ac_word=$2
6547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548 printf %s "checking for $ac_word... " >&6; }
6549 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6551 printf %s "(cached) " >&6
6553 if test -n "$ac_ct_OBJDUMP"; then
6554 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 case $as_dir in #(((
6563 *) as_dir=$as_dir/ ;;
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6567 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6577 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6578 if test -n "$ac_ct_OBJDUMP"; then
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6580 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 printf "%s\n" "no" >&6; }
6586 if test "x$ac_ct_OBJDUMP" = x; then
6589 case $cross_compiling:$ac_tool_warned in
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593 ac_tool_warned=yes ;;
6595 OBJDUMP=$ac_ct_OBJDUMP
6598 OBJDUMP="$ac_cv_prog_OBJDUMP"
6601 test -z "$OBJDUMP" && OBJDUMP=objdump
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6612 printf %s "checking how to recognize dependent libraries... " >&6; }
6613 if test ${lt_cv_deplibs_check_method+y}
6615 printf %s "(cached) " >&6
6617 lt_cv_file_magic_cmd='$MAGIC_CMD'
6618 lt_cv_file_magic_test_file=
6619 lt_cv_deplibs_check_method='unknown'
6620 # Need to set the preceding variable on all platforms that support
6621 # interlibrary dependencies.
6622 # 'none' -- dependencies not supported.
6623 # 'unknown' -- same as none, but documents that we really don't know.
6624 # 'pass_all' -- all dependencies passed with no checks.
6625 # 'test_compile' -- check by making test program.
6626 # 'file_magic [[regex]]' -- check by looking for files in library path
6627 # that responds to the $file_magic_cmd with a given extended regex.
6628 # If you have 'file' or equivalent on your system and you're not sure
6629 # whether 'pass_all' will *always* work, you probably want this one.
6633 lt_cv_deplibs_check_method=pass_all
6637 lt_cv_deplibs_check_method=pass_all
6641 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6642 lt_cv_file_magic_cmd='/usr/bin/file -L'
6643 lt_cv_file_magic_test_file=/shlib/libc.so
6647 # func_win32_libid is a shell function defined in ltmain.sh
6648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649 lt_cv_file_magic_cmd='func_win32_libid'
6653 # Base MSYS/MinGW do not provide the 'file' command needed by
6654 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6655 # unless we find 'file', for example because we are cross-compiling.
6656 if ( file / ) >/dev/null 2>&1; then
6657 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6658 lt_cv_file_magic_cmd='func_win32_libid'
6660 # Keep this pattern in sync with the one in func_win32_libid.
6661 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6662 lt_cv_file_magic_cmd='$OBJDUMP -f'
6667 # use the weaker test based on 'objdump'. See mingw*.
6668 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6669 lt_cv_file_magic_cmd='$OBJDUMP -f'
6672 darwin* | rhapsody*)
6673 lt_cv_deplibs_check_method=pass_all
6676 freebsd* | dragonfly*)
6677 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6680 # Not sure whether the presence of OpenBSD here was a mistake.
6681 # Let's accept both of them until this is cleared up.
6682 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6683 lt_cv_file_magic_cmd=/usr/bin/file
6684 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6688 lt_cv_deplibs_check_method=pass_all
6693 lt_cv_deplibs_check_method=pass_all
6696 hpux10.20* | hpux11*)
6697 lt_cv_file_magic_cmd=/usr/bin/file
6700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6701 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6704 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]'
6705 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6708 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6709 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6715 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6719 irix5* | irix6* | nonstopux*)
6721 *-32|*"-32 ") libmagic=32-bit;;
6722 *-n32|*"-n32 ") libmagic=N32;;
6723 *-64|*"-64 ") libmagic=64-bit;;
6724 *) libmagic=never-match;;
6726 lt_cv_deplibs_check_method=pass_all
6729 # This must be glibc/ELF.
6730 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6731 lt_cv_deplibs_check_method=pass_all
6735 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6736 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6738 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6743 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6744 lt_cv_file_magic_cmd=/usr/bin/file
6745 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6749 lt_cv_deplibs_check_method=pass_all
6753 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6756 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6760 osf3* | osf4* | osf5*)
6761 lt_cv_deplibs_check_method=pass_all
6765 lt_cv_deplibs_check_method=pass_all
6769 lt_cv_deplibs_check_method=pass_all
6772 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6773 lt_cv_deplibs_check_method=pass_all
6777 case $host_vendor in
6779 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]'
6780 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6783 lt_cv_deplibs_check_method=pass_all
6786 lt_cv_file_magic_cmd='/bin/file'
6787 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6790 lt_cv_file_magic_cmd='/bin/file'
6791 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6792 lt_cv_file_magic_test_file=/lib/libc.so
6795 lt_cv_deplibs_check_method=pass_all
6798 lt_cv_deplibs_check_method=pass_all
6804 lt_cv_deplibs_check_method=pass_all
6807 lt_cv_deplibs_check_method=pass_all
6812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6813 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6817 if test "$build" = "$host"; then
6820 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6823 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6829 file_magic_cmd=$lt_cv_file_magic_cmd
6830 deplibs_check_method=$lt_cv_deplibs_check_method
6831 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6854 if test -n "$ac_tool_prefix"; then
6855 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6856 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 printf %s "checking for $ac_word... " >&6; }
6859 if test ${ac_cv_prog_DLLTOOL+y}
6861 printf %s "(cached) " >&6
6863 if test -n "$DLLTOOL"; then
6864 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 case $as_dir in #(((
6873 *) as_dir=$as_dir/ ;;
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6887 DLLTOOL=$ac_cv_prog_DLLTOOL
6888 if test -n "$DLLTOOL"; then
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6890 printf "%s\n" "$DLLTOOL" >&6; }
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 printf "%s\n" "no" >&6; }
6898 if test -z "$ac_cv_prog_DLLTOOL"; then
6899 ac_ct_DLLTOOL=$DLLTOOL
6900 # Extract the first word of "dlltool", so it can be a program name with args.
6901 set dummy dlltool; ac_word=$2
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903 printf %s "checking for $ac_word... " >&6; }
6904 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6906 printf %s "(cached) " >&6
6908 if test -n "$ac_ct_DLLTOOL"; then
6909 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 case $as_dir in #(((
6918 *) as_dir=$as_dir/ ;;
6920 for ac_exec_ext in '' $ac_executable_extensions; do
6921 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6922 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6932 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6933 if test -n "$ac_ct_DLLTOOL"; then
6934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6935 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6938 printf "%s\n" "no" >&6; }
6941 if test "x$ac_ct_DLLTOOL" = x; then
6944 case $cross_compiling:$ac_tool_warned in
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6947 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6948 ac_tool_warned=yes ;;
6950 DLLTOOL=$ac_ct_DLLTOOL
6953 DLLTOOL="$ac_cv_prog_DLLTOOL"
6956 test -z "$DLLTOOL" && DLLTOOL=dlltool
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6968 printf %s "checking how to associate runtime and link libraries... " >&6; }
6969 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6971 printf %s "(cached) " >&6
6973 lt_cv_sharedlib_from_linklib_cmd='unknown'
6976 cygwin* | mingw* | pw32* | cegcc*)
6977 # two different shell functions defined in ltmain.sh;
6978 # decide which one to use based on capabilities of $DLLTOOL
6979 case `$DLLTOOL --help 2>&1` in
6980 *--identify-strict*)
6981 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6984 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6989 # fallback: assume linklib IS sharedlib
6990 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6996 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6997 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6998 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7006 if test -n "$ac_tool_prefix"; then
7009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 printf %s "checking for $ac_word... " >&6; }
7013 if test ${ac_cv_prog_AR+y}
7015 printf %s "(cached) " >&6
7017 if test -n "$AR"; then
7018 ac_cv_prog_AR="$AR" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 case $as_dir in #(((
7027 *) as_dir=$as_dir/ ;;
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7031 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7042 if test -n "$AR"; then
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7044 printf "%s\n" "$AR" >&6; }
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 printf "%s\n" "no" >&6; }
7051 test -n "$AR" && break
7054 if test -z "$AR"; then
7058 # Extract the first word of "$ac_prog", so it can be a program name with args.
7059 set dummy $ac_prog; ac_word=$2
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061 printf %s "checking for $ac_word... " >&6; }
7062 if test ${ac_cv_prog_ac_ct_AR+y}
7064 printf %s "(cached) " >&6
7066 if test -n "$ac_ct_AR"; then
7067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 case $as_dir in #(((
7076 *) as_dir=$as_dir/ ;;
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_ac_ct_AR="$ac_prog"
7081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7090 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7091 if test -n "$ac_ct_AR"; then
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7093 printf "%s\n" "$ac_ct_AR" >&6; }
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 printf "%s\n" "no" >&6; }
7100 test -n "$ac_ct_AR" && break
7103 if test "x$ac_ct_AR" = x; then
7106 case $cross_compiling:$ac_tool_warned in
7108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7130 printf %s "checking for archiver @FILE support... " >&6; }
7131 if test ${lt_cv_ar_at_file+y}
7133 printf %s "(cached) " >&6
7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7147 if ac_fn_c_try_compile "$LINENO"
7149 echo conftest.$ac_objext > conftest.lst
7150 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7152 (eval $lt_ar_try) 2>&5
7154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }
7156 if test 0 -eq "$ac_status"; then
7157 # Ensure the archiver fails upon bogus file names.
7158 rm -f conftest.$ac_objext libconftest.a
7159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7160 (eval $lt_ar_try) 2>&5
7162 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7163 test $ac_status = 0; }
7164 if test 0 -ne "$ac_status"; then
7168 rm -f conftest.* libconftest.a
7171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7175 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7177 if test no = "$lt_cv_ar_at_file"; then
7180 archiver_list_spec=$lt_cv_ar_at_file
7189 if test -n "$ac_tool_prefix"; then
7190 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}strip; ac_word=$2
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 printf %s "checking for $ac_word... " >&6; }
7194 if test ${ac_cv_prog_STRIP+y}
7196 printf %s "(cached) " >&6
7198 if test -n "$STRIP"; then
7199 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 case $as_dir in #(((
7208 *) as_dir=$as_dir/ ;;
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7212 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7222 STRIP=$ac_cv_prog_STRIP
7223 if test -n "$STRIP"; then
7224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7225 printf "%s\n" "$STRIP" >&6; }
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 printf "%s\n" "no" >&6; }
7233 if test -z "$ac_cv_prog_STRIP"; then
7235 # Extract the first word of "strip", so it can be a program name with args.
7236 set dummy strip; ac_word=$2
7237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7238 printf %s "checking for $ac_word... " >&6; }
7239 if test ${ac_cv_prog_ac_ct_STRIP+y}
7241 printf %s "(cached) " >&6
7243 if test -n "$ac_ct_STRIP"; then
7244 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 case $as_dir in #(((
7253 *) as_dir=$as_dir/ ;;
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7257 ac_cv_prog_ac_ct_STRIP="strip"
7258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7267 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7268 if test -n "$ac_ct_STRIP"; then
7269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7270 printf "%s\n" "$ac_ct_STRIP" >&6; }
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 printf "%s\n" "no" >&6; }
7276 if test "x$ac_ct_STRIP" = x; then
7279 case $cross_compiling:$ac_tool_warned in
7281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7283 ac_tool_warned=yes ;;
7288 STRIP="$ac_cv_prog_STRIP"
7291 test -z "$STRIP" && STRIP=:
7298 if test -n "$ac_tool_prefix"; then
7299 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7300 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 printf %s "checking for $ac_word... " >&6; }
7303 if test ${ac_cv_prog_RANLIB+y}
7305 printf %s "(cached) " >&6
7307 if test -n "$RANLIB"; then
7308 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 case $as_dir in #(((
7317 *) as_dir=$as_dir/ ;;
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7331 RANLIB=$ac_cv_prog_RANLIB
7332 if test -n "$RANLIB"; then
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7334 printf "%s\n" "$RANLIB" >&6; }
7336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 printf "%s\n" "no" >&6; }
7342 if test -z "$ac_cv_prog_RANLIB"; then
7343 ac_ct_RANLIB=$RANLIB
7344 # Extract the first word of "ranlib", so it can be a program name with args.
7345 set dummy ranlib; ac_word=$2
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 printf %s "checking for $ac_word... " >&6; }
7348 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7350 printf %s "(cached) " >&6
7352 if test -n "$ac_ct_RANLIB"; then
7353 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 case $as_dir in #(((
7362 *) as_dir=$as_dir/ ;;
7364 for ac_exec_ext in '' $ac_executable_extensions; do
7365 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7366 ac_cv_prog_ac_ct_RANLIB="ranlib"
7367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7376 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7377 if test -n "$ac_ct_RANLIB"; then
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7379 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 printf "%s\n" "no" >&6; }
7385 if test "x$ac_ct_RANLIB" = x; then
7388 case $cross_compiling:$ac_tool_warned in
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7394 RANLIB=$ac_ct_RANLIB
7397 RANLIB="$ac_cv_prog_RANLIB"
7400 test -z "$RANLIB" && RANLIB=:
7407 # Determine commands to create old-style static archives.
7408 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7409 old_postinstall_cmds='chmod 644 $oldlib'
7410 old_postuninstall_cmds=
7412 if test -n "$RANLIB"; then
7415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7421 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7426 lock_old_archive_extraction=yes ;;
7428 lock_old_archive_extraction=no ;;
7469 # If no C compiler was specified, use CC.
7472 # If no C compiler flags were specified, use CFLAGS.
7473 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7475 # Allow CC to be a program name with arguments.
7479 # Check for command to grab the raw symbol name followed by C symbol from nm.
7480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7481 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7482 if test ${lt_cv_sys_global_symbol_pipe+y}
7484 printf %s "(cached) " >&6
7487 # These are sane defaults that work on at least a few old systems.
7488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7490 # Character class describing NM global symbol codes.
7491 symcode='[BCDEGRST]'
7493 # Regexp to match symbols that can be accessed directly from C.
7494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7496 # Define system-specific variables.
7501 cygwin* | mingw* | pw32* | cegcc*)
7502 symcode='[ABCDGISTW]'
7505 if test ia64 = "$host_cpu"; then
7506 symcode='[ABCDEGRST]'
7510 symcode='[BCDEGRST]'
7513 symcode='[BCDEGQRST]'
7524 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7532 # If we're using GNU nm, then use its standard symbol codes.
7533 case `$NM -V 2>&1` in
7534 *GNU* | *'with BFD'*)
7535 symcode='[ABCDGIRSTW]' ;;
7538 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7539 # Gets list of data symbols to import.
7540 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7541 # Adjust the below global symbol transforms to fixup imported variables.
7542 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7543 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7544 lt_c_name_lib_hook="\
7545 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7546 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7548 # Disable hooks by default.
7549 lt_cv_sys_global_symbol_to_import=
7555 # Transform an extracted symbol line into a proper C declaration.
7556 # Some systems (esp. on ia64) link data and code symbols differently,
7557 # so use this general approach.
7558 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7560 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7561 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7563 # Transform an extracted symbol line into symbol name and symbol address
7564 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7566 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7567 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7569 # Transform an extracted symbol line into symbol name with lib prefix and
7571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7572 $lt_c_name_lib_hook\
7573 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7574 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7575 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7577 # Handle CRLF in mingw tool chain
7581 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7585 # Try without a prefix underscore, then with it.
7586 for ac_symprfx in "" "_"; do
7588 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7589 symxfrm="\\1 $ac_symprfx\\2 \\2"
7591 # Write the raw and C identifiers.
7592 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7593 # Fake it for dumpbin and say T for any non-static function,
7594 # D for any global variable and I for any imported variable.
7595 # Also find C++ and __fastcall symbols from MSVC++,
7596 # which start with @ or ?.
7597 lt_cv_sys_global_symbol_pipe="$AWK '"\
7598 " {last_section=section; section=\$ 3};"\
7599 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7600 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7601 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7602 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7603 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7604 " \$ 0!~/External *\|/{next};"\
7605 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7606 " {if(hide[section]) next};"\
7607 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7608 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7609 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7610 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7611 " ' prfx=^$ac_symprfx"
7613 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7615 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7617 # Check to see that the pipe works correctly.
7621 cat > conftest.$ac_ext <<_LT_EOF
7626 void nm_test_func(void);
7627 void nm_test_func(void){}
7631 int main(){nm_test_var='a';nm_test_func();return(0);}
7634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7635 (eval $ac_compile) 2>&5
7637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638 test $ac_status = 0; }; then
7639 # Now try to grab the symbols.
7641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7642 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; } && test -s "$nlist"; then
7646 # Try sorting and uniquifying the output.
7647 if sort "$nlist" | uniq > "$nlist"T; then
7648 mv -f "$nlist"T "$nlist"
7653 # Make sure that we snagged all the symbols we need.
7654 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7655 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7656 cat <<_LT_EOF > conftest.$ac_ext
7657 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7658 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7659 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7660 relocations are performed -- see ld's documentation on pseudo-relocs. */
7661 # define LT_DLSYM_CONST
7662 #elif defined __osf__
7663 /* This system does not cope well with relocations in const data. */
7664 # define LT_DLSYM_CONST
7666 # define LT_DLSYM_CONST const
7674 # Now generate the symbol file.
7675 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7677 cat <<_LT_EOF >> conftest.$ac_ext
7679 /* The mapping between symbol names and symbols. */
7680 LT_DLSYM_CONST struct {
7684 lt__PROGRAM__LTX_preloaded_symbols[] =
7686 { "@PROGRAM@", (void *) 0 },
7688 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7689 cat <<\_LT_EOF >> conftest.$ac_ext
7693 /* This works around a problem in FreeBSD linker */
7694 #ifdef FREEBSD_WORKAROUND
7695 static const void *lt_preloaded_setup() {
7696 return lt__PROGRAM__LTX_preloaded_symbols;
7704 # Now try linking the two files.
7705 mv conftest.$ac_objext conftstm.$ac_objext
7706 lt_globsym_save_LIBS=$LIBS
7707 lt_globsym_save_CFLAGS=$CFLAGS
7708 LIBS=conftstm.$ac_objext
7709 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7711 (eval $ac_link) 2>&5
7713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7714 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7717 LIBS=$lt_globsym_save_LIBS
7718 CFLAGS=$lt_globsym_save_CFLAGS
7720 echo "cannot find nm_test_func in $nlist" >&5
7723 echo "cannot find nm_test_var in $nlist" >&5
7726 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7729 echo "$progname: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7732 rm -rf conftest* conftst*
7734 # Do not use the global_symbol_pipe unless it works.
7735 if test yes = "$pipe_works"; then
7738 lt_cv_sys_global_symbol_pipe=
7744 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7745 lt_cv_sys_global_symbol_to_cdecl=
7747 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7749 printf "%s\n" "failed" >&6; }
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7752 printf "%s\n" "ok" >&6; }
7755 # Response file support.
7756 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7757 nm_file_list_spec='@'
7758 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7759 nm_file_list_spec='@'
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7799 printf %s "checking for sysroot... " >&6; }
7801 # Check whether --with-sysroot was given.
7802 if test ${with_sysroot+y}
7804 withval=$with_sysroot;
7811 case $with_sysroot in #(
7813 if test yes = "$GCC"; then
7814 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7818 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7824 printf "%s\n" "$with_sysroot" >&6; }
7825 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7830 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7837 printf %s "checking for a working dd... " >&6; }
7838 if test ${ac_cv_path_lt_DD+y}
7840 printf %s "(cached) " >&6
7842 printf 0123456789abcdef0123456789abcdef >conftest.i
7843 cat conftest.i conftest.i >conftest2.i
7845 if test -z "$lt_DD"; then
7846 ac_path_lt_DD_found=false
7847 # Loop through the user's path and test for each of PROGNAME-LIST
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 case $as_dir in #(((
7855 *) as_dir=$as_dir/ ;;
7859 for ac_exec_ext in '' $ac_executable_extensions; do
7860 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7861 as_fn_executable_p "$ac_path_lt_DD" || continue
7862 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7863 cmp -s conftest.i conftest.out \
7864 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7866 $ac_path_lt_DD_found && break 3
7871 if test -z "$ac_cv_path_lt_DD"; then
7875 ac_cv_path_lt_DD=$lt_DD
7878 rm -f conftest.i conftest2.i conftest.out
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7881 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7885 printf %s "checking how to truncate binary pipes... " >&6; }
7886 if test ${lt_cv_truncate_bin+y}
7888 printf %s "(cached) " >&6
7890 printf 0123456789abcdef0123456789abcdef >conftest.i
7891 cat conftest.i conftest.i >conftest2.i
7893 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7894 cmp -s conftest.i conftest.out \
7895 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7897 rm -f conftest.i conftest2.i conftest.out
7898 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7901 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7909 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7912 for cc_temp in $*""; do
7914 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7915 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7920 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7923 # Check whether --enable-libtool-lock was given.
7924 if test ${enable_libtool_lock+y}
7926 enableval=$enable_libtool_lock;
7929 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7931 # Some flags need to be propagated to the compiler or linker for good
7935 # Find out what ABI is being produced by ac_compile, and set mode
7936 # options accordingly.
7937 echo 'int i;' > conftest.$ac_ext
7938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7939 (eval $ac_compile) 2>&5
7941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7942 test $ac_status = 0; }; then
7943 case `/usr/bin/file conftest.$ac_objext` in
7955 # Find out what ABI is being produced by ac_compile, and set linker
7956 # options accordingly.
7957 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959 (eval $ac_compile) 2>&5
7961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 if test yes = "$lt_cv_prog_gnu_ld"; then
7964 case `/usr/bin/file conftest.$ac_objext` in
7966 LD="${LD-ld} -melf32bsmip"
7969 LD="${LD-ld} -melf32bmipn32"
7972 LD="${LD-ld} -melf64bmip"
7976 case `/usr/bin/file conftest.$ac_objext` in
7993 # Find out what ABI is being produced by ac_compile, and set linker
7994 # options accordingly.
7995 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7997 (eval $ac_compile) 2>&5
7999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8000 test $ac_status = 0; }; then
8002 case `/usr/bin/file conftest.$ac_objext` in
8010 case `/usr/bin/file conftest.$ac_objext` in
8012 emul="${emul}btsmip"
8015 emul="${emul}ltsmip"
8018 case `/usr/bin/file conftest.$ac_objext` in
8023 LD="${LD-ld} -m $emul"
8028 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8029 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8030 # Find out what ABI is being produced by ac_compile, and set linker
8031 # options accordingly. Note that the listed cases only cover the
8032 # situations where additional linker options are needed (such as when
8033 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8034 # vice versa); the common cases where no linker options are needed do
8035 # not appear in the list.
8036 echo 'int i;' > conftest.$ac_ext
8037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8038 (eval $ac_compile) 2>&5
8040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }; then
8042 case `/usr/bin/file conftest.o` in
8045 x86_64-*kfreebsd*-gnu)
8046 LD="${LD-ld} -m elf_i386_fbsd"
8049 case `/usr/bin/file conftest.o` in
8051 LD="${LD-ld} -m elf32_x86_64"
8054 LD="${LD-ld} -m elf_i386"
8058 powerpc64le-*linux*)
8059 LD="${LD-ld} -m elf32lppclinux"
8062 LD="${LD-ld} -m elf32ppclinux"
8065 LD="${LD-ld} -m elf_s390"
8068 LD="${LD-ld} -m elf32_sparc"
8074 x86_64-*kfreebsd*-gnu)
8075 LD="${LD-ld} -m elf_x86_64_fbsd"
8078 LD="${LD-ld} -m elf_x86_64"
8081 LD="${LD-ld} -m elf64lppc"
8084 LD="${LD-ld} -m elf64ppc"
8086 s390*-*linux*|s390*-*tpf*)
8087 LD="${LD-ld} -m elf64_s390"
8090 LD="${LD-ld} -m elf64_sparc"
8100 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8102 CFLAGS="$CFLAGS -belf"
8103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8104 printf %s "checking whether the C compiler needs -belf... " >&6; }
8105 if test ${lt_cv_cc_needs_belf+y}
8107 printf %s "(cached) " >&6
8110 ac_cpp='$CPP $CPPFLAGS'
8111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8126 if ac_fn_c_try_link "$LINENO"
8128 lt_cv_cc_needs_belf=yes
8130 lt_cv_cc_needs_belf=no
8132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8133 conftest$ac_exeext conftest.$ac_ext
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8142 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8143 if test yes != "$lt_cv_cc_needs_belf"; then
8144 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8149 # Find out what ABI is being produced by ac_compile, and set linker
8150 # options accordingly.
8151 echo 'int i;' > conftest.$ac_ext
8152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8153 (eval $ac_compile) 2>&5
8155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156 test $ac_status = 0; }; then
8157 case `/usr/bin/file conftest.o` in
8159 case $lt_cv_prog_gnu_ld in
8162 i?86-*-solaris*|x86_64-*-solaris*)
8163 LD="${LD-ld} -m elf_x86_64"
8166 LD="${LD-ld} -m elf64_sparc"
8169 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8170 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8175 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8187 need_locks=$enable_libtool_lock
8189 if test -n "$ac_tool_prefix"; then
8190 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8191 set dummy ${ac_tool_prefix}mt; ac_word=$2
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 printf %s "checking for $ac_word... " >&6; }
8194 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8196 printf %s "(cached) " >&6
8198 if test -n "$MANIFEST_TOOL"; then
8199 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 case $as_dir in #(((
8208 *) as_dir=$as_dir/ ;;
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8222 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8223 if test -n "$MANIFEST_TOOL"; then
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8225 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 printf "%s\n" "no" >&6; }
8233 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8234 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8235 # Extract the first word of "mt", so it can be a program name with args.
8236 set dummy mt; ac_word=$2
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 printf %s "checking for $ac_word... " >&6; }
8239 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8241 printf %s "(cached) " >&6
8243 if test -n "$ac_ct_MANIFEST_TOOL"; then
8244 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 case $as_dir in #(((
8253 *) as_dir=$as_dir/ ;;
8255 for ac_exec_ext in '' $ac_executable_extensions; do
8256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8257 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8267 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8268 if test -n "$ac_ct_MANIFEST_TOOL"; then
8269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8270 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8273 printf "%s\n" "no" >&6; }
8276 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8279 case $cross_compiling:$ac_tool_warned in
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8283 ac_tool_warned=yes ;;
8285 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8288 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8291 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8293 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8294 if test ${lt_cv_path_mainfest_tool+y}
8296 printf %s "(cached) " >&6
8298 lt_cv_path_mainfest_tool=no
8299 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8300 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8301 cat conftest.err >&5
8302 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8303 lt_cv_path_mainfest_tool=yes
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8308 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8309 if test yes != "$lt_cv_path_mainfest_tool"; then
8319 rhapsody* | darwin*)
8320 if test -n "$ac_tool_prefix"; then
8321 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8322 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8324 printf %s "checking for $ac_word... " >&6; }
8325 if test ${ac_cv_prog_DSYMUTIL+y}
8327 printf %s "(cached) " >&6
8329 if test -n "$DSYMUTIL"; then
8330 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 case $as_dir in #(((
8339 *) as_dir=$as_dir/ ;;
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8343 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8353 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8354 if test -n "$DSYMUTIL"; then
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8356 printf "%s\n" "$DSYMUTIL" >&6; }
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 printf "%s\n" "no" >&6; }
8364 if test -z "$ac_cv_prog_DSYMUTIL"; then
8365 ac_ct_DSYMUTIL=$DSYMUTIL
8366 # Extract the first word of "dsymutil", so it can be a program name with args.
8367 set dummy dsymutil; ac_word=$2
8368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 printf %s "checking for $ac_word... " >&6; }
8370 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8372 printf %s "(cached) " >&6
8374 if test -n "$ac_ct_DSYMUTIL"; then
8375 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 case $as_dir in #(((
8384 *) as_dir=$as_dir/ ;;
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8388 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8398 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8399 if test -n "$ac_ct_DSYMUTIL"; then
8400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8401 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 printf "%s\n" "no" >&6; }
8407 if test "x$ac_ct_DSYMUTIL" = x; then
8410 case $cross_compiling:$ac_tool_warned in
8412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8416 DSYMUTIL=$ac_ct_DSYMUTIL
8419 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8422 if test -n "$ac_tool_prefix"; then
8423 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8424 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 printf %s "checking for $ac_word... " >&6; }
8427 if test ${ac_cv_prog_NMEDIT+y}
8429 printf %s "(cached) " >&6
8431 if test -n "$NMEDIT"; then
8432 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 case $as_dir in #(((
8441 *) as_dir=$as_dir/ ;;
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8445 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8455 NMEDIT=$ac_cv_prog_NMEDIT
8456 if test -n "$NMEDIT"; then
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8458 printf "%s\n" "$NMEDIT" >&6; }
8460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 printf "%s\n" "no" >&6; }
8466 if test -z "$ac_cv_prog_NMEDIT"; then
8467 ac_ct_NMEDIT=$NMEDIT
8468 # Extract the first word of "nmedit", so it can be a program name with args.
8469 set dummy nmedit; ac_word=$2
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 printf %s "checking for $ac_word... " >&6; }
8472 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8474 printf %s "(cached) " >&6
8476 if test -n "$ac_ct_NMEDIT"; then
8477 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 case $as_dir in #(((
8486 *) as_dir=$as_dir/ ;;
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8490 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8500 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8501 if test -n "$ac_ct_NMEDIT"; then
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8503 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506 printf "%s\n" "no" >&6; }
8509 if test "x$ac_ct_NMEDIT" = x; then
8512 case $cross_compiling:$ac_tool_warned in
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8515 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8516 ac_tool_warned=yes ;;
8518 NMEDIT=$ac_ct_NMEDIT
8521 NMEDIT="$ac_cv_prog_NMEDIT"
8524 if test -n "$ac_tool_prefix"; then
8525 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8526 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8528 printf %s "checking for $ac_word... " >&6; }
8529 if test ${ac_cv_prog_LIPO+y}
8531 printf %s "(cached) " >&6
8533 if test -n "$LIPO"; then
8534 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 case $as_dir in #(((
8543 *) as_dir=$as_dir/ ;;
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8547 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8557 LIPO=$ac_cv_prog_LIPO
8558 if test -n "$LIPO"; then
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8560 printf "%s\n" "$LIPO" >&6; }
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 printf "%s\n" "no" >&6; }
8568 if test -z "$ac_cv_prog_LIPO"; then
8570 # Extract the first word of "lipo", so it can be a program name with args.
8571 set dummy lipo; ac_word=$2
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8573 printf %s "checking for $ac_word... " >&6; }
8574 if test ${ac_cv_prog_ac_ct_LIPO+y}
8576 printf %s "(cached) " >&6
8578 if test -n "$ac_ct_LIPO"; then
8579 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 case $as_dir in #(((
8588 *) as_dir=$as_dir/ ;;
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8592 ac_cv_prog_ac_ct_LIPO="lipo"
8593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8602 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8603 if test -n "$ac_ct_LIPO"; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8605 printf "%s\n" "$ac_ct_LIPO" >&6; }
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8611 if test "x$ac_ct_LIPO" = x; then
8614 case $cross_compiling:$ac_tool_warned in
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8623 LIPO="$ac_cv_prog_LIPO"
8626 if test -n "$ac_tool_prefix"; then
8627 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8628 set dummy ${ac_tool_prefix}otool; ac_word=$2
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 printf %s "checking for $ac_word... " >&6; }
8631 if test ${ac_cv_prog_OTOOL+y}
8633 printf %s "(cached) " >&6
8635 if test -n "$OTOOL"; then
8636 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8642 case $as_dir in #(((
8645 *) as_dir=$as_dir/ ;;
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8649 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8659 OTOOL=$ac_cv_prog_OTOOL
8660 if test -n "$OTOOL"; then
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8662 printf "%s\n" "$OTOOL" >&6; }
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8665 printf "%s\n" "no" >&6; }
8670 if test -z "$ac_cv_prog_OTOOL"; then
8672 # Extract the first word of "otool", so it can be a program name with args.
8673 set dummy otool; ac_word=$2
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 printf %s "checking for $ac_word... " >&6; }
8676 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8678 printf %s "(cached) " >&6
8680 if test -n "$ac_ct_OTOOL"; then
8681 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 case $as_dir in #(((
8690 *) as_dir=$as_dir/ ;;
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8694 ac_cv_prog_ac_ct_OTOOL="otool"
8695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8705 if test -n "$ac_ct_OTOOL"; then
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8707 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 printf "%s\n" "no" >&6; }
8713 if test "x$ac_ct_OTOOL" = x; then
8716 case $cross_compiling:$ac_tool_warned in
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8725 OTOOL="$ac_cv_prog_OTOOL"
8728 if test -n "$ac_tool_prefix"; then
8729 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 printf %s "checking for $ac_word... " >&6; }
8733 if test ${ac_cv_prog_OTOOL64+y}
8735 printf %s "(cached) " >&6
8737 if test -n "$OTOOL64"; then
8738 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 case $as_dir in #(((
8747 *) as_dir=$as_dir/ ;;
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8751 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8761 OTOOL64=$ac_cv_prog_OTOOL64
8762 if test -n "$OTOOL64"; then
8763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8764 printf "%s\n" "$OTOOL64" >&6; }
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 printf "%s\n" "no" >&6; }
8772 if test -z "$ac_cv_prog_OTOOL64"; then
8773 ac_ct_OTOOL64=$OTOOL64
8774 # Extract the first word of "otool64", so it can be a program name with args.
8775 set dummy otool64; ac_word=$2
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 printf %s "checking for $ac_word... " >&6; }
8778 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8780 printf %s "(cached) " >&6
8782 if test -n "$ac_ct_OTOOL64"; then
8783 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 case $as_dir in #(((
8792 *) as_dir=$as_dir/ ;;
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_ac_ct_OTOOL64="otool64"
8797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8806 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8807 if test -n "$ac_ct_OTOOL64"; then
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8809 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 printf "%s\n" "no" >&6; }
8815 if test "x$ac_ct_OTOOL64" = x; then
8818 case $cross_compiling:$ac_tool_warned in
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822 ac_tool_warned=yes ;;
8824 OTOOL64=$ac_ct_OTOOL64
8827 OTOOL64="$ac_cv_prog_OTOOL64"
8856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8857 printf %s "checking for -single_module linker flag... " >&6; }
8858 if test ${lt_cv_apple_cc_single_mod+y}
8860 printf %s "(cached) " >&6
8862 lt_cv_apple_cc_single_mod=no
8863 if test -z "$LT_MULTI_MODULE"; then
8864 # By default we will add the -single_module flag. You can override
8865 # by either setting the environment variable LT_MULTI_MODULE
8866 # non-empty at configure time, or by adding -multi_module to the
8868 rm -rf libconftest.dylib*
8869 echo "int foo(void){return 1;}" > conftest.c
8870 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8871 -dynamiclib -Wl,-single_module conftest.c" >&5
8872 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8873 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8875 # If there is a non-empty error log, and "single_module"
8876 # appears in it, assume the flag caused a linker warning
8877 if test -s conftest.err && $GREP single_module conftest.err; then
8878 cat conftest.err >&5
8879 # Otherwise, if the output was created with a 0 exit code from
8880 # the compiler, it worked.
8881 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8882 lt_cv_apple_cc_single_mod=yes
8884 cat conftest.err >&5
8886 rm -rf libconftest.dylib*
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8891 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8894 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8895 if test ${lt_cv_ld_exported_symbols_list+y}
8897 printf %s "(cached) " >&6
8899 lt_cv_ld_exported_symbols_list=no
8900 save_LDFLAGS=$LDFLAGS
8901 echo "_main" > conftest.sym
8902 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8914 if ac_fn_c_try_link "$LINENO"
8916 lt_cv_ld_exported_symbols_list=yes
8918 lt_cv_ld_exported_symbols_list=no
8920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8921 conftest$ac_exeext conftest.$ac_ext
8922 LDFLAGS=$save_LDFLAGS
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8926 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8929 printf %s "checking for -force_load linker flag... " >&6; }
8930 if test ${lt_cv_ld_force_load+y}
8932 printf %s "(cached) " >&6
8934 lt_cv_ld_force_load=no
8935 cat > conftest.c << _LT_EOF
8936 int forced_loaded() { return 2;}
8938 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8939 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8940 echo "$AR cru libconftest.a conftest.o" >&5
8941 $AR cru libconftest.a conftest.o 2>&5
8942 echo "$RANLIB libconftest.a" >&5
8943 $RANLIB libconftest.a 2>&5
8944 cat > conftest.c << _LT_EOF
8945 int main() { return 0;}
8947 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8948 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8950 if test -s conftest.err && $GREP force_load conftest.err; then
8951 cat conftest.err >&5
8952 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8953 lt_cv_ld_force_load=yes
8955 cat conftest.err >&5
8957 rm -f conftest.err libconftest.a conftest conftest.c
8958 rm -rf conftest.dSYM
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8962 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8964 rhapsody* | darwin1.[012])
8965 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8967 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8968 darwin*) # darwin 5.x on
8969 # if running on 10.5 or later, the deployment target defaults
8970 # to the OS version, if on x86, and 10.4, the deployment
8971 # target defaults to 10.4. Don't you love it?
8972 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8973 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8974 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8976 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8978 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8982 if test yes = "$lt_cv_apple_cc_single_mod"; then
8983 _lt_dar_single_mod='$single_module'
8985 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8986 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8988 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8990 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8991 _lt_dsymutil='~$DSYMUTIL $lib || :'
8998 # func_munge_path_list VARIABLE PATH
8999 # -----------------------------------
9000 # VARIABLE is name of variable containing _space_ separated list of
9001 # directories to be munged by the contents of PATH, which is string
9004 # string "DIR[ DIR]" will be prepended to VARIABLE
9006 # string "DIR[ DIR]" will be appended to VARIABLE
9007 # "DIRP[:DIRP]::[DIRA:]DIRA"
9008 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9009 # "DIRA[ DIRA]" will be appended to VARIABLE
9011 # VARIABLE will be replaced by "DIR[ DIR]"
9012 func_munge_path_list ()
9018 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9021 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9024 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9025 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9028 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9033 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9035 if test "x$ac_cv_header_dlfcn_h" = xyes
9037 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9046 # Check whether --enable-static was given.
9047 if test ${enable_static+y}
9049 enableval=$enable_static; p=${PACKAGE-default}
9051 yes) enable_static=yes ;;
9052 no) enable_static=no ;;
9055 # Look at the argument we got. We use all the common list separators.
9056 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9057 for pkg in $enableval; do
9059 if test "X$pkg" = "X$p"; then
9077 # Check whether --with-pic was given.
9078 if test ${with_pic+y}
9080 withval=$with_pic; lt_p=${PACKAGE-default}
9082 yes|no) pic_mode=$withval ;;
9085 # Look at the argument we got. We use all the common list separators.
9086 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9087 for lt_pkg in $withval; do
9089 if test "X$lt_pkg" = "X$lt_p"; then
9114 # Check whether --enable-shared was given.
9115 if test ${enable_shared+y}
9117 enableval=$enable_shared; p=${PACKAGE-default}
9119 yes) enable_shared=yes ;;
9120 no) enable_shared=no ;;
9123 # Look at the argument we got. We use all the common list separators.
9124 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9125 for pkg in $enableval; do
9127 if test "X$pkg" = "X$p"; then
9148 # Check whether --enable-fast-install was given.
9149 if test ${enable_fast_install+y}
9151 enableval=$enable_fast_install; p=${PACKAGE-default}
9153 yes) enable_fast_install=yes ;;
9154 no) enable_fast_install=no ;;
9156 enable_fast_install=no
9157 # Look at the argument we got. We use all the common list separators.
9158 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9159 for pkg in $enableval; do
9161 if test "X$pkg" = "X$p"; then
9162 enable_fast_install=yes
9169 enable_fast_install=yes
9179 shared_archive_member_spec=
9180 case $host,$enable_shared in
9181 power*-*-aix[5-9]*,yes)
9182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9183 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9185 # Check whether --with-aix-soname was given.
9186 if test ${with_aix_soname+y}
9188 withval=$with_aix_soname; case $withval in
9192 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9195 lt_cv_with_aix_soname=$with_aix_soname
9197 if test ${lt_cv_with_aix_soname+y}
9199 printf %s "(cached) " >&6
9201 lt_cv_with_aix_soname=aix
9204 with_aix_soname=$lt_cv_with_aix_soname
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9208 printf "%s\n" "$with_aix_soname" >&6; }
9209 if test aix != "$with_aix_soname"; then
9210 # For the AIX way of multilib, we name the shared archive member
9211 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9212 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9213 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9214 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9215 if test 64 = "${OBJECT_MODE-32}"; then
9216 shared_archive_member_spec=shr_64
9218 shared_archive_member_spec=shr
9236 # This can be used to rebuild libtool when needed
9237 LIBTOOL_DEPS=$ltmain
9239 # Always use our own libtool.
9240 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9271 test -z "$LN_S" && LN_S="ln -s"
9286 if test -n "${ZSH_VERSION+set}"; then
9287 setopt NO_GLOB_SUBST
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9291 printf %s "checking for objdir... " >&6; }
9292 if test ${lt_cv_objdir+y}
9294 printf %s "(cached) " >&6
9296 rm -f .libs 2>/dev/null
9297 mkdir .libs 2>/dev/null
9298 if test -d .libs; then
9301 # MS-DOS does not allow filenames that begin with a dot.
9304 rmdir .libs 2>/dev/null
9306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9307 printf "%s\n" "$lt_cv_objdir" >&6; }
9308 objdir=$lt_cv_objdir
9314 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9321 # AIX sometimes has problems with the GCC collect2 program. For some
9322 # reason, if we set the COLLECT_NAMES environment variable, the problems
9323 # vanish in a puff of smoke.
9324 if test set != "${COLLECT_NAMES+set}"; then
9326 export COLLECT_NAMES
9333 can_build_shared=yes
9335 # All known linkers require a '.a' archive for static linking (except MSVC,
9336 # which needs '.lib').
9339 with_gnu_ld=$lt_cv_prog_gnu_ld
9344 # Set sane defaults for various variables
9345 test -z "$CC" && CC=cc
9346 test -z "$LTCC" && LTCC=$CC
9347 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9348 test -z "$LD" && LD=ld
9349 test -z "$ac_objext" && ac_objext=o
9351 func_cc_basename $compiler
9352 cc_basename=$func_cc_basename_result
9355 # Only perform the check for file, if the check method requires it
9356 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9357 case $deplibs_check_method in
9359 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9361 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9362 if test ${lt_cv_path_MAGIC_CMD+y}
9364 printf %s "(cached) " >&6
9368 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9371 lt_save_MAGIC_CMD=$MAGIC_CMD
9372 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9373 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9374 for ac_dir in $ac_dummy; do
9376 test -z "$ac_dir" && ac_dir=.
9377 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9378 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9379 if test -n "$file_magic_test_file"; then
9380 case $deplibs_check_method in
9382 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9383 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9385 $EGREP "$file_magic_regex" > /dev/null; then
9390 *** Warning: the command libtool uses to detect shared libraries,
9391 *** $file_magic_cmd, produces output that libtool cannot recognize.
9392 *** The result is that libtool may fail to recognize shared libraries
9393 *** as such. This will affect the creation of libtool libraries that
9394 *** depend on shared libraries, but programs linked with such libtool
9395 *** libraries will work regardless of this problem. Nevertheless, you
9396 *** may want to report the problem to your system manager and/or to
9397 *** bug-libtool@gnu.org
9407 MAGIC_CMD=$lt_save_MAGIC_CMD
9412 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9413 if test -n "$MAGIC_CMD"; then
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9415 printf "%s\n" "$MAGIC_CMD" >&6; }
9417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 printf "%s\n" "no" >&6; }
9425 if test -z "$lt_cv_path_MAGIC_CMD"; then
9426 if test -n "$ac_tool_prefix"; then
9427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9428 printf %s "checking for file... " >&6; }
9429 if test ${lt_cv_path_MAGIC_CMD+y}
9431 printf %s "(cached) " >&6
9435 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9438 lt_save_MAGIC_CMD=$MAGIC_CMD
9439 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9440 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9441 for ac_dir in $ac_dummy; do
9443 test -z "$ac_dir" && ac_dir=.
9444 if test -f "$ac_dir/file"; then
9445 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9446 if test -n "$file_magic_test_file"; then
9447 case $deplibs_check_method in
9449 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9450 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9451 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9452 $EGREP "$file_magic_regex" > /dev/null; then
9457 *** Warning: the command libtool uses to detect shared libraries,
9458 *** $file_magic_cmd, produces output that libtool cannot recognize.
9459 *** The result is that libtool may fail to recognize shared libraries
9460 *** as such. This will affect the creation of libtool libraries that
9461 *** depend on shared libraries, but programs linked with such libtool
9462 *** libraries will work regardless of this problem. Nevertheless, you
9463 *** may want to report the problem to your system manager and/or to
9464 *** bug-libtool@gnu.org
9474 MAGIC_CMD=$lt_save_MAGIC_CMD
9479 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9480 if test -n "$MAGIC_CMD"; then
9481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9482 printf "%s\n" "$MAGIC_CMD" >&6; }
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 printf "%s\n" "no" >&6; }
9498 # Use C for the default configuration in the libtool script
9502 ac_cpp='$CPP $CPPFLAGS'
9503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9508 # Source file extension for C test sources.
9511 # Object file extension for compiled C test sources.
9515 # Code to be used in simple compile tests
9516 lt_simple_compile_test_code="int some_variable = 0;"
9518 # Code to be used in simple link tests
9519 lt_simple_link_test_code='int main(){return(0);}'
9527 # If no C compiler was specified, use CC.
9530 # If no C compiler flags were specified, use CFLAGS.
9531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9533 # Allow CC to be a program name with arguments.
9536 # Save the default compiler, since it gets overwritten when the other
9537 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9538 compiler_DEFAULT=$CC
9540 # save warnings/boilerplate of simple test code
9541 ac_outfile=conftest.$ac_objext
9542 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9543 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9544 _lt_compiler_boilerplate=`cat conftest.err`
9547 ac_outfile=conftest.$ac_objext
9548 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9549 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9550 _lt_linker_boilerplate=`cat conftest.err`
9555 ## There is no encapsulation within the following macros, do not change
9556 ## the running order or otherwise move them around unless you know exactly
9557 ## what you are doing...
9558 if test -n "$compiler"; then
9560 lt_prog_compiler_no_builtin_flag=
9562 if test yes = "$GCC"; then
9563 case $cc_basename in
9565 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9567 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9571 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9572 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9574 printf %s "(cached) " >&6
9576 lt_cv_prog_compiler_rtti_exceptions=no
9577 ac_outfile=conftest.$ac_objext
9578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9579 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9580 # Insert the option either (1) after the last *FLAGS variable, or
9581 # (2) before a word containing "conftest.", or (3) at the end.
9582 # Note that $ac_compile itself does not contain backslashes and begins
9583 # with a dollar sign (not a hyphen), so the echo should work correctly.
9584 # The option is referenced via a variable to avoid confusing sed.
9585 lt_compile=`echo "$ac_compile" | $SED \
9586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9588 -e 's:$: $lt_compiler_flag:'`
9589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9590 (eval "$lt_compile" 2>conftest.err)
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 if (exit $ac_status) && test -s "$ac_outfile"; then
9595 # The compiler can only warn and ignore the option if not recognized
9596 # So say no if there are warnings other than the usual output.
9597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9600 lt_cv_prog_compiler_rtti_exceptions=yes
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9607 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9609 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9610 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9622 lt_prog_compiler_wl=
9623 lt_prog_compiler_pic=
9624 lt_prog_compiler_static=
9627 if test yes = "$GCC"; then
9628 lt_prog_compiler_wl='-Wl,'
9629 lt_prog_compiler_static='-static'
9633 # All AIX code is PIC.
9634 if test ia64 = "$host_cpu"; then
9635 # AIX 5 now supports IA64 processor
9636 lt_prog_compiler_static='-Bstatic'
9638 lt_prog_compiler_pic='-fPIC'
9644 # see comment about AmigaOS4 .so support
9645 lt_prog_compiler_pic='-fPIC'
9648 # FIXME: we need at least 68020 code to build shared libraries, but
9649 # adding the '-m68020' flag to GCC prevents building anything better,
9651 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9656 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9657 # PIC is the default for these OSes.
9660 mingw* | cygwin* | pw32* | os2* | cegcc*)
9661 # This hack is so that the source file can tell whether it is being
9662 # built for inclusion in a dll (and should export symbols for example).
9663 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9664 # (--disable-auto-import) libraries
9665 lt_prog_compiler_pic='-DDLL_EXPORT'
9668 lt_prog_compiler_static='$wl-static'
9673 darwin* | rhapsody*)
9674 # PIC is the default on this platform
9675 # Common symbols not allowed in MH_DYLIB files
9676 lt_prog_compiler_pic='-fno-common'
9680 # PIC is the default for Haiku.
9681 # The "-static" flag exists, but is broken.
9682 lt_prog_compiler_static=
9686 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9687 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9688 # sets the default TLS model and affects inlining.
9694 lt_prog_compiler_pic='-fPIC'
9700 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9701 # Instead, we relocate shared libraries at runtime.
9705 # Just because we use GCC doesn't mean we suddenly get shared libraries
9706 # on systems that don't support them.
9707 lt_prog_compiler_can_build_shared=no
9712 # QNX uses GNU C++, but need to define -shared option too, otherwise
9714 lt_prog_compiler_pic='-fPIC -shared'
9718 if test -d /usr/nec; then
9719 lt_prog_compiler_pic=-Kconform_pic
9724 lt_prog_compiler_pic='-fPIC'
9728 case $cc_basename in
9729 nvcc*) # Cuda Compiler Driver 2.2
9730 lt_prog_compiler_wl='-Xlinker '
9731 if test -n "$lt_prog_compiler_pic"; then
9732 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9737 # PORTME Check for flag to pass linker flags through the system compiler.
9740 lt_prog_compiler_wl='-Wl,'
9741 if test ia64 = "$host_cpu"; then
9742 # AIX 5 now supports IA64 processor
9743 lt_prog_compiler_static='-Bstatic'
9745 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9749 darwin* | rhapsody*)
9750 # PIC is the default on this platform
9751 # Common symbols not allowed in MH_DYLIB files
9752 lt_prog_compiler_pic='-fno-common'
9753 case $cc_basename in
9755 # NAG Fortran compiler
9756 lt_prog_compiler_wl='-Wl,-Wl,,'
9757 lt_prog_compiler_pic='-PIC'
9758 lt_prog_compiler_static='-Bstatic'
9763 mingw* | cygwin* | pw32* | os2* | cegcc*)
9764 # This hack is so that the source file can tell whether it is being
9765 # built for inclusion in a dll (and should export symbols for example).
9766 lt_prog_compiler_pic='-DDLL_EXPORT'
9769 lt_prog_compiler_static='$wl-static'
9774 hpux9* | hpux10* | hpux11*)
9775 lt_prog_compiler_wl='-Wl,'
9776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9783 lt_prog_compiler_pic='+Z'
9786 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9787 lt_prog_compiler_static='$wl-a ${wl}archive'
9790 irix5* | irix6* | nonstopux*)
9791 lt_prog_compiler_wl='-Wl,'
9792 # PIC (with -KPIC) is the default.
9793 lt_prog_compiler_static='-non_shared'
9796 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9797 case $cc_basename in
9798 # old Intel for x86_64, which still supported -KPIC.
9800 lt_prog_compiler_wl='-Wl,'
9801 lt_prog_compiler_pic='-KPIC'
9802 lt_prog_compiler_static='-static'
9804 # icc used to be incompatible with GCC.
9805 # ICC 10 doesn't accept -KPIC any more.
9807 lt_prog_compiler_wl='-Wl,'
9808 lt_prog_compiler_pic='-fPIC'
9809 lt_prog_compiler_static='-static'
9811 # Lahey Fortran 8.1.
9813 lt_prog_compiler_wl='-Wl,'
9814 lt_prog_compiler_pic='--shared'
9815 lt_prog_compiler_static='--static'
9818 # NAG Fortran compiler
9819 lt_prog_compiler_wl='-Wl,-Wl,,'
9820 lt_prog_compiler_pic='-PIC'
9821 lt_prog_compiler_static='-Bstatic'
9824 # Fabrice Bellard et al's Tiny C Compiler
9825 lt_prog_compiler_wl='-Wl,'
9826 lt_prog_compiler_pic='-fPIC'
9827 lt_prog_compiler_static='-static'
9829 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9830 # Portland Group compilers (*not* the Pentium gcc compiler,
9831 # which looks to be a dead project)
9832 lt_prog_compiler_wl='-Wl,'
9833 lt_prog_compiler_pic='-fpic'
9834 lt_prog_compiler_static='-Bstatic'
9837 lt_prog_compiler_wl='-Wl,'
9838 # All Alpha code is PIC.
9839 lt_prog_compiler_static='-non_shared'
9841 xl* | bgxl* | bgf* | mpixl*)
9842 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9843 lt_prog_compiler_wl='-Wl,'
9844 lt_prog_compiler_pic='-qpic'
9845 lt_prog_compiler_static='-qstaticlink'
9848 case `$CC -V 2>&1 | sed 5q` in
9849 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9850 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9851 lt_prog_compiler_pic='-KPIC'
9852 lt_prog_compiler_static='-Bstatic'
9853 lt_prog_compiler_wl=''
9855 *Sun\ F* | *Sun*Fortran*)
9856 lt_prog_compiler_pic='-KPIC'
9857 lt_prog_compiler_static='-Bstatic'
9858 lt_prog_compiler_wl='-Qoption ld '
9862 lt_prog_compiler_pic='-KPIC'
9863 lt_prog_compiler_static='-Bstatic'
9864 lt_prog_compiler_wl='-Wl,'
9866 *Intel*\ [CF]*Compiler*)
9867 lt_prog_compiler_wl='-Wl,'
9868 lt_prog_compiler_pic='-fPIC'
9869 lt_prog_compiler_static='-static'
9872 lt_prog_compiler_wl='-Wl,'
9873 lt_prog_compiler_pic='-fpic'
9874 lt_prog_compiler_static='-Bstatic'
9882 lt_prog_compiler_pic='-KPIC'
9883 lt_prog_compiler_static='-Bstatic'
9887 # QNX uses GNU C++, but need to define -shared option too, otherwise
9889 lt_prog_compiler_pic='-fPIC -shared'
9892 osf3* | osf4* | osf5*)
9893 lt_prog_compiler_wl='-Wl,'
9894 # All OSF/1 code is PIC.
9895 lt_prog_compiler_static='-non_shared'
9899 lt_prog_compiler_static='-non_shared'
9903 lt_prog_compiler_pic='-KPIC'
9904 lt_prog_compiler_static='-Bstatic'
9905 case $cc_basename in
9906 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9907 lt_prog_compiler_wl='-Qoption ld ';;
9909 lt_prog_compiler_wl='-Wl,';;
9914 lt_prog_compiler_wl='-Qoption ld '
9915 lt_prog_compiler_pic='-PIC'
9916 lt_prog_compiler_static='-Bstatic'
9919 sysv4 | sysv4.2uw2* | sysv4.3*)
9920 lt_prog_compiler_wl='-Wl,'
9921 lt_prog_compiler_pic='-KPIC'
9922 lt_prog_compiler_static='-Bstatic'
9926 if test -d /usr/nec; then
9927 lt_prog_compiler_pic='-Kconform_pic'
9928 lt_prog_compiler_static='-Bstatic'
9932 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9933 lt_prog_compiler_wl='-Wl,'
9934 lt_prog_compiler_pic='-KPIC'
9935 lt_prog_compiler_static='-Bstatic'
9939 lt_prog_compiler_wl='-Wl,'
9940 lt_prog_compiler_can_build_shared=no
9944 lt_prog_compiler_pic='-pic'
9945 lt_prog_compiler_static='-Bstatic'
9949 lt_prog_compiler_can_build_shared=no
9955 # For platforms that do not support PIC, -DPIC is meaningless:
9957 lt_prog_compiler_pic=
9960 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9965 printf %s "checking for $compiler option to produce PIC... " >&6; }
9966 if test ${lt_cv_prog_compiler_pic+y}
9968 printf %s "(cached) " >&6
9970 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9973 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9974 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9977 # Check to make sure the PIC flag actually works.
9979 if test -n "$lt_prog_compiler_pic"; then
9980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9981 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9982 if test ${lt_cv_prog_compiler_pic_works+y}
9984 printf %s "(cached) " >&6
9986 lt_cv_prog_compiler_pic_works=no
9987 ac_outfile=conftest.$ac_objext
9988 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9989 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9990 # Insert the option either (1) after the last *FLAGS variable, or
9991 # (2) before a word containing "conftest.", or (3) at the end.
9992 # Note that $ac_compile itself does not contain backslashes and begins
9993 # with a dollar sign (not a hyphen), so the echo should work correctly.
9994 # The option is referenced via a variable to avoid confusing sed.
9995 lt_compile=`echo "$ac_compile" | $SED \
9996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9998 -e 's:$: $lt_compiler_flag:'`
9999 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10000 (eval "$lt_compile" 2>conftest.err)
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 if (exit $ac_status) && test -s "$ac_outfile"; then
10005 # The compiler can only warn and ignore the option if not recognized
10006 # So say no if there are warnings other than the usual output.
10007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10009 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10010 lt_cv_prog_compiler_pic_works=yes
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10017 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10019 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10020 case $lt_prog_compiler_pic in
10022 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10025 lt_prog_compiler_pic=
10026 lt_prog_compiler_can_build_shared=no
10042 # Check to make sure the static flag actually works.
10044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10046 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10047 if test ${lt_cv_prog_compiler_static_works+y}
10049 printf %s "(cached) " >&6
10051 lt_cv_prog_compiler_static_works=no
10052 save_LDFLAGS=$LDFLAGS
10053 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10054 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10055 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10056 # The linker can only warn and ignore the option if not recognized
10057 # So say no if there are warnings
10058 if test -s conftest.err; then
10059 # Append any errors to the config.log.
10060 cat conftest.err 1>&5
10061 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10063 if diff conftest.exp conftest.er2 >/dev/null; then
10064 lt_cv_prog_compiler_static_works=yes
10067 lt_cv_prog_compiler_static_works=yes
10071 LDFLAGS=$save_LDFLAGS
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10075 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10077 if test yes = "$lt_cv_prog_compiler_static_works"; then
10080 lt_prog_compiler_static=
10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10090 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10091 if test ${lt_cv_prog_compiler_c_o+y}
10093 printf %s "(cached) " >&6
10095 lt_cv_prog_compiler_c_o=no
10096 $RM -r conftest 2>/dev/null
10100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10102 lt_compiler_flag="-o out/conftest2.$ac_objext"
10103 # Insert the option either (1) after the last *FLAGS variable, or
10104 # (2) before a word containing "conftest.", or (3) at the end.
10105 # Note that $ac_compile itself does not contain backslashes and begins
10106 # with a dollar sign (not a hyphen), so the echo should work correctly.
10107 lt_compile=`echo "$ac_compile" | $SED \
10108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10110 -e 's:$: $lt_compiler_flag:'`
10111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10112 (eval "$lt_compile" 2>out/conftest.err)
10114 cat out/conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10118 # The compiler can only warn and ignore the option if not recognized
10119 # So say no if there are warnings
10120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10123 lt_cv_prog_compiler_c_o=yes
10128 # SGI C++ compiler will create directory out/ii_files/ for
10129 # template instantiation
10130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10131 $RM out/* && rmdir out
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10138 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10146 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10147 if test ${lt_cv_prog_compiler_c_o+y}
10149 printf %s "(cached) " >&6
10151 lt_cv_prog_compiler_c_o=no
10152 $RM -r conftest 2>/dev/null
10156 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10158 lt_compiler_flag="-o out/conftest2.$ac_objext"
10159 # Insert the option either (1) after the last *FLAGS variable, or
10160 # (2) before a word containing "conftest.", or (3) at the end.
10161 # Note that $ac_compile itself does not contain backslashes and begins
10162 # with a dollar sign (not a hyphen), so the echo should work correctly.
10163 lt_compile=`echo "$ac_compile" | $SED \
10164 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10165 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10166 -e 's:$: $lt_compiler_flag:'`
10167 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10168 (eval "$lt_compile" 2>out/conftest.err)
10170 cat out/conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10174 # The compiler can only warn and ignore the option if not recognized
10175 # So say no if there are warnings
10176 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10177 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10178 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10179 lt_cv_prog_compiler_c_o=yes
10184 # SGI C++ compiler will create directory out/ii_files/ for
10185 # template instantiation
10186 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10187 $RM out/* && rmdir out
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10194 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10199 hard_links=nottested
10200 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10201 # do not overwrite the value of need_locks provided by the user
10202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10203 printf %s "checking if we can lock with hard links... " >&6; }
10206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10208 ln conftest.a conftest.b 2>&5 || hard_links=no
10209 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10211 printf "%s\n" "$hard_links" >&6; }
10212 if test no = "$hard_links"; then
10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10214 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10227 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10230 allow_undefined_flag=
10231 always_export_symbols=no
10233 archive_expsym_cmds=
10234 compiler_needs_object=no
10235 enable_shared_with_static_runtimes=no
10236 export_dynamic_flag_spec=
10237 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10238 hardcode_automatic=no
10240 hardcode_direct_absolute=no
10241 hardcode_libdir_flag_spec=
10242 hardcode_libdir_separator=
10243 hardcode_minus_L=no
10244 hardcode_shlibpath_var=unsupported
10246 link_all_deplibs=unknown
10248 module_expsym_cmds=
10249 old_archive_from_new_cmds=
10250 old_archive_from_expsyms_cmds=
10251 thread_safe_flag_spec=
10252 whole_archive_flag_spec=
10253 # include_expsyms should be a list of space-separated symbols to be *always*
10254 # included in the symbol list
10256 # exclude_expsyms can be an extended regexp of symbols to exclude
10257 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10258 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10259 # as well as any symbol that contains 'd'.
10260 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10262 # platforms (ab)use it in PIC code, but their linkers get confused if
10263 # the symbol is explicitly referenced. Since portable code cannot
10264 # rely on this symbol name, it's probably fine to never include it in
10265 # preloaded symbol tables.
10266 # Exclude shared library initialization/finalization symbols.
10267 extract_expsyms_cmds=
10270 cygwin* | mingw* | pw32* | cegcc*)
10271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10272 # When not using gcc, we currently assume that we are using
10273 # Microsoft Visual C++.
10274 if test yes != "$GCC"; then
10279 # we just hope/assume this is gcc and not c89 (= MSVC++)
10282 openbsd* | bitrig*)
10289 # On some targets, GNU ld is compatible enough with the native linker
10290 # that we're better off using the native interface for both.
10291 lt_use_gnu_ld_interface=no
10292 if test yes = "$with_gnu_ld"; then
10295 # The AIX port of GNU ld has always aspired to compatibility
10296 # with the native linker. However, as the warning in the GNU ld
10297 # block says, versions before 2.19.5* couldn't really create working
10298 # shared libraries, regardless of the interface used.
10299 case `$LD -v 2>&1` in
10300 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10301 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10302 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10304 lt_use_gnu_ld_interface=yes
10309 lt_use_gnu_ld_interface=yes
10314 if test yes = "$lt_use_gnu_ld_interface"; then
10315 # If archive_cmds runs LD, not CC, wlarc should be empty
10318 # Set some defaults for GNU ld with shared library support. These
10319 # are reset later if shared libraries are not supported. Putting them
10320 # here allows them to be overridden if necessary.
10321 runpath_var=LD_RUN_PATH
10322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10323 export_dynamic_flag_spec='$wl--export-dynamic'
10324 # ancient GNU ld didn't support --whole-archive et. al.
10325 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10326 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10328 whole_archive_flag_spec=
10330 supports_anon_versioning=no
10331 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10332 *GNU\ gold*) supports_anon_versioning=yes ;;
10333 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10334 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10335 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10336 *\ 2.11.*) ;; # other 2.11 versions
10337 *) supports_anon_versioning=yes ;;
10340 # See if GNU ld supports shared libraries.
10343 # On AIX/PPC, the GNU linker is very broken
10344 if test ia64 != "$host_cpu"; then
10348 *** Warning: the GNU linker, at least up to release 2.19, is reported
10349 *** to be unable to reliably create shared libraries on AIX.
10350 *** Therefore, libtool is disabling shared libraries support. If you
10351 *** really care for shared libraries, you may want to install binutils
10352 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10353 *** You will then need to restart the configuration process.
10362 # see comment about AmigaOS4 .so support
10363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10364 archive_expsym_cmds=''
10367 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)'
10368 hardcode_libdir_flag_spec='-L$libdir'
10369 hardcode_minus_L=yes
10375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10376 allow_undefined_flag=unsupported
10377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10378 # support --undefined. This deserves some investigation. FIXME
10379 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10385 cygwin* | mingw* | pw32* | cegcc*)
10386 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10387 # as there is no search path for DLLs.
10388 hardcode_libdir_flag_spec='-L$libdir'
10389 export_dynamic_flag_spec='$wl--export-all-symbols'
10390 allow_undefined_flag=unsupported
10391 always_export_symbols=no
10392 enable_shared_with_static_runtimes=yes
10393 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'
10394 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10396 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10398 # If the export-symbols file already is a .def file, use it as
10399 # is; otherwise, prepend EXPORTS...
10400 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10401 cp $export_symbols $output_objdir/$soname.def;
10403 echo EXPORTS > $output_objdir/$soname.def;
10404 cat $export_symbols >> $output_objdir/$soname.def;
10406 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10414 link_all_deplibs=yes
10418 hardcode_libdir_flag_spec='-L$libdir'
10419 hardcode_minus_L=yes
10420 allow_undefined_flag=unsupported
10422 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10423 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10424 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10425 $ECHO EXPORTS >> $output_objdir/$libname.def~
10426 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10428 emximp -o $lib $output_objdir/$libname.def'
10429 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10430 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10431 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10432 $ECHO EXPORTS >> $output_objdir/$libname.def~
10433 prefix_cmds="$SED"~
10434 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10435 prefix_cmds="$prefix_cmds -e 1d";
10437 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10438 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10439 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10440 emximp -o $lib $output_objdir/$libname.def'
10441 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10442 enable_shared_with_static_runtimes=yes
10447 hardcode_shlibpath_var=no
10448 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10449 export_dynamic_flag_spec='$wl-E'
10450 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10451 # Instead, shared libraries are loaded at an image base (0x10000000 by
10452 # default) and relocated if they conflict, which is a slow very memory
10453 # consuming and fragmenting process. To avoid this, we pick a random,
10454 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10455 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10456 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10457 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'
10460 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10462 if test linux-dietlibc = "$host_os"; then
10463 case $cc_basename in
10464 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10467 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10468 && test no = "$tmp_diet"
10470 tmp_addflag=' $pic_flag'
10471 tmp_sharedflag='-shared'
10472 case $cc_basename,$host_cpu in
10473 pgcc*) # Portland Group C compiler
10474 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'
10475 tmp_addflag=' $pic_flag'
10477 pgf77* | pgf90* | pgf95* | pgfortran*)
10478 # Portland Group f77 and f90 compilers
10479 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'
10480 tmp_addflag=' $pic_flag -Mnomain' ;;
10481 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10482 tmp_addflag=' -i_dynamic' ;;
10483 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10484 tmp_addflag=' -i_dynamic -nofor_main' ;;
10485 ifc* | ifort*) # Intel Fortran compiler
10486 tmp_addflag=' -nofor_main' ;;
10487 lf95*) # Lahey Fortran 8.1
10488 whole_archive_flag_spec=
10489 tmp_sharedflag='--shared' ;;
10490 nagfor*) # NAGFOR 5.3
10491 tmp_sharedflag='-Wl,-shared' ;;
10492 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10493 tmp_sharedflag='-qmkshrobj'
10495 nvcc*) # Cuda Compiler Driver 2.2
10496 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'
10497 compiler_needs_object=yes
10500 case `$CC -V 2>&1 | sed 5q` in
10501 *Sun\ C*) # Sun C 5.9
10502 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'
10503 compiler_needs_object=yes
10504 tmp_sharedflag='-G' ;;
10505 *Sun\ F*) # Sun Fortran 8.3
10506 tmp_sharedflag='-G' ;;
10508 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10510 if test yes = "$supports_anon_versioning"; then
10511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10513 echo "local: *; };" >> $output_objdir/$libname.ver~
10514 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10517 case $cc_basename in
10519 export_dynamic_flag_spec='-rdynamic'
10521 xlf* | bgf* | bgxlf* | mpixlf*)
10522 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10523 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10524 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10525 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10526 if test yes = "$supports_anon_versioning"; then
10527 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10528 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10529 echo "local: *; };" >> $output_objdir/$libname.ver~
10530 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10541 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10544 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10545 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10550 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10554 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10555 *** create shared libraries on Solaris systems. Therefore, libtool
10556 *** is disabling shared libraries support. We urge you to upgrade GNU
10557 *** binutils to release 2.9.1 or newer. Another option is to modify
10558 *** your PATH or compiler configuration so that the native linker is
10559 *** used, and then restart.
10562 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10571 case `$LD -v 2>&1` in
10572 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10576 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10577 *** reliably create shared libraries on SCO systems. Therefore, libtool
10578 *** is disabling shared libraries support. We urge you to upgrade GNU
10579 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10580 *** your PATH or compiler configuration so that the native linker is
10581 *** used, and then restart.
10586 # For security reasons, it is highly recommended that you always
10587 # use absolute paths for naming shared libraries, and exclude the
10588 # DT_RUNPATH tag from executables and libraries. But doing so
10589 # requires that you compile everything twice, which is a pain.
10590 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10591 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10602 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10604 hardcode_direct=yes
10605 hardcode_shlibpath_var=no
10609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10610 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10611 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10618 if test no = "$ld_shlibs"; then
10620 hardcode_libdir_flag_spec=
10621 export_dynamic_flag_spec=
10622 whole_archive_flag_spec=
10625 # PORTME fill in a description of your system's linker (not GNU ld)
10628 allow_undefined_flag=unsupported
10629 always_export_symbols=yes
10630 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'
10631 # Note: this linker hardcodes the directories in LIBPATH if there
10632 # are no directories specified by -L.
10633 hardcode_minus_L=yes
10634 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10635 # Neither direct hardcoding nor static linking is supported with a
10637 hardcode_direct=unsupported
10642 if test ia64 = "$host_cpu"; then
10643 # On IA64, the linker does run time linking by default, so we don't
10644 # have to do anything special.
10645 aix_use_runtimelinking=no
10646 exp_sym_flag='-Bexport'
10649 # If we're using GNU nm, then we don't want the "-C" option.
10650 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10651 # Without the "-l" option, or with the "-B" option, AIX nm treats
10652 # weak defined symbols like other global defined symbols, whereas
10653 # GNU nm marks them as "W".
10654 # While the 'weak' keyword is ignored in the Export File, we need
10655 # it in the Import File for the 'aix-soname' feature, so we have
10656 # to replace the "-B" option with "-P" for AIX nm.
10657 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10658 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'
10660 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 == "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'
10662 aix_use_runtimelinking=no
10664 # Test if we are trying to use run time linking or normal
10665 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10666 # have runtime linking enabled, and use it for executables.
10667 # For shared libraries, we enable/disable runtime linking
10668 # depending on the kind of the shared library created -
10669 # when "with_aix_soname,aix_use_runtimelinking" is:
10670 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10671 # "aix,yes" lib.so shared, rtl:yes, for executables
10672 # lib.a static archive
10673 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10674 # lib.a(lib.so.V) shared, rtl:no, for executables
10675 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10676 # lib.a(lib.so.V) shared, rtl:no
10677 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10678 # lib.a static archive
10679 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10680 for ld_flag in $LDFLAGS; do
10681 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10682 aix_use_runtimelinking=yes
10686 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10687 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10688 # so we don't have lib.a shared libs to link our executables.
10689 # We have to force runtime linking in this case.
10690 aix_use_runtimelinking=yes
10691 LDFLAGS="$LDFLAGS -Wl,-brtl"
10696 exp_sym_flag='-bexport'
10697 no_entry_flag='-bnoentry'
10700 # When large executables or shared objects are built, AIX ld can
10701 # have problems creating the table of contents. If linking a library
10702 # or program results in "error TOC overflow" add -mminimal-toc to
10703 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10704 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10707 hardcode_direct=yes
10708 hardcode_direct_absolute=yes
10709 hardcode_libdir_separator=':'
10710 link_all_deplibs=yes
10711 file_list_spec='$wl-f,'
10712 case $with_aix_soname,$aix_use_runtimelinking in
10713 aix,*) ;; # traditional, no import file
10714 svr4,* | *,yes) # use import file
10715 # The Import File defines what to hardcode.
10717 hardcode_direct_absolute=no
10721 if test yes = "$GCC"; then
10722 case $host_os in aix4.[012]|aix4.[012].*)
10723 # We only want to do this on AIX 4.2 and lower, the check
10724 # below for broken collect2 doesn't work under 4.3+
10725 collect2name=`$CC -print-prog-name=collect2`
10726 if test -f "$collect2name" &&
10727 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10729 # We have reworked collect2
10732 # We have old collect2
10733 hardcode_direct=unsupported
10734 # It fails to find uninstalled libraries when the uninstalled
10735 # path is not listed in the libpath. Setting hardcode_minus_L
10736 # to unsupported forces relinking
10737 hardcode_minus_L=yes
10738 hardcode_libdir_flag_spec='-L$libdir'
10739 hardcode_libdir_separator=
10743 shared_flag='-shared'
10744 if test yes = "$aix_use_runtimelinking"; then
10745 shared_flag="$shared_flag "'$wl-G'
10747 # Need to ensure runtime linking is disabled for the traditional
10748 # shared library, or the linker may eventually find shared libraries
10749 # /with/ Import File - we do not want to mix them.
10750 shared_flag_aix='-shared'
10751 shared_flag_svr4='-shared $wl-G'
10754 if test ia64 = "$host_cpu"; then
10755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10756 # chokes on -Wl,-G. The following line is correct:
10759 if test yes = "$aix_use_runtimelinking"; then
10760 shared_flag='$wl-G'
10762 shared_flag='$wl-bM:SRE'
10764 shared_flag_aix='$wl-bM:SRE'
10765 shared_flag_svr4='$wl-G'
10769 export_dynamic_flag_spec='$wl-bexpall'
10770 # It seems that -bexpall does not export symbols beginning with
10771 # underscore (_), so it is better to generate a list of symbols to export.
10772 always_export_symbols=yes
10773 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10774 # Warning - without using the other runtime loading flags (-brtl),
10775 # -berok will link without error, but may produce a broken library.
10776 allow_undefined_flag='-berok'
10777 # Determine the default libpath from the value encoded in an
10778 # empty executable.
10779 if test set = "${lt_cv_aix_libpath+set}"; then
10780 aix_libpath=$lt_cv_aix_libpath
10782 if test ${lt_cv_aix_libpath_+y}
10784 printf %s "(cached) " >&6
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10797 if ac_fn_c_try_link "$LINENO"
10800 lt_aix_libpath_sed='
10801 /Import File Strings/,/^$/ {
10803 s/^0 *\([^ ]*\) *$/\1/
10807 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10808 # Check for a 64-bit object if we didn't find anything.
10809 if test -z "$lt_cv_aix_libpath_"; then
10810 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10814 conftest$ac_exeext conftest.$ac_ext
10815 if test -z "$lt_cv_aix_libpath_"; then
10816 lt_cv_aix_libpath_=/usr/lib:/lib
10821 aix_libpath=$lt_cv_aix_libpath_
10824 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10825 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
10827 if test ia64 = "$host_cpu"; then
10828 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10829 allow_undefined_flag="-z nodefs"
10830 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"
10832 # Determine the default libpath from the value encoded in an
10833 # empty executable.
10834 if test set = "${lt_cv_aix_libpath+set}"; then
10835 aix_libpath=$lt_cv_aix_libpath
10837 if test ${lt_cv_aix_libpath_+y}
10839 printf %s "(cached) " >&6
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10852 if ac_fn_c_try_link "$LINENO"
10855 lt_aix_libpath_sed='
10856 /Import File Strings/,/^$/ {
10858 s/^0 *\([^ ]*\) *$/\1/
10862 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863 # Check for a 64-bit object if we didn't find anything.
10864 if test -z "$lt_cv_aix_libpath_"; then
10865 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10869 conftest$ac_exeext conftest.$ac_ext
10870 if test -z "$lt_cv_aix_libpath_"; then
10871 lt_cv_aix_libpath_=/usr/lib:/lib
10876 aix_libpath=$lt_cv_aix_libpath_
10879 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10880 # Warning - without using the other run time loading flags,
10881 # -berok will link without error, but may produce a broken library.
10882 no_undefined_flag=' $wl-bernotok'
10883 allow_undefined_flag=' $wl-berok'
10884 if test yes = "$with_gnu_ld"; then
10885 # We only use this code for GNU lds that support --whole-archive.
10886 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10888 # Exported symbols can be pulled into shared objects from archives
10889 whole_archive_flag_spec='$convenience'
10891 archive_cmds_need_lc=yes
10892 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10893 # -brtl affects multiple linker settings, -berok does not and is overridden later
10894 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10895 if test svr4 != "$with_aix_soname"; then
10896 # This is similar to how AIX traditionally builds its shared libraries.
10897 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'
10899 if test aix != "$with_aix_soname"; then
10900 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'
10902 # used by -dlpreopen to get the symbols
10903 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10905 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10913 # see comment about AmigaOS4 .so support
10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10915 archive_expsym_cmds=''
10918 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)'
10919 hardcode_libdir_flag_spec='-L$libdir'
10920 hardcode_minus_L=yes
10926 export_dynamic_flag_spec=-rdynamic
10929 cygwin* | mingw* | pw32* | cegcc*)
10930 # When not using gcc, we currently assume that we are using
10931 # Microsoft Visual C++.
10932 # hardcode_libdir_flag_spec is actually meaningless, as there is
10933 # no search path for DLLs.
10934 case $cc_basename in
10937 hardcode_libdir_flag_spec=' '
10938 allow_undefined_flag=unsupported
10939 always_export_symbols=yes
10941 # Tell ltmain to make .lib files, not .a files.
10943 # Tell ltmain to make .dll files, not .so files.
10945 # FIXME: Setting linknames here is a bad hack.
10946 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10947 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10948 cp "$export_symbols" "$output_objdir/$soname.def";
10949 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10951 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10953 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10955 # The linker will not automatically build a static lib if we build a DLL.
10956 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10957 enable_shared_with_static_runtimes=yes
10958 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10961 old_postinstall_cmds='chmod 644 $oldlib'
10962 postlink_cmds='lt_outputfile="@OUTPUT@"~
10963 lt_tool_outputfile="@TOOL_OUTPUT@"~
10964 case $lt_outputfile in
10967 lt_outputfile=$lt_outputfile.exe
10968 lt_tool_outputfile=$lt_tool_outputfile.exe
10971 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10972 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10973 $RM "$lt_outputfile.manifest";
10977 # Assume MSVC wrapper
10978 hardcode_libdir_flag_spec=' '
10979 allow_undefined_flag=unsupported
10980 # Tell ltmain to make .lib files, not .a files.
10982 # Tell ltmain to make .dll files, not .so files.
10984 # FIXME: Setting linknames here is a bad hack.
10985 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10986 # The linker will automatically build a .lib file if we build a DLL.
10987 old_archive_from_new_cmds='true'
10988 # FIXME: Should let the user specify the lib program.
10989 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10990 enable_shared_with_static_runtimes=yes
10995 darwin* | rhapsody*)
10998 archive_cmds_need_lc=no
11000 hardcode_automatic=yes
11001 hardcode_shlibpath_var=unsupported
11002 if test yes = "$lt_cv_ld_force_load"; then
11003 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\"`'
11006 whole_archive_flag_spec=''
11008 link_all_deplibs=yes
11009 allow_undefined_flag=$_lt_dar_allow_undefined
11010 case $cc_basename in
11011 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11012 *) _lt_dar_can_shared=$GCC ;;
11014 if test yes = "$_lt_dar_can_shared"; then
11015 output_verbose_link_cmd=func_echo_all
11016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11018 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"
11019 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"
11028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11029 hardcode_libdir_flag_spec='-L$libdir'
11030 hardcode_shlibpath_var=no
11033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11034 # support. Future versions do this automatically, but an explicit c++rt0.o
11035 # does not break anything, and helps significantly (at the cost of a little
11038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11039 hardcode_libdir_flag_spec='-R$libdir'
11040 hardcode_direct=yes
11041 hardcode_shlibpath_var=no
11044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11047 hardcode_direct=yes
11048 hardcode_minus_L=yes
11049 hardcode_shlibpath_var=no
11052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11053 freebsd* | dragonfly*)
11054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11055 hardcode_libdir_flag_spec='-R$libdir'
11056 hardcode_direct=yes
11057 hardcode_shlibpath_var=no
11061 if test yes = "$GCC"; then
11062 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'
11064 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'
11066 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11067 hardcode_libdir_separator=:
11068 hardcode_direct=yes
11070 # hardcode_minus_L: Not really in the search PATH,
11071 # but as the default location of the library.
11072 hardcode_minus_L=yes
11073 export_dynamic_flag_spec='$wl-E'
11077 if test yes,no = "$GCC,$with_gnu_ld"; then
11078 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11082 if test no = "$with_gnu_ld"; then
11083 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11084 hardcode_libdir_separator=:
11085 hardcode_direct=yes
11086 hardcode_direct_absolute=yes
11087 export_dynamic_flag_spec='$wl-E'
11088 # hardcode_minus_L: Not really in the search PATH,
11089 # but as the default location of the library.
11090 hardcode_minus_L=yes
11095 if test yes,no = "$GCC,$with_gnu_ld"; then
11098 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11101 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11104 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11110 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11113 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11117 # Older versions of the 11.00 compiler do not understand -b yet
11118 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11120 printf %s "checking if $CC understands -b... " >&6; }
11121 if test ${lt_cv_prog_compiler__b+y}
11123 printf %s "(cached) " >&6
11125 lt_cv_prog_compiler__b=no
11126 save_LDFLAGS=$LDFLAGS
11127 LDFLAGS="$LDFLAGS -b"
11128 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11129 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11130 # The linker can only warn and ignore the option if not recognized
11131 # So say no if there are warnings
11132 if test -s conftest.err; then
11133 # Append any errors to the config.log.
11134 cat conftest.err 1>&5
11135 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11137 if diff conftest.exp conftest.er2 >/dev/null; then
11138 lt_cv_prog_compiler__b=yes
11141 lt_cv_prog_compiler__b=yes
11145 LDFLAGS=$save_LDFLAGS
11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11149 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11151 if test yes = "$lt_cv_prog_compiler__b"; then
11152 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11154 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11160 if test no = "$with_gnu_ld"; then
11161 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11162 hardcode_libdir_separator=:
11167 hardcode_shlibpath_var=no
11170 hardcode_direct=yes
11171 hardcode_direct_absolute=yes
11172 export_dynamic_flag_spec='$wl-E'
11174 # hardcode_minus_L: Not really in the search PATH,
11175 # but as the default location of the library.
11176 hardcode_minus_L=yes
11182 irix5* | irix6* | nonstopux*)
11183 if test yes = "$GCC"; then
11184 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'
11185 # Try to use the -exported_symbol ld option, if it does not
11186 # work, assume that -exports_file does not work either and
11187 # implicitly export all symbols.
11188 # This should be the same for all languages, so no per-tag cache variable.
11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11190 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11191 if test ${lt_cv_irix_exported_symbol+y}
11193 printf %s "(cached) " >&6
11195 save_LDFLAGS=$LDFLAGS
11196 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11199 int foo (void) { return 0; }
11201 if ac_fn_c_try_link "$LINENO"
11203 lt_cv_irix_exported_symbol=yes
11205 lt_cv_irix_exported_symbol=no
11207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11208 conftest$ac_exeext conftest.$ac_ext
11209 LDFLAGS=$save_LDFLAGS
11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11212 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11213 if test yes = "$lt_cv_irix_exported_symbol"; then
11214 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'
11217 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'
11218 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'
11220 archive_cmds_need_lc='no'
11221 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11222 hardcode_libdir_separator=:
11224 link_all_deplibs=yes
11228 case $cc_basename in
11230 # Fabrice Bellard et al's Tiny C Compiler
11232 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11238 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11241 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11243 hardcode_libdir_flag_spec='-R$libdir'
11244 hardcode_direct=yes
11245 hardcode_shlibpath_var=no
11249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11250 hardcode_direct=yes
11251 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11252 hardcode_libdir_separator=:
11253 hardcode_shlibpath_var=no
11259 openbsd* | bitrig*)
11260 if test -f /usr/libexec/ld.so; then
11261 hardcode_direct=yes
11262 hardcode_shlibpath_var=no
11263 hardcode_direct_absolute=yes
11264 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11266 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11267 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11268 export_dynamic_flag_spec='$wl-E'
11270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11271 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11279 hardcode_libdir_flag_spec='-L$libdir'
11280 hardcode_minus_L=yes
11281 allow_undefined_flag=unsupported
11283 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11284 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11285 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11286 $ECHO EXPORTS >> $output_objdir/$libname.def~
11287 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11288 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11289 emximp -o $lib $output_objdir/$libname.def'
11290 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11291 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11292 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11293 $ECHO EXPORTS >> $output_objdir/$libname.def~
11294 prefix_cmds="$SED"~
11295 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11296 prefix_cmds="$prefix_cmds -e 1d";
11298 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11299 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11301 emximp -o $lib $output_objdir/$libname.def'
11302 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11303 enable_shared_with_static_runtimes=yes
11307 if test yes = "$GCC"; then
11308 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11309 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'
11311 allow_undefined_flag=' -expect_unresolved \*'
11312 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'
11314 archive_cmds_need_lc='no'
11315 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11316 hardcode_libdir_separator=:
11319 osf4* | osf5*) # as osf3* with the addition of -msym flag
11320 if test yes = "$GCC"; then
11321 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11322 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'
11323 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11325 allow_undefined_flag=' -expect_unresolved \*'
11326 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'
11327 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~
11328 $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'
11330 # Both c and cxx compiler support -rpath directly
11331 hardcode_libdir_flag_spec='-rpath $libdir'
11333 archive_cmds_need_lc='no'
11334 hardcode_libdir_separator=:
11338 no_undefined_flag=' -z defs'
11339 if test yes = "$GCC"; then
11341 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11342 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11343 $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'
11345 case `$CC -V 2>&1` in
11348 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11350 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11354 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11355 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11356 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11360 hardcode_libdir_flag_spec='-R$libdir'
11361 hardcode_shlibpath_var=no
11363 solaris2.[0-5] | solaris2.[0-5].*) ;;
11365 # The compiler driver will combine and reorder linker options,
11366 # but understands '-z linker_flag'. GCC discards it without '$wl',
11367 # but is careful enough not to reorder.
11368 # Supported since Solaris 2.6 (maybe 2.5.1?)
11369 if test yes = "$GCC"; then
11370 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11372 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11376 link_all_deplibs=yes
11380 if test sequent = "$host_vendor"; then
11381 # Use $CC to link under sequent, because it throws in some extra .o
11382 # files that make .init and .fini sections work.
11383 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11385 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11387 hardcode_libdir_flag_spec='-L$libdir'
11388 hardcode_direct=yes
11389 hardcode_minus_L=yes
11390 hardcode_shlibpath_var=no
11394 case $host_vendor in
11396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11397 hardcode_direct=yes # is this really true???
11400 ## LD is ld it makes a PLAMLIB
11401 ## CC just makes a GrossModule.
11402 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11403 reload_cmds='$CC -r -o $output$reload_objs'
11407 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11411 runpath_var='LD_RUN_PATH'
11412 hardcode_shlibpath_var=no
11416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11417 hardcode_shlibpath_var=no
11418 export_dynamic_flag_spec='-Bexport'
11422 if test -d /usr/nec; then
11423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11424 hardcode_shlibpath_var=no
11425 runpath_var=LD_RUN_PATH
11426 hardcode_runpath_var=yes
11431 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11432 no_undefined_flag='$wl-z,text'
11433 archive_cmds_need_lc=no
11434 hardcode_shlibpath_var=no
11435 runpath_var='LD_RUN_PATH'
11437 if test yes = "$GCC"; then
11438 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11439 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11441 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11442 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11446 sysv5* | sco3.2v5* | sco5v6*)
11447 # Note: We CANNOT use -z defs as we might desire, because we do not
11448 # link with -lc, and that would cause any symbols used from libc to
11449 # always be unresolved, which means just about no library would
11450 # ever link correctly. If we're not using GNU ld we use -z text
11451 # though, which does catch some bad symbols but isn't as heavy-handed
11453 no_undefined_flag='$wl-z,text'
11454 allow_undefined_flag='$wl-z,nodefs'
11455 archive_cmds_need_lc=no
11456 hardcode_shlibpath_var=no
11457 hardcode_libdir_flag_spec='$wl-R,$libdir'
11458 hardcode_libdir_separator=':'
11459 link_all_deplibs=yes
11460 export_dynamic_flag_spec='$wl-Bexport'
11461 runpath_var='LD_RUN_PATH'
11463 if test yes = "$GCC"; then
11464 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11465 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11467 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11468 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11474 hardcode_libdir_flag_spec='-L$libdir'
11475 hardcode_shlibpath_var=no
11483 if test sni = "$host_vendor"; then
11485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11486 export_dynamic_flag_spec='$wl-Blargedynsym'
11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11493 printf "%s\n" "$ld_shlibs" >&6; }
11494 test no = "$ld_shlibs" && can_build_shared=no
11496 with_gnu_ld=$with_gnu_ld
11513 # Do we need to explicitly link libc?
11515 case "x$archive_cmds_need_lc" in
11517 # Assume -lc should be added
11518 archive_cmds_need_lc=yes
11520 if test yes,yes = "$GCC,$enable_shared"; then
11521 case $archive_cmds in
11523 # FIXME: we may have to deal with multi-command sequences.
11526 # Test whether the compiler implicitly links with -lc since on some
11527 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11528 # to ld, don't add -lc before -lgcc.
11529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11530 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11531 if test ${lt_cv_archive_cmds_need_lc+y}
11533 printf %s "(cached) " >&6
11536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11539 (eval $ac_compile) 2>&5
11541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11542 test $ac_status = 0; } 2>conftest.err; then
11545 libobjs=conftest.$ac_objext
11547 wl=$lt_prog_compiler_wl
11548 pic_flag=$lt_prog_compiler_pic
11554 lt_save_allow_undefined_flag=$allow_undefined_flag
11555 allow_undefined_flag=
11556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11557 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560 test $ac_status = 0; }
11562 lt_cv_archive_cmds_need_lc=no
11564 lt_cv_archive_cmds_need_lc=yes
11566 allow_undefined_flag=$lt_save_allow_undefined_flag
11568 cat conftest.err 1>&5
11573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11574 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11575 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11734 printf %s "checking dynamic linker characteristics... " >&6; }
11736 if test yes = "$GCC"; then
11738 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11739 *) lt_awk_arg='/^libraries:/' ;;
11742 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11743 *) lt_sed_strip_eq='s|=/|/|g' ;;
11745 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11746 case $lt_search_path_spec in
11748 # if the path contains ";" then we assume it to be the separator
11749 # otherwise default to the standard path separator (i.e. ":") - it is
11750 # assumed that no part of a normal pathname contains ";" but that should
11751 # okay in the real world where ";" in dirpaths is itself problematic.
11752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11755 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11758 # Ok, now we have the path, separated by spaces, we can step through it
11759 # and add multilib dir if necessary...
11760 lt_tmp_lt_search_path_spec=
11761 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11762 # ...but if some path component already ends with the multilib dir we assume
11763 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11764 case "$lt_multi_os_dir; $lt_search_path_spec " in
11765 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11769 for lt_sys_path in $lt_search_path_spec; do
11770 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11772 elif test -n "$lt_multi_os_dir"; then
11773 test -d "$lt_sys_path" && \
11774 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11777 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11778 BEGIN {RS = " "; FS = "/|\n";} {
11781 for (lt_i = NF; lt_i > 0; lt_i--) {
11782 if ($lt_i != "" && $lt_i != ".") {
11783 if ($lt_i == "..") {
11786 if (lt_count == 0) {
11787 lt_foo = "/" $lt_i lt_foo;
11794 if (lt_foo != "") { lt_freq[lt_foo]++; }
11795 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11797 # AWK program above erroneously prepends '/' to C:/dos/paths
11800 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11801 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11803 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11807 library_names_spec=
11808 libname_spec='lib$name'
11812 postuninstall_cmds=
11816 shlibpath_overrides_runpath=unknown
11818 dynamic_linker="$host_os ld.so"
11819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11820 need_lib_prefix=unknown
11821 hardcode_into_libs=no
11823 # when you set need_version to no, make sure it does not cause -set_version
11824 # flags to be left without arguments
11825 need_version=unknown
11831 version_type=linux # correct to gnu/linux during the next big refactor
11832 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11833 shlibpath_var=LIBPATH
11835 # AIX 3 has no versioning support, so we append a major version to the name.
11836 soname_spec='$libname$release$shared_ext$major'
11840 version_type=linux # correct to gnu/linux during the next big refactor
11843 hardcode_into_libs=yes
11844 if test ia64 = "$host_cpu"; then
11845 # AIX 5 supports IA64
11846 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11847 shlibpath_var=LD_LIBRARY_PATH
11849 # With GCC up to 2.95.x, collect2 would create an import file
11850 # for dependence libraries. The import file would start with
11851 # the line '#! .'. This would cause the generated library to
11852 # depend on '.', always an invalid library. This was fixed in
11853 # development snapshots of GCC prior to 3.0.
11855 aix4 | aix4.[01] | aix4.[01].*)
11856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11858 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11861 can_build_shared=no
11865 # Using Import Files as archive members, it is possible to support
11866 # filename-based versioning of shared library archives on AIX. While
11867 # this would work for both with and without runtime linking, it will
11868 # prevent static linking of such archives. So we do filename-based
11869 # shared library versioning with .so extension only, which is used
11870 # when both runtime linking and shared linking is enabled.
11871 # Unfortunately, runtime linking may impact performance, so we do
11872 # not want this to be the default eventually. Also, we use the
11873 # versioned .so libs for executables only if there is the -brtl
11874 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11875 # To allow for filename-based versioning support, we need to create
11876 # libNAME.so.V as an archive file, containing:
11877 # *) an Import File, referring to the versioned filename of the
11878 # archive as well as the shared archive member, telling the
11879 # bitwidth (32 or 64) of that shared object, and providing the
11880 # list of exported symbols of that shared object, eventually
11881 # decorated with the 'weak' keyword
11882 # *) the shared object with the F_LOADONLY flag set, to really avoid
11883 # it being seen by the linker.
11884 # At run time we better use the real file rather than another symlink,
11885 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11887 case $with_aix_soname,$aix_use_runtimelinking in
11888 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11889 # soname into executable. Probably we can add versioning support to
11890 # collect2, so additional links can be useful in future.
11891 aix,yes) # traditional libtool
11892 dynamic_linker='AIX unversionable lib.so'
11893 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11894 # instead of lib<name>.a to let people know that these are not
11895 # typical AIX shared libraries.
11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11898 aix,no) # traditional AIX only
11899 dynamic_linker='AIX lib.a(lib.so.V)'
11900 # We preserve .a as extension for shared libraries through AIX4.2
11901 # and later when we are not doing run time linking.
11902 library_names_spec='$libname$release.a $libname.a'
11903 soname_spec='$libname$release$shared_ext$major'
11905 svr4,*) # full svr4 only
11906 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11907 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11908 # We do not specify a path in Import Files, so LIBPATH fires.
11909 shlibpath_overrides_runpath=yes
11911 *,yes) # both, prefer svr4
11912 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11913 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11914 # unpreferred sharedlib libNAME.a needs extra handling
11915 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"'
11916 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"'
11917 # We do not specify a path in Import Files, so LIBPATH fires.
11918 shlibpath_overrides_runpath=yes
11920 *,no) # both, prefer aix
11921 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11922 library_names_spec='$libname$release.a $libname.a'
11923 soname_spec='$libname$release$shared_ext$major'
11924 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11925 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)'
11926 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"'
11929 shlibpath_var=LIBPATH
11936 # Since July 2007 AmigaOS4 officially supports .so libraries.
11937 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11941 library_names_spec='$libname.ixlibrary $libname.a'
11942 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11943 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'
11949 library_names_spec='$libname$shared_ext'
11950 dynamic_linker="$host_os ld.so"
11951 shlibpath_var=LIBRARY_PATH
11955 version_type=linux # correct to gnu/linux during the next big refactor
11957 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11958 soname_spec='$libname$release$shared_ext$major'
11959 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11960 shlibpath_var=LD_LIBRARY_PATH
11961 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11962 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11963 # the default ld.so.conf also contains /usr/contrib/lib and
11964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11965 # libtool to hard-code these into programs
11968 cygwin* | mingw* | pw32* | cegcc*)
11969 version_type=windows
11974 case $GCC,$cc_basename in
11977 library_names_spec='$libname.dll.a'
11978 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11979 postinstall_cmds='base_file=`basename \$file`~
11980 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11981 dldir=$destdir/`dirname \$dlpath`~
11982 test -d \$dldir || mkdir -p \$dldir~
11983 $install_prog $dir/$dlname \$dldir/$dlname~
11984 chmod a+x \$dldir/$dlname~
11985 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11986 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11989 dlpath=$dir/\$dldll~
11991 shlibpath_overrides_runpath=yes
11995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11996 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11998 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12001 # MinGW DLLs use traditional 'lib' prefix
12002 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12005 # pw32 DLLs use 'pw' prefix rather than 'lib'
12006 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12009 dynamic_linker='Win32 ld.exe'
12014 libname_spec='$name'
12015 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12016 library_names_spec='$libname.dll.lib'
12020 sys_lib_search_path_spec=
12023 for lt_path in $LIB
12026 # Let DOS variable expansion print the short 8.3 style file name.
12027 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12028 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12031 # Convert to MSYS style.
12032 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12035 # Convert to unix form, then to dos form, then back to unix form
12036 # but this time dos style (no spaces!) so that the unix form looks
12037 # like /cygdrive/c/PROGRA~1:/cygdr...
12038 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12039 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12040 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12043 sys_lib_search_path_spec=$LIB
12044 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12045 # It is most probably a Windows format PATH.
12046 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12048 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12050 # FIXME: find the short name or the path components, as spaces are
12051 # common. (e.g. "Program Files" -> "PROGRA~1")
12055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12056 postinstall_cmds='base_file=`basename \$file`~
12057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12058 dldir=$destdir/`dirname \$dlpath`~
12059 test -d \$dldir || mkdir -p \$dldir~
12060 $install_prog $dir/$dlname \$dldir/$dlname'
12061 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12062 dlpath=$dir/\$dldll~
12064 shlibpath_overrides_runpath=yes
12065 dynamic_linker='Win32 link.exe'
12069 # Assume MSVC wrapper
12070 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12071 dynamic_linker='Win32 ld.exe'
12074 # FIXME: first we should search . and the directory the executable is in
12078 darwin* | rhapsody*)
12079 dynamic_linker="$host_os dyld"
12080 version_type=darwin
12083 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12084 soname_spec='$libname$release$major$shared_ext'
12085 shlibpath_overrides_runpath=yes
12086 shlibpath_var=DYLD_LIBRARY_PATH
12087 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12089 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12090 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12094 version_type=linux # correct to gnu/linux during the next big refactor
12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12098 soname_spec='$libname$release$shared_ext$major'
12099 shlibpath_var=LD_LIBRARY_PATH
12102 freebsd* | dragonfly*)
12103 # DragonFly does not have aout. When/if they implement a new
12104 # versioning mechanism, adjust this.
12105 if test -x /usr/bin/objformat; then
12106 objformat=`/usr/bin/objformat`
12109 freebsd[23].*) objformat=aout ;;
12110 *) objformat=elf ;;
12113 version_type=freebsd-$objformat
12114 case $version_type in
12116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12117 soname_spec='$libname$release$shared_ext$major'
12122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12126 shlibpath_var=LD_LIBRARY_PATH
12129 shlibpath_overrides_runpath=yes
12131 freebsd3.[01]* | freebsdelf3.[01]*)
12132 shlibpath_overrides_runpath=yes
12133 hardcode_into_libs=yes
12135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12137 shlibpath_overrides_runpath=no
12138 hardcode_into_libs=yes
12140 *) # from 4.6 on, and DragonFly
12141 shlibpath_overrides_runpath=yes
12142 hardcode_into_libs=yes
12148 version_type=linux # correct to gnu/linux during the next big refactor
12151 dynamic_linker="$host_os runtime_loader"
12152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12153 soname_spec='$libname$release$shared_ext$major'
12154 shlibpath_var=LIBRARY_PATH
12155 shlibpath_overrides_runpath=no
12156 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12157 hardcode_into_libs=yes
12160 hpux9* | hpux10* | hpux11*)
12161 # Give a soname corresponding to the major version so that dld.sl refuses to
12162 # link against other versions.
12169 hardcode_into_libs=yes
12170 dynamic_linker="$host_os dld.so"
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12174 soname_spec='$libname$release$shared_ext$major'
12175 if test 32 = "$HPUX_IA64_MODE"; then
12176 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12177 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12179 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12180 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12185 hardcode_into_libs=yes
12186 dynamic_linker="$host_os dld.sl"
12187 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12188 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12190 soname_spec='$libname$release$shared_ext$major'
12191 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12192 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12196 dynamic_linker="$host_os dld.sl"
12197 shlibpath_var=SHLIB_PATH
12198 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12200 soname_spec='$libname$release$shared_ext$major'
12203 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12204 postinstall_cmds='chmod 555 $lib'
12205 # or fails outright, so override atomically:
12206 install_override_mode=555
12210 version_type=linux # correct to gnu/linux during the next big refactor
12213 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12214 soname_spec='$libname$release$shared_ext$major'
12215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12216 shlibpath_var=LD_LIBRARY_PATH
12217 shlibpath_overrides_runpath=no
12218 hardcode_into_libs=yes
12221 irix5* | irix6* | nonstopux*)
12223 nonstopux*) version_type=nonstopux ;;
12225 if test yes = "$lt_cv_prog_gnu_ld"; then
12226 version_type=linux # correct to gnu/linux during the next big refactor
12233 soname_spec='$libname$release$shared_ext$major'
12234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12236 irix5* | nonstopux*)
12237 libsuff= shlibsuff=
12240 case $LD in # libtool.m4 will add one of these switches to LD
12241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12242 libsuff= shlibsuff= libmagic=32-bit;;
12243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12244 libsuff=32 shlibsuff=N32 libmagic=N32;;
12245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12247 *) libsuff= shlibsuff= libmagic=never-match;;
12251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12252 shlibpath_overrides_runpath=no
12253 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12254 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12255 hardcode_into_libs=yes
12258 # No shared lib support for Linux oldld, aout, or coff.
12259 linux*oldld* | linux*aout* | linux*coff*)
12264 version_type=none # Android doesn't support versioned libraries.
12267 library_names_spec='$libname$release$shared_ext'
12268 soname_spec='$libname$release$shared_ext'
12270 shlibpath_var=LD_LIBRARY_PATH
12271 shlibpath_overrides_runpath=yes
12273 # This implies no fast_install, which is unacceptable.
12274 # Some rework will be needed to allow for fast_install
12275 # before this can be enabled.
12276 hardcode_into_libs=yes
12278 dynamic_linker='Android linker'
12279 # Don't embed -rpath directories since the linker doesn't support them.
12280 hardcode_libdir_flag_spec='-L$libdir'
12283 # This must be glibc/ELF.
12284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12285 version_type=linux # correct to gnu/linux during the next big refactor
12288 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12289 soname_spec='$libname$release$shared_ext$major'
12290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12291 shlibpath_var=LD_LIBRARY_PATH
12292 shlibpath_overrides_runpath=no
12294 # Some binutils ld are patched to set DT_RUNPATH
12295 if test ${lt_cv_shlibpath_overrides_runpath+y}
12297 printf %s "(cached) " >&6
12299 lt_cv_shlibpath_overrides_runpath=no
12300 save_LDFLAGS=$LDFLAGS
12301 save_libdir=$libdir
12302 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12303 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12315 if ac_fn_c_try_link "$LINENO"
12317 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12319 lt_cv_shlibpath_overrides_runpath=yes
12322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12323 conftest$ac_exeext conftest.$ac_ext
12324 LDFLAGS=$save_LDFLAGS
12325 libdir=$save_libdir
12329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12331 # This implies no fast_install, which is unacceptable.
12332 # Some rework will be needed to allow for fast_install
12333 # before this can be enabled.
12334 hardcode_into_libs=yes
12336 # Ideally, we could use ldconfig to report *all* directores which are
12337 # searched for libraries, however this is still not possible. Aside from not
12338 # being certain /sbin/ldconfig is available, command
12339 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12340 # even though it is searched at run-time. Try to do the best guess by
12341 # appending ld.so.conf contents (and includes) to the search path.
12342 if test -f /etc/ld.so.conf; then
12343 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' ' '`
12344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12347 # We used to test for /lib/ld.so.1 and disable shared libraries on
12348 # powerpc, because MkLinux only supported shared libraries with the
12349 # GNU dynamic linker. Since this was broken with cross compilers,
12350 # most powerpc-linux boxes support dynamic linking these days and
12351 # people can always --disable-shared, the test was removed, and we
12352 # assume the GNU/Linux dynamic linker is in use.
12353 dynamic_linker='GNU/Linux ld.so'
12360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12363 dynamic_linker='NetBSD (a.out) ld.so'
12365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12366 soname_spec='$libname$release$shared_ext$major'
12367 dynamic_linker='NetBSD ld.elf_so'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 shlibpath_overrides_runpath=yes
12371 hardcode_into_libs=yes
12375 version_type=linux # correct to gnu/linux during the next big refactor
12376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 shlibpath_overrides_runpath=yes
12385 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12386 soname_spec='$libname$release$shared_ext$major'
12387 shlibpath_var=LD_LIBRARY_PATH
12388 shlibpath_overrides_runpath=no
12389 hardcode_into_libs=yes
12390 dynamic_linker='ldqnx.so'
12393 openbsd* | bitrig*)
12395 sys_lib_dlsearch_path_spec=/usr/lib
12397 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12402 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 shlibpath_overrides_runpath=yes
12409 libname_spec='$name'
12410 version_type=windows
12414 # OS/2 can only load a DLL with a base name of 8 characters or less.
12415 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12416 v=$($ECHO $release$versuffix | tr -d .-);
12417 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12418 $ECHO $n$v`$shared_ext'
12419 library_names_spec='${libname}_dll.$libext'
12420 dynamic_linker='OS/2 ld.exe'
12421 shlibpath_var=BEGINLIBPATH
12422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12424 postinstall_cmds='base_file=`basename \$file`~
12425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12426 dldir=$destdir/`dirname \$dlpath`~
12427 test -d \$dldir || mkdir -p \$dldir~
12428 $install_prog $dir/$dlname \$dldir/$dlname~
12429 chmod a+x \$dldir/$dlname~
12430 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12431 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12434 dlpath=$dir/\$dldll~
12438 osf3* | osf4* | osf5*)
12442 soname_spec='$libname$release$shared_ext$major'
12443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12444 shlibpath_var=LD_LIBRARY_PATH
12445 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12454 version_type=linux # correct to gnu/linux during the next big refactor
12457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12458 soname_spec='$libname$release$shared_ext$major'
12459 shlibpath_var=LD_LIBRARY_PATH
12460 shlibpath_overrides_runpath=yes
12461 hardcode_into_libs=yes
12462 # ldd complains unless libraries are executable
12463 postinstall_cmds='chmod +x $lib'
12468 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12469 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12470 shlibpath_var=LD_LIBRARY_PATH
12471 shlibpath_overrides_runpath=yes
12472 if test yes = "$with_gnu_ld"; then
12479 version_type=linux # correct to gnu/linux during the next big refactor
12480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12481 soname_spec='$libname$release$shared_ext$major'
12482 shlibpath_var=LD_LIBRARY_PATH
12483 case $host_vendor in
12485 shlibpath_overrides_runpath=no
12487 runpath_var=LD_RUN_PATH
12495 shlibpath_overrides_runpath=no
12496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12502 if test -d /usr/nec; then
12503 version_type=linux # correct to gnu/linux during the next big refactor
12504 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12505 soname_spec='$libname$shared_ext.$major'
12506 shlibpath_var=LD_LIBRARY_PATH
12510 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12515 soname_spec='$libname$release$shared_ext$major'
12516 shlibpath_var=LD_LIBRARY_PATH
12517 shlibpath_overrides_runpath=yes
12518 hardcode_into_libs=yes
12519 if test yes = "$with_gnu_ld"; then
12520 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12522 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12525 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12529 sys_lib_dlsearch_path_spec='/usr/lib'
12533 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12534 version_type=linux # correct to gnu/linux during the next big refactor
12537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12538 shlibpath_var=LD_LIBRARY_PATH
12539 shlibpath_overrides_runpath=no
12540 hardcode_into_libs=yes
12544 version_type=linux # correct to gnu/linux during the next big refactor
12545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12546 soname_spec='$libname$release$shared_ext$major'
12547 shlibpath_var=LD_LIBRARY_PATH
12554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12555 printf "%s\n" "$dynamic_linker" >&6; }
12556 test no = "$dynamic_linker" && can_build_shared=no
12558 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12559 if test yes = "$GCC"; then
12560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12563 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12564 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12567 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12568 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12571 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12572 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12574 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12575 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12577 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12578 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12677 printf %s "checking how to hardcode library paths into programs... " >&6; }
12679 if test -n "$hardcode_libdir_flag_spec" ||
12680 test -n "$runpath_var" ||
12681 test yes = "$hardcode_automatic"; then
12683 # We can hardcode non-existent directories.
12684 if test no != "$hardcode_direct" &&
12685 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12686 # have to relink, otherwise we might link with an installed library
12687 # when we should be linking with a yet-to-be-installed one
12688 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12689 test no != "$hardcode_minus_L"; then
12690 # Linking always hardcodes the temporary library directory.
12691 hardcode_action=relink
12693 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12694 hardcode_action=immediate
12697 # We cannot hardcode anything, or else we can only hardcode existing
12699 hardcode_action=unsupported
12701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12702 printf "%s\n" "$hardcode_action" >&6; }
12704 if test relink = "$hardcode_action" ||
12705 test yes = "$inherit_rpath"; then
12706 # Fast installation is not supported
12707 enable_fast_install=no
12708 elif test yes = "$shlibpath_overrides_runpath" ||
12709 test no = "$enable_shared"; then
12710 # Fast installation is not necessary
12711 enable_fast_install=needless
12719 if test yes != "$enable_dlopen"; then
12720 enable_dlopen=unknown
12721 enable_dlopen_self=unknown
12722 enable_dlopen_self_static=unknown
12729 lt_cv_dlopen=load_add_on
12731 lt_cv_dlopen_self=yes
12734 mingw* | pw32* | cegcc*)
12735 lt_cv_dlopen=LoadLibrary
12740 lt_cv_dlopen=dlopen
12745 # if libdl is installed we need to link against it
12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12747 printf %s "checking for dlopen in -ldl... " >&6; }
12748 if test ${ac_cv_lib_dl_dlopen+y}
12750 printf %s "(cached) " >&6
12752 ac_check_lib_save_LIBS=$LIBS
12754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12769 if ac_fn_c_try_link "$LINENO"
12771 ac_cv_lib_dl_dlopen=yes
12773 ac_cv_lib_dl_dlopen=no
12775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12776 conftest$ac_exeext conftest.$ac_ext
12777 LIBS=$ac_check_lib_save_LIBS
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12780 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12781 if test "x$ac_cv_lib_dl_dlopen" = xyes
12783 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12788 lt_cv_dlopen_self=yes
12795 # Don't try to run any link tests for TPF. We know it's impossible
12796 # because TPF is a cross-compiler, and we know how we open DSOs.
12797 lt_cv_dlopen=dlopen
12799 lt_cv_dlopen_self=no
12803 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12804 if test "x$ac_cv_func_shl_load" = xyes
12806 lt_cv_dlopen=shl_load
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12809 printf %s "checking for shl_load in -ldld... " >&6; }
12810 if test ${ac_cv_lib_dld_shl_load+y}
12812 printf %s "(cached) " >&6
12814 ac_check_lib_save_LIBS=$LIBS
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12819 /* Override any GCC internal prototype to avoid an error.
12820 Use char because int might match the return type of a GCC
12821 builtin and then its argument prototype would still apply. */
12826 return shl_load ();
12831 if ac_fn_c_try_link "$LINENO"
12833 ac_cv_lib_dld_shl_load=yes
12835 ac_cv_lib_dld_shl_load=no
12837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12838 conftest$ac_exeext conftest.$ac_ext
12839 LIBS=$ac_check_lib_save_LIBS
12841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12842 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12843 if test "x$ac_cv_lib_dld_shl_load" = xyes
12845 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12847 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12848 if test "x$ac_cv_func_dlopen" = xyes
12850 lt_cv_dlopen=dlopen
12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12853 printf %s "checking for dlopen in -ldl... " >&6; }
12854 if test ${ac_cv_lib_dl_dlopen+y}
12856 printf %s "(cached) " >&6
12858 ac_check_lib_save_LIBS=$LIBS
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12875 if ac_fn_c_try_link "$LINENO"
12877 ac_cv_lib_dl_dlopen=yes
12879 ac_cv_lib_dl_dlopen=no
12881 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12882 conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_check_lib_save_LIBS
12885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12886 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12887 if test "x$ac_cv_lib_dl_dlopen" = xyes
12889 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12892 printf %s "checking for dlopen in -lsvld... " >&6; }
12893 if test ${ac_cv_lib_svld_dlopen+y}
12895 printf %s "(cached) " >&6
12897 ac_check_lib_save_LIBS=$LIBS
12898 LIBS="-lsvld $LIBS"
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12902 /* Override any GCC internal prototype to avoid an error.
12903 Use char because int might match the return type of a GCC
12904 builtin and then its argument prototype would still apply. */
12914 if ac_fn_c_try_link "$LINENO"
12916 ac_cv_lib_svld_dlopen=yes
12918 ac_cv_lib_svld_dlopen=no
12920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12921 conftest$ac_exeext conftest.$ac_ext
12922 LIBS=$ac_check_lib_save_LIBS
12924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12925 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12926 if test "x$ac_cv_lib_svld_dlopen" = xyes
12928 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12931 printf %s "checking for dld_link in -ldld... " >&6; }
12932 if test ${ac_cv_lib_dld_dld_link+y}
12934 printf %s "(cached) " >&6
12936 ac_check_lib_save_LIBS=$LIBS
12938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h. */
12941 /* Override any GCC internal prototype to avoid an error.
12942 Use char because int might match the return type of a GCC
12943 builtin and then its argument prototype would still apply. */
12948 return dld_link ();
12953 if ac_fn_c_try_link "$LINENO"
12955 ac_cv_lib_dld_dld_link=yes
12957 ac_cv_lib_dld_dld_link=no
12959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12960 conftest$ac_exeext conftest.$ac_ext
12961 LIBS=$ac_check_lib_save_LIBS
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12964 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12965 if test "x$ac_cv_lib_dld_dld_link" = xyes
12967 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12988 if test no = "$lt_cv_dlopen"; then
12994 case $lt_cv_dlopen in
12996 save_CPPFLAGS=$CPPFLAGS
12997 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12999 save_LDFLAGS=$LDFLAGS
13000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13003 LIBS="$lt_cv_dlopen_libs $LIBS"
13005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13006 printf %s "checking whether a program can dlopen itself... " >&6; }
13007 if test ${lt_cv_dlopen_self+y}
13009 printf %s "(cached) " >&6
13011 if test yes = "$cross_compiling"; then :
13012 lt_cv_dlopen_self=cross
13014 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13015 lt_status=$lt_dlunknown
13016 cat > conftest.$ac_ext <<_LT_EOF
13017 #line $LINENO "configure"
13018 #include "confdefs.h"
13027 # define LT_DLGLOBAL RTLD_GLOBAL
13030 # define LT_DLGLOBAL DL_GLOBAL
13032 # define LT_DLGLOBAL 0
13036 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13037 find out it does not work in some platform. */
13038 #ifndef LT_DLLAZY_OR_NOW
13040 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13043 # define LT_DLLAZY_OR_NOW DL_LAZY
13046 # define LT_DLLAZY_OR_NOW RTLD_NOW
13049 # define LT_DLLAZY_OR_NOW DL_NOW
13051 # define LT_DLLAZY_OR_NOW 0
13058 /* When -fvisibility=hidden is used, assume the code has been annotated
13059 correspondingly for the symbols needed. */
13060 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13061 int fnord () __attribute__((visibility("default")));
13064 int fnord () { return 42; }
13067 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13068 int status = $lt_dlunknown;
13072 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13075 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13076 else puts (dlerror ());
13078 /* dlclose (self); */
13086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13087 (eval $ac_link) 2>&5
13089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13090 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13091 (./conftest; exit; ) >&5 2>/dev/null
13093 case x$lt_status in
13094 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13095 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13096 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13099 # compilation failed
13100 lt_cv_dlopen_self=no
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13108 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13110 if test yes = "$lt_cv_dlopen_self"; then
13111 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13113 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13114 if test ${lt_cv_dlopen_self_static+y}
13116 printf %s "(cached) " >&6
13118 if test yes = "$cross_compiling"; then :
13119 lt_cv_dlopen_self_static=cross
13121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13122 lt_status=$lt_dlunknown
13123 cat > conftest.$ac_ext <<_LT_EOF
13124 #line $LINENO "configure"
13125 #include "confdefs.h"
13134 # define LT_DLGLOBAL RTLD_GLOBAL
13137 # define LT_DLGLOBAL DL_GLOBAL
13139 # define LT_DLGLOBAL 0
13143 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13144 find out it does not work in some platform. */
13145 #ifndef LT_DLLAZY_OR_NOW
13147 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13150 # define LT_DLLAZY_OR_NOW DL_LAZY
13153 # define LT_DLLAZY_OR_NOW RTLD_NOW
13156 # define LT_DLLAZY_OR_NOW DL_NOW
13158 # define LT_DLLAZY_OR_NOW 0
13165 /* When -fvisibility=hidden is used, assume the code has been annotated
13166 correspondingly for the symbols needed. */
13167 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13168 int fnord () __attribute__((visibility("default")));
13171 int fnord () { return 42; }
13174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13175 int status = $lt_dlunknown;
13179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13183 else puts (dlerror ());
13185 /* dlclose (self); */
13193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13194 (eval $ac_link) 2>&5
13196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13197 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13198 (./conftest; exit; ) >&5 2>/dev/null
13200 case x$lt_status in
13201 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13202 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13203 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13206 # compilation failed
13207 lt_cv_dlopen_self_static=no
13214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13215 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13218 CPPFLAGS=$save_CPPFLAGS
13219 LDFLAGS=$save_LDFLAGS
13224 case $lt_cv_dlopen_self in
13225 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13226 *) enable_dlopen_self=unknown ;;
13229 case $lt_cv_dlopen_self_static in
13230 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13231 *) enable_dlopen_self_static=unknown ;;
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13254 printf %s "checking whether stripping libraries is possible... " >&6; }
13255 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13257 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13259 printf "%s\n" "yes" >&6; }
13261 # FIXME - insert some real tests, host_os isn't really good enough
13264 if test -n "$STRIP"; then
13265 striplib="$STRIP -x"
13266 old_striplib="$STRIP -S"
13267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13268 printf "%s\n" "yes" >&6; }
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 printf "%s\n" "no" >&6; }
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 printf "%s\n" "no" >&6; }
13292 # Report what library types will actually be built
13293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13294 printf %s "checking if libtool supports shared libraries... " >&6; }
13295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13296 printf "%s\n" "$can_build_shared" >&6; }
13298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13299 printf %s "checking whether to build shared libraries... " >&6; }
13300 test no = "$can_build_shared" && enable_shared=no
13302 # On AIX, shared libraries and static libraries use the same namespace, and
13303 # are all built from PIC.
13306 test yes = "$enable_shared" && enable_static=no
13307 if test -n "$RANLIB"; then
13308 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13309 postinstall_cmds='$RANLIB $lib'
13314 if test ia64 != "$host_cpu"; then
13315 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13316 yes,aix,yes) ;; # shared object as lib.so file only
13317 yes,svr4,*) ;; # shared object as lib.so archive member only
13318 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13324 printf "%s\n" "$enable_shared" >&6; }
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13327 printf %s "checking whether to build static libraries... " >&6; }
13328 # Make sure either enable_shared or enable_static is yes.
13329 test yes = "$enable_shared" || enable_static=yes
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13331 printf "%s\n" "$enable_static" >&6; }
13338 ac_cpp='$CPP $CPPFLAGS'
13339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13359 ac_config_commands="$ac_config_commands libtool"
13364 # Only expand once:
13371 if test -n "$GCC"; then
13372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
13373 printf %s "checking whether the -Werror option is usable... " >&6; }
13374 if test ${gl_cv_cc_vis_werror+y}
13376 printf %s "(cached) " >&6
13379 gl_save_CFLAGS="$CFLAGS"
13380 CFLAGS="$CFLAGS -Werror"
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13392 if ac_fn_c_try_compile "$LINENO"
13394 gl_cv_cc_vis_werror=yes
13396 gl_cv_cc_vis_werror=no
13398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13399 CFLAGS="$gl_save_CFLAGS"
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
13403 printf "%s\n" "$gl_cv_cc_vis_werror" >&6; }
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
13405 printf %s "checking for simple visibility declarations... " >&6; }
13406 if test ${gl_cv_cc_visibility+y}
13408 printf %s "(cached) " >&6
13411 gl_save_CFLAGS="$CFLAGS"
13412 CFLAGS="$CFLAGS -fvisibility=hidden"
13413 if test $gl_cv_cc_vis_werror = yes; then
13414 CFLAGS="$CFLAGS -Werror"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
13419 extern __attribute__((__visibility__("default"))) int exportedvar;
13420 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
13421 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
13422 void dummyfunc (void) {}
13432 if ac_fn_c_try_compile "$LINENO"
13434 gl_cv_cc_visibility=yes
13436 gl_cv_cc_visibility=no
13438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13439 CFLAGS="$gl_save_CFLAGS"
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
13443 printf "%s\n" "$gl_cv_cc_visibility" >&6; }
13444 if test $gl_cv_cc_visibility = yes; then
13445 CFLAG_VISIBILITY="-fvisibility=hidden"
13452 printf "%s\n" "#define HAVE_VISIBILITY $HAVE_VISIBILITY" >>confdefs.h
13456 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
13457 if test "x$ac_cv_header_sys_mkdev_h" = xyes
13460 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
13464 if test $ac_cv_header_sys_mkdev_h = no; then
13465 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13466 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13469 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13476 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13477 if test ${ac_cv_header_sys_wait_h+y}
13479 printf %s "(cached) " >&6
13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13482 /* end confdefs.h. */
13483 #include <sys/types.h>
13484 #include <sys/wait.h>
13485 #ifndef WEXITSTATUS
13486 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13489 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13497 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13502 if ac_fn_c_try_compile "$LINENO"
13504 ac_cv_header_sys_wait_h=yes
13506 ac_cv_header_sys_wait_h=no
13508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13511 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
13512 if test $ac_cv_header_sys_wait_h = yes; then
13514 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13518 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13519 if test "x$ac_cv_header_stdint_h" = xyes
13521 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
13524 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13525 if test "x$ac_cv_header_fcntl_h" = xyes
13527 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
13530 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13531 if test "x$ac_cv_header_inttypes_h" = xyes
13533 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13536 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13537 if test "x$ac_cv_header_unistd_h" = xyes
13539 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
13542 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
13543 if test "x$ac_cv_header_byteswap_h" = xyes
13545 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
13549 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
13550 if test "x$ac_cv_header_spawn_h" = xyes
13552 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
13555 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
13556 if test "x$ac_cv_header_utime_h" = xyes
13558 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
13561 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
13562 if test "x$ac_cv_header_wchar_h" = xyes
13564 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
13567 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
13568 if test "x$ac_cv_header_wctype_h" = xyes
13570 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
13574 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13575 if test "x$ac_cv_header_getopt_h" = xyes
13577 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13580 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
13581 if test "x$ac_cv_header_err_h" = xyes
13583 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
13586 ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
13587 if test "x$ac_cv_header_xlocale_h" = xyes
13589 printf "%s\n" "#define HAVE_XLOCALE_H 1" >>confdefs.h
13593 ac_fn_c_check_header_compile "$LINENO" "sys/bswap.h" "ac_cv_header_sys_bswap_h" "$ac_includes_default"
13594 if test "x$ac_cv_header_sys_bswap_h" = xyes
13596 printf "%s\n" "#define HAVE_SYS_BSWAP_H 1" >>confdefs.h
13599 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13600 if test "x$ac_cv_header_sys_mman_h" = xyes
13602 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
13605 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13606 if test "x$ac_cv_header_sys_stat_h" = xyes
13608 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
13611 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13612 if test "x$ac_cv_header_sys_types_h" = xyes
13614 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
13617 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default"
13618 if test "x$ac_cv_header_sys_utime_h" = xyes
13620 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
13623 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13624 if test "x$ac_cv_header_sys_time_h" = xyes
13626 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
13629 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
13630 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
13632 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
13635 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13636 if test "x$ac_cv_header_sys_ioctl_h" = xyes
13638 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
13642 if test "$enable_zlib" != "no"; then
13643 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13644 if test "x$ac_cv_header_zlib_h" = xyes
13646 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
13651 if test "$enable_bzlib" != "no"; then
13652 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
13653 if test "x$ac_cv_header_bzlib_h" = xyes
13655 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
13660 if test "$enable_xzlib" != "no"; then
13661 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
13662 if test "x$ac_cv_header_lzma_h" = xyes
13664 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
13669 ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h>
13671 if test "x$ac_cv_type_sig_t" = xyes
13674 printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h
13679 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13680 if test "x$ac_cv_type_off_t" = xyes
13685 printf "%s\n" "#define off_t long int" >>confdefs.h
13689 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13690 if test "x$ac_cv_type_size_t" = xyes
13695 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13699 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
13700 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
13703 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
13709 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
13711 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes
13714 printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h
13719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
13720 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
13721 if test ${ac_cv_struct_tm+y}
13723 printf %s "(cached) " >&6
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 #include <sys/types.h>
13734 int *p = &tm.tm_sec;
13740 if ac_fn_c_try_compile "$LINENO"
13742 ac_cv_struct_tm=time.h
13744 ac_cv_struct_tm=sys/time.h
13746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
13749 printf "%s\n" "$ac_cv_struct_tm" >&6; }
13750 if test $ac_cv_struct_tm = sys/time.h; then
13752 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
13756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13757 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13758 if test ${ac_cv_c_undeclared_builtin_options+y}
13760 printf %s "(cached) " >&6
13762 ac_save_CFLAGS=$CFLAGS
13763 ac_cv_c_undeclared_builtin_options='cannot detect'
13764 for ac_arg in '' -fno-builtin; do
13765 CFLAGS="$ac_save_CFLAGS $ac_arg"
13766 # This test program should *not* compile successfully.
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13778 if ac_fn_c_try_compile "$LINENO"
13782 # This test program should compile successfully.
13783 # No library function is consistently available on
13784 # freestanding implementations, so test against a dummy
13785 # declaration. Include always-available headers on the
13786 # off chance that they somehow elicit warnings.
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h. */
13790 #include <limits.h>
13791 #include <stdarg.h>
13792 #include <stddef.h>
13793 extern void ac_decl (int, char *);
13798 (void) ac_decl (0, (char *) 0);
13805 if ac_fn_c_try_compile "$LINENO"
13807 if test x"$ac_arg" = x
13809 ac_cv_c_undeclared_builtin_options='none needed'
13811 ac_cv_c_undeclared_builtin_options=$ac_arg
13815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13819 CFLAGS=$ac_save_CFLAGS
13822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13823 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13824 case $ac_cv_c_undeclared_builtin_options in #(
13826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13828 as_fn_error $? "cannot make $CC report undeclared builtins
13829 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13831 ac_c_undeclared_builtin_options='' ;; #(
13833 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13836 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
13837 #include <$ac_cv_struct_tm>
13840 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
13843 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
13848 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13850 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
13853 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13854 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13855 if test "x$ac_cv_have_decl_tzname" = xyes
13861 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
13863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13864 printf %s "checking for tzname... " >&6; }
13865 if test ${ac_cv_var_tzname+y}
13867 printf %s "(cached) " >&6
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13872 #if !HAVE_DECL_TZNAME
13873 extern char *tzname[];
13879 return tzname[0][0];
13884 if ac_fn_c_try_link "$LINENO"
13886 ac_cv_var_tzname=yes
13888 ac_cv_var_tzname=no
13890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13891 conftest$ac_exeext conftest.$ac_ext
13893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13894 printf "%s\n" "$ac_cv_var_tzname" >&6; }
13895 if test $ac_cv_var_tzname = yes; then
13897 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_zone in struct tm" >&5
13903 printf %s "checking for tm_zone in struct tm... " >&6; }
13904 if test ${ac_cv_struct_tm_zone+y}
13906 printf %s "(cached) " >&6
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 #include <sys/types.h>
13911 #include <$ac_cv_struct_tm>
13915 struct tm tm; tm.tm_zone;
13920 if ac_fn_c_try_compile "$LINENO"
13922 ac_cv_struct_tm_zone=yes
13924 ac_cv_struct_tm_zone=no
13926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_zone" >&5
13929 printf "%s\n" "$ac_cv_struct_tm_zone" >&6; }
13930 if test "$ac_cv_struct_tm_zone" = yes; then
13932 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
13936 # On SGI, apparently tzname is a #define, but that's ok, AC_CHECK_DECL will
13937 # consider it declared and we won't give our own extern.
13938 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
13939 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13940 if test "x$ac_cv_have_decl_tzname" = xyes
13946 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
13949 printf %s "checking for tzname... " >&6; }
13950 if test ${ac_cv_var_tzname+y}
13952 printf %s "(cached) " >&6
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13960 #if !HAVE_DECL_TZNAME
13961 extern char *tzname[];
13963 return tzname[0][0];
13968 if ac_fn_c_try_link "$LINENO"
13970 ac_cv_var_tzname=yes
13972 ac_cv_var_tzname=no
13974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13975 conftest$ac_exeext conftest.$ac_ext
13977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13978 printf "%s\n" "$ac_cv_var_tzname" >&6; }
13979 if test $ac_cv_var_tzname = yes; then
13981 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_isdst in struct tm" >&5
13986 printf %s "checking for tm_isdst in struct tm... " >&6; }
13987 if test ${ac_cv_struct_tm_isdst+y}
13989 printf %s "(cached) " >&6
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
13993 #include <sys/types.h>
13994 #include <$ac_cv_struct_tm>
13998 struct tm tm; tm.tm_isdst;
14003 if ac_fn_c_try_compile "$LINENO"
14005 ac_cv_struct_tm_isdst=yes
14007 ac_cv_struct_tm_isdst=no
14009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_isdst" >&5
14012 printf "%s\n" "$ac_cv_struct_tm_isdst" >&6; }
14013 if test "$ac_cv_struct_tm_isdst" = yes; then
14015 printf "%s\n" "#define HAVE_TM_ISDST 1" >>confdefs.h
14020 ac_fn_check_decl "$LINENO" "daylight" "ac_cv_have_decl_daylight" "#include <time.h>
14021 #include <stdlib.h>
14022 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14023 if test "x$ac_cv_have_decl_daylight" = xyes
14029 printf "%s\n" "#define HAVE_DECL_DAYLIGHT $ac_have_decl" >>confdefs.h
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight" >&5
14032 printf %s "checking for daylight... " >&6; }
14033 if test ${ac_cv_var_daylight+y}
14035 printf %s "(cached) " >&6
14037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14038 /* end confdefs.h. */
14043 #if !HAVE_DECL_DAYLIGHT
14044 extern int daylight;
14051 if ac_fn_c_try_link "$LINENO"
14053 ac_cv_var_daylight=yes
14055 ac_cv_var_daylight=no
14057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14058 conftest$ac_exeext conftest.$ac_ext
14060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_daylight" >&5
14061 printf "%s\n" "$ac_cv_var_daylight" >&6; }
14062 if test $ac_cv_var_daylight = yes; then
14064 printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
14068 # Check whether --enable-largefile was given.
14069 if test ${enable_largefile+y}
14071 enableval=$enable_largefile;
14074 if test "$enable_largefile" != no; then
14076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
14077 printf %s "checking for special C compiler options needed for large files... " >&6; }
14078 if test ${ac_cv_sys_largefile_CC+y}
14080 printf %s "(cached) " >&6
14082 ac_cv_sys_largefile_CC=no
14083 if test "$GCC" != yes; then
14086 # IRIX 6.2 and later do not support large files by default,
14087 # so use the C compiler's -n32 option if that helps.
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <sys/types.h>
14091 /* Check that off_t can represent 2**63 - 1 correctly.
14092 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14093 since some C++ compilers masquerading as C compilers
14094 incorrectly reject 9223372036854775807. */
14095 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14096 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14097 && LARGE_OFF_T % 2147483647 == 1)
14107 if ac_fn_c_try_compile "$LINENO"
14111 rm -f core conftest.err conftest.$ac_objext conftest.beam
14113 if ac_fn_c_try_compile "$LINENO"
14115 ac_cv_sys_largefile_CC=' -n32'; break
14117 rm -f core conftest.err conftest.$ac_objext conftest.beam
14121 rm -f conftest.$ac_ext
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
14125 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
14126 if test "$ac_cv_sys_largefile_CC" != no; then
14127 CC=$CC$ac_cv_sys_largefile_CC
14130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
14131 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
14132 if test ${ac_cv_sys_file_offset_bits+y}
14134 printf %s "(cached) " >&6
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139 #include <sys/types.h>
14140 /* Check that off_t can represent 2**63 - 1 correctly.
14141 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14142 since some C++ compilers masquerading as C compilers
14143 incorrectly reject 9223372036854775807. */
14144 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14146 && LARGE_OFF_T % 2147483647 == 1)
14156 if ac_fn_c_try_compile "$LINENO"
14158 ac_cv_sys_file_offset_bits=no; break
14160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14162 /* end confdefs.h. */
14163 #define _FILE_OFFSET_BITS 64
14164 #include <sys/types.h>
14165 /* Check that off_t can represent 2**63 - 1 correctly.
14166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14167 since some C++ compilers masquerading as C compilers
14168 incorrectly reject 9223372036854775807. */
14169 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14171 && LARGE_OFF_T % 2147483647 == 1)
14181 if ac_fn_c_try_compile "$LINENO"
14183 ac_cv_sys_file_offset_bits=64; break
14185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14186 ac_cv_sys_file_offset_bits=unknown
14190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14191 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
14192 case $ac_cv_sys_file_offset_bits in #(
14195 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
14199 if test $ac_cv_sys_file_offset_bits = unknown; then
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14201 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
14202 if test ${ac_cv_sys_large_files+y}
14204 printf %s "(cached) " >&6
14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14208 /* end confdefs.h. */
14209 #include <sys/types.h>
14210 /* Check that off_t can represent 2**63 - 1 correctly.
14211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14212 since some C++ compilers masquerading as C compilers
14213 incorrectly reject 9223372036854775807. */
14214 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14216 && LARGE_OFF_T % 2147483647 == 1)
14226 if ac_fn_c_try_compile "$LINENO"
14228 ac_cv_sys_large_files=no; break
14230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14233 #define _LARGE_FILES 1
14234 #include <sys/types.h>
14235 /* Check that off_t can represent 2**63 - 1 correctly.
14236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14237 since some C++ compilers masquerading as C compilers
14238 incorrectly reject 9223372036854775807. */
14239 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
14240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14241 && LARGE_OFF_T % 2147483647 == 1)
14251 if ac_fn_c_try_compile "$LINENO"
14253 ac_cv_sys_large_files=1; break
14255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14256 ac_cv_sys_large_files=unknown
14260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14261 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
14262 case $ac_cv_sys_large_files in #(
14265 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
14272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14273 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
14274 if test ${ac_cv_sys_largefile_source+y}
14276 printf %s "(cached) " >&6
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 #include <sys/types.h> /* for off_t */
14286 int (*fp) (FILE *, off_t, int) = fseeko;
14287 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14292 if ac_fn_c_try_link "$LINENO"
14294 ac_cv_sys_largefile_source=no; break
14296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14297 conftest$ac_exeext conftest.$ac_ext
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14300 #define _LARGEFILE_SOURCE 1
14301 #include <sys/types.h> /* for off_t */
14306 int (*fp) (FILE *, off_t, int) = fseeko;
14307 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
14312 if ac_fn_c_try_link "$LINENO"
14314 ac_cv_sys_largefile_source=1; break
14316 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14317 conftest$ac_exeext conftest.$ac_ext
14318 ac_cv_sys_largefile_source=unknown
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
14323 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
14324 case $ac_cv_sys_largefile_source in #(
14327 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
14332 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14333 # in glibc 2.1.3, but that breaks too many other things.
14334 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14335 if test $ac_cv_sys_largefile_source != unknown; then
14337 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
14341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
14342 printf %s "checking for mbstate_t... " >&6; }
14343 if test ${ac_cv_type_mbstate_t+y}
14345 printf %s "(cached) " >&6
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 $ac_includes_default
14350 # include <wchar.h>
14354 mbstate_t x; return sizeof x;
14359 if ac_fn_c_try_compile "$LINENO"
14361 ac_cv_type_mbstate_t=yes
14363 ac_cv_type_mbstate_t=no
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
14368 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
14369 if test $ac_cv_type_mbstate_t = yes; then
14371 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
14375 printf "%s\n" "#define mbstate_t int" >>confdefs.h
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct option in getopt" >&5
14380 printf %s "checking for struct option in getopt... " >&6; }
14381 if test ${ac_cv_struct_option_getopt_h+y}
14383 printf %s "(cached) " >&6
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 #include <getopt.h>
14391 struct option op; op.name;
14396 if ac_fn_c_try_compile "$LINENO"
14398 ac_cv_struct_option_getopt_h=yes
14400 ac_cv_struct_option_getopt_h=no
14402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_option_getopt_h" >&5
14405 printf "%s\n" "$ac_cv_struct_option_getopt_h" >&6; }
14406 if test "$ac_cv_struct_option_getopt_h" = yes; then
14408 printf "%s\n" "#define HAVE_STRUCT_OPTION 1" >>confdefs.h
14413 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
14415 if test "x$ac_cv_type_pid_t" = xyes
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14422 #if defined _WIN64 && !defined __CYGWIN__
14435 if ac_fn_c_try_compile "$LINENO"
14439 ac_pid_type='__int64'
14441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14443 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
14449 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14450 case $ac_cv_c_uint8_t in #(
14454 printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
14457 printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
14461 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14462 case $ac_cv_c_uint16_t in #(
14467 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
14471 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14472 case $ac_cv_c_uint32_t in #(
14476 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
14479 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
14483 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14484 case $ac_cv_c_int32_t in #(
14488 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
14492 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14493 case $ac_cv_c_uint64_t in #(
14497 printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
14500 printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
14504 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
14505 case $ac_cv_c_int64_t in #(
14509 printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
14514 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
14515 if test "x$ac_cv_type_intptr_t" = xyes
14518 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
14521 for ac_type in 'int' 'long int' 'long long int'; do
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 $ac_includes_default
14528 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14529 test_array [0] = 0;
14530 return test_array [0];
14536 if ac_fn_c_try_compile "$LINENO"
14539 printf "%s\n" "#define intptr_t $ac_type" >>confdefs.h
14543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14544 test -z "$ac_type" && break
14550 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
14551 if test "x$ac_cv_type_uintptr_t" = xyes
14554 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
14557 for ac_type in 'unsigned int' 'unsigned long int' \
14558 'unsigned long long int'; do
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14561 $ac_includes_default
14565 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
14566 test_array [0] = 0;
14567 return test_array [0];
14573 if ac_fn_c_try_compile "$LINENO"
14576 printf "%s\n" "#define uintptr_t $ac_type" >>confdefs.h
14580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14581 test -z "$ac_type" && break
14588 for ac_item in $ac_func_c_list
14590 if test $ac_func; then
14591 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
14592 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
14593 echo "#define $ac_item 1" >> confdefs.h
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14603 printf %s "checking for working mmap... " >&6; }
14604 if test ${ac_cv_func_mmap_fixed_mapped+y}
14606 printf %s "(cached) " >&6
14608 if test "$cross_compiling" = yes
14610 case "$host_os" in # ((
14611 # Guess yes on platforms where we know the result.
14612 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
14613 # If we don't know, assume the worst.
14614 *) ac_cv_func_mmap_fixed_mapped=no ;;
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 $ac_includes_default
14620 /* malloc might have been renamed as rpl_malloc. */
14623 /* Thanks to Mike Haertel and Jim Avera for this test.
14624 Here is a matrix of mmap possibilities:
14625 mmap private not fixed
14626 mmap private fixed at somewhere currently unmapped
14627 mmap private fixed at somewhere already mapped
14628 mmap shared not fixed
14629 mmap shared fixed at somewhere currently unmapped
14630 mmap shared fixed at somewhere already mapped
14631 For private mappings, we should verify that changes cannot be read()
14632 back from the file, nor mmap's back from the file at a different
14633 address. (There have been systems where private was not correctly
14634 implemented like the infamous i386 svr4.0, and systems where the
14635 VM page cache was not coherent with the file system buffer cache
14636 like early versions of FreeBSD and possibly contemporary NetBSD.)
14637 For shared mappings, we should conversely verify that changes get
14638 propagated back to all the places they're supposed to be.
14640 Grep wants private fixed already mapped.
14641 The main things grep needs to know about mmap are:
14642 * does it exist and is it safe to write into the mmap'd area
14643 * how to use it (BSD variants) */
14646 #include <sys/mman.h>
14648 /* This mess was copied from the GNU getpagesize.h. */
14649 #ifndef HAVE_GETPAGESIZE
14650 # ifdef _SC_PAGESIZE
14651 # define getpagesize() sysconf(_SC_PAGESIZE)
14652 # else /* no _SC_PAGESIZE */
14653 # ifdef HAVE_SYS_PARAM_H
14654 # include <sys/param.h>
14655 # ifdef EXEC_PAGESIZE
14656 # define getpagesize() EXEC_PAGESIZE
14657 # else /* no EXEC_PAGESIZE */
14659 # define getpagesize() NBPG * CLSIZE
14662 # endif /* no CLSIZE */
14663 # else /* no NBPG */
14665 # define getpagesize() NBPC
14666 # else /* no NBPC */
14668 # define getpagesize() PAGESIZE
14669 # endif /* PAGESIZE */
14670 # endif /* no NBPC */
14671 # endif /* no NBPG */
14672 # endif /* no EXEC_PAGESIZE */
14673 # else /* no HAVE_SYS_PARAM_H */
14674 # define getpagesize() 8192 /* punt totally */
14675 # endif /* no HAVE_SYS_PARAM_H */
14676 # endif /* no _SC_PAGESIZE */
14678 #endif /* no HAVE_GETPAGESIZE */
14683 char *data, *data2, *data3;
14684 const char *cdata2;
14688 pagesize = getpagesize ();
14690 /* First, make a file with some known garbage in it. */
14691 data = (char *) malloc (pagesize);
14694 for (i = 0; i < pagesize; ++i)
14695 *(data + i) = rand ();
14697 fd = creat ("conftest.mmap", 0600);
14700 if (write (fd, data, pagesize) != pagesize)
14704 /* Next, check that the tail of a page is zero-filled. File must have
14705 non-zero length, otherwise we risk SIGBUS for entire page. */
14706 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14710 if (write (fd2, cdata2, 1) != 1)
14712 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14713 if (data2 == MAP_FAILED)
14715 for (i = 0; i < pagesize; ++i)
14719 if (munmap (data2, pagesize))
14722 /* Next, try to mmap the file at a fixed address which already has
14723 something else allocated at it. If we can, also make sure that
14724 we see the same garbage. */
14725 fd = open ("conftest.mmap", O_RDWR);
14728 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14729 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14731 for (i = 0; i < pagesize; ++i)
14732 if (*(data + i) != *(data2 + i))
14735 /* Finally, make sure that changes to the mapped area do not
14736 percolate back to the file as seen by read(). (This is a bug on
14737 some variants of i386 svr4.0.) */
14738 for (i = 0; i < pagesize; ++i)
14739 *(data2 + i) = *(data2 + i) + 1;
14740 data3 = (char *) malloc (pagesize);
14743 if (read (fd, data3, pagesize) != pagesize)
14745 for (i = 0; i < pagesize; ++i)
14746 if (*(data + i) != *(data3 + i))
14754 if ac_fn_c_try_run "$LINENO"
14756 ac_cv_func_mmap_fixed_mapped=yes
14758 ac_cv_func_mmap_fixed_mapped=no
14760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14761 conftest.$ac_objext conftest.beam conftest.$ac_ext
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14766 printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
14767 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14769 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
14772 rm -f conftest.mmap conftest.txt
14779 if test "x$ac_cv_func_fork" = xyes; then
14780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14781 printf %s "checking for working fork... " >&6; }
14782 if test ${ac_cv_func_fork_works+y}
14784 printf %s "(cached) " >&6
14786 if test "$cross_compiling" = yes
14788 ac_cv_func_fork_works=cross
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14792 $ac_includes_default
14797 /* By Ruediger Kuhlmann. */
14798 return fork () < 0;
14804 if ac_fn_c_try_run "$LINENO"
14806 ac_cv_func_fork_works=yes
14808 ac_cv_func_fork_works=no
14810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14811 conftest.$ac_objext conftest.beam conftest.$ac_ext
14815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14816 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
14819 ac_cv_func_fork_works=$ac_cv_func_fork
14821 if test "x$ac_cv_func_fork_works" = xcross; then
14823 *-*-amigaos* | *-*-msdosdjgpp*)
14824 # Override, as these systems have only a dummy fork() stub
14825 ac_cv_func_fork_works=no
14828 ac_cv_func_fork_works=yes
14831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14832 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14834 ac_cv_func_vfork_works=$ac_cv_func_vfork
14835 if test "x$ac_cv_func_vfork" = xyes; then
14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14837 printf %s "checking for working vfork... " >&6; }
14838 if test ${ac_cv_func_vfork_works+y}
14840 printf %s "(cached) " >&6
14842 if test "$cross_compiling" = yes
14844 ac_cv_func_vfork_works=cross
14846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14848 /* Thanks to Paul Eggert for this test. */
14849 $ac_includes_default
14850 #include <signal.h>
14851 #include <sys/wait.h>
14852 #ifdef HAVE_VFORK_H
14853 # include <vfork.h>
14857 do_nothing (int sig)
14862 /* On some sparc systems, changes by the child to local and incoming
14863 argument registers are propagated back to the parent. The compiler
14864 is told about this with #include <vfork.h>, but some compilers
14865 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
14866 static variable whose address is put into a register that is
14867 clobbered by the vfork. */
14869 sparc_address_test (int arg)
14871 static pid_t child;
14889 pid_t parent = getpid ();
14892 sparc_address_test (0);
14894 /* On Solaris 2.4, changes by the child to the signal handler
14895 also munge signal handlers in the parent. To detect this,
14896 start by putting the parent's handler in a known state. */
14897 signal (SIGTERM, SIG_DFL);
14902 /* Here is another test for sparc vfork register problems. This
14903 test uses lots of local variables, at least as many local
14904 variables as main has allocated so far including compiler
14905 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
14906 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
14907 reuse the register of parent for one of the local variables,
14908 since it will think that parent can't possibly be used any more
14909 in this routine. Assigning to the local variable will thus
14910 munge parent in the parent process. */
14912 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14913 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14914 /* Convince the compiler that p..p7 are live; otherwise, it might
14915 use the same hardware register for all 8 local variables. */
14916 if (p != p1 || p != p2 || p != p3 || p != p4
14917 || p != p5 || p != p6 || p != p7)
14920 /* Alter the child's signal handler. */
14921 if (signal (SIGTERM, do_nothing) != SIG_DFL)
14924 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14925 from child file descriptors. If the child closes a descriptor
14926 before it execs or exits, this munges the parent's descriptor
14927 as well. Test for this by closing stdout in the child. */
14928 _exit(close(fileno(stdout)) != 0);
14933 while (wait(&status) != child)
14936 /* Was there some problem with vforking? */
14939 /* Did the child munge the parent's signal handler? */
14940 || signal (SIGTERM, SIG_DFL) != SIG_DFL
14942 /* Did the child fail? (This shouldn't happen.) */
14945 /* Did the vfork/compiler bug occur? */
14946 || parent != getpid()
14948 /* Did the file descriptor bug occur? */
14949 || fstat(fileno(stdout), &st) != 0
14954 if ac_fn_c_try_run "$LINENO"
14956 ac_cv_func_vfork_works=yes
14958 ac_cv_func_vfork_works=no
14960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961 conftest.$ac_objext conftest.beam conftest.$ac_ext
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14966 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
14969 if test "x$ac_cv_func_fork_works" = xcross; then
14970 ac_cv_func_vfork_works=$ac_cv_func_vfork
14971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14972 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14975 if test "x$ac_cv_func_vfork_works" = xyes; then
14977 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14981 printf "%s\n" "#define vfork fork" >>confdefs.h
14984 if test "x$ac_cv_func_fork_works" = xyes; then
14986 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
14991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
14992 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
14993 if test ${ac_cv_func_mbrtowc+y}
14995 printf %s "(cached) " >&6
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
15004 char const s[] = "";
15007 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15012 if ac_fn_c_try_link "$LINENO"
15014 ac_cv_func_mbrtowc=yes
15016 ac_cv_func_mbrtowc=no
15018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15019 conftest$ac_exeext conftest.$ac_ext
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
15022 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
15023 if test $ac_cv_func_mbrtowc = yes; then
15025 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc compiler warnings" >&5
15031 printf %s "checking for gcc compiler warnings... " >&6; }
15032 # Check whether --enable-warnings was given.
15033 if test ${enable_warnings+y}
15035 enableval=$enable_warnings; if test "${enableval}" = no -o "$GCC" = no; then
15036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 printf "%s\n" "no" >&6; }
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15041 printf "%s\n" "yes" >&6; }
15042 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15043 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15044 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15045 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15049 if test "$GCC" = yes; then
15050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 printf "%s\n" "yes" >&6; }
15052 WARNINGS="-Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
15053 -Wmissing-declarations -Wredundant-decls -Wnested-externs \
15054 -Wsign-compare -Wreturn-type -Wswitch -Wshadow \
15055 -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2"
15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059 printf "%s\n" "no" >&6; }
15064 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
15065 if test "x$ac_cv_func_strndup" = xyes
15067 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
15070 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
15071 if test "x$ac_cv_func_mkstemp" = xyes
15073 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
15076 ac_fn_c_check_func "$LINENO" "mkostemp" "ac_cv_func_mkostemp"
15077 if test "x$ac_cv_func_mkostemp" = xyes
15079 printf "%s\n" "#define HAVE_MKOSTEMP 1" >>confdefs.h
15082 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
15083 if test "x$ac_cv_func_utimes" = xyes
15085 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
15088 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
15089 if test "x$ac_cv_func_utime" = xyes
15091 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
15094 ac_fn_c_check_func "$LINENO" "wcwidth" "ac_cv_func_wcwidth"
15095 if test "x$ac_cv_func_wcwidth" = xyes
15097 printf "%s\n" "#define HAVE_WCWIDTH 1" >>confdefs.h
15100 ac_fn_c_check_func "$LINENO" "strtof" "ac_cv_func_strtof"
15101 if test "x$ac_cv_func_strtof" = xyes
15103 printf "%s\n" "#define HAVE_STRTOF 1" >>confdefs.h
15106 ac_fn_c_check_func "$LINENO" "newlocale" "ac_cv_func_newlocale"
15107 if test "x$ac_cv_func_newlocale" = xyes
15109 printf "%s\n" "#define HAVE_NEWLOCALE 1" >>confdefs.h
15112 ac_fn_c_check_func "$LINENO" "uselocale" "ac_cv_func_uselocale"
15113 if test "x$ac_cv_func_uselocale" = xyes
15115 printf "%s\n" "#define HAVE_USELOCALE 1" >>confdefs.h
15118 ac_fn_c_check_func "$LINENO" "freelocale" "ac_cv_func_freelocale"
15119 if test "x$ac_cv_func_freelocale" = xyes
15121 printf "%s\n" "#define HAVE_FREELOCALE 1" >>confdefs.h
15124 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15125 if test "x$ac_cv_func_memmem" = xyes
15127 printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h
15130 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
15131 if test "x$ac_cv_func_pipe2" = xyes
15133 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
15136 ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
15137 if test "x$ac_cv_func_posix_spawnp" = xyes
15139 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
15144 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
15145 if test "x$ac_cv_func_getopt_long" = xyes
15147 printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
15150 case " $LIBOBJS " in
15151 *" getopt_long.$ac_objext "* ) ;;
15152 *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
15157 ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
15158 if test "x$ac_cv_func_asprintf" = xyes
15160 printf "%s\n" "#define HAVE_ASPRINTF 1" >>confdefs.h
15163 case " $LIBOBJS " in
15164 *" asprintf.$ac_objext "* ) ;;
15165 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext"
15170 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
15171 if test "x$ac_cv_func_vasprintf" = xyes
15173 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
15176 case " $LIBOBJS " in
15177 *" vasprintf.$ac_objext "* ) ;;
15178 *) LIBOBJS="$LIBOBJS vasprintf.$ac_objext"
15183 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
15184 if test "x$ac_cv_func_strlcpy" = xyes
15186 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
15189 case " $LIBOBJS " in
15190 *" strlcpy.$ac_objext "* ) ;;
15191 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
15196 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
15197 if test "x$ac_cv_func_strlcat" = xyes
15199 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
15202 case " $LIBOBJS " in
15203 *" strlcat.$ac_objext "* ) ;;
15204 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
15209 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
15210 if test "x$ac_cv_func_getline" = xyes
15212 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
15215 case " $LIBOBJS " in
15216 *" getline.$ac_objext "* ) ;;
15217 *) LIBOBJS="$LIBOBJS getline.$ac_objext"
15222 ac_fn_c_check_func "$LINENO" "ctime_r" "ac_cv_func_ctime_r"
15223 if test "x$ac_cv_func_ctime_r" = xyes
15225 printf "%s\n" "#define HAVE_CTIME_R 1" >>confdefs.h
15228 case " $LIBOBJS " in
15229 *" ctime_r.$ac_objext "* ) ;;
15230 *) LIBOBJS="$LIBOBJS ctime_r.$ac_objext"
15235 ac_fn_c_check_func "$LINENO" "asctime_r" "ac_cv_func_asctime_r"
15236 if test "x$ac_cv_func_asctime_r" = xyes
15238 printf "%s\n" "#define HAVE_ASCTIME_R 1" >>confdefs.h
15241 case " $LIBOBJS " in
15242 *" asctime_r.$ac_objext "* ) ;;
15243 *) LIBOBJS="$LIBOBJS asctime_r.$ac_objext"
15248 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
15249 if test "x$ac_cv_func_localtime_r" = xyes
15251 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
15254 case " $LIBOBJS " in
15255 *" localtime_r.$ac_objext "* ) ;;
15256 *) LIBOBJS="$LIBOBJS localtime_r.$ac_objext"
15261 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
15262 if test "x$ac_cv_func_gmtime_r" = xyes
15264 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
15267 case " $LIBOBJS " in
15268 *" gmtime_r.$ac_objext "* ) ;;
15269 *) LIBOBJS="$LIBOBJS gmtime_r.$ac_objext"
15274 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
15275 if test "x$ac_cv_func_pread" = xyes
15277 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
15280 case " $LIBOBJS " in
15281 *" pread.$ac_objext "* ) ;;
15282 *) LIBOBJS="$LIBOBJS pread.$ac_objext"
15287 ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
15288 if test "x$ac_cv_func_strcasestr" = xyes
15290 printf "%s\n" "#define HAVE_STRCASESTR 1" >>confdefs.h
15293 case " $LIBOBJS " in
15294 *" strcasestr.$ac_objext "* ) ;;
15295 *) LIBOBJS="$LIBOBJS strcasestr.$ac_objext"
15300 ac_fn_c_check_func "$LINENO" "fmtcheck" "ac_cv_func_fmtcheck"
15301 if test "x$ac_cv_func_fmtcheck" = xyes
15303 printf "%s\n" "#define HAVE_FMTCHECK 1" >>confdefs.h
15306 case " $LIBOBJS " in
15307 *" fmtcheck.$ac_objext "* ) ;;
15308 *) LIBOBJS="$LIBOBJS fmtcheck.$ac_objext"
15313 ac_fn_c_check_func "$LINENO" "dprintf" "ac_cv_func_dprintf"
15314 if test "x$ac_cv_func_dprintf" = xyes
15316 printf "%s\n" "#define HAVE_DPRINTF 1" >>confdefs.h
15319 case " $LIBOBJS " in
15320 *" dprintf.$ac_objext "* ) ;;
15321 *) LIBOBJS="$LIBOBJS dprintf.$ac_objext"
15328 if test "$enable_zlib" != "no"; then
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
15330 printf %s "checking for gzopen in -lz... " >&6; }
15331 if test ${ac_cv_lib_z_gzopen+y}
15333 printf %s "(cached) " >&6
15335 ac_check_lib_save_LIBS=$LIBS
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15352 if ac_fn_c_try_link "$LINENO"
15354 ac_cv_lib_z_gzopen=yes
15356 ac_cv_lib_z_gzopen=no
15358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15359 conftest$ac_exeext conftest.$ac_ext
15360 LIBS=$ac_check_lib_save_LIBS
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
15363 printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
15364 if test "x$ac_cv_lib_z_gzopen" = xyes
15366 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
15373 if test "$enable_bzlib" != "no"; then
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompressInit in -lbz2" >&5
15375 printf %s "checking for BZ2_bzCompressInit in -lbz2... " >&6; }
15376 if test ${ac_cv_lib_bz2_BZ2_bzCompressInit+y}
15378 printf %s "(cached) " >&6
15380 ac_check_lib_save_LIBS=$LIBS
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383 /* end confdefs.h. */
15385 /* Override any GCC internal prototype to avoid an error.
15386 Use char because int might match the return type of a GCC
15387 builtin and then its argument prototype would still apply. */
15388 char BZ2_bzCompressInit ();
15392 return BZ2_bzCompressInit ();
15397 if ac_fn_c_try_link "$LINENO"
15399 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
15401 ac_cv_lib_bz2_BZ2_bzCompressInit=no
15403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15404 conftest$ac_exeext conftest.$ac_ext
15405 LIBS=$ac_check_lib_save_LIBS
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
15408 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6; }
15409 if test "x$ac_cv_lib_bz2_BZ2_bzCompressInit" = xyes
15411 printf "%s\n" "#define HAVE_LIBBZ2 1" >>confdefs.h
15418 if test "$enable_xzlib" != "no"; then
15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_stream_decoder in -llzma" >&5
15420 printf %s "checking for lzma_stream_decoder in -llzma... " >&6; }
15421 if test ${ac_cv_lib_lzma_lzma_stream_decoder+y}
15423 printf %s "(cached) " >&6
15425 ac_check_lib_save_LIBS=$LIBS
15426 LIBS="-llzma $LIBS"
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15430 /* Override any GCC internal prototype to avoid an error.
15431 Use char because int might match the return type of a GCC
15432 builtin and then its argument prototype would still apply. */
15433 char lzma_stream_decoder ();
15437 return lzma_stream_decoder ();
15442 if ac_fn_c_try_link "$LINENO"
15444 ac_cv_lib_lzma_lzma_stream_decoder=yes
15446 ac_cv_lib_lzma_lzma_stream_decoder=no
15448 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15449 conftest$ac_exeext conftest.$ac_ext
15450 LIBS=$ac_check_lib_save_LIBS
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_stream_decoder" >&5
15453 printf "%s\n" "$ac_cv_lib_lzma_lzma_stream_decoder" >&6; }
15454 if test "x$ac_cv_lib_lzma_lzma_stream_decoder" = xyes
15456 printf "%s\n" "#define HAVE_LIBLZMA 1" >>confdefs.h
15458 LIBS="-llzma $LIBS"
15463 if test "$enable_libseccomp" != "no"; then
15464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for seccomp_init in -lseccomp" >&5
15465 printf %s "checking for seccomp_init in -lseccomp... " >&6; }
15466 if test ${ac_cv_lib_seccomp_seccomp_init+y}
15468 printf %s "(cached) " >&6
15470 ac_check_lib_save_LIBS=$LIBS
15471 LIBS="-lseccomp $LIBS"
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15475 /* Override any GCC internal prototype to avoid an error.
15476 Use char because int might match the return type of a GCC
15477 builtin and then its argument prototype would still apply. */
15478 char seccomp_init ();
15482 return seccomp_init ();
15487 if ac_fn_c_try_link "$LINENO"
15489 ac_cv_lib_seccomp_seccomp_init=yes
15491 ac_cv_lib_seccomp_seccomp_init=no
15493 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15494 conftest$ac_exeext conftest.$ac_ext
15495 LIBS=$ac_check_lib_save_LIBS
15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seccomp_seccomp_init" >&5
15498 printf "%s\n" "$ac_cv_lib_seccomp_seccomp_init" >&6; }
15499 if test "x$ac_cv_lib_seccomp_seccomp_init" = xyes
15501 printf "%s\n" "#define HAVE_LIBSECCOMP 1" >>confdefs.h
15503 LIBS="-lseccomp $LIBS"
15508 if test "$MINGW" = 1; then
15509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lgnurx" >&5
15510 printf %s "checking for regexec in -lgnurx... " >&6; }
15511 if test ${ac_cv_lib_gnurx_regexec+y}
15513 printf %s "(cached) " >&6
15515 ac_check_lib_save_LIBS=$LIBS
15516 LIBS="-lgnurx $LIBS"
15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15518 /* end confdefs.h. */
15520 /* Override any GCC internal prototype to avoid an error.
15521 Use char because int might match the return type of a GCC
15522 builtin and then its argument prototype would still apply. */
15532 if ac_fn_c_try_link "$LINENO"
15534 ac_cv_lib_gnurx_regexec=yes
15536 ac_cv_lib_gnurx_regexec=no
15538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15539 conftest$ac_exeext conftest.$ac_ext
15540 LIBS=$ac_check_lib_save_LIBS
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnurx_regexec" >&5
15543 printf "%s\n" "$ac_cv_lib_gnurx_regexec" >&6; }
15544 if test "x$ac_cv_lib_gnurx_regexec" = xyes
15546 printf "%s\n" "#define HAVE_LIBGNURX 1" >>confdefs.h
15548 LIBS="-lgnurx $LIBS"
15551 as_fn_error $? "libgnurx is required to build file(1) with MinGW" "$LINENO" 5
15556 if test "$cross_compiling" = yes; then
15557 IS_CROSS_COMPILE_TRUE=
15558 IS_CROSS_COMPILE_FALSE='#'
15560 IS_CROSS_COMPILE_TRUE='#'
15561 IS_CROSS_COMPILE_FALSE=
15565 if test "$enable_zlib" = "yes"; then
15566 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" != "yesyes"; then
15567 as_fn_error $? "zlib support requested but not found" "$LINENO" 5
15570 if test "$ac_cv_header_zlib_h$ac_cv_lib_z_gzopen" = "yesyes"; then
15572 printf "%s\n" "#define ZLIBSUPPORT 1" >>confdefs.h
15575 if test "$enable_bzlib" = "yes"; then
15576 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" != "yesyes"; then
15577 as_fn_error $? "bzlib support requested but not found" "$LINENO" 5
15580 if test "$ac_cv_header_bzlib_h$ac_cv_lib_bz2_BZ2_bzCompressInit" = "yesyes"; then
15582 printf "%s\n" "#define BZLIBSUPPORT 1" >>confdefs.h
15585 if test "$enable_xzlib" = "yes"; then
15586 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" != "yesyes"; then
15587 as_fn_error $? "xzlib support requested but not found" "$LINENO" 5
15590 if test "$ac_cv_header_lzma_h$ac_cv_lib_lzma_lzma_stream_decoder" = "yesyes"; then
15592 printf "%s\n" "#define XZLIBSUPPORT 1" >>confdefs.h
15596 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile tests/Makefile doc/Makefile python/Makefile libmagic.pc"
15598 cat >confcache <<\_ACEOF
15599 # This file is a shell script that caches the results of configure
15600 # tests run on this system so they can be shared between configure
15601 # scripts and configure runs, see configure's option --config-cache.
15602 # It is not useful on other systems. If it contains results you don't
15603 # want to keep, you may remove or edit it.
15605 # config.status only pays attention to the cache file if you give it
15606 # the --recheck option to rerun configure.
15608 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15609 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15610 # following values.
15614 # The following way of writing the cache mishandles newlines in values,
15615 # but we know of no workaround that is simple, portable, and efficient.
15616 # So, we kill variables containing newlines.
15617 # Ultrix sh set writes to stderr and can't be redirected directly,
15618 # and sets the high bit in the cache file unless we assign to the vars.
15620 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15621 eval ac_val=\$$ac_var
15625 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15626 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15629 _ | IFS | as_nl) ;; #(
15630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15631 *) { eval $ac_var=; unset $ac_var;} ;;
15637 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15638 *${as_nl}ac_space=\ *)
15639 # `set' does not quote correctly, so add quotes: double-quote
15640 # substitution turns \\\\ into \\, and sed turns \\ into \.
15643 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15646 # `set' quotes correctly as required by POSIX, so do not add quotes.
15647 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15656 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15658 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15660 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15661 if test -w "$cache_file"; then
15662 if test "x$cache_file" != "x/dev/null"; then
15663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15664 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15665 if test ! -f "$cache_file" || test -h "$cache_file"; then
15666 cat confcache >"$cache_file"
15668 case $cache_file in #(
15670 mv -f confcache "$cache_file"$$ &&
15671 mv -f "$cache_file"$$ "$cache_file" ;; #(
15673 mv -f confcache "$cache_file" ;;
15678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15679 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15684 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15685 # Let make expand exec_prefix.
15686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15688 DEFS=-DHAVE_CONFIG_H
15693 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15694 # 1. Remove the extension, and $U if already installed.
15695 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15696 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15698 # will be set to the directory where LIBOBJS objects are built.
15699 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15700 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15702 LIBOBJS=$ac_libobjs
15704 LTLIBOBJS=$ac_ltlibobjs
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15708 printf %s "checking that generated files are newer than configure... " >&6; }
15709 if test -n "$am_sleep_pid"; then
15710 # Hide warnings about reused PIDs.
15711 wait $am_sleep_pid 2>/dev/null
15713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15714 printf "%s\n" "done" >&6; }
15715 if test -n "$EXEEXT"; then
15717 am__EXEEXT_FALSE='#'
15719 am__EXEEXT_TRUE='#'
15723 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
15724 as_fn_error $? "conditional \"MINGW\" was never defined.
15725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
15728 as_fn_error $? "conditional \"FSECT5\" was never defined.
15729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15731 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15732 as_fn_error $? "conditional \"AMDEP\" was never defined.
15733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15735 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15736 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15740 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
15741 as_fn_error $? "conditional \"IS_CROSS_COMPILE\" was never defined.
15742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15745 : "${CONFIG_STATUS=./config.status}"
15747 ac_clean_files_save=$ac_clean_files
15748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15750 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15752 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15754 # Generated by $as_me.
15755 # Run this file to recreate the current configuration.
15756 # Compiler output produced by configure, useful for debugging
15757 # configure, is in config.log if it exists.
15760 ac_cs_recheck=false
15763 SHELL=\${CONFIG_SHELL-$SHELL}
15766 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15767 ## -------------------- ##
15768 ## M4sh Initialization. ##
15769 ## -------------------- ##
15771 # Be more Bourne compatible
15772 DUALCASE=1; export DUALCASE # for MKS sh
15774 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15778 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15779 # is contrary to our usage. Disable this feature.
15780 alias -g '${1+"$@"}'='"$@"'
15781 setopt NO_GLOB_SUBST
15783 case `(set -o) 2>/dev/null` in #(
15793 # Reset variables that may have inherited troublesome values from
15796 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15797 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15798 # side effect of setting IFS to empty, thus disabling word splitting.)
15799 # Quoting is to prevent editors from complaining about space-tab.
15809 # Ensure predictable behavior from utilities with locale-dependent output.
15815 # We cannot yet rely on "unset" to work, but we need these variables
15816 # to be unset--not just set to an empty or harmless value--now, to
15817 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15818 # also avoids known problems related to "unset" and subshell syntax
15819 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15820 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15821 do eval test \${$as_var+y} \
15822 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15825 # Ensure that fds 0, 1, and 2 are open.
15826 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15827 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15828 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15830 # The user is always right.
15831 if ${PATH_SEPARATOR+false} :; then
15833 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15834 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15840 # Find who we are. Look in the path if we contain no directory separator.
15843 *[\\/]* ) as_myself=$0 ;;
15844 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15848 case $as_dir in #(((
15851 *) as_dir=$as_dir/ ;;
15853 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15859 # We did not find ourselves, most probably we were run as `sh COMMAND'
15860 # in which case we are not to be found in the path.
15861 if test "x$as_myself" = x; then
15864 if test ! -f "$as_myself"; then
15865 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15871 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15872 # ----------------------------------------
15873 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15874 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15875 # script with STATUS, using 1 if that was 0.
15878 as_status=$1; test $as_status -eq 0 && as_status=1
15880 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15883 printf "%s\n" "$as_me: error: $2" >&2
15884 as_fn_exit $as_status
15889 # as_fn_set_status STATUS
15890 # -----------------------
15891 # Set $? to STATUS, without forking.
15892 as_fn_set_status ()
15895 } # as_fn_set_status
15897 # as_fn_exit STATUS
15898 # -----------------
15899 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15903 as_fn_set_status $1
15909 # Portably unset VAR.
15912 { eval $1=; unset $1;}
15914 as_unset=as_fn_unset
15916 # as_fn_append VAR VALUE
15917 # ----------------------
15918 # Append the text in VALUE to the end of the definition contained in VAR. Take
15919 # advantage of any shell optimizations that allow amortized linear growth over
15920 # repeated appends, instead of the typical quadratic growth present in naive
15922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15924 eval 'as_fn_append ()
15935 # as_fn_arith ARG...
15936 # ------------------
15937 # Perform arithmetic evaluation on the ARGs, and store the result in the
15938 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15939 # must be portable across $(()) and expr.
15940 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15942 eval 'as_fn_arith ()
15949 as_val=`expr "$@" || test $? -eq 1`
15954 if expr a : '\(a\)' >/dev/null 2>&1 &&
15955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15961 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15962 as_basename=basename
15967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15973 as_me=`$as_basename -- "$0" ||
15974 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15975 X"$0" : 'X\(//\)$' \| \
15976 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15977 printf "%s\n" X/"$0" |
15978 sed '/^.*\/\([^/][^/]*\)\/*$/{
15992 # Avoid depending upon Character Ranges.
15993 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15994 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15995 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15996 as_cr_digits='0123456789'
15997 as_cr_alnum=$as_cr_Letters$as_cr_digits
16000 # Determine whether it's possible to make 'echo' print without a newline.
16001 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16002 # for compatibility with existing Makefiles.
16003 ECHO_C= ECHO_N= ECHO_T=
16004 case `echo -n x` in #(((((
16006 case `echo 'xy\c'` in
16007 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16009 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16016 # For backward compatibility with old third-party macros, we provide
16017 # the shell variables $as_echo and $as_echo_n. New code should use
16018 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16019 as_echo='printf %s\n'
16020 as_echo_n='printf %s'
16022 rm -f conf$$ conf$$.exe conf$$.file
16023 if test -d conf$$.dir; then
16024 rm -f conf$$.dir/conf$$.file
16027 mkdir conf$$.dir 2>/dev/null
16029 if (echo >conf$$.file) 2>/dev/null; then
16030 if ln -s conf$$.file conf$$ 2>/dev/null; then
16032 # ... but there are two gotchas:
16033 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16034 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16035 # In both cases, we have to default to `cp -pR'.
16036 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16038 elif ln conf$$.file conf$$ 2>/dev/null; then
16046 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16047 rmdir conf$$.dir 2>/dev/null
16052 # Create "$as_dir" as a directory, including parents if necessary.
16057 -*) as_dir=./$as_dir;;
16059 test -d "$as_dir" || eval $as_mkdir_p || {
16063 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16064 *) as_qdir=$as_dir;;
16066 as_dirs="'$as_qdir' $as_dirs"
16067 as_dir=`$as_dirname -- "$as_dir" ||
16068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16069 X"$as_dir" : 'X\(//\)[^/]' \| \
16070 X"$as_dir" : 'X\(//\)$' \| \
16071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16072 printf "%s\n" X"$as_dir" |
16073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16077 /^X\(\/\/\)[^/].*/{
16090 test -d "$as_dir" && break
16092 test -z "$as_dirs" || eval "mkdir $as_dirs"
16093 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16097 if mkdir -p . 2>/dev/null; then
16098 as_mkdir_p='mkdir -p "$as_dir"'
16100 test -d ./-p && rmdir ./-p
16105 # as_fn_executable_p FILE
16106 # -----------------------
16107 # Test if FILE is an executable regular file.
16108 as_fn_executable_p ()
16110 test -f "$1" && test -x "$1"
16111 } # as_fn_executable_p
16112 as_test_x='test -x'
16113 as_executable_p=as_fn_executable_p
16115 # Sed expression to map a string onto a valid CPP name.
16116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16118 # Sed expression to map a string onto a valid variable name.
16119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16123 ## ----------------------------------- ##
16124 ## Main body of $CONFIG_STATUS script. ##
16125 ## ----------------------------------- ##
16127 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16130 # Save the log message, to keep $0 and so on meaningful, and to
16131 # report actual input values of CONFIG_FILES etc. instead of their
16132 # values after options handling.
16134 This file was extended by file $as_me 5.43, which was
16135 generated by GNU Autoconf 2.71. Invocation command line was
16137 CONFIG_FILES = $CONFIG_FILES
16138 CONFIG_HEADERS = $CONFIG_HEADERS
16139 CONFIG_LINKS = $CONFIG_LINKS
16140 CONFIG_COMMANDS = $CONFIG_COMMANDS
16143 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16148 case $ac_config_files in *"
16149 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16152 case $ac_config_headers in *"
16153 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16158 # Files that config.status was made for.
16159 config_files="$ac_config_files"
16160 config_headers="$ac_config_headers"
16161 config_commands="$ac_config_commands"
16165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16167 \`$as_me' instantiates files and other configuration actions
16168 from templates according to the current configuration. Unless the files
16169 and actions are specified as TAGs, all are instantiated by default.
16171 Usage: $0 [OPTION]... [TAG]...
16173 -h, --help print this help, then exit
16174 -V, --version print version number and configuration settings, then exit
16175 --config print configuration, then exit
16176 -q, --quiet, --silent
16177 do not print progress messages
16178 -d, --debug don't remove temporary files
16179 --recheck update $as_me by reconfiguring in the same conditions
16180 --file=FILE[:TEMPLATE]
16181 instantiate the configuration file FILE
16182 --header=FILE[:TEMPLATE]
16183 instantiate the configuration header FILE
16185 Configuration files:
16188 Configuration headers:
16191 Configuration commands:
16194 Report bugs to <christos@astron.com>."
16197 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16198 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16200 ac_cs_config='$ac_cs_config_escaped'
16202 file config.status 5.43
16203 configured by $0, generated by GNU Autoconf 2.71,
16204 with options \\"\$ac_cs_config\\"
16206 Copyright (C) 2021 Free Software Foundation, Inc.
16207 This config.status script is free software; the Free Software Foundation
16208 gives unlimited permission to copy, distribute and modify it."
16215 test -n "\$AWK" || AWK=awk
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 # The default lists apply if the user does not specify any file.
16225 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16226 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16230 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16242 # Handling of the options.
16243 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16245 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16246 printf "%s\n" "$ac_cs_version"; exit ;;
16247 --config | --confi | --conf | --con | --co | --c )
16248 printf "%s\n" "$ac_cs_config"; exit ;;
16249 --debug | --debu | --deb | --de | --d | -d )
16251 --file | --fil | --fi | --f )
16254 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16255 '') as_fn_error $? "missing file argument" ;;
16257 as_fn_append CONFIG_FILES " '$ac_optarg'"
16258 ac_need_defaults=false;;
16259 --header | --heade | --head | --hea )
16262 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16264 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16265 ac_need_defaults=false;;
16267 # Conflict between --help and --header
16268 as_fn_error $? "ambiguous option: \`$1'
16269 Try \`$0 --help' for more information.";;
16270 --help | --hel | -h )
16271 printf "%s\n" "$ac_cs_usage"; exit ;;
16272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16273 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16276 # This is an error.
16277 -*) as_fn_error $? "unrecognized option: \`$1'
16278 Try \`$0 --help' for more information." ;;
16280 *) as_fn_append ac_config_targets " $1"
16281 ac_need_defaults=false ;;
16287 ac_configure_extra_args=
16289 if $ac_cs_silent; then
16291 ac_configure_extra_args="$ac_configure_extra_args --silent"
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 if \$ac_cs_recheck; then
16297 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16299 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16300 CONFIG_SHELL='$SHELL'
16301 export CONFIG_SHELL
16306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16310 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16311 ## Running $as_me. ##
16313 printf "%s\n" "$ac_log"
16317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16321 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16324 # The HP-UX ksh and POSIX shell print the target directory to stdout
16325 # if CDPATH is set.
16326 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16328 sed_quote_subst='$sed_quote_subst'
16329 double_quote_subst='$double_quote_subst'
16330 delay_variable_subst='$delay_variable_subst'
16331 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16332 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16334 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16335 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16336 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16337 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16338 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16339 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16340 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16341 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16342 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16343 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16344 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16345 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16346 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16347 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16348 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16349 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16350 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16351 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16352 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16353 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16354 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16355 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16356 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16357 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16358 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16359 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16360 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16361 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16362 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16363 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16364 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16365 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16366 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16367 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16368 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16369 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16370 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16371 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16372 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16373 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16374 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16375 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16376 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16377 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16378 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16379 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16380 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16381 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16382 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16383 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16384 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16385 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16386 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16387 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16388 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16389 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16390 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16391 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16392 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16393 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16394 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16395 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16396 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16397 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16398 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16399 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16400 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16401 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16402 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16403 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16404 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16405 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16406 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16407 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16408 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16409 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16410 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16411 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16412 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16413 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16414 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16415 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16416 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16417 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16418 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16419 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16420 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16421 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16422 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16423 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16424 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16425 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16426 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16427 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16428 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16429 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16430 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16431 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16432 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16433 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16434 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16435 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16436 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16437 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16438 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16439 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16440 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16441 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16442 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16443 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16444 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16445 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16446 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16447 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16448 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16449 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16450 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16451 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16452 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16453 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16454 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16455 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16456 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16457 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16458 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16459 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16460 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16461 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16462 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16463 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16464 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16465 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16468 LTCFLAGS='$LTCFLAGS'
16469 compiler='$compiler_DEFAULT'
16471 # A function that is used when there is no print builtin or printf.
16472 func_fallback_echo ()
16474 eval 'cat <<_LTECHO_EOF
16479 # Quote evaled strings.
16494 deplibs_check_method \
16499 sharedlib_from_linklib_cmd \
16502 archiver_list_spec \
16508 lt_cv_sys_global_symbol_pipe \
16509 lt_cv_sys_global_symbol_to_cdecl \
16510 lt_cv_sys_global_symbol_to_import \
16511 lt_cv_sys_global_symbol_to_c_name_address \
16512 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16513 lt_cv_nm_interface \
16514 nm_file_list_spec \
16515 lt_cv_truncate_bin \
16516 lt_prog_compiler_no_builtin_flag \
16517 lt_prog_compiler_pic \
16518 lt_prog_compiler_wl \
16519 lt_prog_compiler_static \
16520 lt_cv_prog_compiler_c_o \
16529 export_dynamic_flag_spec \
16530 whole_archive_flag_spec \
16531 compiler_needs_object \
16533 allow_undefined_flag \
16534 no_undefined_flag \
16535 hardcode_libdir_flag_spec \
16536 hardcode_libdir_separator \
16540 variables_saved_for_relink \
16542 library_names_spec \
16544 install_override_mode \
16548 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16549 *[\\\\\\\`\\"\\\$]*)
16550 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16558 # Double-quote double-evaled strings.
16559 for var in reload_cmds \
16560 old_postinstall_cmds \
16561 old_postuninstall_cmds \
16563 extract_expsyms_cmds \
16564 old_archive_from_new_cmds \
16565 old_archive_from_expsyms_cmds \
16567 archive_expsym_cmds \
16569 module_expsym_cmds \
16570 export_symbols_cmds \
16574 postuninstall_cmds \
16576 sys_lib_search_path_spec \
16577 configure_time_dlsearch_path \
16578 configure_time_lt_sys_library_path; do
16579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16580 *[\\\\\\\`\\"\\\$]*)
16581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16589 ac_aux_dir='$ac_aux_dir'
16591 # See if we are running on zsh, and set the options that allow our
16592 # commands through without removal of \ escapes INIT.
16593 if test -n "\${ZSH_VERSION+set}"; then
16594 setopt NO_GLOB_SUBST
16608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16610 # Handling of arguments.
16611 for ac_config_target in $ac_config_targets
16613 case $ac_config_target in
16614 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16615 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16616 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16617 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16618 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16619 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
16620 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16621 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16622 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
16623 "libmagic.pc") CONFIG_FILES="$CONFIG_FILES libmagic.pc" ;;
16625 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16630 # If the user did not use the arguments to specify the items to instantiate,
16631 # then the envvar interface is used. Set only those that are not.
16632 # We use the long form for the default assignment because of an extremely
16633 # bizarre bug on SunOS 4.1.3.
16634 if $ac_need_defaults; then
16635 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16636 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16637 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16640 # Have a temporary directory for convenience. Make it in the build tree
16641 # simply because there is no reason against having it here, and in addition,
16642 # creating and moving files from /tmp can sometimes cause problems.
16643 # Hook for its removal unless debugging.
16644 # Note that there is a small window in which the directory will not be cleaned:
16645 # after its creation but before its name has been assigned to `$tmp'.
16649 trap 'exit_status=$?
16650 : "${ac_tmp:=$tmp}"
16651 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16653 trap 'as_fn_exit 1' 1 2 13 15
16655 # Create a (secure) tmp directory for tmp files.
16658 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16662 tmp=./conf$$-$RANDOM
16663 (umask 077 && mkdir "$tmp")
16664 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16667 # Set up the scripts for CONFIG_FILES section.
16668 # No need to generate them if there are no CONFIG_FILES.
16669 # This happens for instance with `./config.status config.h'.
16670 if test -n "$CONFIG_FILES"; then
16673 ac_cr=`echo X | tr X '\015'`
16674 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16675 # But we know of no other shell where ac_cr would be empty at this
16676 # point, so we can use a bashism as a fallback.
16677 if test "x$ac_cr" = x; then
16678 eval ac_cr=\$\'\\r\'
16680 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16681 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16684 ac_cs_awk_cr=$ac_cr
16687 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16692 echo "cat >conf$$subs.awk <<_ACEOF" &&
16693 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16695 } >conf$$subs.sh ||
16696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16697 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16699 for ac_last_try in false false false false false :; do
16700 . ./conf$$subs.sh ||
16701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16703 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16704 if test $ac_delim_n = $ac_delim_num; then
16706 elif $ac_last_try; then
16707 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16709 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16712 rm -f conf$$subs.sh
16714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16715 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16719 s/^/S["/; s/!.*/"]=/
16729 s/\(.\{148\}\)..*/\1/
16731 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16736 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16743 s/\(.\{148\}\)..*/\1/
16745 s/["\\]/\\&/g; s/^/"/; s/$/"/
16749 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16754 ' <conf$$subs.awk | sed '
16759 ' >>$CONFIG_STATUS || ac_write_fail=1
16760 rm -f conf$$subs.awk
16761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16763 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16764 for (key in S) S_is_set[key] = 1
16770 nfields = split(line, field, "@")
16772 len = length(field[1])
16773 for (i = 2; i < nfields; i++) {
16775 keylen = length(key)
16776 if (S_is_set[key]) {
16778 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16779 len += length(value) + length(field[++i])
16790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16791 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16792 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16795 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16796 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16799 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16800 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16801 # trailing colons and then remove the whole line if VPATH becomes empty
16802 # (actually we leave an empty line to preserve line numbers).
16803 if test "x$srcdir" = x.; then
16804 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16823 fi # test -n "$CONFIG_FILES"
16825 # Set up the scripts for CONFIG_HEADERS section.
16826 # No need to generate them if there are no CONFIG_HEADERS.
16827 # This happens for instance with `./config.status Makefile'.
16828 if test -n "$CONFIG_HEADERS"; then
16829 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16833 # Transform confdefs.h into an awk script `defines.awk', embedded as
16834 # here-document in config.status, that substitutes the proper values into
16835 # config.h.in to produce config.h.
16837 # Create a delimiter string that does not exist in confdefs.h, to ease
16838 # handling of long lines.
16840 for ac_last_try in false false :; do
16841 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16842 if test -z "$ac_tt"; then
16844 elif $ac_last_try; then
16845 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16847 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16851 # For the awk script, D is an array of macro values keyed by name,
16852 # likewise P contains macro parameters if any. Preserve backslash
16853 # newline sequences.
16855 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16857 s/.\{148\}/&'"$ac_delim"'/g
16860 s/^[ ]*#[ ]*define[ ][ ]*/ /
16867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16869 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16873 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16874 D["\1"]=" \3\\\\\\n"\\/p
16876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16881 s/.\{148\}/&'"$ac_delim"'/g
16886 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16889 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16891 ' <confdefs.h | sed '
16892 s/'"$ac_delim"'/"\\\
16893 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16896 for (key in D) D_is_set[key] = 1
16899 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16901 split(line, arg, " ")
16902 if (arg[1] == "#") {
16906 defundef = substr(arg[1], 2)
16909 split(mac1, mac2, "(") #)
16911 prefix = substr(line, 1, index(line, defundef) - 1)
16912 if (D_is_set[macro]) {
16913 # Preserve the white space surrounding the "#".
16914 print prefix "define", macro P[macro] D[macro]
16917 # Replace #undef with comments. This is necessary, for example,
16918 # in the case of _POSIX_SOURCE, which is predefined and required
16919 # on some systems where configure will not decide to define it.
16920 if (defundef == "undef") {
16921 print "/*", prefix defundef, macro, "*/"
16929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16931 fi # test -n "$CONFIG_HEADERS"
16934 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16939 :[FHLC]) ac_mode=$ac_tag; continue;;
16941 case $ac_mode$ac_tag in
16943 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16944 :[FH]-) ac_tag=-:-;;
16945 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16962 -) ac_f="$ac_tmp/stdin";;
16963 *) # Look for the file first in the build tree, then in the source tree
16964 # (if the path is not absolute). The absolute path cannot be DOS-style,
16965 # because $ac_f cannot contain `:'.
16969 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16971 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16973 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16974 as_fn_append ac_file_inputs " '$ac_f'"
16977 # Let's still pretend it is `configure' which instantiates (i.e., don't
16978 # use $as_me), people would be surprised to read:
16979 # /* config.h. Generated by config.status. */
16980 configure_input='Generated from '`
16981 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16983 if test x"$ac_file" != x-; then
16984 configure_input="$ac_file. $configure_input"
16985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16986 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16988 # Neutralize special characters interpreted by sed in replacement strings.
16989 case $configure_input in #(
16990 *\&* | *\|* | *\\* )
16991 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16992 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16993 *) ac_sed_conf_input=$configure_input;;
16997 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16998 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17003 ac_dir=`$as_dirname -- "$ac_file" ||
17004 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17005 X"$ac_file" : 'X\(//\)[^/]' \| \
17006 X"$ac_file" : 'X\(//\)$' \| \
17007 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17008 printf "%s\n" X"$ac_file" |
17009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17013 /^X\(\/\/\)[^/].*/{
17026 as_dir="$ac_dir"; as_fn_mkdir_p
17030 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17032 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17033 # A ".." for each directory in $ac_dir_suffix.
17034 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17035 case $ac_top_builddir_sub in
17036 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17037 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17040 ac_abs_top_builddir=$ac_pwd
17041 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17042 # for backward compatibility:
17043 ac_top_builddir=$ac_top_build_prefix
17046 .) # We are building in place.
17048 ac_top_srcdir=$ac_top_builddir_sub
17049 ac_abs_top_srcdir=$ac_pwd ;;
17050 [\\/]* | ?:[\\/]* ) # Absolute name.
17051 ac_srcdir=$srcdir$ac_dir_suffix;
17052 ac_top_srcdir=$srcdir
17053 ac_abs_top_srcdir=$srcdir ;;
17054 *) # Relative name.
17055 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17056 ac_top_srcdir=$ac_top_build_prefix$srcdir
17057 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17059 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17069 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17070 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17072 ac_MKDIR_P=$MKDIR_P
17074 [\\/$]* | ?:[\\/]* ) ;;
17075 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17080 # If the template does not know about datarootdir, expand it.
17081 # FIXME: This hack should be removed a few years after 2.60.
17082 ac_datarootdir_hack=; ac_datarootdir_seen=
17093 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17094 *datarootdir*) ac_datarootdir_seen=yes;;
17095 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17097 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17100 ac_datarootdir_hack='
17101 s&@datadir@&$datadir&g
17102 s&@docdir@&$docdir&g
17103 s&@infodir@&$infodir&g
17104 s&@localedir@&$localedir&g
17105 s&@mandir@&$mandir&g
17106 s&\\\${datarootdir}&$datarootdir&g' ;;
17110 # Neutralize VPATH when `$srcdir' = `.'.
17111 # Shell code in configure.ac might set extrasub.
17112 # FIXME: do we really want to maintain this feature?
17113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17114 ac_sed_extra="$ac_vpsub
17117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17120 s|@configure_input@|$ac_sed_conf_input|;t t
17121 s&@top_builddir@&$ac_top_builddir_sub&;t t
17122 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17123 s&@srcdir@&$ac_srcdir&;t t
17124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17125 s&@top_srcdir@&$ac_top_srcdir&;t t
17126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17127 s&@builddir@&$ac_builddir&;t t
17128 s&@abs_builddir@&$ac_abs_builddir&;t t
17129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17130 s&@INSTALL@&$ac_INSTALL&;t t
17131 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17132 $ac_datarootdir_hack
17134 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17135 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17138 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17140 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17142 which seems to be undefined. Please make sure it is defined" >&5
17143 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17144 which seems to be undefined. Please make sure it is defined" >&2;}
17146 rm -f "$ac_tmp/stdin"
17148 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17149 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17157 if test x"$ac_file" != x-; then
17159 printf "%s\n" "/* $configure_input */" >&1 \
17160 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17161 } >"$ac_tmp/config.h" \
17162 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17163 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17165 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17168 mv "$ac_tmp/config.h" "$ac_file" \
17169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17172 printf "%s\n" "/* $configure_input */" >&1 \
17173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17174 || as_fn_error $? "could not create -" "$LINENO" 5
17176 # Compute "$ac_file"'s index in $config_headers.
17179 for _am_header in $config_headers :; do
17180 case $_am_header in
17181 $_am_arg | $_am_arg:* )
17184 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17187 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17188 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17189 X"$_am_arg" : 'X\(//\)[^/]' \| \
17190 X"$_am_arg" : 'X\(//\)$' \| \
17191 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17192 printf "%s\n" X"$_am_arg" |
17193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17197 /^X\(\/\/\)[^/].*/{
17209 s/.*/./; q'`/stamp-h$_am_stamp_count
17212 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17213 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17218 case $ac_file$ac_mode in
17219 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17220 # Older Autoconf quotes --file arguments for eval, but not when files
17221 # are listed without --file. Let's play safe and only enable the eval
17222 # if we detect the quoting.
17223 # TODO: see whether this extra hack can be removed once we start
17224 # requiring Autoconf 2.70 or later.
17225 case $CONFIG_FILES in #(
17227 eval set x "$CONFIG_FILES" ;; #(
17229 set x $CONFIG_FILES ;; #(
17234 # Used to flag and report bootstrapping failures.
17238 # Strip MF so we end up with the name of the file.
17239 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
17240 # Check whether this is an Automake generated Makefile which includes
17241 # dependency-tracking related rules and includes.
17242 # Grep'ing the whole file directly is not great: AIX grep has a line
17243 # limit of 2048, but all sed's we know have understand at least 4000.
17244 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17246 am_dirpart=`$as_dirname -- "$am_mf" ||
17247 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17248 X"$am_mf" : 'X\(//\)[^/]' \| \
17249 X"$am_mf" : 'X\(//\)$' \| \
17250 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17251 printf "%s\n" X"$am_mf" |
17252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17256 /^X\(\/\/\)[^/].*/{
17269 am_filepart=`$as_basename -- "$am_mf" ||
17270 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17271 X"$am_mf" : 'X\(//\)$' \| \
17272 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17273 printf "%s\n" X/"$am_mf" |
17274 sed '/^.*\/\([^/][^/]*\)\/*$/{
17287 { echo "$as_me:$LINENO: cd "$am_dirpart" \
17288 && sed -e '/# am--include-marker/d' "$am_filepart" \
17289 | $MAKE -f - am--depfiles" >&5
17290 (cd "$am_dirpart" \
17291 && sed -e '/# am--include-marker/d' "$am_filepart" \
17292 | $MAKE -f - am--depfiles) >&5 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } || am_rc=$?
17297 if test $am_rc -ne 0; then
17298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17300 as_fn_error $? "Something went wrong bootstrapping makefile fragments
17301 for automatic dependency tracking. If GNU make was not used, consider
17302 re-running the configure script with MAKE=\"gmake\" (or whatever is
17303 necessary). You can also try re-running configure with the
17304 '--disable-dependency-tracking' option to at least be able to build
17305 the package (albeit without support for automatic dependency tracking).
17306 See \`config.log' for more details" "$LINENO" 5; }
17308 { am_dirpart=; unset am_dirpart;}
17309 { am_filepart=; unset am_filepart;}
17310 { am_mf=; unset am_mf;}
17311 { am_rc=; unset am_rc;}
17312 rm -f conftest-deps.mk
17317 # See if we are running on zsh, and set the options that allow our
17318 # commands through without removal of \ escapes.
17319 if test -n "${ZSH_VERSION+set}"; then
17320 setopt NO_GLOB_SUBST
17324 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17327 cat <<_LT_EOF >> "$cfgfile"
17329 # Generated automatically by $as_me ($PACKAGE) $VERSION
17330 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17331 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17333 # Provide generalized library-building support services.
17334 # Written by Gordon Matzigkeit, 1996
17336 # Copyright (C) 2014 Free Software Foundation, Inc.
17337 # This is free software; see the source for copying conditions. There is NO
17338 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17340 # GNU Libtool is free software; you can redistribute it and/or modify
17341 # it under the terms of the GNU General Public License as published by
17342 # the Free Software Foundation; either version 2 of of the License, or
17343 # (at your option) any later version.
17345 # As a special exception to the GNU General Public License, if you
17346 # distribute this file as part of a program or library that is built
17347 # using GNU Libtool, you may include this file under the same
17348 # distribution terms that you use for the rest of that program.
17350 # GNU Libtool is distributed in the hope that it will be useful, but
17351 # WITHOUT ANY WARRANTY; without even the implied warranty of
17352 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17353 # GNU General Public License for more details.
17355 # You should have received a copy of the GNU General Public License
17356 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17359 # The names of the tagged configurations supported by this script.
17362 # Configured defaults for sys_lib_dlsearch_path munging.
17363 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17365 # ### BEGIN LIBTOOL CONFIG
17367 # Which release of libtool.m4 was used?
17368 macro_version=$macro_version
17369 macro_revision=$macro_revision
17371 # Whether or not to build static libraries.
17372 build_old_libs=$enable_static
17374 # What type of objects to build.
17377 # Whether or not to build shared libraries.
17378 build_libtool_libs=$enable_shared
17380 # Whether or not to optimize for fast installation.
17381 fast_install=$enable_fast_install
17383 # Shared archive member basename,for filename based shared library versioning on AIX.
17384 shared_archive_member_spec=$shared_archive_member_spec
17386 # Shell to use when invoking shell scripts.
17389 # An echo program that protects backslashes.
17392 # The PATH separator for the build system.
17393 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17396 host_alias=$host_alias
17400 # The build system.
17401 build_alias=$build_alias
17405 # A sed program that does not truncate output.
17408 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17409 Xsed="\$SED -e 1s/^X//"
17411 # A grep program that handles long lines.
17417 # A literal string matcher.
17420 # A BSD- or MS-compatible name lister.
17423 # Whether we need soft or hard links.
17426 # What is the maximum length of a command?
17427 max_cmd_len=$max_cmd_len
17429 # Object file suffix (normally "o").
17432 # Executable file suffix (normally "").
17435 # whether the shell understands "unset".
17438 # turn spaces into newlines.
17441 # turn newlines into spaces.
17444 # convert \$build file names to \$host format.
17445 to_host_file_cmd=$lt_cv_to_host_file_cmd
17447 # convert \$build files to toolchain format.
17448 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17450 # An object symbol dumper.
17451 OBJDUMP=$lt_OBJDUMP
17453 # Method to check whether dependent libraries are shared objects.
17454 deplibs_check_method=$lt_deplibs_check_method
17456 # Command to use when deplibs_check_method = "file_magic".
17457 file_magic_cmd=$lt_file_magic_cmd
17459 # How to find potential files when deplibs_check_method = "file_magic".
17460 file_magic_glob=$lt_file_magic_glob
17462 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17463 want_nocaseglob=$lt_want_nocaseglob
17465 # DLL creation program.
17466 DLLTOOL=$lt_DLLTOOL
17468 # Command to associate shared and link libraries.
17469 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17474 # Flags to create an archive.
17475 AR_FLAGS=$lt_AR_FLAGS
17477 # How to feed a file listing to the archiver.
17478 archiver_list_spec=$lt_archiver_list_spec
17480 # A symbol stripping program.
17483 # Commands used to install an old-style archive.
17485 old_postinstall_cmds=$lt_old_postinstall_cmds
17486 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17488 # Whether to use a lock for old archive extraction.
17489 lock_old_archive_extraction=$lock_old_archive_extraction
17494 # LTCC compiler flags.
17495 LTCFLAGS=$lt_CFLAGS
17497 # Take the output of nm and produce a listing of raw symbols and C names.
17498 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17500 # Transform the output of nm in a proper C declaration.
17501 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17503 # Transform the output of nm into a list of symbols to manually relocate.
17504 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17506 # Transform the output of nm in a C name address pair.
17507 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17509 # Transform the output of nm in a C name address pair when lib prefix is needed.
17510 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17512 # The name lister interface.
17513 nm_interface=$lt_lt_cv_nm_interface
17515 # Specify filename containing input files for \$NM.
17516 nm_file_list_spec=$lt_nm_file_list_spec
17518 # The root where to search for dependent libraries,and where our libraries should be installed.
17519 lt_sysroot=$lt_sysroot
17521 # Command to truncate a binary pipe.
17522 lt_truncate_bin=$lt_lt_cv_truncate_bin
17524 # The name of the directory that contains temporary libtool files.
17527 # Used to examine libraries when file_magic_cmd begins with "file".
17528 MAGIC_CMD=$MAGIC_CMD
17530 # Must we lock files when doing compilation?
17531 need_locks=$lt_need_locks
17534 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17536 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17537 DSYMUTIL=$lt_DSYMUTIL
17539 # Tool to change global to local symbols on Mac OS X.
17542 # Tool to manipulate fat objects and archives on Mac OS X.
17545 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17548 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17549 OTOOL64=$lt_OTOOL64
17551 # Old archive suffix (normally "a").
17554 # Shared library suffix (normally ".so").
17555 shrext_cmds=$lt_shrext_cmds
17557 # The commands to extract the exported symbol list from a shared archive.
17558 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17560 # Variables whose values should be saved in libtool wrapper scripts and
17561 # restored at link time.
17562 variables_saved_for_relink=$lt_variables_saved_for_relink
17564 # Do we need the "lib" prefix for modules?
17565 need_lib_prefix=$need_lib_prefix
17567 # Do we need a version for libraries?
17568 need_version=$need_version
17570 # Library versioning type.
17571 version_type=$version_type
17573 # Shared library runtime path variable.
17574 runpath_var=$runpath_var
17576 # Shared library path variable.
17577 shlibpath_var=$shlibpath_var
17579 # Is shlibpath searched before the hard-coded library search path?
17580 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17582 # Format of library name prefix.
17583 libname_spec=$lt_libname_spec
17585 # List of archive names. First name is the real one, the rest are links.
17586 # The last name is the one that the linker finds with -lNAME
17587 library_names_spec=$lt_library_names_spec
17589 # The coded name of the library, if different from the real name.
17590 soname_spec=$lt_soname_spec
17592 # Permission mode override for installation of shared libraries.
17593 install_override_mode=$lt_install_override_mode
17595 # Command to use after installation of a shared archive.
17596 postinstall_cmds=$lt_postinstall_cmds
17598 # Command to use after uninstallation of a shared archive.
17599 postuninstall_cmds=$lt_postuninstall_cmds
17601 # Commands used to finish a libtool library installation in a directory.
17602 finish_cmds=$lt_finish_cmds
17604 # As "finish_cmds", except a single script fragment to be evaled but
17606 finish_eval=$lt_finish_eval
17608 # Whether we should hardcode library paths into libraries.
17609 hardcode_into_libs=$hardcode_into_libs
17611 # Compile-time system search path for libraries.
17612 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17614 # Detected run-time system search path for libraries.
17615 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17617 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17618 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17620 # Whether dlopen is supported.
17621 dlopen_support=$enable_dlopen
17623 # Whether dlopen of programs is supported.
17624 dlopen_self=$enable_dlopen_self
17626 # Whether dlopen of statically linked programs is supported.
17627 dlopen_self_static=$enable_dlopen_self_static
17629 # Commands to strip libraries.
17630 old_striplib=$lt_old_striplib
17631 striplib=$lt_striplib
17634 # The linker used to build libraries.
17637 # How to create reloadable object files.
17638 reload_flag=$lt_reload_flag
17639 reload_cmds=$lt_reload_cmds
17641 # Commands used to build an old-style archive.
17642 old_archive_cmds=$lt_old_archive_cmds
17644 # A language specific compiler.
17647 # Is the compiler the GNU compiler?
17650 # Compiler flag to turn off builtin functions.
17651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17653 # Additional compiler flags for building library objects.
17654 pic_flag=$lt_lt_prog_compiler_pic
17656 # How to pass a linker flag through the compiler.
17657 wl=$lt_lt_prog_compiler_wl
17659 # Compiler flag to prevent dynamic linking.
17660 link_static_flag=$lt_lt_prog_compiler_static
17662 # Does compiler simultaneously support -c and -o options?
17663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17665 # Whether or not to add -lc for building shared libraries.
17666 build_libtool_need_lc=$archive_cmds_need_lc
17668 # Whether or not to disallow shared libs when runtime libs are static.
17669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17671 # Compiler flag to allow reflexive dlopens.
17672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17674 # Compiler flag to generate shared objects directly from archives.
17675 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17677 # Whether the compiler copes with passing no objects directly.
17678 compiler_needs_object=$lt_compiler_needs_object
17680 # Create an old-style archive from a shared archive.
17681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17683 # Create a temporary old-style archive to link instead of a shared archive.
17684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17686 # Commands used to build a shared archive.
17687 archive_cmds=$lt_archive_cmds
17688 archive_expsym_cmds=$lt_archive_expsym_cmds
17690 # Commands used to build a loadable module if different from building
17691 # a shared archive.
17692 module_cmds=$lt_module_cmds
17693 module_expsym_cmds=$lt_module_expsym_cmds
17695 # Whether we are building with GNU ld or not.
17696 with_gnu_ld=$lt_with_gnu_ld
17698 # Flag that allows shared libraries with undefined symbols to be built.
17699 allow_undefined_flag=$lt_allow_undefined_flag
17701 # Flag that enforces no undefined symbols.
17702 no_undefined_flag=$lt_no_undefined_flag
17704 # Flag to hardcode \$libdir into a binary during linking.
17705 # This must work even if \$libdir does not exist
17706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17708 # Whether we need a single "-rpath" flag with a separated argument.
17709 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17711 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17712 # DIR into the resulting binary.
17713 hardcode_direct=$hardcode_direct
17715 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17716 # DIR into the resulting binary and the resulting library dependency is
17717 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17718 # library is relocated.
17719 hardcode_direct_absolute=$hardcode_direct_absolute
17721 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17722 # into the resulting binary.
17723 hardcode_minus_L=$hardcode_minus_L
17725 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17726 # into the resulting binary.
17727 hardcode_shlibpath_var=$hardcode_shlibpath_var
17729 # Set to "yes" if building a shared library automatically hardcodes DIR
17730 # into the library and all subsequent libraries and executables linked
17732 hardcode_automatic=$hardcode_automatic
17734 # Set to yes if linker adds runtime paths of dependent libraries
17735 # to runtime path list.
17736 inherit_rpath=$inherit_rpath
17738 # Whether libtool must link a program against all its dependency libraries.
17739 link_all_deplibs=$link_all_deplibs
17741 # Set to "yes" if exported symbols are required.
17742 always_export_symbols=$always_export_symbols
17744 # The commands to list exported symbols.
17745 export_symbols_cmds=$lt_export_symbols_cmds
17747 # Symbols that should not be listed in the preloaded symbols.
17748 exclude_expsyms=$lt_exclude_expsyms
17750 # Symbols that must always be exported.
17751 include_expsyms=$lt_include_expsyms
17753 # Commands necessary for linking programs (against libraries) with templates.
17754 prelink_cmds=$lt_prelink_cmds
17756 # Commands necessary for finishing linking programs.
17757 postlink_cmds=$lt_postlink_cmds
17759 # Specify filename containing input files.
17760 file_list_spec=$lt_file_list_spec
17762 # How to hardcode a shared library path into an executable.
17763 hardcode_action=$hardcode_action
17765 # ### END LIBTOOL CONFIG
17769 cat <<'_LT_EOF' >> "$cfgfile"
17771 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17773 # func_munge_path_list VARIABLE PATH
17774 # -----------------------------------
17775 # VARIABLE is name of variable containing _space_ separated list of
17776 # directories to be munged by the contents of PATH, which is string
17779 # string "DIR[ DIR]" will be prepended to VARIABLE
17781 # string "DIR[ DIR]" will be appended to VARIABLE
17782 # "DIRP[:DIRP]::[DIRA:]DIRA"
17783 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17784 # "DIRA[ DIRA]" will be appended to VARIABLE
17786 # VARIABLE will be replaced by "DIR[ DIR]"
17787 func_munge_path_list ()
17793 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17796 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17799 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17800 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17803 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17809 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
17810 func_cc_basename ()
17812 for cc_temp in $*""; do
17814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17820 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17824 # ### END FUNCTIONS SHARED WITH CONFIGURE
17830 cat <<\_LT_EOF >> "$cfgfile"
17831 # AIX sometimes has problems with the GCC collect2 program. For some
17832 # reason, if we set the COLLECT_NAMES environment variable, the problems
17833 # vanish in a puff of smoke.
17834 if test set != "${COLLECT_NAMES+set}"; then
17836 export COLLECT_NAMES
17844 ltmain=$ac_aux_dir/ltmain.sh
17847 # We use sed instead of cat because bash on DJGPP gets confused if
17848 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17849 # text mode, it properly converts lines to CR/LF. This bash problem
17850 # is reportedly fixed, but why not run on old versions too?
17851 sed '$q' "$ltmain" >> "$cfgfile" \
17852 || (rm -f "$cfgfile"; exit 1)
17854 mv -f "$cfgfile" "$ofile" ||
17855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17866 ac_clean_files=$ac_clean_files_save
17868 test $ac_write_fail = 0 ||
17869 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17872 # configure is writing to config.log, and then calls config.status.
17873 # config.status does its own redirection, appending to config.log.
17874 # Unfortunately, on DOS this fails, as config.log is still kept open
17875 # by configure, so config.status won't be able to write to it; its
17876 # output is simply discarded. So we exec the FD to /dev/null,
17877 # effectively closing config.log, so it can be properly (re)opened and
17878 # appended to by config.status. When coming back to configure, we
17879 # need to make the FD available again.
17880 if test "$no_create" != yes; then
17882 ac_config_status_args=
17883 test "$silent" = yes &&
17884 ac_config_status_args="$ac_config_status_args --quiet"
17886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17889 # would make configure fail if this is the last instruction.
17890 $ac_cs_success || as_fn_exit 1
17892 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17894 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}