2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $echo works!
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
582 echo_test_string=`eval $cmd` &&
583 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
590 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
591 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
592 test "X$echo_testing_string" = "X$echo_test_string"; then
595 # The Solaris, AIX, and Digital Unix default echo programs unquote
596 # backslashes. This makes it impossible to quote backslashes using
597 # echo "$something" | sed 's/\\/\\\\/g'
599 # So, first we look for a working echo in the user's PATH.
601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
602 for dir in $PATH /usr/ucb; do
604 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
605 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
614 if test "X$echo" = Xecho; then
615 # We didn't find a better echo, so look for alternatives.
616 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
619 # This shell has a builtin print -r that does the trick.
621 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
622 test "X$CONFIG_SHELL" != X/bin/ksh; then
623 # If we have ksh, try running configure again with it.
624 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
625 export ORIGINAL_CONFIG_SHELL
626 CONFIG_SHELL=/bin/ksh
628 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
632 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
637 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
643 SHELL="$CONFIG_SHELL"
645 echo="$CONFIG_SHELL $0 --fallback-echo"
646 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
647 test "X$echo_testing_string" = 'X\t' &&
648 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 echo="$CONFIG_SHELL $0 --fallback-echo"
652 # maybe with a smaller string...
655 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
656 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
663 if test "$prev" != 'sed 50q "$0"'; then
664 echo_test_string=`eval $prev`
665 export echo_test_string
666 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
668 # Oops. We lost completely, so just stick with echo.
677 # Copy echo and quote the copy suitably for passing to libtool from
678 # the Makefile, instead of quoting the original, which is used later.
680 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
681 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
687 tagnames=${tagnames+${tagnames},}CXX
689 tagnames=${tagnames+${tagnames},}F77
691 exec 7<&0 </dev/null 6>&1
694 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
695 # so uname gets run too.
696 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701 ac_default_prefix=/usr/local
703 ac_config_libobj_dir=.
709 SHELL=${CONFIG_SHELL-/bin/sh}
711 # Identity of this package.
718 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
719 # Factoring default headers for most tests.
720 ac_includes_default="\
723 # include <sys/types.h>
726 # include <sys/stat.h>
737 # if !STDC_HEADERS && HAVE_MEMORY_H
743 # include <strings.h>
746 # include <inttypes.h>
764 program_transform_name
817 INSTALL_STRIP_PROGRAM
890 OMNITHREAD_POSIX_TRUE
891 OMNITHREAD_POSIX_FALSE
898 LIBGNURADIO_CORE_EXTRA_LDFLAGS
899 HAVE_CREATEFILEMAPPING_TRUE
900 HAVE_CREATEFILEMAPPING_FALSE
919 MD_SUBCPU_x86_64_TRUE
920 MD_SUBCPU_x86_64_FALSE
931 FUSB_TECH_darwin_TRUE
932 FUSB_TECH_darwin_FALSE
934 FUSB_TECH_win32_FALSE
935 FUSB_TECH_generic_TRUE
936 FUSB_TECH_generic_FALSE
938 FUSB_TECH_linux_FALSE
940 FUSB_TECH_ra_wb_FALSE
961 ac_precious_vars='build_alias
979 # Initialize some variables set by options.
981 ac_init_version=false
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
991 program_transform_name=s,x,x,
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE}'
1016 infodir='${datarootdir}/info'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1086 eval enable_$ac_feature=no ;;
1088 -docdir | --docdir | --docdi | --doc | --do)
1090 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091 docdir=$ac_optarg ;;
1093 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1095 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096 dvidir=$ac_optarg ;;
1098 -enable-* | --enable-*)
1099 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1102 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1105 eval enable_$ac_feature=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1250 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1252 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1254 sbindir=$ac_optarg ;;
1256 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1257 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1258 | --sharedst | --shareds | --shared | --share | --shar \
1260 ac_prev=sharedstatedir ;;
1261 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1262 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1263 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1265 sharedstatedir=$ac_optarg ;;
1267 -site | --site | --sit)
1269 -site=* | --site=* | --sit=*)
1272 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1274 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1275 srcdir=$ac_optarg ;;
1277 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1278 | --syscon | --sysco | --sysc | --sys | --sy)
1279 ac_prev=sysconfdir ;;
1280 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1281 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1282 sysconfdir=$ac_optarg ;;
1284 -target | --target | --targe | --targ | --tar | --ta | --t)
1285 ac_prev=target_alias ;;
1286 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1287 target_alias=$ac_optarg ;;
1289 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1292 -version | --version | --versio | --versi | --vers | -V)
1293 ac_init_version=: ;;
1296 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1297 # Reject names that are not valid shell variable names.
1298 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1299 { echo "$as_me: error: invalid package name: $ac_package" >&2
1300 { (exit 1); exit 1; }; }
1301 ac_package=`echo $ac_package| sed 's/-/_/g'`
1302 eval with_$ac_package=\$ac_optarg ;;
1304 -without-* | --without-*)
1305 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid package name: $ac_package" >&2
1309 { (exit 1); exit 1; }; }
1310 ac_package=`echo $ac_package | sed 's/-/_/g'`
1311 eval with_$ac_package=no ;;
1314 # Obsolete; use --with-x.
1317 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1318 | --x-incl | --x-inc | --x-in | --x-i)
1319 ac_prev=x_includes ;;
1320 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1321 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1322 x_includes=$ac_optarg ;;
1324 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1325 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1326 ac_prev=x_libraries ;;
1327 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1328 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1329 x_libraries=$ac_optarg ;;
1331 -*) { echo "$as_me: error: unrecognized option: $ac_option
1332 Try \`$0 --help' for more information." >&2
1333 { (exit 1); exit 1; }; }
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1340 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1341 { (exit 1); exit 1; }; }
1342 eval $ac_envvar=\$ac_optarg
1343 export $ac_envvar ;;
1346 # FIXME: should be removed in autoconf 3.0.
1347 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1348 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1349 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1350 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1356 if test -n "$ac_prev"; then
1357 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1358 { echo "$as_me: error: missing argument to $ac_option" >&2
1359 { (exit 1); exit 1; }; }
1362 # Be sure to have absolute directory names.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1368 eval ac_val=\$$ac_var
1370 [\\/$]* | ?:[\\/]* ) continue;;
1371 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1373 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1374 { (exit 1); exit 1; }; }
1377 # There might be people who depend on the old broken behavior: `$host'
1378 # used to hold the argument of --host etc.
1379 # FIXME: To remove some day.
1382 target=$target_alias
1384 # FIXME: To remove some day.
1385 if test "x$host_alias" != x; then
1386 if test "x$build_alias" = x; then
1387 cross_compiling=maybe
1388 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1389 If a cross compiler is detected then cross compile mode will be used." >&2
1390 elif test "x$build_alias" != "x$host_alias"; then
1396 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398 test "$silent" = yes && exec 6>/dev/null
1401 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1402 ac_ls_di=`ls -di .` &&
1403 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1404 { echo "$as_me: error: Working directory cannot be determined" >&2
1405 { (exit 1); exit 1; }; }
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407 { echo "$as_me: error: pwd does not report name of working directory" >&2
1408 { (exit 1); exit 1; }; }
1411 # Find the source files, if location was not specified.
1412 if test -z "$srcdir"; then
1413 ac_srcdir_defaulted=yes
1414 # Try the directory containing this script, then the parent directory.
1415 ac_confdir=`$as_dirname -- "$0" ||
1416 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1417 X"$0" : 'X\(//\)[^/]' \| \
1418 X"$0" : 'X\(//\)$' \| \
1419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1443 ac_srcdir_defaulted=no
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1446 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1447 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1448 { (exit 1); exit 1; }; }
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1453 { (exit 1); exit 1; }; }
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1479 \`configure' configures this package to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 --target=TARGET configure for building compilers for TARGET [HOST]
1548 if test -n "$ac_init_help"; then
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --disable-dependency-tracking speeds up one-time build
1556 --enable-dependency-tracking do not reject slow dependency extractors
1557 --disable-assert don't use cpp.h assert
1558 --enable-shared[=PKGS] build shared libraries [default=yes]
1559 --enable-static[=PKGS] build static libraries [default=no]
1560 --enable-fast-install[=PKGS]
1561 optimize for fast installation [default=yes]
1562 --disable-libtool-lock avoid locking (might break parallel builds)
1563 --enable-fortran enable fortran (no)
1564 --enable-doxygen enable documentation generation with doxygen (no)
1565 --enable-dot use 'dot' to generate graphs in doxygen (auto)
1566 --enable-html-docs enable HTML generation with doxygen (yes)
1567 --enable-latex-docs enable LaTeX doc generation with doxygen (no)
1568 --enable-all-components Build all components or stop on failed dependencies
1570 --enable-gnuradio-core Fail build if gnuradio-core fails configuration
1571 --enable-gnuradio-examples Fail build if gnuradio-examples fails configuration
1572 --enable-usrp Fail build if usrp fails configuration
1573 --enable-gr-usrp Fail build if gr-usrp fails configuration
1574 --enable-gr-audio-alsa Fail build if gr-audio-alsa fails configuration
1575 --enable-gr-audio-jack Fail build if gr-audio-jack fails configuration
1576 --enable-gr-audio-oss Fail build if gr-audio-oss fails configuration
1577 --enable-gr-audio-osx Fail build if gr-audio-osx fails configuration
1578 --enable-gr-audio-portaudio Fail build if gr-audio-portaudio fails configuration
1579 --enable-gr-audio-windows Fail build if gr-audio-windows fails configuration
1580 --enable-gr-gsm-fr-vocoder Fail build if gr-gsm-fr-vocoder fails configuration
1581 --enable-gr-radio-astronomy Fail build if gr-radio-astronomy fails configuration
1582 --enable-gr-trellis Fail build if gr-trellis fails configuration
1583 --enable-gr-video-sdl Fail build if gr-video-sdl fails configuration
1584 --disable-sdltest Do not try to compile and run a test SDL program
1585 --enable-gr-wxgui Fail build if gr-wxgui fails configuration
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-warnings Turn on warnings
1591 --with-gprof Turn on gprof profiling
1592 --with-prof Turn on prof profiling
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-pic try to use only PIC/non-PIC objects [default=use
1596 --with-tags[=TAGS] include additional configurations [automatic]
1597 --with-md-cpu=ARCH set machine dependent speedups (auto)
1598 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1599 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1600 --with-boost-include-dir=<path>
1601 path to boost c++ include files
1602 --with-fusb-tech=OS set fast usb technique (auto)
1603 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1604 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1606 Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
1611 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612 you have headers in a nonstandard directory <include dir>
1614 CXX C++ compiler command
1615 CXXFLAGS C++ compiler flags
1616 CXXCPP C++ preprocessor
1617 CCAS assembler compiler command (defaults to CC)
1618 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1619 F77 Fortran 77 compiler command
1620 FFLAGS Fortran 77 compiler flags
1622 Use these variables to override the choices made by `configure' or to help
1623 it to find libraries and programs with nonstandard names/locations.
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" || continue
1636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1639 # A ".." for each directory in $ac_dir_suffix.
1640 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1641 case $ac_top_builddir_sub in
1642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 ac_abs_top_builddir=$ac_pwd
1647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1648 # for backward compatibility:
1649 ac_top_builddir=$ac_top_build_prefix
1652 .) # We are building in place.
1654 ac_top_srcdir=$ac_top_builddir_sub
1655 ac_abs_top_srcdir=$ac_pwd ;;
1656 [\\/]* | ?:[\\/]* ) # Absolute name.
1657 ac_srcdir=$srcdir$ac_dir_suffix;
1658 ac_top_srcdir=$srcdir
1659 ac_abs_top_srcdir=$srcdir ;;
1661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1662 ac_top_srcdir=$ac_top_build_prefix$srcdir
1663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667 cd "$ac_dir" || { ac_status=$?; continue; }
1668 # Check for guested configure.
1669 if test -f "$ac_srcdir/configure.gnu"; then
1671 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1672 elif test -f "$ac_srcdir/configure"; then
1674 $SHELL "$ac_srcdir/configure" --help=recursive
1676 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 cd "$ac_pwd" || { ac_status=$?; break; }
1682 test -n "$ac_init_help" && exit $ac_status
1683 if $ac_init_version; then
1686 generated by GNU Autoconf 2.60
1688 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1689 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1690 This configure script is free software; the Free Software Foundation
1691 gives unlimited permission to copy, distribute and modify it.
1695 cat >config.log <<_ACEOF
1696 This file contains any messages produced by compilers while
1697 running configure, to aid debugging if configure makes a mistake.
1699 It was created by $as_me, which was
1700 generated by GNU Autoconf 2.60. Invocation command line was
1712 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1713 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1714 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1715 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1716 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1718 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1719 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1721 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1722 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1723 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1724 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1725 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1726 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1727 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1735 test -z "$as_dir" && as_dir=.
1736 echo "PATH: $as_dir"
1752 # Keep a trace of the command line.
1753 # Strip out --no-create and --no-recursion so they do not pile up.
1754 # Strip out --silent because we don't want to record it for future runs.
1755 # Also quote any args containing shell meta-characters.
1756 # Make two passes to allow for proper duplicate-argument suppression.
1760 ac_must_keep_next=false
1766 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1768 | -silent | --silent | --silen | --sile | --sil)
1771 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1774 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1776 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1777 if test $ac_must_keep_next = true; then
1778 ac_must_keep_next=false # Got value, back to normal.
1781 *=* | --config-cache | -C | -disable-* | --disable-* \
1782 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1783 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1784 | -with-* | --with-* | -without-* | --without-* | --x)
1785 case "$ac_configure_args0 " in
1786 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1789 -* ) ac_must_keep_next=true ;;
1792 ac_configure_args="$ac_configure_args '$ac_arg'"
1797 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1798 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1800 # When interrupted or exit'd, cleanup temporary files, and complete
1801 # config.log. We remove comments because anyway the quotes in there
1802 # would cause problems or look ugly.
1803 # WARNING: Use '\'' to represent an apostrophe within the trap.
1804 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1805 trap 'exit_status=$?
1806 # Save into config.log some information that might help in debugging.
1811 ## ---------------- ##
1812 ## Cache variables. ##
1813 ## ---------------- ##
1816 # The following way of writing the cache mishandles newlines in values,
1818 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1819 eval ac_val=\$$ac_var
1823 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1824 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1827 _ | IFS | as_nl) ;; #(
1828 *) $as_unset $ac_var ;;
1833 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
1836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ## ----------------- ##
1849 ## Output variables. ##
1850 ## ----------------- ##
1853 for ac_var in $ac_subst_vars
1855 eval ac_val=\$$ac_var
1857 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 echo "$ac_var='\''$ac_val'\''"
1863 if test -n "$ac_subst_files"; then
1865 ## ------------------- ##
1866 ## File substitutions. ##
1867 ## ------------------- ##
1870 for ac_var in $ac_subst_files
1872 eval ac_val=\$$ac_var
1874 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 echo "$ac_var='\''$ac_val'\''"
1881 if test -s confdefs.h; then
1891 test "$ac_signal" != 0 &&
1892 echo "$as_me: caught signal $ac_signal"
1893 echo "$as_me: exit $exit_status"
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 for ac_signal in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest* confdefs.h
1907 # Predefined preprocessor variables.
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_NAME "$PACKAGE_NAME"
1914 cat >>confdefs.h <<_ACEOF
1915 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1924 cat >>confdefs.h <<_ACEOF
1925 #define PACKAGE_STRING "$PACKAGE_STRING"
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1934 # Let the site file select an alternate cache file if it wants to.
1935 # Prefer explicitly selected file to automatically selected ones.
1936 if test -n "$CONFIG_SITE"; then
1937 set x "$CONFIG_SITE"
1938 elif test "x$prefix" != xNONE; then
1939 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1941 set x "$ac_default_prefix/share/config.site" \
1942 "$ac_default_prefix/etc/config.site"
1947 if test -r "$ac_site_file"; then
1948 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1949 echo "$as_me: loading site script $ac_site_file" >&6;}
1950 sed 's/^/| /' "$ac_site_file" >&5
1955 if test -r "$cache_file"; then
1956 # Some versions of bash will fail to source /dev/null (special
1957 # files actually), so we avoid doing that.
1958 if test -f "$cache_file"; then
1959 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1960 echo "$as_me: loading cache $cache_file" >&6;}
1962 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1963 *) . "./$cache_file";;
1967 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1968 echo "$as_me: creating cache $cache_file" >&6;}
1972 # Check that the precious variables saved in the cache have kept the same
1974 ac_cache_corrupted=false
1975 for ac_var in $ac_precious_vars; do
1976 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1977 eval ac_new_set=\$ac_env_${ac_var}_set
1978 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1979 eval ac_new_val=\$ac_env_${ac_var}_value
1980 case $ac_old_set,$ac_new_set in
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1986 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1987 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1988 ac_cache_corrupted=: ;;
1991 if test "x$ac_old_val" != "x$ac_new_val"; then
1992 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1995 echo "$as_me: former value: $ac_old_val" >&2;}
1996 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1997 echo "$as_me: current value: $ac_new_val" >&2;}
1998 ac_cache_corrupted=:
2001 # Pass precious variables to config.status.
2002 if test "$ac_new_set" = set; then
2004 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2005 *) ac_arg=$ac_var=$ac_new_val ;;
2007 case " $ac_configure_args " in
2008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2009 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2013 if $ac_cache_corrupted; then
2014 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2015 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2016 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2017 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2018 { (exit 1); exit 1; }; }
2038 ac_cpp='$CPP $CPPFLAGS'
2039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045 ac_config_headers="$ac_config_headers config.h"
2048 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2049 if test -f "$ac_dir/install-sh"; then
2051 ac_install_sh="$ac_aux_dir/install-sh -c"
2053 elif test -f "$ac_dir/install.sh"; then
2055 ac_install_sh="$ac_aux_dir/install.sh -c"
2057 elif test -f "$ac_dir/shtool"; then
2059 ac_install_sh="$ac_aux_dir/shtool install -c"
2063 if test -z "$ac_aux_dir"; then
2064 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2065 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2066 { (exit 1); exit 1; }; }
2069 # These three variables are undocumented and unsupported,
2070 # and are intended to be withdrawn in a future Autoconf release.
2071 # They can cause serious problems if a builder's source tree is in a directory
2072 # whose full name contains unusual characters.
2073 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2074 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2075 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2078 # Make sure we can run config.sub.
2079 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2080 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2081 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2082 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: checking build system type" >&5
2085 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2086 if test "${ac_cv_build+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 ac_build_alias=$build_alias
2090 test "x$ac_build_alias" = x &&
2091 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2092 test "x$ac_build_alias" = x &&
2093 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2094 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2095 { (exit 1); exit 1; }; }
2096 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2097 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2098 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2099 { (exit 1); exit 1; }; }
2102 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2103 echo "${ECHO_T}$ac_cv_build" >&6; }
2104 case $ac_cv_build in
2106 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2107 echo "$as_me: error: invalid value of canonical build" >&2;}
2108 { (exit 1); exit 1; }; };;
2111 ac_save_IFS=$IFS; IFS='-'
2117 # Remember, the first character of IFS is used to create $*,
2118 # except with old shells:
2121 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2124 { echo "$as_me:$LINENO: checking host system type" >&5
2125 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2126 if test "${ac_cv_host+set}" = set; then
2127 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 if test "x$host_alias" = x; then
2130 ac_cv_host=$ac_cv_build
2132 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2133 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2134 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2135 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2140 echo "${ECHO_T}$ac_cv_host" >&6; }
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2144 echo "$as_me: error: invalid value of canonical host" >&2;}
2145 { (exit 1); exit 1; }; };;
2148 ac_save_IFS=$IFS; IFS='-'
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2161 { echo "$as_me:$LINENO: checking target system type" >&5
2162 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_target+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test "x$target_alias" = x; then
2167 ac_cv_target=$ac_cv_host
2169 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2176 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2177 echo "${ECHO_T}$ac_cv_target" >&6; }
2178 case $ac_cv_target in
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2181 echo "$as_me: error: invalid value of canonical target" >&2;}
2182 { (exit 1); exit 1; }; };;
2184 target=$ac_cv_target
2185 ac_save_IFS=$IFS; IFS='-'
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2195 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2198 # The aliases save the names the user supplied, while $host etc.
2199 # will get canonicalized.
2200 test -n "$target_alias" &&
2201 test "$program_prefix$program_suffix$program_transform_name" = \
2203 program_prefix=${target_alias}-
2204 am__api_version="1.9"
2205 # Find a good install program. We prefer a C program (faster),
2206 # so one script is as good as another. But avoid the broken or
2207 # incompatible versions:
2208 # SysV /etc/install, /usr/sbin/install
2209 # SunOS /usr/etc/install
2210 # IRIX /sbin/install
2212 # AmigaOS /C/install, which installs bootblocks on floppy discs
2213 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2214 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2215 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2216 # OS/2's system install, which has a completely different semantic
2217 # ./install, which can be erroneously created by make from ./install.sh.
2218 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2219 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2220 if test -z "$INSTALL"; then
2221 if test "${ac_cv_path_install+set}" = set; then
2222 echo $ECHO_N "(cached) $ECHO_C" >&6
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 test -z "$as_dir" && as_dir=.
2229 # Account for people who put trailing slashes in PATH elements.
2231 ./ | .// | /cC/* | \
2232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2233 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2236 # OSF1 and SCO ODT 3.0 have their own names for install.
2237 # Don't use installbsd from OSF since it installs stuff as root
2239 for ac_prog in ginstall scoinst install; do
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
2242 if test $ac_prog = install &&
2243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2244 # AIX install. It has an incompatible calling convention.
2246 elif test $ac_prog = install &&
2247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2248 # program-specific install script used by HP pwplus--don't use.
2251 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2264 if test "${ac_cv_path_install+set}" = set; then
2265 INSTALL=$ac_cv_path_install
2267 # As a last resort, use the slow shell script. Don't cache a
2268 # value for INSTALL within a source directory, because that will
2269 # break other packages using the cache if that directory is
2270 # removed, or if the value is a relative name.
2271 INSTALL=$ac_install_sh
2274 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2275 echo "${ECHO_T}$INSTALL" >&6; }
2277 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2278 # It thinks the first close brace ends the variable substitution.
2279 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2281 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2283 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2285 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2286 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2289 echo timestamp > conftest.file
2290 # Do `set' in a subshell so we don't clobber the current shell's
2291 # arguments. Must try -L first in case configure is actually a
2292 # symlink; some systems play weird games with the mod time of symlinks
2293 # (eg FreeBSD returns the mod time of the symlink's containing
2296 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2297 if test "$*" = "X"; then
2299 set X `ls -t $srcdir/configure conftest.file`
2302 if test "$*" != "X $srcdir/configure conftest.file" \
2303 && test "$*" != "X conftest.file $srcdir/configure"; then
2305 # If neither matched, then we have a broken ls. This can happen
2306 # if, for instance, CONFIG_SHELL is bash and it inherits a
2307 # broken ls alias from the environment. This has actually
2308 # happened. Such a system could not be considered "sane".
2309 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2310 alias in your environment" >&5
2311 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2312 alias in your environment" >&2;}
2313 { (exit 1); exit 1; }; }
2316 test "$2" = conftest.file
2322 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2323 Check your system clock" >&5
2324 echo "$as_me: error: newly created file is older than distributed files!
2325 Check your system clock" >&2;}
2326 { (exit 1); exit 1; }; }
2328 { echo "$as_me:$LINENO: result: yes" >&5
2329 echo "${ECHO_T}yes" >&6; }
2330 test "$program_prefix" != NONE &&
2331 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2332 # Use a double $ so make ignores it.
2333 test "$program_suffix" != NONE &&
2334 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2335 # Double any \ or $. echo might interpret backslashes.
2336 # By default was `s,x,x', remove it if useless.
2337 cat <<\_ACEOF >conftest.sed
2338 s/[\\$]/&&/g;s/;s,x,x,$//
2340 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2343 # expand $ac_aux_dir to an absolute path
2344 am_aux_dir=`cd $ac_aux_dir && pwd`
2346 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2347 # Use eval to expand $SHELL
2348 if eval "$MISSING --run true"; then
2349 am_missing_run="$MISSING --run "
2352 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2353 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2356 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2357 # We used to keeping the `.' as first argument, in order to
2358 # allow $(mkdir_p) to be used without argument. As in
2359 # $(mkdir_p) $(somedir)
2360 # where $(somedir) is conditionally defined. However this is wrong
2362 # 1. if the package is installed by a user who cannot write `.'
2363 # make install will fail,
2364 # 2. the above comment should most certainly read
2365 # $(mkdir_p) $(DESTDIR)$(somedir)
2366 # so it does not work when $(somedir) is undefined and
2367 # $(DESTDIR) is not.
2368 # To support the latter case, we have to write
2369 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2370 # so the `.' trick is pointless.
2371 mkdir_p='mkdir -p --'
2373 # On NextStep and OpenStep, the `mkdir' command does not
2374 # recognize any option. It will interpret all options as
2375 # directories to create, and then abort because `.' already
2377 for d in ./-p ./--version;
2379 test -d $d && rmdir $d
2381 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2382 if test -f "$ac_aux_dir/mkinstalldirs"; then
2383 mkdir_p='$(mkinstalldirs)'
2385 mkdir_p='$(install_sh) -d'
2389 for ac_prog in gawk mawk nawk awk
2391 # Extract the first word of "$ac_prog", so it can be a program name with args.
2392 set dummy $ac_prog; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_AWK+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$AWK"; then
2399 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_AWK="$ac_prog"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$AWK"; then
2420 { echo "$as_me:$LINENO: result: $AWK" >&5
2421 echo "${ECHO_T}$AWK" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2428 test -n "$AWK" && break
2431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 cat >conftest.make <<\_ACEOF
2440 @echo '@@@%%%=$(MAKE)=@@@%%%'
2442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2445 eval ac_cv_prog_make_${ac_make}_set=yes;;
2447 eval ac_cv_prog_make_${ac_make}_set=no;;
2451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2452 { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2456 { echo "$as_me:$LINENO: result: no" >&5
2457 echo "${ECHO_T}no" >&6; }
2458 SET_MAKE="MAKE=${MAKE-make}"
2461 rm -rf .tst 2>/dev/null
2462 mkdir .tst 2>/dev/null
2463 if test -d .tst; then
2468 rmdir .tst 2>/dev/null
2470 # test to see if srcdir already configured
2471 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2472 test -f $srcdir/config.status; then
2473 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2474 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2475 { (exit 1); exit 1; }; }
2478 # test whether we have cygpath
2479 if test -z "$CYGPATH_W"; then
2480 if (cygpath --version) >/dev/null 2>/dev/null; then
2481 CYGPATH_W='cygpath -w'
2488 # Define the identity of the package.
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE "$PACKAGE"
2498 cat >>confdefs.h <<_ACEOF
2499 #define VERSION "$VERSION"
2502 # Some tools Automake needs.
2504 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2507 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2510 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2513 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2516 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2518 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2520 # Installed binaries are usually stripped using `strip' when the user
2521 # run `make install-strip'. However `strip' might not be the right
2522 # tool to use in cross-compilation environments, therefore Automake
2523 # will honor the `STRIP' environment variable to overrule this program.
2524 if test "$cross_compiling" != no; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}strip; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_STRIP+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$STRIP"; then
2534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 STRIP=$ac_cv_prog_STRIP
2554 if test -n "$STRIP"; then
2555 { echo "$as_me:$LINENO: result: $STRIP" >&5
2556 echo "${ECHO_T}$STRIP" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2564 if test -z "$ac_cv_prog_STRIP"; then
2566 # Extract the first word of "strip", so it can be a program name with args.
2567 set dummy strip; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -n "$ac_ct_STRIP"; then
2574 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_ac_ct_STRIP="strip"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2594 if test -n "$ac_ct_STRIP"; then
2595 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2596 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2598 { echo "$as_me:$LINENO: result: no" >&5
2599 echo "${ECHO_T}no" >&6; }
2602 if test "x$ac_ct_STRIP" = x; then
2605 case $cross_compiling:$ac_tool_warned in
2607 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2608 whose name does not start with the host triplet. If you think this
2609 configuration is useful to you, please write to autoconf@gnu.org." >&5
2610 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2611 whose name does not start with the host triplet. If you think this
2612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2613 ac_tool_warned=yes ;;
2618 STRIP="$ac_cv_prog_STRIP"
2622 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2624 # We need awk for the "check" target. The system "awk" is bad on
2626 # Always define AMTAR for backward compatibility.
2628 AMTAR=${AMTAR-"${am_missing_run}tar"}
2630 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2640 if test "$host_cpu" = "x86_64"; then
2641 { echo "$as_me:$LINENO: checking libdir for lib64 suffix" >&5
2642 echo $ECHO_N "checking libdir for lib64 suffix... $ECHO_C" >&6; }
2644 if test "$t" != 64 && test -d /lib64 && ! test -L /lib64; then
2646 { echo "$as_me:$LINENO: result: no. Setting libdir to $libdir" >&5
2647 echo "${ECHO_T}no. Setting libdir to $libdir" >&6; }
2649 { echo "$as_me:$LINENO: result: yes" >&5
2650 echo "${ECHO_T}yes" >&6; }
2653 DEPDIR="${am__leading_dot}deps"
2655 ac_config_commands="$ac_config_commands depfiles"
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2664 # If we don't find an include directive, just comment out the code.
2665 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684 echo '.include "confinc"' > confmf
2685 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686 am__include=.include
2693 { echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6; }
2695 rm -f confinc confmf
2697 # Check whether --enable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699 enableval=$enable_dependency_tracking;
2702 if test "x$enable_dependency_tracking" != xno; then
2703 am_depcomp="$ac_aux_dir/depcomp"
2708 if test "x$enable_dependency_tracking" != xno; then
2719 ac_cpp='$CPP $CPPFLAGS'
2720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723 if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2752 if test -n "$CC"; then
2753 { echo "$as_me:$LINENO: result: $CC" >&5
2754 echo "${ECHO_T}$CC" >&6; }
2756 { echo "$as_me:$LINENO: result: no" >&5
2757 echo "${ECHO_T}no" >&6; }
2762 if test -z "$ac_cv_prog_CC"; then
2764 # Extract the first word of "gcc", so it can be a program name with args.
2765 set dummy gcc; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_ac_ct_CC="gcc"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792 if test -n "$ac_ct_CC"; then
2793 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2794 echo "${ECHO_T}$ac_ct_CC" >&6; }
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2800 if test "x$ac_ct_CC" = x; then
2803 case $cross_compiling:$ac_tool_warned in
2805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2806 whose name does not start with the host triplet. If you think this
2807 configuration is useful to you, please write to autoconf@gnu.org." >&5
2808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2809 whose name does not start with the host triplet. If you think this
2810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2811 ac_tool_warned=yes ;;
2819 if test -z "$CC"; then
2820 if test -n "$ac_tool_prefix"; then
2821 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2822 set dummy ${ac_tool_prefix}cc; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="${ac_tool_prefix}cc"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 if test -n "$CC"; then
2850 { echo "$as_me:$LINENO: result: $CC" >&5
2851 echo "${ECHO_T}$CC" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2860 if test -z "$CC"; then
2861 # Extract the first word of "cc", so it can be a program name with args.
2862 set dummy cc; ac_word=$2
2863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2865 if test "${ac_cv_prog_CC+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2880 ac_prog_rejected=yes
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 if test $ac_prog_rejected = yes; then
2892 # We found a bogon in the path, so make sure we never use it.
2893 set dummy $ac_cv_prog_CC
2895 if test $# != 0; then
2896 # We chose a different compiler from the bogus one.
2897 # However, it has the same basename, so the bogon will be chosen
2898 # first if we set CC to just the basename; use the full file name.
2900 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2906 if test -n "$CC"; then
2907 { echo "$as_me:$LINENO: result: $CC" >&5
2908 echo "${ECHO_T}$CC" >&6; }
2910 { echo "$as_me:$LINENO: result: no" >&5
2911 echo "${ECHO_T}no" >&6; }
2916 if test -z "$CC"; then
2917 if test -n "$ac_tool_prefix"; then
2918 for ac_prog in cl.exe
2920 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2921 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_CC+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2927 if test -n "$CC"; then
2928 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 if test -n "$CC"; then
2949 { echo "$as_me:$LINENO: result: $CC" >&5
2950 echo "${ECHO_T}$CC" >&6; }
2952 { echo "$as_me:$LINENO: result: no" >&5
2953 echo "${ECHO_T}no" >&6; }
2957 test -n "$CC" && break
2960 if test -z "$CC"; then
2962 for ac_prog in cl.exe
2964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2965 set dummy $ac_prog; ac_word=$2
2966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2968 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test -n "$ac_ct_CC"; then
2972 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_ac_ct_CC="$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2992 if test -n "$ac_ct_CC"; then
2993 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2994 echo "${ECHO_T}$ac_ct_CC" >&6; }
2996 { echo "$as_me:$LINENO: result: no" >&5
2997 echo "${ECHO_T}no" >&6; }
3001 test -n "$ac_ct_CC" && break
3004 if test "x$ac_ct_CC" = x; then
3007 case $cross_compiling:$ac_tool_warned in
3009 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3010 whose name does not start with the host triplet. If you think this
3011 configuration is useful to you, please write to autoconf@gnu.org." >&5
3012 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3013 whose name does not start with the host triplet. If you think this
3014 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3015 ac_tool_warned=yes ;;
3024 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3025 See \`config.log' for more details." >&5
3026 echo "$as_me: error: no acceptable C compiler found in \$PATH
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }
3030 # Provide some information about the compiler.
3031 echo "$as_me:$LINENO: checking for C compiler version" >&5
3032 ac_compiler=`set X $ac_compile; echo $2`
3033 { (ac_try="$ac_compiler --version >&5"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compiler --version >&5") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }
3043 { (ac_try="$ac_compiler -v >&5"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compiler -v >&5") 2>&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }
3053 { (ac_try="$ac_compiler -V >&5"
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_compiler -V >&5") 2>&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3081 # Try to create an executable without -o first, disregard a.out.
3082 # It will help us diagnose broken compilers, and finding out an intuition
3084 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3085 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3086 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3088 # List of possible output files, starting from the most likely.
3089 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3090 # only as a last resort. b.out is created by i960 compilers.
3091 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3093 # The IRIX 6 linker writes into existing files which may not be
3094 # executable, retaining their permissions. Remove them first so a
3095 # subsequent execution test works.
3097 for ac_file in $ac_files
3100 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3101 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106 if { (ac_try="$ac_link_default"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_link_default") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; then
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3121 for ac_file in $ac_files
3123 test -f "$ac_file" || continue
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3128 # We found the default executable, but exeext='' is most
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: C compiler cannot create executables
3155 See \`config.log' for more details." >&2;}
3156 { (exit 77); exit 77; }; }
3159 ac_exeext=$ac_cv_exeext
3160 { echo "$as_me:$LINENO: result: $ac_file" >&5
3161 echo "${ECHO_T}$ac_file" >&6; }
3163 # Check that the compiler produces executables we can run. If not, either
3164 # the compiler is broken, or we cross compile.
3165 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3168 # If not cross compiling, check that we can run a simple program.
3169 if test "$cross_compiling" != yes; then
3170 if { ac_try='./$ac_file'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 if test "$cross_compiling" = maybe; then
3185 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3186 If you meant to cross compile, use \`--host'.
3187 See \`config.log' for more details." >&5
3188 echo "$as_me: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3195 { echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6; }
3198 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3203 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3204 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3205 echo "${ECHO_T}$cross_compiling" >&6; }
3207 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3208 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3209 if { (ac_try="$ac_link"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_link") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; then
3219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe'), while it won't with
3223 for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3240 rm -f conftest$ac_cv_exeext
3241 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3242 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3244 rm -f conftest.$ac_ext
3245 EXEEXT=$ac_cv_exeext
3247 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3249 if test "${ac_cv_objext+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.o conftest.obj
3268 if { (ac_try="$ac_compile"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 for ac_file in conftest.o conftest.obj conftest.*; do
3279 test -f "$ac_file" || continue;
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details." >&2;}
3294 { (exit 1); exit 1; }; }
3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3300 echo "${ECHO_T}$ac_cv_objext" >&6; }
3301 OBJEXT=$ac_cv_objext
3303 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3304 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3305 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } &&
3340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; } &&
3350 { ac_try='test -s conftest.$ac_objext'
3351 { (case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3372 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3373 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3374 GCC=`test $ac_compiler_gnu = yes && echo yes`
3375 ac_test_CFLAGS=${CFLAGS+set}
3376 ac_save_CFLAGS=$CFLAGS
3377 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3379 if test "${ac_cv_prog_cc_g+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 ac_save_c_werror_flag=$ac_c_werror_flag
3383 ac_c_werror_flag=yes
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_compile") 2>conftest.er1
3410 grep -v '^ *+' conftest.er1 >conftest.err
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
3415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_try") 2>&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3437 echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3465 grep -v '^ *+' conftest.er1 >conftest.err
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } &&
3470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3471 { (case "(($ac_try" in
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_try") 2>&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); }; } &&
3480 { ac_try='test -s conftest.$ac_objext'
3481 { (case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_try") 2>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; }; then
3492 echo "$as_me: failed program was:" >&5
3493 sed 's/^/| /' conftest.$ac_ext >&5
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3512 rm -f conftest.$ac_objext
3513 if { (ac_try="$ac_compile"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>conftest.er1
3521 grep -v '^ *+' conftest.er1 >conftest.err
3523 cat conftest.err >&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); } &&
3526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3527 { (case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_try") 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }; } &&
3536 { ac_try='test -s conftest.$ac_objext'
3537 { (case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_try") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }; }; then
3548 echo "$as_me: failed program was:" >&5
3549 sed 's/^/| /' conftest.$ac_ext >&5
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_c_werror_flag=$ac_save_c_werror_flag
3563 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3564 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566 CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568 if test "$GCC" = yes; then
3574 if test "$GCC" = yes; then
3580 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3581 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3582 if test "${ac_cv_prog_cc_c89+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_cv_prog_cc_c89=no
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3595 #include <sys/types.h>
3596 #include <sys/stat.h>
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3611 s = g (p, va_arg (v,int));
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
3619 as 'x'. The following induces an error, until -std is added to get
3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
3622 that's true only with -std. */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647 CC="$ac_save_CC $ac_arg"
3648 rm -f conftest.$ac_objext
3649 if { (ac_try="$ac_compile"
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3655 (eval "$ac_compile") 2>conftest.er1
3657 grep -v '^ *+' conftest.er1 >conftest.err
3659 cat conftest.err >&5
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); } &&
3662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3663 { (case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3668 (eval "$ac_try") 2>&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; } &&
3672 { ac_try='test -s conftest.$ac_objext'
3673 { (case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3678 (eval "$ac_try") 2>&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_cv_prog_cc_c89=$ac_arg
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3690 rm -f core conftest.err conftest.$ac_objext
3691 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 rm -f conftest.$ac_ext
3698 case "x$ac_cv_prog_cc_c89" in
3700 { echo "$as_me:$LINENO: result: none needed" >&5
3701 echo "${ECHO_T}none needed" >&6; } ;;
3703 { echo "$as_me:$LINENO: result: unsupported" >&5
3704 echo "${ECHO_T}unsupported" >&6; } ;;
3706 CC="$CC $ac_cv_prog_cc_c89"
3707 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3708 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 depcc="$CC" am_compiler_list=
3720 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3721 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3722 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3726 # We make a subdir and do the tests there. Otherwise we can end up
3727 # making bogus files that we don't know about and never remove. For
3728 # instance it was reported that on HP-UX the gcc test will end up
3729 # making a dummy file named `D' -- because `-MD' means `put the output
3732 # Copy depcomp to subdir because otherwise we won't find it if we're
3733 # using a relative directory.
3734 cp "$am_depcomp" conftest.dir
3736 # We will build objects and dependencies in a subdirectory because
3737 # it helps to detect inapplicable dependency modes. For instance
3738 # both Tru64's cc and ICC support -MD to output dependencies as a
3739 # side effect of compilation, but ICC will put the dependencies in
3740 # the current directory while Tru64 will put them in the object
3744 am_cv_CC_dependencies_compiler_type=none
3745 if test "$am_compiler_list" = ""; then
3746 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3748 for depmode in $am_compiler_list; do
3749 # Setup a source with many dependencies, because some compilers
3750 # like to wrap large dependency lists on column 80 (with \), and
3751 # we should not choose a depcomp mode which is confused by this.
3753 # We need to recreate these files for each test, as the compiler may
3754 # overwrite some of them when testing with obscure command lines.
3755 # This happens at least with the AIX C compiler.
3757 for i in 1 2 3 4 5 6; do
3758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3760 # Solaris 8's {/usr,}/bin/sh.
3761 touch sub/conftst$i.h
3763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3767 # after this tag, mechanisms are not by side-effect, so they'll
3768 # only be used when explicitly requested
3769 if test "x$enable_dependency_tracking" = xyes; then
3777 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3778 # mode. It turns out that the SunPro C++ compiler does not properly
3779 # handle `-M -o', and we need to detect this.
3780 if depmode=$depmode \
3781 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3783 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3784 >/dev/null 2>conftest.err &&
3785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788 # icc doesn't choke on unknown options, it will just issue warnings
3789 # or remarks (even with -Werror). So we grep stderr for any message
3790 # that says an option was ignored or not supported.
3791 # When given -MP, icc 7.0 and 7.1 complain thusly:
3792 # icc: Command line warning: ignoring option '-M'; no argument required
3793 # The diagnosis changed in icc 8.0:
3794 # icc: Command line remark: option '-MP' not supported
3795 if (grep 'ignoring option' conftest.err ||
3796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797 am_cv_CC_dependencies_compiler_type=$depmode
3806 am_cv_CC_dependencies_compiler_type=none
3810 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3811 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3812 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3817 test "x$enable_dependency_tracking" != xno \
3818 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3820 am__fastdepCC_FALSE='#'
3822 am__fastdepCC_TRUE='#'
3823 am__fastdepCC_FALSE=
3828 ac_cpp='$CPP $CPPFLAGS'
3829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3832 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3833 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3834 # On Suns, sometimes $CPP names a directory.
3835 if test -n "$CPP" && test -d "$CPP"; then
3838 if test -z "$CPP"; then
3839 if test "${ac_cv_prog_CPP+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 # Double quotes because CPP needs to be expanded
3843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3846 for ac_c_preproc_warn_flag in '' yes
3848 # Use a header file that comes with gcc, so configuring glibc
3849 # with a fresh cross-compiler works.
3850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3851 # <limits.h> exists even on freestanding compilers.
3852 # On the NeXT, cc -E runs the code through the compiler's parser,
3853 # not just through cpp. "Syntax error" is here to catch this case.
3854 cat >conftest.$ac_ext <<_ACEOF
3857 cat confdefs.h >>conftest.$ac_ext
3858 cat >>conftest.$ac_ext <<_ACEOF
3859 /* end confdefs.h. */
3861 # include <limits.h>
3863 # include <assert.h>
3867 if { (ac_try="$ac_cpp conftest.$ac_ext"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); } >/dev/null; then
3880 if test -s conftest.err; then
3881 ac_cpp_err=$ac_c_preproc_warn_flag
3882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3889 if test -z "$ac_cpp_err"; then
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 # Broken: fails on valid input.
3899 rm -f conftest.err conftest.$ac_ext
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #include <ac_nonexistent.h>
3911 if { (ac_try="$ac_cpp conftest.$ac_ext"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); } >/dev/null; then
3924 if test -s conftest.err; then
3925 ac_cpp_err=$ac_c_preproc_warn_flag
3926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3933 if test -z "$ac_cpp_err"; then
3934 # Broken: success on invalid input.
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3940 # Passes both tests.
3945 rm -f conftest.err conftest.$ac_ext
3948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3949 rm -f conftest.err conftest.$ac_ext
3950 if $ac_preproc_ok; then
3962 { echo "$as_me:$LINENO: result: $CPP" >&5
3963 echo "${ECHO_T}$CPP" >&6; }
3965 for ac_c_preproc_warn_flag in '' yes
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
3973 cat >conftest.$ac_ext <<_ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 # include <limits.h>
3982 # include <assert.h>
3986 if { (ac_try="$ac_cpp conftest.$ac_ext"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev/null; then
3999 if test -s conftest.err; then
4000 ac_cpp_err=$ac_c_preproc_warn_flag
4001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4008 if test -z "$ac_cpp_err"; then
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 # Broken: fails on valid input.
4018 rm -f conftest.err conftest.$ac_ext
4020 # OK, works on sane cases. Now check whether nonexistent headers
4021 # can be detected and how.
4022 cat >conftest.$ac_ext <<_ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4028 #include <ac_nonexistent.h>
4030 if { (ac_try="$ac_cpp conftest.$ac_ext"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } >/dev/null; then
4043 if test -s conftest.err; then
4044 ac_cpp_err=$ac_c_preproc_warn_flag
4045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4052 if test -z "$ac_cpp_err"; then
4053 # Broken: success on invalid input.
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 # Passes both tests.
4064 rm -f conftest.err conftest.$ac_ext
4067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4068 rm -f conftest.err conftest.$ac_ext
4069 if $ac_preproc_ok; then
4072 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4073 See \`config.log' for more details." >&5
4074 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4075 See \`config.log' for more details." >&2;}
4076 { (exit 1); exit 1; }; }
4080 ac_cpp='$CPP $CPPFLAGS'
4081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4088 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4089 if test "${ac_cv_path_GREP+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 # Extract the first word of "grep ggrep" to use in msg output
4093 if test -z "$GREP"; then
4094 set dummy grep ggrep; ac_prog_name=$2
4095 if test "${ac_cv_path_GREP+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 ac_path_GREP_found=false
4099 # Loop through the user's path and test for each of PROGNAME-LIST
4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 test -z "$as_dir" && as_dir=.
4105 for ac_prog in grep ggrep; do
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4108 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4109 # Check for GNU ac_path_GREP and select it if it is found.
4110 # Check for GNU $ac_path_GREP
4111 case `"$ac_path_GREP" --version 2>&1` in
4113 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4116 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4119 cat "conftest.in" "conftest.in" >"conftest.tmp"
4120 mv "conftest.tmp" "conftest.in"
4121 cp "conftest.in" "conftest.nl"
4122 echo 'GREP' >> "conftest.nl"
4123 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4125 ac_count=`expr $ac_count + 1`
4126 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4127 # Best one so far, save it but keep looking for a better one
4128 ac_cv_path_GREP="$ac_path_GREP"
4129 ac_path_GREP_max=$ac_count
4131 # 10*(2^10) chars as input seems more than enough
4132 test $ac_count -gt 10 && break
4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4138 $ac_path_GREP_found && break 3
4148 GREP="$ac_cv_path_GREP"
4149 if test -z "$GREP"; then
4150 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4151 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4152 { (exit 1); exit 1; }; }
4156 ac_cv_path_GREP=$GREP
4161 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4162 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4163 GREP="$ac_cv_path_GREP"
4166 { echo "$as_me:$LINENO: checking for egrep" >&5
4167 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4168 if test "${ac_cv_path_EGREP+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4172 then ac_cv_path_EGREP="$GREP -E"
4174 # Extract the first word of "egrep" to use in msg output
4175 if test -z "$EGREP"; then
4176 set dummy egrep; ac_prog_name=$2
4177 if test "${ac_cv_path_EGREP+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 ac_path_EGREP_found=false
4181 # Loop through the user's path and test for each of PROGNAME-LIST
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186 test -z "$as_dir" && as_dir=.
4187 for ac_prog in egrep; do
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4190 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4191 # Check for GNU ac_path_EGREP and select it if it is found.
4192 # Check for GNU $ac_path_EGREP
4193 case `"$ac_path_EGREP" --version 2>&1` in
4195 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4201 cat "conftest.in" "conftest.in" >"conftest.tmp"
4202 mv "conftest.tmp" "conftest.in"
4203 cp "conftest.in" "conftest.nl"
4204 echo 'EGREP' >> "conftest.nl"
4205 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4207 ac_count=`expr $ac_count + 1`
4208 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4209 # Best one so far, save it but keep looking for a better one
4210 ac_cv_path_EGREP="$ac_path_EGREP"
4211 ac_path_EGREP_max=$ac_count
4213 # 10*(2^10) chars as input seems more than enough
4214 test $ac_count -gt 10 && break
4216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 $ac_path_EGREP_found && break 3
4230 EGREP="$ac_cv_path_EGREP"
4231 if test -z "$EGREP"; then
4232 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4233 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4234 { (exit 1); exit 1; }; }
4238 ac_cv_path_EGREP=$EGREP
4244 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4245 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4246 EGREP="$ac_cv_path_EGREP"
4250 { echo "$as_me:$LINENO: checking for AIX" >&5
4251 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4252 cat >conftest.$ac_ext <<_ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h. */
4263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4264 $EGREP "yes" >/dev/null 2>&1; then
4265 { echo "$as_me:$LINENO: result: yes" >&5
4266 echo "${ECHO_T}yes" >&6; }
4267 cat >>confdefs.h <<\_ACEOF
4268 #define _ALL_SOURCE 1
4272 { echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6; }
4278 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4279 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4280 if test "${ac_cv_search_strerror+set}" = set; then
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4283 ac_func_search_save_LIBS=$LIBS
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4291 /* Override any GCC internal prototype to avoid an error.
4292 Use char because int might match the return type of a GCC
4293 builtin and then its argument prototype would still apply. */
4306 for ac_lib in '' cposix; do
4307 if test -z "$ac_lib"; then
4308 ac_res="none required"
4311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4313 rm -f conftest.$ac_objext conftest$ac_exeext
4314 if { (ac_try="$ac_link"
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_link") 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_search_strerror=$ac_res
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4355 rm -f core conftest.err conftest.$ac_objext \
4357 if test "${ac_cv_search_strerror+set}" = set; then
4361 if test "${ac_cv_search_strerror+set}" = set; then
4364 ac_cv_search_strerror=no
4367 LIBS=$ac_func_search_save_LIBS
4369 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4370 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4371 ac_res=$ac_cv_search_strerror
4372 if test "$ac_res" != no; then
4373 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4377 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4378 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4379 if test "${ac_cv_header_stdc+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4401 rm -f conftest.$ac_objext
4402 if { (ac_try="$ac_compile"
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_compile") 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4416 { (case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_try") 2>&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); }; } &&
4425 { ac_try='test -s conftest.$ac_objext'
4426 { (case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_try") 2>&5
4433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434 (exit $ac_status); }; }; then
4435 ac_cv_header_stdc=yes
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4440 ac_cv_header_stdc=no
4443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 if test $ac_cv_header_stdc = yes; then
4446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457 $EGREP "memchr" >/dev/null 2>&1; then
4460 ac_cv_header_stdc=no
4466 if test $ac_cv_header_stdc = yes; then
4467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478 $EGREP "free" >/dev/null 2>&1; then
4481 ac_cv_header_stdc=no
4487 if test $ac_cv_header_stdc = yes; then
4488 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4489 if test "$cross_compiling" = yes; then
4492 cat >conftest.$ac_ext <<_ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4500 #if ((' ' & 0x0FF) == 0x020)
4501 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4502 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4504 # define ISLOWER(c) \
4505 (('a' <= (c) && (c) <= 'i') \
4506 || ('j' <= (c) && (c) <= 'r') \
4507 || ('s' <= (c) && (c) <= 'z'))
4508 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4516 for (i = 0; i < 256; i++)
4517 if (XOR (islower (i), ISLOWER (i))
4518 || toupper (i) != TOUPPER (i))
4523 rm -f conftest$ac_exeext
4524 if { (ac_try="$ac_link"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4530 (eval "$ac_link") 2>&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4545 echo "$as_me: program exited with status $ac_status" >&5
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4550 ac_cv_header_stdc=no
4552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4558 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4559 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4560 if test $ac_cv_header_stdc = yes; then
4562 cat >>confdefs.h <<\_ACEOF
4563 #define STDC_HEADERS 1
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4578 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4579 inttypes.h stdint.h unistd.h
4581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4587 cat >conftest.$ac_ext <<_ACEOF
4590 cat confdefs.h >>conftest.$ac_ext
4591 cat >>conftest.$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4593 $ac_includes_default
4595 #include <$ac_header>
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } &&
4611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
4622 { (case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4627 (eval "$ac_try") 2>&5
4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630 (exit $ac_status); }; }; then
4631 eval "$as_ac_Header=yes"
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 eval "$as_ac_Header=no"
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_res=`eval echo '${'$as_ac_Header'}'`
4642 { echo "$as_me:$LINENO: result: $ac_res" >&5
4643 echo "${ECHO_T}$ac_res" >&6; }
4644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4645 cat >>confdefs.h <<_ACEOF
4646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4654 if test "${ac_cv_header_minix_config_h+set}" = set; then
4655 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4656 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4657 if test "${ac_cv_header_minix_config_h+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4661 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4663 # Is the header compilable?
4664 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4665 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4666 cat >conftest.$ac_ext <<_ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 $ac_includes_default
4673 #include <minix/config.h>
4675 rm -f conftest.$ac_objext
4676 if { (ac_try="$ac_compile"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4684 grep -v '^ *+' conftest.er1 >conftest.err
4686 cat conftest.err >&5
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4690 { (case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_try") 2>&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); }; } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4705 (eval "$ac_try") 2>&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; }; then
4709 ac_header_compiler=yes
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4714 ac_header_compiler=no
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4719 echo "${ECHO_T}$ac_header_compiler" >&6; }
4721 # Is the header present?
4722 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4723 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #include <minix/config.h>
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null; then
4745 if test -s conftest.err; then
4746 ac_cpp_err=$ac_c_preproc_warn_flag
4747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4754 if test -z "$ac_cpp_err"; then
4755 ac_header_preproc=yes
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4760 ac_header_preproc=no
4763 rm -f conftest.err conftest.$ac_ext
4764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4765 echo "${ECHO_T}$ac_header_preproc" >&6; }
4767 # So? What about this header?
4768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4770 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4771 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4772 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4773 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4774 ac_header_preproc=yes
4777 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4778 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4779 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4780 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4781 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4782 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4783 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4784 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4785 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4786 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4787 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4788 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4792 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4793 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4794 if test "${ac_cv_header_minix_config_h+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 ac_cv_header_minix_config_h=$ac_header_preproc
4799 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4800 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4803 if test $ac_cv_header_minix_config_h = yes; then
4810 if test "$MINIX" = yes; then
4812 cat >>confdefs.h <<\_ACEOF
4813 #define _POSIX_SOURCE 1
4817 cat >>confdefs.h <<\_ACEOF
4818 #define _POSIX_1_SOURCE 2
4822 cat >>confdefs.h <<\_ACEOF
4831 ac_cpp='$CXXCPP $CPPFLAGS'
4832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4835 if test -z "$CXX"; then
4836 if test -n "$CCC"; then
4839 if test -n "$ac_tool_prefix"; then
4840 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4846 if test "${ac_cv_prog_CXX+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 if test -n "$CXX"; then
4850 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 test -z "$as_dir" && as_dir=.
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 if test -n "$CXX"; then
4871 { echo "$as_me:$LINENO: result: $CXX" >&5
4872 echo "${ECHO_T}$CXX" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 test -n "$CXX" && break
4882 if test -z "$CXX"; then
4884 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4886 # Extract the first word of "$ac_prog", so it can be a program name with args.
4887 set dummy $ac_prog; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4893 if test -n "$ac_ct_CXX"; then
4894 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_prog_ac_ct_CXX="$ac_prog"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4914 if test -n "$ac_ct_CXX"; then
4915 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4916 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4918 { echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6; }
4923 test -n "$ac_ct_CXX" && break
4926 if test "x$ac_ct_CXX" = x; then
4929 case $cross_compiling:$ac_tool_warned in
4931 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4932 whose name does not start with the host triplet. If you think this
4933 configuration is useful to you, please write to autoconf@gnu.org." >&5
4934 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4935 whose name does not start with the host triplet. If you think this
4936 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4937 ac_tool_warned=yes ;;
4945 # Provide some information about the compiler.
4946 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4947 ac_compiler=`set X $ac_compile; echo $2`
4948 { (ac_try="$ac_compiler --version >&5"
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_compiler --version >&5") 2>&5
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); }
4958 { (ac_try="$ac_compiler -v >&5"
4960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4961 *) ac_try_echo=$ac_try;;
4963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4964 (eval "$ac_compiler -v >&5") 2>&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); }
4968 { (ac_try="$ac_compiler -V >&5"
4970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971 *) ac_try_echo=$ac_try;;
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974 (eval "$ac_compiler -V >&5") 2>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }
4979 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4980 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4981 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 cat >conftest.$ac_ext <<_ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
5002 rm -f conftest.$ac_objext
5003 if { (ac_try="$ac_compile"
5005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5006 *) ac_try_echo=$ac_try;;
5008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5009 (eval "$ac_compile") 2>conftest.er1
5011 grep -v '^ *+' conftest.er1 >conftest.err
5013 cat conftest.err >&5
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); } &&
5016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5017 { (case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_try") 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; } &&
5026 { ac_try='test -s conftest.$ac_objext'
5027 { (case "(($ac_try" in
5028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029 *) ac_try_echo=$ac_try;;
5031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032 (eval "$ac_try") 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); }; }; then
5038 echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5048 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5049 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5050 GXX=`test $ac_compiler_gnu = yes && echo yes`
5051 ac_test_CXXFLAGS=${CXXFLAGS+set}
5052 ac_save_CXXFLAGS=$CXXFLAGS
5053 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5054 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5055 if test "${ac_cv_prog_cxx_g+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5059 ac_cxx_werror_flag=yes
5062 cat >conftest.$ac_ext <<_ACEOF
5065 cat confdefs.h >>conftest.$ac_ext
5066 cat >>conftest.$ac_ext <<_ACEOF
5067 /* end confdefs.h. */
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_compile") 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5092 { (case "(($ac_try" in
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_try") 2>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (case "(($ac_try" in
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_try") 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_cv_prog_cxx_g=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5132 rm -f conftest.$ac_objext
5133 if { (ac_try="$ac_compile"
5135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136 *) ac_try_echo=$ac_try;;
5138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139 (eval "$ac_compile") 2>conftest.er1
5141 grep -v '^ *+' conftest.er1 >conftest.err
5143 cat conftest.err >&5
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } &&
5146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5147 { (case "(($ac_try" in
5148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5149 *) ac_try_echo=$ac_try;;
5151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5152 (eval "$ac_try") 2>&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; } &&
5156 { ac_try='test -s conftest.$ac_objext'
5157 { (case "(($ac_try" in
5158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5159 *) ac_try_echo=$ac_try;;
5161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5162 (eval "$ac_try") 2>&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; }; then
5168 echo "$as_me: failed program was:" >&5
5169 sed 's/^/| /' conftest.$ac_ext >&5
5171 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5197 grep -v '^ *+' conftest.er1 >conftest.err
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5203 { (case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_try") 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (case "(($ac_try" in
5214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5215 *) ac_try_echo=$ac_try;;
5217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5218 (eval "$ac_try") 2>&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_prog_cxx_g=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5239 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5240 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5241 if test "$ac_test_CXXFLAGS" = set; then
5242 CXXFLAGS=$ac_save_CXXFLAGS
5243 elif test $ac_cv_prog_cxx_g = yes; then
5244 if test "$GXX" = yes; then
5250 if test "$GXX" = yes; then
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5262 depcc="$CXX" am_compiler_list=
5264 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5265 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5266 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5270 # We make a subdir and do the tests there. Otherwise we can end up
5271 # making bogus files that we don't know about and never remove. For
5272 # instance it was reported that on HP-UX the gcc test will end up
5273 # making a dummy file named `D' -- because `-MD' means `put the output
5276 # Copy depcomp to subdir because otherwise we won't find it if we're
5277 # using a relative directory.
5278 cp "$am_depcomp" conftest.dir
5280 # We will build objects and dependencies in a subdirectory because
5281 # it helps to detect inapplicable dependency modes. For instance
5282 # both Tru64's cc and ICC support -MD to output dependencies as a
5283 # side effect of compilation, but ICC will put the dependencies in
5284 # the current directory while Tru64 will put them in the object
5288 am_cv_CXX_dependencies_compiler_type=none
5289 if test "$am_compiler_list" = ""; then
5290 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5292 for depmode in $am_compiler_list; do
5293 # Setup a source with many dependencies, because some compilers
5294 # like to wrap large dependency lists on column 80 (with \), and
5295 # we should not choose a depcomp mode which is confused by this.
5297 # We need to recreate these files for each test, as the compiler may
5298 # overwrite some of them when testing with obscure command lines.
5299 # This happens at least with the AIX C compiler.
5301 for i in 1 2 3 4 5 6; do
5302 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5303 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5304 # Solaris 8's {/usr,}/bin/sh.
5305 touch sub/conftst$i.h
5307 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5311 # after this tag, mechanisms are not by side-effect, so they'll
5312 # only be used when explicitly requested
5313 if test "x$enable_dependency_tracking" = xyes; then
5321 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5322 # mode. It turns out that the SunPro C++ compiler does not properly
5323 # handle `-M -o', and we need to detect this.
5324 if depmode=$depmode \
5325 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5326 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5327 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5328 >/dev/null 2>conftest.err &&
5329 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5330 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5331 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5332 # icc doesn't choke on unknown options, it will just issue warnings
5333 # or remarks (even with -Werror). So we grep stderr for any message
5334 # that says an option was ignored or not supported.
5335 # When given -MP, icc 7.0 and 7.1 complain thusly:
5336 # icc: Command line warning: ignoring option '-M'; no argument required
5337 # The diagnosis changed in icc 8.0:
5338 # icc: Command line remark: option '-MP' not supported
5339 if (grep 'ignoring option' conftest.err ||
5340 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5341 am_cv_CXX_dependencies_compiler_type=$depmode
5350 am_cv_CXX_dependencies_compiler_type=none
5354 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5355 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5356 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5361 test "x$enable_dependency_tracking" != xno \
5362 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5363 am__fastdepCXX_TRUE=
5364 am__fastdepCXX_FALSE='#'
5366 am__fastdepCXX_TRUE='#'
5367 am__fastdepCXX_FALSE=
5372 ac_cpp='$CXXCPP $CPPFLAGS'
5373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5377 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5378 if test -z "$CXXCPP"; then
5379 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 # Double quotes because CXXCPP needs to be expanded
5383 for CXXCPP in "$CXX -E" "/lib/cpp"
5386 for ac_cxx_preproc_warn_flag in '' yes
5388 # Use a header file that comes with gcc, so configuring glibc
5389 # with a fresh cross-compiler works.
5390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5391 # <limits.h> exists even on freestanding compilers.
5392 # On the NeXT, cc -E runs the code through the compiler's parser,
5393 # not just through cpp. "Syntax error" is here to catch this case.
5394 cat >conftest.$ac_ext <<_ACEOF
5397 cat confdefs.h >>conftest.$ac_ext
5398 cat >>conftest.$ac_ext <<_ACEOF
5399 /* end confdefs.h. */
5401 # include <limits.h>
5403 # include <assert.h>
5407 if { (ac_try="$ac_cpp conftest.$ac_ext"
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5415 grep -v '^ *+' conftest.er1 >conftest.err
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } >/dev/null; then
5420 if test -s conftest.err; then
5421 ac_cpp_err=$ac_cxx_preproc_warn_flag
5422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5429 if test -z "$ac_cpp_err"; then
5432 echo "$as_me: failed program was:" >&5
5433 sed 's/^/| /' conftest.$ac_ext >&5
5435 # Broken: fails on valid input.
5439 rm -f conftest.err conftest.$ac_ext
5441 # OK, works on sane cases. Now check whether nonexistent headers
5442 # can be detected and how.
5443 cat >conftest.$ac_ext <<_ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h. */
5449 #include <ac_nonexistent.h>
5451 if { (ac_try="$ac_cpp conftest.$ac_ext"
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5459 grep -v '^ *+' conftest.er1 >conftest.err
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } >/dev/null; then
5464 if test -s conftest.err; then
5465 ac_cpp_err=$ac_cxx_preproc_warn_flag
5466 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5473 if test -z "$ac_cpp_err"; then
5474 # Broken: success on invalid input.
5477 echo "$as_me: failed program was:" >&5
5478 sed 's/^/| /' conftest.$ac_ext >&5
5480 # Passes both tests.
5485 rm -f conftest.err conftest.$ac_ext
5488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5489 rm -f conftest.err conftest.$ac_ext
5490 if $ac_preproc_ok; then
5495 ac_cv_prog_CXXCPP=$CXXCPP
5498 CXXCPP=$ac_cv_prog_CXXCPP
5500 ac_cv_prog_CXXCPP=$CXXCPP
5502 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5503 echo "${ECHO_T}$CXXCPP" >&6; }
5505 for ac_cxx_preproc_warn_flag in '' yes
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5520 # include <limits.h>
5522 # include <assert.h>
5526 if { (ac_try="$ac_cpp conftest.$ac_ext"
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null; then
5539 if test -s conftest.err; then
5540 ac_cpp_err=$ac_cxx_preproc_warn_flag
5541 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5548 if test -z "$ac_cpp_err"; then
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 # Broken: fails on valid input.
5558 rm -f conftest.err conftest.$ac_ext
5560 # OK, works on sane cases. Now check whether nonexistent headers
5561 # can be detected and how.
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 #include <ac_nonexistent.h>
5570 if { (ac_try="$ac_cpp conftest.$ac_ext"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1 >conftest.err
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } >/dev/null; then
5583 if test -s conftest.err; then
5584 ac_cpp_err=$ac_cxx_preproc_warn_flag
5585 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5592 if test -z "$ac_cpp_err"; then
5593 # Broken: success on invalid input.
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.$ac_ext >&5
5599 # Passes both tests.
5604 rm -f conftest.err conftest.$ac_ext
5607 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5608 rm -f conftest.err conftest.$ac_ext
5609 if $ac_preproc_ok; then
5612 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5613 See \`config.log' for more details." >&5
5614 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5615 See \`config.log' for more details." >&2;}
5616 { (exit 1); exit 1; }; }
5620 ac_cpp='$CPP $CPPFLAGS'
5621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5632 ac_cpp='$CXXCPP $CPPFLAGS'
5633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5638 { echo "$as_me:$LINENO: checking whether C++ has bool" >&5
5639 echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6; }
5640 if test "$cross_compiling" = yes; then
5641 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5
5642 echo "$as_me: WARNING: Don't cross-compile" >&2;}
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 main() { bool b1=true; bool b2=false; }
5653 rm -f conftest$ac_exeext
5654 if { (ac_try="$ac_link"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_link") 2>&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5664 { (case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; }; then
5673 { echo "$as_me:$LINENO: result: yes" >&5
5674 echo "${ECHO_T}yes" >&6; }
5676 echo "$as_me: program exited with status $ac_status" >&5
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5684 cat >>confdefs.h <<\_ACEOF
5685 #define CXX_HAS_NO_BOOL
5689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5694 { echo "$as_me:$LINENO: checking whether C++ has buggy scoping in for-loops" >&5
5695 echo $ECHO_N "checking whether C++ has buggy scoping in for-loops... $ECHO_C" >&6; }
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <iostream.h>
5707 for (int i=0;i<10;i++) { }
5708 for (int i=0;i<10;i++) { }
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } &&
5728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; } &&
5738 { ac_try='test -s conftest.$ac_objext'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 { echo "$as_me:$LINENO: result: no" >&5
5749 echo "${ECHO_T}no" >&6; }
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5757 cat >>confdefs.h <<\_ACEOF
5758 #define CXX_HAS_BUGGY_FOR_LOOPS
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 { echo "$as_me:$LINENO: checking whether user wants assertions" >&5
5766 echo $ECHO_N "checking whether user wants assertions... $ECHO_C" >&6; }
5767 # Check whether --enable-assert was given.
5768 if test "${enable_assert+set}" = set; then
5769 enableval=$enable_assert;
5770 cat >>confdefs.h <<\_ACEOF
5774 { echo "$as_me:$LINENO: result: no" >&5
5775 echo "${ECHO_T}no" >&6; }
5777 { echo "$as_me:$LINENO: result: yes" >&5
5778 echo "${ECHO_T}yes" >&6; }
5782 { echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
5783 echo $ECHO_N "checking whether C++ has std::isnan... $ECHO_C" >&6; }
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5801 rm -f conftest.$ac_objext
5802 if { (ac_try="$ac_compile"
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5816 { (case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_try") 2>&5
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_try") 2>&5
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
5835 { echo "$as_me:$LINENO: result: yes" >&5
5836 echo "${ECHO_T}yes" >&6; }
5838 cat >>confdefs.h <<\_ACEOF
5839 #define CXX_HAS_STD_ISNAN
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5846 { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_cpp='$CPP $CPPFLAGS'
5854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5861 { echo "$as_me:$LINENO: checking whether user wants warnings" >&5
5862 echo $ECHO_N "checking whether user wants warnings... $ECHO_C" >&6; }
5864 # Check whether --with-warnings was given.
5865 if test "${with_warnings+set}" = set; then
5866 withval=$with_warnings; lf_warnings=yes
5871 lf_warnings=yes # hard code for now -eb
5872 { echo "$as_me:$LINENO: result: $lf_warnings" >&5
5873 echo "${ECHO_T}$lf_warnings" >&6; }
5875 cc_warning_flags="-Wall"
5876 cxx_warning_flags="-Wall -Woverloaded-virtual"
5877 if test $lf_warnings = yes
5882 echo 'void f(){}' > conftest.c
5883 for i in $cc_warning_flags
5885 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5886 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5887 if test -z "`${CC} $i -c conftest.c 2>&1`"
5889 CFLAGS="${CFLAGS} $i"
5890 { echo "$as_me:$LINENO: result: yes" >&5
5891 echo "${ECHO_T}yes" >&6; }
5893 { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5897 rm -f conftest.c conftest.o
5903 echo 'void f(){}' > conftest.cc
5904 for i in $cxx_warning_flags
5906 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5907 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5908 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5910 CXXFLAGS="${CXXFLAGS} $i"
5911 { echo "$as_me:$LINENO: result: yes" >&5
5912 echo "${ECHO_T}yes" >&6; }
5914 { echo "$as_me:$LINENO: result: no" >&5
5915 echo "${ECHO_T}no" >&6; }
5918 rm -f conftest.cc conftest.o
5924 { echo "$as_me:$LINENO: checking whether user wants gprof" >&5
5925 echo $ECHO_N "checking whether user wants gprof... $ECHO_C" >&6; }
5927 # Check whether --with-gprof was given.
5928 if test "${with_gprof+set}" = set; then
5929 withval=$with_gprof;
5934 { echo "$as_me:$LINENO: result: $with_gprof" >&5
5935 echo "${ECHO_T}$with_gprof" >&6; }
5937 cc_profiling_flags="-pg"
5938 cxx_profiling_flags="-pg"
5939 ld_profiling_flags="-pg"
5940 if test $with_gprof = yes
5945 echo 'void f(){}' > conftest.c
5946 for i in $cc_profiling_flags
5948 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5949 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5950 if test -z "`${CC} $i -c conftest.c 2>&1`"
5952 CFLAGS="${CFLAGS} $i"
5953 { echo "$as_me:$LINENO: result: yes" >&5
5954 echo "${ECHO_T}yes" >&6; }
5956 { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5960 rm -f conftest.c conftest.o
5966 echo 'void f(){}' > conftest.cc
5967 for i in $cxx_profiling_flags
5969 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5970 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5971 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5973 CXXFLAGS="${CXXFLAGS} $i"
5974 { echo "$as_me:$LINENO: result: yes" >&5
5975 echo "${ECHO_T}yes" >&6; }
5977 { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5981 rm -f conftest.cc conftest.o
5987 { echo "$as_me:$LINENO: checking whether user wants prof" >&5
5988 echo $ECHO_N "checking whether user wants prof... $ECHO_C" >&6; }
5990 # Check whether --with-prof was given.
5991 if test "${with_prof+set}" = set; then
5997 { echo "$as_me:$LINENO: result: $with_prof" >&5
5998 echo "${ECHO_T}$with_prof" >&6; }
6000 cc_profiling_flags="-p"
6001 cxx_profiling_flags="-p"
6002 ld_profiling_flags="-p"
6003 if test $with_prof = yes
6008 echo 'void f(){}' > conftest.c
6009 for i in $cc_profiling_flags
6011 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
6012 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
6013 if test -z "`${CC} $i -c conftest.c 2>&1`"
6015 CFLAGS="${CFLAGS} $i"
6016 { echo "$as_me:$LINENO: result: yes" >&5
6017 echo "${ECHO_T}yes" >&6; }
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6023 rm -f conftest.c conftest.o
6029 echo 'void f(){}' > conftest.cc
6030 for i in $cxx_profiling_flags
6032 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
6033 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
6034 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
6036 CXXFLAGS="${CXXFLAGS} $i"
6037 { echo "$as_me:$LINENO: result: yes" >&5
6038 echo "${ECHO_T}yes" >&6; }
6040 { echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6; }
6044 rm -f conftest.cc conftest.o
6049 # By default we simply use the C compiler to build assembly code.
6051 test "${CCAS+set}" = set || CCAS=$CC
6052 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6056 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6059 if test "$LN_S" = "ln -s"; then
6060 { echo "$as_me:$LINENO: result: yes" >&5
6061 echo "${ECHO_T}yes" >&6; }
6063 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6064 echo "${ECHO_T}no, using $LN_S" >&6; }
6067 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6068 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
6069 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6070 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 cat >conftest.make <<\_ACEOF
6076 @echo '@@@%%%=$(MAKE)=@@@%%%'
6078 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6079 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6081 eval ac_cv_prog_make_${ac_make}_set=yes;;
6083 eval ac_cv_prog_make_${ac_make}_set=no;;
6087 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6088 { echo "$as_me:$LINENO: result: yes" >&5
6089 echo "${ECHO_T}yes" >&6; }
6092 { echo "$as_me:$LINENO: result: no" >&5
6093 echo "${ECHO_T}no" >&6; }
6094 SET_MAKE="MAKE=${MAKE-make}"
6097 # Find a good install program. We prefer a C program (faster),
6098 # so one script is as good as another. But avoid the broken or
6099 # incompatible versions:
6100 # SysV /etc/install, /usr/sbin/install
6101 # SunOS /usr/etc/install
6102 # IRIX /sbin/install
6104 # AmigaOS /C/install, which installs bootblocks on floppy discs
6105 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6106 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6107 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6108 # OS/2's system install, which has a completely different semantic
6109 # ./install, which can be erroneously created by make from ./install.sh.
6110 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6111 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6112 if test -z "$INSTALL"; then
6113 if test "${ac_cv_path_install+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir=.
6121 # Account for people who put trailing slashes in PATH elements.
6123 ./ | .// | /cC/* | \
6124 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6125 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6128 # OSF1 and SCO ODT 3.0 have their own names for install.
6129 # Don't use installbsd from OSF since it installs stuff as root
6131 for ac_prog in ginstall scoinst install; do
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6134 if test $ac_prog = install &&
6135 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6136 # AIX install. It has an incompatible calling convention.
6138 elif test $ac_prog = install &&
6139 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6140 # program-specific install script used by HP pwplus--don't use.
6143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6156 if test "${ac_cv_path_install+set}" = set; then
6157 INSTALL=$ac_cv_path_install
6159 # As a last resort, use the slow shell script. Don't cache a
6160 # value for INSTALL within a source directory, because that will
6161 # break other packages using the cache if that directory is
6162 # removed, or if the value is a relative name.
6163 INSTALL=$ac_install_sh
6166 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6167 echo "${ECHO_T}$INSTALL" >&6; }
6169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6170 # It thinks the first close brace ends the variable substitution.
6171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6175 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6177 # Extract the first word of "rm", so it can be a program name with args.
6178 set dummy rm; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_path_RM_PROG+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
6197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 RM_PROG=$ac_cv_path_RM_PROG
6208 if test -n "$RM_PROG"; then
6209 { echo "$as_me:$LINENO: result: $RM_PROG" >&5
6210 echo "${ECHO_T}$RM_PROG" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6220 # Check whether --enable-shared was given.
6221 if test "${enable_shared+set}" = set; then
6222 enableval=$enable_shared; p=${PACKAGE-default}
6224 yes) enable_shared=yes ;;
6225 no) enable_shared=no ;;
6228 # Look at the argument we got. We use all the common list separators.
6229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6230 for pkg in $enableval; do
6232 if test "X$pkg" = "X$p"; then
6243 # Check whether --enable-static was given.
6244 if test "${enable_static+set}" = set; then
6245 enableval=$enable_static; p=${PACKAGE-default}
6247 yes) enable_static=yes ;;
6248 no) enable_static=no ;;
6251 # Look at the argument we got. We use all the common list separators.
6252 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6253 for pkg in $enableval; do
6255 if test "X$pkg" = "X$p"; then
6267 # Check whether --enable-fast-install was given.
6268 if test "${enable_fast_install+set}" = set; then
6269 enableval=$enable_fast_install; p=${PACKAGE-default}
6271 yes) enable_fast_install=yes ;;
6272 no) enable_fast_install=no ;;
6274 enable_fast_install=no
6275 # Look at the argument we got. We use all the common list separators.
6276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6277 for pkg in $enableval; do
6279 if test "X$pkg" = "X$p"; then
6280 enable_fast_install=yes
6287 enable_fast_install=yes
6291 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6292 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
6293 if test "${lt_cv_path_SED+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 # Loop through the user's path and test for sed and gsed.
6297 # Then use that list of sed's as ones to test for truncation.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for lt_ac_prog in sed gsed; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6306 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6313 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6314 # along with /bin/sed that truncates output.
6315 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6316 test ! -f $lt_ac_sed && continue
6317 cat /dev/null > conftest.in
6319 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6320 # Check for GNU sed and select it if it is found.
6321 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6322 lt_cv_path_SED=$lt_ac_sed
6326 cat conftest.in conftest.in >conftest.tmp
6327 mv conftest.tmp conftest.in
6328 cp conftest.in conftest.nl
6330 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6331 cmp -s conftest.out conftest.nl || break
6332 # 10000 chars as input seems more than enough
6333 test $lt_ac_count -gt 10 && break
6334 lt_ac_count=`expr $lt_ac_count + 1`
6335 if test $lt_ac_count -gt $lt_ac_max; then
6336 lt_ac_max=$lt_ac_count
6337 lt_cv_path_SED=$lt_ac_sed
6345 { echo "$as_me:$LINENO: result: $SED" >&5
6346 echo "${ECHO_T}$SED" >&6; }
6349 # Check whether --with-gnu-ld was given.
6350 if test "${with_gnu_ld+set}" = set; then
6351 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6357 if test "$GCC" = yes; then
6358 # Check if gcc -print-prog-name=ld gives a path.
6359 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6360 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6363 # gcc leaves a trailing carriage return which upsets mingw
6364 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6366 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6369 # Accept absolute paths.
6371 re_direlt='/[^/][^/]*/\.\./'
6372 # Canonicalize the pathname of ld
6373 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6374 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6375 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6377 test -z "$LD" && LD="$ac_prog"
6380 # If it fails, then pretend we aren't using GCC.
6384 # If it is relative, then search for the first ld in PATH.
6388 elif test "$with_gnu_ld" = yes; then
6389 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6390 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6392 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6393 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6395 if test "${lt_cv_path_LD+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 if test -z "$LD"; then
6399 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6400 for ac_dir in $PATH; do
6402 test -z "$ac_dir" && ac_dir=.
6403 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6404 lt_cv_path_LD="$ac_dir/$ac_prog"
6405 # Check to see if the program is GNU ld. I'd rather use --version,
6406 # but apparently some variants of GNU ld only accept -v.
6407 # Break only if it was the GNU/non-GNU ld that we prefer.
6408 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6409 *GNU* | *'with BFD'*)
6410 test "$with_gnu_ld" != no && break
6413 test "$with_gnu_ld" != yes && break
6420 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6425 if test -n "$LD"; then
6426 { echo "$as_me:$LINENO: result: $LD" >&5
6427 echo "${ECHO_T}$LD" >&6; }
6429 { echo "$as_me:$LINENO: result: no" >&5
6430 echo "${ECHO_T}no" >&6; }
6432 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6433 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6434 { (exit 1); exit 1; }; }
6435 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6436 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6437 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6441 case `$LD -v 2>&1 </dev/null` in
6442 *GNU* | *'with BFD'*)
6443 lt_cv_prog_gnu_ld=yes
6446 lt_cv_prog_gnu_ld=no
6450 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6451 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6452 with_gnu_ld=$lt_cv_prog_gnu_ld
6455 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6456 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6457 if test "${lt_cv_ld_reload_flag+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 lt_cv_ld_reload_flag='-r'
6462 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6463 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6464 reload_flag=$lt_cv_ld_reload_flag
6465 case $reload_flag in
6467 *) reload_flag=" $reload_flag" ;;
6469 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6472 if test "$GCC" = yes; then
6473 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6475 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6480 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6481 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6482 if test "${lt_cv_path_NM+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test -n "$NM"; then
6486 # Let the user override the test.
6489 lt_nm_to_check="${ac_tool_prefix}nm"
6490 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6491 lt_nm_to_check="$lt_nm_to_check nm"
6493 for lt_tmp_nm in $lt_nm_to_check; do
6494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6495 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6497 test -z "$ac_dir" && ac_dir=.
6498 tmp_nm="$ac_dir/$lt_tmp_nm"
6499 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6500 # Check to see if the nm accepts a BSD-compat flag.
6501 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6502 # nm: unknown option "B" ignored
6503 # Tru64's nm complains that /dev/null is an invalid object file
6504 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6505 */dev/null* | *'Invalid file or object type'*)
6506 lt_cv_path_NM="$tmp_nm -B"
6510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6512 lt_cv_path_NM="$tmp_nm -p"
6516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6517 continue # so that we can try to find one that supports BSD flags
6526 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6529 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6530 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6533 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6534 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6535 if test "${lt_cv_deplibs_check_method+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 lt_cv_file_magic_cmd='$MAGIC_CMD'
6539 lt_cv_file_magic_test_file=
6540 lt_cv_deplibs_check_method='unknown'
6541 # Need to set the preceding variable on all platforms that support
6542 # interlibrary dependencies.
6543 # 'none' -- dependencies not supported.
6544 # `unknown' -- same as none, but documents that we really don't know.
6545 # 'pass_all' -- all dependencies passed with no checks.
6546 # 'test_compile' -- check by making test program.
6547 # 'file_magic [[regex]]' -- check by looking for files in library path
6548 # which responds to the $file_magic_cmd with a given extended regex.
6549 # If you have `file' or equivalent on your system and you're not sure
6550 # whether `pass_all' will *always* work, you probably want this one.
6554 lt_cv_deplibs_check_method=pass_all
6558 lt_cv_deplibs_check_method=pass_all
6562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6563 lt_cv_file_magic_cmd='/usr/bin/file -L'
6564 lt_cv_file_magic_test_file=/shlib/libc.so
6568 # func_win32_libid is a shell function defined in ltmain.sh
6569 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6570 lt_cv_file_magic_cmd='func_win32_libid'
6574 # Base MSYS/MinGW do not provide the 'file' command needed by
6575 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6576 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6577 lt_cv_file_magic_cmd='$OBJDUMP -f'
6580 darwin* | rhapsody*)
6581 lt_cv_deplibs_check_method=pass_all
6584 freebsd* | dragonfly*)
6585 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6588 # Not sure whether the presence of OpenBSD here was a mistake.
6589 # Let's accept both of them until this is cleared up.
6590 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6591 lt_cv_file_magic_cmd=/usr/bin/file
6592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6596 lt_cv_deplibs_check_method=pass_all
6601 lt_cv_deplibs_check_method=pass_all
6604 hpux10.20* | hpux11*)
6605 lt_cv_file_magic_cmd=/usr/bin/file
6608 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6609 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6613 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6616 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6617 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6623 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6627 irix5* | irix6* | nonstopux*)
6629 *-32|*"-32 ") libmagic=32-bit;;
6630 *-n32|*"-n32 ") libmagic=N32;;
6631 *-64|*"-64 ") libmagic=64-bit;;
6632 *) libmagic=never-match;;
6634 lt_cv_deplibs_check_method=pass_all
6637 # This must be Linux ELF.
6638 linux* | k*bsd*-gnu)
6639 lt_cv_deplibs_check_method=pass_all
6642 netbsd* | netbsdelf*-gnu)
6643 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6644 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6651 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6652 lt_cv_file_magic_cmd=/usr/bin/file
6653 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6657 lt_cv_deplibs_check_method=unknown
6661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6668 osf3* | osf4* | osf5*)
6669 lt_cv_deplibs_check_method=pass_all
6673 lt_cv_deplibs_check_method=pass_all
6677 case $host_vendor in
6679 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]'
6680 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6683 lt_cv_deplibs_check_method=pass_all
6686 lt_cv_file_magic_cmd='/bin/file'
6687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6690 lt_cv_file_magic_cmd='/bin/file'
6691 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6692 lt_cv_file_magic_test_file=/lib/libc.so
6695 lt_cv_deplibs_check_method=pass_all
6698 lt_cv_deplibs_check_method=pass_all
6703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6704 lt_cv_deplibs_check_method=pass_all
6709 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6710 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6711 file_magic_cmd=$lt_cv_file_magic_cmd
6712 deplibs_check_method=$lt_cv_deplibs_check_method
6713 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6718 # If no C compiler was specified, use CC.
6721 # If no C compiler flags were specified, use CFLAGS.
6722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6724 # Allow CC to be a program name with arguments.
6727 # Check whether --enable-libtool-lock was given.
6728 if test "${enable_libtool_lock+set}" = set; then
6729 enableval=$enable_libtool_lock;
6732 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6734 # Some flags need to be propagated to the compiler or linker for good
6738 # Find out which ABI we are using.
6739 echo 'int i;' > conftest.$ac_ext
6740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6741 (eval $ac_compile) 2>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; then
6745 case `/usr/bin/file conftest.$ac_objext` in
6757 # Find out which ABI we are using.
6758 echo '#line 6758 "configure"' > conftest.$ac_ext
6759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6760 (eval $ac_compile) 2>&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; then
6764 if test "$lt_cv_prog_gnu_ld" = yes; then
6765 case `/usr/bin/file conftest.$ac_objext` in
6767 LD="${LD-ld} -melf32bsmip"
6770 LD="${LD-ld} -melf32bmipn32"
6773 LD="${LD-ld} -melf64bmip"
6777 case `/usr/bin/file conftest.$ac_objext` in
6793 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6794 # Find out which ABI we are using.
6795 echo 'int i;' > conftest.$ac_ext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797 (eval $ac_compile) 2>&5
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); }; then
6801 case `/usr/bin/file conftest.o` in
6805 LD="${LD-ld} -m elf_i386"
6807 ppc64-*linux*|powerpc64-*linux*)
6808 LD="${LD-ld} -m elf32ppclinux"
6811 LD="${LD-ld} -m elf_s390"
6814 LD="${LD-ld} -m elf32_sparc"
6821 LD="${LD-ld} -m elf_x86_64"
6823 ppc*-*linux*|powerpc*-*linux*)
6824 LD="${LD-ld} -m elf64ppc"
6827 LD="${LD-ld} -m elf64_s390"
6830 LD="${LD-ld} -m elf64_sparc"
6840 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6841 SAVE_CFLAGS="$CFLAGS"
6842 CFLAGS="$CFLAGS -belf"
6843 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6844 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6845 if test "${lt_cv_cc_needs_belf+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6869 rm -f conftest.$ac_objext conftest$ac_exeext
6870 if { (ac_try="$ac_link"
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_link") 2>conftest.er1
6878 grep -v '^ *+' conftest.er1 >conftest.err
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6884 { (case "(($ac_try" in
6885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886 *) ac_try_echo=$ac_try;;
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889 (eval "$ac_try") 2>&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; } &&
6893 { ac_try='test -s conftest$ac_exeext'
6894 { (case "(($ac_try" in
6895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6896 *) ac_try_echo=$ac_try;;
6898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6899 (eval "$ac_try") 2>&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6903 lt_cv_cc_needs_belf=yes
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6908 lt_cv_cc_needs_belf=no
6911 rm -f core conftest.err conftest.$ac_objext \
6912 conftest$ac_exeext conftest.$ac_ext
6914 ac_cpp='$CPP $CPPFLAGS'
6915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6921 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6922 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6923 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6924 CFLAGS="$SAVE_CFLAGS"
6928 # Find out which ABI we are using.
6929 echo 'int i;' > conftest.$ac_ext
6930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6931 (eval $ac_compile) 2>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); }; then
6935 case `/usr/bin/file conftest.o` in
6937 case $lt_cv_prog_gnu_ld in
6938 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6939 *) LD="${LD-ld} -64" ;;
6947 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6948 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6950 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6953 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 if test -n "$DLLTOOL"; then
6957 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 DLLTOOL=$ac_cv_prog_DLLTOOL
6977 if test -n "$DLLTOOL"; then
6978 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6979 echo "${ECHO_T}$DLLTOOL" >&6; }
6981 { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6987 if test -z "$ac_cv_prog_DLLTOOL"; then
6988 ac_ct_DLLTOOL=$DLLTOOL
6989 # Extract the first word of "dlltool", so it can be a program name with args.
6990 set dummy dlltool; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6996 if test -n "$ac_ct_DLLTOOL"; then
6997 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7017 if test -n "$ac_ct_DLLTOOL"; then
7018 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7019 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
7021 { echo "$as_me:$LINENO: result: no" >&5
7022 echo "${ECHO_T}no" >&6; }
7025 if test "x$ac_ct_DLLTOOL" = x; then
7028 case $cross_compiling:$ac_tool_warned in
7030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7031 whose name does not start with the host triplet. If you think this
7032 configuration is useful to you, please write to autoconf@gnu.org." >&5
7033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7034 whose name does not start with the host triplet. If you think this
7035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7036 ac_tool_warned=yes ;;
7038 DLLTOOL=$ac_ct_DLLTOOL
7041 DLLTOOL="$ac_cv_prog_DLLTOOL"
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}as; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_prog_AS+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 if test -n "$AS"; then
7053 ac_cv_prog_AS="$AS" # Let the user override the test.
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_prog_AS="${ac_tool_prefix}as"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 if test -n "$AS"; then
7074 { echo "$as_me:$LINENO: result: $AS" >&5
7075 echo "${ECHO_T}$AS" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7083 if test -z "$ac_cv_prog_AS"; then
7085 # Extract the first word of "as", so it can be a program name with args.
7086 set dummy as; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test -n "$ac_ct_AS"; then
7093 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_ac_ct_AS="as"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7113 if test -n "$ac_ct_AS"; then
7114 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7115 echo "${ECHO_T}$ac_ct_AS" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7121 if test "x$ac_ct_AS" = x; then
7124 case $cross_compiling:$ac_tool_warned in
7126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7127 whose name does not start with the host triplet. If you think this
7128 configuration is useful to you, please write to autoconf@gnu.org." >&5
7129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7130 whose name does not start with the host triplet. If you think this
7131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7132 ac_tool_warned=yes ;;
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 if test -n "$OBJDUMP"; then
7149 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 OBJDUMP=$ac_cv_prog_OBJDUMP
7169 if test -n "$OBJDUMP"; then
7170 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7171 echo "${ECHO_T}$OBJDUMP" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7179 if test -z "$ac_cv_prog_OBJDUMP"; then
7180 ac_ct_OBJDUMP=$OBJDUMP
7181 # Extract the first word of "objdump", so it can be a program name with args.
7182 set dummy objdump; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$ac_ct_OBJDUMP"; then
7189 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7209 if test -n "$ac_ct_OBJDUMP"; then
7210 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7211 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7217 if test "x$ac_ct_OBJDUMP" = x; then
7220 case $cross_compiling:$ac_tool_warned in
7222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7223 whose name does not start with the host triplet. If you think this
7224 configuration is useful to you, please write to autoconf@gnu.org." >&5
7225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7226 whose name does not start with the host triplet. If you think this
7227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7228 ac_tool_warned=yes ;;
7230 OBJDUMP=$ac_ct_OBJDUMP
7233 OBJDUMP="$ac_cv_prog_OBJDUMP"
7240 need_locks="$enable_libtool_lock"
7244 for ac_header in dlfcn.h
7246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_res=`eval echo '${'$as_ac_Header'}'`
7254 { echo "$as_me:$LINENO: result: $ac_res" >&5
7255 echo "${ECHO_T}$ac_res" >&6; }
7257 # Is the header compilable?
7258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7267 #include <$ac_header>
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_compile") 2>conftest.er1
7278 grep -v '^ *+' conftest.er1 >conftest.err
7280 cat conftest.err >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); } &&
7283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7284 { (case "(($ac_try" in
7285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_try") 2>&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest.$ac_objext'
7294 { (case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_try") 2>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; }; then
7303 ac_header_compiler=yes
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_header_compiler=no
7311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7313 echo "${ECHO_T}$ac_header_compiler" >&6; }
7315 # Is the header present?
7316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7318 cat >conftest.$ac_ext <<_ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 #include <$ac_header>
7326 if { (ac_try="$ac_cpp conftest.$ac_ext"
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7334 grep -v '^ *+' conftest.er1 >conftest.err
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } >/dev/null; then
7339 if test -s conftest.err; then
7340 ac_cpp_err=$ac_c_preproc_warn_flag
7341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7348 if test -z "$ac_cpp_err"; then
7349 ac_header_preproc=yes
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7354 ac_header_preproc=no
7357 rm -f conftest.err conftest.$ac_ext
7358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7359 echo "${ECHO_T}$ac_header_preproc" >&6; }
7361 # So? What about this header?
7362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7368 ac_header_preproc=yes
7371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 eval "$as_ac_Header=\$ac_header_preproc"
7393 ac_res=`eval echo '${'$as_ac_Header'}'`
7394 { echo "$as_me:$LINENO: result: $ac_res" >&5
7395 echo "${ECHO_T}$ac_res" >&6; }
7398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7399 cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7409 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7410 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7411 (test "X$CXX" != "Xg++"))) ; then
7413 ac_cpp='$CXXCPP $CPPFLAGS'
7414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7417 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7418 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7419 if test -z "$CXXCPP"; then
7420 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 # Double quotes because CXXCPP needs to be expanded
7424 for CXXCPP in "$CXX -E" "/lib/cpp"
7427 for ac_cxx_preproc_warn_flag in '' yes
7429 # Use a header file that comes with gcc, so configuring glibc
7430 # with a fresh cross-compiler works.
7431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7432 # <limits.h> exists even on freestanding compilers.
7433 # On the NeXT, cc -E runs the code through the compiler's parser,
7434 # not just through cpp. "Syntax error" is here to catch this case.
7435 cat >conftest.$ac_ext <<_ACEOF
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7442 # include <limits.h>
7444 # include <assert.h>
7448 if { (ac_try="$ac_cpp conftest.$ac_ext"
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } >/dev/null; then
7461 if test -s conftest.err; then
7462 ac_cpp_err=$ac_cxx_preproc_warn_flag
7463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7470 if test -z "$ac_cpp_err"; then
7473 echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7476 # Broken: fails on valid input.
7480 rm -f conftest.err conftest.$ac_ext
7482 # OK, works on sane cases. Now check whether nonexistent headers
7483 # can be detected and how.
7484 cat >conftest.$ac_ext <<_ACEOF
7487 cat confdefs.h >>conftest.$ac_ext
7488 cat >>conftest.$ac_ext <<_ACEOF
7489 /* end confdefs.h. */
7490 #include <ac_nonexistent.h>
7492 if { (ac_try="$ac_cpp conftest.$ac_ext"
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7500 grep -v '^ *+' conftest.er1 >conftest.err
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); } >/dev/null; then
7505 if test -s conftest.err; then
7506 ac_cpp_err=$ac_cxx_preproc_warn_flag
7507 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7514 if test -z "$ac_cpp_err"; then
7515 # Broken: success on invalid input.
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7521 # Passes both tests.
7526 rm -f conftest.err conftest.$ac_ext
7529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7530 rm -f conftest.err conftest.$ac_ext
7531 if $ac_preproc_ok; then
7536 ac_cv_prog_CXXCPP=$CXXCPP
7539 CXXCPP=$ac_cv_prog_CXXCPP
7541 ac_cv_prog_CXXCPP=$CXXCPP
7543 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7544 echo "${ECHO_T}$CXXCPP" >&6; }
7546 for ac_cxx_preproc_warn_flag in '' yes
7548 # Use a header file that comes with gcc, so configuring glibc
7549 # with a fresh cross-compiler works.
7550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7551 # <limits.h> exists even on freestanding compilers.
7552 # On the NeXT, cc -E runs the code through the compiler's parser,
7553 # not just through cpp. "Syntax error" is here to catch this case.
7554 cat >conftest.$ac_ext <<_ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7561 # include <limits.h>
7563 # include <assert.h>
7567 if { (ac_try="$ac_cpp conftest.$ac_ext"
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } >/dev/null; then
7580 if test -s conftest.err; then
7581 ac_cpp_err=$ac_cxx_preproc_warn_flag
7582 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7589 if test -z "$ac_cpp_err"; then
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 # Broken: fails on valid input.
7599 rm -f conftest.err conftest.$ac_ext
7601 # OK, works on sane cases. Now check whether nonexistent headers
7602 # can be detected and how.
7603 cat >conftest.$ac_ext <<_ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #include <ac_nonexistent.h>
7611 if { (ac_try="$ac_cpp conftest.$ac_ext"
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7619 grep -v '^ *+' conftest.er1 >conftest.err
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } >/dev/null; then
7624 if test -s conftest.err; then
7625 ac_cpp_err=$ac_cxx_preproc_warn_flag
7626 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7633 if test -z "$ac_cpp_err"; then
7634 # Broken: success on invalid input.
7637 echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 # Passes both tests.
7645 rm -f conftest.err conftest.$ac_ext
7648 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649 rm -f conftest.err conftest.$ac_ext
7650 if $ac_preproc_ok; then
7653 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7654 See \`config.log' for more details." >&5
7655 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7656 See \`config.log' for more details." >&2;}
7657 { (exit 1); exit 1; }; }
7661 ac_cpp='$CXXCPP $CPPFLAGS'
7662 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7669 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7670 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7671 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7672 if test -n "$ac_tool_prefix"; then
7673 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_prog_F77+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7682 if test -n "$F77"; then
7683 ac_cv_prog_F77="$F77" # Let the user override the test.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7692 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 if test -n "$F77"; then
7704 { echo "$as_me:$LINENO: result: $F77" >&5
7705 echo "${ECHO_T}$F77" >&6; }
7707 { echo "$as_me:$LINENO: result: no" >&5
7708 echo "${ECHO_T}no" >&6; }
7712 test -n "$F77" && break
7715 if test -z "$F77"; then
7717 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
7719 # Extract the first word of "$ac_prog", so it can be a program name with args.
7720 set dummy $ac_prog; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 if test -n "$ac_ct_F77"; then
7727 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_ac_ct_F77="$ac_prog"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7747 if test -n "$ac_ct_F77"; then
7748 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7749 echo "${ECHO_T}$ac_ct_F77" >&6; }
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7756 test -n "$ac_ct_F77" && break
7759 if test "x$ac_ct_F77" = x; then
7762 case $cross_compiling:$ac_tool_warned in
7764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7765 whose name does not start with the host triplet. If you think this
7766 configuration is useful to you, please write to autoconf@gnu.org." >&5
7767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7768 whose name does not start with the host triplet. If you think this
7769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7770 ac_tool_warned=yes ;;
7777 # Provide some information about the compiler.
7778 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7779 ac_compiler=`set X $ac_compile; echo $2`
7780 { (ac_try="$ac_compiler --version >&5"
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7786 (eval "$ac_compiler --version >&5") 2>&5
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }
7790 { (ac_try="$ac_compiler -v >&5"
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7796 (eval "$ac_compiler -v >&5") 2>&5
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }
7800 { (ac_try="$ac_compiler -V >&5"
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compiler -V >&5") 2>&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); }
7812 # If we don't use `.F' as extension, the preprocessor is not run on the
7813 # input file. (Note that this only needs to work for GNU compilers.)
7816 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7817 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7818 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7838 grep -v '^ *+' conftest.er1 >conftest.err
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } &&
7843 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest.$ac_objext'
7854 { (case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_try") 2>&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); }; }; then
7865 echo "$as_me: failed program was:" >&5
7866 sed 's/^/| /' conftest.$ac_ext >&5
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7875 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7876 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7878 ac_test_FFLAGS=${FFLAGS+set}
7879 ac_save_FFLAGS=$FFLAGS
7881 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7882 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7883 if test "${ac_cv_prog_f77_g+set}" = set; then
7884 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 cat >conftest.$ac_ext <<_ACEOF
7892 rm -f conftest.$ac_objext
7893 if { (ac_try="$ac_compile"
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7907 { (case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_try") 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_try") 2>&5
7924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); }; }; then
7926 ac_cv_prog_f77_g=yes
7928 echo "$as_me: failed program was:" >&5
7929 sed 's/^/| /' conftest.$ac_ext >&5
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7938 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7939 if test "$ac_test_FFLAGS" = set; then
7940 FFLAGS=$ac_save_FFLAGS
7941 elif test $ac_cv_prog_f77_g = yes; then
7942 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7948 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7955 G77=`test $ac_compiler_gnu = yes && echo yes`
7957 ac_cpp='$CPP $CPPFLAGS'
7958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7964 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7966 # find the maximum length of command line arguments
7967 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7968 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7969 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7977 # On DJGPP, this test can blow up pretty badly due to problems in libc
7978 # (any single argument exceeding 2000 bytes causes a buffer overrun
7979 # during glob expansion). Even if it were fixed, the result of this
7980 # check would be larger than it should be.
7981 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7985 # Under GNU Hurd, this test is not required because there is
7986 # no limit to the length of command line arguments.
7987 # Libtool will interpret -1 as no limit whatsoever
7988 lt_cv_sys_max_cmd_len=-1;
7992 # On Win9x/ME, this test blows up -- it succeeds, but takes
7993 # about 5 minutes as the teststring grows exponentially.
7994 # Worse, since 9x/ME are not pre-emptively multitasking,
7995 # you end up with a "frozen" computer, even though with patience
7996 # the test eventually succeeds (with a max line length of 256k).
7997 # Instead, let's just punt: use the minimum linelength reported by
7998 # all of the supported platforms: 8192 (on NT/2K/XP).
7999 lt_cv_sys_max_cmd_len=8192;
8003 # On AmigaOS with pdksh, this test takes hours, literally.
8004 # So we just punt and use a minimum line length of 8192.
8005 lt_cv_sys_max_cmd_len=8192;
8008 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8009 # This has been around since 386BSD, at least. Likely further.
8010 if test -x /sbin/sysctl; then
8011 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8012 elif test -x /usr/sbin/sysctl; then
8013 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8015 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8017 # And add a safety zone
8018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8019 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8023 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8024 lt_cv_sys_max_cmd_len=196608
8028 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8029 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8030 # nice to cause kernel panics so lets avoid the loop below.
8031 # First set a reasonable default.
8032 lt_cv_sys_max_cmd_len=16384
8034 if test -x /sbin/sysconfig; then
8035 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8036 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8041 lt_cv_sys_max_cmd_len=102400
8043 sysv5* | sco5v6* | sysv4.2uw2*)
8044 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8045 if test -n "$kargmax"; then
8046 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8048 lt_cv_sys_max_cmd_len=32768
8052 # If test is not a shell built-in, we'll probably end up computing a
8053 # maximum length that is only half of the actual maximum length, but
8055 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8056 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8057 = "XX$teststring") >/dev/null 2>&1 &&
8058 new_result=`expr "X$teststring" : ".*" 2>&1` &&
8059 lt_cv_sys_max_cmd_len=$new_result &&
8060 test $i != 17 # 1/2 MB should be enough
8063 teststring=$teststring$teststring
8066 # Add a significant safety factor because C++ compilers can tack on massive
8067 # amounts of additional arguments before passing them to the linker.
8068 # It appears as though 1/2 is a usable value.
8069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8075 if test -n $lt_cv_sys_max_cmd_len ; then
8076 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8077 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
8079 { echo "$as_me:$LINENO: result: none" >&5
8080 echo "${ECHO_T}none" >&6; }
8086 # Check for command to grab the raw symbol name followed by C symbol from nm.
8087 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8088 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8089 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 # These are sane defaults that work on at least a few old systems.
8094 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8096 # Character class describing NM global symbol codes.
8097 symcode='[BCDEGRST]'
8099 # Regexp to match symbols that can be accessed directly from C.
8100 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8102 # Transform an extracted symbol line into a proper C declaration
8103 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8105 # Transform an extracted symbol line into symbol name and symbol address
8106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8108 # Define system-specific variables.
8113 cygwin* | mingw* | pw32*)
8114 symcode='[ABCDGISTW]'
8116 hpux*) # Its linker distinguishes data from code symbols
8117 if test "$host_cpu" = ia64; then
8118 symcode='[ABCDEGRST]'
8120 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8121 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8123 linux* | k*bsd*-gnu)
8124 if test "$host_cpu" = ia64; then
8125 symcode='[ABCDGIRSTW]'
8126 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8127 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8131 symcode='[BCDEGRST]'
8134 symcode='[BCDEGQRST]'
8145 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8153 # Handle CRLF in mingw tool chain
8157 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8161 # If we're using GNU nm, then use its standard symbol codes.
8162 case `$NM -V 2>&1` in
8163 *GNU* | *'with BFD'*)
8164 symcode='[ABCDGIRSTW]' ;;
8167 # Try without a prefix undercore, then with it.
8168 for ac_symprfx in "" "_"; do
8170 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8171 symxfrm="\\1 $ac_symprfx\\2 \\2"
8173 # Write the raw and C identifiers.
8174 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8176 # Check to see that the pipe works correctly.
8180 cat > conftest.$ac_ext <<EOF
8185 void nm_test_func(){}
8189 int main(){nm_test_var='a';nm_test_func();return(0);}
8192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8193 (eval $ac_compile) 2>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); }; then
8197 # Now try to grab the symbols.
8199 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8200 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && test -s "$nlist"; then
8204 # Try sorting and uniquifying the output.
8205 if sort "$nlist" | uniq > "$nlist"T; then
8206 mv -f "$nlist"T "$nlist"
8211 # Make sure that we snagged all the symbols we need.
8212 if grep ' nm_test_var$' "$nlist" >/dev/null; then
8213 if grep ' nm_test_func$' "$nlist" >/dev/null; then
8214 cat <<EOF > conftest.$ac_ext
8220 # Now generate the symbol file.
8221 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8223 cat <<EOF >> conftest.$ac_ext
8224 #if defined (__STDC__) && __STDC__
8225 # define lt_ptr_t void *
8227 # define lt_ptr_t char *
8231 /* The mapping between symbol names and symbols. */
8236 lt_preloaded_symbols[] =
8239 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8240 cat <<\EOF >> conftest.$ac_ext
8248 # Now try linking the two files.
8249 mv conftest.$ac_objext conftstm.$ac_objext
8250 lt_save_LIBS="$LIBS"
8251 lt_save_CFLAGS="$CFLAGS"
8252 LIBS="conftstm.$ac_objext"
8253 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8255 (eval $ac_link) 2>&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && test -s conftest${ac_exeext}; then
8261 LIBS="$lt_save_LIBS"
8262 CFLAGS="$lt_save_CFLAGS"
8264 echo "cannot find nm_test_func in $nlist" >&5
8267 echo "cannot find nm_test_var in $nlist" >&5
8270 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8273 echo "$progname: failed program was:" >&5
8274 cat conftest.$ac_ext >&5
8276 rm -f conftest* conftst*
8278 # Do not use the global_symbol_pipe unless it works.
8279 if test "$pipe_works" = yes; then
8282 lt_cv_sys_global_symbol_pipe=
8288 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8289 lt_cv_sys_global_symbol_to_cdecl=
8291 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8292 { echo "$as_me:$LINENO: result: failed" >&5
8293 echo "${ECHO_T}failed" >&6; }
8295 { echo "$as_me:$LINENO: result: ok" >&5
8296 echo "${ECHO_T}ok" >&6; }
8299 { echo "$as_me:$LINENO: checking for objdir" >&5
8300 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8301 if test "${lt_cv_objdir+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 rm -f .libs 2>/dev/null
8305 mkdir .libs 2>/dev/null
8306 if test -d .libs; then
8309 # MS-DOS does not allow filenames that begin with a dot.
8312 rmdir .libs 2>/dev/null
8314 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8315 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8316 objdir=$lt_cv_objdir
8324 # AIX sometimes has problems with the GCC collect2 program. For some
8325 # reason, if we set the COLLECT_NAMES environment variable, the problems
8326 # vanish in a puff of smoke.
8327 if test "X${COLLECT_NAMES+set}" != Xset; then
8329 export COLLECT_NAMES
8334 # Sed substitution that helps us do robust quoting. It backslashifies
8335 # metacharacters that are still active within double-quoted strings.
8336 Xsed='sed -e 1s/^X//'
8337 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8339 # Same as above, but do not quote variable references.
8340 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8342 # Sed substitution to delay expansion of an escaped shell variable in a
8343 # double_quote_subst'ed string.
8344 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8346 # Sed substitution to avoid accidental globbing in evaled expressions
8347 no_glob_subst='s/\*/\\\*/g'
8353 default_ofile=libtool
8354 can_build_shared=yes
8356 # All known linkers require a `.a' archive for static linking (except MSVC,
8357 # which needs '.lib').
8359 ltmain="$ac_aux_dir/ltmain.sh"
8360 ofile="$default_ofile"
8361 with_gnu_ld="$lt_cv_prog_gnu_ld"
8363 if test -n "$ac_tool_prefix"; then
8364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8365 set dummy ${ac_tool_prefix}ar; ac_word=$2
8366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8368 if test "${ac_cv_prog_AR+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8371 if test -n "$AR"; then
8372 ac_cv_prog_AR="$AR" # Let the user override the test.
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 test -z "$as_dir" && as_dir=.
8379 for ac_exec_ext in '' $ac_executable_extensions; do
8380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8381 ac_cv_prog_AR="${ac_tool_prefix}ar"
8382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8392 if test -n "$AR"; then
8393 { echo "$as_me:$LINENO: result: $AR" >&5
8394 echo "${ECHO_T}$AR" >&6; }
8396 { echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6; }
8402 if test -z "$ac_cv_prog_AR"; then
8404 # Extract the first word of "ar", so it can be a program name with args.
8405 set dummy ar; ac_word=$2
8406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8408 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 if test -n "$ac_ct_AR"; then
8412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 test -z "$as_dir" && as_dir=.
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8421 ac_cv_prog_ac_ct_AR="ar"
8422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8432 if test -n "$ac_ct_AR"; then
8433 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8434 echo "${ECHO_T}$ac_ct_AR" >&6; }
8436 { echo "$as_me:$LINENO: result: no" >&5
8437 echo "${ECHO_T}no" >&6; }
8440 if test "x$ac_ct_AR" = x; then
8443 case $cross_compiling:$ac_tool_warned in
8445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet. If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&5
8448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8449 whose name does not start with the host triplet. If you think this
8450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8451 ac_tool_warned=yes ;;
8459 if test -n "$ac_tool_prefix"; then
8460 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8461 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8464 if test "${ac_cv_prog_RANLIB+set}" = set; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 if test -n "$RANLIB"; then
8468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir=.
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 RANLIB=$ac_cv_prog_RANLIB
8488 if test -n "$RANLIB"; then
8489 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8490 echo "${ECHO_T}$RANLIB" >&6; }
8492 { echo "$as_me:$LINENO: result: no" >&5
8493 echo "${ECHO_T}no" >&6; }
8498 if test -z "$ac_cv_prog_RANLIB"; then
8499 ac_ct_RANLIB=$RANLIB
8500 # Extract the first word of "ranlib", so it can be a program name with args.
8501 set dummy ranlib; ac_word=$2
8502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8504 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 if test -n "$ac_ct_RANLIB"; then
8508 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_prog_ac_ct_RANLIB="ranlib"
8518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8527 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8528 if test -n "$ac_ct_RANLIB"; then
8529 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8530 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8532 { echo "$as_me:$LINENO: result: no" >&5
8533 echo "${ECHO_T}no" >&6; }
8536 if test "x$ac_ct_RANLIB" = x; then
8539 case $cross_compiling:$ac_tool_warned in
8541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8542 whose name does not start with the host triplet. If you think this
8543 configuration is useful to you, please write to autoconf@gnu.org." >&5
8544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8545 whose name does not start with the host triplet. If you think this
8546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8547 ac_tool_warned=yes ;;
8549 RANLIB=$ac_ct_RANLIB
8552 RANLIB="$ac_cv_prog_RANLIB"
8555 if test -n "$ac_tool_prefix"; then
8556 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8557 set dummy ${ac_tool_prefix}strip; ac_word=$2
8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560 if test "${ac_cv_prog_STRIP+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 if test -n "$STRIP"; then
8564 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir=.
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8573 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 STRIP=$ac_cv_prog_STRIP
8584 if test -n "$STRIP"; then
8585 { echo "$as_me:$LINENO: result: $STRIP" >&5
8586 echo "${ECHO_T}$STRIP" >&6; }
8588 { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8594 if test -z "$ac_cv_prog_STRIP"; then
8596 # Extract the first word of "strip", so it can be a program name with args.
8597 set dummy strip; ac_word=$2
8598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8600 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 if test -n "$ac_ct_STRIP"; then
8604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_prog_ac_ct_STRIP="strip"
8614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8623 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8624 if test -n "$ac_ct_STRIP"; then
8625 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8626 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8628 { echo "$as_me:$LINENO: result: no" >&5
8629 echo "${ECHO_T}no" >&6; }
8632 if test "x$ac_ct_STRIP" = x; then
8635 case $cross_compiling:$ac_tool_warned in
8637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8638 whose name does not start with the host triplet. If you think this
8639 configuration is useful to you, please write to autoconf@gnu.org." >&5
8640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8641 whose name does not start with the host triplet. If you think this
8642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8643 ac_tool_warned=yes ;;
8648 STRIP="$ac_cv_prog_STRIP"
8653 old_CFLAGS="$CFLAGS"
8655 # Set sane defaults for various variables
8656 test -z "$AR" && AR=ar
8657 test -z "$AR_FLAGS" && AR_FLAGS=cru
8658 test -z "$AS" && AS=as
8659 test -z "$CC" && CC=cc
8660 test -z "$LTCC" && LTCC=$CC
8661 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8662 test -z "$DLLTOOL" && DLLTOOL=dlltool
8663 test -z "$LD" && LD=ld
8664 test -z "$LN_S" && LN_S="ln -s"
8665 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8666 test -z "$NM" && NM=nm
8667 test -z "$SED" && SED=sed
8668 test -z "$OBJDUMP" && OBJDUMP=objdump
8669 test -z "$RANLIB" && RANLIB=:
8670 test -z "$STRIP" && STRIP=:
8671 test -z "$ac_objext" && ac_objext=o
8673 # Determine commands to create old-style static archives.
8674 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8675 old_postinstall_cmds='chmod 644 $oldlib'
8676 old_postuninstall_cmds=
8678 if test -n "$RANLIB"; then
8681 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8687 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8690 for cc_temp in $compiler""; do
8692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8701 # Only perform the check for file, if the check method requires it
8702 case $deplibs_check_method in
8704 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8705 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8706 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8707 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8712 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8715 lt_save_MAGIC_CMD="$MAGIC_CMD"
8716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8717 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8718 for ac_dir in $ac_dummy; do
8720 test -z "$ac_dir" && ac_dir=.
8721 if test -f $ac_dir/${ac_tool_prefix}file; then
8722 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8723 if test -n "$file_magic_test_file"; then
8724 case $deplibs_check_method in
8726 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8727 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8728 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8729 $EGREP "$file_magic_regex" > /dev/null; then
8734 *** Warning: the command libtool uses to detect shared libraries,
8735 *** $file_magic_cmd, produces output that libtool cannot recognize.
8736 *** The result is that libtool may fail to recognize shared libraries
8737 *** as such. This will affect the creation of libtool libraries that
8738 *** depend on shared libraries, but programs linked with such libtool
8739 *** libraries will work regardless of this problem. Nevertheless, you
8740 *** may want to report the problem to your system manager and/or to
8741 *** bug-libtool@gnu.org
8751 MAGIC_CMD="$lt_save_MAGIC_CMD"
8756 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8757 if test -n "$MAGIC_CMD"; then
8758 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8759 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8761 { echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6; }
8765 if test -z "$lt_cv_path_MAGIC_CMD"; then
8766 if test -n "$ac_tool_prefix"; then
8767 { echo "$as_me:$LINENO: checking for file" >&5
8768 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8769 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8770 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8777 lt_save_MAGIC_CMD="$MAGIC_CMD"
8778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8779 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8780 for ac_dir in $ac_dummy; do
8782 test -z "$ac_dir" && ac_dir=.
8783 if test -f $ac_dir/file; then
8784 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8785 if test -n "$file_magic_test_file"; then
8786 case $deplibs_check_method in
8788 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8791 $EGREP "$file_magic_regex" > /dev/null; then
8796 *** Warning: the command libtool uses to detect shared libraries,
8797 *** $file_magic_cmd, produces output that libtool cannot recognize.
8798 *** The result is that libtool may fail to recognize shared libraries
8799 *** as such. This will affect the creation of libtool libraries that
8800 *** depend on shared libraries, but programs linked with such libtool
8801 *** libraries will work regardless of this problem. Nevertheless, you
8802 *** may want to report the problem to your system manager and/or to
8803 *** bug-libtool@gnu.org
8813 MAGIC_CMD="$lt_save_MAGIC_CMD"
8818 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8819 if test -n "$MAGIC_CMD"; then
8820 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8821 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8823 { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8837 enable_win32_dll=yes
8839 # Check whether --enable-libtool-lock was given.
8840 if test "${enable_libtool_lock+set}" = set; then
8841 enableval=$enable_libtool_lock;
8844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8847 # Check whether --with-pic was given.
8848 if test "${with_pic+set}" = set; then
8849 withval=$with_pic; pic_mode="$withval"
8854 test -z "$pic_mode" && pic_mode=default
8856 # Use C for the default configuration in the libtool script
8860 ac_cpp='$CPP $CPPFLAGS'
8861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8866 # Source file extension for C test sources.
8869 # Object file extension for compiled C test sources.
8873 # Code to be used in simple compile tests
8874 lt_simple_compile_test_code="int some_variable = 0;\n"
8876 # Code to be used in simple link tests
8877 lt_simple_link_test_code='int main(){return(0);}\n'
8880 # If no C compiler was specified, use CC.
8883 # If no C compiler flags were specified, use CFLAGS.
8884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8886 # Allow CC to be a program name with arguments.
8890 # save warnings/boilerplate of simple test code
8891 ac_outfile=conftest.$ac_objext
8892 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8893 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8894 _lt_compiler_boilerplate=`cat conftest.err`
8897 ac_outfile=conftest.$ac_objext
8898 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8899 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8900 _lt_linker_boilerplate=`cat conftest.err`
8905 lt_prog_compiler_no_builtin_flag=
8907 if test "$GCC" = yes; then
8908 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8911 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8912 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8913 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 lt_cv_prog_compiler_rtti_exceptions=no
8917 ac_outfile=conftest.$ac_objext
8918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8919 lt_compiler_flag="-fno-rtti -fno-exceptions"
8920 # Insert the option either (1) after the last *FLAGS variable, or
8921 # (2) before a word containing "conftest.", or (3) at the end.
8922 # Note that $ac_compile itself does not contain backslashes and begins
8923 # with a dollar sign (not a hyphen), so the echo should work correctly.
8924 # The option is referenced via a variable to avoid confusing sed.
8925 lt_compile=`echo "$ac_compile" | $SED \
8926 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928 -e 's:$: $lt_compiler_flag:'`
8929 (eval echo "\"\$as_me:8929: $lt_compile\"" >&5)
8930 (eval "$lt_compile" 2>conftest.err)
8932 cat conftest.err >&5
8933 echo "$as_me:8933: \$? = $ac_status" >&5
8934 if (exit $ac_status) && test -s "$ac_outfile"; then
8935 # The compiler can only warn and ignore the option if not recognized
8936 # So say no if there are warnings other than the usual output.
8937 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8938 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8939 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8940 lt_cv_prog_compiler_rtti_exceptions=yes
8946 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8947 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8949 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8950 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8957 lt_prog_compiler_wl=
8958 lt_prog_compiler_pic=
8959 lt_prog_compiler_static=
8961 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8962 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8964 if test "$GCC" = yes; then
8965 lt_prog_compiler_wl='-Wl,'
8966 lt_prog_compiler_static='-static'
8970 # All AIX code is PIC.
8971 if test "$host_cpu" = ia64; then
8972 # AIX 5 now supports IA64 processor
8973 lt_prog_compiler_static='-Bstatic'
8978 # FIXME: we need at least 68020 code to build shared libraries, but
8979 # adding the `-m68020' flag to GCC prevents building anything better,
8981 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8984 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8985 # PIC is the default for these OSes.
8988 mingw* | pw32* | os2*)
8989 # This hack is so that the source file can tell whether it is being
8990 # built for inclusion in a dll (and should export symbols for example).
8991 lt_prog_compiler_pic='-DDLL_EXPORT'
8994 darwin* | rhapsody*)
8995 # PIC is the default on this platform
8996 # Common symbols not allowed in MH_DYLIB files
8997 lt_prog_compiler_pic='-fno-common'
9001 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9002 # Instead, we relocate shared libraries at runtime.
9006 # Just because we use GCC doesn't mean we suddenly get shared libraries
9007 # on systems that don't support them.
9008 lt_prog_compiler_can_build_shared=no
9013 if test -d /usr/nec; then
9014 lt_prog_compiler_pic=-Kconform_pic
9019 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9026 lt_prog_compiler_pic='-fPIC'
9032 lt_prog_compiler_pic='-fPIC'
9036 # PORTME Check for flag to pass linker flags through the system compiler.
9039 lt_prog_compiler_wl='-Wl,'
9040 if test "$host_cpu" = ia64; then
9041 # AIX 5 now supports IA64 processor
9042 lt_prog_compiler_static='-Bstatic'
9044 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9048 # PIC is the default on this platform
9049 # Common symbols not allowed in MH_DYLIB files
9050 case $cc_basename in
9052 lt_prog_compiler_pic='-qnocommon'
9053 lt_prog_compiler_wl='-Wl,'
9058 mingw* | pw32* | os2*)
9059 # This hack is so that the source file can tell whether it is being
9060 # built for inclusion in a dll (and should export symbols for example).
9061 lt_prog_compiler_pic='-DDLL_EXPORT'
9064 hpux9* | hpux10* | hpux11*)
9065 lt_prog_compiler_wl='-Wl,'
9066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9073 lt_prog_compiler_pic='+Z'
9076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9077 lt_prog_compiler_static='${wl}-a ${wl}archive'
9080 irix5* | irix6* | nonstopux*)
9081 lt_prog_compiler_wl='-Wl,'
9082 # PIC (with -KPIC) is the default.
9083 lt_prog_compiler_static='-non_shared'
9087 lt_prog_compiler_pic='-KPIC'
9088 lt_prog_compiler_static='-Bstatic'
9091 linux* | k*bsd*-gnu)
9092 case $cc_basename in
9094 lt_prog_compiler_wl='-Wl,'
9095 lt_prog_compiler_pic='-KPIC'
9096 lt_prog_compiler_static='-static'
9098 pgcc* | pgf77* | pgf90* | pgf95*)
9099 # Portland Group compilers (*not* the Pentium gcc compiler,
9100 # which looks to be a dead project)
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_pic='-fpic'
9103 lt_prog_compiler_static='-Bstatic'
9106 lt_prog_compiler_wl='-Wl,'
9107 # All Alpha code is PIC.
9108 lt_prog_compiler_static='-non_shared'
9113 osf3* | osf4* | osf5*)
9114 lt_prog_compiler_wl='-Wl,'
9115 # All OSF/1 code is PIC.
9116 lt_prog_compiler_static='-non_shared'
9120 lt_prog_compiler_pic='-KPIC'
9121 lt_prog_compiler_static='-Bstatic'
9122 case $cc_basename in
9124 lt_prog_compiler_wl='-Qoption ld ';;
9126 lt_prog_compiler_wl='-Wl,';;
9131 lt_prog_compiler_wl='-Qoption ld '
9132 lt_prog_compiler_pic='-PIC'
9133 lt_prog_compiler_static='-Bstatic'
9136 sysv4 | sysv4.2uw2* | sysv4.3*)
9137 lt_prog_compiler_wl='-Wl,'
9138 lt_prog_compiler_pic='-KPIC'
9139 lt_prog_compiler_static='-Bstatic'
9143 if test -d /usr/nec ;then
9144 lt_prog_compiler_pic='-Kconform_pic'
9145 lt_prog_compiler_static='-Bstatic'
9149 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9150 lt_prog_compiler_wl='-Wl,'
9151 lt_prog_compiler_pic='-KPIC'
9152 lt_prog_compiler_static='-Bstatic'
9156 lt_prog_compiler_wl='-Wl,'
9157 lt_prog_compiler_can_build_shared=no
9161 lt_prog_compiler_pic='-pic'
9162 lt_prog_compiler_static='-Bstatic'
9166 lt_prog_compiler_can_build_shared=no
9171 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9172 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9175 # Check to make sure the PIC flag actually works.
9177 if test -n "$lt_prog_compiler_pic"; then
9179 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9180 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9181 if test "${lt_prog_compiler_pic_works+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 lt_prog_compiler_pic_works=no
9185 ac_outfile=conftest.$ac_objext
9186 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9187 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9188 # Insert the option either (1) after the last *FLAGS variable, or
9189 # (2) before a word containing "conftest.", or (3) at the end.
9190 # Note that $ac_compile itself does not contain backslashes and begins
9191 # with a dollar sign (not a hyphen), so the echo should work correctly.
9192 # The option is referenced via a variable to avoid confusing sed.
9193 lt_compile=`echo "$ac_compile" | $SED \
9194 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9195 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9196 -e 's:$: $lt_compiler_flag:'`
9197 (eval echo "\"\$as_me:9197: $lt_compile\"" >&5)
9198 (eval "$lt_compile" 2>conftest.err)
9200 cat conftest.err >&5
9201 echo "$as_me:9201: \$? = $ac_status" >&5
9202 if (exit $ac_status) && test -s "$ac_outfile"; then
9203 # The compiler can only warn and ignore the option if not recognized
9204 # So say no if there are warnings other than the usual output.
9205 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9206 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9207 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9208 lt_prog_compiler_pic_works=yes
9214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9215 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
9217 if test x"$lt_prog_compiler_pic_works" = xyes; then
9218 case $lt_prog_compiler_pic in
9220 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9223 lt_prog_compiler_pic=
9224 lt_prog_compiler_can_build_shared=no
9229 # For platforms which do not support PIC, -DPIC is meaningless:
9231 lt_prog_compiler_pic=
9234 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9239 # Check to make sure the static flag actually works.
9241 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9242 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9243 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9244 if test "${lt_prog_compiler_static_works+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 lt_prog_compiler_static_works=no
9248 save_LDFLAGS="$LDFLAGS"
9249 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9250 printf "$lt_simple_link_test_code" > conftest.$ac_ext
9251 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9252 # The linker can only warn and ignore the option if not recognized
9253 # So say no if there are warnings
9254 if test -s conftest.err; then
9255 # Append any errors to the config.log.
9256 cat conftest.err 1>&5
9257 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9258 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9259 if diff conftest.exp conftest.er2 >/dev/null; then
9260 lt_prog_compiler_static_works=yes
9263 lt_prog_compiler_static_works=yes
9267 LDFLAGS="$save_LDFLAGS"
9270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9271 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9273 if test x"$lt_prog_compiler_static_works" = xyes; then
9276 lt_prog_compiler_static=
9280 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9281 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9282 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9283 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 lt_cv_prog_compiler_c_o=no
9286 $rm -r conftest 2>/dev/null
9290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9292 lt_compiler_flag="-o out/conftest2.$ac_objext"
9293 # Insert the option either (1) after the last *FLAGS variable, or
9294 # (2) before a word containing "conftest.", or (3) at the end.
9295 # Note that $ac_compile itself does not contain backslashes and begins
9296 # with a dollar sign (not a hyphen), so the echo should work correctly.
9297 lt_compile=`echo "$ac_compile" | $SED \
9298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300 -e 's:$: $lt_compiler_flag:'`
9301 (eval echo "\"\$as_me:9301: $lt_compile\"" >&5)
9302 (eval "$lt_compile" 2>out/conftest.err)
9304 cat out/conftest.err >&5
9305 echo "$as_me:9305: \$? = $ac_status" >&5
9306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9308 # The compiler can only warn and ignore the option if not recognized
9309 # So say no if there are warnings
9310 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9313 lt_cv_prog_compiler_c_o=yes
9318 # SGI C++ compiler will create directory out/ii_files/ for
9319 # template instantiation
9320 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9321 $rm out/* && rmdir out
9327 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9328 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9331 hard_links="nottested"
9332 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9333 # do not overwrite the value of need_locks provided by the user
9334 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9335 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9338 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9340 ln conftest.a conftest.b 2>&5 || hard_links=no
9341 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9342 { echo "$as_me:$LINENO: result: $hard_links" >&5
9343 echo "${ECHO_T}$hard_links" >&6; }
9344 if test "$hard_links" = no; then
9345 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9346 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9353 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9354 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9357 allow_undefined_flag=
9358 enable_shared_with_static_runtimes=no
9360 archive_expsym_cmds=
9361 old_archive_From_new_cmds=
9362 old_archive_from_expsyms_cmds=
9363 export_dynamic_flag_spec=
9364 whole_archive_flag_spec=
9365 thread_safe_flag_spec=
9366 hardcode_libdir_flag_spec=
9367 hardcode_libdir_flag_spec_ld=
9368 hardcode_libdir_separator=
9371 hardcode_shlibpath_var=unsupported
9372 link_all_deplibs=unknown
9373 hardcode_automatic=no
9376 always_export_symbols=no
9377 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9378 # include_expsyms should be a list of space-separated symbols to be *always*
9379 # included in the symbol list
9381 # exclude_expsyms can be an extended regexp of symbols to exclude
9382 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9383 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9384 # as well as any symbol that contains `d'.
9385 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9386 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9387 # platforms (ab)use it in PIC code, but their linkers get confused if
9388 # the symbol is explicitly referenced. Since portable code cannot
9389 # rely on this symbol name, it's probably fine to never include it in
9390 # preloaded symbol tables.
9391 extract_expsyms_cmds=
9392 # Just being paranoid about ensuring that cc_basename is set.
9393 for cc_temp in $compiler""; do
9395 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9396 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9401 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9404 cygwin* | mingw* | pw32*)
9405 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9406 # When not using gcc, we currently assume that we are using
9407 # Microsoft Visual C++.
9408 if test "$GCC" != yes; then
9413 # we just hope/assume this is gcc and not c89 (= MSVC++)
9422 if test "$with_gnu_ld" = yes; then
9423 # If archive_cmds runs LD, not CC, wlarc should be empty
9426 # Set some defaults for GNU ld with shared library support. These
9427 # are reset later if shared libraries are not supported. Putting them
9428 # here allows them to be overridden if necessary.
9429 runpath_var=LD_RUN_PATH
9430 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9431 export_dynamic_flag_spec='${wl}--export-dynamic'
9432 # ancient GNU ld didn't support --whole-archive et. al.
9433 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9434 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9436 whole_archive_flag_spec=
9438 supports_anon_versioning=no
9439 case `$LD -v 2>/dev/null` in
9440 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9441 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9442 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9443 *\ 2.11.*) ;; # other 2.11 versions
9444 *) supports_anon_versioning=yes ;;
9447 # See if GNU ld supports shared libraries.
9449 aix3* | aix4* | aix5*)
9450 # On AIX/PPC, the GNU linker is very broken
9451 if test "$host_cpu" != ia64; then
9455 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9456 *** to be unable to reliably create shared libraries on AIX.
9457 *** Therefore, libtool is disabling shared libraries support. If you
9458 *** really care for shared libraries, you may want to modify your PATH
9459 *** so that a non-GNU linker is found, and then restart.
9466 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)'
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_minus_L=yes
9470 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9471 # that the semantics of dynamic libraries on AmigaOS, at least up
9472 # to version 4, is to share data among multiple programs linked
9473 # with the same dynamic library. Since this doesn't match the
9474 # behavior of shared libraries on other platforms, we can't use
9480 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9481 allow_undefined_flag=unsupported
9482 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9483 # support --undefined. This deserves some investigation. FIXME
9484 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 cygwin* | mingw* | pw32*)
9491 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9492 # as there is no search path for DLLs.
9493 hardcode_libdir_flag_spec='-L$libdir'
9494 allow_undefined_flag=unsupported
9495 always_export_symbols=no
9496 enable_shared_with_static_runtimes=yes
9497 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9499 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9500 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9501 # If the export-symbols file already is a .def file (1st line
9502 # is EXPORTS), use it as is; otherwise, prepend...
9503 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9504 cp $export_symbols $output_objdir/$soname.def;
9506 echo EXPORTS > $output_objdir/$soname.def;
9507 cat $export_symbols >> $output_objdir/$soname.def;
9509 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9517 hardcode_shlibpath_var=no
9518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9519 export_dynamic_flag_spec='${wl}-E'
9520 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9521 # Instead, shared libraries are loaded at an image base (0x10000000 by
9522 # default) and relocated if they conflict, which is a slow very memory
9523 # consuming and fragmenting process. To avoid this, we pick a random,
9524 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9525 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9526 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9527 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'
9530 linux* | k*bsd*-gnu)
9531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9533 case $cc_basename,$host_cpu in
9534 pgcc*) # Portland Group C compiler
9535 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9536 tmp_addflag=' $pic_flag'
9538 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9539 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9540 tmp_addflag=' $pic_flag -Mnomain' ;;
9541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9542 tmp_addflag=' -i_dynamic' ;;
9543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9544 tmp_addflag=' -i_dynamic -nofor_main' ;;
9545 ifc* | ifort*) # Intel Fortran compiler
9546 tmp_addflag=' -nofor_main' ;;
9548 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 if test $supports_anon_versioning = yes; then
9551 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9552 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9553 $echo "local: *; };" >> $output_objdir/$libname.ver~
9554 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9562 netbsd* | netbsdelf*-gnu)
9563 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9564 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9567 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9568 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9577 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9578 *** create shared libraries on Solaris systems. Therefore, libtool
9579 *** is disabling shared libraries support. We urge you to upgrade GNU
9580 *** binutils to release 2.9.1 or newer. Another option is to modify
9581 *** your PATH or compiler configuration so that the native linker is
9582 *** used, and then restart.
9585 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9594 case `$LD -v 2>&1` in
9595 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9599 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9600 *** reliably create shared libraries on SCO systems. Therefore, libtool
9601 *** is disabling shared libraries support. We urge you to upgrade GNU
9602 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9603 *** your PATH or compiler configuration so that the native linker is
9604 *** used, and then restart.
9609 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9610 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9621 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_shlibpath_var=no
9628 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9637 if test "$ld_shlibs" = no; then
9639 hardcode_libdir_flag_spec=
9640 export_dynamic_flag_spec=
9641 whole_archive_flag_spec=
9644 # PORTME fill in a description of your system's linker (not GNU ld)
9647 allow_undefined_flag=unsupported
9648 always_export_symbols=yes
9649 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'
9650 # Note: this linker hardcodes the directories in LIBPATH if there
9651 # are no directories specified by -L.
9652 hardcode_minus_L=yes
9653 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9654 # Neither direct hardcoding nor static linking is supported with a
9656 hardcode_direct=unsupported
9661 if test "$host_cpu" = ia64; then
9662 # On IA64, the linker does run time linking by default, so we don't
9663 # have to do anything special.
9664 aix_use_runtimelinking=no
9665 exp_sym_flag='-Bexport'
9668 # If we're using GNU nm, then we don't want the "-C" option.
9669 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9670 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9671 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9673 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9675 aix_use_runtimelinking=no
9677 # Test if we are trying to use run time linking or normal
9678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9679 # need to do runtime linking.
9680 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9681 for ld_flag in $LDFLAGS; do
9682 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9683 aix_use_runtimelinking=yes
9690 exp_sym_flag='-bexport'
9691 no_entry_flag='-bnoentry'
9694 # When large executables or shared objects are built, AIX ld can
9695 # have problems creating the table of contents. If linking a library
9696 # or program results in "error TOC overflow" add -mminimal-toc to
9697 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9698 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9702 hardcode_libdir_separator=':'
9703 link_all_deplibs=yes
9705 if test "$GCC" = yes; then
9706 case $host_os in aix4.[012]|aix4.[012].*)
9707 # We only want to do this on AIX 4.2 and lower, the check
9708 # below for broken collect2 doesn't work under 4.3+
9709 collect2name=`${CC} -print-prog-name=collect2`
9710 if test -f "$collect2name" && \
9711 strings "$collect2name" | grep resolve_lib_name >/dev/null
9713 # We have reworked collect2
9716 # We have old collect2
9717 hardcode_direct=unsupported
9718 # It fails to find uninstalled libraries when the uninstalled
9719 # path is not listed in the libpath. Setting hardcode_minus_L
9720 # to unsupported forces relinking
9721 hardcode_minus_L=yes
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_libdir_separator=
9727 shared_flag='-shared'
9728 if test "$aix_use_runtimelinking" = yes; then
9729 shared_flag="$shared_flag "'${wl}-G'
9733 if test "$host_cpu" = ia64; then
9734 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9735 # chokes on -Wl,-G. The following line is correct:
9738 if test "$aix_use_runtimelinking" = yes; then
9739 shared_flag='${wl}-G'
9741 shared_flag='${wl}-bM:SRE'
9746 # It seems that -bexpall does not export symbols beginning with
9747 # underscore (_), so it is better to generate a list of symbols to export.
9748 always_export_symbols=yes
9749 if test "$aix_use_runtimelinking" = yes; then
9750 # Warning - without using the other runtime loading flags (-brtl),
9751 # -berok will link without error, but may produce a broken library.
9752 allow_undefined_flag='-berok'
9753 # Determine the default libpath from the value encoded in an empty executable.
9754 cat >conftest.$ac_ext <<_ACEOF
9757 cat confdefs.h >>conftest.$ac_ext
9758 cat >>conftest.$ac_ext <<_ACEOF
9759 /* end confdefs.h. */
9769 rm -f conftest.$ac_objext conftest$ac_exeext
9770 if { (ac_try="$ac_link"
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
9778 grep -v '^ *+' conftest.er1 >conftest.err
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9804 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9806 # Check for a 64-bit object if we didn't find anything.
9807 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9810 echo "$as_me: failed program was:" >&5
9811 sed 's/^/| /' conftest.$ac_ext >&5
9816 rm -f core conftest.err conftest.$ac_objext \
9817 conftest$ac_exeext conftest.$ac_ext
9818 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9820 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9821 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9823 if test "$host_cpu" = ia64; then
9824 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9825 allow_undefined_flag="-z nodefs"
9826 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"
9828 # Determine the default libpath from the value encoded in an empty executable.
9829 cat >conftest.$ac_ext <<_ACEOF
9832 cat confdefs.h >>conftest.$ac_ext
9833 cat >>conftest.$ac_ext <<_ACEOF
9834 /* end confdefs.h. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9879 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9881 # Check for a 64-bit object if we didn't find anything.
9882 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9891 rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9896 # Warning - without using the other run time loading flags,
9897 # -berok will link without error, but may produce a broken library.
9898 no_undefined_flag=' ${wl}-bernotok'
9899 allow_undefined_flag=' ${wl}-berok'
9900 # Exported symbols can be pulled into shared objects from archives
9901 whole_archive_flag_spec='$convenience'
9902 archive_cmds_need_lc=yes
9903 # This is similar to how AIX traditionally builds its shared libraries.
9904 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9910 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)'
9911 hardcode_libdir_flag_spec='-L$libdir'
9912 hardcode_minus_L=yes
9913 # see comment about different semantics on the GNU ld section
9918 export_dynamic_flag_spec=-rdynamic
9921 cygwin* | mingw* | pw32*)
9922 # When not using gcc, we currently assume that we are using
9923 # Microsoft Visual C++.
9924 # hardcode_libdir_flag_spec is actually meaningless, as there is
9925 # no search path for DLLs.
9926 hardcode_libdir_flag_spec=' '
9927 allow_undefined_flag=unsupported
9928 # Tell ltmain to make .lib files, not .a files.
9930 # Tell ltmain to make .dll files, not .so files.
9932 # FIXME: Setting linknames here is a bad hack.
9933 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9934 # The linker will automatically build a .lib file if we build a DLL.
9935 old_archive_From_new_cmds='true'
9936 # FIXME: Should let the user specify the lib program.
9937 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9938 fix_srcfile_path='`cygpath -w "$srcfile"`'
9939 enable_shared_with_static_runtimes=yes
9942 darwin* | rhapsody*)
9944 rhapsody* | darwin1.[012])
9945 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9948 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9949 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9951 case ${MACOSX_DEPLOYMENT_TARGET} in
9953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9956 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9962 archive_cmds_need_lc=no
9964 hardcode_automatic=yes
9965 hardcode_shlibpath_var=unsupported
9966 whole_archive_flag_spec=''
9967 link_all_deplibs=yes
9968 if test "$GCC" = yes ; then
9969 output_verbose_link_cmd='echo'
9970 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9971 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9973 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9974 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9976 case $cc_basename in
9978 output_verbose_link_cmd='echo'
9979 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9980 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9981 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9982 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9983 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_libdir_flag_spec='-L$libdir'
9995 hardcode_shlibpath_var=no
10002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10003 # support. Future versions do this automatically, but an explicit c++rt0.o
10004 # does not break anything, and helps significantly (at the cost of a little
10007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10008 hardcode_libdir_flag_spec='-R$libdir'
10009 hardcode_direct=yes
10010 hardcode_shlibpath_var=no
10013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_direct=yes
10017 hardcode_minus_L=yes
10018 hardcode_shlibpath_var=no
10021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10022 freebsd* | dragonfly*)
10023 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10024 hardcode_libdir_flag_spec='-R$libdir'
10025 hardcode_direct=yes
10026 hardcode_shlibpath_var=no
10030 if test "$GCC" = yes; then
10031 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10033 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10036 hardcode_libdir_separator=:
10037 hardcode_direct=yes
10039 # hardcode_minus_L: Not really in the search PATH,
10040 # but as the default location of the library.
10041 hardcode_minus_L=yes
10042 export_dynamic_flag_spec='${wl}-E'
10046 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10047 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10051 if test "$with_gnu_ld" = no; then
10052 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10053 hardcode_libdir_separator=:
10055 hardcode_direct=yes
10056 export_dynamic_flag_spec='${wl}-E'
10058 # hardcode_minus_L: Not really in the search PATH,
10059 # but as the default location of the library.
10060 hardcode_minus_L=yes
10065 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10068 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10074 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10080 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10083 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10086 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10090 if test "$with_gnu_ld" = no; then
10091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10092 hardcode_libdir_separator=:
10096 hardcode_libdir_flag_spec_ld='+b $libdir'
10098 hardcode_shlibpath_var=no
10101 hardcode_direct=yes
10102 export_dynamic_flag_spec='${wl}-E'
10104 # hardcode_minus_L: Not really in the search PATH,
10105 # but as the default location of the library.
10106 hardcode_minus_L=yes
10112 irix5* | irix6* | nonstopux*)
10113 if test "$GCC" = yes; then
10114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10116 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10117 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 link_all_deplibs=yes
10124 netbsd* | netbsdelf*-gnu)
10125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10128 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10130 hardcode_libdir_flag_spec='-R$libdir'
10131 hardcode_direct=yes
10132 hardcode_shlibpath_var=no
10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137 hardcode_direct=yes
10138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10139 hardcode_libdir_separator=:
10140 hardcode_shlibpath_var=no
10144 hardcode_direct=yes
10145 hardcode_shlibpath_var=no
10146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150 export_dynamic_flag_spec='${wl}-E'
10153 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10155 hardcode_libdir_flag_spec='-R$libdir'
10158 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10159 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10166 hardcode_libdir_flag_spec='-L$libdir'
10167 hardcode_minus_L=yes
10168 allow_undefined_flag=unsupported
10169 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10170 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10174 if test "$GCC" = yes; then
10175 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10176 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10178 allow_undefined_flag=' -expect_unresolved \*'
10179 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10182 hardcode_libdir_separator=:
10185 osf4* | osf5*) # as osf3* with the addition of -msym flag
10186 if test "$GCC" = yes; then
10187 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10188 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10189 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10191 allow_undefined_flag=' -expect_unresolved \*'
10192 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10193 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10194 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10196 # Both c and cxx compiler support -rpath directly
10197 hardcode_libdir_flag_spec='-rpath $libdir'
10199 hardcode_libdir_separator=:
10203 no_undefined_flag=' -z text'
10204 if test "$GCC" = yes; then
10206 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10208 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10211 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10213 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10215 hardcode_libdir_flag_spec='-R$libdir'
10216 hardcode_shlibpath_var=no
10218 solaris2.[0-5] | solaris2.[0-5].*) ;;
10220 # The compiler driver will combine linker options so we
10221 # cannot just pass the convience library names through
10222 # without $wl, iff we do not link with $LD.
10223 # Luckily, gcc supports the same syntax we need for Sun Studio.
10224 # Supported since Solaris 2.6 (maybe 2.5.1?)
10227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10229 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
10232 link_all_deplibs=yes
10236 if test "x$host_vendor" = xsequent; then
10237 # Use $CC to link under sequent, because it throws in some extra .o
10238 # files that make .init and .fini sections work.
10239 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10241 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_libdir_flag_spec='-L$libdir'
10244 hardcode_direct=yes
10245 hardcode_minus_L=yes
10246 hardcode_shlibpath_var=no
10250 case $host_vendor in
10252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10253 hardcode_direct=yes # is this really true???
10256 ## LD is ld it makes a PLAMLIB
10257 ## CC just makes a GrossModule.
10258 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10259 reload_cmds='$CC -r -o $output$reload_objs'
10263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10264 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10267 runpath_var='LD_RUN_PATH'
10268 hardcode_shlibpath_var=no
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_shlibpath_var=no
10274 export_dynamic_flag_spec='-Bexport'
10278 if test -d /usr/nec; then
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_shlibpath_var=no
10281 runpath_var=LD_RUN_PATH
10282 hardcode_runpath_var=yes
10287 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10288 no_undefined_flag='${wl}-z,text'
10289 archive_cmds_need_lc=no
10290 hardcode_shlibpath_var=no
10291 runpath_var='LD_RUN_PATH'
10293 if test "$GCC" = yes; then
10294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 sysv5* | sco3.2v5* | sco5v6*)
10303 # Note: We can NOT use -z defs as we might desire, because we do not
10304 # link with -lc, and that would cause any symbols used from libc to
10305 # always be unresolved, which means just about no library would
10306 # ever link correctly. If we're not using GNU ld we use -z text
10307 # though, which does catch some bad symbols but isn't as heavy-handed
10309 no_undefined_flag='${wl}-z,text'
10310 allow_undefined_flag='${wl}-z,nodefs'
10311 archive_cmds_need_lc=no
10312 hardcode_shlibpath_var=no
10313 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10314 hardcode_libdir_separator=':'
10315 link_all_deplibs=yes
10316 export_dynamic_flag_spec='${wl}-Bexport'
10317 runpath_var='LD_RUN_PATH'
10319 if test "$GCC" = yes; then
10320 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10323 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10330 hardcode_libdir_flag_spec='-L$libdir'
10331 hardcode_shlibpath_var=no
10340 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10341 echo "${ECHO_T}$ld_shlibs" >&6; }
10342 test "$ld_shlibs" = no && can_build_shared=no
10345 # Do we need to explicitly link libc?
10347 case "x$archive_cmds_need_lc" in
10349 # Assume -lc should be added
10350 archive_cmds_need_lc=yes
10352 if test "$enable_shared" = yes && test "$GCC" = yes; then
10353 case $archive_cmds in
10355 # FIXME: we may have to deal with multi-command sequences.
10358 # Test whether the compiler implicitly links with -lc since on some
10359 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10360 # to ld, don't add -lc before -lgcc.
10361 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); } 2>conftest.err; then
10373 libobjs=conftest.$ac_objext
10375 wl=$lt_prog_compiler_wl
10376 pic_flag=$lt_prog_compiler_pic
10382 lt_save_allow_undefined_flag=$allow_undefined_flag
10383 allow_undefined_flag=
10384 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10385 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }
10390 archive_cmds_need_lc=no
10392 archive_cmds_need_lc=yes
10394 allow_undefined_flag=$lt_save_allow_undefined_flag
10396 cat conftest.err 1>&5
10399 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10400 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10407 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10408 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10409 library_names_spec=
10410 libname_spec='lib$name'
10414 postuninstall_cmds=
10418 shlibpath_overrides_runpath=unknown
10420 dynamic_linker="$host_os ld.so"
10421 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10422 if test "$GCC" = yes; then
10423 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10424 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10425 # if the path contains ";" then we assume it to be the separator
10426 # otherwise default to the standard path separator (i.e. ":") - it is
10427 # assumed that no part of a normal pathname contains ";" but that should
10428 # okay in the real world where ";" in dirpaths is itself problematic.
10429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10436 need_lib_prefix=unknown
10437 hardcode_into_libs=no
10439 # when you set need_version to no, make sure it does not cause -set_version
10440 # flags to be left without arguments
10441 need_version=unknown
10446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10447 shlibpath_var=LIBPATH
10449 # AIX 3 has no versioning support, so we append a major version to the name.
10450 soname_spec='${libname}${release}${shared_ext}$major'
10457 hardcode_into_libs=yes
10458 if test "$host_cpu" = ia64; then
10459 # AIX 5 supports IA64
10460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10461 shlibpath_var=LD_LIBRARY_PATH
10463 # With GCC up to 2.95.x, collect2 would create an import file
10464 # for dependence libraries. The import file would start with
10465 # the line `#! .'. This would cause the generated library to
10466 # depend on `.', always an invalid library. This was fixed in
10467 # development snapshots of GCC prior to 3.0.
10469 aix4 | aix4.[01] | aix4.[01].*)
10470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10472 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10475 can_build_shared=no
10479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10480 # soname into executable. Probably we can add versioning support to
10481 # collect2, so additional links can be useful in future.
10482 if test "$aix_use_runtimelinking" = yes; then
10483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10484 # instead of lib<name>.a to let people know that these are not
10485 # typical AIX shared libraries.
10486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 # We preserve .a as extension for shared libraries through AIX4.2
10489 # and later when we are not doing run time linking.
10490 library_names_spec='${libname}${release}.a $libname.a'
10491 soname_spec='${libname}${release}${shared_ext}$major'
10493 shlibpath_var=LIBPATH
10498 library_names_spec='$libname.ixlibrary $libname.a'
10499 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10500 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10504 library_names_spec='${libname}${shared_ext}'
10505 dynamic_linker="$host_os ld.so"
10506 shlibpath_var=LIBRARY_PATH
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10513 soname_spec='${libname}${release}${shared_ext}$major'
10514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10518 # the default ld.so.conf also contains /usr/contrib/lib and
10519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10520 # libtool to hard-code these into programs
10523 cygwin* | mingw* | pw32*)
10524 version_type=windows
10529 case $GCC,$host_os in
10530 yes,cygwin* | yes,mingw* | yes,pw32*)
10531 library_names_spec='$libname.dll.a'
10532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10533 postinstall_cmds='base_file=`basename \${file}`~
10534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10535 dldir=$destdir/`dirname \$dlpath`~
10536 test -d \$dldir || mkdir -p \$dldir~
10537 $install_prog $dir/$dlname \$dldir/$dlname~
10538 chmod a+x \$dldir/$dlname'
10539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10540 dlpath=$dir/\$dldll~
10542 shlibpath_overrides_runpath=yes
10546 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10551 # MinGW DLLs use traditional 'lib' prefix
10552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10554 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10555 # It is most probably a Windows format PATH printed by
10556 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10557 # path with ; separators, and with drive letters. We can handle the
10558 # drive letters (cygwin fileutils understands them), so leave them,
10559 # especially as we might pass files found there to a mingw objdump,
10560 # which wouldn't understand a cygwinified path. Ahh.
10561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10567 # pw32 DLLs use 'pw' prefix rather than 'lib'
10568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10577 dynamic_linker='Win32 ld.exe'
10578 # FIXME: first we should search . and the directory the executable is in
10582 darwin* | rhapsody*)
10583 dynamic_linker="$host_os dyld"
10584 version_type=darwin
10587 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10588 soname_spec='${libname}${release}${major}$shared_ext'
10589 shlibpath_overrides_runpath=yes
10590 shlibpath_var=DYLD_LIBRARY_PATH
10591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10592 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10593 if test "$GCC" = yes; then
10594 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10596 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10614 freebsd* | dragonfly*)
10615 # DragonFly does not have aout. When/if they implement a new
10616 # versioning mechanism, adjust this.
10617 if test -x /usr/bin/objformat; then
10618 objformat=`/usr/bin/objformat`
10621 freebsd[123]*) objformat=aout ;;
10622 *) objformat=elf ;;
10625 version_type=freebsd-$objformat
10626 case $version_type in
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10637 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10642 freebsd3.[01]* | freebsdelf3.[01]*)
10643 shlibpath_overrides_runpath=yes
10644 hardcode_into_libs=yes
10646 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10647 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10648 shlibpath_overrides_runpath=no
10649 hardcode_into_libs=yes
10651 freebsd*) # from 4.6 on
10652 shlibpath_overrides_runpath=yes
10653 hardcode_into_libs=yes
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 hardcode_into_libs=yes
10668 hpux9* | hpux10* | hpux11*)
10669 # Give a soname corresponding to the major version so that dld.sl refuses to
10670 # link against other versions.
10677 hardcode_into_libs=yes
10678 dynamic_linker="$host_os dld.so"
10679 shlibpath_var=LD_LIBRARY_PATH
10680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10683 if test "X$HPUX_IA64_MODE" = X32; then
10684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10692 hardcode_into_libs=yes
10693 dynamic_linker="$host_os dld.sl"
10694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10697 soname_spec='${libname}${release}${shared_ext}$major'
10698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10703 dynamic_linker="$host_os dld.sl"
10704 shlibpath_var=SHLIB_PATH
10705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10711 postinstall_cmds='chmod 555 $lib'
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10721 shlibpath_var=LD_LIBRARY_PATH
10722 shlibpath_overrides_runpath=no
10723 hardcode_into_libs=yes
10726 irix5* | irix6* | nonstopux*)
10728 nonstopux*) version_type=nonstopux ;;
10730 if test "$lt_cv_prog_gnu_ld" = yes; then
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10741 irix5* | nonstopux*)
10742 libsuff= shlibsuff=
10745 case $LD in # libtool.m4 will add one of these switches to LD
10746 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10747 libsuff= shlibsuff= libmagic=32-bit;;
10748 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10749 libsuff=32 shlibsuff=N32 libmagic=N32;;
10750 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10751 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10752 *) libsuff= shlibsuff= libmagic=never-match;;
10756 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10757 shlibpath_overrides_runpath=no
10758 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10759 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10760 hardcode_into_libs=yes
10763 # No shared lib support for Linux oldld, aout, or coff.
10764 linux*oldld* | linux*aout* | linux*coff*)
10768 # This must be Linux ELF.
10769 linux* | k*bsd*-gnu)
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10776 shlibpath_var=LD_LIBRARY_PATH
10777 shlibpath_overrides_runpath=no
10778 # This implies no fast_install, which is unacceptable.
10779 # Some rework will be needed to allow for fast_install
10780 # before this can be enabled.
10781 hardcode_into_libs=yes
10783 # Append ld.so.conf contents to the search path
10784 if test -f /etc/ld.so.conf; then
10785 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10786 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10789 # We used to test for /lib/ld.so.1 and disable shared libraries on
10790 # powerpc, because MkLinux only supported shared libraries with the
10791 # GNU dynamic linker. Since this was broken with cross compilers,
10792 # most powerpc-linux boxes support dynamic linking these days and
10793 # people can always --disable-shared, the test was removed, and we
10794 # assume the GNU/Linux dynamic linker is in use.
10795 dynamic_linker='GNU/Linux ld.so'
10802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10803 soname_spec='${libname}${release}${shared_ext}$major'
10804 shlibpath_var=LD_LIBRARY_PATH
10805 shlibpath_overrides_runpath=no
10806 hardcode_into_libs=yes
10807 dynamic_linker='NetBSD ld.elf_so'
10814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817 dynamic_linker='NetBSD (a.out) ld.so'
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 dynamic_linker='NetBSD ld.elf_so'
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10847 sys_lib_dlsearch_path_spec="/usr/lib"
10849 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10851 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852 *) need_version=no ;;
10854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859 openbsd2.[89] | openbsd2.[89].*)
10860 shlibpath_overrides_runpath=no
10863 shlibpath_overrides_runpath=yes
10867 shlibpath_overrides_runpath=yes
10872 libname_spec='$name'
10875 library_names_spec='$libname${shared_ext} $libname.a'
10876 dynamic_linker='OS/2 ld.exe'
10877 shlibpath_var=LIBPATH
10880 osf3* | osf4* | osf5*)
10884 soname_spec='${libname}${release}${shared_ext}$major'
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=yes
10899 hardcode_into_libs=yes
10900 # ldd complains unless libraries are executable
10901 postinstall_cmds='chmod +x $lib'
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10910 if test "$with_gnu_ld" = yes; then
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 case $host_vendor in
10923 shlibpath_overrides_runpath=no
10925 export_dynamic_flag_spec='${wl}-Blargedynsym'
10926 runpath_var=LD_RUN_PATH
10934 shlibpath_overrides_runpath=no
10935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10941 if test -d /usr/nec ;then
10943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10944 soname_spec='$libname${shared_ext}.$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10950 version_type=freebsd-elf
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10954 soname_spec='${libname}${release}${shared_ext}$major'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 hardcode_into_libs=yes
10957 if test "$with_gnu_ld" = yes; then
10958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10959 shlibpath_overrides_runpath=no
10961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10962 shlibpath_overrides_runpath=yes
10965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10969 sys_lib_dlsearch_path_spec='/usr/lib'
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10983 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10984 echo "${ECHO_T}$dynamic_linker" >&6; }
10985 test "$dynamic_linker" = no && can_build_shared=no
10987 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10988 if test "$GCC" = yes; then
10989 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10992 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10993 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10995 if test -n "$hardcode_libdir_flag_spec" || \
10996 test -n "$runpath_var" || \
10997 test "X$hardcode_automatic" = "Xyes" ; then
10999 # We can hardcode non-existant directories.
11000 if test "$hardcode_direct" != no &&
11001 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11002 # have to relink, otherwise we might link with an installed library
11003 # when we should be linking with a yet-to-be-installed one
11004 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11005 test "$hardcode_minus_L" != no; then
11006 # Linking always hardcodes the temporary library directory.
11007 hardcode_action=relink
11009 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11010 hardcode_action=immediate
11013 # We cannot hardcode anything, or else we can only hardcode existing
11015 hardcode_action=unsupported
11017 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11018 echo "${ECHO_T}$hardcode_action" >&6; }
11020 if test "$hardcode_action" = relink; then
11021 # Fast installation is not supported
11022 enable_fast_install=no
11023 elif test "$shlibpath_overrides_runpath" = yes ||
11024 test "$enable_shared" = no; then
11025 # Fast installation is not necessary
11026 enable_fast_install=needless
11031 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11032 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11033 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11034 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11035 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11036 { echo "$as_me:$LINENO: result: yes" >&5
11037 echo "${ECHO_T}yes" >&6; }
11039 # FIXME - insert some real tests, host_os isn't really good enough
11042 if test -n "$STRIP" ; then
11043 striplib="$STRIP -x"
11044 { echo "$as_me:$LINENO: result: yes" >&5
11045 echo "${ECHO_T}yes" >&6; }
11047 { echo "$as_me:$LINENO: result: no" >&5
11048 echo "${ECHO_T}no" >&6; }
11052 { echo "$as_me:$LINENO: result: no" >&5
11053 echo "${ECHO_T}no" >&6; }
11058 if test "x$enable_dlopen" != xyes; then
11059 enable_dlopen=unknown
11060 enable_dlopen_self=unknown
11061 enable_dlopen_self_static=unknown
11068 lt_cv_dlopen="load_add_on"
11070 lt_cv_dlopen_self=yes
11074 lt_cv_dlopen="LoadLibrary"
11079 lt_cv_dlopen="dlopen"
11084 # if libdl is installed we need to link against it
11085 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11086 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11087 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11088 echo $ECHO_N "(cached) $ECHO_C" >&6
11090 ac_check_lib_save_LIBS=$LIBS
11092 cat >conftest.$ac_ext <<_ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h. */
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (ac_try="$ac_link"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_link") 2>conftest.er1
11123 grep -v '^ *+' conftest.er1 >conftest.err
11125 cat conftest.err >&5
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } &&
11128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11129 { (case "(($ac_try" in
11130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131 *) ac_try_echo=$ac_try;;
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134 (eval "$ac_try") 2>&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); }; } &&
11138 { ac_try='test -s conftest$ac_exeext'
11139 { (case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_try") 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); }; }; then
11148 ac_cv_lib_dl_dlopen=yes
11150 echo "$as_me: failed program was:" >&5
11151 sed 's/^/| /' conftest.$ac_ext >&5
11153 ac_cv_lib_dl_dlopen=no
11156 rm -f core conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 LIBS=$ac_check_lib_save_LIBS
11160 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11161 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11162 if test $ac_cv_lib_dl_dlopen = yes; then
11163 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11166 lt_cv_dlopen="dyld"
11168 lt_cv_dlopen_self=yes
11175 { echo "$as_me:$LINENO: checking for shl_load" >&5
11176 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11177 if test "${ac_cv_func_shl_load+set}" = set; then
11178 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 cat >conftest.$ac_ext <<_ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11188 #define shl_load innocuous_shl_load
11190 /* System header to define __stub macros and hopefully few prototypes,
11191 which can conflict with char shl_load (); below.
11192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11193 <limits.h> exists even on freestanding compilers. */
11196 # include <limits.h>
11198 # include <assert.h>
11203 /* Override any GCC internal prototype to avoid an error.
11204 Use char because int might match the return type of a GCC
11205 builtin and then its argument prototype would still apply. */
11210 /* The GNU C library defines this for functions which it implements
11211 to always fail with ENOSYS. Some functions are actually named
11212 something starting with __ and the normal name is an alias. */
11213 #if defined __stub_shl_load || defined __stub___shl_load
11220 return shl_load ();
11225 rm -f conftest.$ac_objext conftest$ac_exeext
11226 if { (ac_try="$ac_link"
11227 case "(($ac_try" in
11228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11229 *) ac_try_echo=$ac_try;;
11231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11232 (eval "$ac_link") 2>conftest.er1
11234 grep -v '^ *+' conftest.er1 >conftest.err
11236 cat conftest.err >&5
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
11239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11240 { (case "(($ac_try" in
11241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11242 *) ac_try_echo=$ac_try;;
11244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11245 (eval "$ac_try") 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; } &&
11249 { ac_try='test -s conftest$ac_exeext'
11250 { (case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_try") 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 ac_cv_func_shl_load=yes
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 ac_cv_func_shl_load=no
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11270 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11271 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11272 if test $ac_cv_func_shl_load = yes; then
11273 lt_cv_dlopen="shl_load"
11275 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11276 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11277 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 ac_check_lib_save_LIBS=$LIBS
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11299 return shl_load ();
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (ac_try="$ac_link"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_link") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } &&
11318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11319 { (case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_try") 2>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; } &&
11328 { ac_try='test -s conftest$ac_exeext'
11329 { (case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_try") 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; }; then
11338 ac_cv_lib_dld_shl_load=yes
11340 echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11343 ac_cv_lib_dld_shl_load=no
11346 rm -f core conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11348 LIBS=$ac_check_lib_save_LIBS
11350 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11351 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11352 if test $ac_cv_lib_dld_shl_load = yes; then
11353 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11355 { echo "$as_me:$LINENO: checking for dlopen" >&5
11356 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11357 if test "${ac_cv_func_dlopen+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11368 #define dlopen innocuous_dlopen
11370 /* System header to define __stub macros and hopefully few prototypes,
11371 which can conflict with char dlopen (); below.
11372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11373 <limits.h> exists even on freestanding compilers. */
11376 # include <limits.h>
11378 # include <assert.h>
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11390 /* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393 #if defined __stub_dlopen || defined __stub___dlopen
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (ac_try="$ac_link"
11407 case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_link") 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11420 { (case "(($ac_try" in
11421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11422 *) ac_try_echo=$ac_try;;
11424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11425 (eval "$ac_try") 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); }; } &&
11429 { ac_try='test -s conftest$ac_exeext'
11430 { (case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_try") 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 ac_cv_func_dlopen=yes
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 ac_cv_func_dlopen=no
11447 rm -f core conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11450 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11451 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11452 if test $ac_cv_func_dlopen = yes; then
11453 lt_cv_dlopen="dlopen"
11455 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11456 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11457 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_check_lib_save_LIBS=$LIBS
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_try") 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_lib_dl_dlopen=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_cv_lib_dl_dlopen=no
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11531 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11532 if test $ac_cv_lib_dl_dlopen = yes; then
11533 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11535 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11536 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11537 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-lsvld $LIBS"
11542 cat >conftest.$ac_ext <<_ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (ac_try="$ac_link"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_link") 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11579 { (case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_try") 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; } &&
11588 { ac_try='test -s conftest$ac_exeext'
11589 { (case "(($ac_try" in
11590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591 *) ac_try_echo=$ac_try;;
11593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594 (eval "$ac_try") 2>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); }; }; then
11598 ac_cv_lib_svld_dlopen=yes
11600 echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11603 ac_cv_lib_svld_dlopen=no
11606 rm -f core conftest.err conftest.$ac_objext \
11607 conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11610 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11611 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11612 if test $ac_cv_lib_svld_dlopen = yes; then
11613 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11615 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11616 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11617 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 ac_check_lib_save_LIBS=$LIBS
11622 cat >conftest.$ac_ext <<_ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h. */
11629 /* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11639 return dld_link ();
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648 *) ac_try_echo=$ac_try;;
11650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11651 (eval "$ac_link") 2>conftest.er1
11653 grep -v '^ *+' conftest.er1 >conftest.err
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
11658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11659 { (case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_try") 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; } &&
11668 { ac_try='test -s conftest$ac_exeext'
11669 { (case "(($ac_try" in
11670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671 *) ac_try_echo=$ac_try;;
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674 (eval "$ac_try") 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_lib_dld_dld_link=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.$ac_ext >&5
11683 ac_cv_lib_dld_dld_link=no
11686 rm -f core conftest.err conftest.$ac_objext \
11687 conftest$ac_exeext conftest.$ac_ext
11688 LIBS=$ac_check_lib_save_LIBS
11690 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11691 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11692 if test $ac_cv_lib_dld_dld_link = yes; then
11693 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11714 if test "x$lt_cv_dlopen" != xno; then
11720 case $lt_cv_dlopen in
11722 save_CPPFLAGS="$CPPFLAGS"
11723 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11725 save_LDFLAGS="$LDFLAGS"
11726 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11729 LIBS="$lt_cv_dlopen_libs $LIBS"
11731 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11732 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11733 if test "${lt_cv_dlopen_self+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 if test "$cross_compiling" = yes; then :
11737 lt_cv_dlopen_self=cross
11739 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11740 lt_status=$lt_dlunknown
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11742 "configure"
11743 #include "confdefs.h"
11752 # define LT_DLGLOBAL RTLD_GLOBAL
11755 # define LT_DLGLOBAL DL_GLOBAL
11757 # define LT_DLGLOBAL 0
11761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11762 find out it does not work in some platform. */
11763 #ifndef LT_DLLAZY_OR_NOW
11765 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11768 # define LT_DLLAZY_OR_NOW DL_LAZY
11771 # define LT_DLLAZY_OR_NOW RTLD_NOW
11774 # define LT_DLLAZY_OR_NOW DL_NOW
11776 # define LT_DLLAZY_OR_NOW 0
11784 extern "C" void exit (int);
11787 void fnord() { int i=42;}
11790 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11791 int status = $lt_dlunknown;
11795 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11796 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11797 /* dlclose (self); */
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11810 (./conftest; exit; ) >&5 2>/dev/null
11812 case x$lt_status in
11813 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11814 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11815 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11818 # compilation failed
11819 lt_cv_dlopen_self=no
11826 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11827 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11829 if test "x$lt_cv_dlopen_self" = xyes; then
11830 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11831 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11832 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11833 if test "${lt_cv_dlopen_self_static+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11836 if test "$cross_compiling" = yes; then :
11837 lt_cv_dlopen_self_static=cross
11839 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11840 lt_status=$lt_dlunknown
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11842 "configure"
11843 #include "confdefs.h"
11852 # define LT_DLGLOBAL RTLD_GLOBAL
11855 # define LT_DLGLOBAL DL_GLOBAL
11857 # define LT_DLGLOBAL 0
11861 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11862 find out it does not work in some platform. */
11863 #ifndef LT_DLLAZY_OR_NOW
11865 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11868 # define LT_DLLAZY_OR_NOW DL_LAZY
11871 # define LT_DLLAZY_OR_NOW RTLD_NOW
11874 # define LT_DLLAZY_OR_NOW DL_NOW
11876 # define LT_DLLAZY_OR_NOW 0
11884 extern "C" void exit (int);
11887 void fnord() { int i=42;}
11890 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11891 int status = $lt_dlunknown;
11895 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11896 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11897 /* dlclose (self); */
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906 (eval $ac_link) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11910 (./conftest; exit; ) >&5 2>/dev/null
11912 case x$lt_status in
11913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11918 # compilation failed
11919 lt_cv_dlopen_self_static=no
11926 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11927 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11930 CPPFLAGS="$save_CPPFLAGS"
11931 LDFLAGS="$save_LDFLAGS"
11936 case $lt_cv_dlopen_self in
11937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938 *) enable_dlopen_self=unknown ;;
11941 case $lt_cv_dlopen_self_static in
11942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943 *) enable_dlopen_self_static=unknown ;;
11948 # Report which library types will actually be built
11949 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11951 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11952 echo "${ECHO_T}$can_build_shared" >&6; }
11954 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11956 test "$can_build_shared" = "no" && enable_shared=no
11958 # On AIX, shared libraries and static libraries use the same namespace, and
11959 # are all built from PIC.
11962 test "$enable_shared" = yes && enable_static=no
11963 if test -n "$RANLIB"; then
11964 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11965 postinstall_cmds='$RANLIB $lib'
11970 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11971 test "$enable_shared" = yes && enable_static=no
11975 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11976 echo "${ECHO_T}$enable_shared" >&6; }
11978 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11979 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11980 # Make sure either enable_shared or enable_static is yes.
11981 test "$enable_shared" = yes || enable_static=yes
11982 { echo "$as_me:$LINENO: result: $enable_static" >&5
11983 echo "${ECHO_T}$enable_static" >&6; }
11985 # The else clause should only fire when bootstrapping the
11986 # libtool distribution, otherwise you forgot to ship ltmain.sh
11987 # with your package, and you will get complaints that there are
11988 # no rules to generate ltmain.sh.
11989 if test -f "$ltmain"; then
11990 # See if we are running on zsh, and set the options which allow our commands through
11991 # without removal of \ escapes.
11992 if test -n "${ZSH_VERSION+set}" ; then
11993 setopt NO_GLOB_SUBST
11995 # Now quote all the things that may contain metacharacters while being
11996 # careful not to overquote the AC_SUBSTed values. We take copies of the
11997 # variables and quote the copies for generation of the libtool script.
11998 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12000 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12001 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12002 deplibs_check_method reload_flag reload_cmds need_locks \
12003 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12004 lt_cv_sys_global_symbol_to_c_name_address \
12005 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12006 old_postinstall_cmds old_postuninstall_cmds \
12010 lt_prog_compiler_wl \
12011 lt_prog_compiler_pic \
12012 lt_prog_compiler_static \
12013 lt_prog_compiler_no_builtin_flag \
12014 export_dynamic_flag_spec \
12015 thread_safe_flag_spec \
12016 whole_archive_flag_spec \
12017 enable_shared_with_static_runtimes \
12019 old_archive_from_new_cmds \
12024 compiler_lib_search_path \
12026 archive_expsym_cmds \
12028 postuninstall_cmds \
12029 old_archive_from_expsyms_cmds \
12030 allow_undefined_flag \
12031 no_undefined_flag \
12032 export_symbols_cmds \
12033 hardcode_libdir_flag_spec \
12034 hardcode_libdir_flag_spec_ld \
12035 hardcode_libdir_separator \
12036 hardcode_automatic \
12038 module_expsym_cmds \
12039 lt_cv_prog_compiler_c_o \
12041 include_expsyms; do
12044 old_archive_cmds | \
12045 old_archive_from_new_cmds | \
12047 archive_expsym_cmds | \
12049 module_expsym_cmds | \
12050 old_archive_from_expsyms_cmds | \
12051 export_symbols_cmds | \
12052 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12053 postinstall_cmds | postuninstall_cmds | \
12054 old_postinstall_cmds | old_postuninstall_cmds | \
12055 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12056 # Double-quote double-evaled strings.
12057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12066 *'\$0 --fallback-echo"')
12067 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12071 cfgfile="${ofile}T"
12072 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12074 { echo "$as_me:$LINENO: creating $ofile" >&5
12075 echo "$as_me: creating $ofile" >&6;}
12077 cat <<__EOF__ >> "$cfgfile"
12080 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12081 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12082 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12084 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12085 # Free Software Foundation, Inc.
12087 # This file is part of GNU Libtool:
12088 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12090 # This program is free software; you can redistribute it and/or modify
12091 # it under the terms of the GNU General Public License as published by
12092 # the Free Software Foundation; either version 2 of the License, or
12093 # (at your option) any later version.
12095 # This program is distributed in the hope that it will be useful, but
12096 # WITHOUT ANY WARRANTY; without even the implied warranty of
12097 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12098 # General Public License for more details.
12100 # You should have received a copy of the GNU General Public License
12101 # along with this program; if not, write to the Free Software
12102 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12104 # As a special exception to the GNU General Public License, if you
12105 # distribute this file as part of a program that contains a
12106 # configuration script generated by Autoconf, you may include it under
12107 # the same distribution terms that you use for the rest of that program.
12109 # A sed program that does not truncate output.
12112 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12113 Xsed="$SED -e 1s/^X//"
12115 # The HP-UX ksh and POSIX shell print the target directory to stdout
12116 # if CDPATH is set.
12117 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12119 # The names of the tagged configurations supported by this script.
12122 # ### BEGIN LIBTOOL CONFIG
12124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12126 # Shell to use when invoking shell scripts.
12129 # Whether or not to build shared libraries.
12130 build_libtool_libs=$enable_shared
12132 # Whether or not to build static libraries.
12133 build_old_libs=$enable_static
12135 # Whether or not to add -lc for building shared libraries.
12136 build_libtool_need_lc=$archive_cmds_need_lc
12138 # Whether or not to disallow shared libs when runtime libs are static
12139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12141 # Whether or not to optimize for fast installation.
12142 fast_install=$enable_fast_install
12145 host_alias=$host_alias
12149 # The build system.
12150 build_alias=$build_alias
12154 # An echo program that does not interpret backslashes.
12159 AR_FLAGS=$lt_AR_FLAGS
12164 # LTCC compiler flags.
12165 LTCFLAGS=$lt_LTCFLAGS
12167 # A language-specific compiler.
12170 # Is the compiler the GNU C compiler?
12176 # The linker used to build libraries.
12179 # Whether we need hard or soft links.
12182 # A BSD-compatible nm program.
12185 # A symbol stripping program
12188 # Used to examine libraries when file_magic_cmd begins "file"
12189 MAGIC_CMD=$MAGIC_CMD
12191 # Used on cygwin: DLL creation program.
12194 # Used on cygwin: object dumper.
12197 # Used on cygwin: assembler.
12200 # The name of the directory that contains temporary libtool files.
12203 # How to create reloadable object files.
12204 reload_flag=$lt_reload_flag
12205 reload_cmds=$lt_reload_cmds
12207 # How to pass a linker flag through the compiler.
12208 wl=$lt_lt_prog_compiler_wl
12210 # Object file suffix (normally "o").
12211 objext="$ac_objext"
12213 # Old archive suffix (normally "a").
12216 # Shared library suffix (normally ".so").
12217 shrext_cmds='$shrext_cmds'
12219 # Executable file suffix (normally "").
12222 # Additional compiler flags for building library objects.
12223 pic_flag=$lt_lt_prog_compiler_pic
12226 # What is the maximum length of a command?
12227 max_cmd_len=$lt_cv_sys_max_cmd_len
12229 # Does compiler simultaneously support -c and -o options?
12230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12232 # Must we lock files when doing compilation?
12233 need_locks=$lt_need_locks
12235 # Do we need the lib prefix for modules?
12236 need_lib_prefix=$need_lib_prefix
12238 # Do we need a version for libraries?
12239 need_version=$need_version
12241 # Whether dlopen is supported.
12242 dlopen_support=$enable_dlopen
12244 # Whether dlopen of programs is supported.
12245 dlopen_self=$enable_dlopen_self
12247 # Whether dlopen of statically linked programs is supported.
12248 dlopen_self_static=$enable_dlopen_self_static
12250 # Compiler flag to prevent dynamic linking.
12251 link_static_flag=$lt_lt_prog_compiler_static
12253 # Compiler flag to turn off builtin functions.
12254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12256 # Compiler flag to allow reflexive dlopens.
12257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12259 # Compiler flag to generate shared objects directly from archives.
12260 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12262 # Compiler flag to generate thread-safe objects.
12263 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12265 # Library versioning type.
12266 version_type=$version_type
12268 # Format of library name prefix.
12269 libname_spec=$lt_libname_spec
12271 # List of archive names. First name is the real one, the rest are links.
12272 # The last name is the one that the linker finds with -lNAME.
12273 library_names_spec=$lt_library_names_spec
12275 # The coded name of the library, if different from the real name.
12276 soname_spec=$lt_soname_spec
12278 # Commands used to build and install an old-style archive.
12280 old_archive_cmds=$lt_old_archive_cmds
12281 old_postinstall_cmds=$lt_old_postinstall_cmds
12282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12284 # Create an old-style archive from a shared archive.
12285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12287 # Create a temporary old-style archive to link instead of a shared archive.
12288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12290 # Commands used to build and install a shared archive.
12291 archive_cmds=$lt_archive_cmds
12292 archive_expsym_cmds=$lt_archive_expsym_cmds
12293 postinstall_cmds=$lt_postinstall_cmds
12294 postuninstall_cmds=$lt_postuninstall_cmds
12296 # Commands used to build a loadable module (assumed same as above if empty)
12297 module_cmds=$lt_module_cmds
12298 module_expsym_cmds=$lt_module_expsym_cmds
12300 # Commands to strip libraries.
12301 old_striplib=$lt_old_striplib
12302 striplib=$lt_striplib
12304 # Dependencies to place before the objects being linked to create a
12306 predep_objects=$lt_predep_objects
12308 # Dependencies to place after the objects being linked to create a
12310 postdep_objects=$lt_postdep_objects
12312 # Dependencies to place before the objects being linked to create a
12314 predeps=$lt_predeps
12316 # Dependencies to place after the objects being linked to create a
12318 postdeps=$lt_postdeps
12320 # The library search path used internally by the compiler when linking
12321 # a shared library.
12322 compiler_lib_search_path=$lt_compiler_lib_search_path
12324 # Method to check whether dependent libraries are shared objects.
12325 deplibs_check_method=$lt_deplibs_check_method
12327 # Command to use when deplibs_check_method == file_magic.
12328 file_magic_cmd=$lt_file_magic_cmd
12330 # Flag that allows shared libraries with undefined symbols to be built.
12331 allow_undefined_flag=$lt_allow_undefined_flag
12333 # Flag that forces no undefined symbols.
12334 no_undefined_flag=$lt_no_undefined_flag
12336 # Commands used to finish a libtool library installation in a directory.
12337 finish_cmds=$lt_finish_cmds
12339 # Same as above, but a single script fragment to be evaled but not shown.
12340 finish_eval=$lt_finish_eval
12342 # Take the output of nm and produce a listing of raw symbols and C names.
12343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12345 # Transform the output of nm in a proper C declaration
12346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12348 # Transform the output of nm in a C name address pair
12349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12351 # This is the shared library runtime path variable.
12352 runpath_var=$runpath_var
12354 # This is the shared library path variable.
12355 shlibpath_var=$shlibpath_var
12357 # Is shlibpath searched before the hard-coded library search path?
12358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12360 # How to hardcode a shared library path into an executable.
12361 hardcode_action=$hardcode_action
12363 # Whether we should hardcode library paths into libraries.
12364 hardcode_into_libs=$hardcode_into_libs
12366 # Flag to hardcode \$libdir into a binary during linking.
12367 # This must work even if \$libdir does not exist.
12368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12370 # If ld is used when linking, flag to hardcode \$libdir into
12371 # a binary during linking. This must work even if \$libdir does
12373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12375 # Whether we need a single -rpath flag with a separated argument.
12376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12379 # resulting binary.
12380 hardcode_direct=$hardcode_direct
12382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12383 # resulting binary.
12384 hardcode_minus_L=$hardcode_minus_L
12386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12387 # the resulting binary.
12388 hardcode_shlibpath_var=$hardcode_shlibpath_var
12390 # Set to yes if building a shared library automatically hardcodes DIR into the library
12391 # and all subsequent libraries and executables linked against it.
12392 hardcode_automatic=$hardcode_automatic
12394 # Variables whose values should be saved in libtool wrapper scripts and
12395 # restored at relink time.
12396 variables_saved_for_relink="$variables_saved_for_relink"
12398 # Whether libtool must link a program against all its dependency libraries.
12399 link_all_deplibs=$link_all_deplibs
12401 # Compile-time system search path for libraries
12402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12404 # Run-time system search path for libraries
12405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12407 # Fix the shell variable \$srcfile for the compiler.
12408 fix_srcfile_path="$fix_srcfile_path"
12410 # Set to yes if exported symbols are required.
12411 always_export_symbols=$always_export_symbols
12413 # The commands to list exported symbols.
12414 export_symbols_cmds=$lt_export_symbols_cmds
12416 # The commands to extract the exported symbol list from a shared archive.
12417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12419 # Symbols that should not be listed in the preloaded symbols.
12420 exclude_expsyms=$lt_exclude_expsyms
12422 # Symbols that must always be exported.
12423 include_expsyms=$lt_include_expsyms
12425 # ### END LIBTOOL CONFIG
12432 cat <<\EOF >> "$cfgfile"
12434 # AIX sometimes has problems with the GCC collect2 program. For some
12435 # reason, if we set the COLLECT_NAMES environment variable, the problems
12436 # vanish in a puff of smoke.
12437 if test "X${COLLECT_NAMES+set}" != Xset; then
12439 export COLLECT_NAMES
12445 # We use sed instead of cat because bash on DJGPP gets confused if
12446 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12447 # text mode, it properly converts lines to CR/LF. This bash problem
12448 # is reportedly fixed, but why not run on old versions too?
12449 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12451 mv -f "$cfgfile" "$ofile" || \
12452 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12456 # If there is no Makefile yet, we rely on a make rule to execute
12457 # `config.status --recheck' to rerun these tests and create the
12458 # libtool script then.
12459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12460 if test -f "$ltmain_in"; then
12461 test -f Makefile && make "$ltmain"
12467 ac_cpp='$CPP $CPPFLAGS'
12468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12475 # Check whether --with-tags was given.
12476 if test "${with_tags+set}" = set; then
12477 withval=$with_tags; tagnames="$withval"
12481 if test -f "$ltmain" && test -n "$tagnames"; then
12482 if test ! -f "${ofile}"; then
12483 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12484 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12487 if test -z "$LTCC"; then
12488 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12489 if test -z "$LTCC"; then
12490 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12491 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12493 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12494 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12497 if test -z "$LTCFLAGS"; then
12498 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12501 # Extract list of available tagged configurations in $ofile.
12502 # Note that this assumes the entire list is on one line.
12503 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12505 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12506 for tagname in $tagnames; do
12508 # Check whether tagname contains only valid characters
12509 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12511 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12512 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12513 { (exit 1); exit 1; }; }
12517 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12519 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12520 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12521 { (exit 1); exit 1; }; }
12524 # Update the list of available tags.
12525 if test -n "$tagname"; then
12526 echo appending configuration tag \"$tagname\" to $ofile
12530 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12531 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12532 (test "X$CXX" != "Xg++"))) ; then
12534 ac_cpp='$CXXCPP $CPPFLAGS'
12535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12542 archive_cmds_need_lc_CXX=no
12543 allow_undefined_flag_CXX=
12544 always_export_symbols_CXX=no
12545 archive_expsym_cmds_CXX=
12546 export_dynamic_flag_spec_CXX=
12547 hardcode_direct_CXX=no
12548 hardcode_libdir_flag_spec_CXX=
12549 hardcode_libdir_flag_spec_ld_CXX=
12550 hardcode_libdir_separator_CXX=
12551 hardcode_minus_L_CXX=no
12552 hardcode_shlibpath_var_CXX=unsupported
12553 hardcode_automatic_CXX=no
12555 module_expsym_cmds_CXX=
12556 link_all_deplibs_CXX=unknown
12557 old_archive_cmds_CXX=$old_archive_cmds
12558 no_undefined_flag_CXX=
12559 whole_archive_flag_spec_CXX=
12560 enable_shared_with_static_runtimes_CXX=no
12562 # Dependencies to place before and after the object being linked:
12563 predep_objects_CXX=
12564 postdep_objects_CXX=
12567 compiler_lib_search_path_CXX=
12569 # Source file extension for C++ test sources.
12572 # Object file extension for compiled C++ test sources.
12576 # Code to be used in simple compile tests
12577 lt_simple_compile_test_code="int some_variable = 0;\n"
12579 # Code to be used in simple link tests
12580 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12582 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12584 # If no C compiler was specified, use CC.
12587 # If no C compiler flags were specified, use CFLAGS.
12588 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12590 # Allow CC to be a program name with arguments.
12594 # save warnings/boilerplate of simple test code
12595 ac_outfile=conftest.$ac_objext
12596 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12597 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12598 _lt_compiler_boilerplate=`cat conftest.err`
12601 ac_outfile=conftest.$ac_objext
12602 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12603 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12604 _lt_linker_boilerplate=`cat conftest.err`
12608 # Allow CC to be a program name with arguments.
12613 lt_save_with_gnu_ld=$with_gnu_ld
12614 lt_save_path_LD=$lt_cv_path_LD
12615 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12616 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12618 $as_unset lt_cv_prog_gnu_ld
12620 if test -n "${lt_cv_path_LDCXX+set}"; then
12621 lt_cv_path_LD=$lt_cv_path_LDCXX
12623 $as_unset lt_cv_path_LD
12625 test -z "${LDCXX+set}" || LD=$LDCXX
12629 for cc_temp in $compiler""; do
12631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12640 # We don't want -fno-exception wen compiling C++ code, so set the
12641 # no_builtin_flag separately
12642 if test "$GXX" = yes; then
12643 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12645 lt_prog_compiler_no_builtin_flag_CXX=
12648 if test "$GXX" = yes; then
12649 # Set up default GNU C++ configuration
12652 # Check whether --with-gnu-ld was given.
12653 if test "${with_gnu_ld+set}" = set; then
12654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12660 if test "$GCC" = yes; then
12661 # Check if gcc -print-prog-name=ld gives a path.
12662 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12663 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12666 # gcc leaves a trailing carriage return which upsets mingw
12667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12672 # Accept absolute paths.
12674 re_direlt='/[^/][^/]*/\.\./'
12675 # Canonicalize the pathname of ld
12676 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12677 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12678 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12680 test -z "$LD" && LD="$ac_prog"
12683 # If it fails, then pretend we aren't using GCC.
12687 # If it is relative, then search for the first ld in PATH.
12688 with_gnu_ld=unknown
12691 elif test "$with_gnu_ld" = yes; then
12692 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12693 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12695 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12696 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12698 if test "${lt_cv_path_LD+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 if test -z "$LD"; then
12702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12703 for ac_dir in $PATH; do
12705 test -z "$ac_dir" && ac_dir=.
12706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12707 lt_cv_path_LD="$ac_dir/$ac_prog"
12708 # Check to see if the program is GNU ld. I'd rather use --version,
12709 # but apparently some variants of GNU ld only accept -v.
12710 # Break only if it was the GNU/non-GNU ld that we prefer.
12711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12712 *GNU* | *'with BFD'*)
12713 test "$with_gnu_ld" != no && break
12716 test "$with_gnu_ld" != yes && break
12723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12727 LD="$lt_cv_path_LD"
12728 if test -n "$LD"; then
12729 { echo "$as_me:$LINENO: result: $LD" >&5
12730 echo "${ECHO_T}$LD" >&6; }
12732 { echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6; }
12735 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12736 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12737 { (exit 1); exit 1; }; }
12738 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12739 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12740 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12741 echo $ECHO_N "(cached) $ECHO_C" >&6
12743 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12744 case `$LD -v 2>&1 </dev/null` in
12745 *GNU* | *'with BFD'*)
12746 lt_cv_prog_gnu_ld=yes
12749 lt_cv_prog_gnu_ld=no
12753 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12754 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12755 with_gnu_ld=$lt_cv_prog_gnu_ld
12759 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12760 # archiving commands below assume that GNU ld is being used.
12761 if test "$with_gnu_ld" = yes; then
12762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12763 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12765 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12768 # If archive_cmds runs LD, not CC, wlarc should be empty
12769 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12770 # investigate it a little bit more. (MM)
12773 # ancient GNU ld didn't support --whole-archive et. al.
12774 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12775 grep 'no-whole-archive' > /dev/null; then
12776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12778 whole_archive_flag_spec_CXX=
12784 # A generic and very simple default shared library creation
12785 # command for GNU C++ for the case where it uses the native
12786 # linker, instead of GNU ld. If possible, this setting should
12787 # overridden to take advantage of the native linker features on
12788 # the platform it is being used on.
12789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12792 # Commands to make compiler produce verbose output that lists
12793 # what "hidden" libraries, object files and flags are used when
12794 # linking a shared library.
12795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12803 # PORTME: fill in a description of your system's C++ link characteristics
12804 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12805 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12809 # FIXME: insert proper C++ library support
12813 if test "$host_cpu" = ia64; then
12814 # On IA64, the linker does run time linking by default, so we don't
12815 # have to do anything special.
12816 aix_use_runtimelinking=no
12817 exp_sym_flag='-Bexport'
12820 aix_use_runtimelinking=no
12822 # Test if we are trying to use run time linking or normal
12823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12824 # need to do runtime linking.
12825 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12826 for ld_flag in $LDFLAGS; do
12829 aix_use_runtimelinking=yes
12837 exp_sym_flag='-bexport'
12838 no_entry_flag='-bnoentry'
12841 # When large executables or shared objects are built, AIX ld can
12842 # have problems creating the table of contents. If linking a library
12843 # or program results in "error TOC overflow" add -mminimal-toc to
12844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12847 archive_cmds_CXX=''
12848 hardcode_direct_CXX=yes
12849 hardcode_libdir_separator_CXX=':'
12850 link_all_deplibs_CXX=yes
12852 if test "$GXX" = yes; then
12853 case $host_os in aix4.[012]|aix4.[012].*)
12854 # We only want to do this on AIX 4.2 and lower, the check
12855 # below for broken collect2 doesn't work under 4.3+
12856 collect2name=`${CC} -print-prog-name=collect2`
12857 if test -f "$collect2name" && \
12858 strings "$collect2name" | grep resolve_lib_name >/dev/null
12860 # We have reworked collect2
12861 hardcode_direct_CXX=yes
12863 # We have old collect2
12864 hardcode_direct_CXX=unsupported
12865 # It fails to find uninstalled libraries when the uninstalled
12866 # path is not listed in the libpath. Setting hardcode_minus_L
12867 # to unsupported forces relinking
12868 hardcode_minus_L_CXX=yes
12869 hardcode_libdir_flag_spec_CXX='-L$libdir'
12870 hardcode_libdir_separator_CXX=
12874 shared_flag='-shared'
12875 if test "$aix_use_runtimelinking" = yes; then
12876 shared_flag="$shared_flag "'${wl}-G'
12880 if test "$host_cpu" = ia64; then
12881 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12882 # chokes on -Wl,-G. The following line is correct:
12885 if test "$aix_use_runtimelinking" = yes; then
12886 shared_flag='${wl}-G'
12888 shared_flag='${wl}-bM:SRE'
12893 # It seems that -bexpall does not export symbols beginning with
12894 # underscore (_), so it is better to generate a list of symbols to export.
12895 always_export_symbols_CXX=yes
12896 if test "$aix_use_runtimelinking" = yes; then
12897 # Warning - without using the other runtime loading flags (-brtl),
12898 # -berok will link without error, but may produce a broken library.
12899 allow_undefined_flag_CXX='-berok'
12900 # Determine the default libpath from the value encoded in an empty executable.
12901 cat >conftest.$ac_ext <<_ACEOF
12904 cat confdefs.h >>conftest.$ac_ext
12905 cat >>conftest.$ac_ext <<_ACEOF
12906 /* end confdefs.h. */
12916 rm -f conftest.$ac_objext conftest$ac_exeext
12917 if { (ac_try="$ac_link"
12918 case "(($ac_try" in
12919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_link") 2>conftest.er1
12925 grep -v '^ *+' conftest.er1 >conftest.err
12927 cat conftest.err >&5
12928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } &&
12930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12931 { (case "(($ac_try" in
12932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12933 *) ac_try_echo=$ac_try;;
12935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12936 (eval "$ac_try") 2>&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; } &&
12940 { ac_try='test -s conftest$ac_exeext'
12941 { (case "(($ac_try" in
12942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12943 *) ac_try_echo=$ac_try;;
12945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12946 (eval "$ac_try") 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); }; }; then
12951 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12953 # Check for a 64-bit object if we didn't find anything.
12954 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12963 rm -f core conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12965 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12967 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12969 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12971 if test "$host_cpu" = ia64; then
12972 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12973 allow_undefined_flag_CXX="-z nodefs"
12974 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"
12976 # Determine the default libpath from the value encoded in an empty executable.
12977 cat >conftest.$ac_ext <<_ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12992 rm -f conftest.$ac_objext conftest$ac_exeext
12993 if { (ac_try="$ac_link"
12994 case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_link") 2>conftest.er1
13001 grep -v '^ *+' conftest.er1 >conftest.err
13003 cat conftest.err >&5
13004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } &&
13006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13007 { (case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13009 *) ac_try_echo=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_try") 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; } &&
13016 { ac_try='test -s conftest$ac_exeext'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; }; then
13027 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13029 # Check for a 64-bit object if we didn't find anything.
13030 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13044 # Warning - without using the other run time loading flags,
13045 # -berok will link without error, but may produce a broken library.
13046 no_undefined_flag_CXX=' ${wl}-bernotok'
13047 allow_undefined_flag_CXX=' ${wl}-berok'
13048 # Exported symbols can be pulled into shared objects from archives
13049 whole_archive_flag_spec_CXX='$convenience'
13050 archive_cmds_need_lc_CXX=yes
13051 # This is similar to how AIX traditionally builds its shared libraries.
13052 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13059 allow_undefined_flag_CXX=unsupported
13060 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13061 # support --undefined. This deserves some investigation. FIXME
13062 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13069 case $cc_basename in
13071 # FIXME: insert proper C++ library support
13077 cygwin* | mingw* | pw32*)
13078 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13079 # as there is no search path for DLLs.
13080 hardcode_libdir_flag_spec_CXX='-L$libdir'
13081 allow_undefined_flag_CXX=unsupported
13082 always_export_symbols_CXX=no
13083 enable_shared_with_static_runtimes_CXX=yes
13085 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13086 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'
13087 # If the export-symbols file already is a .def file (1st line
13088 # is EXPORTS), use it as is; otherwise, prepend...
13089 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13090 cp $export_symbols $output_objdir/$soname.def;
13092 echo EXPORTS > $output_objdir/$soname.def;
13093 cat $export_symbols >> $output_objdir/$soname.def;
13095 $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'
13100 darwin* | rhapsody*)
13102 rhapsody* | darwin1.[012])
13103 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13107 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13109 case ${MACOSX_DEPLOYMENT_TARGET} in
13111 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13114 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13120 archive_cmds_need_lc_CXX=no
13121 hardcode_direct_CXX=no
13122 hardcode_automatic_CXX=yes
13123 hardcode_shlibpath_var_CXX=unsupported
13124 whole_archive_flag_spec_CXX=''
13125 link_all_deplibs_CXX=yes
13127 if test "$GXX" = yes ; then
13128 lt_int_apple_cc_single_mod=no
13129 output_verbose_link_cmd='echo'
13130 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13131 lt_int_apple_cc_single_mod=yes
13133 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13134 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13136 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'
13138 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13141 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13143 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13145 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13147 case $cc_basename in
13149 output_verbose_link_cmd='echo'
13150 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13151 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13152 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13153 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13154 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13164 case $cc_basename in
13166 # FIXME: insert proper C++ library support
13170 # Green Hills C++ Compiler
13171 # FIXME: insert proper C++ library support
13175 # FIXME: insert proper C++ library support
13181 # C++ shared libraries reported to be fairly broken before switch to ELF
13185 archive_cmds_need_lc_CXX=no
13187 freebsd* | dragonfly*)
13188 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13195 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13196 hardcode_libdir_separator_CXX=:
13197 export_dynamic_flag_spec_CXX='${wl}-E'
13198 hardcode_direct_CXX=yes
13199 hardcode_minus_L_CXX=yes # Not in the search PATH,
13200 # but as the default
13201 # location of the library.
13203 case $cc_basename in
13205 # FIXME: insert proper C++ library support
13209 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13210 # Commands to make compiler produce verbose output that lists
13211 # what "hidden" libraries, object files and flags are used when
13212 # linking a shared library.
13214 # There doesn't appear to be a way to prevent this compiler from
13215 # explicitly linking system object files so we need to strip them
13216 # from the output so that they don't get included in the library
13218 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; echo $list'
13221 if test "$GXX" = yes; then
13222 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13224 # FIXME: insert proper C++ library support
13231 if test $with_gnu_ld = no; then
13232 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13233 hardcode_libdir_separator_CXX=:
13237 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13240 export_dynamic_flag_spec_CXX='${wl}-E'
13246 hardcode_direct_CXX=no
13247 hardcode_shlibpath_var_CXX=no
13250 hardcode_direct_CXX=yes
13251 hardcode_minus_L_CXX=yes # Not in the search PATH,
13252 # but as the default
13253 # location of the library.
13257 case $cc_basename in
13259 # FIXME: insert proper C++ library support
13265 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13268 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13271 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13274 # Commands to make compiler produce verbose output that lists
13275 # what "hidden" libraries, object files and flags are used when
13276 # linking a shared library.
13278 # There doesn't appear to be a way to prevent this compiler from
13279 # explicitly linking system object files so we need to strip them
13280 # from the output so that they don't get included in the library
13282 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; echo $list'
13285 if test "$GXX" = yes; then
13286 if test $with_gnu_ld = no; then
13289 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13292 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13295 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13300 # FIXME: insert proper C++ library support
13307 hardcode_direct_CXX=no
13308 hardcode_shlibpath_var_CXX=no
13309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13310 export_dynamic_flag_spec_CXX='${wl}-E'
13311 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13312 # Instead, shared libraries are loaded at an image base (0x10000000 by
13313 # default) and relocated if they conflict, which is a slow very memory
13314 # consuming and fragmenting process. To avoid this, we pick a random,
13315 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13316 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13317 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'
13318 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'
13321 case $cc_basename in
13324 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13326 # Archives containing C++ object files must be created using
13327 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13328 # necessary to make sure instantiated templates are included
13330 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13333 if test "$GXX" = yes; then
13334 if test "$with_gnu_ld" = no; then
13335 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13337 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13340 link_all_deplibs_CXX=yes
13343 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13344 hardcode_libdir_separator_CXX=:
13346 linux* | k*bsd*-gnu)
13347 case $cc_basename in
13349 # Kuck and Associates, Inc. (KAI) C++ Compiler
13351 # KCC will only create a shared library if the output file
13352 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13353 # to its proper name (with version) after linking.
13354 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'
13355 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'
13356 # Commands to make compiler produce verbose output that lists
13357 # what "hidden" libraries, object files and flags are used when
13358 # linking a shared library.
13360 # There doesn't appear to be a way to prevent this compiler from
13361 # explicitly linking system object files so we need to strip them
13362 # from the output so that they don't get included in the library
13364 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; echo $list'
13366 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13367 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13369 # Archives containing C++ object files must be created using
13370 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13371 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13376 # version 8.0 and above of icpc choke on multiply defined symbols
13377 # if we add $predep_objects and $postdep_objects, however 7.1 and
13378 # earlier do not add the objects themselves.
13379 case `$CC -V 2>&1` in
13381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13382 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'
13384 *) # Version 8.0 or newer
13387 ia64*) tmp_idyn=' -i_dynamic';;
13389 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13390 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'
13393 archive_cmds_need_lc_CXX=no
13394 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13395 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13396 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13399 # Portland Group C++ compiler
13400 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13401 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'
13403 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13404 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13405 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13409 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13410 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'
13412 runpath_var=LD_RUN_PATH
13413 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13414 hardcode_libdir_separator_CXX=:
13416 # Commands to make compiler produce verbose output that lists
13417 # what "hidden" libraries, object files and flags are used when
13418 # linking a shared library.
13420 # There doesn't appear to be a way to prevent this compiler from
13421 # explicitly linking system object files so we need to strip them
13422 # from the output so that they don't get included in the library
13424 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
13429 # FIXME: insert proper C++ library support
13433 # FIXME: insert proper C++ library support
13437 case $cc_basename in
13439 # FIXME: insert proper C++ library support
13443 # FIXME: insert proper C++ library support
13448 netbsd* | netbsdelf*-gnu)
13449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13450 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13452 hardcode_libdir_flag_spec_CXX='-R$libdir'
13453 hardcode_direct_CXX=yes
13454 hardcode_shlibpath_var_CXX=no
13456 # Workaround some broken pre-1.5 toolchains
13457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13460 # C++ shared libraries are fairly broken
13464 hardcode_direct_CXX=yes
13465 hardcode_shlibpath_var_CXX=no
13466 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13469 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13470 export_dynamic_flag_spec_CXX='${wl}-E'
13471 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13473 output_verbose_link_cmd='echo'
13476 case $cc_basename in
13478 # Kuck and Associates, Inc. (KAI) C++ Compiler
13480 # KCC will only create a shared library if the output file
13481 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13482 # to its proper name (with version) after linking.
13483 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'
13485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13486 hardcode_libdir_separator_CXX=:
13488 # Archives containing C++ object files must be created using
13489 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13490 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13494 # Rational C++ 2.4.1
13495 # FIXME: insert proper C++ library support
13499 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13500 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13502 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13503 hardcode_libdir_separator_CXX=:
13505 # Commands to make compiler produce verbose output that lists
13506 # what "hidden" libraries, object files and flags are used when
13507 # linking a shared library.
13509 # There doesn't appear to be a way to prevent this compiler from
13510 # explicitly linking system object files so we need to strip them
13511 # from the output so that they don't get included in the library
13513 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
13516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13517 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13518 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13520 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13521 hardcode_libdir_separator_CXX=:
13523 # Commands to make compiler produce verbose output that lists
13524 # what "hidden" libraries, object files and flags are used when
13525 # linking a shared library.
13526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13529 # FIXME: insert proper C++ library support
13536 case $cc_basename in
13538 # Kuck and Associates, Inc. (KAI) C++ Compiler
13540 # KCC will only create a shared library if the output file
13541 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13542 # to its proper name (with version) after linking.
13543 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'
13545 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13546 hardcode_libdir_separator_CXX=:
13548 # Archives containing C++ object files must be created using
13549 # the KAI C++ compiler.
13550 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13553 # Rational C++ 2.4.1
13554 # FIXME: insert proper C++ library support
13558 allow_undefined_flag_CXX=' -expect_unresolved \*'
13559 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13560 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13561 echo "-hidden">> $lib.exp~
13562 $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~
13565 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13566 hardcode_libdir_separator_CXX=:
13568 # Commands to make compiler produce verbose output that lists
13569 # what "hidden" libraries, object files and flags are used when
13570 # linking a shared library.
13572 # There doesn't appear to be a way to prevent this compiler from
13573 # explicitly linking system object files so we need to strip them
13574 # from the output so that they don't get included in the library
13576 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
13579 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13580 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13581 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13583 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13584 hardcode_libdir_separator_CXX=:
13586 # Commands to make compiler produce verbose output that lists
13587 # what "hidden" libraries, object files and flags are used when
13588 # linking a shared library.
13589 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13592 # FIXME: insert proper C++ library support
13599 # FIXME: insert proper C++ library support
13603 case $cc_basename in
13606 # FIXME: insert proper C++ library support
13611 # FIXME: insert proper C++ library support
13615 # FIXME: insert proper C++ library support
13621 case $cc_basename in
13623 # Sun C++ 4.2, 5.x and Centerline C++
13624 archive_cmds_need_lc_CXX=yes
13625 no_undefined_flag_CXX=' -zdefs'
13626 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13627 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13628 $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'
13630 hardcode_libdir_flag_spec_CXX='-R$libdir'
13631 hardcode_shlibpath_var_CXX=no
13633 solaris2.[0-5] | solaris2.[0-5].*) ;;
13635 # The C++ compiler is used as linker so we must use $wl
13636 # flag to pass the commands to the underlying system
13637 # linker. We must also pass each convience library through
13638 # to the system linker between allextract/defaultextract.
13639 # The C++ compiler will combine linker options so we
13640 # cannot just pass the convience library names through
13642 # Supported since Solaris 2.6 (maybe 2.5.1?)
13643 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
13646 link_all_deplibs_CXX=yes
13648 output_verbose_link_cmd='echo'
13650 # Archives containing C++ object files must be created using
13651 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13652 # necessary to make sure instantiated templates are included
13654 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13657 # Green Hills C++ Compiler
13658 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13660 # The C++ compiler must be used to create the archive.
13661 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13664 # GNU C++ compiler with Solaris linker
13665 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13666 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13667 if $CC --version | grep -v '^2\.7' > /dev/null; then
13668 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13669 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13670 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13672 # Commands to make compiler produce verbose output that lists
13673 # what "hidden" libraries, object files and flags are used when
13674 # linking a shared library.
13675 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13677 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13679 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13680 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13681 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13683 # Commands to make compiler produce verbose output that lists
13684 # what "hidden" libraries, object files and flags are used when
13685 # linking a shared library.
13686 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13689 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13694 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13695 no_undefined_flag_CXX='${wl}-z,text'
13696 archive_cmds_need_lc_CXX=no
13697 hardcode_shlibpath_var_CXX=no
13698 runpath_var='LD_RUN_PATH'
13700 case $cc_basename in
13702 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13706 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13707 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13711 sysv5* | sco3.2v5* | sco5v6*)
13712 # Note: We can NOT use -z defs as we might desire, because we do not
13713 # link with -lc, and that would cause any symbols used from libc to
13714 # always be unresolved, which means just about no library would
13715 # ever link correctly. If we're not using GNU ld we use -z text
13716 # though, which does catch some bad symbols but isn't as heavy-handed
13718 # For security reasons, it is highly recommended that you always
13719 # use absolute paths for naming shared libraries, and exclude the
13720 # DT_RUNPATH tag from executables and libraries. But doing so
13721 # requires that you compile everything twice, which is a pain.
13722 # So that behaviour is only enabled if SCOABSPATH is set to a
13723 # non-empty value in the environment. Most likely only useful for
13724 # creating official distributions of packages.
13725 # This is a hack until libtool officially supports absolute path
13726 # names for shared libraries.
13727 no_undefined_flag_CXX='${wl}-z,text'
13728 allow_undefined_flag_CXX='${wl}-z,nodefs'
13729 archive_cmds_need_lc_CXX=no
13730 hardcode_shlibpath_var_CXX=no
13731 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13732 hardcode_libdir_separator_CXX=':'
13733 link_all_deplibs_CXX=yes
13734 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13735 runpath_var='LD_RUN_PATH'
13737 case $cc_basename in
13739 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13744 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13749 case $cc_basename in
13751 # NonStop-UX NCC 3.20
13752 # FIXME: insert proper C++ library support
13756 # FIXME: insert proper C++ library support
13762 # FIXME: insert proper C++ library support
13766 # FIXME: insert proper C++ library support
13770 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13771 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13772 test "$ld_shlibs_CXX" = no && can_build_shared=no
13778 cat > conftest.$ac_ext <<EOF
13782 Foo (void) { a = 0; }
13788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13789 (eval $ac_compile) 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; then
13793 # Parse the compiler output and extract the necessary
13794 # objects, libraries and library flags.
13796 # Sentinel used to keep track of whether or not we are before
13797 # the conftest object file.
13798 pre_test_object_deps_done=no
13800 # The `*' in the case matches for architectures that use `case' in
13801 # $output_verbose_cmd can trigger glob expansion during the loop
13802 # eval without this substitution.
13803 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13805 for p in `eval $output_verbose_link_cmd`; do
13809 # Some compilers place space between "-{L,R}" and the path.
13810 # Remove the space.
13811 if test $p = "-L" \
13812 || test $p = "-R"; then
13819 if test "$pre_test_object_deps_done" = no; then
13822 # Internal compiler library paths should come after those
13823 # provided the user. The postdeps already come after the
13824 # user supplied libs so there is no need to process them.
13825 if test -z "$compiler_lib_search_path_CXX"; then
13826 compiler_lib_search_path_CXX="${prev}${p}"
13828 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13831 # The "-l" case would never come before the object being
13832 # linked, so don't bother handling this case.
13835 if test -z "$postdeps_CXX"; then
13836 postdeps_CXX="${prev}${p}"
13838 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13844 # This assumes that the test object file only shows up
13845 # once in the compiler output.
13846 if test "$p" = "conftest.$objext"; then
13847 pre_test_object_deps_done=yes
13851 if test "$pre_test_object_deps_done" = no; then
13852 if test -z "$predep_objects_CXX"; then
13853 predep_objects_CXX="$p"
13855 predep_objects_CXX="$predep_objects_CXX $p"
13858 if test -z "$postdep_objects_CXX"; then
13859 postdep_objects_CXX="$p"
13861 postdep_objects_CXX="$postdep_objects_CXX $p"
13866 *) ;; # Ignore the rest.
13874 echo "libtool.m4: error: problem compiling CXX test program"
13877 $rm -f confest.$objext
13879 # PORTME: override above test on systems where it is broken
13882 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13883 # hack all around it, let's just trust "g++" to DTRT.
13884 predep_objects_CXX=
13885 postdep_objects_CXX=
13890 case $cc_basename in
13892 # Adding this requires a known-good setup of shared libraries for
13893 # Sun compiler versions before 5.6, else PIC objects from an old
13894 # archive will be linked into the output, leading to subtle bugs.
13895 postdeps_CXX='-lCstd -lCrun'
13902 case " $postdeps_CXX " in
13903 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13906 lt_prog_compiler_wl_CXX=
13907 lt_prog_compiler_pic_CXX=
13908 lt_prog_compiler_static_CXX=
13910 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13911 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13913 # C++ specific cases for pic, static, wl, etc.
13914 if test "$GXX" = yes; then
13915 lt_prog_compiler_wl_CXX='-Wl,'
13916 lt_prog_compiler_static_CXX='-static'
13920 # All AIX code is PIC.
13921 if test "$host_cpu" = ia64; then
13922 # AIX 5 now supports IA64 processor
13923 lt_prog_compiler_static_CXX='-Bstatic'
13927 # FIXME: we need at least 68020 code to build shared libraries, but
13928 # adding the `-m68020' flag to GCC prevents building anything better,
13930 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13932 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13933 # PIC is the default for these OSes.
13935 mingw* | os2* | pw32*)
13936 # This hack is so that the source file can tell whether it is being
13937 # built for inclusion in a dll (and should export symbols for example).
13938 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13940 darwin* | rhapsody*)
13941 # PIC is the default on this platform
13942 # Common symbols not allowed in MH_DYLIB files
13943 lt_prog_compiler_pic_CXX='-fno-common'
13946 # DJGPP does not support shared libraries at all
13947 lt_prog_compiler_pic_CXX=
13950 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13951 # Instead, we relocate shared libraries at runtime.
13954 if test -d /usr/nec; then
13955 lt_prog_compiler_pic_CXX=-Kconform_pic
13959 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13960 # not for PA HP-UX.
13965 lt_prog_compiler_pic_CXX='-fPIC'
13970 lt_prog_compiler_pic_CXX='-fPIC'
13976 # All AIX code is PIC.
13977 if test "$host_cpu" = ia64; then
13978 # AIX 5 now supports IA64 processor
13979 lt_prog_compiler_static_CXX='-Bstatic'
13981 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13985 case $cc_basename in
13987 # Green Hills C++ Compiler
13988 # _LT_AC_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"
13993 # PIC is the default on this platform
13994 # Common symbols not allowed in MH_DYLIB files
13995 case $cc_basename in
13997 lt_prog_compiler_pic_CXX='-qnocommon'
13998 lt_prog_compiler_wl_CXX='-Wl,'
14003 case $cc_basename in
14005 lt_prog_compiler_pic_CXX='-KPIC'
14008 # Green Hills C++ Compiler
14009 lt_prog_compiler_pic_CXX='-pic'
14015 freebsd* | dragonfly*)
14016 # FreeBSD uses GNU C++
14018 hpux9* | hpux10* | hpux11*)
14019 case $cc_basename in
14021 lt_prog_compiler_wl_CXX='-Wl,'
14022 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14023 if test "$host_cpu" != ia64; then
14024 lt_prog_compiler_pic_CXX='+Z'
14028 lt_prog_compiler_wl_CXX='-Wl,'
14029 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14035 lt_prog_compiler_pic_CXX='+Z'
14044 # This is c89, which is MS Visual C++ (no shared libs)
14045 # Anyone wants to do a port?
14047 irix5* | irix6* | nonstopux*)
14048 case $cc_basename in
14050 lt_prog_compiler_wl_CXX='-Wl,'
14051 lt_prog_compiler_static_CXX='-non_shared'
14052 # CC pic flag -KPIC is the default.
14058 linux* | k*bsd*-gnu)
14059 case $cc_basename in
14062 lt_prog_compiler_wl_CXX='--backend -Wl,'
14063 lt_prog_compiler_pic_CXX='-fPIC'
14067 lt_prog_compiler_wl_CXX='-Wl,'
14068 lt_prog_compiler_pic_CXX='-KPIC'
14069 lt_prog_compiler_static_CXX='-static'
14072 # Portland Group C++ compiler.
14073 lt_prog_compiler_wl_CXX='-Wl,'
14074 lt_prog_compiler_pic_CXX='-fpic'
14075 lt_prog_compiler_static_CXX='-Bstatic'
14079 # Make sure the PIC flag is empty. It appears that all Alpha
14080 # Linux and Compaq Tru64 Unix objects are PIC.
14081 lt_prog_compiler_pic_CXX=
14082 lt_prog_compiler_static_CXX='-non_shared'
14093 case $cc_basename in
14095 lt_prog_compiler_pic_CXX='-W c,exportall'
14101 netbsd* | netbsdelf*-gnu)
14103 osf3* | osf4* | osf5*)
14104 case $cc_basename in
14106 lt_prog_compiler_wl_CXX='--backend -Wl,'
14109 # Rational C++ 2.4.1
14110 lt_prog_compiler_pic_CXX='-pic'
14113 # Digital/Compaq C++
14114 lt_prog_compiler_wl_CXX='-Wl,'
14115 # Make sure the PIC flag is empty. It appears that all Alpha
14116 # Linux and Compaq Tru64 Unix objects are PIC.
14117 lt_prog_compiler_pic_CXX=
14118 lt_prog_compiler_static_CXX='-non_shared'
14127 case $cc_basename in
14129 # Sun C++ 4.2, 5.x and Centerline C++
14130 lt_prog_compiler_pic_CXX='-KPIC'
14131 lt_prog_compiler_static_CXX='-Bstatic'
14132 lt_prog_compiler_wl_CXX='-Qoption ld '
14135 # Green Hills C++ Compiler
14136 lt_prog_compiler_pic_CXX='-PIC'
14143 case $cc_basename in
14146 lt_prog_compiler_pic_CXX='-pic'
14147 lt_prog_compiler_static_CXX='-Bstatic'
14151 lt_prog_compiler_pic_CXX='-pic'
14158 case $cc_basename in
14160 # NonStop-UX NCC 3.20
14161 lt_prog_compiler_pic_CXX='-KPIC'
14167 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14168 case $cc_basename in
14170 lt_prog_compiler_wl_CXX='-Wl,'
14171 lt_prog_compiler_pic_CXX='-KPIC'
14172 lt_prog_compiler_static_CXX='-Bstatic'
14179 lt_prog_compiler_can_build_shared_CXX=no
14184 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14185 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14188 # Check to make sure the PIC flag actually works.
14190 if test -n "$lt_prog_compiler_pic_CXX"; then
14192 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14193 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14194 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 lt_prog_compiler_pic_works_CXX=no
14198 ac_outfile=conftest.$ac_objext
14199 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14200 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14201 # Insert the option either (1) after the last *FLAGS variable, or
14202 # (2) before a word containing "conftest.", or (3) at the end.
14203 # Note that $ac_compile itself does not contain backslashes and begins
14204 # with a dollar sign (not a hyphen), so the echo should work correctly.
14205 # The option is referenced via a variable to avoid confusing sed.
14206 lt_compile=`echo "$ac_compile" | $SED \
14207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14209 -e 's:$: $lt_compiler_flag:'`
14210 (eval echo "\"\$as_me:14210: $lt_compile\"" >&5)
14211 (eval "$lt_compile" 2>conftest.err)
14213 cat conftest.err >&5
14214 echo "$as_me:14214: \$? = $ac_status" >&5
14215 if (exit $ac_status) && test -s "$ac_outfile"; then
14216 # The compiler can only warn and ignore the option if not recognized
14217 # So say no if there are warnings other than the usual output.
14218 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14220 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14221 lt_prog_compiler_pic_works_CXX=yes
14227 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14228 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14230 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14231 case $lt_prog_compiler_pic_CXX in
14233 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14236 lt_prog_compiler_pic_CXX=
14237 lt_prog_compiler_can_build_shared_CXX=no
14242 # For platforms which do not support PIC, -DPIC is meaningless:
14244 lt_prog_compiler_pic_CXX=
14247 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14252 # Check to make sure the static flag actually works.
14254 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14255 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14256 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14257 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 lt_prog_compiler_static_works_CXX=no
14261 save_LDFLAGS="$LDFLAGS"
14262 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14263 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14265 # The linker can only warn and ignore the option if not recognized
14266 # So say no if there are warnings
14267 if test -s conftest.err; then
14268 # Append any errors to the config.log.
14269 cat conftest.err 1>&5
14270 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14272 if diff conftest.exp conftest.er2 >/dev/null; then
14273 lt_prog_compiler_static_works_CXX=yes
14276 lt_prog_compiler_static_works_CXX=yes
14280 LDFLAGS="$save_LDFLAGS"
14283 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14284 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
14286 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14289 lt_prog_compiler_static_CXX=
14293 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14294 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14295 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14296 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 lt_cv_prog_compiler_c_o_CXX=no
14299 $rm -r conftest 2>/dev/null
14303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14305 lt_compiler_flag="-o out/conftest2.$ac_objext"
14306 # Insert the option either (1) after the last *FLAGS variable, or
14307 # (2) before a word containing "conftest.", or (3) at the end.
14308 # Note that $ac_compile itself does not contain backslashes and begins
14309 # with a dollar sign (not a hyphen), so the echo should work correctly.
14310 lt_compile=`echo "$ac_compile" | $SED \
14311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14313 -e 's:$: $lt_compiler_flag:'`
14314 (eval echo "\"\$as_me:14314: $lt_compile\"" >&5)
14315 (eval "$lt_compile" 2>out/conftest.err)
14317 cat out/conftest.err >&5
14318 echo "$as_me:14318: \$? = $ac_status" >&5
14319 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14321 # The compiler can only warn and ignore the option if not recognized
14322 # So say no if there are warnings
14323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14326 lt_cv_prog_compiler_c_o_CXX=yes
14331 # SGI C++ compiler will create directory out/ii_files/ for
14332 # template instantiation
14333 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14334 $rm out/* && rmdir out
14340 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14341 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14344 hard_links="nottested"
14345 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14346 # do not overwrite the value of need_locks provided by the user
14347 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14348 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14351 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14353 ln conftest.a conftest.b 2>&5 || hard_links=no
14354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14355 { echo "$as_me:$LINENO: result: $hard_links" >&5
14356 echo "${ECHO_T}$hard_links" >&6; }
14357 if test "$hard_links" = no; then
14358 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14359 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14366 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14367 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14369 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14372 # If we're using GNU nm, then we don't want the "-C" option.
14373 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14374 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14375 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14377 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14381 export_symbols_cmds_CXX="$ltdll_cmds"
14384 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14386 linux* | k*bsd*-gnu)
14387 link_all_deplibs_CXX=no
14390 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14394 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14395 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14396 test "$ld_shlibs_CXX" = no && can_build_shared=no
14399 # Do we need to explicitly link libc?
14401 case "x$archive_cmds_need_lc_CXX" in
14403 # Assume -lc should be added
14404 archive_cmds_need_lc_CXX=yes
14406 if test "$enable_shared" = yes && test "$GCC" = yes; then
14407 case $archive_cmds_CXX in
14409 # FIXME: we may have to deal with multi-command sequences.
14412 # Test whether the compiler implicitly links with -lc since on some
14413 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14414 # to ld, don't add -lc before -lgcc.
14415 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14416 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14418 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14421 (eval $ac_compile) 2>&5
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } 2>conftest.err; then
14427 libobjs=conftest.$ac_objext
14429 wl=$lt_prog_compiler_wl_CXX
14430 pic_flag=$lt_prog_compiler_pic_CXX
14436 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14437 allow_undefined_flag_CXX=
14438 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14439 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }
14444 archive_cmds_need_lc_CXX=no
14446 archive_cmds_need_lc_CXX=yes
14448 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14450 cat conftest.err 1>&5
14453 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14454 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14461 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14462 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14463 library_names_spec=
14464 libname_spec='lib$name'
14468 postuninstall_cmds=
14472 shlibpath_overrides_runpath=unknown
14474 dynamic_linker="$host_os ld.so"
14475 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14476 if test "$GCC" = yes; then
14477 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14478 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14479 # if the path contains ";" then we assume it to be the separator
14480 # otherwise default to the standard path separator (i.e. ":") - it is
14481 # assumed that no part of a normal pathname contains ";" but that should
14482 # okay in the real world where ";" in dirpaths is itself problematic.
14483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14485 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14490 need_lib_prefix=unknown
14491 hardcode_into_libs=no
14493 # when you set need_version to no, make sure it does not cause -set_version
14494 # flags to be left without arguments
14495 need_version=unknown
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14501 shlibpath_var=LIBPATH
14503 # AIX 3 has no versioning support, so we append a major version to the name.
14504 soname_spec='${libname}${release}${shared_ext}$major'
14511 hardcode_into_libs=yes
14512 if test "$host_cpu" = ia64; then
14513 # AIX 5 supports IA64
14514 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14515 shlibpath_var=LD_LIBRARY_PATH
14517 # With GCC up to 2.95.x, collect2 would create an import file
14518 # for dependence libraries. The import file would start with
14519 # the line `#! .'. This would cause the generated library to
14520 # depend on `.', always an invalid library. This was fixed in
14521 # development snapshots of GCC prior to 3.0.
14523 aix4 | aix4.[01] | aix4.[01].*)
14524 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14526 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14529 can_build_shared=no
14533 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14534 # soname into executable. Probably we can add versioning support to
14535 # collect2, so additional links can be useful in future.
14536 if test "$aix_use_runtimelinking" = yes; then
14537 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14538 # instead of lib<name>.a to let people know that these are not
14539 # typical AIX shared libraries.
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 # We preserve .a as extension for shared libraries through AIX4.2
14543 # and later when we are not doing run time linking.
14544 library_names_spec='${libname}${release}.a $libname.a'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14547 shlibpath_var=LIBPATH
14552 library_names_spec='$libname.ixlibrary $libname.a'
14553 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14554 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14558 library_names_spec='${libname}${shared_ext}'
14559 dynamic_linker="$host_os ld.so"
14560 shlibpath_var=LIBRARY_PATH
14566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14567 soname_spec='${libname}${release}${shared_ext}$major'
14568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14569 shlibpath_var=LD_LIBRARY_PATH
14570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14572 # the default ld.so.conf also contains /usr/contrib/lib and
14573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14574 # libtool to hard-code these into programs
14577 cygwin* | mingw* | pw32*)
14578 version_type=windows
14583 case $GCC,$host_os in
14584 yes,cygwin* | yes,mingw* | yes,pw32*)
14585 library_names_spec='$libname.dll.a'
14586 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14587 postinstall_cmds='base_file=`basename \${file}`~
14588 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14589 dldir=$destdir/`dirname \$dlpath`~
14590 test -d \$dldir || mkdir -p \$dldir~
14591 $install_prog $dir/$dlname \$dldir/$dlname~
14592 chmod a+x \$dldir/$dlname'
14593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14594 dlpath=$dir/\$dldll~
14596 shlibpath_overrides_runpath=yes
14600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14602 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14605 # MinGW DLLs use traditional 'lib' prefix
14606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14607 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14608 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14609 # It is most probably a Windows format PATH printed by
14610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14611 # path with ; separators, and with drive letters. We can handle the
14612 # drive letters (cygwin fileutils understands them), so leave them,
14613 # especially as we might pass files found there to a mingw objdump,
14614 # which wouldn't understand a cygwinified path. Ahh.
14615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14621 # pw32 DLLs use 'pw' prefix rather than 'lib'
14622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14631 dynamic_linker='Win32 ld.exe'
14632 # FIXME: first we should search . and the directory the executable is in
14636 darwin* | rhapsody*)
14637 dynamic_linker="$host_os dyld"
14638 version_type=darwin
14641 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14642 soname_spec='${libname}${release}${major}$shared_ext'
14643 shlibpath_overrides_runpath=yes
14644 shlibpath_var=DYLD_LIBRARY_PATH
14645 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14646 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14647 if test "$GCC" = yes; then
14648 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14650 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14652 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14660 soname_spec='${libname}${release}${shared_ext}$major'
14661 shlibpath_var=LD_LIBRARY_PATH
14668 freebsd* | dragonfly*)
14669 # DragonFly does not have aout. When/if they implement a new
14670 # versioning mechanism, adjust this.
14671 if test -x /usr/bin/objformat; then
14672 objformat=`/usr/bin/objformat`
14675 freebsd[123]*) objformat=aout ;;
14676 *) objformat=elf ;;
14679 version_type=freebsd-$objformat
14680 case $version_type in
14682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14691 shlibpath_var=LD_LIBRARY_PATH
14694 shlibpath_overrides_runpath=yes
14696 freebsd3.[01]* | freebsdelf3.[01]*)
14697 shlibpath_overrides_runpath=yes
14698 hardcode_into_libs=yes
14700 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14701 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14702 shlibpath_overrides_runpath=no
14703 hardcode_into_libs=yes
14705 freebsd*) # from 4.6 on
14706 shlibpath_overrides_runpath=yes
14707 hardcode_into_libs=yes
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 hardcode_into_libs=yes
14722 hpux9* | hpux10* | hpux11*)
14723 # Give a soname corresponding to the major version so that dld.sl refuses to
14724 # link against other versions.
14731 hardcode_into_libs=yes
14732 dynamic_linker="$host_os dld.so"
14733 shlibpath_var=LD_LIBRARY_PATH
14734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 if test "X$HPUX_IA64_MODE" = X32; then
14738 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14740 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14746 hardcode_into_libs=yes
14747 dynamic_linker="$host_os dld.sl"
14748 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14749 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 soname_spec='${libname}${release}${shared_ext}$major'
14752 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14753 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14757 dynamic_linker="$host_os dld.sl"
14758 shlibpath_var=SHLIB_PATH
14759 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14764 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14765 postinstall_cmds='chmod 555 $lib'
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14773 soname_spec='${libname}${release}${shared_ext}$major'
14774 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=no
14777 hardcode_into_libs=yes
14780 irix5* | irix6* | nonstopux*)
14782 nonstopux*) version_type=nonstopux ;;
14784 if test "$lt_cv_prog_gnu_ld" = yes; then
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14795 irix5* | nonstopux*)
14796 libsuff= shlibsuff=
14799 case $LD in # libtool.m4 will add one of these switches to LD
14800 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14801 libsuff= shlibsuff= libmagic=32-bit;;
14802 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14803 libsuff=32 shlibsuff=N32 libmagic=N32;;
14804 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14805 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14806 *) libsuff= shlibsuff= libmagic=never-match;;
14810 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14811 shlibpath_overrides_runpath=no
14812 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14813 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14814 hardcode_into_libs=yes
14817 # No shared lib support for Linux oldld, aout, or coff.
14818 linux*oldld* | linux*aout* | linux*coff*)
14822 # This must be Linux ELF.
14823 linux* | k*bsd*-gnu)
14827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14828 soname_spec='${libname}${release}${shared_ext}$major'
14829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14830 shlibpath_var=LD_LIBRARY_PATH
14831 shlibpath_overrides_runpath=no
14832 # This implies no fast_install, which is unacceptable.
14833 # Some rework will be needed to allow for fast_install
14834 # before this can be enabled.
14835 hardcode_into_libs=yes
14837 # Append ld.so.conf contents to the search path
14838 if test -f /etc/ld.so.conf; then
14839 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14840 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14843 # We used to test for /lib/ld.so.1 and disable shared libraries on
14844 # powerpc, because MkLinux only supported shared libraries with the
14845 # GNU dynamic linker. Since this was broken with cross compilers,
14846 # most powerpc-linux boxes support dynamic linking these days and
14847 # people can always --disable-shared, the test was removed, and we
14848 # assume the GNU/Linux dynamic linker is in use.
14849 dynamic_linker='GNU/Linux ld.so'
14856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14857 soname_spec='${libname}${release}${shared_ext}$major'
14858 shlibpath_var=LD_LIBRARY_PATH
14859 shlibpath_overrides_runpath=no
14860 hardcode_into_libs=yes
14861 dynamic_linker='NetBSD ld.elf_so'
14868 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14871 dynamic_linker='NetBSD (a.out) ld.so'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 dynamic_linker='NetBSD ld.elf_so'
14877 shlibpath_var=LD_LIBRARY_PATH
14878 shlibpath_overrides_runpath=yes
14879 hardcode_into_libs=yes
14884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14885 shlibpath_var=LD_LIBRARY_PATH
14886 shlibpath_overrides_runpath=yes
14893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14894 soname_spec='${libname}${release}${shared_ext}$major'
14895 shlibpath_var=LD_LIBRARY_PATH
14896 shlibpath_overrides_runpath=yes
14901 sys_lib_dlsearch_path_spec="/usr/lib"
14903 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14905 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14906 *) need_version=no ;;
14908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14910 shlibpath_var=LD_LIBRARY_PATH
14911 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14913 openbsd2.[89] | openbsd2.[89].*)
14914 shlibpath_overrides_runpath=no
14917 shlibpath_overrides_runpath=yes
14921 shlibpath_overrides_runpath=yes
14926 libname_spec='$name'
14929 library_names_spec='$libname${shared_ext} $libname.a'
14930 dynamic_linker='OS/2 ld.exe'
14931 shlibpath_var=LIBPATH
14934 osf3* | osf4* | osf5*)
14938 soname_spec='${libname}${release}${shared_ext}$major'
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 shlibpath_var=LD_LIBRARY_PATH
14941 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14942 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 shlibpath_overrides_runpath=yes
14953 hardcode_into_libs=yes
14954 # ldd complains unless libraries are executable
14955 postinstall_cmds='chmod +x $lib'
14960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14962 shlibpath_var=LD_LIBRARY_PATH
14963 shlibpath_overrides_runpath=yes
14964 if test "$with_gnu_ld" = yes; then
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LD_LIBRARY_PATH
14975 case $host_vendor in
14977 shlibpath_overrides_runpath=no
14979 export_dynamic_flag_spec='${wl}-Blargedynsym'
14980 runpath_var=LD_RUN_PATH
14988 shlibpath_overrides_runpath=no
14989 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14995 if test -d /usr/nec ;then
14997 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14998 soname_spec='$libname${shared_ext}.$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15003 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15004 version_type=freebsd-elf
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15008 soname_spec='${libname}${release}${shared_ext}$major'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 hardcode_into_libs=yes
15011 if test "$with_gnu_ld" = yes; then
15012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15013 shlibpath_overrides_runpath=no
15015 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15016 shlibpath_overrides_runpath=yes
15019 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15023 sys_lib_dlsearch_path_spec='/usr/lib'
15028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15029 soname_spec='${libname}${release}${shared_ext}$major'
15030 shlibpath_var=LD_LIBRARY_PATH
15037 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15038 echo "${ECHO_T}$dynamic_linker" >&6; }
15039 test "$dynamic_linker" = no && can_build_shared=no
15041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15042 if test "$GCC" = yes; then
15043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15046 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15047 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15048 hardcode_action_CXX=
15049 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15050 test -n "$runpath_var_CXX" || \
15051 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15053 # We can hardcode non-existant directories.
15054 if test "$hardcode_direct_CXX" != no &&
15055 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15056 # have to relink, otherwise we might link with an installed library
15057 # when we should be linking with a yet-to-be-installed one
15058 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15059 test "$hardcode_minus_L_CXX" != no; then
15060 # Linking always hardcodes the temporary library directory.
15061 hardcode_action_CXX=relink
15063 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15064 hardcode_action_CXX=immediate
15067 # We cannot hardcode anything, or else we can only hardcode existing
15069 hardcode_action_CXX=unsupported
15071 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15072 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15074 if test "$hardcode_action_CXX" = relink; then
15075 # Fast installation is not supported
15076 enable_fast_install=no
15077 elif test "$shlibpath_overrides_runpath" = yes ||
15078 test "$enable_shared" = no; then
15079 # Fast installation is not necessary
15080 enable_fast_install=needless
15084 # The else clause should only fire when bootstrapping the
15085 # libtool distribution, otherwise you forgot to ship ltmain.sh
15086 # with your package, and you will get complaints that there are
15087 # no rules to generate ltmain.sh.
15088 if test -f "$ltmain"; then
15089 # See if we are running on zsh, and set the options which allow our commands through
15090 # without removal of \ escapes.
15091 if test -n "${ZSH_VERSION+set}" ; then
15092 setopt NO_GLOB_SUBST
15094 # Now quote all the things that may contain metacharacters while being
15095 # careful not to overquote the AC_SUBSTed values. We take copies of the
15096 # variables and quote the copies for generation of the libtool script.
15097 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15099 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15100 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15101 deplibs_check_method reload_flag reload_cmds need_locks \
15102 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15103 lt_cv_sys_global_symbol_to_c_name_address \
15104 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15105 old_postinstall_cmds old_postuninstall_cmds \
15109 lt_prog_compiler_wl_CXX \
15110 lt_prog_compiler_pic_CXX \
15111 lt_prog_compiler_static_CXX \
15112 lt_prog_compiler_no_builtin_flag_CXX \
15113 export_dynamic_flag_spec_CXX \
15114 thread_safe_flag_spec_CXX \
15115 whole_archive_flag_spec_CXX \
15116 enable_shared_with_static_runtimes_CXX \
15117 old_archive_cmds_CXX \
15118 old_archive_from_new_cmds_CXX \
15119 predep_objects_CXX \
15120 postdep_objects_CXX \
15123 compiler_lib_search_path_CXX \
15125 archive_expsym_cmds_CXX \
15126 postinstall_cmds_CXX \
15127 postuninstall_cmds_CXX \
15128 old_archive_from_expsyms_cmds_CXX \
15129 allow_undefined_flag_CXX \
15130 no_undefined_flag_CXX \
15131 export_symbols_cmds_CXX \
15132 hardcode_libdir_flag_spec_CXX \
15133 hardcode_libdir_flag_spec_ld_CXX \
15134 hardcode_libdir_separator_CXX \
15135 hardcode_automatic_CXX \
15137 module_expsym_cmds_CXX \
15138 lt_cv_prog_compiler_c_o_CXX \
15139 exclude_expsyms_CXX \
15140 include_expsyms_CXX; do
15143 old_archive_cmds_CXX | \
15144 old_archive_from_new_cmds_CXX | \
15145 archive_cmds_CXX | \
15146 archive_expsym_cmds_CXX | \
15147 module_cmds_CXX | \
15148 module_expsym_cmds_CXX | \
15149 old_archive_from_expsyms_cmds_CXX | \
15150 export_symbols_cmds_CXX | \
15151 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15152 postinstall_cmds | postuninstall_cmds | \
15153 old_postinstall_cmds | old_postuninstall_cmds | \
15154 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15155 # Double-quote double-evaled strings.
15156 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15165 *'\$0 --fallback-echo"')
15166 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15172 cat <<__EOF__ >> "$cfgfile"
15173 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15175 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15177 # Shell to use when invoking shell scripts.
15180 # Whether or not to build shared libraries.
15181 build_libtool_libs=$enable_shared
15183 # Whether or not to build static libraries.
15184 build_old_libs=$enable_static
15186 # Whether or not to add -lc for building shared libraries.
15187 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15189 # Whether or not to disallow shared libs when runtime libs are static
15190 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15192 # Whether or not to optimize for fast installation.
15193 fast_install=$enable_fast_install
15196 host_alias=$host_alias
15200 # The build system.
15201 build_alias=$build_alias
15205 # An echo program that does not interpret backslashes.
15210 AR_FLAGS=$lt_AR_FLAGS
15215 # LTCC compiler flags.
15216 LTCFLAGS=$lt_LTCFLAGS
15218 # A language-specific compiler.
15219 CC=$lt_compiler_CXX
15221 # Is the compiler the GNU C compiler?
15227 # The linker used to build libraries.
15230 # Whether we need hard or soft links.
15233 # A BSD-compatible nm program.
15236 # A symbol stripping program
15239 # Used to examine libraries when file_magic_cmd begins "file"
15240 MAGIC_CMD=$MAGIC_CMD
15242 # Used on cygwin: DLL creation program.
15245 # Used on cygwin: object dumper.
15248 # Used on cygwin: assembler.
15251 # The name of the directory that contains temporary libtool files.
15254 # How to create reloadable object files.
15255 reload_flag=$lt_reload_flag
15256 reload_cmds=$lt_reload_cmds
15258 # How to pass a linker flag through the compiler.
15259 wl=$lt_lt_prog_compiler_wl_CXX
15261 # Object file suffix (normally "o").
15262 objext="$ac_objext"
15264 # Old archive suffix (normally "a").
15267 # Shared library suffix (normally ".so").
15268 shrext_cmds='$shrext_cmds'
15270 # Executable file suffix (normally "").
15273 # Additional compiler flags for building library objects.
15274 pic_flag=$lt_lt_prog_compiler_pic_CXX
15277 # What is the maximum length of a command?
15278 max_cmd_len=$lt_cv_sys_max_cmd_len
15280 # Does compiler simultaneously support -c and -o options?
15281 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15283 # Must we lock files when doing compilation?
15284 need_locks=$lt_need_locks
15286 # Do we need the lib prefix for modules?
15287 need_lib_prefix=$need_lib_prefix
15289 # Do we need a version for libraries?
15290 need_version=$need_version
15292 # Whether dlopen is supported.
15293 dlopen_support=$enable_dlopen
15295 # Whether dlopen of programs is supported.
15296 dlopen_self=$enable_dlopen_self
15298 # Whether dlopen of statically linked programs is supported.
15299 dlopen_self_static=$enable_dlopen_self_static
15301 # Compiler flag to prevent dynamic linking.
15302 link_static_flag=$lt_lt_prog_compiler_static_CXX
15304 # Compiler flag to turn off builtin functions.
15305 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15307 # Compiler flag to allow reflexive dlopens.
15308 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15310 # Compiler flag to generate shared objects directly from archives.
15311 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15313 # Compiler flag to generate thread-safe objects.
15314 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15316 # Library versioning type.
15317 version_type=$version_type
15319 # Format of library name prefix.
15320 libname_spec=$lt_libname_spec
15322 # List of archive names. First name is the real one, the rest are links.
15323 # The last name is the one that the linker finds with -lNAME.
15324 library_names_spec=$lt_library_names_spec
15326 # The coded name of the library, if different from the real name.
15327 soname_spec=$lt_soname_spec
15329 # Commands used to build and install an old-style archive.
15331 old_archive_cmds=$lt_old_archive_cmds_CXX
15332 old_postinstall_cmds=$lt_old_postinstall_cmds
15333 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15335 # Create an old-style archive from a shared archive.
15336 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15338 # Create a temporary old-style archive to link instead of a shared archive.
15339 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15341 # Commands used to build and install a shared archive.
15342 archive_cmds=$lt_archive_cmds_CXX
15343 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15344 postinstall_cmds=$lt_postinstall_cmds
15345 postuninstall_cmds=$lt_postuninstall_cmds
15347 # Commands used to build a loadable module (assumed same as above if empty)
15348 module_cmds=$lt_module_cmds_CXX
15349 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15351 # Commands to strip libraries.
15352 old_striplib=$lt_old_striplib
15353 striplib=$lt_striplib
15355 # Dependencies to place before the objects being linked to create a
15357 predep_objects=$lt_predep_objects_CXX
15359 # Dependencies to place after the objects being linked to create a
15361 postdep_objects=$lt_postdep_objects_CXX
15363 # Dependencies to place before the objects being linked to create a
15365 predeps=$lt_predeps_CXX
15367 # Dependencies to place after the objects being linked to create a
15369 postdeps=$lt_postdeps_CXX
15371 # The library search path used internally by the compiler when linking
15372 # a shared library.
15373 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15375 # Method to check whether dependent libraries are shared objects.
15376 deplibs_check_method=$lt_deplibs_check_method
15378 # Command to use when deplibs_check_method == file_magic.
15379 file_magic_cmd=$lt_file_magic_cmd
15381 # Flag that allows shared libraries with undefined symbols to be built.
15382 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15384 # Flag that forces no undefined symbols.
15385 no_undefined_flag=$lt_no_undefined_flag_CXX
15387 # Commands used to finish a libtool library installation in a directory.
15388 finish_cmds=$lt_finish_cmds
15390 # Same as above, but a single script fragment to be evaled but not shown.
15391 finish_eval=$lt_finish_eval
15393 # Take the output of nm and produce a listing of raw symbols and C names.
15394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15396 # Transform the output of nm in a proper C declaration
15397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15399 # Transform the output of nm in a C name address pair
15400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15402 # This is the shared library runtime path variable.
15403 runpath_var=$runpath_var
15405 # This is the shared library path variable.
15406 shlibpath_var=$shlibpath_var
15408 # Is shlibpath searched before the hard-coded library search path?
15409 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15411 # How to hardcode a shared library path into an executable.
15412 hardcode_action=$hardcode_action_CXX
15414 # Whether we should hardcode library paths into libraries.
15415 hardcode_into_libs=$hardcode_into_libs
15417 # Flag to hardcode \$libdir into a binary during linking.
15418 # This must work even if \$libdir does not exist.
15419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15421 # If ld is used when linking, flag to hardcode \$libdir into
15422 # a binary during linking. This must work even if \$libdir does
15424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15426 # Whether we need a single -rpath flag with a separated argument.
15427 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15429 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15430 # resulting binary.
15431 hardcode_direct=$hardcode_direct_CXX
15433 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15434 # resulting binary.
15435 hardcode_minus_L=$hardcode_minus_L_CXX
15437 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15438 # the resulting binary.
15439 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15441 # Set to yes if building a shared library automatically hardcodes DIR into the library
15442 # and all subsequent libraries and executables linked against it.
15443 hardcode_automatic=$hardcode_automatic_CXX
15445 # Variables whose values should be saved in libtool wrapper scripts and
15446 # restored at relink time.
15447 variables_saved_for_relink="$variables_saved_for_relink"
15449 # Whether libtool must link a program against all its dependency libraries.
15450 link_all_deplibs=$link_all_deplibs_CXX
15452 # Compile-time system search path for libraries
15453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15455 # Run-time system search path for libraries
15456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15458 # Fix the shell variable \$srcfile for the compiler.
15459 fix_srcfile_path="$fix_srcfile_path_CXX"
15461 # Set to yes if exported symbols are required.
15462 always_export_symbols=$always_export_symbols_CXX
15464 # The commands to list exported symbols.
15465 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15467 # The commands to extract the exported symbol list from a shared archive.
15468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15470 # Symbols that should not be listed in the preloaded symbols.
15471 exclude_expsyms=$lt_exclude_expsyms_CXX
15473 # Symbols that must always be exported.
15474 include_expsyms=$lt_include_expsyms_CXX
15476 # ### END LIBTOOL TAG CONFIG: $tagname
15482 # If there is no Makefile yet, we rely on a make rule to execute
15483 # `config.status --recheck' to rerun these tests and create the
15484 # libtool script then.
15485 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15486 if test -f "$ltmain_in"; then
15487 test -f Makefile && make "$ltmain"
15493 ac_cpp='$CPP $CPPFLAGS'
15494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15502 with_gnu_ldcxx=$with_gnu_ld
15503 with_gnu_ld=$lt_save_with_gnu_ld
15504 lt_cv_path_LDCXX=$lt_cv_path_LD
15505 lt_cv_path_LD=$lt_save_path_LD
15506 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15507 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15515 if test -n "$F77" && test "X$F77" != "Xno"; then
15518 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15519 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15520 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15523 archive_cmds_need_lc_F77=no
15524 allow_undefined_flag_F77=
15525 always_export_symbols_F77=no
15526 archive_expsym_cmds_F77=
15527 export_dynamic_flag_spec_F77=
15528 hardcode_direct_F77=no
15529 hardcode_libdir_flag_spec_F77=
15530 hardcode_libdir_flag_spec_ld_F77=
15531 hardcode_libdir_separator_F77=
15532 hardcode_minus_L_F77=no
15533 hardcode_automatic_F77=no
15535 module_expsym_cmds_F77=
15536 link_all_deplibs_F77=unknown
15537 old_archive_cmds_F77=$old_archive_cmds
15538 no_undefined_flag_F77=
15539 whole_archive_flag_spec_F77=
15540 enable_shared_with_static_runtimes_F77=no
15542 # Source file extension for f77 test sources.
15545 # Object file extension for compiled f77 test sources.
15549 # Code to be used in simple compile tests
15550 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15552 # Code to be used in simple link tests
15553 lt_simple_link_test_code=" program t\n end\n"
15555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15557 # If no C compiler was specified, use CC.
15560 # If no C compiler flags were specified, use CFLAGS.
15561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15563 # Allow CC to be a program name with arguments.
15567 # save warnings/boilerplate of simple test code
15568 ac_outfile=conftest.$ac_objext
15569 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15570 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15571 _lt_compiler_boilerplate=`cat conftest.err`
15574 ac_outfile=conftest.$ac_objext
15575 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15576 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15577 _lt_linker_boilerplate=`cat conftest.err`
15581 # Allow CC to be a program name with arguments.
15586 for cc_temp in $compiler""; do
15588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15594 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15597 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15598 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15599 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15600 echo "${ECHO_T}$can_build_shared" >&6; }
15602 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15603 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15604 test "$can_build_shared" = "no" && enable_shared=no
15606 # On AIX, shared libraries and static libraries use the same namespace, and
15607 # are all built from PIC.
15610 test "$enable_shared" = yes && enable_static=no
15611 if test -n "$RANLIB"; then
15612 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15613 postinstall_cmds='$RANLIB $lib'
15617 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15618 test "$enable_shared" = yes && enable_static=no
15622 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15623 echo "${ECHO_T}$enable_shared" >&6; }
15625 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15626 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15627 # Make sure either enable_shared or enable_static is yes.
15628 test "$enable_shared" = yes || enable_static=yes
15629 { echo "$as_me:$LINENO: result: $enable_static" >&5
15630 echo "${ECHO_T}$enable_static" >&6; }
15635 lt_prog_compiler_wl_F77=
15636 lt_prog_compiler_pic_F77=
15637 lt_prog_compiler_static_F77=
15639 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15640 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15642 if test "$GCC" = yes; then
15643 lt_prog_compiler_wl_F77='-Wl,'
15644 lt_prog_compiler_static_F77='-static'
15648 # All AIX code is PIC.
15649 if test "$host_cpu" = ia64; then
15650 # AIX 5 now supports IA64 processor
15651 lt_prog_compiler_static_F77='-Bstatic'
15656 # FIXME: we need at least 68020 code to build shared libraries, but
15657 # adding the `-m68020' flag to GCC prevents building anything better,
15659 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15662 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15663 # PIC is the default for these OSes.
15666 mingw* | pw32* | os2*)
15667 # This hack is so that the source file can tell whether it is being
15668 # built for inclusion in a dll (and should export symbols for example).
15669 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15672 darwin* | rhapsody*)
15673 # PIC is the default on this platform
15674 # Common symbols not allowed in MH_DYLIB files
15675 lt_prog_compiler_pic_F77='-fno-common'
15679 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15680 # Instead, we relocate shared libraries at runtime.
15684 # Just because we use GCC doesn't mean we suddenly get shared libraries
15685 # on systems that don't support them.
15686 lt_prog_compiler_can_build_shared_F77=no
15691 if test -d /usr/nec; then
15692 lt_prog_compiler_pic_F77=-Kconform_pic
15697 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698 # not for PA HP-UX.
15704 lt_prog_compiler_pic_F77='-fPIC'
15710 lt_prog_compiler_pic_F77='-fPIC'
15714 # PORTME Check for flag to pass linker flags through the system compiler.
15717 lt_prog_compiler_wl_F77='-Wl,'
15718 if test "$host_cpu" = ia64; then
15719 # AIX 5 now supports IA64 processor
15720 lt_prog_compiler_static_F77='-Bstatic'
15722 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15726 # PIC is the default on this platform
15727 # Common symbols not allowed in MH_DYLIB files
15728 case $cc_basename in
15730 lt_prog_compiler_pic_F77='-qnocommon'
15731 lt_prog_compiler_wl_F77='-Wl,'
15736 mingw* | pw32* | os2*)
15737 # This hack is so that the source file can tell whether it is being
15738 # built for inclusion in a dll (and should export symbols for example).
15739 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15742 hpux9* | hpux10* | hpux11*)
15743 lt_prog_compiler_wl_F77='-Wl,'
15744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15745 # not for PA HP-UX.
15751 lt_prog_compiler_pic_F77='+Z'
15754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15755 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15758 irix5* | irix6* | nonstopux*)
15759 lt_prog_compiler_wl_F77='-Wl,'
15760 # PIC (with -KPIC) is the default.
15761 lt_prog_compiler_static_F77='-non_shared'
15765 lt_prog_compiler_pic_F77='-KPIC'
15766 lt_prog_compiler_static_F77='-Bstatic'
15769 linux* | k*bsd*-gnu)
15770 case $cc_basename in
15772 lt_prog_compiler_wl_F77='-Wl,'
15773 lt_prog_compiler_pic_F77='-KPIC'
15774 lt_prog_compiler_static_F77='-static'
15776 pgcc* | pgf77* | pgf90* | pgf95*)
15777 # Portland Group compilers (*not* the Pentium gcc compiler,
15778 # which looks to be a dead project)
15779 lt_prog_compiler_wl_F77='-Wl,'
15780 lt_prog_compiler_pic_F77='-fpic'
15781 lt_prog_compiler_static_F77='-Bstatic'
15784 lt_prog_compiler_wl_F77='-Wl,'
15785 # All Alpha code is PIC.
15786 lt_prog_compiler_static_F77='-non_shared'
15791 osf3* | osf4* | osf5*)
15792 lt_prog_compiler_wl_F77='-Wl,'
15793 # All OSF/1 code is PIC.
15794 lt_prog_compiler_static_F77='-non_shared'
15798 lt_prog_compiler_pic_F77='-KPIC'
15799 lt_prog_compiler_static_F77='-Bstatic'
15800 case $cc_basename in
15801 f77* | f90* | f95*)
15802 lt_prog_compiler_wl_F77='-Qoption ld ';;
15804 lt_prog_compiler_wl_F77='-Wl,';;
15809 lt_prog_compiler_wl_F77='-Qoption ld '
15810 lt_prog_compiler_pic_F77='-PIC'
15811 lt_prog_compiler_static_F77='-Bstatic'
15814 sysv4 | sysv4.2uw2* | sysv4.3*)
15815 lt_prog_compiler_wl_F77='-Wl,'
15816 lt_prog_compiler_pic_F77='-KPIC'
15817 lt_prog_compiler_static_F77='-Bstatic'
15821 if test -d /usr/nec ;then
15822 lt_prog_compiler_pic_F77='-Kconform_pic'
15823 lt_prog_compiler_static_F77='-Bstatic'
15827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15828 lt_prog_compiler_wl_F77='-Wl,'
15829 lt_prog_compiler_pic_F77='-KPIC'
15830 lt_prog_compiler_static_F77='-Bstatic'
15834 lt_prog_compiler_wl_F77='-Wl,'
15835 lt_prog_compiler_can_build_shared_F77=no
15839 lt_prog_compiler_pic_F77='-pic'
15840 lt_prog_compiler_static_F77='-Bstatic'
15844 lt_prog_compiler_can_build_shared_F77=no
15849 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15850 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15853 # Check to make sure the PIC flag actually works.
15855 if test -n "$lt_prog_compiler_pic_F77"; then
15857 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15858 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15859 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15862 lt_prog_compiler_pic_works_F77=no
15863 ac_outfile=conftest.$ac_objext
15864 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15865 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15866 # Insert the option either (1) after the last *FLAGS variable, or
15867 # (2) before a word containing "conftest.", or (3) at the end.
15868 # Note that $ac_compile itself does not contain backslashes and begins
15869 # with a dollar sign (not a hyphen), so the echo should work correctly.
15870 # The option is referenced via a variable to avoid confusing sed.
15871 lt_compile=`echo "$ac_compile" | $SED \
15872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15874 -e 's:$: $lt_compiler_flag:'`
15875 (eval echo "\"\$as_me:15875: $lt_compile\"" >&5)
15876 (eval "$lt_compile" 2>conftest.err)
15878 cat conftest.err >&5
15879 echo "$as_me:15879: \$? = $ac_status" >&5
15880 if (exit $ac_status) && test -s "$ac_outfile"; then
15881 # The compiler can only warn and ignore the option if not recognized
15882 # So say no if there are warnings other than the usual output.
15883 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15884 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15885 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15886 lt_prog_compiler_pic_works_F77=yes
15892 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15893 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15895 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15896 case $lt_prog_compiler_pic_F77 in
15898 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15901 lt_prog_compiler_pic_F77=
15902 lt_prog_compiler_can_build_shared_F77=no
15907 # For platforms which do not support PIC, -DPIC is meaningless:
15909 lt_prog_compiler_pic_F77=
15912 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15917 # Check to make sure the static flag actually works.
15919 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15920 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15921 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15922 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15925 lt_prog_compiler_static_works_F77=no
15926 save_LDFLAGS="$LDFLAGS"
15927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15928 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15930 # The linker can only warn and ignore the option if not recognized
15931 # So say no if there are warnings
15932 if test -s conftest.err; then
15933 # Append any errors to the config.log.
15934 cat conftest.err 1>&5
15935 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15937 if diff conftest.exp conftest.er2 >/dev/null; then
15938 lt_prog_compiler_static_works_F77=yes
15941 lt_prog_compiler_static_works_F77=yes
15945 LDFLAGS="$save_LDFLAGS"
15948 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15949 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15951 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15954 lt_prog_compiler_static_F77=
15958 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15959 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15960 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 lt_cv_prog_compiler_c_o_F77=no
15964 $rm -r conftest 2>/dev/null
15968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15970 lt_compiler_flag="-o out/conftest2.$ac_objext"
15971 # Insert the option either (1) after the last *FLAGS variable, or
15972 # (2) before a word containing "conftest.", or (3) at the end.
15973 # Note that $ac_compile itself does not contain backslashes and begins
15974 # with a dollar sign (not a hyphen), so the echo should work correctly.
15975 lt_compile=`echo "$ac_compile" | $SED \
15976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15978 -e 's:$: $lt_compiler_flag:'`
15979 (eval echo "\"\$as_me:15979: $lt_compile\"" >&5)
15980 (eval "$lt_compile" 2>out/conftest.err)
15982 cat out/conftest.err >&5
15983 echo "$as_me:15983: \$? = $ac_status" >&5
15984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15986 # The compiler can only warn and ignore the option if not recognized
15987 # So say no if there are warnings
15988 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15991 lt_cv_prog_compiler_c_o_F77=yes
15996 # SGI C++ compiler will create directory out/ii_files/ for
15997 # template instantiation
15998 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15999 $rm out/* && rmdir out
16005 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16006 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16009 hard_links="nottested"
16010 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16011 # do not overwrite the value of need_locks provided by the user
16012 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16013 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16018 ln conftest.a conftest.b 2>&5 || hard_links=no
16019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16020 { echo "$as_me:$LINENO: result: $hard_links" >&5
16021 echo "${ECHO_T}$hard_links" >&6; }
16022 if test "$hard_links" = no; then
16023 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16024 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16031 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16032 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16035 allow_undefined_flag_F77=
16036 enable_shared_with_static_runtimes_F77=no
16038 archive_expsym_cmds_F77=
16039 old_archive_From_new_cmds_F77=
16040 old_archive_from_expsyms_cmds_F77=
16041 export_dynamic_flag_spec_F77=
16042 whole_archive_flag_spec_F77=
16043 thread_safe_flag_spec_F77=
16044 hardcode_libdir_flag_spec_F77=
16045 hardcode_libdir_flag_spec_ld_F77=
16046 hardcode_libdir_separator_F77=
16047 hardcode_direct_F77=no
16048 hardcode_minus_L_F77=no
16049 hardcode_shlibpath_var_F77=unsupported
16050 link_all_deplibs_F77=unknown
16051 hardcode_automatic_F77=no
16053 module_expsym_cmds_F77=
16054 always_export_symbols_F77=no
16055 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16056 # include_expsyms should be a list of space-separated symbols to be *always*
16057 # included in the symbol list
16058 include_expsyms_F77=
16059 # exclude_expsyms can be an extended regexp of symbols to exclude
16060 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16061 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16062 # as well as any symbol that contains `d'.
16063 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16064 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16065 # platforms (ab)use it in PIC code, but their linkers get confused if
16066 # the symbol is explicitly referenced. Since portable code cannot
16067 # rely on this symbol name, it's probably fine to never include it in
16068 # preloaded symbol tables.
16069 extract_expsyms_cmds=
16070 # Just being paranoid about ensuring that cc_basename is set.
16071 for cc_temp in $compiler""; do
16073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16079 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16082 cygwin* | mingw* | pw32*)
16083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16084 # When not using gcc, we currently assume that we are using
16085 # Microsoft Visual C++.
16086 if test "$GCC" != yes; then
16091 # we just hope/assume this is gcc and not c89 (= MSVC++)
16100 if test "$with_gnu_ld" = yes; then
16101 # If archive_cmds runs LD, not CC, wlarc should be empty
16104 # Set some defaults for GNU ld with shared library support. These
16105 # are reset later if shared libraries are not supported. Putting them
16106 # here allows them to be overridden if necessary.
16107 runpath_var=LD_RUN_PATH
16108 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16109 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16110 # ancient GNU ld didn't support --whole-archive et. al.
16111 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16112 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16114 whole_archive_flag_spec_F77=
16116 supports_anon_versioning=no
16117 case `$LD -v 2>/dev/null` in
16118 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16121 *\ 2.11.*) ;; # other 2.11 versions
16122 *) supports_anon_versioning=yes ;;
16125 # See if GNU ld supports shared libraries.
16127 aix3* | aix4* | aix5*)
16128 # On AIX/PPC, the GNU linker is very broken
16129 if test "$host_cpu" != ia64; then
16133 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16134 *** to be unable to reliably create shared libraries on AIX.
16135 *** Therefore, libtool is disabling shared libraries support. If you
16136 *** really care for shared libraries, you may want to modify your PATH
16137 *** so that a non-GNU linker is found, and then restart.
16144 archive_cmds_F77='$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)'
16145 hardcode_libdir_flag_spec_F77='-L$libdir'
16146 hardcode_minus_L_F77=yes
16148 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16149 # that the semantics of dynamic libraries on AmigaOS, at least up
16150 # to version 4, is to share data among multiple programs linked
16151 # with the same dynamic library. Since this doesn't match the
16152 # behavior of shared libraries on other platforms, we can't use
16158 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16159 allow_undefined_flag_F77=unsupported
16160 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16161 # support --undefined. This deserves some investigation. FIXME
16162 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168 cygwin* | mingw* | pw32*)
16169 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16170 # as there is no search path for DLLs.
16171 hardcode_libdir_flag_spec_F77='-L$libdir'
16172 allow_undefined_flag_F77=unsupported
16173 always_export_symbols_F77=no
16174 enable_shared_with_static_runtimes_F77=yes
16175 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16177 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16178 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16179 # If the export-symbols file already is a .def file (1st line
16180 # is EXPORTS), use it as is; otherwise, prepend...
16181 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16182 cp $export_symbols $output_objdir/$soname.def;
16184 echo EXPORTS > $output_objdir/$soname.def;
16185 cat $export_symbols >> $output_objdir/$soname.def;
16187 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16194 hardcode_direct_F77=no
16195 hardcode_shlibpath_var_F77=no
16196 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16197 export_dynamic_flag_spec_F77='${wl}-E'
16198 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16199 # Instead, shared libraries are loaded at an image base (0x10000000 by
16200 # default) and relocated if they conflict, which is a slow very memory
16201 # consuming and fragmenting process. To avoid this, we pick a random,
16202 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16203 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16204 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16205 archive_expsym_cmds_F77='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'
16208 linux* | k*bsd*-gnu)
16209 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16211 case $cc_basename,$host_cpu in
16212 pgcc*) # Portland Group C compiler
16213 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16214 tmp_addflag=' $pic_flag'
16216 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16217 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16218 tmp_addflag=' $pic_flag -Mnomain' ;;
16219 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16220 tmp_addflag=' -i_dynamic' ;;
16221 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16222 tmp_addflag=' -i_dynamic -nofor_main' ;;
16223 ifc* | ifort*) # Intel Fortran compiler
16224 tmp_addflag=' -nofor_main' ;;
16226 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16228 if test $supports_anon_versioning = yes; then
16229 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16230 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16231 $echo "local: *; };" >> $output_objdir/$libname.ver~
16232 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16234 link_all_deplibs_F77=no
16240 netbsd* | netbsdelf*-gnu)
16241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16242 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16245 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16246 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16256 *** create shared libraries on Solaris systems. Therefore, libtool
16257 *** is disabling shared libraries support. We urge you to upgrade GNU
16258 *** binutils to release 2.9.1 or newer. Another option is to modify
16259 *** your PATH or compiler configuration so that the native linker is
16260 *** used, and then restart.
16263 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16264 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16265 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16272 case `$LD -v 2>&1` in
16273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16278 *** reliably create shared libraries on SCO systems. Therefore, libtool
16279 *** is disabling shared libraries support. We urge you to upgrade GNU
16280 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16281 *** your PATH or compiler configuration so that the native linker is
16282 *** used, and then restart.
16287 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16288 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16289 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16290 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16299 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16301 hardcode_direct_F77=yes
16302 hardcode_shlibpath_var_F77=no
16306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16307 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16308 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16315 if test "$ld_shlibs_F77" = no; then
16317 hardcode_libdir_flag_spec_F77=
16318 export_dynamic_flag_spec_F77=
16319 whole_archive_flag_spec_F77=
16322 # PORTME fill in a description of your system's linker (not GNU ld)
16325 allow_undefined_flag_F77=unsupported
16326 always_export_symbols_F77=yes
16327 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16328 # Note: this linker hardcodes the directories in LIBPATH if there
16329 # are no directories specified by -L.
16330 hardcode_minus_L_F77=yes
16331 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16332 # Neither direct hardcoding nor static linking is supported with a
16334 hardcode_direct_F77=unsupported
16339 if test "$host_cpu" = ia64; then
16340 # On IA64, the linker does run time linking by default, so we don't
16341 # have to do anything special.
16342 aix_use_runtimelinking=no
16343 exp_sym_flag='-Bexport'
16346 # If we're using GNU nm, then we don't want the "-C" option.
16347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16348 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16349 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16351 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16353 aix_use_runtimelinking=no
16355 # Test if we are trying to use run time linking or normal
16356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16357 # need to do runtime linking.
16358 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16359 for ld_flag in $LDFLAGS; do
16360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16361 aix_use_runtimelinking=yes
16368 exp_sym_flag='-bexport'
16369 no_entry_flag='-bnoentry'
16372 # When large executables or shared objects are built, AIX ld can
16373 # have problems creating the table of contents. If linking a library
16374 # or program results in "error TOC overflow" add -mminimal-toc to
16375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16378 archive_cmds_F77=''
16379 hardcode_direct_F77=yes
16380 hardcode_libdir_separator_F77=':'
16381 link_all_deplibs_F77=yes
16383 if test "$GCC" = yes; then
16384 case $host_os in aix4.[012]|aix4.[012].*)
16385 # We only want to do this on AIX 4.2 and lower, the check
16386 # below for broken collect2 doesn't work under 4.3+
16387 collect2name=`${CC} -print-prog-name=collect2`
16388 if test -f "$collect2name" && \
16389 strings "$collect2name" | grep resolve_lib_name >/dev/null
16391 # We have reworked collect2
16392 hardcode_direct_F77=yes
16394 # We have old collect2
16395 hardcode_direct_F77=unsupported
16396 # It fails to find uninstalled libraries when the uninstalled
16397 # path is not listed in the libpath. Setting hardcode_minus_L
16398 # to unsupported forces relinking
16399 hardcode_minus_L_F77=yes
16400 hardcode_libdir_flag_spec_F77='-L$libdir'
16401 hardcode_libdir_separator_F77=
16405 shared_flag='-shared'
16406 if test "$aix_use_runtimelinking" = yes; then
16407 shared_flag="$shared_flag "'${wl}-G'
16411 if test "$host_cpu" = ia64; then
16412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16413 # chokes on -Wl,-G. The following line is correct:
16416 if test "$aix_use_runtimelinking" = yes; then
16417 shared_flag='${wl}-G'
16419 shared_flag='${wl}-bM:SRE'
16424 # It seems that -bexpall does not export symbols beginning with
16425 # underscore (_), so it is better to generate a list of symbols to export.
16426 always_export_symbols_F77=yes
16427 if test "$aix_use_runtimelinking" = yes; then
16428 # Warning - without using the other runtime loading flags (-brtl),
16429 # -berok will link without error, but may produce a broken library.
16430 allow_undefined_flag_F77='-berok'
16431 # Determine the default libpath from the value encoded in an empty executable.
16432 cat >conftest.$ac_ext <<_ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (ac_try="$ac_link"
16439 case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_link") 2>conftest.er1
16446 grep -v '^ *+' conftest.er1 >conftest.err
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
16451 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16452 { (case "(($ac_try" in
16453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16454 *) ac_try_echo=$ac_try;;
16456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16457 (eval "$ac_try") 2>&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; } &&
16461 { ac_try='test -s conftest$ac_exeext'
16462 { (case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467 (eval "$ac_try") 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16474 # Check for a 64-bit object if we didn't find anything.
16475 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16484 rm -f core conftest.err conftest.$ac_objext \
16485 conftest$ac_exeext conftest.$ac_ext
16486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16488 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16489 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16491 if test "$host_cpu" = ia64; then
16492 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16493 allow_undefined_flag_F77="-z nodefs"
16494 archive_expsym_cmds_F77="\$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"
16496 # Determine the default libpath from the value encoded in an empty executable.
16497 cat >conftest.$ac_ext <<_ACEOF
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (ac_try="$ac_link"
16504 case "(($ac_try" in
16505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16506 *) ac_try_echo=$ac_try;;
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509 (eval "$ac_link") 2>conftest.er1
16511 grep -v '^ *+' conftest.er1 >conftest.err
16513 cat conftest.err >&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
16517 { (case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16537 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16539 # Check for a 64-bit object if we didn't find anything.
16540 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16553 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16554 # Warning - without using the other run time loading flags,
16555 # -berok will link without error, but may produce a broken library.
16556 no_undefined_flag_F77=' ${wl}-bernotok'
16557 allow_undefined_flag_F77=' ${wl}-berok'
16558 # Exported symbols can be pulled into shared objects from archives
16559 whole_archive_flag_spec_F77='$convenience'
16560 archive_cmds_need_lc_F77=yes
16561 # This is similar to how AIX traditionally builds its shared libraries.
16562 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16568 archive_cmds_F77='$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)'
16569 hardcode_libdir_flag_spec_F77='-L$libdir'
16570 hardcode_minus_L_F77=yes
16571 # see comment about different semantics on the GNU ld section
16576 export_dynamic_flag_spec_F77=-rdynamic
16579 cygwin* | mingw* | pw32*)
16580 # When not using gcc, we currently assume that we are using
16581 # Microsoft Visual C++.
16582 # hardcode_libdir_flag_spec is actually meaningless, as there is
16583 # no search path for DLLs.
16584 hardcode_libdir_flag_spec_F77=' '
16585 allow_undefined_flag_F77=unsupported
16586 # Tell ltmain to make .lib files, not .a files.
16588 # Tell ltmain to make .dll files, not .so files.
16590 # FIXME: Setting linknames here is a bad hack.
16591 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16592 # The linker will automatically build a .lib file if we build a DLL.
16593 old_archive_From_new_cmds_F77='true'
16594 # FIXME: Should let the user specify the lib program.
16595 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16596 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16597 enable_shared_with_static_runtimes_F77=yes
16600 darwin* | rhapsody*)
16602 rhapsody* | darwin1.[012])
16603 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16606 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16607 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16609 case ${MACOSX_DEPLOYMENT_TARGET} in
16611 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16614 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16620 archive_cmds_need_lc_F77=no
16621 hardcode_direct_F77=no
16622 hardcode_automatic_F77=yes
16623 hardcode_shlibpath_var_F77=unsupported
16624 whole_archive_flag_spec_F77=''
16625 link_all_deplibs_F77=yes
16626 if test "$GCC" = yes ; then
16627 output_verbose_link_cmd='echo'
16628 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16629 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16630 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16631 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16632 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16634 case $cc_basename in
16636 output_verbose_link_cmd='echo'
16637 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16638 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16639 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16640 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16641 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16652 hardcode_libdir_flag_spec_F77='-L$libdir'
16653 hardcode_shlibpath_var_F77=no
16660 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16661 # support. Future versions do this automatically, but an explicit c++rt0.o
16662 # does not break anything, and helps significantly (at the cost of a little
16665 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16666 hardcode_libdir_flag_spec_F77='-R$libdir'
16667 hardcode_direct_F77=yes
16668 hardcode_shlibpath_var_F77=no
16671 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16673 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16674 hardcode_direct_F77=yes
16675 hardcode_minus_L_F77=yes
16676 hardcode_shlibpath_var_F77=no
16679 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16680 freebsd* | dragonfly*)
16681 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16682 hardcode_libdir_flag_spec_F77='-R$libdir'
16683 hardcode_direct_F77=yes
16684 hardcode_shlibpath_var_F77=no
16688 if test "$GCC" = yes; then
16689 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16691 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16693 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16694 hardcode_libdir_separator_F77=:
16695 hardcode_direct_F77=yes
16697 # hardcode_minus_L: Not really in the search PATH,
16698 # but as the default location of the library.
16699 hardcode_minus_L_F77=yes
16700 export_dynamic_flag_spec_F77='${wl}-E'
16704 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16705 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16707 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16709 if test "$with_gnu_ld" = no; then
16710 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16711 hardcode_libdir_separator_F77=:
16713 hardcode_direct_F77=yes
16714 export_dynamic_flag_spec_F77='${wl}-E'
16716 # hardcode_minus_L: Not really in the search PATH,
16717 # but as the default location of the library.
16718 hardcode_minus_L_F77=yes
16723 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16726 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16729 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16732 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16738 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16741 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16744 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16748 if test "$with_gnu_ld" = no; then
16749 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16750 hardcode_libdir_separator_F77=:
16754 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16755 hardcode_direct_F77=no
16756 hardcode_shlibpath_var_F77=no
16759 hardcode_direct_F77=yes
16760 export_dynamic_flag_spec_F77='${wl}-E'
16762 # hardcode_minus_L: Not really in the search PATH,
16763 # but as the default location of the library.
16764 hardcode_minus_L_F77=yes
16770 irix5* | irix6* | nonstopux*)
16771 if test "$GCC" = yes; then
16772 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16774 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16775 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16777 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16778 hardcode_libdir_separator_F77=:
16779 link_all_deplibs_F77=yes
16782 netbsd* | netbsdelf*-gnu)
16783 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16784 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16786 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16788 hardcode_libdir_flag_spec_F77='-R$libdir'
16789 hardcode_direct_F77=yes
16790 hardcode_shlibpath_var_F77=no
16794 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16795 hardcode_direct_F77=yes
16796 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16797 hardcode_libdir_separator_F77=:
16798 hardcode_shlibpath_var_F77=no
16802 hardcode_direct_F77=yes
16803 hardcode_shlibpath_var_F77=no
16804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16805 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16807 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16808 export_dynamic_flag_spec_F77='${wl}-E'
16811 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16812 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16813 hardcode_libdir_flag_spec_F77='-R$libdir'
16816 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16817 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16824 hardcode_libdir_flag_spec_F77='-L$libdir'
16825 hardcode_minus_L_F77=yes
16826 allow_undefined_flag_F77=unsupported
16827 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16828 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16832 if test "$GCC" = yes; then
16833 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16834 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16836 allow_undefined_flag_F77=' -expect_unresolved \*'
16837 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16839 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16840 hardcode_libdir_separator_F77=:
16843 osf4* | osf5*) # as osf3* with the addition of -msym flag
16844 if test "$GCC" = yes; then
16845 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16846 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16847 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16849 allow_undefined_flag_F77=' -expect_unresolved \*'
16850 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16851 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16852 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16854 # Both c and cxx compiler support -rpath directly
16855 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16857 hardcode_libdir_separator_F77=:
16861 no_undefined_flag_F77=' -z text'
16862 if test "$GCC" = yes; then
16864 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16865 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16866 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16869 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16870 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16871 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16873 hardcode_libdir_flag_spec_F77='-R$libdir'
16874 hardcode_shlibpath_var_F77=no
16876 solaris2.[0-5] | solaris2.[0-5].*) ;;
16878 # The compiler driver will combine linker options so we
16879 # cannot just pass the convience library names through
16880 # without $wl, iff we do not link with $LD.
16881 # Luckily, gcc supports the same syntax we need for Sun Studio.
16882 # Supported since Solaris 2.6 (maybe 2.5.1?)
16885 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16887 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16890 link_all_deplibs_F77=yes
16894 if test "x$host_vendor" = xsequent; then
16895 # Use $CC to link under sequent, because it throws in some extra .o
16896 # files that make .init and .fini sections work.
16897 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16899 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16901 hardcode_libdir_flag_spec_F77='-L$libdir'
16902 hardcode_direct_F77=yes
16903 hardcode_minus_L_F77=yes
16904 hardcode_shlibpath_var_F77=no
16908 case $host_vendor in
16910 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911 hardcode_direct_F77=yes # is this really true???
16914 ## LD is ld it makes a PLAMLIB
16915 ## CC just makes a GrossModule.
16916 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16917 reload_cmds_F77='$CC -r -o $output$reload_objs'
16918 hardcode_direct_F77=no
16921 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16922 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16925 runpath_var='LD_RUN_PATH'
16926 hardcode_shlibpath_var_F77=no
16930 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16931 hardcode_shlibpath_var_F77=no
16932 export_dynamic_flag_spec_F77='-Bexport'
16936 if test -d /usr/nec; then
16937 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16938 hardcode_shlibpath_var_F77=no
16939 runpath_var=LD_RUN_PATH
16940 hardcode_runpath_var=yes
16945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16946 no_undefined_flag_F77='${wl}-z,text'
16947 archive_cmds_need_lc_F77=no
16948 hardcode_shlibpath_var_F77=no
16949 runpath_var='LD_RUN_PATH'
16951 if test "$GCC" = yes; then
16952 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16953 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16955 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16956 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16960 sysv5* | sco3.2v5* | sco5v6*)
16961 # Note: We can NOT use -z defs as we might desire, because we do not
16962 # link with -lc, and that would cause any symbols used from libc to
16963 # always be unresolved, which means just about no library would
16964 # ever link correctly. If we're not using GNU ld we use -z text
16965 # though, which does catch some bad symbols but isn't as heavy-handed
16967 no_undefined_flag_F77='${wl}-z,text'
16968 allow_undefined_flag_F77='${wl}-z,nodefs'
16969 archive_cmds_need_lc_F77=no
16970 hardcode_shlibpath_var_F77=no
16971 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16972 hardcode_libdir_separator_F77=':'
16973 link_all_deplibs_F77=yes
16974 export_dynamic_flag_spec_F77='${wl}-Bexport'
16975 runpath_var='LD_RUN_PATH'
16977 if test "$GCC" = yes; then
16978 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16982 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16987 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16988 hardcode_libdir_flag_spec_F77='-L$libdir'
16989 hardcode_shlibpath_var_F77=no
16998 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16999 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17000 test "$ld_shlibs_F77" = no && can_build_shared=no
17003 # Do we need to explicitly link libc?
17005 case "x$archive_cmds_need_lc_F77" in
17007 # Assume -lc should be added
17008 archive_cmds_need_lc_F77=yes
17010 if test "$enable_shared" = yes && test "$GCC" = yes; then
17011 case $archive_cmds_F77 in
17013 # FIXME: we may have to deal with multi-command sequences.
17016 # Test whether the compiler implicitly links with -lc since on some
17017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17018 # to ld, don't add -lc before -lgcc.
17019 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17022 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17025 (eval $ac_compile) 2>&5
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); } 2>conftest.err; then
17031 libobjs=conftest.$ac_objext
17033 wl=$lt_prog_compiler_wl_F77
17034 pic_flag=$lt_prog_compiler_pic_F77
17040 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17041 allow_undefined_flag_F77=
17042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17043 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }
17048 archive_cmds_need_lc_F77=no
17050 archive_cmds_need_lc_F77=yes
17052 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17054 cat conftest.err 1>&5
17057 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17058 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17065 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17067 library_names_spec=
17068 libname_spec='lib$name'
17072 postuninstall_cmds=
17076 shlibpath_overrides_runpath=unknown
17078 dynamic_linker="$host_os ld.so"
17079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17080 if test "$GCC" = yes; then
17081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17083 # if the path contains ";" then we assume it to be the separator
17084 # otherwise default to the standard path separator (i.e. ":") - it is
17085 # assumed that no part of a normal pathname contains ";" but that should
17086 # okay in the real world where ";" in dirpaths is itself problematic.
17087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17094 need_lib_prefix=unknown
17095 hardcode_into_libs=no
17097 # when you set need_version to no, make sure it does not cause -set_version
17098 # flags to be left without arguments
17099 need_version=unknown
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17105 shlibpath_var=LIBPATH
17107 # AIX 3 has no versioning support, so we append a major version to the name.
17108 soname_spec='${libname}${release}${shared_ext}$major'
17115 hardcode_into_libs=yes
17116 if test "$host_cpu" = ia64; then
17117 # AIX 5 supports IA64
17118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17119 shlibpath_var=LD_LIBRARY_PATH
17121 # With GCC up to 2.95.x, collect2 would create an import file
17122 # for dependence libraries. The import file would start with
17123 # the line `#! .'. This would cause the generated library to
17124 # depend on `.', always an invalid library. This was fixed in
17125 # development snapshots of GCC prior to 3.0.
17127 aix4 | aix4.[01] | aix4.[01].*)
17128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17133 can_build_shared=no
17137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17138 # soname into executable. Probably we can add versioning support to
17139 # collect2, so additional links can be useful in future.
17140 if test "$aix_use_runtimelinking" = yes; then
17141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17142 # instead of lib<name>.a to let people know that these are not
17143 # typical AIX shared libraries.
17144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 # We preserve .a as extension for shared libraries through AIX4.2
17147 # and later when we are not doing run time linking.
17148 library_names_spec='${libname}${release}.a $libname.a'
17149 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LIBPATH
17156 library_names_spec='$libname.ixlibrary $libname.a'
17157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17158 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17162 library_names_spec='${libname}${shared_ext}'
17163 dynamic_linker="$host_os ld.so"
17164 shlibpath_var=LIBRARY_PATH
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17173 shlibpath_var=LD_LIBRARY_PATH
17174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17176 # the default ld.so.conf also contains /usr/contrib/lib and
17177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17178 # libtool to hard-code these into programs
17181 cygwin* | mingw* | pw32*)
17182 version_type=windows
17187 case $GCC,$host_os in
17188 yes,cygwin* | yes,mingw* | yes,pw32*)
17189 library_names_spec='$libname.dll.a'
17190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17191 postinstall_cmds='base_file=`basename \${file}`~
17192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17193 dldir=$destdir/`dirname \$dlpath`~
17194 test -d \$dldir || mkdir -p \$dldir~
17195 $install_prog $dir/$dlname \$dldir/$dlname~
17196 chmod a+x \$dldir/$dlname'
17197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17198 dlpath=$dir/\$dldll~
17200 shlibpath_overrides_runpath=yes
17204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17209 # MinGW DLLs use traditional 'lib' prefix
17210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17213 # It is most probably a Windows format PATH printed by
17214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17215 # path with ; separators, and with drive letters. We can handle the
17216 # drive letters (cygwin fileutils understands them), so leave them,
17217 # especially as we might pass files found there to a mingw objdump,
17218 # which wouldn't understand a cygwinified path. Ahh.
17219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17225 # pw32 DLLs use 'pw' prefix rather than 'lib'
17226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17235 dynamic_linker='Win32 ld.exe'
17236 # FIXME: first we should search . and the directory the executable is in
17240 darwin* | rhapsody*)
17241 dynamic_linker="$host_os dyld"
17242 version_type=darwin
17245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17246 soname_spec='${libname}${release}${major}$shared_ext'
17247 shlibpath_overrides_runpath=yes
17248 shlibpath_var=DYLD_LIBRARY_PATH
17249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17250 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17251 if test "$GCC" = yes; then
17252 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17254 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17264 soname_spec='${libname}${release}${shared_ext}$major'
17265 shlibpath_var=LD_LIBRARY_PATH
17272 freebsd* | dragonfly*)
17273 # DragonFly does not have aout. When/if they implement a new
17274 # versioning mechanism, adjust this.
17275 if test -x /usr/bin/objformat; then
17276 objformat=`/usr/bin/objformat`
17279 freebsd[123]*) objformat=aout ;;
17280 *) objformat=elf ;;
17283 version_type=freebsd-$objformat
17284 case $version_type in
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17295 shlibpath_var=LD_LIBRARY_PATH
17298 shlibpath_overrides_runpath=yes
17300 freebsd3.[01]* | freebsdelf3.[01]*)
17301 shlibpath_overrides_runpath=yes
17302 hardcode_into_libs=yes
17304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17306 shlibpath_overrides_runpath=no
17307 hardcode_into_libs=yes
17309 freebsd*) # from 4.6 on
17310 shlibpath_overrides_runpath=yes
17311 hardcode_into_libs=yes
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 shlibpath_var=LD_LIBRARY_PATH
17323 hardcode_into_libs=yes
17326 hpux9* | hpux10* | hpux11*)
17327 # Give a soname corresponding to the major version so that dld.sl refuses to
17328 # link against other versions.
17335 hardcode_into_libs=yes
17336 dynamic_linker="$host_os dld.so"
17337 shlibpath_var=LD_LIBRARY_PATH
17338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17340 soname_spec='${libname}${release}${shared_ext}$major'
17341 if test "X$HPUX_IA64_MODE" = X32; then
17342 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17344 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17350 hardcode_into_libs=yes
17351 dynamic_linker="$host_os dld.sl"
17352 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17361 dynamic_linker="$host_os dld.sl"
17362 shlibpath_var=SHLIB_PATH
17363 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 soname_spec='${libname}${release}${shared_ext}$major'
17368 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17369 postinstall_cmds='chmod 555 $lib'
17376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377 soname_spec='${libname}${release}${shared_ext}$major'
17378 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=no
17381 hardcode_into_libs=yes
17384 irix5* | irix6* | nonstopux*)
17386 nonstopux*) version_type=nonstopux ;;
17388 if test "$lt_cv_prog_gnu_ld" = yes; then
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17399 irix5* | nonstopux*)
17400 libsuff= shlibsuff=
17403 case $LD in # libtool.m4 will add one of these switches to LD
17404 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17405 libsuff= shlibsuff= libmagic=32-bit;;
17406 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17407 libsuff=32 shlibsuff=N32 libmagic=N32;;
17408 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17409 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17410 *) libsuff= shlibsuff= libmagic=never-match;;
17414 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17415 shlibpath_overrides_runpath=no
17416 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17417 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17418 hardcode_into_libs=yes
17421 # No shared lib support for Linux oldld, aout, or coff.
17422 linux*oldld* | linux*aout* | linux*coff*)
17426 # This must be Linux ELF.
17427 linux* | k*bsd*-gnu)
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 soname_spec='${libname}${release}${shared_ext}$major'
17433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17434 shlibpath_var=LD_LIBRARY_PATH
17435 shlibpath_overrides_runpath=no
17436 # This implies no fast_install, which is unacceptable.
17437 # Some rework will be needed to allow for fast_install
17438 # before this can be enabled.
17439 hardcode_into_libs=yes
17441 # Append ld.so.conf contents to the search path
17442 if test -f /etc/ld.so.conf; then
17443 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17444 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17447 # We used to test for /lib/ld.so.1 and disable shared libraries on
17448 # powerpc, because MkLinux only supported shared libraries with the
17449 # GNU dynamic linker. Since this was broken with cross compilers,
17450 # most powerpc-linux boxes support dynamic linking these days and
17451 # people can always --disable-shared, the test was removed, and we
17452 # assume the GNU/Linux dynamic linker is in use.
17453 dynamic_linker='GNU/Linux ld.so'
17460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17461 soname_spec='${libname}${release}${shared_ext}$major'
17462 shlibpath_var=LD_LIBRARY_PATH
17463 shlibpath_overrides_runpath=no
17464 hardcode_into_libs=yes
17465 dynamic_linker='NetBSD ld.elf_so'
17472 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475 dynamic_linker='NetBSD (a.out) ld.so'
17477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17478 soname_spec='${libname}${release}${shared_ext}$major'
17479 dynamic_linker='NetBSD ld.elf_so'
17481 shlibpath_var=LD_LIBRARY_PATH
17482 shlibpath_overrides_runpath=yes
17483 hardcode_into_libs=yes
17488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17489 shlibpath_var=LD_LIBRARY_PATH
17490 shlibpath_overrides_runpath=yes
17497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17498 soname_spec='${libname}${release}${shared_ext}$major'
17499 shlibpath_var=LD_LIBRARY_PATH
17500 shlibpath_overrides_runpath=yes
17505 sys_lib_dlsearch_path_spec="/usr/lib"
17507 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17509 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17510 *) need_version=no ;;
17512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17514 shlibpath_var=LD_LIBRARY_PATH
17515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17517 openbsd2.[89] | openbsd2.[89].*)
17518 shlibpath_overrides_runpath=no
17521 shlibpath_overrides_runpath=yes
17525 shlibpath_overrides_runpath=yes
17530 libname_spec='$name'
17533 library_names_spec='$libname${shared_ext} $libname.a'
17534 dynamic_linker='OS/2 ld.exe'
17535 shlibpath_var=LIBPATH
17538 osf3* | osf4* | osf5*)
17542 soname_spec='${libname}${release}${shared_ext}$major'
17543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17544 shlibpath_var=LD_LIBRARY_PATH
17545 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17546 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554 soname_spec='${libname}${release}${shared_ext}$major'
17555 shlibpath_var=LD_LIBRARY_PATH
17556 shlibpath_overrides_runpath=yes
17557 hardcode_into_libs=yes
17558 # ldd complains unless libraries are executable
17559 postinstall_cmds='chmod +x $lib'
17564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17565 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17566 shlibpath_var=LD_LIBRARY_PATH
17567 shlibpath_overrides_runpath=yes
17568 if test "$with_gnu_ld" = yes; then
17576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17577 soname_spec='${libname}${release}${shared_ext}$major'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 case $host_vendor in
17581 shlibpath_overrides_runpath=no
17583 export_dynamic_flag_spec='${wl}-Blargedynsym'
17584 runpath_var=LD_RUN_PATH
17592 shlibpath_overrides_runpath=no
17593 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17599 if test -d /usr/nec ;then
17601 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17602 soname_spec='$libname${shared_ext}.$major'
17603 shlibpath_var=LD_LIBRARY_PATH
17607 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17608 version_type=freebsd-elf
17611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17612 soname_spec='${libname}${release}${shared_ext}$major'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 hardcode_into_libs=yes
17615 if test "$with_gnu_ld" = yes; then
17616 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17617 shlibpath_overrides_runpath=no
17619 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17620 shlibpath_overrides_runpath=yes
17623 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17627 sys_lib_dlsearch_path_spec='/usr/lib'
17632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17633 soname_spec='${libname}${release}${shared_ext}$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17641 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17642 echo "${ECHO_T}$dynamic_linker" >&6; }
17643 test "$dynamic_linker" = no && can_build_shared=no
17645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17646 if test "$GCC" = yes; then
17647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17650 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17651 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17652 hardcode_action_F77=
17653 if test -n "$hardcode_libdir_flag_spec_F77" || \
17654 test -n "$runpath_var_F77" || \
17655 test "X$hardcode_automatic_F77" = "Xyes" ; then
17657 # We can hardcode non-existant directories.
17658 if test "$hardcode_direct_F77" != no &&
17659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17660 # have to relink, otherwise we might link with an installed library
17661 # when we should be linking with a yet-to-be-installed one
17662 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17663 test "$hardcode_minus_L_F77" != no; then
17664 # Linking always hardcodes the temporary library directory.
17665 hardcode_action_F77=relink
17667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17668 hardcode_action_F77=immediate
17671 # We cannot hardcode anything, or else we can only hardcode existing
17673 hardcode_action_F77=unsupported
17675 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17676 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17678 if test "$hardcode_action_F77" = relink; then
17679 # Fast installation is not supported
17680 enable_fast_install=no
17681 elif test "$shlibpath_overrides_runpath" = yes ||
17682 test "$enable_shared" = no; then
17683 # Fast installation is not necessary
17684 enable_fast_install=needless
17688 # The else clause should only fire when bootstrapping the
17689 # libtool distribution, otherwise you forgot to ship ltmain.sh
17690 # with your package, and you will get complaints that there are
17691 # no rules to generate ltmain.sh.
17692 if test -f "$ltmain"; then
17693 # See if we are running on zsh, and set the options which allow our commands through
17694 # without removal of \ escapes.
17695 if test -n "${ZSH_VERSION+set}" ; then
17696 setopt NO_GLOB_SUBST
17698 # Now quote all the things that may contain metacharacters while being
17699 # careful not to overquote the AC_SUBSTed values. We take copies of the
17700 # variables and quote the copies for generation of the libtool script.
17701 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17703 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17704 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17705 deplibs_check_method reload_flag reload_cmds need_locks \
17706 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17707 lt_cv_sys_global_symbol_to_c_name_address \
17708 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17709 old_postinstall_cmds old_postuninstall_cmds \
17713 lt_prog_compiler_wl_F77 \
17714 lt_prog_compiler_pic_F77 \
17715 lt_prog_compiler_static_F77 \
17716 lt_prog_compiler_no_builtin_flag_F77 \
17717 export_dynamic_flag_spec_F77 \
17718 thread_safe_flag_spec_F77 \
17719 whole_archive_flag_spec_F77 \
17720 enable_shared_with_static_runtimes_F77 \
17721 old_archive_cmds_F77 \
17722 old_archive_from_new_cmds_F77 \
17723 predep_objects_F77 \
17724 postdep_objects_F77 \
17727 compiler_lib_search_path_F77 \
17729 archive_expsym_cmds_F77 \
17730 postinstall_cmds_F77 \
17731 postuninstall_cmds_F77 \
17732 old_archive_from_expsyms_cmds_F77 \
17733 allow_undefined_flag_F77 \
17734 no_undefined_flag_F77 \
17735 export_symbols_cmds_F77 \
17736 hardcode_libdir_flag_spec_F77 \
17737 hardcode_libdir_flag_spec_ld_F77 \
17738 hardcode_libdir_separator_F77 \
17739 hardcode_automatic_F77 \
17741 module_expsym_cmds_F77 \
17742 lt_cv_prog_compiler_c_o_F77 \
17743 exclude_expsyms_F77 \
17744 include_expsyms_F77; do
17747 old_archive_cmds_F77 | \
17748 old_archive_from_new_cmds_F77 | \
17749 archive_cmds_F77 | \
17750 archive_expsym_cmds_F77 | \
17751 module_cmds_F77 | \
17752 module_expsym_cmds_F77 | \
17753 old_archive_from_expsyms_cmds_F77 | \
17754 export_symbols_cmds_F77 | \
17755 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17756 postinstall_cmds | postuninstall_cmds | \
17757 old_postinstall_cmds | old_postuninstall_cmds | \
17758 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17759 # Double-quote double-evaled strings.
17760 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17769 *'\$0 --fallback-echo"')
17770 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17776 cat <<__EOF__ >> "$cfgfile"
17777 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17779 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17781 # Shell to use when invoking shell scripts.
17784 # Whether or not to build shared libraries.
17785 build_libtool_libs=$enable_shared
17787 # Whether or not to build static libraries.
17788 build_old_libs=$enable_static
17790 # Whether or not to add -lc for building shared libraries.
17791 build_libtool_need_lc=$archive_cmds_need_lc_F77
17793 # Whether or not to disallow shared libs when runtime libs are static
17794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17796 # Whether or not to optimize for fast installation.
17797 fast_install=$enable_fast_install
17800 host_alias=$host_alias
17804 # The build system.
17805 build_alias=$build_alias
17809 # An echo program that does not interpret backslashes.
17814 AR_FLAGS=$lt_AR_FLAGS
17819 # LTCC compiler flags.
17820 LTCFLAGS=$lt_LTCFLAGS
17822 # A language-specific compiler.
17823 CC=$lt_compiler_F77
17825 # Is the compiler the GNU C compiler?
17831 # The linker used to build libraries.
17834 # Whether we need hard or soft links.
17837 # A BSD-compatible nm program.
17840 # A symbol stripping program
17843 # Used to examine libraries when file_magic_cmd begins "file"
17844 MAGIC_CMD=$MAGIC_CMD
17846 # Used on cygwin: DLL creation program.
17849 # Used on cygwin: object dumper.
17852 # Used on cygwin: assembler.
17855 # The name of the directory that contains temporary libtool files.
17858 # How to create reloadable object files.
17859 reload_flag=$lt_reload_flag
17860 reload_cmds=$lt_reload_cmds
17862 # How to pass a linker flag through the compiler.
17863 wl=$lt_lt_prog_compiler_wl_F77
17865 # Object file suffix (normally "o").
17866 objext="$ac_objext"
17868 # Old archive suffix (normally "a").
17871 # Shared library suffix (normally ".so").
17872 shrext_cmds='$shrext_cmds'
17874 # Executable file suffix (normally "").
17877 # Additional compiler flags for building library objects.
17878 pic_flag=$lt_lt_prog_compiler_pic_F77
17881 # What is the maximum length of a command?
17882 max_cmd_len=$lt_cv_sys_max_cmd_len
17884 # Does compiler simultaneously support -c and -o options?
17885 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17887 # Must we lock files when doing compilation?
17888 need_locks=$lt_need_locks
17890 # Do we need the lib prefix for modules?
17891 need_lib_prefix=$need_lib_prefix
17893 # Do we need a version for libraries?
17894 need_version=$need_version
17896 # Whether dlopen is supported.
17897 dlopen_support=$enable_dlopen
17899 # Whether dlopen of programs is supported.
17900 dlopen_self=$enable_dlopen_self
17902 # Whether dlopen of statically linked programs is supported.
17903 dlopen_self_static=$enable_dlopen_self_static
17905 # Compiler flag to prevent dynamic linking.
17906 link_static_flag=$lt_lt_prog_compiler_static_F77
17908 # Compiler flag to turn off builtin functions.
17909 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17911 # Compiler flag to allow reflexive dlopens.
17912 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17914 # Compiler flag to generate shared objects directly from archives.
17915 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17917 # Compiler flag to generate thread-safe objects.
17918 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17920 # Library versioning type.
17921 version_type=$version_type
17923 # Format of library name prefix.
17924 libname_spec=$lt_libname_spec
17926 # List of archive names. First name is the real one, the rest are links.
17927 # The last name is the one that the linker finds with -lNAME.
17928 library_names_spec=$lt_library_names_spec
17930 # The coded name of the library, if different from the real name.
17931 soname_spec=$lt_soname_spec
17933 # Commands used to build and install an old-style archive.
17935 old_archive_cmds=$lt_old_archive_cmds_F77
17936 old_postinstall_cmds=$lt_old_postinstall_cmds
17937 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17939 # Create an old-style archive from a shared archive.
17940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17942 # Create a temporary old-style archive to link instead of a shared archive.
17943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17945 # Commands used to build and install a shared archive.
17946 archive_cmds=$lt_archive_cmds_F77
17947 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17948 postinstall_cmds=$lt_postinstall_cmds
17949 postuninstall_cmds=$lt_postuninstall_cmds
17951 # Commands used to build a loadable module (assumed same as above if empty)
17952 module_cmds=$lt_module_cmds_F77
17953 module_expsym_cmds=$lt_module_expsym_cmds_F77
17955 # Commands to strip libraries.
17956 old_striplib=$lt_old_striplib
17957 striplib=$lt_striplib
17959 # Dependencies to place before the objects being linked to create a
17961 predep_objects=$lt_predep_objects_F77
17963 # Dependencies to place after the objects being linked to create a
17965 postdep_objects=$lt_postdep_objects_F77
17967 # Dependencies to place before the objects being linked to create a
17969 predeps=$lt_predeps_F77
17971 # Dependencies to place after the objects being linked to create a
17973 postdeps=$lt_postdeps_F77
17975 # The library search path used internally by the compiler when linking
17976 # a shared library.
17977 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17979 # Method to check whether dependent libraries are shared objects.
17980 deplibs_check_method=$lt_deplibs_check_method
17982 # Command to use when deplibs_check_method == file_magic.
17983 file_magic_cmd=$lt_file_magic_cmd
17985 # Flag that allows shared libraries with undefined symbols to be built.
17986 allow_undefined_flag=$lt_allow_undefined_flag_F77
17988 # Flag that forces no undefined symbols.
17989 no_undefined_flag=$lt_no_undefined_flag_F77
17991 # Commands used to finish a libtool library installation in a directory.
17992 finish_cmds=$lt_finish_cmds
17994 # Same as above, but a single script fragment to be evaled but not shown.
17995 finish_eval=$lt_finish_eval
17997 # Take the output of nm and produce a listing of raw symbols and C names.
17998 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18000 # Transform the output of nm in a proper C declaration
18001 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18003 # Transform the output of nm in a C name address pair
18004 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18006 # This is the shared library runtime path variable.
18007 runpath_var=$runpath_var
18009 # This is the shared library path variable.
18010 shlibpath_var=$shlibpath_var
18012 # Is shlibpath searched before the hard-coded library search path?
18013 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18015 # How to hardcode a shared library path into an executable.
18016 hardcode_action=$hardcode_action_F77
18018 # Whether we should hardcode library paths into libraries.
18019 hardcode_into_libs=$hardcode_into_libs
18021 # Flag to hardcode \$libdir into a binary during linking.
18022 # This must work even if \$libdir does not exist.
18023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18025 # If ld is used when linking, flag to hardcode \$libdir into
18026 # a binary during linking. This must work even if \$libdir does
18028 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18030 # Whether we need a single -rpath flag with a separated argument.
18031 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18033 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18034 # resulting binary.
18035 hardcode_direct=$hardcode_direct_F77
18037 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18038 # resulting binary.
18039 hardcode_minus_L=$hardcode_minus_L_F77
18041 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18042 # the resulting binary.
18043 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18045 # Set to yes if building a shared library automatically hardcodes DIR into the library
18046 # and all subsequent libraries and executables linked against it.
18047 hardcode_automatic=$hardcode_automatic_F77
18049 # Variables whose values should be saved in libtool wrapper scripts and
18050 # restored at relink time.
18051 variables_saved_for_relink="$variables_saved_for_relink"
18053 # Whether libtool must link a program against all its dependency libraries.
18054 link_all_deplibs=$link_all_deplibs_F77
18056 # Compile-time system search path for libraries
18057 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18059 # Run-time system search path for libraries
18060 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18062 # Fix the shell variable \$srcfile for the compiler.
18063 fix_srcfile_path="$fix_srcfile_path_F77"
18065 # Set to yes if exported symbols are required.
18066 always_export_symbols=$always_export_symbols_F77
18068 # The commands to list exported symbols.
18069 export_symbols_cmds=$lt_export_symbols_cmds_F77
18071 # The commands to extract the exported symbol list from a shared archive.
18072 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18074 # Symbols that should not be listed in the preloaded symbols.
18075 exclude_expsyms=$lt_exclude_expsyms_F77
18077 # Symbols that must always be exported.
18078 include_expsyms=$lt_include_expsyms_F77
18080 # ### END LIBTOOL TAG CONFIG: $tagname
18086 # If there is no Makefile yet, we rely on a make rule to execute
18087 # `config.status --recheck' to rerun these tests and create the
18088 # libtool script then.
18089 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18090 if test -f "$ltmain_in"; then
18091 test -f Makefile && make "$ltmain"
18097 ac_cpp='$CPP $CPPFLAGS'
18098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18110 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18113 # Source file extension for Java test sources.
18116 # Object file extension for compiled Java test sources.
18120 # Code to be used in simple compile tests
18121 lt_simple_compile_test_code="class foo {}\n"
18123 # Code to be used in simple link tests
18124 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18126 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18128 # If no C compiler was specified, use CC.
18131 # If no C compiler flags were specified, use CFLAGS.
18132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18134 # Allow CC to be a program name with arguments.
18138 # save warnings/boilerplate of simple test code
18139 ac_outfile=conftest.$ac_objext
18140 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18142 _lt_compiler_boilerplate=`cat conftest.err`
18145 ac_outfile=conftest.$ac_objext
18146 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18148 _lt_linker_boilerplate=`cat conftest.err`
18152 # Allow CC to be a program name with arguments.
18157 for cc_temp in $compiler""; do
18159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18165 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18168 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18169 archive_cmds_need_lc_GCJ=no
18171 old_archive_cmds_GCJ=$old_archive_cmds
18174 lt_prog_compiler_no_builtin_flag_GCJ=
18176 if test "$GCC" = yes; then
18177 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18183 echo $ECHO_N "(cached) $ECHO_C" >&6
18185 lt_cv_prog_compiler_rtti_exceptions=no
18186 ac_outfile=conftest.$ac_objext
18187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18188 lt_compiler_flag="-fno-rtti -fno-exceptions"
18189 # Insert the option either (1) after the last *FLAGS variable, or
18190 # (2) before a word containing "conftest.", or (3) at the end.
18191 # Note that $ac_compile itself does not contain backslashes and begins
18192 # with a dollar sign (not a hyphen), so the echo should work correctly.
18193 # The option is referenced via a variable to avoid confusing sed.
18194 lt_compile=`echo "$ac_compile" | $SED \
18195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18197 -e 's:$: $lt_compiler_flag:'`
18198 (eval echo "\"\$as_me:18198: $lt_compile\"" >&5)
18199 (eval "$lt_compile" 2>conftest.err)
18201 cat conftest.err >&5
18202 echo "$as_me:18202: \$? = $ac_status" >&5
18203 if (exit $ac_status) && test -s "$ac_outfile"; then
18204 # The compiler can only warn and ignore the option if not recognized
18205 # So say no if there are warnings other than the usual output.
18206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18209 lt_cv_prog_compiler_rtti_exceptions=yes
18215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18219 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18226 lt_prog_compiler_wl_GCJ=
18227 lt_prog_compiler_pic_GCJ=
18228 lt_prog_compiler_static_GCJ=
18230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18233 if test "$GCC" = yes; then
18234 lt_prog_compiler_wl_GCJ='-Wl,'
18235 lt_prog_compiler_static_GCJ='-static'
18239 # All AIX code is PIC.
18240 if test "$host_cpu" = ia64; then
18241 # AIX 5 now supports IA64 processor
18242 lt_prog_compiler_static_GCJ='-Bstatic'
18247 # FIXME: we need at least 68020 code to build shared libraries, but
18248 # adding the `-m68020' flag to GCC prevents building anything better,
18250 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18254 # PIC is the default for these OSes.
18257 mingw* | pw32* | os2*)
18258 # This hack is so that the source file can tell whether it is being
18259 # built for inclusion in a dll (and should export symbols for example).
18260 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18263 darwin* | rhapsody*)
18264 # PIC is the default on this platform
18265 # Common symbols not allowed in MH_DYLIB files
18266 lt_prog_compiler_pic_GCJ='-fno-common'
18270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18271 # Instead, we relocate shared libraries at runtime.
18275 # Just because we use GCC doesn't mean we suddenly get shared libraries
18276 # on systems that don't support them.
18277 lt_prog_compiler_can_build_shared_GCJ=no
18282 if test -d /usr/nec; then
18283 lt_prog_compiler_pic_GCJ=-Kconform_pic
18288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18289 # not for PA HP-UX.
18295 lt_prog_compiler_pic_GCJ='-fPIC'
18301 lt_prog_compiler_pic_GCJ='-fPIC'
18305 # PORTME Check for flag to pass linker flags through the system compiler.
18308 lt_prog_compiler_wl_GCJ='-Wl,'
18309 if test "$host_cpu" = ia64; then
18310 # AIX 5 now supports IA64 processor
18311 lt_prog_compiler_static_GCJ='-Bstatic'
18313 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18317 # PIC is the default on this platform
18318 # Common symbols not allowed in MH_DYLIB files
18319 case $cc_basename in
18321 lt_prog_compiler_pic_GCJ='-qnocommon'
18322 lt_prog_compiler_wl_GCJ='-Wl,'
18327 mingw* | pw32* | os2*)
18328 # This hack is so that the source file can tell whether it is being
18329 # built for inclusion in a dll (and should export symbols for example).
18330 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18333 hpux9* | hpux10* | hpux11*)
18334 lt_prog_compiler_wl_GCJ='-Wl,'
18335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18336 # not for PA HP-UX.
18342 lt_prog_compiler_pic_GCJ='+Z'
18345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18346 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18349 irix5* | irix6* | nonstopux*)
18350 lt_prog_compiler_wl_GCJ='-Wl,'
18351 # PIC (with -KPIC) is the default.
18352 lt_prog_compiler_static_GCJ='-non_shared'
18356 lt_prog_compiler_pic_GCJ='-KPIC'
18357 lt_prog_compiler_static_GCJ='-Bstatic'
18360 linux* | k*bsd*-gnu)
18361 case $cc_basename in
18363 lt_prog_compiler_wl_GCJ='-Wl,'
18364 lt_prog_compiler_pic_GCJ='-KPIC'
18365 lt_prog_compiler_static_GCJ='-static'
18367 pgcc* | pgf77* | pgf90* | pgf95*)
18368 # Portland Group compilers (*not* the Pentium gcc compiler,
18369 # which looks to be a dead project)
18370 lt_prog_compiler_wl_GCJ='-Wl,'
18371 lt_prog_compiler_pic_GCJ='-fpic'
18372 lt_prog_compiler_static_GCJ='-Bstatic'
18375 lt_prog_compiler_wl_GCJ='-Wl,'
18376 # All Alpha code is PIC.
18377 lt_prog_compiler_static_GCJ='-non_shared'
18382 osf3* | osf4* | osf5*)
18383 lt_prog_compiler_wl_GCJ='-Wl,'
18384 # All OSF/1 code is PIC.
18385 lt_prog_compiler_static_GCJ='-non_shared'
18389 lt_prog_compiler_pic_GCJ='-KPIC'
18390 lt_prog_compiler_static_GCJ='-Bstatic'
18391 case $cc_basename in
18392 f77* | f90* | f95*)
18393 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18395 lt_prog_compiler_wl_GCJ='-Wl,';;
18400 lt_prog_compiler_wl_GCJ='-Qoption ld '
18401 lt_prog_compiler_pic_GCJ='-PIC'
18402 lt_prog_compiler_static_GCJ='-Bstatic'
18405 sysv4 | sysv4.2uw2* | sysv4.3*)
18406 lt_prog_compiler_wl_GCJ='-Wl,'
18407 lt_prog_compiler_pic_GCJ='-KPIC'
18408 lt_prog_compiler_static_GCJ='-Bstatic'
18412 if test -d /usr/nec ;then
18413 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18414 lt_prog_compiler_static_GCJ='-Bstatic'
18418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18419 lt_prog_compiler_wl_GCJ='-Wl,'
18420 lt_prog_compiler_pic_GCJ='-KPIC'
18421 lt_prog_compiler_static_GCJ='-Bstatic'
18425 lt_prog_compiler_wl_GCJ='-Wl,'
18426 lt_prog_compiler_can_build_shared_GCJ=no
18430 lt_prog_compiler_pic_GCJ='-pic'
18431 lt_prog_compiler_static_GCJ='-Bstatic'
18435 lt_prog_compiler_can_build_shared_GCJ=no
18440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18441 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
18444 # Check to make sure the PIC flag actually works.
18446 if test -n "$lt_prog_compiler_pic_GCJ"; then
18448 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
18450 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18451 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 lt_prog_compiler_pic_works_GCJ=no
18454 ac_outfile=conftest.$ac_objext
18455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18456 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18457 # Insert the option either (1) after the last *FLAGS variable, or
18458 # (2) before a word containing "conftest.", or (3) at the end.
18459 # Note that $ac_compile itself does not contain backslashes and begins
18460 # with a dollar sign (not a hyphen), so the echo should work correctly.
18461 # The option is referenced via a variable to avoid confusing sed.
18462 lt_compile=`echo "$ac_compile" | $SED \
18463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18465 -e 's:$: $lt_compiler_flag:'`
18466 (eval echo "\"\$as_me:18466: $lt_compile\"" >&5)
18467 (eval "$lt_compile" 2>conftest.err)
18469 cat conftest.err >&5
18470 echo "$as_me:18470: \$? = $ac_status" >&5
18471 if (exit $ac_status) && test -s "$ac_outfile"; then
18472 # The compiler can only warn and ignore the option if not recognized
18473 # So say no if there are warnings other than the usual output.
18474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18477 lt_prog_compiler_pic_works_GCJ=yes
18483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18484 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
18486 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18487 case $lt_prog_compiler_pic_GCJ in
18489 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18492 lt_prog_compiler_pic_GCJ=
18493 lt_prog_compiler_can_build_shared_GCJ=no
18498 # For platforms which do not support PIC, -DPIC is meaningless:
18500 lt_prog_compiler_pic_GCJ=
18503 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18508 # Check to make sure the static flag actually works.
18510 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18511 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18513 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18516 lt_prog_compiler_static_works_GCJ=no
18517 save_LDFLAGS="$LDFLAGS"
18518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18519 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18521 # The linker can only warn and ignore the option if not recognized
18522 # So say no if there are warnings
18523 if test -s conftest.err; then
18524 # Append any errors to the config.log.
18525 cat conftest.err 1>&5
18526 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18528 if diff conftest.exp conftest.er2 >/dev/null; then
18529 lt_prog_compiler_static_works_GCJ=yes
18532 lt_prog_compiler_static_works_GCJ=yes
18536 LDFLAGS="$save_LDFLAGS"
18539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18540 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
18542 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18545 lt_prog_compiler_static_GCJ=
18549 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18551 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18552 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 lt_cv_prog_compiler_c_o_GCJ=no
18555 $rm -r conftest 2>/dev/null
18559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18561 lt_compiler_flag="-o out/conftest2.$ac_objext"
18562 # Insert the option either (1) after the last *FLAGS variable, or
18563 # (2) before a word containing "conftest.", or (3) at the end.
18564 # Note that $ac_compile itself does not contain backslashes and begins
18565 # with a dollar sign (not a hyphen), so the echo should work correctly.
18566 lt_compile=`echo "$ac_compile" | $SED \
18567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18569 -e 's:$: $lt_compiler_flag:'`
18570 (eval echo "\"\$as_me:18570: $lt_compile\"" >&5)
18571 (eval "$lt_compile" 2>out/conftest.err)
18573 cat out/conftest.err >&5
18574 echo "$as_me:18574: \$? = $ac_status" >&5
18575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18577 # The compiler can only warn and ignore the option if not recognized
18578 # So say no if there are warnings
18579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18582 lt_cv_prog_compiler_c_o_GCJ=yes
18587 # SGI C++ compiler will create directory out/ii_files/ for
18588 # template instantiation
18589 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18590 $rm out/* && rmdir out
18596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18600 hard_links="nottested"
18601 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18602 # do not overwrite the value of need_locks provided by the user
18603 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18609 ln conftest.a conftest.b 2>&5 || hard_links=no
18610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18611 { echo "$as_me:$LINENO: result: $hard_links" >&5
18612 echo "${ECHO_T}$hard_links" >&6; }
18613 if test "$hard_links" = no; then
18614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18622 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18626 allow_undefined_flag_GCJ=
18627 enable_shared_with_static_runtimes_GCJ=no
18629 archive_expsym_cmds_GCJ=
18630 old_archive_From_new_cmds_GCJ=
18631 old_archive_from_expsyms_cmds_GCJ=
18632 export_dynamic_flag_spec_GCJ=
18633 whole_archive_flag_spec_GCJ=
18634 thread_safe_flag_spec_GCJ=
18635 hardcode_libdir_flag_spec_GCJ=
18636 hardcode_libdir_flag_spec_ld_GCJ=
18637 hardcode_libdir_separator_GCJ=
18638 hardcode_direct_GCJ=no
18639 hardcode_minus_L_GCJ=no
18640 hardcode_shlibpath_var_GCJ=unsupported
18641 link_all_deplibs_GCJ=unknown
18642 hardcode_automatic_GCJ=no
18644 module_expsym_cmds_GCJ=
18645 always_export_symbols_GCJ=no
18646 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18647 # include_expsyms should be a list of space-separated symbols to be *always*
18648 # included in the symbol list
18649 include_expsyms_GCJ=
18650 # exclude_expsyms can be an extended regexp of symbols to exclude
18651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18653 # as well as any symbol that contains `d'.
18654 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18656 # platforms (ab)use it in PIC code, but their linkers get confused if
18657 # the symbol is explicitly referenced. Since portable code cannot
18658 # rely on this symbol name, it's probably fine to never include it in
18659 # preloaded symbol tables.
18660 extract_expsyms_cmds=
18661 # Just being paranoid about ensuring that cc_basename is set.
18662 for cc_temp in $compiler""; do
18664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18673 cygwin* | mingw* | pw32*)
18674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18675 # When not using gcc, we currently assume that we are using
18676 # Microsoft Visual C++.
18677 if test "$GCC" != yes; then
18682 # we just hope/assume this is gcc and not c89 (= MSVC++)
18691 if test "$with_gnu_ld" = yes; then
18692 # If archive_cmds runs LD, not CC, wlarc should be empty
18695 # Set some defaults for GNU ld with shared library support. These
18696 # are reset later if shared libraries are not supported. Putting them
18697 # here allows them to be overridden if necessary.
18698 runpath_var=LD_RUN_PATH
18699 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18700 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18701 # ancient GNU ld didn't support --whole-archive et. al.
18702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18703 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18705 whole_archive_flag_spec_GCJ=
18707 supports_anon_versioning=no
18708 case `$LD -v 2>/dev/null` in
18709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18712 *\ 2.11.*) ;; # other 2.11 versions
18713 *) supports_anon_versioning=yes ;;
18716 # See if GNU ld supports shared libraries.
18718 aix3* | aix4* | aix5*)
18719 # On AIX/PPC, the GNU linker is very broken
18720 if test "$host_cpu" != ia64; then
18724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18725 *** to be unable to reliably create shared libraries on AIX.
18726 *** Therefore, libtool is disabling shared libraries support. If you
18727 *** really care for shared libraries, you may want to modify your PATH
18728 *** so that a non-GNU linker is found, and then restart.
18735 archive_cmds_GCJ='$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)'
18736 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18737 hardcode_minus_L_GCJ=yes
18739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18740 # that the semantics of dynamic libraries on AmigaOS, at least up
18741 # to version 4, is to share data among multiple programs linked
18742 # with the same dynamic library. Since this doesn't match the
18743 # behavior of shared libraries on other platforms, we can't use
18749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18750 allow_undefined_flag_GCJ=unsupported
18751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18752 # support --undefined. This deserves some investigation. FIXME
18753 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18759 cygwin* | mingw* | pw32*)
18760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18761 # as there is no search path for DLLs.
18762 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18763 allow_undefined_flag_GCJ=unsupported
18764 always_export_symbols_GCJ=no
18765 enable_shared_with_static_runtimes_GCJ=yes
18766 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18769 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18770 # If the export-symbols file already is a .def file (1st line
18771 # is EXPORTS), use it as is; otherwise, prepend...
18772 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18773 cp $export_symbols $output_objdir/$soname.def;
18775 echo EXPORTS > $output_objdir/$soname.def;
18776 cat $export_symbols >> $output_objdir/$soname.def;
18778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18785 hardcode_direct_GCJ=no
18786 hardcode_shlibpath_var_GCJ=no
18787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18788 export_dynamic_flag_spec_GCJ='${wl}-E'
18789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18790 # Instead, shared libraries are loaded at an image base (0x10000000 by
18791 # default) and relocated if they conflict, which is a slow very memory
18792 # consuming and fragmenting process. To avoid this, we pick a random,
18793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18795 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18796 archive_expsym_cmds_GCJ='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'
18799 linux* | k*bsd*-gnu)
18800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18802 case $cc_basename,$host_cpu in
18803 pgcc*) # Portland Group C compiler
18804 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18805 tmp_addflag=' $pic_flag'
18807 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18808 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
18809 tmp_addflag=' $pic_flag -Mnomain' ;;
18810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18811 tmp_addflag=' -i_dynamic' ;;
18812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18813 tmp_addflag=' -i_dynamic -nofor_main' ;;
18814 ifc* | ifort*) # Intel Fortran compiler
18815 tmp_addflag=' -nofor_main' ;;
18817 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18819 if test $supports_anon_versioning = yes; then
18820 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18822 $echo "local: *; };" >> $output_objdir/$libname.ver~
18823 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18825 link_all_deplibs_GCJ=no
18831 netbsd* | netbsdelf*-gnu)
18832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18833 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18847 *** create shared libraries on Solaris systems. Therefore, libtool
18848 *** is disabling shared libraries support. We urge you to upgrade GNU
18849 *** binutils to release 2.9.1 or newer. Another option is to modify
18850 *** your PATH or compiler configuration so that the native linker is
18851 *** used, and then restart.
18854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18863 case `$LD -v 2>&1` in
18864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18869 *** reliably create shared libraries on SCO systems. Therefore, libtool
18870 *** is disabling shared libraries support. We urge you to upgrade GNU
18871 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18872 *** your PATH or compiler configuration so that the native linker is
18873 *** used, and then restart.
18878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18879 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18880 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18881 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18890 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18892 hardcode_direct_GCJ=yes
18893 hardcode_shlibpath_var_GCJ=no
18897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18898 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18899 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18906 if test "$ld_shlibs_GCJ" = no; then
18908 hardcode_libdir_flag_spec_GCJ=
18909 export_dynamic_flag_spec_GCJ=
18910 whole_archive_flag_spec_GCJ=
18913 # PORTME fill in a description of your system's linker (not GNU ld)
18916 allow_undefined_flag_GCJ=unsupported
18917 always_export_symbols_GCJ=yes
18918 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18919 # Note: this linker hardcodes the directories in LIBPATH if there
18920 # are no directories specified by -L.
18921 hardcode_minus_L_GCJ=yes
18922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18923 # Neither direct hardcoding nor static linking is supported with a
18925 hardcode_direct_GCJ=unsupported
18930 if test "$host_cpu" = ia64; then
18931 # On IA64, the linker does run time linking by default, so we don't
18932 # have to do anything special.
18933 aix_use_runtimelinking=no
18934 exp_sym_flag='-Bexport'
18937 # If we're using GNU nm, then we don't want the "-C" option.
18938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18940 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18942 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
18944 aix_use_runtimelinking=no
18946 # Test if we are trying to use run time linking or normal
18947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18948 # need to do runtime linking.
18949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18950 for ld_flag in $LDFLAGS; do
18951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18952 aix_use_runtimelinking=yes
18959 exp_sym_flag='-bexport'
18960 no_entry_flag='-bnoentry'
18963 # When large executables or shared objects are built, AIX ld can
18964 # have problems creating the table of contents. If linking a library
18965 # or program results in "error TOC overflow" add -mminimal-toc to
18966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18969 archive_cmds_GCJ=''
18970 hardcode_direct_GCJ=yes
18971 hardcode_libdir_separator_GCJ=':'
18972 link_all_deplibs_GCJ=yes
18974 if test "$GCC" = yes; then
18975 case $host_os in aix4.[012]|aix4.[012].*)
18976 # We only want to do this on AIX 4.2 and lower, the check
18977 # below for broken collect2 doesn't work under 4.3+
18978 collect2name=`${CC} -print-prog-name=collect2`
18979 if test -f "$collect2name" && \
18980 strings "$collect2name" | grep resolve_lib_name >/dev/null
18982 # We have reworked collect2
18983 hardcode_direct_GCJ=yes
18985 # We have old collect2
18986 hardcode_direct_GCJ=unsupported
18987 # It fails to find uninstalled libraries when the uninstalled
18988 # path is not listed in the libpath. Setting hardcode_minus_L
18989 # to unsupported forces relinking
18990 hardcode_minus_L_GCJ=yes
18991 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18992 hardcode_libdir_separator_GCJ=
18996 shared_flag='-shared'
18997 if test "$aix_use_runtimelinking" = yes; then
18998 shared_flag="$shared_flag "'${wl}-G'
19002 if test "$host_cpu" = ia64; then
19003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19004 # chokes on -Wl,-G. The following line is correct:
19007 if test "$aix_use_runtimelinking" = yes; then
19008 shared_flag='${wl}-G'
19010 shared_flag='${wl}-bM:SRE'
19015 # It seems that -bexpall does not export symbols beginning with
19016 # underscore (_), so it is better to generate a list of symbols to export.
19017 always_export_symbols_GCJ=yes
19018 if test "$aix_use_runtimelinking" = yes; then
19019 # Warning - without using the other runtime loading flags (-brtl),
19020 # -berok will link without error, but may produce a broken library.
19021 allow_undefined_flag_GCJ='-berok'
19022 # Determine the default libpath from the value encoded in an empty executable.
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
19052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest$ac_exeext'
19063 { (case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_try") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; }; then
19073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19075 # Check for a 64-bit object if we didn't find anything.
19076 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19085 rm -f core conftest.err conftest.$ac_objext \
19086 conftest$ac_exeext conftest.$ac_ext
19087 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19089 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19090 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19092 if test "$host_cpu" = ia64; then
19093 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19094 allow_undefined_flag_GCJ="-z nodefs"
19095 archive_expsym_cmds_GCJ="\$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"
19097 # Determine the default libpath from the value encoded in an empty executable.
19098 cat >conftest.$ac_ext <<_ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19128 { (case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_try") 2>&5
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest$ac_exeext'
19138 { (case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_try") 2>&5
19145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146 (exit $ac_status); }; }; then
19148 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19150 # Check for a 64-bit object if we didn't find anything.
19151 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19154 echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19160 rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19164 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19165 # Warning - without using the other run time loading flags,
19166 # -berok will link without error, but may produce a broken library.
19167 no_undefined_flag_GCJ=' ${wl}-bernotok'
19168 allow_undefined_flag_GCJ=' ${wl}-berok'
19169 # Exported symbols can be pulled into shared objects from archives
19170 whole_archive_flag_spec_GCJ='$convenience'
19171 archive_cmds_need_lc_GCJ=yes
19172 # This is similar to how AIX traditionally builds its shared libraries.
19173 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19179 archive_cmds_GCJ='$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)'
19180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19181 hardcode_minus_L_GCJ=yes
19182 # see comment about different semantics on the GNU ld section
19187 export_dynamic_flag_spec_GCJ=-rdynamic
19190 cygwin* | mingw* | pw32*)
19191 # When not using gcc, we currently assume that we are using
19192 # Microsoft Visual C++.
19193 # hardcode_libdir_flag_spec is actually meaningless, as there is
19194 # no search path for DLLs.
19195 hardcode_libdir_flag_spec_GCJ=' '
19196 allow_undefined_flag_GCJ=unsupported
19197 # Tell ltmain to make .lib files, not .a files.
19199 # Tell ltmain to make .dll files, not .so files.
19201 # FIXME: Setting linknames here is a bad hack.
19202 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19203 # The linker will automatically build a .lib file if we build a DLL.
19204 old_archive_From_new_cmds_GCJ='true'
19205 # FIXME: Should let the user specify the lib program.
19206 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19207 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19208 enable_shared_with_static_runtimes_GCJ=yes
19211 darwin* | rhapsody*)
19213 rhapsody* | darwin1.[012])
19214 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19217 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19218 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19220 case ${MACOSX_DEPLOYMENT_TARGET} in
19222 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19225 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19231 archive_cmds_need_lc_GCJ=no
19232 hardcode_direct_GCJ=no
19233 hardcode_automatic_GCJ=yes
19234 hardcode_shlibpath_var_GCJ=unsupported
19235 whole_archive_flag_spec_GCJ=''
19236 link_all_deplibs_GCJ=yes
19237 if test "$GCC" = yes ; then
19238 output_verbose_link_cmd='echo'
19239 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19240 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19242 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19243 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19245 case $cc_basename in
19247 output_verbose_link_cmd='echo'
19248 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19249 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19250 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19251 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19252 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19262 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19263 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19264 hardcode_shlibpath_var_GCJ=no
19271 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19272 # support. Future versions do this automatically, but an explicit c++rt0.o
19273 # does not break anything, and helps significantly (at the cost of a little
19276 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19277 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19278 hardcode_direct_GCJ=yes
19279 hardcode_shlibpath_var_GCJ=no
19282 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19284 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19285 hardcode_direct_GCJ=yes
19286 hardcode_minus_L_GCJ=yes
19287 hardcode_shlibpath_var_GCJ=no
19290 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19291 freebsd* | dragonfly*)
19292 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19293 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19294 hardcode_direct_GCJ=yes
19295 hardcode_shlibpath_var_GCJ=no
19299 if test "$GCC" = yes; then
19300 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19302 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19304 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19305 hardcode_libdir_separator_GCJ=:
19306 hardcode_direct_GCJ=yes
19308 # hardcode_minus_L: Not really in the search PATH,
19309 # but as the default location of the library.
19310 hardcode_minus_L_GCJ=yes
19311 export_dynamic_flag_spec_GCJ='${wl}-E'
19315 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19316 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19318 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19320 if test "$with_gnu_ld" = no; then
19321 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19322 hardcode_libdir_separator_GCJ=:
19324 hardcode_direct_GCJ=yes
19325 export_dynamic_flag_spec_GCJ='${wl}-E'
19327 # hardcode_minus_L: Not really in the search PATH,
19328 # but as the default location of the library.
19329 hardcode_minus_L_GCJ=yes
19334 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19337 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19340 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19343 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19349 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19352 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19355 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19359 if test "$with_gnu_ld" = no; then
19360 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19361 hardcode_libdir_separator_GCJ=:
19365 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19366 hardcode_direct_GCJ=no
19367 hardcode_shlibpath_var_GCJ=no
19370 hardcode_direct_GCJ=yes
19371 export_dynamic_flag_spec_GCJ='${wl}-E'
19373 # hardcode_minus_L: Not really in the search PATH,
19374 # but as the default location of the library.
19375 hardcode_minus_L_GCJ=yes
19381 irix5* | irix6* | nonstopux*)
19382 if test "$GCC" = yes; then
19383 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19385 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19386 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19388 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19389 hardcode_libdir_separator_GCJ=:
19390 link_all_deplibs_GCJ=yes
19393 netbsd* | netbsdelf*-gnu)
19394 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19395 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19397 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19399 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19400 hardcode_direct_GCJ=yes
19401 hardcode_shlibpath_var_GCJ=no
19405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19406 hardcode_direct_GCJ=yes
19407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19408 hardcode_libdir_separator_GCJ=:
19409 hardcode_shlibpath_var_GCJ=no
19413 hardcode_direct_GCJ=yes
19414 hardcode_shlibpath_var_GCJ=no
19415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19416 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19417 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19418 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19419 export_dynamic_flag_spec_GCJ='${wl}-E'
19422 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19423 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19424 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19427 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19435 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19436 hardcode_minus_L_GCJ=yes
19437 allow_undefined_flag_GCJ=unsupported
19438 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19439 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19443 if test "$GCC" = yes; then
19444 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19445 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19447 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19448 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19450 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19451 hardcode_libdir_separator_GCJ=:
19454 osf4* | osf5*) # as osf3* with the addition of -msym flag
19455 if test "$GCC" = yes; then
19456 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19457 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19458 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19460 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19461 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19462 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19463 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19465 # Both c and cxx compiler support -rpath directly
19466 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19468 hardcode_libdir_separator_GCJ=:
19472 no_undefined_flag_GCJ=' -z text'
19473 if test "$GCC" = yes; then
19475 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19476 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19477 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19480 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19481 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19482 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19484 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19485 hardcode_shlibpath_var_GCJ=no
19487 solaris2.[0-5] | solaris2.[0-5].*) ;;
19489 # The compiler driver will combine linker options so we
19490 # cannot just pass the convience library names through
19491 # without $wl, iff we do not link with $LD.
19492 # Luckily, gcc supports the same syntax we need for Sun Studio.
19493 # Supported since Solaris 2.6 (maybe 2.5.1?)
19496 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19498 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
19501 link_all_deplibs_GCJ=yes
19505 if test "x$host_vendor" = xsequent; then
19506 # Use $CC to link under sequent, because it throws in some extra .o
19507 # files that make .init and .fini sections work.
19508 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19510 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19513 hardcode_direct_GCJ=yes
19514 hardcode_minus_L_GCJ=yes
19515 hardcode_shlibpath_var_GCJ=no
19519 case $host_vendor in
19521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19522 hardcode_direct_GCJ=yes # is this really true???
19525 ## LD is ld it makes a PLAMLIB
19526 ## CC just makes a GrossModule.
19527 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19528 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19529 hardcode_direct_GCJ=no
19532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19533 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19536 runpath_var='LD_RUN_PATH'
19537 hardcode_shlibpath_var_GCJ=no
19541 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19542 hardcode_shlibpath_var_GCJ=no
19543 export_dynamic_flag_spec_GCJ='-Bexport'
19547 if test -d /usr/nec; then
19548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19549 hardcode_shlibpath_var_GCJ=no
19550 runpath_var=LD_RUN_PATH
19551 hardcode_runpath_var=yes
19556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19557 no_undefined_flag_GCJ='${wl}-z,text'
19558 archive_cmds_need_lc_GCJ=no
19559 hardcode_shlibpath_var_GCJ=no
19560 runpath_var='LD_RUN_PATH'
19562 if test "$GCC" = yes; then
19563 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19566 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19571 sysv5* | sco3.2v5* | sco5v6*)
19572 # Note: We can NOT use -z defs as we might desire, because we do not
19573 # link with -lc, and that would cause any symbols used from libc to
19574 # always be unresolved, which means just about no library would
19575 # ever link correctly. If we're not using GNU ld we use -z text
19576 # though, which does catch some bad symbols but isn't as heavy-handed
19578 no_undefined_flag_GCJ='${wl}-z,text'
19579 allow_undefined_flag_GCJ='${wl}-z,nodefs'
19580 archive_cmds_need_lc_GCJ=no
19581 hardcode_shlibpath_var_GCJ=no
19582 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19583 hardcode_libdir_separator_GCJ=':'
19584 link_all_deplibs_GCJ=yes
19585 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19586 runpath_var='LD_RUN_PATH'
19588 if test "$GCC" = yes; then
19589 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19590 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19592 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19593 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19598 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19600 hardcode_shlibpath_var_GCJ=no
19609 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19610 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
19611 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19614 # Do we need to explicitly link libc?
19616 case "x$archive_cmds_need_lc_GCJ" in
19618 # Assume -lc should be added
19619 archive_cmds_need_lc_GCJ=yes
19621 if test "$enable_shared" = yes && test "$GCC" = yes; then
19622 case $archive_cmds_GCJ in
19624 # FIXME: we may have to deal with multi-command sequences.
19627 # Test whether the compiler implicitly links with -lc since on some
19628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19629 # to ld, don't add -lc before -lgcc.
19630 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19636 (eval $ac_compile) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } 2>conftest.err; then
19642 libobjs=conftest.$ac_objext
19644 wl=$lt_prog_compiler_wl_GCJ
19645 pic_flag=$lt_prog_compiler_pic_GCJ
19651 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19652 allow_undefined_flag_GCJ=
19653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19654 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }
19659 archive_cmds_need_lc_GCJ=no
19661 archive_cmds_need_lc_GCJ=yes
19663 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19665 cat conftest.err 1>&5
19668 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19669 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19676 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19678 library_names_spec=
19679 libname_spec='lib$name'
19683 postuninstall_cmds=
19687 shlibpath_overrides_runpath=unknown
19689 dynamic_linker="$host_os ld.so"
19690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19691 if test "$GCC" = yes; then
19692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19694 # if the path contains ";" then we assume it to be the separator
19695 # otherwise default to the standard path separator (i.e. ":") - it is
19696 # assumed that no part of a normal pathname contains ";" but that should
19697 # okay in the real world where ";" in dirpaths is itself problematic.
19698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19705 need_lib_prefix=unknown
19706 hardcode_into_libs=no
19708 # when you set need_version to no, make sure it does not cause -set_version
19709 # flags to be left without arguments
19710 need_version=unknown
19715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19716 shlibpath_var=LIBPATH
19718 # AIX 3 has no versioning support, so we append a major version to the name.
19719 soname_spec='${libname}${release}${shared_ext}$major'
19726 hardcode_into_libs=yes
19727 if test "$host_cpu" = ia64; then
19728 # AIX 5 supports IA64
19729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19730 shlibpath_var=LD_LIBRARY_PATH
19732 # With GCC up to 2.95.x, collect2 would create an import file
19733 # for dependence libraries. The import file would start with
19734 # the line `#! .'. This would cause the generated library to
19735 # depend on `.', always an invalid library. This was fixed in
19736 # development snapshots of GCC prior to 3.0.
19738 aix4 | aix4.[01] | aix4.[01].*)
19739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19744 can_build_shared=no
19748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19749 # soname into executable. Probably we can add versioning support to
19750 # collect2, so additional links can be useful in future.
19751 if test "$aix_use_runtimelinking" = yes; then
19752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19753 # instead of lib<name>.a to let people know that these are not
19754 # typical AIX shared libraries.
19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19757 # We preserve .a as extension for shared libraries through AIX4.2
19758 # and later when we are not doing run time linking.
19759 library_names_spec='${libname}${release}.a $libname.a'
19760 soname_spec='${libname}${release}${shared_ext}$major'
19762 shlibpath_var=LIBPATH
19767 library_names_spec='$libname.ixlibrary $libname.a'
19768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19769 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19773 library_names_spec='${libname}${shared_ext}'
19774 dynamic_linker="$host_os ld.so"
19775 shlibpath_var=LIBRARY_PATH
19781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19782 soname_spec='${libname}${release}${shared_ext}$major'
19783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19784 shlibpath_var=LD_LIBRARY_PATH
19785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19787 # the default ld.so.conf also contains /usr/contrib/lib and
19788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19789 # libtool to hard-code these into programs
19792 cygwin* | mingw* | pw32*)
19793 version_type=windows
19798 case $GCC,$host_os in
19799 yes,cygwin* | yes,mingw* | yes,pw32*)
19800 library_names_spec='$libname.dll.a'
19801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19802 postinstall_cmds='base_file=`basename \${file}`~
19803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19804 dldir=$destdir/`dirname \$dlpath`~
19805 test -d \$dldir || mkdir -p \$dldir~
19806 $install_prog $dir/$dlname \$dldir/$dlname~
19807 chmod a+x \$dldir/$dlname'
19808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19809 dlpath=$dir/\$dldll~
19811 shlibpath_overrides_runpath=yes
19815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19817 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19820 # MinGW DLLs use traditional 'lib' prefix
19821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19822 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19823 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19824 # It is most probably a Windows format PATH printed by
19825 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19826 # path with ; separators, and with drive letters. We can handle the
19827 # drive letters (cygwin fileutils understands them), so leave them,
19828 # especially as we might pass files found there to a mingw objdump,
19829 # which wouldn't understand a cygwinified path. Ahh.
19830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19832 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19836 # pw32 DLLs use 'pw' prefix rather than 'lib'
19837 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19843 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19846 dynamic_linker='Win32 ld.exe'
19847 # FIXME: first we should search . and the directory the executable is in
19851 darwin* | rhapsody*)
19852 dynamic_linker="$host_os dyld"
19853 version_type=darwin
19856 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19857 soname_spec='${libname}${release}${major}$shared_ext'
19858 shlibpath_overrides_runpath=yes
19859 shlibpath_var=DYLD_LIBRARY_PATH
19860 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19861 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19862 if test "$GCC" = yes; then
19863 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
19865 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19867 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19875 soname_spec='${libname}${release}${shared_ext}$major'
19876 shlibpath_var=LD_LIBRARY_PATH
19883 freebsd* | dragonfly*)
19884 # DragonFly does not have aout. When/if they implement a new
19885 # versioning mechanism, adjust this.
19886 if test -x /usr/bin/objformat; then
19887 objformat=`/usr/bin/objformat`
19890 freebsd[123]*) objformat=aout ;;
19891 *) objformat=elf ;;
19894 version_type=freebsd-$objformat
19895 case $version_type in
19897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19906 shlibpath_var=LD_LIBRARY_PATH
19909 shlibpath_overrides_runpath=yes
19911 freebsd3.[01]* | freebsdelf3.[01]*)
19912 shlibpath_overrides_runpath=yes
19913 hardcode_into_libs=yes
19915 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19916 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19917 shlibpath_overrides_runpath=no
19918 hardcode_into_libs=yes
19920 freebsd*) # from 4.6 on
19921 shlibpath_overrides_runpath=yes
19922 hardcode_into_libs=yes
19931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19932 soname_spec='${libname}${release}${shared_ext}$major'
19933 shlibpath_var=LD_LIBRARY_PATH
19934 hardcode_into_libs=yes
19937 hpux9* | hpux10* | hpux11*)
19938 # Give a soname corresponding to the major version so that dld.sl refuses to
19939 # link against other versions.
19946 hardcode_into_libs=yes
19947 dynamic_linker="$host_os dld.so"
19948 shlibpath_var=LD_LIBRARY_PATH
19949 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 if test "X$HPUX_IA64_MODE" = X32; then
19953 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19955 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19957 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19961 hardcode_into_libs=yes
19962 dynamic_linker="$host_os dld.sl"
19963 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19966 soname_spec='${libname}${release}${shared_ext}$major'
19967 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19972 dynamic_linker="$host_os dld.sl"
19973 shlibpath_var=SHLIB_PATH
19974 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19976 soname_spec='${libname}${release}${shared_ext}$major'
19979 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19980 postinstall_cmds='chmod 555 $lib'
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19990 shlibpath_var=LD_LIBRARY_PATH
19991 shlibpath_overrides_runpath=no
19992 hardcode_into_libs=yes
19995 irix5* | irix6* | nonstopux*)
19997 nonstopux*) version_type=nonstopux ;;
19999 if test "$lt_cv_prog_gnu_ld" = yes; then
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20010 irix5* | nonstopux*)
20011 libsuff= shlibsuff=
20014 case $LD in # libtool.m4 will add one of these switches to LD
20015 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20016 libsuff= shlibsuff= libmagic=32-bit;;
20017 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20018 libsuff=32 shlibsuff=N32 libmagic=N32;;
20019 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20020 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20021 *) libsuff= shlibsuff= libmagic=never-match;;
20025 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20026 shlibpath_overrides_runpath=no
20027 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20028 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20029 hardcode_into_libs=yes
20032 # No shared lib support for Linux oldld, aout, or coff.
20033 linux*oldld* | linux*aout* | linux*coff*)
20037 # This must be Linux ELF.
20038 linux* | k*bsd*-gnu)
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 soname_spec='${libname}${release}${shared_ext}$major'
20044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20045 shlibpath_var=LD_LIBRARY_PATH
20046 shlibpath_overrides_runpath=no
20047 # This implies no fast_install, which is unacceptable.
20048 # Some rework will be needed to allow for fast_install
20049 # before this can be enabled.
20050 hardcode_into_libs=yes
20052 # Append ld.so.conf contents to the search path
20053 if test -f /etc/ld.so.conf; then
20054 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20055 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20058 # We used to test for /lib/ld.so.1 and disable shared libraries on
20059 # powerpc, because MkLinux only supported shared libraries with the
20060 # GNU dynamic linker. Since this was broken with cross compilers,
20061 # most powerpc-linux boxes support dynamic linking these days and
20062 # people can always --disable-shared, the test was removed, and we
20063 # assume the GNU/Linux dynamic linker is in use.
20064 dynamic_linker='GNU/Linux ld.so'
20071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20072 soname_spec='${libname}${release}${shared_ext}$major'
20073 shlibpath_var=LD_LIBRARY_PATH
20074 shlibpath_overrides_runpath=no
20075 hardcode_into_libs=yes
20076 dynamic_linker='NetBSD ld.elf_so'
20083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20086 dynamic_linker='NetBSD (a.out) ld.so'
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 dynamic_linker='NetBSD ld.elf_so'
20092 shlibpath_var=LD_LIBRARY_PATH
20093 shlibpath_overrides_runpath=yes
20094 hardcode_into_libs=yes
20099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20100 shlibpath_var=LD_LIBRARY_PATH
20101 shlibpath_overrides_runpath=yes
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 shlibpath_var=LD_LIBRARY_PATH
20111 shlibpath_overrides_runpath=yes
20116 sys_lib_dlsearch_path_spec="/usr/lib"
20118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20121 *) need_version=no ;;
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20128 openbsd2.[89] | openbsd2.[89].*)
20129 shlibpath_overrides_runpath=no
20132 shlibpath_overrides_runpath=yes
20136 shlibpath_overrides_runpath=yes
20141 libname_spec='$name'
20144 library_names_spec='$libname${shared_ext} $libname.a'
20145 dynamic_linker='OS/2 ld.exe'
20146 shlibpath_var=LIBPATH
20149 osf3* | osf4* | osf5*)
20153 soname_spec='${libname}${release}${shared_ext}$major'
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20155 shlibpath_var=LD_LIBRARY_PATH
20156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20165 soname_spec='${libname}${release}${shared_ext}$major'
20166 shlibpath_var=LD_LIBRARY_PATH
20167 shlibpath_overrides_runpath=yes
20168 hardcode_into_libs=yes
20169 # ldd complains unless libraries are executable
20170 postinstall_cmds='chmod +x $lib'
20175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20176 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 shlibpath_overrides_runpath=yes
20179 if test "$with_gnu_ld" = yes; then
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 shlibpath_var=LD_LIBRARY_PATH
20190 case $host_vendor in
20192 shlibpath_overrides_runpath=no
20194 export_dynamic_flag_spec='${wl}-Blargedynsym'
20195 runpath_var=LD_RUN_PATH
20203 shlibpath_overrides_runpath=no
20204 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20210 if test -d /usr/nec ;then
20212 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20213 soname_spec='$libname${shared_ext}.$major'
20214 shlibpath_var=LD_LIBRARY_PATH
20218 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20219 version_type=freebsd-elf
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 shlibpath_var=LD_LIBRARY_PATH
20225 hardcode_into_libs=yes
20226 if test "$with_gnu_ld" = yes; then
20227 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20228 shlibpath_overrides_runpath=no
20230 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20231 shlibpath_overrides_runpath=yes
20234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20238 sys_lib_dlsearch_path_spec='/usr/lib'
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20244 soname_spec='${libname}${release}${shared_ext}$major'
20245 shlibpath_var=LD_LIBRARY_PATH
20252 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20253 echo "${ECHO_T}$dynamic_linker" >&6; }
20254 test "$dynamic_linker" = no && can_build_shared=no
20256 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20257 if test "$GCC" = yes; then
20258 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20261 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20262 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20263 hardcode_action_GCJ=
20264 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20265 test -n "$runpath_var_GCJ" || \
20266 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20268 # We can hardcode non-existant directories.
20269 if test "$hardcode_direct_GCJ" != no &&
20270 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20271 # have to relink, otherwise we might link with an installed library
20272 # when we should be linking with a yet-to-be-installed one
20273 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20274 test "$hardcode_minus_L_GCJ" != no; then
20275 # Linking always hardcodes the temporary library directory.
20276 hardcode_action_GCJ=relink
20278 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20279 hardcode_action_GCJ=immediate
20282 # We cannot hardcode anything, or else we can only hardcode existing
20284 hardcode_action_GCJ=unsupported
20286 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20287 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20289 if test "$hardcode_action_GCJ" = relink; then
20290 # Fast installation is not supported
20291 enable_fast_install=no
20292 elif test "$shlibpath_overrides_runpath" = yes ||
20293 test "$enable_shared" = no; then
20294 # Fast installation is not necessary
20295 enable_fast_install=needless
20299 # The else clause should only fire when bootstrapping the
20300 # libtool distribution, otherwise you forgot to ship ltmain.sh
20301 # with your package, and you will get complaints that there are
20302 # no rules to generate ltmain.sh.
20303 if test -f "$ltmain"; then
20304 # See if we are running on zsh, and set the options which allow our commands through
20305 # without removal of \ escapes.
20306 if test -n "${ZSH_VERSION+set}" ; then
20307 setopt NO_GLOB_SUBST
20309 # Now quote all the things that may contain metacharacters while being
20310 # careful not to overquote the AC_SUBSTed values. We take copies of the
20311 # variables and quote the copies for generation of the libtool script.
20312 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20314 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20315 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20316 deplibs_check_method reload_flag reload_cmds need_locks \
20317 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20318 lt_cv_sys_global_symbol_to_c_name_address \
20319 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20320 old_postinstall_cmds old_postuninstall_cmds \
20324 lt_prog_compiler_wl_GCJ \
20325 lt_prog_compiler_pic_GCJ \
20326 lt_prog_compiler_static_GCJ \
20327 lt_prog_compiler_no_builtin_flag_GCJ \
20328 export_dynamic_flag_spec_GCJ \
20329 thread_safe_flag_spec_GCJ \
20330 whole_archive_flag_spec_GCJ \
20331 enable_shared_with_static_runtimes_GCJ \
20332 old_archive_cmds_GCJ \
20333 old_archive_from_new_cmds_GCJ \
20334 predep_objects_GCJ \
20335 postdep_objects_GCJ \
20338 compiler_lib_search_path_GCJ \
20340 archive_expsym_cmds_GCJ \
20341 postinstall_cmds_GCJ \
20342 postuninstall_cmds_GCJ \
20343 old_archive_from_expsyms_cmds_GCJ \
20344 allow_undefined_flag_GCJ \
20345 no_undefined_flag_GCJ \
20346 export_symbols_cmds_GCJ \
20347 hardcode_libdir_flag_spec_GCJ \
20348 hardcode_libdir_flag_spec_ld_GCJ \
20349 hardcode_libdir_separator_GCJ \
20350 hardcode_automatic_GCJ \
20352 module_expsym_cmds_GCJ \
20353 lt_cv_prog_compiler_c_o_GCJ \
20354 exclude_expsyms_GCJ \
20355 include_expsyms_GCJ; do
20358 old_archive_cmds_GCJ | \
20359 old_archive_from_new_cmds_GCJ | \
20360 archive_cmds_GCJ | \
20361 archive_expsym_cmds_GCJ | \
20362 module_cmds_GCJ | \
20363 module_expsym_cmds_GCJ | \
20364 old_archive_from_expsyms_cmds_GCJ | \
20365 export_symbols_cmds_GCJ | \
20366 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20367 postinstall_cmds | postuninstall_cmds | \
20368 old_postinstall_cmds | old_postuninstall_cmds | \
20369 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20370 # Double-quote double-evaled strings.
20371 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20380 *'\$0 --fallback-echo"')
20381 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20387 cat <<__EOF__ >> "$cfgfile"
20388 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20390 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20392 # Shell to use when invoking shell scripts.
20395 # Whether or not to build shared libraries.
20396 build_libtool_libs=$enable_shared
20398 # Whether or not to build static libraries.
20399 build_old_libs=$enable_static
20401 # Whether or not to add -lc for building shared libraries.
20402 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20404 # Whether or not to disallow shared libs when runtime libs are static
20405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20407 # Whether or not to optimize for fast installation.
20408 fast_install=$enable_fast_install
20411 host_alias=$host_alias
20415 # The build system.
20416 build_alias=$build_alias
20420 # An echo program that does not interpret backslashes.
20425 AR_FLAGS=$lt_AR_FLAGS
20430 # LTCC compiler flags.
20431 LTCFLAGS=$lt_LTCFLAGS
20433 # A language-specific compiler.
20434 CC=$lt_compiler_GCJ
20436 # Is the compiler the GNU C compiler?
20442 # The linker used to build libraries.
20445 # Whether we need hard or soft links.
20448 # A BSD-compatible nm program.
20451 # A symbol stripping program
20454 # Used to examine libraries when file_magic_cmd begins "file"
20455 MAGIC_CMD=$MAGIC_CMD
20457 # Used on cygwin: DLL creation program.
20460 # Used on cygwin: object dumper.
20463 # Used on cygwin: assembler.
20466 # The name of the directory that contains temporary libtool files.
20469 # How to create reloadable object files.
20470 reload_flag=$lt_reload_flag
20471 reload_cmds=$lt_reload_cmds
20473 # How to pass a linker flag through the compiler.
20474 wl=$lt_lt_prog_compiler_wl_GCJ
20476 # Object file suffix (normally "o").
20477 objext="$ac_objext"
20479 # Old archive suffix (normally "a").
20482 # Shared library suffix (normally ".so").
20483 shrext_cmds='$shrext_cmds'
20485 # Executable file suffix (normally "").
20488 # Additional compiler flags for building library objects.
20489 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20492 # What is the maximum length of a command?
20493 max_cmd_len=$lt_cv_sys_max_cmd_len
20495 # Does compiler simultaneously support -c and -o options?
20496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20498 # Must we lock files when doing compilation?
20499 need_locks=$lt_need_locks
20501 # Do we need the lib prefix for modules?
20502 need_lib_prefix=$need_lib_prefix
20504 # Do we need a version for libraries?
20505 need_version=$need_version
20507 # Whether dlopen is supported.
20508 dlopen_support=$enable_dlopen
20510 # Whether dlopen of programs is supported.
20511 dlopen_self=$enable_dlopen_self
20513 # Whether dlopen of statically linked programs is supported.
20514 dlopen_self_static=$enable_dlopen_self_static
20516 # Compiler flag to prevent dynamic linking.
20517 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20519 # Compiler flag to turn off builtin functions.
20520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20522 # Compiler flag to allow reflexive dlopens.
20523 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20525 # Compiler flag to generate shared objects directly from archives.
20526 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20528 # Compiler flag to generate thread-safe objects.
20529 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20531 # Library versioning type.
20532 version_type=$version_type
20534 # Format of library name prefix.
20535 libname_spec=$lt_libname_spec
20537 # List of archive names. First name is the real one, the rest are links.
20538 # The last name is the one that the linker finds with -lNAME.
20539 library_names_spec=$lt_library_names_spec
20541 # The coded name of the library, if different from the real name.
20542 soname_spec=$lt_soname_spec
20544 # Commands used to build and install an old-style archive.
20546 old_archive_cmds=$lt_old_archive_cmds_GCJ
20547 old_postinstall_cmds=$lt_old_postinstall_cmds
20548 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20550 # Create an old-style archive from a shared archive.
20551 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20553 # Create a temporary old-style archive to link instead of a shared archive.
20554 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20556 # Commands used to build and install a shared archive.
20557 archive_cmds=$lt_archive_cmds_GCJ
20558 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20559 postinstall_cmds=$lt_postinstall_cmds
20560 postuninstall_cmds=$lt_postuninstall_cmds
20562 # Commands used to build a loadable module (assumed same as above if empty)
20563 module_cmds=$lt_module_cmds_GCJ
20564 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20566 # Commands to strip libraries.
20567 old_striplib=$lt_old_striplib
20568 striplib=$lt_striplib
20570 # Dependencies to place before the objects being linked to create a
20572 predep_objects=$lt_predep_objects_GCJ
20574 # Dependencies to place after the objects being linked to create a
20576 postdep_objects=$lt_postdep_objects_GCJ
20578 # Dependencies to place before the objects being linked to create a
20580 predeps=$lt_predeps_GCJ
20582 # Dependencies to place after the objects being linked to create a
20584 postdeps=$lt_postdeps_GCJ
20586 # The library search path used internally by the compiler when linking
20587 # a shared library.
20588 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20590 # Method to check whether dependent libraries are shared objects.
20591 deplibs_check_method=$lt_deplibs_check_method
20593 # Command to use when deplibs_check_method == file_magic.
20594 file_magic_cmd=$lt_file_magic_cmd
20596 # Flag that allows shared libraries with undefined symbols to be built.
20597 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20599 # Flag that forces no undefined symbols.
20600 no_undefined_flag=$lt_no_undefined_flag_GCJ
20602 # Commands used to finish a libtool library installation in a directory.
20603 finish_cmds=$lt_finish_cmds
20605 # Same as above, but a single script fragment to be evaled but not shown.
20606 finish_eval=$lt_finish_eval
20608 # Take the output of nm and produce a listing of raw symbols and C names.
20609 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20611 # Transform the output of nm in a proper C declaration
20612 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20614 # Transform the output of nm in a C name address pair
20615 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20617 # This is the shared library runtime path variable.
20618 runpath_var=$runpath_var
20620 # This is the shared library path variable.
20621 shlibpath_var=$shlibpath_var
20623 # Is shlibpath searched before the hard-coded library search path?
20624 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20626 # How to hardcode a shared library path into an executable.
20627 hardcode_action=$hardcode_action_GCJ
20629 # Whether we should hardcode library paths into libraries.
20630 hardcode_into_libs=$hardcode_into_libs
20632 # Flag to hardcode \$libdir into a binary during linking.
20633 # This must work even if \$libdir does not exist.
20634 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20636 # If ld is used when linking, flag to hardcode \$libdir into
20637 # a binary during linking. This must work even if \$libdir does
20639 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20641 # Whether we need a single -rpath flag with a separated argument.
20642 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20644 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20645 # resulting binary.
20646 hardcode_direct=$hardcode_direct_GCJ
20648 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20649 # resulting binary.
20650 hardcode_minus_L=$hardcode_minus_L_GCJ
20652 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20653 # the resulting binary.
20654 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20656 # Set to yes if building a shared library automatically hardcodes DIR into the library
20657 # and all subsequent libraries and executables linked against it.
20658 hardcode_automatic=$hardcode_automatic_GCJ
20660 # Variables whose values should be saved in libtool wrapper scripts and
20661 # restored at relink time.
20662 variables_saved_for_relink="$variables_saved_for_relink"
20664 # Whether libtool must link a program against all its dependency libraries.
20665 link_all_deplibs=$link_all_deplibs_GCJ
20667 # Compile-time system search path for libraries
20668 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20670 # Run-time system search path for libraries
20671 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20673 # Fix the shell variable \$srcfile for the compiler.
20674 fix_srcfile_path="$fix_srcfile_path_GCJ"
20676 # Set to yes if exported symbols are required.
20677 always_export_symbols=$always_export_symbols_GCJ
20679 # The commands to list exported symbols.
20680 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20682 # The commands to extract the exported symbol list from a shared archive.
20683 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20685 # Symbols that should not be listed in the preloaded symbols.
20686 exclude_expsyms=$lt_exclude_expsyms_GCJ
20688 # Symbols that must always be exported.
20689 include_expsyms=$lt_include_expsyms_GCJ
20691 # ### END LIBTOOL TAG CONFIG: $tagname
20697 # If there is no Makefile yet, we rely on a make rule to execute
20698 # `config.status --recheck' to rerun these tests and create the
20699 # libtool script then.
20700 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20701 if test -f "$ltmain_in"; then
20702 test -f Makefile && make "$ltmain"
20708 ac_cpp='$CPP $CPPFLAGS'
20709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20723 # Source file extension for RC test sources.
20726 # Object file extension for compiled RC test sources.
20730 # Code to be used in simple compile tests
20731 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20733 # Code to be used in simple link tests
20734 lt_simple_link_test_code="$lt_simple_compile_test_code"
20736 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20738 # If no C compiler was specified, use CC.
20741 # If no C compiler flags were specified, use CFLAGS.
20742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20744 # Allow CC to be a program name with arguments.
20748 # save warnings/boilerplate of simple test code
20749 ac_outfile=conftest.$ac_objext
20750 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20751 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20752 _lt_compiler_boilerplate=`cat conftest.err`
20755 ac_outfile=conftest.$ac_objext
20756 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20757 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20758 _lt_linker_boilerplate=`cat conftest.err`
20762 # Allow CC to be a program name with arguments.
20767 for cc_temp in $compiler""; do
20769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20775 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20777 lt_cv_prog_compiler_c_o_RC=yes
20779 # The else clause should only fire when bootstrapping the
20780 # libtool distribution, otherwise you forgot to ship ltmain.sh
20781 # with your package, and you will get complaints that there are
20782 # no rules to generate ltmain.sh.
20783 if test -f "$ltmain"; then
20784 # See if we are running on zsh, and set the options which allow our commands through
20785 # without removal of \ escapes.
20786 if test -n "${ZSH_VERSION+set}" ; then
20787 setopt NO_GLOB_SUBST
20789 # Now quote all the things that may contain metacharacters while being
20790 # careful not to overquote the AC_SUBSTed values. We take copies of the
20791 # variables and quote the copies for generation of the libtool script.
20792 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20794 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20795 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20796 deplibs_check_method reload_flag reload_cmds need_locks \
20797 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20798 lt_cv_sys_global_symbol_to_c_name_address \
20799 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20800 old_postinstall_cmds old_postuninstall_cmds \
20804 lt_prog_compiler_wl_RC \
20805 lt_prog_compiler_pic_RC \
20806 lt_prog_compiler_static_RC \
20807 lt_prog_compiler_no_builtin_flag_RC \
20808 export_dynamic_flag_spec_RC \
20809 thread_safe_flag_spec_RC \
20810 whole_archive_flag_spec_RC \
20811 enable_shared_with_static_runtimes_RC \
20812 old_archive_cmds_RC \
20813 old_archive_from_new_cmds_RC \
20814 predep_objects_RC \
20815 postdep_objects_RC \
20818 compiler_lib_search_path_RC \
20820 archive_expsym_cmds_RC \
20821 postinstall_cmds_RC \
20822 postuninstall_cmds_RC \
20823 old_archive_from_expsyms_cmds_RC \
20824 allow_undefined_flag_RC \
20825 no_undefined_flag_RC \
20826 export_symbols_cmds_RC \
20827 hardcode_libdir_flag_spec_RC \
20828 hardcode_libdir_flag_spec_ld_RC \
20829 hardcode_libdir_separator_RC \
20830 hardcode_automatic_RC \
20832 module_expsym_cmds_RC \
20833 lt_cv_prog_compiler_c_o_RC \
20834 exclude_expsyms_RC \
20835 include_expsyms_RC; do
20838 old_archive_cmds_RC | \
20839 old_archive_from_new_cmds_RC | \
20840 archive_cmds_RC | \
20841 archive_expsym_cmds_RC | \
20843 module_expsym_cmds_RC | \
20844 old_archive_from_expsyms_cmds_RC | \
20845 export_symbols_cmds_RC | \
20846 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20847 postinstall_cmds | postuninstall_cmds | \
20848 old_postinstall_cmds | old_postuninstall_cmds | \
20849 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20850 # Double-quote double-evaled strings.
20851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20860 *'\$0 --fallback-echo"')
20861 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20867 cat <<__EOF__ >> "$cfgfile"
20868 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20872 # Shell to use when invoking shell scripts.
20875 # Whether or not to build shared libraries.
20876 build_libtool_libs=$enable_shared
20878 # Whether or not to build static libraries.
20879 build_old_libs=$enable_static
20881 # Whether or not to add -lc for building shared libraries.
20882 build_libtool_need_lc=$archive_cmds_need_lc_RC
20884 # Whether or not to disallow shared libs when runtime libs are static
20885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20887 # Whether or not to optimize for fast installation.
20888 fast_install=$enable_fast_install
20891 host_alias=$host_alias
20895 # The build system.
20896 build_alias=$build_alias
20900 # An echo program that does not interpret backslashes.
20905 AR_FLAGS=$lt_AR_FLAGS
20910 # LTCC compiler flags.
20911 LTCFLAGS=$lt_LTCFLAGS
20913 # A language-specific compiler.
20916 # Is the compiler the GNU C compiler?
20922 # The linker used to build libraries.
20925 # Whether we need hard or soft links.
20928 # A BSD-compatible nm program.
20931 # A symbol stripping program
20934 # Used to examine libraries when file_magic_cmd begins "file"
20935 MAGIC_CMD=$MAGIC_CMD
20937 # Used on cygwin: DLL creation program.
20940 # Used on cygwin: object dumper.
20943 # Used on cygwin: assembler.
20946 # The name of the directory that contains temporary libtool files.
20949 # How to create reloadable object files.
20950 reload_flag=$lt_reload_flag
20951 reload_cmds=$lt_reload_cmds
20953 # How to pass a linker flag through the compiler.
20954 wl=$lt_lt_prog_compiler_wl_RC
20956 # Object file suffix (normally "o").
20957 objext="$ac_objext"
20959 # Old archive suffix (normally "a").
20962 # Shared library suffix (normally ".so").
20963 shrext_cmds='$shrext_cmds'
20965 # Executable file suffix (normally "").
20968 # Additional compiler flags for building library objects.
20969 pic_flag=$lt_lt_prog_compiler_pic_RC
20972 # What is the maximum length of a command?
20973 max_cmd_len=$lt_cv_sys_max_cmd_len
20975 # Does compiler simultaneously support -c and -o options?
20976 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20978 # Must we lock files when doing compilation?
20979 need_locks=$lt_need_locks
20981 # Do we need the lib prefix for modules?
20982 need_lib_prefix=$need_lib_prefix
20984 # Do we need a version for libraries?
20985 need_version=$need_version
20987 # Whether dlopen is supported.
20988 dlopen_support=$enable_dlopen
20990 # Whether dlopen of programs is supported.
20991 dlopen_self=$enable_dlopen_self
20993 # Whether dlopen of statically linked programs is supported.
20994 dlopen_self_static=$enable_dlopen_self_static
20996 # Compiler flag to prevent dynamic linking.
20997 link_static_flag=$lt_lt_prog_compiler_static_RC
20999 # Compiler flag to turn off builtin functions.
21000 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21002 # Compiler flag to allow reflexive dlopens.
21003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21005 # Compiler flag to generate shared objects directly from archives.
21006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21008 # Compiler flag to generate thread-safe objects.
21009 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21011 # Library versioning type.
21012 version_type=$version_type
21014 # Format of library name prefix.
21015 libname_spec=$lt_libname_spec
21017 # List of archive names. First name is the real one, the rest are links.
21018 # The last name is the one that the linker finds with -lNAME.
21019 library_names_spec=$lt_library_names_spec
21021 # The coded name of the library, if different from the real name.
21022 soname_spec=$lt_soname_spec
21024 # Commands used to build and install an old-style archive.
21026 old_archive_cmds=$lt_old_archive_cmds_RC
21027 old_postinstall_cmds=$lt_old_postinstall_cmds
21028 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21030 # Create an old-style archive from a shared archive.
21031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21033 # Create a temporary old-style archive to link instead of a shared archive.
21034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21036 # Commands used to build and install a shared archive.
21037 archive_cmds=$lt_archive_cmds_RC
21038 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21039 postinstall_cmds=$lt_postinstall_cmds
21040 postuninstall_cmds=$lt_postuninstall_cmds
21042 # Commands used to build a loadable module (assumed same as above if empty)
21043 module_cmds=$lt_module_cmds_RC
21044 module_expsym_cmds=$lt_module_expsym_cmds_RC
21046 # Commands to strip libraries.
21047 old_striplib=$lt_old_striplib
21048 striplib=$lt_striplib
21050 # Dependencies to place before the objects being linked to create a
21052 predep_objects=$lt_predep_objects_RC
21054 # Dependencies to place after the objects being linked to create a
21056 postdep_objects=$lt_postdep_objects_RC
21058 # Dependencies to place before the objects being linked to create a
21060 predeps=$lt_predeps_RC
21062 # Dependencies to place after the objects being linked to create a
21064 postdeps=$lt_postdeps_RC
21066 # The library search path used internally by the compiler when linking
21067 # a shared library.
21068 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21070 # Method to check whether dependent libraries are shared objects.
21071 deplibs_check_method=$lt_deplibs_check_method
21073 # Command to use when deplibs_check_method == file_magic.
21074 file_magic_cmd=$lt_file_magic_cmd
21076 # Flag that allows shared libraries with undefined symbols to be built.
21077 allow_undefined_flag=$lt_allow_undefined_flag_RC
21079 # Flag that forces no undefined symbols.
21080 no_undefined_flag=$lt_no_undefined_flag_RC
21082 # Commands used to finish a libtool library installation in a directory.
21083 finish_cmds=$lt_finish_cmds
21085 # Same as above, but a single script fragment to be evaled but not shown.
21086 finish_eval=$lt_finish_eval
21088 # Take the output of nm and produce a listing of raw symbols and C names.
21089 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21091 # Transform the output of nm in a proper C declaration
21092 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21094 # Transform the output of nm in a C name address pair
21095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21097 # This is the shared library runtime path variable.
21098 runpath_var=$runpath_var
21100 # This is the shared library path variable.
21101 shlibpath_var=$shlibpath_var
21103 # Is shlibpath searched before the hard-coded library search path?
21104 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21106 # How to hardcode a shared library path into an executable.
21107 hardcode_action=$hardcode_action_RC
21109 # Whether we should hardcode library paths into libraries.
21110 hardcode_into_libs=$hardcode_into_libs
21112 # Flag to hardcode \$libdir into a binary during linking.
21113 # This must work even if \$libdir does not exist.
21114 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21116 # If ld is used when linking, flag to hardcode \$libdir into
21117 # a binary during linking. This must work even if \$libdir does
21119 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21121 # Whether we need a single -rpath flag with a separated argument.
21122 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21124 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21125 # resulting binary.
21126 hardcode_direct=$hardcode_direct_RC
21128 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21129 # resulting binary.
21130 hardcode_minus_L=$hardcode_minus_L_RC
21132 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21133 # the resulting binary.
21134 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21136 # Set to yes if building a shared library automatically hardcodes DIR into the library
21137 # and all subsequent libraries and executables linked against it.
21138 hardcode_automatic=$hardcode_automatic_RC
21140 # Variables whose values should be saved in libtool wrapper scripts and
21141 # restored at relink time.
21142 variables_saved_for_relink="$variables_saved_for_relink"
21144 # Whether libtool must link a program against all its dependency libraries.
21145 link_all_deplibs=$link_all_deplibs_RC
21147 # Compile-time system search path for libraries
21148 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21150 # Run-time system search path for libraries
21151 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21153 # Fix the shell variable \$srcfile for the compiler.
21154 fix_srcfile_path="$fix_srcfile_path_RC"
21156 # Set to yes if exported symbols are required.
21157 always_export_symbols=$always_export_symbols_RC
21159 # The commands to list exported symbols.
21160 export_symbols_cmds=$lt_export_symbols_cmds_RC
21162 # The commands to extract the exported symbol list from a shared archive.
21163 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21165 # Symbols that should not be listed in the preloaded symbols.
21166 exclude_expsyms=$lt_exclude_expsyms_RC
21168 # Symbols that must always be exported.
21169 include_expsyms=$lt_include_expsyms_RC
21171 # ### END LIBTOOL TAG CONFIG: $tagname
21177 # If there is no Makefile yet, we rely on a make rule to execute
21178 # `config.status --recheck' to rerun these tests and create the
21179 # libtool script then.
21180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21181 if test -f "$ltmain_in"; then
21182 test -f Makefile && make "$ltmain"
21188 ac_cpp='$CPP $CPPFLAGS'
21189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21199 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21200 { (exit 1); exit 1; }; }
21204 # Append the new tag name to the list of available tags.
21205 if test -n "$tagname" ; then
21206 available_tags="$available_tags $tagname"
21212 # Now substitute the updated list of available tags.
21213 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21214 mv "${ofile}T" "$ofile"
21218 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21219 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21220 { (exit 1); exit 1; }; }
21226 # This can be used to rebuild libtool when needed
21227 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21229 # Always use our own libtool.
21230 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21232 # Prevent multiple expansion
21254 # Check whether --enable-fortran was given.
21255 if test "${enable_fortran+set}" = set; then
21256 enableval=$enable_fortran;
21263 if test "x$enable_fortran" = xyes; then
21264 ENABLE_FORTRAN_TRUE=
21265 ENABLE_FORTRAN_FALSE='#'
21267 ENABLE_FORTRAN_TRUE='#'
21268 ENABLE_FORTRAN_FALSE=
21272 if test "x$enable_fortran" = xyes
21275 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21276 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21277 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21278 if test -n "$ac_tool_prefix"; then
21279 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21285 if test "${ac_cv_prog_F77+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21288 if test -n "$F77"; then
21289 ac_cv_prog_F77="$F77" # Let the user override the test.
21291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21292 for as_dir in $PATH
21295 test -z "$as_dir" && as_dir=.
21296 for ac_exec_ext in '' $ac_executable_extensions; do
21297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21298 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
21299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21308 F77=$ac_cv_prog_F77
21309 if test -n "$F77"; then
21310 { echo "$as_me:$LINENO: result: $F77" >&5
21311 echo "${ECHO_T}$F77" >&6; }
21313 { echo "$as_me:$LINENO: result: no" >&5
21314 echo "${ECHO_T}no" >&6; }
21318 test -n "$F77" && break
21321 if test -z "$F77"; then
21323 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
21325 # Extract the first word of "$ac_prog", so it can be a program name with args.
21326 set dummy $ac_prog; ac_word=$2
21327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21329 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 if test -n "$ac_ct_F77"; then
21333 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
21335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21336 for as_dir in $PATH
21339 test -z "$as_dir" && as_dir=.
21340 for ac_exec_ext in '' $ac_executable_extensions; do
21341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21342 ac_cv_prog_ac_ct_F77="$ac_prog"
21343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21352 ac_ct_F77=$ac_cv_prog_ac_ct_F77
21353 if test -n "$ac_ct_F77"; then
21354 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
21355 echo "${ECHO_T}$ac_ct_F77" >&6; }
21357 { echo "$as_me:$LINENO: result: no" >&5
21358 echo "${ECHO_T}no" >&6; }
21362 test -n "$ac_ct_F77" && break
21365 if test "x$ac_ct_F77" = x; then
21368 case $cross_compiling:$ac_tool_warned in
21370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21371 whose name does not start with the host triplet. If you think this
21372 configuration is useful to you, please write to autoconf@gnu.org." >&5
21373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21374 whose name does not start with the host triplet. If you think this
21375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21376 ac_tool_warned=yes ;;
21383 # Provide some information about the compiler.
21384 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
21385 ac_compiler=`set X $ac_compile; echo $2`
21386 { (ac_try="$ac_compiler --version >&5"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_compiler --version >&5") 2>&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }
21396 { (ac_try="$ac_compiler -v >&5"
21397 case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_compiler -v >&5") 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }
21406 { (ac_try="$ac_compiler -V >&5"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_compiler -V >&5") 2>&5
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }
21418 # If we don't use `.F' as extension, the preprocessor is not run on the
21419 # input file. (Note that this only needs to work for GNU compilers.)
21420 ac_save_ext=$ac_ext
21422 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
21423 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
21424 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); } &&
21449 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21450 { (case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_try") 2>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; } &&
21459 { ac_try='test -s conftest.$ac_objext'
21460 { (case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_try") 2>&5
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21469 ac_compiler_gnu=yes
21471 echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21478 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
21481 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
21482 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
21483 ac_ext=$ac_save_ext
21484 ac_test_FFLAGS=${FFLAGS+set}
21485 ac_save_FFLAGS=$FFLAGS
21487 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
21488 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
21489 if test "${ac_cv_prog_f77_g+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21493 cat >conftest.$ac_ext <<_ACEOF
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_compile") 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21513 { (case "(($ac_try" in
21514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21515 *) ac_try_echo=$ac_try;;
21517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21518 (eval "$ac_try") 2>&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; } &&
21522 { ac_try='test -s conftest.$ac_objext'
21523 { (case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_try") 2>&5
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; }; then
21532 ac_cv_prog_f77_g=yes
21534 echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 ac_cv_prog_f77_g=no
21540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
21544 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
21545 if test "$ac_test_FFLAGS" = set; then
21546 FFLAGS=$ac_save_FFLAGS
21547 elif test $ac_cv_prog_f77_g = yes; then
21548 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21554 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
21561 G77=`test $ac_compiler_gnu = yes && echo yes`
21563 ac_cpp='$CPP $CPPFLAGS'
21564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21569 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21570 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21571 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21572 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
21573 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
21574 if test "${ac_cv_prog_f77_v+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 cat >conftest.$ac_ext <<_ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (ac_try="$ac_compile"
21584 case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_compile") 2>conftest.er1
21591 grep -v '^ *+' conftest.er1 >conftest.err
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21597 { (case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_try") 2>&5
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; } &&
21606 { ac_try='test -s conftest.$ac_objext'
21607 { (case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_try") 2>&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); }; }; then
21617 # Try some options frequently used verbose output
21618 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
21619 cat >conftest.$ac_ext <<_ACEOF
21625 # Compile and link our simple test program by passing a flag (argument
21626 # 1 to this macro) to the Fortran compiler in order to get
21627 # "verbose" output that we can then parse for the Fortran linker
21629 ac_save_FFLAGS=$FFLAGS
21630 FFLAGS="$FFLAGS $ac_verb"
21631 eval "set x $ac_link"
21633 echo "$as_me:$LINENO: $*" >&5
21634 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21635 echo "$ac_f77_v_output" >&5
21636 FFLAGS=$ac_save_FFLAGS
21640 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21641 # /foo, /bar, and /baz are search directories for the Fortran linker.
21642 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21643 ac_f77_v_output="`echo $ac_f77_v_output |
21645 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21647 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21648 # that detects unbalanced quotes in FLIBS should be implemented
21649 # and (ugh) tested at some point.
21650 case $ac_f77_v_output in
21651 # If we are using xlf then replace all the commas with spaces.
21653 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21655 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21656 # $LIBS confuse us, and the libraries appear later in the output anyway).
21657 *mGLOB_options_string*)
21658 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21660 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21661 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21662 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21663 *-cmdline\ * | *-ignore\ * | *-def\ *)
21664 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21665 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
21666 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
21667 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
21669 # If we are using Cray Fortran then delete quotes.
21671 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21675 # look for -l* and *.a constructs in the output
21676 for ac_arg in $ac_f77_v_output; do
21678 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
21679 ac_cv_prog_f77_v=$ac_verb
21684 if test -z "$ac_cv_prog_f77_v"; then
21685 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
21686 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
21693 echo "$as_me: WARNING: compilation failed" >&2;}
21696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21699 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
21700 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
21701 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
21702 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
21703 if test "${ac_cv_f77_libs+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 if test "x$FLIBS" != "x"; then
21707 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
21710 cat >conftest.$ac_ext <<_ACEOF
21716 # Compile and link our simple test program by passing a flag (argument
21717 # 1 to this macro) to the Fortran compiler in order to get
21718 # "verbose" output that we can then parse for the Fortran linker
21720 ac_save_FFLAGS=$FFLAGS
21721 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
21722 eval "set x $ac_link"
21724 echo "$as_me:$LINENO: $*" >&5
21725 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21726 echo "$ac_f77_v_output" >&5
21727 FFLAGS=$ac_save_FFLAGS
21731 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21732 # /foo, /bar, and /baz are search directories for the Fortran linker.
21733 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21734 ac_f77_v_output="`echo $ac_f77_v_output |
21736 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21738 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21739 # that detects unbalanced quotes in FLIBS should be implemented
21740 # and (ugh) tested at some point.
21741 case $ac_f77_v_output in
21742 # If we are using xlf then replace all the commas with spaces.
21744 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21746 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21747 # $LIBS confuse us, and the libraries appear later in the output anyway).
21748 *mGLOB_options_string*)
21749 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21751 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21752 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21753 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21754 *-cmdline\ * | *-ignore\ * | *-def\ *)
21755 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21756 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
21757 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
21758 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
21760 # If we are using Cray Fortran then delete quotes.
21762 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21769 # Save positional arguments (if any)
21770 ac_save_positional="$@"
21772 set X $ac_f77_v_output
21773 while test $# != 1; do
21777 [\\/]*.a | ?:[\\/]*.a)
21779 for ac_i in $ac_cv_f77_libs; do
21780 if test x"$ac_arg" = x"$ac_i"; then
21786 if test x"$ac_exists" = xtrue; then
21789 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21795 for ac_i in $ac_cv_f77_libs; do
21796 if test x"$ac_arg" = x"$ac_i"; then
21802 if test x"$ac_exists" = xtrue; then
21805 if test "$ac_compiler_gnu" = yes; then
21806 for ac_link_opt in $ac_arg; do
21807 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21810 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21815 # Ignore these flags.
21816 -lang* | -lcrt*.o | -lc | -lgcc | -libmil | -LANG:=* | -LIST:* | -LNO:*)
21819 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21822 # These flags, when seen by themselves, take an argument.
21823 # We remove the space between option and argument and re-iterate
21824 # unless we find an empty arg or a new option (starting with -)
21835 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
21837 for ac_i in $ac_cv_f77_libs; do
21838 if test x"$ac_j" = x"$ac_i"; then
21844 if test x"$ac_exists" = xtrue; then
21847 ac_arg="$ac_arg $ac_j"
21848 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
21855 for ac_i in $ac_cv_f77_libs; do
21856 if test x"$ac_arg" = x"$ac_i"; then
21862 if test x"$ac_exists" = xtrue; then
21865 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21869 -zallextract*| -zdefaultextract)
21870 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21872 # Ignore everything else.
21875 # restore positional arguments
21876 set X $ac_save_positional; shift
21878 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
21879 # then we insist that the "run path" must be an absolute path (i.e. it
21880 # must begin with a "/").
21881 case `(uname -sr) 2>/dev/null` in
21883 ac_ld_run_path=`echo $ac_f77_v_output |
21884 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21885 test "x$ac_ld_run_path" != x &&
21886 if test "$ac_compiler_gnu" = yes; then
21887 for ac_link_opt in $ac_ld_run_path; do
21888 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21891 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21895 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21898 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
21899 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
21900 FLIBS="$ac_cv_f77_libs"
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21915 case "${host_os}" in
21916 *mingw* | *cygwin*)
21918 # on MinGW/Cygwin extra LDFLAGS are required
21919 no_undefined="-no-undefined"
21922 NO_UNDEFINED=$no_undefined
21928 # Find any Python interpreter.
21929 if test -z "$PYTHON"; then
21930 for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
21932 # Extract the first word of "$ac_prog", so it can be a program name with args.
21933 set dummy $ac_prog; ac_word=$2
21934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21936 if test "${ac_cv_path_PYTHON+set}" = set; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21945 for as_dir in $PATH
21948 test -z "$as_dir" && as_dir=.
21949 for ac_exec_ext in '' $ac_executable_extensions; do
21950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
21951 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21962 PYTHON=$ac_cv_path_PYTHON
21963 if test -n "$PYTHON"; then
21964 { echo "$as_me:$LINENO: result: $PYTHON" >&5
21965 echo "${ECHO_T}$PYTHON" >&6; }
21967 { echo "$as_me:$LINENO: result: no" >&5
21968 echo "${ECHO_T}no" >&6; }
21972 test -n "$PYTHON" && break
21974 test -n "$PYTHON" || PYTHON=":"
21977 am_display_PYTHON=python
21980 if test "$PYTHON" = :; then
21981 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21982 echo "$as_me: error: no suitable Python interpreter found" >&2;}
21983 { (exit 1); exit 1; }; }
21987 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21988 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21989 if test "${am_cv_python_version+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21992 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21994 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21995 echo "${ECHO_T}$am_cv_python_version" >&6; }
21996 PYTHON_VERSION=$am_cv_python_version
22000 PYTHON_PREFIX='${prefix}'
22002 PYTHON_EXEC_PREFIX='${exec_prefix}'
22006 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
22007 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
22008 if test "${am_cv_python_platform+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22011 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
22013 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
22014 echo "${ECHO_T}$am_cv_python_platform" >&6; }
22015 PYTHON_PLATFORM=$am_cv_python_platform
22020 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
22021 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
22022 if test "${am_cv_python_pythondir+set}" = set; then
22023 echo $ECHO_N "(cached) $ECHO_C" >&6
22025 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
22026 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
22028 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
22029 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
22030 pythondir=$am_cv_python_pythondir
22034 pkgpythondir=\${pythondir}/$PACKAGE
22037 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
22038 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
22039 if test "${am_cv_python_pyexecdir+set}" = set; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
22043 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
22045 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
22046 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
22047 pyexecdir=$am_cv_python_pyexecdir
22051 pkgpyexecdir=\${pyexecdir}/$PACKAGE
22062 # For Fedora Core 5 and 6, see ticket:39 in Trac
22063 if test -f '/etc/redhat-release'; then
22064 if (echo $pyexecdir | grep -q lib64); then
22065 pythondir="$pyexecdir"
22069 # Check for Python include path
22070 { echo "$as_me:$LINENO: checking for Python include path" >&5
22071 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
22072 if test -z "$PYTHON" ; then
22073 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
22074 echo "$as_me: error: cannot find Python path" >&2;}
22075 { (exit 1); exit 1; }; }
22078 # ask distutils which include path we should use
22080 import distutils.sysconfig
22082 path = distutils.sysconfig.get_python_inc(plat_specific=False)
22084 path = path.replace("\\", "/")
22087 python_path=`$PYTHON -c "$python_cmd"`
22088 { echo "$as_me:$LINENO: result: $python_path" >&5
22089 echo "${ECHO_T}$python_path" >&6; }
22090 if test -z "$python_path" ; then
22091 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
22092 echo "$as_me: error: cannot find Python include path" >&2;}
22093 { (exit 1); exit 1; }; }
22096 PYTHON_CPPFLAGS=-I$python_path
22099 # Check for Python headers usability
22100 python_save_CPPFLAGS=$CPPFLAGS
22101 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
22103 for ac_header in Python.h
22105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22110 echo $ECHO_N "(cached) $ECHO_C" >&6
22112 ac_res=`eval echo '${'$as_ac_Header'}'`
22113 { echo "$as_me:$LINENO: result: $ac_res" >&5
22114 echo "${ECHO_T}$ac_res" >&6; }
22116 # Is the header compilable?
22117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22119 cat >conftest.$ac_ext <<_ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h. */
22125 $ac_includes_default
22126 #include <$ac_header>
22128 rm -f conftest.$ac_objext
22129 if { (ac_try="$ac_compile"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_compile") 2>conftest.er1
22137 grep -v '^ *+' conftest.er1 >conftest.err
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
22142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22143 { (case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_try") 2>&5
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest.$ac_objext'
22153 { (case "(($ac_try" in
22154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155 *) ac_try_echo=$ac_try;;
22157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158 (eval "$ac_try") 2>&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 ac_header_compiler=yes
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22167 ac_header_compiler=no
22170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22172 echo "${ECHO_T}$ac_header_compiler" >&6; }
22174 # Is the header present?
22175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22177 cat >conftest.$ac_ext <<_ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h. */
22183 #include <$ac_header>
22185 if { (ac_try="$ac_cpp conftest.$ac_ext"
22186 case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22193 grep -v '^ *+' conftest.er1 >conftest.err
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } >/dev/null; then
22198 if test -s conftest.err; then
22199 ac_cpp_err=$ac_c_preproc_warn_flag
22200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22207 if test -z "$ac_cpp_err"; then
22208 ac_header_preproc=yes
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 ac_header_preproc=no
22216 rm -f conftest.err conftest.$ac_ext
22217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22218 echo "${ECHO_T}$ac_header_preproc" >&6; }
22220 # So? What about this header?
22221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22227 ac_header_preproc=yes
22230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22248 echo $ECHO_N "(cached) $ECHO_C" >&6
22250 eval "$as_ac_Header=\$ac_header_preproc"
22252 ac_res=`eval echo '${'$as_ac_Header'}'`
22253 { echo "$as_me:$LINENO: result: $ac_res" >&5
22254 echo "${ECHO_T}$ac_res" >&6; }
22257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22258 cat >>confdefs.h <<_ACEOF
22259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22263 { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
22264 echo "$as_me: error: cannot find usable Python headers" >&2;}
22265 { (exit 1); exit 1; }; }
22270 CPPFLAGS="$python_save_CPPFLAGS"
22272 # Only set this on mingw and cygwin hosts, (only implemented
22273 # for mingw host, for crosscompiling you need to trick this)
22277 *mingw* | *cygwin* )
22278 { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
22279 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
22282 import distutils.sysconfig
22284 path = distutils.sysconfig.get_config_var("LIBPL")
22286 path = distutils.sysconfig.PREFIX + "/libs"
22288 path = path.replace("\\", "/")
22291 python_stdlib_path=`$PYTHON -c "$python_cmd"`
22293 python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
22294 libpython_name="python$PYTHON_VERSION"
22296 # Standard install of python for win32 has libpython24.a
22297 # instead of libpython2.4.a so we check for the library
22298 # without the dot in the version number.
22300 python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
22301 if test -n "$python_stdlib_filename" ; then
22302 libpython_name="python$python_version_nodot"
22305 PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
22306 { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
22307 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
22308 # Replace all backslashes in PYTHON Paths with forward slashes
22309 pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
22310 pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
22311 pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
22312 pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
22325 # Extract the first word of "swig", so it can be a program name with args.
22326 set dummy swig; ac_word=$2
22327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22329 if test "${ac_cv_prog_SWIG+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 if test -n "$SWIG"; then
22333 ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
22335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22336 for as_dir in $PATH
22339 test -z "$as_dir" && as_dir=.
22340 for ac_exec_ext in '' $ac_executable_extensions; do
22341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22342 ac_cv_prog_SWIG="`which swig`"
22343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22352 SWIG=$ac_cv_prog_SWIG
22353 if test -n "$SWIG"; then
22354 { echo "$as_me:$LINENO: result: $SWIG" >&5
22355 echo "${ECHO_T}$SWIG" >&6; }
22357 { echo "$as_me:$LINENO: result: no" >&5
22358 echo "${ECHO_T}no" >&6; }
22362 if test -z "$SWIG" ; then
22363 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&5
22364 echo "$as_me: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&2;}
22365 { (exit 1); exit 1; }; }
22367 elif test -n "1.3.23" ; then
22368 { echo "$as_me:$LINENO: checking for SWIG version" >&5
22369 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22370 swig_version=`$SWIG -version 2>&1 | \
22371 awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
22372 { echo "$as_me:$LINENO: result: $swig_version" >&5
22373 echo "${ECHO_T}$swig_version" >&6; }
22374 if test -n "$swig_version" ; then
22375 swig_version=`echo $swig_version | \
22376 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22377 swig_required_version=`echo 1.3.23 | \
22378 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
22379 if test $swig_required_version -gt $swig_version ; then
22380 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
22381 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
22382 { (exit 1); exit 1; }; }
22385 { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
22386 echo "$as_me: error: cannot determine SWIG version" >&2;}
22387 { (exit 1); exit 1; }; }
22394 if test "$SWIG" != "false" ; then
22401 if test "$SWIG" != "false" ; then
22402 SWIG_PYTHON_LIB=-lswigpy
22404 SWIG_PYTHON_OPT=-python
22407 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22412 # Extract the first word of "xmlto", so it can be a program name with args.
22413 set dummy xmlto; ac_word=$2
22414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22416 if test "${ac_cv_prog_XMLTO+set}" = set; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22419 if test -n "$XMLTO"; then
22420 ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
22422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22423 for as_dir in $PATH
22426 test -z "$as_dir" && as_dir=.
22427 for ac_exec_ext in '' $ac_executable_extensions; do
22428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22429 ac_cv_prog_XMLTO="yes"
22430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22439 XMLTO=$ac_cv_prog_XMLTO
22440 if test -n "$XMLTO"; then
22441 { echo "$as_me:$LINENO: result: $XMLTO" >&5
22442 echo "${ECHO_T}$XMLTO" >&6; }
22444 { echo "$as_me:$LINENO: result: no" >&5
22445 echo "${ECHO_T}no" >&6; }
22451 if test x$XMLTO = xyes; then
22453 HAS_XMLTO_FALSE='#'
22461 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
22462 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
22463 if test "${ac_cv_lib_socket_socket+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22466 ac_check_lib_save_LIBS=$LIBS
22467 LIBS="-lsocket $LIBS"
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22475 /* Override any GCC internal prototype to avoid an error.
22476 Use char because int might match the return type of a GCC
22477 builtin and then its argument prototype would still apply. */
22490 rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_link") 2>conftest.er1
22499 grep -v '^ *+' conftest.er1 >conftest.err
22501 cat conftest.err >&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); } &&
22504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22505 { (case "(($ac_try" in
22506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507 *) ac_try_echo=$ac_try;;
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510 (eval "$ac_try") 2>&5
22512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); }; } &&
22514 { ac_try='test -s conftest$ac_exeext'
22515 { (case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_try") 2>&5
22522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); }; }; then
22524 ac_cv_lib_socket_socket=yes
22526 echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22529 ac_cv_lib_socket_socket=no
22532 rm -f core conftest.err conftest.$ac_objext \
22533 conftest$ac_exeext conftest.$ac_ext
22534 LIBS=$ac_check_lib_save_LIBS
22536 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
22537 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
22538 if test $ac_cv_lib_socket_socket = yes; then
22539 cat >>confdefs.h <<_ACEOF
22540 #define HAVE_LIBSOCKET 1
22543 LIBS="-lsocket $LIBS"
22549 # Check first for POSIX
22554 ac_cpp='$CPP $CPPFLAGS'
22555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22561 # We used to check for pthread.h first, but this fails if pthread.h
22562 # requires special compiler flags (e.g. on True64 or Sequent).
22563 # It gets checked for in the link test anyway.
22565 # First of all, check if the user has set any of the PTHREAD_LIBS,
22566 # etcetera environment variables, and if threads linking works using
22568 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
22569 save_CFLAGS="$CFLAGS"
22570 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22572 LIBS="$PTHREAD_LIBS $LIBS"
22573 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
22574 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
22575 cat >conftest.$ac_ext <<_ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22582 /* Override any GCC internal prototype to avoid an error.
22583 Use char because int might match the return type of a GCC
22584 builtin and then its argument prototype would still apply. */
22588 char pthread_join ();
22592 return pthread_join ();
22597 rm -f conftest.$ac_objext conftest$ac_exeext
22598 if { (ac_try="$ac_link"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_link") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22612 { (case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_try") 2>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); }; } &&
22621 { ac_try='test -s conftest$ac_exeext'
22622 { (case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_try") 2>&5
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; }; then
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22639 rm -f core conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22641 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22642 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22643 if test x"$acx_pthread_ok" = xno; then
22648 CFLAGS="$save_CFLAGS"
22651 # We must check for the threads library under a number of different
22652 # names; the ordering is very important because some systems
22653 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22654 # libraries is broken (non-POSIX).
22656 # Create a list of thread flags to try. Items starting with a "-" are
22657 # C compiler flags, and other items are library names, except for "none"
22658 # which indicates that we try without any flags at all.
22660 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
22662 # The ordering *is* (sometimes) important. Some notes on the
22663 # individual items follow:
22665 # pthreads: AIX (must check this before -lpthread)
22666 # none: in case threads are in libc; should be tried before -Kthread and
22667 # other compiler flags to prevent continual compiler warnings
22668 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22669 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22670 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22671 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22672 # -pthreads: Solaris/gcc
22673 # -mthreads: Mingw32/gcc, Lynx/gcc
22674 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22675 # doesn't hurt to check since this sometimes defines pthreads too;
22676 # also defines -D_REENTRANT)
22677 # pthread: Linux, etcetera
22678 # --thread-safe: KAI C++
22680 case "${host_cpu}-${host_os}" in
22683 # On Solaris (at least, for some versions), libc contains stubbed
22684 # (non-functional) versions of the pthreads routines, so link-based
22685 # tests will erroneously succeed. (We need to link with -pthread or
22686 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22687 # a function called by this macro, so we could check for that, but
22688 # who knows whether they'll stub that too in a future libc.) So,
22689 # we'll just look for -pthreads and -lpthread first:
22691 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
22695 if test x"$acx_pthread_ok" = xno; then
22696 for flag in $acx_pthread_flags; do
22700 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22701 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
22705 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22706 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
22707 PTHREAD_CFLAGS="$flag"
22711 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22712 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
22713 PTHREAD_LIBS="-l$flag"
22718 save_CFLAGS="$CFLAGS"
22719 LIBS="$PTHREAD_LIBS $LIBS"
22720 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22722 # Check for various functions. We must include pthread.h,
22723 # since some functions may be macros. (On the Sequent, we
22724 # need a special flag -Kthread to make this header compile.)
22725 # We check for pthread_join because it is in -lpthread on IRIX
22726 # while pthread_create is in libc. We check for pthread_attr_init
22727 # due to DEC craziness with -lpthreads. We check for
22728 # pthread_cleanup_push because it is one of the few pthread
22729 # functions on Solaris that doesn't have a non-functional libc stub.
22730 # We try pthread_create on general principles.
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 #include <pthread.h>
22741 pthread_t th; pthread_join(th, 0);
22742 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22743 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22748 rm -f conftest.$ac_objext conftest$ac_exeext
22749 if { (ac_try="$ac_link"
22750 case "(($ac_try" in
22751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752 *) ac_try_echo=$ac_try;;
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755 (eval "$ac_link") 2>conftest.er1
22757 grep -v '^ *+' conftest.er1 >conftest.err
22759 cat conftest.err >&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); } &&
22762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22763 { (case "(($ac_try" in
22764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22765 *) ac_try_echo=$ac_try;;
22767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22768 (eval "$ac_try") 2>&5
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest$ac_exeext'
22773 { (case "(($ac_try" in
22774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775 *) ac_try_echo=$ac_try;;
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778 (eval "$ac_try") 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; }; then
22784 echo "$as_me: failed program was:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22790 rm -f core conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
22794 CFLAGS="$save_CFLAGS"
22796 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22797 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22798 if test "x$acx_pthread_ok" = xyes; then
22807 # Various other checks:
22808 if test "x$acx_pthread_ok" = xyes; then
22810 LIBS="$PTHREAD_LIBS $LIBS"
22811 save_CFLAGS="$CFLAGS"
22812 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22814 # Detect AIX lossage: threads are created detached by default
22815 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22816 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22817 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22818 cat >conftest.$ac_ext <<_ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22824 #include <pthread.h>
22828 int attr=PTHREAD_CREATE_JOINABLE;
22833 rm -f conftest.$ac_objext conftest$ac_exeext
22834 if { (ac_try="$ac_link"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_link") 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } &&
22847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22848 { (case "(($ac_try" in
22849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22850 *) ac_try_echo=$ac_try;;
22852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22853 (eval "$ac_try") 2>&5
22855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856 (exit $ac_status); }; } &&
22857 { ac_try='test -s conftest$ac_exeext'
22858 { (case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_try") 2>&5
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867 ok=PTHREAD_CREATE_JOINABLE
22869 echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22875 rm -f core conftest.err conftest.$ac_objext \
22876 conftest$ac_exeext conftest.$ac_ext
22877 if test x"$ok" = xunknown; then
22878 cat >conftest.$ac_ext <<_ACEOF
22881 cat confdefs.h >>conftest.$ac_ext
22882 cat >>conftest.$ac_ext <<_ACEOF
22883 /* end confdefs.h. */
22884 #include <pthread.h>
22888 int attr=PTHREAD_CREATE_UNDETACHED;
22893 rm -f conftest.$ac_objext conftest$ac_exeext
22894 if { (ac_try="$ac_link"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_link") 2>conftest.er1
22902 grep -v '^ *+' conftest.er1 >conftest.err
22904 cat conftest.err >&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } &&
22907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22908 { (case "(($ac_try" in
22909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22910 *) ac_try_echo=$ac_try;;
22912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22913 (eval "$ac_try") 2>&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); }; } &&
22917 { ac_try='test -s conftest$ac_exeext'
22918 { (case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_try") 2>&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; }; then
22927 ok=PTHREAD_CREATE_UNDETACHED
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22935 rm -f core conftest.err conftest.$ac_objext \
22936 conftest$ac_exeext conftest.$ac_ext
22938 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22940 cat >>confdefs.h <<\_ACEOF
22941 #define PTHREAD_CREATE_JOINABLE $ok
22945 { echo "$as_me:$LINENO: result: ${ok}" >&5
22946 echo "${ECHO_T}${ok}" >&6; }
22947 if test x"$ok" = xunknown; then
22948 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22949 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22952 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22953 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22955 case "${host_cpu}-${host_os}" in
22956 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22957 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22959 { echo "$as_me:$LINENO: result: ${flag}" >&5
22960 echo "${ECHO_T}${flag}" >&6; }
22961 if test "x$flag" != xno; then
22962 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22966 CFLAGS="$save_CFLAGS"
22968 # More AIX lossage: must compile with cc_r
22969 # Extract the first word of "cc_r", so it can be a program name with args.
22970 set dummy cc_r; ac_word=$2
22971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22973 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22976 if test -n "$PTHREAD_CC"; then
22977 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22980 for as_dir in $PATH
22983 test -z "$as_dir" && as_dir=.
22984 for ac_exec_ext in '' $ac_executable_extensions; do
22985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22986 ac_cv_prog_PTHREAD_CC="cc_r"
22987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22994 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22997 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22998 if test -n "$PTHREAD_CC"; then
22999 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23000 echo "${ECHO_T}$PTHREAD_CC" >&6; }
23002 { echo "$as_me:$LINENO: result: no" >&5
23003 echo "${ECHO_T}no" >&6; }
23015 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23016 if test x"$acx_pthread_ok" = xyes; then
23019 cat >>confdefs.h <<\_ACEOF
23020 #define OMNITHREAD_POSIX 1
23028 # If no POSIX support found, then check for NT threads
23029 { echo "$as_me:$LINENO: checking for NT threads" >&5
23030 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
23032 cat >conftest.$ac_ext <<_ACEOF
23034 #include <windows.h>
23035 #include <winbase.h>
23036 int main() { InitializeCriticalSection(NULL); return 0; }
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (ac_try="$ac_link"
23041 case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_link") 2>conftest.er1
23048 grep -v '^ *+' conftest.er1 >conftest.err
23050 cat conftest.err >&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } &&
23053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23054 { (case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059 (eval "$ac_try") 2>&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; } &&
23063 { ac_try='test -s conftest$ac_exeext'
23064 { (case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_try") 2>&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23076 cat >>confdefs.h <<\_ACEOF
23077 #define OMNITHREAD_NT 1
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23085 { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads. pthreads not found.
23086 See \`config.log' for more details." >&5
23087 echo "$as_me: error: GNU Radio requires POSIX threads. pthreads not found.
23088 See \`config.log' for more details." >&2;}
23089 { (exit 1); exit 1; }; }
23093 rm -f core conftest.err conftest.$ac_objext \
23094 conftest$ac_exeext conftest.$ac_ext
23095 { echo "$as_me:$LINENO: result: yes" >&5
23096 echo "${ECHO_T}yes" >&6; }
23100 ac_cpp='$CPP $CPPFLAGS'
23101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23108 if test "x$ot_posix" = xyes; then
23109 OMNITHREAD_POSIX_TRUE=
23110 OMNITHREAD_POSIX_FALSE='#'
23112 OMNITHREAD_POSIX_TRUE='#'
23113 OMNITHREAD_POSIX_FALSE=
23118 if test "x$ot_nt" = xyes; then
23119 OMNITHREAD_NT_TRUE=
23120 OMNITHREAD_NT_FALSE='#'
23122 OMNITHREAD_NT_TRUE='#'
23123 OMNITHREAD_NT_FALSE=
23128 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23129 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
23130 if test "${ac_cv_search_clock_gettime+set}" = set; then
23131 echo $ECHO_N "(cached) $ECHO_C" >&6
23133 ac_func_search_save_LIBS=$LIBS
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23141 /* Override any GCC internal prototype to avoid an error.
23142 Use char because int might match the return type of a GCC
23143 builtin and then its argument prototype would still apply. */
23147 char clock_gettime ();
23151 return clock_gettime ();
23156 for ac_lib in '' rt; do
23157 if test -z "$ac_lib"; then
23158 ac_res="none required"
23161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23163 rm -f conftest.$ac_objext conftest$ac_exeext
23164 if { (ac_try="$ac_link"
23165 case "(($ac_try" in
23166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167 *) ac_try_echo=$ac_try;;
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170 (eval "$ac_link") 2>conftest.er1
23172 grep -v '^ *+' conftest.er1 >conftest.err
23174 cat conftest.err >&5
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); } &&
23177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23178 { (case "(($ac_try" in
23179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23180 *) ac_try_echo=$ac_try;;
23182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23183 (eval "$ac_try") 2>&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); }; } &&
23187 { ac_try='test -s conftest$ac_exeext'
23188 { (case "(($ac_try" in
23189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23190 *) ac_try_echo=$ac_try;;
23192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23193 (eval "$ac_try") 2>&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); }; }; then
23197 ac_cv_search_clock_gettime=$ac_res
23199 echo "$as_me: failed program was:" >&5
23200 sed 's/^/| /' conftest.$ac_ext >&5
23205 rm -f core conftest.err conftest.$ac_objext \
23207 if test "${ac_cv_search_clock_gettime+set}" = set; then
23211 if test "${ac_cv_search_clock_gettime+set}" = set; then
23214 ac_cv_search_clock_gettime=no
23216 rm conftest.$ac_ext
23217 LIBS=$ac_func_search_save_LIBS
23219 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23220 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
23221 ac_res=$ac_cv_search_clock_gettime
23222 if test "$ac_res" != no; then
23223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23224 PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
23230 for ac_func in clock_gettime gettimeofday nanosleep
23232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 cat >conftest.$ac_ext <<_ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23246 #define $ac_func innocuous_$ac_func
23248 /* System header to define __stub macros and hopefully few prototypes,
23249 which can conflict with char $ac_func (); below.
23250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23251 <limits.h> exists even on freestanding compilers. */
23254 # include <limits.h>
23256 # include <assert.h>
23261 /* Override any GCC internal prototype to avoid an error.
23262 Use char because int might match the return type of a GCC
23263 builtin and then its argument prototype would still apply. */
23268 /* The GNU C library defines this for functions which it implements
23269 to always fail with ENOSYS. Some functions are actually named
23270 something starting with __ and the normal name is an alias. */
23271 #if defined __stub_$ac_func || defined __stub___$ac_func
23278 return $ac_func ();
23283 rm -f conftest.$ac_objext conftest$ac_exeext
23284 if { (ac_try="$ac_link"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_link") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } &&
23297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23298 { (case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303 (eval "$ac_try") 2>&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); }; } &&
23307 { ac_try='test -s conftest$ac_exeext'
23308 { (case "(($ac_try" in
23309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310 *) ac_try_echo=$ac_try;;
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313 (eval "$ac_try") 2>&5
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; }; then
23317 eval "$as_ac_var=yes"
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 eval "$as_ac_var=no"
23325 rm -f core conftest.err conftest.$ac_objext \
23326 conftest$ac_exeext conftest.$ac_ext
23328 ac_res=`eval echo '${'$as_ac_var'}'`
23329 { echo "$as_me:$LINENO: result: $ac_res" >&5
23330 echo "${ECHO_T}$ac_res" >&6; }
23331 if test `eval echo '${'$as_ac_var'}'` = yes; then
23332 cat >>confdefs.h <<_ACEOF
23333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23341 #AC_SUBST(PTHREAD_CFLAGS)
23342 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
23343 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
23345 if test "x$CXX_FOR_BUILD" = x
23347 CXX_FOR_BUILD=${CXX}
23354 ac_cpp='$CPP $CPPFLAGS'
23355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23362 for ac_header in sys/ipc.h sys/shm.h
23364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23369 echo $ECHO_N "(cached) $ECHO_C" >&6
23371 ac_res=`eval echo '${'$as_ac_Header'}'`
23372 { echo "$as_me:$LINENO: result: $ac_res" >&5
23373 echo "${ECHO_T}$ac_res" >&6; }
23375 # Is the header compilable?
23376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 $ac_includes_default
23385 #include <$ac_header>
23387 rm -f conftest.$ac_objext
23388 if { (ac_try="$ac_compile"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_compile") 2>conftest.er1
23396 grep -v '^ *+' conftest.er1 >conftest.err
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); } &&
23401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23402 { (case "(($ac_try" in
23403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404 *) ac_try_echo=$ac_try;;
23406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23407 (eval "$ac_try") 2>&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); }; } &&
23411 { ac_try='test -s conftest.$ac_objext'
23412 { (case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_try") 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; }; then
23421 ac_header_compiler=yes
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23426 ac_header_compiler=no
23429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23431 echo "${ECHO_T}$ac_header_compiler" >&6; }
23433 # Is the header present?
23434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23436 cat >conftest.$ac_ext <<_ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 #include <$ac_header>
23444 if { (ac_try="$ac_cpp conftest.$ac_ext"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1 >conftest.err
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } >/dev/null; then
23457 if test -s conftest.err; then
23458 ac_cpp_err=$ac_c_preproc_warn_flag
23459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23466 if test -z "$ac_cpp_err"; then
23467 ac_header_preproc=yes
23469 echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23472 ac_header_preproc=no
23475 rm -f conftest.err conftest.$ac_ext
23476 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23477 echo "${ECHO_T}$ac_header_preproc" >&6; }
23479 # So? What about this header?
23480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23486 ac_header_preproc=yes
23489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23509 eval "$as_ac_Header=\$ac_header_preproc"
23511 ac_res=`eval echo '${'$as_ac_Header'}'`
23512 { echo "$as_me:$LINENO: result: $ac_res" >&5
23513 echo "${ECHO_T}$ac_res" >&6; }
23516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23517 cat >>confdefs.h <<_ACEOF
23518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23527 { echo "$as_me:$LINENO: checking for library containing shmat" >&5
23528 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
23529 if test "${ac_cv_search_shmat+set}" = set; then
23530 echo $ECHO_N "(cached) $ECHO_C" >&6
23532 ac_func_search_save_LIBS=$LIBS
23533 cat >conftest.$ac_ext <<_ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23540 /* Override any GCC internal prototype to avoid an error.
23541 Use char because int might match the return type of a GCC
23542 builtin and then its argument prototype would still apply. */
23555 for ac_lib in '' cygipc ipc; do
23556 if test -z "$ac_lib"; then
23557 ac_res="none required"
23560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23562 rm -f conftest.$ac_objext conftest$ac_exeext
23563 if { (ac_try="$ac_link"
23564 case "(($ac_try" in
23565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23566 *) ac_try_echo=$ac_try;;
23568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23569 (eval "$ac_link") 2>conftest.er1
23571 grep -v '^ *+' conftest.er1 >conftest.err
23573 cat conftest.err >&5
23574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23575 (exit $ac_status); } &&
23576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23577 { (case "(($ac_try" in
23578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23579 *) ac_try_echo=$ac_try;;
23581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23582 (eval "$ac_try") 2>&5
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest$ac_exeext'
23587 { (case "(($ac_try" in
23588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23589 *) ac_try_echo=$ac_try;;
23591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23592 (eval "$ac_try") 2>&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 ac_cv_search_shmat=$ac_res
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23604 rm -f core conftest.err conftest.$ac_objext \
23606 if test "${ac_cv_search_shmat+set}" = set; then
23610 if test "${ac_cv_search_shmat+set}" = set; then
23613 ac_cv_search_shmat=no
23615 rm conftest.$ac_ext
23616 LIBS=$ac_func_search_save_LIBS
23618 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
23619 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
23620 ac_res=$ac_cv_search_shmat
23621 if test "$ac_res" != no; then
23622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23625 { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
23626 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
23633 ac_cpp='$CPP $CPPFLAGS'
23634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23641 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23642 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
23643 if test "${ac_cv_header_stdc+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 cat >conftest.$ac_ext <<_ACEOF
23649 cat confdefs.h >>conftest.$ac_ext
23650 cat >>conftest.$ac_ext <<_ACEOF
23651 /* end confdefs.h. */
23652 #include <stdlib.h>
23653 #include <stdarg.h>
23654 #include <string.h>
23665 rm -f conftest.$ac_objext
23666 if { (ac_try="$ac_compile"
23667 case "(($ac_try" in
23668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669 *) ac_try_echo=$ac_try;;
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672 (eval "$ac_compile") 2>conftest.er1
23674 grep -v '^ *+' conftest.er1 >conftest.err
23676 cat conftest.err >&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } &&
23679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23680 { (case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_try") 2>&5
23687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23688 (exit $ac_status); }; } &&
23689 { ac_try='test -s conftest.$ac_objext'
23690 { (case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_try") 2>&5
23697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698 (exit $ac_status); }; }; then
23699 ac_cv_header_stdc=yes
23701 echo "$as_me: failed program was:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 ac_cv_header_stdc=no
23707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 if test $ac_cv_header_stdc = yes; then
23710 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23711 cat >conftest.$ac_ext <<_ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23717 #include <string.h>
23720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23721 $EGREP "memchr" >/dev/null 2>&1; then
23724 ac_cv_header_stdc=no
23730 if test $ac_cv_header_stdc = yes; then
23731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 #include <stdlib.h>
23741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23742 $EGREP "free" >/dev/null 2>&1; then
23745 ac_cv_header_stdc=no
23751 if test $ac_cv_header_stdc = yes; then
23752 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23753 if test "$cross_compiling" = yes; then
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23763 #include <stdlib.h>
23764 #if ((' ' & 0x0FF) == 0x020)
23765 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23766 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23768 # define ISLOWER(c) \
23769 (('a' <= (c) && (c) <= 'i') \
23770 || ('j' <= (c) && (c) <= 'r') \
23771 || ('s' <= (c) && (c) <= 'z'))
23772 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23775 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23780 for (i = 0; i < 256; i++)
23781 if (XOR (islower (i), ISLOWER (i))
23782 || toupper (i) != TOUPPER (i))
23787 rm -f conftest$ac_exeext
23788 if { (ac_try="$ac_link"
23789 case "(($ac_try" in
23790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23791 *) ac_try_echo=$ac_try;;
23793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23794 (eval "$ac_link") 2>&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23798 { (case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23803 (eval "$ac_try") 2>&5
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; }; then
23809 echo "$as_me: program exited with status $ac_status" >&5
23810 echo "$as_me: failed program was:" >&5
23811 sed 's/^/| /' conftest.$ac_ext >&5
23813 ( exit $ac_status )
23814 ac_cv_header_stdc=no
23816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23822 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23823 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
23824 if test $ac_cv_header_stdc = yes; then
23826 cat >>confdefs.h <<\_ACEOF
23827 #define STDC_HEADERS 1
23832 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23833 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
23834 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23837 cat >conftest.$ac_ext <<_ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h. */
23843 #include <sys/types.h>
23844 #include <sys/wait.h>
23845 #ifndef WEXITSTATUS
23846 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23849 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23857 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23862 rm -f conftest.$ac_objext
23863 if { (ac_try="$ac_compile"
23864 case "(($ac_try" in
23865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23866 *) ac_try_echo=$ac_try;;
23868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23869 (eval "$ac_compile") 2>conftest.er1
23871 grep -v '^ *+' conftest.er1 >conftest.err
23873 cat conftest.err >&5
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } &&
23876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23877 { (case "(($ac_try" in
23878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23879 *) ac_try_echo=$ac_try;;
23881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23882 (eval "$ac_try") 2>&5
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest.$ac_objext'
23887 { (case "(($ac_try" in
23888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889 *) ac_try_echo=$ac_try;;
23891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23892 (eval "$ac_try") 2>&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; }; then
23896 ac_cv_header_sys_wait_h=yes
23898 echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_cv_header_sys_wait_h=no
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23907 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
23908 if test $ac_cv_header_sys_wait_h = yes; then
23910 cat >>confdefs.h <<\_ACEOF
23911 #define HAVE_SYS_WAIT_H 1
23923 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23932 ac_res=`eval echo '${'$as_ac_Header'}'`
23933 { echo "$as_me:$LINENO: result: $ac_res" >&5
23934 echo "${ECHO_T}$ac_res" >&6; }
23936 # Is the header compilable?
23937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23939 cat >conftest.$ac_ext <<_ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h. */
23945 $ac_includes_default
23946 #include <$ac_header>
23948 rm -f conftest.$ac_objext
23949 if { (ac_try="$ac_compile"
23950 case "(($ac_try" in
23951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23952 *) ac_try_echo=$ac_try;;
23954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23955 (eval "$ac_compile") 2>conftest.er1
23957 grep -v '^ *+' conftest.er1 >conftest.err
23959 cat conftest.err >&5
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); } &&
23962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23963 { (case "(($ac_try" in
23964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23965 *) ac_try_echo=$ac_try;;
23967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23968 (eval "$ac_try") 2>&5
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); }; } &&
23972 { ac_try='test -s conftest.$ac_objext'
23973 { (case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_try") 2>&5
23980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); }; }; then
23982 ac_header_compiler=yes
23984 echo "$as_me: failed program was:" >&5
23985 sed 's/^/| /' conftest.$ac_ext >&5
23987 ac_header_compiler=no
23990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23992 echo "${ECHO_T}$ac_header_compiler" >&6; }
23994 # Is the header present?
23995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23997 cat >conftest.$ac_ext <<_ACEOF
24000 cat confdefs.h >>conftest.$ac_ext
24001 cat >>conftest.$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 #include <$ac_header>
24005 if { (ac_try="$ac_cpp conftest.$ac_ext"
24006 case "(($ac_try" in
24007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24008 *) ac_try_echo=$ac_try;;
24010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } >/dev/null; then
24018 if test -s conftest.err; then
24019 ac_cpp_err=$ac_c_preproc_warn_flag
24020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24027 if test -z "$ac_cpp_err"; then
24028 ac_header_preproc=yes
24030 echo "$as_me: failed program was:" >&5
24031 sed 's/^/| /' conftest.$ac_ext >&5
24033 ac_header_preproc=no
24036 rm -f conftest.err conftest.$ac_ext
24037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24038 echo "${ECHO_T}$ac_header_preproc" >&6; }
24040 # So? What about this header?
24041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24047 ac_header_preproc=yes
24050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24070 eval "$as_ac_Header=\$ac_header_preproc"
24072 ac_res=`eval echo '${'$as_ac_Header'}'`
24073 { echo "$as_me:$LINENO: result: $ac_res" >&5
24074 echo "${ECHO_T}$ac_res" >&6; }
24077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24078 cat >>confdefs.h <<_ACEOF
24079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24090 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
24092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24097 echo $ECHO_N "(cached) $ECHO_C" >&6
24099 ac_res=`eval echo '${'$as_ac_Header'}'`
24100 { echo "$as_me:$LINENO: result: $ac_res" >&5
24101 echo "${ECHO_T}$ac_res" >&6; }
24103 # Is the header compilable?
24104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24106 cat >conftest.$ac_ext <<_ACEOF
24109 cat confdefs.h >>conftest.$ac_ext
24110 cat >>conftest.$ac_ext <<_ACEOF
24111 /* end confdefs.h. */
24112 $ac_includes_default
24113 #include <$ac_header>
24115 rm -f conftest.$ac_objext
24116 if { (ac_try="$ac_compile"
24117 case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24122 (eval "$ac_compile") 2>conftest.er1
24124 grep -v '^ *+' conftest.er1 >conftest.err
24126 cat conftest.err >&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } &&
24129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24130 { (case "(($ac_try" in
24131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24132 *) ac_try_echo=$ac_try;;
24134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24135 (eval "$ac_try") 2>&5
24137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138 (exit $ac_status); }; } &&
24139 { ac_try='test -s conftest.$ac_objext'
24140 { (case "(($ac_try" in
24141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142 *) ac_try_echo=$ac_try;;
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_try") 2>&5
24147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148 (exit $ac_status); }; }; then
24149 ac_header_compiler=yes
24151 echo "$as_me: failed program was:" >&5
24152 sed 's/^/| /' conftest.$ac_ext >&5
24154 ac_header_compiler=no
24157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24159 echo "${ECHO_T}$ac_header_compiler" >&6; }
24161 # Is the header present?
24162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24164 cat >conftest.$ac_ext <<_ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 #include <$ac_header>
24172 if { (ac_try="$ac_cpp conftest.$ac_ext"
24173 case "(($ac_try" in
24174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175 *) ac_try_echo=$ac_try;;
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24180 grep -v '^ *+' conftest.er1 >conftest.err
24182 cat conftest.err >&5
24183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } >/dev/null; then
24185 if test -s conftest.err; then
24186 ac_cpp_err=$ac_c_preproc_warn_flag
24187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24194 if test -z "$ac_cpp_err"; then
24195 ac_header_preproc=yes
24197 echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24200 ac_header_preproc=no
24203 rm -f conftest.err conftest.$ac_ext
24204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24205 echo "${ECHO_T}$ac_header_preproc" >&6; }
24207 # So? What about this header?
24208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24214 ac_header_preproc=yes
24217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24235 echo $ECHO_N "(cached) $ECHO_C" >&6
24237 eval "$as_ac_Header=\$ac_header_preproc"
24239 ac_res=`eval echo '${'$as_ac_Header'}'`
24240 { echo "$as_me:$LINENO: result: $ac_res" >&5
24241 echo "${ECHO_T}$ac_res" >&6; }
24244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24245 cat >>confdefs.h <<_ACEOF
24246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24256 for ac_header in sys/resource.h stdint.h sched.h
24258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24263 echo $ECHO_N "(cached) $ECHO_C" >&6
24265 ac_res=`eval echo '${'$as_ac_Header'}'`
24266 { echo "$as_me:$LINENO: result: $ac_res" >&5
24267 echo "${ECHO_T}$ac_res" >&6; }
24269 # Is the header compilable?
24270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24272 cat >conftest.$ac_ext <<_ACEOF
24275 cat confdefs.h >>conftest.$ac_ext
24276 cat >>conftest.$ac_ext <<_ACEOF
24277 /* end confdefs.h. */
24278 $ac_includes_default
24279 #include <$ac_header>
24281 rm -f conftest.$ac_objext
24282 if { (ac_try="$ac_compile"
24283 case "(($ac_try" in
24284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24285 *) ac_try_echo=$ac_try;;
24287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24288 (eval "$ac_compile") 2>conftest.er1
24290 grep -v '^ *+' conftest.er1 >conftest.err
24292 cat conftest.err >&5
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } &&
24295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24296 { (case "(($ac_try" in
24297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24298 *) ac_try_echo=$ac_try;;
24300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24301 (eval "$ac_try") 2>&5
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; } &&
24305 { ac_try='test -s conftest.$ac_objext'
24306 { (case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24311 (eval "$ac_try") 2>&5
24313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24314 (exit $ac_status); }; }; then
24315 ac_header_compiler=yes
24317 echo "$as_me: failed program was:" >&5
24318 sed 's/^/| /' conftest.$ac_ext >&5
24320 ac_header_compiler=no
24323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24325 echo "${ECHO_T}$ac_header_compiler" >&6; }
24327 # Is the header present?
24328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24330 cat >conftest.$ac_ext <<_ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h. */
24336 #include <$ac_header>
24338 if { (ac_try="$ac_cpp conftest.$ac_ext"
24339 case "(($ac_try" in
24340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24341 *) ac_try_echo=$ac_try;;
24343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24346 grep -v '^ *+' conftest.er1 >conftest.err
24348 cat conftest.err >&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); } >/dev/null; then
24351 if test -s conftest.err; then
24352 ac_cpp_err=$ac_c_preproc_warn_flag
24353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24360 if test -z "$ac_cpp_err"; then
24361 ac_header_preproc=yes
24363 echo "$as_me: failed program was:" >&5
24364 sed 's/^/| /' conftest.$ac_ext >&5
24366 ac_header_preproc=no
24369 rm -f conftest.err conftest.$ac_ext
24370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24371 echo "${ECHO_T}$ac_header_preproc" >&6; }
24373 # So? What about this header?
24374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24380 ac_header_preproc=yes
24383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24401 echo $ECHO_N "(cached) $ECHO_C" >&6
24403 eval "$as_ac_Header=\$ac_header_preproc"
24405 ac_res=`eval echo '${'$as_ac_Header'}'`
24406 { echo "$as_me:$LINENO: result: $ac_res" >&5
24407 echo "${ECHO_T}$ac_res" >&6; }
24410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24411 cat >>confdefs.h <<_ACEOF
24412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24420 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24421 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24422 if test "${ac_cv_c_const+set}" = set; then
24423 echo $ECHO_N "(cached) $ECHO_C" >&6
24425 cat >conftest.$ac_ext <<_ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24435 /* FIXME: Include the comments suggested by Paul. */
24436 #ifndef __cplusplus
24437 /* Ultrix mips cc rejects this. */
24438 typedef int charset[2];
24440 /* SunOS 4.1.1 cc rejects this. */
24441 char const *const *ccp;
24443 /* NEC SVR4.0.2 mips cc rejects this. */
24444 struct point {int x, y;};
24445 static struct point const zero = {0,0};
24446 /* AIX XL C 1.02.0.0 rejects this.
24447 It does not let you subtract one const X* pointer from another in
24448 an arm of an if-expression whose if-part is not a constant
24450 const char *g = "string";
24451 ccp = &g + (g ? g-g : 0);
24452 /* HPUX 7.0 cc rejects these. */
24455 ccp = (char const *const *) p;
24456 { /* SCO 3.2v4 cc rejects this. */
24458 char const *s = 0 ? (char *) 0 : (char const *) 0;
24463 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24464 int x[] = {25, 17};
24465 const int *foo = &x[0];
24468 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24469 typedef const int *iptr;
24473 { /* AIX XL C 1.02.0.0 rejects this saying
24474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24475 struct s { int j; const int *ap[3]; };
24476 struct s *b; b->j = 5;
24478 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24479 const int foo = 10;
24480 if (!foo) return 0;
24482 return !x[0] && !zero.x;
24489 rm -f conftest.$ac_objext
24490 if { (ac_try="$ac_compile"
24491 case "(($ac_try" in
24492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493 *) ac_try_echo=$ac_try;;
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496 (eval "$ac_compile") 2>conftest.er1
24498 grep -v '^ *+' conftest.er1 >conftest.err
24500 cat conftest.err >&5
24501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24502 (exit $ac_status); } &&
24503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24504 { (case "(($ac_try" in
24505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506 *) ac_try_echo=$ac_try;;
24508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509 (eval "$ac_try") 2>&5
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); }; } &&
24513 { ac_try='test -s conftest.$ac_objext'
24514 { (case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519 (eval "$ac_try") 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; }; then
24525 echo "$as_me: failed program was:" >&5
24526 sed 's/^/| /' conftest.$ac_ext >&5
24531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24533 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24534 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24535 if test $ac_cv_c_const = no; then
24537 cat >>confdefs.h <<\_ACEOF
24543 { echo "$as_me:$LINENO: checking for inline" >&5
24544 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
24545 if test "${ac_cv_c_inline+set}" = set; then
24546 echo $ECHO_N "(cached) $ECHO_C" >&6
24549 for ac_kw in inline __inline__ __inline; do
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 #ifndef __cplusplus
24558 static $ac_kw foo_t static_foo () {return 0; }
24559 $ac_kw foo_t foo () {return 0; }
24563 rm -f conftest.$ac_objext
24564 if { (ac_try="$ac_compile"
24565 case "(($ac_try" in
24566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567 *) ac_try_echo=$ac_try;;
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570 (eval "$ac_compile") 2>conftest.er1
24572 grep -v '^ *+' conftest.er1 >conftest.err
24574 cat conftest.err >&5
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } &&
24577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24578 { (case "(($ac_try" in
24579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580 *) ac_try_echo=$ac_try;;
24582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583 (eval "$ac_try") 2>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; } &&
24587 { ac_try='test -s conftest.$ac_objext'
24588 { (case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_try") 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 ac_cv_c_inline=$ac_kw
24599 echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24606 test "$ac_cv_c_inline" != no && break
24610 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
24611 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
24614 case $ac_cv_c_inline in
24617 case $ac_cv_c_inline in
24619 *) ac_val=$ac_cv_c_inline;;
24621 cat >>confdefs.h <<_ACEOF
24622 #ifndef __cplusplus
24623 #define inline $ac_val
24629 { echo "$as_me:$LINENO: checking for size_t" >&5
24630 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24631 if test "${ac_cv_type_size_t+set}" = set; then
24632 echo $ECHO_N "(cached) $ECHO_C" >&6
24634 cat >conftest.$ac_ext <<_ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h. */
24640 $ac_includes_default
24641 typedef size_t ac__type_new_;
24645 if ((ac__type_new_ *) 0)
24647 if (sizeof (ac__type_new_))
24653 rm -f conftest.$ac_objext
24654 if { (ac_try="$ac_compile"
24655 case "(($ac_try" in
24656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24657 *) ac_try_echo=$ac_try;;
24659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24662 grep -v '^ *+' conftest.er1 >conftest.err
24664 cat conftest.err >&5
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } &&
24667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24668 { (case "(($ac_try" in
24669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24670 *) ac_try_echo=$ac_try;;
24672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24673 (eval "$ac_try") 2>&5
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; } &&
24677 { ac_try='test -s conftest.$ac_objext'
24678 { (case "(($ac_try" in
24679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24680 *) ac_try_echo=$ac_try;;
24682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24683 (eval "$ac_try") 2>&5
24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24686 (exit $ac_status); }; }; then
24687 ac_cv_type_size_t=yes
24689 echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24692 ac_cv_type_size_t=no
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24699 if test $ac_cv_type_size_t = yes; then
24703 cat >>confdefs.h <<_ACEOF
24704 #define size_t unsigned int
24709 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24710 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
24711 if test "${ac_cv_header_time+set}" = set; then
24712 echo $ECHO_N "(cached) $ECHO_C" >&6
24714 cat >conftest.$ac_ext <<_ACEOF
24717 cat confdefs.h >>conftest.$ac_ext
24718 cat >>conftest.$ac_ext <<_ACEOF
24719 /* end confdefs.h. */
24720 #include <sys/types.h>
24721 #include <sys/time.h>
24727 if ((struct tm *) 0)
24733 rm -f conftest.$ac_objext
24734 if { (ac_try="$ac_compile"
24735 case "(($ac_try" in
24736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737 *) ac_try_echo=$ac_try;;
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740 (eval "$ac_compile") 2>conftest.er1
24742 grep -v '^ *+' conftest.er1 >conftest.err
24744 cat conftest.err >&5
24745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24746 (exit $ac_status); } &&
24747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24748 { (case "(($ac_try" in
24749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750 *) ac_try_echo=$ac_try;;
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753 (eval "$ac_try") 2>&5
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; } &&
24757 { ac_try='test -s conftest.$ac_objext'
24758 { (case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24763 (eval "$ac_try") 2>&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); }; }; then
24767 ac_cv_header_time=yes
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24772 ac_cv_header_time=no
24775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24777 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24778 echo "${ECHO_T}$ac_cv_header_time" >&6; }
24779 if test $ac_cv_header_time = yes; then
24781 cat >>confdefs.h <<\_ACEOF
24782 #define TIME_WITH_SYS_TIME 1
24787 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24788 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
24789 if test "${ac_cv_c_bigendian+set}" = set; then
24790 echo $ECHO_N "(cached) $ECHO_C" >&6
24792 # See if sys/param.h defines the BYTE_ORDER macro.
24793 cat >conftest.$ac_ext <<_ACEOF
24796 cat confdefs.h >>conftest.$ac_ext
24797 cat >>conftest.$ac_ext <<_ACEOF
24798 /* end confdefs.h. */
24799 #include <sys/types.h>
24800 #include <sys/param.h>
24805 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24806 bogus endian macros
24813 rm -f conftest.$ac_objext
24814 if { (ac_try="$ac_compile"
24815 case "(($ac_try" in
24816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817 *) ac_try_echo=$ac_try;;
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820 (eval "$ac_compile") 2>conftest.er1
24822 grep -v '^ *+' conftest.er1 >conftest.err
24824 cat conftest.err >&5
24825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24826 (exit $ac_status); } &&
24827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24828 { (case "(($ac_try" in
24829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830 *) ac_try_echo=$ac_try;;
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833 (eval "$ac_try") 2>&5
24835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24836 (exit $ac_status); }; } &&
24837 { ac_try='test -s conftest.$ac_objext'
24838 { (case "(($ac_try" in
24839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840 *) ac_try_echo=$ac_try;;
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843 (eval "$ac_try") 2>&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; }; then
24847 # It does; now see whether it defined to BIG_ENDIAN or not.
24848 cat >conftest.$ac_ext <<_ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h. */
24854 #include <sys/types.h>
24855 #include <sys/param.h>
24860 #if BYTE_ORDER != BIG_ENDIAN
24868 rm -f conftest.$ac_objext
24869 if { (ac_try="$ac_compile"
24870 case "(($ac_try" in
24871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24872 *) ac_try_echo=$ac_try;;
24874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24875 (eval "$ac_compile") 2>conftest.er1
24877 grep -v '^ *+' conftest.er1 >conftest.err
24879 cat conftest.err >&5
24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881 (exit $ac_status); } &&
24882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24883 { (case "(($ac_try" in
24884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24885 *) ac_try_echo=$ac_try;;
24887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24888 (eval "$ac_try") 2>&5
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); }; } &&
24892 { ac_try='test -s conftest.$ac_objext'
24893 { (case "(($ac_try" in
24894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24895 *) ac_try_echo=$ac_try;;
24897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24898 (eval "$ac_try") 2>&5
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); }; }; then
24902 ac_cv_c_bigendian=yes
24904 echo "$as_me: failed program was:" >&5
24905 sed 's/^/| /' conftest.$ac_ext >&5
24907 ac_cv_c_bigendian=no
24910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24912 echo "$as_me: failed program was:" >&5
24913 sed 's/^/| /' conftest.$ac_ext >&5
24915 # It does not; compile a test program.
24916 if test "$cross_compiling" = yes; then
24917 # try to guess the endianness by grepping values into an object file
24918 ac_cv_c_bigendian=unknown
24919 cat >conftest.$ac_ext <<_ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24926 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24927 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24928 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24929 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24930 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24934 _ascii (); _ebcdic ();
24939 rm -f conftest.$ac_objext
24940 if { (ac_try="$ac_compile"
24941 case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_compile") 2>conftest.er1
24948 grep -v '^ *+' conftest.er1 >conftest.err
24950 cat conftest.err >&5
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); } &&
24953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24954 { (case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24959 (eval "$ac_try") 2>&5
24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962 (exit $ac_status); }; } &&
24963 { ac_try='test -s conftest.$ac_objext'
24964 { (case "(($ac_try" in
24965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24966 *) ac_try_echo=$ac_try;;
24968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24969 (eval "$ac_try") 2>&5
24971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972 (exit $ac_status); }; }; then
24973 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24974 ac_cv_c_bigendian=yes
24976 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24977 if test "$ac_cv_c_bigendian" = unknown; then
24978 ac_cv_c_bigendian=no
24980 # finding both strings is unlikely to happen, but who knows?
24981 ac_cv_c_bigendian=unknown
24985 echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24993 cat >conftest.$ac_ext <<_ACEOF
24996 cat confdefs.h >>conftest.$ac_ext
24997 cat >>conftest.$ac_ext <<_ACEOF
24998 /* end confdefs.h. */
24999 $ac_includes_default
25004 /* Are we little or big endian? From Harbison&Steele. */
25008 char c[sizeof (long int)];
25011 return u.c[sizeof (long int) - 1] == 1;
25017 rm -f conftest$ac_exeext
25018 if { (ac_try="$ac_link"
25019 case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024 (eval "$ac_link") 2>&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25028 { (case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_try") 2>&5
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; }; then
25037 ac_cv_c_bigendian=no
25039 echo "$as_me: program exited with status $ac_status" >&5
25040 echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25043 ( exit $ac_status )
25044 ac_cv_c_bigendian=yes
25046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
25055 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
25056 case $ac_cv_c_bigendian in
25059 cat >>confdefs.h <<\_ACEOF
25060 #define WORDS_BIGENDIAN 1
25066 { { echo "$as_me:$LINENO: error: unknown endianness
25067 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
25068 echo "$as_me: error: unknown endianness
25069 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
25070 { (exit 1); exit 1; }; } ;;
25073 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25074 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25075 if test "${ac_cv_struct_tm+set}" = set; then
25076 echo $ECHO_N "(cached) $ECHO_C" >&6
25078 cat >conftest.$ac_ext <<_ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h. */
25084 #include <sys/types.h>
25090 struct tm *tp; tp->tm_sec;
25095 rm -f conftest.$ac_objext
25096 if { (ac_try="$ac_compile"
25097 case "(($ac_try" in
25098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25099 *) ac_try_echo=$ac_try;;
25101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25102 (eval "$ac_compile") 2>conftest.er1
25104 grep -v '^ *+' conftest.er1 >conftest.err
25106 cat conftest.err >&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); } &&
25109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25110 { (case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115 (eval "$ac_try") 2>&5
25117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118 (exit $ac_status); }; } &&
25119 { ac_try='test -s conftest.$ac_objext'
25120 { (case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25125 (eval "$ac_try") 2>&5
25127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); }; }; then
25129 ac_cv_struct_tm=time.h
25131 echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25134 ac_cv_struct_tm=sys/time.h
25137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25140 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25141 if test $ac_cv_struct_tm = sys/time.h; then
25143 cat >>confdefs.h <<\_ACEOF
25144 #define TM_IN_SYS_TIME 1
25150 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
25151 # for constant arguments. Useless!
25152 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
25153 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
25154 if test "${ac_cv_working_alloca_h+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 cat >conftest.$ac_ext <<_ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163 #include <alloca.h>
25167 char *p = (char *) alloca (2 * sizeof (int));
25173 rm -f conftest.$ac_objext conftest$ac_exeext
25174 if { (ac_try="$ac_link"
25175 case "(($ac_try" in
25176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25177 *) ac_try_echo=$ac_try;;
25179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25180 (eval "$ac_link") 2>conftest.er1
25182 grep -v '^ *+' conftest.er1 >conftest.err
25184 cat conftest.err >&5
25185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25186 (exit $ac_status); } &&
25187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25188 { (case "(($ac_try" in
25189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190 *) ac_try_echo=$ac_try;;
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193 (eval "$ac_try") 2>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest$ac_exeext'
25198 { (case "(($ac_try" in
25199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200 *) ac_try_echo=$ac_try;;
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203 (eval "$ac_try") 2>&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; }; then
25207 ac_cv_working_alloca_h=yes
25209 echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25212 ac_cv_working_alloca_h=no
25215 rm -f core conftest.err conftest.$ac_objext \
25216 conftest$ac_exeext conftest.$ac_ext
25218 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
25219 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
25220 if test $ac_cv_working_alloca_h = yes; then
25222 cat >>confdefs.h <<\_ACEOF
25223 #define HAVE_ALLOCA_H 1
25228 { echo "$as_me:$LINENO: checking for alloca" >&5
25229 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
25230 if test "${ac_cv_func_alloca_works+set}" = set; then
25231 echo $ECHO_N "(cached) $ECHO_C" >&6
25233 cat >conftest.$ac_ext <<_ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h. */
25240 # define alloca __builtin_alloca
25243 # include <malloc.h>
25244 # define alloca _alloca
25247 # include <alloca.h>
25252 # ifndef alloca /* predefined by HP cc +Olibcalls */
25263 char *p = (char *) alloca (1);
25269 rm -f conftest.$ac_objext conftest$ac_exeext
25270 if { (ac_try="$ac_link"
25271 case "(($ac_try" in
25272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25273 *) ac_try_echo=$ac_try;;
25275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25276 (eval "$ac_link") 2>conftest.er1
25278 grep -v '^ *+' conftest.er1 >conftest.err
25280 cat conftest.err >&5
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); } &&
25283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25284 { (case "(($ac_try" in
25285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289 (eval "$ac_try") 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; } &&
25293 { ac_try='test -s conftest$ac_exeext'
25294 { (case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_try") 2>&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; }; then
25303 ac_cv_func_alloca_works=yes
25305 echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25308 ac_cv_func_alloca_works=no
25311 rm -f core conftest.err conftest.$ac_objext \
25312 conftest$ac_exeext conftest.$ac_ext
25314 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
25315 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
25317 if test $ac_cv_func_alloca_works = yes; then
25319 cat >>confdefs.h <<\_ACEOF
25320 #define HAVE_ALLOCA 1
25324 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
25325 # that cause trouble. Some versions do not even contain alloca or
25326 # contain a buggy version. If you still want to use their alloca,
25327 # use ar to extract alloca.o from them instead of compiling alloca.c.
25329 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
25331 cat >>confdefs.h <<\_ACEOF
25336 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
25337 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
25338 if test "${ac_cv_os_cray+set}" = set; then
25339 echo $ECHO_N "(cached) $ECHO_C" >&6
25341 cat >conftest.$ac_ext <<_ACEOF
25344 cat confdefs.h >>conftest.$ac_ext
25345 cat >>conftest.$ac_ext <<_ACEOF
25346 /* end confdefs.h. */
25347 #if defined CRAY && ! defined CRAY2
25354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25355 $EGREP "webecray" >/dev/null 2>&1; then
25363 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
25364 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
25365 if test $ac_cv_os_cray = yes; then
25366 for ac_func in _getb67 GETB67 getb67; do
25367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25371 echo $ECHO_N "(cached) $ECHO_C" >&6
25373 cat >conftest.$ac_ext <<_ACEOF
25376 cat confdefs.h >>conftest.$ac_ext
25377 cat >>conftest.$ac_ext <<_ACEOF
25378 /* end confdefs.h. */
25379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25381 #define $ac_func innocuous_$ac_func
25383 /* System header to define __stub macros and hopefully few prototypes,
25384 which can conflict with char $ac_func (); below.
25385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25386 <limits.h> exists even on freestanding compilers. */
25389 # include <limits.h>
25391 # include <assert.h>
25396 /* Override any GCC internal prototype to avoid an error.
25397 Use char because int might match the return type of a GCC
25398 builtin and then its argument prototype would still apply. */
25403 /* The GNU C library defines this for functions which it implements
25404 to always fail with ENOSYS. Some functions are actually named
25405 something starting with __ and the normal name is an alias. */
25406 #if defined __stub_$ac_func || defined __stub___$ac_func
25413 return $ac_func ();
25418 rm -f conftest.$ac_objext conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422 *) ac_try_echo=$ac_try;;
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425 (eval "$ac_link") 2>conftest.er1
25427 grep -v '^ *+' conftest.er1 >conftest.err
25429 cat conftest.err >&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } &&
25432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25433 { (case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_try") 2>&5
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); }; } &&
25442 { ac_try='test -s conftest$ac_exeext'
25443 { (case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448 (eval "$ac_try") 2>&5
25450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451 (exit $ac_status); }; }; then
25452 eval "$as_ac_var=yes"
25454 echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25457 eval "$as_ac_var=no"
25460 rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
25463 ac_res=`eval echo '${'$as_ac_var'}'`
25464 { echo "$as_me:$LINENO: result: $ac_res" >&5
25465 echo "${ECHO_T}$ac_res" >&6; }
25466 if test `eval echo '${'$as_ac_var'}'` = yes; then
25468 cat >>confdefs.h <<_ACEOF
25469 #define CRAY_STACKSEG_END $ac_func
25478 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25479 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
25480 if test "${ac_cv_c_stack_direction+set}" = set; then
25481 echo $ECHO_N "(cached) $ECHO_C" >&6
25483 if test "$cross_compiling" = yes; then
25484 ac_cv_c_stack_direction=0
25486 cat >conftest.$ac_ext <<_ACEOF
25489 cat confdefs.h >>conftest.$ac_ext
25490 cat >>conftest.$ac_ext <<_ACEOF
25491 /* end confdefs.h. */
25492 $ac_includes_default
25494 find_stack_direction ()
25496 static char *addr = 0;
25501 return find_stack_direction ();
25504 return (&dummy > addr) ? 1 : -1;
25510 return find_stack_direction () < 0;
25513 rm -f conftest$ac_exeext
25514 if { (ac_try="$ac_link"
25515 case "(($ac_try" in
25516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25517 *) ac_try_echo=$ac_try;;
25519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25520 (eval "$ac_link") 2>&5
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25524 { (case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25529 (eval "$ac_try") 2>&5
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; }; then
25533 ac_cv_c_stack_direction=1
25535 echo "$as_me: program exited with status $ac_status" >&5
25536 echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25539 ( exit $ac_status )
25540 ac_cv_c_stack_direction=-1
25542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25547 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25548 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
25550 cat >>confdefs.h <<_ACEOF
25551 #define STACK_DIRECTION $ac_cv_c_stack_direction
25557 { echo "$as_me:$LINENO: checking for function prototypes" >&5
25558 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
25559 if test "$ac_cv_prog_cc_c89" != no; then
25560 { echo "$as_me:$LINENO: result: yes" >&5
25561 echo "${ECHO_T}yes" >&6; }
25563 cat >>confdefs.h <<\_ACEOF
25564 #define PROTOTYPES 1
25568 cat >>confdefs.h <<\_ACEOF
25569 #define __PROTOTYPES 1
25573 { echo "$as_me:$LINENO: result: no" >&5
25574 echo "${ECHO_T}no" >&6; }
25577 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
25578 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
25579 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 ac_cv_func_setvbuf_reversed=no
25583 cat >conftest.$ac_ext <<_ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h. */
25591 int (setvbuf) (FILE *, int, char *, size_t);
25596 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
25601 rm -f conftest.$ac_objext conftest$ac_exeext
25602 if { (ac_try="$ac_link"
25603 case "(($ac_try" in
25604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25605 *) ac_try_echo=$ac_try;;
25607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25608 (eval "$ac_link") 2>conftest.er1
25610 grep -v '^ *+' conftest.er1 >conftest.err
25612 cat conftest.err >&5
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } &&
25615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25616 { (case "(($ac_try" in
25617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25618 *) ac_try_echo=$ac_try;;
25620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25621 (eval "$ac_try") 2>&5
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); }; } &&
25625 { ac_try='test -s conftest$ac_exeext'
25626 { (case "(($ac_try" in
25627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628 *) ac_try_echo=$ac_try;;
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631 (eval "$ac_try") 2>&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); }; }; then
25635 cat >conftest.$ac_ext <<_ACEOF
25638 cat confdefs.h >>conftest.$ac_ext
25639 cat >>conftest.$ac_ext <<_ACEOF
25640 /* end confdefs.h. */
25643 int (setvbuf) (FILE *, int, char *, size_t);
25648 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
25653 rm -f conftest.$ac_objext conftest$ac_exeext
25654 if { (ac_try="$ac_link"
25655 case "(($ac_try" in
25656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657 *) ac_try_echo=$ac_try;;
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660 (eval "$ac_link") 2>conftest.er1
25662 grep -v '^ *+' conftest.er1 >conftest.err
25664 cat conftest.err >&5
25665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666 (exit $ac_status); } &&
25667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25668 { (case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25673 (eval "$ac_try") 2>&5
25675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25676 (exit $ac_status); }; } &&
25677 { ac_try='test -s conftest$ac_exeext'
25678 { (case "(($ac_try" in
25679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680 *) ac_try_echo=$ac_try;;
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683 (eval "$ac_try") 2>&5
25685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686 (exit $ac_status); }; }; then
25687 # It compiles and links either way, so it must not be declared
25688 # with a prototype and most likely this is a K&R C compiler.
25690 if test "$cross_compiling" = yes; then
25691 : # Assume setvbuf is not reversed when cross-compiling.
25693 cat >conftest.$ac_ext <<_ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h. */
25699 $ac_includes_default
25703 /* This call has the arguments reversed.
25704 A reversed system may check and see that the address of buf
25705 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
25707 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
25710 return 0; /* Non-reversed systems SEGV here. */
25715 rm -f conftest$ac_exeext
25716 if { (ac_try="$ac_link"
25717 case "(($ac_try" in
25718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25719 *) ac_try_echo=$ac_try;;
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722 (eval "$ac_link") 2>&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25726 { (case "(($ac_try" in
25727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25728 *) ac_try_echo=$ac_try;;
25730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25731 (eval "$ac_try") 2>&5
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); }; }; then
25735 ac_cv_func_setvbuf_reversed=yes
25737 echo "$as_me: program exited with status $ac_status" >&5
25738 echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25746 ac_cv_func_setvbuf_reversed=yes
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25754 rm -f core conftest.err conftest.$ac_objext \
25755 conftest$ac_exeext conftest.$ac_ext
25757 echo "$as_me: failed program was:" >&5
25758 sed 's/^/| /' conftest.$ac_ext >&5
25763 rm -f core conftest.err conftest.$ac_objext \
25764 conftest$ac_exeext conftest.$ac_ext
25766 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
25767 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
25768 if test $ac_cv_func_setvbuf_reversed = yes; then
25770 cat >>confdefs.h <<\_ACEOF
25771 #define SETVBUF_REVERSED 1
25777 for ac_func in vprintf
25779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25780 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25783 echo $ECHO_N "(cached) $ECHO_C" >&6
25785 cat >conftest.$ac_ext <<_ACEOF
25788 cat confdefs.h >>conftest.$ac_ext
25789 cat >>conftest.$ac_ext <<_ACEOF
25790 /* end confdefs.h. */
25791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25793 #define $ac_func innocuous_$ac_func
25795 /* System header to define __stub macros and hopefully few prototypes,
25796 which can conflict with char $ac_func (); below.
25797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25798 <limits.h> exists even on freestanding compilers. */
25801 # include <limits.h>
25803 # include <assert.h>
25808 /* Override any GCC internal prototype to avoid an error.
25809 Use char because int might match the return type of a GCC
25810 builtin and then its argument prototype would still apply. */
25815 /* The GNU C library defines this for functions which it implements
25816 to always fail with ENOSYS. Some functions are actually named
25817 something starting with __ and the normal name is an alias. */
25818 #if defined __stub_$ac_func || defined __stub___$ac_func
25825 return $ac_func ();
25830 rm -f conftest.$ac_objext conftest$ac_exeext
25831 if { (ac_try="$ac_link"
25832 case "(($ac_try" in
25833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25834 *) ac_try_echo=$ac_try;;
25836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25837 (eval "$ac_link") 2>conftest.er1
25839 grep -v '^ *+' conftest.er1 >conftest.err
25841 cat conftest.err >&5
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); } &&
25844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25845 { (case "(($ac_try" in
25846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25847 *) ac_try_echo=$ac_try;;
25849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25850 (eval "$ac_try") 2>&5
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); }; } &&
25854 { ac_try='test -s conftest$ac_exeext'
25855 { (case "(($ac_try" in
25856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857 *) ac_try_echo=$ac_try;;
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860 (eval "$ac_try") 2>&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); }; }; then
25864 eval "$as_ac_var=yes"
25866 echo "$as_me: failed program was:" >&5
25867 sed 's/^/| /' conftest.$ac_ext >&5
25869 eval "$as_ac_var=no"
25872 rm -f core conftest.err conftest.$ac_objext \
25873 conftest$ac_exeext conftest.$ac_ext
25875 ac_res=`eval echo '${'$as_ac_var'}'`
25876 { echo "$as_me:$LINENO: result: $ac_res" >&5
25877 echo "${ECHO_T}$ac_res" >&6; }
25878 if test `eval echo '${'$as_ac_var'}'` = yes; then
25879 cat >>confdefs.h <<_ACEOF
25880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25883 { echo "$as_me:$LINENO: checking for _doprnt" >&5
25884 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
25885 if test "${ac_cv_func__doprnt+set}" = set; then
25886 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 cat >conftest.$ac_ext <<_ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h. */
25894 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25896 #define _doprnt innocuous__doprnt
25898 /* System header to define __stub macros and hopefully few prototypes,
25899 which can conflict with char _doprnt (); below.
25900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25901 <limits.h> exists even on freestanding compilers. */
25904 # include <limits.h>
25906 # include <assert.h>
25911 /* Override any GCC internal prototype to avoid an error.
25912 Use char because int might match the return type of a GCC
25913 builtin and then its argument prototype would still apply. */
25918 /* The GNU C library defines this for functions which it implements
25919 to always fail with ENOSYS. Some functions are actually named
25920 something starting with __ and the normal name is an alias. */
25921 #if defined __stub__doprnt || defined __stub____doprnt
25933 rm -f conftest.$ac_objext conftest$ac_exeext
25934 if { (ac_try="$ac_link"
25935 case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940 (eval "$ac_link") 2>conftest.er1
25942 grep -v '^ *+' conftest.er1 >conftest.err
25944 cat conftest.err >&5
25945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } &&
25947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25948 { (case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_try") 2>&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); }; } &&
25957 { ac_try='test -s conftest$ac_exeext'
25958 { (case "(($ac_try" in
25959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960 *) ac_try_echo=$ac_try;;
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963 (eval "$ac_try") 2>&5
25965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966 (exit $ac_status); }; }; then
25967 ac_cv_func__doprnt=yes
25969 echo "$as_me: failed program was:" >&5
25970 sed 's/^/| /' conftest.$ac_ext >&5
25972 ac_cv_func__doprnt=no
25975 rm -f core conftest.err conftest.$ac_objext \
25976 conftest$ac_exeext conftest.$ac_ext
25978 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25979 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
25980 if test $ac_cv_func__doprnt = yes; then
25982 cat >>confdefs.h <<\_ACEOF
25983 #define HAVE_DOPRNT 1
26000 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
26002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26003 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26005 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26006 echo $ECHO_N "(cached) $ECHO_C" >&6
26008 cat >conftest.$ac_ext <<_ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h. */
26014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26016 #define $ac_func innocuous_$ac_func
26018 /* System header to define __stub macros and hopefully few prototypes,
26019 which can conflict with char $ac_func (); below.
26020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26021 <limits.h> exists even on freestanding compilers. */
26024 # include <limits.h>
26026 # include <assert.h>
26031 /* Override any GCC internal prototype to avoid an error.
26032 Use char because int might match the return type of a GCC
26033 builtin and then its argument prototype would still apply. */
26038 /* The GNU C library defines this for functions which it implements
26039 to always fail with ENOSYS. Some functions are actually named
26040 something starting with __ and the normal name is an alias. */
26041 #if defined __stub_$ac_func || defined __stub___$ac_func
26048 return $ac_func ();
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } &&
26067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26068 { (case "(($ac_try" in
26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073 (eval "$ac_try") 2>&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); }; } &&
26077 { ac_try='test -s conftest$ac_exeext'
26078 { (case "(($ac_try" in
26079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26080 *) ac_try_echo=$ac_try;;
26082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26083 (eval "$ac_try") 2>&5
26085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086 (exit $ac_status); }; }; then
26087 eval "$as_ac_var=yes"
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26092 eval "$as_ac_var=no"
26095 rm -f core conftest.err conftest.$ac_objext \
26096 conftest$ac_exeext conftest.$ac_ext
26098 ac_res=`eval echo '${'$as_ac_var'}'`
26099 { echo "$as_me:$LINENO: result: $ac_res" >&5
26100 echo "${ECHO_T}$ac_res" >&6; }
26101 if test `eval echo '${'$as_ac_var'}'` = yes; then
26102 cat >>confdefs.h <<_ACEOF
26103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26113 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
26115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26119 echo $ECHO_N "(cached) $ECHO_C" >&6
26121 cat >conftest.$ac_ext <<_ACEOF
26124 cat confdefs.h >>conftest.$ac_ext
26125 cat >>conftest.$ac_ext <<_ACEOF
26126 /* end confdefs.h. */
26127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26129 #define $ac_func innocuous_$ac_func
26131 /* System header to define __stub macros and hopefully few prototypes,
26132 which can conflict with char $ac_func (); below.
26133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26134 <limits.h> exists even on freestanding compilers. */
26137 # include <limits.h>
26139 # include <assert.h>
26144 /* Override any GCC internal prototype to avoid an error.
26145 Use char because int might match the return type of a GCC
26146 builtin and then its argument prototype would still apply. */
26151 /* The GNU C library defines this for functions which it implements
26152 to always fail with ENOSYS. Some functions are actually named
26153 something starting with __ and the normal name is an alias. */
26154 #if defined __stub_$ac_func || defined __stub___$ac_func
26161 return $ac_func ();
26166 rm -f conftest.$ac_objext conftest$ac_exeext
26167 if { (ac_try="$ac_link"
26168 case "(($ac_try" in
26169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170 *) ac_try_echo=$ac_try;;
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173 (eval "$ac_link") 2>conftest.er1
26175 grep -v '^ *+' conftest.er1 >conftest.err
26177 cat conftest.err >&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } &&
26180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26181 { (case "(($ac_try" in
26182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26183 *) ac_try_echo=$ac_try;;
26185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26186 (eval "$ac_try") 2>&5
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; } &&
26190 { ac_try='test -s conftest$ac_exeext'
26191 { (case "(($ac_try" in
26192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193 *) ac_try_echo=$ac_try;;
26195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26196 (eval "$ac_try") 2>&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); }; }; then
26200 eval "$as_ac_var=yes"
26202 echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 eval "$as_ac_var=no"
26208 rm -f core conftest.err conftest.$ac_objext \
26209 conftest$ac_exeext conftest.$ac_ext
26211 ac_res=`eval echo '${'$as_ac_var'}'`
26212 { echo "$as_me:$LINENO: result: $ac_res" >&5
26213 echo "${ECHO_T}$ac_res" >&6; }
26214 if test `eval echo '${'$as_ac_var'}'` = yes; then
26215 cat >>confdefs.h <<_ACEOF
26216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26224 for ac_func in modf sqrt
26226 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26227 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26228 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26229 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26230 echo $ECHO_N "(cached) $ECHO_C" >&6
26232 cat >conftest.$ac_ext <<_ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h. */
26238 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26240 #define $ac_func innocuous_$ac_func
26242 /* System header to define __stub macros and hopefully few prototypes,
26243 which can conflict with char $ac_func (); below.
26244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26245 <limits.h> exists even on freestanding compilers. */
26248 # include <limits.h>
26250 # include <assert.h>
26255 /* Override any GCC internal prototype to avoid an error.
26256 Use char because int might match the return type of a GCC
26257 builtin and then its argument prototype would still apply. */
26262 /* The GNU C library defines this for functions which it implements
26263 to always fail with ENOSYS. Some functions are actually named
26264 something starting with __ and the normal name is an alias. */
26265 #if defined __stub_$ac_func || defined __stub___$ac_func
26272 return $ac_func ();
26277 rm -f conftest.$ac_objext conftest$ac_exeext
26278 if { (ac_try="$ac_link"
26279 case "(($ac_try" in
26280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281 *) ac_try_echo=$ac_try;;
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284 (eval "$ac_link") 2>conftest.er1
26286 grep -v '^ *+' conftest.er1 >conftest.err
26288 cat conftest.err >&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); } &&
26291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26292 { (case "(($ac_try" in
26293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26294 *) ac_try_echo=$ac_try;;
26296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26297 (eval "$ac_try") 2>&5
26299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26300 (exit $ac_status); }; } &&
26301 { ac_try='test -s conftest$ac_exeext'
26302 { (case "(($ac_try" in
26303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26304 *) ac_try_echo=$ac_try;;
26306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26307 (eval "$ac_try") 2>&5
26309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310 (exit $ac_status); }; }; then
26311 eval "$as_ac_var=yes"
26313 echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26316 eval "$as_ac_var=no"
26319 rm -f core conftest.err conftest.$ac_objext \
26320 conftest$ac_exeext conftest.$ac_ext
26322 ac_res=`eval echo '${'$as_ac_var'}'`
26323 { echo "$as_me:$LINENO: result: $ac_res" >&5
26324 echo "${ECHO_T}$ac_res" >&6; }
26325 if test `eval echo '${'$as_ac_var'}'` = yes; then
26326 cat >>confdefs.h <<_ACEOF
26327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26334 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
26335 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
26336 if test "${ac_cv_lib_m_sincos+set}" = set; then
26337 echo $ECHO_N "(cached) $ECHO_C" >&6
26339 ac_check_lib_save_LIBS=$LIBS
26341 cat >conftest.$ac_ext <<_ACEOF
26344 cat confdefs.h >>conftest.$ac_ext
26345 cat >>conftest.$ac_ext <<_ACEOF
26346 /* end confdefs.h. */
26348 /* Override any GCC internal prototype to avoid an error.
26349 Use char because int might match the return type of a GCC
26350 builtin and then its argument prototype would still apply. */
26363 rm -f conftest.$ac_objext conftest$ac_exeext
26364 if { (ac_try="$ac_link"
26365 case "(($ac_try" in
26366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26367 *) ac_try_echo=$ac_try;;
26369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26370 (eval "$ac_link") 2>conftest.er1
26372 grep -v '^ *+' conftest.er1 >conftest.err
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } &&
26377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26378 { (case "(($ac_try" in
26379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26380 *) ac_try_echo=$ac_try;;
26382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26383 (eval "$ac_try") 2>&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); }; } &&
26387 { ac_try='test -s conftest$ac_exeext'
26388 { (case "(($ac_try" in
26389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26390 *) ac_try_echo=$ac_try;;
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_try") 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; }; then
26397 ac_cv_lib_m_sincos=yes
26399 echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26402 ac_cv_lib_m_sincos=no
26405 rm -f core conftest.err conftest.$ac_objext \
26406 conftest$ac_exeext conftest.$ac_ext
26407 LIBS=$ac_check_lib_save_LIBS
26409 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
26410 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
26411 if test $ac_cv_lib_m_sincos = yes; then
26413 cat >>confdefs.h <<\_ACEOF
26414 #define HAVE_SINCOS 1
26419 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
26420 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
26421 if test "${ac_cv_lib_m_sincosf+set}" = set; then
26422 echo $ECHO_N "(cached) $ECHO_C" >&6
26424 ac_check_lib_save_LIBS=$LIBS
26426 cat >conftest.$ac_ext <<_ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h. */
26433 /* Override any GCC internal prototype to avoid an error.
26434 Use char because int might match the return type of a GCC
26435 builtin and then its argument prototype would still apply. */
26448 rm -f conftest.$ac_objext conftest$ac_exeext
26449 if { (ac_try="$ac_link"
26450 case "(($ac_try" in
26451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26452 *) ac_try_echo=$ac_try;;
26454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26455 (eval "$ac_link") 2>conftest.er1
26457 grep -v '^ *+' conftest.er1 >conftest.err
26459 cat conftest.err >&5
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); } &&
26462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26463 { (case "(($ac_try" in
26464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465 *) ac_try_echo=$ac_try;;
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468 (eval "$ac_try") 2>&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); }; } &&
26472 { ac_try='test -s conftest$ac_exeext'
26473 { (case "(($ac_try" in
26474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475 *) ac_try_echo=$ac_try;;
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478 (eval "$ac_try") 2>&5
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; }; then
26482 ac_cv_lib_m_sincosf=yes
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26487 ac_cv_lib_m_sincosf=no
26490 rm -f core conftest.err conftest.$ac_objext \
26491 conftest$ac_exeext conftest.$ac_ext
26492 LIBS=$ac_check_lib_save_LIBS
26494 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
26495 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
26496 if test $ac_cv_lib_m_sincosf = yes; then
26498 cat >>confdefs.h <<\_ACEOF
26499 #define HAVE_SINCOSF 1
26504 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
26505 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
26506 if test "${ac_cv_lib_m_sinf+set}" = set; then
26507 echo $ECHO_N "(cached) $ECHO_C" >&6
26509 ac_check_lib_save_LIBS=$LIBS
26511 cat >conftest.$ac_ext <<_ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h. */
26518 /* Override any GCC internal prototype to avoid an error.
26519 Use char because int might match the return type of a GCC
26520 builtin and then its argument prototype would still apply. */
26533 rm -f conftest.$ac_objext conftest$ac_exeext
26534 if { (ac_try="$ac_link"
26535 case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_link") 2>conftest.er1
26542 grep -v '^ *+' conftest.er1 >conftest.err
26544 cat conftest.err >&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } &&
26547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26548 { (case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_try") 2>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest$ac_exeext'
26558 { (case "(($ac_try" in
26559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26560 *) ac_try_echo=$ac_try;;
26562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26563 (eval "$ac_try") 2>&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); }; }; then
26567 ac_cv_lib_m_sinf=yes
26569 echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26572 ac_cv_lib_m_sinf=no
26575 rm -f core conftest.err conftest.$ac_objext \
26576 conftest$ac_exeext conftest.$ac_ext
26577 LIBS=$ac_check_lib_save_LIBS
26579 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
26580 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
26581 if test $ac_cv_lib_m_sinf = yes; then
26583 cat >>confdefs.h <<\_ACEOF
26584 #define HAVE_SINF 1
26589 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
26590 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
26591 if test "${ac_cv_lib_m_cosf+set}" = set; then
26592 echo $ECHO_N "(cached) $ECHO_C" >&6
26594 ac_check_lib_save_LIBS=$LIBS
26596 cat >conftest.$ac_ext <<_ACEOF
26599 cat confdefs.h >>conftest.$ac_ext
26600 cat >>conftest.$ac_ext <<_ACEOF
26601 /* end confdefs.h. */
26603 /* Override any GCC internal prototype to avoid an error.
26604 Use char because int might match the return type of a GCC
26605 builtin and then its argument prototype would still apply. */
26618 rm -f conftest.$ac_objext conftest$ac_exeext
26619 if { (ac_try="$ac_link"
26620 case "(($ac_try" in
26621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622 *) ac_try_echo=$ac_try;;
26624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26625 (eval "$ac_link") 2>conftest.er1
26627 grep -v '^ *+' conftest.er1 >conftest.err
26629 cat conftest.err >&5
26630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26631 (exit $ac_status); } &&
26632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26633 { (case "(($ac_try" in
26634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635 *) ac_try_echo=$ac_try;;
26637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26638 (eval "$ac_try") 2>&5
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; } &&
26642 { ac_try='test -s conftest$ac_exeext'
26643 { (case "(($ac_try" in
26644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645 *) ac_try_echo=$ac_try;;
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648 (eval "$ac_try") 2>&5
26650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651 (exit $ac_status); }; }; then
26652 ac_cv_lib_m_cosf=yes
26654 echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26657 ac_cv_lib_m_cosf=no
26660 rm -f core conftest.err conftest.$ac_objext \
26661 conftest$ac_exeext conftest.$ac_ext
26662 LIBS=$ac_check_lib_save_LIBS
26664 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
26665 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
26666 if test $ac_cv_lib_m_cosf = yes; then
26668 cat >>confdefs.h <<\_ACEOF
26669 #define HAVE_COSF 1
26674 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
26675 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
26676 if test "${ac_cv_lib_m_trunc+set}" = set; then
26677 echo $ECHO_N "(cached) $ECHO_C" >&6
26679 ac_check_lib_save_LIBS=$LIBS
26681 cat >conftest.$ac_ext <<_ACEOF
26684 cat confdefs.h >>conftest.$ac_ext
26685 cat >>conftest.$ac_ext <<_ACEOF
26686 /* end confdefs.h. */
26688 /* Override any GCC internal prototype to avoid an error.
26689 Use char because int might match the return type of a GCC
26690 builtin and then its argument prototype would still apply. */
26703 rm -f conftest.$ac_objext conftest$ac_exeext
26704 if { (ac_try="$ac_link"
26705 case "(($ac_try" in
26706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26707 *) ac_try_echo=$ac_try;;
26709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26710 (eval "$ac_link") 2>conftest.er1
26712 grep -v '^ *+' conftest.er1 >conftest.err
26714 cat conftest.err >&5
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); } &&
26717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26718 { (case "(($ac_try" in
26719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720 *) ac_try_echo=$ac_try;;
26722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26723 (eval "$ac_try") 2>&5
26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726 (exit $ac_status); }; } &&
26727 { ac_try='test -s conftest$ac_exeext'
26728 { (case "(($ac_try" in
26729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730 *) ac_try_echo=$ac_try;;
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733 (eval "$ac_try") 2>&5
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; }; then
26737 ac_cv_lib_m_trunc=yes
26739 echo "$as_me: failed program was:" >&5
26740 sed 's/^/| /' conftest.$ac_ext >&5
26742 ac_cv_lib_m_trunc=no
26745 rm -f core conftest.err conftest.$ac_objext \
26746 conftest$ac_exeext conftest.$ac_ext
26747 LIBS=$ac_check_lib_save_LIBS
26749 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
26750 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
26751 if test $ac_cv_lib_m_trunc = yes; then
26753 cat >>confdefs.h <<\_ACEOF
26754 #define HAVE_TRUNC 1
26759 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
26760 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
26761 if test "${ac_cv_lib_m_exp10+set}" = set; then
26762 echo $ECHO_N "(cached) $ECHO_C" >&6
26764 ac_check_lib_save_LIBS=$LIBS
26766 cat >conftest.$ac_ext <<_ACEOF
26769 cat confdefs.h >>conftest.$ac_ext
26770 cat >>conftest.$ac_ext <<_ACEOF
26771 /* end confdefs.h. */
26773 /* Override any GCC internal prototype to avoid an error.
26774 Use char because int might match the return type of a GCC
26775 builtin and then its argument prototype would still apply. */
26788 rm -f conftest.$ac_objext conftest$ac_exeext
26789 if { (ac_try="$ac_link"
26790 case "(($ac_try" in
26791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792 *) ac_try_echo=$ac_try;;
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795 (eval "$ac_link") 2>conftest.er1
26797 grep -v '^ *+' conftest.er1 >conftest.err
26799 cat conftest.err >&5
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } &&
26802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26803 { (case "(($ac_try" in
26804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26805 *) ac_try_echo=$ac_try;;
26807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26808 (eval "$ac_try") 2>&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); }; } &&
26812 { ac_try='test -s conftest$ac_exeext'
26813 { (case "(($ac_try" in
26814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26815 *) ac_try_echo=$ac_try;;
26817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26818 (eval "$ac_try") 2>&5
26820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); }; }; then
26822 ac_cv_lib_m_exp10=yes
26824 echo "$as_me: failed program was:" >&5
26825 sed 's/^/| /' conftest.$ac_ext >&5
26827 ac_cv_lib_m_exp10=no
26830 rm -f core conftest.err conftest.$ac_objext \
26831 conftest$ac_exeext conftest.$ac_ext
26832 LIBS=$ac_check_lib_save_LIBS
26834 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
26835 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
26836 if test $ac_cv_lib_m_exp10 = yes; then
26838 cat >>confdefs.h <<\_ACEOF
26839 #define HAVE_EXP10 1
26852 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26853 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26854 if test "${ac_cv_search_shm_open+set}" = set; then
26855 echo $ECHO_N "(cached) $ECHO_C" >&6
26857 ac_func_search_save_LIBS=$LIBS
26858 cat >conftest.$ac_ext <<_ACEOF
26861 cat confdefs.h >>conftest.$ac_ext
26862 cat >>conftest.$ac_ext <<_ACEOF
26863 /* end confdefs.h. */
26865 /* Override any GCC internal prototype to avoid an error.
26866 Use char because int might match the return type of a GCC
26867 builtin and then its argument prototype would still apply. */
26875 return shm_open ();
26880 for ac_lib in '' rt; do
26881 if test -z "$ac_lib"; then
26882 ac_res="none required"
26885 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26887 rm -f conftest.$ac_objext conftest$ac_exeext
26888 if { (ac_try="$ac_link"
26889 case "(($ac_try" in
26890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891 *) ac_try_echo=$ac_try;;
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894 (eval "$ac_link") 2>conftest.er1
26896 grep -v '^ *+' conftest.er1 >conftest.err
26898 cat conftest.err >&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } &&
26901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26902 { (case "(($ac_try" in
26903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904 *) ac_try_echo=$ac_try;;
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907 (eval "$ac_try") 2>&5
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); }; } &&
26911 { ac_try='test -s conftest$ac_exeext'
26912 { (case "(($ac_try" in
26913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26914 *) ac_try_echo=$ac_try;;
26916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26917 (eval "$ac_try") 2>&5
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; }; then
26921 ac_cv_search_shm_open=$ac_res
26923 echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26929 rm -f core conftest.err conftest.$ac_objext \
26931 if test "${ac_cv_search_shm_open+set}" = set; then
26935 if test "${ac_cv_search_shm_open+set}" = set; then
26938 ac_cv_search_shm_open=no
26940 rm conftest.$ac_ext
26941 LIBS=$ac_func_search_save_LIBS
26943 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26944 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26945 ac_res=$ac_cv_search_shm_open
26946 if test "$ac_res" != no; then
26947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26948 SHM_OPEN_LIBS="$LIBS"
26952 for ac_func in shm_open
26954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26960 cat >conftest.$ac_ext <<_ACEOF
26963 cat confdefs.h >>conftest.$ac_ext
26964 cat >>conftest.$ac_ext <<_ACEOF
26965 /* end confdefs.h. */
26966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26968 #define $ac_func innocuous_$ac_func
26970 /* System header to define __stub macros and hopefully few prototypes,
26971 which can conflict with char $ac_func (); below.
26972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26973 <limits.h> exists even on freestanding compilers. */
26976 # include <limits.h>
26978 # include <assert.h>
26983 /* Override any GCC internal prototype to avoid an error.
26984 Use char because int might match the return type of a GCC
26985 builtin and then its argument prototype would still apply. */
26990 /* The GNU C library defines this for functions which it implements
26991 to always fail with ENOSYS. Some functions are actually named
26992 something starting with __ and the normal name is an alias. */
26993 #if defined __stub_$ac_func || defined __stub___$ac_func
27000 return $ac_func ();
27005 rm -f conftest.$ac_objext conftest$ac_exeext
27006 if { (ac_try="$ac_link"
27007 case "(($ac_try" in
27008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27009 *) ac_try_echo=$ac_try;;
27011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27012 (eval "$ac_link") 2>conftest.er1
27014 grep -v '^ *+' conftest.er1 >conftest.err
27016 cat conftest.err >&5
27017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } &&
27019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27020 { (case "(($ac_try" in
27021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27022 *) ac_try_echo=$ac_try;;
27024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27025 (eval "$ac_try") 2>&5
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; } &&
27029 { ac_try='test -s conftest$ac_exeext'
27030 { (case "(($ac_try" in
27031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27032 *) ac_try_echo=$ac_try;;
27034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27035 (eval "$ac_try") 2>&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27038 (exit $ac_status); }; }; then
27039 eval "$as_ac_var=yes"
27041 echo "$as_me: failed program was:" >&5
27042 sed 's/^/| /' conftest.$ac_ext >&5
27044 eval "$as_ac_var=no"
27047 rm -f core conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
27050 ac_res=`eval echo '${'$as_ac_var'}'`
27051 { echo "$as_me:$LINENO: result: $ac_res" >&5
27052 echo "${ECHO_T}$ac_res" >&6; }
27053 if test `eval echo '${'$as_ac_var'}'` = yes; then
27054 cat >>confdefs.h <<_ACEOF
27055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27066 # on Mingw32 extra LDFLAGS are required to ease global variable linking
27067 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
27069 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
27070 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
27071 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
27073 # libtool requires the quotes
27074 LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
27075 { echo "$as_me:$LINENO: result: yes" >&5
27076 echo "${ECHO_T}yes" >&6; }
27078 { echo "$as_me:$LINENO: result: no" >&5
27079 echo "${ECHO_T}no" >&6; }
27086 { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
27087 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
27088 cat >conftest.$ac_ext <<_ACEOF
27090 #include <windows.h>
27091 int main (int argc, char **argv)
27095 char seg_name[1024];
27096 handle = CreateFileMapping(
27097 INVALID_HANDLE_VALUE, // use paging file
27098 NULL, // default security
27099 PAGE_READWRITE, // read/write access
27100 0, // max. object size
27101 size, // buffer size
27102 seg_name); // name of mapping object
27107 rm -f conftest.$ac_objext
27108 if { (ac_try="$ac_compile"
27109 case "(($ac_try" in
27110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_compile") 2>conftest.er1
27116 grep -v '^ *+' conftest.er1 >conftest.err
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } &&
27121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27122 { (case "(($ac_try" in
27123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27124 *) ac_try_echo=$ac_try;;
27126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27127 (eval "$ac_try") 2>&5
27129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); }; } &&
27131 { ac_try='test -s conftest.$ac_objext'
27132 { (case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_try") 2>&5
27139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27140 (exit $ac_status); }; }; then
27141 HAVE_CREATEFILEMAPPING=yes
27143 cat >>confdefs.h <<\_ACEOF
27144 #define HAVE_CREATEFILEMAPPING 1
27148 echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27151 HAVE_CREATEFILEMAPPING=no
27154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27156 { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
27157 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
27160 if test x$HAVE_CREATEFILEMAPPING = xyes; then
27161 HAVE_CREATEFILEMAPPING_TRUE=
27162 HAVE_CREATEFILEMAPPING_FALSE='#'
27164 HAVE_CREATEFILEMAPPING_TRUE='#'
27165 HAVE_CREATEFILEMAPPING_FALSE=
27175 for ac_header in sys/types.h fcntl.h io.h
27177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27182 echo $ECHO_N "(cached) $ECHO_C" >&6
27184 ac_res=`eval echo '${'$as_ac_Header'}'`
27185 { echo "$as_me:$LINENO: result: $ac_res" >&5
27186 echo "${ECHO_T}$ac_res" >&6; }
27188 # Is the header compilable?
27189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27191 cat >conftest.$ac_ext <<_ACEOF
27194 cat confdefs.h >>conftest.$ac_ext
27195 cat >>conftest.$ac_ext <<_ACEOF
27196 /* end confdefs.h. */
27197 $ac_includes_default
27198 #include <$ac_header>
27200 rm -f conftest.$ac_objext
27201 if { (ac_try="$ac_compile"
27202 case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_compile") 2>conftest.er1
27209 grep -v '^ *+' conftest.er1 >conftest.err
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
27214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27215 { (case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_try") 2>&5
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; } &&
27224 { ac_try='test -s conftest.$ac_objext'
27225 { (case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_try") 2>&5
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; }; then
27234 ac_header_compiler=yes
27236 echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27239 ac_header_compiler=no
27242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27244 echo "${ECHO_T}$ac_header_compiler" >&6; }
27246 # Is the header present?
27247 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27249 cat >conftest.$ac_ext <<_ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h. */
27255 #include <$ac_header>
27257 if { (ac_try="$ac_cpp conftest.$ac_ext"
27258 case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27265 grep -v '^ *+' conftest.er1 >conftest.err
27267 cat conftest.err >&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } >/dev/null; then
27270 if test -s conftest.err; then
27271 ac_cpp_err=$ac_c_preproc_warn_flag
27272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27279 if test -z "$ac_cpp_err"; then
27280 ac_header_preproc=yes
27282 echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27285 ac_header_preproc=no
27288 rm -f conftest.err conftest.$ac_ext
27289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27290 echo "${ECHO_T}$ac_header_preproc" >&6; }
27292 # So? What about this header?
27293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27299 ac_header_preproc=yes
27302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27320 echo $ECHO_N "(cached) $ECHO_C" >&6
27322 eval "$as_ac_Header=\$ac_header_preproc"
27324 ac_res=`eval echo '${'$as_ac_Header'}'`
27325 { echo "$as_me:$LINENO: result: $ac_res" >&5
27326 echo "${ECHO_T}$ac_res" >&6; }
27329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27330 cat >>confdefs.h <<_ACEOF
27331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27339 for ac_header in windows.h
27341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 ac_res=`eval echo '${'$as_ac_Header'}'`
27349 { echo "$as_me:$LINENO: result: $ac_res" >&5
27350 echo "${ECHO_T}$ac_res" >&6; }
27352 # Is the header compilable?
27353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27355 cat >conftest.$ac_ext <<_ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h. */
27361 $ac_includes_default
27362 #include <$ac_header>
27364 rm -f conftest.$ac_objext
27365 if { (ac_try="$ac_compile"
27366 case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371 (eval "$ac_compile") 2>conftest.er1
27373 grep -v '^ *+' conftest.er1 >conftest.err
27375 cat conftest.err >&5
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); } &&
27378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27379 { (case "(($ac_try" in
27380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381 *) ac_try_echo=$ac_try;;
27383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27384 (eval "$ac_try") 2>&5
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; } &&
27388 { ac_try='test -s conftest.$ac_objext'
27389 { (case "(($ac_try" in
27390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27391 *) ac_try_echo=$ac_try;;
27393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27394 (eval "$ac_try") 2>&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); }; }; then
27398 ac_header_compiler=yes
27400 echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.$ac_ext >&5
27403 ac_header_compiler=no
27406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27408 echo "${ECHO_T}$ac_header_compiler" >&6; }
27410 # Is the header present?
27411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27413 cat >conftest.$ac_ext <<_ACEOF
27416 cat confdefs.h >>conftest.$ac_ext
27417 cat >>conftest.$ac_ext <<_ACEOF
27418 /* end confdefs.h. */
27419 #include <$ac_header>
27421 if { (ac_try="$ac_cpp conftest.$ac_ext"
27422 case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27429 grep -v '^ *+' conftest.er1 >conftest.err
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } >/dev/null; then
27434 if test -s conftest.err; then
27435 ac_cpp_err=$ac_c_preproc_warn_flag
27436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27443 if test -z "$ac_cpp_err"; then
27444 ac_header_preproc=yes
27446 echo "$as_me: failed program was:" >&5
27447 sed 's/^/| /' conftest.$ac_ext >&5
27449 ac_header_preproc=no
27452 rm -f conftest.err conftest.$ac_ext
27453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27454 echo "${ECHO_T}$ac_header_preproc" >&6; }
27456 # So? What about this header?
27457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27463 ac_header_preproc=yes
27466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27481 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27484 echo $ECHO_N "(cached) $ECHO_C" >&6
27486 eval "$as_ac_Header=\$ac_header_preproc"
27488 ac_res=`eval echo '${'$as_ac_Header'}'`
27489 { echo "$as_me:$LINENO: result: $ac_res" >&5
27490 echo "${ECHO_T}$ac_res" >&6; }
27493 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27494 cat >>confdefs.h <<_ACEOF
27495 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27504 for ac_header in winioctl.h winbase.h
27506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27512 cat >conftest.$ac_ext <<_ACEOF
27515 cat confdefs.h >>conftest.$ac_ext
27516 cat >>conftest.$ac_ext <<_ACEOF
27517 /* end confdefs.h. */
27520 #include <windows.h>
27524 #include <$ac_header>
27526 rm -f conftest.$ac_objext
27527 if { (ac_try="$ac_compile"
27528 case "(($ac_try" in
27529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27530 *) ac_try_echo=$ac_try;;
27532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27533 (eval "$ac_compile") 2>conftest.er1
27535 grep -v '^ *+' conftest.er1 >conftest.err
27537 cat conftest.err >&5
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); } &&
27540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27541 { (case "(($ac_try" in
27542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27543 *) ac_try_echo=$ac_try;;
27545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27546 (eval "$ac_try") 2>&5
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); }; } &&
27550 { ac_try='test -s conftest.$ac_objext'
27551 { (case "(($ac_try" in
27552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27553 *) ac_try_echo=$ac_try;;
27555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27556 (eval "$ac_try") 2>&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); }; }; then
27560 eval "$as_ac_Header=yes"
27562 echo "$as_me: failed program was:" >&5
27563 sed 's/^/| /' conftest.$ac_ext >&5
27565 eval "$as_ac_Header=no"
27568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27570 ac_res=`eval echo '${'$as_ac_Header'}'`
27571 { echo "$as_me:$LINENO: result: $ac_res" >&5
27572 echo "${ECHO_T}$ac_res" >&6; }
27573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27574 cat >>confdefs.h <<_ACEOF
27575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27593 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
27595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27599 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 cat >conftest.$ac_ext <<_ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h. */
27607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27609 #define $ac_func innocuous_$ac_func
27611 /* System header to define __stub macros and hopefully few prototypes,
27612 which can conflict with char $ac_func (); below.
27613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27614 <limits.h> exists even on freestanding compilers. */
27617 # include <limits.h>
27619 # include <assert.h>
27624 /* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
27631 /* The GNU C library defines this for functions which it implements
27632 to always fail with ENOSYS. Some functions are actually named
27633 something starting with __ and the normal name is an alias. */
27634 #if defined __stub_$ac_func || defined __stub___$ac_func
27641 return $ac_func ();
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647 if { (ac_try="$ac_link"
27648 case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>conftest.er1
27655 grep -v '^ *+' conftest.er1 >conftest.err
27657 cat conftest.err >&5
27658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; } &&
27670 { ac_try='test -s conftest$ac_exeext'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680 eval "$as_ac_var=yes"
27682 echo "$as_me: failed program was:" >&5
27683 sed 's/^/| /' conftest.$ac_ext >&5
27685 eval "$as_ac_var=no"
27688 rm -f core conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext conftest.$ac_ext
27691 ac_res=`eval echo '${'$as_ac_var'}'`
27692 { echo "$as_me:$LINENO: result: $ac_res" >&5
27693 echo "${ECHO_T}$ac_res" >&6; }
27694 if test `eval echo '${'$as_ac_var'}'` = yes; then
27695 cat >>confdefs.h <<_ACEOF
27696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27702 { echo "$as_me:$LINENO: checking for struct timezone" >&5
27703 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
27704 if test "${ac_cv_type_struct_timezone+set}" = set; then
27705 echo $ECHO_N "(cached) $ECHO_C" >&6
27707 cat >conftest.$ac_ext <<_ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h. */
27714 #if HAVE_SYS_TYPES_H
27715 # include <sys/types.h>
27717 #if TIME_WITH_SYS_TIME
27718 # include <sys/time.h>
27721 # if HAVE_SYS_TIME_H
27722 # include <sys/time.h>
27729 typedef struct timezone ac__type_new_;
27733 if ((ac__type_new_ *) 0)
27735 if (sizeof (ac__type_new_))
27741 rm -f conftest.$ac_objext
27742 if { (ac_try="$ac_compile"
27743 case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_compile") 2>conftest.er1
27750 grep -v '^ *+' conftest.er1 >conftest.err
27752 cat conftest.err >&5
27753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754 (exit $ac_status); } &&
27755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27756 { (case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_try") 2>&5
27763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764 (exit $ac_status); }; } &&
27765 { ac_try='test -s conftest.$ac_objext'
27766 { (case "(($ac_try" in
27767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768 *) ac_try_echo=$ac_try;;
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771 (eval "$ac_try") 2>&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); }; }; then
27775 ac_cv_type_struct_timezone=yes
27777 echo "$as_me: failed program was:" >&5
27778 sed 's/^/| /' conftest.$ac_ext >&5
27780 ac_cv_type_struct_timezone=no
27783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27785 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
27786 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
27787 if test $ac_cv_type_struct_timezone = yes; then
27789 cat >>confdefs.h <<_ACEOF
27790 #define HAVE_STRUCT_TIMEZONE 1
27795 { echo "$as_me:$LINENO: checking for struct timespec" >&5
27796 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
27797 if test "${ac_cv_type_struct_timespec+set}" = set; then
27798 echo $ECHO_N "(cached) $ECHO_C" >&6
27800 cat >conftest.$ac_ext <<_ACEOF
27803 cat confdefs.h >>conftest.$ac_ext
27804 cat >>conftest.$ac_ext <<_ACEOF
27805 /* end confdefs.h. */
27807 #if HAVE_SYS_TYPES_H
27808 # include <sys/types.h>
27810 #if TIME_WITH_SYS_TIME
27811 # include <sys/time.h>
27814 # if HAVE_SYS_TIME_H
27815 # include <sys/time.h>
27822 typedef struct timespec ac__type_new_;
27826 if ((ac__type_new_ *) 0)
27828 if (sizeof (ac__type_new_))
27834 rm -f conftest.$ac_objext
27835 if { (ac_try="$ac_compile"
27836 case "(($ac_try" in
27837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27838 *) ac_try_echo=$ac_try;;
27840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27841 (eval "$ac_compile") 2>conftest.er1
27843 grep -v '^ *+' conftest.er1 >conftest.err
27845 cat conftest.err >&5
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); } &&
27848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27849 { (case "(($ac_try" in
27850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851 *) ac_try_echo=$ac_try;;
27853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854 (eval "$ac_try") 2>&5
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; } &&
27858 { ac_try='test -s conftest.$ac_objext'
27859 { (case "(($ac_try" in
27860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27861 *) ac_try_echo=$ac_try;;
27863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27864 (eval "$ac_try") 2>&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); }; }; then
27868 ac_cv_type_struct_timespec=yes
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27873 ac_cv_type_struct_timespec=no
27876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
27879 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
27880 if test $ac_cv_type_struct_timespec = yes; then
27882 cat >>confdefs.h <<_ACEOF
27883 #define HAVE_STRUCT_TIMESPEC 1
27888 { echo "$as_me:$LINENO: checking for ssize_t" >&5
27889 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
27890 if test "${ac_cv_type_ssize_t+set}" = set; then
27891 echo $ECHO_N "(cached) $ECHO_C" >&6
27893 cat >conftest.$ac_ext <<_ACEOF
27896 cat confdefs.h >>conftest.$ac_ext
27897 cat >>conftest.$ac_ext <<_ACEOF
27898 /* end confdefs.h. */
27900 #if HAVE_SYS_TYPES_H
27901 # include <sys/types.h>
27903 #if TIME_WITH_SYS_TIME
27904 # include <sys/time.h>
27907 # if HAVE_SYS_TIME_H
27908 # include <sys/time.h>
27915 typedef ssize_t ac__type_new_;
27919 if ((ac__type_new_ *) 0)
27921 if (sizeof (ac__type_new_))
27927 rm -f conftest.$ac_objext
27928 if { (ac_try="$ac_compile"
27929 case "(($ac_try" in
27930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27931 *) ac_try_echo=$ac_try;;
27933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27934 (eval "$ac_compile") 2>conftest.er1
27936 grep -v '^ *+' conftest.er1 >conftest.err
27938 cat conftest.err >&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27942 { (case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_try") 2>&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); }; } &&
27951 { ac_try='test -s conftest.$ac_objext'
27952 { (case "(($ac_try" in
27953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27954 *) ac_try_echo=$ac_try;;
27956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27957 (eval "$ac_try") 2>&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); }; }; then
27961 ac_cv_type_ssize_t=yes
27963 echo "$as_me: failed program was:" >&5
27964 sed 's/^/| /' conftest.$ac_ext >&5
27966 ac_cv_type_ssize_t=no
27969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27971 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
27972 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
27973 if test $ac_cv_type_ssize_t = yes; then
27975 cat >>confdefs.h <<_ACEOF
27976 #define HAVE_SSIZE_T 1
27986 for ac_func in getopt usleep gettimeofday
27988 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27992 echo $ECHO_N "(cached) $ECHO_C" >&6
27994 cat >conftest.$ac_ext <<_ACEOF
27997 cat confdefs.h >>conftest.$ac_ext
27998 cat >>conftest.$ac_ext <<_ACEOF
27999 /* end confdefs.h. */
28000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28002 #define $ac_func innocuous_$ac_func
28004 /* System header to define __stub macros and hopefully few prototypes,
28005 which can conflict with char $ac_func (); below.
28006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28007 <limits.h> exists even on freestanding compilers. */
28010 # include <limits.h>
28012 # include <assert.h>
28017 /* Override any GCC internal prototype to avoid an error.
28018 Use char because int might match the return type of a GCC
28019 builtin and then its argument prototype would still apply. */
28024 /* The GNU C library defines this for functions which it implements
28025 to always fail with ENOSYS. Some functions are actually named
28026 something starting with __ and the normal name is an alias. */
28027 #if defined __stub_$ac_func || defined __stub___$ac_func
28034 return $ac_func ();
28039 rm -f conftest.$ac_objext conftest$ac_exeext
28040 if { (ac_try="$ac_link"
28041 case "(($ac_try" in
28042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043 *) ac_try_echo=$ac_try;;
28045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046 (eval "$ac_link") 2>conftest.er1
28048 grep -v '^ *+' conftest.er1 >conftest.err
28050 cat conftest.err >&5
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); } &&
28053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28054 { (case "(($ac_try" in
28055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28056 *) ac_try_echo=$ac_try;;
28058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28059 (eval "$ac_try") 2>&5
28061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062 (exit $ac_status); }; } &&
28063 { ac_try='test -s conftest$ac_exeext'
28064 { (case "(($ac_try" in
28065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28066 *) ac_try_echo=$ac_try;;
28068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28069 (eval "$ac_try") 2>&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; }; then
28073 eval "$as_ac_var=yes"
28075 echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28078 eval "$as_ac_var=no"
28081 rm -f core conftest.err conftest.$ac_objext \
28082 conftest$ac_exeext conftest.$ac_ext
28084 ac_res=`eval echo '${'$as_ac_var'}'`
28085 { echo "$as_me:$LINENO: result: $ac_res" >&5
28086 echo "${ECHO_T}$ac_res" >&6; }
28087 if test `eval echo '${'$as_ac_var'}'` = yes; then
28088 cat >>confdefs.h <<_ACEOF
28089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28093 case " $LIBOBJS " in
28094 *" $ac_func.$ac_objext "* ) ;;
28095 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28105 { echo "$as_me:$LINENO: checking for Sleep" >&5
28106 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
28107 cat >conftest.$ac_ext <<_ACEOF
28110 cat confdefs.h >>conftest.$ac_ext
28111 cat >>conftest.$ac_ext <<_ACEOF
28112 /* end confdefs.h. */
28113 #include <windows.h>
28114 #include <winbase.h>
28124 rm -f conftest.$ac_objext conftest$ac_exeext
28125 if { (ac_try="$ac_link"
28126 case "(($ac_try" in
28127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128 *) ac_try_echo=$ac_try;;
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131 (eval "$ac_link") 2>conftest.er1
28133 grep -v '^ *+' conftest.er1 >conftest.err
28135 cat conftest.err >&5
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); } &&
28138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28139 { (case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_try") 2>&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); }; } &&
28148 { ac_try='test -s conftest$ac_exeext'
28149 { (case "(($ac_try" in
28150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151 *) ac_try_echo=$ac_try;;
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154 (eval "$ac_try") 2>&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); }; }; then
28159 cat >>confdefs.h <<\_ACEOF
28160 #define HAVE_SSLEEP 1
28163 { echo "$as_me:$LINENO: result: yes" >&5
28164 echo "${ECHO_T}yes" >&6; }
28166 echo "$as_me: failed program was:" >&5
28167 sed 's/^/| /' conftest.$ac_ext >&5
28169 { echo "$as_me:$LINENO: result: no" >&5
28170 echo "${ECHO_T}no" >&6; }
28174 rm -f core conftest.err conftest.$ac_objext \
28175 conftest$ac_exeext conftest.$ac_ext
28177 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28178 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28179 cat >conftest.$ac_ext <<_ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28185 #include <sys/types.h>
28186 #include <sys/stat.h>
28198 rm -f conftest.$ac_objext
28199 if { (ac_try="$ac_compile"
28200 case "(($ac_try" in
28201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28202 *) ac_try_echo=$ac_try;;
28204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28205 (eval "$ac_compile") 2>conftest.er1
28207 grep -v '^ *+' conftest.er1 >conftest.err
28209 cat conftest.err >&5
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } &&
28212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28213 { (case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_try") 2>&5
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; } &&
28222 { ac_try='test -s conftest.$ac_objext'
28223 { (case "(($ac_try" in
28224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28225 *) ac_try_echo=$ac_try;;
28227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28228 (eval "$ac_try") 2>&5
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; }; then
28232 { echo "$as_me:$LINENO: result: yes" >&5
28233 echo "${ECHO_T}yes" >&6; }
28235 cat >>confdefs.h <<\_ACEOF
28236 #define MKDIR_TAKES_ONE_ARG
28240 echo "$as_me: failed program was:" >&5
28241 sed 's/^/| /' conftest.$ac_ext >&5
28243 { echo "$as_me:$LINENO: result: no" >&5
28244 echo "${ECHO_T}no" >&6; }
28248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256 # Extract the first word of "dot", so it can be a program name with args.
28257 set dummy dot; ac_word=$2
28258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28260 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
28261 echo $ECHO_N "(cached) $ECHO_C" >&6
28263 if test -n "$HAVE_DOT"; then
28264 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
28266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28267 for as_dir in $PATH
28270 test -z "$as_dir" && as_dir=.
28271 for ac_exec_ext in '' $ac_executable_extensions; do
28272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28273 ac_cv_prog_HAVE_DOT="YES"
28274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28281 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
28284 HAVE_DOT=$ac_cv_prog_HAVE_DOT
28285 if test -n "$HAVE_DOT"; then
28286 { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
28287 echo "${ECHO_T}$HAVE_DOT" >&6; }
28289 { echo "$as_me:$LINENO: result: no" >&5
28290 echo "${ECHO_T}no" >&6; }
28298 if test -z "$PKG_CONFIG"; then
28299 # Extract the first word of "pkg-config", so it can be a program name with args.
28300 set dummy pkg-config; ac_word=$2
28301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28306 case $PKG_CONFIG in
28308 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28312 for as_dir in $PATH
28315 test -z "$as_dir" && as_dir=.
28316 for ac_exec_ext in '' $ac_executable_extensions; do
28317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28318 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28326 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28330 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28331 if test -n "$PKG_CONFIG"; then
28332 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28333 echo "${ECHO_T}$PKG_CONFIG" >&6; }
28335 { echo "$as_me:$LINENO: result: no" >&5
28336 echo "${ECHO_T}no" >&6; }
28342 if test "$PKG_CONFIG" = "no" ; then
28343 echo "*** The pkg-config script could not be found. Make sure it is"
28344 echo "*** in your path, or set the PKG_CONFIG environment variable"
28345 echo "*** to the full path to pkg-config."
28346 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28348 if test -z "$PKG_CONFIG_PATH"; then
28349 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
28352 PKG_CONFIG_MIN_VERSION=0.9.0
28353 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28354 { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
28355 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
28357 if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
28358 { echo "$as_me:$LINENO: result: yes" >&5
28359 echo "${ECHO_T}yes" >&6; }
28362 { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
28363 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
28364 FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
28365 { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
28366 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
28368 { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
28369 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
28370 FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
28371 { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
28372 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
28374 { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
28375 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
28376 FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
28377 { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
28378 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
28382 ## If we have a custom action on failure, don't print errors, but
28383 ## do set a variable so people can do so.
28384 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
28385 echo $FFTW3F_PKG_ERRORS
28392 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28393 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28397 if test $succeeded = yes; then
28400 { { echo "$as_me:$LINENO: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28401 echo "$as_me: error: Library requirements (fftw3f >= 3.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28402 { (exit 1); exit 1; }; }
28408 # Check whether --enable-doxygen was given.
28409 if test "${enable_doxygen+set}" = set; then
28410 enableval=$enable_doxygen;
28413 # Check whether --enable-dot was given.
28414 if test "${enable_dot+set}" = set; then
28415 enableval=$enable_dot;
28418 # Check whether --enable-html-docs was given.
28419 if test "${enable_html_docs+set}" = set; then
28420 enableval=$enable_html_docs;
28422 enable_html_docs=yes
28425 # Check whether --enable-latex-docs was given.
28426 if test "${enable_latex_docs+set}" = set; then
28427 enableval=$enable_latex_docs;
28429 enable_latex_docs=no
28433 if test "x$enable_doxygen" = xyes; then
28434 # Extract the first word of "doxygen", so it can be a program name with args.
28435 set dummy doxygen; ac_word=$2
28436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28438 if test "${ac_cv_path_DOXYGEN+set}" = set; then
28439 echo $ECHO_N "(cached) $ECHO_C" >&6
28443 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
28446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28447 for as_dir in $PATH
28450 test -z "$as_dir" && as_dir=.
28451 for ac_exec_ext in '' $ac_executable_extensions; do
28452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28453 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
28454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28464 DOXYGEN=$ac_cv_path_DOXYGEN
28465 if test -n "$DOXYGEN"; then
28466 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
28467 echo "${ECHO_T}$DOXYGEN" >&6; }
28469 { echo "$as_me:$LINENO: result: no" >&5
28470 echo "${ECHO_T}no" >&6; }
28474 if test x$DOXYGEN = x; then
28475 if test "x$enable_doxygen" = xyes; then
28476 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
28477 echo "$as_me: error: could not find doxygen" >&2;}
28478 { (exit 1); exit 1; }; }
28485 # Extract the first word of "dot", so it can be a program name with args.
28486 set dummy dot; ac_word=$2
28487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28489 if test "${ac_cv_path_DOT+set}" = set; then
28490 echo $ECHO_N "(cached) $ECHO_C" >&6
28494 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
28497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28498 for as_dir in $PATH
28501 test -z "$as_dir" && as_dir=.
28502 for ac_exec_ext in '' $ac_executable_extensions; do
28503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28504 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
28505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28515 DOT=$ac_cv_path_DOT
28516 if test -n "$DOT"; then
28517 { echo "$as_me:$LINENO: result: $DOT" >&5
28518 echo "${ECHO_T}$DOT" >&6; }
28520 { echo "$as_me:$LINENO: result: no" >&5
28521 echo "${ECHO_T}no" >&6; }
28532 if test x$enable_doc = xyes; then
28541 if test x$DOT = x; then
28542 if test "x$enable_dot" = xyes; then
28543 { { echo "$as_me:$LINENO: error: could not find dot" >&5
28544 echo "$as_me: error: could not find dot" >&2;}
28545 { (exit 1); exit 1; }; }
28559 # Check whether --with-md-cpu was given.
28560 if test "${with_md_cpu+set}" = set; then
28561 withval=$with_md_cpu; cf_with_md_cpu="$withval"
28563 cf_with_md_cpu="$host_cpu"
28567 { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
28568 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
28569 case "$cf_with_md_cpu" in
28570 x86 | i[3-7]86) MD_CPU=x86 MD_SUBCPU=x86 ;;
28571 x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;;
28572 # sparc) MD_CPU=sparc ;;
28573 *) MD_CPU=generic ;;
28575 { echo "$as_me:$LINENO: result: $MD_CPU" >&5
28576 echo "${ECHO_T}$MD_CPU" >&6; }
28582 if test "$MD_CPU" = "x86"; then
28584 MD_CPU_x86_FALSE='#'
28586 MD_CPU_x86_TRUE='#'
28592 if test "$MD_SUBCPU" = "x86_64"; then
28593 MD_SUBCPU_x86_64_TRUE=
28594 MD_SUBCPU_x86_64_FALSE='#'
28596 MD_SUBCPU_x86_64_TRUE='#'
28597 MD_SUBCPU_x86_64_FALSE=
28602 if test "$MD_CPU" = "generic"; then
28603 MD_CPU_generic_TRUE=
28604 MD_CPU_generic_FALSE='#'
28606 MD_CPU_generic_TRUE='#'
28607 MD_CPU_generic_FALSE=
28615 # Check whether --with-cppunit-prefix was given.
28616 if test "${with_cppunit_prefix+set}" = set; then
28617 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
28619 cppunit_config_prefix=""
28623 # Check whether --with-cppunit-exec-prefix was given.
28624 if test "${with_cppunit_exec_prefix+set}" = set; then
28625 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
28627 cppunit_config_exec_prefix=""
28631 if test x$cppunit_config_exec_prefix != x ; then
28632 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
28633 if test x${CPPUNIT_CONFIG+set} != xset ; then
28634 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
28637 if test x$cppunit_config_prefix != x ; then
28638 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
28639 if test x${CPPUNIT_CONFIG+set} != xset ; then
28640 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
28644 # Extract the first word of "cppunit-config", so it can be a program name with args.
28645 set dummy cppunit-config; ac_word=$2
28646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28648 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28651 case $CPPUNIT_CONFIG in
28653 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
28656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28657 for as_dir in $PATH
28660 test -z "$as_dir" && as_dir=.
28661 for ac_exec_ext in '' $ac_executable_extensions; do
28662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
28663 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28671 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
28675 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
28676 if test -n "$CPPUNIT_CONFIG"; then
28677 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
28678 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
28680 { echo "$as_me:$LINENO: result: no" >&5
28681 echo "${ECHO_T}no" >&6; }
28685 cppunit_version_min=1.9.14
28687 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
28688 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
28690 if test "$CPPUNIT_CONFIG" = "no" ; then
28693 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
28694 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
28695 cppunit_version=`$CPPUNIT_CONFIG --version`
28697 cppunit_major_version=`echo $cppunit_version | \
28698 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28699 cppunit_minor_version=`echo $cppunit_version | \
28700 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28701 cppunit_micro_version=`echo $cppunit_version | \
28702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28704 cppunit_major_min=`echo $cppunit_version_min | \
28705 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28706 cppunit_minor_min=`echo $cppunit_version_min | \
28707 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28708 cppunit_micro_min=`echo $cppunit_version_min | \
28709 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28711 cppunit_version_proper=`expr \
28712 $cppunit_major_version \> $cppunit_major_min \| \
28713 $cppunit_major_version \= $cppunit_major_min \& \
28714 $cppunit_minor_version \> $cppunit_minor_min \| \
28715 $cppunit_major_version \= $cppunit_major_min \& \
28716 $cppunit_minor_version \= $cppunit_minor_min \& \
28717 $cppunit_micro_version \>= $cppunit_micro_min `
28719 if test "$cppunit_version_proper" = "1" ; then
28720 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
28721 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
28723 { echo "$as_me:$LINENO: result: no" >&5
28724 echo "${ECHO_T}no" >&6; }
28729 if test "x$no_cppunit" = x ; then
28734 { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit. Stop" >&5
28735 echo "$as_me: error: GNU Radio requires cppunit. Stop" >&2;}
28736 { (exit 1); exit 1; }; }
28743 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
28749 ac_cpp='$CXXCPP $CPPFLAGS'
28750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28754 gr_boost_include_dir=
28756 # Check whether --with-boost-include-dir was given.
28757 if test "${with_boost_include_dir+set}" = set; then
28758 withval=$with_boost_include_dir;
28759 # "yes" and "no" are bogus answers
28760 if test x"$with_boost_include_dir" = xyes ||
28761 test x"$with_boost_include_dir" = xno; then
28762 gr_boost_include_dir=
28764 gr_boost_include_dir=$with_boost_include_dir
28769 echo "gr_boost_include_dir = $gr_boost_include_dir"
28770 if test x$gr_boost_include_dir != x; then
28772 # If the user specified a directory, then we use it
28774 OLD_CPPFLAGS=$CPPFLAGS
28775 CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
28776 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28777 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28778 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28779 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28780 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28783 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28785 # Is the header compilable?
28786 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28787 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28788 cat >conftest.$ac_ext <<_ACEOF
28791 cat confdefs.h >>conftest.$ac_ext
28792 cat >>conftest.$ac_ext <<_ACEOF
28793 /* end confdefs.h. */
28794 $ac_includes_default
28795 #include <boost/shared_ptr.hpp>
28797 rm -f conftest.$ac_objext
28798 if { (ac_try="$ac_compile"
28799 case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_compile") 2>conftest.er1
28806 grep -v '^ *+' conftest.er1 >conftest.err
28808 cat conftest.err >&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } &&
28811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28812 { (case "(($ac_try" in
28813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814 *) ac_try_echo=$ac_try;;
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817 (eval "$ac_try") 2>&5
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } &&
28821 { ac_try='test -s conftest.$ac_objext'
28822 { (case "(($ac_try" in
28823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824 *) ac_try_echo=$ac_try;;
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827 (eval "$ac_try") 2>&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830 (exit $ac_status); }; }; then
28831 ac_header_compiler=yes
28833 echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28836 ac_header_compiler=no
28839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28841 echo "${ECHO_T}$ac_header_compiler" >&6; }
28843 # Is the header present?
28844 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
28845 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
28846 cat >conftest.$ac_ext <<_ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h. */
28852 #include <boost/shared_ptr.hpp>
28854 if { (ac_try="$ac_cpp conftest.$ac_ext"
28855 case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28862 grep -v '^ *+' conftest.er1 >conftest.err
28864 cat conftest.err >&5
28865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28866 (exit $ac_status); } >/dev/null; then
28867 if test -s conftest.err; then
28868 ac_cpp_err=$ac_cxx_preproc_warn_flag
28869 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28876 if test -z "$ac_cpp_err"; then
28877 ac_header_preproc=yes
28879 echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28882 ac_header_preproc=no
28885 rm -f conftest.err conftest.$ac_ext
28886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28887 echo "${ECHO_T}$ac_header_preproc" >&6; }
28889 # So? What about this header?
28890 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28892 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
28893 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
28894 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
28895 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
28896 ac_header_preproc=yes
28899 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
28900 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
28901 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
28902 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
28903 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
28904 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
28905 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
28906 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
28907 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
28908 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
28909 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
28910 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
28914 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28915 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28916 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28919 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
28921 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28922 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28925 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
28926 BOOST_CFLAGS="-I$gr_boost_include_dir"
28928 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
28929 Try using --with-boost-include-dir=<path>,
28930 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
28931 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
28932 Try using --with-boost-include-dir=<path>,
28933 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
28934 { (exit 1); exit 1; }; }
28938 CPPFLAGS=$OLD_CPPFLAGS
28941 # Otherwise we check in the default places
28943 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28944 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
28945 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
28946 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
28947 echo $ECHO_N "(cached) $ECHO_C" >&6
28949 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
28950 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
28952 # Is the header compilable?
28953 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
28954 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
28955 cat >conftest.$ac_ext <<_ACEOF
28958 cat confdefs.h >>conftest.$ac_ext
28959 cat >>conftest.$ac_ext <<_ACEOF
28960 /* end confdefs.h. */
28961 $ac_includes_default
28962 #include <boost/shared_ptr.hpp>
28964 rm -f conftest.$ac_objext
28965 if { (ac_try="$ac_compile"
28966 case "(($ac_try" in
28967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968 *) ac_try_echo=$ac_try;;
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971 (eval "$ac_compile") 2>conftest.er1
28973 grep -v '^ *+' conftest.er1 >conftest.err
28975 cat conftest.err >&5
28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } &&
28978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
28979 { (case "(($ac_try" in
28980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_try") 2>&5
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); }; } &&
28988 { ac_try='test -s conftest.$ac_objext'
28989 { (case "(($ac_try" in
28990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991 *) ac_try_echo=$ac_try;;
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994 (eval "$ac_try") 2>&5
28996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997 (exit $ac_status); }; }; then
28998 ac_header_compiler=yes
29000 echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29003 ac_header_compiler=no
29006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29008 echo "${ECHO_T}$ac_header_compiler" >&6; }
29010 # Is the header present?
29011 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29012 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29013 cat >conftest.$ac_ext <<_ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h. */
29019 #include <boost/shared_ptr.hpp>
29021 if { (ac_try="$ac_cpp conftest.$ac_ext"
29022 case "(($ac_try" in
29023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29024 *) ac_try_echo=$ac_try;;
29026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29029 grep -v '^ *+' conftest.er1 >conftest.err
29031 cat conftest.err >&5
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } >/dev/null; then
29034 if test -s conftest.err; then
29035 ac_cpp_err=$ac_cxx_preproc_warn_flag
29036 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29043 if test -z "$ac_cpp_err"; then
29044 ac_header_preproc=yes
29046 echo "$as_me: failed program was:" >&5
29047 sed 's/^/| /' conftest.$ac_ext >&5
29049 ac_header_preproc=no
29052 rm -f conftest.err conftest.$ac_ext
29053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29054 echo "${ECHO_T}$ac_header_preproc" >&6; }
29056 # So? What about this header?
29057 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29059 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29060 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29061 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29062 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29063 ac_header_preproc=yes
29066 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29067 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29068 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
29069 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
29070 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29071 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29072 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
29073 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
29074 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29075 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29076 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29077 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29081 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29082 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29083 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29084 echo $ECHO_N "(cached) $ECHO_C" >&6
29086 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29088 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29089 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29092 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29095 # Nope, look for latest version if any in $prefix/include/boost-*
29097 # Wipe out cached value. KLUDGE: AC should have API for this
29098 unset ac_cv_header_boost_shared_ptr_hpp
29100 boost_last_match(){
29101 #echo "boost_last_match: [$]*"
29104 if test "$pattern" = "$1"
29108 shift `expr $# - 1`
29111 #echo "LM(1)='[$]LM'"
29114 pattern="/usr/local/include/boost-*"
29115 boost_last_match "$pattern" $pattern
29116 #echo "LM(2)='$LM'"
29118 OLD_CPPFLAGS=$CPP_FLAGS
29119 CPPFLAGS="$CPPFLAGS -I$LM"
29120 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29121 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29122 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29123 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29124 echo $ECHO_N "(cached) $ECHO_C" >&6
29126 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29127 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29129 # Is the header compilable?
29130 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
29131 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
29132 cat >conftest.$ac_ext <<_ACEOF
29135 cat confdefs.h >>conftest.$ac_ext
29136 cat >>conftest.$ac_ext <<_ACEOF
29137 /* end confdefs.h. */
29138 $ac_includes_default
29139 #include <boost/shared_ptr.hpp>
29141 rm -f conftest.$ac_objext
29142 if { (ac_try="$ac_compile"
29143 case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_compile") 2>conftest.er1
29150 grep -v '^ *+' conftest.er1 >conftest.err
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); } &&
29155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
29156 { (case "(($ac_try" in
29157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29158 *) ac_try_echo=$ac_try;;
29160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29161 (eval "$ac_try") 2>&5
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; } &&
29165 { ac_try='test -s conftest.$ac_objext'
29166 { (case "(($ac_try" in
29167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168 *) ac_try_echo=$ac_try;;
29170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171 (eval "$ac_try") 2>&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); }; }; then
29175 ac_header_compiler=yes
29177 echo "$as_me: failed program was:" >&5
29178 sed 's/^/| /' conftest.$ac_ext >&5
29180 ac_header_compiler=no
29183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29185 echo "${ECHO_T}$ac_header_compiler" >&6; }
29187 # Is the header present?
29188 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
29189 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
29190 cat >conftest.$ac_ext <<_ACEOF
29193 cat confdefs.h >>conftest.$ac_ext
29194 cat >>conftest.$ac_ext <<_ACEOF
29195 /* end confdefs.h. */
29196 #include <boost/shared_ptr.hpp>
29198 if { (ac_try="$ac_cpp conftest.$ac_ext"
29199 case "(($ac_try" in
29200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29201 *) ac_try_echo=$ac_try;;
29203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29206 grep -v '^ *+' conftest.er1 >conftest.err
29208 cat conftest.err >&5
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29210 (exit $ac_status); } >/dev/null; then
29211 if test -s conftest.err; then
29212 ac_cpp_err=$ac_cxx_preproc_warn_flag
29213 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29220 if test -z "$ac_cpp_err"; then
29221 ac_header_preproc=yes
29223 echo "$as_me: failed program was:" >&5
29224 sed 's/^/| /' conftest.$ac_ext >&5
29226 ac_header_preproc=no
29229 rm -f conftest.err conftest.$ac_ext
29230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29231 echo "${ECHO_T}$ac_header_preproc" >&6; }
29233 # So? What about this header?
29234 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29236 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
29237 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
29239 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
29240 ac_header_preproc=yes
29243 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
29244 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
29245 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
29246 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
29247 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
29248 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
29249 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
29250 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
29251 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
29252 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
29253 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
29254 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
29258 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
29259 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
29260 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
29261 echo $ECHO_N "(cached) $ECHO_C" >&6
29263 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
29265 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
29266 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
29269 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
29270 BOOST_CFLAGS="-I$LM"
29272 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
29273 Try using --with-boost-include-dir=<path>,
29274 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
29275 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
29276 Try using --with-boost-include-dir=<path>,
29277 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
29278 { (exit 1); exit 1; }; }
29282 CPPFLAGS=$OLD_CPPFLAGS
29289 unset boost_last_match LM
29291 ac_cpp='$CPP $CPPFLAGS'
29292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29302 # Check whether --enable-all-components was given.
29303 if test "${enable_all_components+set}" = set; then
29304 enableval=$enable_all_components;
29308 build_dirs="config"
29311 # Check whether --enable-gnuradio-core was given.
29312 if test "${enable_gnuradio_core+set}" = set; then
29313 enableval=$enable_gnuradio_core;
29315 enable_gnuradio_core=$enable_all_components
29320 ac_config_files="$ac_config_files gnuradio-core/Makefile gnuradio-core/gnuradio-core.pc gnuradio-core/doc/Doxyfile gnuradio-core/doc/Makefile gnuradio-core/doc/other/Makefile gnuradio-core/doc/xml/Makefile gnuradio-core/src/Makefile gnuradio-core/src/gen_interpolator_taps/Makefile gnuradio-core/src/lib/Makefile gnuradio-core/src/lib/filter/Makefile gnuradio-core/src/lib/g72x/Makefile gnuradio-core/src/lib/general/Makefile gnuradio-core/src/lib/general/gr_prefix.cc gnuradio-core/src/lib/io/Makefile gnuradio-core/src/lib/missing/Makefile gnuradio-core/src/lib/omnithread/Makefile gnuradio-core/src/lib/reed-solomon/Makefile gnuradio-core/src/lib/runtime/Makefile gnuradio-core/src/lib/swig/Makefile gnuradio-core/src/python/Makefile gnuradio-core/src/python/bin/Makefile gnuradio-core/src/python/gnuradio/Makefile gnuradio-core/src/python/gnuradio/blks/Makefile gnuradio-core/src/python/gnuradio/blksimpl/Makefile gnuradio-core/src/python/gnuradio/gr/Makefile gnuradio-core/src/python/gnuradio/gr/run_tests gnuradio-core/src/python/gnuradio/gru/Makefile gnuradio-core/src/python/gnuradio/gruimpl/Makefile gnuradio-core/src/tests/Makefile gnuradio-core/src/utils/Makefile"
29325 if test x$passed = xno; then
29326 skipped_dirs="$skipped_dirs gnuradio-core"
29327 if test x$enable_gnuradio_core = xyes; then
29328 { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
29329 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
29330 { (exit 1); exit 1; }; }
29332 { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
29333 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
29336 if test x$enable_gnuradio_core != xno; then
29338 ac_config_commands="$ac_config_commands run_tests_core"
29341 ac_config_commands="$ac_config_commands swig_deps"
29344 build_dirs="$build_dirs gnuradio-core"
29345 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
29346 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
29348 skipped_dirs="$skipped_dirs gnuradio-core"
29349 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
29350 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
29357 # Check whether --enable-gnuradio-examples was given.
29358 if test "${enable_gnuradio_examples+set}" = set; then
29359 enableval=$enable_gnuradio_examples;
29361 enable_gnuradio_examples=$enable_all_components
29366 ac_config_files="$ac_config_files gnuradio-examples/Makefile gnuradio-examples/python/Makefile gnuradio-examples/python/apps/hf_explorer/Makefile gnuradio-examples/python/apps/hf_radio/Makefile gnuradio-examples/python/apps/Makefile gnuradio-examples/python/audio/Makefile gnuradio-examples/python/channel-coding/Makefile gnuradio-examples/python/channel-coding/fsm_files/Makefile gnuradio-examples/python/digital/Makefile gnuradio-examples/python/digital_voice/Makefile gnuradio-examples/python/multi-antenna/Makefile gnuradio-examples/python/multi_usrp/Makefile gnuradio-examples/python/networking/Makefile gnuradio-examples/python/usrp/Makefile"
29371 if test x$passed = xno; then
29372 skipped_dirs="$skipped_dirs gnuradio-examples"
29373 if test x$enable_gnuradio_examples = xyes; then
29374 { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
29375 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
29376 { (exit 1); exit 1; }; }
29378 { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
29379 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
29382 if test x$enable_gnuradio_examples != xno; then
29384 build_dirs="$build_dirs gnuradio-examples"
29385 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
29386 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
29388 skipped_dirs="$skipped_dirs gnuradio-examples"
29389 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
29390 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
29395 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29396 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
29397 if test "${ac_cv_header_stat_broken+set}" = set; then
29398 echo $ECHO_N "(cached) $ECHO_C" >&6
29400 cat >conftest.$ac_ext <<_ACEOF
29403 cat confdefs.h >>conftest.$ac_ext
29404 cat >>conftest.$ac_ext <<_ACEOF
29405 /* end confdefs.h. */
29406 #include <sys/types.h>
29407 #include <sys/stat.h>
29409 #if defined S_ISBLK && defined S_IFDIR
29410 # if S_ISBLK (S_IFDIR)
29415 #if defined S_ISBLK && defined S_IFCHR
29416 # if S_ISBLK (S_IFCHR)
29421 #if defined S_ISLNK && defined S_IFREG
29422 # if S_ISLNK (S_IFREG)
29427 #if defined S_ISSOCK && defined S_IFREG
29428 # if S_ISSOCK (S_IFREG)
29434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29435 $EGREP "You lose" >/dev/null 2>&1; then
29436 ac_cv_header_stat_broken=yes
29438 ac_cv_header_stat_broken=no
29443 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29444 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
29445 if test $ac_cv_header_stat_broken = yes; then
29447 cat >>confdefs.h <<\_ACEOF
29448 #define STAT_MACROS_BROKEN 1
29455 for ac_header in fcntl.h
29457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29462 echo $ECHO_N "(cached) $ECHO_C" >&6
29464 ac_res=`eval echo '${'$as_ac_Header'}'`
29465 { echo "$as_me:$LINENO: result: $ac_res" >&5
29466 echo "${ECHO_T}$ac_res" >&6; }
29468 # Is the header compilable?
29469 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29470 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29471 cat >conftest.$ac_ext <<_ACEOF
29474 cat confdefs.h >>conftest.$ac_ext
29475 cat >>conftest.$ac_ext <<_ACEOF
29476 /* end confdefs.h. */
29477 $ac_includes_default
29478 #include <$ac_header>
29480 rm -f conftest.$ac_objext
29481 if { (ac_try="$ac_compile"
29482 case "(($ac_try" in
29483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484 *) ac_try_echo=$ac_try;;
29486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 (eval "$ac_compile") 2>conftest.er1
29489 grep -v '^ *+' conftest.er1 >conftest.err
29491 cat conftest.err >&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); } &&
29494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29495 { (case "(($ac_try" in
29496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29497 *) ac_try_echo=$ac_try;;
29499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29500 (eval "$ac_try") 2>&5
29502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503 (exit $ac_status); }; } &&
29504 { ac_try='test -s conftest.$ac_objext'
29505 { (case "(($ac_try" in
29506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507 *) ac_try_echo=$ac_try;;
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510 (eval "$ac_try") 2>&5
29512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513 (exit $ac_status); }; }; then
29514 ac_header_compiler=yes
29516 echo "$as_me: failed program was:" >&5
29517 sed 's/^/| /' conftest.$ac_ext >&5
29519 ac_header_compiler=no
29522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29524 echo "${ECHO_T}$ac_header_compiler" >&6; }
29526 # Is the header present?
29527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29529 cat >conftest.$ac_ext <<_ACEOF
29532 cat confdefs.h >>conftest.$ac_ext
29533 cat >>conftest.$ac_ext <<_ACEOF
29534 /* end confdefs.h. */
29535 #include <$ac_header>
29537 if { (ac_try="$ac_cpp conftest.$ac_ext"
29538 case "(($ac_try" in
29539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29540 *) ac_try_echo=$ac_try;;
29542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29545 grep -v '^ *+' conftest.er1 >conftest.err
29547 cat conftest.err >&5
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); } >/dev/null; then
29550 if test -s conftest.err; then
29551 ac_cpp_err=$ac_c_preproc_warn_flag
29552 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29559 if test -z "$ac_cpp_err"; then
29560 ac_header_preproc=yes
29562 echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29565 ac_header_preproc=no
29568 rm -f conftest.err conftest.$ac_ext
29569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29570 echo "${ECHO_T}$ac_header_preproc" >&6; }
29572 # So? What about this header?
29573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29579 ac_header_preproc=yes
29582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29600 echo $ECHO_N "(cached) $ECHO_C" >&6
29602 eval "$as_ac_Header=\$ac_header_preproc"
29604 ac_res=`eval echo '${'$as_ac_Header'}'`
29605 { echo "$as_me:$LINENO: result: $ac_res" >&5
29606 echo "${ECHO_T}$ac_res" >&6; }
29609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29610 cat >>confdefs.h <<_ACEOF
29611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29621 for ac_header in sys/time.h
29623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29628 echo $ECHO_N "(cached) $ECHO_C" >&6
29630 ac_res=`eval echo '${'$as_ac_Header'}'`
29631 { echo "$as_me:$LINENO: result: $ac_res" >&5
29632 echo "${ECHO_T}$ac_res" >&6; }
29634 # Is the header compilable?
29635 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29637 cat >conftest.$ac_ext <<_ACEOF
29640 cat confdefs.h >>conftest.$ac_ext
29641 cat >>conftest.$ac_ext <<_ACEOF
29642 /* end confdefs.h. */
29643 $ac_includes_default
29644 #include <$ac_header>
29646 rm -f conftest.$ac_objext
29647 if { (ac_try="$ac_compile"
29648 case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_compile") 2>conftest.er1
29655 grep -v '^ *+' conftest.er1 >conftest.err
29657 cat conftest.err >&5
29658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } &&
29660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29661 { (case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_try") 2>&5
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; } &&
29670 { ac_try='test -s conftest.$ac_objext'
29671 { (case "(($ac_try" in
29672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673 *) ac_try_echo=$ac_try;;
29675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29676 (eval "$ac_try") 2>&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; }; then
29680 ac_header_compiler=yes
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 ac_header_compiler=no
29688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29690 echo "${ECHO_T}$ac_header_compiler" >&6; }
29692 # Is the header present?
29693 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29695 cat >conftest.$ac_ext <<_ACEOF
29698 cat confdefs.h >>conftest.$ac_ext
29699 cat >>conftest.$ac_ext <<_ACEOF
29700 /* end confdefs.h. */
29701 #include <$ac_header>
29703 if { (ac_try="$ac_cpp conftest.$ac_ext"
29704 case "(($ac_try" in
29705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29706 *) ac_try_echo=$ac_try;;
29708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29711 grep -v '^ *+' conftest.er1 >conftest.err
29713 cat conftest.err >&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } >/dev/null; then
29716 if test -s conftest.err; then
29717 ac_cpp_err=$ac_c_preproc_warn_flag
29718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29725 if test -z "$ac_cpp_err"; then
29726 ac_header_preproc=yes
29728 echo "$as_me: failed program was:" >&5
29729 sed 's/^/| /' conftest.$ac_ext >&5
29731 ac_header_preproc=no
29734 rm -f conftest.err conftest.$ac_ext
29735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29736 echo "${ECHO_T}$ac_header_preproc" >&6; }
29738 # So? What about this header?
29739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29742 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29744 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29745 ac_header_preproc=yes
29748 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29749 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29751 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29752 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29753 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29754 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29755 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29757 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29758 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29759 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29766 echo $ECHO_N "(cached) $ECHO_C" >&6
29768 eval "$as_ac_Header=\$ac_header_preproc"
29770 ac_res=`eval echo '${'$as_ac_Header'}'`
29771 { echo "$as_me:$LINENO: result: $ac_res" >&5
29772 echo "${ECHO_T}$ac_res" >&6; }
29775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29776 cat >>confdefs.h <<_ACEOF
29777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29787 for ac_header in unistd.h
29789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29794 echo $ECHO_N "(cached) $ECHO_C" >&6
29796 ac_res=`eval echo '${'$as_ac_Header'}'`
29797 { echo "$as_me:$LINENO: result: $ac_res" >&5
29798 echo "${ECHO_T}$ac_res" >&6; }
29800 # Is the header compilable?
29801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29803 cat >conftest.$ac_ext <<_ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h. */
29809 $ac_includes_default
29810 #include <$ac_header>
29812 rm -f conftest.$ac_objext
29813 if { (ac_try="$ac_compile"
29814 case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_compile") 2>conftest.er1
29821 grep -v '^ *+' conftest.er1 >conftest.err
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } &&
29826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29827 { (case "(($ac_try" in
29828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29829 *) ac_try_echo=$ac_try;;
29831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29832 (eval "$ac_try") 2>&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; } &&
29836 { ac_try='test -s conftest.$ac_objext'
29837 { (case "(($ac_try" in
29838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29839 *) ac_try_echo=$ac_try;;
29841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29842 (eval "$ac_try") 2>&5
29844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29845 (exit $ac_status); }; }; then
29846 ac_header_compiler=yes
29848 echo "$as_me: failed program was:" >&5
29849 sed 's/^/| /' conftest.$ac_ext >&5
29851 ac_header_compiler=no
29854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29856 echo "${ECHO_T}$ac_header_compiler" >&6; }
29858 # Is the header present?
29859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29861 cat >conftest.$ac_ext <<_ACEOF
29864 cat confdefs.h >>conftest.$ac_ext
29865 cat >>conftest.$ac_ext <<_ACEOF
29866 /* end confdefs.h. */
29867 #include <$ac_header>
29869 if { (ac_try="$ac_cpp conftest.$ac_ext"
29870 case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29877 grep -v '^ *+' conftest.er1 >conftest.err
29879 cat conftest.err >&5
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); } >/dev/null; then
29882 if test -s conftest.err; then
29883 ac_cpp_err=$ac_c_preproc_warn_flag
29884 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29891 if test -z "$ac_cpp_err"; then
29892 ac_header_preproc=yes
29894 echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29897 ac_header_preproc=no
29900 rm -f conftest.err conftest.$ac_ext
29901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29902 echo "${ECHO_T}$ac_header_preproc" >&6; }
29904 # So? What about this header?
29905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29911 ac_header_preproc=yes
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29932 echo $ECHO_N "(cached) $ECHO_C" >&6
29934 eval "$as_ac_Header=\$ac_header_preproc"
29936 ac_res=`eval echo '${'$as_ac_Header'}'`
29937 { echo "$as_me:$LINENO: result: $ac_res" >&5
29938 echo "${ECHO_T}$ac_res" >&6; }
29941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29942 cat >>confdefs.h <<_ACEOF
29943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29952 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
29953 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
29954 if test "${ac_cv_have_decl_getenv+set}" = set; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29957 cat >conftest.$ac_ext <<_ACEOF
29960 cat confdefs.h >>conftest.$ac_ext
29961 cat >>conftest.$ac_ext <<_ACEOF
29962 /* end confdefs.h. */
29963 $ac_includes_default
29968 char *p = (char *) getenv;
29976 rm -f conftest.$ac_objext
29977 if { (ac_try="$ac_compile"
29978 case "(($ac_try" in
29979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29980 *) ac_try_echo=$ac_try;;
29982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29983 (eval "$ac_compile") 2>conftest.er1
29985 grep -v '^ *+' conftest.er1 >conftest.err
29987 cat conftest.err >&5
29988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 (exit $ac_status); } &&
29990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29991 { (case "(($ac_try" in
29992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993 *) ac_try_echo=$ac_try;;
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996 (eval "$ac_try") 2>&5
29998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29999 (exit $ac_status); }; } &&
30000 { ac_try='test -s conftest.$ac_objext'
30001 { (case "(($ac_try" in
30002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30003 *) ac_try_echo=$ac_try;;
30005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30006 (eval "$ac_try") 2>&5
30008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30009 (exit $ac_status); }; }; then
30010 ac_cv_have_decl_getenv=yes
30012 echo "$as_me: failed program was:" >&5
30013 sed 's/^/| /' conftest.$ac_ext >&5
30015 ac_cv_have_decl_getenv=no
30018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30020 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
30021 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
30022 if test $ac_cv_have_decl_getenv = yes; then
30024 cat >>confdefs.h <<_ACEOF
30025 #define HAVE_DECL_GETENV 1
30030 cat >>confdefs.h <<_ACEOF
30031 #define HAVE_DECL_GETENV 0
30041 # Check whether --enable-usrp was given.
30042 if test "${enable_usrp+set}" = set; then
30043 enableval=$enable_usrp;
30045 enable_usrp=$enable_all_components
30050 ac_config_files="$ac_config_files usrp/Makefile usrp/usrp.pc usrp/usrp.iss usrp/doc/Doxyfile usrp/doc/Makefile usrp/doc/other/Makefile usrp/host/Makefile usrp/host/misc/Makefile usrp/host/lib/Makefile usrp/host/lib/std_paths.h usrp/host/swig/Makefile usrp/host/apps/Makefile usrp/firmware/Makefile usrp/firmware/include/Makefile usrp/firmware/lib/Makefile usrp/firmware/src/Makefile usrp/firmware/src/common/Makefile usrp/firmware/src/usrp2/Makefile usrp/fpga/Makefile usrp/fpga/rbf/Makefile"
30054 # FIXME: this needs to fail gracefully and continue, not implemented yet
30056 for ac_func in mkstemp
30058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30062 echo $ECHO_N "(cached) $ECHO_C" >&6
30064 cat >conftest.$ac_ext <<_ACEOF
30067 cat confdefs.h >>conftest.$ac_ext
30068 cat >>conftest.$ac_ext <<_ACEOF
30069 /* end confdefs.h. */
30070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30072 #define $ac_func innocuous_$ac_func
30074 /* System header to define __stub macros and hopefully few prototypes,
30075 which can conflict with char $ac_func (); below.
30076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30077 <limits.h> exists even on freestanding compilers. */
30080 # include <limits.h>
30082 # include <assert.h>
30087 /* Override any GCC internal prototype to avoid an error.
30088 Use char because int might match the return type of a GCC
30089 builtin and then its argument prototype would still apply. */
30094 /* The GNU C library defines this for functions which it implements
30095 to always fail with ENOSYS. Some functions are actually named
30096 something starting with __ and the normal name is an alias. */
30097 #if defined __stub_$ac_func || defined __stub___$ac_func
30104 return $ac_func ();
30109 rm -f conftest.$ac_objext conftest$ac_exeext
30110 if { (ac_try="$ac_link"
30111 case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_link") 2>conftest.er1
30118 grep -v '^ *+' conftest.er1 >conftest.err
30120 cat conftest.err >&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } &&
30123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; } &&
30133 { ac_try='test -s conftest$ac_exeext'
30134 { (case "(($ac_try" in
30135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30136 *) ac_try_echo=$ac_try;;
30138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30139 (eval "$ac_try") 2>&5
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
30143 eval "$as_ac_var=yes"
30145 echo "$as_me: failed program was:" >&5
30146 sed 's/^/| /' conftest.$ac_ext >&5
30148 eval "$as_ac_var=no"
30151 rm -f core conftest.err conftest.$ac_objext \
30152 conftest$ac_exeext conftest.$ac_ext
30154 ac_res=`eval echo '${'$as_ac_var'}'`
30155 { echo "$as_me:$LINENO: result: $ac_res" >&5
30156 echo "${ECHO_T}$ac_res" >&6; }
30157 if test `eval echo '${'$as_ac_var'}'` = yes; then
30158 cat >>confdefs.h <<_ACEOF
30159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30163 case " $LIBOBJS " in
30164 *" $ac_func.$ac_objext "* ) ;;
30165 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
30173 if test $ac_cv_func_mkstemp = no; then
30174 utils_cv_func_mkstemp_limitations=yes
30176 { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
30177 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
30178 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
30179 echo $ECHO_N "(cached) $ECHO_C" >&6
30182 if test "$cross_compiling" = yes; then
30183 utils_cv_func_mkstemp_limitations=yes
30186 cat >conftest.$ac_ext <<_ACEOF
30189 cat confdefs.h >>conftest.$ac_ext
30190 cat >>conftest.$ac_ext <<_ACEOF
30191 /* end confdefs.h. */
30193 # include <stdlib.h>
30197 for (i = 0; i < 70; i++)
30199 char template[] = "conftestXXXXXX";
30200 int fd = mkstemp (template);
30209 rm -f conftest$ac_exeext
30210 if { (ac_try="$ac_link"
30211 case "(($ac_try" in
30212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30213 *) ac_try_echo=$ac_try;;
30215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30216 (eval "$ac_link") 2>&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30220 { (case "(($ac_try" in
30221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222 *) ac_try_echo=$ac_try;;
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225 (eval "$ac_try") 2>&5
30227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30228 (exit $ac_status); }; }; then
30229 utils_cv_func_mkstemp_limitations=no
30231 echo "$as_me: program exited with status $ac_status" >&5
30232 echo "$as_me: failed program was:" >&5
30233 sed 's/^/| /' conftest.$ac_ext >&5
30235 ( exit $ac_status )
30236 utils_cv_func_mkstemp_limitations=yes
30238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30245 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
30246 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
30249 if test $utils_cv_func_mkstemp_limitations = yes; then
30250 case " $LIBOBJS " in
30251 *" mkstemp.$ac_objext "* ) ;;
30252 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
30256 case " $LIBOBJS " in
30257 *" tempname.$ac_objext "* ) ;;
30258 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
30263 cat >>confdefs.h <<\_ACEOF
30264 #define mkstemp rpl_mkstemp
30287 for ac_header in stdint.h
30289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30294 echo $ECHO_N "(cached) $ECHO_C" >&6
30296 ac_res=`eval echo '${'$as_ac_Header'}'`
30297 { echo "$as_me:$LINENO: result: $ac_res" >&5
30298 echo "${ECHO_T}$ac_res" >&6; }
30300 # Is the header compilable?
30301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 $ac_includes_default
30310 #include <$ac_header>
30312 rm -f conftest.$ac_objext
30313 if { (ac_try="$ac_compile"
30314 case "(($ac_try" in
30315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316 *) ac_try_echo=$ac_try;;
30318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30319 (eval "$ac_compile") 2>conftest.er1
30321 grep -v '^ *+' conftest.er1 >conftest.err
30323 cat conftest.err >&5
30324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325 (exit $ac_status); } &&
30326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30327 { (case "(($ac_try" in
30328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30329 *) ac_try_echo=$ac_try;;
30331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30332 (eval "$ac_try") 2>&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); }; } &&
30336 { ac_try='test -s conftest.$ac_objext'
30337 { (case "(($ac_try" in
30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_try") 2>&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; }; then
30346 ac_header_compiler=yes
30348 echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30351 ac_header_compiler=no
30354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30356 echo "${ECHO_T}$ac_header_compiler" >&6; }
30358 # Is the header present?
30359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30361 cat >conftest.$ac_ext <<_ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h. */
30367 #include <$ac_header>
30369 if { (ac_try="$ac_cpp conftest.$ac_ext"
30370 case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30377 grep -v '^ *+' conftest.er1 >conftest.err
30379 cat conftest.err >&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } >/dev/null; then
30382 if test -s conftest.err; then
30383 ac_cpp_err=$ac_c_preproc_warn_flag
30384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30391 if test -z "$ac_cpp_err"; then
30392 ac_header_preproc=yes
30394 echo "$as_me: failed program was:" >&5
30395 sed 's/^/| /' conftest.$ac_ext >&5
30397 ac_header_preproc=no
30400 rm -f conftest.err conftest.$ac_ext
30401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30402 echo "${ECHO_T}$ac_header_preproc" >&6; }
30404 # So? What about this header?
30405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30407 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30411 ac_header_preproc=yes
30414 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30416 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30417 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30418 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30420 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30421 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30424 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30432 echo $ECHO_N "(cached) $ECHO_C" >&6
30434 eval "$as_ac_Header=\$ac_header_preproc"
30436 ac_res=`eval echo '${'$as_ac_Header'}'`
30437 { echo "$as_me:$LINENO: result: $ac_res" >&5
30438 echo "${ECHO_T}$ac_res" >&6; }
30441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30442 cat >>confdefs.h <<_ACEOF
30443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30453 for ac_func in __secure_getenv gettimeofday lstat
30455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30459 echo $ECHO_N "(cached) $ECHO_C" >&6
30461 cat >conftest.$ac_ext <<_ACEOF
30464 cat confdefs.h >>conftest.$ac_ext
30465 cat >>conftest.$ac_ext <<_ACEOF
30466 /* end confdefs.h. */
30467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30468 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30469 #define $ac_func innocuous_$ac_func
30471 /* System header to define __stub macros and hopefully few prototypes,
30472 which can conflict with char $ac_func (); below.
30473 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30474 <limits.h> exists even on freestanding compilers. */
30477 # include <limits.h>
30479 # include <assert.h>
30484 /* Override any GCC internal prototype to avoid an error.
30485 Use char because int might match the return type of a GCC
30486 builtin and then its argument prototype would still apply. */
30491 /* The GNU C library defines this for functions which it implements
30492 to always fail with ENOSYS. Some functions are actually named
30493 something starting with __ and the normal name is an alias. */
30494 #if defined __stub_$ac_func || defined __stub___$ac_func
30501 return $ac_func ();
30506 rm -f conftest.$ac_objext conftest$ac_exeext
30507 if { (ac_try="$ac_link"
30508 case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_link") 2>conftest.er1
30515 grep -v '^ *+' conftest.er1 >conftest.err
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
30520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30521 { (case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_try") 2>&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; } &&
30530 { ac_try='test -s conftest$ac_exeext'
30531 { (case "(($ac_try" in
30532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533 *) ac_try_echo=$ac_try;;
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536 (eval "$ac_try") 2>&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; }; then
30540 eval "$as_ac_var=yes"
30542 echo "$as_me: failed program was:" >&5
30543 sed 's/^/| /' conftest.$ac_ext >&5
30545 eval "$as_ac_var=no"
30548 rm -f core conftest.err conftest.$ac_objext \
30549 conftest$ac_exeext conftest.$ac_ext
30551 ac_res=`eval echo '${'$as_ac_var'}'`
30552 { echo "$as_me:$LINENO: result: $ac_res" >&5
30553 echo "${ECHO_T}$ac_res" >&6; }
30554 if test `eval echo '${'$as_ac_var'}'` = yes; then
30555 cat >>confdefs.h <<_ACEOF
30556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30569 # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
30571 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
30572 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
30573 cat >conftest.$ac_ext <<_ACEOF
30576 cat confdefs.h >>conftest.$ac_ext
30577 cat >>conftest.$ac_ext <<_ACEOF
30578 /* end confdefs.h. */
30579 #include <sys/types.h>
30580 #include <sys/stat.h>
30592 rm -f conftest.$ac_objext
30593 if { (ac_try="$ac_compile"
30594 case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_compile") 2>conftest.er1
30601 grep -v '^ *+' conftest.er1 >conftest.err
30603 cat conftest.err >&5
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); } &&
30606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30607 { (case "(($ac_try" in
30608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30609 *) ac_try_echo=$ac_try;;
30611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30612 (eval "$ac_try") 2>&5
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); }; } &&
30616 { ac_try='test -s conftest.$ac_objext'
30617 { (case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_try") 2>&5
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); }; }; then
30626 { echo "$as_me:$LINENO: result: yes" >&5
30627 echo "${ECHO_T}yes" >&6; }
30629 cat >>confdefs.h <<\_ACEOF
30630 #define MKDIR_TAKES_ONE_ARG
30634 echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30637 { echo "$as_me:$LINENO: result: no" >&5
30638 echo "${ECHO_T}no" >&6; }
30642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30647 # These checks don't fail
30648 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30649 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
30650 if test "${ac_cv_c_bigendian+set}" = set; then
30651 echo $ECHO_N "(cached) $ECHO_C" >&6
30653 # See if sys/param.h defines the BYTE_ORDER macro.
30654 cat >conftest.$ac_ext <<_ACEOF
30657 cat confdefs.h >>conftest.$ac_ext
30658 cat >>conftest.$ac_ext <<_ACEOF
30659 /* end confdefs.h. */
30660 #include <sys/types.h>
30661 #include <sys/param.h>
30666 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30667 bogus endian macros
30674 rm -f conftest.$ac_objext
30675 if { (ac_try="$ac_compile"
30676 case "(($ac_try" in
30677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678 *) ac_try_echo=$ac_try;;
30680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681 (eval "$ac_compile") 2>conftest.er1
30683 grep -v '^ *+' conftest.er1 >conftest.err
30685 cat conftest.err >&5
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); } &&
30688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30689 { (case "(($ac_try" in
30690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30691 *) ac_try_echo=$ac_try;;
30693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30694 (eval "$ac_try") 2>&5
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; } &&
30698 { ac_try='test -s conftest.$ac_objext'
30699 { (case "(($ac_try" in
30700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704 (eval "$ac_try") 2>&5
30706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30707 (exit $ac_status); }; }; then
30708 # It does; now see whether it defined to BIG_ENDIAN or not.
30709 cat >conftest.$ac_ext <<_ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h. */
30715 #include <sys/types.h>
30716 #include <sys/param.h>
30721 #if BYTE_ORDER != BIG_ENDIAN
30729 rm -f conftest.$ac_objext
30730 if { (ac_try="$ac_compile"
30731 case "(($ac_try" in
30732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30733 *) ac_try_echo=$ac_try;;
30735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30736 (eval "$ac_compile") 2>conftest.er1
30738 grep -v '^ *+' conftest.er1 >conftest.err
30740 cat conftest.err >&5
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); } &&
30743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30744 { (case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_try") 2>&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); }; } &&
30753 { ac_try='test -s conftest.$ac_objext'
30754 { (case "(($ac_try" in
30755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30756 *) ac_try_echo=$ac_try;;
30758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30759 (eval "$ac_try") 2>&5
30761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); }; }; then
30763 ac_cv_c_bigendian=yes
30765 echo "$as_me: failed program was:" >&5
30766 sed 's/^/| /' conftest.$ac_ext >&5
30768 ac_cv_c_bigendian=no
30771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773 echo "$as_me: failed program was:" >&5
30774 sed 's/^/| /' conftest.$ac_ext >&5
30776 # It does not; compile a test program.
30777 if test "$cross_compiling" = yes; then
30778 # try to guess the endianness by grepping values into an object file
30779 ac_cv_c_bigendian=unknown
30780 cat >conftest.$ac_ext <<_ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h. */
30786 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30787 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30788 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30789 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30790 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30791 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30795 _ascii (); _ebcdic ();
30800 rm -f conftest.$ac_objext
30801 if { (ac_try="$ac_compile"
30802 case "(($ac_try" in
30803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804 *) ac_try_echo=$ac_try;;
30806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807 (eval "$ac_compile") 2>conftest.er1
30809 grep -v '^ *+' conftest.er1 >conftest.err
30811 cat conftest.err >&5
30812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813 (exit $ac_status); } &&
30814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30815 { (case "(($ac_try" in
30816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30817 *) ac_try_echo=$ac_try;;
30819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30820 (eval "$ac_try") 2>&5
30822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30823 (exit $ac_status); }; } &&
30824 { ac_try='test -s conftest.$ac_objext'
30825 { (case "(($ac_try" in
30826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30827 *) ac_try_echo=$ac_try;;
30829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30830 (eval "$ac_try") 2>&5
30832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833 (exit $ac_status); }; }; then
30834 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
30835 ac_cv_c_bigendian=yes
30837 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
30838 if test "$ac_cv_c_bigendian" = unknown; then
30839 ac_cv_c_bigendian=no
30841 # finding both strings is unlikely to happen, but who knows?
30842 ac_cv_c_bigendian=unknown
30846 echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.$ac_ext >&5
30852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30854 cat >conftest.$ac_ext <<_ACEOF
30857 cat confdefs.h >>conftest.$ac_ext
30858 cat >>conftest.$ac_ext <<_ACEOF
30859 /* end confdefs.h. */
30860 $ac_includes_default
30865 /* Are we little or big endian? From Harbison&Steele. */
30869 char c[sizeof (long int)];
30872 return u.c[sizeof (long int) - 1] == 1;
30878 rm -f conftest$ac_exeext
30879 if { (ac_try="$ac_link"
30880 case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_link") 2>&5
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30889 { (case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_try") 2>&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
30898 ac_cv_c_bigendian=no
30900 echo "$as_me: program exited with status $ac_status" >&5
30901 echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30904 ( exit $ac_status )
30905 ac_cv_c_bigendian=yes
30907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30915 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
30916 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
30917 case $ac_cv_c_bigendian in
30920 cat >>confdefs.h <<\_ACEOF
30921 #define WORDS_BIGENDIAN 1
30927 { { echo "$as_me:$LINENO: error: unknown endianness
30928 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
30929 echo "$as_me: error: unknown endianness
30930 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
30931 { (exit 1); exit 1; }; } ;;
30936 for ac_header in byteswap.h linux/compiler.h
30938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30943 echo $ECHO_N "(cached) $ECHO_C" >&6
30945 ac_res=`eval echo '${'$as_ac_Header'}'`
30946 { echo "$as_me:$LINENO: result: $ac_res" >&5
30947 echo "${ECHO_T}$ac_res" >&6; }
30949 # Is the header compilable?
30950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30952 cat >conftest.$ac_ext <<_ACEOF
30955 cat confdefs.h >>conftest.$ac_ext
30956 cat >>conftest.$ac_ext <<_ACEOF
30957 /* end confdefs.h. */
30958 $ac_includes_default
30959 #include <$ac_header>
30961 rm -f conftest.$ac_objext
30962 if { (ac_try="$ac_compile"
30963 case "(($ac_try" in
30964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30965 *) ac_try_echo=$ac_try;;
30967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30968 (eval "$ac_compile") 2>conftest.er1
30970 grep -v '^ *+' conftest.er1 >conftest.err
30972 cat conftest.err >&5
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); } &&
30975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30976 { (case "(($ac_try" in
30977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978 *) ac_try_echo=$ac_try;;
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981 (eval "$ac_try") 2>&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; } &&
30985 { ac_try='test -s conftest.$ac_objext'
30986 { (case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_try") 2>&5
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; }; then
30995 ac_header_compiler=yes
30997 echo "$as_me: failed program was:" >&5
30998 sed 's/^/| /' conftest.$ac_ext >&5
31000 ac_header_compiler=no
31003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31005 echo "${ECHO_T}$ac_header_compiler" >&6; }
31007 # Is the header present?
31008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31010 cat >conftest.$ac_ext <<_ACEOF
31013 cat confdefs.h >>conftest.$ac_ext
31014 cat >>conftest.$ac_ext <<_ACEOF
31015 /* end confdefs.h. */
31016 #include <$ac_header>
31018 if { (ac_try="$ac_cpp conftest.$ac_ext"
31019 case "(($ac_try" in
31020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31021 *) ac_try_echo=$ac_try;;
31023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31026 grep -v '^ *+' conftest.er1 >conftest.err
31028 cat conftest.err >&5
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } >/dev/null; then
31031 if test -s conftest.err; then
31032 ac_cpp_err=$ac_c_preproc_warn_flag
31033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31040 if test -z "$ac_cpp_err"; then
31041 ac_header_preproc=yes
31043 echo "$as_me: failed program was:" >&5
31044 sed 's/^/| /' conftest.$ac_ext >&5
31046 ac_header_preproc=no
31049 rm -f conftest.err conftest.$ac_ext
31050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31051 echo "${ECHO_T}$ac_header_preproc" >&6; }
31053 # So? What about this header?
31054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31060 ac_header_preproc=yes
31063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31081 echo $ECHO_N "(cached) $ECHO_C" >&6
31083 eval "$as_ac_Header=\$ac_header_preproc"
31085 ac_res=`eval echo '${'$as_ac_Header'}'`
31086 { echo "$as_me:$LINENO: result: $ac_res" >&5
31087 echo "${ECHO_T}$ac_res" >&6; }
31090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31091 cat >>confdefs.h <<_ACEOF
31092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31101 for ac_func in getrusage sched_setscheduler
31103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31107 echo $ECHO_N "(cached) $ECHO_C" >&6
31109 cat >conftest.$ac_ext <<_ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h. */
31115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31117 #define $ac_func innocuous_$ac_func
31119 /* System header to define __stub macros and hopefully few prototypes,
31120 which can conflict with char $ac_func (); below.
31121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31122 <limits.h> exists even on freestanding compilers. */
31125 # include <limits.h>
31127 # include <assert.h>
31132 /* Override any GCC internal prototype to avoid an error.
31133 Use char because int might match the return type of a GCC
31134 builtin and then its argument prototype would still apply. */
31139 /* The GNU C library defines this for functions which it implements
31140 to always fail with ENOSYS. Some functions are actually named
31141 something starting with __ and the normal name is an alias. */
31142 #if defined __stub_$ac_func || defined __stub___$ac_func
31149 return $ac_func ();
31154 rm -f conftest.$ac_objext conftest$ac_exeext
31155 if { (ac_try="$ac_link"
31156 case "(($ac_try" in
31157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31158 *) ac_try_echo=$ac_try;;
31160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31161 (eval "$ac_link") 2>conftest.er1
31163 grep -v '^ *+' conftest.er1 >conftest.err
31165 cat conftest.err >&5
31166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167 (exit $ac_status); } &&
31168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31169 { (case "(($ac_try" in
31170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171 *) ac_try_echo=$ac_try;;
31173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174 (eval "$ac_try") 2>&5
31176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177 (exit $ac_status); }; } &&
31178 { ac_try='test -s conftest$ac_exeext'
31179 { (case "(($ac_try" in
31180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31181 *) ac_try_echo=$ac_try;;
31183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31184 (eval "$ac_try") 2>&5
31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187 (exit $ac_status); }; }; then
31188 eval "$as_ac_var=yes"
31190 echo "$as_me: failed program was:" >&5
31191 sed 's/^/| /' conftest.$ac_ext >&5
31193 eval "$as_ac_var=no"
31196 rm -f core conftest.err conftest.$ac_objext \
31197 conftest$ac_exeext conftest.$ac_ext
31199 ac_res=`eval echo '${'$as_ac_var'}'`
31200 { echo "$as_me:$LINENO: result: $ac_res" >&5
31201 echo "${ECHO_T}$ac_res" >&6; }
31202 if test `eval echo '${'$as_ac_var'}'` = yes; then
31203 cat >>confdefs.h <<_ACEOF
31204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31212 for ac_func in sigaction snprintf
31214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31218 echo $ECHO_N "(cached) $ECHO_C" >&6
31220 cat >conftest.$ac_ext <<_ACEOF
31223 cat confdefs.h >>conftest.$ac_ext
31224 cat >>conftest.$ac_ext <<_ACEOF
31225 /* end confdefs.h. */
31226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31228 #define $ac_func innocuous_$ac_func
31230 /* System header to define __stub macros and hopefully few prototypes,
31231 which can conflict with char $ac_func (); below.
31232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31233 <limits.h> exists even on freestanding compilers. */
31236 # include <limits.h>
31238 # include <assert.h>
31243 /* Override any GCC internal prototype to avoid an error.
31244 Use char because int might match the return type of a GCC
31245 builtin and then its argument prototype would still apply. */
31250 /* The GNU C library defines this for functions which it implements
31251 to always fail with ENOSYS. Some functions are actually named
31252 something starting with __ and the normal name is an alias. */
31253 #if defined __stub_$ac_func || defined __stub___$ac_func
31260 return $ac_func ();
31265 rm -f conftest.$ac_objext conftest$ac_exeext
31266 if { (ac_try="$ac_link"
31267 case "(($ac_try" in
31268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31269 *) ac_try_echo=$ac_try;;
31271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31272 (eval "$ac_link") 2>conftest.er1
31274 grep -v '^ *+' conftest.er1 >conftest.err
31276 cat conftest.err >&5
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); } &&
31279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31280 { (case "(($ac_try" in
31281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31282 *) ac_try_echo=$ac_try;;
31284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31285 (eval "$ac_try") 2>&5
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 (exit $ac_status); }; } &&
31289 { ac_try='test -s conftest$ac_exeext'
31290 { (case "(($ac_try" in
31291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31292 *) ac_try_echo=$ac_try;;
31294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31295 (eval "$ac_try") 2>&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); }; }; then
31299 eval "$as_ac_var=yes"
31301 echo "$as_me: failed program was:" >&5
31302 sed 's/^/| /' conftest.$ac_ext >&5
31304 eval "$as_ac_var=no"
31307 rm -f core conftest.err conftest.$ac_objext \
31308 conftest$ac_exeext conftest.$ac_ext
31310 ac_res=`eval echo '${'$as_ac_var'}'`
31311 { echo "$as_me:$LINENO: result: $ac_res" >&5
31312 echo "${ECHO_T}$ac_res" >&6; }
31313 if test `eval echo '${'$as_ac_var'}'` = yes; then
31314 cat >>confdefs.h <<_ACEOF
31315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31325 ac_cpp='$CPP $CPPFLAGS'
31326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31333 for ac_header in usb.h
31335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31340 echo $ECHO_N "(cached) $ECHO_C" >&6
31342 ac_res=`eval echo '${'$as_ac_Header'}'`
31343 { echo "$as_me:$LINENO: result: $ac_res" >&5
31344 echo "${ECHO_T}$ac_res" >&6; }
31346 # Is the header compilable?
31347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31349 cat >conftest.$ac_ext <<_ACEOF
31352 cat confdefs.h >>conftest.$ac_ext
31353 cat >>conftest.$ac_ext <<_ACEOF
31354 /* end confdefs.h. */
31355 $ac_includes_default
31356 #include <$ac_header>
31358 rm -f conftest.$ac_objext
31359 if { (ac_try="$ac_compile"
31360 case "(($ac_try" in
31361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31362 *) ac_try_echo=$ac_try;;
31364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31365 (eval "$ac_compile") 2>conftest.er1
31367 grep -v '^ *+' conftest.er1 >conftest.err
31369 cat conftest.err >&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } &&
31372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31373 { (case "(($ac_try" in
31374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31375 *) ac_try_echo=$ac_try;;
31377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31378 (eval "$ac_try") 2>&5
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); }; } &&
31382 { ac_try='test -s conftest.$ac_objext'
31383 { (case "(($ac_try" in
31384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385 *) ac_try_echo=$ac_try;;
31387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31388 (eval "$ac_try") 2>&5
31390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31391 (exit $ac_status); }; }; then
31392 ac_header_compiler=yes
31394 echo "$as_me: failed program was:" >&5
31395 sed 's/^/| /' conftest.$ac_ext >&5
31397 ac_header_compiler=no
31400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31402 echo "${ECHO_T}$ac_header_compiler" >&6; }
31404 # Is the header present?
31405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31407 cat >conftest.$ac_ext <<_ACEOF
31410 cat confdefs.h >>conftest.$ac_ext
31411 cat >>conftest.$ac_ext <<_ACEOF
31412 /* end confdefs.h. */
31413 #include <$ac_header>
31415 if { (ac_try="$ac_cpp conftest.$ac_ext"
31416 case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31423 grep -v '^ *+' conftest.er1 >conftest.err
31425 cat conftest.err >&5
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } >/dev/null; then
31428 if test -s conftest.err; then
31429 ac_cpp_err=$ac_c_preproc_warn_flag
31430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31437 if test -z "$ac_cpp_err"; then
31438 ac_header_preproc=yes
31440 echo "$as_me: failed program was:" >&5
31441 sed 's/^/| /' conftest.$ac_ext >&5
31443 ac_header_preproc=no
31446 rm -f conftest.err conftest.$ac_ext
31447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31448 echo "${ECHO_T}$ac_header_preproc" >&6; }
31450 # So? What about this header?
31451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31457 ac_header_preproc=yes
31460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31478 echo $ECHO_N "(cached) $ECHO_C" >&6
31480 eval "$as_ac_Header=\$ac_header_preproc"
31482 ac_res=`eval echo '${'$as_ac_Header'}'`
31483 { echo "$as_me:$LINENO: result: $ac_res" >&5
31484 echo "${ECHO_T}$ac_res" >&6; }
31487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31488 cat >>confdefs.h <<_ACEOF
31489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31494 { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
31495 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
31504 darwin*) LIBS="$LIBS -lIOKit" ;;
31507 { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
31508 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
31509 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31510 echo $ECHO_N "(cached) $ECHO_C" >&6
31512 ac_func_search_save_LIBS=$LIBS
31513 cat >conftest.$ac_ext <<_ACEOF
31516 cat confdefs.h >>conftest.$ac_ext
31517 cat >>conftest.$ac_ext <<_ACEOF
31518 /* end confdefs.h. */
31520 /* Override any GCC internal prototype to avoid an error.
31521 Use char because int might match the return type of a GCC
31522 builtin and then its argument prototype would still apply. */
31526 char usb_bulk_write ();
31530 return usb_bulk_write ();
31535 for ac_lib in '' usb; do
31536 if test -z "$ac_lib"; then
31537 ac_res="none required"
31540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31542 rm -f conftest.$ac_objext conftest$ac_exeext
31543 if { (ac_try="$ac_link"
31544 case "(($ac_try" in
31545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31546 *) ac_try_echo=$ac_try;;
31548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31549 (eval "$ac_link") 2>conftest.er1
31551 grep -v '^ *+' conftest.er1 >conftest.err
31553 cat conftest.err >&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); } &&
31556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31557 { (case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31562 (eval "$ac_try") 2>&5
31564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31565 (exit $ac_status); }; } &&
31566 { ac_try='test -s conftest$ac_exeext'
31567 { (case "(($ac_try" in
31568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31569 *) ac_try_echo=$ac_try;;
31571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31572 (eval "$ac_try") 2>&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 ac_cv_search_usb_bulk_write=$ac_res
31578 echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.$ac_ext >&5
31584 rm -f core conftest.err conftest.$ac_objext \
31586 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31590 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
31593 ac_cv_search_usb_bulk_write=no
31595 rm conftest.$ac_ext
31596 LIBS=$ac_func_search_save_LIBS
31598 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
31599 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
31600 ac_res=$ac_cv_search_usb_bulk_write
31601 if test "$ac_res" != no; then
31602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31606 { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
31607 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
31614 ac_cpp='$CPP $CPPFLAGS'
31615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31620 if test $libusbok = yes; then
31624 passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
31625 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
31630 # Check whether --with-fusb-tech was given.
31631 if test "${with_fusb_tech+set}" = set; then
31632 withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
31634 cf_with_fusb_tech="$host_os"
31639 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31640 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31641 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31642 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31643 echo $ECHO_N "(cached) $ECHO_C" >&6
31645 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31646 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31648 # Is the header compilable?
31649 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
31650 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
31651 cat >conftest.$ac_ext <<_ACEOF
31654 cat confdefs.h >>conftest.$ac_ext
31655 cat >>conftest.$ac_ext <<_ACEOF
31656 /* end confdefs.h. */
31657 $ac_includes_default
31658 #include <linux/usbdevice_fs.h>
31660 rm -f conftest.$ac_objext
31661 if { (ac_try="$ac_compile"
31662 case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_compile") 2>conftest.er1
31669 grep -v '^ *+' conftest.er1 >conftest.err
31671 cat conftest.err >&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } &&
31674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31675 { (case "(($ac_try" in
31676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31677 *) ac_try_echo=$ac_try;;
31679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31680 (eval "$ac_try") 2>&5
31682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31683 (exit $ac_status); }; } &&
31684 { ac_try='test -s conftest.$ac_objext'
31685 { (case "(($ac_try" in
31686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31687 *) ac_try_echo=$ac_try;;
31689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31690 (eval "$ac_try") 2>&5
31692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693 (exit $ac_status); }; }; then
31694 ac_header_compiler=yes
31696 echo "$as_me: failed program was:" >&5
31697 sed 's/^/| /' conftest.$ac_ext >&5
31699 ac_header_compiler=no
31702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31704 echo "${ECHO_T}$ac_header_compiler" >&6; }
31706 # Is the header present?
31707 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
31708 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
31709 cat >conftest.$ac_ext <<_ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h. */
31715 #include <linux/usbdevice_fs.h>
31717 if { (ac_try="$ac_cpp conftest.$ac_ext"
31718 case "(($ac_try" in
31719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31720 *) ac_try_echo=$ac_try;;
31722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31725 grep -v '^ *+' conftest.er1 >conftest.err
31727 cat conftest.err >&5
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); } >/dev/null; then
31730 if test -s conftest.err; then
31731 ac_cpp_err=$ac_c_preproc_warn_flag
31732 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31739 if test -z "$ac_cpp_err"; then
31740 ac_header_preproc=yes
31742 echo "$as_me: failed program was:" >&5
31743 sed 's/^/| /' conftest.$ac_ext >&5
31745 ac_header_preproc=no
31748 rm -f conftest.err conftest.$ac_ext
31749 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31750 echo "${ECHO_T}$ac_header_preproc" >&6; }
31752 # So? What about this header?
31753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31755 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
31756 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31757 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
31758 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
31759 ac_header_preproc=yes
31762 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
31763 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
31764 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&5
31765 echo "$as_me: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&2;}
31766 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
31767 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
31768 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&5
31769 echo "$as_me: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
31770 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
31771 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
31772 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
31773 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
31777 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
31778 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
31779 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
31780 echo $ECHO_N "(cached) $ECHO_C" >&6
31782 ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
31784 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
31785 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
31788 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
31789 x_have_usbdevice_fs_h=yes
31791 x_have_usbdevice_fs_h=no
31796 { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
31797 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
31798 case "$cf_with_fusb_tech" in
31799 linux*) if test x${x_have_usbdevice_fs_h} = xyes;
31806 darwin*) FUSB_TECH=darwin ;;
31807 cygwin*|win*|mingw*) FUSB_TECH=win32 ;;
31809 { echo "$as_me:$LINENO: checking for RA/WB" >&5
31810 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
31811 cat >conftest.$ac_ext <<_ACEOF
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h. */
31817 #include <dev/usb/usb.h>
31821 struct usb_bulk_ra_wb_opt o;
31822 ioctl(0, USB_SET_BULK_RA, &o);
31827 rm -f conftest.$ac_objext
31828 if { (ac_try="$ac_compile"
31829 case "(($ac_try" in
31830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31831 *) ac_try_echo=$ac_try;;
31833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31834 (eval "$ac_compile") 2>conftest.er1
31836 grep -v '^ *+' conftest.er1 >conftest.err
31838 cat conftest.err >&5
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); } &&
31841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31842 { (case "(($ac_try" in
31843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31844 *) ac_try_echo=$ac_try;;
31846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31847 (eval "$ac_try") 2>&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest.$ac_objext'
31852 { (case "(($ac_try" in
31853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31854 *) ac_try_echo=$ac_try;;
31856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31857 (eval "$ac_try") 2>&5
31859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31860 (exit $ac_status); }; }; then
31863 echo "$as_me: failed program was:" >&5
31864 sed 's/^/| /' conftest.$ac_ext >&5
31869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
31870 *) FUSB_TECH=generic ;;
31873 { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
31874 echo "${ECHO_T}$FUSB_TECH" >&6; }
31879 if test $FUSB_TECH = darwin; then
31880 FUSB_TECH_darwin_TRUE=
31881 FUSB_TECH_darwin_FALSE='#'
31883 FUSB_TECH_darwin_TRUE='#'
31884 FUSB_TECH_darwin_FALSE=
31889 if test $FUSB_TECH = win32; then
31890 FUSB_TECH_win32_TRUE=
31891 FUSB_TECH_win32_FALSE='#'
31893 FUSB_TECH_win32_TRUE='#'
31894 FUSB_TECH_win32_FALSE=
31899 if test $FUSB_TECH = generic; then
31900 FUSB_TECH_generic_TRUE=
31901 FUSB_TECH_generic_FALSE='#'
31903 FUSB_TECH_generic_TRUE='#'
31904 FUSB_TECH_generic_FALSE=
31909 if test $FUSB_TECH = linux; then
31910 FUSB_TECH_linux_TRUE=
31911 FUSB_TECH_linux_FALSE='#'
31913 FUSB_TECH_linux_TRUE='#'
31914 FUSB_TECH_linux_FALSE=
31919 if test $FUSB_TECH = ra_wb; then
31920 FUSB_TECH_ra_wb_TRUE=
31921 FUSB_TECH_ra_wb_FALSE='#'
31923 FUSB_TECH_ra_wb_TRUE='#'
31924 FUSB_TECH_ra_wb_FALSE=
31930 # Extract the first word of "sdcc", so it can be a program name with args.
31931 set dummy sdcc; ac_word=$2
31932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31934 if test "${ac_cv_prog_XCC+set}" = set; then
31935 echo $ECHO_N "(cached) $ECHO_C" >&6
31937 if test -n "$XCC"; then
31938 ac_cv_prog_XCC="$XCC" # Let the user override the test.
31940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31941 for as_dir in $PATH
31944 test -z "$as_dir" && as_dir=.
31945 for ac_exec_ext in '' $ac_executable_extensions; do
31946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31947 ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
31948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31955 test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
31958 XCC=$ac_cv_prog_XCC
31959 if test -n "$XCC"; then
31960 { echo "$as_me:$LINENO: result: $XCC" >&5
31961 echo "${ECHO_T}$XCC" >&6; }
31963 { echo "$as_me:$LINENO: result: no" >&5
31964 echo "${ECHO_T}no" >&6; }
31968 # Extract the first word of "asx8051", so it can be a program name with args.
31969 set dummy asx8051; ac_word=$2
31970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31972 if test "${ac_cv_prog_XAS+set}" = set; then
31973 echo $ECHO_N "(cached) $ECHO_C" >&6
31975 if test -n "$XAS"; then
31976 ac_cv_prog_XAS="$XAS" # Let the user override the test.
31978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31979 for as_dir in $PATH
31982 test -z "$as_dir" && as_dir=.
31983 for ac_exec_ext in '' $ac_executable_extensions; do
31984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
31985 ac_cv_prog_XAS="asx8051 -plosgff"
31986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31993 test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
31996 XAS=$ac_cv_prog_XAS
31997 if test -n "$XAS"; then
31998 { echo "$as_me:$LINENO: result: $XAS" >&5
31999 echo "${ECHO_T}$XAS" >&6; }
32001 { echo "$as_me:$LINENO: result: no" >&5
32002 echo "${ECHO_T}no" >&6; }
32007 if test "$XCC" = "no" -o "$XAS" = "no" ; then
32008 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
32009 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
32012 sdcc_version_min=2.4.0
32014 sdcc_version=`sdcc --version 2>&1 | \
32015 sed 's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
32017 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
32018 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
32020 sdcc_major_version=`echo $sdcc_version | \
32021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32022 sdcc_minor_version=`echo $sdcc_version | \
32023 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32024 sdcc_micro_version=`echo $sdcc_version | \
32025 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32027 sdcc_major_min=`echo $sdcc_version_min | \
32028 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
32029 sdcc_minor_min=`echo $sdcc_version_min | \
32030 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
32031 sdcc_micro_min=`echo $sdcc_version_min | \
32032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
32034 sdcc_version_proper=`expr \
32035 "$sdcc_major_version" \> "$sdcc_major_min" \| \
32036 "$sdcc_major_version" \= "$sdcc_major_min" \& \
32037 "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
32038 "$sdcc_major_version" \= "$sdcc_major_min" \& \
32039 "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
32040 "$sdcc_micro_version" \>= "$sdcc_micro_min" `
32042 if test "$sdcc_version_proper" = "1" ; then
32043 { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
32044 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
32047 { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
32048 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
32055 if test $sdccok = yes; then
32058 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
32059 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
32064 if test x$passed = xno; then
32065 skipped_dirs="$skipped_dirs usrp"
32066 if test x$enable_usrp = xyes; then
32067 { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
32068 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
32069 { (exit 1); exit 1; }; }
32071 { echo "$as_me:$LINENO: result: Not building component usrp." >&5
32072 echo "${ECHO_T}Not building component usrp." >&6; }
32075 if test x$enable_usrp != xno; then
32077 build_dirs="$build_dirs usrp"
32078 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
32079 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
32081 skipped_dirs="$skipped_dirs usrp"
32082 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
32083 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
32090 # Check whether --enable-gr-usrp was given.
32091 if test "${enable_gr_usrp+set}" = set; then
32092 enableval=$enable_gr_usrp;
32094 enable_gr_usrp=$enable_all_components
32099 ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
32103 # Don't do gr-usrp if usrp skipped
32104 # There *has* to be a better way to check if a value is in a string
32105 for dir in $skipped_dirs
32107 if test x$dir = xusrp; then
32108 { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
32109 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
32115 if test x$passed = xno; then
32116 skipped_dirs="$skipped_dirs gr-usrp"
32117 if test x$enable_gr_usrp = xyes; then
32118 { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
32119 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
32120 { (exit 1); exit 1; }; }
32122 { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
32123 echo "${ECHO_T}Not building component gr-usrp." >&6; }
32126 if test x$enable_gr_usrp != xno; then
32128 ac_config_commands="$ac_config_commands run_tests_usrp"
32131 build_dirs="$build_dirs gr-usrp"
32132 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
32133 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
32135 skipped_dirs="$skipped_dirs gr-usrp"
32136 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
32137 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
32143 # Check whether --enable-gr-audio-alsa was given.
32144 if test "${enable_gr_audio_alsa+set}" = set; then
32145 enableval=$enable_gr_audio_alsa;
32147 enable_gr_audio_alsa=$enable_all_components
32152 ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
32159 if test -z "$PKG_CONFIG"; then
32160 # Extract the first word of "pkg-config", so it can be a program name with args.
32161 set dummy pkg-config; ac_word=$2
32162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32164 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32165 echo $ECHO_N "(cached) $ECHO_C" >&6
32167 case $PKG_CONFIG in
32169 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32173 for as_dir in $PATH
32176 test -z "$as_dir" && as_dir=.
32177 for ac_exec_ext in '' $ac_executable_extensions; do
32178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32179 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32187 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32191 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32192 if test -n "$PKG_CONFIG"; then
32193 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32194 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32196 { echo "$as_me:$LINENO: result: no" >&5
32197 echo "${ECHO_T}no" >&6; }
32203 if test "$PKG_CONFIG" = "no" ; then
32204 echo "*** The pkg-config script could not be found. Make sure it is"
32205 echo "*** in your path, or set the PKG_CONFIG environment variable"
32206 echo "*** to the full path to pkg-config."
32207 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32209 if test -z "$PKG_CONFIG_PATH"; then
32210 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32213 PKG_CONFIG_MIN_VERSION=0.9.0
32214 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32215 { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
32216 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
32218 if $PKG_CONFIG --exists "alsa >= 0.9" ; then
32219 { echo "$as_me:$LINENO: result: yes" >&5
32220 echo "${ECHO_T}yes" >&6; }
32223 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
32224 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
32225 ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
32226 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
32227 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
32229 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
32230 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
32231 ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
32232 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
32233 echo "${ECHO_T}$ALSA_LIBS" >&6; }
32235 { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
32236 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
32237 ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
32238 { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
32239 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
32243 ## If we have a custom action on failure, don't print errors, but
32244 ## do set a variable so people can do so.
32245 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
32253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
32258 if test $succeeded = yes; then
32261 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
32262 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
32267 if test x$passed = xno; then
32268 skipped_dirs="$skipped_dirs gr-audio-alsa"
32269 if test x$enable_gr_audio_alsa = xyes; then
32270 { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
32271 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
32272 { (exit 1); exit 1; }; }
32274 { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
32275 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
32278 if test x$enable_gr_audio_alsa != xno; then
32281 ac_config_commands="$ac_config_commands run_tests_alsa"
32284 build_dirs="$build_dirs gr-audio-alsa"
32285 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
32286 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
32288 skipped_dirs="$skipped_dirs gr-audio-alsa"
32289 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
32290 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
32297 # Check whether --enable-gr-audio-jack was given.
32298 if test "${enable_gr_audio_jack+set}" = set; then
32299 enableval=$enable_gr_audio_jack;
32301 enable_gr_audio_jack=$enable_all_components
32306 ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
32313 if test -z "$PKG_CONFIG"; then
32314 # Extract the first word of "pkg-config", so it can be a program name with args.
32315 set dummy pkg-config; ac_word=$2
32316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32318 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
32321 case $PKG_CONFIG in
32323 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32327 for as_dir in $PATH
32330 test -z "$as_dir" && as_dir=.
32331 for ac_exec_ext in '' $ac_executable_extensions; do
32332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
32333 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
32345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32346 if test -n "$PKG_CONFIG"; then
32347 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32348 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32350 { echo "$as_me:$LINENO: result: no" >&5
32351 echo "${ECHO_T}no" >&6; }
32357 if test "$PKG_CONFIG" = "no" ; then
32358 echo "*** The pkg-config script could not be found. Make sure it is"
32359 echo "*** in your path, or set the PKG_CONFIG environment variable"
32360 echo "*** to the full path to pkg-config."
32361 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
32363 if test -z "$PKG_CONFIG_PATH"; then
32364 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
32367 PKG_CONFIG_MIN_VERSION=0.9.0
32368 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
32369 { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
32370 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
32372 if $PKG_CONFIG --exists "jack >= 0.8" ; then
32373 { echo "$as_me:$LINENO: result: yes" >&5
32374 echo "${ECHO_T}yes" >&6; }
32377 { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
32378 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
32379 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
32380 { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
32381 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
32383 { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
32384 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
32385 JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
32386 { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
32387 echo "${ECHO_T}$JACK_LIBS" >&6; }
32389 { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
32390 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
32391 JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
32392 { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
32393 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
32397 ## If we have a custom action on failure, don't print errors, but
32398 ## do set a variable so people can do so.
32399 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
32407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
32408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
32412 if test $succeeded = yes; then
32415 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
32416 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
32421 if test x$passed = xno; then
32422 skipped_dirs="$skipped_dirs gr-audio-jack"
32423 if test x$enable_gr_audio_jack = xyes; then
32424 { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
32425 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
32426 { (exit 1); exit 1; }; }
32428 { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
32429 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
32432 if test x$enable_gr_audio_jack != xno; then
32435 ac_config_commands="$ac_config_commands run_tests_jack"
32438 build_dirs="$build_dirs gr-audio-jack"
32439 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
32440 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
32442 skipped_dirs="$skipped_dirs gr-audio-jack"
32443 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
32444 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
32451 # Check whether --enable-gr-audio-oss was given.
32452 if test "${enable_gr_audio_oss+set}" = set; then
32453 enableval=$enable_gr_audio_oss;
32455 enable_gr_audio_oss=$enable_all_components
32460 ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
32467 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
32468 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
32469 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
32470 echo $ECHO_N "(cached) $ECHO_C" >&6
32472 ac_check_lib_save_LIBS=$LIBS
32473 LIBS="-lossaudio $LIBS"
32474 cat >conftest.$ac_ext <<_ACEOF
32477 cat confdefs.h >>conftest.$ac_ext
32478 cat >>conftest.$ac_ext <<_ACEOF
32479 /* end confdefs.h. */
32490 rm -f conftest.$ac_objext conftest$ac_exeext
32491 if { (ac_try="$ac_link"
32492 case "(($ac_try" in
32493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32494 *) ac_try_echo=$ac_try;;
32496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32497 (eval "$ac_link") 2>conftest.er1
32499 grep -v '^ *+' conftest.er1 >conftest.err
32501 cat conftest.err >&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } &&
32504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32505 { (case "(($ac_try" in
32506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32507 *) ac_try_echo=$ac_try;;
32509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32510 (eval "$ac_try") 2>&5
32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); }; } &&
32514 { ac_try='test -s conftest$ac_exeext'
32515 { (case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_try") 2>&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); }; }; then
32524 ac_cv_lib_ossaudio_main=yes
32526 echo "$as_me: failed program was:" >&5
32527 sed 's/^/| /' conftest.$ac_ext >&5
32529 ac_cv_lib_ossaudio_main=no
32532 rm -f core conftest.err conftest.$ac_objext \
32533 conftest$ac_exeext conftest.$ac_ext
32534 LIBS=$ac_check_lib_save_LIBS
32536 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
32537 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
32538 if test $ac_cv_lib_ossaudio_main = yes; then
32539 cat >>confdefs.h <<_ACEOF
32540 #define HAVE_LIBOSSAUDIO 1
32543 LIBS="-lossaudio $LIBS"
32546 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
32547 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
32549 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
32551 if test x$passed != xno; then
32552 OSS_LIBS=-lossaudio
32553 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
32554 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
32558 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32559 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32560 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32561 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32562 echo $ECHO_N "(cached) $ECHO_C" >&6
32564 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32565 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32567 # Is the header compilable?
32568 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
32569 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
32570 cat >conftest.$ac_ext <<_ACEOF
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h. */
32576 $ac_includes_default
32577 #include <sys/soundcard.h>
32579 rm -f conftest.$ac_objext
32580 if { (ac_try="$ac_compile"
32581 case "(($ac_try" in
32582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583 *) ac_try_echo=$ac_try;;
32585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32586 (eval "$ac_compile") 2>conftest.er1
32588 grep -v '^ *+' conftest.er1 >conftest.err
32590 cat conftest.err >&5
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); } &&
32593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32594 { (case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32599 (eval "$ac_try") 2>&5
32601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32602 (exit $ac_status); }; } &&
32603 { ac_try='test -s conftest.$ac_objext'
32604 { (case "(($ac_try" in
32605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32606 *) ac_try_echo=$ac_try;;
32608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32609 (eval "$ac_try") 2>&5
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; }; then
32613 ac_header_compiler=yes
32615 echo "$as_me: failed program was:" >&5
32616 sed 's/^/| /' conftest.$ac_ext >&5
32618 ac_header_compiler=no
32621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32623 echo "${ECHO_T}$ac_header_compiler" >&6; }
32625 # Is the header present?
32626 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
32627 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
32628 cat >conftest.$ac_ext <<_ACEOF
32631 cat confdefs.h >>conftest.$ac_ext
32632 cat >>conftest.$ac_ext <<_ACEOF
32633 /* end confdefs.h. */
32634 #include <sys/soundcard.h>
32636 if { (ac_try="$ac_cpp conftest.$ac_ext"
32637 case "(($ac_try" in
32638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32639 *) ac_try_echo=$ac_try;;
32641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32644 grep -v '^ *+' conftest.er1 >conftest.err
32646 cat conftest.err >&5
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); } >/dev/null; then
32649 if test -s conftest.err; then
32650 ac_cpp_err=$ac_c_preproc_warn_flag
32651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32658 if test -z "$ac_cpp_err"; then
32659 ac_header_preproc=yes
32661 echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32664 ac_header_preproc=no
32667 rm -f conftest.err conftest.$ac_ext
32668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32669 echo "${ECHO_T}$ac_header_preproc" >&6; }
32671 # So? What about this header?
32672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32674 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
32675 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32676 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
32677 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
32678 ac_header_preproc=yes
32681 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
32682 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
32683 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
32684 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
32685 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
32686 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
32687 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
32688 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
32689 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
32690 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
32691 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
32692 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
32696 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
32697 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
32698 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
32699 echo $ECHO_N "(cached) $ECHO_C" >&6
32701 ac_cv_header_sys_soundcard_h=$ac_header_preproc
32703 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
32704 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
32707 if test $ac_cv_header_sys_soundcard_h = yes; then
32710 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
32711 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
32718 if test x$passed = xno; then
32719 skipped_dirs="$skipped_dirs gr-audio-oss"
32720 if test x$enable_gr_audio_oss = xyes; then
32721 { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
32722 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
32723 { (exit 1); exit 1; }; }
32725 { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
32726 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
32729 if test x$enable_gr_audio_oss != xno; then
32732 ac_config_commands="$ac_config_commands run_tests_oss"
32735 build_dirs="$build_dirs gr-audio-oss"
32736 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
32737 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
32739 skipped_dirs="$skipped_dirs gr-audio-oss"
32740 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
32741 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
32748 # Check whether --enable-gr-audio-osx was given.
32749 if test "${enable_gr_audio_osx+set}" = set; then
32750 enableval=$enable_gr_audio_osx;
32752 enable_gr_audio_osx=$enable_all_components
32757 ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
32767 { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
32768 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
32772 for ac_header in AudioUnit/AudioUnit.h
32774 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32779 echo $ECHO_N "(cached) $ECHO_C" >&6
32781 ac_res=`eval echo '${'$as_ac_Header'}'`
32782 { echo "$as_me:$LINENO: result: $ac_res" >&5
32783 echo "${ECHO_T}$ac_res" >&6; }
32785 # Is the header compilable?
32786 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32787 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32788 cat >conftest.$ac_ext <<_ACEOF
32791 cat confdefs.h >>conftest.$ac_ext
32792 cat >>conftest.$ac_ext <<_ACEOF
32793 /* end confdefs.h. */
32794 $ac_includes_default
32795 #include <$ac_header>
32797 rm -f conftest.$ac_objext
32798 if { (ac_try="$ac_compile"
32799 case "(($ac_try" in
32800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801 *) ac_try_echo=$ac_try;;
32803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32804 (eval "$ac_compile") 2>conftest.er1
32806 grep -v '^ *+' conftest.er1 >conftest.err
32808 cat conftest.err >&5
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); } &&
32811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32812 { (case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_try") 2>&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); }; } &&
32821 { ac_try='test -s conftest.$ac_objext'
32822 { (case "(($ac_try" in
32823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32824 *) ac_try_echo=$ac_try;;
32826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32827 (eval "$ac_try") 2>&5
32829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32830 (exit $ac_status); }; }; then
32831 ac_header_compiler=yes
32833 echo "$as_me: failed program was:" >&5
32834 sed 's/^/| /' conftest.$ac_ext >&5
32836 ac_header_compiler=no
32839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32841 echo "${ECHO_T}$ac_header_compiler" >&6; }
32843 # Is the header present?
32844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32846 cat >conftest.$ac_ext <<_ACEOF
32849 cat confdefs.h >>conftest.$ac_ext
32850 cat >>conftest.$ac_ext <<_ACEOF
32851 /* end confdefs.h. */
32852 #include <$ac_header>
32854 if { (ac_try="$ac_cpp conftest.$ac_ext"
32855 case "(($ac_try" in
32856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857 *) ac_try_echo=$ac_try;;
32859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32862 grep -v '^ *+' conftest.er1 >conftest.err
32864 cat conftest.err >&5
32865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866 (exit $ac_status); } >/dev/null; then
32867 if test -s conftest.err; then
32868 ac_cpp_err=$ac_c_preproc_warn_flag
32869 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32876 if test -z "$ac_cpp_err"; then
32877 ac_header_preproc=yes
32879 echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32882 ac_header_preproc=no
32885 rm -f conftest.err conftest.$ac_ext
32886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32887 echo "${ECHO_T}$ac_header_preproc" >&6; }
32889 # So? What about this header?
32890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32896 ac_header_preproc=yes
32899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32919 eval "$as_ac_Header=\$ac_header_preproc"
32921 ac_res=`eval echo '${'$as_ac_Header'}'`
32922 { echo "$as_me:$LINENO: result: $ac_res" >&5
32923 echo "${ECHO_T}$ac_res" >&6; }
32926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32927 cat >>confdefs.h <<_ACEOF
32928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32932 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
32933 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
32940 for ac_header in AudioToolbox/AudioToolbox.h
32942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32947 echo $ECHO_N "(cached) $ECHO_C" >&6
32949 ac_res=`eval echo '${'$as_ac_Header'}'`
32950 { echo "$as_me:$LINENO: result: $ac_res" >&5
32951 echo "${ECHO_T}$ac_res" >&6; }
32953 # Is the header compilable?
32954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32956 cat >conftest.$ac_ext <<_ACEOF
32959 cat confdefs.h >>conftest.$ac_ext
32960 cat >>conftest.$ac_ext <<_ACEOF
32961 /* end confdefs.h. */
32962 $ac_includes_default
32963 #include <$ac_header>
32965 rm -f conftest.$ac_objext
32966 if { (ac_try="$ac_compile"
32967 case "(($ac_try" in
32968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32969 *) ac_try_echo=$ac_try;;
32971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32972 (eval "$ac_compile") 2>conftest.er1
32974 grep -v '^ *+' conftest.er1 >conftest.err
32976 cat conftest.err >&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); } &&
32979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32980 { (case "(($ac_try" in
32981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982 *) ac_try_echo=$ac_try;;
32984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985 (eval "$ac_try") 2>&5
32987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988 (exit $ac_status); }; } &&
32989 { ac_try='test -s conftest.$ac_objext'
32990 { (case "(($ac_try" in
32991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992 *) ac_try_echo=$ac_try;;
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995 (eval "$ac_try") 2>&5
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); }; }; then
32999 ac_header_compiler=yes
33001 echo "$as_me: failed program was:" >&5
33002 sed 's/^/| /' conftest.$ac_ext >&5
33004 ac_header_compiler=no
33007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33008 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33009 echo "${ECHO_T}$ac_header_compiler" >&6; }
33011 # Is the header present?
33012 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33014 cat >conftest.$ac_ext <<_ACEOF
33017 cat confdefs.h >>conftest.$ac_ext
33018 cat >>conftest.$ac_ext <<_ACEOF
33019 /* end confdefs.h. */
33020 #include <$ac_header>
33022 if { (ac_try="$ac_cpp conftest.$ac_ext"
33023 case "(($ac_try" in
33024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025 *) ac_try_echo=$ac_try;;
33027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33030 grep -v '^ *+' conftest.er1 >conftest.err
33032 cat conftest.err >&5
33033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034 (exit $ac_status); } >/dev/null; then
33035 if test -s conftest.err; then
33036 ac_cpp_err=$ac_c_preproc_warn_flag
33037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33044 if test -z "$ac_cpp_err"; then
33045 ac_header_preproc=yes
33047 echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33050 ac_header_preproc=no
33053 rm -f conftest.err conftest.$ac_ext
33054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33055 echo "${ECHO_T}$ac_header_preproc" >&6; }
33057 # So? What about this header?
33058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33064 ac_header_preproc=yes
33067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33085 echo $ECHO_N "(cached) $ECHO_C" >&6
33087 eval "$as_ac_Header=\$ac_header_preproc"
33089 ac_res=`eval echo '${'$as_ac_Header'}'`
33090 { echo "$as_me:$LINENO: result: $ac_res" >&5
33091 echo "${ECHO_T}$ac_res" >&6; }
33094 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33095 cat >>confdefs.h <<_ACEOF
33096 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33100 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
33101 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
33107 if test $audiounitok = yes; then
33110 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
33111 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
33116 if test x$passed = xno; then
33117 skipped_dirs="$skipped_dirs gr-audio-osx"
33118 if test x$enable_gr_audio_osx = xyes; then
33119 { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
33120 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
33121 { (exit 1); exit 1; }; }
33123 { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
33124 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
33127 if test x$enable_gr_audio_osx != xno; then
33129 ac_config_commands="$ac_config_commands run_tests_osx"
33132 build_dirs="$build_dirs gr-audio-osx"
33133 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
33134 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
33136 skipped_dirs="$skipped_dirs gr-audio-osx"
33137 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
33138 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
33145 # Check whether --enable-gr-audio-portaudio was given.
33146 if test "${enable_gr_audio_portaudio+set}" = set; then
33147 enableval=$enable_gr_audio_portaudio;
33149 enable_gr_audio_portaudio=$enable_all_components
33154 ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
33161 if test -z "$PKG_CONFIG"; then
33162 # Extract the first word of "pkg-config", so it can be a program name with args.
33163 set dummy pkg-config; ac_word=$2
33164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33166 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33167 echo $ECHO_N "(cached) $ECHO_C" >&6
33169 case $PKG_CONFIG in
33171 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33175 for as_dir in $PATH
33178 test -z "$as_dir" && as_dir=.
33179 for ac_exec_ext in '' $ac_executable_extensions; do
33180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33189 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
33193 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33194 if test -n "$PKG_CONFIG"; then
33195 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33196 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33198 { echo "$as_me:$LINENO: result: no" >&5
33199 echo "${ECHO_T}no" >&6; }
33205 if test "$PKG_CONFIG" = "no" ; then
33206 echo "*** The pkg-config script could not be found. Make sure it is"
33207 echo "*** in your path, or set the PKG_CONFIG environment variable"
33208 echo "*** to the full path to pkg-config."
33209 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
33211 if test -z "$PKG_CONFIG_PATH"; then
33212 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
33215 PKG_CONFIG_MIN_VERSION=0.9.0
33216 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33217 { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
33218 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
33220 if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
33221 { echo "$as_me:$LINENO: result: yes" >&5
33222 echo "${ECHO_T}yes" >&6; }
33225 { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
33226 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
33227 PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
33228 { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
33229 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
33231 { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
33232 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
33233 PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
33234 { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
33235 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
33237 { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
33238 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
33239 PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
33240 { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
33241 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
33243 PORTAUDIO_CFLAGS=""
33245 ## If we have a custom action on failure, don't print errors, but
33246 ## do set a variable so people can do so.
33247 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
33255 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
33256 echo "*** See http://www.freedesktop.org/software/pkgconfig"
33260 if test $succeeded = yes; then
33263 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
33264 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
33269 if test x$passed = xno; then
33270 skipped_dirs="$skipped_dirs gr-audio-portaudio"
33271 if test x$enable_gr_audio_portaudio = xyes; then
33272 { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
33273 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
33274 { (exit 1); exit 1; }; }
33276 { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
33277 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
33280 if test x$enable_gr_audio_portaudio != xno; then
33283 ac_config_commands="$ac_config_commands run_tests_portaudio"
33286 build_dirs="$build_dirs gr-audio-portaudio"
33287 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
33288 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
33290 skipped_dirs="$skipped_dirs gr-audio-portaudio"
33291 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
33292 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
33299 # Check whether --enable-gr-audio-windows was given.
33300 if test "${enable_gr_audio_windows+set}" = set; then
33301 enableval=$enable_gr_audio_windows;
33303 enable_gr_audio_windows=$enable_all_components
33308 ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
33313 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
33314 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
33315 if test "${ac_cv_lib_winmm_main+set}" = set; then
33316 echo $ECHO_N "(cached) $ECHO_C" >&6
33318 ac_check_lib_save_LIBS=$LIBS
33319 LIBS="-lwinmm $LIBS"
33320 cat >conftest.$ac_ext <<_ACEOF
33323 cat confdefs.h >>conftest.$ac_ext
33324 cat >>conftest.$ac_ext <<_ACEOF
33325 /* end confdefs.h. */
33336 rm -f conftest.$ac_objext conftest$ac_exeext
33337 if { (ac_try="$ac_link"
33338 case "(($ac_try" in
33339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340 *) ac_try_echo=$ac_try;;
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343 (eval "$ac_link") 2>conftest.er1
33345 grep -v '^ *+' conftest.er1 >conftest.err
33347 cat conftest.err >&5
33348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33349 (exit $ac_status); } &&
33350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33351 { (case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_try") 2>&5
33358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359 (exit $ac_status); }; } &&
33360 { ac_try='test -s conftest$ac_exeext'
33361 { (case "(($ac_try" in
33362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363 *) ac_try_echo=$ac_try;;
33365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366 (eval "$ac_try") 2>&5
33368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369 (exit $ac_status); }; }; then
33370 ac_cv_lib_winmm_main=yes
33372 echo "$as_me: failed program was:" >&5
33373 sed 's/^/| /' conftest.$ac_ext >&5
33375 ac_cv_lib_winmm_main=no
33378 rm -f core conftest.err conftest.$ac_objext \
33379 conftest$ac_exeext conftest.$ac_ext
33380 LIBS=$ac_check_lib_save_LIBS
33382 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
33383 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
33384 if test $ac_cv_lib_winmm_main = yes; then
33385 cat >>confdefs.h <<_ACEOF
33386 #define HAVE_LIBWINMM 1
33389 LIBS="-lwinmm $LIBS"
33392 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
33393 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
33395 ac_cv_lib_winmm=ac_cv_lib_winmm_main
33399 if test x$passed = xno; then
33400 skipped_dirs="$skipped_dirs gr-audio-windows"
33401 if test x$enable_gr_audio_windows = xyes; then
33402 { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
33403 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
33404 { (exit 1); exit 1; }; }
33406 { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
33407 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
33410 if test x$enable_gr_audio_windows != xno; then
33412 WINAUDIO_LIBS=-lwinmm
33414 ac_config_commands="$ac_config_commands run_tests_audio_windows"
33417 build_dirs="$build_dirs gr-audio-windows"
33418 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
33419 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
33421 skipped_dirs="$skipped_dirs gr-audio-windows"
33422 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
33423 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
33430 # Check whether --enable-gr-gsm-fr-vocoder was given.
33431 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
33432 enableval=$enable_gr_gsm_fr_vocoder;
33434 enable_gr_gsm_fr_vocoder=$enable_all_components
33439 ac_config_files="$ac_config_files gr-gsm-fr-vocoder/Makefile gr-gsm-fr-vocoder/src/Makefile gr-gsm-fr-vocoder/src/lib/Makefile gr-gsm-fr-vocoder/src/lib/gsm/Makefile gr-gsm-fr-vocoder/src/python/Makefile gr-gsm-fr-vocoder/src/python/run_tests"
33444 if test x$passed = xno; then
33445 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33446 if test x$enable_gr_gsm_fr_vocoder = xyes; then
33447 { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
33448 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
33449 { (exit 1); exit 1; }; }
33451 { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
33452 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
33455 if test x$enable_gr_gsm_fr_vocoder != xno; then
33457 ac_config_commands="$ac_config_commands run_tests_gsm"
33460 build_dirs="$build_dirs gr-gsm-fr-vocoder"
33461 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
33462 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
33464 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
33465 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
33466 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
33473 # Check whether --enable-gr-radio-astronomy was given.
33474 if test "${enable_gr_radio_astronomy+set}" = set; then
33475 enableval=$enable_gr_radio_astronomy;
33477 enable_gr_radio_astronomy=$enable_all_components
33482 ac_config_files="$ac_config_files gr-radio-astronomy/Makefile gr-radio-astronomy/src/Makefile gr-radio-astronomy/src/lib/Makefile gr-radio-astronomy/src/python/Makefile gr-radio-astronomy/src/python/run_tests"
33487 if test x$passed = xno; then
33488 skipped_dirs="$skipped_dirs gr-radio-astronomy"
33489 if test x$enable_gr_radio_astronomy = xyes; then
33490 { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
33491 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
33492 { (exit 1); exit 1; }; }
33494 { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
33495 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
33498 if test x$enable_gr_radio_astronomy != xno; then
33500 ac_config_commands="$ac_config_commands run_tests_astronomy"
33503 build_dirs="$build_dirs gr-radio-astronomy"
33504 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
33505 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
33507 skipped_dirs="$skipped_dirs gr-radio-astronomy"
33508 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
33509 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
33516 # Check whether --enable-gr-trellis was given.
33517 if test "${enable_gr_trellis+set}" = set; then
33518 enableval=$enable_gr_trellis;
33520 enable_gr_trellis=$enable_all_components
33525 ac_config_files="$ac_config_files gr-trellis/Makefile gr-trellis/doc/Makefile gr-trellis/src/Makefile gr-trellis/src/lib/Makefile gr-trellis/src/python/Makefile gr-trellis/src/python/run_tests"
33530 if test x$passed = xno; then
33531 skipped_dirs="$skipped_dirs gr-trellis"
33532 if test x$enable_gr_trellis = xyes; then
33533 { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
33534 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
33535 { (exit 1); exit 1; }; }
33537 { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
33538 echo "${ECHO_T}Not building component gr-trellis." >&6; }
33541 if test x$enable_gr_trellis != xno; then
33543 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
33546 build_dirs="$build_dirs gr-trellis"
33547 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
33548 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
33550 skipped_dirs="$skipped_dirs gr-trellis"
33551 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
33552 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
33559 # Check whether --enable-gr-video-sdl was given.
33560 if test "${enable_gr_video_sdl+set}" = set; then
33561 enableval=$enable_gr_video_sdl;
33563 enable_gr_video_sdl=$enable_all_components
33568 ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
33574 # Check whether --with-sdl-prefix was given.
33575 if test "${with_sdl_prefix+set}" = set; then
33576 withval=$with_sdl_prefix; sdl_prefix="$withval"
33582 # Check whether --with-sdl-exec-prefix was given.
33583 if test "${with_sdl_exec_prefix+set}" = set; then
33584 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
33589 # Check whether --enable-sdltest was given.
33590 if test "${enable_sdltest+set}" = set; then
33591 enableval=$enable_sdltest;
33597 if test x$sdl_exec_prefix != x ; then
33598 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33599 if test x${SDL_CONFIG+set} != xset ; then
33600 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33603 if test x$sdl_prefix != x ; then
33604 sdl_args="$sdl_args --prefix=$sdl_prefix"
33605 if test x${SDL_CONFIG+set} != xset ; then
33606 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33611 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33612 # Extract the first word of "sdl-config", so it can be a program name with args.
33613 set dummy sdl-config; ac_word=$2
33614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33616 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33617 echo $ECHO_N "(cached) $ECHO_C" >&6
33619 case $SDL_CONFIG in
33621 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33625 for as_dir in $PATH
33628 test -z "$as_dir" && as_dir=.
33629 for ac_exec_ext in '' $ac_executable_extensions; do
33630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
33631 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33639 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33643 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33644 if test -n "$SDL_CONFIG"; then
33645 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33646 echo "${ECHO_T}$SDL_CONFIG" >&6; }
33648 { echo "$as_me:$LINENO: result: no" >&5
33649 echo "${ECHO_T}no" >&6; }
33653 min_sdl_version=$SDL_VERSION
33654 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33655 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
33657 if test "$SDL_CONFIG" = "no" ; then
33660 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33661 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33663 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33664 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33665 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33666 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33667 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33668 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33669 if test "x$enable_sdltest" = "xyes" ; then
33670 ac_save_CFLAGS="$CFLAGS"
33671 ac_save_LIBS="$LIBS"
33672 CFLAGS="$CFLAGS $SDL_CFLAGS"
33673 LIBS="$LIBS $SDL_LIBS"
33675 if test "$cross_compiling" = yes; then
33676 echo $ac_n "cross compiling; assumed OK... $ac_c"
33678 cat >conftest.$ac_ext <<_ACEOF
33681 cat confdefs.h >>conftest.$ac_ext
33682 cat >>conftest.$ac_ext <<_ACEOF
33683 /* end confdefs.h. */
33686 #include <stdlib.h>
33687 #include <string.h>
33691 my_strdup (char *str)
33697 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33698 strcpy (new_str, str);
33706 int main (int argc, char *argv[])
33708 int major, minor, micro;
33711 /* This hangs on some systems (?)
33712 system ("touch conf.sdltest");
33714 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33716 /* HP/UX 9 (%@#!) writes to sscanf strings */
33717 tmp_version = my_strdup("$min_sdl_version");
33718 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
33719 printf("%s, bad version string\n", "$min_sdl_version");
33723 if (($sdl_major_version > major) ||
33724 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33725 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33731 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33732 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33733 printf("*** best to upgrade to the required version.\n");
33734 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33735 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33736 printf("*** config.cache before re-running configure\n");
33743 rm -f conftest$ac_exeext
33744 if { (ac_try="$ac_link"
33745 case "(($ac_try" in
33746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33747 *) ac_try_echo=$ac_try;;
33749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33750 (eval "$ac_link") 2>&5
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33754 { (case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759 (eval "$ac_try") 2>&5
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; }; then
33765 echo "$as_me: program exited with status $ac_status" >&5
33766 echo "$as_me: failed program was:" >&5
33767 sed 's/^/| /' conftest.$ac_ext >&5
33769 ( exit $ac_status )
33772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33776 CFLAGS="$ac_save_CFLAGS"
33777 LIBS="$ac_save_LIBS"
33780 if test "x$no_sdl" = x ; then
33781 { echo "$as_me:$LINENO: result: yes" >&5
33782 echo "${ECHO_T}yes" >&6; }
33785 { echo "$as_me:$LINENO: result: no" >&5
33786 echo "${ECHO_T}no" >&6; }
33787 if test "$SDL_CONFIG" = "no" ; then
33788 echo "*** The sdl-config script installed by SDL could not be found"
33789 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
33790 echo "*** your path, or set the SDL_CONFIG environment variable to the"
33791 echo "*** full path to sdl-config."
33793 if test -f conf.sdltest ; then
33796 echo "*** Could not run SDL test program, checking why..."
33797 CFLAGS="$CFLAGS $SDL_CFLAGS"
33798 LIBS="$LIBS $SDL_LIBS"
33799 cat >conftest.$ac_ext <<_ACEOF
33802 cat confdefs.h >>conftest.$ac_ext
33803 cat >>conftest.$ac_ext <<_ACEOF
33804 /* end confdefs.h. */
33809 int main(int argc, char *argv[])
33812 #define main K_and_R_C_main
33822 rm -f conftest.$ac_objext conftest$ac_exeext
33823 if { (ac_try="$ac_link"
33824 case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_link") 2>conftest.er1
33831 grep -v '^ *+' conftest.er1 >conftest.err
33833 cat conftest.err >&5
33834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835 (exit $ac_status); } &&
33836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33837 { (case "(($ac_try" in
33838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33839 *) ac_try_echo=$ac_try;;
33841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33842 (eval "$ac_try") 2>&5
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; } &&
33846 { ac_try='test -s conftest$ac_exeext'
33847 { (case "(($ac_try" in
33848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33849 *) ac_try_echo=$ac_try;;
33851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33852 (eval "$ac_try") 2>&5
33854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33855 (exit $ac_status); }; }; then
33856 echo "*** The test program compiled, but did not run. This usually means"
33857 echo "*** that the run-time linker is not finding SDL or finding the wrong"
33858 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
33859 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
33860 echo "*** to the installed location Also, make sure you have run ldconfig if that"
33861 echo "*** is required on your system"
33863 echo "*** If you have an old version installed, it is best to remove it, although"
33864 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
33866 echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33869 echo "*** The test program failed to compile or link. See the file config.log for the"
33870 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
33871 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
33872 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
33875 rm -f core conftest.err conftest.$ac_objext \
33876 conftest$ac_exeext conftest.$ac_ext
33877 CFLAGS="$ac_save_CFLAGS"
33878 LIBS="$ac_save_LIBS"
33883 passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
33884 echo "${ECHO_T}gr-video-sdl requires library sdl, not found or failed test." >&6; }
33892 if test x$passed = xno; then
33893 skipped_dirs="$skipped_dirs gr-video-sdl"
33894 if test x$enable_gr_video_sdl = xyes; then
33895 { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
33896 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
33897 { (exit 1); exit 1; }; }
33899 { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
33900 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
33903 if test x$enable_gr_video_sdl != xno; then
33907 ac_config_commands="$ac_config_commands run_tests_sdl"
33910 build_dirs="$build_dirs gr-video-sdl"
33911 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
33912 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
33914 skipped_dirs="$skipped_dirs gr-video-sdl"
33915 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
33916 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
33923 # Check whether --enable-gr-wxgui was given.
33924 if test "${enable_gr_wxgui+set}" = set; then
33925 enableval=$enable_gr_wxgui;
33927 enable_gr_wxgui=$enable_all_components
33932 ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
33935 if ${PYTHON} -c 'import wx'; then
33942 if test x$passed = xno; then
33943 skipped_dirs="$skipped_dirs gr-wxgui"
33944 if test x$enable_gr_wxgui = xyes; then
33945 { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
33946 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
33947 { (exit 1); exit 1; }; }
33949 { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
33950 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
33953 if test x$enable_gr_wxgui != xno; then
33955 build_dirs="$build_dirs gr-wxgui"
33956 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
33957 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
33959 skipped_dirs="$skipped_dirs gr-wxgui"
33960 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
33961 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
33967 # Each component is now either to be built, was skipped, or failed dependencies
33968 build_dirs=$build_dirs
33970 skipped_dirs=$skipped_dirs
33973 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
33976 ac_config_commands="$ac_config_commands run_tests_build"
33979 cat >confcache <<\_ACEOF
33980 # This file is a shell script that caches the results of configure
33981 # tests run on this system so they can be shared between configure
33982 # scripts and configure runs, see configure's option --config-cache.
33983 # It is not useful on other systems. If it contains results you don't
33984 # want to keep, you may remove or edit it.
33986 # config.status only pays attention to the cache file if you give it
33987 # the --recheck option to rerun configure.
33989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33991 # following values.
33995 # The following way of writing the cache mishandles newlines in values,
33996 # but we know of no workaround that is simple, portable, and efficient.
33997 # So, we kill variables containing newlines.
33998 # Ultrix sh set writes to stderr and can't be redirected directly,
33999 # and sets the high bit in the cache file unless we assign to the vars.
34001 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34002 eval ac_val=\$$ac_var
34006 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34007 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34010 _ | IFS | as_nl) ;; #(
34011 *) $as_unset $ac_var ;;
34017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34018 *${as_nl}ac_space=\ *)
34019 # `set' does not quote correctly, so add quotes (double-quote
34020 # substitution turns \\\\ into \\, and sed turns \\ into \).
34023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34026 # `set' quotes correctly as required by POSIX, so do not add quotes.
34027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34040 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34041 if test -w "$cache_file"; then
34042 test "x$cache_file" != "x/dev/null" &&
34043 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34044 echo "$as_me: updating cache $cache_file" >&6;}
34045 cat confcache >$cache_file
34047 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34048 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34053 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34054 # Let make expand exec_prefix.
34055 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34057 DEFS=-DHAVE_CONFIG_H
34061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34062 # 1. Remove the extension, and $U if already installed.
34063 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34064 ac_i=`echo "$ac_i" | sed "$ac_script"`
34065 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34066 # will be set to the directory where LIBOBJS objects are built.
34067 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34068 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34070 LIBOBJS=$ac_libobjs
34072 LTLIBOBJS=$ac_ltlibobjs
34075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34076 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
34077 Usually this means the macro was only invoked conditionally." >&5
34078 echo "$as_me: error: conditional \"AMDEP\" was never defined.
34079 Usually this means the macro was only invoked conditionally." >&2;}
34080 { (exit 1); exit 1; }; }
34082 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34083 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
34084 Usually this means the macro was only invoked conditionally." >&5
34085 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
34086 Usually this means the macro was only invoked conditionally." >&2;}
34087 { (exit 1); exit 1; }; }
34089 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34090 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
34091 Usually this means the macro was only invoked conditionally." >&5
34092 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
34093 Usually this means the macro was only invoked conditionally." >&2;}
34094 { (exit 1); exit 1; }; }
34096 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
34097 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
34098 Usually this means the macro was only invoked conditionally." >&5
34099 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
34100 Usually this means the macro was only invoked conditionally." >&2;}
34101 { (exit 1); exit 1; }; }
34103 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
34104 { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
34105 Usually this means the macro was only invoked conditionally." >&5
34106 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
34107 Usually this means the macro was only invoked conditionally." >&2;}
34108 { (exit 1); exit 1; }; }
34110 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
34111 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34112 Usually this means the macro was only invoked conditionally." >&5
34113 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
34114 Usually this means the macro was only invoked conditionally." >&2;}
34115 { (exit 1); exit 1; }; }
34117 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
34118 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
34119 Usually this means the macro was only invoked conditionally." >&5
34120 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
34121 Usually this means the macro was only invoked conditionally." >&2;}
34122 { (exit 1); exit 1; }; }
34124 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
34125 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34126 Usually this means the macro was only invoked conditionally." >&5
34127 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
34128 Usually this means the macro was only invoked conditionally." >&2;}
34129 { (exit 1); exit 1; }; }
34131 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
34132 { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
34133 Usually this means the macro was only invoked conditionally." >&5
34134 echo "$as_me: error: conditional \"DOC\" was never defined.
34135 Usually this means the macro was only invoked conditionally." >&2;}
34136 { (exit 1); exit 1; }; }
34138 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
34139 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
34140 Usually this means the macro was only invoked conditionally." >&5
34141 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
34142 Usually this means the macro was only invoked conditionally." >&2;}
34143 { (exit 1); exit 1; }; }
34145 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
34146 { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34147 Usually this means the macro was only invoked conditionally." >&5
34148 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
34149 Usually this means the macro was only invoked conditionally." >&2;}
34150 { (exit 1); exit 1; }; }
34152 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
34153 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
34154 Usually this means the macro was only invoked conditionally." >&5
34155 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
34156 Usually this means the macro was only invoked conditionally." >&2;}
34157 { (exit 1); exit 1; }; }
34159 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
34160 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
34161 Usually this means the macro was only invoked conditionally." >&5
34162 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
34163 Usually this means the macro was only invoked conditionally." >&2;}
34164 { (exit 1); exit 1; }; }
34166 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
34167 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
34168 Usually this means the macro was only invoked conditionally." >&5
34169 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
34170 Usually this means the macro was only invoked conditionally." >&2;}
34171 { (exit 1); exit 1; }; }
34173 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
34174 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
34175 Usually this means the macro was only invoked conditionally." >&5
34176 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
34177 Usually this means the macro was only invoked conditionally." >&2;}
34178 { (exit 1); exit 1; }; }
34180 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
34181 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
34182 Usually this means the macro was only invoked conditionally." >&5
34183 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
34184 Usually this means the macro was only invoked conditionally." >&2;}
34185 { (exit 1); exit 1; }; }
34187 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
34188 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34189 Usually this means the macro was only invoked conditionally." >&5
34190 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
34191 Usually this means the macro was only invoked conditionally." >&2;}
34192 { (exit 1); exit 1; }; }
34195 : ${CONFIG_STATUS=./config.status}
34196 ac_clean_files_save=$ac_clean_files
34197 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34198 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34199 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34200 cat >$CONFIG_STATUS <<_ACEOF
34202 # Generated by $as_me.
34203 # Run this file to recreate the current configuration.
34204 # Compiler output produced by configure, useful for debugging
34205 # configure, is in config.log if it exists.
34208 ac_cs_recheck=false
34210 SHELL=\${CONFIG_SHELL-$SHELL}
34213 cat >>$CONFIG_STATUS <<\_ACEOF
34214 ## --------------------- ##
34215 ## M4sh Initialization. ##
34216 ## --------------------- ##
34218 # Be Bourne compatible
34219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34222 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34223 # is contrary to our usage. Disable this feature.
34224 alias -g '${1+"$@"}'='"$@"'
34225 setopt NO_GLOB_SUBST
34227 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34229 BIN_SH=xpg4; export BIN_SH # for Tru64
34230 DUALCASE=1; export DUALCASE # for MKS sh
34234 # Avoid depending upon Character Ranges.
34235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34238 as_cr_digits='0123456789'
34239 as_cr_alnum=$as_cr_Letters$as_cr_digits
34241 # The user is always right.
34242 if test "${PATH_SEPARATOR+set}" != set; then
34243 echo "#! /bin/sh" >conf$$.sh
34244 echo "exit 0" >>conf$$.sh
34246 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34254 # Support unset when possible.
34255 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34263 # We need space, tab and new line, in precisely that order. Quoting is
34264 # there to prevent editors from complaining about space-tab.
34265 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34266 # splitting by setting IFS to empty value.)
34271 # Find who we are. Look in the path if we contain no directory separator.
34273 *[\\/]* ) as_myself=$0 ;;
34274 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34275 for as_dir in $PATH
34278 test -z "$as_dir" && as_dir=.
34279 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34285 # We did not find ourselves, most probably we were run as `sh COMMAND'
34286 # in which case we are not to be found in the path.
34287 if test "x$as_myself" = x; then
34290 if test ! -f "$as_myself"; then
34291 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34292 { (exit 1); exit 1; }
34295 # Work around bugs in pre-3.0 UWIN ksh.
34296 for as_var in ENV MAIL MAILPATH
34297 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34305 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34306 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34307 LC_TELEPHONE LC_TIME
34309 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34310 eval $as_var=C; export $as_var
34312 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34316 # Required to use basename.
34317 if expr a : '\(a\)' >/dev/null 2>&1 &&
34318 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34324 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34325 as_basename=basename
34331 # Name of the executable.
34332 as_me=`$as_basename -- "$0" ||
34333 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34334 X"$0" : 'X\(//\)$' \| \
34335 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34337 sed '/^.*\/\([^/][^/]*\)\/*$/{
34356 as_lineno_1=$LINENO
34357 as_lineno_2=$LINENO
34358 test "x$as_lineno_1" != "x$as_lineno_2" &&
34359 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34361 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34362 # uniformly replaced by the line number. The first 'sed' inserts a
34363 # line-number line after each line using $LINENO; the second 'sed'
34364 # does the real work. The second script uses 'N' to pair each
34365 # line-number line with the line containing $LINENO, and appends
34366 # trailing '-' during substitution so that $LINENO is not a special
34367 # case at line end.
34368 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34369 # scripts with optimization help from Paolo Bonzini. Blame Lee
34370 # E. McMahon (1931-1989) for sed's syntax. :-)
34382 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34385 ' >$as_me.lineno &&
34386 chmod +x "$as_me.lineno" ||
34387 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34388 { (exit 1); exit 1; }; }
34390 # Don't try to exec as it changes $[0], causing all sort of problems
34391 # (the dirname of $[0] is not the place where we might find the
34392 # original and so on. Autoconf is especially sensitive to this).
34393 . "./$as_me.lineno"
34394 # Exit status is that of the last command.
34399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34405 ECHO_C= ECHO_N= ECHO_T=
34406 case `echo -n x` in
34408 case `echo 'x\c'` in
34409 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34416 if expr a : '\(a\)' >/dev/null 2>&1 &&
34417 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34423 rm -f conf$$ conf$$.exe conf$$.file
34424 if test -d conf$$.dir; then
34425 rm -f conf$$.dir/conf$$.file
34431 if ln -s conf$$.file conf$$ 2>/dev/null; then
34433 # ... but there are two gotchas:
34434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34436 # In both cases, we have to default to `cp -p'.
34437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34439 elif ln conf$$.file conf$$ 2>/dev/null; then
34444 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34445 rmdir conf$$.dir 2>/dev/null
34447 if mkdir -p . 2>/dev/null; then
34450 test -d ./-p && rmdir ./-p
34454 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
34455 # systems may use methods other than mode bits to determine executability.
34456 cat >conf$$.file <<_ASEOF
34460 chmod +x conf$$.file
34461 if test -x conf$$.file >/dev/null 2>&1; then
34462 as_executable_p="test -x"
34468 # Sed expression to map a string onto a valid CPP name.
34469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34471 # Sed expression to map a string onto a valid variable name.
34472 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34477 # Save the log message, to keep $[0] and so on meaningful, and to
34478 # report actual input values of CONFIG_FILES etc. instead of their
34479 # values after options handling.
34481 This file was extended by $as_me, which was
34482 generated by GNU Autoconf 2.60. Invocation command line was
34484 CONFIG_FILES = $CONFIG_FILES
34485 CONFIG_HEADERS = $CONFIG_HEADERS
34486 CONFIG_LINKS = $CONFIG_LINKS
34487 CONFIG_COMMANDS = $CONFIG_COMMANDS
34490 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34495 cat >>$CONFIG_STATUS <<_ACEOF
34496 # Files that config.status was made for.
34497 config_files="$ac_config_files"
34498 config_headers="$ac_config_headers"
34499 config_commands="$ac_config_commands"
34503 cat >>$CONFIG_STATUS <<\_ACEOF
34505 \`$as_me' instantiates files from templates according to the
34506 current configuration.
34508 Usage: $0 [OPTIONS] [FILE]...
34510 -h, --help print this help, then exit
34511 -V, --version print version number, then exit
34512 -q, --quiet do not print progress messages
34513 -d, --debug don't remove temporary files
34514 --recheck update $as_me by reconfiguring in the same conditions
34515 --file=FILE[:TEMPLATE]
34516 instantiate the configuration file FILE
34517 --header=FILE[:TEMPLATE]
34518 instantiate the configuration header FILE
34520 Configuration files:
34523 Configuration headers:
34526 Configuration commands:
34529 Report bugs to <bug-autoconf@gnu.org>."
34532 cat >>$CONFIG_STATUS <<_ACEOF
34535 configured by $0, generated by GNU Autoconf 2.60,
34536 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34538 Copyright (C) 2006 Free Software Foundation, Inc.
34539 This config.status script is free software; the Free Software Foundation
34540 gives unlimited permission to copy, distribute and modify it."
34547 cat >>$CONFIG_STATUS <<\_ACEOF
34548 # If no file are specified by the user, then we need to provide default
34549 # value. By we need to know if files were specified by the user.
34555 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34556 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34567 # Handling of the options.
34568 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34570 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34571 echo "$ac_cs_version"; exit ;;
34572 --debug | --debu | --deb | --de | --d | -d )
34574 --file | --fil | --fi | --f )
34576 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34577 ac_need_defaults=false;;
34578 --header | --heade | --head | --hea )
34580 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34581 ac_need_defaults=false;;
34583 # Conflict between --help and --header
34584 { echo "$as_me: error: ambiguous option: $1
34585 Try \`$0 --help' for more information." >&2
34586 { (exit 1); exit 1; }; };;
34587 --help | --hel | -h )
34588 echo "$ac_cs_usage"; exit ;;
34589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34590 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34593 # This is an error.
34594 -*) { echo "$as_me: error: unrecognized option: $1
34595 Try \`$0 --help' for more information." >&2
34596 { (exit 1); exit 1; }; } ;;
34598 *) ac_config_targets="$ac_config_targets $1"
34599 ac_need_defaults=false ;;
34605 ac_configure_extra_args=
34607 if $ac_cs_silent; then
34609 ac_configure_extra_args="$ac_configure_extra_args --silent"
34613 cat >>$CONFIG_STATUS <<_ACEOF
34614 if \$ac_cs_recheck; then
34615 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34616 CONFIG_SHELL=$SHELL
34617 export CONFIG_SHELL
34618 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34622 cat >>$CONFIG_STATUS <<\_ACEOF
34626 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34627 ## Running $as_me. ##
34633 cat >>$CONFIG_STATUS <<_ACEOF
34637 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34641 cat >>$CONFIG_STATUS <<\_ACEOF
34643 # Handling of arguments.
34644 for ac_config_target in $ac_config_targets
34646 case $ac_config_target in
34647 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34648 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34649 "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
34650 "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
34651 "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
34652 "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
34653 "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
34654 "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
34655 "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
34656 "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
34657 "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
34658 "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
34659 "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
34660 "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
34661 "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
34662 "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
34663 "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
34664 "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
34665 "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
34666 "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
34667 "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
34668 "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
34669 "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
34670 "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
34671 "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
34672 "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
34673 "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
34674 "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
34675 "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
34676 "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
34677 "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
34678 "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
34679 "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
34680 "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
34681 "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
34682 "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
34683 "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
34684 "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
34685 "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
34686 "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
34687 "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
34688 "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
34689 "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
34690 "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
34691 "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
34692 "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
34693 "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
34694 "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
34695 "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
34696 "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
34697 "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
34698 "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
34699 "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
34700 "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
34701 "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
34702 "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
34703 "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
34704 "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
34705 "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
34706 "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
34707 "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
34708 "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
34709 "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
34710 "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
34711 "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
34712 "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
34713 "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
34714 "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
34715 "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
34716 "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
34717 "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
34718 "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
34719 "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
34720 "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
34721 "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
34722 "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
34723 "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
34724 "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
34725 "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
34726 "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
34727 "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
34728 "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
34729 "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
34730 "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
34731 "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
34732 "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
34733 "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
34734 "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
34735 "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
34736 "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
34737 "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
34738 "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
34739 "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
34740 "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
34741 "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
34742 "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
34743 "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
34744 "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
34745 "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
34746 "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
34747 "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
34748 "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
34749 "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
34750 "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
34751 "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
34752 "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
34753 "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
34754 "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
34755 "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
34756 "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
34757 "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
34758 "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
34759 "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
34760 "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
34761 "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
34762 "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
34763 "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
34764 "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
34765 "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
34766 "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
34767 "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
34768 "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
34769 "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
34770 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34771 "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
34772 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
34773 "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
34775 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34777 { (exit 1); exit 1; }; };;
34782 # If the user did not use the arguments to specify the items to instantiate,
34783 # then the envvar interface is used. Set only those that are not.
34784 # We use the long form for the default assignment because of an extremely
34785 # bizarre bug on SunOS 4.1.3.
34786 if $ac_need_defaults; then
34787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34792 # Have a temporary directory for convenience. Make it in the build tree
34793 # simply because there is no reason against having it here, and in addition,
34794 # creating and moving files from /tmp can sometimes cause problems.
34795 # Hook for its removal unless debugging.
34796 # Note that there is a small window in which the directory will not be cleaned:
34797 # after its creation but before its name has been assigned to `$tmp'.
34801 trap 'exit_status=$?
34802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34804 trap '{ (exit 1); exit 1; }' 1 2 13 15
34806 # Create a (secure) tmp directory for tmp files.
34809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34810 test -n "$tmp" && test -d "$tmp"
34813 tmp=./conf$$-$RANDOM
34814 (umask 077 && mkdir "$tmp")
34817 echo "$me: cannot create a temporary directory in ." >&2
34818 { (exit 1); exit 1; }
34822 # Set up the sed scripts for CONFIG_FILES section.
34825 # No need to generate the scripts if there are no CONFIG_FILES.
34826 # This happens for instance when ./config.status config.h
34827 if test -n "$CONFIG_FILES"; then
34834 for ac_last_try in false false false false false :; do
34835 cat >conf$$subs.sed <<_ACEOF
34836 SHELL!$SHELL$ac_delim
34837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34843 exec_prefix!$exec_prefix$ac_delim
34844 prefix!$prefix$ac_delim
34845 program_transform_name!$program_transform_name$ac_delim
34846 bindir!$bindir$ac_delim
34847 sbindir!$sbindir$ac_delim
34848 libexecdir!$libexecdir$ac_delim
34849 datarootdir!$datarootdir$ac_delim
34850 datadir!$datadir$ac_delim
34851 sysconfdir!$sysconfdir$ac_delim
34852 sharedstatedir!$sharedstatedir$ac_delim
34853 localstatedir!$localstatedir$ac_delim
34854 includedir!$includedir$ac_delim
34855 oldincludedir!$oldincludedir$ac_delim
34856 docdir!$docdir$ac_delim
34857 infodir!$infodir$ac_delim
34858 htmldir!$htmldir$ac_delim
34859 dvidir!$dvidir$ac_delim
34860 pdfdir!$pdfdir$ac_delim
34861 psdir!$psdir$ac_delim
34862 libdir!$libdir$ac_delim
34863 localedir!$localedir$ac_delim
34864 mandir!$mandir$ac_delim
34865 DEFS!$DEFS$ac_delim
34866 ECHO_C!$ECHO_C$ac_delim
34867 ECHO_N!$ECHO_N$ac_delim
34868 ECHO_T!$ECHO_T$ac_delim
34869 LIBS!$LIBS$ac_delim
34870 build_alias!$build_alias$ac_delim
34871 host_alias!$host_alias$ac_delim
34872 target_alias!$target_alias$ac_delim
34873 build!$build$ac_delim
34874 build_cpu!$build_cpu$ac_delim
34875 build_vendor!$build_vendor$ac_delim
34876 build_os!$build_os$ac_delim
34877 host!$host$ac_delim
34878 host_cpu!$host_cpu$ac_delim
34879 host_vendor!$host_vendor$ac_delim
34880 host_os!$host_os$ac_delim
34881 target!$target$ac_delim
34882 target_cpu!$target_cpu$ac_delim
34883 target_vendor!$target_vendor$ac_delim
34884 target_os!$target_os$ac_delim
34885 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34886 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34887 INSTALL_DATA!$INSTALL_DATA$ac_delim
34888 CYGPATH_W!$CYGPATH_W$ac_delim
34889 PACKAGE!$PACKAGE$ac_delim
34890 VERSION!$VERSION$ac_delim
34891 ACLOCAL!$ACLOCAL$ac_delim
34892 AUTOCONF!$AUTOCONF$ac_delim
34893 AUTOMAKE!$AUTOMAKE$ac_delim
34894 AUTOHEADER!$AUTOHEADER$ac_delim
34895 MAKEINFO!$MAKEINFO$ac_delim
34896 install_sh!$install_sh$ac_delim
34897 STRIP!$STRIP$ac_delim
34898 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34899 mkdir_p!$mkdir_p$ac_delim
34901 SET_MAKE!$SET_MAKE$ac_delim
34902 am__leading_dot!$am__leading_dot$ac_delim
34903 AMTAR!$AMTAR$ac_delim
34904 am__tar!$am__tar$ac_delim
34905 am__untar!$am__untar$ac_delim
34907 CFLAGS!$CFLAGS$ac_delim
34908 LDFLAGS!$LDFLAGS$ac_delim
34909 CPPFLAGS!$CPPFLAGS$ac_delim
34910 ac_ct_CC!$ac_ct_CC$ac_delim
34911 EXEEXT!$EXEEXT$ac_delim
34912 OBJEXT!$OBJEXT$ac_delim
34913 DEPDIR!$DEPDIR$ac_delim
34914 am__include!$am__include$ac_delim
34915 am__quote!$am__quote$ac_delim
34916 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34917 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34918 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34919 CCDEPMODE!$CCDEPMODE$ac_delim
34920 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34921 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34923 GREP!$GREP$ac_delim
34924 EGREP!$EGREP$ac_delim
34926 CXXFLAGS!$CXXFLAGS$ac_delim
34927 ac_ct_CXX!$ac_ct_CXX$ac_delim
34928 CXXDEPMODE!$CXXDEPMODE$ac_delim
34929 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34930 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34931 CXXCPP!$CXXCPP$ac_delim
34932 CCAS!$CCAS$ac_delim
34935 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34937 elif $ac_last_try; then
34938 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34940 { (exit 1); exit 1; }; }
34942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34947 if test -n "$ac_eof"; then
34948 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34949 ac_eof=`expr $ac_eof + 1`
34952 cat >>$CONFIG_STATUS <<_ACEOF
34953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34958 s/^/s,@/; s/!/@,|#_!!_#|/
34961 s/'"$ac_delim"'$/,g/; t
34963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34964 ' >>$CONFIG_STATUS <conf$$subs.sed
34965 rm -f conf$$subs.sed
34966 cat >>$CONFIG_STATUS <<_ACEOF
34972 for ac_last_try in false false false false false :; do
34973 cat >conf$$subs.sed <<_ACEOF
34974 CCASFLAGS!$CCASFLAGS$ac_delim
34975 LN_S!$LN_S$ac_delim
34976 RM_PROG!$RM_PROG$ac_delim
34977 ECHO!$ECHO$ac_delim
34979 RANLIB!$RANLIB$ac_delim
34980 DLLTOOL!$DLLTOOL$ac_delim
34982 OBJDUMP!$OBJDUMP$ac_delim
34984 FFLAGS!$FFLAGS$ac_delim
34985 ac_ct_F77!$ac_ct_F77$ac_delim
34986 LIBTOOL!$LIBTOOL$ac_delim
34987 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
34988 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
34989 FLIBS!$FLIBS$ac_delim
34990 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
34991 SWIG!$SWIG$ac_delim
34992 PYTHON!$PYTHON$ac_delim
34993 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
34994 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
34995 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
34996 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
34997 pythondir!$pythondir$ac_delim
34998 pkgpythondir!$pkgpythondir$ac_delim
34999 pyexecdir!$pyexecdir$ac_delim
35000 pkgpyexecdir!$pkgpyexecdir$ac_delim
35001 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
35002 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
35003 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
35004 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
35005 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
35006 XMLTO!$XMLTO$ac_delim
35007 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
35008 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
35009 PTHREAD_CC!$PTHREAD_CC$ac_delim
35010 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
35011 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
35012 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
35013 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
35014 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
35015 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
35016 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
35017 IPC_LIBS!$IPC_LIBS$ac_delim
35018 ALLOCA!$ALLOCA$ac_delim
35019 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
35020 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
35021 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
35022 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
35023 LIBOBJS!$LIBOBJS$ac_delim
35024 HAVE_DOT!$HAVE_DOT$ac_delim
35025 PKG_CONFIG!$PKG_CONFIG$ac_delim
35026 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
35027 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
35028 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
35029 DOXYGEN!$DOXYGEN$ac_delim
35031 DOC_TRUE!$DOC_TRUE$ac_delim
35032 DOC_FALSE!$DOC_FALSE$ac_delim
35033 enable_dot!$enable_dot$ac_delim
35034 enable_html_docs!$enable_html_docs$ac_delim
35035 enable_latex_docs!$enable_latex_docs$ac_delim
35036 generate_docs!$generate_docs$ac_delim
35037 MD_CPU!$MD_CPU$ac_delim
35038 MD_SUBCPU!$MD_SUBCPU$ac_delim
35039 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
35040 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
35041 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
35042 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
35043 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
35044 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
35045 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
35046 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
35047 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
35048 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
35049 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
35050 DEFINES!$DEFINES$ac_delim
35051 USB_LIBS!$USB_LIBS$ac_delim
35052 FUSB_TECH!$FUSB_TECH$ac_delim
35053 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
35054 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
35055 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
35056 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
35057 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
35058 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
35059 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
35060 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
35061 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
35062 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
35065 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
35066 ALSA_LIBS!$ALSA_LIBS$ac_delim
35067 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
35068 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
35069 JACK_LIBS!$JACK_LIBS$ac_delim
35070 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
35073 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35075 elif $ac_last_try; then
35076 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35078 { (exit 1); exit 1; }; }
35080 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35085 if test -n "$ac_eof"; then
35086 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35087 ac_eof=`expr $ac_eof + 1`
35090 cat >>$CONFIG_STATUS <<_ACEOF
35091 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35096 s/^/s,@/; s/!/@,|#_!!_#|/
35099 s/'"$ac_delim"'$/,g/; t
35101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35102 ' >>$CONFIG_STATUS <conf$$subs.sed
35103 rm -f conf$$subs.sed
35104 cat >>$CONFIG_STATUS <<_ACEOF
35110 for ac_last_try in false false false false false :; do
35111 cat >conf$$subs.sed <<_ACEOF
35112 OSS_LIBS!$OSS_LIBS$ac_delim
35113 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
35114 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
35115 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
35116 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
35117 SDL_CONFIG!$SDL_CONFIG$ac_delim
35118 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
35119 SDL_LIBS!$SDL_LIBS$ac_delim
35120 build_dirs!$build_dirs$ac_delim
35121 skipped_dirs!$skipped_dirs$ac_delim
35122 LTLIBOBJS!$LTLIBOBJS$ac_delim
35125 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
35127 elif $ac_last_try; then
35128 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35129 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35130 { (exit 1); exit 1; }; }
35132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35136 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35137 if test -n "$ac_eof"; then
35138 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35139 ac_eof=`expr $ac_eof + 1`
35142 cat >>$CONFIG_STATUS <<_ACEOF
35143 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35144 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35147 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35148 s/^/s,@/; s/!/@,|#_!!_#|/
35151 s/'"$ac_delim"'$/,g/; t
35153 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35154 ' >>$CONFIG_STATUS <conf$$subs.sed
35155 rm -f conf$$subs.sed
35156 cat >>$CONFIG_STATUS <<_ACEOF
35163 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35164 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35165 # trailing colons and then remove the whole line if VPATH becomes empty
35166 # (actually we leave an empty line to preserve line numbers).
35167 if test "x$srcdir" = x.; then
35168 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35169 s/:*\$(srcdir):*/:/
35170 s/:*\${srcdir}:*/:/
35172 s/^\([^=]*=[ ]*\):*/\1/
35178 cat >>$CONFIG_STATUS <<\_ACEOF
35179 fi # test -n "$CONFIG_FILES"
35182 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35185 :[FHLC]) ac_mode=$ac_tag; continue;;
35187 case $ac_mode$ac_tag in
35189 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35190 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35191 { (exit 1); exit 1; }; };;
35192 :[FH]-) ac_tag=-:-;;
35193 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35210 -) ac_f="$tmp/stdin";;
35211 *) # Look for the file first in the build tree, then in the source tree
35212 # (if the path is not absolute). The absolute path cannot be DOS-style,
35213 # because $ac_f cannot contain `:'.
35217 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35219 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35220 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35221 { (exit 1); exit 1; }; };;
35223 ac_file_inputs="$ac_file_inputs $ac_f"
35226 # Let's still pretend it is `configure' which instantiates (i.e., don't
35227 # use $as_me), people would be surprised to read:
35228 # /* config.h. Generated by config.status. */
35229 configure_input="Generated from "`IFS=:
35230 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35231 if test x"$ac_file" != x-; then
35232 configure_input="$ac_file. $configure_input"
35233 { echo "$as_me:$LINENO: creating $ac_file" >&5
35234 echo "$as_me: creating $ac_file" >&6;}
35238 *:-:* | *:-) cat >"$tmp/stdin";;
35243 ac_dir=`$as_dirname -- "$ac_file" ||
35244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35245 X"$ac_file" : 'X\(//\)[^/]' \| \
35246 X"$ac_file" : 'X\(//\)$' \| \
35247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35253 /^X\(\/\/\)[^/].*/{
35268 -*) as_dir=./$as_dir;;
35270 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35274 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35275 *) as_qdir=$as_dir;;
35277 as_dirs="'$as_qdir' $as_dirs"
35278 as_dir=`$as_dirname -- "$as_dir" ||
35279 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35280 X"$as_dir" : 'X\(//\)[^/]' \| \
35281 X"$as_dir" : 'X\(//\)$' \| \
35282 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35288 /^X\(\/\/\)[^/].*/{
35301 test -d "$as_dir" && break
35303 test -z "$as_dirs" || eval "mkdir $as_dirs"
35304 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35305 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35306 { (exit 1); exit 1; }; }; }
35310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35313 # A ".." for each directory in $ac_dir_suffix.
35314 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35315 case $ac_top_builddir_sub in
35316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35320 ac_abs_top_builddir=$ac_pwd
35321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35322 # for backward compatibility:
35323 ac_top_builddir=$ac_top_build_prefix
35326 .) # We are building in place.
35328 ac_top_srcdir=$ac_top_builddir_sub
35329 ac_abs_top_srcdir=$ac_pwd ;;
35330 [\\/]* | ?:[\\/]* ) # Absolute name.
35331 ac_srcdir=$srcdir$ac_dir_suffix;
35332 ac_top_srcdir=$srcdir
35333 ac_abs_top_srcdir=$srcdir ;;
35334 *) # Relative name.
35335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35336 ac_top_srcdir=$ac_top_build_prefix$srcdir
35337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35349 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35350 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35354 cat >>$CONFIG_STATUS <<\_ACEOF
35355 # If the template does not know about datarootdir, expand it.
35356 # FIXME: This hack should be removed a few years after 2.60.
35357 ac_datarootdir_hack=; ac_datarootdir_seen=
35359 case `sed -n '/datarootdir/ {
35368 ' $ac_file_inputs` in
35369 *datarootdir*) ac_datarootdir_seen=yes;;
35370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35371 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35372 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35374 cat >>$CONFIG_STATUS <<_ACEOF
35375 ac_datarootdir_hack='
35376 s&@datadir@&$datadir&g
35377 s&@docdir@&$docdir&g
35378 s&@infodir@&$infodir&g
35379 s&@localedir@&$localedir&g
35380 s&@mandir@&$mandir&g
35381 s&\\\${datarootdir}&$datarootdir&g' ;;
35385 # Neutralize VPATH when `$srcdir' = `.'.
35386 # Shell code in configure.ac might set extrasub.
35387 # FIXME: do we really want to maintain this feature?
35388 cat >>$CONFIG_STATUS <<_ACEOF
35392 cat >>$CONFIG_STATUS <<\_ACEOF
35394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35395 s&@configure_input@&$configure_input&;t t
35396 s&@top_builddir@&$ac_top_builddir_sub&;t t
35397 s&@srcdir@&$ac_srcdir&;t t
35398 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35399 s&@top_srcdir@&$ac_top_srcdir&;t t
35400 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35401 s&@builddir@&$ac_builddir&;t t
35402 s&@abs_builddir@&$ac_abs_builddir&;t t
35403 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35404 s&@INSTALL@&$ac_INSTALL&;t t
35405 $ac_datarootdir_hack
35406 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35408 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35409 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35411 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35412 which seems to be undefined. Please make sure it is defined." >&5
35413 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35414 which seems to be undefined. Please make sure it is defined." >&2;}
35418 -) cat "$tmp/out"; rm -f "$tmp/out";;
35419 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35428 # Transform confdefs.h into a sed script `conftest.defines', that
35429 # substitutes the proper values into config.h.in to produce config.h.
35430 rm -f conftest.defines conftest.tail
35431 # First, append a space to every undef/define line, to ease matching.
35432 echo 's/$/ /' >conftest.defines
35433 # Then, protect against being on the right side of a sed subst, or in
35434 # an unquoted here document, in config.status. If some macros were
35435 # called several times there might be several #defines for the same
35436 # symbol, which is useless. But do not sort them, since the last
35437 # AC_DEFINE must be honored.
35438 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35439 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35440 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35441 # PARAMS is the parameter list in the macro definition--in most cases, it's
35442 # just an empty string.
35443 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35444 ac_dB='\\)[ (].*,\\1define\\2'
35452 s/^[ ]*#[ ]*define[ ][ ]*//
35457 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35458 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35459 ' >>conftest.defines
35461 # Remove the space that was appended to ease matching.
35462 # Then replace #undef with comments. This is necessary, for
35463 # example, in the case of _POSIX_SOURCE, which is predefined and required
35464 # on some systems where configure will not decide to define it.
35465 # (The regexp can be short, since the line contains either #define or #undef.)
35467 s,^[ #]*u.*,/* & */,' >>conftest.defines
35469 # Break up conftest.defines:
35470 ac_max_sed_lines=50
35472 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35473 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35474 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35476 ac_in='$ac_file_inputs'
35477 ac_out='"$tmp/out1"'
35478 ac_nxt='"$tmp/out2"'
35482 # Write a here document:
35483 cat >>$CONFIG_STATUS <<_ACEOF
35484 # First, check the format of the line:
35485 cat >"\$tmp/defines.sed" <<\\CEOF
35486 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35487 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35491 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35493 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35494 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35495 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35496 grep . conftest.tail >/dev/null || break
35497 rm -f conftest.defines
35498 mv conftest.tail conftest.defines
35500 rm -f conftest.defines conftest.tail
35502 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35503 cat >>$CONFIG_STATUS <<\_ACEOF
35504 if test x"$ac_file" != x-; then
35505 echo "/* $configure_input */" >"$tmp/config.h"
35506 cat "$ac_result" >>"$tmp/config.h"
35507 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35508 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35509 echo "$as_me: $ac_file is unchanged" >&6;}
35512 mv "$tmp/config.h" $ac_file
35515 echo "/* $configure_input */"
35519 # Compute $ac_file's index in $config_headers.
35521 for _am_header in $config_headers :; do
35522 case $_am_header in
35523 $ac_file | $ac_file:* )
35526 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35529 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35530 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35531 X$ac_file : 'X\(//\)[^/]' \| \
35532 X$ac_file : 'X\(//\)$' \| \
35533 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35539 /^X\(\/\/\)[^/].*/{
35551 s/.*/./; q'`/stamp-h$_am_stamp_count
35554 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35555 echo "$as_me: executing $ac_file commands" >&6;}
35560 case $ac_file$ac_mode in
35561 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35562 # Strip MF so we end up with the name of the file.
35563 mf=`echo "$mf" | sed -e 's/:.*$//'`
35564 # Check whether this is an Automake generated Makefile or not.
35565 # We used to match only the files named `Makefile.in', but
35566 # some people rename them; so instead we look at the file content.
35567 # Grep'ing the first line is not enough: some people post-process
35568 # each Makefile.in and add a new line on top of each file to say so.
35569 # So let's grep whole file.
35570 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35571 dirpart=`$as_dirname -- "$mf" ||
35572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35573 X"$mf" : 'X\(//\)[^/]' \| \
35574 X"$mf" : 'X\(//\)$' \| \
35575 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35581 /^X\(\/\/\)[^/].*/{
35597 # Extract the definition of DEPDIR, am__include, and am__quote
35598 # from the Makefile without running `make'.
35599 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35600 test -z "$DEPDIR" && continue
35601 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35602 test -z "am__include" && continue
35603 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35604 # When using ansi2knr, U may be empty or an underscore; expand it
35605 U=`sed -n 's/^U = //p' < "$mf"`
35606 # Find all dependency output files, they are included files with
35607 # $(DEPDIR) in their names. We invoke sed twice because it is the
35608 # simplest approach to changing $(DEPDIR) to its actual value in the
35610 for file in `sed -n "
35611 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35612 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35613 # Make sure the directory exists.
35614 test -f "$dirpart/$file" && continue
35615 fdir=`$as_dirname -- "$file" ||
35616 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35617 X"$file" : 'X\(//\)[^/]' \| \
35618 X"$file" : 'X\(//\)$' \| \
35619 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35625 /^X\(\/\/\)[^/].*/{
35638 { as_dir=$dirpart/$fdir
35640 -*) as_dir=./$as_dir;;
35642 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35646 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35647 *) as_qdir=$as_dir;;
35649 as_dirs="'$as_qdir' $as_dirs"
35650 as_dir=`$as_dirname -- "$as_dir" ||
35651 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35652 X"$as_dir" : 'X\(//\)[^/]' \| \
35653 X"$as_dir" : 'X\(//\)$' \| \
35654 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35660 /^X\(\/\/\)[^/].*/{
35673 test -d "$as_dir" && break
35675 test -z "$as_dirs" || eval "mkdir $as_dirs"
35676 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35677 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35678 { (exit 1); exit 1; }; }; }
35679 # echo "creating $dirpart/$file"
35680 echo '# dummy' > "$dirpart/$file"
35684 "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
35685 "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
35686 "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
35687 "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
35688 "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
35689 "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
35690 "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
35691 "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
35692 "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
35693 "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
35694 "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
35695 "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
35696 "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
35697 "run_tests_build":C) chmod +x run_tests.sh ;;
35703 { (exit 0); exit 0; }
35705 chmod +x $CONFIG_STATUS
35706 ac_clean_files=$ac_clean_files_save
35709 # configure is writing to config.log, and then calls config.status.
35710 # config.status does its own redirection, appending to config.log.
35711 # Unfortunately, on DOS this fails, as config.log is still kept open
35712 # by configure, so config.status won't be able to write to it; its
35713 # output is simply discarded. So we exec the FD to /dev/null,
35714 # effectively closing config.log, so it can be properly (re)opened and
35715 # appended to by config.status. When coming back to configure, we
35716 # need to make the FD available again.
35717 if test "$no_create" != yes; then
35719 ac_config_status_args=
35720 test "$silent" = yes &&
35721 ac_config_status_args="$ac_config_status_args --quiet"
35723 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35725 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35726 # would make configure fail if this is the last instruction.
35727 $ac_cs_success || { (exit 1); exit 1; }
35732 echo "*********************************************************************"
35733 echo The following GNU Radio components have been successfully configured:
35735 for dir in $build_dirs
35740 echo You my now run the 'make' command to build these components.
35742 if test "$skipped_dirs" != ""; then
35743 echo "*********************************************************************"
35744 echo The following components were skipped either because you asked not
35745 echo to build them or they didn\'t pass configuration checks:
35747 for dir in $skipped_dirs
35752 echo These components will not be built.