2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libsndfile 1.2.2.
5 # Report bugs to <sndfile@mega-nerd.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
186 test \$(( 1 + 1 )) = 2 || exit 1
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
195 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: sndfile@mega-nerd.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.
622 PACKAGE_NAME='libsndfile'
623 PACKAGE_TARNAME='libsndfile'
624 PACKAGE_VERSION='1.2.2'
625 PACKAGE_STRING='libsndfile 1.2.2'
626 PACKAGE_BUGREPORT='sndfile@mega-nerd.com'
627 PACKAGE_URL='http://libsndfile.github.io/libsndfile/'
629 ac_unique_file="src/sndfile.c"
630 # Factoring default headers for most tests.
631 ac_includes_default="\
642 #ifdef HAVE_INTTYPES_H
643 # include <inttypes.h>
648 #ifdef HAVE_STRINGS_H
649 # include <strings.h>
651 #ifdef HAVE_SYS_TYPES_H
652 # include <sys/types.h>
654 #ifdef HAVE_SYS_STAT_H
655 # include <sys/stat.h>
662 ac_subst_vars='am__EXEEXT_FALSE
670 EXTERNAL_MPEG_REQUIRE
672 EXTERNAL_XIPH_REQUIRE
679 HAVE_EXTERNAL_XIPH_LIBS
692 USE_WIN_VERSION_FILE_FALSE
693 USE_WIN_VERSION_FILE_TRUE
718 OCTAVE_CONFIG_VERSION
727 BUILD_OCTAVE_MOD_FALSE
728 BUILD_OCTAVE_MOD_TRUE
729 USE_OSSFUZZ_STATIC_FALSE
730 USE_OSSFUZZ_STATIC_TRUE
731 USE_OSSFUZZ_FLAG_FALSE
732 USE_OSSFUZZ_FLAG_TRUE
736 ENABLE_TEST_COVERAGE_FALSE
737 ENABLE_TEST_COVERAGE_TRUE
740 LINUX_MINGW_CROSS_TEST_FALSE
741 LINUX_MINGW_CROSS_TEST_TRUE
817 INSTALL_STRIP_PROGRAM
868 program_transform_name
882 enable_option_checking
884 enable_dependency_tracking
893 with_python_sys_prefix
895 with_python_exec_prefix
914 ac_precious_vars='build_alias
951 # Initialize some variables set by options.
953 ac_init_version=false
954 ac_unrecognized_opts=
956 # The variables have the same names as the options, with
957 # dashes changed to underlines.
965 program_transform_name=s,x,x,
973 # Installation directory options.
974 # These are left unexpanded so users can "make install exec_prefix=/foo"
975 # and all the variables that are supposed to be based on exec_prefix
976 # by default will actually change.
977 # Use braces instead of parens because sh, perl, etc. also accept them.
978 # (The list follows the same order as the GNU Coding Standards.)
979 bindir='${exec_prefix}/bin'
980 sbindir='${exec_prefix}/sbin'
981 libexecdir='${exec_prefix}/libexec'
982 datarootdir='${prefix}/share'
983 datadir='${datarootdir}'
984 sysconfdir='${prefix}/etc'
985 sharedstatedir='${prefix}/com'
986 localstatedir='${prefix}/var'
987 runstatedir='${localstatedir}/run'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
991 infodir='${datarootdir}/info'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 case $ac_dashdash$ac_option in
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1238 -runstatedir | --runstatedir | --runstatedi | --runstated \
1239 | --runstate | --runstat | --runsta | --runst | --runs \
1240 | --run | --ru | --r)
1241 ac_prev=runstatedir ;;
1242 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1243 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1244 | --run=* | --ru=* | --r=*)
1245 runstatedir=$ac_optarg ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1266 -site=* | --site=* | --sit=*)
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: \`$ac_useropt'"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1306 eval with_$ac_useropt=\$ac_optarg ;;
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid package name: \`$ac_useropt'"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1322 eval with_$ac_useropt=no ;;
1325 # Obsolete; use --with-x.
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1342 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information"
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error $? "missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1375 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir runstatedir
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1393 # Be sure to have absolute directory names.
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 elif test "x$build_alias" != "x$host_alias"; then
1418 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1420 test "$silent" = yes && exec 6>/dev/null
1423 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1424 ac_ls_di=`ls -di .` &&
1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1426 as_fn_error $? "working directory cannot be determined"
1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1428 as_fn_error $? "pwd does not report name of working directory"
1431 # Find the source files, if location was not specified.
1432 if test -z "$srcdir"; then
1433 ac_srcdir_defaulted=yes
1434 # Try the directory containing this script, then the parent directory.
1435 ac_confdir=`$as_dirname -- "$as_myself" ||
1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437 X"$as_myself" : 'X\(//\)[^/]' \| \
1438 X"$as_myself" : 'X\(//\)$' \| \
1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1440 printf "%s\n" X"$as_myself" |
1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 if test ! -r "$srcdir/$ac_unique_file"; then
1463 ac_srcdir_defaulted=no
1465 if test ! -r "$srcdir/$ac_unique_file"; then
1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1473 # When building in place, set srcdir=.
1474 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 # Remove unnecessary trailing slashes from srcdir.
1478 # Double slashes in file names in object file debugging info
1479 # mess up M-x gdb in Emacs.
1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1483 for ac_var in $ac_precious_vars; do
1484 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_env_${ac_var}_value=\$${ac_var}
1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1491 # Report the --help message.
1493 if test "$ac_init_help" = "long"; then
1494 # Omit some internal or obsolete options to make the list less imposing.
1495 # This message is too long to be a string in the A/UX 3.1 sh.
1497 \`configure' configures libsndfile 1.2.2 to adapt to many kinds of systems.
1499 Usage: $0 [OPTION]... [VAR=VALUE]...
1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1502 VAR=VALUE. See below for descriptions of some of the useful variables.
1504 Defaults for the options are specified in brackets.
1507 -h, --help display this help and exit
1508 --help=short display options specific to this package
1509 --help=recursive display the short help of all the included packages
1510 -V, --version display version information and exit
1511 -q, --quiet, --silent do not print \`checking ...' messages
1512 --cache-file=FILE cache test results in FILE [disabled]
1513 -C, --config-cache alias for \`--cache-file=config.cache'
1514 -n, --no-create do not create output files
1515 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1517 Installation directories:
1518 --prefix=PREFIX install architecture-independent files in PREFIX
1519 [$ac_default_prefix]
1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 By default, \`make install' will install all the files in
1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1526 for instance \`--prefix=\$HOME'.
1528 For better control, use the options below.
1530 Fine tuning of the installation directories:
1531 --bindir=DIR user executables [EPREFIX/bin]
1532 --sbindir=DIR system admin executables [EPREFIX/sbin]
1533 --libexecdir=DIR program executables [EPREFIX/libexec]
1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1537 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1538 --libdir=DIR object code libraries [EPREFIX/lib]
1539 --includedir=DIR C header files [PREFIX/include]
1540 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1543 --infodir=DIR info documentation [DATAROOTDIR/info]
1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1545 --mandir=DIR man documentation [DATAROOTDIR/man]
1546 --docdir=DIR documentation root [DATAROOTDIR/doc/libsndfile]
1547 --htmldir=DIR html documentation [DOCDIR]
1548 --dvidir=DIR dvi documentation [DOCDIR]
1549 --pdfdir=DIR pdf documentation [DOCDIR]
1550 --psdir=DIR ps documentation [DOCDIR]
1556 --program-prefix=PREFIX prepend PREFIX to installed program names
1557 --program-suffix=SUFFIX append SUFFIX to installed program names
1558 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1561 --build=BUILD configure for building on BUILD [guessed]
1562 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1566 if test -n "$ac_init_help"; then
1567 case $ac_init_help in
1568 short | recursive ) echo "Configuration of libsndfile 1.2.2:";;
1573 --disable-option-checking ignore unrecognized --enable/--with options
1574 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1575 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1576 --enable-silent-rules less verbose build output (undo: "make V=1")
1577 --disable-silent-rules verbose build output (undo: "make V=0")
1578 --enable-dependency-tracking
1579 do not reject slow dependency extractors
1580 --disable-dependency-tracking
1581 speeds up one-time build
1582 --enable-static[=PKGS] build static libraries [default=no]
1583 --enable-shared[=PKGS] build shared libraries [default=yes]
1584 --enable-fast-install[=PKGS]
1585 optimize for fast installation [default=yes]
1586 --disable-libtool-lock avoid locking (might break parallel builds)
1587 --enable-experimental enable experimental code
1588 --enable-werror enable -Werror in all Makefiles
1589 --disable-cpu-clip disable tricky cpu specific clipper
1590 --enable-bow-docs enable black-on-white html docs
1591 --disable-sqlite disable use of sqlite
1592 --disable-alsa disable ALSA support (default=autodetect)
1593 --disable-external-libs disable use of FLAC, Ogg and Vorbis [[default=no]]
1594 --disable-mpeg disable use of LAME/MPG123 for MPEG (MP3)
1596 --enable-octave enable building of GNU Octave module
1597 --disable-full-suite disable building and installing programs,
1598 documentation, only build library [[default=no]]
1599 --enable-test-coverage enable test coverage
1600 --enable-ossfuzzers Whether to generate the fuzzers for OSS-Fuzz
1601 --disable-largefile omit support for large files
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1608 --with-aix-soname=aix|svr4|both
1609 shared library versioning (aka "SONAME") variant to
1610 provide on AIX, [default=aix].
1611 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1612 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1613 compiler's sysroot if not specified).
1614 --with-python-sys-prefix
1615 use Python's sys.prefix and sys.exec_prefix values
1616 --with-python_prefix override the default PYTHON_PREFIX
1617 --with-python_exec_prefix
1618 override the default PYTHON_EXEC_PREFIX
1619 --with-octave choose the octave version
1620 --with-mkoctfile choose the mkoctfile version
1621 --with-octave-config choose the octave-config version
1622 --with-pkgconfigdir pkg-config installation directory
1623 ['${libdir}/pkgconfig']
1625 Some influential environment variables:
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
1630 LIBS libraries to pass to the linker, e.g. -l<library>
1631 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
1633 CXX C++ compiler command
1634 CXXFLAGS C++ compiler flags
1636 User-defined run-time library search path.
1637 CXXCPP C++ preprocessor
1638 PYTHON the Python interpreter
1639 PKG_CONFIG path to pkg-config utility
1641 directories to add to pkg-config's search path
1643 path overriding pkg-config's built-in search path
1644 FLAC_CFLAGS C compiler flags for FLAC, overriding pkg-config
1645 FLAC_LIBS linker flags for FLAC, overriding pkg-config
1646 OGG_CFLAGS C compiler flags for OGG, overriding pkg-config
1647 OGG_LIBS linker flags for OGG, overriding pkg-config
1649 C compiler flags for SPEEX, overriding pkg-config
1650 SPEEX_LIBS linker flags for SPEEX, overriding pkg-config
1652 C compiler flags for VORBIS, overriding pkg-config
1653 VORBIS_LIBS linker flags for VORBIS, overriding pkg-config
1655 C compiler flags for VORBISENC, overriding pkg-config
1657 linker flags for VORBISENC, overriding pkg-config
1658 OPUS_CFLAGS C compiler flags for OPUS, overriding pkg-config
1659 OPUS_LIBS linker flags for OPUS, overriding pkg-config
1661 C compiler flags for MPG123, overriding pkg-config
1662 MPG123_LIBS linker flags for MPG123, overriding pkg-config
1664 C compiler flags for SQLITE3, overriding pkg-config
1666 linker flags for SQLITE3, overriding pkg-config
1667 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1668 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1670 Use these variables to override the choices made by `configure' or to help
1671 it to find libraries and programs with nonstandard names/locations.
1673 Report bugs to <sndfile@mega-nerd.com>.
1674 libsndfile home page: <http://libsndfile.github.io/libsndfile/>.
1679 if test "$ac_init_help" = "recursive"; then
1680 # If there are subdirs, report their specific --help.
1681 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682 test -d "$ac_dir" ||
1683 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1691 # A ".." for each directory in $ac_dir_suffix.
1692 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693 case $ac_top_builddir_sub in
1694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 ac_abs_top_builddir=$ac_pwd
1699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700 # for backward compatibility:
1701 ac_top_builddir=$ac_top_build_prefix
1704 .) # We are building in place.
1706 ac_top_srcdir=$ac_top_builddir_sub
1707 ac_abs_top_srcdir=$ac_pwd ;;
1708 [\\/]* | ?:[\\/]* ) # Absolute name.
1709 ac_srcdir=$srcdir$ac_dir_suffix;
1710 ac_top_srcdir=$srcdir
1711 ac_abs_top_srcdir=$srcdir ;;
1713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714 ac_top_srcdir=$ac_top_build_prefix$srcdir
1715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1719 cd "$ac_dir" || { ac_status=$?; continue; }
1720 # Check for configure.gnu first; this name is used for a wrapper for
1721 # Metaconfig's "Configure" on case-insensitive file systems.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1729 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 cd "$ac_pwd" || { ac_status=$?; break; }
1735 test -n "$ac_init_help" && exit $ac_status
1736 if $ac_init_version; then
1738 libsndfile configure 1.2.2
1739 generated by GNU Autoconf 2.71
1741 Copyright (C) 2021 Free Software Foundation, Inc.
1742 This configure script is free software; the Free Software Foundation
1743 gives unlimited permission to copy, distribute and modify it.
1748 ## ------------------------ ##
1749 ## Autoconf initialization. ##
1750 ## ------------------------ ##
1752 # ac_fn_c_try_compile LINENO
1753 # --------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext conftest.beam
1759 if { { ac_try="$ac_compile"
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 printf "%s\n" "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext
1781 printf "%s\n" "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_compile
1791 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists and can be compiled using the include files in
1794 # INCLUDES, setting the cache variable VAR accordingly.
1795 ac_fn_c_check_header_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 printf %s "checking for $2... " >&6; }
1800 if eval test \${$3+y}
1802 printf %s "(cached) " >&6
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1809 if ac_fn_c_try_compile "$LINENO"
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 printf "%s\n" "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_header_compile
1824 # ac_fn_cxx_try_compile LINENO
1825 # ----------------------------
1826 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_cxx_try_compile ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext conftest.beam
1831 if { { ac_try="$ac_compile"
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 printf "%s\n" "$ac_try_echo"; } >&5
1838 (eval "$ac_compile") 2>conftest.err
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_cxx_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest.$ac_objext
1853 printf "%s\n" "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_run LINENO
1864 # ----------------------
1865 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1866 # executables *can* be run.
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if { { ac_try="$ac_link"
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 printf "%s\n" "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>&5
1879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1881 { { case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 printf "%s\n" "$ac_try_echo"; } >&5
1887 (eval "$ac_try") 2>&5
1889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; }; }
1894 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1895 printf "%s\n" "$as_me: failed program was:" >&5
1896 sed 's/^/| /' conftest.$ac_ext >&5
1898 ac_retval=$ac_status
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902 as_fn_set_status $ac_retval
1906 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1907 # --------------------------------------------
1908 # Tries to find the compile-time value of EXPR in a program that includes
1909 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1911 ac_fn_c_compute_int ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 if test "$cross_compiling" = yes; then
1915 # Depending upon the size, compute the lo and hi bounds.
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1922 static int test_array [1 - 2 * !(($2) >= 0)];
1924 return test_array [0];
1930 if ac_fn_c_try_compile "$LINENO"
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1940 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1942 return test_array [0];
1948 if ac_fn_c_try_compile "$LINENO"
1950 ac_hi=$ac_mid; break
1952 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1953 if test $ac_lo -le $ac_mid; then
1957 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1968 static int test_array [1 - 2 * !(($2) < 0)];
1970 return test_array [0];
1976 if ac_fn_c_try_compile "$LINENO"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1986 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1988 return test_array [0];
1994 if ac_fn_c_try_compile "$LINENO"
1996 ac_lo=$ac_mid; break
1998 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1999 if test $ac_mid -le $ac_hi; then
2003 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2013 # Binary search between lo and hi bounds.
2014 while test "x$ac_lo" != "x$ac_hi"; do
2015 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2022 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2024 return test_array [0];
2030 if ac_fn_c_try_compile "$LINENO"
2034 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2039 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2046 static long int longval (void) { return $2; }
2047 static unsigned long int ulongval (void) { return $2; }
2054 FILE *f = fopen ("conftest.val", "w");
2059 long int i = longval ();
2062 fprintf (f, "%ld", i);
2066 unsigned long int i = ulongval ();
2069 fprintf (f, "%lu", i);
2071 /* Do not output a trailing newline, as this causes \r\n confusion
2072 on some platforms. */
2073 return ferror (f) || fclose (f) != 0;
2079 if ac_fn_c_try_run "$LINENO"
2081 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2086 conftest.$ac_objext conftest.beam conftest.$ac_ext
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2093 } # ac_fn_c_compute_int
2095 # ac_fn_cxx_try_run LINENO
2096 # ------------------------
2097 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2098 # executables *can* be run.
2099 ac_fn_cxx_try_run ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if { { ac_try="$ac_link"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 printf "%s\n" "$ac_try_echo"; } >&5
2109 (eval "$ac_link") 2>&5
2111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2113 { { case "(($ac_try" in
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2118 printf "%s\n" "$ac_try_echo"; } >&5
2119 (eval "$ac_try") 2>&5
2121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; }; }
2126 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2127 printf "%s\n" "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2130 ac_retval=$ac_status
2132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 as_fn_set_status $ac_retval
2136 } # ac_fn_cxx_try_run
2138 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2139 # ----------------------------------------------
2140 # Tries to find the compile-time value of EXPR in a program that includes
2141 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2143 ac_fn_cxx_compute_int ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if test "$cross_compiling" = yes; then
2147 # Depending upon the size, compute the lo and hi bounds.
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 static int test_array [1 - 2 * !(($2) >= 0)];
2156 return test_array [0];
2162 if ac_fn_cxx_try_compile "$LINENO"
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2172 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2174 return test_array [0];
2180 if ac_fn_cxx_try_compile "$LINENO"
2182 ac_hi=$ac_mid; break
2184 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2185 if test $ac_lo -le $ac_mid; then
2189 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) < 0)];
2202 return test_array [0];
2208 if ac_fn_cxx_try_compile "$LINENO"
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2218 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2220 return test_array [0];
2226 if ac_fn_cxx_try_compile "$LINENO"
2228 ac_lo=$ac_mid; break
2230 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2231 if test $ac_mid -le $ac_hi; then
2235 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 # Binary search between lo and hi bounds.
2246 while test "x$ac_lo" != "x$ac_hi"; do
2247 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2254 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2256 return test_array [0];
2262 if ac_fn_cxx_try_compile "$LINENO"
2266 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2271 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2278 static long int longval (void) { return $2; }
2279 static unsigned long int ulongval (void) { return $2; }
2286 FILE *f = fopen ("conftest.val", "w");
2291 long int i = longval ();
2294 fprintf (f, "%ld", i);
2298 unsigned long int i = ulongval ();
2301 fprintf (f, "%lu", i);
2303 /* Do not output a trailing newline, as this causes \r\n confusion
2304 on some platforms. */
2305 return ferror (f) || fclose (f) != 0;
2311 if ac_fn_cxx_try_run "$LINENO"
2313 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2318 conftest.$ac_objext conftest.beam conftest.$ac_ext
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2323 as_fn_set_status $ac_retval
2325 } # ac_fn_cxx_compute_int
2327 # ac_fn_c_try_link LINENO
2328 # -----------------------
2329 # Try to link conftest.$ac_ext, and return whether this succeeded.
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2334 if { { ac_try="$ac_link"
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 printf "%s\n" "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>conftest.err
2343 if test -s conftest.err; then
2344 grep -v '^ *+' conftest.err >conftest.er1
2345 cat conftest.er1 >&5
2346 mv -f conftest.er1 conftest.err
2348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; } && {
2350 test -z "$ac_c_werror_flag" ||
2351 test ! -s conftest.err
2352 } && test -s conftest$ac_exeext && {
2353 test "$cross_compiling" = yes ||
2354 test -x conftest$ac_exeext
2359 printf "%s\n" "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2364 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2365 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2366 # interfere with the next link command; also delete a directory that is
2367 # left behind by Apple's compiler. We do this before executing the actions.
2368 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2369 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 as_fn_set_status $ac_retval
2372 } # ac_fn_c_try_link
2374 # ac_fn_c_check_func LINENO FUNC VAR
2375 # ----------------------------------
2376 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2377 ac_fn_c_check_func ()
2379 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2381 printf %s "checking for $2... " >&6; }
2382 if eval test \${$3+y}
2384 printf %s "(cached) " >&6
2386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2387 /* end confdefs.h. */
2388 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2390 #define $2 innocuous_$2
2392 /* System header to define __stub macros and hopefully few prototypes,
2393 which can conflict with char $2 (void); below. */
2398 /* Override any GCC internal prototype to avoid an error.
2399 Use char because int might match the return type of a GCC
2400 builtin and then its argument prototype would still apply. */
2405 /* The GNU C library defines this for functions which it implements
2406 to always fail with ENOSYS. Some functions are actually named
2407 something starting with __ and the normal name is an alias. */
2408 #if defined __stub_$2 || defined __stub___$2
2420 if ac_fn_c_try_link "$LINENO"
2426 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2427 conftest$ac_exeext conftest.$ac_ext
2430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 printf "%s\n" "$ac_res" >&6; }
2432 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2434 } # ac_fn_c_check_func
2436 # ac_fn_cxx_try_cpp LINENO
2437 # ------------------------
2438 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2439 ac_fn_cxx_try_cpp ()
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 if { { ac_try="$ac_cpp conftest.$ac_ext"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 printf "%s\n" "$ac_try_echo"; } >&5
2449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2451 if test -s conftest.err; then
2452 grep -v '^ *+' conftest.err >conftest.er1
2453 cat conftest.er1 >&5
2454 mv -f conftest.er1 conftest.err
2456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457 test $ac_status = 0; } > conftest.i && {
2458 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2459 test ! -s conftest.err
2464 printf "%s\n" "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470 as_fn_set_status $ac_retval
2472 } # ac_fn_cxx_try_cpp
2474 # ac_fn_cxx_try_link LINENO
2475 # -------------------------
2476 # Try to link conftest.$ac_ext, and return whether this succeeded.
2477 ac_fn_cxx_try_link ()
2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2480 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2481 if { { ac_try="$ac_link"
2483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484 *) ac_try_echo=$ac_try;;
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 printf "%s\n" "$ac_try_echo"; } >&5
2488 (eval "$ac_link") 2>conftest.err
2490 if test -s conftest.err; then
2491 grep -v '^ *+' conftest.err >conftest.er1
2492 cat conftest.er1 >&5
2493 mv -f conftest.er1 conftest.err
2495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496 test $ac_status = 0; } && {
2497 test -z "$ac_cxx_werror_flag" ||
2498 test ! -s conftest.err
2499 } && test -s conftest$ac_exeext && {
2500 test "$cross_compiling" = yes ||
2501 test -x conftest$ac_exeext
2506 printf "%s\n" "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2511 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2512 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2513 # interfere with the next link command; also delete a directory that is
2514 # left behind by Apple's compiler. We do this before executing the actions.
2515 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517 as_fn_set_status $ac_retval
2519 } # ac_fn_cxx_try_link
2521 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2522 # ------------------------------------------------------------------
2523 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2524 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528 as_decl_name=`echo $2|sed 's/ *(.*//'`
2529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2530 printf %s "checking whether $as_decl_name is declared... " >&6; }
2531 if eval test \${$3+y}
2533 printf %s "(cached) " >&6
2535 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2536 eval ac_save_FLAGS=\$$6
2537 as_fn_append $6 " $5"
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2544 #ifndef $as_decl_name
2546 (void) $as_decl_use;
2548 (void) $as_decl_name;
2556 if ac_fn_c_try_compile "$LINENO"
2562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2563 eval $6=\$ac_save_FLAGS
2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2568 printf "%s\n" "$ac_res" >&6; }
2569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2571 } # ac_fn_check_decl
2573 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2574 # -------------------------------------------
2575 # Tests whether TYPE exists after having included INCLUDES, setting cache
2576 # variable VAR accordingly.
2577 ac_fn_c_check_type ()
2579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2581 printf %s "checking for $2... " >&6; }
2582 if eval test \${$3+y}
2584 printf %s "(cached) " >&6
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2599 if ac_fn_c_try_compile "$LINENO"
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2613 if ac_fn_c_try_compile "$LINENO"
2619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2625 printf "%s\n" "$ac_res" >&6; }
2626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2628 } # ac_fn_c_check_type
2629 ac_configure_args_raw=
2634 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 as_fn_append ac_configure_args_raw " '$ac_arg'"
2639 case $ac_configure_args_raw in
2643 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2644 ac_unsafe_a="$ac_unsafe_z#~"
2645 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2646 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2649 cat >config.log <<_ACEOF
2650 This file contains any messages produced by compilers while
2651 running configure, to aid debugging if configure makes a mistake.
2653 It was created by libsndfile $as_me 1.2.2, which was
2654 generated by GNU Autoconf 2.71. Invocation command line was
2656 $ $0$ac_configure_args_raw
2666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2673 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2675 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2676 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2678 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2679 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2680 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2681 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 case $as_dir in #(((
2692 *) as_dir=$as_dir/ ;;
2694 printf "%s\n" "PATH: $as_dir"
2710 # Keep a trace of the command line.
2711 # Strip out --no-create and --no-recursion so they do not pile up.
2712 # Strip out --silent because we don't want to record it for future runs.
2713 # Also quote any args containing shell meta-characters.
2714 # Make two passes to allow for proper duplicate-argument suppression.
2718 ac_must_keep_next=false
2724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2726 | -silent | --silent | --silen | --sile | --sil)
2729 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2734 as_fn_append ac_configure_args1 " '$ac_arg'"
2735 if test $ac_must_keep_next = true; then
2736 ac_must_keep_next=false # Got value, back to normal.
2739 *=* | --config-cache | -C | -disable-* | --disable-* \
2740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2742 | -with-* | --with-* | -without-* | --without-* | --x)
2743 case "$ac_configure_args0 " in
2744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 -* ) ac_must_keep_next=true ;;
2750 as_fn_append ac_configure_args " '$ac_arg'"
2755 { ac_configure_args0=; unset ac_configure_args0;}
2756 { ac_configure_args1=; unset ac_configure_args1;}
2758 # When interrupted or exit'd, cleanup temporary files, and complete
2759 # config.log. We remove comments because anyway the quotes in there
2760 # would cause problems or look ugly.
2761 # WARNING: Use '\'' to represent an apostrophe within the trap.
2762 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2763 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2770 printf "%s\n" "## ---------------- ##
2771 ## Cache variables. ##
2772 ## ---------------- ##"
2774 # The following way of writing the cache mishandles newlines in values,
2776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2777 eval ac_val=\$$ac_var
2781 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2782 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 _ | IFS | as_nl) ;; #(
2786 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2787 *) { eval $ac_var=; unset $ac_var;} ;;
2792 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2793 *${as_nl}ac_space=\ *)
2795 "s/'\''/'\''\\\\'\'''\''/g;
2796 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2806 printf "%s\n" "## ----------------- ##
2807 ## Output variables. ##
2808 ## ----------------- ##"
2810 for ac_var in $ac_subst_vars
2812 eval ac_val=\$$ac_var
2814 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2816 printf "%s\n" "$ac_var='\''$ac_val'\''"
2820 if test -n "$ac_subst_files"; then
2821 printf "%s\n" "## ------------------- ##
2822 ## File substitutions. ##
2823 ## ------------------- ##"
2825 for ac_var in $ac_subst_files
2827 eval ac_val=\$$ac_var
2829 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2831 printf "%s\n" "$ac_var='\''$ac_val'\''"
2836 if test -s confdefs.h; then
2837 printf "%s\n" "## ----------- ##
2844 test "$ac_signal" != 0 &&
2845 printf "%s\n" "$as_me: caught signal $ac_signal"
2846 printf "%s\n" "$as_me: exit $exit_status"
2848 rm -f core *.core core.conftest.* &&
2849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2852 for ac_signal in 1 2 13 15; do
2853 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2858 rm -f -r conftest* confdefs.h
2860 printf "%s\n" "/* confdefs.h */" > confdefs.h
2862 # Predefined preprocessor variables.
2864 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2866 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2868 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2870 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2872 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2874 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2877 # Let the site file select an alternate cache file if it wants to.
2878 # Prefer an explicitly selected file to automatically selected ones.
2879 if test -n "$CONFIG_SITE"; then
2880 ac_site_files="$CONFIG_SITE"
2881 elif test "x$prefix" != xNONE; then
2882 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2884 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2887 for ac_site_file in $ac_site_files
2889 case $ac_site_file in #(
2893 ac_site_file=./$ac_site_file ;;
2895 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2897 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2898 sed 's/^/| /' "$ac_site_file" >&5
2900 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2902 as_fn_error $? "failed to load site script $ac_site_file
2903 See \`config.log' for more details" "$LINENO" 5; }
2907 if test -r "$cache_file"; then
2908 # Some versions of bash will fail to source /dev/null (special files
2909 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2910 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2912 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2914 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2915 *) . "./$cache_file";;
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2920 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2924 # Test code for whether the C compiler supports C89 (global declarations)
2925 ac_c_conftest_c89_globals='
2926 /* Does the compiler advertise C89 conformance?
2927 Do not test the value of __STDC__, because some compilers set it to 0
2928 while being otherwise adequately conformant. */
2929 #if !defined __STDC__
2930 # error "Compiler does not advertise C89 conformance"
2936 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2937 struct buf { int x; };
2938 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2939 static char *e (char **p, int i)
2943 static char *f (char * (*g) (char **, int), char **p, ...)
2948 s = g (p, va_arg (v,int));
2953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2954 function prototypes and stuff, but not \xHH hex character constants.
2955 These do not provoke an error unfortunately, instead are silently treated
2956 as an "x". The following induces an error, until -std is added to get
2957 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2958 array size at least. It is necessary to write \x00 == 0 to get something
2959 that is true only with -std. */
2960 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2963 inside strings and character constants. */
2964 #define FOO(x) '\''x'\''
2965 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2967 int test (int i, double x);
2968 struct s1 {int (*f) (int a);};
2969 struct s2 {int (*f) (double a);};
2970 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2973 # Test code for whether the C compiler supports C89 (body of main).
2974 ac_c_conftest_c89_main='
2975 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2978 # Test code for whether the C compiler supports C99 (global declarations)
2979 ac_c_conftest_c99_globals='
2980 // Does the compiler advertise C99 conformance?
2981 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2982 # error "Compiler does not advertise C99 conformance"
2985 #include <stdbool.h>
2986 extern int puts (const char *);
2987 extern int printf (const char *, ...);
2988 extern int dprintf (int, const char *, ...);
2989 extern void *malloc (size_t);
2990 extern void free (void *);
2992 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2993 // dprintf is used instead of fprintf to avoid needing to declare
2995 #define debug(...) dprintf (2, __VA_ARGS__)
2996 #define showlist(...) puts (#__VA_ARGS__)
2997 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2999 test_varargs_macros (void)
3004 debug ("X = %d\n", x);
3005 showlist (The first, second, and third items.);
3006 report (x>y, "x is %d but y is %d", x, y);
3009 // Check long long types.
3010 #define BIG64 18446744073709551615ull
3011 #define BIG32 4294967295ul
3012 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3014 #error "your preprocessor is broken"
3018 #error "your preprocessor is broken"
3020 static long long int bignum = -9223372036854775807LL;
3021 static unsigned long long int ubignum = BIG64;
3023 struct incomplete_array
3031 const wchar_t *name;
3035 typedef const char *ccp;
3038 test_restrict (ccp restrict text)
3040 // See if C++-style comments work.
3041 // Iterate through items via the restricted pointer.
3042 // Also check for declarations in for loops.
3043 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3048 // Check varargs and va_copy.
3050 test_varargs (const char *format, ...)
3053 va_start (args, format);
3055 va_copy (args_copy, args);
3057 const char *str = "";
3065 case '\''s'\'': // string
3066 str = va_arg (args_copy, const char *);
3068 case '\''d'\'': // int
3069 number = va_arg (args_copy, int);
3071 case '\''f'\'': // float
3072 fnumber = va_arg (args_copy, double);
3081 return *str && number && fnumber;
3085 # Test code for whether the C compiler supports C99 (body of main).
3086 ac_c_conftest_c99_main='
3088 _Bool success = false;
3089 success |= (argc != 0);
3092 if (test_restrict ("String literal") == 0)
3094 char *restrict newvar = "Another string";
3097 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3098 test_varargs_macros ();
3100 // Check flexible array members.
3101 struct incomplete_array *ia =
3102 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3104 for (int i = 0; i < ia->datasize; ++i)
3105 ia->data[i] = i * 1.234;
3107 // Check named initializers.
3108 struct named_init ni = {
3110 .name = L"Test wide string",
3111 .average = 543.34343,
3116 int dynamic_array[ni.number];
3117 dynamic_array[0] = argv[0][0];
3118 dynamic_array[ni.number - 1] = 543;
3120 // work around unused variable warnings
3121 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3122 || dynamic_array[ni.number - 1] != 543);
3125 # Test code for whether the C compiler supports C11 (global declarations)
3126 ac_c_conftest_c11_globals='
3127 // Does the compiler advertise C11 conformance?
3128 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3129 # error "Compiler does not advertise C11 conformance"
3133 char _Alignas (double) aligned_as_double;
3134 char _Alignas (0) no_special_alignment;
3135 extern char aligned_as_int;
3136 char _Alignas (0) _Alignas (int) aligned_as_int;
3141 int_alignment = _Alignof (int),
3142 int_array_alignment = _Alignof (int[100]),
3143 char_alignment = _Alignof (char)
3145 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3148 int _Noreturn does_not_return (void) { for (;;) continue; }
3150 // Check _Static_assert.
3151 struct test_static_assert
3154 _Static_assert (sizeof (int) <= sizeof (long int),
3155 "_Static_assert does not work in struct");
3159 // Check UTF-8 literals.
3160 #define u8 syntax error!
3161 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3163 // Check duplicate typedefs.
3164 typedef long *long_ptr;
3165 typedef long int *long_ptr;
3166 typedef long_ptr long_ptr;
3168 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3172 struct { int i; int j; };
3173 struct { int k; long int l; } w;
3179 # Test code for whether the C compiler supports C11 (body of main).
3180 ac_c_conftest_c11_main='
3181 _Static_assert ((offsetof (struct anonymous, i)
3182 == offsetof (struct anonymous, w.k)),
3183 "Anonymous union alignment botch");
3189 # Test code for whether the C compiler supports C11 (complete).
3190 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3191 ${ac_c_conftest_c99_globals}
3192 ${ac_c_conftest_c11_globals}
3195 main (int argc, char **argv)
3198 ${ac_c_conftest_c89_main}
3199 ${ac_c_conftest_c99_main}
3200 ${ac_c_conftest_c11_main}
3205 # Test code for whether the C compiler supports C99 (complete).
3206 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3207 ${ac_c_conftest_c99_globals}
3210 main (int argc, char **argv)
3213 ${ac_c_conftest_c89_main}
3214 ${ac_c_conftest_c99_main}
3219 # Test code for whether the C compiler supports C89 (complete).
3220 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3223 main (int argc, char **argv)
3226 ${ac_c_conftest_c89_main}
3231 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3232 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3233 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3234 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3235 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3236 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3237 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3238 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3239 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3240 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3241 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3242 # Test code for whether the C++ compiler supports C++98 (global declarations)
3243 ac_cxx_conftest_cxx98_globals='
3244 // Does the compiler advertise C++98 conformance?
3245 #if !defined __cplusplus || __cplusplus < 199711L
3246 # error "Compiler does not advertise C++98 conformance"
3249 // These inclusions are to reject old compilers that
3250 // lack the unsuffixed header files.
3252 #include <exception>
3254 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3255 extern void assert (int);
3257 extern int strcmp (const char *, const char *);
3260 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3261 using std::exception;
3266 void test_exception_syntax()
3270 } catch (const char *s) {
3271 // Extra parentheses suppress a warning when building autoconf itself,
3272 // due to lint rules shared with more typical C programs.
3273 assert (!(strcmp) (s, "test"));
3277 template <typename T> struct test_template
3280 explicit test_template(T t) : val(t) {}
3281 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3284 } // anonymous namespace
3287 # Test code for whether the C++ compiler supports C++98 (body of main)
3288 ac_cxx_conftest_cxx98_main='
3292 test_exception_syntax ();
3293 test_template<double> tt (2.0);
3294 assert (tt.add (4) == 6.0);
3295 assert (true && !false);
3299 # Test code for whether the C++ compiler supports C++11 (global declarations)
3300 ac_cxx_conftest_cxx11_globals='
3301 // Does the compiler advertise C++ 2011 conformance?
3302 #if !defined __cplusplus || __cplusplus < 201103L
3303 # error "Compiler does not advertise C++11 conformance"
3308 constexpr int get_val() { return 20; }
3319 delegate(int n) : n(n) {}
3320 delegate(): delegate(2354) {}
3322 virtual int getval() { return this->n; };
3327 class overridden : public delegate
3330 overridden(int n): delegate(n) {}
3331 virtual int getval() override final { return this->n * 2; }
3337 nocopy(int i): i(i) {}
3339 nocopy(const nocopy&) = delete;
3340 nocopy & operator=(const nocopy&) = delete;
3345 // for testing lambda expressions
3346 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3351 // for testing variadic templates and trailing return types
3352 template <typename V> auto sum(V first) -> V
3356 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3358 return first + sum(rest...);
3363 # Test code for whether the C++ compiler supports C++11 (body of main)
3364 ac_cxx_conftest_cxx11_main='
3366 // Test auto and decltype
3368 auto a2 = 48573953.4;
3369 auto a3 = "String literal";
3372 for (auto i = a3; *i; ++i) { total += *i; }
3374 decltype(a2) a4 = 34895.034;
3378 short sa[cxx11test::get_val()] = { 0 };
3381 // Test initializer lists
3382 cxx11test::testinit il = { 4323, 435234.23544 };
3385 // Test range-based for
3386 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3387 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3388 for (auto &x : array) { x += 23; }
3391 // Test lambda expressions
3392 using cxx11test::eval;
3393 assert (eval ([](int x) { return x*2; }, 21) == 42);
3395 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3397 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3401 // Test use of variadic templates
3402 using cxx11test::sum;
3405 auto c = sum(1.0, 2.0, 3.0);
3408 // Test constructor delegation
3409 cxx11test::delegate d1;
3410 cxx11test::delegate d2();
3411 cxx11test::delegate d3(45);
3414 // Test override and final
3415 cxx11test::overridden o1(55464);
3422 // Test template brackets
3423 test_template<::test_template<int>> v(test_template<int>(12));
3427 char const *utf8 = u8"UTF-8 string \u2500";
3428 char16_t const *utf16 = u"UTF-8 string \u2500";
3429 char32_t const *utf32 = U"UTF-32 string \u2500";
3433 # Test code for whether the C compiler supports C++11 (complete).
3434 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3435 ${ac_cxx_conftest_cxx11_globals}
3438 main (int argc, char **argv)
3441 ${ac_cxx_conftest_cxx98_main}
3442 ${ac_cxx_conftest_cxx11_main}
3447 # Test code for whether the C compiler supports C++98 (complete).
3448 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3450 main (int argc, char **argv)
3453 ${ac_cxx_conftest_cxx98_main}
3459 # Auxiliary files required by this configure script.
3460 ac_aux_files="ltmain.sh ar-lib compile missing install-sh config.guess config.sub"
3462 # Locations in which to look for auxiliary files.
3463 ac_aux_dir_candidates="${srcdir}/build-aux"
3465 # Search for a directory containing all of the required auxiliary files,
3466 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3467 # If we don't find one directory that contains all the files we need,
3468 # we report the set of missing files from the *first* directory in
3469 # $ac_aux_dir_candidates and give up.
3470 ac_missing_aux_files=""
3471 ac_first_candidate=:
3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $ac_aux_dir_candidates
3478 case $as_dir in #(((
3481 *) as_dir=$as_dir/ ;;
3485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3486 ac_aux_dir_found=yes
3488 for ac_aux in $ac_aux_files
3490 # As a special case, if "install-sh" is required, that requirement
3491 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3492 # and $ac_install_sh is set appropriately for whichever one is found.
3493 if test x"$ac_aux" = x"install-sh"
3495 if test -f "${as_dir}install-sh"; then
3496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3497 ac_install_sh="${as_dir}install-sh -c"
3498 elif test -f "${as_dir}install.sh"; then
3499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3500 ac_install_sh="${as_dir}install.sh -c"
3501 elif test -f "${as_dir}shtool"; then
3502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3503 ac_install_sh="${as_dir}shtool install -c"
3506 if $ac_first_candidate; then
3507 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3513 if test -f "${as_dir}${ac_aux}"; then
3514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3517 if $ac_first_candidate; then
3518 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3525 if test "$ac_aux_dir_found" = yes; then
3526 ac_aux_dir="$as_dir"
3529 ac_first_candidate=false
3538 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3542 # These three variables are undocumented and unsupported,
3543 # and are intended to be withdrawn in a future Autoconf release.
3544 # They can cause serious problems if a builder's source tree is in a directory
3545 # whose full name contains unusual characters.
3546 if test -f "${ac_aux_dir}config.guess"; then
3547 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3549 if test -f "${ac_aux_dir}config.sub"; then
3550 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3552 if test -f "$ac_aux_dir/configure"; then
3553 ac_configure="$SHELL ${ac_aux_dir}configure"
3556 # Check that the precious variables saved in the cache have kept the same
3558 ac_cache_corrupted=false
3559 for ac_var in $ac_precious_vars; do
3560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3561 eval ac_new_set=\$ac_env_${ac_var}_set
3562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3563 eval ac_new_val=\$ac_env_${ac_var}_value
3564 case $ac_old_set,$ac_new_set in
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3567 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3568 ac_cache_corrupted=: ;;
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3571 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3572 ac_cache_corrupted=: ;;
3575 if test "x$ac_old_val" != "x$ac_new_val"; then
3576 # differences in whitespace do not lead to failure.
3577 ac_old_val_w=`echo x $ac_old_val`
3578 ac_new_val_w=`echo x $ac_new_val`
3579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3581 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3582 ac_cache_corrupted=:
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3585 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3586 eval $ac_var=\$ac_old_val
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3589 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3591 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3594 # Pass precious variables to config.status.
3595 if test "$ac_new_set" = set; then
3597 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3598 *) ac_arg=$ac_var=$ac_new_val ;;
3600 case " $ac_configure_args " in
3601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3606 if $ac_cache_corrupted; then
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3610 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3611 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3612 and start over" "$LINENO" 5
3614 ## -------------------- ##
3615 ## Main body of script. ##
3616 ## -------------------- ##
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS" >&5
3627 printf %s "checking whether configure should try to set CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS... " >&6; }
3628 if test "x${CFLAGS+set}" = "xset" || test "x${CXXFLAGS+set}" = "xset" || test "x${CPPFLAGS+set}" = "xset" || test "x${LDFLAGS+set}" = "xset"
3631 enable_flags_setting=no
3637 enable_flags_setting=yes
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_flags_setting}" >&5
3643 printf "%s\n" "${enable_flags_setting}" >&6; }
3651 # Make sure we can run config.sub.
3652 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3653 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3656 printf %s "checking build system type... " >&6; }
3657 if test ${ac_cv_build+y}
3659 printf %s "(cached) " >&6
3661 ac_build_alias=$build_alias
3662 test "x$ac_build_alias" = x &&
3663 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3664 test "x$ac_build_alias" = x &&
3665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3666 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3667 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3671 printf "%s\n" "$ac_cv_build" >&6; }
3672 case $ac_cv_build in
3674 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3677 ac_save_IFS=$IFS; IFS='-'
3683 # Remember, the first character of IFS is used to create $*,
3684 # except with old shells:
3687 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3691 printf %s "checking host system type... " >&6; }
3692 if test ${ac_cv_host+y}
3694 printf %s "(cached) " >&6
3696 if test "x$host_alias" = x; then
3697 ac_cv_host=$ac_cv_build
3699 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3700 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3705 printf "%s\n" "$ac_cv_host" >&6; }
3708 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3711 ac_save_IFS=$IFS; IFS='-'
3717 # Remember, the first character of IFS is used to create $*,
3718 # except with old shells:
3721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3726 ac_config_headers="$ac_config_headers src/config.h"
3729 am__api_version='1.16'
3732 # Find a good install program. We prefer a C program (faster),
3733 # so one script is as good as another. But avoid the broken or
3734 # incompatible versions:
3735 # SysV /etc/install, /usr/sbin/install
3736 # SunOS /usr/etc/install
3737 # IRIX /sbin/install
3739 # AmigaOS /C/install, which installs bootblocks on floppy discs
3740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3743 # OS/2's system install, which has a completely different semantic
3744 # ./install, which can be erroneously created by make from ./install.sh.
3745 # Reject install programs that cannot install multiple files.
3746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3747 printf %s "checking for a BSD-compatible install... " >&6; }
3748 if test -z "$INSTALL"; then
3749 if test ${ac_cv_path_install+y}
3751 printf %s "(cached) " >&6
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 case $as_dir in #(((
3760 *) as_dir=$as_dir/ ;;
3762 # Account for fact that we put trailing slashes in our PATH walk.
3765 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3766 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3769 # OSF1 and SCO ODT 3.0 have their own names for install.
3770 # Don't use installbsd from OSF since it installs stuff as root
3772 for ac_prog in ginstall scoinst install; do
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3775 if test $ac_prog = install &&
3776 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3777 # AIX install. It has an incompatible calling convention.
3779 elif test $ac_prog = install &&
3780 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3781 # program-specific install script used by HP pwplus--don't use.
3784 rm -rf conftest.one conftest.two conftest.dir
3785 echo one > conftest.one
3786 echo two > conftest.two
3788 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3789 test -s conftest.one && test -s conftest.two &&
3790 test -s conftest.dir/conftest.one &&
3791 test -s conftest.dir/conftest.two
3793 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3806 rm -rf conftest.one conftest.two conftest.dir
3809 if test ${ac_cv_path_install+y}; then
3810 INSTALL=$ac_cv_path_install
3812 # As a last resort, use the slow shell script. Don't cache a
3813 # value for INSTALL within a source directory, because that will
3814 # break other packages using the cache if that directory is
3815 # removed, or if the value is a relative name.
3816 INSTALL=$ac_install_sh
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3820 printf "%s\n" "$INSTALL" >&6; }
3822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3823 # It thinks the first close brace ends the variable substitution.
3824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3828 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3831 printf %s "checking whether build environment is sane... " >&6; }
3832 # Reject unsafe characters in $srcdir or the absolute working directory
3833 # name. Accept space and tab only in the latter.
3837 *[\\\"\#\$\&\'\`$am_lf]*)
3838 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3841 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3842 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3845 # Do 'set' in a subshell so we don't clobber the current shell's
3846 # arguments. Must try -L first in case configure is actually a
3847 # symlink; some systems play weird games with the mod time of symlinks
3848 # (eg FreeBSD returns the mod time of the symlink's containing
3852 for am_try in 1 2; do
3853 echo "timestamp, slept: $am_has_slept" > conftest.file
3854 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3855 if test "$*" = "X"; then
3857 set X `ls -t "$srcdir/configure" conftest.file`
3859 if test "$*" != "X $srcdir/configure conftest.file" \
3860 && test "$*" != "X conftest.file $srcdir/configure"; then
3862 # If neither matched, then we have a broken ls. This can happen
3863 # if, for instance, CONFIG_SHELL is bash and it inherits a
3864 # broken ls alias from the environment. This has actually
3865 # happened. Such a system could not be considered "sane".
3866 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3867 alias in your environment" "$LINENO" 5
3869 if test "$2" = conftest.file || test $am_try -eq 2; then
3876 test "$2" = conftest.file
3882 as_fn_error $? "newly created file is older than distributed files!
3883 Check your system clock" "$LINENO" 5
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886 printf "%s\n" "yes" >&6; }
3887 # If we didn't sleep, we still need to ensure time stamps of config.status and
3888 # generated files are strictly newer.
3890 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3897 test "$program_prefix" != NONE &&
3898 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3899 # Use a double $ so make ignores it.
3900 test "$program_suffix" != NONE &&
3901 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3902 # Double any \ or $.
3903 # By default was `s,x,x', remove it if useless.
3904 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3905 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3908 # Expand $ac_aux_dir to an absolute path.
3909 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3912 if test x"${MISSING+set}" != xset; then
3913 MISSING="\${SHELL} '$am_aux_dir/missing'"
3915 # Use eval to expand $SHELL
3916 if eval "$MISSING --is-lightweight"; then
3917 am_missing_run="$MISSING "
3920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3921 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3924 if test x"${install_sh+set}" != xset; then
3927 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3929 install_sh="\${SHELL} $am_aux_dir/install-sh"
3933 # Installed binaries are usually stripped using 'strip' when the user
3934 # run "make install-strip". However 'strip' might not be the right
3935 # tool to use in cross-compilation environments, therefore Automake
3936 # will honor the 'STRIP' environment variable to overrule this program.
3937 if test "$cross_compiling" != no; then
3938 if test -n "$ac_tool_prefix"; then
3939 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3940 set dummy ${ac_tool_prefix}strip; ac_word=$2
3941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 printf %s "checking for $ac_word... " >&6; }
3943 if test ${ac_cv_prog_STRIP+y}
3945 printf %s "(cached) " >&6
3947 if test -n "$STRIP"; then
3948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 case $as_dir in #(((
3957 *) as_dir=$as_dir/ ;;
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3961 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3971 STRIP=$ac_cv_prog_STRIP
3972 if test -n "$STRIP"; then
3973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3974 printf "%s\n" "$STRIP" >&6; }
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 printf "%s\n" "no" >&6; }
3982 if test -z "$ac_cv_prog_STRIP"; then
3984 # Extract the first word of "strip", so it can be a program name with args.
3985 set dummy strip; ac_word=$2
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3987 printf %s "checking for $ac_word... " >&6; }
3988 if test ${ac_cv_prog_ac_ct_STRIP+y}
3990 printf %s "(cached) " >&6
3992 if test -n "$ac_ct_STRIP"; then
3993 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 case $as_dir in #(((
4002 *) as_dir=$as_dir/ ;;
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_ac_ct_STRIP="strip"
4007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4017 if test -n "$ac_ct_STRIP"; then
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4019 printf "%s\n" "$ac_ct_STRIP" >&6; }
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4025 if test "x$ac_ct_STRIP" = x; then
4028 case $cross_compiling:$ac_tool_warned in
4030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032 ac_tool_warned=yes ;;
4037 STRIP="$ac_cv_prog_STRIP"
4041 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4045 printf %s "checking for a race-free mkdir -p... " >&6; }
4046 if test -z "$MKDIR_P"; then
4047 if test ${ac_cv_path_mkdir+y}
4049 printf %s "(cached) " >&6
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4055 case $as_dir in #(((
4058 *) as_dir=$as_dir/ ;;
4060 for ac_prog in mkdir gmkdir; do
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4063 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4064 'mkdir ('*'coreutils) '* | \
4066 'mkdir (fileutils) '4.1*)
4067 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4077 test -d ./--version && rmdir ./--version
4078 if test ${ac_cv_path_mkdir+y}; then
4079 MKDIR_P="$ac_cv_path_mkdir -p"
4081 # As a last resort, use the slow shell script. Don't cache a
4082 # value for MKDIR_P within a source directory, because that will
4083 # break other packages using the cache if that directory is
4084 # removed, or if the value is a relative name.
4085 MKDIR_P="$ac_install_sh -d"
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4089 printf "%s\n" "$MKDIR_P" >&6; }
4091 for ac_prog in gawk mawk nawk awk
4093 # Extract the first word of "$ac_prog", so it can be a program name with args.
4094 set dummy $ac_prog; ac_word=$2
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 printf %s "checking for $ac_word... " >&6; }
4097 if test ${ac_cv_prog_AWK+y}
4099 printf %s "(cached) " >&6
4101 if test -n "$AWK"; then
4102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 case $as_dir in #(((
4111 *) as_dir=$as_dir/ ;;
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_AWK="$ac_prog"
4116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4126 if test -n "$AWK"; then
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4128 printf "%s\n" "$AWK" >&6; }
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131 printf "%s\n" "no" >&6; }
4135 test -n "$AWK" && break
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4139 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4141 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4142 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4144 printf %s "(cached) " >&6
4146 cat >conftest.make <<\_ACEOF
4149 @echo '@@@%%%=$(MAKE)=@@@%%%'
4151 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4152 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4154 eval ac_cv_prog_make_${ac_make}_set=yes;;
4156 eval ac_cv_prog_make_${ac_make}_set=no;;
4160 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4162 printf "%s\n" "yes" >&6; }
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4166 printf "%s\n" "no" >&6; }
4167 SET_MAKE="MAKE=${MAKE-make}"
4170 rm -rf .tst 2>/dev/null
4171 mkdir .tst 2>/dev/null
4172 if test -d .tst; then
4177 rmdir .tst 2>/dev/null
4179 # Check whether --enable-silent-rules was given.
4180 if test ${enable_silent_rules+y}
4182 enableval=$enable_silent_rules;
4185 case $enable_silent_rules in # (((
4186 yes) AM_DEFAULT_VERBOSITY=0;;
4187 no) AM_DEFAULT_VERBOSITY=1;;
4188 *) AM_DEFAULT_VERBOSITY=1;;
4190 am_make=${MAKE-make}
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4192 printf %s "checking whether $am_make supports nested variables... " >&6; }
4193 if test ${am_cv_make_support_nested_variables+y}
4195 printf %s "(cached) " >&6
4197 if printf "%s\n" 'TRUE=$(BAR$(V))
4203 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4204 am_cv_make_support_nested_variables=yes
4206 am_cv_make_support_nested_variables=no
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4210 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4211 if test $am_cv_make_support_nested_variables = yes; then
4213 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4215 AM_V=$AM_DEFAULT_VERBOSITY
4216 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4220 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4221 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4222 # is not polluted with repeated "-I."
4223 am__isrc=' -I$(srcdir)'
4224 # test to see if srcdir already configured
4225 if test -f $srcdir/config.status; then
4226 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4230 # test whether we have cygpath
4231 if test -z "$CYGPATH_W"; then
4232 if (cygpath --version) >/dev/null 2>/dev/null; then
4233 CYGPATH_W='cygpath -w'
4240 # Define the identity of the package.
4241 PACKAGE='libsndfile'
4245 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4248 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4250 # Some tools Automake needs.
4252 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4255 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4258 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4261 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4264 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4266 # For better backward compatibility. To be removed once Automake 1.9.x
4267 # dies out for good. For more background, see:
4268 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4269 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4270 mkdir_p='$(MKDIR_P)'
4272 # We need awk for the "check" target (and possibly the TAP driver). The
4273 # system "awk" is bad on some platforms.
4274 # Always define AMTAR for backward compatibility. Yes, it's still used
4275 # in the wild :-( We should find a proper way to deprecate it ...
4279 # We'll loop over all known methods to create a tar archive until one works.
4280 _am_tools='gnutar pax cpio none'
4282 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4288 # Variables for tags utilities; see am/tags.am
4289 if test -z "$CTAGS"; then
4293 if test -z "$ETAGS"; then
4297 if test -z "$CSCOPE"; then
4303 # POSIX will say in a future version that running "rm -f" with no argument
4304 # is OK; and we want to be able to make that assumption in our Makefile
4305 # recipes. So use an aggressive probe to check that the usage we want is
4306 # actually supported "in the wild" to an acceptable degree.
4307 # See automake bug#10828.
4308 # To make any issue more visible, cause the running configure to be aborted
4309 # by default if the 'rm' program in use doesn't match our expectations; the
4310 # user can still override this though.
4311 if rm -f && rm -fr && rm -rf; then : OK; else
4315 Your 'rm' program seems unable to run without file operands specified
4316 on the command line, even when the '-f' option is present. This is contrary
4317 to the behaviour of most rm programs out there, and not conforming with
4318 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4320 Please tell bug-automake@gnu.org about your system, including the value
4321 of your $PATH and any error possibly output before this message. This
4322 can help us improve future automake versions.
4325 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4326 echo 'Configuration will proceed anyway, since you have set the' >&2
4327 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4331 Aborting the configuration process, to ensure you take notice of the issue.
4333 You can download and install GNU coreutils to get an 'rm' implementation
4334 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4336 If you want to complete the configuration process using your problematic
4337 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4338 to "yes", and re-run configure.
4341 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4345 # Check whether --enable-silent-rules was given.
4346 if test ${enable_silent_rules+y}
4348 enableval=$enable_silent_rules;
4351 case $enable_silent_rules in # (((
4352 yes) AM_DEFAULT_VERBOSITY=0;;
4353 no) AM_DEFAULT_VERBOSITY=1;;
4354 *) AM_DEFAULT_VERBOSITY=0;;
4356 am_make=${MAKE-make}
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4358 printf %s "checking whether $am_make supports nested variables... " >&6; }
4359 if test ${am_cv_make_support_nested_variables+y}
4361 printf %s "(cached) " >&6
4363 if printf "%s\n" 'TRUE=$(BAR$(V))
4369 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4370 am_cv_make_support_nested_variables=yes
4372 am_cv_make_support_nested_variables=no
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4376 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4377 if test $am_cv_make_support_nested_variables = yes; then
4379 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4381 AM_V=$AM_DEFAULT_VERBOSITY
4382 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4398 ac_cpp='$CPP $CPPFLAGS'
4399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 if test -n "$ac_tool_prefix"; then
4403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 printf %s "checking for $ac_word... " >&6; }
4407 if test ${ac_cv_prog_CC+y}
4409 printf %s "(cached) " >&6
4411 if test -n "$CC"; then
4412 ac_cv_prog_CC="$CC" # Let the user override the test.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 case $as_dir in #(((
4421 *) as_dir=$as_dir/ ;;
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4436 if test -n "$CC"; then
4437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438 printf "%s\n" "$CC" >&6; }
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 printf "%s\n" "no" >&6; }
4446 if test -z "$ac_cv_prog_CC"; then
4448 # Extract the first word of "gcc", so it can be a program name with args.
4449 set dummy gcc; ac_word=$2
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451 printf %s "checking for $ac_word... " >&6; }
4452 if test ${ac_cv_prog_ac_ct_CC+y}
4454 printf %s "(cached) " >&6
4456 if test -n "$ac_ct_CC"; then
4457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 case $as_dir in #(((
4466 *) as_dir=$as_dir/ ;;
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4470 ac_cv_prog_ac_ct_CC="gcc"
4471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4481 if test -n "$ac_ct_CC"; then
4482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4483 printf "%s\n" "$ac_ct_CC" >&6; }
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 printf "%s\n" "no" >&6; }
4489 if test "x$ac_ct_CC" = x; then
4492 case $cross_compiling:$ac_tool_warned in
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4504 if test -z "$CC"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}cc; ac_word=$2
4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 printf %s "checking for $ac_word... " >&6; }
4510 if test ${ac_cv_prog_CC+y}
4512 printf %s "(cached) " >&6
4514 if test -n "$CC"; then
4515 ac_cv_prog_CC="$CC" # Let the user override the test.
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 case $as_dir in #(((
4524 *) as_dir=$as_dir/ ;;
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4528 ac_cv_prog_CC="${ac_tool_prefix}cc"
4529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4539 if test -n "$CC"; then
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4541 printf "%s\n" "$CC" >&6; }
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 printf "%s\n" "no" >&6; }
4550 if test -z "$CC"; then
4551 # Extract the first word of "cc", so it can be a program name with args.
4552 set dummy cc; ac_word=$2
4553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 printf %s "checking for $ac_word... " >&6; }
4555 if test ${ac_cv_prog_CC+y}
4557 printf %s "(cached) " >&6
4559 if test -n "$CC"; then
4560 ac_cv_prog_CC="$CC" # Let the user override the test.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 case $as_dir in #(((
4570 *) as_dir=$as_dir/ ;;
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4574 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4575 ac_prog_rejected=yes
4579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4586 if test $ac_prog_rejected = yes; then
4587 # We found a bogon in the path, so make sure we never use it.
4588 set dummy $ac_cv_prog_CC
4590 if test $# != 0; then
4591 # We chose a different compiler from the bogus one.
4592 # However, it has the same basename, so the bogon will be chosen
4593 # first if we set CC to just the basename; use the full file name.
4595 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4601 if test -n "$CC"; then
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4603 printf "%s\n" "$CC" >&6; }
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 printf "%s\n" "no" >&6; }
4611 if test -z "$CC"; then
4612 if test -n "$ac_tool_prefix"; then
4613 for ac_prog in cl.exe
4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 printf %s "checking for $ac_word... " >&6; }
4619 if test ${ac_cv_prog_CC+y}
4621 printf %s "(cached) " >&6
4623 if test -n "$CC"; then
4624 ac_cv_prog_CC="$CC" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 case $as_dir in #(((
4633 *) as_dir=$as_dir/ ;;
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4638 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4650 printf "%s\n" "$CC" >&6; }
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 printf "%s\n" "no" >&6; }
4657 test -n "$CC" && break
4660 if test -z "$CC"; then
4662 for ac_prog in cl.exe
4664 # Extract the first word of "$ac_prog", so it can be a program name with args.
4665 set dummy $ac_prog; ac_word=$2
4666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 printf %s "checking for $ac_word... " >&6; }
4668 if test ${ac_cv_prog_ac_ct_CC+y}
4670 printf %s "(cached) " >&6
4672 if test -n "$ac_ct_CC"; then
4673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 case $as_dir in #(((
4682 *) as_dir=$as_dir/ ;;
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4686 ac_cv_prog_ac_ct_CC="$ac_prog"
4687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4697 if test -n "$ac_ct_CC"; then
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4699 printf "%s\n" "$ac_ct_CC" >&6; }
4701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4702 printf "%s\n" "no" >&6; }
4706 test -n "$ac_ct_CC" && break
4709 if test "x$ac_ct_CC" = x; then
4712 case $cross_compiling:$ac_tool_warned in
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4723 if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}clang; ac_word=$2
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 printf %s "checking for $ac_word... " >&6; }
4729 if test ${ac_cv_prog_CC+y}
4731 printf %s "(cached) " >&6
4733 if test -n "$CC"; then
4734 ac_cv_prog_CC="$CC" # Let the user override the test.
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 case $as_dir in #(((
4743 *) as_dir=$as_dir/ ;;
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4747 ac_cv_prog_CC="${ac_tool_prefix}clang"
4748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4758 if test -n "$CC"; then
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4760 printf "%s\n" "$CC" >&6; }
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 printf "%s\n" "no" >&6; }
4768 if test -z "$ac_cv_prog_CC"; then
4770 # Extract the first word of "clang", so it can be a program name with args.
4771 set dummy clang; ac_word=$2
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 printf %s "checking for $ac_word... " >&6; }
4774 if test ${ac_cv_prog_ac_ct_CC+y}
4776 printf %s "(cached) " >&6
4778 if test -n "$ac_ct_CC"; then
4779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 case $as_dir in #(((
4788 *) as_dir=$as_dir/ ;;
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4792 ac_cv_prog_ac_ct_CC="clang"
4793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4802 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4803 if test -n "$ac_ct_CC"; then
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4805 printf "%s\n" "$ac_ct_CC" >&6; }
4807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 printf "%s\n" "no" >&6; }
4811 if test "x$ac_ct_CC" = x; then
4814 case $cross_compiling:$ac_tool_warned in
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4817 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4818 ac_tool_warned=yes ;;
4829 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4830 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4831 as_fn_error $? "no acceptable C compiler found in \$PATH
4832 See \`config.log' for more details" "$LINENO" 5; }
4834 # Provide some information about the compiler.
4835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4838 for ac_option in --version -v -V -qversion -version; do
4839 { { ac_try="$ac_compiler $ac_option >&5"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4845 printf "%s\n" "$ac_try_echo"; } >&5
4846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4848 if test -s conftest.err; then
4850 ... rest of stderr output deleted ...
4851 10q' conftest.err >conftest.er1
4852 cat conftest.er1 >&5
4854 rm -f conftest.er1 conftest.err
4855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4870 ac_clean_files_save=$ac_clean_files
4871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4872 # Try to create an executable without -o first, disregard a.out.
4873 # It will help us diagnose broken compilers, and finding out an intuition
4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4876 printf %s "checking whether the C compiler works... " >&6; }
4877 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4879 # The possible output files:
4880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4883 for ac_file in $ac_files
4886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4892 if { { ac_try="$ac_link_default"
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4898 printf "%s\n" "$ac_try_echo"; } >&5
4899 (eval "$ac_link_default") 2>&5
4901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4902 test $ac_status = 0; }
4904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4907 # so that the user can short-circuit this test for compilers unknown to
4909 for ac_file in $ac_files ''
4911 test -f "$ac_file" || continue
4913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4916 # We found the default executable, but exeext='' is most
4920 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4924 # We set ac_cv_exeext here because the later test for it is not
4925 # safe: cross compilers may not add the suffix if given an `-o'
4926 # argument, so we may need to know it at that point already.
4927 # Even if this section looks crufty: it has the advantage of
4934 test "$ac_cv_exeext" = no && ac_cv_exeext=
4939 if test -z "$ac_file"
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 printf "%s\n" "no" >&6; }
4943 printf "%s\n" "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4947 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4948 as_fn_error 77 "C compiler cannot create executables
4949 See \`config.log' for more details" "$LINENO" 5; }
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4952 printf "%s\n" "yes" >&6; }
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4955 printf %s "checking for C compiler default output file name... " >&6; }
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4957 printf "%s\n" "$ac_file" >&6; }
4958 ac_exeext=$ac_cv_exeext
4960 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4961 ac_clean_files=$ac_clean_files_save
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4963 printf %s "checking for suffix of executables... " >&6; }
4964 if { { ac_try="$ac_link"
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4970 printf "%s\n" "$ac_try_echo"; } >&5
4971 (eval "$ac_link") 2>&5
4973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4974 test $ac_status = 0; }
4976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4978 # work properly (i.e., refer to `conftest.exe'), while it won't with
4980 for ac_file in conftest.exe conftest conftest.*; do
4981 test -f "$ac_file" || continue
4983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4990 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4991 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4992 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4993 See \`config.log' for more details" "$LINENO" 5; }
4995 rm -f conftest conftest$ac_cv_exeext
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4997 printf "%s\n" "$ac_cv_exeext" >&6; }
4999 rm -f conftest.$ac_ext
5000 EXEEXT=$ac_cv_exeext
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5008 FILE *f = fopen ("conftest.out", "w");
5009 return ferror (f) || fclose (f) != 0;
5015 ac_clean_files="$ac_clean_files conftest.out"
5016 # Check that the compiler produces executables we can run. If not, either
5017 # the compiler is broken, or we cross compile.
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5019 printf %s "checking whether we are cross compiling... " >&6; }
5020 if test "$cross_compiling" != yes; then
5021 { { ac_try="$ac_link"
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5027 printf "%s\n" "$ac_try_echo"; } >&5
5028 (eval "$ac_link") 2>&5
5030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5031 test $ac_status = 0; }
5032 if { ac_try='./conftest$ac_cv_exeext'
5033 { { case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5038 printf "%s\n" "$ac_try_echo"; } >&5
5039 (eval "$ac_try") 2>&5
5041 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5042 test $ac_status = 0; }; }; then
5045 if test "$cross_compiling" = maybe; then
5048 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5049 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5050 as_fn_error 77 "cannot run C compiled programs.
5051 If you meant to cross compile, use \`--host'.
5052 See \`config.log' for more details" "$LINENO" 5; }
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5057 printf "%s\n" "$cross_compiling" >&6; }
5059 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5060 ac_clean_files=$ac_clean_files_save
5061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5062 printf %s "checking for suffix of object files... " >&6; }
5063 if test ${ac_cv_objext+y}
5065 printf %s "(cached) " >&6
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5078 rm -f conftest.o conftest.obj
5079 if { { ac_try="$ac_compile"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5085 printf "%s\n" "$ac_try_echo"; } >&5
5086 (eval "$ac_compile") 2>&5
5088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5089 test $ac_status = 0; }
5091 for ac_file in conftest.o conftest.obj conftest.*; do
5092 test -f "$ac_file" || continue;
5094 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5095 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5100 printf "%s\n" "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5104 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5105 as_fn_error $? "cannot compute suffix of object files: cannot compile
5106 See \`config.log' for more details" "$LINENO" 5; }
5108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5111 printf "%s\n" "$ac_cv_objext" >&6; }
5112 OBJEXT=$ac_cv_objext
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5115 printf %s "checking whether the compiler supports GNU C... " >&6; }
5116 if test ${ac_cv_c_compiler_gnu+y}
5118 printf %s "(cached) " >&6
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5134 if ac_fn_c_try_compile "$LINENO"
5140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5145 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148 if test $ac_compiler_gnu = yes; then
5153 ac_test_CFLAGS=${CFLAGS+y}
5154 ac_save_CFLAGS=$CFLAGS
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5156 printf %s "checking whether $CC accepts -g... " >&6; }
5157 if test ${ac_cv_prog_cc_g+y}
5159 printf %s "(cached) " >&6
5161 ac_save_c_werror_flag=$ac_c_werror_flag
5162 ac_c_werror_flag=yes
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5176 if ac_fn_c_try_compile "$LINENO"
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182 /* end confdefs.h. */
5192 if ac_fn_c_try_compile "$LINENO"
5196 ac_c_werror_flag=$ac_save_c_werror_flag
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5209 if ac_fn_c_try_compile "$LINENO"
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5218 ac_c_werror_flag=$ac_save_c_werror_flag
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5221 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5222 if test $ac_test_CFLAGS; then
5223 CFLAGS=$ac_save_CFLAGS
5224 elif test $ac_cv_prog_cc_g = yes; then
5225 if test "$GCC" = yes; then
5231 if test "$GCC" = yes; then
5238 if test x$ac_prog_cc_stdc = xno
5240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5241 printf %s "checking for $CC option to enable C11 features... " >&6; }
5242 if test ${ac_cv_prog_cc_c11+y}
5244 printf %s "(cached) " >&6
5246 ac_cv_prog_cc_c11=no
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 $ac_c_conftest_c11_program
5252 for ac_arg in '' -std=gnu11
5254 CC="$ac_save_CC $ac_arg"
5255 if ac_fn_c_try_compile "$LINENO"
5257 ac_cv_prog_cc_c11=$ac_arg
5259 rm -f core conftest.err conftest.$ac_objext conftest.beam
5260 test "x$ac_cv_prog_cc_c11" != "xno" && break
5262 rm -f conftest.$ac_ext
5266 if test "x$ac_cv_prog_cc_c11" = xno
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5269 printf "%s\n" "unsupported" >&6; }
5271 if test "x$ac_cv_prog_cc_c11" = x
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5274 printf "%s\n" "none needed" >&6; }
5276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5277 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5278 CC="$CC $ac_cv_prog_cc_c11"
5280 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5284 if test x$ac_prog_cc_stdc = xno
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5287 printf %s "checking for $CC option to enable C99 features... " >&6; }
5288 if test ${ac_cv_prog_cc_c99+y}
5290 printf %s "(cached) " >&6
5292 ac_cv_prog_cc_c99=no
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 $ac_c_conftest_c99_program
5298 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5300 CC="$ac_save_CC $ac_arg"
5301 if ac_fn_c_try_compile "$LINENO"
5303 ac_cv_prog_cc_c99=$ac_arg
5305 rm -f core conftest.err conftest.$ac_objext conftest.beam
5306 test "x$ac_cv_prog_cc_c99" != "xno" && break
5308 rm -f conftest.$ac_ext
5312 if test "x$ac_cv_prog_cc_c99" = xno
5314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5315 printf "%s\n" "unsupported" >&6; }
5317 if test "x$ac_cv_prog_cc_c99" = x
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5320 printf "%s\n" "none needed" >&6; }
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5323 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5324 CC="$CC $ac_cv_prog_cc_c99"
5326 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5330 if test x$ac_prog_cc_stdc = xno
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5333 printf %s "checking for $CC option to enable C89 features... " >&6; }
5334 if test ${ac_cv_prog_cc_c89+y}
5336 printf %s "(cached) " >&6
5338 ac_cv_prog_cc_c89=no
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5342 $ac_c_conftest_c89_program
5344 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5346 CC="$ac_save_CC $ac_arg"
5347 if ac_fn_c_try_compile "$LINENO"
5349 ac_cv_prog_cc_c89=$ac_arg
5351 rm -f core conftest.err conftest.$ac_objext conftest.beam
5352 test "x$ac_cv_prog_cc_c89" != "xno" && break
5354 rm -f conftest.$ac_ext
5358 if test "x$ac_cv_prog_cc_c89" = xno
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5361 printf "%s\n" "unsupported" >&6; }
5363 if test "x$ac_cv_prog_cc_c89" = x
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5366 printf "%s\n" "none needed" >&6; }
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5369 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5370 CC="$CC $ac_cv_prog_cc_c89"
5372 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5378 ac_cpp='$CPP $CPPFLAGS'
5379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5385 ac_cpp='$CPP $CPPFLAGS'
5386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5390 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5391 if test ${am_cv_prog_cc_c_o+y}
5393 printf %s "(cached) " >&6
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5406 # Make sure it works both with $CC and with simple cc.
5407 # Following AC_PROG_CC_C_O, we do the test twice because some
5408 # compilers refuse to overwrite an existing .o file with -o,
5409 # though they will create one.
5410 am_cv_prog_cc_c_o=yes
5412 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5413 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } \
5417 && test -f conftest2.$ac_objext; then
5420 am_cv_prog_cc_c_o=no
5424 rm -f core conftest*
5427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5428 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5429 if test "$am_cv_prog_cc_c_o" != yes; then
5430 # Losing compiler, so override with the script.
5431 # FIXME: It is wrong to rewrite CC.
5432 # But if we don't then we get into trouble of one sort or another.
5433 # A longer-term fix would be to have automake use am__CC in this case,
5434 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5435 CC="$am_aux_dir/compile $CC"
5438 ac_cpp='$CPP $CPPFLAGS'
5439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443 DEPDIR="${am__leading_dot}deps"
5445 ac_config_commands="$ac_config_commands depfiles"
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5448 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5449 cat > confinc.mk << 'END'
5451 @echo this is the am__doit target >confinc.out
5456 # BSD make does it like this.
5457 echo '.include "confinc.mk" # ignored' > confmf.BSD
5458 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5459 echo 'include confinc.mk # ignored' > confmf.GNU
5461 for s in GNU BSD; do
5462 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5463 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }
5467 case $?:`cat confinc.out 2>/dev/null` in #(
5468 '0:this is the am__doit target') :
5471 am__include='.include' am__quote='"' ;; #(
5473 am__include='include' am__quote='' ;;
5478 if test "$am__include" != "#"; then
5479 _am_result="yes ($s style)"
5483 rm -f confinc.* confmf.*
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5485 printf "%s\n" "${_am_result}" >&6; }
5487 # Check whether --enable-dependency-tracking was given.
5488 if test ${enable_dependency_tracking+y}
5490 enableval=$enable_dependency_tracking;
5493 if test "x$enable_dependency_tracking" != xno; then
5494 am_depcomp="$ac_aux_dir/depcomp"
5498 if test "x$enable_dependency_tracking" != xno; then
5508 depcc="$CC" am_compiler_list=
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5511 printf %s "checking dependency style of $depcc... " >&6; }
5512 if test ${am_cv_CC_dependencies_compiler_type+y}
5514 printf %s "(cached) " >&6
5516 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5517 # We make a subdir and do the tests there. Otherwise we can end up
5518 # making bogus files that we don't know about and never remove. For
5519 # instance it was reported that on HP-UX the gcc test will end up
5520 # making a dummy file named 'D' -- because '-MD' means "put the output
5524 # Copy depcomp to subdir because otherwise we won't find it if we're
5525 # using a relative directory.
5526 cp "$am_depcomp" conftest.dir
5528 # We will build objects and dependencies in a subdirectory because
5529 # it helps to detect inapplicable dependency modes. For instance
5530 # both Tru64's cc and ICC support -MD to output dependencies as a
5531 # side effect of compilation, but ICC will put the dependencies in
5532 # the current directory while Tru64 will put them in the object
5536 am_cv_CC_dependencies_compiler_type=none
5537 if test "$am_compiler_list" = ""; then
5538 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5541 case " $depcc " in #(
5542 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5545 for depmode in $am_compiler_list; do
5546 # Setup a source with many dependencies, because some compilers
5547 # like to wrap large dependency lists on column 80 (with \), and
5548 # we should not choose a depcomp mode which is confused by this.
5550 # We need to recreate these files for each test, as the compiler may
5551 # overwrite some of them when testing with obscure command lines.
5552 # This happens at least with the AIX C compiler.
5554 for i in 1 2 3 4 5 6; do
5555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5556 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5557 # Solaris 10 /bin/sh.
5558 echo '/* dummy */' > sub/conftst$i.h
5560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5562 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5563 # mode. It turns out that the SunPro C++ compiler does not properly
5564 # handle '-M -o', and we need to detect this. Also, some Intel
5565 # versions had trouble with output in subdirs.
5566 am__obj=sub/conftest.${OBJEXT-o}
5567 am__minus_obj="-o $am__obj"
5570 # This depmode causes a compiler race in universal mode.
5571 test "$am__universal" = false || continue
5574 # After this tag, mechanisms are not by side-effect, so they'll
5575 # only be used when explicitly requested.
5576 if test "x$enable_dependency_tracking" = xyes; then
5582 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5583 # This compiler won't grok '-c -o', but also, the minuso test has
5584 # not run yet. These depmodes are late enough in the game, and
5585 # so weak that their functioning should not be impacted.
5586 am__obj=conftest.${OBJEXT-o}
5591 if depmode=$depmode \
5592 source=sub/conftest.c object=$am__obj \
5593 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5594 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5595 >/dev/null 2>conftest.err &&
5596 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5598 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5600 # icc doesn't choke on unknown options, it will just issue warnings
5601 # or remarks (even with -Werror). So we grep stderr for any message
5602 # that says an option was ignored or not supported.
5603 # When given -MP, icc 7.0 and 7.1 complain thusly:
5604 # icc: Command line warning: ignoring option '-M'; no argument required
5605 # The diagnosis changed in icc 8.0:
5606 # icc: Command line remark: option '-MP' not supported
5607 if (grep 'ignoring option' conftest.err ||
5608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5609 am_cv_CC_dependencies_compiler_type=$depmode
5618 am_cv_CC_dependencies_compiler_type=none
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5623 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5624 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5627 test "x$enable_dependency_tracking" != xno \
5628 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5630 am__fastdepCC_FALSE='#'
5632 am__fastdepCC_TRUE='#'
5633 am__fastdepCC_FALSE=
5639 if test "x$ac_cv_prog_cc_c99" = "xno"
5642 as_fn_error $? "libsndfile requires a C99 capable compiler!" "$LINENO" 5
5647 ac_header= ac_cache=
5648 for ac_item in $ac_header_c_list
5650 if test $ac_cache; then
5651 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5652 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5653 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5655 ac_header= ac_cache=
5656 elif test $ac_header; then
5670 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5673 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5683 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5684 if test ${ac_cv_safe_to_define___extensions__+y}
5686 printf %s "(cached) " >&6
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5691 # define __EXTENSIONS__ 1
5692 $ac_includes_default
5701 if ac_fn_c_try_compile "$LINENO"
5703 ac_cv_safe_to_define___extensions__=yes
5705 ac_cv_safe_to_define___extensions__=no
5707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5710 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5713 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5714 if test ${ac_cv_should_define__xopen_source+y}
5716 printf %s "(cached) " >&6
5718 ac_cv_should_define__xopen_source=no
5719 if test $ac_cv_header_wchar_h = yes
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5734 if ac_fn_c_try_compile "$LINENO"
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5741 #define _XOPEN_SOURCE 500
5752 if ac_fn_c_try_compile "$LINENO"
5754 ac_cv_should_define__xopen_source=yes
5756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5762 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5764 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5766 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5768 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5770 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5772 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5774 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5776 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5778 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5780 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5782 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5784 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5786 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5788 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5790 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5792 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5794 if test $ac_cv_header_minix_config_h = yes
5797 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5799 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5801 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5806 if test $ac_cv_safe_to_define___extensions__ = yes
5808 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5811 if test $ac_cv_should_define__xopen_source = yes
5813 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5824 ac_cpp='$CXXCPP $CPPFLAGS'
5825 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5828 if test -z "$CXX"; then
5829 if test -n "$CCC"; then
5832 if test -n "$ac_tool_prefix"; then
5833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5835 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5836 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 printf %s "checking for $ac_word... " >&6; }
5839 if test ${ac_cv_prog_CXX+y}
5841 printf %s "(cached) " >&6
5843 if test -n "$CXX"; then
5844 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 case $as_dir in #(((
5853 *) as_dir=$as_dir/ ;;
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5868 if test -n "$CXX"; then
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5870 printf "%s\n" "$CXX" >&6; }
5872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 printf "%s\n" "no" >&6; }
5877 test -n "$CXX" && break
5880 if test -z "$CXX"; then
5882 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
5884 # Extract the first word of "$ac_prog", so it can be a program name with args.
5885 set dummy $ac_prog; ac_word=$2
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 printf %s "checking for $ac_word... " >&6; }
5888 if test ${ac_cv_prog_ac_ct_CXX+y}
5890 printf %s "(cached) " >&6
5892 if test -n "$ac_ct_CXX"; then
5893 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 case $as_dir in #(((
5902 *) as_dir=$as_dir/ ;;
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_CXX="$ac_prog"
5907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5916 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5917 if test -n "$ac_ct_CXX"; then
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5919 printf "%s\n" "$ac_ct_CXX" >&6; }
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 printf "%s\n" "no" >&6; }
5926 test -n "$ac_ct_CXX" && break
5929 if test "x$ac_ct_CXX" = x; then
5932 case $cross_compiling:$ac_tool_warned in
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5936 ac_tool_warned=yes ;;
5944 # Provide some information about the compiler.
5945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5948 for ac_option in --version -v -V -qversion; do
5949 { { ac_try="$ac_compiler $ac_option >&5"
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5955 printf "%s\n" "$ac_try_echo"; } >&5
5956 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5958 if test -s conftest.err; then
5960 ... rest of stderr output deleted ...
5961 10q' conftest.err >conftest.er1
5962 cat conftest.er1 >&5
5964 rm -f conftest.er1 conftest.err
5965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5966 test $ac_status = 0; }
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5970 printf %s "checking whether the compiler supports GNU C++... " >&6; }
5971 if test ${ac_cv_cxx_compiler_gnu+y}
5973 printf %s "(cached) " >&6
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5989 if ac_fn_cxx_try_compile "$LINENO"
5995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5996 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6000 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6003 if test $ac_compiler_gnu = yes; then
6008 ac_test_CXXFLAGS=${CXXFLAGS+y}
6009 ac_save_CXXFLAGS=$CXXFLAGS
6010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6011 printf %s "checking whether $CXX accepts -g... " >&6; }
6012 if test ${ac_cv_prog_cxx_g+y}
6014 printf %s "(cached) " >&6
6016 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6017 ac_cxx_werror_flag=yes
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6031 if ac_fn_cxx_try_compile "$LINENO"
6033 ac_cv_prog_cxx_g=yes
6036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6037 /* end confdefs.h. */
6047 if ac_fn_cxx_try_compile "$LINENO"
6051 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6064 if ac_fn_cxx_try_compile "$LINENO"
6066 ac_cv_prog_cxx_g=yes
6068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6073 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6076 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6077 if test $ac_test_CXXFLAGS; then
6078 CXXFLAGS=$ac_save_CXXFLAGS
6079 elif test $ac_cv_prog_cxx_g = yes; then
6080 if test "$GXX" = yes; then
6086 if test "$GXX" = yes; then
6092 ac_prog_cxx_stdcxx=no
6093 if test x$ac_prog_cxx_stdcxx = xno
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6096 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6097 if test ${ac_cv_prog_cxx_cxx11+y}
6099 printf %s "(cached) " >&6
6101 ac_cv_prog_cxx_cxx11=no
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 $ac_cxx_conftest_cxx11_program
6107 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6109 CXX="$ac_save_CXX $ac_arg"
6110 if ac_fn_cxx_try_compile "$LINENO"
6112 ac_cv_prog_cxx_cxx11=$ac_arg
6114 rm -f core conftest.err conftest.$ac_objext conftest.beam
6115 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6117 rm -f conftest.$ac_ext
6121 if test "x$ac_cv_prog_cxx_cxx11" = xno
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6124 printf "%s\n" "unsupported" >&6; }
6126 if test "x$ac_cv_prog_cxx_cxx11" = x
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6129 printf "%s\n" "none needed" >&6; }
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6132 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6133 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6135 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6136 ac_prog_cxx_stdcxx=cxx11
6139 if test x$ac_prog_cxx_stdcxx = xno
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6142 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6143 if test ${ac_cv_prog_cxx_cxx98+y}
6145 printf %s "(cached) " >&6
6147 ac_cv_prog_cxx_cxx98=no
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 $ac_cxx_conftest_cxx98_program
6153 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6155 CXX="$ac_save_CXX $ac_arg"
6156 if ac_fn_cxx_try_compile "$LINENO"
6158 ac_cv_prog_cxx_cxx98=$ac_arg
6160 rm -f core conftest.err conftest.$ac_objext conftest.beam
6161 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6163 rm -f conftest.$ac_ext
6167 if test "x$ac_cv_prog_cxx_cxx98" = xno
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6170 printf "%s\n" "unsupported" >&6; }
6172 if test "x$ac_cv_prog_cxx_cxx98" = x
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6175 printf "%s\n" "none needed" >&6; }
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6178 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6179 CXX="$CXX $ac_cv_prog_cxx_cxx98"
6181 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6182 ac_prog_cxx_stdcxx=cxx98
6187 ac_cpp='$CPP $CPPFLAGS'
6188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192 depcc="$CXX" am_compiler_list=
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6195 printf %s "checking dependency style of $depcc... " >&6; }
6196 if test ${am_cv_CXX_dependencies_compiler_type+y}
6198 printf %s "(cached) " >&6
6200 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6201 # We make a subdir and do the tests there. Otherwise we can end up
6202 # making bogus files that we don't know about and never remove. For
6203 # instance it was reported that on HP-UX the gcc test will end up
6204 # making a dummy file named 'D' -- because '-MD' means "put the output
6208 # Copy depcomp to subdir because otherwise we won't find it if we're
6209 # using a relative directory.
6210 cp "$am_depcomp" conftest.dir
6212 # We will build objects and dependencies in a subdirectory because
6213 # it helps to detect inapplicable dependency modes. For instance
6214 # both Tru64's cc and ICC support -MD to output dependencies as a
6215 # side effect of compilation, but ICC will put the dependencies in
6216 # the current directory while Tru64 will put them in the object
6220 am_cv_CXX_dependencies_compiler_type=none
6221 if test "$am_compiler_list" = ""; then
6222 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6225 case " $depcc " in #(
6226 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6229 for depmode in $am_compiler_list; do
6230 # Setup a source with many dependencies, because some compilers
6231 # like to wrap large dependency lists on column 80 (with \), and
6232 # we should not choose a depcomp mode which is confused by this.
6234 # We need to recreate these files for each test, as the compiler may
6235 # overwrite some of them when testing with obscure command lines.
6236 # This happens at least with the AIX C compiler.
6238 for i in 1 2 3 4 5 6; do
6239 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6240 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6241 # Solaris 10 /bin/sh.
6242 echo '/* dummy */' > sub/conftst$i.h
6244 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6246 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6247 # mode. It turns out that the SunPro C++ compiler does not properly
6248 # handle '-M -o', and we need to detect this. Also, some Intel
6249 # versions had trouble with output in subdirs.
6250 am__obj=sub/conftest.${OBJEXT-o}
6251 am__minus_obj="-o $am__obj"
6254 # This depmode causes a compiler race in universal mode.
6255 test "$am__universal" = false || continue
6258 # After this tag, mechanisms are not by side-effect, so they'll
6259 # only be used when explicitly requested.
6260 if test "x$enable_dependency_tracking" = xyes; then
6266 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6267 # This compiler won't grok '-c -o', but also, the minuso test has
6268 # not run yet. These depmodes are late enough in the game, and
6269 # so weak that their functioning should not be impacted.
6270 am__obj=conftest.${OBJEXT-o}
6275 if depmode=$depmode \
6276 source=sub/conftest.c object=$am__obj \
6277 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6278 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6279 >/dev/null 2>conftest.err &&
6280 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6281 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6282 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6283 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6284 # icc doesn't choke on unknown options, it will just issue warnings
6285 # or remarks (even with -Werror). So we grep stderr for any message
6286 # that says an option was ignored or not supported.
6287 # When given -MP, icc 7.0 and 7.1 complain thusly:
6288 # icc: Command line warning: ignoring option '-M'; no argument required
6289 # The diagnosis changed in icc 8.0:
6290 # icc: Command line remark: option '-MP' not supported
6291 if (grep 'ignoring option' conftest.err ||
6292 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6293 am_cv_CXX_dependencies_compiler_type=$depmode
6302 am_cv_CXX_dependencies_compiler_type=none
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6307 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6308 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6311 test "x$enable_dependency_tracking" != xno \
6312 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6313 am__fastdepCXX_TRUE=
6314 am__fastdepCXX_FALSE='#'
6316 am__fastdepCXX_TRUE='#'
6317 am__fastdepCXX_FALSE=
6323 ac_cpp='$CPP $CPPFLAGS'
6324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
6329 printf %s "checking for C compiler vendor... " >&6; }
6330 if test ${ax_cv_c_compiler_vendor+y}
6332 printf %s "(cached) " >&6
6334 # note: don't check for gcc first since some other compilers define __GNUC__
6335 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
6336 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
6337 pathscale: __PATHCC__,__PATHSCALE__
6342 sun: __SUNPRO_C,__SUNPRO_CC
6343 hp: __HP_cc,__HP_aCC
6344 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
6345 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
6351 metrowerks: __MWERKS__
6356 for ventest in $vendors; do
6358 *:) vendor=$ventest; continue ;;
6359 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6376 if ac_fn_c_try_compile "$LINENO"
6380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6382 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
6386 printf "%s\n" "$ax_cv_c_compiler_vendor" >&6; }
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6389 printf %s "checking for a sed that does not truncate output... " >&6; }
6390 if test ${ac_cv_path_SED+y}
6392 printf %s "(cached) " >&6
6394 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6395 for ac_i in 1 2 3 4 5 6 7; do
6396 ac_script="$ac_script$as_nl$ac_script"
6398 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6399 { ac_script=; unset ac_script;}
6400 if test -z "$SED"; then
6401 ac_path_SED_found=false
6402 # Loop through the user's path and test for each of PROGNAME-LIST
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 case $as_dir in #(((
6410 *) as_dir=$as_dir/ ;;
6412 for ac_prog in sed gsed
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6416 as_fn_executable_p "$ac_path_SED" || continue
6417 # Check for GNU ac_path_SED and select it if it is found.
6418 # Check for GNU $ac_path_SED
6419 case `"$ac_path_SED" --version 2>&1` in
6421 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6424 printf %s 0123456789 >"conftest.in"
6427 cat "conftest.in" "conftest.in" >"conftest.tmp"
6428 mv "conftest.tmp" "conftest.in"
6429 cp "conftest.in" "conftest.nl"
6430 printf "%s\n" '' >> "conftest.nl"
6431 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6432 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6433 as_fn_arith $ac_count + 1 && ac_count=$as_val
6434 if test $ac_count -gt ${ac_path_SED_max-0}; then
6435 # Best one so far, save it but keep looking for a better one
6436 ac_cv_path_SED="$ac_path_SED"
6437 ac_path_SED_max=$ac_count
6439 # 10*(2^10) chars as input seems more than enough
6440 test $ac_count -gt 10 && break
6442 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6445 $ac_path_SED_found && break 3
6450 if test -z "$ac_cv_path_SED"; then
6451 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6459 printf "%s\n" "$ac_cv_path_SED" >&6; }
6460 SED="$ac_cv_path_SED"
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6466 printf %s "checking for C compiler version... " >&6; }
6467 if test ${ax_cv_c_compiler_version+y}
6469 printf %s "(cached) " >&6
6471 case $ax_cv_c_compiler_vendor in #(
6473 if ac_fn_c_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_c_compiler_version_major" ""
6477 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6478 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6479 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
6480 See \`config.log' for more details" "$LINENO" 5; }
6483 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_c_compiler_version_minor" ""
6487 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6488 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6489 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
6490 See \`config.log' for more details" "$LINENO" 5; }
6493 if ac_fn_c_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_c_compiler_version_patch" ""
6497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6498 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6499 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
6500 See \`config.log' for more details" "$LINENO" 5; }
6503 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507 /* end confdefs.h. */
6514 #if defined(__COMPILER_VER__)
6522 if ac_fn_c_try_compile "$LINENO"
6525 if ac_fn_c_compute_int "$LINENO" "__xlC__/100" "_ax_c_compiler_version_major" ""
6529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6531 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version
6532 See \`config.log' for more details" "$LINENO" 5; }
6535 if ac_fn_c_compute_int "$LINENO" "__xlC__%100" "_ax_c_compiler_version_minor" ""
6539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6540 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6541 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version
6542 See \`config.log' for more details" "$LINENO" 5; }
6545 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_c_compiler_version_patch" ""
6549 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6550 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6551 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version
6552 See \`config.log' for more details" "$LINENO" 5; }
6555 if ac_fn_c_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_c_compiler_version_build" ""
6559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6560 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6561 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version
6562 See \`config.log' for more details" "$LINENO" 5; }
6565 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build"
6569 if ac_fn_c_compute_int "$LINENO" "__xlC__%1000" "_ax_c_compiler_version_patch" ""
6573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6574 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6575 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version
6576 See \`config.log' for more details" "$LINENO" 5; }
6579 if ac_fn_c_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_c_compiler_version_minor" ""
6583 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6584 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6585 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version
6586 See \`config.log' for more details" "$LINENO" 5; }
6589 if ac_fn_c_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_c_compiler_version_major" ""
6593 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6594 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6595 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version
6596 See \`config.log' for more details" "$LINENO" 5; }
6599 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6606 if ac_fn_c_compute_int "$LINENO" "__PATHCC__" "_ax_c_compiler_version_major" ""
6610 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6611 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6612 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major
6613 See \`config.log' for more details" "$LINENO" 5; }
6616 if ac_fn_c_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_c_compiler_version_minor" ""
6620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6621 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6622 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor
6623 See \`config.log' for more details" "$LINENO" 5; }
6626 if ac_fn_c_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""
6630 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6631 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6632 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level
6633 See \`config.log' for more details" "$LINENO" 5; }
6636 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6640 if ac_fn_c_compute_int "$LINENO" "__clang_major__" "_ax_c_compiler_version_major" ""
6644 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6645 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6646 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major
6647 See \`config.log' for more details" "$LINENO" 5; }
6650 if ac_fn_c_compute_int "$LINENO" "__clang_minor__" "_ax_c_compiler_version_minor" ""
6654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6655 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6656 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor
6657 See \`config.log' for more details" "$LINENO" 5; }
6660 if ac_fn_c_compute_int "$LINENO" "__clang_patchlevel__" "_ax_c_compiler_version_patch" ""
6667 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6671 if ac_fn_c_compute_int "$LINENO" "_RELEASE" "_ax_c_compiler_version_major" ""
6675 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6676 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6677 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release
6678 See \`config.log' for more details" "$LINENO" 5; }
6681 if ac_fn_c_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_c_compiler_version_minor" ""
6685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6686 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6687 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor
6688 See \`config.log' for more details" "$LINENO" 5; }
6691 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
6695 if ac_fn_c_compute_int "$LINENO" "__FCC_VERSION" "ax_cv_c_compiler_version" ""
6699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6700 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6701 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSUunknown fujitsu release
6702 See \`config.log' for more details" "$LINENO" 5; }
6708 if ac_fn_c_compute_int "$LINENO" "__GNUC__" "_ax_c_compiler_version_major" ""
6712 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6713 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6714 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major
6715 See \`config.log' for more details" "$LINENO" 5; }
6718 if ac_fn_c_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_c_compiler_version_minor" ""
6722 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6723 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6724 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor
6725 See \`config.log' for more details" "$LINENO" 5; }
6728 if ac_fn_c_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""
6732 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6733 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6734 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level
6735 See \`config.log' for more details" "$LINENO" 5; }
6738 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6743 if ac_fn_c_compute_int "$LINENO" "!!(
6744 #if defined(__SUNPRO_CC)
6749 < 0x1000)" "_ax_c_compiler_version_until59" ""
6753 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6754 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6755 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version
6756 See \`config.log' for more details" "$LINENO" 5; }
6759 if test "X$_ax_c_compiler_version_until59" = X1
6761 if ac_fn_c_compute_int "$LINENO" "
6762 #if defined(__SUNPRO_CC)
6767 % 0x10" "_ax_c_compiler_version_patch" ""
6771 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6772 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6773 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version
6774 See \`config.log' for more details" "$LINENO" 5; }
6777 if ac_fn_c_compute_int "$LINENO" "(
6778 #if defined(__SUNPRO_CC)
6783 / 0x10) % 0x10" "_ax_c_compiler_version_minor" ""
6787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6788 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6789 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version
6790 See \`config.log' for more details" "$LINENO" 5; }
6793 if ac_fn_c_compute_int "$LINENO" "(
6794 #if defined(__SUNPRO_CC)
6799 / 0x100)" "_ax_c_compiler_version_major" ""
6803 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6804 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6805 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version
6806 See \`config.log' for more details" "$LINENO" 5; }
6811 if ac_fn_c_compute_int "$LINENO" "
6812 #if defined(__SUNPRO_CC)
6817 % 0x10" "_ax_c_compiler_version_patch" ""
6821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6822 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6823 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version
6824 See \`config.log' for more details" "$LINENO" 5; }
6827 if ac_fn_c_compute_int "$LINENO" "(
6828 #if defined(__SUNPRO_CC)
6833 / 0x100) % 0x100" "_ax_c_compiler_version_minor" ""
6837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6838 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6839 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version
6840 See \`config.log' for more details" "$LINENO" 5; }
6843 if ac_fn_c_compute_int "$LINENO" "(
6844 #if defined(__SUNPRO_CC)
6849 / 0x1000)" "_ax_c_compiler_version_major" ""
6853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6854 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6855 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version
6856 See \`config.log' for more details" "$LINENO" 5; }
6861 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6866 if ac_fn_c_compute_int "$LINENO" "!!(
6867 #if defined(__HP_cc)
6872 <= 1)" "_ax_c_compiler_version_untilA0121" ""
6876 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6877 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6878 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version
6879 See \`config.log' for more details" "$LINENO" 5; }
6882 if test "X$_ax_c_compiler_version_untilA0121" = X1
6884 ax_cv_c_compiler_version="01.21.00"
6887 if ac_fn_c_compute_int "$LINENO" "(
6888 #if defined(__HP_cc)
6893 % 100)" "_ax_c_compiler_version_patch" ""
6897 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6898 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6899 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version
6900 See \`config.log' for more details" "$LINENO" 5; }
6903 if ac_fn_c_compute_int "$LINENO" "((
6904 #if defined(__HP_cc)
6909 / 100)%100)" "_ax_c_compiler_version_minor" ""
6913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6914 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6915 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version
6916 See \`config.log' for more details" "$LINENO" 5; }
6919 if ac_fn_c_compute_int "$LINENO" "((
6920 #if defined(__HP_cc)
6925 / 10000)%100)" "_ax_c_compiler_version_major" ""
6929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6930 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6931 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version
6932 See \`config.log' for more details" "$LINENO" 5; }
6935 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6941 if ac_fn_c_compute_int "$LINENO" "(
6942 #if defined(__DECC_VER)
6947 % 10000)" "_ax_c_compiler_version_patch" ""
6951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6953 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version
6954 See \`config.log' for more details" "$LINENO" 5; }
6957 if ac_fn_c_compute_int "$LINENO" "((
6958 #if defined(__DECC_VER)
6963 / 100000UL)%100)" "_ax_c_compiler_version_minor" ""
6967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6968 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6969 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version
6970 See \`config.log' for more details" "$LINENO" 5; }
6973 if ac_fn_c_compute_int "$LINENO" "((
6974 #if defined(__DECC_VER)
6979 / 10000000UL)%100)" "_ax_c_compiler_version_major" ""
6983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6985 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version
6986 See \`config.log' for more details" "$LINENO" 5; }
6989 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
7001 #if defined(__TURBOC__)
7011 if ac_fn_c_try_compile "$LINENO"
7013 if ac_fn_c_compute_int "$LINENO" "
7014 #if defined(__TURBOC__)
7019 " "_ax_c_compiler_version_turboc_raw" ""
7023 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7024 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7025 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version
7026 See \`config.log' for more details" "$LINENO" 5; }
7029 if test $_ax_c_compiler_version_turboc_raw -lt 661 || test $_ax_c_compiler_version_turboc_raw -gt 1023
7031 if ac_fn_c_compute_int "$LINENO" "
7032 #if defined(__TURBOC__)
7037 % 0x100" "_ax_c_compiler_version_minor" ""
7041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7042 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7043 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version
7044 See \`config.log' for more details" "$LINENO" 5; }
7047 if ac_fn_c_compute_int "$LINENO" "(
7048 #if defined(__TURBOC__)
7053 /0x100)%0x100" "_ax_c_compiler_version_major" ""
7057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7058 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7059 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version
7060 See \`config.log' for more details" "$LINENO" 5; }
7063 ax_cv_c_compiler_version="0turboc:$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
7065 case $_ax_c_compiler_version_turboc_raw in #(
7067 ax_cv_c_compiler_version="0turboc:1.00" ;; #(
7069 ax_cv_c_compiler_version="0turboc:1.01" ;; #(
7071 ax_cv_c_compiler_version="0turboc:2.00" ;; #(
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5
7075 printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&2;}
7076 ax_cv_c_compiler_version=""
7085 if ac_fn_c_compute_int "$LINENO" "
7086 #if defined(__BORLANDC__)
7091 " "_ax_c_compiler_version_borlandc_raw" ""
7095 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7096 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7097 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version
7098 See \`config.log' for more details" "$LINENO" 5; }
7101 case $_ax_c_compiler_version_borlandc_raw in #(
7103 ax_cv_c_compiler_version="1borlanc:2.00" ;; #(
7105 ax_cv_c_compiler_version="1borlanc:3.00" ;; #(
7107 ax_cv_c_compiler_version="1borlanc:3.00" ;; #(
7109 ax_cv_c_compiler_version="1borlanc:3.1" ;; #(
7111 ax_cv_c_compiler_version="1borlanc:4.0" ;; #(
7113 ax_cv_c_compiler_version="1borlanc:5.0" ;; #(
7115 ax_cv_c_compiler_version="1borlanc:5.02" ;; #(
7117 ax_cv_c_compiler_version="2cppbuilder:3.0" ;; #(
7119 ax_cv_c_compiler_version="2cppbuilder:4.0" ;; #(
7121 ax_cv_c_compiler_version="3borlancpp:5.5" ;; #(
7123 ax_cv_c_compiler_version="3borlancpp:5.51" ;; #(
7125 ax_cv_c_compiler_version="3borlancpp:5.6.4" ;; #(
7127 ax_cv_c_compiler_version="4cppbuilder:2006" ;; #(
7129 ax_cv_c_compiler_version="4cppbuilder:2007" ;; #(
7131 ax_cv_c_compiler_version="4cppbuilder:2009" ;; #(
7133 ax_cv_c_compiler_version="4cppbuilder:2010" ;; #(
7135 ax_cv_c_compiler_version="5xe" ;; #(
7137 ax_cv_c_compiler_version="5xe:2" ;; #(
7139 ax_cv_c_compiler_version="5xe:3" ;; #(
7141 ax_cv_c_compiler_version="5xe:4" ;; #(
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&5
7145 printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_c_compiler_version_borlandc_raw please report bug" >&2;}
7150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 if ac_fn_c_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_c_compiler_version_minor" ""
7157 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7158 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7159 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version
7160 See \`config.log' for more details" "$LINENO" 5; }
7163 if ac_fn_c_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_c_compiler_version_major" ""
7167 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7168 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7169 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version
7170 See \`config.log' for more details" "$LINENO" 5; }
7173 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
7177 if ac_fn_c_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_c_compiler_version_patch" ""
7181 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7183 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version
7184 See \`config.log' for more details" "$LINENO" 5; }
7187 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_c_compiler_version_minor" ""
7191 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7192 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7193 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version
7194 See \`config.log' for more details" "$LINENO" 5; }
7197 if ac_fn_c_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_c_compiler_version_major" ""
7201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7202 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7203 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version
7204 See \`config.log' for more details" "$LINENO" 5; }
7207 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7212 if ac_fn_c_compute_int "$LINENO" "
7213 #if defined(_COMPILER_VERSION)
7216 _SGI_COMPILER_VERSION
7218 %10" "_ax_c_compiler_version_patch" ""
7222 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7223 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7224 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version
7225 See \`config.log' for more details" "$LINENO" 5; }
7228 if ac_fn_c_compute_int "$LINENO" "(
7229 #if defined(_COMPILER_VERSION)
7232 _SGI_COMPILER_VERSION
7234 /10)%10" "_ax_c_compiler_version_minor" ""
7238 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7239 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7240 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version
7241 See \`config.log' for more details" "$LINENO" 5; }
7244 if ac_fn_c_compute_int "$LINENO" "(
7245 #if defined(_COMPILER_VERSION)
7248 _SGI_COMPILER_VERSION
7250 /100)%10" "_ax_c_compiler_version_major" ""
7254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7256 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version
7257 See \`config.log' for more details" "$LINENO" 5; }
7260 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7264 if ac_fn_c_compute_int "$LINENO" "_MSC_VER%100" "_ax_c_compiler_version_minor" ""
7268 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7269 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7270 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version
7271 See \`config.log' for more details" "$LINENO" 5; }
7274 if ac_fn_c_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_c_compiler_version_major" ""
7278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7279 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7280 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version
7281 See \`config.log' for more details" "$LINENO" 5; }
7284 _ax_c_compiler_version_patch=0
7285 _ax_c_compiler_version_build=0
7286 # special case for version 6
7287 if test "X$_ax_c_compiler_version_major" = "X12"
7289 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""
7293 _ax_c_compiler_version_patch=0
7298 if test "X$_ax_c_compiler_version_major" = "X13"
7300 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_c_compiler_version_patch" ""
7304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7305 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7306 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version
7307 See \`config.log' for more details" "$LINENO" 5; }
7313 if test $_ax_c_compiler_version_major -ge 14
7315 if ac_fn_c_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_c_compiler_version_patch" ""
7319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7320 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7321 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version
7322 See \`config.log' for more details" "$LINENO" 5; }
7327 if test $_ax_c_compiler_version_major -ge 15
7329 if ac_fn_c_compute_int "$LINENO" "_MSC_BUILD" "_ax_c_compiler_version_build" ""
7333 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7334 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7335 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version
7336 See \`config.log' for more details" "$LINENO" 5; }
7341 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch.$_ax_c_compiler_version_build"
7344 if ac_fn_c_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_c_compiler_version_patch" ""
7348 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7349 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7350 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version
7351 See \`config.log' for more details" "$LINENO" 5; }
7354 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_c_compiler_version_minor" ""
7358 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7359 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7360 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version
7361 See \`config.log' for more details" "$LINENO" 5; }
7364 if ac_fn_c_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_c_compiler_version_major" ""
7368 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7369 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7370 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version
7371 See \`config.log' for more details" "$LINENO" 5; }
7374 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7377 if ac_fn_c_compute_int "$LINENO" "__WATCOMC__%100" "_ax_c_compiler_version_minor" ""
7381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7382 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7383 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version
7384 See \`config.log' for more details" "$LINENO" 5; }
7387 if ac_fn_c_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_c_compiler_version_major" ""
7391 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7392 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7393 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version
7394 See \`config.log' for more details" "$LINENO" 5; }
7397 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor"
7401 if ac_fn_c_compute_int "$LINENO" "__PGIC__" "_ax_c_compiler_version_major" ""
7405 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7406 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7407 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major
7408 See \`config.log' for more details" "$LINENO" 5; }
7411 if ac_fn_c_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_c_compiler_version_minor" ""
7415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7417 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor
7418 See \`config.log' for more details" "$LINENO" 5; }
7421 if ac_fn_c_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_c_compiler_version_patch" ""
7425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7426 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7427 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level
7428 See \`config.log' for more details" "$LINENO" 5; }
7431 ax_cv_c_compiler_version="$_ax_c_compiler_version_major.$_ax_c_compiler_version_minor.$_ax_c_compiler_version_patch"
7435 ax_cv_c_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'`
7438 ax_cv_c_compiler_version="" ;;
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_version" >&5
7443 printf "%s\n" "$ax_cv_c_compiler_version" >&6; }
7447 ac_cpp='$CXXCPP $CPPFLAGS'
7448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
7454 printf %s "checking for C++ compiler vendor... " >&6; }
7455 if test ${ax_cv_cxx_compiler_vendor+y}
7457 printf %s "(cached) " >&6
7459 # note: don't check for gcc first since some other compilers define __GNUC__
7460 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7461 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7462 pathscale: __PATHCC__,__PATHSCALE__
7467 sun: __SUNPRO_C,__SUNPRO_CC
7468 hp: __HP_cc,__HP_aCC
7469 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7470 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
7476 metrowerks: __MWERKS__
7481 for ventest in $vendors; do
7483 *:) vendor=$ventest; continue ;;
7484 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
7486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487 /* end confdefs.h. */
7501 if ac_fn_cxx_try_compile "$LINENO"
7505 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7507 ax_cv_cxx_compiler_vendor=`echo $vendor | cut -d: -f1`
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
7511 printf "%s\n" "$ax_cv_cxx_compiler_vendor" >&6; }
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7516 printf %s "checking for C++ compiler version... " >&6; }
7517 if test ${ax_cv_cxx_compiler_version+y}
7519 printf %s "(cached) " >&6
7521 case $ax_cv_cxx_compiler_vendor in #(
7523 if ac_fn_cxx_compute_int "$LINENO" "__INTEL_COMPILER/100" "_ax_cxx_compiler_version_major" ""
7527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7528 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7529 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
7530 See \`config.log' for more details" "$LINENO" 5; }
7533 if ac_fn_cxx_compute_int "$LINENO" "(__INTEL_COMPILER%100)/10" "_ax_cxx_compiler_version_minor" ""
7537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7538 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7539 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
7540 See \`config.log' for more details" "$LINENO" 5; }
7543 if ac_fn_cxx_compute_int "$LINENO" "(__INTEL_COMPILER%10)" "_ax_cxx_compiler_version_patch" ""
7547 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7548 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7549 as_fn_error $? "_AX_COMPILER_VERSION_INTEL unknown intel compiler version
7550 See \`config.log' for more details" "$LINENO" 5; }
7553 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7564 #if defined(__COMPILER_VER__)
7572 if ac_fn_cxx_try_compile "$LINENO"
7575 if ac_fn_cxx_compute_int "$LINENO" "__xlC__/100" "_ax_cxx_compiler_version_major" ""
7579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7580 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7581 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version
7582 See \`config.log' for more details" "$LINENO" 5; }
7585 if ac_fn_cxx_compute_int "$LINENO" "__xlC__%100" "_ax_cxx_compiler_version_minor" ""
7589 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7590 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7591 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version
7592 See \`config.log' for more details" "$LINENO" 5; }
7595 if ac_fn_cxx_compute_int "$LINENO" "__xlC_ver__/0x100" "_ax_cxx_compiler_version_patch" ""
7599 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7600 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7601 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version
7602 See \`config.log' for more details" "$LINENO" 5; }
7605 if ac_fn_cxx_compute_int "$LINENO" "__xlC_ver__%0x100" "_ax_cxx_compiler_version_build" ""
7609 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7611 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler build version
7612 See \`config.log' for more details" "$LINENO" 5; }
7615 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch.$_ax_cxx_compiler_version_build"
7619 if ac_fn_cxx_compute_int "$LINENO" "__xlC__%1000" "_ax_cxx_compiler_version_patch" ""
7623 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7624 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7625 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler patch version
7626 See \`config.log' for more details" "$LINENO" 5; }
7629 if ac_fn_cxx_compute_int "$LINENO" "(__xlC__/10000)%10" "_ax_cxx_compiler_version_minor" ""
7633 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7634 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7635 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler minor version
7636 See \`config.log' for more details" "$LINENO" 5; }
7639 if ac_fn_cxx_compute_int "$LINENO" "(__xlC__/100000)%10" "_ax_cxx_compiler_version_major" ""
7643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7644 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7645 as_fn_error $? "_AX_COMPILER_VERSION_IBM unknown IBM compiler major version
7646 See \`config.log' for more details" "$LINENO" 5; }
7649 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7656 if ac_fn_cxx_compute_int "$LINENO" "__PATHCC__" "_ax_cxx_compiler_version_major" ""
7660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7661 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7662 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale major
7663 See \`config.log' for more details" "$LINENO" 5; }
7666 if ac_fn_cxx_compute_int "$LINENO" "__PATHCC_MINOR__" "_ax_cxx_compiler_version_minor" ""
7670 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7671 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7672 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale minor
7673 See \`config.log' for more details" "$LINENO" 5; }
7676 if ac_fn_cxx_compute_int "$LINENO" "__PATHCC_PATCHLEVEL__" "_ax_cxx_compiler_version_patch" ""
7680 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7681 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7682 as_fn_error $? "_AX_COMPILER_VERSION_PATHSCALE unknown pathscale patch level
7683 See \`config.log' for more details" "$LINENO" 5; }
7686 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
7690 if ac_fn_cxx_compute_int "$LINENO" "__clang_major__" "_ax_cxx_compiler_version_major" ""
7694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7696 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang major
7697 See \`config.log' for more details" "$LINENO" 5; }
7700 if ac_fn_cxx_compute_int "$LINENO" "__clang_minor__" "_ax_cxx_compiler_version_minor" ""
7704 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7705 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7706 as_fn_error $? "_AX_COMPILER_VERSION_CLANG unknown clang minor
7707 See \`config.log' for more details" "$LINENO" 5; }
7710 if ac_fn_cxx_compute_int "$LINENO" "__clang_patchlevel__" "_ax_cxx_compiler_version_patch" ""
7717 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
7721 if ac_fn_cxx_compute_int "$LINENO" "_RELEASE" "_ax_cxx_compiler_version_major" ""
7725 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7726 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7727 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc release
7728 See \`config.log' for more details" "$LINENO" 5; }
7731 if ac_fn_cxx_compute_int "$LINENO" "_RELEASE_MINOR" "_ax_cxx_compiler_version_minor" ""
7735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7736 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7737 as_fn_error $? "_AX_COMPILER_VERSION_CRAY unknown crayc minor
7738 See \`config.log' for more details" "$LINENO" 5; }
7741 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
7745 if ac_fn_cxx_compute_int "$LINENO" "__FCC_VERSION" "ax_cv_cxx_compiler_version" ""
7749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7750 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7751 as_fn_error $? "_AX_COMPILER_VERSION_FUJITSUunknown fujitsu release
7752 See \`config.log' for more details" "$LINENO" 5; }
7758 if ac_fn_cxx_compute_int "$LINENO" "__GNUC__" "_ax_cxx_compiler_version_major" ""
7762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7763 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7764 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc major
7765 See \`config.log' for more details" "$LINENO" 5; }
7768 if ac_fn_cxx_compute_int "$LINENO" "__GNUC_MINOR__" "_ax_cxx_compiler_version_minor" ""
7772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7773 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7774 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc minor
7775 See \`config.log' for more details" "$LINENO" 5; }
7778 if ac_fn_cxx_compute_int "$LINENO" "__GNUC_PATCHLEVEL__" "_ax_cxx_compiler_version_patch" ""
7782 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7783 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7784 as_fn_error $? "_AX_COMPILER_VERSION_GNU unknown gcc patch level
7785 See \`config.log' for more details" "$LINENO" 5; }
7788 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
7793 if ac_fn_cxx_compute_int "$LINENO" "!!(
7794 #if defined(__SUNPRO_CC)
7799 < 0x1000)" "_ax_cxx_compiler_version_until59" ""
7803 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7804 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7805 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun release version
7806 See \`config.log' for more details" "$LINENO" 5; }
7809 if test "X$_ax_cxx_compiler_version_until59" = X1
7811 if ac_fn_cxx_compute_int "$LINENO" "
7812 #if defined(__SUNPRO_CC)
7817 % 0x10" "_ax_cxx_compiler_version_patch" ""
7821 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7822 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7823 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version
7824 See \`config.log' for more details" "$LINENO" 5; }
7827 if ac_fn_cxx_compute_int "$LINENO" "(
7828 #if defined(__SUNPRO_CC)
7833 / 0x10) % 0x10" "_ax_cxx_compiler_version_minor" ""
7837 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7838 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7839 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version
7840 See \`config.log' for more details" "$LINENO" 5; }
7843 if ac_fn_cxx_compute_int "$LINENO" "(
7844 #if defined(__SUNPRO_CC)
7849 / 0x100)" "_ax_cxx_compiler_version_major" ""
7853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7854 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7855 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version
7856 See \`config.log' for more details" "$LINENO" 5; }
7861 if ac_fn_cxx_compute_int "$LINENO" "
7862 #if defined(__SUNPRO_CC)
7867 % 0x10" "_ax_cxx_compiler_version_patch" ""
7871 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7872 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7873 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun patch version
7874 See \`config.log' for more details" "$LINENO" 5; }
7877 if ac_fn_cxx_compute_int "$LINENO" "(
7878 #if defined(__SUNPRO_CC)
7883 / 0x100) % 0x100" "_ax_cxx_compiler_version_minor" ""
7887 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7888 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7889 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun minor version
7890 See \`config.log' for more details" "$LINENO" 5; }
7893 if ac_fn_cxx_compute_int "$LINENO" "(
7894 #if defined(__SUNPRO_CC)
7899 / 0x1000)" "_ax_cxx_compiler_version_major" ""
7903 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7904 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7905 as_fn_error $? "_AX_COMPILER_VERSION_SUN unknown sun major version
7906 See \`config.log' for more details" "$LINENO" 5; }
7911 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
7916 if ac_fn_cxx_compute_int "$LINENO" "!!(
7917 #if defined(__HP_cc)
7922 <= 1)" "_ax_cxx_compiler_version_untilA0121" ""
7926 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7927 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7928 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version
7929 See \`config.log' for more details" "$LINENO" 5; }
7932 if test "X$_ax_cxx_compiler_version_untilA0121" = X1
7934 ax_cv_cxx_compiler_version="01.21.00"
7937 if ac_fn_cxx_compute_int "$LINENO" "(
7938 #if defined(__HP_cc)
7943 % 100)" "_ax_cxx_compiler_version_patch" ""
7947 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7948 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7949 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp release version
7950 See \`config.log' for more details" "$LINENO" 5; }
7953 if ac_fn_cxx_compute_int "$LINENO" "((
7954 #if defined(__HP_cc)
7959 / 100)%100)" "_ax_cxx_compiler_version_minor" ""
7963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7965 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp minor version
7966 See \`config.log' for more details" "$LINENO" 5; }
7969 if ac_fn_cxx_compute_int "$LINENO" "((
7970 #if defined(__HP_cc)
7975 / 10000)%100)" "_ax_cxx_compiler_version_major" ""
7979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7980 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7981 as_fn_error $? "_AX_COMPILER_VERSION_HP unknown hp major version
7982 See \`config.log' for more details" "$LINENO" 5; }
7985 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
7991 if ac_fn_cxx_compute_int "$LINENO" "(
7992 #if defined(__DECC_VER)
7997 % 10000)" "_ax_cxx_compiler_version_patch" ""
8001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8002 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8003 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec release version
8004 See \`config.log' for more details" "$LINENO" 5; }
8007 if ac_fn_cxx_compute_int "$LINENO" "((
8008 #if defined(__DECC_VER)
8013 / 100000UL)%100)" "_ax_cxx_compiler_version_minor" ""
8017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8018 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8019 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec minor version
8020 See \`config.log' for more details" "$LINENO" 5; }
8023 if ac_fn_cxx_compute_int "$LINENO" "((
8024 #if defined(__DECC_VER)
8029 / 10000000UL)%100)" "_ax_cxx_compiler_version_major" ""
8033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8034 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8035 as_fn_error $? "_AX_COMPILER_VERSION_DEC unknown dec major version
8036 See \`config.log' for more details" "$LINENO" 5; }
8039 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8051 #if defined(__TURBOC__)
8061 if ac_fn_cxx_try_compile "$LINENO"
8063 if ac_fn_cxx_compute_int "$LINENO" "
8064 #if defined(__TURBOC__)
8069 " "_ax_cxx_compiler_version_turboc_raw" ""
8073 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8074 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8075 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc version
8076 See \`config.log' for more details" "$LINENO" 5; }
8079 if test $_ax_cxx_compiler_version_turboc_raw -lt 661 || test $_ax_cxx_compiler_version_turboc_raw -gt 1023
8081 if ac_fn_cxx_compute_int "$LINENO" "
8082 #if defined(__TURBOC__)
8087 % 0x100" "_ax_cxx_compiler_version_minor" ""
8091 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8092 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8093 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc minor version
8094 See \`config.log' for more details" "$LINENO" 5; }
8097 if ac_fn_cxx_compute_int "$LINENO" "(
8098 #if defined(__TURBOC__)
8103 /0x100)%0x100" "_ax_cxx_compiler_version_major" ""
8107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8108 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8109 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown turboc major version
8110 See \`config.log' for more details" "$LINENO" 5; }
8113 ax_cv_cxx_compiler_version="0turboc:$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
8115 case $_ax_cxx_compiler_version_turboc_raw in #(
8117 ax_cv_cxx_compiler_version="0turboc:1.00" ;; #(
8119 ax_cv_cxx_compiler_version="0turboc:1.01" ;; #(
8121 ax_cv_cxx_compiler_version="0turboc:2.00" ;; #(
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&5
8125 printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] unknown turboc version between 0x295 and 0x400 please report bug" >&2;}
8126 ax_cv_cxx_compiler_version=""
8135 if ac_fn_cxx_compute_int "$LINENO" "
8136 #if defined(__BORLANDC__)
8141 " "_ax_cxx_compiler_version_borlandc_raw" ""
8145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8146 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8147 as_fn_error $? "_AX_COMPILER_VERSION_BORLAND unknown borlandc version
8148 See \`config.log' for more details" "$LINENO" 5; }
8151 case $_ax_cxx_compiler_version_borlandc_raw in #(
8153 ax_cv_cxx_compiler_version="1borlanc:2.00" ;; #(
8155 ax_cv_cxx_compiler_version="1borlanc:3.00" ;; #(
8157 ax_cv_cxx_compiler_version="1borlanc:3.00" ;; #(
8159 ax_cv_cxx_compiler_version="1borlanc:3.1" ;; #(
8161 ax_cv_cxx_compiler_version="1borlanc:4.0" ;; #(
8163 ax_cv_cxx_compiler_version="1borlanc:5.0" ;; #(
8165 ax_cv_cxx_compiler_version="1borlanc:5.02" ;; #(
8167 ax_cv_cxx_compiler_version="2cppbuilder:3.0" ;; #(
8169 ax_cv_cxx_compiler_version="2cppbuilder:4.0" ;; #(
8171 ax_cv_cxx_compiler_version="3borlancpp:5.5" ;; #(
8173 ax_cv_cxx_compiler_version="3borlancpp:5.51" ;; #(
8175 ax_cv_cxx_compiler_version="3borlancpp:5.6.4" ;; #(
8177 ax_cv_cxx_compiler_version="4cppbuilder:2006" ;; #(
8179 ax_cv_cxx_compiler_version="4cppbuilder:2007" ;; #(
8181 ax_cv_cxx_compiler_version="4cppbuilder:2009" ;; #(
8183 ax_cv_cxx_compiler_version="4cppbuilder:2010" ;; #(
8185 ax_cv_cxx_compiler_version="5xe" ;; #(
8187 ax_cv_cxx_compiler_version="5xe:2" ;; #(
8189 ax_cv_cxx_compiler_version="5xe:3" ;; #(
8191 ax_cv_cxx_compiler_version="5xe:4" ;; #(
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_cxx_compiler_version_borlandc_raw please report bug" >&5
8195 printf "%s\n" "$as_me: WARNING: [_AX_COMPILER_VERSION_BORLAND] Unknown borlandc compiler version $_ax_cxx_compiler_version_borlandc_raw please report bug" >&2;}
8200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8203 if ac_fn_cxx_compute_int "$LINENO" "__COMO_VERSION__%100" "_ax_cxx_compiler_version_minor" ""
8207 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8208 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8209 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler minor version
8210 See \`config.log' for more details" "$LINENO" 5; }
8213 if ac_fn_cxx_compute_int "$LINENO" "(__COMO_VERSION__/100)%10" "_ax_cxx_compiler_version_major" ""
8217 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8218 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8219 as_fn_error $? "_AX_COMPILER_VERSION_COMEAU unknown comeau compiler major version
8220 See \`config.log' for more details" "$LINENO" 5; }
8223 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
8227 if ac_fn_cxx_compute_int "$LINENO" "__KCC_VERSION%100" "_ax_cxx_compiler_version_patch" ""
8231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8232 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8233 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler patch version
8234 See \`config.log' for more details" "$LINENO" 5; }
8237 if ac_fn_cxx_compute_int "$LINENO" "(__KCC_VERSION/100)%10" "_ax_cxx_compiler_version_minor" ""
8241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8242 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8243 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler minor version
8244 See \`config.log' for more details" "$LINENO" 5; }
8247 if ac_fn_cxx_compute_int "$LINENO" "(__KCC_VERSION/1000)%10" "_ax_cxx_compiler_version_major" ""
8251 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8252 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8253 as_fn_error $? "_AX_COMPILER_VERSION_KAI unknown kay compiler major version
8254 See \`config.log' for more details" "$LINENO" 5; }
8257 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
8262 if ac_fn_cxx_compute_int "$LINENO" "
8263 #if defined(_COMPILER_VERSION)
8266 _SGI_COMPILER_VERSION
8268 %10" "_ax_cxx_compiler_version_patch" ""
8272 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8273 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8274 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler patch version
8275 See \`config.log' for more details" "$LINENO" 5; }
8278 if ac_fn_cxx_compute_int "$LINENO" "(
8279 #if defined(_COMPILER_VERSION)
8282 _SGI_COMPILER_VERSION
8284 /10)%10" "_ax_cxx_compiler_version_minor" ""
8288 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8289 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8290 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler minor version
8291 See \`config.log' for more details" "$LINENO" 5; }
8294 if ac_fn_cxx_compute_int "$LINENO" "(
8295 #if defined(_COMPILER_VERSION)
8298 _SGI_COMPILER_VERSION
8300 /100)%10" "_ax_cxx_compiler_version_major" ""
8304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8305 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8306 as_fn_error $? "_AX_COMPILER_VERSION_SGI unknown SGI compiler major version
8307 See \`config.log' for more details" "$LINENO" 5; }
8310 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
8314 if ac_fn_cxx_compute_int "$LINENO" "_MSC_VER%100" "_ax_cxx_compiler_version_minor" ""
8318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8319 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8320 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler minor version
8321 See \`config.log' for more details" "$LINENO" 5; }
8324 if ac_fn_cxx_compute_int "$LINENO" "(_MSC_VER/100)%100" "_ax_cxx_compiler_version_major" ""
8328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8329 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8330 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler major version
8331 See \`config.log' for more details" "$LINENO" 5; }
8334 _ax_cxx_compiler_version_patch=0
8335 _ax_cxx_compiler_version_build=0
8336 # special case for version 6
8337 if test "X$_ax_cxx_compiler_version_major" = "X12"
8339 if ac_fn_cxx_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_cxx_compiler_version_patch" ""
8343 _ax_cxx_compiler_version_patch=0
8348 if test "X$_ax_cxx_compiler_version_major" = "X13"
8350 if ac_fn_cxx_compute_int "$LINENO" "_MSC_FULL_VER%1000" "_ax_cxx_compiler_version_patch" ""
8354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8355 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8356 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version
8357 See \`config.log' for more details" "$LINENO" 5; }
8363 if test $_ax_cxx_compiler_version_major -ge 14
8365 if ac_fn_cxx_compute_int "$LINENO" "_MSC_FULL_VER%10000" "_ax_cxx_compiler_version_patch" ""
8369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8370 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8371 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler patch version
8372 See \`config.log' for more details" "$LINENO" 5; }
8377 if test $_ax_cxx_compiler_version_major -ge 15
8379 if ac_fn_cxx_compute_int "$LINENO" "_MSC_BUILD" "_ax_cxx_compiler_version_build" ""
8383 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8384 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8385 as_fn_error $? "_AX_COMPILER_VERSION_MICROSOFT unknown microsoft compiler build version
8386 See \`config.log' for more details" "$LINENO" 5; }
8391 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch.$_ax_cxx_compiler_version_build"
8394 if ac_fn_cxx_compute_int "$LINENO" "__MWERKS__%0x100" "_ax_cxx_compiler_version_patch" ""
8398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8400 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler patch version
8401 See \`config.log' for more details" "$LINENO" 5; }
8404 if ac_fn_cxx_compute_int "$LINENO" "(__MWERKS__/0x100)%0x10" "_ax_cxx_compiler_version_minor" ""
8408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8409 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8410 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler minor version
8411 See \`config.log' for more details" "$LINENO" 5; }
8414 if ac_fn_cxx_compute_int "$LINENO" "(__MWERKS__/0x1000)%0x10" "_ax_cxx_compiler_version_major" ""
8418 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8419 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8420 as_fn_error $? "_AX_COMPILER_VERSION_METROWERKS unknown metrowerks compiler major version
8421 See \`config.log' for more details" "$LINENO" 5; }
8424 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
8427 if ac_fn_cxx_compute_int "$LINENO" "__WATCOMC__%100" "_ax_cxx_compiler_version_minor" ""
8431 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8432 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8433 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler minor version
8434 See \`config.log' for more details" "$LINENO" 5; }
8437 if ac_fn_cxx_compute_int "$LINENO" "(__WATCOMC__/100)%100" "_ax_cxx_compiler_version_major" ""
8441 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8442 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8443 as_fn_error $? "_AX_COMPILER_VERSION_WATCOM unknown watcom compiler major version
8444 See \`config.log' for more details" "$LINENO" 5; }
8447 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor"
8451 if ac_fn_cxx_compute_int "$LINENO" "__PGIC__" "_ax_cxx_compiler_version_major" ""
8455 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8456 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8457 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi major
8458 See \`config.log' for more details" "$LINENO" 5; }
8461 if ac_fn_cxx_compute_int "$LINENO" "__PGIC_MINOR__" "_ax_cxx_compiler_version_minor" ""
8465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8466 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8467 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi minor
8468 See \`config.log' for more details" "$LINENO" 5; }
8471 if ac_fn_cxx_compute_int "$LINENO" "__PGIC_PATCHLEVEL__" "_ax_cxx_compiler_version_patch" ""
8475 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8476 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8477 as_fn_error $? "_AX_COMPILER_VERSION_PORTLAND unknown pgi patch level
8478 See \`config.log' for more details" "$LINENO" 5; }
8481 ax_cv_cxx_compiler_version="$_ax_cxx_compiler_version_major.$_ax_cxx_compiler_version_minor.$_ax_cxx_compiler_version_patch"
8485 ax_cv_cxx_compiler_version=`tcc -v | $SED 's/^[ ]*tcc[ ]\+version[ ]\+\([0-9.]\+\).*/\1/g'`
8488 ax_cv_cxx_compiler_version="" ;;
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_version" >&5
8493 printf "%s\n" "$ax_cv_cxx_compiler_version" >&6; }
8496 ac_cpp='$CPP $CPPFLAGS'
8497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8503 printf %s "checking for a sed that does not truncate output... " >&6; }
8504 if test ${ac_cv_path_SED+y}
8506 printf %s "(cached) " >&6
8508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8509 for ac_i in 1 2 3 4 5 6 7; do
8510 ac_script="$ac_script$as_nl$ac_script"
8512 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8513 { ac_script=; unset ac_script;}
8514 if test -z "$SED"; then
8515 ac_path_SED_found=false
8516 # Loop through the user's path and test for each of PROGNAME-LIST
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 case $as_dir in #(((
8524 *) as_dir=$as_dir/ ;;
8526 for ac_prog in sed gsed
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8530 as_fn_executable_p "$ac_path_SED" || continue
8531 # Check for GNU ac_path_SED and select it if it is found.
8532 # Check for GNU $ac_path_SED
8533 case `"$ac_path_SED" --version 2>&1` in
8535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8538 printf %s 0123456789 >"conftest.in"
8541 cat "conftest.in" "conftest.in" >"conftest.tmp"
8542 mv "conftest.tmp" "conftest.in"
8543 cp "conftest.in" "conftest.nl"
8544 printf "%s\n" '' >> "conftest.nl"
8545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8547 as_fn_arith $ac_count + 1 && ac_count=$as_val
8548 if test $ac_count -gt ${ac_path_SED_max-0}; then
8549 # Best one so far, save it but keep looking for a better one
8550 ac_cv_path_SED="$ac_path_SED"
8551 ac_path_SED_max=$ac_count
8553 # 10*(2^10) chars as input seems more than enough
8554 test $ac_count -gt 10 && break
8556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8559 $ac_path_SED_found && break 3
8564 if test -z "$ac_cv_path_SED"; then
8565 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8573 printf "%s\n" "$ac_cv_path_SED" >&6; }
8574 SED="$ac_cv_path_SED"
8578 if test -n "$ac_tool_prefix"; then
8579 for ac_prog in ar lib "link -lib"
8581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8584 printf %s "checking for $ac_word... " >&6; }
8585 if test ${ac_cv_prog_AR+y}
8587 printf %s "(cached) " >&6
8589 if test -n "$AR"; then
8590 ac_cv_prog_AR="$AR" # Let the user override the test.
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 case $as_dir in #(((
8599 *) as_dir=$as_dir/ ;;
8601 for ac_exec_ext in '' $ac_executable_extensions; do
8602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8603 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8614 if test -n "$AR"; then
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8616 printf "%s\n" "$AR" >&6; }
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 printf "%s\n" "no" >&6; }
8623 test -n "$AR" && break
8626 if test -z "$AR"; then
8628 for ac_prog in ar lib "link -lib"
8630 # Extract the first word of "$ac_prog", so it can be a program name with args.
8631 set dummy $ac_prog; ac_word=$2
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 printf %s "checking for $ac_word... " >&6; }
8634 if test ${ac_cv_prog_ac_ct_AR+y}
8636 printf %s "(cached) " >&6
8638 if test -n "$ac_ct_AR"; then
8639 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 case $as_dir in #(((
8648 *) as_dir=$as_dir/ ;;
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_ac_ct_AR="$ac_prog"
8653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8663 if test -n "$ac_ct_AR"; then
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8665 printf "%s\n" "$ac_ct_AR" >&6; }
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 printf "%s\n" "no" >&6; }
8672 test -n "$ac_ct_AR" && break
8675 if test "x$ac_ct_AR" = x; then
8678 case $cross_compiling:$ac_tool_warned in
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8681 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8682 ac_tool_warned=yes ;;
8690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
8691 printf %s "checking the archiver ($AR) interface... " >&6; }
8692 if test ${am_cv_ar_interface+y}
8694 printf %s "(cached) " >&6
8697 ac_cpp='$CPP $CPPFLAGS'
8698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8702 am_cv_ar_interface=ar
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 int some_variable = 0;
8707 if ac_fn_c_try_compile "$LINENO"
8709 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
8710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8711 (eval $am_ar_try) 2>&5
8713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8714 test $ac_status = 0; }
8715 if test "$ac_status" -eq 0; then
8716 am_cv_ar_interface=ar
8718 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
8719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
8720 (eval $am_ar_try) 2>&5
8722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8723 test $ac_status = 0; }
8724 if test "$ac_status" -eq 0; then
8725 am_cv_ar_interface=lib
8727 am_cv_ar_interface=unknown
8730 rm -f conftest.lib libconftest.a
8733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8735 ac_cpp='$CPP $CPPFLAGS'
8736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
8742 printf "%s\n" "$am_cv_ar_interface" >&6; }
8744 case $am_cv_ar_interface in
8748 # Microsoft lib, so override with the ar-lib wrapper script.
8749 # FIXME: It is wrong to rewrite AR.
8750 # But if we don't then we get into trouble of one sort or another.
8751 # A longer-term fix would be to have automake use am__AR in this case,
8752 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
8754 AR="$am_aux_dir/ar-lib $AR"
8757 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8765 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8770 macro_version='2.4.7'
8771 macro_revision='2.4.7'
8786 ltmain=$ac_aux_dir/ltmain.sh
8788 # Backslashify metacharacters that are still active within
8789 # double-quoted strings.
8790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8792 # Same as above, but do not quote variable references.
8793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8795 # Sed substitution to delay expansion of an escaped shell variable in a
8796 # double_quote_subst'ed string.
8797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8799 # Sed substitution to delay expansion of an escaped single quote.
8800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8802 # Sed substitution to avoid accidental globbing in evaled expressions
8803 no_glob_subst='s/\*/\\\*/g'
8805 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8807 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8810 printf %s "checking how to print strings... " >&6; }
8811 # Test print first, because it will be a builtin if present.
8812 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8813 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8815 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8818 # Use this function as a fallback that always works.
8819 func_fallback_echo ()
8821 eval 'cat <<_LTECHO_EOF
8825 ECHO='func_fallback_echo'
8828 # func_echo_all arg...
8829 # Invoke $ECHO with all args, space-separated.
8836 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8837 printf "%s\n" "printf" >&6; } ;;
8838 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8839 printf "%s\n" "print -r" >&6; } ;;
8840 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8841 printf "%s\n" "cat" >&6; } ;;
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8858 printf %s "checking for a sed that does not truncate output... " >&6; }
8859 if test ${ac_cv_path_SED+y}
8861 printf %s "(cached) " >&6
8863 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8864 for ac_i in 1 2 3 4 5 6 7; do
8865 ac_script="$ac_script$as_nl$ac_script"
8867 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8868 { ac_script=; unset ac_script;}
8869 if test -z "$SED"; then
8870 ac_path_SED_found=false
8871 # Loop through the user's path and test for each of PROGNAME-LIST
8872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8876 case $as_dir in #(((
8879 *) as_dir=$as_dir/ ;;
8881 for ac_prog in sed gsed
8883 for ac_exec_ext in '' $ac_executable_extensions; do
8884 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8885 as_fn_executable_p "$ac_path_SED" || continue
8886 # Check for GNU ac_path_SED and select it if it is found.
8887 # Check for GNU $ac_path_SED
8888 case `"$ac_path_SED" --version 2>&1` in
8890 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8893 printf %s 0123456789 >"conftest.in"
8896 cat "conftest.in" "conftest.in" >"conftest.tmp"
8897 mv "conftest.tmp" "conftest.in"
8898 cp "conftest.in" "conftest.nl"
8899 printf "%s\n" '' >> "conftest.nl"
8900 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8902 as_fn_arith $ac_count + 1 && ac_count=$as_val
8903 if test $ac_count -gt ${ac_path_SED_max-0}; then
8904 # Best one so far, save it but keep looking for a better one
8905 ac_cv_path_SED="$ac_path_SED"
8906 ac_path_SED_max=$ac_count
8908 # 10*(2^10) chars as input seems more than enough
8909 test $ac_count -gt 10 && break
8911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8914 $ac_path_SED_found && break 3
8919 if test -z "$ac_cv_path_SED"; then
8920 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8928 printf "%s\n" "$ac_cv_path_SED" >&6; }
8929 SED="$ac_cv_path_SED"
8932 test -z "$SED" && SED=sed
8933 Xsed="$SED -e 1s/^X//"
8945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8946 printf %s "checking for grep that handles long lines and -e... " >&6; }
8947 if test ${ac_cv_path_GREP+y}
8949 printf %s "(cached) " >&6
8951 if test -z "$GREP"; then
8952 ac_path_GREP_found=false
8953 # Loop through the user's path and test for each of PROGNAME-LIST
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8958 case $as_dir in #(((
8961 *) as_dir=$as_dir/ ;;
8963 for ac_prog in grep ggrep
8965 for ac_exec_ext in '' $ac_executable_extensions; do
8966 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8967 as_fn_executable_p "$ac_path_GREP" || continue
8968 # Check for GNU ac_path_GREP and select it if it is found.
8969 # Check for GNU $ac_path_GREP
8970 case `"$ac_path_GREP" --version 2>&1` in
8972 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8975 printf %s 0123456789 >"conftest.in"
8978 cat "conftest.in" "conftest.in" >"conftest.tmp"
8979 mv "conftest.tmp" "conftest.in"
8980 cp "conftest.in" "conftest.nl"
8981 printf "%s\n" 'GREP' >> "conftest.nl"
8982 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8984 as_fn_arith $ac_count + 1 && ac_count=$as_val
8985 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8986 # Best one so far, save it but keep looking for a better one
8987 ac_cv_path_GREP="$ac_path_GREP"
8988 ac_path_GREP_max=$ac_count
8990 # 10*(2^10) chars as input seems more than enough
8991 test $ac_count -gt 10 && break
8993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8996 $ac_path_GREP_found && break 3
9001 if test -z "$ac_cv_path_GREP"; then
9002 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9005 ac_cv_path_GREP=$GREP
9009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
9010 printf "%s\n" "$ac_cv_path_GREP" >&6; }
9011 GREP="$ac_cv_path_GREP"
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9015 printf %s "checking for egrep... " >&6; }
9016 if test ${ac_cv_path_EGREP+y}
9018 printf %s "(cached) " >&6
9020 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9021 then ac_cv_path_EGREP="$GREP -E"
9023 if test -z "$EGREP"; then
9024 ac_path_EGREP_found=false
9025 # Loop through the user's path and test for each of PROGNAME-LIST
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9030 case $as_dir in #(((
9033 *) as_dir=$as_dir/ ;;
9035 for ac_prog in egrep
9037 for ac_exec_ext in '' $ac_executable_extensions; do
9038 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
9039 as_fn_executable_p "$ac_path_EGREP" || continue
9040 # Check for GNU ac_path_EGREP and select it if it is found.
9041 # Check for GNU $ac_path_EGREP
9042 case `"$ac_path_EGREP" --version 2>&1` in
9044 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9047 printf %s 0123456789 >"conftest.in"
9050 cat "conftest.in" "conftest.in" >"conftest.tmp"
9051 mv "conftest.tmp" "conftest.in"
9052 cp "conftest.in" "conftest.nl"
9053 printf "%s\n" 'EGREP' >> "conftest.nl"
9054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9056 as_fn_arith $ac_count + 1 && ac_count=$as_val
9057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9058 # Best one so far, save it but keep looking for a better one
9059 ac_cv_path_EGREP="$ac_path_EGREP"
9060 ac_path_EGREP_max=$ac_count
9062 # 10*(2^10) chars as input seems more than enough
9063 test $ac_count -gt 10 && break
9065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9068 $ac_path_EGREP_found && break 3
9073 if test -z "$ac_cv_path_EGREP"; then
9074 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9077 ac_cv_path_EGREP=$EGREP
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9083 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
9084 EGREP="$ac_cv_path_EGREP"
9087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9088 printf %s "checking for fgrep... " >&6; }
9089 if test ${ac_cv_path_FGREP+y}
9091 printf %s "(cached) " >&6
9093 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9094 then ac_cv_path_FGREP="$GREP -F"
9096 if test -z "$FGREP"; then
9097 ac_path_FGREP_found=false
9098 # Loop through the user's path and test for each of PROGNAME-LIST
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9103 case $as_dir in #(((
9106 *) as_dir=$as_dir/ ;;
9108 for ac_prog in fgrep
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
9112 as_fn_executable_p "$ac_path_FGREP" || continue
9113 # Check for GNU ac_path_FGREP and select it if it is found.
9114 # Check for GNU $ac_path_FGREP
9115 case `"$ac_path_FGREP" --version 2>&1` in
9117 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9120 printf %s 0123456789 >"conftest.in"
9123 cat "conftest.in" "conftest.in" >"conftest.tmp"
9124 mv "conftest.tmp" "conftest.in"
9125 cp "conftest.in" "conftest.nl"
9126 printf "%s\n" 'FGREP' >> "conftest.nl"
9127 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9128 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9129 as_fn_arith $ac_count + 1 && ac_count=$as_val
9130 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9131 # Best one so far, save it but keep looking for a better one
9132 ac_cv_path_FGREP="$ac_path_FGREP"
9133 ac_path_FGREP_max=$ac_count
9135 # 10*(2^10) chars as input seems more than enough
9136 test $ac_count -gt 10 && break
9138 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9141 $ac_path_FGREP_found && break 3
9146 if test -z "$ac_cv_path_FGREP"; then
9147 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9150 ac_cv_path_FGREP=$FGREP
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9156 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9157 FGREP="$ac_cv_path_FGREP"
9160 test -z "$GREP" && GREP=grep
9180 # Check whether --with-gnu-ld was given.
9181 if test ${with_gnu_ld+y}
9183 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9189 if test yes = "$GCC"; then
9190 # Check if gcc -print-prog-name=ld gives a path.
9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9192 printf %s "checking for ld used by $CC... " >&6; }
9195 # gcc leaves a trailing carriage return, which upsets mingw
9196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9201 # Accept absolute paths.
9203 re_direlt='/[^/][^/]*/\.\./'
9204 # Canonicalize the pathname of ld
9205 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9206 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9207 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9209 test -z "$LD" && LD=$ac_prog
9212 # If it fails, then pretend we aren't using GCC.
9216 # If it is relative, then search for the first ld in PATH.
9220 elif test yes = "$with_gnu_ld"; then
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9222 printf %s "checking for GNU ld... " >&6; }
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9225 printf %s "checking for non-GNU ld... " >&6; }
9227 if test ${lt_cv_path_LD+y}
9229 printf %s "(cached) " >&6
9231 if test -z "$LD"; then
9232 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9233 for ac_dir in $PATH; do
9235 test -z "$ac_dir" && ac_dir=.
9236 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9237 lt_cv_path_LD=$ac_dir/$ac_prog
9238 # Check to see if the program is GNU ld. I'd rather use --version,
9239 # but apparently some variants of GNU ld only accept -v.
9240 # Break only if it was the GNU/non-GNU ld that we prefer.
9241 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9242 *GNU* | *'with BFD'*)
9243 test no != "$with_gnu_ld" && break
9246 test yes != "$with_gnu_ld" && break
9253 lt_cv_path_LD=$LD # Let the user override the test with a path.
9258 if test -n "$LD"; then
9259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9260 printf "%s\n" "$LD" >&6; }
9262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 printf "%s\n" "no" >&6; }
9265 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9267 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9268 if test ${lt_cv_prog_gnu_ld+y}
9270 printf %s "(cached) " >&6
9272 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9273 case `$LD -v 2>&1 </dev/null` in
9274 *GNU* | *'with BFD'*)
9275 lt_cv_prog_gnu_ld=yes
9278 lt_cv_prog_gnu_ld=no
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9283 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9284 with_gnu_ld=$lt_cv_prog_gnu_ld
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9295 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9296 if test ${lt_cv_path_NM+y}
9298 printf %s "(cached) " >&6
9300 if test -n "$NM"; then
9301 # Let the user override the test.
9304 lt_nm_to_check=${ac_tool_prefix}nm
9305 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9306 lt_nm_to_check="$lt_nm_to_check nm"
9308 for lt_tmp_nm in $lt_nm_to_check; do
9309 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9310 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9312 test -z "$ac_dir" && ac_dir=.
9313 tmp_nm=$ac_dir/$lt_tmp_nm
9314 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9315 # Check to see if the nm accepts a BSD-compat flag.
9316 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9317 # nm: unknown option "B" ignored
9318 # Tru64's nm complains that /dev/null is an invalid object file
9319 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9321 mingw*) lt_bad_file=conftest.nm/nofile ;;
9322 *) lt_bad_file=/dev/null ;;
9324 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
9325 *$lt_bad_file* | *'Invalid file or object type'*)
9326 lt_cv_path_NM="$tmp_nm -B"
9330 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
9332 lt_cv_path_NM="$tmp_nm -p"
9336 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9337 continue # so that we can try to find one that supports BSD flags
9346 : ${lt_cv_path_NM=no}
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9350 printf "%s\n" "$lt_cv_path_NM" >&6; }
9351 if test no != "$lt_cv_path_NM"; then
9354 # Didn't find any BSD compatible name lister, look for dumpbin.
9355 if test -n "$DUMPBIN"; then :
9356 # Let the user override the test.
9358 if test -n "$ac_tool_prefix"; then
9359 for ac_prog in dumpbin "link -dump"
9361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 printf %s "checking for $ac_word... " >&6; }
9365 if test ${ac_cv_prog_DUMPBIN+y}
9367 printf %s "(cached) " >&6
9369 if test -n "$DUMPBIN"; then
9370 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9376 case $as_dir in #(((
9379 *) as_dir=$as_dir/ ;;
9381 for ac_exec_ext in '' $ac_executable_extensions; do
9382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9383 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9393 DUMPBIN=$ac_cv_prog_DUMPBIN
9394 if test -n "$DUMPBIN"; then
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9396 printf "%s\n" "$DUMPBIN" >&6; }
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9399 printf "%s\n" "no" >&6; }
9403 test -n "$DUMPBIN" && break
9406 if test -z "$DUMPBIN"; then
9407 ac_ct_DUMPBIN=$DUMPBIN
9408 for ac_prog in dumpbin "link -dump"
9410 # Extract the first word of "$ac_prog", so it can be a program name with args.
9411 set dummy $ac_prog; ac_word=$2
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9413 printf %s "checking for $ac_word... " >&6; }
9414 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9416 printf %s "(cached) " >&6
9418 if test -n "$ac_ct_DUMPBIN"; then
9419 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425 case $as_dir in #(((
9428 *) as_dir=$as_dir/ ;;
9430 for ac_exec_ext in '' $ac_executable_extensions; do
9431 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9432 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9442 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9443 if test -n "$ac_ct_DUMPBIN"; then
9444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9445 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448 printf "%s\n" "no" >&6; }
9452 test -n "$ac_ct_DUMPBIN" && break
9455 if test "x$ac_ct_DUMPBIN" = x; then
9458 case $cross_compiling:$ac_tool_warned in
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9461 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9462 ac_tool_warned=yes ;;
9464 DUMPBIN=$ac_ct_DUMPBIN
9468 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
9470 DUMPBIN="$DUMPBIN -symbols -headers"
9478 if test : != "$DUMPBIN"; then
9482 test -z "$NM" && NM=nm
9489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9490 printf %s "checking the name lister ($NM) interface... " >&6; }
9491 if test ${lt_cv_nm_interface+y}
9493 printf %s "(cached) " >&6
9495 lt_cv_nm_interface="BSD nm"
9496 echo "int some_variable = 0;" > conftest.$ac_ext
9497 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9498 (eval "$ac_compile" 2>conftest.err)
9499 cat conftest.err >&5
9500 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9501 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9502 cat conftest.err >&5
9503 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9504 cat conftest.out >&5
9505 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9506 lt_cv_nm_interface="MS dumpbin"
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9511 printf "%s\n" "$lt_cv_nm_interface" >&6; }
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9514 printf %s "checking whether ln -s works... " >&6; }
9516 if test "$LN_S" = "ln -s"; then
9517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9518 printf "%s\n" "yes" >&6; }
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9521 printf "%s\n" "no, using $LN_S" >&6; }
9524 # find the maximum length of command line arguments
9525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9526 printf %s "checking the maximum length of command line arguments... " >&6; }
9527 if test ${lt_cv_sys_max_cmd_len+y}
9529 printf %s "(cached) " >&6
9536 # On DJGPP, this test can blow up pretty badly due to problems in libc
9537 # (any single argument exceeding 2000 bytes causes a buffer overrun
9538 # during glob expansion). Even if it were fixed, the result of this
9539 # check would be larger than it should be.
9540 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9544 # Under GNU Hurd, this test is not required because there is
9545 # no limit to the length of command line arguments.
9546 # Libtool will interpret -1 as no limit whatsoever
9547 lt_cv_sys_max_cmd_len=-1;
9550 cygwin* | mingw* | cegcc*)
9551 # On Win9x/ME, this test blows up -- it succeeds, but takes
9552 # about 5 minutes as the teststring grows exponentially.
9553 # Worse, since 9x/ME are not pre-emptively multitasking,
9554 # you end up with a "frozen" computer, even though with patience
9555 # the test eventually succeeds (with a max line length of 256k).
9556 # Instead, let's just punt: use the minimum linelength reported by
9557 # all of the supported platforms: 8192 (on NT/2K/XP).
9558 lt_cv_sys_max_cmd_len=8192;
9562 # On MiNT this can take a long time and run out of memory.
9563 lt_cv_sys_max_cmd_len=8192;
9567 # On AmigaOS with pdksh, this test takes hours, literally.
9568 # So we just punt and use a minimum line length of 8192.
9569 lt_cv_sys_max_cmd_len=8192;
9572 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
9573 # This has been around since 386BSD, at least. Likely further.
9574 if test -x /sbin/sysctl; then
9575 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9576 elif test -x /usr/sbin/sysctl; then
9577 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9579 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9581 # And add a safety zone
9582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9587 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9588 lt_cv_sys_max_cmd_len=196608
9592 # The test takes a long time on OS/2.
9593 lt_cv_sys_max_cmd_len=8192
9597 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9598 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9599 # nice to cause kernel panics so lets avoid the loop below.
9600 # First set a reasonable default.
9601 lt_cv_sys_max_cmd_len=16384
9603 if test -x /sbin/sysconfig; then
9604 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9605 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9610 lt_cv_sys_max_cmd_len=102400
9612 sysv5* | sco5v6* | sysv4.2uw2*)
9613 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9614 if test -n "$kargmax"; then
9615 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
9617 lt_cv_sys_max_cmd_len=32768
9621 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9622 if test -n "$lt_cv_sys_max_cmd_len" && \
9623 test undefined != "$lt_cv_sys_max_cmd_len"; then
9624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9627 # Make teststring a little bigger before we do anything with it.
9628 # a 1K string should be a reasonable start.
9629 for i in 1 2 3 4 5 6 7 8; do
9630 teststring=$teststring$teststring
9632 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9633 # If test is not a shell built-in, we'll probably end up computing a
9634 # maximum length that is only half of the actual maximum length, but
9636 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9637 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9638 test 17 != "$i" # 1/2 MB should be enough
9641 teststring=$teststring$teststring
9643 # Only check the string length outside the loop.
9644 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9646 # Add a significant safety factor because C++ compilers can tack on
9647 # massive amounts of additional arguments before passing them to the
9648 # linker. It appears as though 1/2 is a usable value.
9649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9656 if test -n "$lt_cv_sys_max_cmd_len"; then
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9658 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9661 printf "%s\n" "none" >&6; }
9663 max_cmd_len=$lt_cv_sys_max_cmd_len
9674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9684 # test EBCDIC or ASCII
9685 case `echo X|tr X '\101'` in
9686 A) # ASCII based system
9687 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9688 lt_SP2NL='tr \040 \012'
9689 lt_NL2SP='tr \015\012 \040\040'
9691 *) # EBCDIC based system
9692 lt_SP2NL='tr \100 \n'
9693 lt_NL2SP='tr \r\n \100\100'
9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9706 printf %s "checking how to convert $build file names to $host format... " >&6; }
9707 if test ${lt_cv_to_host_file_cmd+y}
9709 printf %s "(cached) " >&6
9714 *-*-mingw* ) # actually msys
9715 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9718 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9720 * ) # otherwise, assume *nix
9721 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9727 *-*-mingw* ) # actually msys
9728 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9731 lt_cv_to_host_file_cmd=func_convert_file_noop
9733 * ) # otherwise, assume *nix
9734 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9738 * ) # unhandled hosts (and "normal" native builds)
9739 lt_cv_to_host_file_cmd=func_convert_file_noop
9745 to_host_file_cmd=$lt_cv_to_host_file_cmd
9746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9747 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9754 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9755 if test ${lt_cv_to_tool_file_cmd+y}
9757 printf %s "(cached) " >&6
9759 #assume ordinary cross tools, or native build.
9760 lt_cv_to_tool_file_cmd=func_convert_file_noop
9764 *-*-mingw* ) # actually msys
9765 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9773 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9775 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9782 printf %s "checking for $LD option to reload object files... " >&6; }
9783 if test ${lt_cv_ld_reload_flag+y}
9785 printf %s "(cached) " >&6
9787 lt_cv_ld_reload_flag='-r'
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9790 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9791 reload_flag=$lt_cv_ld_reload_flag
9792 case $reload_flag in
9794 *) reload_flag=" $reload_flag" ;;
9796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9798 cygwin* | mingw* | pw32* | cegcc*)
9799 if test yes != "$GCC"; then
9804 if test yes = "$GCC"; then
9805 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9807 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9820 if test -n "$ac_tool_prefix"; then
9821 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
9822 set dummy ${ac_tool_prefix}file; ac_word=$2
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9824 printf %s "checking for $ac_word... " >&6; }
9825 if test ${ac_cv_prog_FILECMD+y}
9827 printf %s "(cached) " >&6
9829 if test -n "$FILECMD"; then
9830 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9836 case $as_dir in #(((
9839 *) as_dir=$as_dir/ ;;
9841 for ac_exec_ext in '' $ac_executable_extensions; do
9842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9843 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9853 FILECMD=$ac_cv_prog_FILECMD
9854 if test -n "$FILECMD"; then
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9856 printf "%s\n" "$FILECMD" >&6; }
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 printf "%s\n" "no" >&6; }
9864 if test -z "$ac_cv_prog_FILECMD"; then
9865 ac_ct_FILECMD=$FILECMD
9866 # Extract the first word of "file", so it can be a program name with args.
9867 set dummy file; ac_word=$2
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 printf %s "checking for $ac_word... " >&6; }
9870 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9872 printf %s "(cached) " >&6
9874 if test -n "$ac_ct_FILECMD"; then
9875 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881 case $as_dir in #(((
9884 *) as_dir=$as_dir/ ;;
9886 for ac_exec_ext in '' $ac_executable_extensions; do
9887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9888 ac_cv_prog_ac_ct_FILECMD="file"
9889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9898 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9899 if test -n "$ac_ct_FILECMD"; then
9900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9901 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904 printf "%s\n" "no" >&6; }
9907 if test "x$ac_ct_FILECMD" = x; then
9910 case $cross_compiling:$ac_tool_warned in
9912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9913 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9914 ac_tool_warned=yes ;;
9916 FILECMD=$ac_ct_FILECMD
9919 FILECMD="$ac_cv_prog_FILECMD"
9928 if test -n "$ac_tool_prefix"; then
9929 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9930 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932 printf %s "checking for $ac_word... " >&6; }
9933 if test ${ac_cv_prog_OBJDUMP+y}
9935 printf %s "(cached) " >&6
9937 if test -n "$OBJDUMP"; then
9938 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 case $as_dir in #(((
9947 *) as_dir=$as_dir/ ;;
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9951 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9961 OBJDUMP=$ac_cv_prog_OBJDUMP
9962 if test -n "$OBJDUMP"; then
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9964 printf "%s\n" "$OBJDUMP" >&6; }
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9967 printf "%s\n" "no" >&6; }
9972 if test -z "$ac_cv_prog_OBJDUMP"; then
9973 ac_ct_OBJDUMP=$OBJDUMP
9974 # Extract the first word of "objdump", so it can be a program name with args.
9975 set dummy objdump; ac_word=$2
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9977 printf %s "checking for $ac_word... " >&6; }
9978 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9980 printf %s "(cached) " >&6
9982 if test -n "$ac_ct_OBJDUMP"; then
9983 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989 case $as_dir in #(((
9992 *) as_dir=$as_dir/ ;;
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9996 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10006 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10007 if test -n "$ac_ct_OBJDUMP"; then
10008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10009 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
10011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012 printf "%s\n" "no" >&6; }
10015 if test "x$ac_ct_OBJDUMP" = x; then
10018 case $cross_compiling:$ac_tool_warned in
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10021 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10022 ac_tool_warned=yes ;;
10024 OBJDUMP=$ac_ct_OBJDUMP
10027 OBJDUMP="$ac_cv_prog_OBJDUMP"
10030 test -z "$OBJDUMP" && OBJDUMP=objdump
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10038 printf %s "checking how to recognize dependent libraries... " >&6; }
10039 if test ${lt_cv_deplibs_check_method+y}
10041 printf %s "(cached) " >&6
10043 lt_cv_file_magic_cmd='$MAGIC_CMD'
10044 lt_cv_file_magic_test_file=
10045 lt_cv_deplibs_check_method='unknown'
10046 # Need to set the preceding variable on all platforms that support
10047 # interlibrary dependencies.
10048 # 'none' -- dependencies not supported.
10049 # 'unknown' -- same as none, but documents that we really don't know.
10050 # 'pass_all' -- all dependencies passed with no checks.
10051 # 'test_compile' -- check by making test program.
10052 # 'file_magic [[regex]]' -- check by looking for files in library path
10053 # that responds to the $file_magic_cmd with a given extended regex.
10054 # If you have 'file' or equivalent on your system and you're not sure
10055 # whether 'pass_all' will *always* work, you probably want this one.
10059 lt_cv_deplibs_check_method=pass_all
10063 lt_cv_deplibs_check_method=pass_all
10067 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10068 lt_cv_file_magic_cmd='$FILECMD -L'
10069 lt_cv_file_magic_test_file=/shlib/libc.so
10073 # func_win32_libid is a shell function defined in ltmain.sh
10074 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10075 lt_cv_file_magic_cmd='func_win32_libid'
10079 # Base MSYS/MinGW do not provide the 'file' command needed by
10080 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10081 # unless we find 'file', for example because we are cross-compiling.
10082 if ( file / ) >/dev/null 2>&1; then
10083 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10084 lt_cv_file_magic_cmd='func_win32_libid'
10086 # Keep this pattern in sync with the one in func_win32_libid.
10087 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10088 lt_cv_file_magic_cmd='$OBJDUMP -f'
10093 # use the weaker test based on 'objdump'. See mingw*.
10094 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10095 lt_cv_file_magic_cmd='$OBJDUMP -f'
10098 darwin* | rhapsody*)
10099 lt_cv_deplibs_check_method=pass_all
10102 freebsd* | dragonfly* | midnightbsd*)
10103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10106 # Not sure whether the presence of OpenBSD here was a mistake.
10107 # Let's accept both of them until this is cleared up.
10108 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10109 lt_cv_file_magic_cmd=$FILECMD
10110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10114 lt_cv_deplibs_check_method=pass_all
10119 lt_cv_deplibs_check_method=pass_all
10122 hpux10.20* | hpux11*)
10123 lt_cv_file_magic_cmd=$FILECMD
10126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10127 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10130 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]'
10131 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10135 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10141 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10145 irix5* | irix6* | nonstopux*)
10147 *-32|*"-32 ") libmagic=32-bit;;
10148 *-n32|*"-n32 ") libmagic=N32;;
10149 *-64|*"-64 ") libmagic=64-bit;;
10150 *) libmagic=never-match;;
10152 lt_cv_deplibs_check_method=pass_all
10155 # This must be glibc/ELF.
10156 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10157 lt_cv_deplibs_check_method=pass_all
10161 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10170 lt_cv_file_magic_cmd=$FILECMD
10171 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10175 lt_cv_deplibs_check_method=pass_all
10178 openbsd* | bitrig*)
10179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10186 osf3* | osf4* | osf5*)
10187 lt_cv_deplibs_check_method=pass_all
10191 lt_cv_deplibs_check_method=pass_all
10195 lt_cv_deplibs_check_method=pass_all
10198 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10199 lt_cv_deplibs_check_method=pass_all
10203 case $host_vendor in
10205 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]'
10206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10209 lt_cv_deplibs_check_method=pass_all
10212 lt_cv_file_magic_cmd='/bin/file'
10213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10216 lt_cv_file_magic_cmd='/bin/file'
10217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10218 lt_cv_file_magic_test_file=/lib/libc.so
10221 lt_cv_deplibs_check_method=pass_all
10224 lt_cv_deplibs_check_method=pass_all
10230 lt_cv_deplibs_check_method=pass_all
10233 lt_cv_deplibs_check_method=pass_all
10238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10239 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
10243 if test "$build" = "$host"; then
10246 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10247 want_nocaseglob=yes
10249 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10255 file_magic_cmd=$lt_cv_file_magic_cmd
10256 deplibs_check_method=$lt_cv_deplibs_check_method
10257 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10280 if test -n "$ac_tool_prefix"; then
10281 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10282 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 printf %s "checking for $ac_word... " >&6; }
10285 if test ${ac_cv_prog_DLLTOOL+y}
10287 printf %s "(cached) " >&6
10289 if test -n "$DLLTOOL"; then
10290 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10296 case $as_dir in #(((
10299 *) as_dir=$as_dir/ ;;
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10303 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10313 DLLTOOL=$ac_cv_prog_DLLTOOL
10314 if test -n "$DLLTOOL"; then
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10316 printf "%s\n" "$DLLTOOL" >&6; }
10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319 printf "%s\n" "no" >&6; }
10324 if test -z "$ac_cv_prog_DLLTOOL"; then
10325 ac_ct_DLLTOOL=$DLLTOOL
10326 # Extract the first word of "dlltool", so it can be a program name with args.
10327 set dummy dlltool; ac_word=$2
10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10329 printf %s "checking for $ac_word... " >&6; }
10330 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10332 printf %s "(cached) " >&6
10334 if test -n "$ac_ct_DLLTOOL"; then
10335 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10341 case $as_dir in #(((
10344 *) as_dir=$as_dir/ ;;
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10348 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10358 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10359 if test -n "$ac_ct_DLLTOOL"; then
10360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10361 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 printf "%s\n" "no" >&6; }
10367 if test "x$ac_ct_DLLTOOL" = x; then
10370 case $cross_compiling:$ac_tool_warned in
10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10373 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10374 ac_tool_warned=yes ;;
10376 DLLTOOL=$ac_ct_DLLTOOL
10379 DLLTOOL="$ac_cv_prog_DLLTOOL"
10382 test -z "$DLLTOOL" && DLLTOOL=dlltool
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10391 printf %s "checking how to associate runtime and link libraries... " >&6; }
10392 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10394 printf %s "(cached) " >&6
10396 lt_cv_sharedlib_from_linklib_cmd='unknown'
10399 cygwin* | mingw* | pw32* | cegcc*)
10400 # two different shell functions defined in ltmain.sh;
10401 # decide which one to use based on capabilities of $DLLTOOL
10402 case `$DLLTOOL --help 2>&1` in
10403 *--identify-strict*)
10404 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10407 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10412 # fallback: assume linklib IS sharedlib
10413 lt_cv_sharedlib_from_linklib_cmd=$ECHO
10418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10419 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10420 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10421 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10429 if test -n "$ac_tool_prefix"; then
10432 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10433 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 printf %s "checking for $ac_word... " >&6; }
10436 if test ${ac_cv_prog_AR+y}
10438 printf %s "(cached) " >&6
10440 if test -n "$AR"; then
10441 ac_cv_prog_AR="$AR" # Let the user override the test.
10443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10447 case $as_dir in #(((
10450 *) as_dir=$as_dir/ ;;
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10454 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10465 if test -n "$AR"; then
10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10467 printf "%s\n" "$AR" >&6; }
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 printf "%s\n" "no" >&6; }
10474 test -n "$AR" && break
10477 if test -z "$AR"; then
10481 # Extract the first word of "$ac_prog", so it can be a program name with args.
10482 set dummy $ac_prog; ac_word=$2
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 printf %s "checking for $ac_word... " >&6; }
10485 if test ${ac_cv_prog_ac_ct_AR+y}
10487 printf %s "(cached) " >&6
10489 if test -n "$ac_ct_AR"; then
10490 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10493 for as_dir in $PATH
10496 case $as_dir in #(((
10499 *) as_dir=$as_dir/ ;;
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_ac_ct_AR="$ac_prog"
10504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10513 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10514 if test -n "$ac_ct_AR"; then
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10516 printf "%s\n" "$ac_ct_AR" >&6; }
10518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 printf "%s\n" "no" >&6; }
10523 test -n "$ac_ct_AR" && break
10526 if test "x$ac_ct_AR" = x; then
10529 case $cross_compiling:$ac_tool_warned in
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533 ac_tool_warned=yes ;;
10546 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
10547 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
10548 # higher priority because thats what people were doing historically (setting
10549 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
10550 # variable obsoleted/removed.
10552 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
10553 lt_ar_flags=$AR_FLAGS
10560 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
10561 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10569 printf %s "checking for archiver @FILE support... " >&6; }
10570 if test ${lt_cv_ar_at_file+y}
10572 printf %s "(cached) " >&6
10574 lt_cv_ar_at_file=no
10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576 /* end confdefs.h. */
10586 if ac_fn_c_try_compile "$LINENO"
10588 echo conftest.$ac_objext > conftest.lst
10589 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10591 (eval $lt_ar_try) 2>&5
10593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10594 test $ac_status = 0; }
10595 if test 0 -eq "$ac_status"; then
10596 # Ensure the archiver fails upon bogus file names.
10597 rm -f conftest.$ac_objext libconftest.a
10598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10599 (eval $lt_ar_try) 2>&5
10601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; }
10603 if test 0 -ne "$ac_status"; then
10607 rm -f conftest.* libconftest.a
10610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10614 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10616 if test no = "$lt_cv_ar_at_file"; then
10617 archiver_list_spec=
10619 archiver_list_spec=$lt_cv_ar_at_file
10628 if test -n "$ac_tool_prefix"; then
10629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10630 set dummy ${ac_tool_prefix}strip; ac_word=$2
10631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632 printf %s "checking for $ac_word... " >&6; }
10633 if test ${ac_cv_prog_STRIP+y}
10635 printf %s "(cached) " >&6
10637 if test -n "$STRIP"; then
10638 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10644 case $as_dir in #(((
10647 *) as_dir=$as_dir/ ;;
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10651 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10661 STRIP=$ac_cv_prog_STRIP
10662 if test -n "$STRIP"; then
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10664 printf "%s\n" "$STRIP" >&6; }
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 printf "%s\n" "no" >&6; }
10672 if test -z "$ac_cv_prog_STRIP"; then
10674 # Extract the first word of "strip", so it can be a program name with args.
10675 set dummy strip; ac_word=$2
10676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 printf %s "checking for $ac_word... " >&6; }
10678 if test ${ac_cv_prog_ac_ct_STRIP+y}
10680 printf %s "(cached) " >&6
10682 if test -n "$ac_ct_STRIP"; then
10683 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10689 case $as_dir in #(((
10692 *) as_dir=$as_dir/ ;;
10694 for ac_exec_ext in '' $ac_executable_extensions; do
10695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10696 ac_cv_prog_ac_ct_STRIP="strip"
10697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10706 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10707 if test -n "$ac_ct_STRIP"; then
10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10709 printf "%s\n" "$ac_ct_STRIP" >&6; }
10711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10712 printf "%s\n" "no" >&6; }
10715 if test "x$ac_ct_STRIP" = x; then
10718 case $cross_compiling:$ac_tool_warned in
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10722 ac_tool_warned=yes ;;
10727 STRIP="$ac_cv_prog_STRIP"
10730 test -z "$STRIP" && STRIP=:
10737 if test -n "$ac_tool_prefix"; then
10738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10739 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741 printf %s "checking for $ac_word... " >&6; }
10742 if test ${ac_cv_prog_RANLIB+y}
10744 printf %s "(cached) " >&6
10746 if test -n "$RANLIB"; then
10747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10750 for as_dir in $PATH
10753 case $as_dir in #(((
10756 *) as_dir=$as_dir/ ;;
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10760 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10770 RANLIB=$ac_cv_prog_RANLIB
10771 if test -n "$RANLIB"; then
10772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10773 printf "%s\n" "$RANLIB" >&6; }
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10776 printf "%s\n" "no" >&6; }
10781 if test -z "$ac_cv_prog_RANLIB"; then
10782 ac_ct_RANLIB=$RANLIB
10783 # Extract the first word of "ranlib", so it can be a program name with args.
10784 set dummy ranlib; ac_word=$2
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10786 printf %s "checking for $ac_word... " >&6; }
10787 if test ${ac_cv_prog_ac_ct_RANLIB+y}
10789 printf %s "(cached) " >&6
10791 if test -n "$ac_ct_RANLIB"; then
10792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10798 case $as_dir in #(((
10801 *) as_dir=$as_dir/ ;;
10803 for ac_exec_ext in '' $ac_executable_extensions; do
10804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10805 ac_cv_prog_ac_ct_RANLIB="ranlib"
10806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10816 if test -n "$ac_ct_RANLIB"; then
10817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10818 printf "%s\n" "$ac_ct_RANLIB" >&6; }
10820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10821 printf "%s\n" "no" >&6; }
10824 if test "x$ac_ct_RANLIB" = x; then
10827 case $cross_compiling:$ac_tool_warned in
10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10830 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10831 ac_tool_warned=yes ;;
10833 RANLIB=$ac_ct_RANLIB
10836 RANLIB="$ac_cv_prog_RANLIB"
10839 test -z "$RANLIB" && RANLIB=:
10846 # Determine commands to create old-style static archives.
10847 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10848 old_postinstall_cmds='chmod 644 $oldlib'
10849 old_postuninstall_cmds=
10851 if test -n "$RANLIB"; then
10853 bitrig* | openbsd*)
10854 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10857 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10865 lock_old_archive_extraction=yes ;;
10867 lock_old_archive_extraction=no ;;
10908 # If no C compiler was specified, use CC.
10911 # If no C compiler flags were specified, use CFLAGS.
10912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10914 # Allow CC to be a program name with arguments.
10918 # Check for command to grab the raw symbol name followed by C symbol from nm.
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10920 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10921 if test ${lt_cv_sys_global_symbol_pipe+y}
10923 printf %s "(cached) " >&6
10926 # These are sane defaults that work on at least a few old systems.
10927 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10929 # Character class describing NM global symbol codes.
10930 symcode='[BCDEGRST]'
10932 # Regexp to match symbols that can be accessed directly from C.
10933 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10935 # Define system-specific variables.
10940 cygwin* | mingw* | pw32* | cegcc*)
10941 symcode='[ABCDGISTW]'
10944 if test ia64 = "$host_cpu"; then
10945 symcode='[ABCDEGRST]'
10948 irix* | nonstopux*)
10949 symcode='[BCDEGRST]'
10952 symcode='[BCDEGQRST]'
10963 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10971 # If we're using GNU nm, then use its standard symbol codes.
10972 case `$NM -V 2>&1` in
10973 *GNU* | *'with BFD'*)
10974 symcode='[ABCDGIRSTW]' ;;
10977 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10978 # Gets list of data symbols to import.
10979 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10980 # Adjust the below global symbol transforms to fixup imported variables.
10981 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10982 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10983 lt_c_name_lib_hook="\
10984 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10985 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10987 # Disable hooks by default.
10988 lt_cv_sys_global_symbol_to_import=
10991 lt_c_name_lib_hook=
10994 # Transform an extracted symbol line into a proper C declaration.
10995 # Some systems (esp. on ia64) link data and code symbols differently,
10996 # so use this general approach.
10997 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10999 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
11000 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
11002 # Transform an extracted symbol line into symbol name and symbol address
11003 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
11005 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11006 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
11008 # Transform an extracted symbol line into symbol name with lib prefix and
11010 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
11011 $lt_c_name_lib_hook\
11012 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
11013 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
11014 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
11016 # Handle CRLF in mingw tool chain
11020 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11024 # Try without a prefix underscore, then with it.
11025 for ac_symprfx in "" "_"; do
11027 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11028 symxfrm="\\1 $ac_symprfx\\2 \\2"
11030 # Write the raw and C identifiers.
11031 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11032 # Fake it for dumpbin and say T for any non-static function,
11033 # D for any global variable and I for any imported variable.
11034 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
11035 # which start with @ or ?.
11036 lt_cv_sys_global_symbol_pipe="$AWK '"\
11037 " {last_section=section; section=\$ 3};"\
11038 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
11039 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11040 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
11041 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
11042 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
11043 " \$ 0!~/External *\|/{next};"\
11044 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11045 " {if(hide[section]) next};"\
11046 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
11047 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
11048 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
11049 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
11050 " ' prfx=^$ac_symprfx"
11052 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11054 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
11056 # Check to see that the pipe works correctly.
11060 cat > conftest.$ac_ext <<_LT_EOF
11065 void nm_test_func(void);
11066 void nm_test_func(void){}
11070 int main(){nm_test_var='a';nm_test_func();return(0);}
11073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11074 (eval $ac_compile) 2>&5
11076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11077 test $ac_status = 0; }; then
11078 # Now try to grab the symbols.
11080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11081 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11084 test $ac_status = 0; } && test -s "$nlist"; then
11085 # Try sorting and uniquifying the output.
11086 if sort "$nlist" | uniq > "$nlist"T; then
11087 mv -f "$nlist"T "$nlist"
11092 # Make sure that we snagged all the symbols we need.
11093 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11094 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11095 cat <<_LT_EOF > conftest.$ac_ext
11096 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11097 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
11098 /* DATA imports from DLLs on WIN32 can't be const, because runtime
11099 relocations are performed -- see ld's documentation on pseudo-relocs. */
11100 # define LT_DLSYM_CONST
11101 #elif defined __osf__
11102 /* This system does not cope well with relocations in const data. */
11103 # define LT_DLSYM_CONST
11105 # define LT_DLSYM_CONST const
11113 # Now generate the symbol file.
11114 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11116 cat <<_LT_EOF >> conftest.$ac_ext
11118 /* The mapping between symbol names and symbols. */
11119 LT_DLSYM_CONST struct {
11123 lt__PROGRAM__LTX_preloaded_symbols[] =
11125 { "@PROGRAM@", (void *) 0 },
11127 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11128 cat <<\_LT_EOF >> conftest.$ac_ext
11132 /* This works around a problem in FreeBSD linker */
11133 #ifdef FREEBSD_WORKAROUND
11134 static const void *lt_preloaded_setup() {
11135 return lt__PROGRAM__LTX_preloaded_symbols;
11143 # Now try linking the two files.
11144 mv conftest.$ac_objext conftstm.$ac_objext
11145 lt_globsym_save_LIBS=$LIBS
11146 lt_globsym_save_CFLAGS=$CFLAGS
11147 LIBS=conftstm.$ac_objext
11148 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11150 (eval $ac_link) 2>&5
11152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11153 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11156 LIBS=$lt_globsym_save_LIBS
11157 CFLAGS=$lt_globsym_save_CFLAGS
11159 echo "cannot find nm_test_func in $nlist" >&5
11162 echo "cannot find nm_test_var in $nlist" >&5
11165 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11168 echo "$progname: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 rm -rf conftest* conftst*
11173 # Do not use the global_symbol_pipe unless it works.
11174 if test yes = "$pipe_works"; then
11177 lt_cv_sys_global_symbol_pipe=
11183 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11184 lt_cv_sys_global_symbol_to_cdecl=
11186 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11188 printf "%s\n" "failed" >&6; }
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11191 printf "%s\n" "ok" >&6; }
11194 # Response file support.
11195 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11196 nm_file_list_spec='@'
11197 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11198 nm_file_list_spec='@'
11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11238 printf %s "checking for sysroot... " >&6; }
11240 # Check whether --with-sysroot was given.
11241 if test ${with_sysroot+y}
11243 withval=$with_sysroot;
11250 case $with_sysroot in #(
11252 if test yes = "$GCC"; then
11253 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11257 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
11262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11263 printf "%s\n" "$with_sysroot" >&6; }
11264 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11269 printf "%s\n" "${lt_sysroot:-no}" >&6; }
11275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11276 printf %s "checking for a working dd... " >&6; }
11277 if test ${ac_cv_path_lt_DD+y}
11279 printf %s "(cached) " >&6
11281 printf 0123456789abcdef0123456789abcdef >conftest.i
11282 cat conftest.i conftest.i >conftest2.i
11284 if test -z "$lt_DD"; then
11285 ac_path_lt_DD_found=false
11286 # Loop through the user's path and test for each of PROGNAME-LIST
11287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288 for as_dir in $PATH
11291 case $as_dir in #(((
11294 *) as_dir=$as_dir/ ;;
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11300 as_fn_executable_p "$ac_path_lt_DD" || continue
11301 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11302 cmp -s conftest.i conftest.out \
11303 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11305 $ac_path_lt_DD_found && break 3
11310 if test -z "$ac_cv_path_lt_DD"; then
11314 ac_cv_path_lt_DD=$lt_DD
11317 rm -f conftest.i conftest2.i conftest.out
11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11320 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11324 printf %s "checking how to truncate binary pipes... " >&6; }
11325 if test ${lt_cv_truncate_bin+y}
11327 printf %s "(cached) " >&6
11329 printf 0123456789abcdef0123456789abcdef >conftest.i
11330 cat conftest.i conftest.i >conftest2.i
11331 lt_cv_truncate_bin=
11332 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11333 cmp -s conftest.i conftest.out \
11334 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11336 rm -f conftest.i conftest2.i conftest.out
11337 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11340 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11348 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
11349 func_cc_basename ()
11351 for cc_temp in $*""; do
11353 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11354 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11359 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11362 # Check whether --enable-libtool-lock was given.
11363 if test ${enable_libtool_lock+y}
11365 enableval=$enable_libtool_lock;
11368 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11370 # Some flags need to be propagated to the compiler or linker for good
11374 # Find out what ABI is being produced by ac_compile, and set mode
11375 # options accordingly.
11376 echo 'int i;' > conftest.$ac_ext
11377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11378 (eval $ac_compile) 2>&5
11380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11381 test $ac_status = 0; }; then
11382 case `$FILECMD conftest.$ac_objext` in
11394 # Find out what ABI is being produced by ac_compile, and set linker
11395 # options accordingly.
11396 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11397 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11398 (eval $ac_compile) 2>&5
11400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11401 test $ac_status = 0; }; then
11402 if test yes = "$lt_cv_prog_gnu_ld"; then
11403 case `$FILECMD conftest.$ac_objext` in
11405 LD="${LD-ld} -melf32bsmip"
11408 LD="${LD-ld} -melf32bmipn32"
11411 LD="${LD-ld} -melf64bmip"
11415 case `$FILECMD conftest.$ac_objext` in
11432 # Find out what ABI is being produced by ac_compile, and set linker
11433 # options accordingly.
11434 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11436 (eval $ac_compile) 2>&5
11438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439 test $ac_status = 0; }; then
11441 case `$FILECMD conftest.$ac_objext` in
11449 case `$FILECMD conftest.$ac_objext` in
11451 emul="${emul}btsmip"
11454 emul="${emul}ltsmip"
11457 case `$FILECMD conftest.$ac_objext` in
11462 LD="${LD-ld} -m $emul"
11467 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11468 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11469 # Find out what ABI is being produced by ac_compile, and set linker
11470 # options accordingly. Note that the listed cases only cover the
11471 # situations where additional linker options are needed (such as when
11472 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11473 # vice versa); the common cases where no linker options are needed do
11474 # not appear in the list.
11475 echo 'int i;' > conftest.$ac_ext
11476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11477 (eval $ac_compile) 2>&5
11479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480 test $ac_status = 0; }; then
11481 case `$FILECMD conftest.o` in
11484 x86_64-*kfreebsd*-gnu)
11485 LD="${LD-ld} -m elf_i386_fbsd"
11488 case `$FILECMD conftest.o` in
11490 LD="${LD-ld} -m elf32_x86_64"
11493 LD="${LD-ld} -m elf_i386"
11497 powerpc64le-*linux*)
11498 LD="${LD-ld} -m elf32lppclinux"
11501 LD="${LD-ld} -m elf32ppclinux"
11504 LD="${LD-ld} -m elf_s390"
11507 LD="${LD-ld} -m elf32_sparc"
11513 x86_64-*kfreebsd*-gnu)
11514 LD="${LD-ld} -m elf_x86_64_fbsd"
11517 LD="${LD-ld} -m elf_x86_64"
11519 powerpcle-*linux*|powerpc64le-*linux*)
11520 LD="${LD-ld} -m elf64lppc"
11522 powerpc-*linux*|powerpc64-*linux*)
11523 LD="${LD-ld} -m elf64ppc"
11525 s390*-*linux*|s390*-*tpf*)
11526 LD="${LD-ld} -m elf64_s390"
11529 LD="${LD-ld} -m elf64_sparc"
11539 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11540 SAVE_CFLAGS=$CFLAGS
11541 CFLAGS="$CFLAGS -belf"
11542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11543 printf %s "checking whether the C compiler needs -belf... " >&6; }
11544 if test ${lt_cv_cc_needs_belf+y}
11546 printf %s "(cached) " >&6
11549 ac_cpp='$CPP $CPPFLAGS'
11550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11565 if ac_fn_c_try_link "$LINENO"
11567 lt_cv_cc_needs_belf=yes
11569 lt_cv_cc_needs_belf=no
11571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11572 conftest$ac_exeext conftest.$ac_ext
11574 ac_cpp='$CPP $CPPFLAGS'
11575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11581 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11582 if test yes != "$lt_cv_cc_needs_belf"; then
11583 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11584 CFLAGS=$SAVE_CFLAGS
11588 # Find out what ABI is being produced by ac_compile, and set linker
11589 # options accordingly.
11590 echo 'int i;' > conftest.$ac_ext
11591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11592 (eval $ac_compile) 2>&5
11594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11595 test $ac_status = 0; }; then
11596 case `$FILECMD conftest.o` in
11598 case $lt_cv_prog_gnu_ld in
11601 i?86-*-solaris*|x86_64-*-solaris*)
11602 LD="${LD-ld} -m elf_x86_64"
11605 LD="${LD-ld} -m elf64_sparc"
11608 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
11609 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11614 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11626 need_locks=$enable_libtool_lock
11628 if test -n "$ac_tool_prefix"; then
11629 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11630 set dummy ${ac_tool_prefix}mt; ac_word=$2
11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11632 printf %s "checking for $ac_word... " >&6; }
11633 if test ${ac_cv_prog_MANIFEST_TOOL+y}
11635 printf %s "(cached) " >&6
11637 if test -n "$MANIFEST_TOOL"; then
11638 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641 for as_dir in $PATH
11644 case $as_dir in #(((
11647 *) as_dir=$as_dir/ ;;
11649 for ac_exec_ext in '' $ac_executable_extensions; do
11650 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11651 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11652 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11661 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11662 if test -n "$MANIFEST_TOOL"; then
11663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11664 printf "%s\n" "$MANIFEST_TOOL" >&6; }
11666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 printf "%s\n" "no" >&6; }
11672 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11673 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11674 # Extract the first word of "mt", so it can be a program name with args.
11675 set dummy mt; ac_word=$2
11676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677 printf %s "checking for $ac_word... " >&6; }
11678 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11680 printf %s "(cached) " >&6
11682 if test -n "$ac_ct_MANIFEST_TOOL"; then
11683 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 case $as_dir in #(((
11692 *) as_dir=$as_dir/ ;;
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11696 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11706 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11707 if test -n "$ac_ct_MANIFEST_TOOL"; then
11708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11709 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 printf "%s\n" "no" >&6; }
11715 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11718 case $cross_compiling:$ac_tool_warned in
11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11721 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11722 ac_tool_warned=yes ;;
11724 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11727 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11730 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11732 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11733 if test ${lt_cv_path_mainfest_tool+y}
11735 printf %s "(cached) " >&6
11737 lt_cv_path_mainfest_tool=no
11738 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11739 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11740 cat conftest.err >&5
11741 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11742 lt_cv_path_mainfest_tool=yes
11746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11747 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11748 if test yes != "$lt_cv_path_mainfest_tool"; then
11758 rhapsody* | darwin*)
11759 if test -n "$ac_tool_prefix"; then
11760 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11761 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11763 printf %s "checking for $ac_word... " >&6; }
11764 if test ${ac_cv_prog_DSYMUTIL+y}
11766 printf %s "(cached) " >&6
11768 if test -n "$DSYMUTIL"; then
11769 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11775 case $as_dir in #(((
11778 *) as_dir=$as_dir/ ;;
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11782 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11792 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11793 if test -n "$DSYMUTIL"; then
11794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11795 printf "%s\n" "$DSYMUTIL" >&6; }
11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 printf "%s\n" "no" >&6; }
11803 if test -z "$ac_cv_prog_DSYMUTIL"; then
11804 ac_ct_DSYMUTIL=$DSYMUTIL
11805 # Extract the first word of "dsymutil", so it can be a program name with args.
11806 set dummy dsymutil; ac_word=$2
11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 printf %s "checking for $ac_word... " >&6; }
11809 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11811 printf %s "(cached) " >&6
11813 if test -n "$ac_ct_DSYMUTIL"; then
11814 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817 for as_dir in $PATH
11820 case $as_dir in #(((
11823 *) as_dir=$as_dir/ ;;
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11827 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11837 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11838 if test -n "$ac_ct_DSYMUTIL"; then
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11840 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 printf "%s\n" "no" >&6; }
11846 if test "x$ac_ct_DSYMUTIL" = x; then
11849 case $cross_compiling:$ac_tool_warned in
11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11853 ac_tool_warned=yes ;;
11855 DSYMUTIL=$ac_ct_DSYMUTIL
11858 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11861 if test -n "$ac_tool_prefix"; then
11862 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11863 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 printf %s "checking for $ac_word... " >&6; }
11866 if test ${ac_cv_prog_NMEDIT+y}
11868 printf %s "(cached) " >&6
11870 if test -n "$NMEDIT"; then
11871 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11877 case $as_dir in #(((
11880 *) as_dir=$as_dir/ ;;
11882 for ac_exec_ext in '' $ac_executable_extensions; do
11883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11884 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11894 NMEDIT=$ac_cv_prog_NMEDIT
11895 if test -n "$NMEDIT"; then
11896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11897 printf "%s\n" "$NMEDIT" >&6; }
11899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11900 printf "%s\n" "no" >&6; }
11905 if test -z "$ac_cv_prog_NMEDIT"; then
11906 ac_ct_NMEDIT=$NMEDIT
11907 # Extract the first word of "nmedit", so it can be a program name with args.
11908 set dummy nmedit; ac_word=$2
11909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 printf %s "checking for $ac_word... " >&6; }
11911 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11913 printf %s "(cached) " >&6
11915 if test -n "$ac_ct_NMEDIT"; then
11916 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919 for as_dir in $PATH
11922 case $as_dir in #(((
11925 *) as_dir=$as_dir/ ;;
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11929 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11939 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11940 if test -n "$ac_ct_NMEDIT"; then
11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11942 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 printf "%s\n" "no" >&6; }
11948 if test "x$ac_ct_NMEDIT" = x; then
11951 case $cross_compiling:$ac_tool_warned in
11953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11954 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11955 ac_tool_warned=yes ;;
11957 NMEDIT=$ac_ct_NMEDIT
11960 NMEDIT="$ac_cv_prog_NMEDIT"
11963 if test -n "$ac_tool_prefix"; then
11964 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11965 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11967 printf %s "checking for $ac_word... " >&6; }
11968 if test ${ac_cv_prog_LIPO+y}
11970 printf %s "(cached) " >&6
11972 if test -n "$LIPO"; then
11973 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH
11979 case $as_dir in #(((
11982 *) as_dir=$as_dir/ ;;
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11986 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11996 LIPO=$ac_cv_prog_LIPO
11997 if test -n "$LIPO"; then
11998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11999 printf "%s\n" "$LIPO" >&6; }
12001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002 printf "%s\n" "no" >&6; }
12007 if test -z "$ac_cv_prog_LIPO"; then
12009 # Extract the first word of "lipo", so it can be a program name with args.
12010 set dummy lipo; ac_word=$2
12011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 printf %s "checking for $ac_word... " >&6; }
12013 if test ${ac_cv_prog_ac_ct_LIPO+y}
12015 printf %s "(cached) " >&6
12017 if test -n "$ac_ct_LIPO"; then
12018 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12024 case $as_dir in #(((
12027 *) as_dir=$as_dir/ ;;
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_ac_ct_LIPO="lipo"
12032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12041 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12042 if test -n "$ac_ct_LIPO"; then
12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12044 printf "%s\n" "$ac_ct_LIPO" >&6; }
12046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 printf "%s\n" "no" >&6; }
12050 if test "x$ac_ct_LIPO" = x; then
12053 case $cross_compiling:$ac_tool_warned in
12055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12057 ac_tool_warned=yes ;;
12062 LIPO="$ac_cv_prog_LIPO"
12065 if test -n "$ac_tool_prefix"; then
12066 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12067 set dummy ${ac_tool_prefix}otool; ac_word=$2
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12069 printf %s "checking for $ac_word... " >&6; }
12070 if test ${ac_cv_prog_OTOOL+y}
12072 printf %s "(cached) " >&6
12074 if test -n "$OTOOL"; then
12075 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12078 for as_dir in $PATH
12081 case $as_dir in #(((
12084 *) as_dir=$as_dir/ ;;
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12098 OTOOL=$ac_cv_prog_OTOOL
12099 if test -n "$OTOOL"; then
12100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12101 printf "%s\n" "$OTOOL" >&6; }
12103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 printf "%s\n" "no" >&6; }
12109 if test -z "$ac_cv_prog_OTOOL"; then
12111 # Extract the first word of "otool", so it can be a program name with args.
12112 set dummy otool; ac_word=$2
12113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12114 printf %s "checking for $ac_word... " >&6; }
12115 if test ${ac_cv_prog_ac_ct_OTOOL+y}
12117 printf %s "(cached) " >&6
12119 if test -n "$ac_ct_OTOOL"; then
12120 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12126 case $as_dir in #(((
12129 *) as_dir=$as_dir/ ;;
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12133 ac_cv_prog_ac_ct_OTOOL="otool"
12134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12143 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12144 if test -n "$ac_ct_OTOOL"; then
12145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12146 printf "%s\n" "$ac_ct_OTOOL" >&6; }
12148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12149 printf "%s\n" "no" >&6; }
12152 if test "x$ac_ct_OTOOL" = x; then
12155 case $cross_compiling:$ac_tool_warned in
12157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12158 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12159 ac_tool_warned=yes ;;
12164 OTOOL="$ac_cv_prog_OTOOL"
12167 if test -n "$ac_tool_prefix"; then
12168 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12169 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 printf %s "checking for $ac_word... " >&6; }
12172 if test ${ac_cv_prog_OTOOL64+y}
12174 printf %s "(cached) " >&6
12176 if test -n "$OTOOL64"; then
12177 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12183 case $as_dir in #(((
12186 *) as_dir=$as_dir/ ;;
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12200 OTOOL64=$ac_cv_prog_OTOOL64
12201 if test -n "$OTOOL64"; then
12202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12203 printf "%s\n" "$OTOOL64" >&6; }
12205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 printf "%s\n" "no" >&6; }
12211 if test -z "$ac_cv_prog_OTOOL64"; then
12212 ac_ct_OTOOL64=$OTOOL64
12213 # Extract the first word of "otool64", so it can be a program name with args.
12214 set dummy otool64; ac_word=$2
12215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12216 printf %s "checking for $ac_word... " >&6; }
12217 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
12219 printf %s "(cached) " >&6
12221 if test -n "$ac_ct_OTOOL64"; then
12222 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12228 case $as_dir in #(((
12231 *) as_dir=$as_dir/ ;;
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12235 ac_cv_prog_ac_ct_OTOOL64="otool64"
12236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12245 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12246 if test -n "$ac_ct_OTOOL64"; then
12247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12248 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 printf "%s\n" "no" >&6; }
12254 if test "x$ac_ct_OTOOL64" = x; then
12257 case $cross_compiling:$ac_tool_warned in
12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12260 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12261 ac_tool_warned=yes ;;
12263 OTOOL64=$ac_ct_OTOOL64
12266 OTOOL64="$ac_cv_prog_OTOOL64"
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12296 printf %s "checking for -single_module linker flag... " >&6; }
12297 if test ${lt_cv_apple_cc_single_mod+y}
12299 printf %s "(cached) " >&6
12301 lt_cv_apple_cc_single_mod=no
12302 if test -z "$LT_MULTI_MODULE"; then
12303 # By default we will add the -single_module flag. You can override
12304 # by either setting the environment variable LT_MULTI_MODULE
12305 # non-empty at configure time, or by adding -multi_module to the
12307 rm -rf libconftest.dylib*
12308 echo "int foo(void){return 1;}" > conftest.c
12309 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12310 -dynamiclib -Wl,-single_module conftest.c" >&5
12311 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12312 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12314 # If there is a non-empty error log, and "single_module"
12315 # appears in it, assume the flag caused a linker warning
12316 if test -s conftest.err && $GREP single_module conftest.err; then
12317 cat conftest.err >&5
12318 # Otherwise, if the output was created with a 0 exit code from
12319 # the compiler, it worked.
12320 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12321 lt_cv_apple_cc_single_mod=yes
12323 cat conftest.err >&5
12325 rm -rf libconftest.dylib*
12329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12330 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12333 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12334 if test ${lt_cv_ld_exported_symbols_list+y}
12336 printf %s "(cached) " >&6
12338 lt_cv_ld_exported_symbols_list=no
12339 save_LDFLAGS=$LDFLAGS
12340 echo "_main" > conftest.sym
12341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12353 if ac_fn_c_try_link "$LINENO"
12355 lt_cv_ld_exported_symbols_list=yes
12357 lt_cv_ld_exported_symbols_list=no
12359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LDFLAGS=$save_LDFLAGS
12364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12365 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12368 printf %s "checking for -force_load linker flag... " >&6; }
12369 if test ${lt_cv_ld_force_load+y}
12371 printf %s "(cached) " >&6
12373 lt_cv_ld_force_load=no
12374 cat > conftest.c << _LT_EOF
12375 int forced_loaded() { return 2;}
12377 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12378 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12379 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
12380 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
12381 echo "$RANLIB libconftest.a" >&5
12382 $RANLIB libconftest.a 2>&5
12383 cat > conftest.c << _LT_EOF
12384 int main() { return 0;}
12386 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12387 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12389 if test -s conftest.err && $GREP force_load conftest.err; then
12390 cat conftest.err >&5
12391 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12392 lt_cv_ld_force_load=yes
12394 cat conftest.err >&5
12396 rm -f conftest.err libconftest.a conftest conftest.c
12397 rm -rf conftest.dSYM
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12401 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12403 rhapsody* | darwin1.[012])
12404 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12406 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12408 case $MACOSX_DEPLOYMENT_TARGET,$host in
12409 10.[012],*|,*powerpc*-darwin[5-8]*)
12410 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12412 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12416 if test yes = "$lt_cv_apple_cc_single_mod"; then
12417 _lt_dar_single_mod='$single_module'
12419 if test yes = "$lt_cv_ld_exported_symbols_list"; then
12420 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12424 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12425 _lt_dsymutil='~$DSYMUTIL $lib || :'
12432 # func_munge_path_list VARIABLE PATH
12433 # -----------------------------------
12434 # VARIABLE is name of variable containing _space_ separated list of
12435 # directories to be munged by the contents of PATH, which is string
12438 # string "DIR[ DIR]" will be prepended to VARIABLE
12440 # string "DIR[ DIR]" will be appended to VARIABLE
12441 # "DIRP[:DIRP]::[DIRA:]DIRA"
12442 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12443 # "DIRA[ DIRA]" will be appended to VARIABLE
12445 # VARIABLE will be replaced by "DIR[ DIR]"
12446 func_munge_path_list ()
12452 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12455 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12458 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12459 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12462 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12467 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12469 if test "x$ac_cv_header_dlfcn_h" = xyes
12471 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12477 func_stripname_cnf ()
12480 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12481 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12483 } # func_stripname_cnf
12490 # Check whether --enable-static was given.
12491 if test ${enable_static+y}
12493 enableval=$enable_static; p=${PACKAGE-default}
12495 yes) enable_static=yes ;;
12496 no) enable_static=no ;;
12499 # Look at the argument we got. We use all the common list separators.
12500 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12501 for pkg in $enableval; do
12503 if test "X$pkg" = "X$p"; then
12520 enable_win32_dll=yes
12523 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12524 if test -n "$ac_tool_prefix"; then
12525 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12526 set dummy ${ac_tool_prefix}as; ac_word=$2
12527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12528 printf %s "checking for $ac_word... " >&6; }
12529 if test ${ac_cv_prog_AS+y}
12531 printf %s "(cached) " >&6
12533 if test -n "$AS"; then
12534 ac_cv_prog_AS="$AS" # Let the user override the test.
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12540 case $as_dir in #(((
12543 *) as_dir=$as_dir/ ;;
12545 for ac_exec_ext in '' $ac_executable_extensions; do
12546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12547 ac_cv_prog_AS="${ac_tool_prefix}as"
12548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12558 if test -n "$AS"; then
12559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12560 printf "%s\n" "$AS" >&6; }
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 printf "%s\n" "no" >&6; }
12568 if test -z "$ac_cv_prog_AS"; then
12570 # Extract the first word of "as", so it can be a program name with args.
12571 set dummy as; ac_word=$2
12572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 printf %s "checking for $ac_word... " >&6; }
12574 if test ${ac_cv_prog_ac_ct_AS+y}
12576 printf %s "(cached) " >&6
12578 if test -n "$ac_ct_AS"; then
12579 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12582 for as_dir in $PATH
12585 case $as_dir in #(((
12588 *) as_dir=$as_dir/ ;;
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_ac_ct_AS="as"
12593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12602 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12603 if test -n "$ac_ct_AS"; then
12604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12605 printf "%s\n" "$ac_ct_AS" >&6; }
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 printf "%s\n" "no" >&6; }
12611 if test "x$ac_ct_AS" = x; then
12614 case $cross_compiling:$ac_tool_warned in
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12618 ac_tool_warned=yes ;;
12623 AS="$ac_cv_prog_AS"
12626 if test -n "$ac_tool_prefix"; then
12627 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12628 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630 printf %s "checking for $ac_word... " >&6; }
12631 if test ${ac_cv_prog_DLLTOOL+y}
12633 printf %s "(cached) " >&6
12635 if test -n "$DLLTOOL"; then
12636 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639 for as_dir in $PATH
12642 case $as_dir in #(((
12645 *) as_dir=$as_dir/ ;;
12647 for ac_exec_ext in '' $ac_executable_extensions; do
12648 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12649 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12659 DLLTOOL=$ac_cv_prog_DLLTOOL
12660 if test -n "$DLLTOOL"; then
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12662 printf "%s\n" "$DLLTOOL" >&6; }
12664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12665 printf "%s\n" "no" >&6; }
12670 if test -z "$ac_cv_prog_DLLTOOL"; then
12671 ac_ct_DLLTOOL=$DLLTOOL
12672 # Extract the first word of "dlltool", so it can be a program name with args.
12673 set dummy dlltool; ac_word=$2
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12675 printf %s "checking for $ac_word... " >&6; }
12676 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12678 printf %s "(cached) " >&6
12680 if test -n "$ac_ct_DLLTOOL"; then
12681 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12684 for as_dir in $PATH
12687 case $as_dir in #(((
12690 *) as_dir=$as_dir/ ;;
12692 for ac_exec_ext in '' $ac_executable_extensions; do
12693 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12694 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12704 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12705 if test -n "$ac_ct_DLLTOOL"; then
12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12707 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 printf "%s\n" "no" >&6; }
12713 if test "x$ac_ct_DLLTOOL" = x; then
12716 case $cross_compiling:$ac_tool_warned in
12718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12720 ac_tool_warned=yes ;;
12722 DLLTOOL=$ac_ct_DLLTOOL
12725 DLLTOOL="$ac_cv_prog_DLLTOOL"
12728 if test -n "$ac_tool_prefix"; then
12729 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12730 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 printf %s "checking for $ac_word... " >&6; }
12733 if test ${ac_cv_prog_OBJDUMP+y}
12735 printf %s "(cached) " >&6
12737 if test -n "$OBJDUMP"; then
12738 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741 for as_dir in $PATH
12744 case $as_dir in #(((
12747 *) as_dir=$as_dir/ ;;
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12751 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12761 OBJDUMP=$ac_cv_prog_OBJDUMP
12762 if test -n "$OBJDUMP"; then
12763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12764 printf "%s\n" "$OBJDUMP" >&6; }
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 printf "%s\n" "no" >&6; }
12772 if test -z "$ac_cv_prog_OBJDUMP"; then
12773 ac_ct_OBJDUMP=$OBJDUMP
12774 # Extract the first word of "objdump", so it can be a program name with args.
12775 set dummy objdump; ac_word=$2
12776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 printf %s "checking for $ac_word... " >&6; }
12778 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12780 printf %s "(cached) " >&6
12782 if test -n "$ac_ct_OBJDUMP"; then
12783 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12789 case $as_dir in #(((
12792 *) as_dir=$as_dir/ ;;
12794 for ac_exec_ext in '' $ac_executable_extensions; do
12795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12796 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12806 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12807 if test -n "$ac_ct_OBJDUMP"; then
12808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12809 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812 printf "%s\n" "no" >&6; }
12815 if test "x$ac_ct_OBJDUMP" = x; then
12818 case $cross_compiling:$ac_tool_warned in
12820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12822 ac_tool_warned=yes ;;
12824 OBJDUMP=$ac_ct_OBJDUMP
12827 OBJDUMP="$ac_cv_prog_OBJDUMP"
12833 test -z "$AS" && AS=as
12839 test -z "$DLLTOOL" && DLLTOOL=dlltool
12845 test -z "$OBJDUMP" && OBJDUMP=objdump
12857 # Check whether --enable-shared was given.
12858 if test ${enable_shared+y}
12860 enableval=$enable_shared; p=${PACKAGE-default}
12862 yes) enable_shared=yes ;;
12863 no) enable_shared=no ;;
12866 # Look at the argument we got. We use all the common list separators.
12867 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12868 for pkg in $enableval; do
12870 if test "X$pkg" = "X$p"; then
12891 # Check whether --with-pic was given.
12892 if test ${with_pic+y}
12894 withval=$with_pic; lt_p=${PACKAGE-default}
12896 yes|no) pic_mode=$withval ;;
12899 # Look at the argument we got. We use all the common list separators.
12900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12901 for lt_pkg in $withval; do
12903 if test "X$lt_pkg" = "X$lt_p"; then
12921 # Check whether --enable-fast-install was given.
12922 if test ${enable_fast_install+y}
12924 enableval=$enable_fast_install; p=${PACKAGE-default}
12926 yes) enable_fast_install=yes ;;
12927 no) enable_fast_install=no ;;
12929 enable_fast_install=no
12930 # Look at the argument we got. We use all the common list separators.
12931 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12932 for pkg in $enableval; do
12934 if test "X$pkg" = "X$p"; then
12935 enable_fast_install=yes
12942 enable_fast_install=yes
12952 shared_archive_member_spec=
12953 case $host,$enable_shared in
12954 power*-*-aix[5-9]*,yes)
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12956 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12958 # Check whether --with-aix-soname was given.
12959 if test ${with_aix_soname+y}
12961 withval=$with_aix_soname; case $withval in
12965 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12968 lt_cv_with_aix_soname=$with_aix_soname
12970 if test ${lt_cv_with_aix_soname+y}
12972 printf %s "(cached) " >&6
12974 lt_cv_with_aix_soname=aix
12977 with_aix_soname=$lt_cv_with_aix_soname
12980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12981 printf "%s\n" "$with_aix_soname" >&6; }
12982 if test aix != "$with_aix_soname"; then
12983 # For the AIX way of multilib, we name the shared archive member
12984 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12985 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12986 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12987 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12988 if test 64 = "${OBJECT_MODE-32}"; then
12989 shared_archive_member_spec=shr_64
12991 shared_archive_member_spec=shr
12996 with_aix_soname=aix
13009 # This can be used to rebuild libtool when needed
13010 LIBTOOL_DEPS=$ltmain
13012 # Always use our own libtool.
13013 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13044 test -z "$LN_S" && LN_S="ln -s"
13059 if test -n "${ZSH_VERSION+set}"; then
13060 setopt NO_GLOB_SUBST
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13064 printf %s "checking for objdir... " >&6; }
13065 if test ${lt_cv_objdir+y}
13067 printf %s "(cached) " >&6
13069 rm -f .libs 2>/dev/null
13070 mkdir .libs 2>/dev/null
13071 if test -d .libs; then
13074 # MS-DOS does not allow filenames that begin with a dot.
13077 rmdir .libs 2>/dev/null
13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13080 printf "%s\n" "$lt_cv_objdir" >&6; }
13081 objdir=$lt_cv_objdir
13087 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
13094 # AIX sometimes has problems with the GCC collect2 program. For some
13095 # reason, if we set the COLLECT_NAMES environment variable, the problems
13096 # vanish in a puff of smoke.
13097 if test set != "${COLLECT_NAMES+set}"; then
13099 export COLLECT_NAMES
13104 # Global variables:
13106 can_build_shared=yes
13108 # All known linkers require a '.a' archive for static linking (except MSVC and
13109 # ICC, which need '.lib').
13112 with_gnu_ld=$lt_cv_prog_gnu_ld
13117 # Set sane defaults for various variables
13118 test -z "$CC" && CC=cc
13119 test -z "$LTCC" && LTCC=$CC
13120 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13121 test -z "$LD" && LD=ld
13122 test -z "$ac_objext" && ac_objext=o
13124 func_cc_basename $compiler
13125 cc_basename=$func_cc_basename_result
13128 # Only perform the check for file, if the check method requires it
13129 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13130 case $deplibs_check_method in
13132 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13134 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
13135 if test ${lt_cv_path_MAGIC_CMD+y}
13137 printf %s "(cached) " >&6
13141 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13144 lt_save_MAGIC_CMD=$MAGIC_CMD
13145 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13146 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13147 for ac_dir in $ac_dummy; do
13149 test -z "$ac_dir" && ac_dir=.
13150 if test -f "$ac_dir/${ac_tool_prefix}file"; then
13151 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
13152 if test -n "$file_magic_test_file"; then
13153 case $deplibs_check_method in
13155 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13156 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13157 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13158 $EGREP "$file_magic_regex" > /dev/null; then
13163 *** Warning: the command libtool uses to detect shared libraries,
13164 *** $file_magic_cmd, produces output that libtool cannot recognize.
13165 *** The result is that libtool may fail to recognize shared libraries
13166 *** as such. This will affect the creation of libtool libraries that
13167 *** depend on shared libraries, but programs linked with such libtool
13168 *** libraries will work regardless of this problem. Nevertheless, you
13169 *** may want to report the problem to your system manager and/or to
13170 *** bug-libtool@gnu.org
13180 MAGIC_CMD=$lt_save_MAGIC_CMD
13185 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13186 if test -n "$MAGIC_CMD"; then
13187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13188 printf "%s\n" "$MAGIC_CMD" >&6; }
13190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 printf "%s\n" "no" >&6; }
13198 if test -z "$lt_cv_path_MAGIC_CMD"; then
13199 if test -n "$ac_tool_prefix"; then
13200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13201 printf %s "checking for file... " >&6; }
13202 if test ${lt_cv_path_MAGIC_CMD+y}
13204 printf %s "(cached) " >&6
13208 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
13211 lt_save_MAGIC_CMD=$MAGIC_CMD
13212 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13213 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13214 for ac_dir in $ac_dummy; do
13216 test -z "$ac_dir" && ac_dir=.
13217 if test -f "$ac_dir/file"; then
13218 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
13219 if test -n "$file_magic_test_file"; then
13220 case $deplibs_check_method in
13222 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13223 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13225 $EGREP "$file_magic_regex" > /dev/null; then
13230 *** Warning: the command libtool uses to detect shared libraries,
13231 *** $file_magic_cmd, produces output that libtool cannot recognize.
13232 *** The result is that libtool may fail to recognize shared libraries
13233 *** as such. This will affect the creation of libtool libraries that
13234 *** depend on shared libraries, but programs linked with such libtool
13235 *** libraries will work regardless of this problem. Nevertheless, you
13236 *** may want to report the problem to your system manager and/or to
13237 *** bug-libtool@gnu.org
13247 MAGIC_CMD=$lt_save_MAGIC_CMD
13252 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
13253 if test -n "$MAGIC_CMD"; then
13254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13255 printf "%s\n" "$MAGIC_CMD" >&6; }
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13258 printf "%s\n" "no" >&6; }
13271 # Use C for the default configuration in the libtool script
13275 ac_cpp='$CPP $CPPFLAGS'
13276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13281 # Source file extension for C test sources.
13284 # Object file extension for compiled C test sources.
13288 # Code to be used in simple compile tests
13289 lt_simple_compile_test_code="int some_variable = 0;"
13291 # Code to be used in simple link tests
13292 lt_simple_link_test_code='int main(){return(0);}'
13300 # If no C compiler was specified, use CC.
13303 # If no C compiler flags were specified, use CFLAGS.
13304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13306 # Allow CC to be a program name with arguments.
13309 # Save the default compiler, since it gets overwritten when the other
13310 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13311 compiler_DEFAULT=$CC
13313 # save warnings/boilerplate of simple test code
13314 ac_outfile=conftest.$ac_objext
13315 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13316 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13317 _lt_compiler_boilerplate=`cat conftest.err`
13320 ac_outfile=conftest.$ac_objext
13321 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13322 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13323 _lt_linker_boilerplate=`cat conftest.err`
13328 ## There is no encapsulation within the following macros, do not change
13329 ## the running order or otherwise move them around unless you know exactly
13330 ## what you are doing...
13331 if test -n "$compiler"; then
13333 lt_prog_compiler_no_builtin_flag=
13335 if test yes = "$GCC"; then
13336 case $cc_basename in
13338 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13340 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13344 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13345 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
13347 printf %s "(cached) " >&6
13349 lt_cv_prog_compiler_rtti_exceptions=no
13350 ac_outfile=conftest.$ac_objext
13351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13352 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
13353 # Insert the option either (1) after the last *FLAGS variable, or
13354 # (2) before a word containing "conftest.", or (3) at the end.
13355 # Note that $ac_compile itself does not contain backslashes and begins
13356 # with a dollar sign (not a hyphen), so the echo should work correctly.
13357 # The option is referenced via a variable to avoid confusing sed.
13358 lt_compile=`echo "$ac_compile" | $SED \
13359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13361 -e 's:$: $lt_compiler_flag:'`
13362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13363 (eval "$lt_compile" 2>conftest.err)
13365 cat conftest.err >&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 if (exit $ac_status) && test -s "$ac_outfile"; then
13368 # The compiler can only warn and ignore the option if not recognized
13369 # So say no if there are warnings other than the usual output.
13370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13373 lt_cv_prog_compiler_rtti_exceptions=yes
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13380 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13382 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
13383 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13395 lt_prog_compiler_wl=
13396 lt_prog_compiler_pic=
13397 lt_prog_compiler_static=
13400 if test yes = "$GCC"; then
13401 lt_prog_compiler_wl='-Wl,'
13402 lt_prog_compiler_static='-static'
13406 # All AIX code is PIC.
13407 if test ia64 = "$host_cpu"; then
13408 # AIX 5 now supports IA64 processor
13409 lt_prog_compiler_static='-Bstatic'
13411 lt_prog_compiler_pic='-fPIC'
13417 # see comment about AmigaOS4 .so support
13418 lt_prog_compiler_pic='-fPIC'
13421 # FIXME: we need at least 68020 code to build shared libraries, but
13422 # adding the '-m68020' flag to GCC prevents building anything better,
13424 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13430 # PIC is the default for these OSes.
13433 mingw* | cygwin* | pw32* | os2* | cegcc*)
13434 # This hack is so that the source file can tell whether it is being
13435 # built for inclusion in a dll (and should export symbols for example).
13436 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13437 # (--disable-auto-import) libraries
13438 lt_prog_compiler_pic='-DDLL_EXPORT'
13441 lt_prog_compiler_static='$wl-static'
13446 darwin* | rhapsody*)
13447 # PIC is the default on this platform
13448 # Common symbols not allowed in MH_DYLIB files
13449 lt_prog_compiler_pic='-fno-common'
13453 # PIC is the default for Haiku.
13454 # The "-static" flag exists, but is broken.
13455 lt_prog_compiler_static=
13459 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13460 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13461 # sets the default TLS model and affects inlining.
13467 lt_prog_compiler_pic='-fPIC'
13473 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13474 # Instead, we relocate shared libraries at runtime.
13478 # Just because we use GCC doesn't mean we suddenly get shared libraries
13479 # on systems that don't support them.
13480 lt_prog_compiler_can_build_shared=no
13485 # QNX uses GNU C++, but need to define -shared option too, otherwise
13486 # it will coredump.
13487 lt_prog_compiler_pic='-fPIC -shared'
13491 if test -d /usr/nec; then
13492 lt_prog_compiler_pic=-Kconform_pic
13497 lt_prog_compiler_pic='-fPIC'
13501 case $cc_basename in
13502 nvcc*) # Cuda Compiler Driver 2.2
13503 lt_prog_compiler_wl='-Xlinker '
13504 if test -n "$lt_prog_compiler_pic"; then
13505 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13510 # PORTME Check for flag to pass linker flags through the system compiler.
13513 lt_prog_compiler_wl='-Wl,'
13514 if test ia64 = "$host_cpu"; then
13515 # AIX 5 now supports IA64 processor
13516 lt_prog_compiler_static='-Bstatic'
13518 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13522 darwin* | rhapsody*)
13523 # PIC is the default on this platform
13524 # Common symbols not allowed in MH_DYLIB files
13525 lt_prog_compiler_pic='-fno-common'
13526 case $cc_basename in
13528 # NAG Fortran compiler
13529 lt_prog_compiler_wl='-Wl,-Wl,,'
13530 lt_prog_compiler_pic='-PIC'
13531 lt_prog_compiler_static='-Bstatic'
13536 mingw* | cygwin* | pw32* | os2* | cegcc*)
13537 # This hack is so that the source file can tell whether it is being
13538 # built for inclusion in a dll (and should export symbols for example).
13539 lt_prog_compiler_pic='-DDLL_EXPORT'
13542 lt_prog_compiler_static='$wl-static'
13547 hpux9* | hpux10* | hpux11*)
13548 lt_prog_compiler_wl='-Wl,'
13549 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13550 # not for PA HP-UX.
13556 lt_prog_compiler_pic='+Z'
13559 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13560 lt_prog_compiler_static='$wl-a ${wl}archive'
13563 irix5* | irix6* | nonstopux*)
13564 lt_prog_compiler_wl='-Wl,'
13565 # PIC (with -KPIC) is the default.
13566 lt_prog_compiler_static='-non_shared'
13569 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13570 case $cc_basename in
13571 # old Intel for x86_64, which still supported -KPIC.
13573 lt_prog_compiler_wl='-Wl,'
13574 lt_prog_compiler_pic='-KPIC'
13575 lt_prog_compiler_static='-static'
13577 # icc used to be incompatible with GCC.
13578 # ICC 10 doesn't accept -KPIC any more.
13580 lt_prog_compiler_wl='-Wl,'
13581 lt_prog_compiler_pic='-fPIC'
13582 lt_prog_compiler_static='-static'
13584 # Lahey Fortran 8.1.
13586 lt_prog_compiler_wl='-Wl,'
13587 lt_prog_compiler_pic='--shared'
13588 lt_prog_compiler_static='--static'
13591 # NAG Fortran compiler
13592 lt_prog_compiler_wl='-Wl,-Wl,,'
13593 lt_prog_compiler_pic='-PIC'
13594 lt_prog_compiler_static='-Bstatic'
13597 # Fabrice Bellard et al's Tiny C Compiler
13598 lt_prog_compiler_wl='-Wl,'
13599 lt_prog_compiler_pic='-fPIC'
13600 lt_prog_compiler_static='-static'
13602 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13603 # Portland Group compilers (*not* the Pentium gcc compiler,
13604 # which looks to be a dead project)
13605 lt_prog_compiler_wl='-Wl,'
13606 lt_prog_compiler_pic='-fpic'
13607 lt_prog_compiler_static='-Bstatic'
13610 lt_prog_compiler_wl='-Wl,'
13611 # All Alpha code is PIC.
13612 lt_prog_compiler_static='-non_shared'
13614 xl* | bgxl* | bgf* | mpixl*)
13615 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13616 lt_prog_compiler_wl='-Wl,'
13617 lt_prog_compiler_pic='-qpic'
13618 lt_prog_compiler_static='-qstaticlink'
13621 case `$CC -V 2>&1 | $SED 5q` in
13622 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13623 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13624 lt_prog_compiler_pic='-KPIC'
13625 lt_prog_compiler_static='-Bstatic'
13626 lt_prog_compiler_wl=''
13628 *Sun\ F* | *Sun*Fortran*)
13629 lt_prog_compiler_pic='-KPIC'
13630 lt_prog_compiler_static='-Bstatic'
13631 lt_prog_compiler_wl='-Qoption ld '
13635 lt_prog_compiler_pic='-KPIC'
13636 lt_prog_compiler_static='-Bstatic'
13637 lt_prog_compiler_wl='-Wl,'
13639 *Intel*\ [CF]*Compiler*)
13640 lt_prog_compiler_wl='-Wl,'
13641 lt_prog_compiler_pic='-fPIC'
13642 lt_prog_compiler_static='-static'
13645 lt_prog_compiler_wl='-Wl,'
13646 lt_prog_compiler_pic='-fpic'
13647 lt_prog_compiler_static='-Bstatic'
13655 lt_prog_compiler_pic='-KPIC'
13656 lt_prog_compiler_static='-Bstatic'
13660 # QNX uses GNU C++, but need to define -shared option too, otherwise
13661 # it will coredump.
13662 lt_prog_compiler_pic='-fPIC -shared'
13665 osf3* | osf4* | osf5*)
13666 lt_prog_compiler_wl='-Wl,'
13667 # All OSF/1 code is PIC.
13668 lt_prog_compiler_static='-non_shared'
13672 lt_prog_compiler_static='-non_shared'
13676 lt_prog_compiler_pic='-KPIC'
13677 lt_prog_compiler_static='-Bstatic'
13678 case $cc_basename in
13679 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13680 lt_prog_compiler_wl='-Qoption ld ';;
13682 lt_prog_compiler_wl='-Wl,';;
13687 lt_prog_compiler_wl='-Qoption ld '
13688 lt_prog_compiler_pic='-PIC'
13689 lt_prog_compiler_static='-Bstatic'
13692 sysv4 | sysv4.2uw2* | sysv4.3*)
13693 lt_prog_compiler_wl='-Wl,'
13694 lt_prog_compiler_pic='-KPIC'
13695 lt_prog_compiler_static='-Bstatic'
13699 if test -d /usr/nec; then
13700 lt_prog_compiler_pic='-Kconform_pic'
13701 lt_prog_compiler_static='-Bstatic'
13705 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13706 lt_prog_compiler_wl='-Wl,'
13707 lt_prog_compiler_pic='-KPIC'
13708 lt_prog_compiler_static='-Bstatic'
13712 lt_prog_compiler_wl='-Wl,'
13713 lt_prog_compiler_can_build_shared=no
13717 lt_prog_compiler_pic='-pic'
13718 lt_prog_compiler_static='-Bstatic'
13722 lt_prog_compiler_can_build_shared=no
13728 # For platforms that do not support PIC, -DPIC is meaningless:
13730 lt_prog_compiler_pic=
13733 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13738 printf %s "checking for $compiler option to produce PIC... " >&6; }
13739 if test ${lt_cv_prog_compiler_pic+y}
13741 printf %s "(cached) " >&6
13743 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13746 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13747 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13750 # Check to make sure the PIC flag actually works.
13752 if test -n "$lt_prog_compiler_pic"; then
13753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13754 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13755 if test ${lt_cv_prog_compiler_pic_works+y}
13757 printf %s "(cached) " >&6
13759 lt_cv_prog_compiler_pic_works=no
13760 ac_outfile=conftest.$ac_objext
13761 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13762 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13763 # Insert the option either (1) after the last *FLAGS variable, or
13764 # (2) before a word containing "conftest.", or (3) at the end.
13765 # Note that $ac_compile itself does not contain backslashes and begins
13766 # with a dollar sign (not a hyphen), so the echo should work correctly.
13767 # The option is referenced via a variable to avoid confusing sed.
13768 lt_compile=`echo "$ac_compile" | $SED \
13769 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13770 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13771 -e 's:$: $lt_compiler_flag:'`
13772 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13773 (eval "$lt_compile" 2>conftest.err)
13775 cat conftest.err >&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 if (exit $ac_status) && test -s "$ac_outfile"; then
13778 # The compiler can only warn and ignore the option if not recognized
13779 # So say no if there are warnings other than the usual output.
13780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13781 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13782 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13783 lt_cv_prog_compiler_pic_works=yes
13789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13790 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13792 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13793 case $lt_prog_compiler_pic in
13795 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13798 lt_prog_compiler_pic=
13799 lt_prog_compiler_can_build_shared=no
13815 # Check to make sure the static flag actually works.
13817 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13819 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13820 if test ${lt_cv_prog_compiler_static_works+y}
13822 printf %s "(cached) " >&6
13824 lt_cv_prog_compiler_static_works=no
13825 save_LDFLAGS=$LDFLAGS
13826 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13827 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13828 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13829 # The linker can only warn and ignore the option if not recognized
13830 # So say no if there are warnings
13831 if test -s conftest.err; then
13832 # Append any errors to the config.log.
13833 cat conftest.err 1>&5
13834 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13835 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13836 if diff conftest.exp conftest.er2 >/dev/null; then
13837 lt_cv_prog_compiler_static_works=yes
13840 lt_cv_prog_compiler_static_works=yes
13844 LDFLAGS=$save_LDFLAGS
13847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13848 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13850 if test yes = "$lt_cv_prog_compiler_static_works"; then
13853 lt_prog_compiler_static=
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13863 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13864 if test ${lt_cv_prog_compiler_c_o+y}
13866 printf %s "(cached) " >&6
13868 lt_cv_prog_compiler_c_o=no
13869 $RM -r conftest 2>/dev/null
13873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13875 lt_compiler_flag="-o out/conftest2.$ac_objext"
13876 # Insert the option either (1) after the last *FLAGS variable, or
13877 # (2) before a word containing "conftest.", or (3) at the end.
13878 # Note that $ac_compile itself does not contain backslashes and begins
13879 # with a dollar sign (not a hyphen), so the echo should work correctly.
13880 lt_compile=`echo "$ac_compile" | $SED \
13881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13883 -e 's:$: $lt_compiler_flag:'`
13884 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13885 (eval "$lt_compile" 2>out/conftest.err)
13887 cat out/conftest.err >&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13891 # The compiler can only warn and ignore the option if not recognized
13892 # So say no if there are warnings
13893 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13896 lt_cv_prog_compiler_c_o=yes
13901 # SGI C++ compiler will create directory out/ii_files/ for
13902 # template instantiation
13903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13904 $RM out/* && rmdir out
13910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13911 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13919 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13920 if test ${lt_cv_prog_compiler_c_o+y}
13922 printf %s "(cached) " >&6
13924 lt_cv_prog_compiler_c_o=no
13925 $RM -r conftest 2>/dev/null
13929 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13931 lt_compiler_flag="-o out/conftest2.$ac_objext"
13932 # Insert the option either (1) after the last *FLAGS variable, or
13933 # (2) before a word containing "conftest.", or (3) at the end.
13934 # Note that $ac_compile itself does not contain backslashes and begins
13935 # with a dollar sign (not a hyphen), so the echo should work correctly.
13936 lt_compile=`echo "$ac_compile" | $SED \
13937 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13938 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13939 -e 's:$: $lt_compiler_flag:'`
13940 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13941 (eval "$lt_compile" 2>out/conftest.err)
13943 cat out/conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13947 # The compiler can only warn and ignore the option if not recognized
13948 # So say no if there are warnings
13949 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13950 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13951 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13952 lt_cv_prog_compiler_c_o=yes
13957 # SGI C++ compiler will create directory out/ii_files/ for
13958 # template instantiation
13959 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13960 $RM out/* && rmdir out
13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13967 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13972 hard_links=nottested
13973 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13974 # do not overwrite the value of need_locks provided by the user
13975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13976 printf %s "checking if we can lock with hard links... " >&6; }
13979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13981 ln conftest.a conftest.b 2>&5 || hard_links=no
13982 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13984 printf "%s\n" "$hard_links" >&6; }
13985 if test no = "$hard_links"; then
13986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13987 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14000 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14003 allow_undefined_flag=
14004 always_export_symbols=no
14006 archive_expsym_cmds=
14007 compiler_needs_object=no
14008 enable_shared_with_static_runtimes=no
14009 export_dynamic_flag_spec=
14010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14011 hardcode_automatic=no
14013 hardcode_direct_absolute=no
14014 hardcode_libdir_flag_spec=
14015 hardcode_libdir_separator=
14016 hardcode_minus_L=no
14017 hardcode_shlibpath_var=unsupported
14019 link_all_deplibs=unknown
14021 module_expsym_cmds=
14022 old_archive_from_new_cmds=
14023 old_archive_from_expsyms_cmds=
14024 thread_safe_flag_spec=
14025 whole_archive_flag_spec=
14026 # include_expsyms should be a list of space-separated symbols to be *always*
14027 # included in the symbol list
14029 # exclude_expsyms can be an extended regexp of symbols to exclude
14030 # it will be wrapped by ' (' and ')$', so one must not match beginning or
14031 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
14032 # as well as any symbol that contains 'd'.
14033 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14035 # platforms (ab)use it in PIC code, but their linkers get confused if
14036 # the symbol is explicitly referenced. Since portable code cannot
14037 # rely on this symbol name, it's probably fine to never include it in
14038 # preloaded symbol tables.
14039 # Exclude shared library initialization/finalization symbols.
14040 extract_expsyms_cmds=
14043 cygwin* | mingw* | pw32* | cegcc*)
14044 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
14045 # When not using gcc, we currently assume that we are using
14046 # Microsoft Visual C++ or Intel C++ Compiler.
14047 if test yes != "$GCC"; then
14052 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
14055 openbsd* | bitrig*)
14062 # On some targets, GNU ld is compatible enough with the native linker
14063 # that we're better off using the native interface for both.
14064 lt_use_gnu_ld_interface=no
14065 if test yes = "$with_gnu_ld"; then
14068 # The AIX port of GNU ld has always aspired to compatibility
14069 # with the native linker. However, as the warning in the GNU ld
14070 # block says, versions before 2.19.5* couldn't really create working
14071 # shared libraries, regardless of the interface used.
14072 case `$LD -v 2>&1` in
14073 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14074 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14075 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14077 lt_use_gnu_ld_interface=yes
14082 lt_use_gnu_ld_interface=yes
14087 if test yes = "$lt_use_gnu_ld_interface"; then
14088 # If archive_cmds runs LD, not CC, wlarc should be empty
14091 # Set some defaults for GNU ld with shared library support. These
14092 # are reset later if shared libraries are not supported. Putting them
14093 # here allows them to be overridden if necessary.
14094 runpath_var=LD_RUN_PATH
14095 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14096 export_dynamic_flag_spec='$wl--export-dynamic'
14097 # ancient GNU ld didn't support --whole-archive et. al.
14098 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14099 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14101 whole_archive_flag_spec=
14103 supports_anon_versioning=no
14104 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
14105 *GNU\ gold*) supports_anon_versioning=yes ;;
14106 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14107 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14108 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14109 *\ 2.11.*) ;; # other 2.11 versions
14110 *) supports_anon_versioning=yes ;;
14113 # See if GNU ld supports shared libraries.
14116 # On AIX/PPC, the GNU linker is very broken
14117 if test ia64 != "$host_cpu"; then
14121 *** Warning: the GNU linker, at least up to release 2.19, is reported
14122 *** to be unable to reliably create shared libraries on AIX.
14123 *** Therefore, libtool is disabling shared libraries support. If you
14124 *** really care for shared libraries, you may want to install binutils
14125 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14126 *** You will then need to restart the configuration process.
14135 # see comment about AmigaOS4 .so support
14136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14137 archive_expsym_cmds=''
14140 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)'
14141 hardcode_libdir_flag_spec='-L$libdir'
14142 hardcode_minus_L=yes
14148 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14149 allow_undefined_flag=unsupported
14150 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14151 # support --undefined. This deserves some investigation. FIXME
14152 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14158 cygwin* | mingw* | pw32* | cegcc*)
14159 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14160 # as there is no search path for DLLs.
14161 hardcode_libdir_flag_spec='-L$libdir'
14162 export_dynamic_flag_spec='$wl--export-all-symbols'
14163 allow_undefined_flag=unsupported
14164 always_export_symbols=no
14165 enable_shared_with_static_runtimes=yes
14166 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'
14167 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14169 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14170 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14171 # If the export-symbols file already is a .def file, use it as
14172 # is; otherwise, prepend EXPORTS...
14173 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14174 cp $export_symbols $output_objdir/$soname.def;
14176 echo EXPORTS > $output_objdir/$soname.def;
14177 cat $export_symbols >> $output_objdir/$soname.def;
14179 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14187 link_all_deplibs=yes
14191 hardcode_libdir_flag_spec='-L$libdir'
14192 hardcode_minus_L=yes
14193 allow_undefined_flag=unsupported
14195 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14196 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14197 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14198 $ECHO EXPORTS >> $output_objdir/$libname.def~
14199 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14200 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14201 emximp -o $lib $output_objdir/$libname.def'
14202 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14203 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14204 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14205 $ECHO EXPORTS >> $output_objdir/$libname.def~
14206 prefix_cmds="$SED"~
14207 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14208 prefix_cmds="$prefix_cmds -e 1d";
14210 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14211 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14213 emximp -o $lib $output_objdir/$libname.def'
14214 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14215 enable_shared_with_static_runtimes=yes
14221 hardcode_shlibpath_var=no
14222 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14223 export_dynamic_flag_spec='$wl-E'
14224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14225 # Instead, shared libraries are loaded at an image base (0x10000000 by
14226 # default) and relocated if they conflict, which is a slow very memory
14227 # consuming and fragmenting process. To avoid this, we pick a random,
14228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14230 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14231 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'
14234 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14236 if test linux-dietlibc = "$host_os"; then
14237 case $cc_basename in
14238 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14241 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14242 && test no = "$tmp_diet"
14244 tmp_addflag=' $pic_flag'
14245 tmp_sharedflag='-shared'
14246 case $cc_basename,$host_cpu in
14247 pgcc*) # Portland Group C compiler
14248 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'
14249 tmp_addflag=' $pic_flag'
14251 pgf77* | pgf90* | pgf95* | pgfortran*)
14252 # Portland Group f77 and f90 compilers
14253 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'
14254 tmp_addflag=' $pic_flag -Mnomain' ;;
14255 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14256 tmp_addflag=' -i_dynamic' ;;
14257 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14258 tmp_addflag=' -i_dynamic -nofor_main' ;;
14259 ifc* | ifort*) # Intel Fortran compiler
14260 tmp_addflag=' -nofor_main' ;;
14261 lf95*) # Lahey Fortran 8.1
14262 whole_archive_flag_spec=
14263 tmp_sharedflag='--shared' ;;
14264 nagfor*) # NAGFOR 5.3
14265 tmp_sharedflag='-Wl,-shared' ;;
14266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14267 tmp_sharedflag='-qmkshrobj'
14269 nvcc*) # Cuda Compiler Driver 2.2
14270 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'
14271 compiler_needs_object=yes
14274 case `$CC -V 2>&1 | $SED 5q` in
14275 *Sun\ C*) # Sun C 5.9
14276 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'
14277 compiler_needs_object=yes
14278 tmp_sharedflag='-G' ;;
14279 *Sun\ F*) # Sun Fortran 8.3
14280 tmp_sharedflag='-G' ;;
14282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14284 if test yes = "$supports_anon_versioning"; then
14285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14286 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14287 echo "local: *; };" >> $output_objdir/$libname.ver~
14288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14291 case $cc_basename in
14293 export_dynamic_flag_spec='-rdynamic'
14295 xlf* | bgf* | bgxlf* | mpixlf*)
14296 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14297 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14299 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14300 if test yes = "$supports_anon_versioning"; then
14301 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14302 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14303 echo "local: *; };" >> $output_objdir/$libname.ver~
14304 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14314 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14315 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14318 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14319 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14324 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14328 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14329 *** create shared libraries on Solaris systems. Therefore, libtool
14330 *** is disabling shared libraries support. We urge you to upgrade GNU
14331 *** binutils to release 2.9.1 or newer. Another option is to modify
14332 *** your PATH or compiler configuration so that the native linker is
14333 *** used, and then restart.
14336 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14337 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14338 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14345 case `$LD -v 2>&1` in
14346 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14350 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
14351 *** reliably create shared libraries on SCO systems. Therefore, libtool
14352 *** is disabling shared libraries support. We urge you to upgrade GNU
14353 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14354 *** your PATH or compiler configuration so that the native linker is
14355 *** used, and then restart.
14360 # For security reasons, it is highly recommended that you always
14361 # use absolute paths for naming shared libraries, and exclude the
14362 # DT_RUNPATH tag from executables and libraries. But doing so
14363 # requires that you compile everything twice, which is a pain.
14364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14367 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14376 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14378 hardcode_direct=yes
14379 hardcode_shlibpath_var=no
14383 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14385 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14392 if test no = "$ld_shlibs"; then
14394 hardcode_libdir_flag_spec=
14395 export_dynamic_flag_spec=
14396 whole_archive_flag_spec=
14399 # PORTME fill in a description of your system's linker (not GNU ld)
14402 allow_undefined_flag=unsupported
14403 always_export_symbols=yes
14404 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'
14405 # Note: this linker hardcodes the directories in LIBPATH if there
14406 # are no directories specified by -L.
14407 hardcode_minus_L=yes
14408 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
14409 # Neither direct hardcoding nor static linking is supported with a
14411 hardcode_direct=unsupported
14416 if test ia64 = "$host_cpu"; then
14417 # On IA64, the linker does run time linking by default, so we don't
14418 # have to do anything special.
14419 aix_use_runtimelinking=no
14420 exp_sym_flag='-Bexport'
14423 # If we're using GNU nm, then we don't want the "-C" option.
14424 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14425 # Without the "-l" option, or with the "-B" option, AIX nm treats
14426 # weak defined symbols like other global defined symbols, whereas
14427 # GNU nm marks them as "W".
14428 # While the 'weak' keyword is ignored in the Export File, we need
14429 # it in the Import File for the 'aix-soname' feature, so we have
14430 # to replace the "-B" option with "-P" for AIX nm.
14431 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14432 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'
14434 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14436 aix_use_runtimelinking=no
14438 # Test if we are trying to use run time linking or normal
14439 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14440 # have runtime linking enabled, and use it for executables.
14441 # For shared libraries, we enable/disable runtime linking
14442 # depending on the kind of the shared library created -
14443 # when "with_aix_soname,aix_use_runtimelinking" is:
14444 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
14445 # "aix,yes" lib.so shared, rtl:yes, for executables
14446 # lib.a static archive
14447 # "both,no" lib.so.V(shr.o) shared, rtl:yes
14448 # lib.a(lib.so.V) shared, rtl:no, for executables
14449 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14450 # lib.a(lib.so.V) shared, rtl:no
14451 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
14452 # lib.a static archive
14453 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14454 for ld_flag in $LDFLAGS; do
14455 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
14456 aix_use_runtimelinking=yes
14460 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14461 # With aix-soname=svr4, we create the lib.so.V shared archives only,
14462 # so we don't have lib.a shared libs to link our executables.
14463 # We have to force runtime linking in this case.
14464 aix_use_runtimelinking=yes
14465 LDFLAGS="$LDFLAGS -Wl,-brtl"
14470 exp_sym_flag='-bexport'
14471 no_entry_flag='-bnoentry'
14474 # When large executables or shared objects are built, AIX ld can
14475 # have problems creating the table of contents. If linking a library
14476 # or program results in "error TOC overflow" add -mminimal-toc to
14477 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14478 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14481 hardcode_direct=yes
14482 hardcode_direct_absolute=yes
14483 hardcode_libdir_separator=':'
14484 link_all_deplibs=yes
14485 file_list_spec='$wl-f,'
14486 case $with_aix_soname,$aix_use_runtimelinking in
14487 aix,*) ;; # traditional, no import file
14488 svr4,* | *,yes) # use import file
14489 # The Import File defines what to hardcode.
14491 hardcode_direct_absolute=no
14495 if test yes = "$GCC"; then
14496 case $host_os in aix4.[012]|aix4.[012].*)
14497 # We only want to do this on AIX 4.2 and lower, the check
14498 # below for broken collect2 doesn't work under 4.3+
14499 collect2name=`$CC -print-prog-name=collect2`
14500 if test -f "$collect2name" &&
14501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14503 # We have reworked collect2
14506 # We have old collect2
14507 hardcode_direct=unsupported
14508 # It fails to find uninstalled libraries when the uninstalled
14509 # path is not listed in the libpath. Setting hardcode_minus_L
14510 # to unsupported forces relinking
14511 hardcode_minus_L=yes
14512 hardcode_libdir_flag_spec='-L$libdir'
14513 hardcode_libdir_separator=
14517 shared_flag='-shared'
14518 if test yes = "$aix_use_runtimelinking"; then
14519 shared_flag="$shared_flag "'$wl-G'
14521 # Need to ensure runtime linking is disabled for the traditional
14522 # shared library, or the linker may eventually find shared libraries
14523 # /with/ Import File - we do not want to mix them.
14524 shared_flag_aix='-shared'
14525 shared_flag_svr4='-shared $wl-G'
14528 if test ia64 = "$host_cpu"; then
14529 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14530 # chokes on -Wl,-G. The following line is correct:
14533 if test yes = "$aix_use_runtimelinking"; then
14534 shared_flag='$wl-G'
14536 shared_flag='$wl-bM:SRE'
14538 shared_flag_aix='$wl-bM:SRE'
14539 shared_flag_svr4='$wl-G'
14543 export_dynamic_flag_spec='$wl-bexpall'
14544 # It seems that -bexpall does not export symbols beginning with
14545 # underscore (_), so it is better to generate a list of symbols to export.
14546 always_export_symbols=yes
14547 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14548 # Warning - without using the other runtime loading flags (-brtl),
14549 # -berok will link without error, but may produce a broken library.
14550 allow_undefined_flag='-berok'
14551 # Determine the default libpath from the value encoded in an
14552 # empty executable.
14553 if test set = "${lt_cv_aix_libpath+set}"; then
14554 aix_libpath=$lt_cv_aix_libpath
14556 if test ${lt_cv_aix_libpath_+y}
14558 printf %s "(cached) " >&6
14560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14561 /* end confdefs.h. */
14571 if ac_fn_c_try_link "$LINENO"
14574 lt_aix_libpath_sed='
14575 /Import File Strings/,/^$/ {
14577 s/^0 *\([^ ]*\) *$/\1/
14581 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14582 # Check for a 64-bit object if we didn't find anything.
14583 if test -z "$lt_cv_aix_libpath_"; then
14584 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14588 conftest$ac_exeext conftest.$ac_ext
14589 if test -z "$lt_cv_aix_libpath_"; then
14590 lt_cv_aix_libpath_=/usr/lib:/lib
14595 aix_libpath=$lt_cv_aix_libpath_
14598 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14599 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
14601 if test ia64 = "$host_cpu"; then
14602 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14603 allow_undefined_flag="-z nodefs"
14604 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"
14606 # Determine the default libpath from the value encoded in an
14607 # empty executable.
14608 if test set = "${lt_cv_aix_libpath+set}"; then
14609 aix_libpath=$lt_cv_aix_libpath
14611 if test ${lt_cv_aix_libpath_+y}
14613 printf %s "(cached) " >&6
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14626 if ac_fn_c_try_link "$LINENO"
14629 lt_aix_libpath_sed='
14630 /Import File Strings/,/^$/ {
14632 s/^0 *\([^ ]*\) *$/\1/
14636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14637 # Check for a 64-bit object if we didn't find anything.
14638 if test -z "$lt_cv_aix_libpath_"; then
14639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14643 conftest$ac_exeext conftest.$ac_ext
14644 if test -z "$lt_cv_aix_libpath_"; then
14645 lt_cv_aix_libpath_=/usr/lib:/lib
14650 aix_libpath=$lt_cv_aix_libpath_
14653 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14654 # Warning - without using the other run time loading flags,
14655 # -berok will link without error, but may produce a broken library.
14656 no_undefined_flag=' $wl-bernotok'
14657 allow_undefined_flag=' $wl-berok'
14658 if test yes = "$with_gnu_ld"; then
14659 # We only use this code for GNU lds that support --whole-archive.
14660 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14662 # Exported symbols can be pulled into shared objects from archives
14663 whole_archive_flag_spec='$convenience'
14665 archive_cmds_need_lc=yes
14666 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14667 # -brtl affects multiple linker settings, -berok does not and is overridden later
14668 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14669 if test svr4 != "$with_aix_soname"; then
14670 # This is similar to how AIX traditionally builds its shared libraries.
14671 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'
14673 if test aix != "$with_aix_soname"; then
14674 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'
14676 # used by -dlpreopen to get the symbols
14677 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
14679 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14687 # see comment about AmigaOS4 .so support
14688 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14689 archive_expsym_cmds=''
14692 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)'
14693 hardcode_libdir_flag_spec='-L$libdir'
14694 hardcode_minus_L=yes
14700 export_dynamic_flag_spec=-rdynamic
14703 cygwin* | mingw* | pw32* | cegcc*)
14704 # When not using gcc, we currently assume that we are using
14705 # Microsoft Visual C++ or Intel C++ Compiler.
14706 # hardcode_libdir_flag_spec is actually meaningless, as there is
14707 # no search path for DLLs.
14708 case $cc_basename in
14710 # Native MSVC or ICC
14711 hardcode_libdir_flag_spec=' '
14712 allow_undefined_flag=unsupported
14713 always_export_symbols=yes
14715 # Tell ltmain to make .lib files, not .a files.
14717 # Tell ltmain to make .dll files, not .so files.
14719 # FIXME: Setting linknames here is a bad hack.
14720 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14721 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
14722 cp "$export_symbols" "$output_objdir/$soname.def";
14723 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14725 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14727 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14729 # The linker will not automatically build a static lib if we build a DLL.
14730 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14731 enable_shared_with_static_runtimes=yes
14732 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14735 old_postinstall_cmds='chmod 644 $oldlib'
14736 postlink_cmds='lt_outputfile="@OUTPUT@"~
14737 lt_tool_outputfile="@TOOL_OUTPUT@"~
14738 case $lt_outputfile in
14741 lt_outputfile=$lt_outputfile.exe
14742 lt_tool_outputfile=$lt_tool_outputfile.exe
14745 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14746 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14747 $RM "$lt_outputfile.manifest";
14751 # Assume MSVC and ICC wrapper
14752 hardcode_libdir_flag_spec=' '
14753 allow_undefined_flag=unsupported
14754 # Tell ltmain to make .lib files, not .a files.
14756 # Tell ltmain to make .dll files, not .so files.
14758 # FIXME: Setting linknames here is a bad hack.
14759 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14760 # The linker will automatically build a .lib file if we build a DLL.
14761 old_archive_from_new_cmds='true'
14762 # FIXME: Should let the user specify the lib program.
14763 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14764 enable_shared_with_static_runtimes=yes
14769 darwin* | rhapsody*)
14772 archive_cmds_need_lc=no
14774 hardcode_automatic=yes
14775 hardcode_shlibpath_var=unsupported
14776 if test yes = "$lt_cv_ld_force_load"; then
14777 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\"`'
14780 whole_archive_flag_spec=''
14782 link_all_deplibs=yes
14783 allow_undefined_flag=$_lt_dar_allow_undefined
14784 case $cc_basename in
14785 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14786 *) _lt_dar_can_shared=$GCC ;;
14788 if test yes = "$_lt_dar_can_shared"; then
14789 output_verbose_link_cmd=func_echo_all
14790 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14791 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14792 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"
14793 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"
14802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_libdir_flag_spec='-L$libdir'
14804 hardcode_shlibpath_var=no
14807 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14808 # support. Future versions do this automatically, but an explicit c++rt0.o
14809 # does not break anything, and helps significantly (at the cost of a little
14812 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14813 hardcode_libdir_flag_spec='-R$libdir'
14814 hardcode_direct=yes
14815 hardcode_shlibpath_var=no
14818 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14821 hardcode_direct=yes
14822 hardcode_minus_L=yes
14823 hardcode_shlibpath_var=no
14826 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14827 freebsd* | dragonfly* | midnightbsd*)
14828 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14829 hardcode_libdir_flag_spec='-R$libdir'
14830 hardcode_direct=yes
14831 hardcode_shlibpath_var=no
14835 if test yes = "$GCC"; then
14836 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'
14838 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'
14840 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14841 hardcode_libdir_separator=:
14842 hardcode_direct=yes
14844 # hardcode_minus_L: Not really in the search PATH,
14845 # but as the default location of the library.
14846 hardcode_minus_L=yes
14847 export_dynamic_flag_spec='$wl-E'
14851 if test yes,no = "$GCC,$with_gnu_ld"; then
14852 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14854 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14856 if test no = "$with_gnu_ld"; then
14857 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14858 hardcode_libdir_separator=:
14859 hardcode_direct=yes
14860 hardcode_direct_absolute=yes
14861 export_dynamic_flag_spec='$wl-E'
14862 # hardcode_minus_L: Not really in the search PATH,
14863 # but as the default location of the library.
14864 hardcode_minus_L=yes
14869 if test yes,no = "$GCC,$with_gnu_ld"; then
14872 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14875 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14878 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14884 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14887 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14891 # Older versions of the 11.00 compiler do not understand -b yet
14892 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14894 printf %s "checking if $CC understands -b... " >&6; }
14895 if test ${lt_cv_prog_compiler__b+y}
14897 printf %s "(cached) " >&6
14899 lt_cv_prog_compiler__b=no
14900 save_LDFLAGS=$LDFLAGS
14901 LDFLAGS="$LDFLAGS -b"
14902 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14903 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14904 # The linker can only warn and ignore the option if not recognized
14905 # So say no if there are warnings
14906 if test -s conftest.err; then
14907 # Append any errors to the config.log.
14908 cat conftest.err 1>&5
14909 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14910 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14911 if diff conftest.exp conftest.er2 >/dev/null; then
14912 lt_cv_prog_compiler__b=yes
14915 lt_cv_prog_compiler__b=yes
14919 LDFLAGS=$save_LDFLAGS
14922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14923 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14925 if test yes = "$lt_cv_prog_compiler__b"; then
14926 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14928 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14934 if test no = "$with_gnu_ld"; then
14935 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14936 hardcode_libdir_separator=:
14941 hardcode_shlibpath_var=no
14944 hardcode_direct=yes
14945 hardcode_direct_absolute=yes
14946 export_dynamic_flag_spec='$wl-E'
14948 # hardcode_minus_L: Not really in the search PATH,
14949 # but as the default location of the library.
14950 hardcode_minus_L=yes
14956 irix5* | irix6* | nonstopux*)
14957 if test yes = "$GCC"; then
14958 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'
14959 # Try to use the -exported_symbol ld option, if it does not
14960 # work, assume that -exports_file does not work either and
14961 # implicitly export all symbols.
14962 # This should be the same for all languages, so no per-tag cache variable.
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14964 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14965 if test ${lt_cv_irix_exported_symbol+y}
14967 printf %s "(cached) " >&6
14969 save_LDFLAGS=$LDFLAGS
14970 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973 int foo (void) { return 0; }
14975 if ac_fn_c_try_link "$LINENO"
14977 lt_cv_irix_exported_symbol=yes
14979 lt_cv_irix_exported_symbol=no
14981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14982 conftest$ac_exeext conftest.$ac_ext
14983 LDFLAGS=$save_LDFLAGS
14985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14986 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14987 if test yes = "$lt_cv_irix_exported_symbol"; then
14988 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'
14991 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'
14992 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'
14994 archive_cmds_need_lc='no'
14995 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14996 hardcode_libdir_separator=:
14998 link_all_deplibs=yes
15002 case $cc_basename in
15004 # Fabrice Bellard et al's Tiny C Compiler
15006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15015 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15017 hardcode_libdir_flag_spec='-R$libdir'
15018 hardcode_direct=yes
15019 hardcode_shlibpath_var=no
15023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15024 hardcode_direct=yes
15025 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15026 hardcode_libdir_separator=:
15027 hardcode_shlibpath_var=no
15033 openbsd* | bitrig*)
15034 if test -f /usr/libexec/ld.so; then
15035 hardcode_direct=yes
15036 hardcode_shlibpath_var=no
15037 hardcode_direct_absolute=yes
15038 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15039 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15040 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
15041 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15042 export_dynamic_flag_spec='$wl-E'
15044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15045 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15053 hardcode_libdir_flag_spec='-L$libdir'
15054 hardcode_minus_L=yes
15055 allow_undefined_flag=unsupported
15057 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15058 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15059 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15060 $ECHO EXPORTS >> $output_objdir/$libname.def~
15061 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15062 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15063 emximp -o $lib $output_objdir/$libname.def'
15064 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15065 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15066 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15067 $ECHO EXPORTS >> $output_objdir/$libname.def~
15068 prefix_cmds="$SED"~
15069 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15070 prefix_cmds="$prefix_cmds -e 1d";
15072 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15073 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15074 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15075 emximp -o $lib $output_objdir/$libname.def'
15076 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15077 enable_shared_with_static_runtimes=yes
15082 if test yes = "$GCC"; then
15083 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15084 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'
15086 allow_undefined_flag=' -expect_unresolved \*'
15087 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'
15089 archive_cmds_need_lc='no'
15090 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15091 hardcode_libdir_separator=:
15094 osf4* | osf5*) # as osf3* with the addition of -msym flag
15095 if test yes = "$GCC"; then
15096 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
15097 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'
15098 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15100 allow_undefined_flag=' -expect_unresolved \*'
15101 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'
15102 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~
15103 $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'
15105 # Both c and cxx compiler support -rpath directly
15106 hardcode_libdir_flag_spec='-rpath $libdir'
15108 archive_cmds_need_lc='no'
15109 hardcode_libdir_separator=:
15113 no_undefined_flag=' -z defs'
15114 if test yes = "$GCC"; then
15116 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
15117 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15118 $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'
15120 case `$CC -V 2>&1` in
15123 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
15124 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15125 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15129 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15131 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15135 hardcode_libdir_flag_spec='-R$libdir'
15136 hardcode_shlibpath_var=no
15138 solaris2.[0-5] | solaris2.[0-5].*) ;;
15140 # The compiler driver will combine and reorder linker options,
15141 # but understands '-z linker_flag'. GCC discards it without '$wl',
15142 # but is careful enough not to reorder.
15143 # Supported since Solaris 2.6 (maybe 2.5.1?)
15144 if test yes = "$GCC"; then
15145 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15147 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15151 link_all_deplibs=yes
15155 if test sequent = "$host_vendor"; then
15156 # Use $CC to link under sequent, because it throws in some extra .o
15157 # files that make .init and .fini sections work.
15158 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15160 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15162 hardcode_libdir_flag_spec='-L$libdir'
15163 hardcode_direct=yes
15164 hardcode_minus_L=yes
15165 hardcode_shlibpath_var=no
15169 case $host_vendor in
15171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15172 hardcode_direct=yes # is this really true???
15175 ## LD is ld it makes a PLAMLIB
15176 ## CC just makes a GrossModule.
15177 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15178 reload_cmds='$CC -r -o $output$reload_objs'
15182 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15183 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15186 runpath_var='LD_RUN_PATH'
15187 hardcode_shlibpath_var=no
15191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15192 hardcode_shlibpath_var=no
15193 export_dynamic_flag_spec='-Bexport'
15197 if test -d /usr/nec; then
15198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15199 hardcode_shlibpath_var=no
15200 runpath_var=LD_RUN_PATH
15201 hardcode_runpath_var=yes
15206 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15207 no_undefined_flag='$wl-z,text'
15208 archive_cmds_need_lc=no
15209 hardcode_shlibpath_var=no
15210 runpath_var='LD_RUN_PATH'
15212 if test yes = "$GCC"; then
15213 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15214 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15216 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15217 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 sysv5* | sco3.2v5* | sco5v6*)
15222 # Note: We CANNOT use -z defs as we might desire, because we do not
15223 # link with -lc, and that would cause any symbols used from libc to
15224 # always be unresolved, which means just about no library would
15225 # ever link correctly. If we're not using GNU ld we use -z text
15226 # though, which does catch some bad symbols but isn't as heavy-handed
15228 no_undefined_flag='$wl-z,text'
15229 allow_undefined_flag='$wl-z,nodefs'
15230 archive_cmds_need_lc=no
15231 hardcode_shlibpath_var=no
15232 hardcode_libdir_flag_spec='$wl-R,$libdir'
15233 hardcode_libdir_separator=':'
15234 link_all_deplibs=yes
15235 export_dynamic_flag_spec='$wl-Bexport'
15236 runpath_var='LD_RUN_PATH'
15238 if test yes = "$GCC"; then
15239 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15240 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15242 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15243 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15248 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15249 hardcode_libdir_flag_spec='-L$libdir'
15250 hardcode_shlibpath_var=no
15258 if test sni = "$host_vendor"; then
15260 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15261 export_dynamic_flag_spec='$wl-Blargedynsym'
15267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15268 printf "%s\n" "$ld_shlibs" >&6; }
15269 test no = "$ld_shlibs" && can_build_shared=no
15271 with_gnu_ld=$with_gnu_ld
15288 # Do we need to explicitly link libc?
15290 case "x$archive_cmds_need_lc" in
15292 # Assume -lc should be added
15293 archive_cmds_need_lc=yes
15295 if test yes,yes = "$GCC,$enable_shared"; then
15296 case $archive_cmds in
15298 # FIXME: we may have to deal with multi-command sequences.
15301 # Test whether the compiler implicitly links with -lc since on some
15302 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15303 # to ld, don't add -lc before -lgcc.
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15305 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15306 if test ${lt_cv_archive_cmds_need_lc+y}
15308 printf %s "(cached) " >&6
15311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15313 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15314 (eval $ac_compile) 2>&5
15316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15317 test $ac_status = 0; } 2>conftest.err; then
15320 libobjs=conftest.$ac_objext
15322 wl=$lt_prog_compiler_wl
15323 pic_flag=$lt_prog_compiler_pic
15329 lt_save_allow_undefined_flag=$allow_undefined_flag
15330 allow_undefined_flag=
15331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15332 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15335 test $ac_status = 0; }
15337 lt_cv_archive_cmds_need_lc=no
15339 lt_cv_archive_cmds_need_lc=yes
15341 allow_undefined_flag=$lt_save_allow_undefined_flag
15343 cat conftest.err 1>&5
15348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15349 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
15350 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15509 printf %s "checking dynamic linker characteristics... " >&6; }
15511 if test yes = "$GCC"; then
15513 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
15514 *) lt_awk_arg='/^libraries:/' ;;
15517 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
15518 *) lt_sed_strip_eq='s|=/|/|g' ;;
15520 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15521 case $lt_search_path_spec in
15523 # if the path contains ";" then we assume it to be the separator
15524 # otherwise default to the standard path separator (i.e. ":") - it is
15525 # assumed that no part of a normal pathname contains ";" but that should
15526 # okay in the real world where ";" in dirpaths is itself problematic.
15527 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15530 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15533 # Ok, now we have the path, separated by spaces, we can step through it
15534 # and add multilib dir if necessary...
15535 lt_tmp_lt_search_path_spec=
15536 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15537 # ...but if some path component already ends with the multilib dir we assume
15538 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
15539 case "$lt_multi_os_dir; $lt_search_path_spec " in
15540 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
15544 for lt_sys_path in $lt_search_path_spec; do
15545 if test -d "$lt_sys_path$lt_multi_os_dir"; then
15546 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15547 elif test -n "$lt_multi_os_dir"; then
15548 test -d "$lt_sys_path" && \
15549 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15552 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15553 BEGIN {RS = " "; FS = "/|\n";} {
15556 for (lt_i = NF; lt_i > 0; lt_i--) {
15557 if ($lt_i != "" && $lt_i != ".") {
15558 if ($lt_i == "..") {
15561 if (lt_count == 0) {
15562 lt_foo = "/" $lt_i lt_foo;
15569 if (lt_foo != "") { lt_freq[lt_foo]++; }
15570 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15572 # AWK program above erroneously prepends '/' to C:/dos/paths
15575 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15576 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15578 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15580 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15582 library_names_spec=
15583 libname_spec='lib$name'
15587 postuninstall_cmds=
15591 shlibpath_overrides_runpath=unknown
15593 dynamic_linker="$host_os ld.so"
15594 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15595 need_lib_prefix=unknown
15596 hardcode_into_libs=no
15598 # when you set need_version to no, make sure it does not cause -set_version
15599 # flags to be left without arguments
15600 need_version=unknown
15606 version_type=linux # correct to gnu/linux during the next big refactor
15607 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15608 shlibpath_var=LIBPATH
15610 # AIX 3 has no versioning support, so we append a major version to the name.
15611 soname_spec='$libname$release$shared_ext$major'
15615 version_type=linux # correct to gnu/linux during the next big refactor
15618 hardcode_into_libs=yes
15619 if test ia64 = "$host_cpu"; then
15620 # AIX 5 supports IA64
15621 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15622 shlibpath_var=LD_LIBRARY_PATH
15624 # With GCC up to 2.95.x, collect2 would create an import file
15625 # for dependence libraries. The import file would start with
15626 # the line '#! .'. This would cause the generated library to
15627 # depend on '.', always an invalid library. This was fixed in
15628 # development snapshots of GCC prior to 3.0.
15630 aix4 | aix4.[01] | aix4.[01].*)
15631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15633 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15636 can_build_shared=no
15640 # Using Import Files as archive members, it is possible to support
15641 # filename-based versioning of shared library archives on AIX. While
15642 # this would work for both with and without runtime linking, it will
15643 # prevent static linking of such archives. So we do filename-based
15644 # shared library versioning with .so extension only, which is used
15645 # when both runtime linking and shared linking is enabled.
15646 # Unfortunately, runtime linking may impact performance, so we do
15647 # not want this to be the default eventually. Also, we use the
15648 # versioned .so libs for executables only if there is the -brtl
15649 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15650 # To allow for filename-based versioning support, we need to create
15651 # libNAME.so.V as an archive file, containing:
15652 # *) an Import File, referring to the versioned filename of the
15653 # archive as well as the shared archive member, telling the
15654 # bitwidth (32 or 64) of that shared object, and providing the
15655 # list of exported symbols of that shared object, eventually
15656 # decorated with the 'weak' keyword
15657 # *) the shared object with the F_LOADONLY flag set, to really avoid
15658 # it being seen by the linker.
15659 # At run time we better use the real file rather than another symlink,
15660 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15662 case $with_aix_soname,$aix_use_runtimelinking in
15663 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15664 # soname into executable. Probably we can add versioning support to
15665 # collect2, so additional links can be useful in future.
15666 aix,yes) # traditional libtool
15667 dynamic_linker='AIX unversionable lib.so'
15668 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15669 # instead of lib<name>.a to let people know that these are not
15670 # typical AIX shared libraries.
15671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15673 aix,no) # traditional AIX only
15674 dynamic_linker='AIX lib.a(lib.so.V)'
15675 # We preserve .a as extension for shared libraries through AIX4.2
15676 # and later when we are not doing run time linking.
15677 library_names_spec='$libname$release.a $libname.a'
15678 soname_spec='$libname$release$shared_ext$major'
15680 svr4,*) # full svr4 only
15681 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15682 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15683 # We do not specify a path in Import Files, so LIBPATH fires.
15684 shlibpath_overrides_runpath=yes
15686 *,yes) # both, prefer svr4
15687 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15688 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15689 # unpreferred sharedlib libNAME.a needs extra handling
15690 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"'
15691 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"'
15692 # We do not specify a path in Import Files, so LIBPATH fires.
15693 shlibpath_overrides_runpath=yes
15695 *,no) # both, prefer aix
15696 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15697 library_names_spec='$libname$release.a $libname.a'
15698 soname_spec='$libname$release$shared_ext$major'
15699 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15700 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)'
15701 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"'
15704 shlibpath_var=LIBPATH
15711 # Since July 2007 AmigaOS4 officially supports .so libraries.
15712 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15716 library_names_spec='$libname.ixlibrary $libname.a'
15717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15718 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'
15724 library_names_spec='$libname$shared_ext'
15725 dynamic_linker="$host_os ld.so"
15726 shlibpath_var=LIBRARY_PATH
15730 version_type=linux # correct to gnu/linux during the next big refactor
15732 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15733 soname_spec='$libname$release$shared_ext$major'
15734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15735 shlibpath_var=LD_LIBRARY_PATH
15736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15738 # the default ld.so.conf also contains /usr/contrib/lib and
15739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15740 # libtool to hard-code these into programs
15743 cygwin* | mingw* | pw32* | cegcc*)
15744 version_type=windows
15749 case $GCC,$cc_basename in
15752 library_names_spec='$libname.dll.a'
15753 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15754 postinstall_cmds='base_file=`basename \$file`~
15755 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15756 dldir=$destdir/`dirname \$dlpath`~
15757 test -d \$dldir || mkdir -p \$dldir~
15758 $install_prog $dir/$dlname \$dldir/$dlname~
15759 chmod a+x \$dldir/$dlname~
15760 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15761 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15763 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15764 dlpath=$dir/\$dldll~
15766 shlibpath_overrides_runpath=yes
15770 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15771 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15776 # MinGW DLLs use traditional 'lib' prefix
15777 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15780 # pw32 DLLs use 'pw' prefix rather than 'lib'
15781 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15784 dynamic_linker='Win32 ld.exe'
15788 # Native MSVC or ICC
15789 libname_spec='$name'
15790 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15791 library_names_spec='$libname.dll.lib'
15795 sys_lib_search_path_spec=
15798 for lt_path in $LIB
15801 # Let DOS variable expansion print the short 8.3 style file name.
15802 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15803 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15806 # Convert to MSYS style.
15807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15810 # Convert to unix form, then to dos form, then back to unix form
15811 # but this time dos style (no spaces!) so that the unix form looks
15812 # like /cygdrive/c/PROGRA~1:/cygdr...
15813 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15814 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15815 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15818 sys_lib_search_path_spec=$LIB
15819 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15820 # It is most probably a Windows format PATH.
15821 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15823 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15825 # FIXME: find the short name or the path components, as spaces are
15826 # common. (e.g. "Program Files" -> "PROGRA~1")
15830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15831 postinstall_cmds='base_file=`basename \$file`~
15832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15833 dldir=$destdir/`dirname \$dlpath`~
15834 test -d \$dldir || mkdir -p \$dldir~
15835 $install_prog $dir/$dlname \$dldir/$dlname'
15836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15837 dlpath=$dir/\$dldll~
15839 shlibpath_overrides_runpath=yes
15840 dynamic_linker='Win32 link.exe'
15844 # Assume MSVC and ICC wrapper
15845 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15846 dynamic_linker='Win32 ld.exe'
15849 # FIXME: first we should search . and the directory the executable is in
15853 darwin* | rhapsody*)
15854 dynamic_linker="$host_os dyld"
15855 version_type=darwin
15858 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
15859 soname_spec='$libname$release$major$shared_ext'
15860 shlibpath_overrides_runpath=yes
15861 shlibpath_var=DYLD_LIBRARY_PATH
15862 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
15864 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15869 version_type=linux # correct to gnu/linux during the next big refactor
15872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15873 soname_spec='$libname$release$shared_ext$major'
15874 shlibpath_var=LD_LIBRARY_PATH
15877 freebsd* | dragonfly* | midnightbsd*)
15878 # DragonFly does not have aout. When/if they implement a new
15879 # versioning mechanism, adjust this.
15880 if test -x /usr/bin/objformat; then
15881 objformat=`/usr/bin/objformat`
15884 freebsd[23].*) objformat=aout ;;
15885 *) objformat=elf ;;
15888 # Handle Gentoo/FreeBSD as it was Linux
15889 case $host_vendor in
15891 version_type=linux ;;
15893 version_type=freebsd-$objformat ;;
15896 case $version_type in
15898 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15899 soname_spec='$libname$release$shared_ext$major'
15904 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15914 shlibpath_var=LD_LIBRARY_PATH
15917 shlibpath_overrides_runpath=yes
15919 freebsd3.[01]* | freebsdelf3.[01]*)
15920 shlibpath_overrides_runpath=yes
15921 hardcode_into_libs=yes
15923 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15924 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15925 shlibpath_overrides_runpath=no
15926 hardcode_into_libs=yes
15928 *) # from 4.6 on, and DragonFly
15929 shlibpath_overrides_runpath=yes
15930 hardcode_into_libs=yes
15936 version_type=linux # correct to gnu/linux during the next big refactor
15939 dynamic_linker="$host_os runtime_loader"
15940 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15941 soname_spec='$libname$release$shared_ext$major'
15942 shlibpath_var=LIBRARY_PATH
15943 shlibpath_overrides_runpath=no
15944 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15945 hardcode_into_libs=yes
15948 hpux9* | hpux10* | hpux11*)
15949 # Give a soname corresponding to the major version so that dld.sl refuses to
15950 # link against other versions.
15957 hardcode_into_libs=yes
15958 dynamic_linker="$host_os dld.so"
15959 shlibpath_var=LD_LIBRARY_PATH
15960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15962 soname_spec='$libname$release$shared_ext$major'
15963 if test 32 = "$HPUX_IA64_MODE"; then
15964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15965 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15967 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15968 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15973 hardcode_into_libs=yes
15974 dynamic_linker="$host_os dld.sl"
15975 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15978 soname_spec='$libname$release$shared_ext$major'
15979 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15980 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15984 dynamic_linker="$host_os dld.sl"
15985 shlibpath_var=SHLIB_PATH
15986 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15988 soname_spec='$libname$release$shared_ext$major'
15991 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15992 postinstall_cmds='chmod 555 $lib'
15993 # or fails outright, so override atomically:
15994 install_override_mode=555
15998 version_type=linux # correct to gnu/linux during the next big refactor
16001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16002 soname_spec='$libname$release$shared_ext$major'
16003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16004 shlibpath_var=LD_LIBRARY_PATH
16005 shlibpath_overrides_runpath=no
16006 hardcode_into_libs=yes
16009 irix5* | irix6* | nonstopux*)
16011 nonstopux*) version_type=nonstopux ;;
16013 if test yes = "$lt_cv_prog_gnu_ld"; then
16014 version_type=linux # correct to gnu/linux during the next big refactor
16021 soname_spec='$libname$release$shared_ext$major'
16022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16024 irix5* | nonstopux*)
16025 libsuff= shlibsuff=
16028 case $LD in # libtool.m4 will add one of these switches to LD
16029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16030 libsuff= shlibsuff= libmagic=32-bit;;
16031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16032 libsuff=32 shlibsuff=N32 libmagic=N32;;
16033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16035 *) libsuff= shlibsuff= libmagic=never-match;;
16039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16040 shlibpath_overrides_runpath=no
16041 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16042 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16043 hardcode_into_libs=yes
16046 # No shared lib support for Linux oldld, aout, or coff.
16047 linux*oldld* | linux*aout* | linux*coff*)
16052 version_type=none # Android doesn't support versioned libraries.
16055 library_names_spec='$libname$release$shared_ext'
16056 soname_spec='$libname$release$shared_ext'
16058 shlibpath_var=LD_LIBRARY_PATH
16059 shlibpath_overrides_runpath=yes
16061 # This implies no fast_install, which is unacceptable.
16062 # Some rework will be needed to allow for fast_install
16063 # before this can be enabled.
16064 hardcode_into_libs=yes
16066 dynamic_linker='Android linker'
16067 # Don't embed -rpath directories since the linker doesn't support them.
16068 hardcode_libdir_flag_spec='-L$libdir'
16071 # This must be glibc/ELF.
16072 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16073 version_type=linux # correct to gnu/linux during the next big refactor
16076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16077 soname_spec='$libname$release$shared_ext$major'
16078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16079 shlibpath_var=LD_LIBRARY_PATH
16080 shlibpath_overrides_runpath=no
16082 # Some binutils ld are patched to set DT_RUNPATH
16083 if test ${lt_cv_shlibpath_overrides_runpath+y}
16085 printf %s "(cached) " >&6
16087 lt_cv_shlibpath_overrides_runpath=no
16088 save_LDFLAGS=$LDFLAGS
16089 save_libdir=$libdir
16090 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16091 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16103 if ac_fn_c_try_link "$LINENO"
16105 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16107 lt_cv_shlibpath_overrides_runpath=yes
16110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16111 conftest$ac_exeext conftest.$ac_ext
16112 LDFLAGS=$save_LDFLAGS
16113 libdir=$save_libdir
16117 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16119 # This implies no fast_install, which is unacceptable.
16120 # Some rework will be needed to allow for fast_install
16121 # before this can be enabled.
16122 hardcode_into_libs=yes
16124 # Ideally, we could use ldconfig to report *all* directores which are
16125 # searched for libraries, however this is still not possible. Aside from not
16126 # being certain /sbin/ldconfig is available, command
16127 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16128 # even though it is searched at run-time. Try to do the best guess by
16129 # appending ld.so.conf contents (and includes) to the search path.
16130 if test -f /etc/ld.so.conf; then
16131 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' ' '`
16132 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16135 # We used to test for /lib/ld.so.1 and disable shared libraries on
16136 # powerpc, because MkLinux only supported shared libraries with the
16137 # GNU dynamic linker. Since this was broken with cross compilers,
16138 # most powerpc-linux boxes support dynamic linking these days and
16139 # people can always --disable-shared, the test was removed, and we
16140 # assume the GNU/Linux dynamic linker is in use.
16141 dynamic_linker='GNU/Linux ld.so'
16148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16149 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16150 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16151 dynamic_linker='NetBSD (a.out) ld.so'
16153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16154 soname_spec='$libname$release$shared_ext$major'
16155 dynamic_linker='NetBSD ld.elf_so'
16157 shlibpath_var=LD_LIBRARY_PATH
16158 shlibpath_overrides_runpath=yes
16159 hardcode_into_libs=yes
16163 version_type=linux # correct to gnu/linux during the next big refactor
16164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16165 shlibpath_var=LD_LIBRARY_PATH
16166 shlibpath_overrides_runpath=yes
16173 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16174 soname_spec='$libname$release$shared_ext$major'
16175 shlibpath_var=LD_LIBRARY_PATH
16176 shlibpath_overrides_runpath=no
16177 hardcode_into_libs=yes
16178 dynamic_linker='ldqnx.so'
16181 openbsd* | bitrig*)
16183 sys_lib_dlsearch_path_spec=/usr/lib
16185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16190 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=yes
16197 libname_spec='$name'
16198 version_type=windows
16202 # OS/2 can only load a DLL with a base name of 8 characters or less.
16203 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16204 v=$($ECHO $release$versuffix | tr -d .-);
16205 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16206 $ECHO $n$v`$shared_ext'
16207 library_names_spec='${libname}_dll.$libext'
16208 dynamic_linker='OS/2 ld.exe'
16209 shlibpath_var=BEGINLIBPATH
16210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16212 postinstall_cmds='base_file=`basename \$file`~
16213 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16214 dldir=$destdir/`dirname \$dlpath`~
16215 test -d \$dldir || mkdir -p \$dldir~
16216 $install_prog $dir/$dlname \$dldir/$dlname~
16217 chmod a+x \$dldir/$dlname~
16218 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16219 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16222 dlpath=$dir/\$dldll~
16226 osf3* | osf4* | osf5*)
16230 soname_spec='$libname$release$shared_ext$major'
16231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16232 shlibpath_var=LD_LIBRARY_PATH
16233 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16242 version_type=linux # correct to gnu/linux during the next big refactor
16245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16246 soname_spec='$libname$release$shared_ext$major'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 shlibpath_overrides_runpath=yes
16249 hardcode_into_libs=yes
16250 # ldd complains unless libraries are executable
16251 postinstall_cmds='chmod +x $lib'
16256 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16257 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16258 shlibpath_var=LD_LIBRARY_PATH
16259 shlibpath_overrides_runpath=yes
16260 if test yes = "$with_gnu_ld"; then
16267 version_type=linux # correct to gnu/linux during the next big refactor
16268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16269 soname_spec='$libname$release$shared_ext$major'
16270 shlibpath_var=LD_LIBRARY_PATH
16271 case $host_vendor in
16273 shlibpath_overrides_runpath=no
16275 runpath_var=LD_RUN_PATH
16283 shlibpath_overrides_runpath=no
16284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16290 if test -d /usr/nec; then
16291 version_type=linux # correct to gnu/linux during the next big refactor
16292 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16293 soname_spec='$libname$shared_ext.$major'
16294 shlibpath_var=LD_LIBRARY_PATH
16298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16303 soname_spec='$libname$release$shared_ext$major'
16304 shlibpath_var=LD_LIBRARY_PATH
16305 shlibpath_overrides_runpath=yes
16306 hardcode_into_libs=yes
16307 if test yes = "$with_gnu_ld"; then
16308 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16317 sys_lib_dlsearch_path_spec='/usr/lib'
16321 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16322 version_type=linux # correct to gnu/linux during the next big refactor
16325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 shlibpath_overrides_runpath=no
16328 hardcode_into_libs=yes
16332 version_type=linux # correct to gnu/linux during the next big refactor
16333 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16334 soname_spec='$libname$release$shared_ext$major'
16335 shlibpath_var=LD_LIBRARY_PATH
16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16343 printf "%s\n" "$dynamic_linker" >&6; }
16344 test no = "$dynamic_linker" && can_build_shared=no
16346 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16347 if test yes = "$GCC"; then
16348 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16351 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16352 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16355 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16356 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16359 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16360 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16362 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16363 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16365 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16366 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16465 printf %s "checking how to hardcode library paths into programs... " >&6; }
16467 if test -n "$hardcode_libdir_flag_spec" ||
16468 test -n "$runpath_var" ||
16469 test yes = "$hardcode_automatic"; then
16471 # We can hardcode non-existent directories.
16472 if test no != "$hardcode_direct" &&
16473 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16474 # have to relink, otherwise we might link with an installed library
16475 # when we should be linking with a yet-to-be-installed one
16476 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
16477 test no != "$hardcode_minus_L"; then
16478 # Linking always hardcodes the temporary library directory.
16479 hardcode_action=relink
16481 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16482 hardcode_action=immediate
16485 # We cannot hardcode anything, or else we can only hardcode existing
16487 hardcode_action=unsupported
16489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16490 printf "%s\n" "$hardcode_action" >&6; }
16492 if test relink = "$hardcode_action" ||
16493 test yes = "$inherit_rpath"; then
16494 # Fast installation is not supported
16495 enable_fast_install=no
16496 elif test yes = "$shlibpath_overrides_runpath" ||
16497 test no = "$enable_shared"; then
16498 # Fast installation is not necessary
16499 enable_fast_install=needless
16507 if test yes != "$enable_dlopen"; then
16508 enable_dlopen=unknown
16509 enable_dlopen_self=unknown
16510 enable_dlopen_self_static=unknown
16517 lt_cv_dlopen=load_add_on
16519 lt_cv_dlopen_self=yes
16522 mingw* | pw32* | cegcc*)
16523 lt_cv_dlopen=LoadLibrary
16528 lt_cv_dlopen=dlopen
16533 # if libdl is installed we need to link against it
16534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16535 printf %s "checking for dlopen in -ldl... " >&6; }
16536 if test ${ac_cv_lib_dl_dlopen+y}
16538 printf %s "(cached) " >&6
16540 ac_check_lib_save_LIBS=$LIBS
16542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16543 /* end confdefs.h. */
16545 /* Override any GCC internal prototype to avoid an error.
16546 Use char because int might match the return type of a GCC
16547 builtin and then its argument prototype would still apply.
16548 The 'extern "C"' is for builds by C++ compilers;
16549 although this is not generally supported in C code supporting it here
16550 has little cost and some practical benefit (sr 110532). */
16554 char dlopen (void);
16563 if ac_fn_c_try_link "$LINENO"
16565 ac_cv_lib_dl_dlopen=yes
16567 ac_cv_lib_dl_dlopen=no
16569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16570 conftest$ac_exeext conftest.$ac_ext
16571 LIBS=$ac_check_lib_save_LIBS
16573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16574 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16575 if test "x$ac_cv_lib_dl_dlopen" = xyes
16577 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16582 lt_cv_dlopen_self=yes
16589 # Don't try to run any link tests for TPF. We know it's impossible
16590 # because TPF is a cross-compiler, and we know how we open DSOs.
16591 lt_cv_dlopen=dlopen
16593 lt_cv_dlopen_self=no
16597 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16598 if test "x$ac_cv_func_shl_load" = xyes
16600 lt_cv_dlopen=shl_load
16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16603 printf %s "checking for shl_load in -ldld... " >&6; }
16604 if test ${ac_cv_lib_dld_shl_load+y}
16606 printf %s "(cached) " >&6
16608 ac_check_lib_save_LIBS=$LIBS
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16613 /* Override any GCC internal prototype to avoid an error.
16614 Use char because int might match the return type of a GCC
16615 builtin and then its argument prototype would still apply.
16616 The 'extern "C"' is for builds by C++ compilers;
16617 although this is not generally supported in C code supporting it here
16618 has little cost and some practical benefit (sr 110532). */
16622 char shl_load (void);
16626 return shl_load ();
16631 if ac_fn_c_try_link "$LINENO"
16633 ac_cv_lib_dld_shl_load=yes
16635 ac_cv_lib_dld_shl_load=no
16637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16638 conftest$ac_exeext conftest.$ac_ext
16639 LIBS=$ac_check_lib_save_LIBS
16641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16642 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16643 if test "x$ac_cv_lib_dld_shl_load" = xyes
16645 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16647 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16648 if test "x$ac_cv_func_dlopen" = xyes
16650 lt_cv_dlopen=dlopen
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16653 printf %s "checking for dlopen in -ldl... " >&6; }
16654 if test ${ac_cv_lib_dl_dlopen+y}
16656 printf %s "(cached) " >&6
16658 ac_check_lib_save_LIBS=$LIBS
16660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16661 /* end confdefs.h. */
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply.
16666 The 'extern "C"' is for builds by C++ compilers;
16667 although this is not generally supported in C code supporting it here
16668 has little cost and some practical benefit (sr 110532). */
16672 char dlopen (void);
16681 if ac_fn_c_try_link "$LINENO"
16683 ac_cv_lib_dl_dlopen=yes
16685 ac_cv_lib_dl_dlopen=no
16687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16688 conftest$ac_exeext conftest.$ac_ext
16689 LIBS=$ac_check_lib_save_LIBS
16691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16692 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16693 if test "x$ac_cv_lib_dl_dlopen" = xyes
16695 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16698 printf %s "checking for dlopen in -lsvld... " >&6; }
16699 if test ${ac_cv_lib_svld_dlopen+y}
16701 printf %s "(cached) " >&6
16703 ac_check_lib_save_LIBS=$LIBS
16704 LIBS="-lsvld $LIBS"
16705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16706 /* end confdefs.h. */
16708 /* Override any GCC internal prototype to avoid an error.
16709 Use char because int might match the return type of a GCC
16710 builtin and then its argument prototype would still apply.
16711 The 'extern "C"' is for builds by C++ compilers;
16712 although this is not generally supported in C code supporting it here
16713 has little cost and some practical benefit (sr 110532). */
16717 char dlopen (void);
16726 if ac_fn_c_try_link "$LINENO"
16728 ac_cv_lib_svld_dlopen=yes
16730 ac_cv_lib_svld_dlopen=no
16732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16733 conftest$ac_exeext conftest.$ac_ext
16734 LIBS=$ac_check_lib_save_LIBS
16736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16737 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16738 if test "x$ac_cv_lib_svld_dlopen" = xyes
16740 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16743 printf %s "checking for dld_link in -ldld... " >&6; }
16744 if test ${ac_cv_lib_dld_dld_link+y}
16746 printf %s "(cached) " >&6
16748 ac_check_lib_save_LIBS=$LIBS
16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751 /* end confdefs.h. */
16753 /* Override any GCC internal prototype to avoid an error.
16754 Use char because int might match the return type of a GCC
16755 builtin and then its argument prototype would still apply.
16756 The 'extern "C"' is for builds by C++ compilers;
16757 although this is not generally supported in C code supporting it here
16758 has little cost and some practical benefit (sr 110532). */
16762 char dld_link (void);
16766 return dld_link ();
16771 if ac_fn_c_try_link "$LINENO"
16773 ac_cv_lib_dld_dld_link=yes
16775 ac_cv_lib_dld_dld_link=no
16777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LIBS=$ac_check_lib_save_LIBS
16781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16782 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16783 if test "x$ac_cv_lib_dld_dld_link" = xyes
16785 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16806 if test no = "$lt_cv_dlopen"; then
16812 case $lt_cv_dlopen in
16814 save_CPPFLAGS=$CPPFLAGS
16815 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16817 save_LDFLAGS=$LDFLAGS
16818 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16821 LIBS="$lt_cv_dlopen_libs $LIBS"
16823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16824 printf %s "checking whether a program can dlopen itself... " >&6; }
16825 if test ${lt_cv_dlopen_self+y}
16827 printf %s "(cached) " >&6
16829 if test yes = "$cross_compiling"; then :
16830 lt_cv_dlopen_self=cross
16832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16833 lt_status=$lt_dlunknown
16834 cat > conftest.$ac_ext <<_LT_EOF
16835 #line $LINENO "configure"
16836 #include "confdefs.h"
16845 # define LT_DLGLOBAL RTLD_GLOBAL
16848 # define LT_DLGLOBAL DL_GLOBAL
16850 # define LT_DLGLOBAL 0
16854 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16855 find out it does not work in some platform. */
16856 #ifndef LT_DLLAZY_OR_NOW
16858 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16861 # define LT_DLLAZY_OR_NOW DL_LAZY
16864 # define LT_DLLAZY_OR_NOW RTLD_NOW
16867 # define LT_DLLAZY_OR_NOW DL_NOW
16869 # define LT_DLLAZY_OR_NOW 0
16876 /* When -fvisibility=hidden is used, assume the code has been annotated
16877 correspondingly for the symbols needed. */
16878 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16879 int fnord () __attribute__((visibility("default")));
16882 int fnord () { return 42; }
16885 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16886 int status = $lt_dlunknown;
16890 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16893 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16894 else puts (dlerror ());
16896 /* dlclose (self); */
16904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16905 (eval $ac_link) 2>&5
16907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16909 (./conftest; exit; ) >&5 2>/dev/null
16911 case x$lt_status in
16912 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16913 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16914 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16917 # compilation failed
16918 lt_cv_dlopen_self=no
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16926 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16928 if test yes = "$lt_cv_dlopen_self"; then
16929 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16931 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16932 if test ${lt_cv_dlopen_self_static+y}
16934 printf %s "(cached) " >&6
16936 if test yes = "$cross_compiling"; then :
16937 lt_cv_dlopen_self_static=cross
16939 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16940 lt_status=$lt_dlunknown
16941 cat > conftest.$ac_ext <<_LT_EOF
16942 #line $LINENO "configure"
16943 #include "confdefs.h"
16952 # define LT_DLGLOBAL RTLD_GLOBAL
16955 # define LT_DLGLOBAL DL_GLOBAL
16957 # define LT_DLGLOBAL 0
16961 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16962 find out it does not work in some platform. */
16963 #ifndef LT_DLLAZY_OR_NOW
16965 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16968 # define LT_DLLAZY_OR_NOW DL_LAZY
16971 # define LT_DLLAZY_OR_NOW RTLD_NOW
16974 # define LT_DLLAZY_OR_NOW DL_NOW
16976 # define LT_DLLAZY_OR_NOW 0
16983 /* When -fvisibility=hidden is used, assume the code has been annotated
16984 correspondingly for the symbols needed. */
16985 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16986 int fnord () __attribute__((visibility("default")));
16989 int fnord () { return 42; }
16992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16993 int status = $lt_dlunknown;
16997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17000 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17001 else puts (dlerror ());
17003 /* dlclose (self); */
17011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17012 (eval $ac_link) 2>&5
17014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17015 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
17016 (./conftest; exit; ) >&5 2>/dev/null
17018 case x$lt_status in
17019 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17020 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17021 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17024 # compilation failed
17025 lt_cv_dlopen_self_static=no
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17033 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
17036 CPPFLAGS=$save_CPPFLAGS
17037 LDFLAGS=$save_LDFLAGS
17042 case $lt_cv_dlopen_self in
17043 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17044 *) enable_dlopen_self=unknown ;;
17047 case $lt_cv_dlopen_self_static in
17048 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17049 *) enable_dlopen_self_static=unknown ;;
17071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17072 printf %s "checking whether stripping libraries is possible... " >&6; }
17073 if test -z "$STRIP"; then
17074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17075 printf "%s\n" "no" >&6; }
17077 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17078 old_striplib="$STRIP --strip-debug"
17079 striplib="$STRIP --strip-unneeded"
17080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17081 printf "%s\n" "yes" >&6; }
17085 # FIXME - insert some real tests, host_os isn't really good enough
17086 striplib="$STRIP -x"
17087 old_striplib="$STRIP -S"
17088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17089 printf "%s\n" "yes" >&6; }
17092 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
17093 old_striplib="$STRIP --strip-debug"
17094 striplib="$STRIP --strip-unneeded"
17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17096 printf "%s\n" "yes" >&6; }
17098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17099 printf "%s\n" "no" >&6; }
17103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17104 printf "%s\n" "no" >&6; }
17121 # Report what library types will actually be built
17122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17123 printf %s "checking if libtool supports shared libraries... " >&6; }
17124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17125 printf "%s\n" "$can_build_shared" >&6; }
17127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17128 printf %s "checking whether to build shared libraries... " >&6; }
17129 test no = "$can_build_shared" && enable_shared=no
17131 # On AIX, shared libraries and static libraries use the same namespace, and
17132 # are all built from PIC.
17135 test yes = "$enable_shared" && enable_static=no
17136 if test -n "$RANLIB"; then
17137 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17138 postinstall_cmds='$RANLIB $lib'
17143 if test ia64 != "$host_cpu"; then
17144 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17145 yes,aix,yes) ;; # shared object as lib.so file only
17146 yes,svr4,*) ;; # shared object as lib.so archive member only
17147 yes,*) enable_static=no ;; # shared object in lib.a archive as well
17152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17153 printf "%s\n" "$enable_shared" >&6; }
17155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17156 printf %s "checking whether to build static libraries... " >&6; }
17157 # Make sure either enable_shared or enable_static is yes.
17158 test yes = "$enable_shared" || enable_static=yes
17159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17160 printf "%s\n" "$enable_static" >&6; }
17167 ac_cpp='$CPP $CPPFLAGS'
17168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17174 if test -n "$CXX" && ( test no != "$CXX" &&
17175 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
17176 (test g++ != "$CXX"))); then
17178 ac_cpp='$CXXCPP $CPPFLAGS'
17179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17183 printf %s "checking how to run the C++ preprocessor... " >&6; }
17184 if test -z "$CXXCPP"; then
17185 if test ${ac_cv_prog_CXXCPP+y}
17187 printf %s "(cached) " >&6
17189 # Double quotes because $CXX needs to be expanded
17190 for CXXCPP in "$CXX -E" cpp /lib/cpp
17192 ac_preproc_ok=false
17193 for ac_cxx_preproc_warn_flag in '' yes
17195 # Use a header file that comes with gcc, so configuring glibc
17196 # with a fresh cross-compiler works.
17197 # On the NeXT, cc -E runs the code through the compiler's parser,
17198 # not just through cpp. "Syntax error" is here to catch this case.
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17201 #include <limits.h>
17204 if ac_fn_cxx_try_cpp "$LINENO"
17208 # Broken: fails on valid input.
17211 rm -f conftest.err conftest.i conftest.$ac_ext
17213 # OK, works on sane cases. Now check whether nonexistent headers
17214 # can be detected and how.
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h. */
17217 #include <ac_nonexistent.h>
17219 if ac_fn_cxx_try_cpp "$LINENO"
17221 # Broken: success on invalid input.
17224 # Passes both tests.
17228 rm -f conftest.err conftest.i conftest.$ac_ext
17231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17232 rm -f conftest.i conftest.err conftest.$ac_ext
17239 ac_cv_prog_CXXCPP=$CXXCPP
17242 CXXCPP=$ac_cv_prog_CXXCPP
17244 ac_cv_prog_CXXCPP=$CXXCPP
17246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17247 printf "%s\n" "$CXXCPP" >&6; }
17248 ac_preproc_ok=false
17249 for ac_cxx_preproc_warn_flag in '' yes
17251 # Use a header file that comes with gcc, so configuring glibc
17252 # with a fresh cross-compiler works.
17253 # On the NeXT, cc -E runs the code through the compiler's parser,
17254 # not just through cpp. "Syntax error" is here to catch this case.
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 #include <limits.h>
17260 if ac_fn_cxx_try_cpp "$LINENO"
17264 # Broken: fails on valid input.
17267 rm -f conftest.err conftest.i conftest.$ac_ext
17269 # OK, works on sane cases. Now check whether nonexistent headers
17270 # can be detected and how.
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17273 #include <ac_nonexistent.h>
17275 if ac_fn_cxx_try_cpp "$LINENO"
17277 # Broken: success on invalid input.
17280 # Passes both tests.
17284 rm -f conftest.err conftest.i conftest.$ac_ext
17287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17288 rm -f conftest.i conftest.err conftest.$ac_ext
17293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17294 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17295 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17296 See \`config.log' for more details" "$LINENO" 5; }
17300 ac_cpp='$CPP $CPPFLAGS'
17301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17306 _lt_caught_CXX_error=yes
17310 ac_cpp='$CXXCPP $CPPFLAGS'
17311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17315 archive_cmds_need_lc_CXX=no
17316 allow_undefined_flag_CXX=
17317 always_export_symbols_CXX=no
17318 archive_expsym_cmds_CXX=
17319 compiler_needs_object_CXX=no
17320 export_dynamic_flag_spec_CXX=
17321 hardcode_direct_CXX=no
17322 hardcode_direct_absolute_CXX=no
17323 hardcode_libdir_flag_spec_CXX=
17324 hardcode_libdir_separator_CXX=
17325 hardcode_minus_L_CXX=no
17326 hardcode_shlibpath_var_CXX=unsupported
17327 hardcode_automatic_CXX=no
17328 inherit_rpath_CXX=no
17330 module_expsym_cmds_CXX=
17331 link_all_deplibs_CXX=unknown
17332 old_archive_cmds_CXX=$old_archive_cmds
17333 reload_flag_CXX=$reload_flag
17334 reload_cmds_CXX=$reload_cmds
17335 no_undefined_flag_CXX=
17336 whole_archive_flag_spec_CXX=
17337 enable_shared_with_static_runtimes_CXX=no
17339 # Source file extension for C++ test sources.
17342 # Object file extension for compiled C++ test sources.
17346 # No sense in running all these tests if we already determined that
17347 # the CXX compiler isn't working. Some variables (like enable_shared)
17348 # are currently assumed to apply to all compilers on this platform,
17349 # and will be corrupted by setting them based on a non-working compiler.
17350 if test yes != "$_lt_caught_CXX_error"; then
17351 # Code to be used in simple compile tests
17352 lt_simple_compile_test_code="int some_variable = 0;"
17354 # Code to be used in simple link tests
17355 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17357 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17364 # If no C compiler was specified, use CC.
17367 # If no C compiler flags were specified, use CFLAGS.
17368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17370 # Allow CC to be a program name with arguments.
17374 # save warnings/boilerplate of simple test code
17375 ac_outfile=conftest.$ac_objext
17376 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17377 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17378 _lt_compiler_boilerplate=`cat conftest.err`
17381 ac_outfile=conftest.$ac_objext
17382 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17383 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17384 _lt_linker_boilerplate=`cat conftest.err`
17388 # Allow CC to be a program name with arguments.
17390 lt_save_CFLAGS=$CFLAGS
17394 lt_save_with_gnu_ld=$with_gnu_ld
17395 lt_save_path_LD=$lt_cv_path_LD
17396 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17397 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17399 $as_unset lt_cv_prog_gnu_ld
17401 if test -n "${lt_cv_path_LDCXX+set}"; then
17402 lt_cv_path_LD=$lt_cv_path_LDCXX
17404 $as_unset lt_cv_path_LD
17406 test -z "${LDCXX+set}" || LD=$LDCXX
17411 func_cc_basename $compiler
17412 cc_basename=$func_cc_basename_result
17415 if test -n "$compiler"; then
17416 # We don't want -fno-exception when compiling C++ code, so set the
17417 # no_builtin_flag separately
17418 if test yes = "$GXX"; then
17419 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17421 lt_prog_compiler_no_builtin_flag_CXX=
17424 if test yes = "$GXX"; then
17425 # Set up default GNU C++ configuration
17429 # Check whether --with-gnu-ld was given.
17430 if test ${with_gnu_ld+y}
17432 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
17438 if test yes = "$GCC"; then
17439 # Check if gcc -print-prog-name=ld gives a path.
17440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17441 printf %s "checking for ld used by $CC... " >&6; }
17444 # gcc leaves a trailing carriage return, which upsets mingw
17445 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17447 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17450 # Accept absolute paths.
17452 re_direlt='/[^/][^/]*/\.\./'
17453 # Canonicalize the pathname of ld
17454 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17455 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17456 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17458 test -z "$LD" && LD=$ac_prog
17461 # If it fails, then pretend we aren't using GCC.
17465 # If it is relative, then search for the first ld in PATH.
17466 with_gnu_ld=unknown
17469 elif test yes = "$with_gnu_ld"; then
17470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17471 printf %s "checking for GNU ld... " >&6; }
17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17474 printf %s "checking for non-GNU ld... " >&6; }
17476 if test ${lt_cv_path_LD+y}
17478 printf %s "(cached) " >&6
17480 if test -z "$LD"; then
17481 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
17482 for ac_dir in $PATH; do
17484 test -z "$ac_dir" && ac_dir=.
17485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17486 lt_cv_path_LD=$ac_dir/$ac_prog
17487 # Check to see if the program is GNU ld. I'd rather use --version,
17488 # but apparently some variants of GNU ld only accept -v.
17489 # Break only if it was the GNU/non-GNU ld that we prefer.
17490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17491 *GNU* | *'with BFD'*)
17492 test no != "$with_gnu_ld" && break
17495 test yes != "$with_gnu_ld" && break
17502 lt_cv_path_LD=$LD # Let the user override the test with a path.
17507 if test -n "$LD"; then
17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17509 printf "%s\n" "$LD" >&6; }
17511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17512 printf "%s\n" "no" >&6; }
17514 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17516 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
17517 if test ${lt_cv_prog_gnu_ld+y}
17519 printf %s "(cached) " >&6
17521 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17522 case `$LD -v 2>&1 </dev/null` in
17523 *GNU* | *'with BFD'*)
17524 lt_cv_prog_gnu_ld=yes
17527 lt_cv_prog_gnu_ld=no
17531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17532 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
17533 with_gnu_ld=$lt_cv_prog_gnu_ld
17541 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17542 # archiving commands below assume that GNU ld is being used.
17543 if test yes = "$with_gnu_ld"; then
17544 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17545 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17547 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17548 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17550 # If archive_cmds runs LD, not CC, wlarc should be empty
17551 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17552 # investigate it a little bit more. (MM)
17555 # ancient GNU ld didn't support --whole-archive et. al.
17556 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17557 $GREP 'no-whole-archive' > /dev/null; then
17558 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17560 whole_archive_flag_spec_CXX=
17566 # A generic and very simple default shared library creation
17567 # command for GNU C++ for the case where it uses the native
17568 # linker, instead of GNU ld. If possible, this setting should
17569 # overridden to take advantage of the native linker features on
17570 # the platform it is being used on.
17571 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17574 # Commands to make compiler produce verbose output that lists
17575 # what "hidden" libraries, object files and flags are used when
17576 # linking a shared library.
17577 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17585 # PORTME: fill in a description of your system's C++ link characteristics
17586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17587 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17591 # FIXME: insert proper C++ library support
17595 if test ia64 = "$host_cpu"; then
17596 # On IA64, the linker does run time linking by default, so we don't
17597 # have to do anything special.
17598 aix_use_runtimelinking=no
17599 exp_sym_flag='-Bexport'
17602 aix_use_runtimelinking=no
17604 # Test if we are trying to use run time linking or normal
17605 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17606 # have runtime linking enabled, and use it for executables.
17607 # For shared libraries, we enable/disable runtime linking
17608 # depending on the kind of the shared library created -
17609 # when "with_aix_soname,aix_use_runtimelinking" is:
17610 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17611 # "aix,yes" lib.so shared, rtl:yes, for executables
17612 # lib.a static archive
17613 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17614 # lib.a(lib.so.V) shared, rtl:no, for executables
17615 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17616 # lib.a(lib.so.V) shared, rtl:no
17617 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17618 # lib.a static archive
17619 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17620 for ld_flag in $LDFLAGS; do
17623 aix_use_runtimelinking=yes
17628 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17629 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17630 # so we don't have lib.a shared libs to link our executables.
17631 # We have to force runtime linking in this case.
17632 aix_use_runtimelinking=yes
17633 LDFLAGS="$LDFLAGS -Wl,-brtl"
17638 exp_sym_flag='-bexport'
17639 no_entry_flag='-bnoentry'
17642 # When large executables or shared objects are built, AIX ld can
17643 # have problems creating the table of contents. If linking a library
17644 # or program results in "error TOC overflow" add -mminimal-toc to
17645 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17646 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17648 archive_cmds_CXX=''
17649 hardcode_direct_CXX=yes
17650 hardcode_direct_absolute_CXX=yes
17651 hardcode_libdir_separator_CXX=':'
17652 link_all_deplibs_CXX=yes
17653 file_list_spec_CXX='$wl-f,'
17654 case $with_aix_soname,$aix_use_runtimelinking in
17655 aix,*) ;; # no import file
17656 svr4,* | *,yes) # use import file
17657 # The Import File defines what to hardcode.
17658 hardcode_direct_CXX=no
17659 hardcode_direct_absolute_CXX=no
17663 if test yes = "$GXX"; then
17664 case $host_os in aix4.[012]|aix4.[012].*)
17665 # We only want to do this on AIX 4.2 and lower, the check
17666 # below for broken collect2 doesn't work under 4.3+
17667 collect2name=`$CC -print-prog-name=collect2`
17668 if test -f "$collect2name" &&
17669 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17671 # We have reworked collect2
17674 # We have old collect2
17675 hardcode_direct_CXX=unsupported
17676 # It fails to find uninstalled libraries when the uninstalled
17677 # path is not listed in the libpath. Setting hardcode_minus_L
17678 # to unsupported forces relinking
17679 hardcode_minus_L_CXX=yes
17680 hardcode_libdir_flag_spec_CXX='-L$libdir'
17681 hardcode_libdir_separator_CXX=
17684 shared_flag='-shared'
17685 if test yes = "$aix_use_runtimelinking"; then
17686 shared_flag=$shared_flag' $wl-G'
17688 # Need to ensure runtime linking is disabled for the traditional
17689 # shared library, or the linker may eventually find shared libraries
17690 # /with/ Import File - we do not want to mix them.
17691 shared_flag_aix='-shared'
17692 shared_flag_svr4='-shared $wl-G'
17695 if test ia64 = "$host_cpu"; then
17696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17697 # chokes on -Wl,-G. The following line is correct:
17700 if test yes = "$aix_use_runtimelinking"; then
17701 shared_flag='$wl-G'
17703 shared_flag='$wl-bM:SRE'
17705 shared_flag_aix='$wl-bM:SRE'
17706 shared_flag_svr4='$wl-G'
17710 export_dynamic_flag_spec_CXX='$wl-bexpall'
17711 # It seems that -bexpall does not export symbols beginning with
17712 # underscore (_), so it is better to generate a list of symbols to
17714 always_export_symbols_CXX=yes
17715 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17716 # Warning - without using the other runtime loading flags (-brtl),
17717 # -berok will link without error, but may produce a broken library.
17718 # The "-G" linker flag allows undefined symbols.
17719 no_undefined_flag_CXX='-bernotok'
17720 # Determine the default libpath from the value encoded in an empty
17722 if test set = "${lt_cv_aix_libpath+set}"; then
17723 aix_libpath=$lt_cv_aix_libpath
17725 if test ${lt_cv_aix_libpath__CXX+y}
17727 printf %s "(cached) " >&6
17729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17730 /* end confdefs.h. */
17740 if ac_fn_cxx_try_link "$LINENO"
17743 lt_aix_libpath_sed='
17744 /Import File Strings/,/^$/ {
17746 s/^0 *\([^ ]*\) *$/\1/
17750 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17751 # Check for a 64-bit object if we didn't find anything.
17752 if test -z "$lt_cv_aix_libpath__CXX"; then
17753 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17757 conftest$ac_exeext conftest.$ac_ext
17758 if test -z "$lt_cv_aix_libpath__CXX"; then
17759 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17764 aix_libpath=$lt_cv_aix_libpath__CXX
17767 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17769 archive_expsym_cmds_CXX='$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
17771 if test ia64 = "$host_cpu"; then
17772 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17773 allow_undefined_flag_CXX="-z nodefs"
17774 archive_expsym_cmds_CXX="\$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"
17776 # Determine the default libpath from the value encoded in an
17777 # empty executable.
17778 if test set = "${lt_cv_aix_libpath+set}"; then
17779 aix_libpath=$lt_cv_aix_libpath
17781 if test ${lt_cv_aix_libpath__CXX+y}
17783 printf %s "(cached) " >&6
17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h. */
17796 if ac_fn_cxx_try_link "$LINENO"
17799 lt_aix_libpath_sed='
17800 /Import File Strings/,/^$/ {
17802 s/^0 *\([^ ]*\) *$/\1/
17806 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17807 # Check for a 64-bit object if we didn't find anything.
17808 if test -z "$lt_cv_aix_libpath__CXX"; then
17809 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17813 conftest$ac_exeext conftest.$ac_ext
17814 if test -z "$lt_cv_aix_libpath__CXX"; then
17815 lt_cv_aix_libpath__CXX=/usr/lib:/lib
17820 aix_libpath=$lt_cv_aix_libpath__CXX
17823 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17824 # Warning - without using the other run time loading flags,
17825 # -berok will link without error, but may produce a broken library.
17826 no_undefined_flag_CXX=' $wl-bernotok'
17827 allow_undefined_flag_CXX=' $wl-berok'
17828 if test yes = "$with_gnu_ld"; then
17829 # We only use this code for GNU lds that support --whole-archive.
17830 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17832 # Exported symbols can be pulled into shared objects from archives
17833 whole_archive_flag_spec_CXX='$convenience'
17835 archive_cmds_need_lc_CXX=yes
17836 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17837 # -brtl affects multiple linker settings, -berok does not and is overridden later
17838 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17839 if test svr4 != "$with_aix_soname"; then
17840 # This is similar to how AIX traditionally builds its shared
17841 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17842 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17844 if test aix != "$with_aix_soname"; then
17845 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$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'
17847 # used by -dlpreopen to get the symbols
17848 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17850 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17856 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17857 allow_undefined_flag_CXX=unsupported
17858 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17859 # support --undefined. This deserves some investigation. FIXME
17860 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17867 case $cc_basename in
17869 # FIXME: insert proper C++ library support
17875 cygwin* | mingw* | pw32* | cegcc*)
17876 case $GXX,$cc_basename in
17877 ,cl* | no,cl* | ,icl* | no,icl*)
17878 # Native MSVC or ICC
17879 # hardcode_libdir_flag_spec is actually meaningless, as there is
17880 # no search path for DLLs.
17881 hardcode_libdir_flag_spec_CXX=' '
17882 allow_undefined_flag_CXX=unsupported
17883 always_export_symbols_CXX=yes
17884 file_list_spec_CXX='@'
17885 # Tell ltmain to make .lib files, not .a files.
17887 # Tell ltmain to make .dll files, not .so files.
17889 # FIXME: Setting linknames here is a bad hack.
17890 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17891 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17892 cp "$export_symbols" "$output_objdir/$soname.def";
17893 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17895 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17897 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17899 # The linker will not automatically build a static lib if we build a DLL.
17900 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17901 enable_shared_with_static_runtimes_CXX=yes
17903 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17904 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17905 lt_tool_outputfile="@TOOL_OUTPUT@"~
17906 case $lt_outputfile in
17909 lt_outputfile=$lt_outputfile.exe
17910 lt_tool_outputfile=$lt_tool_outputfile.exe
17913 func_to_tool_file "$lt_outputfile"~
17914 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17915 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17916 $RM "$lt_outputfile.manifest";
17921 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17922 # as there is no search path for DLLs.
17923 hardcode_libdir_flag_spec_CXX='-L$libdir'
17924 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17925 allow_undefined_flag_CXX=unsupported
17926 always_export_symbols_CXX=no
17927 enable_shared_with_static_runtimes_CXX=yes
17929 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17930 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17931 # If the export-symbols file already is a .def file, use it as
17932 # is; otherwise, prepend EXPORTS...
17933 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17934 cp $export_symbols $output_objdir/$soname.def;
17936 echo EXPORTS > $output_objdir/$soname.def;
17937 cat $export_symbols >> $output_objdir/$soname.def;
17939 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17946 darwin* | rhapsody*)
17949 archive_cmds_need_lc_CXX=no
17950 hardcode_direct_CXX=no
17951 hardcode_automatic_CXX=yes
17952 hardcode_shlibpath_var_CXX=unsupported
17953 if test yes = "$lt_cv_ld_force_load"; then
17954 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17957 whole_archive_flag_spec_CXX=''
17959 link_all_deplibs_CXX=yes
17960 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17961 case $cc_basename in
17962 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17963 *) _lt_dar_can_shared=$GCC ;;
17965 if test yes = "$_lt_dar_can_shared"; then
17966 output_verbose_link_cmd=func_echo_all
17967 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17968 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17969 archive_expsym_cmds_CXX="$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"
17970 module_expsym_cmds_CXX="$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"
17971 if test yes != "$lt_cv_apple_cc_single_mod"; then
17972 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
17973 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
17983 hardcode_libdir_flag_spec_CXX='-L$libdir'
17984 hardcode_minus_L_CXX=yes
17985 allow_undefined_flag_CXX=unsupported
17987 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17988 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17989 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17990 $ECHO EXPORTS >> $output_objdir/$libname.def~
17991 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17992 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17993 emximp -o $lib $output_objdir/$libname.def'
17994 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17995 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17996 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17997 $ECHO EXPORTS >> $output_objdir/$libname.def~
17998 prefix_cmds="$SED"~
17999 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18000 prefix_cmds="$prefix_cmds -e 1d";
18002 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18003 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18004 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18005 emximp -o $lib $output_objdir/$libname.def'
18006 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18007 enable_shared_with_static_runtimes_CXX=yes
18008 file_list_spec_CXX='@'
18012 case $cc_basename in
18014 # FIXME: insert proper C++ library support
18018 # Green Hills C++ Compiler
18019 # FIXME: insert proper C++ library support
18023 # FIXME: insert proper C++ library support
18030 # C++ shared libraries reported to be fairly broken before
18036 archive_cmds_need_lc_CXX=no
18039 freebsd* | dragonfly* | midnightbsd*)
18040 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18046 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18047 link_all_deplibs_CXX=yes
18051 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
18052 hardcode_libdir_separator_CXX=:
18053 export_dynamic_flag_spec_CXX='$wl-E'
18054 hardcode_direct_CXX=yes
18055 hardcode_minus_L_CXX=yes # Not in the search PATH,
18056 # but as the default
18057 # location of the library.
18059 case $cc_basename in
18061 # FIXME: insert proper C++ library support
18065 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18066 # Commands to make compiler produce verbose output that lists
18067 # what "hidden" libraries, object files and flags are used when
18068 # linking a shared library.
18070 # There doesn't appear to be a way to prevent this compiler from
18071 # explicitly linking system object files so we need to strip them
18072 # from the output so that they don't get included in the library
18074 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18077 if test yes = "$GXX"; then
18078 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18080 # FIXME: insert proper C++ library support
18088 if test no = "$with_gnu_ld"; then
18089 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
18090 hardcode_libdir_separator_CXX=:
18096 export_dynamic_flag_spec_CXX='$wl-E'
18102 hardcode_direct_CXX=no
18103 hardcode_shlibpath_var_CXX=no
18106 hardcode_direct_CXX=yes
18107 hardcode_direct_absolute_CXX=yes
18108 hardcode_minus_L_CXX=yes # Not in the search PATH,
18109 # but as the default
18110 # location of the library.
18114 case $cc_basename in
18116 # FIXME: insert proper C++ library support
18122 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18125 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18128 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18131 # Commands to make compiler produce verbose output that lists
18132 # what "hidden" libraries, object files and flags are used when
18133 # linking a shared library.
18135 # There doesn't appear to be a way to prevent this compiler from
18136 # explicitly linking system object files so we need to strip them
18137 # from the output so that they don't get included in the library
18139 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18142 if test yes = "$GXX"; then
18143 if test no = "$with_gnu_ld"; then
18146 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18149 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18152 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18157 # FIXME: insert proper C++ library support
18165 hardcode_direct_CXX=no
18166 hardcode_shlibpath_var_CXX=no
18167 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18168 export_dynamic_flag_spec_CXX='$wl-E'
18169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18170 # Instead, shared libraries are loaded at an image base (0x10000000 by
18171 # default) and relocated if they conflict, which is a slow very memory
18172 # consuming and fragmenting process. To avoid this, we pick a random,
18173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18175 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18176 archive_expsym_cmds_CXX='$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'
18179 case $cc_basename in
18182 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18184 # Archives containing C++ object files must be created using
18185 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18186 # necessary to make sure instantiated templates are included
18188 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18191 if test yes = "$GXX"; then
18192 if test no = "$with_gnu_ld"; then
18193 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
18195 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
18198 link_all_deplibs_CXX=yes
18201 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18202 hardcode_libdir_separator_CXX=:
18203 inherit_rpath_CXX=yes
18206 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18207 case $cc_basename in
18209 # Kuck and Associates, Inc. (KAI) C++ Compiler
18211 # KCC will only create a shared library if the output file
18212 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18213 # to its proper name (with version) after linking.
18214 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18215 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
18216 # Commands to make compiler produce verbose output that lists
18217 # what "hidden" libraries, object files and flags are used when
18218 # linking a shared library.
18220 # There doesn't appear to be a way to prevent this compiler from
18221 # explicitly linking system object files so we need to strip them
18222 # from the output so that they don't get included in the library
18224 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18226 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18227 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18229 # Archives containing C++ object files must be created using
18230 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18231 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18236 # version 8.0 and above of icpc choke on multiply defined symbols
18237 # if we add $predep_objects and $postdep_objects, however 7.1 and
18238 # earlier do not add the objects themselves.
18239 case `$CC -V 2>&1` in
18241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18242 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18244 *) # Version 8.0 or newer
18247 ia64*) tmp_idyn=' -i_dynamic';;
18249 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18250 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18253 archive_cmds_need_lc_CXX=no
18254 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18255 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18256 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
18259 # Portland Group C++ compiler
18261 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18262 prelink_cmds_CXX='tpldir=Template.dir~
18264 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18265 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18266 old_archive_cmds_CXX='tpldir=Template.dir~
18268 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18269 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18271 archive_cmds_CXX='tpldir=Template.dir~
18273 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18274 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18275 archive_expsym_cmds_CXX='tpldir=Template.dir~
18277 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18278 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18280 *) # Version 6 and above use weak symbols
18281 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18282 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18286 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
18287 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18288 whole_archive_flag_spec_CXX='$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'
18292 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
18293 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
18295 runpath_var=LD_RUN_PATH
18296 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18297 hardcode_libdir_separator_CXX=:
18299 # Commands to make compiler produce verbose output that lists
18300 # what "hidden" libraries, object files and flags are used when
18301 # linking a shared library.
18303 # There doesn't appear to be a way to prevent this compiler from
18304 # explicitly linking system object files so we need to strip them
18305 # from the output so that they don't get included in the library
18307 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
18309 xl* | mpixl* | bgxl*)
18310 # IBM XL 8.0 on PPC, with GNU ld
18311 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18312 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
18313 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18314 if test yes = "$supports_anon_versioning"; then
18315 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18316 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18317 echo "local: *; };" >> $output_objdir/$libname.ver~
18318 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18322 case `$CC -V 2>&1 | $SED 5q` in
18325 no_undefined_flag_CXX=' -zdefs'
18326 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18327 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
18328 hardcode_libdir_flag_spec_CXX='-R$libdir'
18329 whole_archive_flag_spec_CXX='$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'
18330 compiler_needs_object_CXX=yes
18332 # Not sure whether something based on
18333 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18335 output_verbose_link_cmd='func_echo_all'
18337 # Archives containing C++ object files must be created using
18338 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18339 # necessary to make sure instantiated templates are included
18341 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18349 # FIXME: insert proper C++ library support
18354 # FIXME: insert proper C++ library support
18359 case $cc_basename in
18361 # FIXME: insert proper C++ library support
18365 # FIXME: insert proper C++ library support
18372 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18373 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18375 hardcode_libdir_flag_spec_CXX='-R$libdir'
18376 hardcode_direct_CXX=yes
18377 hardcode_shlibpath_var_CXX=no
18379 # Workaround some broken pre-1.5 toolchains
18380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18387 openbsd* | bitrig*)
18388 if test -f /usr/libexec/ld.so; then
18389 hardcode_direct_CXX=yes
18390 hardcode_shlibpath_var_CXX=no
18391 hardcode_direct_absolute_CXX=yes
18392 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18393 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18394 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
18395 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
18396 export_dynamic_flag_spec_CXX='$wl-E'
18397 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18399 output_verbose_link_cmd=func_echo_all
18405 osf3* | osf4* | osf5*)
18406 case $cc_basename in
18408 # Kuck and Associates, Inc. (KAI) C++ Compiler
18410 # KCC will only create a shared library if the output file
18411 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18412 # to its proper name (with version) after linking.
18413 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18415 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
18416 hardcode_libdir_separator_CXX=:
18418 # Archives containing C++ object files must be created using
18419 # the KAI C++ compiler.
18421 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18422 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18426 # Rational C++ 2.4.1
18427 # FIXME: insert proper C++ library support
18433 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18434 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18435 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18438 allow_undefined_flag_CXX=' -expect_unresolved \*'
18439 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18440 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18441 echo "-hidden">> $lib.exp~
18442 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
18444 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18448 hardcode_libdir_separator_CXX=:
18450 # Commands to make compiler produce verbose output that lists
18451 # what "hidden" libraries, object files and flags are used when
18452 # linking a shared library.
18454 # There doesn't appear to be a way to prevent this compiler from
18455 # explicitly linking system object files so we need to strip them
18456 # from the output so that they don't get included in the library
18458 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18461 if test yes,no = "$GXX,$with_gnu_ld"; then
18462 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
18465 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18468 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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'
18472 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18473 hardcode_libdir_separator_CXX=:
18475 # Commands to make compiler produce verbose output that lists
18476 # what "hidden" libraries, object files and flags are used when
18477 # linking a shared library.
18478 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18481 # FIXME: insert proper C++ library support
18489 # FIXME: insert proper C++ library support
18494 case $cc_basename in
18497 # FIXME: insert proper C++ library support
18502 # FIXME: insert proper C++ library support
18506 # FIXME: insert proper C++ library support
18513 case $cc_basename in
18515 # Sun C++ 4.2, 5.x and Centerline C++
18516 archive_cmds_need_lc_CXX=yes
18517 no_undefined_flag_CXX=' -zdefs'
18518 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18519 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18520 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18522 hardcode_libdir_flag_spec_CXX='-R$libdir'
18523 hardcode_shlibpath_var_CXX=no
18525 solaris2.[0-5] | solaris2.[0-5].*) ;;
18527 # The compiler driver will combine and reorder linker options,
18528 # but understands '-z linker_flag'.
18529 # Supported since Solaris 2.6 (maybe 2.5.1?)
18530 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18533 link_all_deplibs_CXX=yes
18535 output_verbose_link_cmd='func_echo_all'
18537 # Archives containing C++ object files must be created using
18538 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18539 # necessary to make sure instantiated templates are included
18541 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18544 # Green Hills C++ Compiler
18545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18547 # The C++ compiler must be used to create the archive.
18548 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18551 # GNU C++ compiler with Solaris linker
18552 if test yes,no = "$GXX,$with_gnu_ld"; then
18553 no_undefined_flag_CXX=' $wl-z ${wl}defs'
18554 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18555 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18556 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18557 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18559 # Commands to make compiler produce verbose output that lists
18560 # what "hidden" libraries, object files and flags are used when
18561 # linking a shared library.
18562 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18564 # g++ 2.7 appears to require '-G' NOT '-shared' on this
18566 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18567 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18568 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18570 # Commands to make compiler produce verbose output that lists
18571 # what "hidden" libraries, object files and flags are used when
18572 # linking a shared library.
18573 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18576 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18578 solaris2.[0-5] | solaris2.[0-5].*) ;;
18580 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18588 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18589 no_undefined_flag_CXX='$wl-z,text'
18590 archive_cmds_need_lc_CXX=no
18591 hardcode_shlibpath_var_CXX=no
18592 runpath_var='LD_RUN_PATH'
18594 case $cc_basename in
18596 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18597 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18600 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18601 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18606 sysv5* | sco3.2v5* | sco5v6*)
18607 # Note: We CANNOT use -z defs as we might desire, because we do not
18608 # link with -lc, and that would cause any symbols used from libc to
18609 # always be unresolved, which means just about no library would
18610 # ever link correctly. If we're not using GNU ld we use -z text
18611 # though, which does catch some bad symbols but isn't as heavy-handed
18613 no_undefined_flag_CXX='$wl-z,text'
18614 allow_undefined_flag_CXX='$wl-z,nodefs'
18615 archive_cmds_need_lc_CXX=no
18616 hardcode_shlibpath_var_CXX=no
18617 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18618 hardcode_libdir_separator_CXX=':'
18619 link_all_deplibs_CXX=yes
18620 export_dynamic_flag_spec_CXX='$wl-Bexport'
18621 runpath_var='LD_RUN_PATH'
18623 case $cc_basename in
18625 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18626 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18627 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18628 '"$old_archive_cmds_CXX"
18629 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18630 '"$reload_cmds_CXX"
18633 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18640 case $cc_basename in
18642 # NonStop-UX NCC 3.20
18643 # FIXME: insert proper C++ library support
18647 # FIXME: insert proper C++ library support
18654 # FIXME: insert proper C++ library support
18659 # FIXME: insert proper C++ library support
18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18665 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18666 test no = "$ld_shlibs_CXX" && can_build_shared=no
18672 ## There is no encapsulation within the following macros, do not change
18673 ## the running order or otherwise move them around unless you know exactly
18674 ## what you are doing...
18675 # Dependencies to place before and after the object being linked:
18676 predep_objects_CXX=
18677 postdep_objects_CXX=
18680 compiler_lib_search_path_CXX=
18682 cat > conftest.$ac_ext <<_LT_EOF
18686 Foo (void) { a = 0; }
18693 _lt_libdeps_save_CFLAGS=$CFLAGS
18694 case "$CC $CFLAGS " in #(
18695 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18696 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18697 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18701 (eval $ac_compile) 2>&5
18703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704 test $ac_status = 0; }; then
18705 # Parse the compiler output and extract the necessary
18706 # objects, libraries and library flags.
18708 # Sentinel used to keep track of whether or not we are before
18709 # the conftest object file.
18710 pre_test_object_deps_done=no
18712 for p in `eval "$output_verbose_link_cmd"`; do
18716 # Some compilers place space between "-{L,R}" and the path.
18717 # Remove the space.
18718 if test x-L = "$p" ||
18719 test x-R = "$p"; then
18724 # Expand the sysroot to ease extracting the directories later.
18725 if test -z "$prev"; then
18727 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18728 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18729 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18733 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18735 if test no = "$pre_test_object_deps_done"; then
18738 # Internal compiler library paths should come after those
18739 # provided the user. The postdeps already come after the
18740 # user supplied libs so there is no need to process them.
18741 if test -z "$compiler_lib_search_path_CXX"; then
18742 compiler_lib_search_path_CXX=$prev$p
18744 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18747 # The "-l" case would never come before the object being
18748 # linked, so don't bother handling this case.
18751 if test -z "$postdeps_CXX"; then
18752 postdeps_CXX=$prev$p
18754 postdeps_CXX="${postdeps_CXX} $prev$p"
18760 *.lto.$objext) ;; # Ignore GCC LTO objects
18762 # This assumes that the test object file only shows up
18763 # once in the compiler output.
18764 if test "$p" = "conftest.$objext"; then
18765 pre_test_object_deps_done=yes
18769 if test no = "$pre_test_object_deps_done"; then
18770 if test -z "$predep_objects_CXX"; then
18771 predep_objects_CXX=$p
18773 predep_objects_CXX="$predep_objects_CXX $p"
18776 if test -z "$postdep_objects_CXX"; then
18777 postdep_objects_CXX=$p
18779 postdep_objects_CXX="$postdep_objects_CXX $p"
18784 *) ;; # Ignore the rest.
18792 echo "libtool.m4: error: problem compiling CXX test program"
18795 $RM -f confest.$objext
18796 CFLAGS=$_lt_libdeps_save_CFLAGS
18798 # PORTME: override above test on systems where it is broken
18801 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18802 # hack all around it, let's just trust "g++" to DTRT.
18803 predep_objects_CXX=
18804 postdep_objects_CXX=
18810 case " $postdeps_CXX " in
18811 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18813 compiler_lib_search_dirs_CXX=
18814 if test -n "${compiler_lib_search_path_CXX}"; then
18815 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18848 lt_prog_compiler_wl_CXX=
18849 lt_prog_compiler_pic_CXX=
18850 lt_prog_compiler_static_CXX=
18853 # C++ specific cases for pic, static, wl, etc.
18854 if test yes = "$GXX"; then
18855 lt_prog_compiler_wl_CXX='-Wl,'
18856 lt_prog_compiler_static_CXX='-static'
18860 # All AIX code is PIC.
18861 if test ia64 = "$host_cpu"; then
18862 # AIX 5 now supports IA64 processor
18863 lt_prog_compiler_static_CXX='-Bstatic'
18865 lt_prog_compiler_pic_CXX='-fPIC'
18871 # see comment about AmigaOS4 .so support
18872 lt_prog_compiler_pic_CXX='-fPIC'
18875 # FIXME: we need at least 68020 code to build shared libraries, but
18876 # adding the '-m68020' flag to GCC prevents building anything better,
18878 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18884 # PIC is the default for these OSes.
18886 mingw* | cygwin* | os2* | pw32* | cegcc*)
18887 # This hack is so that the source file can tell whether it is being
18888 # built for inclusion in a dll (and should export symbols for example).
18889 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18890 # (--disable-auto-import) libraries
18891 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18894 lt_prog_compiler_static_CXX='$wl-static'
18898 darwin* | rhapsody*)
18899 # PIC is the default on this platform
18900 # Common symbols not allowed in MH_DYLIB files
18901 lt_prog_compiler_pic_CXX='-fno-common'
18904 # DJGPP does not support shared libraries at all
18905 lt_prog_compiler_pic_CXX=
18908 # PIC is the default for Haiku.
18909 # The "-static" flag exists, but is broken.
18910 lt_prog_compiler_static_CXX=
18913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18914 # Instead, we relocate shared libraries at runtime.
18917 if test -d /usr/nec; then
18918 lt_prog_compiler_pic_CXX=-Kconform_pic
18922 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18923 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18924 # sets the default TLS model and affects inlining.
18929 lt_prog_compiler_pic_CXX='-fPIC'
18934 # QNX uses GNU C++, but need to define -shared option too, otherwise
18935 # it will coredump.
18936 lt_prog_compiler_pic_CXX='-fPIC -shared'
18939 lt_prog_compiler_pic_CXX='-fPIC'
18945 # All AIX code is PIC.
18946 if test ia64 = "$host_cpu"; then
18947 # AIX 5 now supports IA64 processor
18948 lt_prog_compiler_static_CXX='-Bstatic'
18950 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18954 case $cc_basename in
18956 # Green Hills C++ Compiler
18957 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18961 mingw* | cygwin* | os2* | pw32* | cegcc*)
18962 # This hack is so that the source file can tell whether it is being
18963 # built for inclusion in a dll (and should export symbols for example).
18964 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18967 case $cc_basename in
18969 lt_prog_compiler_pic_CXX='-KPIC'
18972 # Green Hills C++ Compiler
18973 lt_prog_compiler_pic_CXX='-pic'
18979 freebsd* | dragonfly* | midnightbsd*)
18980 # FreeBSD uses GNU C++
18982 hpux9* | hpux10* | hpux11*)
18983 case $cc_basename in
18985 lt_prog_compiler_wl_CXX='-Wl,'
18986 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18987 if test ia64 != "$host_cpu"; then
18988 lt_prog_compiler_pic_CXX='+Z'
18992 lt_prog_compiler_wl_CXX='-Wl,'
18993 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18999 lt_prog_compiler_pic_CXX='+Z'
19008 # This is c89, which is MS Visual C++ (no shared libs)
19009 # Anyone wants to do a port?
19011 irix5* | irix6* | nonstopux*)
19012 case $cc_basename in
19014 lt_prog_compiler_wl_CXX='-Wl,'
19015 lt_prog_compiler_static_CXX='-non_shared'
19016 # CC pic flag -KPIC is the default.
19022 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19023 case $cc_basename in
19026 lt_prog_compiler_wl_CXX='--backend -Wl,'
19027 lt_prog_compiler_pic_CXX='-fPIC'
19030 # old Intel C++ for x86_64, which still supported -KPIC.
19031 lt_prog_compiler_wl_CXX='-Wl,'
19032 lt_prog_compiler_pic_CXX='-KPIC'
19033 lt_prog_compiler_static_CXX='-static'
19036 # Intel C++, used to be incompatible with GCC.
19037 # ICC 10 doesn't accept -KPIC any more.
19038 lt_prog_compiler_wl_CXX='-Wl,'
19039 lt_prog_compiler_pic_CXX='-fPIC'
19040 lt_prog_compiler_static_CXX='-static'
19043 # Portland Group C++ compiler
19044 lt_prog_compiler_wl_CXX='-Wl,'
19045 lt_prog_compiler_pic_CXX='-fpic'
19046 lt_prog_compiler_static_CXX='-Bstatic'
19050 # Make sure the PIC flag is empty. It appears that all Alpha
19051 # Linux and Compaq Tru64 Unix objects are PIC.
19052 lt_prog_compiler_pic_CXX=
19053 lt_prog_compiler_static_CXX='-non_shared'
19055 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19056 # IBM XL 8.0, 9.0 on PPC and BlueGene
19057 lt_prog_compiler_wl_CXX='-Wl,'
19058 lt_prog_compiler_pic_CXX='-qpic'
19059 lt_prog_compiler_static_CXX='-qstaticlink'
19062 case `$CC -V 2>&1 | $SED 5q` in
19065 lt_prog_compiler_pic_CXX='-KPIC'
19066 lt_prog_compiler_static_CXX='-Bstatic'
19067 lt_prog_compiler_wl_CXX='-Qoption ld '
19078 case $cc_basename in
19080 lt_prog_compiler_pic_CXX='-W c,exportall'
19089 # QNX uses GNU C++, but need to define -shared option too, otherwise
19090 # it will coredump.
19091 lt_prog_compiler_pic_CXX='-fPIC -shared'
19093 osf3* | osf4* | osf5*)
19094 case $cc_basename in
19096 lt_prog_compiler_wl_CXX='--backend -Wl,'
19099 # Rational C++ 2.4.1
19100 lt_prog_compiler_pic_CXX='-pic'
19103 # Digital/Compaq C++
19104 lt_prog_compiler_wl_CXX='-Wl,'
19105 # Make sure the PIC flag is empty. It appears that all Alpha
19106 # Linux and Compaq Tru64 Unix objects are PIC.
19107 lt_prog_compiler_pic_CXX=
19108 lt_prog_compiler_static_CXX='-non_shared'
19117 case $cc_basename in
19119 # Sun C++ 4.2, 5.x and Centerline C++
19120 lt_prog_compiler_pic_CXX='-KPIC'
19121 lt_prog_compiler_static_CXX='-Bstatic'
19122 lt_prog_compiler_wl_CXX='-Qoption ld '
19125 # Green Hills C++ Compiler
19126 lt_prog_compiler_pic_CXX='-PIC'
19133 case $cc_basename in
19136 lt_prog_compiler_pic_CXX='-pic'
19137 lt_prog_compiler_static_CXX='-Bstatic'
19141 lt_prog_compiler_pic_CXX='-pic'
19147 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19148 case $cc_basename in
19150 lt_prog_compiler_wl_CXX='-Wl,'
19151 lt_prog_compiler_pic_CXX='-KPIC'
19152 lt_prog_compiler_static_CXX='-Bstatic'
19157 case $cc_basename in
19159 # NonStop-UX NCC 3.20
19160 lt_prog_compiler_pic_CXX='-KPIC'
19169 lt_prog_compiler_can_build_shared_CXX=no
19175 # For platforms that do not support PIC, -DPIC is meaningless:
19177 lt_prog_compiler_pic_CXX=
19180 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19185 printf %s "checking for $compiler option to produce PIC... " >&6; }
19186 if test ${lt_cv_prog_compiler_pic_CXX+y}
19188 printf %s "(cached) " >&6
19190 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19193 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19194 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19197 # Check to make sure the PIC flag actually works.
19199 if test -n "$lt_prog_compiler_pic_CXX"; then
19200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19201 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19202 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19204 printf %s "(cached) " >&6
19206 lt_cv_prog_compiler_pic_works_CXX=no
19207 ac_outfile=conftest.$ac_objext
19208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19209 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19210 # Insert the option either (1) after the last *FLAGS variable, or
19211 # (2) before a word containing "conftest.", or (3) at the end.
19212 # Note that $ac_compile itself does not contain backslashes and begins
19213 # with a dollar sign (not a hyphen), so the echo should work correctly.
19214 # The option is referenced via a variable to avoid confusing sed.
19215 lt_compile=`echo "$ac_compile" | $SED \
19216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19218 -e 's:$: $lt_compiler_flag:'`
19219 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19220 (eval "$lt_compile" 2>conftest.err)
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 if (exit $ac_status) && test -s "$ac_outfile"; then
19225 # The compiler can only warn and ignore the option if not recognized
19226 # So say no if there are warnings other than the usual output.
19227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19230 lt_cv_prog_compiler_pic_works_CXX=yes
19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19237 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19239 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19240 case $lt_prog_compiler_pic_CXX in
19242 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19245 lt_prog_compiler_pic_CXX=
19246 lt_prog_compiler_can_build_shared_CXX=no
19256 # Check to make sure the static flag actually works.
19258 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19260 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19261 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19263 printf %s "(cached) " >&6
19265 lt_cv_prog_compiler_static_works_CXX=no
19266 save_LDFLAGS=$LDFLAGS
19267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19268 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19270 # The linker can only warn and ignore the option if not recognized
19271 # So say no if there are warnings
19272 if test -s conftest.err; then
19273 # Append any errors to the config.log.
19274 cat conftest.err 1>&5
19275 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19277 if diff conftest.exp conftest.er2 >/dev/null; then
19278 lt_cv_prog_compiler_static_works_CXX=yes
19281 lt_cv_prog_compiler_static_works_CXX=yes
19285 LDFLAGS=$save_LDFLAGS
19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19289 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19291 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19294 lt_prog_compiler_static_CXX=
19300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19301 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19302 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19304 printf %s "(cached) " >&6
19306 lt_cv_prog_compiler_c_o_CXX=no
19307 $RM -r conftest 2>/dev/null
19311 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19313 lt_compiler_flag="-o out/conftest2.$ac_objext"
19314 # Insert the option either (1) after the last *FLAGS variable, or
19315 # (2) before a word containing "conftest.", or (3) at the end.
19316 # Note that $ac_compile itself does not contain backslashes and begins
19317 # with a dollar sign (not a hyphen), so the echo should work correctly.
19318 lt_compile=`echo "$ac_compile" | $SED \
19319 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19320 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19321 -e 's:$: $lt_compiler_flag:'`
19322 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19323 (eval "$lt_compile" 2>out/conftest.err)
19325 cat out/conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19329 # The compiler can only warn and ignore the option if not recognized
19330 # So say no if there are warnings
19331 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19332 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19333 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19334 lt_cv_prog_compiler_c_o_CXX=yes
19339 # SGI C++ compiler will create directory out/ii_files/ for
19340 # template instantiation
19341 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19342 $RM out/* && rmdir out
19348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19349 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19354 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19355 if test ${lt_cv_prog_compiler_c_o_CXX+y}
19357 printf %s "(cached) " >&6
19359 lt_cv_prog_compiler_c_o_CXX=no
19360 $RM -r conftest 2>/dev/null
19364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19366 lt_compiler_flag="-o out/conftest2.$ac_objext"
19367 # Insert the option either (1) after the last *FLAGS variable, or
19368 # (2) before a word containing "conftest.", or (3) at the end.
19369 # Note that $ac_compile itself does not contain backslashes and begins
19370 # with a dollar sign (not a hyphen), so the echo should work correctly.
19371 lt_compile=`echo "$ac_compile" | $SED \
19372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19374 -e 's:$: $lt_compiler_flag:'`
19375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19376 (eval "$lt_compile" 2>out/conftest.err)
19378 cat out/conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19382 # The compiler can only warn and ignore the option if not recognized
19383 # So say no if there are warnings
19384 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19385 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19386 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19387 lt_cv_prog_compiler_c_o_CXX=yes
19392 # SGI C++ compiler will create directory out/ii_files/ for
19393 # template instantiation
19394 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19395 $RM out/* && rmdir out
19401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19402 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19407 hard_links=nottested
19408 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
19409 # do not overwrite the value of need_locks provided by the user
19410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19411 printf %s "checking if we can lock with hard links... " >&6; }
19414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19416 ln conftest.a conftest.b 2>&5 || hard_links=no
19417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19419 printf "%s\n" "$hard_links" >&6; }
19420 if test no = "$hard_links"; then
19421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
19422 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
19431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19432 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19434 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19435 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19438 # If we're using GNU nm, then we don't want the "-C" option.
19439 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
19440 # Without the "-l" option, or with the "-B" option, AIX nm treats
19441 # weak defined symbols like other global defined symbols, whereas
19442 # GNU nm marks them as "W".
19443 # While the 'weak' keyword is ignored in the Export File, we need
19444 # it in the Import File for the 'aix-soname' feature, so we have
19445 # to replace the "-B" option with "-P" for AIX nm.
19446 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19447 export_symbols_cmds_CXX='$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'
19449 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
19453 export_symbols_cmds_CXX=$ltdll_cmds
19455 cygwin* | mingw* | cegcc*)
19456 case $cc_basename in
19458 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19461 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19462 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19467 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19472 printf "%s\n" "$ld_shlibs_CXX" >&6; }
19473 test no = "$ld_shlibs_CXX" && can_build_shared=no
19475 with_gnu_ld_CXX=$with_gnu_ld
19483 # Do we need to explicitly link libc?
19485 case "x$archive_cmds_need_lc_CXX" in
19487 # Assume -lc should be added
19488 archive_cmds_need_lc_CXX=yes
19490 if test yes,yes = "$GCC,$enable_shared"; then
19491 case $archive_cmds_CXX in
19493 # FIXME: we may have to deal with multi-command sequences.
19496 # Test whether the compiler implicitly links with -lc since on some
19497 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19498 # to ld, don't add -lc before -lgcc.
19499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19500 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
19501 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
19503 printf %s "(cached) " >&6
19506 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19509 (eval $ac_compile) 2>&5
19511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19512 test $ac_status = 0; } 2>conftest.err; then
19515 libobjs=conftest.$ac_objext
19517 wl=$lt_prog_compiler_wl_CXX
19518 pic_flag=$lt_prog_compiler_pic_CXX
19524 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19525 allow_undefined_flag_CXX=
19526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19527 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19529 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19530 test $ac_status = 0; }
19532 lt_cv_archive_cmds_need_lc_CXX=no
19534 lt_cv_archive_cmds_need_lc_CXX=yes
19536 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19538 cat conftest.err 1>&5
19543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19544 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19545 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19614 printf %s "checking dynamic linker characteristics... " >&6; }
19616 library_names_spec=
19617 libname_spec='lib$name'
19621 postuninstall_cmds=
19625 shlibpath_overrides_runpath=unknown
19627 dynamic_linker="$host_os ld.so"
19628 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19629 need_lib_prefix=unknown
19630 hardcode_into_libs=no
19632 # when you set need_version to no, make sure it does not cause -set_version
19633 # flags to be left without arguments
19634 need_version=unknown
19640 version_type=linux # correct to gnu/linux during the next big refactor
19641 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19642 shlibpath_var=LIBPATH
19644 # AIX 3 has no versioning support, so we append a major version to the name.
19645 soname_spec='$libname$release$shared_ext$major'
19649 version_type=linux # correct to gnu/linux during the next big refactor
19652 hardcode_into_libs=yes
19653 if test ia64 = "$host_cpu"; then
19654 # AIX 5 supports IA64
19655 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19656 shlibpath_var=LD_LIBRARY_PATH
19658 # With GCC up to 2.95.x, collect2 would create an import file
19659 # for dependence libraries. The import file would start with
19660 # the line '#! .'. This would cause the generated library to
19661 # depend on '.', always an invalid library. This was fixed in
19662 # development snapshots of GCC prior to 3.0.
19664 aix4 | aix4.[01] | aix4.[01].*)
19665 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19667 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19670 can_build_shared=no
19674 # Using Import Files as archive members, it is possible to support
19675 # filename-based versioning of shared library archives on AIX. While
19676 # this would work for both with and without runtime linking, it will
19677 # prevent static linking of such archives. So we do filename-based
19678 # shared library versioning with .so extension only, which is used
19679 # when both runtime linking and shared linking is enabled.
19680 # Unfortunately, runtime linking may impact performance, so we do
19681 # not want this to be the default eventually. Also, we use the
19682 # versioned .so libs for executables only if there is the -brtl
19683 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19684 # To allow for filename-based versioning support, we need to create
19685 # libNAME.so.V as an archive file, containing:
19686 # *) an Import File, referring to the versioned filename of the
19687 # archive as well as the shared archive member, telling the
19688 # bitwidth (32 or 64) of that shared object, and providing the
19689 # list of exported symbols of that shared object, eventually
19690 # decorated with the 'weak' keyword
19691 # *) the shared object with the F_LOADONLY flag set, to really avoid
19692 # it being seen by the linker.
19693 # At run time we better use the real file rather than another symlink,
19694 # but for link time we create the symlink libNAME.so -> libNAME.so.V
19696 case $with_aix_soname,$aix_use_runtimelinking in
19697 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19698 # soname into executable. Probably we can add versioning support to
19699 # collect2, so additional links can be useful in future.
19700 aix,yes) # traditional libtool
19701 dynamic_linker='AIX unversionable lib.so'
19702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19703 # instead of lib<name>.a to let people know that these are not
19704 # typical AIX shared libraries.
19705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19707 aix,no) # traditional AIX only
19708 dynamic_linker='AIX lib.a(lib.so.V)'
19709 # We preserve .a as extension for shared libraries through AIX4.2
19710 # and later when we are not doing run time linking.
19711 library_names_spec='$libname$release.a $libname.a'
19712 soname_spec='$libname$release$shared_ext$major'
19714 svr4,*) # full svr4 only
19715 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19716 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19717 # We do not specify a path in Import Files, so LIBPATH fires.
19718 shlibpath_overrides_runpath=yes
19720 *,yes) # both, prefer svr4
19721 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19722 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19723 # unpreferred sharedlib libNAME.a needs extra handling
19724 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"'
19725 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"'
19726 # We do not specify a path in Import Files, so LIBPATH fires.
19727 shlibpath_overrides_runpath=yes
19729 *,no) # both, prefer aix
19730 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19731 library_names_spec='$libname$release.a $libname.a'
19732 soname_spec='$libname$release$shared_ext$major'
19733 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19734 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)'
19735 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"'
19738 shlibpath_var=LIBPATH
19745 # Since July 2007 AmigaOS4 officially supports .so libraries.
19746 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19750 library_names_spec='$libname.ixlibrary $libname.a'
19751 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19752 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'
19758 library_names_spec='$libname$shared_ext'
19759 dynamic_linker="$host_os ld.so"
19760 shlibpath_var=LIBRARY_PATH
19764 version_type=linux # correct to gnu/linux during the next big refactor
19766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19767 soname_spec='$libname$release$shared_ext$major'
19768 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19769 shlibpath_var=LD_LIBRARY_PATH
19770 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19771 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19772 # the default ld.so.conf also contains /usr/contrib/lib and
19773 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19774 # libtool to hard-code these into programs
19777 cygwin* | mingw* | pw32* | cegcc*)
19778 version_type=windows
19783 case $GCC,$cc_basename in
19786 library_names_spec='$libname.dll.a'
19787 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19788 postinstall_cmds='base_file=`basename \$file`~
19789 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19790 dldir=$destdir/`dirname \$dlpath`~
19791 test -d \$dldir || mkdir -p \$dldir~
19792 $install_prog $dir/$dlname \$dldir/$dlname~
19793 chmod a+x \$dldir/$dlname~
19794 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19795 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19797 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19798 dlpath=$dir/\$dldll~
19800 shlibpath_overrides_runpath=yes
19804 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19805 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19809 # MinGW DLLs use traditional 'lib' prefix
19810 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19813 # pw32 DLLs use 'pw' prefix rather than 'lib'
19814 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19817 dynamic_linker='Win32 ld.exe'
19821 # Native MSVC or ICC
19822 libname_spec='$name'
19823 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19824 library_names_spec='$libname.dll.lib'
19828 sys_lib_search_path_spec=
19831 for lt_path in $LIB
19834 # Let DOS variable expansion print the short 8.3 style file name.
19835 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19836 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19839 # Convert to MSYS style.
19840 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19843 # Convert to unix form, then to dos form, then back to unix form
19844 # but this time dos style (no spaces!) so that the unix form looks
19845 # like /cygdrive/c/PROGRA~1:/cygdr...
19846 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19847 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19848 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19851 sys_lib_search_path_spec=$LIB
19852 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19853 # It is most probably a Windows format PATH.
19854 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19856 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19858 # FIXME: find the short name or the path components, as spaces are
19859 # common. (e.g. "Program Files" -> "PROGRA~1")
19863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19864 postinstall_cmds='base_file=`basename \$file`~
19865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19866 dldir=$destdir/`dirname \$dlpath`~
19867 test -d \$dldir || mkdir -p \$dldir~
19868 $install_prog $dir/$dlname \$dldir/$dlname'
19869 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19870 dlpath=$dir/\$dldll~
19872 shlibpath_overrides_runpath=yes
19873 dynamic_linker='Win32 link.exe'
19877 # Assume MSVC and ICC wrapper
19878 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19879 dynamic_linker='Win32 ld.exe'
19882 # FIXME: first we should search . and the directory the executable is in
19886 darwin* | rhapsody*)
19887 dynamic_linker="$host_os dyld"
19888 version_type=darwin
19891 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
19892 soname_spec='$libname$release$major$shared_ext'
19893 shlibpath_overrides_runpath=yes
19894 shlibpath_var=DYLD_LIBRARY_PATH
19895 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
19897 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19901 version_type=linux # correct to gnu/linux during the next big refactor
19904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19905 soname_spec='$libname$release$shared_ext$major'
19906 shlibpath_var=LD_LIBRARY_PATH
19909 freebsd* | dragonfly* | midnightbsd*)
19910 # DragonFly does not have aout. When/if they implement a new
19911 # versioning mechanism, adjust this.
19912 if test -x /usr/bin/objformat; then
19913 objformat=`/usr/bin/objformat`
19916 freebsd[23].*) objformat=aout ;;
19917 *) objformat=elf ;;
19920 # Handle Gentoo/FreeBSD as it was Linux
19921 case $host_vendor in
19923 version_type=linux ;;
19925 version_type=freebsd-$objformat ;;
19928 case $version_type in
19930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19931 soname_spec='$libname$release$shared_ext$major'
19936 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19941 soname_spec='${libname}${release}${shared_ext}$major'
19946 shlibpath_var=LD_LIBRARY_PATH
19949 shlibpath_overrides_runpath=yes
19951 freebsd3.[01]* | freebsdelf3.[01]*)
19952 shlibpath_overrides_runpath=yes
19953 hardcode_into_libs=yes
19955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19957 shlibpath_overrides_runpath=no
19958 hardcode_into_libs=yes
19960 *) # from 4.6 on, and DragonFly
19961 shlibpath_overrides_runpath=yes
19962 hardcode_into_libs=yes
19968 version_type=linux # correct to gnu/linux during the next big refactor
19971 dynamic_linker="$host_os runtime_loader"
19972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19973 soname_spec='$libname$release$shared_ext$major'
19974 shlibpath_var=LIBRARY_PATH
19975 shlibpath_overrides_runpath=no
19976 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19977 hardcode_into_libs=yes
19980 hpux9* | hpux10* | hpux11*)
19981 # Give a soname corresponding to the major version so that dld.sl refuses to
19982 # link against other versions.
19989 hardcode_into_libs=yes
19990 dynamic_linker="$host_os dld.so"
19991 shlibpath_var=LD_LIBRARY_PATH
19992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19993 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19994 soname_spec='$libname$release$shared_ext$major'
19995 if test 32 = "$HPUX_IA64_MODE"; then
19996 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19997 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20000 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20005 hardcode_into_libs=yes
20006 dynamic_linker="$host_os dld.sl"
20007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20009 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20010 soname_spec='$libname$release$shared_ext$major'
20011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20016 dynamic_linker="$host_os dld.sl"
20017 shlibpath_var=SHLIB_PATH
20018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20019 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20020 soname_spec='$libname$release$shared_ext$major'
20023 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20024 postinstall_cmds='chmod 555 $lib'
20025 # or fails outright, so override atomically:
20026 install_override_mode=555
20030 version_type=linux # correct to gnu/linux during the next big refactor
20033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20034 soname_spec='$libname$release$shared_ext$major'
20035 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20036 shlibpath_var=LD_LIBRARY_PATH
20037 shlibpath_overrides_runpath=no
20038 hardcode_into_libs=yes
20041 irix5* | irix6* | nonstopux*)
20043 nonstopux*) version_type=nonstopux ;;
20045 if test yes = "$lt_cv_prog_gnu_ld"; then
20046 version_type=linux # correct to gnu/linux during the next big refactor
20053 soname_spec='$libname$release$shared_ext$major'
20054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20056 irix5* | nonstopux*)
20057 libsuff= shlibsuff=
20060 case $LD in # libtool.m4 will add one of these switches to LD
20061 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20062 libsuff= shlibsuff= libmagic=32-bit;;
20063 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20064 libsuff=32 shlibsuff=N32 libmagic=N32;;
20065 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20066 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20067 *) libsuff= shlibsuff= libmagic=never-match;;
20071 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20072 shlibpath_overrides_runpath=no
20073 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20074 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20075 hardcode_into_libs=yes
20078 # No shared lib support for Linux oldld, aout, or coff.
20079 linux*oldld* | linux*aout* | linux*coff*)
20084 version_type=none # Android doesn't support versioned libraries.
20087 library_names_spec='$libname$release$shared_ext'
20088 soname_spec='$libname$release$shared_ext'
20090 shlibpath_var=LD_LIBRARY_PATH
20091 shlibpath_overrides_runpath=yes
20093 # This implies no fast_install, which is unacceptable.
20094 # Some rework will be needed to allow for fast_install
20095 # before this can be enabled.
20096 hardcode_into_libs=yes
20098 dynamic_linker='Android linker'
20099 # Don't embed -rpath directories since the linker doesn't support them.
20100 hardcode_libdir_flag_spec_CXX='-L$libdir'
20103 # This must be glibc/ELF.
20104 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20105 version_type=linux # correct to gnu/linux during the next big refactor
20108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20109 soname_spec='$libname$release$shared_ext$major'
20110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20111 shlibpath_var=LD_LIBRARY_PATH
20112 shlibpath_overrides_runpath=no
20114 # Some binutils ld are patched to set DT_RUNPATH
20115 if test ${lt_cv_shlibpath_overrides_runpath+y}
20117 printf %s "(cached) " >&6
20119 lt_cv_shlibpath_overrides_runpath=no
20120 save_LDFLAGS=$LDFLAGS
20121 save_libdir=$libdir
20122 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20123 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20135 if ac_fn_cxx_try_link "$LINENO"
20137 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
20139 lt_cv_shlibpath_overrides_runpath=yes
20142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20143 conftest$ac_exeext conftest.$ac_ext
20144 LDFLAGS=$save_LDFLAGS
20145 libdir=$save_libdir
20149 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20151 # This implies no fast_install, which is unacceptable.
20152 # Some rework will be needed to allow for fast_install
20153 # before this can be enabled.
20154 hardcode_into_libs=yes
20156 # Ideally, we could use ldconfig to report *all* directores which are
20157 # searched for libraries, however this is still not possible. Aside from not
20158 # being certain /sbin/ldconfig is available, command
20159 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20160 # even though it is searched at run-time. Try to do the best guess by
20161 # appending ld.so.conf contents (and includes) to the search path.
20162 if test -f /etc/ld.so.conf; then
20163 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' ' '`
20164 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20167 # We used to test for /lib/ld.so.1 and disable shared libraries on
20168 # powerpc, because MkLinux only supported shared libraries with the
20169 # GNU dynamic linker. Since this was broken with cross compilers,
20170 # most powerpc-linux boxes support dynamic linking these days and
20171 # people can always --disable-shared, the test was removed, and we
20172 # assume the GNU/Linux dynamic linker is in use.
20173 dynamic_linker='GNU/Linux ld.so'
20180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20181 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20183 dynamic_linker='NetBSD (a.out) ld.so'
20185 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20186 soname_spec='$libname$release$shared_ext$major'
20187 dynamic_linker='NetBSD ld.elf_so'
20189 shlibpath_var=LD_LIBRARY_PATH
20190 shlibpath_overrides_runpath=yes
20191 hardcode_into_libs=yes
20195 version_type=linux # correct to gnu/linux during the next big refactor
20196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20197 shlibpath_var=LD_LIBRARY_PATH
20198 shlibpath_overrides_runpath=yes
20205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20206 soname_spec='$libname$release$shared_ext$major'
20207 shlibpath_var=LD_LIBRARY_PATH
20208 shlibpath_overrides_runpath=no
20209 hardcode_into_libs=yes
20210 dynamic_linker='ldqnx.so'
20213 openbsd* | bitrig*)
20215 sys_lib_dlsearch_path_spec=/usr/lib
20217 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20222 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20224 shlibpath_var=LD_LIBRARY_PATH
20225 shlibpath_overrides_runpath=yes
20229 libname_spec='$name'
20230 version_type=windows
20234 # OS/2 can only load a DLL with a base name of 8 characters or less.
20235 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20236 v=$($ECHO $release$versuffix | tr -d .-);
20237 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20238 $ECHO $n$v`$shared_ext'
20239 library_names_spec='${libname}_dll.$libext'
20240 dynamic_linker='OS/2 ld.exe'
20241 shlibpath_var=BEGINLIBPATH
20242 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20243 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20244 postinstall_cmds='base_file=`basename \$file`~
20245 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20246 dldir=$destdir/`dirname \$dlpath`~
20247 test -d \$dldir || mkdir -p \$dldir~
20248 $install_prog $dir/$dlname \$dldir/$dlname~
20249 chmod a+x \$dldir/$dlname~
20250 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20251 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20254 dlpath=$dir/\$dldll~
20258 osf3* | osf4* | osf5*)
20262 soname_spec='$libname$release$shared_ext$major'
20263 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20274 version_type=linux # correct to gnu/linux during the next big refactor
20277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20278 soname_spec='$libname$release$shared_ext$major'
20279 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20281 hardcode_into_libs=yes
20282 # ldd complains unless libraries are executable
20283 postinstall_cmds='chmod +x $lib'
20288 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20289 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20290 shlibpath_var=LD_LIBRARY_PATH
20291 shlibpath_overrides_runpath=yes
20292 if test yes = "$with_gnu_ld"; then
20299 version_type=linux # correct to gnu/linux during the next big refactor
20300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20301 soname_spec='$libname$release$shared_ext$major'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 case $host_vendor in
20305 shlibpath_overrides_runpath=no
20307 runpath_var=LD_RUN_PATH
20315 shlibpath_overrides_runpath=no
20316 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20322 if test -d /usr/nec; then
20323 version_type=linux # correct to gnu/linux during the next big refactor
20324 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20325 soname_spec='$libname$shared_ext.$major'
20326 shlibpath_var=LD_LIBRARY_PATH
20330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20335 soname_spec='$libname$release$shared_ext$major'
20336 shlibpath_var=LD_LIBRARY_PATH
20337 shlibpath_overrides_runpath=yes
20338 hardcode_into_libs=yes
20339 if test yes = "$with_gnu_ld"; then
20340 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20342 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20345 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20349 sys_lib_dlsearch_path_spec='/usr/lib'
20353 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20354 version_type=linux # correct to gnu/linux during the next big refactor
20357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=no
20360 hardcode_into_libs=yes
20364 version_type=linux # correct to gnu/linux during the next big refactor
20365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20366 soname_spec='$libname$release$shared_ext$major'
20367 shlibpath_var=LD_LIBRARY_PATH
20374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20375 printf "%s\n" "$dynamic_linker" >&6; }
20376 test no = "$dynamic_linker" && can_build_shared=no
20378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20379 if test yes = "$GCC"; then
20380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20383 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20384 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20387 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20388 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20391 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20392 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20394 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20395 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20397 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20398 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20440 printf %s "checking how to hardcode library paths into programs... " >&6; }
20441 hardcode_action_CXX=
20442 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20443 test -n "$runpath_var_CXX" ||
20444 test yes = "$hardcode_automatic_CXX"; then
20446 # We can hardcode non-existent directories.
20447 if test no != "$hardcode_direct_CXX" &&
20448 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20449 # have to relink, otherwise we might link with an installed library
20450 # when we should be linking with a yet-to-be-installed one
20451 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20452 test no != "$hardcode_minus_L_CXX"; then
20453 # Linking always hardcodes the temporary library directory.
20454 hardcode_action_CXX=relink
20456 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20457 hardcode_action_CXX=immediate
20460 # We cannot hardcode anything, or else we can only hardcode existing
20462 hardcode_action_CXX=unsupported
20464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20465 printf "%s\n" "$hardcode_action_CXX" >&6; }
20467 if test relink = "$hardcode_action_CXX" ||
20468 test yes = "$inherit_rpath_CXX"; then
20469 # Fast installation is not supported
20470 enable_fast_install=no
20471 elif test yes = "$shlibpath_overrides_runpath" ||
20472 test no = "$enable_shared"; then
20473 # Fast installation is not necessary
20474 enable_fast_install=needless
20483 fi # test -n "$compiler"
20486 CFLAGS=$lt_save_CFLAGS
20490 with_gnu_ld=$lt_save_with_gnu_ld
20491 lt_cv_path_LDCXX=$lt_cv_path_LD
20492 lt_cv_path_LD=$lt_save_path_LD
20493 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20494 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20495 fi # test yes != "$_lt_caught_CXX_error"
20498 ac_cpp='$CPP $CPPFLAGS'
20499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20517 ac_config_commands="$ac_config_commands libtool"
20522 # Only expand once:
20525 if test -n "$ac_tool_prefix"; then
20526 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20527 set dummy ${ac_tool_prefix}windres; ac_word=$2
20528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20529 printf %s "checking for $ac_word... " >&6; }
20530 if test ${ac_cv_prog_RC+y}
20532 printf %s "(cached) " >&6
20534 if test -n "$RC"; then
20535 ac_cv_prog_RC="$RC" # Let the user override the test.
20537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20538 for as_dir in $PATH
20541 case $as_dir in #(((
20544 *) as_dir=$as_dir/ ;;
20546 for ac_exec_ext in '' $ac_executable_extensions; do
20547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20548 ac_cv_prog_RC="${ac_tool_prefix}windres"
20549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20559 if test -n "$RC"; then
20560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
20561 printf "%s\n" "$RC" >&6; }
20563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 printf "%s\n" "no" >&6; }
20569 if test -z "$ac_cv_prog_RC"; then
20571 # Extract the first word of "windres", so it can be a program name with args.
20572 set dummy windres; ac_word=$2
20573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20574 printf %s "checking for $ac_word... " >&6; }
20575 if test ${ac_cv_prog_ac_ct_RC+y}
20577 printf %s "(cached) " >&6
20579 if test -n "$ac_ct_RC"; then
20580 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
20582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20583 for as_dir in $PATH
20586 case $as_dir in #(((
20589 *) as_dir=$as_dir/ ;;
20591 for ac_exec_ext in '' $ac_executable_extensions; do
20592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20593 ac_cv_prog_ac_ct_RC="windres"
20594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20603 ac_ct_RC=$ac_cv_prog_ac_ct_RC
20604 if test -n "$ac_ct_RC"; then
20605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
20606 printf "%s\n" "$ac_ct_RC" >&6; }
20608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20609 printf "%s\n" "no" >&6; }
20612 if test "x$ac_ct_RC" = x; then
20615 case $cross_compiling:$ac_tool_warned in
20617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20619 ac_tool_warned=yes ;;
20624 RC="$ac_cv_prog_RC"
20629 # Source file extension for RC test sources.
20632 # Object file extension for compiled RC test sources.
20636 # Code to be used in simple compile tests
20637 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
20639 # Code to be used in simple link tests
20640 lt_simple_link_test_code=$lt_simple_compile_test_code
20642 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20649 # If no C compiler was specified, use CC.
20652 # If no C compiler flags were specified, use CFLAGS.
20653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20655 # Allow CC to be a program name with arguments.
20659 # save warnings/boilerplate of simple test code
20660 ac_outfile=conftest.$ac_objext
20661 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20662 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20663 _lt_compiler_boilerplate=`cat conftest.err`
20666 ac_outfile=conftest.$ac_objext
20667 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20668 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20669 _lt_linker_boilerplate=`cat conftest.err`
20673 # Allow CC to be a program name with arguments.
20675 lt_save_CFLAGS=$CFLAGS
20682 func_cc_basename $compiler
20683 cc_basename=$func_cc_basename_result
20685 lt_cv_prog_compiler_c_o_RC=yes
20687 if test -n "$compiler"; then
20696 ac_cpp='$CPP $CPPFLAGS'
20697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20702 CFLAGS=$lt_save_CFLAGS
20706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20707 printf %s "checking whether ln -s works... " >&6; }
20709 if test "$LN_S" = "ln -s"; then
20710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20711 printf "%s\n" "yes" >&6; }
20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20714 printf "%s\n" "no, using $LN_S" >&6; }
20724 # Find any Python interpreter.
20725 if test -z "$PYTHON"; then
20726 for ac_prog in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
20728 # Extract the first word of "$ac_prog", so it can be a program name with args.
20729 set dummy $ac_prog; ac_word=$2
20730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20731 printf %s "checking for $ac_word... " >&6; }
20732 if test ${ac_cv_path_PYTHON+y}
20734 printf %s "(cached) " >&6
20738 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20742 for as_dir in $PATH
20745 case $as_dir in #(((
20748 *) as_dir=$as_dir/ ;;
20750 for ac_exec_ext in '' $ac_executable_extensions; do
20751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20752 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
20753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20763 PYTHON=$ac_cv_path_PYTHON
20764 if test -n "$PYTHON"; then
20765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20766 printf "%s\n" "$PYTHON" >&6; }
20768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20769 printf "%s\n" "no" >&6; }
20773 test -n "$PYTHON" && break
20775 test -n "$PYTHON" || PYTHON=":"
20778 am_display_PYTHON=python
20781 if test "$PYTHON" = :; then
20782 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
20785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20786 printf %s "checking for $am_display_PYTHON version... " >&6; }
20787 if test ${am_cv_python_version+y}
20789 printf %s "(cached) " >&6
20791 am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
20793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20794 printf "%s\n" "$am_cv_python_version" >&6; }
20795 PYTHON_VERSION=$am_cv_python_version
20798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20799 printf %s "checking for $am_display_PYTHON platform... " >&6; }
20800 if test ${am_cv_python_platform+y}
20802 printf %s "(cached) " >&6
20804 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20807 printf "%s\n" "$am_cv_python_platform" >&6; }
20808 PYTHON_PLATFORM=$am_cv_python_platform
20811 if test "x$prefix" = xNONE; then
20812 am__usable_prefix=$ac_default_prefix
20814 am__usable_prefix=$prefix
20817 # Allow user to request using sys.* values from Python,
20818 # instead of the GNU $prefix values.
20820 # Check whether --with-python-sys-prefix was given.
20821 if test ${with_python_sys_prefix+y}
20823 withval=$with_python_sys_prefix; am_use_python_sys=:
20825 am_use_python_sys=false
20829 # Allow user to override whatever the default Python prefix is.
20831 # Check whether --with-python_prefix was given.
20832 if test ${with_python_prefix+y}
20834 withval=$with_python_prefix; am_python_prefix_subst=$withval
20835 am_cv_python_prefix=$withval
20836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
20837 printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
20838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
20839 printf "%s\n" "$am_cv_python_prefix" >&6; }
20842 if $am_use_python_sys; then
20843 # using python sys.prefix value, not GNU
20844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
20845 printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
20846 if test ${am_cv_python_prefix+y}
20848 printf %s "(cached) " >&6
20850 am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
20852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
20853 printf "%s\n" "$am_cv_python_prefix" >&6; }
20855 case $am_cv_python_prefix in
20856 $am__usable_prefix*)
20857 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
20858 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
20861 am_python_prefix_subst=$am_cv_python_prefix
20864 else # using GNU prefix value, not python sys.prefix
20865 am_python_prefix_subst='${prefix}'
20866 am_python_prefix=$am_python_prefix_subst
20867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
20868 printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
20869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
20870 printf "%s\n" "$am_python_prefix" >&6; }
20874 # Substituting python_prefix_subst value.
20875 PYTHON_PREFIX=$am_python_prefix_subst
20878 # emacs-page Now do it all over again for Python exec_prefix, but with yet
20879 # another conditional: fall back to regular prefix if that was specified.
20881 # Check whether --with-python_exec_prefix was given.
20882 if test ${with_python_exec_prefix+y}
20884 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
20885 am_cv_python_exec_prefix=$withval
20886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
20887 printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
20888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
20889 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
20892 # no explicit --with-python_exec_prefix, but if
20893 # --with-python_prefix was given, use its value for python_exec_prefix too.
20894 if test -n "$with_python_prefix"
20896 am_python_exec_prefix_subst=$with_python_prefix
20897 am_cv_python_exec_prefix=$with_python_prefix
20898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
20899 printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
20900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
20901 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
20904 # Set am__usable_exec_prefix whether using GNU or Python values,
20905 # since we use that variable for pyexecdir.
20906 if test "x$exec_prefix" = xNONE; then
20907 am__usable_exec_prefix=$am__usable_prefix
20909 am__usable_exec_prefix=$exec_prefix
20912 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
20913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
20914 printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
20915 if test ${am_cv_python_exec_prefix+y}
20917 printf %s "(cached) " >&6
20919 am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
20921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
20922 printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
20923 case $am_cv_python_exec_prefix in
20924 $am__usable_exec_prefix*)
20925 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
20926 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
20929 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
20932 else # using GNU $exec_prefix, not python sys.exec_prefix
20933 am_python_exec_prefix_subst='${exec_prefix}'
20934 am_python_exec_prefix=$am_python_exec_prefix_subst
20935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
20936 printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
20937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
20938 printf "%s\n" "$am_python_exec_prefix" >&6; }
20943 # Substituting python_exec_prefix_subst.
20944 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
20947 # Factor out some code duplication into this shell variable.
20948 am_python_setup_sysconfig="\
20950 # Prefer sysconfig over distutils.sysconfig, for better compatibility
20951 # with python 3.x. See automake bug#10227.
20954 except ImportError:
20955 can_use_sysconfig = 0
20957 can_use_sysconfig = 1
20958 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20959 # <https://github.com/pypa/virtualenv/issues/118>
20961 from platform import python_implementation
20962 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20963 can_use_sysconfig = 0
20964 except ImportError:
20968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
20969 printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
20970 if test ${am_cv_python_pythondir+y}
20972 printf %s "(cached) " >&6
20974 if test "x$am_cv_python_prefix" = x; then
20975 am_py_prefix=$am__usable_prefix
20977 am_py_prefix=$am_cv_python_prefix
20979 am_cv_python_pythondir=`$PYTHON -c "
20980 $am_python_setup_sysconfig
20981 if can_use_sysconfig:
20982 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20984 from distutils import sysconfig
20985 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20986 sys.stdout.write(sitedir)"`
20988 case $am_cv_python_pythondir in
20990 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20991 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
20994 case $am_py_prefix in
20996 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
21003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
21004 printf "%s\n" "$am_cv_python_pythondir" >&6; }
21005 pythondir=$am_cv_python_pythondir
21008 pkgpythondir=\${pythondir}/$PACKAGE
21011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
21012 printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
21013 if test ${am_cv_python_pyexecdir+y}
21015 printf %s "(cached) " >&6
21017 if test "x$am_cv_python_exec_prefix" = x; then
21018 am_py_exec_prefix=$am__usable_exec_prefix
21020 am_py_exec_prefix=$am_cv_python_exec_prefix
21022 am_cv_python_pyexecdir=`$PYTHON -c "
21023 $am_python_setup_sysconfig
21024 if can_use_sysconfig:
21025 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
21027 from distutils import sysconfig
21028 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
21029 sys.stdout.write(sitedir)"`
21031 case $am_cv_python_pyexecdir in
21032 $am_py_exec_prefix*)
21033 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
21034 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
21037 case $am_py_exec_prefix in
21039 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
21046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
21047 printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
21048 pyexecdir=$am_cv_python_pyexecdir
21051 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21058 # Extract the first word of "autogen", so it can be a program name with args.
21059 set dummy autogen; ac_word=$2
21060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21061 printf %s "checking for $ac_word... " >&6; }
21062 if test ${ac_cv_prog_HAVE_AUTOGEN+y}
21064 printf %s "(cached) " >&6
21066 if test -n "$HAVE_AUTOGEN"; then
21067 ac_cv_prog_HAVE_AUTOGEN="$HAVE_AUTOGEN" # Let the user override the test.
21069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21070 for as_dir in $PATH
21073 case $as_dir in #(((
21076 *) as_dir=$as_dir/ ;;
21078 for ac_exec_ext in '' $ac_executable_extensions; do
21079 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21080 ac_cv_prog_HAVE_AUTOGEN="yes"
21081 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21088 test -z "$ac_cv_prog_HAVE_AUTOGEN" && ac_cv_prog_HAVE_AUTOGEN="no"
21091 HAVE_AUTOGEN=$ac_cv_prog_HAVE_AUTOGEN
21092 if test -n "$HAVE_AUTOGEN"; then
21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_AUTOGEN" >&5
21094 printf "%s\n" "$HAVE_AUTOGEN" >&6; }
21096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21097 printf "%s\n" "no" >&6; }
21101 # Extract the first word of "wine", so it can be a program name with args.
21102 set dummy wine; ac_word=$2
21103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21104 printf %s "checking for $ac_word... " >&6; }
21105 if test ${ac_cv_prog_HAVE_WINE+y}
21107 printf %s "(cached) " >&6
21109 if test -n "$HAVE_WINE"; then
21110 ac_cv_prog_HAVE_WINE="$HAVE_WINE" # Let the user override the test.
21112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21113 for as_dir in $PATH
21116 case $as_dir in #(((
21119 *) as_dir=$as_dir/ ;;
21121 for ac_exec_ext in '' $ac_executable_extensions; do
21122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21123 ac_cv_prog_HAVE_WINE="yes"
21124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21131 test -z "$ac_cv_prog_HAVE_WINE" && ac_cv_prog_HAVE_WINE="no"
21134 HAVE_WINE=$ac_cv_prog_HAVE_WINE
21135 if test -n "$HAVE_WINE"; then
21136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_WINE" >&5
21137 printf "%s\n" "$HAVE_WINE" >&6; }
21139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21140 printf "%s\n" "no" >&6; }
21144 # Extract the first word of "xcode-select", so it can be a program name with args.
21145 set dummy xcode-select; ac_word=$2
21146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21147 printf %s "checking for $ac_word... " >&6; }
21148 if test ${ac_cv_prog_HAVE_XCODE_SELECT+y}
21150 printf %s "(cached) " >&6
21152 if test -n "$HAVE_XCODE_SELECT"; then
21153 ac_cv_prog_HAVE_XCODE_SELECT="$HAVE_XCODE_SELECT" # Let the user override the test.
21155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21156 for as_dir in $PATH
21159 case $as_dir in #(((
21162 *) as_dir=$as_dir/ ;;
21164 for ac_exec_ext in '' $ac_executable_extensions; do
21165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21166 ac_cv_prog_HAVE_XCODE_SELECT="yes"
21167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21174 test -z "$ac_cv_prog_HAVE_XCODE_SELECT" && ac_cv_prog_HAVE_XCODE_SELECT="no"
21177 HAVE_XCODE_SELECT=$ac_cv_prog_HAVE_XCODE_SELECT
21178 if test -n "$HAVE_XCODE_SELECT"; then
21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_XCODE_SELECT" >&5
21180 printf "%s\n" "$HAVE_XCODE_SELECT" >&6; }
21182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21183 printf "%s\n" "no" >&6; }
21200 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
21201 if test "x$ac_cv_header_endian_h" = xyes
21203 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
21207 ac_fn_c_check_header_compile "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default"
21208 if test "x$ac_cv_header_byteswap_h" = xyes
21210 printf "%s\n" "#define HAVE_BYTESWAP_H 1" >>confdefs.h
21214 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
21215 if test "x$ac_cv_header_locale_h" = xyes
21217 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
21221 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
21222 if test "x$ac_cv_header_sys_time_h" = xyes
21224 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
21228 ac_fn_c_check_header_compile "$LINENO" "immintrin.h" "ac_cv_header_immintrin_h" "$ac_includes_default"
21229 if test "x$ac_cv_header_immintrin_h" = xyes
21231 printf "%s\n" "#define HAVE_IMMINTRIN_H 1" >>confdefs.h
21235 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "$ac_includes_default"
21236 if test "x$ac_cv_header_stdbool_h" = xyes
21238 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
21243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
21244 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
21245 if test ${ac_cv_header_sys_wait_h+y}
21247 printf %s "(cached) " >&6
21249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21250 /* end confdefs.h. */
21251 #include <sys/types.h>
21252 #include <sys/wait.h>
21253 #ifndef WEXITSTATUS
21254 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21257 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21265 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21270 if ac_fn_c_try_compile "$LINENO"
21272 ac_cv_header_sys_wait_h=yes
21274 ac_cv_header_sys_wait_h=no
21276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
21279 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
21280 if test $ac_cv_header_sys_wait_h = yes; then
21282 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
21287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
21288 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
21289 if test ${ac_cv_c_undeclared_builtin_options+y}
21291 printf %s "(cached) " >&6
21293 ac_save_CFLAGS=$CFLAGS
21294 ac_cv_c_undeclared_builtin_options='cannot detect'
21295 for ac_arg in '' -fno-builtin; do
21296 CFLAGS="$ac_save_CFLAGS $ac_arg"
21297 # This test program should *not* compile successfully.
21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21309 if ac_fn_c_try_compile "$LINENO"
21313 # This test program should compile successfully.
21314 # No library function is consistently available on
21315 # freestanding implementations, so test against a dummy
21316 # declaration. Include always-available headers on the
21317 # off chance that they somehow elicit warnings.
21318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21319 /* end confdefs.h. */
21321 #include <limits.h>
21322 #include <stdarg.h>
21323 #include <stddef.h>
21324 extern void ac_decl (int, char *);
21329 (void) ac_decl (0, (char *) 0);
21336 if ac_fn_c_try_compile "$LINENO"
21338 if test x"$ac_arg" = x
21340 ac_cv_c_undeclared_builtin_options='none needed'
21342 ac_cv_c_undeclared_builtin_options=$ac_arg
21346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21350 CFLAGS=$ac_save_CFLAGS
21353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
21354 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
21355 case $ac_cv_c_undeclared_builtin_options in #(
21357 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21358 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21359 as_fn_error $? "cannot make $CC report undeclared builtins
21360 See \`config.log' for more details" "$LINENO" 5; } ;; #(
21362 ac_c_undeclared_builtin_options='' ;; #(
21364 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
21367 ac_fn_check_decl "$LINENO" "S_IRGRP" "ac_cv_have_decl_S_IRGRP" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
21368 if test "x$ac_cv_have_decl_S_IRGRP" = xyes
21374 printf "%s\n" "#define HAVE_DECL_S_IRGRP $ac_have_decl" >>confdefs.h
21376 if test "x$ac_cv_have_decl_S_IRGRP" = "xyes"
21380 printf "%s\n" "#define HAVE_DECL_S_IRGRP 1" >>confdefs.h
21386 printf "%s\n" "#define HAVE_DECL_S_IRGRP 0" >>confdefs.h
21391 if test "x${build_os}:${host_os}:${HAVE_WINE}" = "xlinux-gnu:mingw32msvc:yes"; then
21392 LINUX_MINGW_CROSS_TEST_TRUE=
21393 LINUX_MINGW_CROSS_TEST_FALSE='#'
21395 LINUX_MINGW_CROSS_TEST_TRUE='#'
21396 LINUX_MINGW_CROSS_TEST_FALSE=
21401 SHLIB_VERSION_ARG=""
21404 # Check whether --enable-experimental was given.
21405 if test ${enable_experimental+y}
21407 enableval=$enable_experimental;
21411 if test "x$enable_experimental" = "xyes"
21414 EXPERIMENTAL_CODE=1
21418 EXPERIMENTAL_CODE=0
21422 printf "%s\n" "#define ENABLE_EXPERIMENTAL_CODE ${EXPERIMENTAL_CODE}" >>confdefs.h
21425 # Check whether --enable-werror was given.
21426 if test ${enable_werror+y}
21428 enableval=$enable_werror;
21432 # Check whether --enable-cpu-clip was given.
21433 if test ${enable_cpu_clip+y}
21435 enableval=$enable_cpu_clip;
21439 # Check whether --enable-bow-docs was given.
21440 if test ${enable_bow_docs+y}
21442 enableval=$enable_bow_docs;
21446 # Check whether --enable-sqlite was given.
21447 if test ${enable_sqlite+y}
21449 enableval=$enable_sqlite;
21453 # Check whether --enable-alsa was given.
21454 if test ${enable_alsa+y}
21456 enableval=$enable_alsa;
21462 # Check whether --enable-external-libs was given.
21463 if test ${enable_external_libs+y}
21465 enableval=$enable_external_libs;
21469 # Check whether --enable-mpeg was given.
21470 if test ${enable_mpeg+y}
21472 enableval=$enable_mpeg;
21476 # Check whether --enable-octave was given.
21477 if test ${enable_octave+y}
21479 enableval=$enable_octave;
21483 # Check whether --enable-full-suite was given.
21484 if test ${enable_full_suite+y}
21486 enableval=$enable_full_suite;
21489 if test "x$enable_full_suite" != "xno"; then
21491 FULL_SUITE_FALSE='#'
21493 FULL_SUITE_TRUE='#'
21498 # Check whether --enable-test-coverage was given.
21499 if test ${enable_test_coverage+y}
21501 enableval=$enable_test_coverage;
21504 if test "x$enable_test_coverage" = "xyes"; then
21505 ENABLE_TEST_COVERAGE_TRUE=
21506 ENABLE_TEST_COVERAGE_FALSE='#'
21508 ENABLE_TEST_COVERAGE_TRUE='#'
21509 ENABLE_TEST_COVERAGE_FALSE=
21513 # Check whether --enable-ossfuzzers was given.
21514 if test ${enable_ossfuzzers+y}
21516 enableval=$enable_ossfuzzers;
21519 if test "x$enable_ossfuzzers" = "xyes"; then
21520 USE_OSSFUZZERS_TRUE=
21521 USE_OSSFUZZERS_FALSE='#'
21523 USE_OSSFUZZERS_TRUE='#'
21524 USE_OSSFUZZERS_FALSE=
21529 if test "x$LIB_FUZZING_ENGINE" = "x-fsanitize=fuzzer"; then
21530 USE_OSSFUZZ_FLAG_TRUE=
21531 USE_OSSFUZZ_FLAG_FALSE='#'
21533 USE_OSSFUZZ_FLAG_TRUE='#'
21534 USE_OSSFUZZ_FLAG_FALSE=
21537 if test -f "$LIB_FUZZING_ENGINE"; then
21538 USE_OSSFUZZ_STATIC_TRUE=
21539 USE_OSSFUZZ_STATIC_FALSE='#'
21541 USE_OSSFUZZ_STATIC_TRUE='#'
21542 USE_OSSFUZZ_STATIC_FALSE=
21547 # The cast to long int works around a bug in the HP C Compiler
21548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21550 # This bug is HP SR number 8606223364.
21551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
21552 printf %s "checking size of wchar_t... " >&6; }
21553 if test ${ac_cv_sizeof_wchar_t+y}
21555 printf %s "(cached) " >&6
21557 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"
21561 if test "$ac_cv_type_wchar_t" = yes; then
21562 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21563 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21564 as_fn_error 77 "cannot compute sizeof (wchar_t)
21565 See \`config.log' for more details" "$LINENO" 5; }
21567 ac_cv_sizeof_wchar_t=0
21572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
21573 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
21577 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
21580 # The cast to long int works around a bug in the HP C Compiler
21581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21583 # This bug is HP SR number 8606223364.
21584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21585 printf %s "checking size of short... " >&6; }
21586 if test ${ac_cv_sizeof_short+y}
21588 printf %s "(cached) " >&6
21590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
21594 if test "$ac_cv_type_short" = yes; then
21595 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21596 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21597 as_fn_error 77 "cannot compute sizeof (short)
21598 See \`config.log' for more details" "$LINENO" 5; }
21600 ac_cv_sizeof_short=0
21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21606 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
21610 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
21613 # The cast to long int works around a bug in the HP C Compiler
21614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21616 # This bug is HP SR number 8606223364.
21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21618 printf %s "checking size of int... " >&6; }
21619 if test ${ac_cv_sizeof_int+y}
21621 printf %s "(cached) " >&6
21623 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
21627 if test "$ac_cv_type_int" = yes; then
21628 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21629 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21630 as_fn_error 77 "cannot compute sizeof (int)
21631 See \`config.log' for more details" "$LINENO" 5; }
21638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21639 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
21643 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
21646 # The cast to long int works around a bug in the HP C Compiler
21647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21649 # This bug is HP SR number 8606223364.
21650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21651 printf %s "checking size of long... " >&6; }
21652 if test ${ac_cv_sizeof_long+y}
21654 printf %s "(cached) " >&6
21656 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
21660 if test "$ac_cv_type_long" = yes; then
21661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21662 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21663 as_fn_error 77 "cannot compute sizeof (long)
21664 See \`config.log' for more details" "$LINENO" 5; }
21666 ac_cv_sizeof_long=0
21671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21672 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
21676 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
21679 # The cast to long int works around a bug in the HP C Compiler
21680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21682 # This bug is HP SR number 8606223364.
21683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
21684 printf %s "checking size of float... " >&6; }
21685 if test ${ac_cv_sizeof_float+y}
21687 printf %s "(cached) " >&6
21689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
21693 if test "$ac_cv_type_float" = yes; then
21694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21696 as_fn_error 77 "cannot compute sizeof (float)
21697 See \`config.log' for more details" "$LINENO" 5; }
21699 ac_cv_sizeof_float=0
21704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
21705 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
21709 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
21712 # The cast to long int works around a bug in the HP C Compiler
21713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21715 # This bug is HP SR number 8606223364.
21716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
21717 printf %s "checking size of double... " >&6; }
21718 if test ${ac_cv_sizeof_double+y}
21720 printf %s "(cached) " >&6
21722 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
21726 if test "$ac_cv_type_double" = yes; then
21727 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21728 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21729 as_fn_error 77 "cannot compute sizeof (double)
21730 See \`config.log' for more details" "$LINENO" 5; }
21732 ac_cv_sizeof_double=0
21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
21738 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
21742 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
21745 # The cast to long int works around a bug in the HP C Compiler
21746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21748 # This bug is HP SR number 8606223364.
21749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
21750 printf %s "checking size of void*... " >&6; }
21751 if test ${ac_cv_sizeof_voidp+y}
21753 printf %s "(cached) " >&6
21755 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"
21759 if test "$ac_cv_type_voidp" = yes; then
21760 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21761 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21762 as_fn_error 77 "cannot compute sizeof (void*)
21763 See \`config.log' for more details" "$LINENO" 5; }
21765 ac_cv_sizeof_voidp=0
21770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
21771 printf "%s\n" "$ac_cv_sizeof_voidp" >&6; }
21775 printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h
21778 # The cast to long int works around a bug in the HP C Compiler
21779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21781 # This bug is HP SR number 8606223364.
21782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21783 printf %s "checking size of size_t... " >&6; }
21784 if test ${ac_cv_sizeof_size_t+y}
21786 printf %s "(cached) " >&6
21788 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
21792 if test "$ac_cv_type_size_t" = yes; then
21793 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21794 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21795 as_fn_error 77 "cannot compute sizeof (size_t)
21796 See \`config.log' for more details" "$LINENO" 5; }
21798 ac_cv_sizeof_size_t=0
21803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21804 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
21808 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
21811 # The cast to long int works around a bug in the HP C Compiler
21812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21814 # This bug is HP SR number 8606223364.
21815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
21816 printf %s "checking size of int64_t... " >&6; }
21817 if test ${ac_cv_sizeof_int64_t+y}
21819 printf %s "(cached) " >&6
21821 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"
21825 if test "$ac_cv_type_int64_t" = yes; then
21826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21828 as_fn_error 77 "cannot compute sizeof (int64_t)
21829 See \`config.log' for more details" "$LINENO" 5; }
21831 ac_cv_sizeof_int64_t=0
21836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
21837 printf "%s\n" "$ac_cv_sizeof_int64_t" >&6; }
21841 printf "%s\n" "#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t" >>confdefs.h
21844 # The cast to long int works around a bug in the HP C Compiler
21845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21847 # This bug is HP SR number 8606223364.
21848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21849 printf %s "checking size of long long... " >&6; }
21850 if test ${ac_cv_sizeof_long_long+y}
21852 printf %s "(cached) " >&6
21854 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
21858 if test "$ac_cv_type_long_long" = yes; then
21859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21860 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21861 as_fn_error 77 "cannot compute sizeof (long long)
21862 See \`config.log' for more details" "$LINENO" 5; }
21864 ac_cv_sizeof_long_long=0
21869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21870 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
21874 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
21878 # The cast to long int works around a bug in the HP C Compiler
21879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21881 # This bug is HP SR number 8606223364.
21882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21883 printf %s "checking size of off_t... " >&6; }
21884 if test ${ac_cv_sizeof_off_t+y}
21886 printf %s "(cached) " >&6
21888 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
21892 if test "$ac_cv_type_off_t" = yes; then
21893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21894 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21895 as_fn_error 77 "cannot compute sizeof (off_t)
21896 See \`config.log' for more details" "$LINENO" 5; }
21898 ac_cv_sizeof_off_t=0
21903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21904 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
21908 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
21912 if test "x$enable_largefile:$ac_cv_sizeof_off_t" = "xno:8"
21915 as_fn_error $? "\"Error : Cannot disable large file support because sizeof (off_t) == 8.\"" "$LINENO" 5
21919 case $host_os in #(
21923 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
21928 if test "x$ac_cv_sizeof_off_t" = "x8"
21934 pre_largefile_sizeof_off_t=$ac_cv_sizeof_off_t
21935 unset ac_cv_sizeof_off_t
21937 # Check whether --enable-largefile was given.
21938 if test ${enable_largefile+y}
21940 enableval=$enable_largefile;
21943 if test "$enable_largefile" != no; then
21945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
21946 printf %s "checking for special C compiler options needed for large files... " >&6; }
21947 if test ${ac_cv_sys_largefile_CC+y}
21949 printf %s "(cached) " >&6
21951 ac_cv_sys_largefile_CC=no
21952 if test "$GCC" != yes; then
21955 # IRIX 6.2 and later do not support large files by default,
21956 # so use the C compiler's -n32 option if that helps.
21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959 #include <sys/types.h>
21960 /* Check that off_t can represent 2**63 - 1 correctly.
21961 We can't simply define LARGE_OFF_T to be 9223372036854775807,
21962 since some C++ compilers masquerading as C compilers
21963 incorrectly reject 9223372036854775807. */
21964 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
21965 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
21966 && LARGE_OFF_T % 2147483647 == 1)
21976 if ac_fn_c_try_compile "$LINENO"
21980 rm -f core conftest.err conftest.$ac_objext conftest.beam
21982 if ac_fn_c_try_compile "$LINENO"
21984 ac_cv_sys_largefile_CC=' -n32'; break
21986 rm -f core conftest.err conftest.$ac_objext conftest.beam
21990 rm -f conftest.$ac_ext
21993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
21994 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
21995 if test "$ac_cv_sys_largefile_CC" != no; then
21996 CC=$CC$ac_cv_sys_largefile_CC
21999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22000 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22001 if test ${ac_cv_sys_file_offset_bits+y}
22003 printf %s "(cached) " >&6
22006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007 /* end confdefs.h. */
22008 #include <sys/types.h>
22009 /* Check that off_t can represent 2**63 - 1 correctly.
22010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22011 since some C++ compilers masquerading as C compilers
22012 incorrectly reject 9223372036854775807. */
22013 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22015 && LARGE_OFF_T % 2147483647 == 1)
22025 if ac_fn_c_try_compile "$LINENO"
22027 ac_cv_sys_file_offset_bits=no; break
22029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22032 #define _FILE_OFFSET_BITS 64
22033 #include <sys/types.h>
22034 /* Check that off_t can represent 2**63 - 1 correctly.
22035 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22036 since some C++ compilers masquerading as C compilers
22037 incorrectly reject 9223372036854775807. */
22038 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22039 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22040 && LARGE_OFF_T % 2147483647 == 1)
22050 if ac_fn_c_try_compile "$LINENO"
22052 ac_cv_sys_file_offset_bits=64; break
22054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22055 ac_cv_sys_file_offset_bits=unknown
22059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
22060 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
22061 case $ac_cv_sys_file_offset_bits in #(
22064 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
22068 if test $ac_cv_sys_file_offset_bits = unknown; then
22069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
22070 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
22071 if test ${ac_cv_sys_large_files+y}
22073 printf %s "(cached) " >&6
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22078 #include <sys/types.h>
22079 /* Check that off_t can represent 2**63 - 1 correctly.
22080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22081 since some C++ compilers masquerading as C compilers
22082 incorrectly reject 9223372036854775807. */
22083 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22085 && LARGE_OFF_T % 2147483647 == 1)
22095 if ac_fn_c_try_compile "$LINENO"
22097 ac_cv_sys_large_files=no; break
22099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22101 /* end confdefs.h. */
22102 #define _LARGE_FILES 1
22103 #include <sys/types.h>
22104 /* Check that off_t can represent 2**63 - 1 correctly.
22105 We can't simply define LARGE_OFF_T to be 9223372036854775807,
22106 since some C++ compilers masquerading as C compilers
22107 incorrectly reject 9223372036854775807. */
22108 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
22109 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22110 && LARGE_OFF_T % 2147483647 == 1)
22120 if ac_fn_c_try_compile "$LINENO"
22122 ac_cv_sys_large_files=1; break
22124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22125 ac_cv_sys_large_files=unknown
22129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
22130 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
22131 case $ac_cv_sys_large_files in #(
22134 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
22141 if test "x$ac_cv_sys_largefile_CFLAGS" = "xno"
22144 ac_cv_sys_largefile_CFLAGS=""
22147 if test "x$ac_cv_sys_largefile_LDFLAGS" = "xno"
22150 ac_cv_sys_largefile_LDFLAGS=""
22153 if test "x$ac_cv_sys_largefile_LIBS" = "xno"
22156 ac_cv_sys_largefile_LIBS=""
22160 # The cast to long int works around a bug in the HP C Compiler
22161 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22162 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22163 # This bug is HP SR number 8606223364.
22164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22165 printf %s "checking size of off_t... " >&6; }
22166 if test ${ac_cv_sizeof_off_t+y}
22168 printf %s "(cached) " >&6
22170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
22174 if test "$ac_cv_type_off_t" = yes; then
22175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22176 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22177 as_fn_error 77 "cannot compute sizeof (off_t)
22178 See \`config.log' for more details" "$LINENO" 5; }
22180 ac_cv_sizeof_off_t=0
22185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22186 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
22190 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
22198 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22199 if test "x$ac_cv_type_ssize_t" = xyes
22204 printf "%s\n" "#define ssize_t int" >>confdefs.h
22210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22211 printf %s "checking whether byte ordering is bigendian... " >&6; }
22212 if test ${ac_cv_c_bigendian+y}
22214 printf %s "(cached) " >&6
22216 ac_cv_c_bigendian=unknown
22217 # See if we're dealing with a universal compiler.
22218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h. */
22220 #ifndef __APPLE_CC__
22221 not a universal capable compiler
22226 if ac_fn_c_try_compile "$LINENO"
22229 # Check for potential -arch flags. It is not universal unless
22230 # there are at least two -arch flags with different values.
22233 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22234 if test -n "$ac_prev"; then
22236 i?86 | x86_64 | ppc | ppc64)
22237 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22240 ac_cv_c_bigendian=universal
22246 elif test "x$ac_word" = "x-arch"; then
22251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22252 if test $ac_cv_c_bigendian = unknown; then
22253 # See if sys/param.h defines the BYTE_ORDER macro.
22254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22255 /* end confdefs.h. */
22256 #include <sys/types.h>
22257 #include <sys/param.h>
22262 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22263 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22265 bogus endian macros
22272 if ac_fn_c_try_compile "$LINENO"
22274 # It does; now see whether it defined to BIG_ENDIAN or not.
22275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22276 /* end confdefs.h. */
22277 #include <sys/types.h>
22278 #include <sys/param.h>
22283 #if BYTE_ORDER != BIG_ENDIAN
22291 if ac_fn_c_try_compile "$LINENO"
22293 ac_cv_c_bigendian=yes
22295 ac_cv_c_bigendian=no
22297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22301 if test $ac_cv_c_bigendian = unknown; then
22302 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22304 /* end confdefs.h. */
22305 #include <limits.h>
22310 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22311 bogus endian macros
22318 if ac_fn_c_try_compile "$LINENO"
22320 # It does; now see whether it defined to _BIG_ENDIAN or not.
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22323 #include <limits.h>
22328 #ifndef _BIG_ENDIAN
22336 if ac_fn_c_try_compile "$LINENO"
22338 ac_cv_c_bigendian=yes
22340 ac_cv_c_bigendian=no
22342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22346 if test $ac_cv_c_bigendian = unknown; then
22347 # Compile a test program.
22348 if test "$cross_compiling" = yes
22350 # Try to guess by grepping values from an object file.
22351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h. */
22353 unsigned short int ascii_mm[] =
22354 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22355 unsigned short int ascii_ii[] =
22356 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22357 int use_ascii (int i) {
22358 return ascii_mm[i] + ascii_ii[i];
22360 unsigned short int ebcdic_ii[] =
22361 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22362 unsigned short int ebcdic_mm[] =
22363 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22364 int use_ebcdic (int i) {
22365 return ebcdic_mm[i] + ebcdic_ii[i];
22368 main (int argc, char **argv)
22370 /* Intimidate the compiler so that it does not
22371 optimize the arrays away. */
22373 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
22374 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
22375 return use_ascii (argc) == use_ebcdic (*p);
22378 if ac_fn_c_try_link "$LINENO"
22380 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
22381 ac_cv_c_bigendian=yes
22383 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
22384 if test "$ac_cv_c_bigendian" = unknown; then
22385 ac_cv_c_bigendian=no
22387 # finding both strings is unlikely to happen, but who knows?
22388 ac_cv_c_bigendian=unknown
22392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22393 conftest$ac_exeext conftest.$ac_ext
22395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22396 /* end confdefs.h. */
22397 $ac_includes_default
22402 /* Are we little or big endian? From Harbison&Steele. */
22406 char c[sizeof (long int)];
22409 return u.c[sizeof (long int) - 1] == 1;
22415 if ac_fn_c_try_run "$LINENO"
22417 ac_cv_c_bigendian=no
22419 ac_cv_c_bigendian=yes
22421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22422 conftest.$ac_objext conftest.beam conftest.$ac_ext
22427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22428 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
22429 case $ac_cv_c_bigendian in #(
22432 ac_cv_c_big_endian=1
22433 ac_cv_c_little_endian=0
22437 ac_cv_c_big_endian=0
22438 ac_cv_c_little_endian=1
22442 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22446 as_fn_error $? "unknown endianness
22447 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22452 printf "%s\n" "#define CPU_IS_BIG_ENDIAN ${ac_cv_c_big_endian}" >>confdefs.h
22455 printf "%s\n" "#define CPU_IS_LITTLE_ENDIAN ${ac_cv_c_little_endian}" >>confdefs.h
22459 ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc"
22460 if test "x$ac_cv_func_malloc" = xyes
22462 printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
22465 ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
22466 if test "x$ac_cv_func_calloc" = xyes
22468 printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h
22471 ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc"
22472 if test "x$ac_cv_func_realloc" = xyes
22474 printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
22477 ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free"
22478 if test "x$ac_cv_func_free" = xyes
22480 printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h
22484 ac_fn_c_check_func "$LINENO" "open" "ac_cv_func_open"
22485 if test "x$ac_cv_func_open" = xyes
22487 printf "%s\n" "#define HAVE_OPEN 1" >>confdefs.h
22490 ac_fn_c_check_func "$LINENO" "read" "ac_cv_func_read"
22491 if test "x$ac_cv_func_read" = xyes
22493 printf "%s\n" "#define HAVE_READ 1" >>confdefs.h
22496 ac_fn_c_check_func "$LINENO" "write" "ac_cv_func_write"
22497 if test "x$ac_cv_func_write" = xyes
22499 printf "%s\n" "#define HAVE_WRITE 1" >>confdefs.h
22502 ac_fn_c_check_func "$LINENO" "lseek" "ac_cv_func_lseek"
22503 if test "x$ac_cv_func_lseek" = xyes
22505 printf "%s\n" "#define HAVE_LSEEK 1" >>confdefs.h
22508 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
22509 if test "x$ac_cv_func_lseek64" = xyes
22511 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
22515 ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat"
22516 if test "x$ac_cv_func_fstat" = xyes
22518 printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h
22521 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
22522 if test "x$ac_cv_func_fstat64" = xyes
22524 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
22527 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
22528 if test "x$ac_cv_func_ftruncate" = xyes
22530 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
22533 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
22534 if test "x$ac_cv_func_fsync" = xyes
22536 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
22540 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
22541 if test "x$ac_cv_func_snprintf" = xyes
22543 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
22546 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
22547 if test "x$ac_cv_func_vsnprintf" = xyes
22549 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
22553 ac_fn_c_check_func "$LINENO" "gmtime" "ac_cv_func_gmtime"
22554 if test "x$ac_cv_func_gmtime" = xyes
22556 printf "%s\n" "#define HAVE_GMTIME 1" >>confdefs.h
22559 ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
22560 if test "x$ac_cv_func_gmtime_r" = xyes
22562 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
22565 ac_fn_c_check_func "$LINENO" "localtime" "ac_cv_func_localtime"
22566 if test "x$ac_cv_func_localtime" = xyes
22568 printf "%s\n" "#define HAVE_LOCALTIME 1" >>confdefs.h
22571 ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
22572 if test "x$ac_cv_func_localtime_r" = xyes
22574 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
22577 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
22578 if test "x$ac_cv_func_gettimeofday" = xyes
22580 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
22584 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22585 if test "x$ac_cv_func_mmap" = xyes
22587 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
22590 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22591 if test "x$ac_cv_func_getpagesize" = xyes
22593 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
22597 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
22598 if test "x$ac_cv_func_setlocale" = xyes
22600 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
22604 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
22605 if test "x$ac_cv_func_pipe" = xyes
22607 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
22610 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
22611 if test "x$ac_cv_func_waitpid" = xyes
22613 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
22618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
22619 printf %s "checking for library containing floor... " >&6; }
22620 if test ${ac_cv_search_floor+y}
22622 printf %s "(cached) " >&6
22624 ac_func_search_save_LIBS=$LIBS
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22628 /* Override any GCC internal prototype to avoid an error.
22629 Use char because int might match the return type of a GCC
22630 builtin and then its argument prototype would still apply.
22631 The 'extern "C"' is for builds by C++ compilers;
22632 although this is not generally supported in C code supporting it here
22633 has little cost and some practical benefit (sr 110532). */
22648 if test -z "$ac_lib"; then
22649 ac_res="none required"
22652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22654 if ac_fn_c_try_link "$LINENO"
22656 ac_cv_search_floor=$ac_res
22658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22660 if test ${ac_cv_search_floor+y}
22665 if test ${ac_cv_search_floor+y}
22669 ac_cv_search_floor=no
22671 rm conftest.$ac_ext
22672 LIBS=$ac_func_search_save_LIBS
22674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
22675 printf "%s\n" "$ac_cv_search_floor" >&6; }
22676 ac_res=$ac_cv_search_floor
22677 if test "$ac_res" != no
22679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22683 as_fn_error $? "unable to find the floor() function!" "$LINENO" 5
22687 ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
22688 if test "x$ac_cv_func_floor" = xyes
22690 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
22693 ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil"
22694 if test "x$ac_cv_func_ceil" = xyes
22696 printf "%s\n" "#define HAVE_CEIL 1" >>confdefs.h
22699 ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
22700 if test "x$ac_cv_func_fmod" = xyes
22702 printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
22705 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
22706 if test "x$ac_cv_func_lrint" = xyes
22708 printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h
22711 ac_fn_c_check_func "$LINENO" "lrintf" "ac_cv_func_lrintf"
22712 if test "x$ac_cv_func_lrintf" = xyes
22714 printf "%s\n" "#define HAVE_LRINTF 1" >>confdefs.h
22720 if test "x$cross_compiling" = "xno"
22723 if test "x$enable_octave" = "xno"
22727 BUILD_OCTAVE_MOD_TRUE=
22728 BUILD_OCTAVE_MOD_FALSE='#'
22730 BUILD_OCTAVE_MOD_TRUE='#'
22731 BUILD_OCTAVE_MOD_FALSE=
22744 # Check whether --with-octave was given.
22745 if test ${with_octave+y}
22747 withval=$with_octave; with_octave=$withval
22751 test -z "$with_octave" && with_octave=octave
22753 # Extract the first word of "$with_octave", so it can be a program name with args.
22754 set dummy $with_octave; ac_word=$2
22755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22756 printf %s "checking for $ac_word... " >&6; }
22757 if test ${ac_cv_prog_HAVE_OCTAVE+y}
22759 printf %s "(cached) " >&6
22761 if test -n "$HAVE_OCTAVE"; then
22762 ac_cv_prog_HAVE_OCTAVE="$HAVE_OCTAVE" # Let the user override the test.
22764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22765 for as_dir in $PATH
22768 case $as_dir in #(((
22771 *) as_dir=$as_dir/ ;;
22773 for ac_exec_ext in '' $ac_executable_extensions; do
22774 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22775 ac_cv_prog_HAVE_OCTAVE="yes"
22776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22783 test -z "$ac_cv_prog_HAVE_OCTAVE" && ac_cv_prog_HAVE_OCTAVE="no"
22786 HAVE_OCTAVE=$ac_cv_prog_HAVE_OCTAVE
22787 if test -n "$HAVE_OCTAVE"; then
22788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE" >&5
22789 printf "%s\n" "$HAVE_OCTAVE" >&6; }
22791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22792 printf "%s\n" "no" >&6; }
22797 if test "x$ac_cv_prog_HAVE_OCTAVE" = "xyes" ; then
22798 OCTAVE=$with_octave
22800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OCTAVE_VERSION in $OCTAVE" >&5
22801 printf %s "checking for OCTAVE_VERSION in $OCTAVE... " >&6; }
22802 OCTAVE_VERSION=`TERM=;$OCTAVE -qfH --eval "disp(OCTAVE_VERSION)"`
22803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_VERSION" >&5
22804 printf "%s\n" "$OCTAVE_VERSION" >&6; }
22817 # Check whether --with-mkoctfile was given.
22818 if test ${with_mkoctfile+y}
22820 withval=$with_mkoctfile; with_mkoctfile=$withval
22824 test -z "$with_mkoctfile" && with_mkoctfile=mkoctfile
22826 # Extract the first word of "$with_mkoctfile", so it can be a program name with args.
22827 set dummy $with_mkoctfile; ac_word=$2
22828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22829 printf %s "checking for $ac_word... " >&6; }
22830 if test ${ac_cv_prog_HAVE_MKOCTFILE+y}
22832 printf %s "(cached) " >&6
22834 if test -n "$HAVE_MKOCTFILE"; then
22835 ac_cv_prog_HAVE_MKOCTFILE="$HAVE_MKOCTFILE" # Let the user override the test.
22837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22838 for as_dir in $PATH
22841 case $as_dir in #(((
22844 *) as_dir=$as_dir/ ;;
22846 for ac_exec_ext in '' $ac_executable_extensions; do
22847 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22848 ac_cv_prog_HAVE_MKOCTFILE="yes"
22849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22856 test -z "$ac_cv_prog_HAVE_MKOCTFILE" && ac_cv_prog_HAVE_MKOCTFILE="no"
22859 HAVE_MKOCTFILE=$ac_cv_prog_HAVE_MKOCTFILE
22860 if test -n "$HAVE_MKOCTFILE"; then
22861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_MKOCTFILE" >&5
22862 printf "%s\n" "$HAVE_MKOCTFILE" >&6; }
22864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865 printf "%s\n" "no" >&6; }
22870 if test "x$ac_cv_prog_HAVE_MKOCTFILE" = "xyes" ; then
22871 MKOCTFILE=$with_mkoctfile
22873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for version of $MKOCTFILE" >&5
22874 printf %s "checking for version of $MKOCTFILE... " >&6; }
22875 MKOCTFILE_VERSION=`$with_mkoctfile --version 2>&1 | sed 's/mkoctfile, version //g'`
22876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKOCTFILE_VERSION" >&5
22877 printf "%s\n" "$MKOCTFILE_VERSION" >&6; }
22887 # Check whether --with-octave-config was given.
22888 if test ${with_octave_config+y}
22890 withval=$with_octave_config; with_octave_config=$withval
22894 test -z "$with_octave_config" && with_octave_config=octave-config
22896 # Extract the first word of "$with_octave_config", so it can be a program name with args.
22897 set dummy $with_octave_config; ac_word=$2
22898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22899 printf %s "checking for $ac_word... " >&6; }
22900 if test ${ac_cv_prog_HAVE_OCTAVE_CONFIG+y}
22902 printf %s "(cached) " >&6
22904 if test -n "$HAVE_OCTAVE_CONFIG"; then
22905 ac_cv_prog_HAVE_OCTAVE_CONFIG="$HAVE_OCTAVE_CONFIG" # Let the user override the test.
22907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22908 for as_dir in $PATH
22911 case $as_dir in #(((
22914 *) as_dir=$as_dir/ ;;
22916 for ac_exec_ext in '' $ac_executable_extensions; do
22917 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22918 ac_cv_prog_HAVE_OCTAVE_CONFIG="yes"
22919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22926 test -z "$ac_cv_prog_HAVE_OCTAVE_CONFIG" && ac_cv_prog_HAVE_OCTAVE_CONFIG="no"
22929 HAVE_OCTAVE_CONFIG=$ac_cv_prog_HAVE_OCTAVE_CONFIG
22930 if test -n "$HAVE_OCTAVE_CONFIG"; then
22931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_OCTAVE_CONFIG" >&5
22932 printf "%s\n" "$HAVE_OCTAVE_CONFIG" >&6; }
22934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22935 printf "%s\n" "no" >&6; }
22940 if test "x$ac_cv_prog_HAVE_OCTAVE_CONFIG" = "xyes" ; then
22941 OCTAVE_CONFIG=$with_octave_config
22942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for version of $OCTAVE_CONFIG" >&5
22943 printf %s "checking for version of $OCTAVE_CONFIG... " >&6; }
22944 OCTAVE_CONFIG_VERSION=`$OCTAVE_CONFIG --version`
22945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCTAVE_CONFIG_VERSION" >&5
22946 printf "%s\n" "$OCTAVE_CONFIG_VERSION" >&6; }
22954 prog_concat="$ac_cv_prog_HAVE_OCTAVE$ac_cv_prog_HAVE_OCTAVE_CONFIG$ac_cv_prog_HAVE_MKOCTFILE"
22956 if test "x$prog_concat" = "xyesyesyes" ; then
22957 if test "x$OCTAVE_VERSION" != "x$MKOCTFILE_VERSION" ; then
22958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&5
22959 printf "%s\n" "$as_me: WARNING: ** Mismatch between versions of octave and mkoctfile. **" >&2;}
22960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
22961 printf "%s\n" "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
22962 elif test "x$OCTAVE_VERSION" != "x$OCTAVE_CONFIG_VERSION" ; then
22963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** Mismatch between versions of octave and octave-config. **" >&5
22964 printf "%s\n" "$as_me: WARNING: ** Mismatch between versions of octave and octave-config. **" >&2;}
22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ** Octave libsndfile modules will not be built. **" >&5
22966 printf "%s\n" "$as_me: WARNING: ** Octave libsndfile modules will not be built. **" >&2;}
22968 case "$MKOCTFILE_VERSION" in
22970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Octave version 2.X is not supported." >&5
22971 printf "%s\n" "$as_me: WARNING: Octave version 2.X is not supported." >&2;}
22974 OCTAVE_DEST_ODIR=`$OCTAVE_CONFIG --oct-site-dir | sed 's%^/usr%${prefix}%'`
22975 OCTAVE_DEST_MDIR=`$OCTAVE_CONFIG --m-site-dir | sed 's%^/usr%${prefix}%'`
22980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&5
22981 printf "%s\n" "$as_me: WARNING: Octave version $MKOCTFILE_VERSION is not supported." >&2;}
22985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: building octave libsndfile module... $OCTAVE_BUILD" >&5
22986 printf "%s\n" "building octave libsndfile module... $OCTAVE_BUILD" >&6; }
22994 if test "x$OCTAVE_BUILD" = xyes; then
22995 BUILD_OCTAVE_MOD_TRUE=
22996 BUILD_OCTAVE_MOD_FALSE='#'
22998 BUILD_OCTAVE_MOD_TRUE='#'
22999 BUILD_OCTAVE_MOD_FALSE=
23010 BUILD_OCTAVE_MOD_TRUE=
23011 BUILD_OCTAVE_MOD_FALSE='#'
23013 BUILD_OCTAVE_MOD_TRUE='#'
23014 BUILD_OCTAVE_MOD_FALSE=
23021 HAVE_EXTERNAL_XIPH_LIBS=0
23022 EXTERNAL_XIPH_CFLAGS=""
23023 EXTERNAL_XIPH_LIBS=""
23024 EXTERNAL_XIPH_REQUIRE=""
23033 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23034 if test -n "$ac_tool_prefix"; then
23035 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23036 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23038 printf %s "checking for $ac_word... " >&6; }
23039 if test ${ac_cv_path_PKG_CONFIG+y}
23041 printf %s "(cached) " >&6
23043 case $PKG_CONFIG in
23045 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23049 for as_dir in $PATH
23052 case $as_dir in #(((
23055 *) as_dir=$as_dir/ ;;
23057 for ac_exec_ext in '' $ac_executable_extensions; do
23058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23059 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23070 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23071 if test -n "$PKG_CONFIG"; then
23072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23073 printf "%s\n" "$PKG_CONFIG" >&6; }
23075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23076 printf "%s\n" "no" >&6; }
23081 if test -z "$ac_cv_path_PKG_CONFIG"; then
23082 ac_pt_PKG_CONFIG=$PKG_CONFIG
23083 # Extract the first word of "pkg-config", so it can be a program name with args.
23084 set dummy pkg-config; ac_word=$2
23085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23086 printf %s "checking for $ac_word... " >&6; }
23087 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
23089 printf %s "(cached) " >&6
23091 case $ac_pt_PKG_CONFIG in
23093 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23097 for as_dir in $PATH
23100 case $as_dir in #(((
23103 *) as_dir=$as_dir/ ;;
23105 for ac_exec_ext in '' $ac_executable_extensions; do
23106 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23107 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23108 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23118 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23119 if test -n "$ac_pt_PKG_CONFIG"; then
23120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23121 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23124 printf "%s\n" "no" >&6; }
23127 if test "x$ac_pt_PKG_CONFIG" = x; then
23130 case $cross_compiling:$ac_tool_warned in
23132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23133 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23134 ac_tool_warned=yes ;;
23136 PKG_CONFIG=$ac_pt_PKG_CONFIG
23139 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23143 if test -n "$PKG_CONFIG"; then
23144 _pkg_min_version=0.9.0
23145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23146 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23147 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23149 printf "%s\n" "yes" >&6; }
23151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23152 printf "%s\n" "no" >&6; }
23161 # Check whether --with-pkgconfigdir was given.
23162 if test ${with_pkgconfigdir+y}
23164 withval=$with_pkgconfigdir;
23166 with_pkgconfigdir='${libdir}/pkgconfig'
23169 pkgconfigdir=$with_pkgconfigdir
23175 if test -n "$PKG_CONFIG"
23178 if test "x$enable_external_libs" = "xno"
23181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&5
23182 printf "%s\n" "$as_me: WARNING: *** External libs (FLAC, Ogg, Vorbis) disabled. ***" >&2;}
23188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flac >= 1.3.1 " >&5
23189 printf %s "checking for flac >= 1.3.1 ... " >&6; }
23191 if test -n "$FLAC_CFLAGS"; then
23192 pkg_cv_FLAC_CFLAGS="$FLAC_CFLAGS"
23193 elif test -n "$PKG_CONFIG"; then
23194 if test -n "$PKG_CONFIG" && \
23195 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.3.1\""; } >&5
23196 ($PKG_CONFIG --exists --print-errors "flac >= 1.3.1") 2>&5
23198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23199 test $ac_status = 0; }; then
23200 pkg_cv_FLAC_CFLAGS=`$PKG_CONFIG --cflags "flac >= 1.3.1" 2>/dev/null`
23201 test "x$?" != "x0" && pkg_failed=yes
23208 if test -n "$FLAC_LIBS"; then
23209 pkg_cv_FLAC_LIBS="$FLAC_LIBS"
23210 elif test -n "$PKG_CONFIG"; then
23211 if test -n "$PKG_CONFIG" && \
23212 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flac >= 1.3.1\""; } >&5
23213 ($PKG_CONFIG --exists --print-errors "flac >= 1.3.1") 2>&5
23215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23216 test $ac_status = 0; }; then
23217 pkg_cv_FLAC_LIBS=`$PKG_CONFIG --libs "flac >= 1.3.1" 2>/dev/null`
23218 test "x$?" != "x0" && pkg_failed=yes
23226 pkg_link_saved_CFLAGS=$CFLAGS
23227 pkg_link_saved_LIBS=$LIBS
23229 eval "pkg_CFLAGS=\${pkg_cv_FLAC_CFLAGS}"
23230 eval "pkg_LIBS=\${pkg_cv_FLAC_LIBS}"
23232 CFLAGS="$CFLAGS $pkg_CFLAGS"
23233 LIBS="$LIBS $pkg_LIBS"
23235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236 /* end confdefs.h. */
23246 if ac_fn_c_try_link "$LINENO"
23252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23253 conftest$ac_exeext conftest.$ac_ext
23255 CFLAGS=$pkg_link_saved_CFLAGS
23256 LIBS=$pkg_link_saved_LIBS
23258 if test x$pkg_link = xno
23261 printf %s "link failed ... "
23268 if test $pkg_failed = yes; then
23270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23271 _pkg_short_errors_supported=yes
23273 _pkg_short_errors_supported=no
23275 if test $_pkg_short_errors_supported = yes; then
23276 FLAC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "flac >= 1.3.1"`
23278 FLAC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "flac >= 1.3.1"`
23280 # Put the nasty error message in config.log where it belongs
23281 echo "$FLAC_PKG_ERRORS" >&5
23283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23284 printf "%s\n" "no" >&6; }
23286 elif test $pkg_failed = untried; then
23289 FLAC_CFLAGS=$pkg_cv_FLAC_CFLAGS
23290 FLAC_LIBS=$pkg_cv_FLAC_LIBS
23291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23292 printf "%s\n" "yes" >&6; }
23296 FLAC_CFLAGS=`echo $FLAC_CFLAGS | $SED "s|include/FLAC|include|"`
23300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ogg >= 1.3.0 " >&5
23301 printf %s "checking for ogg >= 1.3.0 ... " >&6; }
23303 if test -n "$OGG_CFLAGS"; then
23304 pkg_cv_OGG_CFLAGS="$OGG_CFLAGS"
23305 elif test -n "$PKG_CONFIG"; then
23306 if test -n "$PKG_CONFIG" && \
23307 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3.0\""; } >&5
23308 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3.0") 2>&5
23310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23311 test $ac_status = 0; }; then
23312 pkg_cv_OGG_CFLAGS=`$PKG_CONFIG --cflags "ogg >= 1.3.0" 2>/dev/null`
23313 test "x$?" != "x0" && pkg_failed=yes
23320 if test -n "$OGG_LIBS"; then
23321 pkg_cv_OGG_LIBS="$OGG_LIBS"
23322 elif test -n "$PKG_CONFIG"; then
23323 if test -n "$PKG_CONFIG" && \
23324 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ogg >= 1.3.0\""; } >&5
23325 ($PKG_CONFIG --exists --print-errors "ogg >= 1.3.0") 2>&5
23327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23328 test $ac_status = 0; }; then
23329 pkg_cv_OGG_LIBS=`$PKG_CONFIG --libs "ogg >= 1.3.0" 2>/dev/null`
23330 test "x$?" != "x0" && pkg_failed=yes
23338 pkg_link_saved_CFLAGS=$CFLAGS
23339 pkg_link_saved_LIBS=$LIBS
23341 eval "pkg_CFLAGS=\${pkg_cv_OGG_CFLAGS}"
23342 eval "pkg_LIBS=\${pkg_cv_OGG_LIBS}"
23344 CFLAGS="$CFLAGS $pkg_CFLAGS"
23345 LIBS="$LIBS $pkg_LIBS"
23347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348 /* end confdefs.h. */
23358 if ac_fn_c_try_link "$LINENO"
23364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23365 conftest$ac_exeext conftest.$ac_ext
23367 CFLAGS=$pkg_link_saved_CFLAGS
23368 LIBS=$pkg_link_saved_LIBS
23370 if test x$pkg_link = xno
23373 printf %s "link failed ... "
23380 if test $pkg_failed = yes; then
23382 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23383 _pkg_short_errors_supported=yes
23385 _pkg_short_errors_supported=no
23387 if test $_pkg_short_errors_supported = yes; then
23388 OGG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ogg >= 1.3.0"`
23390 OGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ogg >= 1.3.0"`
23392 # Put the nasty error message in config.log where it belongs
23393 echo "$OGG_PKG_ERRORS" >&5
23395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23396 printf "%s\n" "no" >&6; }
23398 elif test $pkg_failed = untried; then
23401 OGG_CFLAGS=$pkg_cv_OGG_CFLAGS
23402 OGG_LIBS=$pkg_cv_OGG_LIBS
23403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23404 printf "%s\n" "yes" >&6; }
23408 if test "x$enable_experimental" = "xyes"
23413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for speex >= 1.2 " >&5
23414 printf %s "checking for speex >= 1.2 ... " >&6; }
23416 if test -n "$SPEEX_CFLAGS"; then
23417 pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
23418 elif test -n "$PKG_CONFIG"; then
23419 if test -n "$PKG_CONFIG" && \
23420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
23421 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
23423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; then
23425 pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.2" 2>/dev/null`
23426 test "x$?" != "x0" && pkg_failed=yes
23433 if test -n "$SPEEX_LIBS"; then
23434 pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
23435 elif test -n "$PKG_CONFIG"; then
23436 if test -n "$PKG_CONFIG" && \
23437 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speex >= 1.2\""; } >&5
23438 ($PKG_CONFIG --exists --print-errors "speex >= 1.2") 2>&5
23440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23441 test $ac_status = 0; }; then
23442 pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.2" 2>/dev/null`
23443 test "x$?" != "x0" && pkg_failed=yes
23451 pkg_link_saved_CFLAGS=$CFLAGS
23452 pkg_link_saved_LIBS=$LIBS
23454 eval "pkg_CFLAGS=\${pkg_cv_SPEEX_CFLAGS}"
23455 eval "pkg_LIBS=\${pkg_cv_SPEEX_LIBS}"
23457 CFLAGS="$CFLAGS $pkg_CFLAGS"
23458 LIBS="$LIBS $pkg_LIBS"
23460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23461 /* end confdefs.h. */
23471 if ac_fn_c_try_link "$LINENO"
23477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23478 conftest$ac_exeext conftest.$ac_ext
23480 CFLAGS=$pkg_link_saved_CFLAGS
23481 LIBS=$pkg_link_saved_LIBS
23483 if test x$pkg_link = xno
23486 printf %s "link failed ... "
23493 if test $pkg_failed = yes; then
23495 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23496 _pkg_short_errors_supported=yes
23498 _pkg_short_errors_supported=no
23500 if test $_pkg_short_errors_supported = yes; then
23501 SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.2"`
23503 SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.2"`
23505 # Put the nasty error message in config.log where it belongs
23506 echo "$SPEEX_PKG_ERRORS" >&5
23508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23509 printf "%s\n" "no" >&6; }
23511 elif test $pkg_failed = untried; then
23514 SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
23515 SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
23516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23517 printf "%s\n" "yes" >&6; }
23530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vorbis >= 1.2.3 " >&5
23531 printf %s "checking for vorbis >= 1.2.3 ... " >&6; }
23533 if test -n "$VORBIS_CFLAGS"; then
23534 pkg_cv_VORBIS_CFLAGS="$VORBIS_CFLAGS"
23535 elif test -n "$PKG_CONFIG"; then
23536 if test -n "$PKG_CONFIG" && \
23537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
23538 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
23540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23541 test $ac_status = 0; }; then
23542 pkg_cv_VORBIS_CFLAGS=`$PKG_CONFIG --cflags "vorbis >= 1.2.3" 2>/dev/null`
23543 test "x$?" != "x0" && pkg_failed=yes
23550 if test -n "$VORBIS_LIBS"; then
23551 pkg_cv_VORBIS_LIBS="$VORBIS_LIBS"
23552 elif test -n "$PKG_CONFIG"; then
23553 if test -n "$PKG_CONFIG" && \
23554 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbis >= 1.2.3\""; } >&5
23555 ($PKG_CONFIG --exists --print-errors "vorbis >= 1.2.3") 2>&5
23557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23558 test $ac_status = 0; }; then
23559 pkg_cv_VORBIS_LIBS=`$PKG_CONFIG --libs "vorbis >= 1.2.3" 2>/dev/null`
23560 test "x$?" != "x0" && pkg_failed=yes
23568 pkg_link_saved_CFLAGS=$CFLAGS
23569 pkg_link_saved_LIBS=$LIBS
23571 eval "pkg_CFLAGS=\${pkg_cv_VORBIS_CFLAGS}"
23572 eval "pkg_LIBS=\${pkg_cv_VORBIS_LIBS}"
23574 CFLAGS="$CFLAGS $pkg_CFLAGS"
23575 LIBS="$LIBS $pkg_LIBS"
23577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h. */
23588 if ac_fn_c_try_link "$LINENO"
23594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23595 conftest$ac_exeext conftest.$ac_ext
23597 CFLAGS=$pkg_link_saved_CFLAGS
23598 LIBS=$pkg_link_saved_LIBS
23600 if test x$pkg_link = xno
23603 printf %s "link failed ... "
23610 if test $pkg_failed = yes; then
23612 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23613 _pkg_short_errors_supported=yes
23615 _pkg_short_errors_supported=no
23617 if test $_pkg_short_errors_supported = yes; then
23618 VORBIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
23620 VORBIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbis >= 1.2.3"`
23622 # Put the nasty error message in config.log where it belongs
23623 echo "$VORBIS_PKG_ERRORS" >&5
23625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23626 printf "%s\n" "no" >&6; }
23628 elif test $pkg_failed = untried; then
23631 VORBIS_CFLAGS=$pkg_cv_VORBIS_CFLAGS
23632 VORBIS_LIBS=$pkg_cv_VORBIS_LIBS
23633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23634 printf "%s\n" "yes" >&6; }
23639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vorbisenc >= 1.2.3 " >&5
23640 printf %s "checking for vorbisenc >= 1.2.3 ... " >&6; }
23642 if test -n "$VORBISENC_CFLAGS"; then
23643 pkg_cv_VORBISENC_CFLAGS="$VORBISENC_CFLAGS"
23644 elif test -n "$PKG_CONFIG"; then
23645 if test -n "$PKG_CONFIG" && \
23646 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
23647 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
23649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23650 test $ac_status = 0; }; then
23651 pkg_cv_VORBISENC_CFLAGS=`$PKG_CONFIG --cflags "vorbisenc >= 1.2.3" 2>/dev/null`
23652 test "x$?" != "x0" && pkg_failed=yes
23659 if test -n "$VORBISENC_LIBS"; then
23660 pkg_cv_VORBISENC_LIBS="$VORBISENC_LIBS"
23661 elif test -n "$PKG_CONFIG"; then
23662 if test -n "$PKG_CONFIG" && \
23663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"vorbisenc >= 1.2.3\""; } >&5
23664 ($PKG_CONFIG --exists --print-errors "vorbisenc >= 1.2.3") 2>&5
23666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23667 test $ac_status = 0; }; then
23668 pkg_cv_VORBISENC_LIBS=`$PKG_CONFIG --libs "vorbisenc >= 1.2.3" 2>/dev/null`
23669 test "x$?" != "x0" && pkg_failed=yes
23677 pkg_link_saved_CFLAGS=$CFLAGS
23678 pkg_link_saved_LIBS=$LIBS
23680 eval "pkg_CFLAGS=\${pkg_cv_VORBISENC_CFLAGS}"
23681 eval "pkg_LIBS=\${pkg_cv_VORBISENC_LIBS}"
23683 CFLAGS="$CFLAGS $pkg_CFLAGS"
23684 LIBS="$LIBS $pkg_LIBS"
23686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23687 /* end confdefs.h. */
23697 if ac_fn_c_try_link "$LINENO"
23703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23704 conftest$ac_exeext conftest.$ac_ext
23706 CFLAGS=$pkg_link_saved_CFLAGS
23707 LIBS=$pkg_link_saved_LIBS
23709 if test x$pkg_link = xno
23712 printf %s "link failed ... "
23719 if test $pkg_failed = yes; then
23721 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23722 _pkg_short_errors_supported=yes
23724 _pkg_short_errors_supported=no
23726 if test $_pkg_short_errors_supported = yes; then
23727 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
23729 VORBISENC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "vorbisenc >= 1.2.3"`
23731 # Put the nasty error message in config.log where it belongs
23732 echo "$VORBISENC_PKG_ERRORS" >&5
23734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23735 printf "%s\n" "no" >&6; }
23737 elif test $pkg_failed = untried; then
23740 VORBISENC_CFLAGS=$pkg_cv_VORBISENC_CFLAGS
23741 VORBISENC_LIBS=$pkg_cv_VORBISENC_LIBS
23742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23743 printf "%s\n" "yes" >&6; }
23744 ac_cv_vorbisenc=yes
23749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for opus >= 1.1 " >&5
23750 printf %s "checking for opus >= 1.1 ... " >&6; }
23752 if test -n "$OPUS_CFLAGS"; then
23753 pkg_cv_OPUS_CFLAGS="$OPUS_CFLAGS"
23754 elif test -n "$PKG_CONFIG"; then
23755 if test -n "$PKG_CONFIG" && \
23756 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 1.1\""; } >&5
23757 ($PKG_CONFIG --exists --print-errors "opus >= 1.1") 2>&5
23759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23760 test $ac_status = 0; }; then
23761 pkg_cv_OPUS_CFLAGS=`$PKG_CONFIG --cflags "opus >= 1.1" 2>/dev/null`
23762 test "x$?" != "x0" && pkg_failed=yes
23769 if test -n "$OPUS_LIBS"; then
23770 pkg_cv_OPUS_LIBS="$OPUS_LIBS"
23771 elif test -n "$PKG_CONFIG"; then
23772 if test -n "$PKG_CONFIG" && \
23773 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"opus >= 1.1\""; } >&5
23774 ($PKG_CONFIG --exists --print-errors "opus >= 1.1") 2>&5
23776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23777 test $ac_status = 0; }; then
23778 pkg_cv_OPUS_LIBS=`$PKG_CONFIG --libs "opus >= 1.1" 2>/dev/null`
23779 test "x$?" != "x0" && pkg_failed=yes
23787 pkg_link_saved_CFLAGS=$CFLAGS
23788 pkg_link_saved_LIBS=$LIBS
23790 eval "pkg_CFLAGS=\${pkg_cv_OPUS_CFLAGS}"
23791 eval "pkg_LIBS=\${pkg_cv_OPUS_LIBS}"
23793 CFLAGS="$CFLAGS $pkg_CFLAGS"
23794 LIBS="$LIBS $pkg_LIBS"
23796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23797 /* end confdefs.h. */
23807 if ac_fn_c_try_link "$LINENO"
23813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23814 conftest$ac_exeext conftest.$ac_ext
23816 CFLAGS=$pkg_link_saved_CFLAGS
23817 LIBS=$pkg_link_saved_LIBS
23819 if test x$pkg_link = xno
23822 printf %s "link failed ... "
23829 if test $pkg_failed = yes; then
23831 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23832 _pkg_short_errors_supported=yes
23834 _pkg_short_errors_supported=no
23836 if test $_pkg_short_errors_supported = yes; then
23837 OPUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "opus >= 1.1"`
23839 OPUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "opus >= 1.1"`
23841 # Put the nasty error message in config.log where it belongs
23842 echo "$OPUS_PKG_ERRORS" >&5
23844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23845 printf "%s\n" "no" >&6; }
23847 elif test $pkg_failed = untried; then
23850 OPUS_CFLAGS=$pkg_cv_OPUS_CFLAGS
23851 OPUS_LIBS=$pkg_cv_OPUS_LIBS
23852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23853 printf "%s\n" "yes" >&6; }
23856 enable_external_libs=yes
23860 if test "x$ac_cv_flac$ac_cv_ogg$ac_cv_vorbis$ac_cv_vorbisenc$ac_cv_opus" = "xyesyesyesyesyes"
23863 HAVE_EXTERNAL_XIPH_LIBS=1
23864 enable_external_libs=yes
23866 EXTERNAL_XIPH_CFLAGS="$FLAC_CFLAGS $VORBIS_CFLAGS $VORBISENC_CFLAGS $SPEEX_CFLAGS $OPUS_CFLAGS $OGG_CFLAGS "
23867 EXTERNAL_XIPH_LIBS="$FLAC_LIBS $VORBIS_LIBS $VORBISENC_LIBS $SPEEX_LIBS $OPUS_LIBS $OGG_LIBS "
23868 EXTERNAL_XIPH_REQUIRE="flac ogg vorbis vorbisenc opus"
23870 if test x$ac_cv_speex = "xyes" ; then
23871 EXTERNAL_XIPH_REQUIRE="$EXTERNAL_XIPH_REQUIRE speex"
23877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** One or more of the external libraries (ie libflac, libogg," >&5
23878 printf "%s\n" "$as_me: WARNING: *** One or more of the external libraries (ie libflac, libogg," >&2;}
23879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** libvorbis and libopus) is either missing (possibly only the development" >&5
23880 printf "%s\n" "$as_me: WARNING: *** libvorbis and libopus) is either missing (possibly only the development" >&2;}
23881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** headers) or is of an unsupported version." >&5
23882 printf "%s\n" "$as_me: WARNING: *** headers) or is of an unsupported version." >&2;}
23883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ***" >&5
23884 printf "%s\n" "$as_me: WARNING: ***" >&2;}
23885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&5
23886 printf "%s\n" "$as_me: WARNING: *** Unfortunately, for ease of maintenance, the external libs" >&2;}
23887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** are an all or nothing affair." >&5
23888 printf "%s\n" "$as_me: WARNING: *** are an all or nothing affair." >&2;}
23890 enable_external_libs=no
23897 printf "%s\n" "#define HAVE_EXTERNAL_XIPH_LIBS $HAVE_EXTERNAL_XIPH_LIBS" >>confdefs.h
23904 EXTERNAL_MPEG_REQUIRE=""
23905 EXTERNAL_MPEG_LIBS=""
23907 if test -n "$PKG_CONFIG"
23910 if test "x$enable_mpeg" = "xno"
23913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** MPEG (Lame/MPG123) disabled. ***" >&5
23914 printf "%s\n" "$as_me: WARNING: *** MPEG (Lame/MPG123) disabled. ***" >&2;}
23918 ac_fn_c_check_header_compile "$LINENO" "lame/lame.h" "ac_cv_header_lame_lame_h" "$ac_includes_default"
23919 if test "x$ac_cv_header_lame_lame_h" = xyes
23921 lame_header_found="yes"
23923 lame_header_found="no"
23926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lame_set_VBR_q" >&5
23927 printf %s "checking for library containing lame_set_VBR_q... " >&6; }
23928 if test ${ac_cv_search_lame_set_VBR_q+y}
23930 printf %s "(cached) " >&6
23932 ac_func_search_save_LIBS=$LIBS
23933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23934 /* end confdefs.h. */
23936 /* Override any GCC internal prototype to avoid an error.
23937 Use char because int might match the return type of a GCC
23938 builtin and then its argument prototype would still apply.
23939 The 'extern "C"' is for builds by C++ compilers;
23940 although this is not generally supported in C code supporting it here
23941 has little cost and some practical benefit (sr 110532). */
23945 char lame_set_VBR_q (void);
23949 return lame_set_VBR_q ();
23954 for ac_lib in '' lame mp3lame
23956 if test -z "$ac_lib"; then
23957 ac_res="none required"
23960 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23962 if ac_fn_c_try_link "$LINENO"
23964 ac_cv_search_lame_set_VBR_q=$ac_res
23966 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23968 if test ${ac_cv_search_lame_set_VBR_q+y}
23973 if test ${ac_cv_search_lame_set_VBR_q+y}
23977 ac_cv_search_lame_set_VBR_q=no
23979 rm conftest.$ac_ext
23980 LIBS=$ac_func_search_save_LIBS
23982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lame_set_VBR_q" >&5
23983 printf "%s\n" "$ac_cv_search_lame_set_VBR_q" >&6; }
23984 ac_res=$ac_cv_search_lame_set_VBR_q
23985 if test "$ac_res" != no
23987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23988 lame_lib_found="yes"
23990 lame_lib_found="no"
23993 if test "x$lame_lib_found$lame_header_found" = "xyesyes"
24000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"MPEG support selected but external Lame library cannot be found." >&5
24001 printf "%s\n" "$as_me: WARNING: \"MPEG support selected but external Lame library cannot be found." >&2;}
24007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpg123 >= 1.25.10 " >&5
24008 printf %s "checking for libmpg123 >= 1.25.10 ... " >&6; }
24010 if test -n "$MPG123_CFLAGS"; then
24011 pkg_cv_MPG123_CFLAGS="$MPG123_CFLAGS"
24012 elif test -n "$PKG_CONFIG"; then
24013 if test -n "$PKG_CONFIG" && \
24014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.25.10\""; } >&5
24015 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.25.10") 2>&5
24017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24018 test $ac_status = 0; }; then
24019 pkg_cv_MPG123_CFLAGS=`$PKG_CONFIG --cflags "libmpg123 >= 1.25.10" 2>/dev/null`
24020 test "x$?" != "x0" && pkg_failed=yes
24027 if test -n "$MPG123_LIBS"; then
24028 pkg_cv_MPG123_LIBS="$MPG123_LIBS"
24029 elif test -n "$PKG_CONFIG"; then
24030 if test -n "$PKG_CONFIG" && \
24031 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpg123 >= 1.25.10\""; } >&5
24032 ($PKG_CONFIG --exists --print-errors "libmpg123 >= 1.25.10") 2>&5
24034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24035 test $ac_status = 0; }; then
24036 pkg_cv_MPG123_LIBS=`$PKG_CONFIG --libs "libmpg123 >= 1.25.10" 2>/dev/null`
24037 test "x$?" != "x0" && pkg_failed=yes
24045 pkg_link_saved_CFLAGS=$CFLAGS
24046 pkg_link_saved_LIBS=$LIBS
24048 eval "pkg_CFLAGS=\${pkg_cv_MPG123_CFLAGS}"
24049 eval "pkg_LIBS=\${pkg_cv_MPG123_LIBS}"
24051 CFLAGS="$CFLAGS $pkg_CFLAGS"
24052 LIBS="$LIBS $pkg_LIBS"
24054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24055 /* end confdefs.h. */
24065 if ac_fn_c_try_link "$LINENO"
24071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24072 conftest$ac_exeext conftest.$ac_ext
24074 CFLAGS=$pkg_link_saved_CFLAGS
24075 LIBS=$pkg_link_saved_LIBS
24077 if test x$pkg_link = xno
24080 printf %s "link failed ... "
24087 if test $pkg_failed = yes; then
24089 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24090 _pkg_short_errors_supported=yes
24092 _pkg_short_errors_supported=no
24094 if test $_pkg_short_errors_supported = yes; then
24095 MPG123_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libmpg123 >= 1.25.10"`
24097 MPG123_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libmpg123 >= 1.25.10"`
24099 # Put the nasty error message in config.log where it belongs
24100 echo "$MPG123_PKG_ERRORS" >&5
24102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24103 printf "%s\n" "no" >&6; }
24105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"MPEG support selected but external MPG123 library cannot be found." >&5
24106 printf "%s\n" "$as_me: WARNING: \"MPEG support selected but external MPG123 library cannot be found." >&2;}
24108 elif test $pkg_failed = untried; then
24110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"MPEG support selected but external MPG123 library cannot be found." >&5
24111 printf "%s\n" "$as_me: WARNING: \"MPEG support selected but external MPG123 library cannot be found." >&2;}
24114 MPG123_CFLAGS=$pkg_cv_MPG123_CFLAGS
24115 MPG123_LIBS=$pkg_cv_MPG123_LIBS
24116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24117 printf "%s\n" "yes" >&6; }
24123 if test "x$ac_cv_lame$ac_cv_mpg123" = "xyesyes"
24128 EXTERNAL_MPEG_REQUIRE="libmpg123"
24129 EXTERNAL_MPEG_LIBS="-lmp3lame"
24130 MPEG_CFLAGS="$MPG123_CFLAGS"
24131 MPEG_LIBS="$MPG123_LIBS"
24137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** MPEG support disabled." >&5
24138 printf "%s\n" "$as_me: WARNING: *** MPEG support disabled." >&2;}
24148 printf "%s\n" "#define HAVE_MPEG $HAVE_MPEG" >>confdefs.h
24153 if test "x$enable_sqlite" != "xno"
24158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.2 " >&5
24159 printf %s "checking for sqlite3 >= 3.2 ... " >&6; }
24161 if test -n "$SQLITE3_CFLAGS"; then
24162 pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
24163 elif test -n "$PKG_CONFIG"; then
24164 if test -n "$PKG_CONFIG" && \
24165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
24166 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
24168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24169 test $ac_status = 0; }; then
24170 pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.2" 2>/dev/null`
24171 test "x$?" != "x0" && pkg_failed=yes
24178 if test -n "$SQLITE3_LIBS"; then
24179 pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
24180 elif test -n "$PKG_CONFIG"; then
24181 if test -n "$PKG_CONFIG" && \
24182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.2\""; } >&5
24183 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.2") 2>&5
24185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24186 test $ac_status = 0; }; then
24187 pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.2" 2>/dev/null`
24188 test "x$?" != "x0" && pkg_failed=yes
24196 pkg_link_saved_CFLAGS=$CFLAGS
24197 pkg_link_saved_LIBS=$LIBS
24199 eval "pkg_CFLAGS=\${pkg_cv_SQLITE3_CFLAGS}"
24200 eval "pkg_LIBS=\${pkg_cv_SQLITE3_LIBS}"
24202 CFLAGS="$CFLAGS $pkg_CFLAGS"
24203 LIBS="$LIBS $pkg_LIBS"
24205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206 /* end confdefs.h. */
24216 if ac_fn_c_try_link "$LINENO"
24222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24223 conftest$ac_exeext conftest.$ac_ext
24225 CFLAGS=$pkg_link_saved_CFLAGS
24226 LIBS=$pkg_link_saved_LIBS
24228 if test x$pkg_link = xno
24231 printf %s "link failed ... "
24238 if test $pkg_failed = yes; then
24240 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24241 _pkg_short_errors_supported=yes
24243 _pkg_short_errors_supported=no
24245 if test $_pkg_short_errors_supported = yes; then
24246 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
24248 SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3 >= 3.2"`
24250 # Put the nasty error message in config.log where it belongs
24251 echo "$SQLITE3_PKG_ERRORS" >&5
24253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24254 printf "%s\n" "no" >&6; }
24256 elif test $pkg_failed = untried; then
24259 SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
24260 SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
24261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24262 printf "%s\n" "yes" >&6; }
24269 printf "%s\n" "#define HAVE_SQLITE3 ${ac_cv_sqlite3}" >>confdefs.h
24271 if test "x$ac_cv_sqlite3" = "x1"; then
24273 HAVE_SQLITE3_FALSE='#'
24275 HAVE_SQLITE3_TRUE='#'
24276 HAVE_SQLITE3_FALSE=
24281 if test "x$enable_cpu_clip" != "xno"
24284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking processor clipping capabilities" >&5
24285 printf %s "checking processor clipping capabilities... " >&6; }
24286 if test ${ac_cv_c_clip_type+y}
24288 printf %s "(cached) " >&6
24290 # Initialize to unknown
24291 ac_cv_c_clip_positive=unknown
24292 ac_cv_c_clip_negative=unknown
24295 if test $ac_cv_c_clip_positive = unknown ; then
24296 if test "$cross_compiling" = yes
24298 ac_cv_c_clip_positive=unknown
24301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24302 /* end confdefs.h. */
24304 #define _ISOC9X_SOURCE 1
24305 #define _ISOC99_SOURCE 1
24306 #define __USE_ISOC99 1
24307 #define __USE_ISOC9X 1
24313 fval = 1.0 * 0x7FFFFFFF ;
24314 for (k = 0 ; k < 100 ; k++)
24315 { ival = (lrint (fval)) >> 24 ;
24319 fval *= 1.2499999 ;
24326 if ac_fn_c_try_run "$LINENO"
24328 ac_cv_c_clip_positive=yes
24330 ac_cv_c_clip_positive=no
24332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24333 conftest.$ac_objext conftest.beam conftest.$ac_ext
24337 if test "$cross_compiling" = yes
24339 ac_cv_c_clip_negative=unknown
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24345 #define _ISOC9X_SOURCE 1
24346 #define _ISOC99_SOURCE 1
24347 #define __USE_ISOC99 1
24348 #define __USE_ISOC9X 1
24354 fval = -8.0 * 0x10000000 ;
24355 for (k = 0 ; k < 100 ; k++)
24356 { ival = (lrint (fval)) >> 24 ;
24360 fval *= 1.2499999 ;
24367 if ac_fn_c_try_run "$LINENO"
24369 ac_cv_c_clip_negative=yes
24371 ac_cv_c_clip_negative=no
24373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24374 conftest.$ac_objext conftest.beam conftest.$ac_ext
24379 if test $ac_cv_c_clip_positive = yes ; then
24380 ac_cv_c_clip_positive=1
24382 ac_cv_c_clip_positive=0
24385 if test $ac_cv_c_clip_negative = yes ; then
24386 ac_cv_c_clip_negative=1
24388 ac_cv_c_clip_negative=0
24392 case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
24394 ac_cv_c_clip_type="none"
24397 ac_cv_c_clip_type="positive"
24400 ac_cv_c_clip_type="negative"
24403 ac_cv_c_clip_type="both"
24410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_clip_type" >&5
24411 printf "%s\n" "$ac_cv_c_clip_type" >&6; }
24418 printf "%s\n" "checking processor clipping capabilities... disabled"
24419 ac_cv_c_clip_positive=0
24420 ac_cv_c_clip_negative=0
24425 printf "%s\n" "#define CPU_CLIPS_POSITIVE ${ac_cv_c_clip_positive}" >>confdefs.h
24428 printf "%s\n" "#define CPU_CLIPS_NEGATIVE ${ac_cv_c_clip_negative}" >>confdefs.h
24432 OS_SPECIFIC_CFLAGS=""
24433 OS_SPECIFIC_LINKS=""
24437 case $host_os in #(
24438 darwin* | rhapsody*) :
24440 if test "x$HAVE_XCODE_SELECT" = "xyes"
24443 developer_path=`xcode-select --print-path`
24447 developer_path="/Developer"
24450 OS_SPECIFIC_LINKS="-framework CoreAudio -framework AudioToolbox -framework CoreFoundation" ;; #(
24455 OS_SPECIFIC_LINKS="-lwinmm" ;; #(
24465 printf "%s\n" "#define OS_IS_WIN32 ${os_is_win32}" >>confdefs.h
24468 printf "%s\n" "#define OS_IS_OPENBSD ${os_is_openbsd}" >>confdefs.h
24471 printf "%s\n" "#define USE_WINDOWS_API ${use_windows_api}" >>confdefs.h
24473 if test ${use_windows_api} -eq 1; then
24474 USE_WIN_VERSION_FILE_TRUE=
24475 USE_WIN_VERSION_FILE_FALSE='#'
24477 USE_WIN_VERSION_FILE_TRUE='#'
24478 USE_WIN_VERSION_FILE_FALSE=
24483 if test "x$enable_alsa" != "xno"
24488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alsa" >&5
24489 printf %s "checking for alsa... " >&6; }
24491 if test -n "$ALSA_CFLAGS"; then
24492 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
24493 elif test -n "$PKG_CONFIG"; then
24494 if test -n "$PKG_CONFIG" && \
24495 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
24496 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
24498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24499 test $ac_status = 0; }; then
24500 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
24501 test "x$?" != "x0" && pkg_failed=yes
24508 if test -n "$ALSA_LIBS"; then
24509 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
24510 elif test -n "$PKG_CONFIG"; then
24511 if test -n "$PKG_CONFIG" && \
24512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
24513 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
24515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24516 test $ac_status = 0; }; then
24517 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
24518 test "x$?" != "x0" && pkg_failed=yes
24528 if test $pkg_failed = yes; then
24529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24530 printf "%s\n" "no" >&6; }
24532 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24533 _pkg_short_errors_supported=yes
24535 _pkg_short_errors_supported=no
24537 if test $_pkg_short_errors_supported = yes; then
24538 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
24540 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
24542 # Put the nasty error message in config.log where it belongs
24543 echo "$ALSA_PKG_ERRORS" >&5
24548 elif test $pkg_failed = untried; then
24549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24550 printf "%s\n" "no" >&6; }
24555 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
24556 ALSA_LIBS=$pkg_cv_ALSA_LIBS
24557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24558 printf "%s\n" "yes" >&6; }
24560 save_CFLAGS="${CFLAGS}"
24561 save_LIBS="${LIBS}"
24562 CFLAGS="${CFLAGS} ${ALSA_CFLAGS}"
24563 LIBS="${LIBS} ${ALSA_LIBS}"
24564 ac_fn_c_check_header_compile "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
24565 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes
24567 printf "%s\n" "#define HAVE_ALSA_ASOUNDLIB_H 1" >>confdefs.h
24571 if test "x$ac_cv_header_alsa_asoundlib_h" = "xyes"
24575 printf "%s\n" "#define HAVE_ALSA 1" >>confdefs.h
24587 CFLAGS="${save_CFLAGS}"
24588 LIBS="${save_LIBS}"
24592 if test "x$alsa_works" = "xno"
24595 if test "x$enable_alsa" = "xyes"
24598 as_fn_error $? "You explicitly requested alsa support, but alsa could not be found!" "$LINENO" 5
24602 enable_alsa="no (auto)"
24613 case $host_os in #(
24616 ac_fn_c_check_header_compile "$LINENO" "sndio.h" "ac_cv_header_sndio_h" "$ac_includes_default"
24617 if test "x$ac_cv_header_sndio_h" = xyes
24619 printf "%s\n" "#define HAVE_SNDIO_H 1" >>confdefs.h
24623 if test "x$ac_cv_header_sndio_h" = "xyes"
24626 SNDIO_LIBS="-lsndio"
24636 printf "%s\n" "#define HAVE_SNDIO_H ${HAVE_SNDIO_H}" >>confdefs.h
24640 if test "x$ac_cv_sizeof_short" != "x2"
24643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24644 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (short) != 2. " >&5
24646 printf "%s\n" "$as_me: WARNING: *** sizeof (short) != 2. " >&2;}
24647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24648 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24652 if test "x$ac_cv_sizeof_int" != "x4"
24655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24656 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (int) != 4 " >&5
24658 printf "%s\n" "$as_me: WARNING: *** sizeof (int) != 4 " >&2;}
24659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24660 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24664 if test "x$ac_cv_sizeof_float" != "x4"
24667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24668 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (float) != 4. " >&5
24670 printf "%s\n" "$as_me: WARNING: *** sizeof (float) != 4. " >&2;}
24671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24672 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24676 if test "x$ac_cv_sizeof_double" != "x8"
24679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24680 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** sizeof (double) != 8. " >&5
24682 printf "%s\n" "$as_me: WARNING: *** sizeof (double) != 8. " >&2;}
24683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ******************************************************************" >&5
24684 printf "%s\n" "$as_me: WARNING: ******************************************************************" >&2;}
24688 if test "x$ac_cv_prog_HAVE_AUTOGEN" = "xno"
24691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Touching files in directory tests/." >&5
24692 printf "%s\n" "$as_me: WARNING: Touching files in directory tests/." >&2;}
24693 touch tests/*.c tests/*.h
24698 if test "x$enable_bow_docs" = "xyes"
24701 HTML_BGCOLOUR="white"
24702 HTML_FGCOLOUR="black"
24706 HTML_BGCOLOUR="black"
24707 HTML_FGCOLOUR="white"
24715 if test "x$enable_flags_setting" = "xyes"
24722 for flag in -O2 -pipe; do
24723 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
24724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24725 printf %s "checking whether C compiler accepts $flag... " >&6; }
24726 if eval test \${$as_CACHEVAR+y}
24728 printf %s "(cached) " >&6
24731 ax_check_save_flags=$CFLAGS
24732 CFLAGS="$CFLAGS $flag"
24733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24734 /* end confdefs.h. */
24744 if ac_fn_c_try_compile "$LINENO"
24746 eval "$as_CACHEVAR=yes"
24748 eval "$as_CACHEVAR=no"
24750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24751 CFLAGS=$ax_check_save_flags
24753 eval ac_res=\$$as_CACHEVAR
24754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24755 printf "%s\n" "$ac_res" >&6; }
24756 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
24759 if test ${CFLAGS+y}
24762 case " $CFLAGS " in #(
24764 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
24765 (: CFLAGS already contains $flag) 2>&5
24767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24768 test $ac_status = 0; } ;; #(
24771 as_fn_append CFLAGS " $flag"
24772 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
24773 (: CFLAGS="$CFLAGS") 2>&5
24775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24776 test $ac_status = 0; }
24783 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
24784 (: CFLAGS="$CFLAGS") 2>&5
24786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24787 test $ac_status = 0; }
24799 ac_cpp='$CXXCPP $CPPFLAGS'
24800 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24801 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24802 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24808 for flag in -O2 -pipe; do
24809 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
24810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
24811 printf %s "checking whether C++ compiler accepts $flag... " >&6; }
24812 if eval test \${$as_CACHEVAR+y}
24814 printf %s "(cached) " >&6
24817 ax_check_save_flags=$CXXFLAGS
24818 CXXFLAGS="$CXXFLAGS $flag"
24819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24820 /* end confdefs.h. */
24830 if ac_fn_cxx_try_compile "$LINENO"
24832 eval "$as_CACHEVAR=yes"
24834 eval "$as_CACHEVAR=no"
24836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24837 CXXFLAGS=$ax_check_save_flags
24839 eval ac_res=\$$as_CACHEVAR
24840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24841 printf "%s\n" "$ac_res" >&6; }
24842 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
24845 if test ${CXXFLAGS+y}
24848 case " $CXXFLAGS " in #(
24850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
24851 (: CXXFLAGS already contains $flag) 2>&5
24853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854 test $ac_status = 0; } ;; #(
24857 as_fn_append CXXFLAGS " $flag"
24858 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
24859 (: CXXFLAGS="$CXXFLAGS") 2>&5
24861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24862 test $ac_status = 0; }
24869 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
24870 (: CXXFLAGS="$CXXFLAGS") 2>&5
24872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24873 test $ac_status = 0; }
24884 ac_cpp='$CPP $CPPFLAGS'
24885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24890 case ${host_os} in #(
24893 ldflags_test="-Wl,-dead_strip_dylibs" ;; #(
24896 ldflags_test="-Wl,-O1 -Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections"
24905 for flag in ${ldflags_test}; do
24906 as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | $as_tr_sh`
24907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
24908 printf %s "checking whether the linker accepts $flag... " >&6; }
24909 if eval test \${$as_CACHEVAR+y}
24911 printf %s "(cached) " >&6
24914 ax_check_save_flags=$LDFLAGS
24915 LDFLAGS="$LDFLAGS $flag"
24916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24917 /* end confdefs.h. */
24927 if ac_fn_c_try_link "$LINENO"
24929 eval "$as_CACHEVAR=yes"
24931 eval "$as_CACHEVAR=no"
24933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24934 conftest$ac_exeext conftest.$ac_ext
24935 LDFLAGS=$ax_check_save_flags
24937 eval ac_res=\$$as_CACHEVAR
24938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24939 printf "%s\n" "$ac_res" >&6; }
24940 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
24943 if test ${LDFLAGS+y}
24946 case " $LDFLAGS " in #(
24948 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS already contains \$flag"; } >&5
24949 (: LDFLAGS already contains $flag) 2>&5
24951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; } ;; #(
24955 as_fn_append LDFLAGS " $flag"
24956 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
24957 (: LDFLAGS="$LDFLAGS") 2>&5
24959 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24960 test $ac_status = 0; }
24967 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : LDFLAGS=\"\$LDFLAGS\""; } >&5
24968 (: LDFLAGS="$LDFLAGS") 2>&5
24970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24971 test $ac_status = 0; }
24984 if test "x$enable_werror" = "xyes"
24991 for flag in -Werror; do
24992 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
24993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
24994 printf %s "checking whether C compiler accepts $flag... " >&6; }
24995 if eval test \${$as_CACHEVAR+y}
24997 printf %s "(cached) " >&6
25000 ax_check_save_flags=$CFLAGS
25001 CFLAGS="$CFLAGS $flag"
25002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25003 /* end confdefs.h. */
25013 if ac_fn_c_try_compile "$LINENO"
25015 eval "$as_CACHEVAR=yes"
25017 eval "$as_CACHEVAR=no"
25019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25020 CFLAGS=$ax_check_save_flags
25022 eval ac_res=\$$as_CACHEVAR
25023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25024 printf "%s\n" "$ac_res" >&6; }
25025 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
25028 if test ${CFLAGS+y}
25031 case " $CFLAGS " in #(
25033 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25034 (: CFLAGS already contains $flag) 2>&5
25036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25037 test $ac_status = 0; } ;; #(
25040 as_fn_append CFLAGS " $flag"
25041 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25042 (: CFLAGS="$CFLAGS") 2>&5
25044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25045 test $ac_status = 0; }
25052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25053 (: CFLAGS="$CFLAGS") 2>&5
25055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }
25068 ac_cpp='$CXXCPP $CPPFLAGS'
25069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25077 for flag in -Werror; do
25078 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
25079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
25080 printf %s "checking whether C++ compiler accepts $flag... " >&6; }
25081 if eval test \${$as_CACHEVAR+y}
25083 printf %s "(cached) " >&6
25086 ax_check_save_flags=$CXXFLAGS
25087 CXXFLAGS="$CXXFLAGS $flag"
25088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25089 /* end confdefs.h. */
25099 if ac_fn_cxx_try_compile "$LINENO"
25101 eval "$as_CACHEVAR=yes"
25103 eval "$as_CACHEVAR=no"
25105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25106 CXXFLAGS=$ax_check_save_flags
25108 eval ac_res=\$$as_CACHEVAR
25109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25110 printf "%s\n" "$ac_res" >&6; }
25111 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
25114 if test ${CXXFLAGS+y}
25117 case " $CXXFLAGS " in #(
25119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
25120 (: CXXFLAGS already contains $flag) 2>&5
25122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25123 test $ac_status = 0; } ;; #(
25126 as_fn_append CXXFLAGS " $flag"
25127 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
25128 (: CXXFLAGS="$CXXFLAGS") 2>&5
25130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25131 test $ac_status = 0; }
25138 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
25139 (: CXXFLAGS="$CXXFLAGS") 2>&5
25141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25142 test $ac_status = 0; }
25153 ac_cpp='$CPP $CPPFLAGS'
25154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25161 common_flags="-Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wundef -Wuninitialized -Winit-self"
25162 common_cflags="${common_flags}"
25163 if test "x$ax_cv_c_compiler_vendor" = "xgnu"
25166 common_cflags+=" -Wno-format-truncation"
25169 common_cxxflags="${common_flags}"
25170 if test "x$ax_cv_cxx_compiler_vendor" = "xgnu"
25173 common_cxxflags+=" -Wno-format-truncation"
25181 for flag in ${common_cflags} -Wvla -Wbad-function-cast -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Waggregate-return; do
25182 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
25183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25184 printf %s "checking whether C compiler accepts $flag... " >&6; }
25185 if eval test \${$as_CACHEVAR+y}
25187 printf %s "(cached) " >&6
25190 ax_check_save_flags=$CFLAGS
25191 CFLAGS="$CFLAGS $flag"
25192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25193 /* end confdefs.h. */
25203 if ac_fn_c_try_compile "$LINENO"
25205 eval "$as_CACHEVAR=yes"
25207 eval "$as_CACHEVAR=no"
25209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25210 CFLAGS=$ax_check_save_flags
25212 eval ac_res=\$$as_CACHEVAR
25213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25214 printf "%s\n" "$ac_res" >&6; }
25215 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
25218 if test ${CFLAGS+y}
25221 case " $CFLAGS " in #(
25223 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25224 (: CFLAGS already contains $flag) 2>&5
25226 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25227 test $ac_status = 0; } ;; #(
25230 as_fn_append CFLAGS " $flag"
25231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25232 (: CFLAGS="$CFLAGS") 2>&5
25234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25235 test $ac_status = 0; }
25242 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25243 (: CFLAGS="$CFLAGS") 2>&5
25245 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25246 test $ac_status = 0; }
25258 ac_cpp='$CXXCPP $CPPFLAGS'
25259 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25260 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25261 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25267 for flag in ${common_cxxflags} -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo; do
25268 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cxxflags__$flag" | $as_tr_sh`
25269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
25270 printf %s "checking whether C++ compiler accepts $flag... " >&6; }
25271 if eval test \${$as_CACHEVAR+y}
25273 printf %s "(cached) " >&6
25276 ax_check_save_flags=$CXXFLAGS
25277 CXXFLAGS="$CXXFLAGS $flag"
25278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25279 /* end confdefs.h. */
25289 if ac_fn_cxx_try_compile "$LINENO"
25291 eval "$as_CACHEVAR=yes"
25293 eval "$as_CACHEVAR=no"
25295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25296 CXXFLAGS=$ax_check_save_flags
25298 eval ac_res=\$$as_CACHEVAR
25299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25300 printf "%s\n" "$ac_res" >&6; }
25301 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
25304 if test ${CXXFLAGS+y}
25307 case " $CXXFLAGS " in #(
25309 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$flag"; } >&5
25310 (: CXXFLAGS already contains $flag) 2>&5
25312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25313 test $ac_status = 0; } ;; #(
25316 as_fn_append CXXFLAGS " $flag"
25317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
25318 (: CXXFLAGS="$CXXFLAGS") 2>&5
25320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25321 test $ac_status = 0; }
25328 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS\""; } >&5
25329 (: CXXFLAGS="$CXXFLAGS") 2>&5
25331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25332 test $ac_status = 0; }
25343 ac_cpp='$CPP $CPPFLAGS'
25344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25349 if test "x$enable_test_coverage" = "xyes"
25356 for flag in -coverage; do
25357 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
25358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25359 printf %s "checking whether C compiler accepts $flag... " >&6; }
25360 if eval test \${$as_CACHEVAR+y}
25362 printf %s "(cached) " >&6
25365 ax_check_save_flags=$CFLAGS
25366 CFLAGS="$CFLAGS $flag"
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h. */
25378 if ac_fn_c_try_compile "$LINENO"
25380 eval "$as_CACHEVAR=yes"
25382 eval "$as_CACHEVAR=no"
25384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25385 CFLAGS=$ax_check_save_flags
25387 eval ac_res=\$$as_CACHEVAR
25388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25389 printf "%s\n" "$ac_res" >&6; }
25390 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
25393 if test ${CFLAGS+y}
25396 case " $CFLAGS " in #(
25398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25399 (: CFLAGS already contains $flag) 2>&5
25401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25402 test $ac_status = 0; } ;; #(
25405 as_fn_append CFLAGS " $flag"
25406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25407 (: CFLAGS="$CFLAGS") 2>&5
25409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25410 test $ac_status = 0; }
25417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25418 (: CFLAGS="$CFLAGS") 2>&5
25420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25421 test $ac_status = 0; }
25435 ac_save_cflags=$CFLAGS
25436 ac_cwerror_flag=yes
25437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror" >&5
25438 printf %s "checking whether C compiler accepts -Werror... " >&6; }
25439 if test ${ax_cv_check_cflags___Werror+y}
25441 printf %s "(cached) " >&6
25444 ax_check_save_flags=$CFLAGS
25445 CFLAGS="$CFLAGS -Werror"
25446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25447 /* end confdefs.h. */
25457 if ac_fn_c_try_compile "$LINENO"
25459 ax_cv_check_cflags___Werror=yes
25461 ax_cv_check_cflags___Werror=no
25463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25464 CFLAGS=$ax_check_save_flags
25466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror" >&5
25467 printf "%s\n" "$ax_cv_check_cflags___Werror" >&6; }
25468 if test "x$ax_cv_check_cflags___Werror" = xyes
25470 CFLAGS="$CFLAGS -Werror"
25475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS" >&5
25476 printf %s "checking whether to add -D_FORTIFY_SOURCE=2 to CPPFLAGS... " >&6; }
25477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478 /* end confdefs.h. */
25485 #ifndef _FORTIFY_SOURCE
25496 if ac_fn_c_try_link "$LINENO"
25498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25499 /* end confdefs.h. */
25502 #define _FORTIFY_SOURCE 2
25503 #include <string.h>
25507 return strlen(s)-1;
25512 if ac_fn_c_try_link "$LINENO"
25515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25516 printf "%s\n" "yes" >&6; }
25517 CFLAGS=$ac_save_cflags
25518 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
25522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25523 printf "%s\n" "no" >&6; }
25524 CFLAGS=$ac_save_cflags
25527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25528 conftest$ac_exeext conftest.$ac_ext
25531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25532 printf "%s\n" "no" >&6; }
25533 CFLAGS=$ac_save_cflags
25536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25537 conftest$ac_exeext conftest.$ac_ext
25540 if test "x$ax_cv_c_compiler_vendor" = "xgnu"
25543 case $host_os in #(
25544 darwin* | rhapsody*) :
25546 temp_CFLAGS=`echo $CFLAGS | $SED "s/-Wall -pedantic//" | $SED "s/-Wshadow//" | $SED "s/-Waggregate-return//"`
25547 CFLAGS=$temp_CFLAGS
25548 SHLIB_VERSION_ARG="-Wl,-exported_symbols_list -Wl,\$(top_srcdir)/src/Symbols.darwin" ;; #(
25551 SHLIB_VERSION_ARG="-Wc,-static-libgcc -Wl,\$(top_srcdir)/src/libsndfile-1.def"
25553 if test "x$enable_shared" = "xno"
25563 for flag in -mstackrealign; do
25564 as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | $as_tr_sh`
25565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
25566 printf %s "checking whether C compiler accepts $flag... " >&6; }
25567 if eval test \${$as_CACHEVAR+y}
25569 printf %s "(cached) " >&6
25572 ax_check_save_flags=$CFLAGS
25573 CFLAGS="$CFLAGS $flag"
25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h. */
25585 if ac_fn_c_try_compile "$LINENO"
25587 eval "$as_CACHEVAR=yes"
25589 eval "$as_CACHEVAR=no"
25591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25592 CFLAGS=$ax_check_save_flags
25594 eval ac_res=\$$as_CACHEVAR
25595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25596 printf "%s\n" "$ac_res" >&6; }
25597 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"
25600 if test ${CFLAGS+y}
25603 case " $CFLAGS " in #(
25605 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
25606 (: CFLAGS already contains $flag) 2>&5
25608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25609 test $ac_status = 0; } ;; #(
25612 as_fn_append CFLAGS " $flag"
25613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25614 (: CFLAGS="$CFLAGS") 2>&5
25616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25617 test $ac_status = 0; }
25624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
25625 (: CFLAGS="$CFLAGS") 2>&5
25627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25628 test $ac_status = 0; }
25641 SHLIB_VERSION_ARG="-Wl,-export-symbols \$(top_srcdir)/src/Symbols.os2"
25651 case $host_os in #(
25652 linux*|kfreebsd*-gnu*|gnu*) :
25653 SHLIB_VERSION_ARG="-Wl,--version-script=\$(top_srcdir)/src/Symbols.gnu-binutils" ;; #(
25659 printf "%s\n" "#define WIN32_TARGET_DLL ${win32_target_dll}" >>confdefs.h
25662 printf "%s\n" "#define COMPILER_IS_GCC ${COMPILER_IS_GCC}" >>confdefs.h
25665 CFLAGS="$CFLAGS $OS_SPECIFIC_CFLAGS"
25667 if test "x$CFLAGS" = "x"
25670 as_fn_error $? "\"Error in configure script. CFLAGS has been screwed up.\"" "$LINENO" 5
25674 HOST_TRIPLET="${host_cpu}-${host_vendor}-${host_os}"
25677 printf "%s\n" "#define HOST_TRIPLET ${HOST_TRIPLET}" >>confdefs.h
25680 if test "$HOST_TRIPLET" = "x86_64-w64-mingw32"
25683 OS_SPECIFIC_LINKS=" -static-libgcc $OS_SPECIFIC_LINKS"
25687 WIN_RC_VERSION=`echo $PACKAGE_VERSION | $SED -e "s/pre.*//" -e "s/beta.*//" -e "s/\./,/g"`
25690 if test "x$enable_static" = "xno"
25693 SRC_BINDIR=src/.libs/
25694 TEST_BINDIR=tests/.libs/
25710 SHARED_VERSION_INFO=1:37:0
25738 ac_config_files="$ac_config_files Makefile Octave/Makefile src/version-metadata.rc tests/test_wrapper.sh tests/pedantic-header-test.sh sndfile.pc Scripts/build-test-tarball.mk"
25740 cat >confcache <<\_ACEOF
25741 # This file is a shell script that caches the results of configure
25742 # tests run on this system so they can be shared between configure
25743 # scripts and configure runs, see configure's option --config-cache.
25744 # It is not useful on other systems. If it contains results you don't
25745 # want to keep, you may remove or edit it.
25747 # config.status only pays attention to the cache file if you give it
25748 # the --recheck option to rerun configure.
25750 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25751 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25752 # following values.
25756 # The following way of writing the cache mishandles newlines in values,
25757 # but we know of no workaround that is simple, portable, and efficient.
25758 # So, we kill variables containing newlines.
25759 # Ultrix sh set writes to stderr and can't be redirected directly,
25760 # and sets the high bit in the cache file unless we assign to the vars.
25762 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25763 eval ac_val=\$$ac_var
25767 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25768 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25771 _ | IFS | as_nl) ;; #(
25772 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25773 *) { eval $ac_var=; unset $ac_var;} ;;
25779 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25780 *${as_nl}ac_space=\ *)
25781 # `set' does not quote correctly, so add quotes: double-quote
25782 # substitution turns \\\\ into \\, and sed turns \\ into \.
25785 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25788 # `set' quotes correctly as required by POSIX, so do not add quotes.
25789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25798 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
25800 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25802 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25803 if test -w "$cache_file"; then
25804 if test "x$cache_file" != "x/dev/null"; then
25805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25806 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
25807 if test ! -f "$cache_file" || test -h "$cache_file"; then
25808 cat confcache >"$cache_file"
25810 case $cache_file in #(
25812 mv -f confcache "$cache_file"$$ &&
25813 mv -f "$cache_file"$$ "$cache_file" ;; #(
25815 mv -f confcache "$cache_file" ;;
25820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25821 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
25826 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25827 # Let make expand exec_prefix.
25828 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25830 DEFS=-DHAVE_CONFIG_H
25835 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25836 # 1. Remove the extension, and $U if already installed.
25837 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25838 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
25839 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25840 # will be set to the directory where LIBOBJS objects are built.
25841 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25842 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25844 LIBOBJS=$ac_libobjs
25846 LTLIBOBJS=$ac_ltlibobjs
25849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
25850 printf %s "checking that generated files are newer than configure... " >&6; }
25851 if test -n "$am_sleep_pid"; then
25852 # Hide warnings about reused PIDs.
25853 wait $am_sleep_pid 2>/dev/null
25855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
25856 printf "%s\n" "done" >&6; }
25857 if test -n "$EXEEXT"; then
25859 am__EXEEXT_FALSE='#'
25861 am__EXEEXT_TRUE='#'
25865 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25866 as_fn_error $? "conditional \"AMDEP\" was never defined.
25867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25869 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25870 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25873 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25874 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25877 if test -z "${LINUX_MINGW_CROSS_TEST_TRUE}" && test -z "${LINUX_MINGW_CROSS_TEST_FALSE}"; then
25878 as_fn_error $? "conditional \"LINUX_MINGW_CROSS_TEST\" was never defined.
25879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25881 if test -z "${FULL_SUITE_TRUE}" && test -z "${FULL_SUITE_FALSE}"; then
25882 as_fn_error $? "conditional \"FULL_SUITE\" was never defined.
25883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25885 if test -z "${ENABLE_TEST_COVERAGE_TRUE}" && test -z "${ENABLE_TEST_COVERAGE_FALSE}"; then
25886 as_fn_error $? "conditional \"ENABLE_TEST_COVERAGE\" was never defined.
25887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25889 if test -z "${USE_OSSFUZZERS_TRUE}" && test -z "${USE_OSSFUZZERS_FALSE}"; then
25890 as_fn_error $? "conditional \"USE_OSSFUZZERS\" was never defined.
25891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25893 if test -z "${USE_OSSFUZZ_FLAG_TRUE}" && test -z "${USE_OSSFUZZ_FLAG_FALSE}"; then
25894 as_fn_error $? "conditional \"USE_OSSFUZZ_FLAG\" was never defined.
25895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25897 if test -z "${USE_OSSFUZZ_STATIC_TRUE}" && test -z "${USE_OSSFUZZ_STATIC_FALSE}"; then
25898 as_fn_error $? "conditional \"USE_OSSFUZZ_STATIC\" was never defined.
25899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25902 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
25903 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
25904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25906 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
25907 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
25908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25910 if test -z "${BUILD_OCTAVE_MOD_TRUE}" && test -z "${BUILD_OCTAVE_MOD_FALSE}"; then
25911 as_fn_error $? "conditional \"BUILD_OCTAVE_MOD\" was never defined.
25912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25914 if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
25915 as_fn_error $? "conditional \"HAVE_SQLITE3\" was never defined.
25916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25918 if test -z "${USE_WIN_VERSION_FILE_TRUE}" && test -z "${USE_WIN_VERSION_FILE_FALSE}"; then
25919 as_fn_error $? "conditional \"USE_WIN_VERSION_FILE\" was never defined.
25920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25923 : "${CONFIG_STATUS=./config.status}"
25925 ac_clean_files_save=$ac_clean_files
25926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25928 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
25930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25932 # Generated by $as_me.
25933 # Run this file to recreate the current configuration.
25934 # Compiler output produced by configure, useful for debugging
25935 # configure, is in config.log if it exists.
25938 ac_cs_recheck=false
25941 SHELL=\${CONFIG_SHELL-$SHELL}
25944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25945 ## -------------------- ##
25946 ## M4sh Initialization. ##
25947 ## -------------------- ##
25949 # Be more Bourne compatible
25950 DUALCASE=1; export DUALCASE # for MKS sh
25952 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
25956 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25957 # is contrary to our usage. Disable this feature.
25958 alias -g '${1+"$@"}'='"$@"'
25959 setopt NO_GLOB_SUBST
25961 case `(set -o) 2>/dev/null` in #(
25971 # Reset variables that may have inherited troublesome values from
25974 # IFS needs to be set, to space, tab, and newline, in precisely that order.
25975 # (If _AS_PATH_WALK were called with IFS unset, it would have the
25976 # side effect of setting IFS to empty, thus disabling word splitting.)
25977 # Quoting is to prevent editors from complaining about space-tab.
25987 # Ensure predictable behavior from utilities with locale-dependent output.
25993 # We cannot yet rely on "unset" to work, but we need these variables
25994 # to be unset--not just set to an empty or harmless value--now, to
25995 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
25996 # also avoids known problems related to "unset" and subshell syntax
25997 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
25998 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
25999 do eval test \${$as_var+y} \
26000 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26003 # Ensure that fds 0, 1, and 2 are open.
26004 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
26005 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
26006 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
26008 # The user is always right.
26009 if ${PATH_SEPARATOR+false} :; then
26011 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26012 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26018 # Find who we are. Look in the path if we contain no directory separator.
26021 *[\\/]* ) as_myself=$0 ;;
26022 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26023 for as_dir in $PATH
26026 case $as_dir in #(((
26029 *) as_dir=$as_dir/ ;;
26031 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
26037 # We did not find ourselves, most probably we were run as `sh COMMAND'
26038 # in which case we are not to be found in the path.
26039 if test "x$as_myself" = x; then
26042 if test ! -f "$as_myself"; then
26043 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26049 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26050 # ----------------------------------------
26051 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26052 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26053 # script with STATUS, using 1 if that was 0.
26056 as_status=$1; test $as_status -eq 0 && as_status=1
26058 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26061 printf "%s\n" "$as_me: error: $2" >&2
26062 as_fn_exit $as_status
26067 # as_fn_set_status STATUS
26068 # -----------------------
26069 # Set $? to STATUS, without forking.
26070 as_fn_set_status ()
26073 } # as_fn_set_status
26075 # as_fn_exit STATUS
26076 # -----------------
26077 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26081 as_fn_set_status $1
26087 # Portably unset VAR.
26090 { eval $1=; unset $1;}
26092 as_unset=as_fn_unset
26094 # as_fn_append VAR VALUE
26095 # ----------------------
26096 # Append the text in VALUE to the end of the definition contained in VAR. Take
26097 # advantage of any shell optimizations that allow amortized linear growth over
26098 # repeated appends, instead of the typical quadratic growth present in naive
26100 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
26102 eval 'as_fn_append ()
26113 # as_fn_arith ARG...
26114 # ------------------
26115 # Perform arithmetic evaluation on the ARGs, and store the result in the
26116 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26117 # must be portable across $(()) and expr.
26118 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
26120 eval 'as_fn_arith ()
26127 as_val=`expr "$@" || test $? -eq 1`
26132 if expr a : '\(a\)' >/dev/null 2>&1 &&
26133 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26139 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26140 as_basename=basename
26145 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26151 as_me=`$as_basename -- "$0" ||
26152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26153 X"$0" : 'X\(//\)$' \| \
26154 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26155 printf "%s\n" X/"$0" |
26156 sed '/^.*\/\([^/][^/]*\)\/*$/{
26170 # Avoid depending upon Character Ranges.
26171 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26172 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26173 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26174 as_cr_digits='0123456789'
26175 as_cr_alnum=$as_cr_Letters$as_cr_digits
26178 # Determine whether it's possible to make 'echo' print without a newline.
26179 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
26180 # for compatibility with existing Makefiles.
26181 ECHO_C= ECHO_N= ECHO_T=
26182 case `echo -n x` in #(((((
26184 case `echo 'xy\c'` in
26185 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26187 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26194 # For backward compatibility with old third-party macros, we provide
26195 # the shell variables $as_echo and $as_echo_n. New code should use
26196 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
26197 as_echo='printf %s\n'
26198 as_echo_n='printf %s'
26200 rm -f conf$$ conf$$.exe conf$$.file
26201 if test -d conf$$.dir; then
26202 rm -f conf$$.dir/conf$$.file
26205 mkdir conf$$.dir 2>/dev/null
26207 if (echo >conf$$.file) 2>/dev/null; then
26208 if ln -s conf$$.file conf$$ 2>/dev/null; then
26210 # ... but there are two gotchas:
26211 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26212 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26213 # In both cases, we have to default to `cp -pR'.
26214 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26216 elif ln conf$$.file conf$$ 2>/dev/null; then
26224 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26225 rmdir conf$$.dir 2>/dev/null
26230 # Create "$as_dir" as a directory, including parents if necessary.
26235 -*) as_dir=./$as_dir;;
26237 test -d "$as_dir" || eval $as_mkdir_p || {
26241 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26242 *) as_qdir=$as_dir;;
26244 as_dirs="'$as_qdir' $as_dirs"
26245 as_dir=`$as_dirname -- "$as_dir" ||
26246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26247 X"$as_dir" : 'X\(//\)[^/]' \| \
26248 X"$as_dir" : 'X\(//\)$' \| \
26249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26250 printf "%s\n" X"$as_dir" |
26251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26255 /^X\(\/\/\)[^/].*/{
26268 test -d "$as_dir" && break
26270 test -z "$as_dirs" || eval "mkdir $as_dirs"
26271 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26275 if mkdir -p . 2>/dev/null; then
26276 as_mkdir_p='mkdir -p "$as_dir"'
26278 test -d ./-p && rmdir ./-p
26283 # as_fn_executable_p FILE
26284 # -----------------------
26285 # Test if FILE is an executable regular file.
26286 as_fn_executable_p ()
26288 test -f "$1" && test -x "$1"
26289 } # as_fn_executable_p
26290 as_test_x='test -x'
26291 as_executable_p=as_fn_executable_p
26293 # Sed expression to map a string onto a valid CPP name.
26294 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26296 # Sed expression to map a string onto a valid variable name.
26297 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26301 ## ----------------------------------- ##
26302 ## Main body of $CONFIG_STATUS script. ##
26303 ## ----------------------------------- ##
26305 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26308 # Save the log message, to keep $0 and so on meaningful, and to
26309 # report actual input values of CONFIG_FILES etc. instead of their
26310 # values after options handling.
26312 This file was extended by libsndfile $as_me 1.2.2, which was
26313 generated by GNU Autoconf 2.71. Invocation command line was
26315 CONFIG_FILES = $CONFIG_FILES
26316 CONFIG_HEADERS = $CONFIG_HEADERS
26317 CONFIG_LINKS = $CONFIG_LINKS
26318 CONFIG_COMMANDS = $CONFIG_COMMANDS
26321 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26326 case $ac_config_files in *"
26327 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26330 case $ac_config_headers in *"
26331 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26336 # Files that config.status was made for.
26337 config_files="$ac_config_files"
26338 config_headers="$ac_config_headers"
26339 config_commands="$ac_config_commands"
26343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26345 \`$as_me' instantiates files and other configuration actions
26346 from templates according to the current configuration. Unless the files
26347 and actions are specified as TAGs, all are instantiated by default.
26349 Usage: $0 [OPTION]... [TAG]...
26351 -h, --help print this help, then exit
26352 -V, --version print version number and configuration settings, then exit
26353 --config print configuration, then exit
26354 -q, --quiet, --silent
26355 do not print progress messages
26356 -d, --debug don't remove temporary files
26357 --recheck update $as_me by reconfiguring in the same conditions
26358 --file=FILE[:TEMPLATE]
26359 instantiate the configuration file FILE
26360 --header=FILE[:TEMPLATE]
26361 instantiate the configuration header FILE
26363 Configuration files:
26366 Configuration headers:
26369 Configuration commands:
26372 Report bugs to <sndfile@mega-nerd.com>.
26373 libsndfile home page: <http://libsndfile.github.io/libsndfile/>."
26376 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
26377 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
26378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26379 ac_cs_config='$ac_cs_config_escaped'
26381 libsndfile config.status 1.2.2
26382 configured by $0, generated by GNU Autoconf 2.71,
26383 with options \\"\$ac_cs_config\\"
26385 Copyright (C) 2021 Free Software Foundation, Inc.
26386 This config.status script is free software; the Free Software Foundation
26387 gives unlimited permission to copy, distribute and modify it."
26394 test -n "\$AWK" || AWK=awk
26397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26398 # The default lists apply if the user does not specify any file.
26404 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26405 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26409 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26421 # Handling of the options.
26422 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26424 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26425 printf "%s\n" "$ac_cs_version"; exit ;;
26426 --config | --confi | --conf | --con | --co | --c )
26427 printf "%s\n" "$ac_cs_config"; exit ;;
26428 --debug | --debu | --deb | --de | --d | -d )
26430 --file | --fil | --fi | --f )
26433 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26434 '') as_fn_error $? "missing file argument" ;;
26436 as_fn_append CONFIG_FILES " '$ac_optarg'"
26437 ac_need_defaults=false;;
26438 --header | --heade | --head | --hea )
26441 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26443 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26444 ac_need_defaults=false;;
26446 # Conflict between --help and --header
26447 as_fn_error $? "ambiguous option: \`$1'
26448 Try \`$0 --help' for more information.";;
26449 --help | --hel | -h )
26450 printf "%s\n" "$ac_cs_usage"; exit ;;
26451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26452 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26455 # This is an error.
26456 -*) as_fn_error $? "unrecognized option: \`$1'
26457 Try \`$0 --help' for more information." ;;
26459 *) as_fn_append ac_config_targets " $1"
26460 ac_need_defaults=false ;;
26466 ac_configure_extra_args=
26468 if $ac_cs_silent; then
26470 ac_configure_extra_args="$ac_configure_extra_args --silent"
26474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26475 if \$ac_cs_recheck; then
26476 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26478 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
26479 CONFIG_SHELL='$SHELL'
26480 export CONFIG_SHELL
26485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26489 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26490 ## Running $as_me. ##
26492 printf "%s\n" "$ac_log"
26496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26500 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
26503 # The HP-UX ksh and POSIX shell print the target directory to stdout
26504 # if CDPATH is set.
26505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26507 sed_quote_subst='$sed_quote_subst'
26508 double_quote_subst='$double_quote_subst'
26509 delay_variable_subst='$delay_variable_subst'
26510 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26511 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26512 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26513 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26514 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26515 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26516 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26517 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26518 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26519 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
26520 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26521 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26522 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26523 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26524 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26525 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26526 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26527 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26528 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26529 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26530 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26531 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26532 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26533 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26534 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26535 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26536 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26537 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26538 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26539 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26540 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26541 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26542 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26543 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26544 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26545 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26546 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26547 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
26548 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26549 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26550 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26551 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26552 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26553 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26554 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
26555 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26556 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26557 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26558 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26559 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26560 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26561 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26562 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26563 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26564 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26565 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26566 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26567 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26568 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26569 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
26570 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26571 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"`'
26572 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
26573 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26574 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26575 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
26576 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26577 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26578 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26579 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26580 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26581 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26582 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26583 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26584 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26585 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26586 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26587 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26588 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26589 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26590 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26591 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26592 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26593 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26594 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26595 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26596 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26597 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26598 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26599 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26600 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26601 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26602 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26603 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26604 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26605 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26606 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26607 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26608 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26609 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26610 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26611 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26612 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26613 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26614 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26615 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26616 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26617 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26618 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26619 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26620 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26621 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26622 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26623 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26624 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26625 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26626 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26627 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26628 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26629 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26630 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26631 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26632 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26633 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26634 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26635 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26636 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26637 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26638 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26639 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26640 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
26641 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
26642 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26643 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26644 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26645 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26646 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26647 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26648 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26649 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26650 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26651 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26652 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26653 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26654 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26655 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
26656 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26657 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
26658 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26659 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
26660 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26661 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
26662 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26663 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
26664 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26665 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
26666 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26667 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
26668 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26669 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
26670 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26671 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
26672 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26673 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
26674 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26675 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
26676 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26677 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
26678 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26679 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
26680 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26681 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
26682 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26683 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
26684 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26685 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
26686 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26687 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
26688 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26689 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
26690 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26691 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
26692 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26693 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
26694 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26695 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
26696 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26697 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
26698 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26699 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
26700 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26701 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
26702 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26703 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
26704 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26705 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
26706 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26707 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
26708 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26709 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
26710 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26711 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
26712 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26713 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
26714 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26715 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
26716 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26717 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
26718 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26719 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
26720 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26721 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
26722 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26723 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
26724 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26725 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
26726 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26727 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
26728 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26729 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
26730 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26731 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
26732 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26733 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
26734 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26735 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
26736 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26737 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
26738 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26739 compiler_lib_search_dirs_RC='`$ECHO "$compiler_lib_search_dirs_RC" | $SED "$delay_single_quote_subst"`'
26740 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26741 predep_objects_RC='`$ECHO "$predep_objects_RC" | $SED "$delay_single_quote_subst"`'
26742 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26743 postdep_objects_RC='`$ECHO "$postdep_objects_RC" | $SED "$delay_single_quote_subst"`'
26744 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26745 predeps_RC='`$ECHO "$predeps_RC" | $SED "$delay_single_quote_subst"`'
26746 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26747 postdeps_RC='`$ECHO "$postdeps_RC" | $SED "$delay_single_quote_subst"`'
26748 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26749 compiler_lib_search_path_RC='`$ECHO "$compiler_lib_search_path_RC" | $SED "$delay_single_quote_subst"`'
26752 LTCFLAGS='$LTCFLAGS'
26753 compiler='$compiler_DEFAULT'
26755 # A function that is used when there is no print builtin or printf.
26756 func_fallback_echo ()
26758 eval 'cat <<_LTECHO_EOF
26763 # Quote evaled strings.
26781 deplibs_check_method \
26785 sharedlib_from_linklib_cmd \
26787 archiver_list_spec \
26793 lt_cv_sys_global_symbol_pipe \
26794 lt_cv_sys_global_symbol_to_cdecl \
26795 lt_cv_sys_global_symbol_to_import \
26796 lt_cv_sys_global_symbol_to_c_name_address \
26797 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26798 lt_cv_nm_interface \
26799 nm_file_list_spec \
26800 lt_cv_truncate_bin \
26801 lt_prog_compiler_no_builtin_flag \
26802 lt_prog_compiler_pic \
26803 lt_prog_compiler_wl \
26804 lt_prog_compiler_static \
26805 lt_cv_prog_compiler_c_o \
26814 export_dynamic_flag_spec \
26815 whole_archive_flag_spec \
26816 compiler_needs_object \
26818 allow_undefined_flag \
26819 no_undefined_flag \
26820 hardcode_libdir_flag_spec \
26821 hardcode_libdir_separator \
26825 variables_saved_for_relink \
26827 library_names_spec \
26829 install_override_mode \
26833 compiler_lib_search_dirs \
26838 compiler_lib_search_path \
26845 lt_prog_compiler_no_builtin_flag_CXX \
26846 lt_prog_compiler_no_builtin_flag_RC \
26847 lt_prog_compiler_pic_CXX \
26848 lt_prog_compiler_pic_RC \
26849 lt_prog_compiler_wl_CXX \
26850 lt_prog_compiler_wl_RC \
26851 lt_prog_compiler_static_CXX \
26852 lt_prog_compiler_static_RC \
26853 lt_cv_prog_compiler_c_o_CXX \
26854 lt_cv_prog_compiler_c_o_RC \
26855 export_dynamic_flag_spec_CXX \
26856 export_dynamic_flag_spec_RC \
26857 whole_archive_flag_spec_CXX \
26858 whole_archive_flag_spec_RC \
26859 compiler_needs_object_CXX \
26860 compiler_needs_object_RC \
26863 allow_undefined_flag_CXX \
26864 allow_undefined_flag_RC \
26865 no_undefined_flag_CXX \
26866 no_undefined_flag_RC \
26867 hardcode_libdir_flag_spec_CXX \
26868 hardcode_libdir_flag_spec_RC \
26869 hardcode_libdir_separator_CXX \
26870 hardcode_libdir_separator_RC \
26871 exclude_expsyms_CXX \
26872 exclude_expsyms_RC \
26873 include_expsyms_CXX \
26874 include_expsyms_RC \
26875 file_list_spec_CXX \
26876 file_list_spec_RC \
26877 compiler_lib_search_dirs_CXX \
26878 compiler_lib_search_dirs_RC \
26879 predep_objects_CXX \
26880 predep_objects_RC \
26881 postdep_objects_CXX \
26882 postdep_objects_RC \
26887 compiler_lib_search_path_CXX \
26888 compiler_lib_search_path_RC; do
26889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26890 *[\\\\\\\`\\"\\\$]*)
26891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26899 # Double-quote double-evaled strings.
26900 for var in reload_cmds \
26901 old_postinstall_cmds \
26902 old_postuninstall_cmds \
26904 extract_expsyms_cmds \
26905 old_archive_from_new_cmds \
26906 old_archive_from_expsyms_cmds \
26908 archive_expsym_cmds \
26910 module_expsym_cmds \
26911 export_symbols_cmds \
26915 postuninstall_cmds \
26917 sys_lib_search_path_spec \
26918 configure_time_dlsearch_path \
26919 configure_time_lt_sys_library_path \
26922 old_archive_cmds_CXX \
26923 old_archive_cmds_RC \
26924 old_archive_from_new_cmds_CXX \
26925 old_archive_from_new_cmds_RC \
26926 old_archive_from_expsyms_cmds_CXX \
26927 old_archive_from_expsyms_cmds_RC \
26930 archive_expsym_cmds_CXX \
26931 archive_expsym_cmds_RC \
26934 module_expsym_cmds_CXX \
26935 module_expsym_cmds_RC \
26936 export_symbols_cmds_CXX \
26937 export_symbols_cmds_RC \
26940 postlink_cmds_CXX \
26941 postlink_cmds_RC; do
26942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26943 *[\\\\\\\`\\"\\\$]*)
26944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
26947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26952 ac_aux_dir='$ac_aux_dir'
26954 # See if we are running on zsh, and set the options that allow our
26955 # commands through without removal of \ escapes INIT.
26956 if test -n "\${ZSH_VERSION+set}"; then
26957 setopt NO_GLOB_SUBST
26975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26977 # Handling of arguments.
26978 for ac_config_target in $ac_config_targets
26980 case $ac_config_target in
26981 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
26982 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26983 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26984 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26985 "Octave/Makefile") CONFIG_FILES="$CONFIG_FILES Octave/Makefile" ;;
26986 "src/version-metadata.rc") CONFIG_FILES="$CONFIG_FILES src/version-metadata.rc" ;;
26987 "tests/test_wrapper.sh") CONFIG_FILES="$CONFIG_FILES tests/test_wrapper.sh" ;;
26988 "tests/pedantic-header-test.sh") CONFIG_FILES="$CONFIG_FILES tests/pedantic-header-test.sh" ;;
26989 "sndfile.pc") CONFIG_FILES="$CONFIG_FILES sndfile.pc" ;;
26990 "Scripts/build-test-tarball.mk") CONFIG_FILES="$CONFIG_FILES Scripts/build-test-tarball.mk" ;;
26992 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26997 # If the user did not use the arguments to specify the items to instantiate,
26998 # then the envvar interface is used. Set only those that are not.
26999 # We use the long form for the default assignment because of an extremely
27000 # bizarre bug on SunOS 4.1.3.
27001 if $ac_need_defaults; then
27002 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
27003 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
27004 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
27007 # Have a temporary directory for convenience. Make it in the build tree
27008 # simply because there is no reason against having it here, and in addition,
27009 # creating and moving files from /tmp can sometimes cause problems.
27010 # Hook for its removal unless debugging.
27011 # Note that there is a small window in which the directory will not be cleaned:
27012 # after its creation but before its name has been assigned to `$tmp'.
27016 trap 'exit_status=$?
27017 : "${ac_tmp:=$tmp}"
27018 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27020 trap 'as_fn_exit 1' 1 2 13 15
27022 # Create a (secure) tmp directory for tmp files.
27025 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27029 tmp=./conf$$-$RANDOM
27030 (umask 077 && mkdir "$tmp")
27031 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27034 # Set up the scripts for CONFIG_FILES section.
27035 # No need to generate them if there are no CONFIG_FILES.
27036 # This happens for instance with `./config.status config.h'.
27037 if test -n "$CONFIG_FILES"; then
27040 ac_cr=`echo X | tr X '\015'`
27041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27042 # But we know of no other shell where ac_cr would be empty at this
27043 # point, so we can use a bashism as a fallback.
27044 if test "x$ac_cr" = x; then
27045 eval ac_cr=\$\'\\r\'
27047 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27051 ac_cs_awk_cr=$ac_cr
27054 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27059 echo "cat >conf$$subs.awk <<_ACEOF" &&
27060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27062 } >conf$$subs.sh ||
27063 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27066 for ac_last_try in false false false false false :; do
27067 . ./conf$$subs.sh ||
27068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27071 if test $ac_delim_n = $ac_delim_num; then
27073 elif $ac_last_try; then
27074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27079 rm -f conf$$subs.sh
27081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27082 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27086 s/^/S["/; s/!.*/"]=/
27096 s/\(.\{148\}\)..*/\1/
27098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27110 s/\(.\{148\}\)..*/\1/
27112 s/["\\]/\\&/g; s/^/"/; s/$/"/
27116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27121 ' <conf$$subs.awk | sed '
27126 ' >>$CONFIG_STATUS || ac_write_fail=1
27127 rm -f conf$$subs.awk
27128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27130 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27131 for (key in S) S_is_set[key] = 1
27137 nfields = split(line, field, "@")
27139 len = length(field[1])
27140 for (i = 2; i < nfields; i++) {
27142 keylen = length(key)
27143 if (S_is_set[key]) {
27145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27146 len += length(value) + length(field[++i])
27157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27162 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27163 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27166 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27167 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27168 # trailing colons and then remove the whole line if VPATH becomes empty
27169 # (actually we leave an empty line to preserve line numbers).
27170 if test "x$srcdir" = x.; then
27171 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
27189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27190 fi # test -n "$CONFIG_FILES"
27192 # Set up the scripts for CONFIG_HEADERS section.
27193 # No need to generate them if there are no CONFIG_HEADERS.
27194 # This happens for instance with `./config.status Makefile'.
27195 if test -n "$CONFIG_HEADERS"; then
27196 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27200 # Transform confdefs.h into an awk script `defines.awk', embedded as
27201 # here-document in config.status, that substitutes the proper values into
27202 # config.h.in to produce config.h.
27204 # Create a delimiter string that does not exist in confdefs.h, to ease
27205 # handling of long lines.
27207 for ac_last_try in false false :; do
27208 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27209 if test -z "$ac_tt"; then
27211 elif $ac_last_try; then
27212 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27214 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27218 # For the awk script, D is an array of macro values keyed by name,
27219 # likewise P contains macro parameters if any. Preserve backslash
27220 # newline sequences.
27222 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27224 s/.\{148\}/&'"$ac_delim"'/g
27227 s/^[ ]*#[ ]*define[ ][ ]*/ /
27234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27236 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27240 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27241 D["\1"]=" \3\\\\\\n"\\/p
27243 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27248 s/.\{148\}/&'"$ac_delim"'/g
27253 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27256 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27258 ' <confdefs.h | sed '
27259 s/'"$ac_delim"'/"\\\
27260 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27263 for (key in D) D_is_set[key] = 1
27266 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27268 split(line, arg, " ")
27269 if (arg[1] == "#") {
27273 defundef = substr(arg[1], 2)
27276 split(mac1, mac2, "(") #)
27278 prefix = substr(line, 1, index(line, defundef) - 1)
27279 if (D_is_set[macro]) {
27280 # Preserve the white space surrounding the "#".
27281 print prefix "define", macro P[macro] D[macro]
27284 # Replace #undef with comments. This is necessary, for example,
27285 # in the case of _POSIX_SOURCE, which is predefined and required
27286 # on some systems where configure will not decide to define it.
27287 if (defundef == "undef") {
27288 print "/*", prefix defundef, macro, "*/"
27296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27297 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27298 fi # test -n "$CONFIG_HEADERS"
27301 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27306 :[FHLC]) ac_mode=$ac_tag; continue;;
27308 case $ac_mode$ac_tag in
27310 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27311 :[FH]-) ac_tag=-:-;;
27312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27329 -) ac_f="$ac_tmp/stdin";;
27330 *) # Look for the file first in the build tree, then in the source tree
27331 # (if the path is not absolute). The absolute path cannot be DOS-style,
27332 # because $ac_f cannot contain `:'.
27336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27338 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27340 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27341 as_fn_append ac_file_inputs " '$ac_f'"
27344 # Let's still pretend it is `configure' which instantiates (i.e., don't
27345 # use $as_me), people would be surprised to read:
27346 # /* config.h. Generated by config.status. */
27347 configure_input='Generated from '`
27348 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27350 if test x"$ac_file" != x-; then
27351 configure_input="$ac_file. $configure_input"
27352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27353 printf "%s\n" "$as_me: creating $ac_file" >&6;}
27355 # Neutralize special characters interpreted by sed in replacement strings.
27356 case $configure_input in #(
27357 *\&* | *\|* | *\\* )
27358 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
27359 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27360 *) ac_sed_conf_input=$configure_input;;
27364 *:-:* | *:-) cat >"$ac_tmp/stdin" \
27365 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27370 ac_dir=`$as_dirname -- "$ac_file" ||
27371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27372 X"$ac_file" : 'X\(//\)[^/]' \| \
27373 X"$ac_file" : 'X\(//\)$' \| \
27374 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27375 printf "%s\n" X"$ac_file" |
27376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27380 /^X\(\/\/\)[^/].*/{
27393 as_dir="$ac_dir"; as_fn_mkdir_p
27397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27399 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
27400 # A ".." for each directory in $ac_dir_suffix.
27401 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27402 case $ac_top_builddir_sub in
27403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27407 ac_abs_top_builddir=$ac_pwd
27408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27409 # for backward compatibility:
27410 ac_top_builddir=$ac_top_build_prefix
27413 .) # We are building in place.
27415 ac_top_srcdir=$ac_top_builddir_sub
27416 ac_abs_top_srcdir=$ac_pwd ;;
27417 [\\/]* | ?:[\\/]* ) # Absolute name.
27418 ac_srcdir=$srcdir$ac_dir_suffix;
27419 ac_top_srcdir=$srcdir
27420 ac_abs_top_srcdir=$srcdir ;;
27421 *) # Relative name.
27422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27423 ac_top_srcdir=$ac_top_build_prefix$srcdir
27424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27436 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27437 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27439 ac_MKDIR_P=$MKDIR_P
27441 [\\/$]* | ?:[\\/]* ) ;;
27442 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27447 # If the template does not know about datarootdir, expand it.
27448 # FIXME: This hack should be removed a few years after 2.60.
27449 ac_datarootdir_hack=; ac_datarootdir_seen=
27460 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27461 *datarootdir*) ac_datarootdir_seen=yes;;
27462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27464 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27467 ac_datarootdir_hack='
27468 s&@datadir@&$datadir&g
27469 s&@docdir@&$docdir&g
27470 s&@infodir@&$infodir&g
27471 s&@localedir@&$localedir&g
27472 s&@mandir@&$mandir&g
27473 s&\\\${datarootdir}&$datarootdir&g' ;;
27477 # Neutralize VPATH when `$srcdir' = `.'.
27478 # Shell code in configure.ac might set extrasub.
27479 # FIXME: do we really want to maintain this feature?
27480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27481 ac_sed_extra="$ac_vpsub
27484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27487 s|@configure_input@|$ac_sed_conf_input|;t t
27488 s&@top_builddir@&$ac_top_builddir_sub&;t t
27489 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27490 s&@srcdir@&$ac_srcdir&;t t
27491 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27492 s&@top_srcdir@&$ac_top_srcdir&;t t
27493 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27494 s&@builddir@&$ac_builddir&;t t
27495 s&@abs_builddir@&$ac_abs_builddir&;t t
27496 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27497 s&@INSTALL@&$ac_INSTALL&;t t
27498 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27499 $ac_datarootdir_hack
27501 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27502 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27504 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27505 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27506 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
27507 "$ac_tmp/out"`; test -z "$ac_out"; } &&
27508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27509 which seems to be undefined. Please make sure it is defined" >&5
27510 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27511 which seems to be undefined. Please make sure it is defined" >&2;}
27513 rm -f "$ac_tmp/stdin"
27515 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27516 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27518 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27524 if test x"$ac_file" != x-; then
27526 printf "%s\n" "/* $configure_input */" >&1 \
27527 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27528 } >"$ac_tmp/config.h" \
27529 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27530 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27532 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
27535 mv "$ac_tmp/config.h" "$ac_file" \
27536 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27539 printf "%s\n" "/* $configure_input */" >&1 \
27540 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27541 || as_fn_error $? "could not create -" "$LINENO" 5
27543 # Compute "$ac_file"'s index in $config_headers.
27546 for _am_header in $config_headers :; do
27547 case $_am_header in
27548 $_am_arg | $_am_arg:* )
27551 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27554 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27555 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27556 X"$_am_arg" : 'X\(//\)[^/]' \| \
27557 X"$_am_arg" : 'X\(//\)$' \| \
27558 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27559 printf "%s\n" X"$_am_arg" |
27560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27564 /^X\(\/\/\)[^/].*/{
27576 s/.*/./; q'`/stamp-h$_am_stamp_count
27579 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27580 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
27585 case $ac_file$ac_mode in
27586 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27587 # Older Autoconf quotes --file arguments for eval, but not when files
27588 # are listed without --file. Let's play safe and only enable the eval
27589 # if we detect the quoting.
27590 # TODO: see whether this extra hack can be removed once we start
27591 # requiring Autoconf 2.70 or later.
27592 case $CONFIG_FILES in #(
27594 eval set x "$CONFIG_FILES" ;; #(
27596 set x $CONFIG_FILES ;; #(
27601 # Used to flag and report bootstrapping failures.
27605 # Strip MF so we end up with the name of the file.
27606 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
27607 # Check whether this is an Automake generated Makefile which includes
27608 # dependency-tracking related rules and includes.
27609 # Grep'ing the whole file directly is not great: AIX grep has a line
27610 # limit of 2048, but all sed's we know have understand at least 4000.
27611 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
27613 am_dirpart=`$as_dirname -- "$am_mf" ||
27614 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27615 X"$am_mf" : 'X\(//\)[^/]' \| \
27616 X"$am_mf" : 'X\(//\)$' \| \
27617 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27618 printf "%s\n" X"$am_mf" |
27619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27623 /^X\(\/\/\)[^/].*/{
27636 am_filepart=`$as_basename -- "$am_mf" ||
27637 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
27638 X"$am_mf" : 'X\(//\)$' \| \
27639 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
27640 printf "%s\n" X/"$am_mf" |
27641 sed '/^.*\/\([^/][^/]*\)\/*$/{
27654 { echo "$as_me:$LINENO: cd "$am_dirpart" \
27655 && sed -e '/# am--include-marker/d' "$am_filepart" \
27656 | $MAKE -f - am--depfiles" >&5
27657 (cd "$am_dirpart" \
27658 && sed -e '/# am--include-marker/d' "$am_filepart" \
27659 | $MAKE -f - am--depfiles) >&5 2>&5
27661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } || am_rc=$?
27664 if test $am_rc -ne 0; then
27665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27666 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
27667 as_fn_error $? "Something went wrong bootstrapping makefile fragments
27668 for automatic dependency tracking. If GNU make was not used, consider
27669 re-running the configure script with MAKE=\"gmake\" (or whatever is
27670 necessary). You can also try re-running configure with the
27671 '--disable-dependency-tracking' option to at least be able to build
27672 the package (albeit without support for automatic dependency tracking).
27673 See \`config.log' for more details" "$LINENO" 5; }
27675 { am_dirpart=; unset am_dirpart;}
27676 { am_filepart=; unset am_filepart;}
27677 { am_mf=; unset am_mf;}
27678 { am_rc=; unset am_rc;}
27679 rm -f conftest-deps.mk
27684 # See if we are running on zsh, and set the options that allow our
27685 # commands through without removal of \ escapes.
27686 if test -n "${ZSH_VERSION+set}"; then
27687 setopt NO_GLOB_SUBST
27691 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27694 cat <<_LT_EOF >> "$cfgfile"
27696 # Generated automatically by $as_me ($PACKAGE) $VERSION
27697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27700 # Provide generalized library-building support services.
27701 # Written by Gordon Matzigkeit, 1996
27703 # Copyright (C) 2014 Free Software Foundation, Inc.
27704 # This is free software; see the source for copying conditions. There is NO
27705 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27707 # GNU Libtool is free software; you can redistribute it and/or modify
27708 # it under the terms of the GNU General Public License as published by
27709 # the Free Software Foundation; either version 2 of of the License, or
27710 # (at your option) any later version.
27712 # As a special exception to the GNU General Public License, if you
27713 # distribute this file as part of a program or library that is built
27714 # using GNU Libtool, you may include this file under the same
27715 # distribution terms that you use for the rest of that program.
27717 # GNU Libtool is distributed in the hope that it will be useful, but
27718 # WITHOUT ANY WARRANTY; without even the implied warranty of
27719 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27720 # GNU General Public License for more details.
27722 # You should have received a copy of the GNU General Public License
27723 # along with this program. If not, see <http://www.gnu.org/licenses/>.
27726 # The names of the tagged configurations supported by this script.
27727 available_tags='CXX RC '
27729 # Configured defaults for sys_lib_dlsearch_path munging.
27730 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
27732 # ### BEGIN LIBTOOL CONFIG
27734 # Which release of libtool.m4 was used?
27735 macro_version=$macro_version
27736 macro_revision=$macro_revision
27738 # Whether or not to build static libraries.
27739 build_old_libs=$enable_static
27741 # Assembler program.
27744 # DLL creation program.
27745 DLLTOOL=$lt_DLLTOOL
27747 # Object dumper program.
27748 OBJDUMP=$lt_OBJDUMP
27750 # Whether or not to build shared libraries.
27751 build_libtool_libs=$enable_shared
27753 # What type of objects to build.
27756 # Whether or not to optimize for fast installation.
27757 fast_install=$enable_fast_install
27759 # Shared archive member basename,for filename based shared library versioning on AIX.
27760 shared_archive_member_spec=$shared_archive_member_spec
27762 # Shell to use when invoking shell scripts.
27765 # An echo program that protects backslashes.
27768 # The PATH separator for the build system.
27769 PATH_SEPARATOR=$lt_PATH_SEPARATOR
27772 host_alias=$host_alias
27776 # The build system.
27777 build_alias=$build_alias
27781 # A sed program that does not truncate output.
27784 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27785 Xsed="\$SED -e 1s/^X//"
27787 # A grep program that handles long lines.
27793 # A literal string matcher.
27796 # A BSD- or MS-compatible name lister.
27799 # Whether we need soft or hard links.
27802 # What is the maximum length of a command?
27803 max_cmd_len=$max_cmd_len
27805 # Object file suffix (normally "o").
27808 # Executable file suffix (normally "").
27811 # whether the shell understands "unset".
27814 # turn spaces into newlines.
27817 # turn newlines into spaces.
27820 # convert \$build file names to \$host format.
27821 to_host_file_cmd=$lt_cv_to_host_file_cmd
27823 # convert \$build files to toolchain format.
27824 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
27826 # A file(cmd) program that detects file types.
27827 FILECMD=$lt_FILECMD
27829 # Method to check whether dependent libraries are shared objects.
27830 deplibs_check_method=$lt_deplibs_check_method
27832 # Command to use when deplibs_check_method = "file_magic".
27833 file_magic_cmd=$lt_file_magic_cmd
27835 # How to find potential files when deplibs_check_method = "file_magic".
27836 file_magic_glob=$lt_file_magic_glob
27838 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
27839 want_nocaseglob=$lt_want_nocaseglob
27841 # Command to associate shared and link libraries.
27842 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
27847 # Flags to create an archive (by configure).
27848 lt_ar_flags=$lt_ar_flags
27850 # Flags to create an archive.
27851 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
27853 # How to feed a file listing to the archiver.
27854 archiver_list_spec=$lt_archiver_list_spec
27856 # A symbol stripping program.
27859 # Commands used to install an old-style archive.
27861 old_postinstall_cmds=$lt_old_postinstall_cmds
27862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27864 # Whether to use a lock for old archive extraction.
27865 lock_old_archive_extraction=$lock_old_archive_extraction
27870 # LTCC compiler flags.
27871 LTCFLAGS=$lt_CFLAGS
27873 # Take the output of nm and produce a listing of raw symbols and C names.
27874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27876 # Transform the output of nm in a proper C declaration.
27877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27879 # Transform the output of nm into a list of symbols to manually relocate.
27880 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
27882 # Transform the output of nm in a C name address pair.
27883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27885 # Transform the output of nm in a C name address pair when lib prefix is needed.
27886 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27888 # The name lister interface.
27889 nm_interface=$lt_lt_cv_nm_interface
27891 # Specify filename containing input files for \$NM.
27892 nm_file_list_spec=$lt_nm_file_list_spec
27894 # The root where to search for dependent libraries,and where our libraries should be installed.
27895 lt_sysroot=$lt_sysroot
27897 # Command to truncate a binary pipe.
27898 lt_truncate_bin=$lt_lt_cv_truncate_bin
27900 # The name of the directory that contains temporary libtool files.
27903 # Used to examine libraries when file_magic_cmd begins with "file".
27904 MAGIC_CMD=$MAGIC_CMD
27906 # Must we lock files when doing compilation?
27907 need_locks=$lt_need_locks
27910 MANIFEST_TOOL=$lt_MANIFEST_TOOL
27912 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27913 DSYMUTIL=$lt_DSYMUTIL
27915 # Tool to change global to local symbols on Mac OS X.
27918 # Tool to manipulate fat objects and archives on Mac OS X.
27921 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27924 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27925 OTOOL64=$lt_OTOOL64
27927 # Old archive suffix (normally "a").
27930 # Shared library suffix (normally ".so").
27931 shrext_cmds=$lt_shrext_cmds
27933 # The commands to extract the exported symbol list from a shared archive.
27934 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27936 # Variables whose values should be saved in libtool wrapper scripts and
27937 # restored at link time.
27938 variables_saved_for_relink=$lt_variables_saved_for_relink
27940 # Do we need the "lib" prefix for modules?
27941 need_lib_prefix=$need_lib_prefix
27943 # Do we need a version for libraries?
27944 need_version=$need_version
27946 # Library versioning type.
27947 version_type=$version_type
27949 # Shared library runtime path variable.
27950 runpath_var=$runpath_var
27952 # Shared library path variable.
27953 shlibpath_var=$shlibpath_var
27955 # Is shlibpath searched before the hard-coded library search path?
27956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27958 # Format of library name prefix.
27959 libname_spec=$lt_libname_spec
27961 # List of archive names. First name is the real one, the rest are links.
27962 # The last name is the one that the linker finds with -lNAME
27963 library_names_spec=$lt_library_names_spec
27965 # The coded name of the library, if different from the real name.
27966 soname_spec=$lt_soname_spec
27968 # Permission mode override for installation of shared libraries.
27969 install_override_mode=$lt_install_override_mode
27971 # Command to use after installation of a shared archive.
27972 postinstall_cmds=$lt_postinstall_cmds
27974 # Command to use after uninstallation of a shared archive.
27975 postuninstall_cmds=$lt_postuninstall_cmds
27977 # Commands used to finish a libtool library installation in a directory.
27978 finish_cmds=$lt_finish_cmds
27980 # As "finish_cmds", except a single script fragment to be evaled but
27982 finish_eval=$lt_finish_eval
27984 # Whether we should hardcode library paths into libraries.
27985 hardcode_into_libs=$hardcode_into_libs
27987 # Compile-time system search path for libraries.
27988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27990 # Detected run-time system search path for libraries.
27991 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
27993 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
27994 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
27996 # Whether dlopen is supported.
27997 dlopen_support=$enable_dlopen
27999 # Whether dlopen of programs is supported.
28000 dlopen_self=$enable_dlopen_self
28002 # Whether dlopen of statically linked programs is supported.
28003 dlopen_self_static=$enable_dlopen_self_static
28005 # Commands to strip libraries.
28006 old_striplib=$lt_old_striplib
28007 striplib=$lt_striplib
28010 # The linker used to build libraries.
28013 # How to create reloadable object files.
28014 reload_flag=$lt_reload_flag
28015 reload_cmds=$lt_reload_cmds
28017 # Commands used to build an old-style archive.
28018 old_archive_cmds=$lt_old_archive_cmds
28020 # A language specific compiler.
28023 # Is the compiler the GNU compiler?
28026 # Compiler flag to turn off builtin functions.
28027 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28029 # Additional compiler flags for building library objects.
28030 pic_flag=$lt_lt_prog_compiler_pic
28032 # How to pass a linker flag through the compiler.
28033 wl=$lt_lt_prog_compiler_wl
28035 # Compiler flag to prevent dynamic linking.
28036 link_static_flag=$lt_lt_prog_compiler_static
28038 # Does compiler simultaneously support -c and -o options?
28039 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28041 # Whether or not to add -lc for building shared libraries.
28042 build_libtool_need_lc=$archive_cmds_need_lc
28044 # Whether or not to disallow shared libs when runtime libs are static.
28045 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28047 # Compiler flag to allow reflexive dlopens.
28048 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28050 # Compiler flag to generate shared objects directly from archives.
28051 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28053 # Whether the compiler copes with passing no objects directly.
28054 compiler_needs_object=$lt_compiler_needs_object
28056 # Create an old-style archive from a shared archive.
28057 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28059 # Create a temporary old-style archive to link instead of a shared archive.
28060 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28062 # Commands used to build a shared archive.
28063 archive_cmds=$lt_archive_cmds
28064 archive_expsym_cmds=$lt_archive_expsym_cmds
28066 # Commands used to build a loadable module if different from building
28067 # a shared archive.
28068 module_cmds=$lt_module_cmds
28069 module_expsym_cmds=$lt_module_expsym_cmds
28071 # Whether we are building with GNU ld or not.
28072 with_gnu_ld=$lt_with_gnu_ld
28074 # Flag that allows shared libraries with undefined symbols to be built.
28075 allow_undefined_flag=$lt_allow_undefined_flag
28077 # Flag that enforces no undefined symbols.
28078 no_undefined_flag=$lt_no_undefined_flag
28080 # Flag to hardcode \$libdir into a binary during linking.
28081 # This must work even if \$libdir does not exist
28082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28084 # Whether we need a single "-rpath" flag with a separated argument.
28085 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28087 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28088 # DIR into the resulting binary.
28089 hardcode_direct=$hardcode_direct
28091 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28092 # DIR into the resulting binary and the resulting library dependency is
28093 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28094 # library is relocated.
28095 hardcode_direct_absolute=$hardcode_direct_absolute
28097 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28098 # into the resulting binary.
28099 hardcode_minus_L=$hardcode_minus_L
28101 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28102 # into the resulting binary.
28103 hardcode_shlibpath_var=$hardcode_shlibpath_var
28105 # Set to "yes" if building a shared library automatically hardcodes DIR
28106 # into the library and all subsequent libraries and executables linked
28108 hardcode_automatic=$hardcode_automatic
28110 # Set to yes if linker adds runtime paths of dependent libraries
28111 # to runtime path list.
28112 inherit_rpath=$inherit_rpath
28114 # Whether libtool must link a program against all its dependency libraries.
28115 link_all_deplibs=$link_all_deplibs
28117 # Set to "yes" if exported symbols are required.
28118 always_export_symbols=$always_export_symbols
28120 # The commands to list exported symbols.
28121 export_symbols_cmds=$lt_export_symbols_cmds
28123 # Symbols that should not be listed in the preloaded symbols.
28124 exclude_expsyms=$lt_exclude_expsyms
28126 # Symbols that must always be exported.
28127 include_expsyms=$lt_include_expsyms
28129 # Commands necessary for linking programs (against libraries) with templates.
28130 prelink_cmds=$lt_prelink_cmds
28132 # Commands necessary for finishing linking programs.
28133 postlink_cmds=$lt_postlink_cmds
28135 # Specify filename containing input files.
28136 file_list_spec=$lt_file_list_spec
28138 # How to hardcode a shared library path into an executable.
28139 hardcode_action=$hardcode_action
28141 # The directories searched by this compiler when creating a shared library.
28142 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28144 # Dependencies to place before and after the objects being linked to
28145 # create a shared library.
28146 predep_objects=$lt_predep_objects
28147 postdep_objects=$lt_postdep_objects
28148 predeps=$lt_predeps
28149 postdeps=$lt_postdeps
28151 # The library search path used internally by the compiler when linking
28152 # a shared library.
28153 compiler_lib_search_path=$lt_compiler_lib_search_path
28155 # ### END LIBTOOL CONFIG
28159 cat <<'_LT_EOF' >> "$cfgfile"
28161 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28163 # func_munge_path_list VARIABLE PATH
28164 # -----------------------------------
28165 # VARIABLE is name of variable containing _space_ separated list of
28166 # directories to be munged by the contents of PATH, which is string
28169 # string "DIR[ DIR]" will be prepended to VARIABLE
28171 # string "DIR[ DIR]" will be appended to VARIABLE
28172 # "DIRP[:DIRP]::[DIRA:]DIRA"
28173 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28174 # "DIRA[ DIRA]" will be appended to VARIABLE
28176 # VARIABLE will be replaced by "DIR[ DIR]"
28177 func_munge_path_list ()
28183 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28186 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28189 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28190 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28193 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28199 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
28200 func_cc_basename ()
28202 for cc_temp in $*""; do
28204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28210 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28214 # ### END FUNCTIONS SHARED WITH CONFIGURE
28220 cat <<\_LT_EOF >> "$cfgfile"
28221 # AIX sometimes has problems with the GCC collect2 program. For some
28222 # reason, if we set the COLLECT_NAMES environment variable, the problems
28223 # vanish in a puff of smoke.
28224 if test set != "${COLLECT_NAMES+set}"; then
28226 export COLLECT_NAMES
28234 ltmain=$ac_aux_dir/ltmain.sh
28237 # We use sed instead of cat because bash on DJGPP gets confused if
28238 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28239 # text mode, it properly converts lines to CR/LF. This bash problem
28240 # is reportedly fixed, but why not run on old versions too?
28241 $SED '$q' "$ltmain" >> "$cfgfile" \
28242 || (rm -f "$cfgfile"; exit 1)
28244 mv -f "$cfgfile" "$ofile" ||
28245 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28249 cat <<_LT_EOF >> "$ofile"
28251 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28253 # The linker used to build libraries.
28256 # How to create reloadable object files.
28257 reload_flag=$lt_reload_flag_CXX
28258 reload_cmds=$lt_reload_cmds_CXX
28260 # Commands used to build an old-style archive.
28261 old_archive_cmds=$lt_old_archive_cmds_CXX
28263 # A language specific compiler.
28264 CC=$lt_compiler_CXX
28266 # Is the compiler the GNU compiler?
28269 # Compiler flag to turn off builtin functions.
28270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28272 # Additional compiler flags for building library objects.
28273 pic_flag=$lt_lt_prog_compiler_pic_CXX
28275 # How to pass a linker flag through the compiler.
28276 wl=$lt_lt_prog_compiler_wl_CXX
28278 # Compiler flag to prevent dynamic linking.
28279 link_static_flag=$lt_lt_prog_compiler_static_CXX
28281 # Does compiler simultaneously support -c and -o options?
28282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28284 # Whether or not to add -lc for building shared libraries.
28285 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28287 # Whether or not to disallow shared libs when runtime libs are static.
28288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28290 # Compiler flag to allow reflexive dlopens.
28291 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28293 # Compiler flag to generate shared objects directly from archives.
28294 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28296 # Whether the compiler copes with passing no objects directly.
28297 compiler_needs_object=$lt_compiler_needs_object_CXX
28299 # Create an old-style archive from a shared archive.
28300 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28302 # Create a temporary old-style archive to link instead of a shared archive.
28303 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28305 # Commands used to build a shared archive.
28306 archive_cmds=$lt_archive_cmds_CXX
28307 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28309 # Commands used to build a loadable module if different from building
28310 # a shared archive.
28311 module_cmds=$lt_module_cmds_CXX
28312 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28314 # Whether we are building with GNU ld or not.
28315 with_gnu_ld=$lt_with_gnu_ld_CXX
28317 # Flag that allows shared libraries with undefined symbols to be built.
28318 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28320 # Flag that enforces no undefined symbols.
28321 no_undefined_flag=$lt_no_undefined_flag_CXX
28323 # Flag to hardcode \$libdir into a binary during linking.
28324 # This must work even if \$libdir does not exist
28325 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28327 # Whether we need a single "-rpath" flag with a separated argument.
28328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28330 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28331 # DIR into the resulting binary.
28332 hardcode_direct=$hardcode_direct_CXX
28334 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28335 # DIR into the resulting binary and the resulting library dependency is
28336 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28337 # library is relocated.
28338 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28341 # into the resulting binary.
28342 hardcode_minus_L=$hardcode_minus_L_CXX
28344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28345 # into the resulting binary.
28346 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28348 # Set to "yes" if building a shared library automatically hardcodes DIR
28349 # into the library and all subsequent libraries and executables linked
28351 hardcode_automatic=$hardcode_automatic_CXX
28353 # Set to yes if linker adds runtime paths of dependent libraries
28354 # to runtime path list.
28355 inherit_rpath=$inherit_rpath_CXX
28357 # Whether libtool must link a program against all its dependency libraries.
28358 link_all_deplibs=$link_all_deplibs_CXX
28360 # Set to "yes" if exported symbols are required.
28361 always_export_symbols=$always_export_symbols_CXX
28363 # The commands to list exported symbols.
28364 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28366 # Symbols that should not be listed in the preloaded symbols.
28367 exclude_expsyms=$lt_exclude_expsyms_CXX
28369 # Symbols that must always be exported.
28370 include_expsyms=$lt_include_expsyms_CXX
28372 # Commands necessary for linking programs (against libraries) with templates.
28373 prelink_cmds=$lt_prelink_cmds_CXX
28375 # Commands necessary for finishing linking programs.
28376 postlink_cmds=$lt_postlink_cmds_CXX
28378 # Specify filename containing input files.
28379 file_list_spec=$lt_file_list_spec_CXX
28381 # How to hardcode a shared library path into an executable.
28382 hardcode_action=$hardcode_action_CXX
28384 # The directories searched by this compiler when creating a shared library.
28385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28387 # Dependencies to place before and after the objects being linked to
28388 # create a shared library.
28389 predep_objects=$lt_predep_objects_CXX
28390 postdep_objects=$lt_postdep_objects_CXX
28391 predeps=$lt_predeps_CXX
28392 postdeps=$lt_postdeps_CXX
28394 # The library search path used internally by the compiler when linking
28395 # a shared library.
28396 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28398 # ### END LIBTOOL TAG CONFIG: CXX
28402 cat <<_LT_EOF >> "$ofile"
28404 # ### BEGIN LIBTOOL TAG CONFIG: RC
28406 # The linker used to build libraries.
28409 # How to create reloadable object files.
28410 reload_flag=$lt_reload_flag_RC
28411 reload_cmds=$lt_reload_cmds_RC
28413 # Commands used to build an old-style archive.
28414 old_archive_cmds=$lt_old_archive_cmds_RC
28416 # A language specific compiler.
28419 # Is the compiler the GNU compiler?
28422 # Compiler flag to turn off builtin functions.
28423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
28425 # Additional compiler flags for building library objects.
28426 pic_flag=$lt_lt_prog_compiler_pic_RC
28428 # How to pass a linker flag through the compiler.
28429 wl=$lt_lt_prog_compiler_wl_RC
28431 # Compiler flag to prevent dynamic linking.
28432 link_static_flag=$lt_lt_prog_compiler_static_RC
28434 # Does compiler simultaneously support -c and -o options?
28435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28437 # Whether or not to add -lc for building shared libraries.
28438 build_libtool_need_lc=$archive_cmds_need_lc_RC
28440 # Whether or not to disallow shared libs when runtime libs are static.
28441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28443 # Compiler flag to allow reflexive dlopens.
28444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
28446 # Compiler flag to generate shared objects directly from archives.
28447 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
28449 # Whether the compiler copes with passing no objects directly.
28450 compiler_needs_object=$lt_compiler_needs_object_RC
28452 # Create an old-style archive from a shared archive.
28453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
28455 # Create a temporary old-style archive to link instead of a shared archive.
28456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
28458 # Commands used to build a shared archive.
28459 archive_cmds=$lt_archive_cmds_RC
28460 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
28462 # Commands used to build a loadable module if different from building
28463 # a shared archive.
28464 module_cmds=$lt_module_cmds_RC
28465 module_expsym_cmds=$lt_module_expsym_cmds_RC
28467 # Whether we are building with GNU ld or not.
28468 with_gnu_ld=$lt_with_gnu_ld_RC
28470 # Flag that allows shared libraries with undefined symbols to be built.
28471 allow_undefined_flag=$lt_allow_undefined_flag_RC
28473 # Flag that enforces no undefined symbols.
28474 no_undefined_flag=$lt_no_undefined_flag_RC
28476 # Flag to hardcode \$libdir into a binary during linking.
28477 # This must work even if \$libdir does not exist
28478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28480 # Whether we need a single "-rpath" flag with a separated argument.
28481 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28483 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28484 # DIR into the resulting binary.
28485 hardcode_direct=$hardcode_direct_RC
28487 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28488 # DIR into the resulting binary and the resulting library dependency is
28489 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
28490 # library is relocated.
28491 hardcode_direct_absolute=$hardcode_direct_absolute_RC
28493 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28494 # into the resulting binary.
28495 hardcode_minus_L=$hardcode_minus_L_RC
28497 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28498 # into the resulting binary.
28499 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28501 # Set to "yes" if building a shared library automatically hardcodes DIR
28502 # into the library and all subsequent libraries and executables linked
28504 hardcode_automatic=$hardcode_automatic_RC
28506 # Set to yes if linker adds runtime paths of dependent libraries
28507 # to runtime path list.
28508 inherit_rpath=$inherit_rpath_RC
28510 # Whether libtool must link a program against all its dependency libraries.
28511 link_all_deplibs=$link_all_deplibs_RC
28513 # Set to "yes" if exported symbols are required.
28514 always_export_symbols=$always_export_symbols_RC
28516 # The commands to list exported symbols.
28517 export_symbols_cmds=$lt_export_symbols_cmds_RC
28519 # Symbols that should not be listed in the preloaded symbols.
28520 exclude_expsyms=$lt_exclude_expsyms_RC
28522 # Symbols that must always be exported.
28523 include_expsyms=$lt_include_expsyms_RC
28525 # Commands necessary for linking programs (against libraries) with templates.
28526 prelink_cmds=$lt_prelink_cmds_RC
28528 # Commands necessary for finishing linking programs.
28529 postlink_cmds=$lt_postlink_cmds_RC
28531 # Specify filename containing input files.
28532 file_list_spec=$lt_file_list_spec_RC
28534 # How to hardcode a shared library path into an executable.
28535 hardcode_action=$hardcode_action_RC
28537 # The directories searched by this compiler when creating a shared library.
28538 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
28540 # Dependencies to place before and after the objects being linked to
28541 # create a shared library.
28542 predep_objects=$lt_predep_objects_RC
28543 postdep_objects=$lt_postdep_objects_RC
28544 predeps=$lt_predeps_RC
28545 postdeps=$lt_postdeps_RC
28547 # The library search path used internally by the compiler when linking
28548 # a shared library.
28549 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
28551 # ### END LIBTOOL TAG CONFIG: RC
28562 ac_clean_files=$ac_clean_files_save
28564 test $ac_write_fail = 0 ||
28565 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28568 # configure is writing to config.log, and then calls config.status.
28569 # config.status does its own redirection, appending to config.log.
28570 # Unfortunately, on DOS this fails, as config.log is still kept open
28571 # by configure, so config.status won't be able to write to it; its
28572 # output is simply discarded. So we exec the FD to /dev/null,
28573 # effectively closing config.log, so it can be properly (re)opened and
28574 # appended to by config.status. When coming back to configure, we
28575 # need to make the FD available again.
28576 if test "$no_create" != yes; then
28578 ac_config_status_args=
28579 test "$silent" = yes &&
28580 ac_config_status_args="$ac_config_status_args --quiet"
28582 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28585 # would make configure fail if this is the last instruction.
28586 $ac_cs_success || as_fn_exit 1
28588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28590 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28595 if test -z "$PKG_CONFIG"
28598 printf "%s\n" " *****************************************************************"
28599 printf "%s\n" " *** The pkg-config program is missing. ***"
28600 printf "%s\n" " *** External FLAC/Ogg/Vorbis libs cannot be found without it. ***"
28601 printf "%s\n" " *** http://pkg-config.freedesktop.org/wiki/ ***"
28602 printf "%s\n" " *****************************************************************"
28606 _lcl_receval="$libdir"
28607 full_absolute_libdir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28608 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
28609 _lcl_receval_old=''
28610 while test "$_lcl_receval_old" != "$_lcl_receval"; do
28611 _lcl_receval_old="$_lcl_receval"
28612 eval _lcl_receval="\"$_lcl_receval\""
28614 echo "$_lcl_receval")`
28615 _lcl_receval="$bindir"
28616 full_absolute_bindir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28617 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
28618 _lcl_receval_old=''
28619 while test "$_lcl_receval_old" != "$_lcl_receval"; do
28620 _lcl_receval_old="$_lcl_receval"
28621 eval _lcl_receval="\"$_lcl_receval\""
28623 echo "$_lcl_receval")`
28624 _lcl_receval="$pkgconfigdir"
28625 full_absolute_pkgconfigdir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28626 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
28627 _lcl_receval_old=''
28628 while test "$_lcl_receval_old" != "$_lcl_receval"; do
28629 _lcl_receval_old="$_lcl_receval"
28630 eval _lcl_receval="\"$_lcl_receval\""
28632 echo "$_lcl_receval")`
28633 _lcl_receval="$htmldir"
28634 full_absolute_htmldir=`(test "x$prefix" = xNONE && prefix="$ac_default_prefix"
28635 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
28636 _lcl_receval_old=''
28637 while test "$_lcl_receval_old" != "$_lcl_receval"; do
28638 _lcl_receval_old="$_lcl_receval"
28639 eval _lcl_receval="\"$_lcl_receval\""
28641 echo "$_lcl_receval")`
28642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
28643 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
28645 Configuration summary :
28647 libsndfile version : .................. ${VERSION}
28649 Host CPU : ............................ ${host_cpu}
28650 Host Vendor : ......................... ${host_vendor}
28651 Host OS : ............................. ${host_os}
28653 CFLAGS : .............................. ${CFLAGS}
28654 CXXFLAGS : ............................ ${CXXFLAGS}
28655 CPPFLAGS : ............................ ${CPPFLAGS}
28656 LDFLAGS : ............................. ${LDFLAGS}
28658 Experimental code : ................... ${enable_experimental:-no}
28659 Using ALSA in example programs : ...... ${enable_alsa:-no}
28660 External FLAC/Ogg/Vorbis/Opus : ....... ${enable_external_libs:-no}
28661 External MPEG Lame/MPG123 : ........... ${enable_mpeg:-no}
28662 Building Octave interface : ........... ${OCTAVE_BUILD}
28666 C Compiler Vendor is : ................ ${ax_cv_c_compiler_vendor} (${ax_cv_c_compiler_version})
28667 CXX Compiler Vendor is : .............. ${ax_cv_cxx_compiler_vendor} (${ax_cv_cxx_compiler_version})
28669 Sanitizer enabled : ................... ${enable_sanitizer:-no}
28671 Installation directories :
28673 Library directory : ................... ${full_absolute_libdir}
28674 Program directory : ................... ${full_absolute_bindir}
28675 Pkgconfig directory : ................. ${full_absolute_pkgconfigdir}
28676 HTML docs directory : ................. ${full_absolute_htmldir}
28678 Compiling some other packages against libsndfile may require
28679 the addition of '$full_absolute_pkgconfigdir' to the
28680 PKG_CONFIG_PATH environment variable.
28683 -=-=-=-=-=-=-=-=-=-= Configuration Complete =-=-=-=-=-=-=-=-=-=-=-
28685 Configuration summary :
28687 libsndfile version : .................. ${VERSION}
28689 Host CPU : ............................ ${host_cpu}
28690 Host Vendor : ......................... ${host_vendor}
28691 Host OS : ............................. ${host_os}
28693 CFLAGS : .............................. ${CFLAGS}
28694 CXXFLAGS : ............................ ${CXXFLAGS}
28695 CPPFLAGS : ............................ ${CPPFLAGS}
28696 LDFLAGS : ............................. ${LDFLAGS}
28698 Experimental code : ................... ${enable_experimental:-no}
28699 Using ALSA in example programs : ...... ${enable_alsa:-no}
28700 External FLAC/Ogg/Vorbis/Opus : ....... ${enable_external_libs:-no}
28701 External MPEG Lame/MPG123 : ........... ${enable_mpeg:-no}
28702 Building Octave interface : ........... ${OCTAVE_BUILD}
28706 C Compiler Vendor is : ................ ${ax_cv_c_compiler_vendor} (${ax_cv_c_compiler_version})
28707 CXX Compiler Vendor is : .............. ${ax_cv_cxx_compiler_vendor} (${ax_cv_cxx_compiler_version})
28709 Sanitizer enabled : ................... ${enable_sanitizer:-no}
28711 Installation directories :
28713 Library directory : ................... ${full_absolute_libdir}
28714 Program directory : ................... ${full_absolute_bindir}
28715 Pkgconfig directory : ................. ${full_absolute_pkgconfigdir}
28716 HTML docs directory : ................. ${full_absolute_htmldir}
28718 Compiling some other packages against libsndfile may require
28719 the addition of '$full_absolute_pkgconfigdir' to the
28720 PKG_CONFIG_PATH environment variable.