2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="gnuradio-core/src/lib/runtime/gr_vmcircbuf.cc"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
832 INSTALL_STRIP_PROGRAM
905 OMNITHREAD_POSIX_TRUE
906 OMNITHREAD_POSIX_FALSE
913 LIBGNURADIO_CORE_EXTRA_LDFLAGS
914 HAVE_CREATEFILEMAPPING_TRUE
915 HAVE_CREATEFILEMAPPING_FALSE
934 MD_SUBCPU_x86_64_TRUE
935 MD_SUBCPU_x86_64_FALSE
946 FUSB_TECH_darwin_TRUE
947 FUSB_TECH_darwin_FALSE
949 FUSB_TECH_win32_FALSE
950 FUSB_TECH_generic_TRUE
951 FUSB_TECH_generic_FALSE
953 FUSB_TECH_linux_FALSE
955 FUSB_TECH_ra_wb_FALSE
976 ac_precious_vars='build_alias
995 # Initialize some variables set by options.
997 ac_init_version=false
998 # The variables have the same names as the options, with
999 # dashes changed to underlines.
1000 cache_file=/dev/null
1007 program_transform_name=s,x,x,
1015 # Installation directory options.
1016 # These are left unexpanded so users can "make install exec_prefix=/foo"
1017 # and all the variables that are supposed to be based on exec_prefix
1018 # by default will actually change.
1019 # Use braces instead of parens because sh, perl, etc. also accept them.
1020 # (The list follows the same order as the GNU Coding Standards.)
1021 bindir='${exec_prefix}/bin'
1022 sbindir='${exec_prefix}/sbin'
1023 libexecdir='${exec_prefix}/libexec'
1024 datarootdir='${prefix}/share'
1025 datadir='${datarootdir}'
1026 sysconfdir='${prefix}/etc'
1027 sharedstatedir='${prefix}/com'
1028 localstatedir='${prefix}/var'
1029 includedir='${prefix}/include'
1030 oldincludedir='/usr/include'
1031 docdir='${datarootdir}/doc/${PACKAGE}'
1032 infodir='${datarootdir}/info'
1037 libdir='${exec_prefix}/lib'
1038 localedir='${datarootdir}/locale'
1039 mandir='${datarootdir}/man'
1045 # If the previous option needs an argument, assign it.
1046 if test -n "$ac_prev"; then
1047 eval $ac_prev=\$ac_option
1053 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057 # Accept the important Cygnus configure options, so we can diagnose typos.
1059 case $ac_dashdash$ac_option in
1063 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1066 bindir=$ac_optarg ;;
1068 -build | --build | --buil | --bui | --bu)
1069 ac_prev=build_alias ;;
1070 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1071 build_alias=$ac_optarg ;;
1073 -cache-file | --cache-file | --cache-fil | --cache-fi \
1074 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1075 ac_prev=cache_file ;;
1076 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1077 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1078 cache_file=$ac_optarg ;;
1080 --config-cache | -C)
1081 cache_file=config.cache ;;
1083 -datadir | --datadir | --datadi | --datad)
1085 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1086 datadir=$ac_optarg ;;
1088 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1089 | --dataroo | --dataro | --datar)
1090 ac_prev=datarootdir ;;
1091 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1092 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1093 datarootdir=$ac_optarg ;;
1095 -disable-* | --disable-*)
1096 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1100 { (exit 1); exit 1; }; }
1101 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1102 eval enable_$ac_feature=no ;;
1104 -docdir | --docdir | --docdi | --doc | --do)
1106 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1107 docdir=$ac_optarg ;;
1109 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1111 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1112 dvidir=$ac_optarg ;;
1114 -enable-* | --enable-*)
1115 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1118 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1119 { (exit 1); exit 1; }; }
1120 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1121 eval enable_$ac_feature=\$ac_optarg ;;
1123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125 | --exec | --exe | --ex)
1126 ac_prev=exec_prefix ;;
1127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129 | --exec=* | --exe=* | --ex=*)
1130 exec_prefix=$ac_optarg ;;
1132 -gas | --gas | --ga | --g)
1133 # Obsolete; use --with-gas.
1136 -help | --help | --hel | --he | -h)
1137 ac_init_help=long ;;
1138 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139 ac_init_help=recursive ;;
1140 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141 ac_init_help=short ;;
1143 -host | --host | --hos | --ho)
1144 ac_prev=host_alias ;;
1145 -host=* | --host=* | --hos=* | --ho=*)
1146 host_alias=$ac_optarg ;;
1148 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152 htmldir=$ac_optarg ;;
1154 -includedir | --includedir | --includedi | --included | --include \
1155 | --includ | --inclu | --incl | --inc)
1156 ac_prev=includedir ;;
1157 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158 | --includ=* | --inclu=* | --incl=* | --inc=*)
1159 includedir=$ac_optarg ;;
1161 -infodir | --infodir | --infodi | --infod | --info | --inf)
1163 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164 infodir=$ac_optarg ;;
1166 -libdir | --libdir | --libdi | --libd)
1168 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169 libdir=$ac_optarg ;;
1171 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172 | --libexe | --libex | --libe)
1173 ac_prev=libexecdir ;;
1174 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175 | --libexe=* | --libex=* | --libe=*)
1176 libexecdir=$ac_optarg ;;
1178 -localedir | --localedir | --localedi | --localed | --locale)
1179 ac_prev=localedir ;;
1180 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181 localedir=$ac_optarg ;;
1183 -localstatedir | --localstatedir | --localstatedi | --localstated \
1184 | --localstate | --localstat | --localsta | --localst | --locals)
1185 ac_prev=localstatedir ;;
1186 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188 localstatedir=$ac_optarg ;;
1190 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193 mandir=$ac_optarg ;;
1195 -nfp | --nfp | --nf)
1196 # Obsolete; use --without-fp.
1199 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200 | --no-cr | --no-c | -n)
1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1207 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209 | --oldin | --oldi | --old | --ol | --o)
1210 ac_prev=oldincludedir ;;
1211 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214 oldincludedir=$ac_optarg ;;
1216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219 prefix=$ac_optarg ;;
1221 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222 | --program-pre | --program-pr | --program-p)
1223 ac_prev=program_prefix ;;
1224 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226 program_prefix=$ac_optarg ;;
1228 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229 | --program-suf | --program-su | --program-s)
1230 ac_prev=program_suffix ;;
1231 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233 program_suffix=$ac_optarg ;;
1235 -program-transform-name | --program-transform-name \
1236 | --program-transform-nam | --program-transform-na \
1237 | --program-transform-n | --program-transform- \
1238 | --program-transform | --program-transfor \
1239 | --program-transfo | --program-transf \
1240 | --program-trans | --program-tran \
1241 | --progr-tra | --program-tr | --program-t)
1242 ac_prev=program_transform_name ;;
1243 -program-transform-name=* | --program-transform-name=* \
1244 | --program-transform-nam=* | --program-transform-na=* \
1245 | --program-transform-n=* | --program-transform-=* \
1246 | --program-transform=* | --program-transfor=* \
1247 | --program-transfo=* | --program-transf=* \
1248 | --program-trans=* | --program-tran=* \
1249 | --progr-tra=* | --program-tr=* | --program-t=*)
1250 program_transform_name=$ac_optarg ;;
1252 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255 pdfdir=$ac_optarg ;;
1257 -psdir | --psdir | --psdi | --psd | --ps)
1259 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270 sbindir=$ac_optarg ;;
1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1274 | --sharedst | --shareds | --shared | --share | --shar \
1276 ac_prev=sharedstatedir ;;
1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281 sharedstatedir=$ac_optarg ;;
1283 -site | --site | --sit)
1285 -site=* | --site=* | --sit=*)
1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1291 srcdir=$ac_optarg ;;
1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1294 | --syscon | --sysco | --sysc | --sys | --sy)
1295 ac_prev=sysconfdir ;;
1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1298 sysconfdir=$ac_optarg ;;
1300 -target | --target | --targe | --targ | --tar | --ta | --t)
1301 ac_prev=target_alias ;;
1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1303 target_alias=$ac_optarg ;;
1305 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1308 -version | --version | --versio | --versi | --vers | -V)
1309 ac_init_version=: ;;
1312 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1315 { echo "$as_me: error: invalid package name: $ac_package" >&2
1316 { (exit 1); exit 1; }; }
1317 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1318 eval with_$ac_package=\$ac_optarg ;;
1320 -without-* | --without-*)
1321 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid package name: $ac_package" >&2
1325 { (exit 1); exit 1; }; }
1326 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1327 eval with_$ac_package=no ;;
1330 # Obsolete; use --with-x.
1333 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1334 | --x-incl | --x-inc | --x-in | --x-i)
1335 ac_prev=x_includes ;;
1336 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1337 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1338 x_includes=$ac_optarg ;;
1340 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1341 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1342 ac_prev=x_libraries ;;
1343 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1344 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1345 x_libraries=$ac_optarg ;;
1347 -*) { echo "$as_me: error: unrecognized option: $ac_option
1348 Try \`$0 --help' for more information." >&2
1349 { (exit 1); exit 1; }; }
1353 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1356 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1357 { (exit 1); exit 1; }; }
1358 eval $ac_envvar=\$ac_optarg
1359 export $ac_envvar ;;
1362 # FIXME: should be removed in autoconf 3.0.
1363 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1364 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1365 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1366 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1372 if test -n "$ac_prev"; then
1373 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1374 { echo "$as_me: error: missing argument to $ac_option" >&2
1375 { (exit 1); exit 1; }; }
1378 # Be sure to have absolute directory names.
1379 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1380 datadir sysconfdir sharedstatedir localstatedir includedir \
1381 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1382 libdir localedir mandir
1384 eval ac_val=\$$ac_var
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1390 { (exit 1); exit 1; }; }
1393 # There might be people who depend on the old broken behavior: `$host'
1394 # used to hold the argument of --host etc.
1395 # FIXME: To remove some day.
1398 target=$target_alias
1400 # FIXME: To remove some day.
1401 if test "x$host_alias" != x; then
1402 if test "x$build_alias" = x; then
1403 cross_compiling=maybe
1404 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1405 If a cross compiler is detected then cross compile mode will be used." >&2
1406 elif test "x$build_alias" != "x$host_alias"; then
1412 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414 test "$silent" = yes && exec 6>/dev/null
1417 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1418 ac_ls_di=`ls -di .` &&
1419 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1420 { echo "$as_me: error: Working directory cannot be determined" >&2
1421 { (exit 1); exit 1; }; }
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 { echo "$as_me: error: pwd does not report name of working directory" >&2
1424 { (exit 1); exit 1; }; }
1427 # Find the source files, if location was not specified.
1428 if test -z "$srcdir"; then
1429 ac_srcdir_defaulted=yes
1430 # Try the directory containing this script, then the parent directory.
1431 ac_confdir=`$as_dirname -- "$0" ||
1432 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1433 X"$0" : 'X\(//\)[^/]' \| \
1434 X"$0" : 'X\(//\)$' \| \
1435 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1459 ac_srcdir_defaulted=no
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1463 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1464 { (exit 1); exit 1; }; }
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1469 { (exit 1); exit 1; }; }
1471 # When building in place, set srcdir=.
1472 if test "$ac_abs_confdir" = "$ac_pwd"; then
1475 # Remove unnecessary trailing slashes from srcdir.
1476 # Double slashes in file names in object file debugging info
1477 # mess up M-x gdb in Emacs.
1479 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1481 for ac_var in $ac_precious_vars; do
1482 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1483 eval ac_env_${ac_var}_value=\$${ac_var}
1484 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1485 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1489 # Report the --help message.
1491 if test "$ac_init_help" = "long"; then
1492 # Omit some internal or obsolete options to make the list less imposing.
1493 # This message is too long to be a string in the A/UX 3.1 sh.
1495 \`configure' configures this package to adapt to many kinds of systems.
1497 Usage: $0 [OPTION]... [VAR=VALUE]...
1499 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1500 VAR=VALUE. See below for descriptions of some of the useful variables.
1502 Defaults for the options are specified in brackets.
1505 -h, --help display this help and exit
1506 --help=short display options specific to this package
1507 --help=recursive display the short help of all the included packages
1508 -V, --version display version information and exit
1509 -q, --quiet, --silent do not print \`checking...' messages
1510 --cache-file=FILE cache test results in FILE [disabled]
1511 -C, --config-cache alias for \`--cache-file=config.cache'
1512 -n, --no-create do not create output files
1513 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1515 Installation directories:
1516 --prefix=PREFIX install architecture-independent files in PREFIX
1517 [$ac_default_prefix]
1518 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1521 By default, \`make install' will install all the files in
1522 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1523 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1524 for instance \`--prefix=\$HOME'.
1526 For better control, use the options below.
1528 Fine tuning of the installation directories:
1529 --bindir=DIR user executables [EPREFIX/bin]
1530 --sbindir=DIR system admin executables [EPREFIX/sbin]
1531 --libexecdir=DIR program executables [EPREFIX/libexec]
1532 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1533 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1534 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1553 --program-prefix=PREFIX prepend PREFIX to installed program names
1554 --program-suffix=SUFFIX append SUFFIX to installed program names
1555 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 --target=TARGET configure for building compilers for TARGET [HOST]
1564 if test -n "$ac_init_help"; then
1569 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1570 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1571 --disable-dependency-tracking speeds up one-time build
1572 --enable-dependency-tracking do not reject slow dependency extractors
1573 --disable-assert don't use cpp.h assert
1574 --enable-shared[=PKGS] build shared libraries [default=yes]
1575 --enable-static[=PKGS] build static libraries [default=no]
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation [default=yes]
1578 --disable-libtool-lock avoid locking (might break parallel builds)
1579 --enable-fortran enable fortran (no)
1580 --enable-doxygen enable documentation generation with doxygen (no)
1581 --enable-dot use 'dot' to generate graphs in doxygen (auto)
1582 --enable-html-docs enable HTML generation with doxygen (yes)
1583 --enable-latex-docs enable LaTeX doc generation with doxygen (no)
1584 --enable-all-components Build all components or stop on failed dependencies
1586 --enable-gnuradio-core Fail build if gnuradio-core fails configuration
1587 --enable-gnuradio-examples Fail build if gnuradio-examples fails configuration
1588 --enable-usrp Fail build if usrp fails configuration
1589 --enable-gr-usrp Fail build if gr-usrp fails configuration
1590 --enable-gr-audio-alsa Fail build if gr-audio-alsa fails configuration
1591 --enable-gr-audio-jack Fail build if gr-audio-jack fails configuration
1592 --enable-gr-audio-oss Fail build if gr-audio-oss fails configuration
1593 --enable-gr-audio-osx Fail build if gr-audio-osx fails configuration
1594 --enable-gr-audio-portaudio Fail build if gr-audio-portaudio fails configuration
1595 --enable-gr-audio-windows Fail build if gr-audio-windows fails configuration
1596 --enable-gr-gsm-fr-vocoder Fail build if gr-gsm-fr-vocoder fails configuration
1597 --enable-gr-radio-astronomy Fail build if gr-radio-astronomy fails configuration
1598 --enable-gr-trellis Fail build if gr-trellis fails configuration
1599 --enable-gr-video-sdl Fail build if gr-video-sdl fails configuration
1600 --disable-sdltest Do not try to compile and run a test SDL program
1601 --enable-gr-wxgui Fail build if gr-wxgui fails configuration
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-warnings Turn on warnings
1607 --with-gprof Turn on gprof profiling
1608 --with-prof Turn on prof profiling
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1612 --with-tags[=TAGS] include additional configurations [automatic]
1613 --with-md-cpu=ARCH set machine dependent speedups (auto)
1614 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1615 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1616 --with-boost-include-dir=<path>
1617 path to boost c++ include files
1618 --with-fusb-tech=OS set fast usb technique (auto)
1619 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1620 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1622 Some influential environment variables:
1623 CC C compiler command
1624 CFLAGS C compiler flags
1625 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1626 nonstandard directory <lib dir>
1627 LIBS libraries to pass to the linker, e.g. -l<library>
1628 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1629 you have headers in a nonstandard directory <include dir>
1631 CXX C++ compiler command
1632 CXXFLAGS C++ compiler flags
1633 CXXCPP C++ preprocessor
1634 CCAS assembler compiler command (defaults to CC)
1635 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1636 F77 Fortran 77 compiler command
1637 FFLAGS Fortran 77 compiler flags
1639 Use these variables to override the choices made by `configure' or to help
1640 it to find libraries and programs with nonstandard names/locations.
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" || continue
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1703 generated by GNU Autoconf 2.61
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.61. Invocation command line was
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 echo "PATH: $as_dir"
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1777 ac_must_keep_next=false
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1788 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806 -* ) ac_must_keep_next=true ;;
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1833 # The following way of writing the cache mishandles newlines in values,
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1840 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1841 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1844 _ | IFS | as_nl) ;; #(
1845 *) $as_unset $ac_var ;;
1850 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1851 *${as_nl}ac_space=\ *)
1853 "s/'\''/'\''\\\\'\'''\''/g;
1854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1865 ## ----------------- ##
1866 ## Output variables. ##
1867 ## ----------------- ##
1870 for ac_var in $ac_subst_vars
1872 eval ac_val=\$$ac_var
1874 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 echo "$ac_var='\''$ac_val'\''"
1880 if test -n "$ac_subst_files"; then
1882 ## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##
1887 for ac_var in $ac_subst_files
1889 eval ac_val=\$$ac_var
1891 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1893 echo "$ac_var='\''$ac_val'\''"
1898 if test -s confdefs.h; then
1908 test "$ac_signal" != 0 &&
1909 echo "$as_me: caught signal $ac_signal"
1910 echo "$as_me: exit $exit_status"
1912 rm -f core *.core core.conftest.* &&
1913 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1916 for ac_signal in 1 2 13 15; do
1917 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1922 rm -f -r conftest* confdefs.h
1924 # Predefined preprocessor variables.
1926 cat >>confdefs.h <<_ACEOF
1927 #define PACKAGE_NAME "$PACKAGE_NAME"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_STRING "$PACKAGE_STRING"
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1951 # Let the site file select an alternate cache file if it wants to.
1952 # Prefer explicitly selected file to automatically selected ones.
1953 if test -n "$CONFIG_SITE"; then
1954 set x "$CONFIG_SITE"
1955 elif test "x$prefix" != xNONE; then
1956 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1958 set x "$ac_default_prefix/share/config.site" \
1959 "$ac_default_prefix/etc/config.site"
1964 if test -r "$ac_site_file"; then
1965 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1966 echo "$as_me: loading site script $ac_site_file" >&6;}
1967 sed 's/^/| /' "$ac_site_file" >&5
1972 if test -r "$cache_file"; then
1973 # Some versions of bash will fail to source /dev/null (special
1974 # files actually), so we avoid doing that.
1975 if test -f "$cache_file"; then
1976 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1977 echo "$as_me: loading cache $cache_file" >&6;}
1979 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1980 *) . "./$cache_file";;
1984 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1985 echo "$as_me: creating cache $cache_file" >&6;}
1989 # Check that the precious variables saved in the cache have kept the same
1991 ac_cache_corrupted=false
1992 for ac_var in $ac_precious_vars; do
1993 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1994 eval ac_new_set=\$ac_env_${ac_var}_set
1995 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1996 eval ac_new_val=\$ac_env_${ac_var}_value
1997 case $ac_old_set,$ac_new_set in
1999 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2003 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2004 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2008 if test "x$ac_old_val" != "x$ac_new_val"; then
2009 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2010 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2011 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2012 echo "$as_me: former value: $ac_old_val" >&2;}
2013 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2014 echo "$as_me: current value: $ac_new_val" >&2;}
2015 ac_cache_corrupted=:
2018 # Pass precious variables to config.status.
2019 if test "$ac_new_set" = set; then
2021 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2022 *) ac_arg=$ac_var=$ac_new_val ;;
2024 case " $ac_configure_args " in
2025 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2026 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2030 if $ac_cache_corrupted; then
2031 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2032 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2033 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2034 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2035 { (exit 1); exit 1; }; }
2055 ac_cpp='$CPP $CPPFLAGS'
2056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 ac_config_headers="$ac_config_headers config.h"
2065 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2066 if test -f "$ac_dir/install-sh"; then
2068 ac_install_sh="$ac_aux_dir/install-sh -c"
2070 elif test -f "$ac_dir/install.sh"; then
2072 ac_install_sh="$ac_aux_dir/install.sh -c"
2074 elif test -f "$ac_dir/shtool"; then
2076 ac_install_sh="$ac_aux_dir/shtool install -c"
2080 if test -z "$ac_aux_dir"; then
2081 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2082 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2083 { (exit 1); exit 1; }; }
2086 # These three variables are undocumented and unsupported,
2087 # and are intended to be withdrawn in a future Autoconf release.
2088 # They can cause serious problems if a builder's source tree is in a directory
2089 # whose full name contains unusual characters.
2090 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2091 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2092 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2095 # Make sure we can run config.sub.
2096 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2099 { (exit 1); exit 1; }; }
2101 { echo "$as_me:$LINENO: checking build system type" >&5
2102 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2103 if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 ac_build_alias=$build_alias
2107 test "x$ac_build_alias" = x &&
2108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109 test "x$ac_build_alias" = x &&
2110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
2113 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2116 { (exit 1); exit 1; }; }
2119 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120 echo "${ECHO_T}$ac_cv_build" >&6; }
2121 case $ac_cv_build in
2123 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124 echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2128 ac_save_IFS=$IFS; IFS='-'
2134 # Remember, the first character of IFS is used to create $*,
2135 # except with old shells:
2138 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2141 { echo "$as_me:$LINENO: checking host system type" >&5
2142 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2143 if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 if test "x$host_alias" = x; then
2147 ac_cv_host=$ac_cv_build
2149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2156 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157 echo "${ECHO_T}$ac_cv_host" >&6; }
2160 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161 echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2165 ac_save_IFS=$IFS; IFS='-'
2171 # Remember, the first character of IFS is used to create $*,
2172 # except with old shells:
2175 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2178 { echo "$as_me:$LINENO: checking target system type" >&5
2179 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_target+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 if test "x$target_alias" = x; then
2184 ac_cv_target=$ac_cv_host
2186 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2188 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2189 { (exit 1); exit 1; }; }
2193 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2194 echo "${ECHO_T}$ac_cv_target" >&6; }
2195 case $ac_cv_target in
2197 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2198 echo "$as_me: error: invalid value of canonical target" >&2;}
2199 { (exit 1); exit 1; }; };;
2201 target=$ac_cv_target
2202 ac_save_IFS=$IFS; IFS='-'
2208 # Remember, the first character of IFS is used to create $*,
2209 # except with old shells:
2212 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2215 # The aliases save the names the user supplied, while $host etc.
2216 # will get canonicalized.
2217 test -n "$target_alias" &&
2218 test "$program_prefix$program_suffix$program_transform_name" = \
2220 program_prefix=${target_alias}-
2221 am__api_version="1.9"
2222 # Find a good install program. We prefer a C program (faster),
2223 # so one script is as good as another. But avoid the broken or
2224 # incompatible versions:
2225 # SysV /etc/install, /usr/sbin/install
2226 # SunOS /usr/etc/install
2227 # IRIX /sbin/install
2229 # AmigaOS /C/install, which installs bootblocks on floppy discs
2230 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233 # OS/2's system install, which has a completely different semantic
2234 # ./install, which can be erroneously created by make from ./install.sh.
2235 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2236 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2237 if test -z "$INSTALL"; then
2238 if test "${ac_cv_path_install+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 # Account for people who put trailing slashes in PATH elements.
2248 ./ | .// | /cC/* | \
2249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2250 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2253 # OSF1 and SCO ODT 3.0 have their own names for install.
2254 # Don't use installbsd from OSF since it installs stuff as root
2256 for ac_prog in ginstall scoinst install; do
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2259 if test $ac_prog = install &&
2260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2261 # AIX install. It has an incompatible calling convention.
2263 elif test $ac_prog = install &&
2264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265 # program-specific install script used by HP pwplus--don't use.
2268 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2281 if test "${ac_cv_path_install+set}" = set; then
2282 INSTALL=$ac_cv_path_install
2284 # As a last resort, use the slow shell script. Don't cache a
2285 # value for INSTALL within a source directory, because that will
2286 # break other packages using the cache if that directory is
2287 # removed, or if the value is a relative name.
2288 INSTALL=$ac_install_sh
2291 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2292 echo "${ECHO_T}$INSTALL" >&6; }
2294 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295 # It thinks the first close brace ends the variable substitution.
2296 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2298 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2300 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2302 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2303 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2306 echo timestamp > conftest.file
2307 # Do `set' in a subshell so we don't clobber the current shell's
2308 # arguments. Must try -L first in case configure is actually a
2309 # symlink; some systems play weird games with the mod time of symlinks
2310 # (eg FreeBSD returns the mod time of the symlink's containing
2313 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2314 if test "$*" = "X"; then
2316 set X `ls -t $srcdir/configure conftest.file`
2319 if test "$*" != "X $srcdir/configure conftest.file" \
2320 && test "$*" != "X conftest.file $srcdir/configure"; then
2322 # If neither matched, then we have a broken ls. This can happen
2323 # if, for instance, CONFIG_SHELL is bash and it inherits a
2324 # broken ls alias from the environment. This has actually
2325 # happened. Such a system could not be considered "sane".
2326 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2327 alias in your environment" >&5
2328 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2329 alias in your environment" >&2;}
2330 { (exit 1); exit 1; }; }
2333 test "$2" = conftest.file
2339 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2340 Check your system clock" >&5
2341 echo "$as_me: error: newly created file is older than distributed files!
2342 Check your system clock" >&2;}
2343 { (exit 1); exit 1; }; }
2345 { echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6; }
2347 test "$program_prefix" != NONE &&
2348 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2349 # Use a double $ so make ignores it.
2350 test "$program_suffix" != NONE &&
2351 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2352 # Double any \ or $. echo might interpret backslashes.
2353 # By default was `s,x,x', remove it if useless.
2354 cat <<\_ACEOF >conftest.sed
2355 s/[\\$]/&&/g;s/;s,x,x,$//
2357 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2360 # expand $ac_aux_dir to an absolute path
2361 am_aux_dir=`cd $ac_aux_dir && pwd`
2363 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2364 # Use eval to expand $SHELL
2365 if eval "$MISSING --run true"; then
2366 am_missing_run="$MISSING --run "
2369 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2370 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2373 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2374 # We used to keeping the `.' as first argument, in order to
2375 # allow $(mkdir_p) to be used without argument. As in
2376 # $(mkdir_p) $(somedir)
2377 # where $(somedir) is conditionally defined. However this is wrong
2379 # 1. if the package is installed by a user who cannot write `.'
2380 # make install will fail,
2381 # 2. the above comment should most certainly read
2382 # $(mkdir_p) $(DESTDIR)$(somedir)
2383 # so it does not work when $(somedir) is undefined and
2384 # $(DESTDIR) is not.
2385 # To support the latter case, we have to write
2386 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2387 # so the `.' trick is pointless.
2388 mkdir_p='mkdir -p --'
2390 # On NextStep and OpenStep, the `mkdir' command does not
2391 # recognize any option. It will interpret all options as
2392 # directories to create, and then abort because `.' already
2394 for d in ./-p ./--version;
2396 test -d $d && rmdir $d
2398 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2399 if test -f "$ac_aux_dir/mkinstalldirs"; then
2400 mkdir_p='$(mkinstalldirs)'
2402 mkdir_p='$(install_sh) -d'
2406 for ac_prog in gawk mawk nawk awk
2408 # Extract the first word of "$ac_prog", so it can be a program name with args.
2409 set dummy $ac_prog; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_AWK+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2415 if test -n "$AWK"; then
2416 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_AWK="$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 if test -n "$AWK"; then
2437 { echo "$as_me:$LINENO: result: $AWK" >&5
2438 echo "${ECHO_T}$AWK" >&6; }
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2445 test -n "$AWK" && break
2448 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2449 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2450 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2451 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 cat >conftest.make <<\_ACEOF
2457 @echo '@@@%%%=$(MAKE)=@@@%%%'
2459 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2460 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2462 eval ac_cv_prog_make_${ac_make}_set=yes;;
2464 eval ac_cv_prog_make_${ac_make}_set=no;;
2468 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2469 { echo "$as_me:$LINENO: result: yes" >&5
2470 echo "${ECHO_T}yes" >&6; }
2473 { echo "$as_me:$LINENO: result: no" >&5
2474 echo "${ECHO_T}no" >&6; }
2475 SET_MAKE="MAKE=${MAKE-make}"
2478 rm -rf .tst 2>/dev/null
2479 mkdir .tst 2>/dev/null
2480 if test -d .tst; then
2485 rmdir .tst 2>/dev/null
2487 # test to see if srcdir already configured
2488 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2489 test -f $srcdir/config.status; then
2490 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2491 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2492 { (exit 1); exit 1; }; }
2495 # test whether we have cygpath
2496 if test -z "$CYGPATH_W"; then
2497 if (cygpath --version) >/dev/null 2>/dev/null; then
2498 CYGPATH_W='cygpath -w'
2505 # Define the identity of the package.
2510 cat >>confdefs.h <<_ACEOF
2511 #define PACKAGE "$PACKAGE"
2515 cat >>confdefs.h <<_ACEOF
2516 #define VERSION "$VERSION"
2519 # Some tools Automake needs.
2521 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2524 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2527 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2530 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2533 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2535 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2537 # Installed binaries are usually stripped using `strip' when the user
2538 # run `make install-strip'. However `strip' might not be the right
2539 # tool to use in cross-compilation environments, therefore Automake
2540 # will honor the `STRIP' environment variable to overrule this program.
2541 if test "$cross_compiling" != no; then
2542 if test -n "$ac_tool_prefix"; then
2543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2544 set dummy ${ac_tool_prefix}strip; ac_word=$2
2545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2547 if test "${ac_cv_prog_STRIP+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$STRIP"; then
2551 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 STRIP=$ac_cv_prog_STRIP
2571 if test -n "$STRIP"; then
2572 { echo "$as_me:$LINENO: result: $STRIP" >&5
2573 echo "${ECHO_T}$STRIP" >&6; }
2575 { echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6; }
2581 if test -z "$ac_cv_prog_STRIP"; then
2583 # Extract the first word of "strip", so it can be a program name with args.
2584 set dummy strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$ac_ct_STRIP"; then
2591 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_ac_ct_STRIP="strip"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2611 if test -n "$ac_ct_STRIP"; then
2612 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2613 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2619 if test "x$ac_ct_STRIP" = x; then
2622 case $cross_compiling:$ac_tool_warned in
2624 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2625 whose name does not start with the host triplet. If you think this
2626 configuration is useful to you, please write to autoconf@gnu.org." >&5
2627 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2628 whose name does not start with the host triplet. If you think this
2629 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2630 ac_tool_warned=yes ;;
2635 STRIP="$ac_cv_prog_STRIP"
2639 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2641 # We need awk for the "check" target. The system "awk" is bad on
2643 # Always define AMTAR for backward compatibility.
2645 AMTAR=${AMTAR-"${am_missing_run}tar"}
2647 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2657 if test "$host_cpu" = "x86_64"; then
2658 { echo "$as_me:$LINENO: checking libdir for lib64 suffix" >&5
2659 echo $ECHO_N "checking libdir for lib64 suffix... $ECHO_C" >&6; }
2661 if test "$t" != 64 && test -d /lib64 && ! test -L /lib64; then
2663 { echo "$as_me:$LINENO: result: no. Setting libdir to $libdir" >&5
2664 echo "${ECHO_T}no. Setting libdir to $libdir" >&6; }
2666 { echo "$as_me:$LINENO: result: yes" >&5
2667 echo "${ECHO_T}yes" >&6; }
2670 DEPDIR="${am__leading_dot}deps"
2672 ac_config_commands="$ac_config_commands depfiles"
2675 am_make=${MAKE-make}
2676 cat > confinc << 'END'
2681 # If we don't find an include directive, just comment out the code.
2682 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2683 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2687 # First try GNU make style include.
2688 echo "include confinc" > confmf
2689 # We grep out `Entering directory' and `Leaving directory'
2690 # messages which can occur if `w' ends up in MAKEFLAGS.
2691 # In particular we don't look at `^make:' because GNU make might
2692 # be invoked under some other name (usually "gmake"), in which
2693 # case it prints its new name instead of `make'.
2694 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2699 # Now try BSD make style include.
2700 if test "$am__include" = "#"; then
2701 echo '.include "confinc"' > confmf
2702 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2703 am__include=.include
2710 { echo "$as_me:$LINENO: result: $_am_result" >&5
2711 echo "${ECHO_T}$_am_result" >&6; }
2712 rm -f confinc confmf
2714 # Check whether --enable-dependency-tracking was given.
2715 if test "${enable_dependency_tracking+set}" = set; then
2716 enableval=$enable_dependency_tracking;
2719 if test "x$enable_dependency_tracking" != xno; then
2720 am_depcomp="$ac_aux_dir/depcomp"
2725 if test "x$enable_dependency_tracking" != xno; then
2736 ac_cpp='$CPP $CPPFLAGS'
2737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2740 if test -n "$ac_tool_prefix"; then
2741 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2742 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2745 if test "${ac_cv_prog_CC+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 if test -n "$CC"; then
2749 ac_cv_prog_CC="$CC" # Let the user override the test.
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755 test -z "$as_dir" && as_dir=.
2756 for ac_exec_ext in '' $ac_executable_extensions; do
2757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2758 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 if test -n "$CC"; then
2770 { echo "$as_me:$LINENO: result: $CC" >&5
2771 echo "${ECHO_T}$CC" >&6; }
2773 { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2779 if test -z "$ac_cv_prog_CC"; then
2781 # Extract the first word of "gcc", so it can be a program name with args.
2782 set dummy gcc; ac_word=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$ac_ct_CC"; then
2789 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_ac_ct_CC="gcc"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2809 if test -n "$ac_ct_CC"; then
2810 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2811 echo "${ECHO_T}$ac_ct_CC" >&6; }
2813 { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2817 if test "x$ac_ct_CC" = x; then
2820 case $cross_compiling:$ac_tool_warned in
2822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2823 whose name does not start with the host triplet. If you think this
2824 configuration is useful to you, please write to autoconf@gnu.org." >&5
2825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2826 whose name does not start with the host triplet. If you think this
2827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2828 ac_tool_warned=yes ;;
2836 if test -z "$CC"; then
2837 if test -n "$ac_tool_prefix"; then
2838 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2839 set dummy ${ac_tool_prefix}cc; ac_word=$2
2840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then
2843 echo $ECHO_N "(cached) $ECHO_C" >&6
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC="${ac_tool_prefix}cc"
2856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 if test -n "$CC"; then
2867 { echo "$as_me:$LINENO: result: $CC" >&5
2868 echo "${ECHO_T}$CC" >&6; }
2870 { echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6; }
2877 if test -z "$CC"; then
2878 # Extract the first word of "cc", so it can be a program name with args.
2879 set dummy cc; ac_word=$2
2880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2897 ac_prog_rejected=yes
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 if test $ac_prog_rejected = yes; then
2909 # We found a bogon in the path, so make sure we never use it.
2910 set dummy $ac_cv_prog_CC
2912 if test $# != 0; then
2913 # We chose a different compiler from the bogus one.
2914 # However, it has the same basename, so the bogon will be chosen
2915 # first if we set CC to just the basename; use the full file name.
2917 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923 if test -n "$CC"; then
2924 { echo "$as_me:$LINENO: result: $CC" >&5
2925 echo "${ECHO_T}$CC" >&6; }
2927 { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2933 if test -z "$CC"; then
2934 if test -n "$ac_tool_prefix"; then
2935 for ac_prog in cl.exe
2937 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2941 if test "${ac_cv_prog_CC+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2965 if test -n "$CC"; then
2966 { echo "$as_me:$LINENO: result: $CC" >&5
2967 echo "${ECHO_T}$CC" >&6; }
2969 { echo "$as_me:$LINENO: result: no" >&5
2970 echo "${ECHO_T}no" >&6; }
2974 test -n "$CC" && break
2977 if test -z "$CC"; then
2979 for ac_prog in cl.exe
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2985 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 if test -n "$ac_ct_CC"; then
2989 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998 ac_cv_prog_ac_ct_CC="$ac_prog"
2999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009 if test -n "$ac_ct_CC"; then
3010 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3011 echo "${ECHO_T}$ac_ct_CC" >&6; }
3013 { echo "$as_me:$LINENO: result: no" >&5
3014 echo "${ECHO_T}no" >&6; }
3018 test -n "$ac_ct_CC" && break
3021 if test "x$ac_ct_CC" = x; then
3024 case $cross_compiling:$ac_tool_warned in
3026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3027 whose name does not start with the host triplet. If you think this
3028 configuration is useful to you, please write to autoconf@gnu.org." >&5
3029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3030 whose name does not start with the host triplet. If you think this
3031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3032 ac_tool_warned=yes ;;
3041 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&5
3043 echo "$as_me: error: no acceptable C compiler found in \$PATH
3044 See \`config.log' for more details." >&2;}
3045 { (exit 1); exit 1; }; }
3047 # Provide some information about the compiler.
3048 echo "$as_me:$LINENO: checking for C compiler version" >&5
3049 ac_compiler=`set X $ac_compile; echo $2`
3050 { (ac_try="$ac_compiler --version >&5"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056 (eval "$ac_compiler --version >&5") 2>&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); }
3060 { (ac_try="$ac_compiler -v >&5"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compiler -v >&5") 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (ac_try="$ac_compiler -V >&5"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compiler -V >&5") 2>&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3096 ac_clean_files_save=$ac_clean_files
3097 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3098 # Try to create an executable without -o first, disregard a.out.
3099 # It will help us diagnose broken compilers, and finding out an intuition
3101 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3102 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3103 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105 # List of possible output files, starting from the most likely.
3106 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3107 # only as a last resort. b.out is created by i960 compilers.
3108 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3110 # The IRIX 6 linker writes into existing files which may not be
3111 # executable, retaining their permissions. Remove them first so a
3112 # subsequent execution test works.
3114 for ac_file in $ac_files
3117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3118 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3123 if { (ac_try="$ac_link_default"
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_link_default") 2>&5
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; then
3133 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3134 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3135 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3136 # so that the user can short-circuit this test for compilers unknown to
3138 for ac_file in $ac_files ''
3140 test -f "$ac_file" || continue
3142 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3145 # We found the default executable, but exeext='' is most
3149 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3151 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3153 # We set ac_cv_exeext here because the later test for it is not
3154 # safe: cross compilers may not add the suffix if given an `-o'
3155 # argument, so we may need to know it at that point already.
3156 # Even if this section looks crufty: it has the advantage of
3163 test "$ac_cv_exeext" = no && ac_cv_exeext=
3169 { echo "$as_me:$LINENO: result: $ac_file" >&5
3170 echo "${ECHO_T}$ac_file" >&6; }
3171 if test -z "$ac_file"; then
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3175 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: C compiler cannot create executables
3178 See \`config.log' for more details." >&2;}
3179 { (exit 77); exit 77; }; }
3182 ac_exeext=$ac_cv_exeext
3184 # Check that the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3187 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3188 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3189 # If not cross compiling, check that we can run a simple program.
3190 if test "$cross_compiling" != yes; then
3191 if { ac_try='./$ac_file'
3192 { (case "(($ac_try" in
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_try") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3203 if test "$cross_compiling" = maybe; then
3206 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3207 If you meant to cross compile, use \`--host'.
3208 See \`config.log' for more details." >&5
3209 echo "$as_me: error: cannot run C compiled programs.
3210 If you meant to cross compile, use \`--host'.
3211 See \`config.log' for more details." >&2;}
3212 { (exit 1); exit 1; }; }
3216 { echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6; }
3219 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3220 ac_clean_files=$ac_clean_files_save
3221 # Check that the compiler produces executables we can run. If not, either
3222 # the compiler is broken, or we cross compile.
3223 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3224 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3225 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3226 echo "${ECHO_T}$cross_compiling" >&6; }
3228 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3229 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3230 if { (ac_try="$ac_link"
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236 (eval "$ac_link") 2>&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); }; then
3240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3242 # work properly (i.e., refer to `conftest.exe'), while it won't with
3244 for ac_file in conftest.exe conftest conftest.*; do
3245 test -f "$ac_file" || continue
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&5
3256 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details." >&2;}
3258 { (exit 1); exit 1; }; }
3261 rm -f conftest$ac_cv_exeext
3262 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3263 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3265 rm -f conftest.$ac_ext
3266 EXEEXT=$ac_cv_exeext
3268 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3269 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3270 if test "${ac_cv_objext+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3288 rm -f conftest.o conftest.obj
3289 if { (ac_try="$ac_compile"
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295 (eval "$ac_compile") 2>&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); }; then
3299 for ac_file in conftest.o conftest.obj conftest.*; do
3300 test -f "$ac_file" || continue;
3302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details." >&5
3313 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3314 See \`config.log' for more details." >&2;}
3315 { (exit 1); exit 1; }; }
3318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3320 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3321 echo "${ECHO_T}$ac_cv_objext" >&6; }
3322 OBJEXT=$ac_cv_objext
3324 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3325 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3326 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3329 cat >conftest.$ac_ext <<_ACEOF
3332 cat confdefs.h >>conftest.$ac_ext
3333 cat >>conftest.$ac_ext <<_ACEOF
3334 /* end confdefs.h. */
3347 rm -f conftest.$ac_objext
3348 if { (ac_try="$ac_compile"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_compile") 2>conftest.er1
3356 grep -v '^ *+' conftest.er1 >conftest.err
3358 cat conftest.err >&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } && {
3361 test -z "$ac_c_werror_flag" ||
3362 test ! -s conftest.err
3363 } && test -s conftest.$ac_objext; then
3366 echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3376 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3377 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3378 GCC=`test $ac_compiler_gnu = yes && echo yes`
3379 ac_test_CFLAGS=${CFLAGS+set}
3380 ac_save_CFLAGS=$CFLAGS
3381 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3382 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_cc_g+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_save_c_werror_flag=$ac_c_werror_flag
3387 ac_c_werror_flag=yes
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3405 rm -f conftest.$ac_objext
3406 if { (ac_try="$ac_compile"
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_compile") 2>conftest.er1
3414 grep -v '^ *+' conftest.er1 >conftest.err
3416 cat conftest.err >&5
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); } && {
3419 test -z "$ac_c_werror_flag" ||
3420 test ! -s conftest.err
3421 } && test -s conftest.$ac_objext; then
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 ac_c_werror_flag=$ac_save_c_werror_flag
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3482 rm -f conftest.$ac_objext
3483 if { (ac_try="$ac_compile"
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_compile") 2>conftest.er1
3491 grep -v '^ *+' conftest.er1 >conftest.err
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && {
3496 test -z "$ac_c_werror_flag" ||
3497 test ! -s conftest.err
3498 } && test -s conftest.$ac_objext; then
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_c_werror_flag=$ac_save_c_werror_flag
3516 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3517 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3518 if test "$ac_test_CFLAGS" = set; then
3519 CFLAGS=$ac_save_CFLAGS
3520 elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3527 if test "$GCC" = yes; then
3533 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3534 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_cc_c89+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_cv_prog_cc_c89=no
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3548 #include <sys/types.h>
3549 #include <sys/stat.h>
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3564 s = g (p, va_arg (v,int));
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3570 function prototypes and stuff, but not '\xHH' hex character constants.
3571 These don't provoke an error unfortunately, instead are silently treated
3572 as 'x'. The following induces an error, until -std is added to get
3573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3574 array size at least. It's necessary to write '\x00'==0 to get something
3575 that's true only with -std. */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579 inside strings and character constants. */
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 CC="$ac_save_CC $ac_arg"
3601 rm -f conftest.$ac_objext
3602 if { (ac_try="$ac_compile"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compile") 2>conftest.er1
3610 grep -v '^ *+' conftest.er1 >conftest.err
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614 (exit $ac_status); } && {
3615 test -z "$ac_c_werror_flag" ||
3616 test ! -s conftest.err
3617 } && test -s conftest.$ac_objext; then
3618 ac_cv_prog_cc_c89=$ac_arg
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3626 rm -f core conftest.err conftest.$ac_objext
3627 test "x$ac_cv_prog_cc_c89" != "xno" && break
3629 rm -f conftest.$ac_ext
3634 case "x$ac_cv_prog_cc_c89" in
3636 { echo "$as_me:$LINENO: result: none needed" >&5
3637 echo "${ECHO_T}none needed" >&6; } ;;
3639 { echo "$as_me:$LINENO: result: unsupported" >&5
3640 echo "${ECHO_T}unsupported" >&6; } ;;
3642 CC="$CC $ac_cv_prog_cc_c89"
3643 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3644 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 depcc="$CC" am_compiler_list=
3656 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3657 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3658 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3662 # We make a subdir and do the tests there. Otherwise we can end up
3663 # making bogus files that we don't know about and never remove. For
3664 # instance it was reported that on HP-UX the gcc test will end up
3665 # making a dummy file named `D' -- because `-MD' means `put the output
3668 # Copy depcomp to subdir because otherwise we won't find it if we're
3669 # using a relative directory.
3670 cp "$am_depcomp" conftest.dir
3672 # We will build objects and dependencies in a subdirectory because
3673 # it helps to detect inapplicable dependency modes. For instance
3674 # both Tru64's cc and ICC support -MD to output dependencies as a
3675 # side effect of compilation, but ICC will put the dependencies in
3676 # the current directory while Tru64 will put them in the object
3680 am_cv_CC_dependencies_compiler_type=none
3681 if test "$am_compiler_list" = ""; then
3682 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3684 for depmode in $am_compiler_list; do
3685 # Setup a source with many dependencies, because some compilers
3686 # like to wrap large dependency lists on column 80 (with \), and
3687 # we should not choose a depcomp mode which is confused by this.
3689 # We need to recreate these files for each test, as the compiler may
3690 # overwrite some of them when testing with obscure command lines.
3691 # This happens at least with the AIX C compiler.
3693 for i in 1 2 3 4 5 6; do
3694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3695 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3696 # Solaris 8's {/usr,}/bin/sh.
3697 touch sub/conftst$i.h
3699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3703 # after this tag, mechanisms are not by side-effect, so they'll
3704 # only be used when explicitly requested
3705 if test "x$enable_dependency_tracking" = xyes; then
3713 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3714 # mode. It turns out that the SunPro C++ compiler does not properly
3715 # handle `-M -o', and we need to detect this.
3716 if depmode=$depmode \
3717 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3718 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3719 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3720 >/dev/null 2>conftest.err &&
3721 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3722 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3723 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3724 # icc doesn't choke on unknown options, it will just issue warnings
3725 # or remarks (even with -Werror). So we grep stderr for any message
3726 # that says an option was ignored or not supported.
3727 # When given -MP, icc 7.0 and 7.1 complain thusly:
3728 # icc: Command line warning: ignoring option '-M'; no argument required
3729 # The diagnosis changed in icc 8.0:
3730 # icc: Command line remark: option '-MP' not supported
3731 if (grep 'ignoring option' conftest.err ||
3732 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3733 am_cv_CC_dependencies_compiler_type=$depmode
3742 am_cv_CC_dependencies_compiler_type=none
3746 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3747 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3748 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3753 test "x$enable_dependency_tracking" != xno \
3754 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3756 am__fastdepCC_FALSE='#'
3758 am__fastdepCC_TRUE='#'
3759 am__fastdepCC_FALSE=
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3774 if test -z "$CPP"; then
3775 if test "${ac_cv_prog_CPP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3797 # include <limits.h>
3799 # include <assert.h>
3803 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Broken: fails on valid input.
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3848 grep -v '^ *+' conftest.er1 >conftest.err
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } >/dev/null && {
3853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3856 # Broken: success on invalid input.
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 # Passes both tests.
3867 rm -f conftest.err conftest.$ac_ext
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.$ac_ext
3872 if $ac_preproc_ok; then
3884 { echo "$as_me:$LINENO: result: $CPP" >&5
3885 echo "${ECHO_T}$CPP" >&6; }
3887 for ac_c_preproc_warn_flag in '' yes
3889 # Use a header file that comes with gcc, so configuring glibc
3890 # with a fresh cross-compiler works.
3891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3892 # <limits.h> exists even on freestanding compilers.
3893 # On the NeXT, cc -E runs the code through the compiler's parser,
3894 # not just through cpp. "Syntax error" is here to catch this case.
3895 cat >conftest.$ac_ext <<_ACEOF
3898 cat confdefs.h >>conftest.$ac_ext
3899 cat >>conftest.$ac_ext <<_ACEOF
3900 /* end confdefs.h. */
3902 # include <limits.h>
3904 # include <assert.h>
3908 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null && {
3921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 # Broken: fails on valid input.
3933 rm -f conftest.err conftest.$ac_ext
3935 # OK, works on sane cases. Now check whether nonexistent headers
3936 # can be detected and how.
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <ac_nonexistent.h>
3945 if { (ac_try="$ac_cpp conftest.$ac_ext"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } >/dev/null && {
3958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3961 # Broken: success on invalid input.
3964 echo "$as_me: failed program was:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 # Passes both tests.
3972 rm -f conftest.err conftest.$ac_ext
3975 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3976 rm -f conftest.err conftest.$ac_ext
3977 if $ac_preproc_ok; then
3980 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." >&5
3982 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3983 See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; }
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3996 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3997 if test "${ac_cv_path_GREP+set}" = set; then
3998 echo $ECHO_N "(cached) $ECHO_C" >&6
4000 # Extract the first word of "grep ggrep" to use in msg output
4001 if test -z "$GREP"; then
4002 set dummy grep ggrep; ac_prog_name=$2
4003 if test "${ac_cv_path_GREP+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 ac_path_GREP_found=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4012 test -z "$as_dir" && as_dir=.
4013 for ac_prog in grep ggrep; do
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4016 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4017 # Check for GNU ac_path_GREP and select it if it is found.
4018 # Check for GNU $ac_path_GREP
4019 case `"$ac_path_GREP" --version 2>&1` in
4021 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4024 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
4030 echo 'GREP' >> "conftest.nl"
4031 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033 ac_count=`expr $ac_count + 1`
4034 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_GREP="$ac_path_GREP"
4037 ac_path_GREP_max=$ac_count
4039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046 $ac_path_GREP_found && break 3
4056 GREP="$ac_cv_path_GREP"
4057 if test -z "$GREP"; then
4058 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4059 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4060 { (exit 1); exit 1; }; }
4064 ac_cv_path_GREP=$GREP
4069 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4070 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4071 GREP="$ac_cv_path_GREP"
4074 { echo "$as_me:$LINENO: checking for egrep" >&5
4075 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4076 if test "${ac_cv_path_EGREP+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4080 then ac_cv_path_EGREP="$GREP -E"
4082 # Extract the first word of "egrep" to use in msg output
4083 if test -z "$EGREP"; then
4084 set dummy egrep; ac_prog_name=$2
4085 if test "${ac_cv_path_EGREP+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 ac_path_EGREP_found=false
4089 # Loop through the user's path and test for each of PROGNAME-LIST
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4094 test -z "$as_dir" && as_dir=.
4095 for ac_prog in egrep; do
4096 for ac_exec_ext in '' $ac_executable_extensions; do
4097 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4098 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4099 # Check for GNU ac_path_EGREP and select it if it is found.
4100 # Check for GNU $ac_path_EGREP
4101 case `"$ac_path_EGREP" --version 2>&1` in
4103 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4106 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4109 cat "conftest.in" "conftest.in" >"conftest.tmp"
4110 mv "conftest.tmp" "conftest.in"
4111 cp "conftest.in" "conftest.nl"
4112 echo 'EGREP' >> "conftest.nl"
4113 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4114 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4115 ac_count=`expr $ac_count + 1`
4116 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4117 # Best one so far, save it but keep looking for a better one
4118 ac_cv_path_EGREP="$ac_path_EGREP"
4119 ac_path_EGREP_max=$ac_count
4121 # 10*(2^10) chars as input seems more than enough
4122 test $ac_count -gt 10 && break
4124 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4128 $ac_path_EGREP_found && break 3
4138 EGREP="$ac_cv_path_EGREP"
4139 if test -z "$EGREP"; then
4140 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4141 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4142 { (exit 1); exit 1; }; }
4146 ac_cv_path_EGREP=$EGREP
4152 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4153 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4154 EGREP="$ac_cv_path_EGREP"
4158 { echo "$as_me:$LINENO: checking for AIX" >&5
4159 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4172 $EGREP "yes" >/dev/null 2>&1; then
4173 { echo "$as_me:$LINENO: result: yes" >&5
4174 echo "${ECHO_T}yes" >&6; }
4175 cat >>confdefs.h <<\_ACEOF
4176 #define _ALL_SOURCE 1
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4186 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4187 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4188 if test "${ac_cv_search_strerror+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 ac_func_search_save_LIBS=$LIBS
4192 cat >conftest.$ac_ext <<_ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4199 /* Override any GCC internal prototype to avoid an error.
4200 Use char because int might match the return type of a GCC
4201 builtin and then its argument prototype would still apply. */
4214 for ac_lib in '' cposix; do
4215 if test -z "$ac_lib"; then
4216 ac_res="none required"
4219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_link") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest$ac_exeext &&
4238 $as_test_x conftest$ac_exeext; then
4239 ac_cv_search_strerror=$ac_res
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4249 if test "${ac_cv_search_strerror+set}" = set; then
4253 if test "${ac_cv_search_strerror+set}" = set; then
4256 ac_cv_search_strerror=no
4259 LIBS=$ac_func_search_save_LIBS
4261 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4262 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4263 ac_res=$ac_cv_search_strerror
4264 if test "$ac_res" != no; then
4265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4269 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4270 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4271 if test "${ac_cv_header_stdc+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4293 rm -f conftest.$ac_objext
4294 if { (ac_try="$ac_compile"
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_compile") 2>conftest.er1
4302 grep -v '^ *+' conftest.er1 >conftest.err
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); } && {
4307 test -z "$ac_c_werror_flag" ||
4308 test ! -s conftest.err
4309 } && test -s conftest.$ac_objext; then
4310 ac_cv_header_stdc=yes
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4315 ac_cv_header_stdc=no
4318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320 if test $ac_cv_header_stdc = yes; then
4321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "memchr" >/dev/null 2>&1; then
4335 ac_cv_header_stdc=no
4341 if test $ac_cv_header_stdc = yes; then
4342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4353 $EGREP "free" >/dev/null 2>&1; then
4356 ac_cv_header_stdc=no
4362 if test $ac_cv_header_stdc = yes; then
4363 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4364 if test "$cross_compiling" = yes; then
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4375 #if ((' ' & 0x0FF) == 0x020)
4376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4379 # define ISLOWER(c) \
4380 (('a' <= (c) && (c) <= 'i') \
4381 || ('j' <= (c) && (c) <= 'r') \
4382 || ('s' <= (c) && (c) <= 'z'))
4383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4391 for (i = 0; i < 256; i++)
4392 if (XOR (islower (i), ISLOWER (i))
4393 || toupper (i) != TOUPPER (i))
4398 rm -f conftest$ac_exeext
4399 if { (ac_try="$ac_link"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_link") 2>&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4409 { (case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4414 (eval "$ac_try") 2>&5
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4420 echo "$as_me: program exited with status $ac_status" >&5
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4425 ac_cv_header_stdc=no
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4433 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4434 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4437 cat >>confdefs.h <<\_ACEOF
4438 #define STDC_HEADERS 1
4443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4453 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4454 inttypes.h stdint.h unistd.h
4456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 cat >conftest.$ac_ext <<_ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 $ac_includes_default
4470 #include <$ac_header>
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_compile") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && {
4486 test -z "$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4488 } && test -s conftest.$ac_objext; then
4489 eval "$as_ac_Header=yes"
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 eval "$as_ac_Header=no"
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_res=`eval echo '${'$as_ac_Header'}'`
4500 { echo "$as_me:$LINENO: result: $ac_res" >&5
4501 echo "${ECHO_T}$ac_res" >&6; }
4502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4503 cat >>confdefs.h <<_ACEOF
4504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4512 if test "${ac_cv_header_minix_config_h+set}" = set; then
4513 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4514 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4515 if test "${ac_cv_header_minix_config_h+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4519 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4521 # Is the header compilable?
4522 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4523 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4524 cat >conftest.$ac_ext <<_ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 #include <minix/config.h>
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_compile") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest.$ac_objext; then
4550 ac_header_compiler=yes
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_header_compiler=no
4558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4560 echo "${ECHO_T}$ac_header_compiler" >&6; }
4562 # Is the header present?
4563 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4564 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <minix/config.h>
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4589 ac_header_preproc=yes
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 ac_header_preproc=no
4597 rm -f conftest.err conftest.$ac_ext
4598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4599 echo "${ECHO_T}$ac_header_preproc" >&6; }
4601 # So? What about this header?
4602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4604 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4605 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4607 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4608 ac_header_preproc=yes
4611 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4612 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4613 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4614 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4615 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4616 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4617 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4618 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4619 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4620 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4621 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4622 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4626 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4627 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4628 if test "${ac_cv_header_minix_config_h+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 ac_cv_header_minix_config_h=$ac_header_preproc
4633 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4634 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4637 if test $ac_cv_header_minix_config_h = yes; then
4644 if test "$MINIX" = yes; then
4646 cat >>confdefs.h <<\_ACEOF
4647 #define _POSIX_SOURCE 1
4651 cat >>confdefs.h <<\_ACEOF
4652 #define _POSIX_1_SOURCE 2
4656 cat >>confdefs.h <<\_ACEOF
4665 ac_cpp='$CXXCPP $CPPFLAGS'
4666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4669 if test -z "$CXX"; then
4670 if test -n "$CCC"; then
4673 if test -n "$ac_tool_prefix"; then
4674 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4677 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4680 if test "${ac_cv_prog_CXX+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4683 if test -n "$CXX"; then
4684 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 if test -n "$CXX"; then
4705 { echo "$as_me:$LINENO: result: $CXX" >&5
4706 echo "${ECHO_T}$CXX" >&6; }
4708 { echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6; }
4713 test -n "$CXX" && break
4716 if test -z "$CXX"; then
4718 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4720 # Extract the first word of "$ac_prog", so it can be a program name with args.
4721 set dummy $ac_prog; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 if test -n "$ac_ct_CXX"; then
4728 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_CXX="$ac_prog"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4748 if test -n "$ac_ct_CXX"; then
4749 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4750 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4757 test -n "$ac_ct_CXX" && break
4760 if test "x$ac_ct_CXX" = x; then
4763 case $cross_compiling:$ac_tool_warned in
4765 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4766 whose name does not start with the host triplet. If you think this
4767 configuration is useful to you, please write to autoconf@gnu.org." >&5
4768 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4769 whose name does not start with the host triplet. If you think this
4770 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4771 ac_tool_warned=yes ;;
4779 # Provide some information about the compiler.
4780 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4781 ac_compiler=`set X $ac_compile; echo $2`
4782 { (ac_try="$ac_compiler --version >&5"
4784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_compiler --version >&5") 2>&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }
4792 { (ac_try="$ac_compiler -v >&5"
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compiler -v >&5") 2>&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }
4802 { (ac_try="$ac_compiler -V >&5"
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_compiler -V >&5") 2>&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }
4813 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4814 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4815 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 cat >conftest.$ac_ext <<_ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4836 rm -f conftest.$ac_objext
4837 if { (ac_try="$ac_compile"
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_compile") 2>conftest.er1
4845 grep -v '^ *+' conftest.er1 >conftest.err
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && {
4850 test -z "$ac_cxx_werror_flag" ||
4851 test ! -s conftest.err
4852 } && test -s conftest.$ac_objext; then
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4865 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4866 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4867 GXX=`test $ac_compiler_gnu = yes && echo yes`
4868 ac_test_CXXFLAGS=${CXXFLAGS+set}
4869 ac_save_CXXFLAGS=$CXXFLAGS
4870 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4871 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4872 if test "${ac_cv_prog_cxx_g+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4875 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4876 ac_cxx_werror_flag=yes
4879 cat >conftest.$ac_ext <<_ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4894 rm -f conftest.$ac_objext
4895 if { (ac_try="$ac_compile"
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4901 (eval "$ac_compile") 2>conftest.er1
4903 grep -v '^ *+' conftest.er1 >conftest.err
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } && {
4908 test -z "$ac_cxx_werror_flag" ||
4909 test ! -s conftest.err
4910 } && test -s conftest.$ac_objext; then
4911 ac_cv_prog_cxx_g=yes
4913 echo "$as_me: failed program was:" >&5
4914 sed 's/^/| /' conftest.$ac_ext >&5
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4941 grep -v '^ *+' conftest.er1 >conftest.err
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_cxx_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4951 echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4954 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4956 cat >conftest.$ac_ext <<_ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h. */
4971 rm -f conftest.$ac_objext
4972 if { (ac_try="$ac_compile"
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_compile") 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } && {
4985 test -z "$ac_cxx_werror_flag" ||
4986 test ! -s conftest.err
4987 } && test -s conftest.$ac_objext; then
4988 ac_cv_prog_cxx_g=yes
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5006 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5007 if test "$ac_test_CXXFLAGS" = set; then
5008 CXXFLAGS=$ac_save_CXXFLAGS
5009 elif test $ac_cv_prog_cxx_g = yes; then
5010 if test "$GXX" = yes; then
5016 if test "$GXX" = yes; then
5023 ac_cpp='$CPP $CPPFLAGS'
5024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028 depcc="$CXX" am_compiler_list=
5030 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5031 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5032 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5036 # We make a subdir and do the tests there. Otherwise we can end up
5037 # making bogus files that we don't know about and never remove. For
5038 # instance it was reported that on HP-UX the gcc test will end up
5039 # making a dummy file named `D' -- because `-MD' means `put the output
5042 # Copy depcomp to subdir because otherwise we won't find it if we're
5043 # using a relative directory.
5044 cp "$am_depcomp" conftest.dir
5046 # We will build objects and dependencies in a subdirectory because
5047 # it helps to detect inapplicable dependency modes. For instance
5048 # both Tru64's cc and ICC support -MD to output dependencies as a
5049 # side effect of compilation, but ICC will put the dependencies in
5050 # the current directory while Tru64 will put them in the object
5054 am_cv_CXX_dependencies_compiler_type=none
5055 if test "$am_compiler_list" = ""; then
5056 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5058 for depmode in $am_compiler_list; do
5059 # Setup a source with many dependencies, because some compilers
5060 # like to wrap large dependency lists on column 80 (with \), and
5061 # we should not choose a depcomp mode which is confused by this.
5063 # We need to recreate these files for each test, as the compiler may
5064 # overwrite some of them when testing with obscure command lines.
5065 # This happens at least with the AIX C compiler.
5067 for i in 1 2 3 4 5 6; do
5068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5069 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5070 # Solaris 8's {/usr,}/bin/sh.
5071 touch sub/conftst$i.h
5073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5077 # after this tag, mechanisms are not by side-effect, so they'll
5078 # only be used when explicitly requested
5079 if test "x$enable_dependency_tracking" = xyes; then
5087 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5088 # mode. It turns out that the SunPro C++ compiler does not properly
5089 # handle `-M -o', and we need to detect this.
5090 if depmode=$depmode \
5091 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5093 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5094 >/dev/null 2>conftest.err &&
5095 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5096 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5097 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5098 # icc doesn't choke on unknown options, it will just issue warnings
5099 # or remarks (even with -Werror). So we grep stderr for any message
5100 # that says an option was ignored or not supported.
5101 # When given -MP, icc 7.0 and 7.1 complain thusly:
5102 # icc: Command line warning: ignoring option '-M'; no argument required
5103 # The diagnosis changed in icc 8.0:
5104 # icc: Command line remark: option '-MP' not supported
5105 if (grep 'ignoring option' conftest.err ||
5106 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5107 am_cv_CXX_dependencies_compiler_type=$depmode
5116 am_cv_CXX_dependencies_compiler_type=none
5120 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5121 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5122 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5127 test "x$enable_dependency_tracking" != xno \
5128 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5129 am__fastdepCXX_TRUE=
5130 am__fastdepCXX_FALSE='#'
5132 am__fastdepCXX_TRUE='#'
5133 am__fastdepCXX_FALSE=
5138 ac_cpp='$CXXCPP $CPPFLAGS'
5139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5142 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5143 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5144 if test -z "$CXXCPP"; then
5145 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 # Double quotes because CXXCPP needs to be expanded
5149 for CXXCPP in "$CXX -E" "/lib/cpp"
5152 for ac_cxx_preproc_warn_flag in '' yes
5154 # Use a header file that comes with gcc, so configuring glibc
5155 # with a fresh cross-compiler works.
5156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5157 # <limits.h> exists even on freestanding compilers.
5158 # On the NeXT, cc -E runs the code through the compiler's parser,
5159 # not just through cpp. "Syntax error" is here to catch this case.
5160 cat >conftest.$ac_ext <<_ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5167 # include <limits.h>
5169 # include <assert.h>
5173 if { (ac_try="$ac_cpp conftest.$ac_ext"
5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181 grep -v '^ *+' conftest.er1 >conftest.err
5183 cat conftest.err >&5
5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185 (exit $ac_status); } >/dev/null && {
5186 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5187 test ! -s conftest.err
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5194 # Broken: fails on valid input.
5198 rm -f conftest.err conftest.$ac_ext
5200 # OK, works on sane cases. Now check whether nonexistent headers
5201 # can be detected and how.
5202 cat >conftest.$ac_ext <<_ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5208 #include <ac_nonexistent.h>
5210 if { (ac_try="$ac_cpp conftest.$ac_ext"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5218 grep -v '^ *+' conftest.er1 >conftest.err
5220 cat conftest.err >&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null && {
5223 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5224 test ! -s conftest.err
5226 # Broken: success on invalid input.
5229 echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5232 # Passes both tests.
5237 rm -f conftest.err conftest.$ac_ext
5240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5241 rm -f conftest.err conftest.$ac_ext
5242 if $ac_preproc_ok; then
5247 ac_cv_prog_CXXCPP=$CXXCPP
5250 CXXCPP=$ac_cv_prog_CXXCPP
5252 ac_cv_prog_CXXCPP=$CXXCPP
5254 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5255 echo "${ECHO_T}$CXXCPP" >&6; }
5257 for ac_cxx_preproc_warn_flag in '' yes
5259 # Use a header file that comes with gcc, so configuring glibc
5260 # with a fresh cross-compiler works.
5261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5262 # <limits.h> exists even on freestanding compilers.
5263 # On the NeXT, cc -E runs the code through the compiler's parser,
5264 # not just through cpp. "Syntax error" is here to catch this case.
5265 cat >conftest.$ac_ext <<_ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5272 # include <limits.h>
5274 # include <assert.h>
5278 if { (ac_try="$ac_cpp conftest.$ac_ext"
5280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5281 *) ac_try_echo=$ac_try;;
5283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5286 grep -v '^ *+' conftest.er1 >conftest.err
5288 cat conftest.err >&5
5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5290 (exit $ac_status); } >/dev/null && {
5291 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5292 test ! -s conftest.err
5296 echo "$as_me: failed program was:" >&5
5297 sed 's/^/| /' conftest.$ac_ext >&5
5299 # Broken: fails on valid input.
5303 rm -f conftest.err conftest.$ac_ext
5305 # OK, works on sane cases. Now check whether nonexistent headers
5306 # can be detected and how.
5307 cat >conftest.$ac_ext <<_ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 #include <ac_nonexistent.h>
5315 if { (ac_try="$ac_cpp conftest.$ac_ext"
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5323 grep -v '^ *+' conftest.er1 >conftest.err
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } >/dev/null && {
5328 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5329 test ! -s conftest.err
5331 # Broken: success on invalid input.
5334 echo "$as_me: failed program was:" >&5
5335 sed 's/^/| /' conftest.$ac_ext >&5
5337 # Passes both tests.
5342 rm -f conftest.err conftest.$ac_ext
5345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5346 rm -f conftest.err conftest.$ac_ext
5347 if $ac_preproc_ok; then
5350 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5351 See \`config.log' for more details." >&5
5352 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5353 See \`config.log' for more details." >&2;}
5354 { (exit 1); exit 1; }; }
5358 ac_cpp='$CPP $CPPFLAGS'
5359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5370 ac_cpp='$CXXCPP $CPPFLAGS'
5371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5376 { echo "$as_me:$LINENO: checking whether C++ has bool" >&5
5377 echo $ECHO_N "checking whether C++ has bool... $ECHO_C" >&6; }
5378 if test "$cross_compiling" = yes; then
5379 { echo "$as_me:$LINENO: WARNING: Don't cross-compile" >&5
5380 echo "$as_me: WARNING: Don't cross-compile" >&2;}
5383 cat >conftest.$ac_ext <<_ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 main() { bool b1=true; bool b2=false; }
5391 rm -f conftest$ac_exeext
5392 if { (ac_try="$ac_link"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_link") 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5402 { (case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_try") 2>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 { echo "$as_me:$LINENO: result: yes" >&5
5412 echo "${ECHO_T}yes" >&6; }
5414 echo "$as_me: program exited with status $ac_status" >&5
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5419 { echo "$as_me:$LINENO: result: no" >&5
5420 echo "${ECHO_T}no" >&6; }
5422 cat >>confdefs.h <<\_ACEOF
5423 #define CXX_HAS_NO_BOOL
5427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5432 { echo "$as_me:$LINENO: checking whether C++ has buggy scoping in for-loops" >&5
5433 echo $ECHO_N "checking whether C++ has buggy scoping in for-loops... $ECHO_C" >&6; }
5434 cat >conftest.$ac_ext <<_ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 #include <iostream.h>
5445 for (int i=0;i<10;i++) { }
5446 for (int i=0;i<10;i++) { }
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compile") 2>conftest.er1
5461 grep -v '^ *+' conftest.er1 >conftest.err
5463 cat conftest.err >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); } && {
5466 test -z "$ac_cxx_werror_flag" ||
5467 test ! -s conftest.err
5468 } && test -s conftest.$ac_objext; then
5469 { echo "$as_me:$LINENO: result: no" >&5
5470 echo "${ECHO_T}no" >&6; }
5472 echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 { echo "$as_me:$LINENO: result: yes" >&5
5476 echo "${ECHO_T}yes" >&6; }
5478 cat >>confdefs.h <<\_ACEOF
5479 #define CXX_HAS_BUGGY_FOR_LOOPS
5484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 { echo "$as_me:$LINENO: checking whether user wants assertions" >&5
5487 echo $ECHO_N "checking whether user wants assertions... $ECHO_C" >&6; }
5488 # Check whether --enable-assert was given.
5489 if test "${enable_assert+set}" = set; then
5490 enableval=$enable_assert;
5491 cat >>confdefs.h <<\_ACEOF
5495 { echo "$as_me:$LINENO: result: no" >&5
5496 echo "${ECHO_T}no" >&6; }
5498 { echo "$as_me:$LINENO: result: yes" >&5
5499 echo "${ECHO_T}yes" >&6; }
5503 { echo "$as_me:$LINENO: checking whether C++ has std::isnan" >&5
5504 echo $ECHO_N "checking whether C++ has std::isnan... $ECHO_C" >&6; }
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && {
5536 test -z "$ac_cxx_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
5539 { echo "$as_me:$LINENO: result: yes" >&5
5540 echo "${ECHO_T}yes" >&6; }
5542 cat >>confdefs.h <<\_ACEOF
5543 #define CXX_HAS_STD_ISNAN
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 { echo "$as_me:$LINENO: result: no" >&5
5551 echo "${ECHO_T}no" >&6; }
5554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 ac_cpp='$CPP $CPPFLAGS'
5558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565 { echo "$as_me:$LINENO: checking whether user wants warnings" >&5
5566 echo $ECHO_N "checking whether user wants warnings... $ECHO_C" >&6; }
5568 # Check whether --with-warnings was given.
5569 if test "${with_warnings+set}" = set; then
5570 withval=$with_warnings; lf_warnings=yes
5575 lf_warnings=yes # hard code for now -eb
5576 { echo "$as_me:$LINENO: result: $lf_warnings" >&5
5577 echo "${ECHO_T}$lf_warnings" >&6; }
5579 cc_warning_flags="-Wall"
5580 cxx_warning_flags="-Wall -Woverloaded-virtual"
5581 if test $lf_warnings = yes
5586 echo 'void f(){}' > conftest.c
5587 for i in $cc_warning_flags
5589 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5590 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5591 if test -z "`${CC} $i -c conftest.c 2>&1`"
5593 CFLAGS="${CFLAGS} $i"
5594 { echo "$as_me:$LINENO: result: yes" >&5
5595 echo "${ECHO_T}yes" >&6; }
5597 { echo "$as_me:$LINENO: result: no" >&5
5598 echo "${ECHO_T}no" >&6; }
5601 rm -f conftest.c conftest.o
5607 echo 'void f(){}' > conftest.cc
5608 for i in $cxx_warning_flags
5610 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5611 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5612 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5614 CXXFLAGS="${CXXFLAGS} $i"
5615 { echo "$as_me:$LINENO: result: yes" >&5
5616 echo "${ECHO_T}yes" >&6; }
5618 { echo "$as_me:$LINENO: result: no" >&5
5619 echo "${ECHO_T}no" >&6; }
5622 rm -f conftest.cc conftest.o
5628 { echo "$as_me:$LINENO: checking whether user wants gprof" >&5
5629 echo $ECHO_N "checking whether user wants gprof... $ECHO_C" >&6; }
5631 # Check whether --with-gprof was given.
5632 if test "${with_gprof+set}" = set; then
5633 withval=$with_gprof;
5638 { echo "$as_me:$LINENO: result: $with_gprof" >&5
5639 echo "${ECHO_T}$with_gprof" >&6; }
5641 cc_profiling_flags="-pg"
5642 cxx_profiling_flags="-pg"
5643 ld_profiling_flags="-pg"
5644 if test $with_gprof = yes
5649 echo 'void f(){}' > conftest.c
5650 for i in $cc_profiling_flags
5652 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5653 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5654 if test -z "`${CC} $i -c conftest.c 2>&1`"
5656 CFLAGS="${CFLAGS} $i"
5657 { echo "$as_me:$LINENO: result: yes" >&5
5658 echo "${ECHO_T}yes" >&6; }
5660 { echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6; }
5664 rm -f conftest.c conftest.o
5670 echo 'void f(){}' > conftest.cc
5671 for i in $cxx_profiling_flags
5673 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5674 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5675 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5677 CXXFLAGS="${CXXFLAGS} $i"
5678 { echo "$as_me:$LINENO: result: yes" >&5
5679 echo "${ECHO_T}yes" >&6; }
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5685 rm -f conftest.cc conftest.o
5691 { echo "$as_me:$LINENO: checking whether user wants prof" >&5
5692 echo $ECHO_N "checking whether user wants prof... $ECHO_C" >&6; }
5694 # Check whether --with-prof was given.
5695 if test "${with_prof+set}" = set; then
5701 { echo "$as_me:$LINENO: result: $with_prof" >&5
5702 echo "${ECHO_T}$with_prof" >&6; }
5704 cc_profiling_flags="-p"
5705 cxx_profiling_flags="-p"
5706 ld_profiling_flags="-p"
5707 if test $with_prof = yes
5712 echo 'void f(){}' > conftest.c
5713 for i in $cc_profiling_flags
5715 { echo "$as_me:$LINENO: checking whether $CC accepts $i" >&5
5716 echo $ECHO_N "checking whether $CC accepts $i... $ECHO_C" >&6; }
5717 if test -z "`${CC} $i -c conftest.c 2>&1`"
5719 CFLAGS="${CFLAGS} $i"
5720 { echo "$as_me:$LINENO: result: yes" >&5
5721 echo "${ECHO_T}yes" >&6; }
5723 { echo "$as_me:$LINENO: result: no" >&5
5724 echo "${ECHO_T}no" >&6; }
5727 rm -f conftest.c conftest.o
5733 echo 'void f(){}' > conftest.cc
5734 for i in $cxx_profiling_flags
5736 { echo "$as_me:$LINENO: checking whether $CXX accepts $i" >&5
5737 echo $ECHO_N "checking whether $CXX accepts $i... $ECHO_C" >&6; }
5738 if test -z "`${CXX} $i -c conftest.cc 2>&1`"
5740 CXXFLAGS="${CXXFLAGS} $i"
5741 { echo "$as_me:$LINENO: result: yes" >&5
5742 echo "${ECHO_T}yes" >&6; }
5744 { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5748 rm -f conftest.cc conftest.o
5753 # By default we simply use the C compiler to build assembly code.
5755 test "${CCAS+set}" = set || CCAS=$CC
5756 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5760 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5761 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5763 if test "$LN_S" = "ln -s"; then
5764 { echo "$as_me:$LINENO: result: yes" >&5
5765 echo "${ECHO_T}yes" >&6; }
5767 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5768 echo "${ECHO_T}no, using $LN_S" >&6; }
5771 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5772 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5773 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 cat >conftest.make <<\_ACEOF
5780 @echo '@@@%%%=$(MAKE)=@@@%%%'
5782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5785 eval ac_cv_prog_make_${ac_make}_set=yes;;
5787 eval ac_cv_prog_make_${ac_make}_set=no;;
5791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5792 { echo "$as_me:$LINENO: result: yes" >&5
5793 echo "${ECHO_T}yes" >&6; }
5796 { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5798 SET_MAKE="MAKE=${MAKE-make}"
5801 # Find a good install program. We prefer a C program (faster),
5802 # so one script is as good as another. But avoid the broken or
5803 # incompatible versions:
5804 # SysV /etc/install, /usr/sbin/install
5805 # SunOS /usr/etc/install
5806 # IRIX /sbin/install
5808 # AmigaOS /C/install, which installs bootblocks on floppy discs
5809 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5810 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5811 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5812 # OS/2's system install, which has a completely different semantic
5813 # ./install, which can be erroneously created by make from ./install.sh.
5814 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5815 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5816 if test -z "$INSTALL"; then
5817 if test "${ac_cv_path_install+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 # Account for people who put trailing slashes in PATH elements.
5827 ./ | .// | /cC/* | \
5828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5829 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5832 # OSF1 and SCO ODT 3.0 have their own names for install.
5833 # Don't use installbsd from OSF since it installs stuff as root
5835 for ac_prog in ginstall scoinst install; do
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5838 if test $ac_prog = install &&
5839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5840 # AIX install. It has an incompatible calling convention.
5842 elif test $ac_prog = install &&
5843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5844 # program-specific install script used by HP pwplus--don't use.
5847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5860 if test "${ac_cv_path_install+set}" = set; then
5861 INSTALL=$ac_cv_path_install
5863 # As a last resort, use the slow shell script. Don't cache a
5864 # value for INSTALL within a source directory, because that will
5865 # break other packages using the cache if that directory is
5866 # removed, or if the value is a relative name.
5867 INSTALL=$ac_install_sh
5870 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5871 echo "${ECHO_T}$INSTALL" >&6; }
5873 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5874 # It thinks the first close brace ends the variable substitution.
5875 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5877 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5879 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5881 # Extract the first word of "rm", so it can be a program name with args.
5882 set dummy rm; ac_word=$2
5883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5885 if test "${ac_cv_path_RM_PROG+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 ac_cv_path_RM_PROG="$RM_PROG" # Let the user override the test with a path.
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 test -z "$as_dir" && as_dir=.
5898 for ac_exec_ext in '' $ac_executable_extensions; do
5899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5900 ac_cv_path_RM_PROG="$as_dir/$ac_word$ac_exec_ext"
5901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 RM_PROG=$ac_cv_path_RM_PROG
5912 if test -n "$RM_PROG"; then
5913 { echo "$as_me:$LINENO: result: $RM_PROG" >&5
5914 echo "${ECHO_T}$RM_PROG" >&6; }
5916 { echo "$as_me:$LINENO: result: no" >&5
5917 echo "${ECHO_T}no" >&6; }
5924 # Check whether --enable-shared was given.
5925 if test "${enable_shared+set}" = set; then
5926 enableval=$enable_shared; p=${PACKAGE-default}
5928 yes) enable_shared=yes ;;
5929 no) enable_shared=no ;;
5932 # Look at the argument we got. We use all the common list separators.
5933 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5934 for pkg in $enableval; do
5936 if test "X$pkg" = "X$p"; then
5947 # Check whether --enable-static was given.
5948 if test "${enable_static+set}" = set; then
5949 enableval=$enable_static; p=${PACKAGE-default}
5951 yes) enable_static=yes ;;
5952 no) enable_static=no ;;
5955 # Look at the argument we got. We use all the common list separators.
5956 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5957 for pkg in $enableval; do
5959 if test "X$pkg" = "X$p"; then
5971 # Check whether --enable-fast-install was given.
5972 if test "${enable_fast_install+set}" = set; then
5973 enableval=$enable_fast_install; p=${PACKAGE-default}
5975 yes) enable_fast_install=yes ;;
5976 no) enable_fast_install=no ;;
5978 enable_fast_install=no
5979 # Look at the argument we got. We use all the common list separators.
5980 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5981 for pkg in $enableval; do
5983 if test "X$pkg" = "X$p"; then
5984 enable_fast_install=yes
5991 enable_fast_install=yes
5995 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5996 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5997 if test "${lt_cv_path_SED+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 # Loop through the user's path and test for sed and gsed.
6001 # Then use that list of sed's as ones to test for truncation.
6002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 test -z "$as_dir" && as_dir=.
6007 for lt_ac_prog in sed gsed; do
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6010 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6017 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6018 # along with /bin/sed that truncates output.
6019 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6020 test ! -f $lt_ac_sed && continue
6021 cat /dev/null > conftest.in
6023 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6024 # Check for GNU sed and select it if it is found.
6025 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6026 lt_cv_path_SED=$lt_ac_sed
6030 cat conftest.in conftest.in >conftest.tmp
6031 mv conftest.tmp conftest.in
6032 cp conftest.in conftest.nl
6034 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6035 cmp -s conftest.out conftest.nl || break
6036 # 10000 chars as input seems more than enough
6037 test $lt_ac_count -gt 10 && break
6038 lt_ac_count=`expr $lt_ac_count + 1`
6039 if test $lt_ac_count -gt $lt_ac_max; then
6040 lt_ac_max=$lt_ac_count
6041 lt_cv_path_SED=$lt_ac_sed
6049 { echo "$as_me:$LINENO: result: $SED" >&5
6050 echo "${ECHO_T}$SED" >&6; }
6053 # Check whether --with-gnu-ld was given.
6054 if test "${with_gnu_ld+set}" = set; then
6055 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6061 if test "$GCC" = yes; then
6062 # Check if gcc -print-prog-name=ld gives a path.
6063 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6064 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6067 # gcc leaves a trailing carriage return which upsets mingw
6068 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6070 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6073 # Accept absolute paths.
6075 re_direlt='/[^/][^/]*/\.\./'
6076 # Canonicalize the pathname of ld
6077 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6078 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6079 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6081 test -z "$LD" && LD="$ac_prog"
6084 # If it fails, then pretend we aren't using GCC.
6088 # If it is relative, then search for the first ld in PATH.
6092 elif test "$with_gnu_ld" = yes; then
6093 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6094 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6096 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6097 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6099 if test "${lt_cv_path_LD+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6102 if test -z "$LD"; then
6103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6104 for ac_dir in $PATH; do
6106 test -z "$ac_dir" && ac_dir=.
6107 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6108 lt_cv_path_LD="$ac_dir/$ac_prog"
6109 # Check to see if the program is GNU ld. I'd rather use --version,
6110 # but apparently some variants of GNU ld only accept -v.
6111 # Break only if it was the GNU/non-GNU ld that we prefer.
6112 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6113 *GNU* | *'with BFD'*)
6114 test "$with_gnu_ld" != no && break
6117 test "$with_gnu_ld" != yes && break
6124 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6129 if test -n "$LD"; then
6130 { echo "$as_me:$LINENO: result: $LD" >&5
6131 echo "${ECHO_T}$LD" >&6; }
6133 { echo "$as_me:$LINENO: result: no" >&5
6134 echo "${ECHO_T}no" >&6; }
6136 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6137 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6138 { (exit 1); exit 1; }; }
6139 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6140 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6141 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6145 case `$LD -v 2>&1 </dev/null` in
6146 *GNU* | *'with BFD'*)
6147 lt_cv_prog_gnu_ld=yes
6150 lt_cv_prog_gnu_ld=no
6154 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6155 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6156 with_gnu_ld=$lt_cv_prog_gnu_ld
6159 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6160 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6161 if test "${lt_cv_ld_reload_flag+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6164 lt_cv_ld_reload_flag='-r'
6166 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6167 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6168 reload_flag=$lt_cv_ld_reload_flag
6169 case $reload_flag in
6171 *) reload_flag=" $reload_flag" ;;
6173 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6176 if test "$GCC" = yes; then
6177 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6184 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6185 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6186 if test "${lt_cv_path_NM+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 if test -n "$NM"; then
6190 # Let the user override the test.
6193 lt_nm_to_check="${ac_tool_prefix}nm"
6194 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6195 lt_nm_to_check="$lt_nm_to_check nm"
6197 for lt_tmp_nm in $lt_nm_to_check; do
6198 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6199 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6201 test -z "$ac_dir" && ac_dir=.
6202 tmp_nm="$ac_dir/$lt_tmp_nm"
6203 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6204 # Check to see if the nm accepts a BSD-compat flag.
6205 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6206 # nm: unknown option "B" ignored
6207 # Tru64's nm complains that /dev/null is an invalid object file
6208 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6209 */dev/null* | *'Invalid file or object type'*)
6210 lt_cv_path_NM="$tmp_nm -B"
6214 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6216 lt_cv_path_NM="$tmp_nm -p"
6220 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6221 continue # so that we can try to find one that supports BSD flags
6230 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6233 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6234 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6237 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6238 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6239 if test "${lt_cv_deplibs_check_method+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 lt_cv_file_magic_cmd='$MAGIC_CMD'
6243 lt_cv_file_magic_test_file=
6244 lt_cv_deplibs_check_method='unknown'
6245 # Need to set the preceding variable on all platforms that support
6246 # interlibrary dependencies.
6247 # 'none' -- dependencies not supported.
6248 # `unknown' -- same as none, but documents that we really don't know.
6249 # 'pass_all' -- all dependencies passed with no checks.
6250 # 'test_compile' -- check by making test program.
6251 # 'file_magic [[regex]]' -- check by looking for files in library path
6252 # which responds to the $file_magic_cmd with a given extended regex.
6253 # If you have `file' or equivalent on your system and you're not sure
6254 # whether `pass_all' will *always* work, you probably want this one.
6258 lt_cv_deplibs_check_method=pass_all
6262 lt_cv_deplibs_check_method=pass_all
6266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6267 lt_cv_file_magic_cmd='/usr/bin/file -L'
6268 lt_cv_file_magic_test_file=/shlib/libc.so
6272 # func_win32_libid is a shell function defined in ltmain.sh
6273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6274 lt_cv_file_magic_cmd='func_win32_libid'
6278 # Base MSYS/MinGW do not provide the 'file' command needed by
6279 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6280 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6281 lt_cv_file_magic_cmd='$OBJDUMP -f'
6284 darwin* | rhapsody*)
6285 lt_cv_deplibs_check_method=pass_all
6288 freebsd* | dragonfly*)
6289 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6292 # Not sure whether the presence of OpenBSD here was a mistake.
6293 # Let's accept both of them until this is cleared up.
6294 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6295 lt_cv_file_magic_cmd=/usr/bin/file
6296 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6300 lt_cv_deplibs_check_method=pass_all
6305 lt_cv_deplibs_check_method=pass_all
6308 hpux10.20* | hpux11*)
6309 lt_cv_file_magic_cmd=/usr/bin/file
6312 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6313 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6316 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]'
6317 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6321 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6327 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6331 irix5* | irix6* | nonstopux*)
6333 *-32|*"-32 ") libmagic=32-bit;;
6334 *-n32|*"-n32 ") libmagic=N32;;
6335 *-64|*"-64 ") libmagic=64-bit;;
6336 *) libmagic=never-match;;
6338 lt_cv_deplibs_check_method=pass_all
6341 # This must be Linux ELF.
6342 linux* | k*bsd*-gnu)
6343 lt_cv_deplibs_check_method=pass_all
6346 netbsd* | netbsdelf*-gnu)
6347 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6356 lt_cv_file_magic_cmd=/usr/bin/file
6357 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6361 lt_cv_deplibs_check_method=unknown
6365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6372 osf3* | osf4* | osf5*)
6373 lt_cv_deplibs_check_method=pass_all
6377 lt_cv_deplibs_check_method=pass_all
6381 case $host_vendor in
6383 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]'
6384 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6387 lt_cv_deplibs_check_method=pass_all
6390 lt_cv_file_magic_cmd='/bin/file'
6391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6394 lt_cv_file_magic_cmd='/bin/file'
6395 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6396 lt_cv_file_magic_test_file=/lib/libc.so
6399 lt_cv_deplibs_check_method=pass_all
6402 lt_cv_deplibs_check_method=pass_all
6407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6408 lt_cv_deplibs_check_method=pass_all
6413 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6414 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6415 file_magic_cmd=$lt_cv_file_magic_cmd
6416 deplibs_check_method=$lt_cv_deplibs_check_method
6417 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6422 # If no C compiler was specified, use CC.
6425 # If no C compiler flags were specified, use CFLAGS.
6426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6428 # Allow CC to be a program name with arguments.
6431 # Check whether --enable-libtool-lock was given.
6432 if test "${enable_libtool_lock+set}" = set; then
6433 enableval=$enable_libtool_lock;
6436 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6438 # Some flags need to be propagated to the compiler or linker for good
6442 # Find out which ABI we are using.
6443 echo 'int i;' > conftest.$ac_ext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6445 (eval $ac_compile) 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); }; then
6449 case `/usr/bin/file conftest.$ac_objext` in
6461 # Find out which ABI we are using.
6462 echo '#line 6462 "configure"' > conftest.$ac_ext
6463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6464 (eval $ac_compile) 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); }; then
6468 if test "$lt_cv_prog_gnu_ld" = yes; then
6469 case `/usr/bin/file conftest.$ac_objext` in
6471 LD="${LD-ld} -melf32bsmip"
6474 LD="${LD-ld} -melf32bmipn32"
6477 LD="${LD-ld} -melf64bmip"
6481 case `/usr/bin/file conftest.$ac_objext` in
6497 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6498 # Find out which ABI we are using.
6499 echo 'int i;' > conftest.$ac_ext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; then
6505 case `/usr/bin/file conftest.o` in
6509 LD="${LD-ld} -m elf_i386"
6511 ppc64-*linux*|powerpc64-*linux*)
6512 LD="${LD-ld} -m elf32ppclinux"
6515 LD="${LD-ld} -m elf_s390"
6518 LD="${LD-ld} -m elf32_sparc"
6525 LD="${LD-ld} -m elf_x86_64"
6527 ppc*-*linux*|powerpc*-*linux*)
6528 LD="${LD-ld} -m elf64ppc"
6531 LD="${LD-ld} -m elf64_s390"
6534 LD="${LD-ld} -m elf64_sparc"
6544 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6545 SAVE_CFLAGS="$CFLAGS"
6546 CFLAGS="$CFLAGS -belf"
6547 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6548 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6549 if test "${lt_cv_cc_needs_belf+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 ac_cpp='$CPP $CPPFLAGS'
6554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6558 cat >conftest.$ac_ext <<_ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (ac_try="$ac_link"
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_link") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest$ac_exeext &&
6590 $as_test_x conftest$ac_exeext; then
6591 lt_cv_cc_needs_belf=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 lt_cv_cc_needs_belf=no
6599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6600 conftest$ac_exeext conftest.$ac_ext
6602 ac_cpp='$CPP $CPPFLAGS'
6603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6610 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6612 CFLAGS="$SAVE_CFLAGS"
6616 # Find out which ABI we are using.
6617 echo 'int i;' > conftest.$ac_ext
6618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6619 (eval $ac_compile) 2>&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); }; then
6623 case `/usr/bin/file conftest.o` in
6625 case $lt_cv_prog_gnu_ld in
6626 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6627 *) LD="${LD-ld} -64" ;;
6635 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6636 if test -n "$ac_tool_prefix"; then
6637 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 if test -n "$DLLTOOL"; then
6645 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6664 DLLTOOL=$ac_cv_prog_DLLTOOL
6665 if test -n "$DLLTOOL"; then
6666 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6667 echo "${ECHO_T}$DLLTOOL" >&6; }
6669 { echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6; }
6675 if test -z "$ac_cv_prog_DLLTOOL"; then
6676 ac_ct_DLLTOOL=$DLLTOOL
6677 # Extract the first word of "dlltool", so it can be a program name with args.
6678 set dummy dlltool; ac_word=$2
6679 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6680 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 if test -n "$ac_ct_DLLTOOL"; then
6685 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6704 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6705 if test -n "$ac_ct_DLLTOOL"; then
6706 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6707 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6713 if test "x$ac_ct_DLLTOOL" = x; then
6716 case $cross_compiling:$ac_tool_warned in
6718 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6719 whose name does not start with the host triplet. If you think this
6720 configuration is useful to you, please write to autoconf@gnu.org." >&5
6721 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6722 whose name does not start with the host triplet. If you think this
6723 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6724 ac_tool_warned=yes ;;
6726 DLLTOOL=$ac_ct_DLLTOOL
6729 DLLTOOL="$ac_cv_prog_DLLTOOL"
6732 if test -n "$ac_tool_prefix"; then
6733 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}as; ac_word=$2
6735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6737 if test "${ac_cv_prog_AS+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 if test -n "$AS"; then
6741 ac_cv_prog_AS="$AS" # Let the user override the test.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_prog_AS="${ac_tool_prefix}as"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 if test -n "$AS"; then
6762 { echo "$as_me:$LINENO: result: $AS" >&5
6763 echo "${ECHO_T}$AS" >&6; }
6765 { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6771 if test -z "$ac_cv_prog_AS"; then
6773 # Extract the first word of "as", so it can be a program name with args.
6774 set dummy as; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 if test -n "$ac_ct_AS"; then
6781 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 test -z "$as_dir" && as_dir=.
6788 for ac_exec_ext in '' $ac_executable_extensions; do
6789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790 ac_cv_prog_ac_ct_AS="as"
6791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6801 if test -n "$ac_ct_AS"; then
6802 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6803 echo "${ECHO_T}$ac_ct_AS" >&6; }
6805 { echo "$as_me:$LINENO: result: no" >&5
6806 echo "${ECHO_T}no" >&6; }
6809 if test "x$ac_ct_AS" = x; then
6812 case $cross_compiling:$ac_tool_warned in
6814 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6815 whose name does not start with the host triplet. If you think this
6816 configuration is useful to you, please write to autoconf@gnu.org." >&5
6817 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6818 whose name does not start with the host triplet. If you think this
6819 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6820 ac_tool_warned=yes ;;
6828 if test -n "$ac_tool_prefix"; then
6829 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6830 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6833 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6834 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 if test -n "$OBJDUMP"; then
6837 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843 test -z "$as_dir" && as_dir=.
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 OBJDUMP=$ac_cv_prog_OBJDUMP
6857 if test -n "$OBJDUMP"; then
6858 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6859 echo "${ECHO_T}$OBJDUMP" >&6; }
6861 { echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6; }
6867 if test -z "$ac_cv_prog_OBJDUMP"; then
6868 ac_ct_OBJDUMP=$OBJDUMP
6869 # Extract the first word of "objdump", so it can be a program name with args.
6870 set dummy objdump; ac_word=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 if test -n "$ac_ct_OBJDUMP"; then
6877 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883 test -z "$as_dir" && as_dir=.
6884 for ac_exec_ext in '' $ac_executable_extensions; do
6885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6897 if test -n "$ac_ct_OBJDUMP"; then
6898 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6899 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6901 { echo "$as_me:$LINENO: result: no" >&5
6902 echo "${ECHO_T}no" >&6; }
6905 if test "x$ac_ct_OBJDUMP" = x; then
6908 case $cross_compiling:$ac_tool_warned in
6910 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6911 whose name does not start with the host triplet. If you think this
6912 configuration is useful to you, please write to autoconf@gnu.org." >&5
6913 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6914 whose name does not start with the host triplet. If you think this
6915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6916 ac_tool_warned=yes ;;
6918 OBJDUMP=$ac_ct_OBJDUMP
6921 OBJDUMP="$ac_cv_prog_OBJDUMP"
6928 need_locks="$enable_libtool_lock"
6932 for ac_header in dlfcn.h
6934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 ac_res=`eval echo '${'$as_ac_Header'}'`
6942 { echo "$as_me:$LINENO: result: $ac_res" >&5
6943 echo "${ECHO_T}$ac_res" >&6; }
6945 # Is the header compilable?
6946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6948 cat >conftest.$ac_ext <<_ACEOF
6951 cat confdefs.h >>conftest.$ac_ext
6952 cat >>conftest.$ac_ext <<_ACEOF
6953 /* end confdefs.h. */
6954 $ac_includes_default
6955 #include <$ac_header>
6957 rm -f conftest.$ac_objext
6958 if { (ac_try="$ac_compile"
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_compile") 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } && {
6971 test -z "$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6973 } && test -s conftest.$ac_objext; then
6974 ac_header_compiler=yes
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 ac_header_compiler=no
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6984 echo "${ECHO_T}$ac_header_compiler" >&6; }
6986 # Is the header present?
6987 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6989 cat >conftest.$ac_ext <<_ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <$ac_header>
6997 if { (ac_try="$ac_cpp conftest.$ac_ext"
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } >/dev/null && {
7010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7013 ac_header_preproc=yes
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7018 ac_header_preproc=no
7021 rm -f conftest.err conftest.$ac_ext
7022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7023 echo "${ECHO_T}$ac_header_preproc" >&6; }
7025 # So? What about this header?
7026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7032 ac_header_preproc=yes
7035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 eval "$as_ac_Header=\$ac_header_preproc"
7057 ac_res=`eval echo '${'$as_ac_Header'}'`
7058 { echo "$as_me:$LINENO: result: $ac_res" >&5
7059 echo "${ECHO_T}$ac_res" >&6; }
7062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7063 cat >>confdefs.h <<_ACEOF
7064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7073 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7074 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7075 (test "X$CXX" != "Xg++"))) ; then
7077 ac_cpp='$CXXCPP $CPPFLAGS'
7078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7081 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7082 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
7083 if test -z "$CXXCPP"; then
7084 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 # Double quotes because CXXCPP needs to be expanded
7088 for CXXCPP in "$CXX -E" "/lib/cpp"
7091 for ac_cxx_preproc_warn_flag in '' yes
7093 # Use a header file that comes with gcc, so configuring glibc
7094 # with a fresh cross-compiler works.
7095 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7096 # <limits.h> exists even on freestanding compilers.
7097 # On the NeXT, cc -E runs the code through the compiler's parser,
7098 # not just through cpp. "Syntax error" is here to catch this case.
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7106 # include <limits.h>
7108 # include <assert.h>
7112 if { (ac_try="$ac_cpp conftest.$ac_ext"
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } >/dev/null && {
7125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7126 test ! -s conftest.err
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7133 # Broken: fails on valid input.
7137 rm -f conftest.err conftest.$ac_ext
7139 # OK, works on sane cases. Now check whether nonexistent headers
7140 # can be detected and how.
7141 cat >conftest.$ac_ext <<_ACEOF
7144 cat confdefs.h >>conftest.$ac_ext
7145 cat >>conftest.$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <ac_nonexistent.h>
7149 if { (ac_try="$ac_cpp conftest.$ac_ext"
7151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7157 grep -v '^ *+' conftest.er1 >conftest.err
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } >/dev/null && {
7162 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7163 test ! -s conftest.err
7165 # Broken: success on invalid input.
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7171 # Passes both tests.
7176 rm -f conftest.err conftest.$ac_ext
7179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7180 rm -f conftest.err conftest.$ac_ext
7181 if $ac_preproc_ok; then
7186 ac_cv_prog_CXXCPP=$CXXCPP
7189 CXXCPP=$ac_cv_prog_CXXCPP
7191 ac_cv_prog_CXXCPP=$CXXCPP
7193 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
7194 echo "${ECHO_T}$CXXCPP" >&6; }
7196 for ac_cxx_preproc_warn_flag in '' yes
7198 # Use a header file that comes with gcc, so configuring glibc
7199 # with a fresh cross-compiler works.
7200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7201 # <limits.h> exists even on freestanding compilers.
7202 # On the NeXT, cc -E runs the code through the compiler's parser,
7203 # not just through cpp. "Syntax error" is here to catch this case.
7204 cat >conftest.$ac_ext <<_ACEOF
7207 cat confdefs.h >>conftest.$ac_ext
7208 cat >>conftest.$ac_ext <<_ACEOF
7209 /* end confdefs.h. */
7211 # include <limits.h>
7213 # include <assert.h>
7217 if { (ac_try="$ac_cpp conftest.$ac_ext"
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7225 grep -v '^ *+' conftest.er1 >conftest.err
7227 cat conftest.err >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); } >/dev/null && {
7230 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7231 test ! -s conftest.err
7235 echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 # Broken: fails on valid input.
7242 rm -f conftest.err conftest.$ac_ext
7244 # OK, works on sane cases. Now check whether nonexistent headers
7245 # can be detected and how.
7246 cat >conftest.$ac_ext <<_ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #include <ac_nonexistent.h>
7254 if { (ac_try="$ac_cpp conftest.$ac_ext"
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7262 grep -v '^ *+' conftest.er1 >conftest.err
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } >/dev/null && {
7267 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7268 test ! -s conftest.err
7270 # Broken: success on invalid input.
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 # Passes both tests.
7281 rm -f conftest.err conftest.$ac_ext
7284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7285 rm -f conftest.err conftest.$ac_ext
7286 if $ac_preproc_ok; then
7289 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7290 See \`config.log' for more details." >&5
7291 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7292 See \`config.log' for more details." >&2;}
7293 { (exit 1); exit 1; }; }
7297 ac_cpp='$CXXCPP $CPPFLAGS'
7298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7305 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7306 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7308 if test -n "$ac_tool_prefix"; then
7309 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_prog_F77+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 if test -n "$F77"; then
7319 ac_cv_prog_F77="$F77" # Let the user override the test.
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7328 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 if test -n "$F77"; then
7340 { echo "$as_me:$LINENO: result: $F77" >&5
7341 echo "${ECHO_T}$F77" >&6; }
7343 { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7348 test -n "$F77" && break
7351 if test -z "$F77"; then
7353 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7355 # Extract the first word of "$ac_prog", so it can be a program name with args.
7356 set dummy $ac_prog; ac_word=$2
7357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7359 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7360 echo $ECHO_N "(cached) $ECHO_C" >&6
7362 if test -n "$ac_ct_F77"; then
7363 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 test -z "$as_dir" && as_dir=.
7370 for ac_exec_ext in '' $ac_executable_extensions; do
7371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372 ac_cv_prog_ac_ct_F77="$ac_prog"
7373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7382 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7383 if test -n "$ac_ct_F77"; then
7384 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7385 echo "${ECHO_T}$ac_ct_F77" >&6; }
7387 { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7392 test -n "$ac_ct_F77" && break
7395 if test "x$ac_ct_F77" = x; then
7398 case $cross_compiling:$ac_tool_warned in
7400 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7401 whose name does not start with the host triplet. If you think this
7402 configuration is useful to you, please write to autoconf@gnu.org." >&5
7403 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7404 whose name does not start with the host triplet. If you think this
7405 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7406 ac_tool_warned=yes ;;
7413 # Provide some information about the compiler.
7414 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
7415 ac_compiler=`set X $ac_compile; echo $2`
7416 { (ac_try="$ac_compiler --version >&5"
7418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419 *) ac_try_echo=$ac_try;;
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422 (eval "$ac_compiler --version >&5") 2>&5
7424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425 (exit $ac_status); }
7426 { (ac_try="$ac_compiler -v >&5"
7428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429 *) ac_try_echo=$ac_try;;
7431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7432 (eval "$ac_compiler -v >&5") 2>&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); }
7436 { (ac_try="$ac_compiler -V >&5"
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_compiler -V >&5") 2>&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }
7448 # If we don't use `.F' as extension, the preprocessor is not run on the
7449 # input file. (Note that this only needs to work for GNU compilers.)
7452 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7453 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
7454 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 cat >conftest.$ac_ext <<_ACEOF
7465 rm -f conftest.$ac_objext
7466 if { (ac_try="$ac_compile"
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_compile") 2>conftest.er1
7474 grep -v '^ *+' conftest.er1 >conftest.err
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_f77_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest.$ac_objext; then
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7491 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7494 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7495 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
7497 ac_test_FFLAGS=${FFLAGS+set}
7498 ac_save_FFLAGS=$FFLAGS
7500 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7501 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7502 if test "${ac_cv_prog_f77_g+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 cat >conftest.$ac_ext <<_ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7520 grep -v '^ *+' conftest.er1 >conftest.err
7522 cat conftest.err >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_f77_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.$ac_objext; then
7528 ac_cv_prog_f77_g=yes
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7540 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7541 if test "$ac_test_FFLAGS" = set; then
7542 FFLAGS=$ac_save_FFLAGS
7543 elif test $ac_cv_prog_f77_g = yes; then
7544 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7550 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7557 G77=`test $ac_compiler_gnu = yes && echo yes`
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7568 # find the maximum length of command line arguments
7569 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7570 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7571 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 # On DJGPP, this test can blow up pretty badly due to problems in libc
7580 # (any single argument exceeding 2000 bytes causes a buffer overrun
7581 # during glob expansion). Even if it were fixed, the result of this
7582 # check would be larger than it should be.
7583 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7587 # Under GNU Hurd, this test is not required because there is
7588 # no limit to the length of command line arguments.
7589 # Libtool will interpret -1 as no limit whatsoever
7590 lt_cv_sys_max_cmd_len=-1;
7594 # On Win9x/ME, this test blows up -- it succeeds, but takes
7595 # about 5 minutes as the teststring grows exponentially.
7596 # Worse, since 9x/ME are not pre-emptively multitasking,
7597 # you end up with a "frozen" computer, even though with patience
7598 # the test eventually succeeds (with a max line length of 256k).
7599 # Instead, let's just punt: use the minimum linelength reported by
7600 # all of the supported platforms: 8192 (on NT/2K/XP).
7601 lt_cv_sys_max_cmd_len=8192;
7605 # On AmigaOS with pdksh, this test takes hours, literally.
7606 # So we just punt and use a minimum line length of 8192.
7607 lt_cv_sys_max_cmd_len=8192;
7610 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7611 # This has been around since 386BSD, at least. Likely further.
7612 if test -x /sbin/sysctl; then
7613 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7614 elif test -x /usr/sbin/sysctl; then
7615 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7617 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7619 # And add a safety zone
7620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7625 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7626 lt_cv_sys_max_cmd_len=196608
7630 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7631 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7632 # nice to cause kernel panics so lets avoid the loop below.
7633 # First set a reasonable default.
7634 lt_cv_sys_max_cmd_len=16384
7636 if test -x /sbin/sysconfig; then
7637 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7638 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7643 lt_cv_sys_max_cmd_len=102400
7645 sysv5* | sco5v6* | sysv4.2uw2*)
7646 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7647 if test -n "$kargmax"; then
7648 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7650 lt_cv_sys_max_cmd_len=32768
7654 # If test is not a shell built-in, we'll probably end up computing a
7655 # maximum length that is only half of the actual maximum length, but
7657 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7658 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7659 = "XX$teststring") >/dev/null 2>&1 &&
7660 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7661 lt_cv_sys_max_cmd_len=$new_result &&
7662 test $i != 17 # 1/2 MB should be enough
7665 teststring=$teststring$teststring
7668 # Add a significant safety factor because C++ compilers can tack on massive
7669 # amounts of additional arguments before passing them to the linker.
7670 # It appears as though 1/2 is a usable value.
7671 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7677 if test -n $lt_cv_sys_max_cmd_len ; then
7678 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7679 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7681 { echo "$as_me:$LINENO: result: none" >&5
7682 echo "${ECHO_T}none" >&6; }
7688 # Check for command to grab the raw symbol name followed by C symbol from nm.
7689 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7690 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7691 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 # These are sane defaults that work on at least a few old systems.
7696 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7698 # Character class describing NM global symbol codes.
7699 symcode='[BCDEGRST]'
7701 # Regexp to match symbols that can be accessed directly from C.
7702 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7704 # Transform an extracted symbol line into a proper C declaration
7705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7707 # Transform an extracted symbol line into symbol name and symbol address
7708 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'"
7710 # Define system-specific variables.
7715 cygwin* | mingw* | pw32*)
7716 symcode='[ABCDGISTW]'
7718 hpux*) # Its linker distinguishes data from code symbols
7719 if test "$host_cpu" = ia64; then
7720 symcode='[ABCDEGRST]'
7722 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7723 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'"
7725 linux* | k*bsd*-gnu)
7726 if test "$host_cpu" = ia64; then
7727 symcode='[ABCDGIRSTW]'
7728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7729 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'"
7733 symcode='[BCDEGRST]'
7736 symcode='[BCDEGQRST]'
7747 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7755 # Handle CRLF in mingw tool chain
7759 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7763 # If we're using GNU nm, then use its standard symbol codes.
7764 case `$NM -V 2>&1` in
7765 *GNU* | *'with BFD'*)
7766 symcode='[ABCDGIRSTW]' ;;
7769 # Try without a prefix undercore, then with it.
7770 for ac_symprfx in "" "_"; do
7772 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7773 symxfrm="\\1 $ac_symprfx\\2 \\2"
7775 # Write the raw and C identifiers.
7776 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7778 # Check to see that the pipe works correctly.
7782 cat > conftest.$ac_ext <<EOF
7787 void nm_test_func(){}
7791 int main(){nm_test_var='a';nm_test_func();return(0);}
7794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7795 (eval $ac_compile) 2>&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; then
7799 # Now try to grab the symbols.
7801 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7802 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && test -s "$nlist"; then
7806 # Try sorting and uniquifying the output.
7807 if sort "$nlist" | uniq > "$nlist"T; then
7808 mv -f "$nlist"T "$nlist"
7813 # Make sure that we snagged all the symbols we need.
7814 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7815 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7816 cat <<EOF > conftest.$ac_ext
7822 # Now generate the symbol file.
7823 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7825 cat <<EOF >> conftest.$ac_ext
7826 #if defined (__STDC__) && __STDC__
7827 # define lt_ptr_t void *
7829 # define lt_ptr_t char *
7833 /* The mapping between symbol names and symbols. */
7838 lt_preloaded_symbols[] =
7841 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7842 cat <<\EOF >> conftest.$ac_ext
7850 # Now try linking the two files.
7851 mv conftest.$ac_objext conftstm.$ac_objext
7852 lt_save_LIBS="$LIBS"
7853 lt_save_CFLAGS="$CFLAGS"
7854 LIBS="conftstm.$ac_objext"
7855 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7857 (eval $ac_link) 2>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7863 LIBS="$lt_save_LIBS"
7864 CFLAGS="$lt_save_CFLAGS"
7866 echo "cannot find nm_test_func in $nlist" >&5
7869 echo "cannot find nm_test_var in $nlist" >&5
7872 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7875 echo "$progname: failed program was:" >&5
7876 cat conftest.$ac_ext >&5
7878 rm -f conftest* conftst*
7880 # Do not use the global_symbol_pipe unless it works.
7881 if test "$pipe_works" = yes; then
7884 lt_cv_sys_global_symbol_pipe=
7890 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7891 lt_cv_sys_global_symbol_to_cdecl=
7893 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7894 { echo "$as_me:$LINENO: result: failed" >&5
7895 echo "${ECHO_T}failed" >&6; }
7897 { echo "$as_me:$LINENO: result: ok" >&5
7898 echo "${ECHO_T}ok" >&6; }
7901 { echo "$as_me:$LINENO: checking for objdir" >&5
7902 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7903 if test "${lt_cv_objdir+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7906 rm -f .libs 2>/dev/null
7907 mkdir .libs 2>/dev/null
7908 if test -d .libs; then
7911 # MS-DOS does not allow filenames that begin with a dot.
7914 rmdir .libs 2>/dev/null
7916 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7917 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7918 objdir=$lt_cv_objdir
7926 # AIX sometimes has problems with the GCC collect2 program. For some
7927 # reason, if we set the COLLECT_NAMES environment variable, the problems
7928 # vanish in a puff of smoke.
7929 if test "X${COLLECT_NAMES+set}" != Xset; then
7931 export COLLECT_NAMES
7936 # Sed substitution that helps us do robust quoting. It backslashifies
7937 # metacharacters that are still active within double-quoted strings.
7938 Xsed='sed -e 1s/^X//'
7939 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7941 # Same as above, but do not quote variable references.
7942 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7944 # Sed substitution to delay expansion of an escaped shell variable in a
7945 # double_quote_subst'ed string.
7946 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7948 # Sed substitution to avoid accidental globbing in evaled expressions
7949 no_glob_subst='s/\*/\\\*/g'
7955 default_ofile=libtool
7956 can_build_shared=yes
7958 # All known linkers require a `.a' archive for static linking (except MSVC,
7959 # which needs '.lib').
7961 ltmain="$ac_aux_dir/ltmain.sh"
7962 ofile="$default_ofile"
7963 with_gnu_ld="$lt_cv_prog_gnu_ld"
7965 if test -n "$ac_tool_prefix"; then
7966 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7967 set dummy ${ac_tool_prefix}ar; ac_word=$2
7968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7970 if test "${ac_cv_prog_AR+set}" = set; then
7971 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 if test -n "$AR"; then
7974 ac_cv_prog_AR="$AR" # Let the user override the test.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_prog_AR="${ac_tool_prefix}ar"
7984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 if test -n "$AR"; then
7995 { echo "$as_me:$LINENO: result: $AR" >&5
7996 echo "${ECHO_T}$AR" >&6; }
7998 { echo "$as_me:$LINENO: result: no" >&5
7999 echo "${ECHO_T}no" >&6; }
8004 if test -z "$ac_cv_prog_AR"; then
8006 # Extract the first word of "ar", so it can be a program name with args.
8007 set dummy ar; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 if test -n "$ac_ct_AR"; then
8014 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_prog_ac_ct_AR="ar"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8034 if test -n "$ac_ct_AR"; then
8035 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8036 echo "${ECHO_T}$ac_ct_AR" >&6; }
8038 { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8042 if test "x$ac_ct_AR" = x; then
8045 case $cross_compiling:$ac_tool_warned in
8047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8048 whose name does not start with the host triplet. If you think this
8049 configuration is useful to you, please write to autoconf@gnu.org." >&5
8050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8051 whose name does not start with the host triplet. If you think this
8052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8053 ac_tool_warned=yes ;;
8061 if test -n "$ac_tool_prefix"; then
8062 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8063 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8066 if test "${ac_cv_prog_RANLIB+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8069 if test -n "$RANLIB"; then
8070 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8089 RANLIB=$ac_cv_prog_RANLIB
8090 if test -n "$RANLIB"; then
8091 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8092 echo "${ECHO_T}$RANLIB" >&6; }
8094 { echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6; }
8100 if test -z "$ac_cv_prog_RANLIB"; then
8101 ac_ct_RANLIB=$RANLIB
8102 # Extract the first word of "ranlib", so it can be a program name with args.
8103 set dummy ranlib; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 if test -n "$ac_ct_RANLIB"; then
8110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_prog_ac_ct_RANLIB="ranlib"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8130 if test -n "$ac_ct_RANLIB"; then
8131 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8132 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8134 { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8138 if test "x$ac_ct_RANLIB" = x; then
8141 case $cross_compiling:$ac_tool_warned in
8143 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8144 whose name does not start with the host triplet. If you think this
8145 configuration is useful to you, please write to autoconf@gnu.org." >&5
8146 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8147 whose name does not start with the host triplet. If you think this
8148 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8149 ac_tool_warned=yes ;;
8151 RANLIB=$ac_ct_RANLIB
8154 RANLIB="$ac_cv_prog_RANLIB"
8157 if test -n "$ac_tool_prefix"; then
8158 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8159 set dummy ${ac_tool_prefix}strip; ac_word=$2
8160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8162 if test "${ac_cv_prog_STRIP+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8165 if test -n "$STRIP"; then
8166 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 test -z "$as_dir" && as_dir=.
8173 for ac_exec_ext in '' $ac_executable_extensions; do
8174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8175 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8185 STRIP=$ac_cv_prog_STRIP
8186 if test -n "$STRIP"; then
8187 { echo "$as_me:$LINENO: result: $STRIP" >&5
8188 echo "${ECHO_T}$STRIP" >&6; }
8190 { echo "$as_me:$LINENO: result: no" >&5
8191 echo "${ECHO_T}no" >&6; }
8196 if test -z "$ac_cv_prog_STRIP"; then
8198 # Extract the first word of "strip", so it can be a program name with args.
8199 set dummy strip; ac_word=$2
8200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8202 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 if test -n "$ac_ct_STRIP"; then
8206 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212 test -z "$as_dir" && as_dir=.
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215 ac_cv_prog_ac_ct_STRIP="strip"
8216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8225 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8226 if test -n "$ac_ct_STRIP"; then
8227 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8228 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8230 { echo "$as_me:$LINENO: result: no" >&5
8231 echo "${ECHO_T}no" >&6; }
8234 if test "x$ac_ct_STRIP" = x; then
8237 case $cross_compiling:$ac_tool_warned in
8239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8240 whose name does not start with the host triplet. If you think this
8241 configuration is useful to you, please write to autoconf@gnu.org." >&5
8242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8243 whose name does not start with the host triplet. If you think this
8244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8245 ac_tool_warned=yes ;;
8250 STRIP="$ac_cv_prog_STRIP"
8255 old_CFLAGS="$CFLAGS"
8257 # Set sane defaults for various variables
8258 test -z "$AR" && AR=ar
8259 test -z "$AR_FLAGS" && AR_FLAGS=cru
8260 test -z "$AS" && AS=as
8261 test -z "$CC" && CC=cc
8262 test -z "$LTCC" && LTCC=$CC
8263 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8264 test -z "$DLLTOOL" && DLLTOOL=dlltool
8265 test -z "$LD" && LD=ld
8266 test -z "$LN_S" && LN_S="ln -s"
8267 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8268 test -z "$NM" && NM=nm
8269 test -z "$SED" && SED=sed
8270 test -z "$OBJDUMP" && OBJDUMP=objdump
8271 test -z "$RANLIB" && RANLIB=:
8272 test -z "$STRIP" && STRIP=:
8273 test -z "$ac_objext" && ac_objext=o
8275 # Determine commands to create old-style static archives.
8276 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8277 old_postinstall_cmds='chmod 644 $oldlib'
8278 old_postuninstall_cmds=
8280 if test -n "$RANLIB"; then
8283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8292 for cc_temp in $compiler""; do
8294 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8295 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8303 # Only perform the check for file, if the check method requires it
8304 case $deplibs_check_method in
8306 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8307 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8308 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8309 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8317 lt_save_MAGIC_CMD="$MAGIC_CMD"
8318 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8319 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8320 for ac_dir in $ac_dummy; do
8322 test -z "$ac_dir" && ac_dir=.
8323 if test -f $ac_dir/${ac_tool_prefix}file; then
8324 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8325 if test -n "$file_magic_test_file"; then
8326 case $deplibs_check_method in
8328 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8331 $EGREP "$file_magic_regex" > /dev/null; then
8336 *** Warning: the command libtool uses to detect shared libraries,
8337 *** $file_magic_cmd, produces output that libtool cannot recognize.
8338 *** The result is that libtool may fail to recognize shared libraries
8339 *** as such. This will affect the creation of libtool libraries that
8340 *** depend on shared libraries, but programs linked with such libtool
8341 *** libraries will work regardless of this problem. Nevertheless, you
8342 *** may want to report the problem to your system manager and/or to
8343 *** bug-libtool@gnu.org
8353 MAGIC_CMD="$lt_save_MAGIC_CMD"
8358 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359 if test -n "$MAGIC_CMD"; then
8360 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8361 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8363 { echo "$as_me:$LINENO: result: no" >&5
8364 echo "${ECHO_T}no" >&6; }
8367 if test -z "$lt_cv_path_MAGIC_CMD"; then
8368 if test -n "$ac_tool_prefix"; then
8369 { echo "$as_me:$LINENO: checking for file" >&5
8370 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8379 lt_save_MAGIC_CMD="$MAGIC_CMD"
8380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8382 for ac_dir in $ac_dummy; do
8384 test -z "$ac_dir" && ac_dir=.
8385 if test -f $ac_dir/file; then
8386 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8387 if test -n "$file_magic_test_file"; then
8388 case $deplibs_check_method in
8390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8393 $EGREP "$file_magic_regex" > /dev/null; then
8398 *** Warning: the command libtool uses to detect shared libraries,
8399 *** $file_magic_cmd, produces output that libtool cannot recognize.
8400 *** The result is that libtool may fail to recognize shared libraries
8401 *** as such. This will affect the creation of libtool libraries that
8402 *** depend on shared libraries, but programs linked with such libtool
8403 *** libraries will work regardless of this problem. Nevertheless, you
8404 *** may want to report the problem to your system manager and/or to
8405 *** bug-libtool@gnu.org
8415 MAGIC_CMD="$lt_save_MAGIC_CMD"
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if test -n "$MAGIC_CMD"; then
8422 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8423 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8425 { echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6; }
8439 enable_win32_dll=yes
8441 # Check whether --enable-libtool-lock was given.
8442 if test "${enable_libtool_lock+set}" = set; then
8443 enableval=$enable_libtool_lock;
8446 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8449 # Check whether --with-pic was given.
8450 if test "${with_pic+set}" = set; then
8451 withval=$with_pic; pic_mode="$withval"
8456 test -z "$pic_mode" && pic_mode=default
8458 # Use C for the default configuration in the libtool script
8462 ac_cpp='$CPP $CPPFLAGS'
8463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8468 # Source file extension for C test sources.
8471 # Object file extension for compiled C test sources.
8475 # Code to be used in simple compile tests
8476 lt_simple_compile_test_code="int some_variable = 0;\n"
8478 # Code to be used in simple link tests
8479 lt_simple_link_test_code='int main(){return(0);}\n'
8482 # If no C compiler was specified, use CC.
8485 # If no C compiler flags were specified, use CFLAGS.
8486 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8488 # Allow CC to be a program name with arguments.
8492 # save warnings/boilerplate of simple test code
8493 ac_outfile=conftest.$ac_objext
8494 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8495 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8496 _lt_compiler_boilerplate=`cat conftest.err`
8499 ac_outfile=conftest.$ac_objext
8500 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8501 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8502 _lt_linker_boilerplate=`cat conftest.err`
8507 lt_prog_compiler_no_builtin_flag=
8509 if test "$GCC" = yes; then
8510 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8513 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8514 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8515 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8518 lt_cv_prog_compiler_rtti_exceptions=no
8519 ac_outfile=conftest.$ac_objext
8520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8521 lt_compiler_flag="-fno-rtti -fno-exceptions"
8522 # Insert the option either (1) after the last *FLAGS variable, or
8523 # (2) before a word containing "conftest.", or (3) at the end.
8524 # Note that $ac_compile itself does not contain backslashes and begins
8525 # with a dollar sign (not a hyphen), so the echo should work correctly.
8526 # The option is referenced via a variable to avoid confusing sed.
8527 lt_compile=`echo "$ac_compile" | $SED \
8528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8530 -e 's:$: $lt_compiler_flag:'`
8531 (eval echo "\"\$as_me:8531: $lt_compile\"" >&5)
8532 (eval "$lt_compile" 2>conftest.err)
8534 cat conftest.err >&5
8535 echo "$as_me:8535: \$? = $ac_status" >&5
8536 if (exit $ac_status) && test -s "$ac_outfile"; then
8537 # The compiler can only warn and ignore the option if not recognized
8538 # So say no if there are warnings other than the usual output.
8539 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8540 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8541 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8542 lt_cv_prog_compiler_rtti_exceptions=yes
8548 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8549 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8551 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8552 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8559 lt_prog_compiler_wl=
8560 lt_prog_compiler_pic=
8561 lt_prog_compiler_static=
8563 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8564 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8566 if test "$GCC" = yes; then
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_static='-static'
8572 # All AIX code is PIC.
8573 if test "$host_cpu" = ia64; then
8574 # AIX 5 now supports IA64 processor
8575 lt_prog_compiler_static='-Bstatic'
8580 # FIXME: we need at least 68020 code to build shared libraries, but
8581 # adding the `-m68020' flag to GCC prevents building anything better,
8583 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8586 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8587 # PIC is the default for these OSes.
8590 mingw* | pw32* | os2*)
8591 # This hack is so that the source file can tell whether it is being
8592 # built for inclusion in a dll (and should export symbols for example).
8593 lt_prog_compiler_pic='-DDLL_EXPORT'
8596 darwin* | rhapsody*)
8597 # PIC is the default on this platform
8598 # Common symbols not allowed in MH_DYLIB files
8599 lt_prog_compiler_pic='-fno-common'
8603 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8604 # Instead, we relocate shared libraries at runtime.
8608 # Just because we use GCC doesn't mean we suddenly get shared libraries
8609 # on systems that don't support them.
8610 lt_prog_compiler_can_build_shared=no
8615 if test -d /usr/nec; then
8616 lt_prog_compiler_pic=-Kconform_pic
8621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8628 lt_prog_compiler_pic='-fPIC'
8634 lt_prog_compiler_pic='-fPIC'
8638 # PORTME Check for flag to pass linker flags through the system compiler.
8641 lt_prog_compiler_wl='-Wl,'
8642 if test "$host_cpu" = ia64; then
8643 # AIX 5 now supports IA64 processor
8644 lt_prog_compiler_static='-Bstatic'
8646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8650 # PIC is the default on this platform
8651 # Common symbols not allowed in MH_DYLIB files
8652 case $cc_basename in
8654 lt_prog_compiler_pic='-qnocommon'
8655 lt_prog_compiler_wl='-Wl,'
8660 mingw* | pw32* | os2*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8666 hpux9* | hpux10* | hpux11*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8675 lt_prog_compiler_pic='+Z'
8678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679 lt_prog_compiler_static='${wl}-a ${wl}archive'
8682 irix5* | irix6* | nonstopux*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # PIC (with -KPIC) is the default.
8685 lt_prog_compiler_static='-non_shared'
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8693 linux* | k*bsd*-gnu)
8694 case $cc_basename in
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-static'
8700 pgcc* | pgf77* | pgf90* | pgf95*)
8701 # Portland Group compilers (*not* the Pentium gcc compiler,
8702 # which looks to be a dead project)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fpic'
8705 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl='-Wl,'
8709 # All Alpha code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8715 osf3* | osf4* | osf5*)
8716 lt_prog_compiler_wl='-Wl,'
8717 # All OSF/1 code is PIC.
8718 lt_prog_compiler_static='-non_shared'
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8724 case $cc_basename in
8726 lt_prog_compiler_wl='-Qoption ld ';;
8728 lt_prog_compiler_wl='-Wl,';;
8733 lt_prog_compiler_wl='-Qoption ld '
8734 lt_prog_compiler_pic='-PIC'
8735 lt_prog_compiler_static='-Bstatic'
8738 sysv4 | sysv4.2uw2* | sysv4.3*)
8739 lt_prog_compiler_wl='-Wl,'
8740 lt_prog_compiler_pic='-KPIC'
8741 lt_prog_compiler_static='-Bstatic'
8745 if test -d /usr/nec ;then
8746 lt_prog_compiler_pic='-Kconform_pic'
8747 lt_prog_compiler_static='-Bstatic'
8751 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8752 lt_prog_compiler_wl='-Wl,'
8753 lt_prog_compiler_pic='-KPIC'
8754 lt_prog_compiler_static='-Bstatic'
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_can_build_shared=no
8763 lt_prog_compiler_pic='-pic'
8764 lt_prog_compiler_static='-Bstatic'
8768 lt_prog_compiler_can_build_shared=no
8773 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8774 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8777 # Check to make sure the PIC flag actually works.
8779 if test -n "$lt_prog_compiler_pic"; then
8781 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8783 if test "${lt_prog_compiler_pic_works+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 lt_prog_compiler_pic_works=no
8787 ac_outfile=conftest.$ac_objext
8788 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8789 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8790 # Insert the option either (1) after the last *FLAGS variable, or
8791 # (2) before a word containing "conftest.", or (3) at the end.
8792 # Note that $ac_compile itself does not contain backslashes and begins
8793 # with a dollar sign (not a hyphen), so the echo should work correctly.
8794 # The option is referenced via a variable to avoid confusing sed.
8795 lt_compile=`echo "$ac_compile" | $SED \
8796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8798 -e 's:$: $lt_compiler_flag:'`
8799 (eval echo "\"\$as_me:8799: $lt_compile\"" >&5)
8800 (eval "$lt_compile" 2>conftest.err)
8802 cat conftest.err >&5
8803 echo "$as_me:8803: \$? = $ac_status" >&5
8804 if (exit $ac_status) && test -s "$ac_outfile"; then
8805 # The compiler can only warn and ignore the option if not recognized
8806 # So say no if there are warnings other than the usual output.
8807 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8810 lt_prog_compiler_pic_works=yes
8816 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8817 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8819 if test x"$lt_prog_compiler_pic_works" = xyes; then
8820 case $lt_prog_compiler_pic in
8822 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8825 lt_prog_compiler_pic=
8826 lt_prog_compiler_can_build_shared=no
8831 # For platforms which do not support PIC, -DPIC is meaningless:
8833 lt_prog_compiler_pic=
8836 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8841 # Check to make sure the static flag actually works.
8843 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8844 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8845 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8846 if test "${lt_prog_compiler_static_works+set}" = set; then
8847 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 lt_prog_compiler_static_works=no
8850 save_LDFLAGS="$LDFLAGS"
8851 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8852 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8854 # The linker can only warn and ignore the option if not recognized
8855 # So say no if there are warnings
8856 if test -s conftest.err; then
8857 # Append any errors to the config.log.
8858 cat conftest.err 1>&5
8859 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8861 if diff conftest.exp conftest.er2 >/dev/null; then
8862 lt_prog_compiler_static_works=yes
8865 lt_prog_compiler_static_works=yes
8869 LDFLAGS="$save_LDFLAGS"
8872 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8873 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8875 if test x"$lt_prog_compiler_static_works" = xyes; then
8878 lt_prog_compiler_static=
8882 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8883 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8884 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 lt_cv_prog_compiler_c_o=no
8888 $rm -r conftest 2>/dev/null
8892 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8894 lt_compiler_flag="-o out/conftest2.$ac_objext"
8895 # Insert the option either (1) after the last *FLAGS variable, or
8896 # (2) before a word containing "conftest.", or (3) at the end.
8897 # Note that $ac_compile itself does not contain backslashes and begins
8898 # with a dollar sign (not a hyphen), so the echo should work correctly.
8899 lt_compile=`echo "$ac_compile" | $SED \
8900 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8901 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8902 -e 's:$: $lt_compiler_flag:'`
8903 (eval echo "\"\$as_me:8903: $lt_compile\"" >&5)
8904 (eval "$lt_compile" 2>out/conftest.err)
8906 cat out/conftest.err >&5
8907 echo "$as_me:8907: \$? = $ac_status" >&5
8908 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8910 # The compiler can only warn and ignore the option if not recognized
8911 # So say no if there are warnings
8912 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8913 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8914 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8915 lt_cv_prog_compiler_c_o=yes
8920 # SGI C++ compiler will create directory out/ii_files/ for
8921 # template instantiation
8922 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8923 $rm out/* && rmdir out
8929 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8930 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8933 hard_links="nottested"
8934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8935 # do not overwrite the value of need_locks provided by the user
8936 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8937 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8942 ln conftest.a conftest.b 2>&5 || hard_links=no
8943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944 { echo "$as_me:$LINENO: result: $hard_links" >&5
8945 echo "${ECHO_T}$hard_links" >&6; }
8946 if test "$hard_links" = no; then
8947 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8948 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8955 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8956 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8959 allow_undefined_flag=
8960 enable_shared_with_static_runtimes=no
8962 archive_expsym_cmds=
8963 old_archive_From_new_cmds=
8964 old_archive_from_expsyms_cmds=
8965 export_dynamic_flag_spec=
8966 whole_archive_flag_spec=
8967 thread_safe_flag_spec=
8968 hardcode_libdir_flag_spec=
8969 hardcode_libdir_flag_spec_ld=
8970 hardcode_libdir_separator=
8973 hardcode_shlibpath_var=unsupported
8974 link_all_deplibs=unknown
8975 hardcode_automatic=no
8978 always_export_symbols=no
8979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8980 # include_expsyms should be a list of space-separated symbols to be *always*
8981 # included in the symbol list
8983 # exclude_expsyms can be an extended regexp of symbols to exclude
8984 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8985 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8986 # as well as any symbol that contains `d'.
8987 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8988 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8989 # platforms (ab)use it in PIC code, but their linkers get confused if
8990 # the symbol is explicitly referenced. Since portable code cannot
8991 # rely on this symbol name, it's probably fine to never include it in
8992 # preloaded symbol tables.
8993 extract_expsyms_cmds=
8994 # Just being paranoid about ensuring that cc_basename is set.
8995 for cc_temp in $compiler""; do
8997 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8998 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9003 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9006 cygwin* | mingw* | pw32*)
9007 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9008 # When not using gcc, we currently assume that we are using
9009 # Microsoft Visual C++.
9010 if test "$GCC" != yes; then
9015 # we just hope/assume this is gcc and not c89 (= MSVC++)
9024 if test "$with_gnu_ld" = yes; then
9025 # If archive_cmds runs LD, not CC, wlarc should be empty
9028 # Set some defaults for GNU ld with shared library support. These
9029 # are reset later if shared libraries are not supported. Putting them
9030 # here allows them to be overridden if necessary.
9031 runpath_var=LD_RUN_PATH
9032 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9033 export_dynamic_flag_spec='${wl}--export-dynamic'
9034 # ancient GNU ld didn't support --whole-archive et. al.
9035 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9036 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9038 whole_archive_flag_spec=
9040 supports_anon_versioning=no
9041 case `$LD -v 2>/dev/null` in
9042 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9043 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9044 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9045 *\ 2.11.*) ;; # other 2.11 versions
9046 *) supports_anon_versioning=yes ;;
9049 # See if GNU ld supports shared libraries.
9051 aix3* | aix4* | aix5*)
9052 # On AIX/PPC, the GNU linker is very broken
9053 if test "$host_cpu" != ia64; then
9057 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9058 *** to be unable to reliably create shared libraries on AIX.
9059 *** Therefore, libtool is disabling shared libraries support. If you
9060 *** really care for shared libraries, you may want to modify your PATH
9061 *** so that a non-GNU linker is found, and then restart.
9068 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)'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_minus_L=yes
9072 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9073 # that the semantics of dynamic libraries on AmigaOS, at least up
9074 # to version 4, is to share data among multiple programs linked
9075 # with the same dynamic library. Since this doesn't match the
9076 # behavior of shared libraries on other platforms, we can't use
9082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9083 allow_undefined_flag=unsupported
9084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9085 # support --undefined. This deserves some investigation. FIXME
9086 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 cygwin* | mingw* | pw32*)
9093 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9094 # as there is no search path for DLLs.
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 allow_undefined_flag=unsupported
9097 always_export_symbols=no
9098 enable_shared_with_static_runtimes=yes
9099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9101 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9102 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9103 # If the export-symbols file already is a .def file (1st line
9104 # is EXPORTS), use it as is; otherwise, prepend...
9105 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9106 cp $export_symbols $output_objdir/$soname.def;
9108 echo EXPORTS > $output_objdir/$soname.def;
9109 cat $export_symbols >> $output_objdir/$soname.def;
9111 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9119 hardcode_shlibpath_var=no
9120 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9121 export_dynamic_flag_spec='${wl}-E'
9122 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9123 # Instead, shared libraries are loaded at an image base (0x10000000 by
9124 # default) and relocated if they conflict, which is a slow very memory
9125 # consuming and fragmenting process. To avoid this, we pick a random,
9126 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9127 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9128 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9129 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'
9132 linux* | k*bsd*-gnu)
9133 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9135 case $cc_basename,$host_cpu in
9136 pgcc*) # Portland Group C compiler
9137 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'
9138 tmp_addflag=' $pic_flag'
9140 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9141 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'
9142 tmp_addflag=' $pic_flag -Mnomain' ;;
9143 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9144 tmp_addflag=' -i_dynamic' ;;
9145 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9146 tmp_addflag=' -i_dynamic -nofor_main' ;;
9147 ifc* | ifort*) # Intel Fortran compiler
9148 tmp_addflag=' -nofor_main' ;;
9150 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 if test $supports_anon_versioning = yes; then
9153 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9155 $echo "local: *; };" >> $output_objdir/$libname.ver~
9156 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9164 netbsd* | netbsdelf*-gnu)
9165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9169 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9175 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9180 *** create shared libraries on Solaris systems. Therefore, libtool
9181 *** is disabling shared libraries support. We urge you to upgrade GNU
9182 *** binutils to release 2.9.1 or newer. Another option is to modify
9183 *** your PATH or compiler configuration so that the native linker is
9184 *** used, and then restart.
9187 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9195 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9196 case `$LD -v 2>&1` in
9197 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9202 *** reliably create shared libraries on SCO systems. Therefore, libtool
9203 *** is disabling shared libraries support. We urge you to upgrade GNU
9204 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9205 *** your PATH or compiler configuration so that the native linker is
9206 *** used, and then restart.
9211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9212 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9226 hardcode_shlibpath_var=no
9230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9239 if test "$ld_shlibs" = no; then
9241 hardcode_libdir_flag_spec=
9242 export_dynamic_flag_spec=
9243 whole_archive_flag_spec=
9246 # PORTME fill in a description of your system's linker (not GNU ld)
9249 allow_undefined_flag=unsupported
9250 always_export_symbols=yes
9251 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'
9252 # Note: this linker hardcodes the directories in LIBPATH if there
9253 # are no directories specified by -L.
9254 hardcode_minus_L=yes
9255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9256 # Neither direct hardcoding nor static linking is supported with a
9258 hardcode_direct=unsupported
9263 if test "$host_cpu" = ia64; then
9264 # On IA64, the linker does run time linking by default, so we don't
9265 # have to do anything special.
9266 aix_use_runtimelinking=no
9267 exp_sym_flag='-Bexport'
9270 # If we're using GNU nm, then we don't want the "-C" option.
9271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9272 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9273 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'
9275 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'
9277 aix_use_runtimelinking=no
9279 # Test if we are trying to use run time linking or normal
9280 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9281 # need to do runtime linking.
9282 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9283 for ld_flag in $LDFLAGS; do
9284 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9285 aix_use_runtimelinking=yes
9292 exp_sym_flag='-bexport'
9293 no_entry_flag='-bnoentry'
9296 # When large executables or shared objects are built, AIX ld can
9297 # have problems creating the table of contents. If linking a library
9298 # or program results in "error TOC overflow" add -mminimal-toc to
9299 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9300 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9304 hardcode_libdir_separator=':'
9305 link_all_deplibs=yes
9307 if test "$GCC" = yes; then
9308 case $host_os in aix4.[012]|aix4.[012].*)
9309 # We only want to do this on AIX 4.2 and lower, the check
9310 # below for broken collect2 doesn't work under 4.3+
9311 collect2name=`${CC} -print-prog-name=collect2`
9312 if test -f "$collect2name" && \
9313 strings "$collect2name" | grep resolve_lib_name >/dev/null
9315 # We have reworked collect2
9318 # We have old collect2
9319 hardcode_direct=unsupported
9320 # It fails to find uninstalled libraries when the uninstalled
9321 # path is not listed in the libpath. Setting hardcode_minus_L
9322 # to unsupported forces relinking
9323 hardcode_minus_L=yes
9324 hardcode_libdir_flag_spec='-L$libdir'
9325 hardcode_libdir_separator=
9329 shared_flag='-shared'
9330 if test "$aix_use_runtimelinking" = yes; then
9331 shared_flag="$shared_flag "'${wl}-G'
9335 if test "$host_cpu" = ia64; then
9336 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9337 # chokes on -Wl,-G. The following line is correct:
9340 if test "$aix_use_runtimelinking" = yes; then
9341 shared_flag='${wl}-G'
9343 shared_flag='${wl}-bM:SRE'
9348 # It seems that -bexpall does not export symbols beginning with
9349 # underscore (_), so it is better to generate a list of symbols to export.
9350 always_export_symbols=yes
9351 if test "$aix_use_runtimelinking" = yes; then
9352 # Warning - without using the other runtime loading flags (-brtl),
9353 # -berok will link without error, but may produce a broken library.
9354 allow_undefined_flag='-berok'
9355 # Determine the default libpath from the value encoded in an empty executable.
9356 cat >conftest.$ac_ext <<_ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (ac_try="$ac_link"
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_link") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext &&
9388 $as_test_x conftest$ac_exeext; then
9390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9392 # Check for a 64-bit object if we didn't find anything.
9393 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; }
9396 echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403 conftest$ac_exeext conftest.$ac_ext
9404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9407 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"
9409 if test "$host_cpu" = ia64; then
9410 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9411 allow_undefined_flag="-z nodefs"
9412 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"
9414 # Determine the default libpath from the value encoded in an empty executable.
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (ac_try="$ac_link"
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437 (eval "$ac_link") 2>conftest.er1
9439 grep -v '^ *+' conftest.er1 >conftest.err
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } && {
9444 test -z "$ac_c_werror_flag" ||
9445 test ! -s conftest.err
9446 } && test -s conftest$ac_exeext &&
9447 $as_test_x conftest$ac_exeext; then
9449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9451 # Check for a 64-bit object if we didn't find anything.
9452 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; }
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9462 conftest$ac_exeext conftest.$ac_ext
9463 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9465 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9466 # Warning - without using the other run time loading flags,
9467 # -berok will link without error, but may produce a broken library.
9468 no_undefined_flag=' ${wl}-bernotok'
9469 allow_undefined_flag=' ${wl}-berok'
9470 # Exported symbols can be pulled into shared objects from archives
9471 whole_archive_flag_spec='$convenience'
9472 archive_cmds_need_lc=yes
9473 # This is similar to how AIX traditionally builds its shared libraries.
9474 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'
9480 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)'
9481 hardcode_libdir_flag_spec='-L$libdir'
9482 hardcode_minus_L=yes
9483 # see comment about different semantics on the GNU ld section
9488 export_dynamic_flag_spec=-rdynamic
9491 cygwin* | mingw* | pw32*)
9492 # When not using gcc, we currently assume that we are using
9493 # Microsoft Visual C++.
9494 # hardcode_libdir_flag_spec is actually meaningless, as there is
9495 # no search path for DLLs.
9496 hardcode_libdir_flag_spec=' '
9497 allow_undefined_flag=unsupported
9498 # Tell ltmain to make .lib files, not .a files.
9500 # Tell ltmain to make .dll files, not .so files.
9502 # FIXME: Setting linknames here is a bad hack.
9503 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9504 # The linker will automatically build a .lib file if we build a DLL.
9505 old_archive_From_new_cmds='true'
9506 # FIXME: Should let the user specify the lib program.
9507 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9508 fix_srcfile_path='`cygpath -w "$srcfile"`'
9509 enable_shared_with_static_runtimes=yes
9512 darwin* | rhapsody*)
9514 rhapsody* | darwin1.[012])
9515 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9518 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9519 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9521 case ${MACOSX_DEPLOYMENT_TARGET} in
9523 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9526 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9532 archive_cmds_need_lc=no
9534 hardcode_automatic=yes
9535 hardcode_shlibpath_var=unsupported
9536 whole_archive_flag_spec=''
9537 link_all_deplibs=yes
9538 if test "$GCC" = yes ; then
9539 output_verbose_link_cmd='echo'
9540 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9541 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9542 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9543 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}'
9544 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}'
9546 case $cc_basename in
9548 output_verbose_link_cmd='echo'
9549 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9550 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9551 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9552 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}'
9553 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}'
9563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-L$libdir'
9565 hardcode_shlibpath_var=no
9572 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9573 # support. Future versions do this automatically, but an explicit c++rt0.o
9574 # does not break anything, and helps significantly (at the cost of a little
9577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9578 hardcode_libdir_flag_spec='-R$libdir'
9580 hardcode_shlibpath_var=no
9583 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9587 hardcode_minus_L=yes
9588 hardcode_shlibpath_var=no
9591 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9592 freebsd* | dragonfly*)
9593 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9594 hardcode_libdir_flag_spec='-R$libdir'
9596 hardcode_shlibpath_var=no
9600 if test "$GCC" = yes; then
9601 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'
9603 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'
9605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9606 hardcode_libdir_separator=:
9609 # hardcode_minus_L: Not really in the search PATH,
9610 # but as the default location of the library.
9611 hardcode_minus_L=yes
9612 export_dynamic_flag_spec='${wl}-E'
9616 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9617 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9619 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9621 if test "$with_gnu_ld" = no; then
9622 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9623 hardcode_libdir_separator=:
9626 export_dynamic_flag_spec='${wl}-E'
9628 # hardcode_minus_L: Not really in the search PATH,
9629 # but as the default location of the library.
9630 hardcode_minus_L=yes
9635 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9638 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9641 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9644 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9650 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9653 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9660 if test "$with_gnu_ld" = no; then
9661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9662 hardcode_libdir_separator=:
9666 hardcode_libdir_flag_spec_ld='+b $libdir'
9668 hardcode_shlibpath_var=no
9672 export_dynamic_flag_spec='${wl}-E'
9674 # hardcode_minus_L: Not really in the search PATH,
9675 # but as the default location of the library.
9676 hardcode_minus_L=yes
9682 irix5* | irix6* | nonstopux*)
9683 if test "$GCC" = yes; then
9684 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'
9686 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'
9687 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9690 hardcode_libdir_separator=:
9691 link_all_deplibs=yes
9694 netbsd* | netbsdelf*-gnu)
9695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9698 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9700 hardcode_libdir_flag_spec='-R$libdir'
9702 hardcode_shlibpath_var=no
9706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709 hardcode_libdir_separator=:
9710 hardcode_shlibpath_var=no
9715 hardcode_shlibpath_var=no
9716 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9717 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9719 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9720 export_dynamic_flag_spec='${wl}-E'
9723 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_libdir_flag_spec='-R$libdir'
9728 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_minus_L=yes
9738 allow_undefined_flag=unsupported
9739 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'
9740 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9744 if test "$GCC" = yes; then
9745 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9746 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'
9748 allow_undefined_flag=' -expect_unresolved \*'
9749 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'
9751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9752 hardcode_libdir_separator=:
9755 osf4* | osf5*) # as osf3* with the addition of -msym flag
9756 if test "$GCC" = yes; then
9757 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9758 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'
9759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9761 allow_undefined_flag=' -expect_unresolved \*'
9762 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'
9763 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9764 $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'
9766 # Both c and cxx compiler support -rpath directly
9767 hardcode_libdir_flag_spec='-rpath $libdir'
9769 hardcode_libdir_separator=:
9773 no_undefined_flag=' -z text'
9774 if test "$GCC" = yes; then
9776 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9778 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9781 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9783 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9785 hardcode_libdir_flag_spec='-R$libdir'
9786 hardcode_shlibpath_var=no
9788 solaris2.[0-5] | solaris2.[0-5].*) ;;
9790 # The compiler driver will combine linker options so we
9791 # cannot just pass the convience library names through
9792 # without $wl, iff we do not link with $LD.
9793 # Luckily, gcc supports the same syntax we need for Sun Studio.
9794 # Supported since Solaris 2.6 (maybe 2.5.1?)
9797 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9799 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' ;;
9802 link_all_deplibs=yes
9806 if test "x$host_vendor" = xsequent; then
9807 # Use $CC to link under sequent, because it throws in some extra .o
9808 # files that make .init and .fini sections work.
9809 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9811 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9813 hardcode_libdir_flag_spec='-L$libdir'
9815 hardcode_minus_L=yes
9816 hardcode_shlibpath_var=no
9820 case $host_vendor in
9822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9823 hardcode_direct=yes # is this really true???
9826 ## LD is ld it makes a PLAMLIB
9827 ## CC just makes a GrossModule.
9828 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9829 reload_cmds='$CC -r -o $output$reload_objs'
9833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9834 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9837 runpath_var='LD_RUN_PATH'
9838 hardcode_shlibpath_var=no
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_shlibpath_var=no
9844 export_dynamic_flag_spec='-Bexport'
9848 if test -d /usr/nec; then
9849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850 hardcode_shlibpath_var=no
9851 runpath_var=LD_RUN_PATH
9852 hardcode_runpath_var=yes
9857 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9858 no_undefined_flag='${wl}-z,text'
9859 archive_cmds_need_lc=no
9860 hardcode_shlibpath_var=no
9861 runpath_var='LD_RUN_PATH'
9863 if test "$GCC" = yes; then
9864 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9867 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9872 sysv5* | sco3.2v5* | sco5v6*)
9873 # Note: We can NOT use -z defs as we might desire, because we do not
9874 # link with -lc, and that would cause any symbols used from libc to
9875 # always be unresolved, which means just about no library would
9876 # ever link correctly. If we're not using GNU ld we use -z text
9877 # though, which does catch some bad symbols but isn't as heavy-handed
9879 no_undefined_flag='${wl}-z,text'
9880 allow_undefined_flag='${wl}-z,nodefs'
9881 archive_cmds_need_lc=no
9882 hardcode_shlibpath_var=no
9883 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9884 hardcode_libdir_separator=':'
9885 link_all_deplibs=yes
9886 export_dynamic_flag_spec='${wl}-Bexport'
9887 runpath_var='LD_RUN_PATH'
9889 if test "$GCC" = yes; then
9890 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9893 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9894 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9900 hardcode_libdir_flag_spec='-L$libdir'
9901 hardcode_shlibpath_var=no
9910 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9911 echo "${ECHO_T}$ld_shlibs" >&6; }
9912 test "$ld_shlibs" = no && can_build_shared=no
9915 # Do we need to explicitly link libc?
9917 case "x$archive_cmds_need_lc" in
9919 # Assume -lc should be added
9920 archive_cmds_need_lc=yes
9922 if test "$enable_shared" = yes && test "$GCC" = yes; then
9923 case $archive_cmds in
9925 # FIXME: we may have to deal with multi-command sequences.
9928 # Test whether the compiler implicitly links with -lc since on some
9929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9930 # to ld, don't add -lc before -lgcc.
9931 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9932 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9937 (eval $ac_compile) 2>&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } 2>conftest.err; then
9943 libobjs=conftest.$ac_objext
9945 wl=$lt_prog_compiler_wl
9946 pic_flag=$lt_prog_compiler_pic
9952 lt_save_allow_undefined_flag=$allow_undefined_flag
9953 allow_undefined_flag=
9954 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9955 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); }
9960 archive_cmds_need_lc=no
9962 archive_cmds_need_lc=yes
9964 allow_undefined_flag=$lt_save_allow_undefined_flag
9966 cat conftest.err 1>&5
9969 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9970 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9977 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9978 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9980 libname_spec='lib$name'
9988 shlibpath_overrides_runpath=unknown
9990 dynamic_linker="$host_os ld.so"
9991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9992 if test "$GCC" = yes; then
9993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9995 # if the path contains ";" then we assume it to be the separator
9996 # otherwise default to the standard path separator (i.e. ":") - it is
9997 # assumed that no part of a normal pathname contains ";" but that should
9998 # okay in the real world where ";" in dirpaths is itself problematic.
9999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10006 need_lib_prefix=unknown
10007 hardcode_into_libs=no
10009 # when you set need_version to no, make sure it does not cause -set_version
10010 # flags to be left without arguments
10011 need_version=unknown
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10017 shlibpath_var=LIBPATH
10019 # AIX 3 has no versioning support, so we append a major version to the name.
10020 soname_spec='${libname}${release}${shared_ext}$major'
10027 hardcode_into_libs=yes
10028 if test "$host_cpu" = ia64; then
10029 # AIX 5 supports IA64
10030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10031 shlibpath_var=LD_LIBRARY_PATH
10033 # With GCC up to 2.95.x, collect2 would create an import file
10034 # for dependence libraries. The import file would start with
10035 # the line `#! .'. This would cause the generated library to
10036 # depend on `.', always an invalid library. This was fixed in
10037 # development snapshots of GCC prior to 3.0.
10039 aix4 | aix4.[01] | aix4.[01].*)
10040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10042 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10045 can_build_shared=no
10049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10050 # soname into executable. Probably we can add versioning support to
10051 # collect2, so additional links can be useful in future.
10052 if test "$aix_use_runtimelinking" = yes; then
10053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10054 # instead of lib<name>.a to let people know that these are not
10055 # typical AIX shared libraries.
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058 # We preserve .a as extension for shared libraries through AIX4.2
10059 # and later when we are not doing run time linking.
10060 library_names_spec='${libname}${release}.a $libname.a'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LIBPATH
10068 library_names_spec='$libname.ixlibrary $libname.a'
10069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10070 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'
10074 library_names_spec='${libname}${shared_ext}'
10075 dynamic_linker="$host_os ld.so"
10076 shlibpath_var=LIBRARY_PATH
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10085 shlibpath_var=LD_LIBRARY_PATH
10086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10088 # the default ld.so.conf also contains /usr/contrib/lib and
10089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10090 # libtool to hard-code these into programs
10093 cygwin* | mingw* | pw32*)
10094 version_type=windows
10099 case $GCC,$host_os in
10100 yes,cygwin* | yes,mingw* | yes,pw32*)
10101 library_names_spec='$libname.dll.a'
10102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10103 postinstall_cmds='base_file=`basename \${file}`~
10104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10105 dldir=$destdir/`dirname \$dlpath`~
10106 test -d \$dldir || mkdir -p \$dldir~
10107 $install_prog $dir/$dlname \$dldir/$dlname~
10108 chmod a+x \$dldir/$dlname'
10109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10110 dlpath=$dir/\$dldll~
10112 shlibpath_overrides_runpath=yes
10116 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10118 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10121 # MinGW DLLs use traditional 'lib' prefix
10122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10123 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10124 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10125 # It is most probably a Windows format PATH printed by
10126 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10127 # path with ; separators, and with drive letters. We can handle the
10128 # drive letters (cygwin fileutils understands them), so leave them,
10129 # especially as we might pass files found there to a mingw objdump,
10130 # which wouldn't understand a cygwinified path. Ahh.
10131 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10133 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10137 # pw32 DLLs use 'pw' prefix rather than 'lib'
10138 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10144 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10147 dynamic_linker='Win32 ld.exe'
10148 # FIXME: first we should search . and the directory the executable is in
10152 darwin* | rhapsody*)
10153 dynamic_linker="$host_os dyld"
10154 version_type=darwin
10157 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10158 soname_spec='${libname}${release}${major}$shared_ext'
10159 shlibpath_overrides_runpath=yes
10160 shlibpath_var=DYLD_LIBRARY_PATH
10161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10162 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10163 if test "$GCC" = yes; then
10164 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"`
10166 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10168 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 shlibpath_var=LD_LIBRARY_PATH
10184 freebsd* | dragonfly*)
10185 # DragonFly does not have aout. When/if they implement a new
10186 # versioning mechanism, adjust this.
10187 if test -x /usr/bin/objformat; then
10188 objformat=`/usr/bin/objformat`
10191 freebsd[123]*) objformat=aout ;;
10192 *) objformat=elf ;;
10195 version_type=freebsd-$objformat
10196 case $version_type in
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10207 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=yes
10212 freebsd3.[01]* | freebsdelf3.[01]*)
10213 shlibpath_overrides_runpath=yes
10214 hardcode_into_libs=yes
10216 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10217 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10218 shlibpath_overrides_runpath=no
10219 hardcode_into_libs=yes
10221 freebsd*) # from 4.6 on
10222 shlibpath_overrides_runpath=yes
10223 hardcode_into_libs=yes
10232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10233 soname_spec='${libname}${release}${shared_ext}$major'
10234 shlibpath_var=LD_LIBRARY_PATH
10235 hardcode_into_libs=yes
10238 hpux9* | hpux10* | hpux11*)
10239 # Give a soname corresponding to the major version so that dld.sl refuses to
10240 # link against other versions.
10247 hardcode_into_libs=yes
10248 dynamic_linker="$host_os dld.so"
10249 shlibpath_var=LD_LIBRARY_PATH
10250 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10252 soname_spec='${libname}${release}${shared_ext}$major'
10253 if test "X$HPUX_IA64_MODE" = X32; then
10254 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10258 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10262 hardcode_into_libs=yes
10263 dynamic_linker="$host_os dld.sl"
10264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 soname_spec='${libname}${release}${shared_ext}$major'
10268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10273 dynamic_linker="$host_os dld.sl"
10274 shlibpath_var=SHLIB_PATH
10275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10280 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10281 postinstall_cmds='chmod 555 $lib'
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10289 soname_spec='${libname}${release}${shared_ext}$major'
10290 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=no
10293 hardcode_into_libs=yes
10296 irix5* | irix6* | nonstopux*)
10298 nonstopux*) version_type=nonstopux ;;
10300 if test "$lt_cv_prog_gnu_ld" = yes; then
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10311 irix5* | nonstopux*)
10312 libsuff= shlibsuff=
10315 case $LD in # libtool.m4 will add one of these switches to LD
10316 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10317 libsuff= shlibsuff= libmagic=32-bit;;
10318 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10319 libsuff=32 shlibsuff=N32 libmagic=N32;;
10320 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10321 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10322 *) libsuff= shlibsuff= libmagic=never-match;;
10326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10327 shlibpath_overrides_runpath=no
10328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10330 hardcode_into_libs=yes
10333 # No shared lib support for Linux oldld, aout, or coff.
10334 linux*oldld* | linux*aout* | linux*coff*)
10338 # This must be Linux ELF.
10339 linux* | k*bsd*-gnu)
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 soname_spec='${libname}${release}${shared_ext}$major'
10345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10346 shlibpath_var=LD_LIBRARY_PATH
10347 shlibpath_overrides_runpath=no
10348 # This implies no fast_install, which is unacceptable.
10349 # Some rework will be needed to allow for fast_install
10350 # before this can be enabled.
10351 hardcode_into_libs=yes
10353 # Append ld.so.conf contents to the search path
10354 if test -f /etc/ld.so.conf; then
10355 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' ' '`
10356 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10359 # We used to test for /lib/ld.so.1 and disable shared libraries on
10360 # powerpc, because MkLinux only supported shared libraries with the
10361 # GNU dynamic linker. Since this was broken with cross compilers,
10362 # most powerpc-linux boxes support dynamic linking these days and
10363 # people can always --disable-shared, the test was removed, and we
10364 # assume the GNU/Linux dynamic linker is in use.
10365 dynamic_linker='GNU/Linux ld.so'
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 shlibpath_var=LD_LIBRARY_PATH
10375 shlibpath_overrides_runpath=no
10376 hardcode_into_libs=yes
10377 dynamic_linker='NetBSD ld.elf_so'
10384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10387 dynamic_linker='NetBSD (a.out) ld.so'
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 dynamic_linker='NetBSD ld.elf_so'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=yes
10395 hardcode_into_libs=yes
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=yes
10409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410 soname_spec='${libname}${release}${shared_ext}$major'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=yes
10417 sys_lib_dlsearch_path_spec="/usr/lib"
10419 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10421 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10422 *) need_version=no ;;
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10425 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10426 shlibpath_var=LD_LIBRARY_PATH
10427 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10429 openbsd2.[89] | openbsd2.[89].*)
10430 shlibpath_overrides_runpath=no
10433 shlibpath_overrides_runpath=yes
10437 shlibpath_overrides_runpath=yes
10442 libname_spec='$name'
10445 library_names_spec='$libname${shared_ext} $libname.a'
10446 dynamic_linker='OS/2 ld.exe'
10447 shlibpath_var=LIBPATH
10450 osf3* | osf4* | osf5*)
10454 soname_spec='${libname}${release}${shared_ext}$major'
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10458 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=yes
10469 hardcode_into_libs=yes
10470 # ldd complains unless libraries are executable
10471 postinstall_cmds='chmod +x $lib'
10476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10477 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10478 shlibpath_var=LD_LIBRARY_PATH
10479 shlibpath_overrides_runpath=yes
10480 if test "$with_gnu_ld" = yes; then
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 case $host_vendor in
10493 shlibpath_overrides_runpath=no
10495 export_dynamic_flag_spec='${wl}-Blargedynsym'
10496 runpath_var=LD_RUN_PATH
10504 shlibpath_overrides_runpath=no
10505 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10511 if test -d /usr/nec ;then
10513 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10514 soname_spec='$libname${shared_ext}.$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10520 version_type=freebsd-elf
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 hardcode_into_libs=yes
10527 if test "$with_gnu_ld" = yes; then
10528 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10529 shlibpath_overrides_runpath=no
10531 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10532 shlibpath_overrides_runpath=yes
10535 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10539 sys_lib_dlsearch_path_spec='/usr/lib'
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 shlibpath_var=LD_LIBRARY_PATH
10553 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10554 echo "${ECHO_T}$dynamic_linker" >&6; }
10555 test "$dynamic_linker" = no && can_build_shared=no
10557 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10558 if test "$GCC" = yes; then
10559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10562 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10563 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10565 if test -n "$hardcode_libdir_flag_spec" || \
10566 test -n "$runpath_var" || \
10567 test "X$hardcode_automatic" = "Xyes" ; then
10569 # We can hardcode non-existant directories.
10570 if test "$hardcode_direct" != no &&
10571 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10572 # have to relink, otherwise we might link with an installed library
10573 # when we should be linking with a yet-to-be-installed one
10574 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10575 test "$hardcode_minus_L" != no; then
10576 # Linking always hardcodes the temporary library directory.
10577 hardcode_action=relink
10579 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10580 hardcode_action=immediate
10583 # We cannot hardcode anything, or else we can only hardcode existing
10585 hardcode_action=unsupported
10587 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10588 echo "${ECHO_T}$hardcode_action" >&6; }
10590 if test "$hardcode_action" = relink; then
10591 # Fast installation is not supported
10592 enable_fast_install=no
10593 elif test "$shlibpath_overrides_runpath" = yes ||
10594 test "$enable_shared" = no; then
10595 # Fast installation is not necessary
10596 enable_fast_install=needless
10601 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10602 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10603 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10605 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10606 { echo "$as_me:$LINENO: result: yes" >&5
10607 echo "${ECHO_T}yes" >&6; }
10609 # FIXME - insert some real tests, host_os isn't really good enough
10612 if test -n "$STRIP" ; then
10613 striplib="$STRIP -x"
10614 { echo "$as_me:$LINENO: result: yes" >&5
10615 echo "${ECHO_T}yes" >&6; }
10617 { echo "$as_me:$LINENO: result: no" >&5
10618 echo "${ECHO_T}no" >&6; }
10622 { echo "$as_me:$LINENO: result: no" >&5
10623 echo "${ECHO_T}no" >&6; }
10628 if test "x$enable_dlopen" != xyes; then
10629 enable_dlopen=unknown
10630 enable_dlopen_self=unknown
10631 enable_dlopen_self_static=unknown
10638 lt_cv_dlopen="load_add_on"
10640 lt_cv_dlopen_self=yes
10644 lt_cv_dlopen="LoadLibrary"
10649 lt_cv_dlopen="dlopen"
10654 # if libdl is installed we need to link against it
10655 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10656 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10657 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10660 ac_check_lib_save_LIBS=$LIBS
10662 cat >conftest.$ac_ext <<_ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (ac_try="$ac_link"
10686 case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_link") 2>conftest.er1
10693 grep -v '^ *+' conftest.er1 >conftest.err
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && {
10698 test -z "$ac_c_werror_flag" ||
10699 test ! -s conftest.err
10700 } && test -s conftest$ac_exeext &&
10701 $as_test_x conftest$ac_exeext; then
10702 ac_cv_lib_dl_dlopen=yes
10704 echo "$as_me: failed program was:" >&5
10705 sed 's/^/| /' conftest.$ac_ext >&5
10707 ac_cv_lib_dl_dlopen=no
10710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10711 conftest$ac_exeext conftest.$ac_ext
10712 LIBS=$ac_check_lib_save_LIBS
10714 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10716 if test $ac_cv_lib_dl_dlopen = yes; then
10717 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10720 lt_cv_dlopen="dyld"
10722 lt_cv_dlopen_self=yes
10729 { echo "$as_me:$LINENO: checking for shl_load" >&5
10730 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10731 if test "${ac_cv_func_shl_load+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 cat >conftest.$ac_ext <<_ACEOF
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10740 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10742 #define shl_load innocuous_shl_load
10744 /* System header to define __stub macros and hopefully few prototypes,
10745 which can conflict with char shl_load (); below.
10746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10747 <limits.h> exists even on freestanding compilers. */
10750 # include <limits.h>
10752 # include <assert.h>
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10764 /* The GNU C library defines this for functions which it implements
10765 to always fail with ENOSYS. Some functions are actually named
10766 something starting with __ and the normal name is an alias. */
10767 #if defined __stub_shl_load || defined __stub___shl_load
10774 return shl_load ();
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
10788 grep -v '^ *+' conftest.er1 >conftest.err
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest$ac_exeext &&
10796 $as_test_x conftest$ac_exeext; then
10797 ac_cv_func_shl_load=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_cv_func_shl_load=no
10805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10806 conftest$ac_exeext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10809 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10810 if test $ac_cv_func_shl_load = yes; then
10811 lt_cv_dlopen="shl_load"
10813 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10814 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10815 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 ac_check_lib_save_LIBS=$LIBS
10820 cat >conftest.$ac_ext <<_ACEOF
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10837 return shl_load ();
10842 rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_link") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext &&
10859 $as_test_x conftest$ac_exeext; then
10860 ac_cv_lib_dld_shl_load=yes
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 ac_cv_lib_dld_shl_load=no
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS
10872 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10873 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10874 if test $ac_cv_lib_dld_shl_load = yes; then
10875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10877 { echo "$as_me:$LINENO: checking for dlopen" >&5
10878 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10879 if test "${ac_cv_func_dlopen+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 cat >conftest.$ac_ext <<_ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10890 #define dlopen innocuous_dlopen
10892 /* System header to define __stub macros and hopefully few prototypes,
10893 which can conflict with char dlopen (); below.
10894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895 <limits.h> exists even on freestanding compilers. */
10898 # include <limits.h>
10900 # include <assert.h>
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10912 /* The GNU C library defines this for functions which it implements
10913 to always fail with ENOSYS. Some functions are actually named
10914 something starting with __ and the normal name is an alias. */
10915 #if defined __stub_dlopen || defined __stub___dlopen
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 ac_cv_func_dlopen=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_func_dlopen=no
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10956 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10957 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10958 if test $ac_cv_func_dlopen = yes; then
10959 lt_cv_dlopen="dlopen"
10961 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10962 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10963 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 ac_check_lib_save_LIBS=$LIBS
10968 cat >conftest.$ac_ext <<_ACEOF
10971 cat confdefs.h >>conftest.$ac_ext
10972 cat >>conftest.$ac_ext <<_ACEOF
10973 /* end confdefs.h. */
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10990 rm -f conftest.$ac_objext conftest$ac_exeext
10991 if { (ac_try="$ac_link"
10992 case "(($ac_try" in
10993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10994 *) ac_try_echo=$ac_try;;
10996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10997 (eval "$ac_link") 2>conftest.er1
10999 grep -v '^ *+' conftest.er1 >conftest.err
11001 cat conftest.err >&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest$ac_exeext &&
11007 $as_test_x conftest$ac_exeext; then
11008 ac_cv_lib_dl_dlopen=yes
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_cv_lib_dl_dlopen=no
11016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11017 conftest$ac_exeext conftest.$ac_ext
11018 LIBS=$ac_check_lib_save_LIBS
11020 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11021 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11022 if test $ac_cv_lib_dl_dlopen = yes; then
11023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11025 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11026 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 ac_check_lib_save_LIBS=$LIBS
11031 LIBS="-lsvld $LIBS"
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11054 rm -f conftest.$ac_objext conftest$ac_exeext
11055 if { (ac_try="$ac_link"
11056 case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_link") 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest$ac_exeext &&
11071 $as_test_x conftest$ac_exeext; then
11072 ac_cv_lib_svld_dlopen=yes
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_cv_lib_svld_dlopen=no
11080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11081 conftest$ac_exeext conftest.$ac_ext
11082 LIBS=$ac_check_lib_save_LIBS
11084 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11085 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11086 if test $ac_cv_lib_svld_dlopen = yes; then
11087 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11089 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11090 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11091 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 ac_check_lib_save_LIBS=$LIBS
11096 cat >conftest.$ac_ext <<_ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11103 /* Override any GCC internal prototype to avoid an error.
11104 Use char because int might match the return type of a GCC
11105 builtin and then its argument prototype would still apply. */
11113 return dld_link ();
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && {
11132 test -z "$ac_c_werror_flag" ||
11133 test ! -s conftest.err
11134 } && test -s conftest$ac_exeext &&
11135 $as_test_x conftest$ac_exeext; then
11136 ac_cv_lib_dld_dld_link=yes
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 ac_cv_lib_dld_dld_link=no
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LIBS=$ac_check_lib_save_LIBS
11148 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11149 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11150 if test $ac_cv_lib_dld_dld_link = yes; then
11151 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11172 if test "x$lt_cv_dlopen" != xno; then
11178 case $lt_cv_dlopen in
11180 save_CPPFLAGS="$CPPFLAGS"
11181 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11183 save_LDFLAGS="$LDFLAGS"
11184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11187 LIBS="$lt_cv_dlopen_libs $LIBS"
11189 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11190 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11191 if test "${lt_cv_dlopen_self+set}" = set; then
11192 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 if test "$cross_compiling" = yes; then :
11195 lt_cv_dlopen_self=cross
11197 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11198 lt_status=$lt_dlunknown
11199 cat > conftest.$ac_ext <<EOF
11200 #line 11200 "configure"
11201 #include "confdefs.h"
11210 # define LT_DLGLOBAL RTLD_GLOBAL
11213 # define LT_DLGLOBAL DL_GLOBAL
11215 # define LT_DLGLOBAL 0
11219 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11220 find out it does not work in some platform. */
11221 #ifndef LT_DLLAZY_OR_NOW
11223 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11226 # define LT_DLLAZY_OR_NOW DL_LAZY
11229 # define LT_DLLAZY_OR_NOW RTLD_NOW
11232 # define LT_DLLAZY_OR_NOW DL_NOW
11234 # define LT_DLLAZY_OR_NOW 0
11242 extern "C" void exit (int);
11245 void fnord() { int i=42;}
11248 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11249 int status = $lt_dlunknown;
11253 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11254 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11255 /* dlclose (self); */
11263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11264 (eval $ac_link) 2>&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11268 (./conftest; exit; ) >&5 2>/dev/null
11270 case x$lt_status in
11271 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11272 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11273 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11276 # compilation failed
11277 lt_cv_dlopen_self=no
11284 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11285 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11287 if test "x$lt_cv_dlopen_self" = xyes; then
11288 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11289 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11290 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11291 if test "${lt_cv_dlopen_self_static+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 if test "$cross_compiling" = yes; then :
11295 lt_cv_dlopen_self_static=cross
11297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11298 lt_status=$lt_dlunknown
11299 cat > conftest.$ac_ext <<EOF
11300 #line 11300 "configure"
11301 #include "confdefs.h"
11310 # define LT_DLGLOBAL RTLD_GLOBAL
11313 # define LT_DLGLOBAL DL_GLOBAL
11315 # define LT_DLGLOBAL 0
11319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11320 find out it does not work in some platform. */
11321 #ifndef LT_DLLAZY_OR_NOW
11323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11326 # define LT_DLLAZY_OR_NOW DL_LAZY
11329 # define LT_DLLAZY_OR_NOW RTLD_NOW
11332 # define LT_DLLAZY_OR_NOW DL_NOW
11334 # define LT_DLLAZY_OR_NOW 0
11342 extern "C" void exit (int);
11345 void fnord() { int i=42;}
11348 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11349 int status = $lt_dlunknown;
11353 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11354 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11355 /* dlclose (self); */
11363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11364 (eval $ac_link) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11368 (./conftest; exit; ) >&5 2>/dev/null
11370 case x$lt_status in
11371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11373 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11376 # compilation failed
11377 lt_cv_dlopen_self_static=no
11384 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11388 CPPFLAGS="$save_CPPFLAGS"
11389 LDFLAGS="$save_LDFLAGS"
11394 case $lt_cv_dlopen_self in
11395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11396 *) enable_dlopen_self=unknown ;;
11399 case $lt_cv_dlopen_self_static in
11400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11401 *) enable_dlopen_self_static=unknown ;;
11406 # Report which library types will actually be built
11407 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11409 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11410 echo "${ECHO_T}$can_build_shared" >&6; }
11412 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11414 test "$can_build_shared" = "no" && enable_shared=no
11416 # On AIX, shared libraries and static libraries use the same namespace, and
11417 # are all built from PIC.
11420 test "$enable_shared" = yes && enable_static=no
11421 if test -n "$RANLIB"; then
11422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11423 postinstall_cmds='$RANLIB $lib'
11428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11429 test "$enable_shared" = yes && enable_static=no
11433 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11434 echo "${ECHO_T}$enable_shared" >&6; }
11436 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11438 # Make sure either enable_shared or enable_static is yes.
11439 test "$enable_shared" = yes || enable_static=yes
11440 { echo "$as_me:$LINENO: result: $enable_static" >&5
11441 echo "${ECHO_T}$enable_static" >&6; }
11443 # The else clause should only fire when bootstrapping the
11444 # libtool distribution, otherwise you forgot to ship ltmain.sh
11445 # with your package, and you will get complaints that there are
11446 # no rules to generate ltmain.sh.
11447 if test -f "$ltmain"; then
11448 # See if we are running on zsh, and set the options which allow our commands through
11449 # without removal of \ escapes.
11450 if test -n "${ZSH_VERSION+set}" ; then
11451 setopt NO_GLOB_SUBST
11453 # Now quote all the things that may contain metacharacters while being
11454 # careful not to overquote the AC_SUBSTed values. We take copies of the
11455 # variables and quote the copies for generation of the libtool script.
11456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11460 deplibs_check_method reload_flag reload_cmds need_locks \
11461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11462 lt_cv_sys_global_symbol_to_c_name_address \
11463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11464 old_postinstall_cmds old_postuninstall_cmds \
11468 lt_prog_compiler_wl \
11469 lt_prog_compiler_pic \
11470 lt_prog_compiler_static \
11471 lt_prog_compiler_no_builtin_flag \
11472 export_dynamic_flag_spec \
11473 thread_safe_flag_spec \
11474 whole_archive_flag_spec \
11475 enable_shared_with_static_runtimes \
11477 old_archive_from_new_cmds \
11482 compiler_lib_search_path \
11484 archive_expsym_cmds \
11486 postuninstall_cmds \
11487 old_archive_from_expsyms_cmds \
11488 allow_undefined_flag \
11489 no_undefined_flag \
11490 export_symbols_cmds \
11491 hardcode_libdir_flag_spec \
11492 hardcode_libdir_flag_spec_ld \
11493 hardcode_libdir_separator \
11494 hardcode_automatic \
11496 module_expsym_cmds \
11497 lt_cv_prog_compiler_c_o \
11499 include_expsyms; do
11502 old_archive_cmds | \
11503 old_archive_from_new_cmds | \
11505 archive_expsym_cmds | \
11507 module_expsym_cmds | \
11508 old_archive_from_expsyms_cmds | \
11509 export_symbols_cmds | \
11510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11511 postinstall_cmds | postuninstall_cmds | \
11512 old_postinstall_cmds | old_postuninstall_cmds | \
11513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11514 # Double-quote double-evaled strings.
11515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11524 *'\$0 --fallback-echo"')
11525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11529 cfgfile="${ofile}T"
11530 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11532 { echo "$as_me:$LINENO: creating $ofile" >&5
11533 echo "$as_me: creating $ofile" >&6;}
11535 cat <<__EOF__ >> "$cfgfile"
11538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11543 # Free Software Foundation, Inc.
11545 # This file is part of GNU Libtool:
11546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11548 # This program is free software; you can redistribute it and/or modify
11549 # it under the terms of the GNU General Public License as published by
11550 # the Free Software Foundation; either version 2 of the License, or
11551 # (at your option) any later version.
11553 # This program is distributed in the hope that it will be useful, but
11554 # WITHOUT ANY WARRANTY; without even the implied warranty of
11555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11556 # General Public License for more details.
11558 # You should have received a copy of the GNU General Public License
11559 # along with this program; if not, write to the Free Software
11560 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11562 # As a special exception to the GNU General Public License, if you
11563 # distribute this file as part of a program that contains a
11564 # configuration script generated by Autoconf, you may include it under
11565 # the same distribution terms that you use for the rest of that program.
11567 # A sed program that does not truncate output.
11570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11571 Xsed="$SED -e 1s/^X//"
11573 # The HP-UX ksh and POSIX shell print the target directory to stdout
11574 # if CDPATH is set.
11575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11577 # The names of the tagged configurations supported by this script.
11580 # ### BEGIN LIBTOOL CONFIG
11582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11584 # Shell to use when invoking shell scripts.
11587 # Whether or not to build shared libraries.
11588 build_libtool_libs=$enable_shared
11590 # Whether or not to build static libraries.
11591 build_old_libs=$enable_static
11593 # Whether or not to add -lc for building shared libraries.
11594 build_libtool_need_lc=$archive_cmds_need_lc
11596 # Whether or not to disallow shared libs when runtime libs are static
11597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11599 # Whether or not to optimize for fast installation.
11600 fast_install=$enable_fast_install
11603 host_alias=$host_alias
11607 # The build system.
11608 build_alias=$build_alias
11612 # An echo program that does not interpret backslashes.
11617 AR_FLAGS=$lt_AR_FLAGS
11622 # LTCC compiler flags.
11623 LTCFLAGS=$lt_LTCFLAGS
11625 # A language-specific compiler.
11628 # Is the compiler the GNU C compiler?
11634 # The linker used to build libraries.
11637 # Whether we need hard or soft links.
11640 # A BSD-compatible nm program.
11643 # A symbol stripping program
11646 # Used to examine libraries when file_magic_cmd begins "file"
11647 MAGIC_CMD=$MAGIC_CMD
11649 # Used on cygwin: DLL creation program.
11652 # Used on cygwin: object dumper.
11655 # Used on cygwin: assembler.
11658 # The name of the directory that contains temporary libtool files.
11661 # How to create reloadable object files.
11662 reload_flag=$lt_reload_flag
11663 reload_cmds=$lt_reload_cmds
11665 # How to pass a linker flag through the compiler.
11666 wl=$lt_lt_prog_compiler_wl
11668 # Object file suffix (normally "o").
11669 objext="$ac_objext"
11671 # Old archive suffix (normally "a").
11674 # Shared library suffix (normally ".so").
11675 shrext_cmds='$shrext_cmds'
11677 # Executable file suffix (normally "").
11680 # Additional compiler flags for building library objects.
11681 pic_flag=$lt_lt_prog_compiler_pic
11684 # What is the maximum length of a command?
11685 max_cmd_len=$lt_cv_sys_max_cmd_len
11687 # Does compiler simultaneously support -c and -o options?
11688 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11690 # Must we lock files when doing compilation?
11691 need_locks=$lt_need_locks
11693 # Do we need the lib prefix for modules?
11694 need_lib_prefix=$need_lib_prefix
11696 # Do we need a version for libraries?
11697 need_version=$need_version
11699 # Whether dlopen is supported.
11700 dlopen_support=$enable_dlopen
11702 # Whether dlopen of programs is supported.
11703 dlopen_self=$enable_dlopen_self
11705 # Whether dlopen of statically linked programs is supported.
11706 dlopen_self_static=$enable_dlopen_self_static
11708 # Compiler flag to prevent dynamic linking.
11709 link_static_flag=$lt_lt_prog_compiler_static
11711 # Compiler flag to turn off builtin functions.
11712 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11714 # Compiler flag to allow reflexive dlopens.
11715 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11717 # Compiler flag to generate shared objects directly from archives.
11718 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11720 # Compiler flag to generate thread-safe objects.
11721 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11723 # Library versioning type.
11724 version_type=$version_type
11726 # Format of library name prefix.
11727 libname_spec=$lt_libname_spec
11729 # List of archive names. First name is the real one, the rest are links.
11730 # The last name is the one that the linker finds with -lNAME.
11731 library_names_spec=$lt_library_names_spec
11733 # The coded name of the library, if different from the real name.
11734 soname_spec=$lt_soname_spec
11736 # Commands used to build and install an old-style archive.
11738 old_archive_cmds=$lt_old_archive_cmds
11739 old_postinstall_cmds=$lt_old_postinstall_cmds
11740 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11742 # Create an old-style archive from a shared archive.
11743 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11745 # Create a temporary old-style archive to link instead of a shared archive.
11746 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11748 # Commands used to build and install a shared archive.
11749 archive_cmds=$lt_archive_cmds
11750 archive_expsym_cmds=$lt_archive_expsym_cmds
11751 postinstall_cmds=$lt_postinstall_cmds
11752 postuninstall_cmds=$lt_postuninstall_cmds
11754 # Commands used to build a loadable module (assumed same as above if empty)
11755 module_cmds=$lt_module_cmds
11756 module_expsym_cmds=$lt_module_expsym_cmds
11758 # Commands to strip libraries.
11759 old_striplib=$lt_old_striplib
11760 striplib=$lt_striplib
11762 # Dependencies to place before the objects being linked to create a
11764 predep_objects=$lt_predep_objects
11766 # Dependencies to place after the objects being linked to create a
11768 postdep_objects=$lt_postdep_objects
11770 # Dependencies to place before the objects being linked to create a
11772 predeps=$lt_predeps
11774 # Dependencies to place after the objects being linked to create a
11776 postdeps=$lt_postdeps
11778 # The library search path used internally by the compiler when linking
11779 # a shared library.
11780 compiler_lib_search_path=$lt_compiler_lib_search_path
11782 # Method to check whether dependent libraries are shared objects.
11783 deplibs_check_method=$lt_deplibs_check_method
11785 # Command to use when deplibs_check_method == file_magic.
11786 file_magic_cmd=$lt_file_magic_cmd
11788 # Flag that allows shared libraries with undefined symbols to be built.
11789 allow_undefined_flag=$lt_allow_undefined_flag
11791 # Flag that forces no undefined symbols.
11792 no_undefined_flag=$lt_no_undefined_flag
11794 # Commands used to finish a libtool library installation in a directory.
11795 finish_cmds=$lt_finish_cmds
11797 # Same as above, but a single script fragment to be evaled but not shown.
11798 finish_eval=$lt_finish_eval
11800 # Take the output of nm and produce a listing of raw symbols and C names.
11801 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11803 # Transform the output of nm in a proper C declaration
11804 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11806 # Transform the output of nm in a C name address pair
11807 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11809 # This is the shared library runtime path variable.
11810 runpath_var=$runpath_var
11812 # This is the shared library path variable.
11813 shlibpath_var=$shlibpath_var
11815 # Is shlibpath searched before the hard-coded library search path?
11816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11818 # How to hardcode a shared library path into an executable.
11819 hardcode_action=$hardcode_action
11821 # Whether we should hardcode library paths into libraries.
11822 hardcode_into_libs=$hardcode_into_libs
11824 # Flag to hardcode \$libdir into a binary during linking.
11825 # This must work even if \$libdir does not exist.
11826 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11828 # If ld is used when linking, flag to hardcode \$libdir into
11829 # a binary during linking. This must work even if \$libdir does
11831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11833 # Whether we need a single -rpath flag with a separated argument.
11834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11836 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11837 # resulting binary.
11838 hardcode_direct=$hardcode_direct
11840 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11841 # resulting binary.
11842 hardcode_minus_L=$hardcode_minus_L
11844 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11845 # the resulting binary.
11846 hardcode_shlibpath_var=$hardcode_shlibpath_var
11848 # Set to yes if building a shared library automatically hardcodes DIR into the library
11849 # and all subsequent libraries and executables linked against it.
11850 hardcode_automatic=$hardcode_automatic
11852 # Variables whose values should be saved in libtool wrapper scripts and
11853 # restored at relink time.
11854 variables_saved_for_relink="$variables_saved_for_relink"
11856 # Whether libtool must link a program against all its dependency libraries.
11857 link_all_deplibs=$link_all_deplibs
11859 # Compile-time system search path for libraries
11860 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11862 # Run-time system search path for libraries
11863 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11865 # Fix the shell variable \$srcfile for the compiler.
11866 fix_srcfile_path="$fix_srcfile_path"
11868 # Set to yes if exported symbols are required.
11869 always_export_symbols=$always_export_symbols
11871 # The commands to list exported symbols.
11872 export_symbols_cmds=$lt_export_symbols_cmds
11874 # The commands to extract the exported symbol list from a shared archive.
11875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11877 # Symbols that should not be listed in the preloaded symbols.
11878 exclude_expsyms=$lt_exclude_expsyms
11880 # Symbols that must always be exported.
11881 include_expsyms=$lt_include_expsyms
11883 # ### END LIBTOOL CONFIG
11890 cat <<\EOF >> "$cfgfile"
11892 # AIX sometimes has problems with the GCC collect2 program. For some
11893 # reason, if we set the COLLECT_NAMES environment variable, the problems
11894 # vanish in a puff of smoke.
11895 if test "X${COLLECT_NAMES+set}" != Xset; then
11897 export COLLECT_NAMES
11903 # We use sed instead of cat because bash on DJGPP gets confused if
11904 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11905 # text mode, it properly converts lines to CR/LF. This bash problem
11906 # is reportedly fixed, but why not run on old versions too?
11907 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11909 mv -f "$cfgfile" "$ofile" || \
11910 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11914 # If there is no Makefile yet, we rely on a make rule to execute
11915 # `config.status --recheck' to rerun these tests and create the
11916 # libtool script then.
11917 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11918 if test -f "$ltmain_in"; then
11919 test -f Makefile && make "$ltmain"
11925 ac_cpp='$CPP $CPPFLAGS'
11926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11933 # Check whether --with-tags was given.
11934 if test "${with_tags+set}" = set; then
11935 withval=$with_tags; tagnames="$withval"
11939 if test -f "$ltmain" && test -n "$tagnames"; then
11940 if test ! -f "${ofile}"; then
11941 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11942 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11945 if test -z "$LTCC"; then
11946 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11947 if test -z "$LTCC"; then
11948 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11949 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11951 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11952 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11955 if test -z "$LTCFLAGS"; then
11956 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11959 # Extract list of available tagged configurations in $ofile.
11960 # Note that this assumes the entire list is on one line.
11961 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11963 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11964 for tagname in $tagnames; do
11966 # Check whether tagname contains only valid characters
11967 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11969 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11970 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11971 { (exit 1); exit 1; }; }
11975 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11977 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11978 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11979 { (exit 1); exit 1; }; }
11982 # Update the list of available tags.
11983 if test -n "$tagname"; then
11984 echo appending configuration tag \"$tagname\" to $ofile
11988 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11989 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11990 (test "X$CXX" != "Xg++"))) ; then
11992 ac_cpp='$CXXCPP $CPPFLAGS'
11993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12000 archive_cmds_need_lc_CXX=no
12001 allow_undefined_flag_CXX=
12002 always_export_symbols_CXX=no
12003 archive_expsym_cmds_CXX=
12004 export_dynamic_flag_spec_CXX=
12005 hardcode_direct_CXX=no
12006 hardcode_libdir_flag_spec_CXX=
12007 hardcode_libdir_flag_spec_ld_CXX=
12008 hardcode_libdir_separator_CXX=
12009 hardcode_minus_L_CXX=no
12010 hardcode_shlibpath_var_CXX=unsupported
12011 hardcode_automatic_CXX=no
12013 module_expsym_cmds_CXX=
12014 link_all_deplibs_CXX=unknown
12015 old_archive_cmds_CXX=$old_archive_cmds
12016 no_undefined_flag_CXX=
12017 whole_archive_flag_spec_CXX=
12018 enable_shared_with_static_runtimes_CXX=no
12020 # Dependencies to place before and after the object being linked:
12021 predep_objects_CXX=
12022 postdep_objects_CXX=
12025 compiler_lib_search_path_CXX=
12027 # Source file extension for C++ test sources.
12030 # Object file extension for compiled C++ test sources.
12034 # Code to be used in simple compile tests
12035 lt_simple_compile_test_code="int some_variable = 0;\n"
12037 # Code to be used in simple link tests
12038 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
12040 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12042 # If no C compiler was specified, use CC.
12045 # If no C compiler flags were specified, use CFLAGS.
12046 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12048 # Allow CC to be a program name with arguments.
12052 # save warnings/boilerplate of simple test code
12053 ac_outfile=conftest.$ac_objext
12054 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12055 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12056 _lt_compiler_boilerplate=`cat conftest.err`
12059 ac_outfile=conftest.$ac_objext
12060 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12061 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12062 _lt_linker_boilerplate=`cat conftest.err`
12066 # Allow CC to be a program name with arguments.
12071 lt_save_with_gnu_ld=$with_gnu_ld
12072 lt_save_path_LD=$lt_cv_path_LD
12073 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12074 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12076 $as_unset lt_cv_prog_gnu_ld
12078 if test -n "${lt_cv_path_LDCXX+set}"; then
12079 lt_cv_path_LD=$lt_cv_path_LDCXX
12081 $as_unset lt_cv_path_LD
12083 test -z "${LDCXX+set}" || LD=$LDCXX
12087 for cc_temp in $compiler""; do
12089 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12090 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12095 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12098 # We don't want -fno-exception wen compiling C++ code, so set the
12099 # no_builtin_flag separately
12100 if test "$GXX" = yes; then
12101 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12103 lt_prog_compiler_no_builtin_flag_CXX=
12106 if test "$GXX" = yes; then
12107 # Set up default GNU C++ configuration
12110 # Check whether --with-gnu-ld was given.
12111 if test "${with_gnu_ld+set}" = set; then
12112 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12118 if test "$GCC" = yes; then
12119 # Check if gcc -print-prog-name=ld gives a path.
12120 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12121 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12124 # gcc leaves a trailing carriage return which upsets mingw
12125 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12127 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12130 # Accept absolute paths.
12132 re_direlt='/[^/][^/]*/\.\./'
12133 # Canonicalize the pathname of ld
12134 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12135 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12136 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12138 test -z "$LD" && LD="$ac_prog"
12141 # If it fails, then pretend we aren't using GCC.
12145 # If it is relative, then search for the first ld in PATH.
12146 with_gnu_ld=unknown
12149 elif test "$with_gnu_ld" = yes; then
12150 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12151 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12153 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12154 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12156 if test "${lt_cv_path_LD+set}" = set; then
12157 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 if test -z "$LD"; then
12160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12161 for ac_dir in $PATH; do
12163 test -z "$ac_dir" && ac_dir=.
12164 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12165 lt_cv_path_LD="$ac_dir/$ac_prog"
12166 # Check to see if the program is GNU ld. I'd rather use --version,
12167 # but apparently some variants of GNU ld only accept -v.
12168 # Break only if it was the GNU/non-GNU ld that we prefer.
12169 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12170 *GNU* | *'with BFD'*)
12171 test "$with_gnu_ld" != no && break
12174 test "$with_gnu_ld" != yes && break
12181 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12185 LD="$lt_cv_path_LD"
12186 if test -n "$LD"; then
12187 { echo "$as_me:$LINENO: result: $LD" >&5
12188 echo "${ECHO_T}$LD" >&6; }
12190 { echo "$as_me:$LINENO: result: no" >&5
12191 echo "${ECHO_T}no" >&6; }
12193 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12194 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12195 { (exit 1); exit 1; }; }
12196 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12197 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12198 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12202 case `$LD -v 2>&1 </dev/null` in
12203 *GNU* | *'with BFD'*)
12204 lt_cv_prog_gnu_ld=yes
12207 lt_cv_prog_gnu_ld=no
12211 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12212 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12213 with_gnu_ld=$lt_cv_prog_gnu_ld
12217 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12218 # archiving commands below assume that GNU ld is being used.
12219 if test "$with_gnu_ld" = yes; then
12220 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12221 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'
12223 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12226 # If archive_cmds runs LD, not CC, wlarc should be empty
12227 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12228 # investigate it a little bit more. (MM)
12231 # ancient GNU ld didn't support --whole-archive et. al.
12232 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12233 grep 'no-whole-archive' > /dev/null; then
12234 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12236 whole_archive_flag_spec_CXX=
12242 # A generic and very simple default shared library creation
12243 # command for GNU C++ for the case where it uses the native
12244 # linker, instead of GNU ld. If possible, this setting should
12245 # overridden to take advantage of the native linker features on
12246 # the platform it is being used on.
12247 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12250 # Commands to make compiler produce verbose output that lists
12251 # what "hidden" libraries, object files and flags are used when
12252 # linking a shared library.
12253 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12261 # PORTME: fill in a description of your system's C++ link characteristics
12262 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12263 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12267 # FIXME: insert proper C++ library support
12271 if test "$host_cpu" = ia64; then
12272 # On IA64, the linker does run time linking by default, so we don't
12273 # have to do anything special.
12274 aix_use_runtimelinking=no
12275 exp_sym_flag='-Bexport'
12278 aix_use_runtimelinking=no
12280 # Test if we are trying to use run time linking or normal
12281 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12282 # need to do runtime linking.
12283 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12284 for ld_flag in $LDFLAGS; do
12287 aix_use_runtimelinking=yes
12295 exp_sym_flag='-bexport'
12296 no_entry_flag='-bnoentry'
12299 # When large executables or shared objects are built, AIX ld can
12300 # have problems creating the table of contents. If linking a library
12301 # or program results in "error TOC overflow" add -mminimal-toc to
12302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12305 archive_cmds_CXX=''
12306 hardcode_direct_CXX=yes
12307 hardcode_libdir_separator_CXX=':'
12308 link_all_deplibs_CXX=yes
12310 if test "$GXX" = yes; then
12311 case $host_os in aix4.[012]|aix4.[012].*)
12312 # We only want to do this on AIX 4.2 and lower, the check
12313 # below for broken collect2 doesn't work under 4.3+
12314 collect2name=`${CC} -print-prog-name=collect2`
12315 if test -f "$collect2name" && \
12316 strings "$collect2name" | grep resolve_lib_name >/dev/null
12318 # We have reworked collect2
12319 hardcode_direct_CXX=yes
12321 # We have old collect2
12322 hardcode_direct_CXX=unsupported
12323 # It fails to find uninstalled libraries when the uninstalled
12324 # path is not listed in the libpath. Setting hardcode_minus_L
12325 # to unsupported forces relinking
12326 hardcode_minus_L_CXX=yes
12327 hardcode_libdir_flag_spec_CXX='-L$libdir'
12328 hardcode_libdir_separator_CXX=
12332 shared_flag='-shared'
12333 if test "$aix_use_runtimelinking" = yes; then
12334 shared_flag="$shared_flag "'${wl}-G'
12338 if test "$host_cpu" = ia64; then
12339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12340 # chokes on -Wl,-G. The following line is correct:
12343 if test "$aix_use_runtimelinking" = yes; then
12344 shared_flag='${wl}-G'
12346 shared_flag='${wl}-bM:SRE'
12351 # It seems that -bexpall does not export symbols beginning with
12352 # underscore (_), so it is better to generate a list of symbols to export.
12353 always_export_symbols_CXX=yes
12354 if test "$aix_use_runtimelinking" = yes; then
12355 # Warning - without using the other runtime loading flags (-brtl),
12356 # -berok will link without error, but may produce a broken library.
12357 allow_undefined_flag_CXX='-berok'
12358 # Determine the default libpath from the value encoded in an empty executable.
12359 cat >conftest.$ac_ext <<_ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h. */
12374 rm -f conftest.$ac_objext conftest$ac_exeext
12375 if { (ac_try="$ac_link"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_link") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } && {
12388 test -z "$ac_cxx_werror_flag" ||
12389 test ! -s conftest.err
12390 } && test -s conftest$ac_exeext &&
12391 $as_test_x conftest$ac_exeext; then
12393 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12395 # Check for a 64-bit object if we didn't find anything.
12396 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; }
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12406 conftest$ac_exeext conftest.$ac_ext
12407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12409 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12411 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"
12413 if test "$host_cpu" = ia64; then
12414 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12415 allow_undefined_flag_CXX="-z nodefs"
12416 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"
12418 # Determine the default libpath from the value encoded in an empty executable.
12419 cat >conftest.$ac_ext <<_ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } && {
12448 test -z "$ac_cxx_werror_flag" ||
12449 test ! -s conftest.err
12450 } && test -s conftest$ac_exeext &&
12451 $as_test_x conftest$ac_exeext; then
12453 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12455 # Check for a 64-bit object if we didn't find anything.
12456 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; }
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12466 conftest$ac_exeext conftest.$ac_ext
12467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12469 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12470 # Warning - without using the other run time loading flags,
12471 # -berok will link without error, but may produce a broken library.
12472 no_undefined_flag_CXX=' ${wl}-bernotok'
12473 allow_undefined_flag_CXX=' ${wl}-berok'
12474 # Exported symbols can be pulled into shared objects from archives
12475 whole_archive_flag_spec_CXX='$convenience'
12476 archive_cmds_need_lc_CXX=yes
12477 # This is similar to how AIX traditionally builds its shared libraries.
12478 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'
12484 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12485 allow_undefined_flag_CXX=unsupported
12486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12487 # support --undefined. This deserves some investigation. FIXME
12488 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12495 case $cc_basename in
12497 # FIXME: insert proper C++ library support
12503 cygwin* | mingw* | pw32*)
12504 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12505 # as there is no search path for DLLs.
12506 hardcode_libdir_flag_spec_CXX='-L$libdir'
12507 allow_undefined_flag_CXX=unsupported
12508 always_export_symbols_CXX=no
12509 enable_shared_with_static_runtimes_CXX=yes
12511 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12512 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'
12513 # If the export-symbols file already is a .def file (1st line
12514 # is EXPORTS), use it as is; otherwise, prepend...
12515 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12516 cp $export_symbols $output_objdir/$soname.def;
12518 echo EXPORTS > $output_objdir/$soname.def;
12519 cat $export_symbols >> $output_objdir/$soname.def;
12521 $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'
12526 darwin* | rhapsody*)
12528 rhapsody* | darwin1.[012])
12529 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12533 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12535 case ${MACOSX_DEPLOYMENT_TARGET} in
12537 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12540 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12546 archive_cmds_need_lc_CXX=no
12547 hardcode_direct_CXX=no
12548 hardcode_automatic_CXX=yes
12549 hardcode_shlibpath_var_CXX=unsupported
12550 whole_archive_flag_spec_CXX=''
12551 link_all_deplibs_CXX=yes
12553 if test "$GXX" = yes ; then
12554 lt_int_apple_cc_single_mod=no
12555 output_verbose_link_cmd='echo'
12556 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12557 lt_int_apple_cc_single_mod=yes
12559 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12560 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12562 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'
12564 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12566 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12567 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}'
12569 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}'
12571 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}'
12573 case $cc_basename in
12575 output_verbose_link_cmd='echo'
12576 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'
12577 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12578 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12579 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}'
12580 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}'
12590 case $cc_basename in
12592 # FIXME: insert proper C++ library support
12596 # Green Hills C++ Compiler
12597 # FIXME: insert proper C++ library support
12601 # FIXME: insert proper C++ library support
12607 # C++ shared libraries reported to be fairly broken before switch to ELF
12611 archive_cmds_need_lc_CXX=no
12613 freebsd* | dragonfly*)
12614 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12622 hardcode_libdir_separator_CXX=:
12623 export_dynamic_flag_spec_CXX='${wl}-E'
12624 hardcode_direct_CXX=yes
12625 hardcode_minus_L_CXX=yes # Not in the search PATH,
12626 # but as the default
12627 # location of the library.
12629 case $cc_basename in
12631 # FIXME: insert proper C++ library support
12635 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'
12636 # Commands to make compiler produce verbose output that lists
12637 # what "hidden" libraries, object files and flags are used when
12638 # linking a shared library.
12640 # There doesn't appear to be a way to prevent this compiler from
12641 # explicitly linking system object files so we need to strip them
12642 # from the output so that they don't get included in the library
12644 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'
12647 if test "$GXX" = yes; then
12648 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'
12650 # FIXME: insert proper C++ library support
12657 if test $with_gnu_ld = no; then
12658 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12659 hardcode_libdir_separator_CXX=:
12663 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12666 export_dynamic_flag_spec_CXX='${wl}-E'
12672 hardcode_direct_CXX=no
12673 hardcode_shlibpath_var_CXX=no
12676 hardcode_direct_CXX=yes
12677 hardcode_minus_L_CXX=yes # Not in the search PATH,
12678 # but as the default
12679 # location of the library.
12683 case $cc_basename in
12685 # FIXME: insert proper C++ library support
12691 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12700 # Commands to make compiler produce verbose output that lists
12701 # what "hidden" libraries, object files and flags are used when
12702 # linking a shared library.
12704 # There doesn't appear to be a way to prevent this compiler from
12705 # explicitly linking system object files so we need to strip them
12706 # from the output so that they don't get included in the library
12708 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'
12711 if test "$GXX" = yes; then
12712 if test $with_gnu_ld = no; then
12715 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12718 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12721 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'
12726 # FIXME: insert proper C++ library support
12733 hardcode_direct_CXX=no
12734 hardcode_shlibpath_var_CXX=no
12735 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12736 export_dynamic_flag_spec_CXX='${wl}-E'
12737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12738 # Instead, shared libraries are loaded at an image base (0x10000000 by
12739 # default) and relocated if they conflict, which is a slow very memory
12740 # consuming and fragmenting process. To avoid this, we pick a random,
12741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12743 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'
12744 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'
12747 case $cc_basename in
12750 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'
12752 # Archives containing C++ object files must be created using
12753 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12754 # necessary to make sure instantiated templates are included
12756 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12759 if test "$GXX" = yes; then
12760 if test "$with_gnu_ld" = no; then
12761 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'
12763 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'
12766 link_all_deplibs_CXX=yes
12769 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12770 hardcode_libdir_separator_CXX=:
12772 linux* | k*bsd*-gnu)
12773 case $cc_basename in
12775 # Kuck and Associates, Inc. (KAI) C++ Compiler
12777 # KCC will only create a shared library if the output file
12778 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12779 # to its proper name (with version) after linking.
12780 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'
12781 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'
12782 # Commands to make compiler produce verbose output that lists
12783 # what "hidden" libraries, object files and flags are used when
12784 # linking a shared library.
12786 # There doesn't appear to be a way to prevent this compiler from
12787 # explicitly linking system object files so we need to strip them
12788 # from the output so that they don't get included in the library
12790 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'
12792 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12795 # Archives containing C++ object files must be created using
12796 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12797 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12802 # version 8.0 and above of icpc choke on multiply defined symbols
12803 # if we add $predep_objects and $postdep_objects, however 7.1 and
12804 # earlier do not add the objects themselves.
12805 case `$CC -V 2>&1` in
12807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12808 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'
12810 *) # Version 8.0 or newer
12813 ia64*) tmp_idyn=' -i_dynamic';;
12815 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12816 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'
12819 archive_cmds_need_lc_CXX=no
12820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12821 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12822 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12825 # Portland Group C++ compiler
12826 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12827 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'
12829 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12830 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12831 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'
12835 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12836 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'
12838 runpath_var=LD_RUN_PATH
12839 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12840 hardcode_libdir_separator_CXX=:
12842 # Commands to make compiler produce verbose output that lists
12843 # what "hidden" libraries, object files and flags are used when
12844 # linking a shared library.
12846 # There doesn't appear to be a way to prevent this compiler from
12847 # explicitly linking system object files so we need to strip them
12848 # from the output so that they don't get included in the library
12850 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'
12855 # FIXME: insert proper C++ library support
12859 # FIXME: insert proper C++ library support
12863 case $cc_basename in
12865 # FIXME: insert proper C++ library support
12869 # FIXME: insert proper C++ library support
12874 netbsd* | netbsdelf*-gnu)
12875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12876 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12878 hardcode_libdir_flag_spec_CXX='-R$libdir'
12879 hardcode_direct_CXX=yes
12880 hardcode_shlibpath_var_CXX=no
12882 # Workaround some broken pre-1.5 toolchains
12883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12886 # C++ shared libraries are fairly broken
12890 hardcode_direct_CXX=yes
12891 hardcode_shlibpath_var_CXX=no
12892 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12893 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12894 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12895 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12896 export_dynamic_flag_spec_CXX='${wl}-E'
12897 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12899 output_verbose_link_cmd='echo'
12902 case $cc_basename in
12904 # Kuck and Associates, Inc. (KAI) C++ Compiler
12906 # KCC will only create a shared library if the output file
12907 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12908 # to its proper name (with version) after linking.
12909 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'
12911 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12912 hardcode_libdir_separator_CXX=:
12914 # Archives containing C++ object files must be created using
12915 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12916 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12920 # Rational C++ 2.4.1
12921 # FIXME: insert proper C++ library support
12925 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12926 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'
12928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12929 hardcode_libdir_separator_CXX=:
12931 # Commands to make compiler produce verbose output that lists
12932 # what "hidden" libraries, object files and flags are used when
12933 # linking a shared library.
12935 # There doesn't appear to be a way to prevent this compiler from
12936 # explicitly linking system object files so we need to strip them
12937 # from the output so that they don't get included in the library
12939 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'
12942 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12943 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12944 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'
12946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12947 hardcode_libdir_separator_CXX=:
12949 # Commands to make compiler produce verbose output that lists
12950 # what "hidden" libraries, object files and flags are used when
12951 # linking a shared library.
12952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12955 # FIXME: insert proper C++ library support
12962 case $cc_basename in
12964 # Kuck and Associates, Inc. (KAI) C++ Compiler
12966 # KCC will only create a shared library if the output file
12967 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12968 # to its proper name (with version) after linking.
12969 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'
12971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12972 hardcode_libdir_separator_CXX=:
12974 # Archives containing C++ object files must be created using
12975 # the KAI C++ compiler.
12976 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12979 # Rational C++ 2.4.1
12980 # FIXME: insert proper C++ library support
12984 allow_undefined_flag_CXX=' -expect_unresolved \*'
12985 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'
12986 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12987 echo "-hidden">> $lib.exp~
12988 $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~
12991 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12992 hardcode_libdir_separator_CXX=:
12994 # Commands to make compiler produce verbose output that lists
12995 # what "hidden" libraries, object files and flags are used when
12996 # linking a shared library.
12998 # There doesn't appear to be a way to prevent this compiler from
12999 # explicitly linking system object files so we need to strip them
13000 # from the output so that they don't get included in the library
13002 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'
13005 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13006 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13007 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'
13009 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13010 hardcode_libdir_separator_CXX=:
13012 # Commands to make compiler produce verbose output that lists
13013 # what "hidden" libraries, object files and flags are used when
13014 # linking a shared library.
13015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13018 # FIXME: insert proper C++ library support
13025 # FIXME: insert proper C++ library support
13029 case $cc_basename in
13032 # FIXME: insert proper C++ library support
13037 # FIXME: insert proper C++ library support
13041 # FIXME: insert proper C++ library support
13047 case $cc_basename in
13049 # Sun C++ 4.2, 5.x and Centerline C++
13050 archive_cmds_need_lc_CXX=yes
13051 no_undefined_flag_CXX=' -zdefs'
13052 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13053 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13054 $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'
13056 hardcode_libdir_flag_spec_CXX='-R$libdir'
13057 hardcode_shlibpath_var_CXX=no
13059 solaris2.[0-5] | solaris2.[0-5].*) ;;
13061 # The C++ compiler is used as linker so we must use $wl
13062 # flag to pass the commands to the underlying system
13063 # linker. We must also pass each convience library through
13064 # to the system linker between allextract/defaultextract.
13065 # The C++ compiler will combine linker options so we
13066 # cannot just pass the convience library names through
13068 # Supported since Solaris 2.6 (maybe 2.5.1?)
13069 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'
13072 link_all_deplibs_CXX=yes
13074 output_verbose_link_cmd='echo'
13076 # Archives containing C++ object files must be created using
13077 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13078 # necessary to make sure instantiated templates are included
13080 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13083 # Green Hills C++ Compiler
13084 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13086 # The C++ compiler must be used to create the archive.
13087 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13090 # GNU C++ compiler with Solaris linker
13091 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13092 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13093 if $CC --version | grep -v '^2\.7' > /dev/null; then
13094 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13095 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13096 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13098 # Commands to make compiler produce verbose output that lists
13099 # what "hidden" libraries, object files and flags are used when
13100 # linking a shared library.
13101 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13103 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13105 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13106 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13107 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13109 # Commands to make compiler produce verbose output that lists
13110 # what "hidden" libraries, object files and flags are used when
13111 # linking a shared library.
13112 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13115 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13120 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13121 no_undefined_flag_CXX='${wl}-z,text'
13122 archive_cmds_need_lc_CXX=no
13123 hardcode_shlibpath_var_CXX=no
13124 runpath_var='LD_RUN_PATH'
13126 case $cc_basename in
13128 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13129 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13132 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13133 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13137 sysv5* | sco3.2v5* | sco5v6*)
13138 # Note: We can NOT use -z defs as we might desire, because we do not
13139 # link with -lc, and that would cause any symbols used from libc to
13140 # always be unresolved, which means just about no library would
13141 # ever link correctly. If we're not using GNU ld we use -z text
13142 # though, which does catch some bad symbols but isn't as heavy-handed
13144 # For security reasons, it is highly recommended that you always
13145 # use absolute paths for naming shared libraries, and exclude the
13146 # DT_RUNPATH tag from executables and libraries. But doing so
13147 # requires that you compile everything twice, which is a pain.
13148 # So that behaviour is only enabled if SCOABSPATH is set to a
13149 # non-empty value in the environment. Most likely only useful for
13150 # creating official distributions of packages.
13151 # This is a hack until libtool officially supports absolute path
13152 # names for shared libraries.
13153 no_undefined_flag_CXX='${wl}-z,text'
13154 allow_undefined_flag_CXX='${wl}-z,nodefs'
13155 archive_cmds_need_lc_CXX=no
13156 hardcode_shlibpath_var_CXX=no
13157 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13158 hardcode_libdir_separator_CXX=':'
13159 link_all_deplibs_CXX=yes
13160 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13161 runpath_var='LD_RUN_PATH'
13163 case $cc_basename in
13165 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13166 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13169 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13170 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13175 case $cc_basename in
13177 # NonStop-UX NCC 3.20
13178 # FIXME: insert proper C++ library support
13182 # FIXME: insert proper C++ library support
13188 # FIXME: insert proper C++ library support
13192 # FIXME: insert proper C++ library support
13196 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13197 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13198 test "$ld_shlibs_CXX" = no && can_build_shared=no
13204 cat > conftest.$ac_ext <<EOF
13208 Foo (void) { a = 0; }
13214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13215 (eval $ac_compile) 2>&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; then
13219 # Parse the compiler output and extract the necessary
13220 # objects, libraries and library flags.
13222 # Sentinel used to keep track of whether or not we are before
13223 # the conftest object file.
13224 pre_test_object_deps_done=no
13226 # The `*' in the case matches for architectures that use `case' in
13227 # $output_verbose_cmd can trigger glob expansion during the loop
13228 # eval without this substitution.
13229 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
13231 for p in `eval $output_verbose_link_cmd`; do
13235 # Some compilers place space between "-{L,R}" and the path.
13236 # Remove the space.
13237 if test $p = "-L" \
13238 || test $p = "-R"; then
13245 if test "$pre_test_object_deps_done" = no; then
13248 # Internal compiler library paths should come after those
13249 # provided the user. The postdeps already come after the
13250 # user supplied libs so there is no need to process them.
13251 if test -z "$compiler_lib_search_path_CXX"; then
13252 compiler_lib_search_path_CXX="${prev}${p}"
13254 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13257 # The "-l" case would never come before the object being
13258 # linked, so don't bother handling this case.
13261 if test -z "$postdeps_CXX"; then
13262 postdeps_CXX="${prev}${p}"
13264 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13270 # This assumes that the test object file only shows up
13271 # once in the compiler output.
13272 if test "$p" = "conftest.$objext"; then
13273 pre_test_object_deps_done=yes
13277 if test "$pre_test_object_deps_done" = no; then
13278 if test -z "$predep_objects_CXX"; then
13279 predep_objects_CXX="$p"
13281 predep_objects_CXX="$predep_objects_CXX $p"
13284 if test -z "$postdep_objects_CXX"; then
13285 postdep_objects_CXX="$p"
13287 postdep_objects_CXX="$postdep_objects_CXX $p"
13292 *) ;; # Ignore the rest.
13300 echo "libtool.m4: error: problem compiling CXX test program"
13303 $rm -f confest.$objext
13305 # PORTME: override above test on systems where it is broken
13308 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13309 # hack all around it, let's just trust "g++" to DTRT.
13310 predep_objects_CXX=
13311 postdep_objects_CXX=
13316 case $cc_basename in
13318 # Adding this requires a known-good setup of shared libraries for
13319 # Sun compiler versions before 5.6, else PIC objects from an old
13320 # archive will be linked into the output, leading to subtle bugs.
13321 postdeps_CXX='-lCstd -lCrun'
13328 case " $postdeps_CXX " in
13329 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13332 lt_prog_compiler_wl_CXX=
13333 lt_prog_compiler_pic_CXX=
13334 lt_prog_compiler_static_CXX=
13336 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13337 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13339 # C++ specific cases for pic, static, wl, etc.
13340 if test "$GXX" = yes; then
13341 lt_prog_compiler_wl_CXX='-Wl,'
13342 lt_prog_compiler_static_CXX='-static'
13346 # All AIX code is PIC.
13347 if test "$host_cpu" = ia64; then
13348 # AIX 5 now supports IA64 processor
13349 lt_prog_compiler_static_CXX='-Bstatic'
13353 # FIXME: we need at least 68020 code to build shared libraries, but
13354 # adding the `-m68020' flag to GCC prevents building anything better,
13356 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13358 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13359 # PIC is the default for these OSes.
13361 mingw* | os2* | pw32*)
13362 # This hack is so that the source file can tell whether it is being
13363 # built for inclusion in a dll (and should export symbols for example).
13364 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13366 darwin* | rhapsody*)
13367 # PIC is the default on this platform
13368 # Common symbols not allowed in MH_DYLIB files
13369 lt_prog_compiler_pic_CXX='-fno-common'
13372 # DJGPP does not support shared libraries at all
13373 lt_prog_compiler_pic_CXX=
13376 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13377 # Instead, we relocate shared libraries at runtime.
13380 if test -d /usr/nec; then
13381 lt_prog_compiler_pic_CXX=-Kconform_pic
13385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13386 # not for PA HP-UX.
13391 lt_prog_compiler_pic_CXX='-fPIC'
13396 lt_prog_compiler_pic_CXX='-fPIC'
13402 # All AIX code is PIC.
13403 if test "$host_cpu" = ia64; then
13404 # AIX 5 now supports IA64 processor
13405 lt_prog_compiler_static_CXX='-Bstatic'
13407 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13411 case $cc_basename in
13413 # Green Hills C++ Compiler
13414 # _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"
13419 # PIC is the default on this platform
13420 # Common symbols not allowed in MH_DYLIB files
13421 case $cc_basename in
13423 lt_prog_compiler_pic_CXX='-qnocommon'
13424 lt_prog_compiler_wl_CXX='-Wl,'
13429 case $cc_basename in
13431 lt_prog_compiler_pic_CXX='-KPIC'
13434 # Green Hills C++ Compiler
13435 lt_prog_compiler_pic_CXX='-pic'
13441 freebsd* | dragonfly*)
13442 # FreeBSD uses GNU C++
13444 hpux9* | hpux10* | hpux11*)
13445 case $cc_basename in
13447 lt_prog_compiler_wl_CXX='-Wl,'
13448 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13449 if test "$host_cpu" != ia64; then
13450 lt_prog_compiler_pic_CXX='+Z'
13454 lt_prog_compiler_wl_CXX='-Wl,'
13455 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13461 lt_prog_compiler_pic_CXX='+Z'
13470 # This is c89, which is MS Visual C++ (no shared libs)
13471 # Anyone wants to do a port?
13473 irix5* | irix6* | nonstopux*)
13474 case $cc_basename in
13476 lt_prog_compiler_wl_CXX='-Wl,'
13477 lt_prog_compiler_static_CXX='-non_shared'
13478 # CC pic flag -KPIC is the default.
13484 linux* | k*bsd*-gnu)
13485 case $cc_basename in
13488 lt_prog_compiler_wl_CXX='--backend -Wl,'
13489 lt_prog_compiler_pic_CXX='-fPIC'
13493 lt_prog_compiler_wl_CXX='-Wl,'
13494 lt_prog_compiler_pic_CXX='-KPIC'
13495 lt_prog_compiler_static_CXX='-static'
13498 # Portland Group C++ compiler.
13499 lt_prog_compiler_wl_CXX='-Wl,'
13500 lt_prog_compiler_pic_CXX='-fpic'
13501 lt_prog_compiler_static_CXX='-Bstatic'
13505 # Make sure the PIC flag is empty. It appears that all Alpha
13506 # Linux and Compaq Tru64 Unix objects are PIC.
13507 lt_prog_compiler_pic_CXX=
13508 lt_prog_compiler_static_CXX='-non_shared'
13519 case $cc_basename in
13521 lt_prog_compiler_pic_CXX='-W c,exportall'
13527 netbsd* | netbsdelf*-gnu)
13529 osf3* | osf4* | osf5*)
13530 case $cc_basename in
13532 lt_prog_compiler_wl_CXX='--backend -Wl,'
13535 # Rational C++ 2.4.1
13536 lt_prog_compiler_pic_CXX='-pic'
13539 # Digital/Compaq C++
13540 lt_prog_compiler_wl_CXX='-Wl,'
13541 # Make sure the PIC flag is empty. It appears that all Alpha
13542 # Linux and Compaq Tru64 Unix objects are PIC.
13543 lt_prog_compiler_pic_CXX=
13544 lt_prog_compiler_static_CXX='-non_shared'
13553 case $cc_basename in
13555 # Sun C++ 4.2, 5.x and Centerline C++
13556 lt_prog_compiler_pic_CXX='-KPIC'
13557 lt_prog_compiler_static_CXX='-Bstatic'
13558 lt_prog_compiler_wl_CXX='-Qoption ld '
13561 # Green Hills C++ Compiler
13562 lt_prog_compiler_pic_CXX='-PIC'
13569 case $cc_basename in
13572 lt_prog_compiler_pic_CXX='-pic'
13573 lt_prog_compiler_static_CXX='-Bstatic'
13577 lt_prog_compiler_pic_CXX='-pic'
13584 case $cc_basename in
13586 # NonStop-UX NCC 3.20
13587 lt_prog_compiler_pic_CXX='-KPIC'
13593 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13594 case $cc_basename in
13596 lt_prog_compiler_wl_CXX='-Wl,'
13597 lt_prog_compiler_pic_CXX='-KPIC'
13598 lt_prog_compiler_static_CXX='-Bstatic'
13605 lt_prog_compiler_can_build_shared_CXX=no
13610 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13611 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13614 # Check to make sure the PIC flag actually works.
13616 if test -n "$lt_prog_compiler_pic_CXX"; then
13618 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13619 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13620 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13623 lt_prog_compiler_pic_works_CXX=no
13624 ac_outfile=conftest.$ac_objext
13625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13626 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13627 # Insert the option either (1) after the last *FLAGS variable, or
13628 # (2) before a word containing "conftest.", or (3) at the end.
13629 # Note that $ac_compile itself does not contain backslashes and begins
13630 # with a dollar sign (not a hyphen), so the echo should work correctly.
13631 # The option is referenced via a variable to avoid confusing sed.
13632 lt_compile=`echo "$ac_compile" | $SED \
13633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13635 -e 's:$: $lt_compiler_flag:'`
13636 (eval echo "\"\$as_me:13636: $lt_compile\"" >&5)
13637 (eval "$lt_compile" 2>conftest.err)
13639 cat conftest.err >&5
13640 echo "$as_me:13640: \$? = $ac_status" >&5
13641 if (exit $ac_status) && test -s "$ac_outfile"; then
13642 # The compiler can only warn and ignore the option if not recognized
13643 # So say no if there are warnings other than the usual output.
13644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13647 lt_prog_compiler_pic_works_CXX=yes
13653 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13654 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13656 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13657 case $lt_prog_compiler_pic_CXX in
13659 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13662 lt_prog_compiler_pic_CXX=
13663 lt_prog_compiler_can_build_shared_CXX=no
13668 # For platforms which do not support PIC, -DPIC is meaningless:
13670 lt_prog_compiler_pic_CXX=
13673 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13678 # Check to make sure the static flag actually works.
13680 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13681 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13682 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13683 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13684 echo $ECHO_N "(cached) $ECHO_C" >&6
13686 lt_prog_compiler_static_works_CXX=no
13687 save_LDFLAGS="$LDFLAGS"
13688 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13689 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13691 # The linker can only warn and ignore the option if not recognized
13692 # So say no if there are warnings
13693 if test -s conftest.err; then
13694 # Append any errors to the config.log.
13695 cat conftest.err 1>&5
13696 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13698 if diff conftest.exp conftest.er2 >/dev/null; then
13699 lt_prog_compiler_static_works_CXX=yes
13702 lt_prog_compiler_static_works_CXX=yes
13706 LDFLAGS="$save_LDFLAGS"
13709 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13710 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13712 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13715 lt_prog_compiler_static_CXX=
13719 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13720 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13721 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 lt_cv_prog_compiler_c_o_CXX=no
13725 $rm -r conftest 2>/dev/null
13729 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13731 lt_compiler_flag="-o out/conftest2.$ac_objext"
13732 # Insert the option either (1) after the last *FLAGS variable, or
13733 # (2) before a word containing "conftest.", or (3) at the end.
13734 # Note that $ac_compile itself does not contain backslashes and begins
13735 # with a dollar sign (not a hyphen), so the echo should work correctly.
13736 lt_compile=`echo "$ac_compile" | $SED \
13737 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13738 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13739 -e 's:$: $lt_compiler_flag:'`
13740 (eval echo "\"\$as_me:13740: $lt_compile\"" >&5)
13741 (eval "$lt_compile" 2>out/conftest.err)
13743 cat out/conftest.err >&5
13744 echo "$as_me:13744: \$? = $ac_status" >&5
13745 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13747 # The compiler can only warn and ignore the option if not recognized
13748 # So say no if there are warnings
13749 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13750 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13751 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13752 lt_cv_prog_compiler_c_o_CXX=yes
13757 # SGI C++ compiler will create directory out/ii_files/ for
13758 # template instantiation
13759 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13760 $rm out/* && rmdir out
13766 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13767 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13770 hard_links="nottested"
13771 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13772 # do not overwrite the value of need_locks provided by the user
13773 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13779 ln conftest.a conftest.b 2>&5 || hard_links=no
13780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13781 { echo "$as_me:$LINENO: result: $hard_links" >&5
13782 echo "${ECHO_T}$hard_links" >&6; }
13783 if test "$hard_links" = no; then
13784 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13792 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13793 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13795 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13798 # If we're using GNU nm, then we don't want the "-C" option.
13799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13800 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13801 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'
13803 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'
13807 export_symbols_cmds_CXX="$ltdll_cmds"
13810 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'
13812 linux* | k*bsd*-gnu)
13813 link_all_deplibs_CXX=no
13816 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13820 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13821 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13822 test "$ld_shlibs_CXX" = no && can_build_shared=no
13825 # Do we need to explicitly link libc?
13827 case "x$archive_cmds_need_lc_CXX" in
13829 # Assume -lc should be added
13830 archive_cmds_need_lc_CXX=yes
13832 if test "$enable_shared" = yes && test "$GCC" = yes; then
13833 case $archive_cmds_CXX in
13835 # FIXME: we may have to deal with multi-command sequences.
13838 # Test whether the compiler implicitly links with -lc since on some
13839 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13840 # to ld, don't add -lc before -lgcc.
13841 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13842 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13844 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13847 (eval $ac_compile) 2>&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } 2>conftest.err; then
13853 libobjs=conftest.$ac_objext
13855 wl=$lt_prog_compiler_wl_CXX
13856 pic_flag=$lt_prog_compiler_pic_CXX
13862 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13863 allow_undefined_flag_CXX=
13864 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13865 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); }
13870 archive_cmds_need_lc_CXX=no
13872 archive_cmds_need_lc_CXX=yes
13874 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13876 cat conftest.err 1>&5
13879 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13880 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13887 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13888 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13889 library_names_spec=
13890 libname_spec='lib$name'
13894 postuninstall_cmds=
13898 shlibpath_overrides_runpath=unknown
13900 dynamic_linker="$host_os ld.so"
13901 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13902 if test "$GCC" = yes; then
13903 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13904 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13905 # if the path contains ";" then we assume it to be the separator
13906 # otherwise default to the standard path separator (i.e. ":") - it is
13907 # assumed that no part of a normal pathname contains ";" but that should
13908 # okay in the real world where ";" in dirpaths is itself problematic.
13909 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13911 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13914 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13916 need_lib_prefix=unknown
13917 hardcode_into_libs=no
13919 # when you set need_version to no, make sure it does not cause -set_version
13920 # flags to be left without arguments
13921 need_version=unknown
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13927 shlibpath_var=LIBPATH
13929 # AIX 3 has no versioning support, so we append a major version to the name.
13930 soname_spec='${libname}${release}${shared_ext}$major'
13937 hardcode_into_libs=yes
13938 if test "$host_cpu" = ia64; then
13939 # AIX 5 supports IA64
13940 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13941 shlibpath_var=LD_LIBRARY_PATH
13943 # With GCC up to 2.95.x, collect2 would create an import file
13944 # for dependence libraries. The import file would start with
13945 # the line `#! .'. This would cause the generated library to
13946 # depend on `.', always an invalid library. This was fixed in
13947 # development snapshots of GCC prior to 3.0.
13949 aix4 | aix4.[01] | aix4.[01].*)
13950 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13952 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13955 can_build_shared=no
13959 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13960 # soname into executable. Probably we can add versioning support to
13961 # collect2, so additional links can be useful in future.
13962 if test "$aix_use_runtimelinking" = yes; then
13963 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13964 # instead of lib<name>.a to let people know that these are not
13965 # typical AIX shared libraries.
13966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 # We preserve .a as extension for shared libraries through AIX4.2
13969 # and later when we are not doing run time linking.
13970 library_names_spec='${libname}${release}.a $libname.a'
13971 soname_spec='${libname}${release}${shared_ext}$major'
13973 shlibpath_var=LIBPATH
13978 library_names_spec='$libname.ixlibrary $libname.a'
13979 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13980 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'
13984 library_names_spec='${libname}${shared_ext}'
13985 dynamic_linker="$host_os ld.so"
13986 shlibpath_var=LIBRARY_PATH
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13993 soname_spec='${libname}${release}${shared_ext}$major'
13994 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13997 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13998 # the default ld.so.conf also contains /usr/contrib/lib and
13999 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14000 # libtool to hard-code these into programs
14003 cygwin* | mingw* | pw32*)
14004 version_type=windows
14009 case $GCC,$host_os in
14010 yes,cygwin* | yes,mingw* | yes,pw32*)
14011 library_names_spec='$libname.dll.a'
14012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14013 postinstall_cmds='base_file=`basename \${file}`~
14014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14015 dldir=$destdir/`dirname \$dlpath`~
14016 test -d \$dldir || mkdir -p \$dldir~
14017 $install_prog $dir/$dlname \$dldir/$dlname~
14018 chmod a+x \$dldir/$dlname'
14019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14020 dlpath=$dir/\$dldll~
14022 shlibpath_overrides_runpath=yes
14026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14028 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14031 # MinGW DLLs use traditional 'lib' prefix
14032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14034 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14035 # It is most probably a Windows format PATH printed by
14036 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14037 # path with ; separators, and with drive letters. We can handle the
14038 # drive letters (cygwin fileutils understands them), so leave them,
14039 # especially as we might pass files found there to a mingw objdump,
14040 # which wouldn't understand a cygwinified path. Ahh.
14041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14043 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14047 # pw32 DLLs use 'pw' prefix rather than 'lib'
14048 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14054 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14057 dynamic_linker='Win32 ld.exe'
14058 # FIXME: first we should search . and the directory the executable is in
14062 darwin* | rhapsody*)
14063 dynamic_linker="$host_os dyld"
14064 version_type=darwin
14067 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14068 soname_spec='${libname}${release}${major}$shared_ext'
14069 shlibpath_overrides_runpath=yes
14070 shlibpath_var=DYLD_LIBRARY_PATH
14071 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14072 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14073 if test "$GCC" = yes; then
14074 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"`
14076 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14078 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 shlibpath_var=LD_LIBRARY_PATH
14094 freebsd* | dragonfly*)
14095 # DragonFly does not have aout. When/if they implement a new
14096 # versioning mechanism, adjust this.
14097 if test -x /usr/bin/objformat; then
14098 objformat=`/usr/bin/objformat`
14101 freebsd[123]*) objformat=aout ;;
14102 *) objformat=elf ;;
14105 version_type=freebsd-$objformat
14106 case $version_type in
14108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14117 shlibpath_var=LD_LIBRARY_PATH
14120 shlibpath_overrides_runpath=yes
14122 freebsd3.[01]* | freebsdelf3.[01]*)
14123 shlibpath_overrides_runpath=yes
14124 hardcode_into_libs=yes
14126 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14127 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14128 shlibpath_overrides_runpath=no
14129 hardcode_into_libs=yes
14131 freebsd*) # from 4.6 on
14132 shlibpath_overrides_runpath=yes
14133 hardcode_into_libs=yes
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14143 soname_spec='${libname}${release}${shared_ext}$major'
14144 shlibpath_var=LD_LIBRARY_PATH
14145 hardcode_into_libs=yes
14148 hpux9* | hpux10* | hpux11*)
14149 # Give a soname corresponding to the major version so that dld.sl refuses to
14150 # link against other versions.
14157 hardcode_into_libs=yes
14158 dynamic_linker="$host_os dld.so"
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162 soname_spec='${libname}${release}${shared_ext}$major'
14163 if test "X$HPUX_IA64_MODE" = X32; then
14164 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14166 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14172 hardcode_into_libs=yes
14173 dynamic_linker="$host_os dld.sl"
14174 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14183 dynamic_linker="$host_os dld.sl"
14184 shlibpath_var=SHLIB_PATH
14185 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14187 soname_spec='${libname}${release}${shared_ext}$major'
14190 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14191 postinstall_cmds='chmod 555 $lib'
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14201 shlibpath_var=LD_LIBRARY_PATH
14202 shlibpath_overrides_runpath=no
14203 hardcode_into_libs=yes
14206 irix5* | irix6* | nonstopux*)
14208 nonstopux*) version_type=nonstopux ;;
14210 if test "$lt_cv_prog_gnu_ld" = yes; then
14218 soname_spec='${libname}${release}${shared_ext}$major'
14219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14221 irix5* | nonstopux*)
14222 libsuff= shlibsuff=
14225 case $LD in # libtool.m4 will add one of these switches to LD
14226 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14227 libsuff= shlibsuff= libmagic=32-bit;;
14228 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14229 libsuff=32 shlibsuff=N32 libmagic=N32;;
14230 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14231 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14232 *) libsuff= shlibsuff= libmagic=never-match;;
14236 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14237 shlibpath_overrides_runpath=no
14238 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14239 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14240 hardcode_into_libs=yes
14243 # No shared lib support for Linux oldld, aout, or coff.
14244 linux*oldld* | linux*aout* | linux*coff*)
14248 # This must be Linux ELF.
14249 linux* | k*bsd*-gnu)
14253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254 soname_spec='${libname}${release}${shared_ext}$major'
14255 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 shlibpath_overrides_runpath=no
14258 # This implies no fast_install, which is unacceptable.
14259 # Some rework will be needed to allow for fast_install
14260 # before this can be enabled.
14261 hardcode_into_libs=yes
14263 # Append ld.so.conf contents to the search path
14264 if test -f /etc/ld.so.conf; then
14265 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' ' '`
14266 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14269 # We used to test for /lib/ld.so.1 and disable shared libraries on
14270 # powerpc, because MkLinux only supported shared libraries with the
14271 # GNU dynamic linker. Since this was broken with cross compilers,
14272 # most powerpc-linux boxes support dynamic linking these days and
14273 # people can always --disable-shared, the test was removed, and we
14274 # assume the GNU/Linux dynamic linker is in use.
14275 dynamic_linker='GNU/Linux ld.so'
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 shlibpath_overrides_runpath=no
14286 hardcode_into_libs=yes
14287 dynamic_linker='NetBSD ld.elf_so'
14294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14297 dynamic_linker='NetBSD (a.out) ld.so'
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14300 soname_spec='${libname}${release}${shared_ext}$major'
14301 dynamic_linker='NetBSD ld.elf_so'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=yes
14305 hardcode_into_libs=yes
14310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14311 shlibpath_var=LD_LIBRARY_PATH
14312 shlibpath_overrides_runpath=yes
14319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 shlibpath_var=LD_LIBRARY_PATH
14322 shlibpath_overrides_runpath=yes
14327 sys_lib_dlsearch_path_spec="/usr/lib"
14329 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14331 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14332 *) need_version=no ;;
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14339 openbsd2.[89] | openbsd2.[89].*)
14340 shlibpath_overrides_runpath=no
14343 shlibpath_overrides_runpath=yes
14347 shlibpath_overrides_runpath=yes
14352 libname_spec='$name'
14355 library_names_spec='$libname${shared_ext} $libname.a'
14356 dynamic_linker='OS/2 ld.exe'
14357 shlibpath_var=LIBPATH
14360 osf3* | osf4* | osf5*)
14364 soname_spec='${libname}${release}${shared_ext}$major'
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 shlibpath_var=LD_LIBRARY_PATH
14367 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14368 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14376 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LD_LIBRARY_PATH
14378 shlibpath_overrides_runpath=yes
14379 hardcode_into_libs=yes
14380 # ldd complains unless libraries are executable
14381 postinstall_cmds='chmod +x $lib'
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14388 shlibpath_var=LD_LIBRARY_PATH
14389 shlibpath_overrides_runpath=yes
14390 if test "$with_gnu_ld" = yes; then
14398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14399 soname_spec='${libname}${release}${shared_ext}$major'
14400 shlibpath_var=LD_LIBRARY_PATH
14401 case $host_vendor in
14403 shlibpath_overrides_runpath=no
14405 export_dynamic_flag_spec='${wl}-Blargedynsym'
14406 runpath_var=LD_RUN_PATH
14414 shlibpath_overrides_runpath=no
14415 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14421 if test -d /usr/nec ;then
14423 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14424 soname_spec='$libname${shared_ext}.$major'
14425 shlibpath_var=LD_LIBRARY_PATH
14429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14430 version_type=freebsd-elf
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 hardcode_into_libs=yes
14437 if test "$with_gnu_ld" = yes; then
14438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14439 shlibpath_overrides_runpath=no
14441 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14442 shlibpath_overrides_runpath=yes
14445 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14449 sys_lib_dlsearch_path_spec='/usr/lib'
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14456 shlibpath_var=LD_LIBRARY_PATH
14463 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14464 echo "${ECHO_T}$dynamic_linker" >&6; }
14465 test "$dynamic_linker" = no && can_build_shared=no
14467 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14468 if test "$GCC" = yes; then
14469 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14472 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14473 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
14474 hardcode_action_CXX=
14475 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14476 test -n "$runpath_var_CXX" || \
14477 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14479 # We can hardcode non-existant directories.
14480 if test "$hardcode_direct_CXX" != no &&
14481 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14482 # have to relink, otherwise we might link with an installed library
14483 # when we should be linking with a yet-to-be-installed one
14484 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14485 test "$hardcode_minus_L_CXX" != no; then
14486 # Linking always hardcodes the temporary library directory.
14487 hardcode_action_CXX=relink
14489 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14490 hardcode_action_CXX=immediate
14493 # We cannot hardcode anything, or else we can only hardcode existing
14495 hardcode_action_CXX=unsupported
14497 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14498 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
14500 if test "$hardcode_action_CXX" = relink; then
14501 # Fast installation is not supported
14502 enable_fast_install=no
14503 elif test "$shlibpath_overrides_runpath" = yes ||
14504 test "$enable_shared" = no; then
14505 # Fast installation is not necessary
14506 enable_fast_install=needless
14510 # The else clause should only fire when bootstrapping the
14511 # libtool distribution, otherwise you forgot to ship ltmain.sh
14512 # with your package, and you will get complaints that there are
14513 # no rules to generate ltmain.sh.
14514 if test -f "$ltmain"; then
14515 # See if we are running on zsh, and set the options which allow our commands through
14516 # without removal of \ escapes.
14517 if test -n "${ZSH_VERSION+set}" ; then
14518 setopt NO_GLOB_SUBST
14520 # Now quote all the things that may contain metacharacters while being
14521 # careful not to overquote the AC_SUBSTed values. We take copies of the
14522 # variables and quote the copies for generation of the libtool script.
14523 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14525 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14526 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14527 deplibs_check_method reload_flag reload_cmds need_locks \
14528 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14529 lt_cv_sys_global_symbol_to_c_name_address \
14530 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14531 old_postinstall_cmds old_postuninstall_cmds \
14535 lt_prog_compiler_wl_CXX \
14536 lt_prog_compiler_pic_CXX \
14537 lt_prog_compiler_static_CXX \
14538 lt_prog_compiler_no_builtin_flag_CXX \
14539 export_dynamic_flag_spec_CXX \
14540 thread_safe_flag_spec_CXX \
14541 whole_archive_flag_spec_CXX \
14542 enable_shared_with_static_runtimes_CXX \
14543 old_archive_cmds_CXX \
14544 old_archive_from_new_cmds_CXX \
14545 predep_objects_CXX \
14546 postdep_objects_CXX \
14549 compiler_lib_search_path_CXX \
14551 archive_expsym_cmds_CXX \
14552 postinstall_cmds_CXX \
14553 postuninstall_cmds_CXX \
14554 old_archive_from_expsyms_cmds_CXX \
14555 allow_undefined_flag_CXX \
14556 no_undefined_flag_CXX \
14557 export_symbols_cmds_CXX \
14558 hardcode_libdir_flag_spec_CXX \
14559 hardcode_libdir_flag_spec_ld_CXX \
14560 hardcode_libdir_separator_CXX \
14561 hardcode_automatic_CXX \
14563 module_expsym_cmds_CXX \
14564 lt_cv_prog_compiler_c_o_CXX \
14565 exclude_expsyms_CXX \
14566 include_expsyms_CXX; do
14569 old_archive_cmds_CXX | \
14570 old_archive_from_new_cmds_CXX | \
14571 archive_cmds_CXX | \
14572 archive_expsym_cmds_CXX | \
14573 module_cmds_CXX | \
14574 module_expsym_cmds_CXX | \
14575 old_archive_from_expsyms_cmds_CXX | \
14576 export_symbols_cmds_CXX | \
14577 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14578 postinstall_cmds | postuninstall_cmds | \
14579 old_postinstall_cmds | old_postuninstall_cmds | \
14580 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14581 # Double-quote double-evaled strings.
14582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14585 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14591 *'\$0 --fallback-echo"')
14592 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14598 cat <<__EOF__ >> "$cfgfile"
14599 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14601 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14603 # Shell to use when invoking shell scripts.
14606 # Whether or not to build shared libraries.
14607 build_libtool_libs=$enable_shared
14609 # Whether or not to build static libraries.
14610 build_old_libs=$enable_static
14612 # Whether or not to add -lc for building shared libraries.
14613 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14615 # Whether or not to disallow shared libs when runtime libs are static
14616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14618 # Whether or not to optimize for fast installation.
14619 fast_install=$enable_fast_install
14622 host_alias=$host_alias
14626 # The build system.
14627 build_alias=$build_alias
14631 # An echo program that does not interpret backslashes.
14636 AR_FLAGS=$lt_AR_FLAGS
14641 # LTCC compiler flags.
14642 LTCFLAGS=$lt_LTCFLAGS
14644 # A language-specific compiler.
14645 CC=$lt_compiler_CXX
14647 # Is the compiler the GNU C compiler?
14653 # The linker used to build libraries.
14656 # Whether we need hard or soft links.
14659 # A BSD-compatible nm program.
14662 # A symbol stripping program
14665 # Used to examine libraries when file_magic_cmd begins "file"
14666 MAGIC_CMD=$MAGIC_CMD
14668 # Used on cygwin: DLL creation program.
14671 # Used on cygwin: object dumper.
14674 # Used on cygwin: assembler.
14677 # The name of the directory that contains temporary libtool files.
14680 # How to create reloadable object files.
14681 reload_flag=$lt_reload_flag
14682 reload_cmds=$lt_reload_cmds
14684 # How to pass a linker flag through the compiler.
14685 wl=$lt_lt_prog_compiler_wl_CXX
14687 # Object file suffix (normally "o").
14688 objext="$ac_objext"
14690 # Old archive suffix (normally "a").
14693 # Shared library suffix (normally ".so").
14694 shrext_cmds='$shrext_cmds'
14696 # Executable file suffix (normally "").
14699 # Additional compiler flags for building library objects.
14700 pic_flag=$lt_lt_prog_compiler_pic_CXX
14703 # What is the maximum length of a command?
14704 max_cmd_len=$lt_cv_sys_max_cmd_len
14706 # Does compiler simultaneously support -c and -o options?
14707 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14709 # Must we lock files when doing compilation?
14710 need_locks=$lt_need_locks
14712 # Do we need the lib prefix for modules?
14713 need_lib_prefix=$need_lib_prefix
14715 # Do we need a version for libraries?
14716 need_version=$need_version
14718 # Whether dlopen is supported.
14719 dlopen_support=$enable_dlopen
14721 # Whether dlopen of programs is supported.
14722 dlopen_self=$enable_dlopen_self
14724 # Whether dlopen of statically linked programs is supported.
14725 dlopen_self_static=$enable_dlopen_self_static
14727 # Compiler flag to prevent dynamic linking.
14728 link_static_flag=$lt_lt_prog_compiler_static_CXX
14730 # Compiler flag to turn off builtin functions.
14731 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14733 # Compiler flag to allow reflexive dlopens.
14734 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14736 # Compiler flag to generate shared objects directly from archives.
14737 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14739 # Compiler flag to generate thread-safe objects.
14740 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14742 # Library versioning type.
14743 version_type=$version_type
14745 # Format of library name prefix.
14746 libname_spec=$lt_libname_spec
14748 # List of archive names. First name is the real one, the rest are links.
14749 # The last name is the one that the linker finds with -lNAME.
14750 library_names_spec=$lt_library_names_spec
14752 # The coded name of the library, if different from the real name.
14753 soname_spec=$lt_soname_spec
14755 # Commands used to build and install an old-style archive.
14757 old_archive_cmds=$lt_old_archive_cmds_CXX
14758 old_postinstall_cmds=$lt_old_postinstall_cmds
14759 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14761 # Create an old-style archive from a shared archive.
14762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14764 # Create a temporary old-style archive to link instead of a shared archive.
14765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14767 # Commands used to build and install a shared archive.
14768 archive_cmds=$lt_archive_cmds_CXX
14769 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14770 postinstall_cmds=$lt_postinstall_cmds
14771 postuninstall_cmds=$lt_postuninstall_cmds
14773 # Commands used to build a loadable module (assumed same as above if empty)
14774 module_cmds=$lt_module_cmds_CXX
14775 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14777 # Commands to strip libraries.
14778 old_striplib=$lt_old_striplib
14779 striplib=$lt_striplib
14781 # Dependencies to place before the objects being linked to create a
14783 predep_objects=$lt_predep_objects_CXX
14785 # Dependencies to place after the objects being linked to create a
14787 postdep_objects=$lt_postdep_objects_CXX
14789 # Dependencies to place before the objects being linked to create a
14791 predeps=$lt_predeps_CXX
14793 # Dependencies to place after the objects being linked to create a
14795 postdeps=$lt_postdeps_CXX
14797 # The library search path used internally by the compiler when linking
14798 # a shared library.
14799 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14801 # Method to check whether dependent libraries are shared objects.
14802 deplibs_check_method=$lt_deplibs_check_method
14804 # Command to use when deplibs_check_method == file_magic.
14805 file_magic_cmd=$lt_file_magic_cmd
14807 # Flag that allows shared libraries with undefined symbols to be built.
14808 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14810 # Flag that forces no undefined symbols.
14811 no_undefined_flag=$lt_no_undefined_flag_CXX
14813 # Commands used to finish a libtool library installation in a directory.
14814 finish_cmds=$lt_finish_cmds
14816 # Same as above, but a single script fragment to be evaled but not shown.
14817 finish_eval=$lt_finish_eval
14819 # Take the output of nm and produce a listing of raw symbols and C names.
14820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14822 # Transform the output of nm in a proper C declaration
14823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14825 # Transform the output of nm in a C name address pair
14826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14828 # This is the shared library runtime path variable.
14829 runpath_var=$runpath_var
14831 # This is the shared library path variable.
14832 shlibpath_var=$shlibpath_var
14834 # Is shlibpath searched before the hard-coded library search path?
14835 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14837 # How to hardcode a shared library path into an executable.
14838 hardcode_action=$hardcode_action_CXX
14840 # Whether we should hardcode library paths into libraries.
14841 hardcode_into_libs=$hardcode_into_libs
14843 # Flag to hardcode \$libdir into a binary during linking.
14844 # This must work even if \$libdir does not exist.
14845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14847 # If ld is used when linking, flag to hardcode \$libdir into
14848 # a binary during linking. This must work even if \$libdir does
14850 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14852 # Whether we need a single -rpath flag with a separated argument.
14853 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14855 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14856 # resulting binary.
14857 hardcode_direct=$hardcode_direct_CXX
14859 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14860 # resulting binary.
14861 hardcode_minus_L=$hardcode_minus_L_CXX
14863 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14864 # the resulting binary.
14865 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14867 # Set to yes if building a shared library automatically hardcodes DIR into the library
14868 # and all subsequent libraries and executables linked against it.
14869 hardcode_automatic=$hardcode_automatic_CXX
14871 # Variables whose values should be saved in libtool wrapper scripts and
14872 # restored at relink time.
14873 variables_saved_for_relink="$variables_saved_for_relink"
14875 # Whether libtool must link a program against all its dependency libraries.
14876 link_all_deplibs=$link_all_deplibs_CXX
14878 # Compile-time system search path for libraries
14879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14881 # Run-time system search path for libraries
14882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14884 # Fix the shell variable \$srcfile for the compiler.
14885 fix_srcfile_path="$fix_srcfile_path_CXX"
14887 # Set to yes if exported symbols are required.
14888 always_export_symbols=$always_export_symbols_CXX
14890 # The commands to list exported symbols.
14891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14893 # The commands to extract the exported symbol list from a shared archive.
14894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14896 # Symbols that should not be listed in the preloaded symbols.
14897 exclude_expsyms=$lt_exclude_expsyms_CXX
14899 # Symbols that must always be exported.
14900 include_expsyms=$lt_include_expsyms_CXX
14902 # ### END LIBTOOL TAG CONFIG: $tagname
14908 # If there is no Makefile yet, we rely on a make rule to execute
14909 # `config.status --recheck' to rerun these tests and create the
14910 # libtool script then.
14911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14912 if test -f "$ltmain_in"; then
14913 test -f Makefile && make "$ltmain"
14919 ac_cpp='$CPP $CPPFLAGS'
14920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14928 with_gnu_ldcxx=$with_gnu_ld
14929 with_gnu_ld=$lt_save_with_gnu_ld
14930 lt_cv_path_LDCXX=$lt_cv_path_LD
14931 lt_cv_path_LD=$lt_save_path_LD
14932 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14933 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14941 if test -n "$F77" && test "X$F77" != "Xno"; then
14944 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14945 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14946 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14949 archive_cmds_need_lc_F77=no
14950 allow_undefined_flag_F77=
14951 always_export_symbols_F77=no
14952 archive_expsym_cmds_F77=
14953 export_dynamic_flag_spec_F77=
14954 hardcode_direct_F77=no
14955 hardcode_libdir_flag_spec_F77=
14956 hardcode_libdir_flag_spec_ld_F77=
14957 hardcode_libdir_separator_F77=
14958 hardcode_minus_L_F77=no
14959 hardcode_automatic_F77=no
14961 module_expsym_cmds_F77=
14962 link_all_deplibs_F77=unknown
14963 old_archive_cmds_F77=$old_archive_cmds
14964 no_undefined_flag_F77=
14965 whole_archive_flag_spec_F77=
14966 enable_shared_with_static_runtimes_F77=no
14968 # Source file extension for f77 test sources.
14971 # Object file extension for compiled f77 test sources.
14975 # Code to be used in simple compile tests
14976 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14978 # Code to be used in simple link tests
14979 lt_simple_link_test_code=" program t\n end\n"
14981 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14983 # If no C compiler was specified, use CC.
14986 # If no C compiler flags were specified, use CFLAGS.
14987 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14989 # Allow CC to be a program name with arguments.
14993 # save warnings/boilerplate of simple test code
14994 ac_outfile=conftest.$ac_objext
14995 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14997 _lt_compiler_boilerplate=`cat conftest.err`
15000 ac_outfile=conftest.$ac_objext
15001 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15003 _lt_linker_boilerplate=`cat conftest.err`
15007 # Allow CC to be a program name with arguments.
15012 for cc_temp in $compiler""; do
15014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15023 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15024 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
15025 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
15026 echo "${ECHO_T}$can_build_shared" >&6; }
15028 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15029 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
15030 test "$can_build_shared" = "no" && enable_shared=no
15032 # On AIX, shared libraries and static libraries use the same namespace, and
15033 # are all built from PIC.
15036 test "$enable_shared" = yes && enable_static=no
15037 if test -n "$RANLIB"; then
15038 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15039 postinstall_cmds='$RANLIB $lib'
15043 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15044 test "$enable_shared" = yes && enable_static=no
15048 { echo "$as_me:$LINENO: result: $enable_shared" >&5
15049 echo "${ECHO_T}$enable_shared" >&6; }
15051 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15052 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
15053 # Make sure either enable_shared or enable_static is yes.
15054 test "$enable_shared" = yes || enable_static=yes
15055 { echo "$as_me:$LINENO: result: $enable_static" >&5
15056 echo "${ECHO_T}$enable_static" >&6; }
15061 lt_prog_compiler_wl_F77=
15062 lt_prog_compiler_pic_F77=
15063 lt_prog_compiler_static_F77=
15065 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15066 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
15068 if test "$GCC" = yes; then
15069 lt_prog_compiler_wl_F77='-Wl,'
15070 lt_prog_compiler_static_F77='-static'
15074 # All AIX code is PIC.
15075 if test "$host_cpu" = ia64; then
15076 # AIX 5 now supports IA64 processor
15077 lt_prog_compiler_static_F77='-Bstatic'
15082 # FIXME: we need at least 68020 code to build shared libraries, but
15083 # adding the `-m68020' flag to GCC prevents building anything better,
15085 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15088 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15089 # PIC is the default for these OSes.
15092 mingw* | pw32* | os2*)
15093 # This hack is so that the source file can tell whether it is being
15094 # built for inclusion in a dll (and should export symbols for example).
15095 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15098 darwin* | rhapsody*)
15099 # PIC is the default on this platform
15100 # Common symbols not allowed in MH_DYLIB files
15101 lt_prog_compiler_pic_F77='-fno-common'
15105 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15106 # Instead, we relocate shared libraries at runtime.
15110 # Just because we use GCC doesn't mean we suddenly get shared libraries
15111 # on systems that don't support them.
15112 lt_prog_compiler_can_build_shared_F77=no
15117 if test -d /usr/nec; then
15118 lt_prog_compiler_pic_F77=-Kconform_pic
15123 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15124 # not for PA HP-UX.
15130 lt_prog_compiler_pic_F77='-fPIC'
15136 lt_prog_compiler_pic_F77='-fPIC'
15140 # PORTME Check for flag to pass linker flags through the system compiler.
15143 lt_prog_compiler_wl_F77='-Wl,'
15144 if test "$host_cpu" = ia64; then
15145 # AIX 5 now supports IA64 processor
15146 lt_prog_compiler_static_F77='-Bstatic'
15148 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15152 # PIC is the default on this platform
15153 # Common symbols not allowed in MH_DYLIB files
15154 case $cc_basename in
15156 lt_prog_compiler_pic_F77='-qnocommon'
15157 lt_prog_compiler_wl_F77='-Wl,'
15162 mingw* | pw32* | os2*)
15163 # This hack is so that the source file can tell whether it is being
15164 # built for inclusion in a dll (and should export symbols for example).
15165 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15168 hpux9* | hpux10* | hpux11*)
15169 lt_prog_compiler_wl_F77='-Wl,'
15170 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15171 # not for PA HP-UX.
15177 lt_prog_compiler_pic_F77='+Z'
15180 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15181 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15184 irix5* | irix6* | nonstopux*)
15185 lt_prog_compiler_wl_F77='-Wl,'
15186 # PIC (with -KPIC) is the default.
15187 lt_prog_compiler_static_F77='-non_shared'
15191 lt_prog_compiler_pic_F77='-KPIC'
15192 lt_prog_compiler_static_F77='-Bstatic'
15195 linux* | k*bsd*-gnu)
15196 case $cc_basename in
15198 lt_prog_compiler_wl_F77='-Wl,'
15199 lt_prog_compiler_pic_F77='-KPIC'
15200 lt_prog_compiler_static_F77='-static'
15202 pgcc* | pgf77* | pgf90* | pgf95*)
15203 # Portland Group compilers (*not* the Pentium gcc compiler,
15204 # which looks to be a dead project)
15205 lt_prog_compiler_wl_F77='-Wl,'
15206 lt_prog_compiler_pic_F77='-fpic'
15207 lt_prog_compiler_static_F77='-Bstatic'
15210 lt_prog_compiler_wl_F77='-Wl,'
15211 # All Alpha code is PIC.
15212 lt_prog_compiler_static_F77='-non_shared'
15217 osf3* | osf4* | osf5*)
15218 lt_prog_compiler_wl_F77='-Wl,'
15219 # All OSF/1 code is PIC.
15220 lt_prog_compiler_static_F77='-non_shared'
15224 lt_prog_compiler_pic_F77='-KPIC'
15225 lt_prog_compiler_static_F77='-Bstatic'
15226 case $cc_basename in
15227 f77* | f90* | f95*)
15228 lt_prog_compiler_wl_F77='-Qoption ld ';;
15230 lt_prog_compiler_wl_F77='-Wl,';;
15235 lt_prog_compiler_wl_F77='-Qoption ld '
15236 lt_prog_compiler_pic_F77='-PIC'
15237 lt_prog_compiler_static_F77='-Bstatic'
15240 sysv4 | sysv4.2uw2* | sysv4.3*)
15241 lt_prog_compiler_wl_F77='-Wl,'
15242 lt_prog_compiler_pic_F77='-KPIC'
15243 lt_prog_compiler_static_F77='-Bstatic'
15247 if test -d /usr/nec ;then
15248 lt_prog_compiler_pic_F77='-Kconform_pic'
15249 lt_prog_compiler_static_F77='-Bstatic'
15253 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15254 lt_prog_compiler_wl_F77='-Wl,'
15255 lt_prog_compiler_pic_F77='-KPIC'
15256 lt_prog_compiler_static_F77='-Bstatic'
15260 lt_prog_compiler_wl_F77='-Wl,'
15261 lt_prog_compiler_can_build_shared_F77=no
15265 lt_prog_compiler_pic_F77='-pic'
15266 lt_prog_compiler_static_F77='-Bstatic'
15270 lt_prog_compiler_can_build_shared_F77=no
15275 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15276 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
15279 # Check to make sure the PIC flag actually works.
15281 if test -n "$lt_prog_compiler_pic_F77"; then
15283 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
15285 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 lt_prog_compiler_pic_works_F77=no
15289 ac_outfile=conftest.$ac_objext
15290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15291 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15292 # Insert the option either (1) after the last *FLAGS variable, or
15293 # (2) before a word containing "conftest.", or (3) at the end.
15294 # Note that $ac_compile itself does not contain backslashes and begins
15295 # with a dollar sign (not a hyphen), so the echo should work correctly.
15296 # The option is referenced via a variable to avoid confusing sed.
15297 lt_compile=`echo "$ac_compile" | $SED \
15298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15300 -e 's:$: $lt_compiler_flag:'`
15301 (eval echo "\"\$as_me:15301: $lt_compile\"" >&5)
15302 (eval "$lt_compile" 2>conftest.err)
15304 cat conftest.err >&5
15305 echo "$as_me:15305: \$? = $ac_status" >&5
15306 if (exit $ac_status) && test -s "$ac_outfile"; then
15307 # The compiler can only warn and ignore the option if not recognized
15308 # So say no if there are warnings other than the usual output.
15309 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15311 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15312 lt_prog_compiler_pic_works_F77=yes
15318 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15319 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
15321 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15322 case $lt_prog_compiler_pic_F77 in
15324 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15327 lt_prog_compiler_pic_F77=
15328 lt_prog_compiler_can_build_shared_F77=no
15333 # For platforms which do not support PIC, -DPIC is meaningless:
15335 lt_prog_compiler_pic_F77=
15338 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15343 # Check to make sure the static flag actually works.
15345 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
15346 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15347 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15348 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 lt_prog_compiler_static_works_F77=no
15352 save_LDFLAGS="$LDFLAGS"
15353 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15354 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15356 # The linker can only warn and ignore the option if not recognized
15357 # So say no if there are warnings
15358 if test -s conftest.err; then
15359 # Append any errors to the config.log.
15360 cat conftest.err 1>&5
15361 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15363 if diff conftest.exp conftest.er2 >/dev/null; then
15364 lt_prog_compiler_static_works_F77=yes
15367 lt_prog_compiler_static_works_F77=yes
15371 LDFLAGS="$save_LDFLAGS"
15374 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
15375 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
15377 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15380 lt_prog_compiler_static_F77=
15384 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15385 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
15386 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15387 echo $ECHO_N "(cached) $ECHO_C" >&6
15389 lt_cv_prog_compiler_c_o_F77=no
15390 $rm -r conftest 2>/dev/null
15394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15396 lt_compiler_flag="-o out/conftest2.$ac_objext"
15397 # Insert the option either (1) after the last *FLAGS variable, or
15398 # (2) before a word containing "conftest.", or (3) at the end.
15399 # Note that $ac_compile itself does not contain backslashes and begins
15400 # with a dollar sign (not a hyphen), so the echo should work correctly.
15401 lt_compile=`echo "$ac_compile" | $SED \
15402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15404 -e 's:$: $lt_compiler_flag:'`
15405 (eval echo "\"\$as_me:15405: $lt_compile\"" >&5)
15406 (eval "$lt_compile" 2>out/conftest.err)
15408 cat out/conftest.err >&5
15409 echo "$as_me:15409: \$? = $ac_status" >&5
15410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15412 # The compiler can only warn and ignore the option if not recognized
15413 # So say no if there are warnings
15414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15417 lt_cv_prog_compiler_c_o_F77=yes
15422 # SGI C++ compiler will create directory out/ii_files/ for
15423 # template instantiation
15424 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15425 $rm out/* && rmdir out
15431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15432 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
15435 hard_links="nottested"
15436 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15437 # do not overwrite the value of need_locks provided by the user
15438 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15439 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
15442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15444 ln conftest.a conftest.b 2>&5 || hard_links=no
15445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15446 { echo "$as_me:$LINENO: result: $hard_links" >&5
15447 echo "${ECHO_T}$hard_links" >&6; }
15448 if test "$hard_links" = no; then
15449 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15450 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15457 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15458 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15461 allow_undefined_flag_F77=
15462 enable_shared_with_static_runtimes_F77=no
15464 archive_expsym_cmds_F77=
15465 old_archive_From_new_cmds_F77=
15466 old_archive_from_expsyms_cmds_F77=
15467 export_dynamic_flag_spec_F77=
15468 whole_archive_flag_spec_F77=
15469 thread_safe_flag_spec_F77=
15470 hardcode_libdir_flag_spec_F77=
15471 hardcode_libdir_flag_spec_ld_F77=
15472 hardcode_libdir_separator_F77=
15473 hardcode_direct_F77=no
15474 hardcode_minus_L_F77=no
15475 hardcode_shlibpath_var_F77=unsupported
15476 link_all_deplibs_F77=unknown
15477 hardcode_automatic_F77=no
15479 module_expsym_cmds_F77=
15480 always_export_symbols_F77=no
15481 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15482 # include_expsyms should be a list of space-separated symbols to be *always*
15483 # included in the symbol list
15484 include_expsyms_F77=
15485 # exclude_expsyms can be an extended regexp of symbols to exclude
15486 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15487 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15488 # as well as any symbol that contains `d'.
15489 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15490 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15491 # platforms (ab)use it in PIC code, but their linkers get confused if
15492 # the symbol is explicitly referenced. Since portable code cannot
15493 # rely on this symbol name, it's probably fine to never include it in
15494 # preloaded symbol tables.
15495 extract_expsyms_cmds=
15496 # Just being paranoid about ensuring that cc_basename is set.
15497 for cc_temp in $compiler""; do
15499 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15500 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15505 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15508 cygwin* | mingw* | pw32*)
15509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15510 # When not using gcc, we currently assume that we are using
15511 # Microsoft Visual C++.
15512 if test "$GCC" != yes; then
15517 # we just hope/assume this is gcc and not c89 (= MSVC++)
15526 if test "$with_gnu_ld" = yes; then
15527 # If archive_cmds runs LD, not CC, wlarc should be empty
15530 # Set some defaults for GNU ld with shared library support. These
15531 # are reset later if shared libraries are not supported. Putting them
15532 # here allows them to be overridden if necessary.
15533 runpath_var=LD_RUN_PATH
15534 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15535 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15536 # ancient GNU ld didn't support --whole-archive et. al.
15537 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15538 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15540 whole_archive_flag_spec_F77=
15542 supports_anon_versioning=no
15543 case `$LD -v 2>/dev/null` in
15544 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15545 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15546 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15547 *\ 2.11.*) ;; # other 2.11 versions
15548 *) supports_anon_versioning=yes ;;
15551 # See if GNU ld supports shared libraries.
15553 aix3* | aix4* | aix5*)
15554 # On AIX/PPC, the GNU linker is very broken
15555 if test "$host_cpu" != ia64; then
15559 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15560 *** to be unable to reliably create shared libraries on AIX.
15561 *** Therefore, libtool is disabling shared libraries support. If you
15562 *** really care for shared libraries, you may want to modify your PATH
15563 *** so that a non-GNU linker is found, and then restart.
15570 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)'
15571 hardcode_libdir_flag_spec_F77='-L$libdir'
15572 hardcode_minus_L_F77=yes
15574 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15575 # that the semantics of dynamic libraries on AmigaOS, at least up
15576 # to version 4, is to share data among multiple programs linked
15577 # with the same dynamic library. Since this doesn't match the
15578 # behavior of shared libraries on other platforms, we can't use
15584 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15585 allow_undefined_flag_F77=unsupported
15586 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15587 # support --undefined. This deserves some investigation. FIXME
15588 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15594 cygwin* | mingw* | pw32*)
15595 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15596 # as there is no search path for DLLs.
15597 hardcode_libdir_flag_spec_F77='-L$libdir'
15598 allow_undefined_flag_F77=unsupported
15599 always_export_symbols_F77=no
15600 enable_shared_with_static_runtimes_F77=yes
15601 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15603 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15604 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15605 # If the export-symbols file already is a .def file (1st line
15606 # is EXPORTS), use it as is; otherwise, prepend...
15607 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15608 cp $export_symbols $output_objdir/$soname.def;
15610 echo EXPORTS > $output_objdir/$soname.def;
15611 cat $export_symbols >> $output_objdir/$soname.def;
15613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15620 hardcode_direct_F77=no
15621 hardcode_shlibpath_var_F77=no
15622 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15623 export_dynamic_flag_spec_F77='${wl}-E'
15624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15625 # Instead, shared libraries are loaded at an image base (0x10000000 by
15626 # default) and relocated if they conflict, which is a slow very memory
15627 # consuming and fragmenting process. To avoid this, we pick a random,
15628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15629 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15630 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'
15631 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'
15634 linux* | k*bsd*-gnu)
15635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15637 case $cc_basename,$host_cpu in
15638 pgcc*) # Portland Group C compiler
15639 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'
15640 tmp_addflag=' $pic_flag'
15642 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15643 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'
15644 tmp_addflag=' $pic_flag -Mnomain' ;;
15645 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15646 tmp_addflag=' -i_dynamic' ;;
15647 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15648 tmp_addflag=' -i_dynamic -nofor_main' ;;
15649 ifc* | ifort*) # Intel Fortran compiler
15650 tmp_addflag=' -nofor_main' ;;
15652 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654 if test $supports_anon_versioning = yes; then
15655 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15656 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15657 $echo "local: *; };" >> $output_objdir/$libname.ver~
15658 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15660 link_all_deplibs_F77=no
15666 netbsd* | netbsdelf*-gnu)
15667 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15668 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15677 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15681 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15682 *** create shared libraries on Solaris systems. Therefore, libtool
15683 *** is disabling shared libraries support. We urge you to upgrade GNU
15684 *** binutils to release 2.9.1 or newer. Another option is to modify
15685 *** your PATH or compiler configuration so that the native linker is
15686 *** used, and then restart.
15689 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15690 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15691 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15697 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15698 case `$LD -v 2>&1` in
15699 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15703 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15704 *** reliably create shared libraries on SCO systems. Therefore, libtool
15705 *** is disabling shared libraries support. We urge you to upgrade GNU
15706 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15707 *** your PATH or compiler configuration so that the native linker is
15708 *** used, and then restart.
15713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15714 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15715 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15716 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15725 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15727 hardcode_direct_F77=yes
15728 hardcode_shlibpath_var_F77=no
15732 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15733 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15734 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15741 if test "$ld_shlibs_F77" = no; then
15743 hardcode_libdir_flag_spec_F77=
15744 export_dynamic_flag_spec_F77=
15745 whole_archive_flag_spec_F77=
15748 # PORTME fill in a description of your system's linker (not GNU ld)
15751 allow_undefined_flag_F77=unsupported
15752 always_export_symbols_F77=yes
15753 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'
15754 # Note: this linker hardcodes the directories in LIBPATH if there
15755 # are no directories specified by -L.
15756 hardcode_minus_L_F77=yes
15757 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15758 # Neither direct hardcoding nor static linking is supported with a
15760 hardcode_direct_F77=unsupported
15765 if test "$host_cpu" = ia64; then
15766 # On IA64, the linker does run time linking by default, so we don't
15767 # have to do anything special.
15768 aix_use_runtimelinking=no
15769 exp_sym_flag='-Bexport'
15772 # If we're using GNU nm, then we don't want the "-C" option.
15773 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15774 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15775 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'
15777 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'
15779 aix_use_runtimelinking=no
15781 # Test if we are trying to use run time linking or normal
15782 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15783 # need to do runtime linking.
15784 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15785 for ld_flag in $LDFLAGS; do
15786 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15787 aix_use_runtimelinking=yes
15794 exp_sym_flag='-bexport'
15795 no_entry_flag='-bnoentry'
15798 # When large executables or shared objects are built, AIX ld can
15799 # have problems creating the table of contents. If linking a library
15800 # or program results in "error TOC overflow" add -mminimal-toc to
15801 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15802 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15804 archive_cmds_F77=''
15805 hardcode_direct_F77=yes
15806 hardcode_libdir_separator_F77=':'
15807 link_all_deplibs_F77=yes
15809 if test "$GCC" = yes; then
15810 case $host_os in aix4.[012]|aix4.[012].*)
15811 # We only want to do this on AIX 4.2 and lower, the check
15812 # below for broken collect2 doesn't work under 4.3+
15813 collect2name=`${CC} -print-prog-name=collect2`
15814 if test -f "$collect2name" && \
15815 strings "$collect2name" | grep resolve_lib_name >/dev/null
15817 # We have reworked collect2
15818 hardcode_direct_F77=yes
15820 # We have old collect2
15821 hardcode_direct_F77=unsupported
15822 # It fails to find uninstalled libraries when the uninstalled
15823 # path is not listed in the libpath. Setting hardcode_minus_L
15824 # to unsupported forces relinking
15825 hardcode_minus_L_F77=yes
15826 hardcode_libdir_flag_spec_F77='-L$libdir'
15827 hardcode_libdir_separator_F77=
15831 shared_flag='-shared'
15832 if test "$aix_use_runtimelinking" = yes; then
15833 shared_flag="$shared_flag "'${wl}-G'
15837 if test "$host_cpu" = ia64; then
15838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15839 # chokes on -Wl,-G. The following line is correct:
15842 if test "$aix_use_runtimelinking" = yes; then
15843 shared_flag='${wl}-G'
15845 shared_flag='${wl}-bM:SRE'
15850 # It seems that -bexpall does not export symbols beginning with
15851 # underscore (_), so it is better to generate a list of symbols to export.
15852 always_export_symbols_F77=yes
15853 if test "$aix_use_runtimelinking" = yes; then
15854 # Warning - without using the other runtime loading flags (-brtl),
15855 # -berok will link without error, but may produce a broken library.
15856 allow_undefined_flag_F77='-berok'
15857 # Determine the default libpath from the value encoded in an empty executable.
15858 cat >conftest.$ac_ext <<_ACEOF
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (ac_try="$ac_link"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_link") 2>conftest.er1
15872 grep -v '^ *+' conftest.er1 >conftest.err
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && {
15877 test -z "$ac_f77_werror_flag" ||
15878 test ! -s conftest.err
15879 } && test -s conftest$ac_exeext &&
15880 $as_test_x conftest$ac_exeext; then
15882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15884 # Check for a 64-bit object if we didn't find anything.
15885 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; }
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15895 conftest$ac_exeext conftest.$ac_ext
15896 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15898 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15899 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"
15901 if test "$host_cpu" = ia64; then
15902 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15903 allow_undefined_flag_F77="-z nodefs"
15904 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"
15906 # Determine the default libpath from the value encoded in an empty executable.
15907 cat >conftest.$ac_ext <<_ACEOF
15912 rm -f conftest.$ac_objext conftest$ac_exeext
15913 if { (ac_try="$ac_link"
15914 case "(($ac_try" in
15915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15916 *) ac_try_echo=$ac_try;;
15918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15919 (eval "$ac_link") 2>conftest.er1
15921 grep -v '^ *+' conftest.er1 >conftest.err
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } && {
15926 test -z "$ac_f77_werror_flag" ||
15927 test ! -s conftest.err
15928 } && test -s conftest$ac_exeext &&
15929 $as_test_x conftest$ac_exeext; then
15931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15933 # Check for a 64-bit object if we didn't find anything.
15934 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; }
15937 echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15944 conftest$ac_exeext conftest.$ac_ext
15945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15947 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15948 # Warning - without using the other run time loading flags,
15949 # -berok will link without error, but may produce a broken library.
15950 no_undefined_flag_F77=' ${wl}-bernotok'
15951 allow_undefined_flag_F77=' ${wl}-berok'
15952 # Exported symbols can be pulled into shared objects from archives
15953 whole_archive_flag_spec_F77='$convenience'
15954 archive_cmds_need_lc_F77=yes
15955 # This is similar to how AIX traditionally builds its shared libraries.
15956 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'
15962 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)'
15963 hardcode_libdir_flag_spec_F77='-L$libdir'
15964 hardcode_minus_L_F77=yes
15965 # see comment about different semantics on the GNU ld section
15970 export_dynamic_flag_spec_F77=-rdynamic
15973 cygwin* | mingw* | pw32*)
15974 # When not using gcc, we currently assume that we are using
15975 # Microsoft Visual C++.
15976 # hardcode_libdir_flag_spec is actually meaningless, as there is
15977 # no search path for DLLs.
15978 hardcode_libdir_flag_spec_F77=' '
15979 allow_undefined_flag_F77=unsupported
15980 # Tell ltmain to make .lib files, not .a files.
15982 # Tell ltmain to make .dll files, not .so files.
15984 # FIXME: Setting linknames here is a bad hack.
15985 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15986 # The linker will automatically build a .lib file if we build a DLL.
15987 old_archive_From_new_cmds_F77='true'
15988 # FIXME: Should let the user specify the lib program.
15989 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15990 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15991 enable_shared_with_static_runtimes_F77=yes
15994 darwin* | rhapsody*)
15996 rhapsody* | darwin1.[012])
15997 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16000 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16001 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16003 case ${MACOSX_DEPLOYMENT_TARGET} in
16005 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16008 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16014 archive_cmds_need_lc_F77=no
16015 hardcode_direct_F77=no
16016 hardcode_automatic_F77=yes
16017 hardcode_shlibpath_var_F77=unsupported
16018 whole_archive_flag_spec_F77=''
16019 link_all_deplibs_F77=yes
16020 if test "$GCC" = yes ; then
16021 output_verbose_link_cmd='echo'
16022 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16023 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16024 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16025 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}'
16026 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}'
16028 case $cc_basename in
16030 output_verbose_link_cmd='echo'
16031 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16032 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16033 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16034 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}'
16035 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}'
16045 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_libdir_flag_spec_F77='-L$libdir'
16047 hardcode_shlibpath_var_F77=no
16054 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16055 # support. Future versions do this automatically, but an explicit c++rt0.o
16056 # does not break anything, and helps significantly (at the cost of a little
16059 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16060 hardcode_libdir_flag_spec_F77='-R$libdir'
16061 hardcode_direct_F77=yes
16062 hardcode_shlibpath_var_F77=no
16065 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16067 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16068 hardcode_direct_F77=yes
16069 hardcode_minus_L_F77=yes
16070 hardcode_shlibpath_var_F77=no
16073 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16074 freebsd* | dragonfly*)
16075 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16076 hardcode_libdir_flag_spec_F77='-R$libdir'
16077 hardcode_direct_F77=yes
16078 hardcode_shlibpath_var_F77=no
16082 if test "$GCC" = yes; then
16083 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'
16085 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'
16087 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16088 hardcode_libdir_separator_F77=:
16089 hardcode_direct_F77=yes
16091 # hardcode_minus_L: Not really in the search PATH,
16092 # but as the default location of the library.
16093 hardcode_minus_L_F77=yes
16094 export_dynamic_flag_spec_F77='${wl}-E'
16098 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16099 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16101 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16103 if test "$with_gnu_ld" = no; then
16104 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16105 hardcode_libdir_separator_F77=:
16107 hardcode_direct_F77=yes
16108 export_dynamic_flag_spec_F77='${wl}-E'
16110 # hardcode_minus_L: Not really in the search PATH,
16111 # but as the default location of the library.
16112 hardcode_minus_L_F77=yes
16117 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16120 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16123 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16132 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16135 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16138 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16142 if test "$with_gnu_ld" = no; then
16143 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16144 hardcode_libdir_separator_F77=:
16148 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16149 hardcode_direct_F77=no
16150 hardcode_shlibpath_var_F77=no
16153 hardcode_direct_F77=yes
16154 export_dynamic_flag_spec_F77='${wl}-E'
16156 # hardcode_minus_L: Not really in the search PATH,
16157 # but as the default location of the library.
16158 hardcode_minus_L_F77=yes
16164 irix5* | irix6* | nonstopux*)
16165 if test "$GCC" = yes; then
16166 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'
16168 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'
16169 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16171 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16172 hardcode_libdir_separator_F77=:
16173 link_all_deplibs_F77=yes
16176 netbsd* | netbsdelf*-gnu)
16177 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16178 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16180 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16182 hardcode_libdir_flag_spec_F77='-R$libdir'
16183 hardcode_direct_F77=yes
16184 hardcode_shlibpath_var_F77=no
16188 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16189 hardcode_direct_F77=yes
16190 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16191 hardcode_libdir_separator_F77=:
16192 hardcode_shlibpath_var_F77=no
16196 hardcode_direct_F77=yes
16197 hardcode_shlibpath_var_F77=no
16198 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16199 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16200 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16201 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16202 export_dynamic_flag_spec_F77='${wl}-E'
16205 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16206 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16207 hardcode_libdir_flag_spec_F77='-R$libdir'
16210 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16211 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16218 hardcode_libdir_flag_spec_F77='-L$libdir'
16219 hardcode_minus_L_F77=yes
16220 allow_undefined_flag_F77=unsupported
16221 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'
16222 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16226 if test "$GCC" = yes; then
16227 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16228 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'
16230 allow_undefined_flag_F77=' -expect_unresolved \*'
16231 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'
16233 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16234 hardcode_libdir_separator_F77=:
16237 osf4* | osf5*) # as osf3* with the addition of -msym flag
16238 if test "$GCC" = yes; then
16239 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16240 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'
16241 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16243 allow_undefined_flag_F77=' -expect_unresolved \*'
16244 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'
16245 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~
16246 $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'
16248 # Both c and cxx compiler support -rpath directly
16249 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16251 hardcode_libdir_separator_F77=:
16255 no_undefined_flag_F77=' -z text'
16256 if test "$GCC" = yes; then
16258 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16259 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16260 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16263 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16264 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16265 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16267 hardcode_libdir_flag_spec_F77='-R$libdir'
16268 hardcode_shlibpath_var_F77=no
16270 solaris2.[0-5] | solaris2.[0-5].*) ;;
16272 # The compiler driver will combine linker options so we
16273 # cannot just pass the convience library names through
16274 # without $wl, iff we do not link with $LD.
16275 # Luckily, gcc supports the same syntax we need for Sun Studio.
16276 # Supported since Solaris 2.6 (maybe 2.5.1?)
16279 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16281 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' ;;
16284 link_all_deplibs_F77=yes
16288 if test "x$host_vendor" = xsequent; then
16289 # Use $CC to link under sequent, because it throws in some extra .o
16290 # files that make .init and .fini sections work.
16291 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16293 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16295 hardcode_libdir_flag_spec_F77='-L$libdir'
16296 hardcode_direct_F77=yes
16297 hardcode_minus_L_F77=yes
16298 hardcode_shlibpath_var_F77=no
16302 case $host_vendor in
16304 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16305 hardcode_direct_F77=yes # is this really true???
16308 ## LD is ld it makes a PLAMLIB
16309 ## CC just makes a GrossModule.
16310 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16311 reload_cmds_F77='$CC -r -o $output$reload_objs'
16312 hardcode_direct_F77=no
16315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16319 runpath_var='LD_RUN_PATH'
16320 hardcode_shlibpath_var_F77=no
16324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325 hardcode_shlibpath_var_F77=no
16326 export_dynamic_flag_spec_F77='-Bexport'
16330 if test -d /usr/nec; then
16331 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16332 hardcode_shlibpath_var_F77=no
16333 runpath_var=LD_RUN_PATH
16334 hardcode_runpath_var=yes
16339 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16340 no_undefined_flag_F77='${wl}-z,text'
16341 archive_cmds_need_lc_F77=no
16342 hardcode_shlibpath_var_F77=no
16343 runpath_var='LD_RUN_PATH'
16345 if test "$GCC" = yes; then
16346 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16347 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16349 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16350 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16354 sysv5* | sco3.2v5* | sco5v6*)
16355 # Note: We can NOT use -z defs as we might desire, because we do not
16356 # link with -lc, and that would cause any symbols used from libc to
16357 # always be unresolved, which means just about no library would
16358 # ever link correctly. If we're not using GNU ld we use -z text
16359 # though, which does catch some bad symbols but isn't as heavy-handed
16361 no_undefined_flag_F77='${wl}-z,text'
16362 allow_undefined_flag_F77='${wl}-z,nodefs'
16363 archive_cmds_need_lc_F77=no
16364 hardcode_shlibpath_var_F77=no
16365 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16366 hardcode_libdir_separator_F77=':'
16367 link_all_deplibs_F77=yes
16368 export_dynamic_flag_spec_F77='${wl}-Bexport'
16369 runpath_var='LD_RUN_PATH'
16371 if test "$GCC" = yes; then
16372 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16373 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16375 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16381 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16382 hardcode_libdir_flag_spec_F77='-L$libdir'
16383 hardcode_shlibpath_var_F77=no
16392 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16393 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
16394 test "$ld_shlibs_F77" = no && can_build_shared=no
16397 # Do we need to explicitly link libc?
16399 case "x$archive_cmds_need_lc_F77" in
16401 # Assume -lc should be added
16402 archive_cmds_need_lc_F77=yes
16404 if test "$enable_shared" = yes && test "$GCC" = yes; then
16405 case $archive_cmds_F77 in
16407 # FIXME: we may have to deal with multi-command sequences.
16410 # Test whether the compiler implicitly links with -lc since on some
16411 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16412 # to ld, don't add -lc before -lgcc.
16413 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16414 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
16416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16419 (eval $ac_compile) 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } 2>conftest.err; then
16425 libobjs=conftest.$ac_objext
16427 wl=$lt_prog_compiler_wl_F77
16428 pic_flag=$lt_prog_compiler_pic_F77
16434 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16435 allow_undefined_flag_F77=
16436 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16437 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }
16442 archive_cmds_need_lc_F77=no
16444 archive_cmds_need_lc_F77=yes
16446 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16448 cat conftest.err 1>&5
16451 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16452 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
16459 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16460 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
16461 library_names_spec=
16462 libname_spec='lib$name'
16466 postuninstall_cmds=
16470 shlibpath_overrides_runpath=unknown
16472 dynamic_linker="$host_os ld.so"
16473 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16474 if test "$GCC" = yes; then
16475 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16476 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16477 # if the path contains ";" then we assume it to be the separator
16478 # otherwise default to the standard path separator (i.e. ":") - it is
16479 # assumed that no part of a normal pathname contains ";" but that should
16480 # okay in the real world where ";" in dirpaths is itself problematic.
16481 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16483 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16488 need_lib_prefix=unknown
16489 hardcode_into_libs=no
16491 # when you set need_version to no, make sure it does not cause -set_version
16492 # flags to be left without arguments
16493 need_version=unknown
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16499 shlibpath_var=LIBPATH
16501 # AIX 3 has no versioning support, so we append a major version to the name.
16502 soname_spec='${libname}${release}${shared_ext}$major'
16509 hardcode_into_libs=yes
16510 if test "$host_cpu" = ia64; then
16511 # AIX 5 supports IA64
16512 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16513 shlibpath_var=LD_LIBRARY_PATH
16515 # With GCC up to 2.95.x, collect2 would create an import file
16516 # for dependence libraries. The import file would start with
16517 # the line `#! .'. This would cause the generated library to
16518 # depend on `.', always an invalid library. This was fixed in
16519 # development snapshots of GCC prior to 3.0.
16521 aix4 | aix4.[01] | aix4.[01].*)
16522 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16524 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16527 can_build_shared=no
16531 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16532 # soname into executable. Probably we can add versioning support to
16533 # collect2, so additional links can be useful in future.
16534 if test "$aix_use_runtimelinking" = yes; then
16535 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16536 # instead of lib<name>.a to let people know that these are not
16537 # typical AIX shared libraries.
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16540 # We preserve .a as extension for shared libraries through AIX4.2
16541 # and later when we are not doing run time linking.
16542 library_names_spec='${libname}${release}.a $libname.a'
16543 soname_spec='${libname}${release}${shared_ext}$major'
16545 shlibpath_var=LIBPATH
16550 library_names_spec='$libname.ixlibrary $libname.a'
16551 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16552 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'
16556 library_names_spec='${libname}${shared_ext}'
16557 dynamic_linker="$host_os ld.so"
16558 shlibpath_var=LIBRARY_PATH
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16567 shlibpath_var=LD_LIBRARY_PATH
16568 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16569 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16570 # the default ld.so.conf also contains /usr/contrib/lib and
16571 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16572 # libtool to hard-code these into programs
16575 cygwin* | mingw* | pw32*)
16576 version_type=windows
16581 case $GCC,$host_os in
16582 yes,cygwin* | yes,mingw* | yes,pw32*)
16583 library_names_spec='$libname.dll.a'
16584 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16585 postinstall_cmds='base_file=`basename \${file}`~
16586 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16587 dldir=$destdir/`dirname \$dlpath`~
16588 test -d \$dldir || mkdir -p \$dldir~
16589 $install_prog $dir/$dlname \$dldir/$dlname~
16590 chmod a+x \$dldir/$dlname'
16591 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16592 dlpath=$dir/\$dldll~
16594 shlibpath_overrides_runpath=yes
16598 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16599 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16600 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16603 # MinGW DLLs use traditional 'lib' prefix
16604 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16606 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16607 # It is most probably a Windows format PATH printed by
16608 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16609 # path with ; separators, and with drive letters. We can handle the
16610 # drive letters (cygwin fileutils understands them), so leave them,
16611 # especially as we might pass files found there to a mingw objdump,
16612 # which wouldn't understand a cygwinified path. Ahh.
16613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16619 # pw32 DLLs use 'pw' prefix rather than 'lib'
16620 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16626 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16629 dynamic_linker='Win32 ld.exe'
16630 # FIXME: first we should search . and the directory the executable is in
16634 darwin* | rhapsody*)
16635 dynamic_linker="$host_os dyld"
16636 version_type=darwin
16639 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16640 soname_spec='${libname}${release}${major}$shared_ext'
16641 shlibpath_overrides_runpath=yes
16642 shlibpath_var=DYLD_LIBRARY_PATH
16643 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16644 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16645 if test "$GCC" = yes; then
16646 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"`
16648 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16650 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16658 soname_spec='${libname}${release}${shared_ext}$major'
16659 shlibpath_var=LD_LIBRARY_PATH
16666 freebsd* | dragonfly*)
16667 # DragonFly does not have aout. When/if they implement a new
16668 # versioning mechanism, adjust this.
16669 if test -x /usr/bin/objformat; then
16670 objformat=`/usr/bin/objformat`
16673 freebsd[123]*) objformat=aout ;;
16674 *) objformat=elf ;;
16677 version_type=freebsd-$objformat
16678 case $version_type in
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16685 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16689 shlibpath_var=LD_LIBRARY_PATH
16692 shlibpath_overrides_runpath=yes
16694 freebsd3.[01]* | freebsdelf3.[01]*)
16695 shlibpath_overrides_runpath=yes
16696 hardcode_into_libs=yes
16698 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16699 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16700 shlibpath_overrides_runpath=no
16701 hardcode_into_libs=yes
16703 freebsd*) # from 4.6 on
16704 shlibpath_overrides_runpath=yes
16705 hardcode_into_libs=yes
16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 shlibpath_var=LD_LIBRARY_PATH
16717 hardcode_into_libs=yes
16720 hpux9* | hpux10* | hpux11*)
16721 # Give a soname corresponding to the major version so that dld.sl refuses to
16722 # link against other versions.
16729 hardcode_into_libs=yes
16730 dynamic_linker="$host_os dld.so"
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16734 soname_spec='${libname}${release}${shared_ext}$major'
16735 if test "X$HPUX_IA64_MODE" = X32; then
16736 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16738 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16744 hardcode_into_libs=yes
16745 dynamic_linker="$host_os dld.sl"
16746 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16755 dynamic_linker="$host_os dld.sl"
16756 shlibpath_var=SHLIB_PATH
16757 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759 soname_spec='${libname}${release}${shared_ext}$major'
16762 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16763 postinstall_cmds='chmod 555 $lib'
16770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16772 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16773 shlibpath_var=LD_LIBRARY_PATH
16774 shlibpath_overrides_runpath=no
16775 hardcode_into_libs=yes
16778 irix5* | irix6* | nonstopux*)
16780 nonstopux*) version_type=nonstopux ;;
16782 if test "$lt_cv_prog_gnu_ld" = yes; then
16790 soname_spec='${libname}${release}${shared_ext}$major'
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16793 irix5* | nonstopux*)
16794 libsuff= shlibsuff=
16797 case $LD in # libtool.m4 will add one of these switches to LD
16798 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16799 libsuff= shlibsuff= libmagic=32-bit;;
16800 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16801 libsuff=32 shlibsuff=N32 libmagic=N32;;
16802 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16803 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16804 *) libsuff= shlibsuff= libmagic=never-match;;
16808 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16809 shlibpath_overrides_runpath=no
16810 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16811 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16812 hardcode_into_libs=yes
16815 # No shared lib support for Linux oldld, aout, or coff.
16816 linux*oldld* | linux*aout* | linux*coff*)
16820 # This must be Linux ELF.
16821 linux* | k*bsd*-gnu)
16825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16826 soname_spec='${libname}${release}${shared_ext}$major'
16827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 shlibpath_overrides_runpath=no
16830 # This implies no fast_install, which is unacceptable.
16831 # Some rework will be needed to allow for fast_install
16832 # before this can be enabled.
16833 hardcode_into_libs=yes
16835 # Append ld.so.conf contents to the search path
16836 if test -f /etc/ld.so.conf; then
16837 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' ' '`
16838 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16841 # We used to test for /lib/ld.so.1 and disable shared libraries on
16842 # powerpc, because MkLinux only supported shared libraries with the
16843 # GNU dynamic linker. Since this was broken with cross compilers,
16844 # most powerpc-linux boxes support dynamic linking these days and
16845 # people can always --disable-shared, the test was removed, and we
16846 # assume the GNU/Linux dynamic linker is in use.
16847 dynamic_linker='GNU/Linux ld.so'
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16855 soname_spec='${libname}${release}${shared_ext}$major'
16856 shlibpath_var=LD_LIBRARY_PATH
16857 shlibpath_overrides_runpath=no
16858 hardcode_into_libs=yes
16859 dynamic_linker='NetBSD ld.elf_so'
16866 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16869 dynamic_linker='NetBSD (a.out) ld.so'
16871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 dynamic_linker='NetBSD ld.elf_so'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 shlibpath_overrides_runpath=yes
16877 hardcode_into_libs=yes
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 shlibpath_overrides_runpath=yes
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16892 soname_spec='${libname}${release}${shared_ext}$major'
16893 shlibpath_var=LD_LIBRARY_PATH
16894 shlibpath_overrides_runpath=yes
16899 sys_lib_dlsearch_path_spec="/usr/lib"
16901 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16903 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16904 *) need_version=no ;;
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16911 openbsd2.[89] | openbsd2.[89].*)
16912 shlibpath_overrides_runpath=no
16915 shlibpath_overrides_runpath=yes
16919 shlibpath_overrides_runpath=yes
16924 libname_spec='$name'
16927 library_names_spec='$libname${shared_ext} $libname.a'
16928 dynamic_linker='OS/2 ld.exe'
16929 shlibpath_var=LIBPATH
16932 osf3* | osf4* | osf5*)
16936 soname_spec='${libname}${release}${shared_ext}$major'
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 shlibpath_var=LD_LIBRARY_PATH
16939 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16940 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16948 soname_spec='${libname}${release}${shared_ext}$major'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=yes
16951 hardcode_into_libs=yes
16952 # ldd complains unless libraries are executable
16953 postinstall_cmds='chmod +x $lib'
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16959 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16960 shlibpath_var=LD_LIBRARY_PATH
16961 shlibpath_overrides_runpath=yes
16962 if test "$with_gnu_ld" = yes; then
16970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 soname_spec='${libname}${release}${shared_ext}$major'
16972 shlibpath_var=LD_LIBRARY_PATH
16973 case $host_vendor in
16975 shlibpath_overrides_runpath=no
16977 export_dynamic_flag_spec='${wl}-Blargedynsym'
16978 runpath_var=LD_RUN_PATH
16986 shlibpath_overrides_runpath=no
16987 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16993 if test -d /usr/nec ;then
16995 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16996 soname_spec='$libname${shared_ext}.$major'
16997 shlibpath_var=LD_LIBRARY_PATH
17001 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17002 version_type=freebsd-elf
17005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17006 soname_spec='${libname}${release}${shared_ext}$major'
17007 shlibpath_var=LD_LIBRARY_PATH
17008 hardcode_into_libs=yes
17009 if test "$with_gnu_ld" = yes; then
17010 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17011 shlibpath_overrides_runpath=no
17013 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17014 shlibpath_overrides_runpath=yes
17017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17021 sys_lib_dlsearch_path_spec='/usr/lib'
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027 soname_spec='${libname}${release}${shared_ext}$major'
17028 shlibpath_var=LD_LIBRARY_PATH
17035 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17036 echo "${ECHO_T}$dynamic_linker" >&6; }
17037 test "$dynamic_linker" = no && can_build_shared=no
17039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17040 if test "$GCC" = yes; then
17041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17044 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17045 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
17046 hardcode_action_F77=
17047 if test -n "$hardcode_libdir_flag_spec_F77" || \
17048 test -n "$runpath_var_F77" || \
17049 test "X$hardcode_automatic_F77" = "Xyes" ; then
17051 # We can hardcode non-existant directories.
17052 if test "$hardcode_direct_F77" != no &&
17053 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17054 # have to relink, otherwise we might link with an installed library
17055 # when we should be linking with a yet-to-be-installed one
17056 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17057 test "$hardcode_minus_L_F77" != no; then
17058 # Linking always hardcodes the temporary library directory.
17059 hardcode_action_F77=relink
17061 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17062 hardcode_action_F77=immediate
17065 # We cannot hardcode anything, or else we can only hardcode existing
17067 hardcode_action_F77=unsupported
17069 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17070 echo "${ECHO_T}$hardcode_action_F77" >&6; }
17072 if test "$hardcode_action_F77" = relink; then
17073 # Fast installation is not supported
17074 enable_fast_install=no
17075 elif test "$shlibpath_overrides_runpath" = yes ||
17076 test "$enable_shared" = no; then
17077 # Fast installation is not necessary
17078 enable_fast_install=needless
17082 # The else clause should only fire when bootstrapping the
17083 # libtool distribution, otherwise you forgot to ship ltmain.sh
17084 # with your package, and you will get complaints that there are
17085 # no rules to generate ltmain.sh.
17086 if test -f "$ltmain"; then
17087 # See if we are running on zsh, and set the options which allow our commands through
17088 # without removal of \ escapes.
17089 if test -n "${ZSH_VERSION+set}" ; then
17090 setopt NO_GLOB_SUBST
17092 # Now quote all the things that may contain metacharacters while being
17093 # careful not to overquote the AC_SUBSTed values. We take copies of the
17094 # variables and quote the copies for generation of the libtool script.
17095 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17097 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17098 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17099 deplibs_check_method reload_flag reload_cmds need_locks \
17100 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17101 lt_cv_sys_global_symbol_to_c_name_address \
17102 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17103 old_postinstall_cmds old_postuninstall_cmds \
17107 lt_prog_compiler_wl_F77 \
17108 lt_prog_compiler_pic_F77 \
17109 lt_prog_compiler_static_F77 \
17110 lt_prog_compiler_no_builtin_flag_F77 \
17111 export_dynamic_flag_spec_F77 \
17112 thread_safe_flag_spec_F77 \
17113 whole_archive_flag_spec_F77 \
17114 enable_shared_with_static_runtimes_F77 \
17115 old_archive_cmds_F77 \
17116 old_archive_from_new_cmds_F77 \
17117 predep_objects_F77 \
17118 postdep_objects_F77 \
17121 compiler_lib_search_path_F77 \
17123 archive_expsym_cmds_F77 \
17124 postinstall_cmds_F77 \
17125 postuninstall_cmds_F77 \
17126 old_archive_from_expsyms_cmds_F77 \
17127 allow_undefined_flag_F77 \
17128 no_undefined_flag_F77 \
17129 export_symbols_cmds_F77 \
17130 hardcode_libdir_flag_spec_F77 \
17131 hardcode_libdir_flag_spec_ld_F77 \
17132 hardcode_libdir_separator_F77 \
17133 hardcode_automatic_F77 \
17135 module_expsym_cmds_F77 \
17136 lt_cv_prog_compiler_c_o_F77 \
17137 exclude_expsyms_F77 \
17138 include_expsyms_F77; do
17141 old_archive_cmds_F77 | \
17142 old_archive_from_new_cmds_F77 | \
17143 archive_cmds_F77 | \
17144 archive_expsym_cmds_F77 | \
17145 module_cmds_F77 | \
17146 module_expsym_cmds_F77 | \
17147 old_archive_from_expsyms_cmds_F77 | \
17148 export_symbols_cmds_F77 | \
17149 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17150 postinstall_cmds | postuninstall_cmds | \
17151 old_postinstall_cmds | old_postuninstall_cmds | \
17152 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17153 # Double-quote double-evaled strings.
17154 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17157 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17163 *'\$0 --fallback-echo"')
17164 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17170 cat <<__EOF__ >> "$cfgfile"
17171 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17173 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17175 # Shell to use when invoking shell scripts.
17178 # Whether or not to build shared libraries.
17179 build_libtool_libs=$enable_shared
17181 # Whether or not to build static libraries.
17182 build_old_libs=$enable_static
17184 # Whether or not to add -lc for building shared libraries.
17185 build_libtool_need_lc=$archive_cmds_need_lc_F77
17187 # Whether or not to disallow shared libs when runtime libs are static
17188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17190 # Whether or not to optimize for fast installation.
17191 fast_install=$enable_fast_install
17194 host_alias=$host_alias
17198 # The build system.
17199 build_alias=$build_alias
17203 # An echo program that does not interpret backslashes.
17208 AR_FLAGS=$lt_AR_FLAGS
17213 # LTCC compiler flags.
17214 LTCFLAGS=$lt_LTCFLAGS
17216 # A language-specific compiler.
17217 CC=$lt_compiler_F77
17219 # Is the compiler the GNU C compiler?
17225 # The linker used to build libraries.
17228 # Whether we need hard or soft links.
17231 # A BSD-compatible nm program.
17234 # A symbol stripping program
17237 # Used to examine libraries when file_magic_cmd begins "file"
17238 MAGIC_CMD=$MAGIC_CMD
17240 # Used on cygwin: DLL creation program.
17243 # Used on cygwin: object dumper.
17246 # Used on cygwin: assembler.
17249 # The name of the directory that contains temporary libtool files.
17252 # How to create reloadable object files.
17253 reload_flag=$lt_reload_flag
17254 reload_cmds=$lt_reload_cmds
17256 # How to pass a linker flag through the compiler.
17257 wl=$lt_lt_prog_compiler_wl_F77
17259 # Object file suffix (normally "o").
17260 objext="$ac_objext"
17262 # Old archive suffix (normally "a").
17265 # Shared library suffix (normally ".so").
17266 shrext_cmds='$shrext_cmds'
17268 # Executable file suffix (normally "").
17271 # Additional compiler flags for building library objects.
17272 pic_flag=$lt_lt_prog_compiler_pic_F77
17275 # What is the maximum length of a command?
17276 max_cmd_len=$lt_cv_sys_max_cmd_len
17278 # Does compiler simultaneously support -c and -o options?
17279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17281 # Must we lock files when doing compilation?
17282 need_locks=$lt_need_locks
17284 # Do we need the lib prefix for modules?
17285 need_lib_prefix=$need_lib_prefix
17287 # Do we need a version for libraries?
17288 need_version=$need_version
17290 # Whether dlopen is supported.
17291 dlopen_support=$enable_dlopen
17293 # Whether dlopen of programs is supported.
17294 dlopen_self=$enable_dlopen_self
17296 # Whether dlopen of statically linked programs is supported.
17297 dlopen_self_static=$enable_dlopen_self_static
17299 # Compiler flag to prevent dynamic linking.
17300 link_static_flag=$lt_lt_prog_compiler_static_F77
17302 # Compiler flag to turn off builtin functions.
17303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17305 # Compiler flag to allow reflexive dlopens.
17306 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17308 # Compiler flag to generate shared objects directly from archives.
17309 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17311 # Compiler flag to generate thread-safe objects.
17312 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17314 # Library versioning type.
17315 version_type=$version_type
17317 # Format of library name prefix.
17318 libname_spec=$lt_libname_spec
17320 # List of archive names. First name is the real one, the rest are links.
17321 # The last name is the one that the linker finds with -lNAME.
17322 library_names_spec=$lt_library_names_spec
17324 # The coded name of the library, if different from the real name.
17325 soname_spec=$lt_soname_spec
17327 # Commands used to build and install an old-style archive.
17329 old_archive_cmds=$lt_old_archive_cmds_F77
17330 old_postinstall_cmds=$lt_old_postinstall_cmds
17331 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17333 # Create an old-style archive from a shared archive.
17334 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17336 # Create a temporary old-style archive to link instead of a shared archive.
17337 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17339 # Commands used to build and install a shared archive.
17340 archive_cmds=$lt_archive_cmds_F77
17341 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17342 postinstall_cmds=$lt_postinstall_cmds
17343 postuninstall_cmds=$lt_postuninstall_cmds
17345 # Commands used to build a loadable module (assumed same as above if empty)
17346 module_cmds=$lt_module_cmds_F77
17347 module_expsym_cmds=$lt_module_expsym_cmds_F77
17349 # Commands to strip libraries.
17350 old_striplib=$lt_old_striplib
17351 striplib=$lt_striplib
17353 # Dependencies to place before the objects being linked to create a
17355 predep_objects=$lt_predep_objects_F77
17357 # Dependencies to place after the objects being linked to create a
17359 postdep_objects=$lt_postdep_objects_F77
17361 # Dependencies to place before the objects being linked to create a
17363 predeps=$lt_predeps_F77
17365 # Dependencies to place after the objects being linked to create a
17367 postdeps=$lt_postdeps_F77
17369 # The library search path used internally by the compiler when linking
17370 # a shared library.
17371 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17373 # Method to check whether dependent libraries are shared objects.
17374 deplibs_check_method=$lt_deplibs_check_method
17376 # Command to use when deplibs_check_method == file_magic.
17377 file_magic_cmd=$lt_file_magic_cmd
17379 # Flag that allows shared libraries with undefined symbols to be built.
17380 allow_undefined_flag=$lt_allow_undefined_flag_F77
17382 # Flag that forces no undefined symbols.
17383 no_undefined_flag=$lt_no_undefined_flag_F77
17385 # Commands used to finish a libtool library installation in a directory.
17386 finish_cmds=$lt_finish_cmds
17388 # Same as above, but a single script fragment to be evaled but not shown.
17389 finish_eval=$lt_finish_eval
17391 # Take the output of nm and produce a listing of raw symbols and C names.
17392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17394 # Transform the output of nm in a proper C declaration
17395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17397 # Transform the output of nm in a C name address pair
17398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17400 # This is the shared library runtime path variable.
17401 runpath_var=$runpath_var
17403 # This is the shared library path variable.
17404 shlibpath_var=$shlibpath_var
17406 # Is shlibpath searched before the hard-coded library search path?
17407 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17409 # How to hardcode a shared library path into an executable.
17410 hardcode_action=$hardcode_action_F77
17412 # Whether we should hardcode library paths into libraries.
17413 hardcode_into_libs=$hardcode_into_libs
17415 # Flag to hardcode \$libdir into a binary during linking.
17416 # This must work even if \$libdir does not exist.
17417 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17419 # If ld is used when linking, flag to hardcode \$libdir into
17420 # a binary during linking. This must work even if \$libdir does
17422 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17424 # Whether we need a single -rpath flag with a separated argument.
17425 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17427 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17428 # resulting binary.
17429 hardcode_direct=$hardcode_direct_F77
17431 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17432 # resulting binary.
17433 hardcode_minus_L=$hardcode_minus_L_F77
17435 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17436 # the resulting binary.
17437 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17439 # Set to yes if building a shared library automatically hardcodes DIR into the library
17440 # and all subsequent libraries and executables linked against it.
17441 hardcode_automatic=$hardcode_automatic_F77
17443 # Variables whose values should be saved in libtool wrapper scripts and
17444 # restored at relink time.
17445 variables_saved_for_relink="$variables_saved_for_relink"
17447 # Whether libtool must link a program against all its dependency libraries.
17448 link_all_deplibs=$link_all_deplibs_F77
17450 # Compile-time system search path for libraries
17451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17453 # Run-time system search path for libraries
17454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17456 # Fix the shell variable \$srcfile for the compiler.
17457 fix_srcfile_path="$fix_srcfile_path_F77"
17459 # Set to yes if exported symbols are required.
17460 always_export_symbols=$always_export_symbols_F77
17462 # The commands to list exported symbols.
17463 export_symbols_cmds=$lt_export_symbols_cmds_F77
17465 # The commands to extract the exported symbol list from a shared archive.
17466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17468 # Symbols that should not be listed in the preloaded symbols.
17469 exclude_expsyms=$lt_exclude_expsyms_F77
17471 # Symbols that must always be exported.
17472 include_expsyms=$lt_include_expsyms_F77
17474 # ### END LIBTOOL TAG CONFIG: $tagname
17480 # If there is no Makefile yet, we rely on a make rule to execute
17481 # `config.status --recheck' to rerun these tests and create the
17482 # libtool script then.
17483 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17484 if test -f "$ltmain_in"; then
17485 test -f Makefile && make "$ltmain"
17491 ac_cpp='$CPP $CPPFLAGS'
17492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17504 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17507 # Source file extension for Java test sources.
17510 # Object file extension for compiled Java test sources.
17514 # Code to be used in simple compile tests
17515 lt_simple_compile_test_code="class foo {}\n"
17517 # Code to be used in simple link tests
17518 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17522 # If no C compiler was specified, use CC.
17525 # If no C compiler flags were specified, use CFLAGS.
17526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17528 # Allow CC to be a program name with arguments.
17532 # save warnings/boilerplate of simple test code
17533 ac_outfile=conftest.$ac_objext
17534 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17536 _lt_compiler_boilerplate=`cat conftest.err`
17539 ac_outfile=conftest.$ac_objext
17540 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17542 _lt_linker_boilerplate=`cat conftest.err`
17546 # Allow CC to be a program name with arguments.
17551 for cc_temp in $compiler""; do
17553 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17554 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17559 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17562 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17563 archive_cmds_need_lc_GCJ=no
17565 old_archive_cmds_GCJ=$old_archive_cmds
17568 lt_prog_compiler_no_builtin_flag_GCJ=
17570 if test "$GCC" = yes; then
17571 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17574 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17575 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17576 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17577 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 lt_cv_prog_compiler_rtti_exceptions=no
17580 ac_outfile=conftest.$ac_objext
17581 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17582 lt_compiler_flag="-fno-rtti -fno-exceptions"
17583 # Insert the option either (1) after the last *FLAGS variable, or
17584 # (2) before a word containing "conftest.", or (3) at the end.
17585 # Note that $ac_compile itself does not contain backslashes and begins
17586 # with a dollar sign (not a hyphen), so the echo should work correctly.
17587 # The option is referenced via a variable to avoid confusing sed.
17588 lt_compile=`echo "$ac_compile" | $SED \
17589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17591 -e 's:$: $lt_compiler_flag:'`
17592 (eval echo "\"\$as_me:17592: $lt_compile\"" >&5)
17593 (eval "$lt_compile" 2>conftest.err)
17595 cat conftest.err >&5
17596 echo "$as_me:17596: \$? = $ac_status" >&5
17597 if (exit $ac_status) && test -s "$ac_outfile"; then
17598 # The compiler can only warn and ignore the option if not recognized
17599 # So say no if there are warnings other than the usual output.
17600 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17602 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17603 lt_cv_prog_compiler_rtti_exceptions=yes
17609 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17610 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17612 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17613 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17620 lt_prog_compiler_wl_GCJ=
17621 lt_prog_compiler_pic_GCJ=
17622 lt_prog_compiler_static_GCJ=
17624 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17627 if test "$GCC" = yes; then
17628 lt_prog_compiler_wl_GCJ='-Wl,'
17629 lt_prog_compiler_static_GCJ='-static'
17633 # All AIX code is PIC.
17634 if test "$host_cpu" = ia64; then
17635 # AIX 5 now supports IA64 processor
17636 lt_prog_compiler_static_GCJ='-Bstatic'
17641 # FIXME: we need at least 68020 code to build shared libraries, but
17642 # adding the `-m68020' flag to GCC prevents building anything better,
17644 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17647 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17648 # PIC is the default for these OSes.
17651 mingw* | pw32* | os2*)
17652 # This hack is so that the source file can tell whether it is being
17653 # built for inclusion in a dll (and should export symbols for example).
17654 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17657 darwin* | rhapsody*)
17658 # PIC is the default on this platform
17659 # Common symbols not allowed in MH_DYLIB files
17660 lt_prog_compiler_pic_GCJ='-fno-common'
17664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17665 # Instead, we relocate shared libraries at runtime.
17669 # Just because we use GCC doesn't mean we suddenly get shared libraries
17670 # on systems that don't support them.
17671 lt_prog_compiler_can_build_shared_GCJ=no
17676 if test -d /usr/nec; then
17677 lt_prog_compiler_pic_GCJ=-Kconform_pic
17682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17683 # not for PA HP-UX.
17689 lt_prog_compiler_pic_GCJ='-fPIC'
17695 lt_prog_compiler_pic_GCJ='-fPIC'
17699 # PORTME Check for flag to pass linker flags through the system compiler.
17702 lt_prog_compiler_wl_GCJ='-Wl,'
17703 if test "$host_cpu" = ia64; then
17704 # AIX 5 now supports IA64 processor
17705 lt_prog_compiler_static_GCJ='-Bstatic'
17707 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17711 # PIC is the default on this platform
17712 # Common symbols not allowed in MH_DYLIB files
17713 case $cc_basename in
17715 lt_prog_compiler_pic_GCJ='-qnocommon'
17716 lt_prog_compiler_wl_GCJ='-Wl,'
17721 mingw* | pw32* | os2*)
17722 # This hack is so that the source file can tell whether it is being
17723 # built for inclusion in a dll (and should export symbols for example).
17724 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17727 hpux9* | hpux10* | hpux11*)
17728 lt_prog_compiler_wl_GCJ='-Wl,'
17729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17730 # not for PA HP-UX.
17736 lt_prog_compiler_pic_GCJ='+Z'
17739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17740 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17743 irix5* | irix6* | nonstopux*)
17744 lt_prog_compiler_wl_GCJ='-Wl,'
17745 # PIC (with -KPIC) is the default.
17746 lt_prog_compiler_static_GCJ='-non_shared'
17750 lt_prog_compiler_pic_GCJ='-KPIC'
17751 lt_prog_compiler_static_GCJ='-Bstatic'
17754 linux* | k*bsd*-gnu)
17755 case $cc_basename in
17757 lt_prog_compiler_wl_GCJ='-Wl,'
17758 lt_prog_compiler_pic_GCJ='-KPIC'
17759 lt_prog_compiler_static_GCJ='-static'
17761 pgcc* | pgf77* | pgf90* | pgf95*)
17762 # Portland Group compilers (*not* the Pentium gcc compiler,
17763 # which looks to be a dead project)
17764 lt_prog_compiler_wl_GCJ='-Wl,'
17765 lt_prog_compiler_pic_GCJ='-fpic'
17766 lt_prog_compiler_static_GCJ='-Bstatic'
17769 lt_prog_compiler_wl_GCJ='-Wl,'
17770 # All Alpha code is PIC.
17771 lt_prog_compiler_static_GCJ='-non_shared'
17776 osf3* | osf4* | osf5*)
17777 lt_prog_compiler_wl_GCJ='-Wl,'
17778 # All OSF/1 code is PIC.
17779 lt_prog_compiler_static_GCJ='-non_shared'
17783 lt_prog_compiler_pic_GCJ='-KPIC'
17784 lt_prog_compiler_static_GCJ='-Bstatic'
17785 case $cc_basename in
17786 f77* | f90* | f95*)
17787 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17789 lt_prog_compiler_wl_GCJ='-Wl,';;
17794 lt_prog_compiler_wl_GCJ='-Qoption ld '
17795 lt_prog_compiler_pic_GCJ='-PIC'
17796 lt_prog_compiler_static_GCJ='-Bstatic'
17799 sysv4 | sysv4.2uw2* | sysv4.3*)
17800 lt_prog_compiler_wl_GCJ='-Wl,'
17801 lt_prog_compiler_pic_GCJ='-KPIC'
17802 lt_prog_compiler_static_GCJ='-Bstatic'
17806 if test -d /usr/nec ;then
17807 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17808 lt_prog_compiler_static_GCJ='-Bstatic'
17812 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17813 lt_prog_compiler_wl_GCJ='-Wl,'
17814 lt_prog_compiler_pic_GCJ='-KPIC'
17815 lt_prog_compiler_static_GCJ='-Bstatic'
17819 lt_prog_compiler_wl_GCJ='-Wl,'
17820 lt_prog_compiler_can_build_shared_GCJ=no
17824 lt_prog_compiler_pic_GCJ='-pic'
17825 lt_prog_compiler_static_GCJ='-Bstatic'
17829 lt_prog_compiler_can_build_shared_GCJ=no
17834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17835 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17838 # Check to make sure the PIC flag actually works.
17840 if test -n "$lt_prog_compiler_pic_GCJ"; then
17842 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17843 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17844 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17847 lt_prog_compiler_pic_works_GCJ=no
17848 ac_outfile=conftest.$ac_objext
17849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17850 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17851 # Insert the option either (1) after the last *FLAGS variable, or
17852 # (2) before a word containing "conftest.", or (3) at the end.
17853 # Note that $ac_compile itself does not contain backslashes and begins
17854 # with a dollar sign (not a hyphen), so the echo should work correctly.
17855 # The option is referenced via a variable to avoid confusing sed.
17856 lt_compile=`echo "$ac_compile" | $SED \
17857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17859 -e 's:$: $lt_compiler_flag:'`
17860 (eval echo "\"\$as_me:17860: $lt_compile\"" >&5)
17861 (eval "$lt_compile" 2>conftest.err)
17863 cat conftest.err >&5
17864 echo "$as_me:17864: \$? = $ac_status" >&5
17865 if (exit $ac_status) && test -s "$ac_outfile"; then
17866 # The compiler can only warn and ignore the option if not recognized
17867 # So say no if there are warnings other than the usual output.
17868 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17871 lt_prog_compiler_pic_works_GCJ=yes
17877 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17878 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17880 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17881 case $lt_prog_compiler_pic_GCJ in
17883 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17886 lt_prog_compiler_pic_GCJ=
17887 lt_prog_compiler_can_build_shared_GCJ=no
17892 # For platforms which do not support PIC, -DPIC is meaningless:
17894 lt_prog_compiler_pic_GCJ=
17897 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17902 # Check to make sure the static flag actually works.
17904 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17905 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17906 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17907 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
17910 lt_prog_compiler_static_works_GCJ=no
17911 save_LDFLAGS="$LDFLAGS"
17912 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17913 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17914 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17915 # The linker can only warn and ignore the option if not recognized
17916 # So say no if there are warnings
17917 if test -s conftest.err; then
17918 # Append any errors to the config.log.
17919 cat conftest.err 1>&5
17920 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17922 if diff conftest.exp conftest.er2 >/dev/null; then
17923 lt_prog_compiler_static_works_GCJ=yes
17926 lt_prog_compiler_static_works_GCJ=yes
17930 LDFLAGS="$save_LDFLAGS"
17933 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17934 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17936 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17939 lt_prog_compiler_static_GCJ=
17943 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17944 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17945 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 lt_cv_prog_compiler_c_o_GCJ=no
17949 $rm -r conftest 2>/dev/null
17953 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17955 lt_compiler_flag="-o out/conftest2.$ac_objext"
17956 # Insert the option either (1) after the last *FLAGS variable, or
17957 # (2) before a word containing "conftest.", or (3) at the end.
17958 # Note that $ac_compile itself does not contain backslashes and begins
17959 # with a dollar sign (not a hyphen), so the echo should work correctly.
17960 lt_compile=`echo "$ac_compile" | $SED \
17961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17963 -e 's:$: $lt_compiler_flag:'`
17964 (eval echo "\"\$as_me:17964: $lt_compile\"" >&5)
17965 (eval "$lt_compile" 2>out/conftest.err)
17967 cat out/conftest.err >&5
17968 echo "$as_me:17968: \$? = $ac_status" >&5
17969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17971 # The compiler can only warn and ignore the option if not recognized
17972 # So say no if there are warnings
17973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17976 lt_cv_prog_compiler_c_o_GCJ=yes
17981 # SGI C++ compiler will create directory out/ii_files/ for
17982 # template instantiation
17983 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17984 $rm out/* && rmdir out
17990 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17991 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17994 hard_links="nottested"
17995 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17996 # do not overwrite the value of need_locks provided by the user
17997 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17998 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18001 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18003 ln conftest.a conftest.b 2>&5 || hard_links=no
18004 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18005 { echo "$as_me:$LINENO: result: $hard_links" >&5
18006 echo "${ECHO_T}$hard_links" >&6; }
18007 if test "$hard_links" = no; then
18008 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18009 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18016 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18017 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18020 allow_undefined_flag_GCJ=
18021 enable_shared_with_static_runtimes_GCJ=no
18023 archive_expsym_cmds_GCJ=
18024 old_archive_From_new_cmds_GCJ=
18025 old_archive_from_expsyms_cmds_GCJ=
18026 export_dynamic_flag_spec_GCJ=
18027 whole_archive_flag_spec_GCJ=
18028 thread_safe_flag_spec_GCJ=
18029 hardcode_libdir_flag_spec_GCJ=
18030 hardcode_libdir_flag_spec_ld_GCJ=
18031 hardcode_libdir_separator_GCJ=
18032 hardcode_direct_GCJ=no
18033 hardcode_minus_L_GCJ=no
18034 hardcode_shlibpath_var_GCJ=unsupported
18035 link_all_deplibs_GCJ=unknown
18036 hardcode_automatic_GCJ=no
18038 module_expsym_cmds_GCJ=
18039 always_export_symbols_GCJ=no
18040 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18041 # include_expsyms should be a list of space-separated symbols to be *always*
18042 # included in the symbol list
18043 include_expsyms_GCJ=
18044 # exclude_expsyms can be an extended regexp of symbols to exclude
18045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18047 # as well as any symbol that contains `d'.
18048 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18050 # platforms (ab)use it in PIC code, but their linkers get confused if
18051 # the symbol is explicitly referenced. Since portable code cannot
18052 # rely on this symbol name, it's probably fine to never include it in
18053 # preloaded symbol tables.
18054 extract_expsyms_cmds=
18055 # Just being paranoid about ensuring that cc_basename is set.
18056 for cc_temp in $compiler""; do
18058 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18059 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18064 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18067 cygwin* | mingw* | pw32*)
18068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18069 # When not using gcc, we currently assume that we are using
18070 # Microsoft Visual C++.
18071 if test "$GCC" != yes; then
18076 # we just hope/assume this is gcc and not c89 (= MSVC++)
18085 if test "$with_gnu_ld" = yes; then
18086 # If archive_cmds runs LD, not CC, wlarc should be empty
18089 # Set some defaults for GNU ld with shared library support. These
18090 # are reset later if shared libraries are not supported. Putting them
18091 # here allows them to be overridden if necessary.
18092 runpath_var=LD_RUN_PATH
18093 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18094 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18095 # ancient GNU ld didn't support --whole-archive et. al.
18096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18097 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18099 whole_archive_flag_spec_GCJ=
18101 supports_anon_versioning=no
18102 case `$LD -v 2>/dev/null` in
18103 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18104 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18105 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18106 *\ 2.11.*) ;; # other 2.11 versions
18107 *) supports_anon_versioning=yes ;;
18110 # See if GNU ld supports shared libraries.
18112 aix3* | aix4* | aix5*)
18113 # On AIX/PPC, the GNU linker is very broken
18114 if test "$host_cpu" != ia64; then
18118 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18119 *** to be unable to reliably create shared libraries on AIX.
18120 *** Therefore, libtool is disabling shared libraries support. If you
18121 *** really care for shared libraries, you may want to modify your PATH
18122 *** so that a non-GNU linker is found, and then restart.
18129 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)'
18130 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18131 hardcode_minus_L_GCJ=yes
18133 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18134 # that the semantics of dynamic libraries on AmigaOS, at least up
18135 # to version 4, is to share data among multiple programs linked
18136 # with the same dynamic library. Since this doesn't match the
18137 # behavior of shared libraries on other platforms, we can't use
18143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18144 allow_undefined_flag_GCJ=unsupported
18145 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18146 # support --undefined. This deserves some investigation. FIXME
18147 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18153 cygwin* | mingw* | pw32*)
18154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18155 # as there is no search path for DLLs.
18156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18157 allow_undefined_flag_GCJ=unsupported
18158 always_export_symbols_GCJ=no
18159 enable_shared_with_static_runtimes_GCJ=yes
18160 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18162 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18163 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18164 # If the export-symbols file already is a .def file (1st line
18165 # is EXPORTS), use it as is; otherwise, prepend...
18166 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18167 cp $export_symbols $output_objdir/$soname.def;
18169 echo EXPORTS > $output_objdir/$soname.def;
18170 cat $export_symbols >> $output_objdir/$soname.def;
18172 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18179 hardcode_direct_GCJ=no
18180 hardcode_shlibpath_var_GCJ=no
18181 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18182 export_dynamic_flag_spec_GCJ='${wl}-E'
18183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18184 # Instead, shared libraries are loaded at an image base (0x10000000 by
18185 # default) and relocated if they conflict, which is a slow very memory
18186 # consuming and fragmenting process. To avoid this, we pick a random,
18187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18189 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'
18190 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'
18193 linux* | k*bsd*-gnu)
18194 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18196 case $cc_basename,$host_cpu in
18197 pgcc*) # Portland Group C compiler
18198 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'
18199 tmp_addflag=' $pic_flag'
18201 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18202 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'
18203 tmp_addflag=' $pic_flag -Mnomain' ;;
18204 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18205 tmp_addflag=' -i_dynamic' ;;
18206 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18207 tmp_addflag=' -i_dynamic -nofor_main' ;;
18208 ifc* | ifort*) # Intel Fortran compiler
18209 tmp_addflag=' -nofor_main' ;;
18211 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18213 if test $supports_anon_versioning = yes; then
18214 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18216 $echo "local: *; };" >> $output_objdir/$libname.ver~
18217 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18219 link_all_deplibs_GCJ=no
18225 netbsd* | netbsdelf*-gnu)
18226 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18227 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18230 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18231 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18236 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18240 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18241 *** create shared libraries on Solaris systems. Therefore, libtool
18242 *** is disabling shared libraries support. We urge you to upgrade GNU
18243 *** binutils to release 2.9.1 or newer. Another option is to modify
18244 *** your PATH or compiler configuration so that the native linker is
18245 *** used, and then restart.
18248 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18257 case `$LD -v 2>&1` in
18258 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18262 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18263 *** reliably create shared libraries on SCO systems. Therefore, libtool
18264 *** is disabling shared libraries support. We urge you to upgrade GNU
18265 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18266 *** your PATH or compiler configuration so that the native linker is
18267 *** used, and then restart.
18272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18273 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
18274 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
18275 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
18284 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18286 hardcode_direct_GCJ=yes
18287 hardcode_shlibpath_var_GCJ=no
18291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18292 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18293 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18300 if test "$ld_shlibs_GCJ" = no; then
18302 hardcode_libdir_flag_spec_GCJ=
18303 export_dynamic_flag_spec_GCJ=
18304 whole_archive_flag_spec_GCJ=
18307 # PORTME fill in a description of your system's linker (not GNU ld)
18310 allow_undefined_flag_GCJ=unsupported
18311 always_export_symbols_GCJ=yes
18312 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'
18313 # Note: this linker hardcodes the directories in LIBPATH if there
18314 # are no directories specified by -L.
18315 hardcode_minus_L_GCJ=yes
18316 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18317 # Neither direct hardcoding nor static linking is supported with a
18319 hardcode_direct_GCJ=unsupported
18324 if test "$host_cpu" = ia64; then
18325 # On IA64, the linker does run time linking by default, so we don't
18326 # have to do anything special.
18327 aix_use_runtimelinking=no
18328 exp_sym_flag='-Bexport'
18331 # If we're using GNU nm, then we don't want the "-C" option.
18332 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18333 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18334 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'
18336 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'
18338 aix_use_runtimelinking=no
18340 # Test if we are trying to use run time linking or normal
18341 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18342 # need to do runtime linking.
18343 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18344 for ld_flag in $LDFLAGS; do
18345 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18346 aix_use_runtimelinking=yes
18353 exp_sym_flag='-bexport'
18354 no_entry_flag='-bnoentry'
18357 # When large executables or shared objects are built, AIX ld can
18358 # have problems creating the table of contents. If linking a library
18359 # or program results in "error TOC overflow" add -mminimal-toc to
18360 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18361 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18363 archive_cmds_GCJ=''
18364 hardcode_direct_GCJ=yes
18365 hardcode_libdir_separator_GCJ=':'
18366 link_all_deplibs_GCJ=yes
18368 if test "$GCC" = yes; then
18369 case $host_os in aix4.[012]|aix4.[012].*)
18370 # We only want to do this on AIX 4.2 and lower, the check
18371 # below for broken collect2 doesn't work under 4.3+
18372 collect2name=`${CC} -print-prog-name=collect2`
18373 if test -f "$collect2name" && \
18374 strings "$collect2name" | grep resolve_lib_name >/dev/null
18376 # We have reworked collect2
18377 hardcode_direct_GCJ=yes
18379 # We have old collect2
18380 hardcode_direct_GCJ=unsupported
18381 # It fails to find uninstalled libraries when the uninstalled
18382 # path is not listed in the libpath. Setting hardcode_minus_L
18383 # to unsupported forces relinking
18384 hardcode_minus_L_GCJ=yes
18385 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18386 hardcode_libdir_separator_GCJ=
18390 shared_flag='-shared'
18391 if test "$aix_use_runtimelinking" = yes; then
18392 shared_flag="$shared_flag "'${wl}-G'
18396 if test "$host_cpu" = ia64; then
18397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18398 # chokes on -Wl,-G. The following line is correct:
18401 if test "$aix_use_runtimelinking" = yes; then
18402 shared_flag='${wl}-G'
18404 shared_flag='${wl}-bM:SRE'
18409 # It seems that -bexpall does not export symbols beginning with
18410 # underscore (_), so it is better to generate a list of symbols to export.
18411 always_export_symbols_GCJ=yes
18412 if test "$aix_use_runtimelinking" = yes; then
18413 # Warning - without using the other runtime loading flags (-brtl),
18414 # -berok will link without error, but may produce a broken library.
18415 allow_undefined_flag_GCJ='-berok'
18416 # Determine the default libpath from the value encoded in an empty executable.
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_link") 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } && {
18446 test -z "$ac_c_werror_flag" ||
18447 test ! -s conftest.err
18448 } && test -s conftest$ac_exeext &&
18449 $as_test_x conftest$ac_exeext; then
18451 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18453 # Check for a 64-bit object if we didn't find anything.
18454 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; }
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18464 conftest$ac_exeext conftest.$ac_ext
18465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18467 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18468 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"
18470 if test "$host_cpu" = ia64; then
18471 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18472 allow_undefined_flag_GCJ="-z nodefs"
18473 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"
18475 # Determine the default libpath from the value encoded in an empty executable.
18476 cat >conftest.$ac_ext <<_ACEOF
18479 cat confdefs.h >>conftest.$ac_ext
18480 cat >>conftest.$ac_ext <<_ACEOF
18481 /* end confdefs.h. */
18491 rm -f conftest.$ac_objext conftest$ac_exeext
18492 if { (ac_try="$ac_link"
18493 case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_link") 2>conftest.er1
18500 grep -v '^ *+' conftest.er1 >conftest.err
18502 cat conftest.err >&5
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); } && {
18505 test -z "$ac_c_werror_flag" ||
18506 test ! -s conftest.err
18507 } && test -s conftest$ac_exeext &&
18508 $as_test_x conftest$ac_exeext; then
18510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18512 # Check for a 64-bit object if we didn't find anything.
18513 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; }
18516 echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18523 conftest$ac_exeext conftest.$ac_ext
18524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18526 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18527 # Warning - without using the other run time loading flags,
18528 # -berok will link without error, but may produce a broken library.
18529 no_undefined_flag_GCJ=' ${wl}-bernotok'
18530 allow_undefined_flag_GCJ=' ${wl}-berok'
18531 # Exported symbols can be pulled into shared objects from archives
18532 whole_archive_flag_spec_GCJ='$convenience'
18533 archive_cmds_need_lc_GCJ=yes
18534 # This is similar to how AIX traditionally builds its shared libraries.
18535 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'
18541 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)'
18542 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18543 hardcode_minus_L_GCJ=yes
18544 # see comment about different semantics on the GNU ld section
18549 export_dynamic_flag_spec_GCJ=-rdynamic
18552 cygwin* | mingw* | pw32*)
18553 # When not using gcc, we currently assume that we are using
18554 # Microsoft Visual C++.
18555 # hardcode_libdir_flag_spec is actually meaningless, as there is
18556 # no search path for DLLs.
18557 hardcode_libdir_flag_spec_GCJ=' '
18558 allow_undefined_flag_GCJ=unsupported
18559 # Tell ltmain to make .lib files, not .a files.
18561 # Tell ltmain to make .dll files, not .so files.
18563 # FIXME: Setting linknames here is a bad hack.
18564 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18565 # The linker will automatically build a .lib file if we build a DLL.
18566 old_archive_From_new_cmds_GCJ='true'
18567 # FIXME: Should let the user specify the lib program.
18568 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18569 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18570 enable_shared_with_static_runtimes_GCJ=yes
18573 darwin* | rhapsody*)
18575 rhapsody* | darwin1.[012])
18576 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18579 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18580 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18582 case ${MACOSX_DEPLOYMENT_TARGET} in
18584 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18587 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18593 archive_cmds_need_lc_GCJ=no
18594 hardcode_direct_GCJ=no
18595 hardcode_automatic_GCJ=yes
18596 hardcode_shlibpath_var_GCJ=unsupported
18597 whole_archive_flag_spec_GCJ=''
18598 link_all_deplibs_GCJ=yes
18599 if test "$GCC" = yes ; then
18600 output_verbose_link_cmd='echo'
18601 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18602 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18603 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18604 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}'
18605 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}'
18607 case $cc_basename in
18609 output_verbose_link_cmd='echo'
18610 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18611 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18612 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18613 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}'
18614 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}'
18624 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18626 hardcode_shlibpath_var_GCJ=no
18633 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18634 # support. Future versions do this automatically, but an explicit c++rt0.o
18635 # does not break anything, and helps significantly (at the cost of a little
18638 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18639 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18640 hardcode_direct_GCJ=yes
18641 hardcode_shlibpath_var_GCJ=no
18644 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18646 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18647 hardcode_direct_GCJ=yes
18648 hardcode_minus_L_GCJ=yes
18649 hardcode_shlibpath_var_GCJ=no
18652 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18653 freebsd* | dragonfly*)
18654 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18655 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18656 hardcode_direct_GCJ=yes
18657 hardcode_shlibpath_var_GCJ=no
18661 if test "$GCC" = yes; then
18662 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'
18664 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'
18666 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18667 hardcode_libdir_separator_GCJ=:
18668 hardcode_direct_GCJ=yes
18670 # hardcode_minus_L: Not really in the search PATH,
18671 # but as the default location of the library.
18672 hardcode_minus_L_GCJ=yes
18673 export_dynamic_flag_spec_GCJ='${wl}-E'
18677 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18678 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18680 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18682 if test "$with_gnu_ld" = no; then
18683 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18684 hardcode_libdir_separator_GCJ=:
18686 hardcode_direct_GCJ=yes
18687 export_dynamic_flag_spec_GCJ='${wl}-E'
18689 # hardcode_minus_L: Not really in the search PATH,
18690 # but as the default location of the library.
18691 hardcode_minus_L_GCJ=yes
18696 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18699 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18702 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18705 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18711 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18714 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18717 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18721 if test "$with_gnu_ld" = no; then
18722 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18723 hardcode_libdir_separator_GCJ=:
18727 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18728 hardcode_direct_GCJ=no
18729 hardcode_shlibpath_var_GCJ=no
18732 hardcode_direct_GCJ=yes
18733 export_dynamic_flag_spec_GCJ='${wl}-E'
18735 # hardcode_minus_L: Not really in the search PATH,
18736 # but as the default location of the library.
18737 hardcode_minus_L_GCJ=yes
18743 irix5* | irix6* | nonstopux*)
18744 if test "$GCC" = yes; then
18745 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'
18747 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'
18748 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18750 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18751 hardcode_libdir_separator_GCJ=:
18752 link_all_deplibs_GCJ=yes
18755 netbsd* | netbsdelf*-gnu)
18756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18757 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18759 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18761 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18762 hardcode_direct_GCJ=yes
18763 hardcode_shlibpath_var_GCJ=no
18767 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18768 hardcode_direct_GCJ=yes
18769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18770 hardcode_libdir_separator_GCJ=:
18771 hardcode_shlibpath_var_GCJ=no
18775 hardcode_direct_GCJ=yes
18776 hardcode_shlibpath_var_GCJ=no
18777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18778 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18779 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18780 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18781 export_dynamic_flag_spec_GCJ='${wl}-E'
18784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18785 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18786 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18789 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18790 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18798 hardcode_minus_L_GCJ=yes
18799 allow_undefined_flag_GCJ=unsupported
18800 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'
18801 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18805 if test "$GCC" = yes; then
18806 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18807 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'
18809 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18810 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'
18812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18813 hardcode_libdir_separator_GCJ=:
18816 osf4* | osf5*) # as osf3* with the addition of -msym flag
18817 if test "$GCC" = yes; then
18818 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18819 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'
18820 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18822 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18823 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'
18824 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~
18825 $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'
18827 # Both c and cxx compiler support -rpath directly
18828 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18830 hardcode_libdir_separator_GCJ=:
18834 no_undefined_flag_GCJ=' -z text'
18835 if test "$GCC" = yes; then
18837 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18838 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18839 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18842 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18843 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18844 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18847 hardcode_shlibpath_var_GCJ=no
18849 solaris2.[0-5] | solaris2.[0-5].*) ;;
18851 # The compiler driver will combine linker options so we
18852 # cannot just pass the convience library names through
18853 # without $wl, iff we do not link with $LD.
18854 # Luckily, gcc supports the same syntax we need for Sun Studio.
18855 # Supported since Solaris 2.6 (maybe 2.5.1?)
18858 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18860 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' ;;
18863 link_all_deplibs_GCJ=yes
18867 if test "x$host_vendor" = xsequent; then
18868 # Use $CC to link under sequent, because it throws in some extra .o
18869 # files that make .init and .fini sections work.
18870 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18872 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18874 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18875 hardcode_direct_GCJ=yes
18876 hardcode_minus_L_GCJ=yes
18877 hardcode_shlibpath_var_GCJ=no
18881 case $host_vendor in
18883 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18884 hardcode_direct_GCJ=yes # is this really true???
18887 ## LD is ld it makes a PLAMLIB
18888 ## CC just makes a GrossModule.
18889 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18890 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18891 hardcode_direct_GCJ=no
18894 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18895 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18898 runpath_var='LD_RUN_PATH'
18899 hardcode_shlibpath_var_GCJ=no
18903 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18904 hardcode_shlibpath_var_GCJ=no
18905 export_dynamic_flag_spec_GCJ='-Bexport'
18909 if test -d /usr/nec; then
18910 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18911 hardcode_shlibpath_var_GCJ=no
18912 runpath_var=LD_RUN_PATH
18913 hardcode_runpath_var=yes
18918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18919 no_undefined_flag_GCJ='${wl}-z,text'
18920 archive_cmds_need_lc_GCJ=no
18921 hardcode_shlibpath_var_GCJ=no
18922 runpath_var='LD_RUN_PATH'
18924 if test "$GCC" = yes; then
18925 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18926 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18928 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18929 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18933 sysv5* | sco3.2v5* | sco5v6*)
18934 # Note: We can NOT use -z defs as we might desire, because we do not
18935 # link with -lc, and that would cause any symbols used from libc to
18936 # always be unresolved, which means just about no library would
18937 # ever link correctly. If we're not using GNU ld we use -z text
18938 # though, which does catch some bad symbols but isn't as heavy-handed
18940 no_undefined_flag_GCJ='${wl}-z,text'
18941 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18942 archive_cmds_need_lc_GCJ=no
18943 hardcode_shlibpath_var_GCJ=no
18944 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18945 hardcode_libdir_separator_GCJ=':'
18946 link_all_deplibs_GCJ=yes
18947 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18948 runpath_var='LD_RUN_PATH'
18950 if test "$GCC" = yes; then
18951 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18952 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18954 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18955 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18961 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18962 hardcode_shlibpath_var_GCJ=no
18971 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18972 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18973 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18976 # Do we need to explicitly link libc?
18978 case "x$archive_cmds_need_lc_GCJ" in
18980 # Assume -lc should be added
18981 archive_cmds_need_lc_GCJ=yes
18983 if test "$enable_shared" = yes && test "$GCC" = yes; then
18984 case $archive_cmds_GCJ in
18986 # FIXME: we may have to deal with multi-command sequences.
18989 # Test whether the compiler implicitly links with -lc since on some
18990 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18991 # to ld, don't add -lc before -lgcc.
18992 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18993 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18998 (eval $ac_compile) 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } 2>conftest.err; then
19004 libobjs=conftest.$ac_objext
19006 wl=$lt_prog_compiler_wl_GCJ
19007 pic_flag=$lt_prog_compiler_pic_GCJ
19013 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19014 allow_undefined_flag_GCJ=
19015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19016 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019 (exit $ac_status); }
19021 archive_cmds_need_lc_GCJ=no
19023 archive_cmds_need_lc_GCJ=yes
19025 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19027 cat conftest.err 1>&5
19030 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19031 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
19038 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19040 library_names_spec=
19041 libname_spec='lib$name'
19045 postuninstall_cmds=
19049 shlibpath_overrides_runpath=unknown
19051 dynamic_linker="$host_os ld.so"
19052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19053 if test "$GCC" = yes; then
19054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19056 # if the path contains ";" then we assume it to be the separator
19057 # otherwise default to the standard path separator (i.e. ":") - it is
19058 # assumed that no part of a normal pathname contains ";" but that should
19059 # okay in the real world where ";" in dirpaths is itself problematic.
19060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19067 need_lib_prefix=unknown
19068 hardcode_into_libs=no
19070 # when you set need_version to no, make sure it does not cause -set_version
19071 # flags to be left without arguments
19072 need_version=unknown
19077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19078 shlibpath_var=LIBPATH
19080 # AIX 3 has no versioning support, so we append a major version to the name.
19081 soname_spec='${libname}${release}${shared_ext}$major'
19088 hardcode_into_libs=yes
19089 if test "$host_cpu" = ia64; then
19090 # AIX 5 supports IA64
19091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19092 shlibpath_var=LD_LIBRARY_PATH
19094 # With GCC up to 2.95.x, collect2 would create an import file
19095 # for dependence libraries. The import file would start with
19096 # the line `#! .'. This would cause the generated library to
19097 # depend on `.', always an invalid library. This was fixed in
19098 # development snapshots of GCC prior to 3.0.
19100 aix4 | aix4.[01] | aix4.[01].*)
19101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19106 can_build_shared=no
19110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19111 # soname into executable. Probably we can add versioning support to
19112 # collect2, so additional links can be useful in future.
19113 if test "$aix_use_runtimelinking" = yes; then
19114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19115 # instead of lib<name>.a to let people know that these are not
19116 # typical AIX shared libraries.
19117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19119 # We preserve .a as extension for shared libraries through AIX4.2
19120 # and later when we are not doing run time linking.
19121 library_names_spec='${libname}${release}.a $libname.a'
19122 soname_spec='${libname}${release}${shared_ext}$major'
19124 shlibpath_var=LIBPATH
19129 library_names_spec='$libname.ixlibrary $libname.a'
19130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19131 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'
19135 library_names_spec='${libname}${shared_ext}'
19136 dynamic_linker="$host_os ld.so"
19137 shlibpath_var=LIBRARY_PATH
19143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19144 soname_spec='${libname}${release}${shared_ext}$major'
19145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19146 shlibpath_var=LD_LIBRARY_PATH
19147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19149 # the default ld.so.conf also contains /usr/contrib/lib and
19150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19151 # libtool to hard-code these into programs
19154 cygwin* | mingw* | pw32*)
19155 version_type=windows
19160 case $GCC,$host_os in
19161 yes,cygwin* | yes,mingw* | yes,pw32*)
19162 library_names_spec='$libname.dll.a'
19163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19164 postinstall_cmds='base_file=`basename \${file}`~
19165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19166 dldir=$destdir/`dirname \$dlpath`~
19167 test -d \$dldir || mkdir -p \$dldir~
19168 $install_prog $dir/$dlname \$dldir/$dlname~
19169 chmod a+x \$dldir/$dlname'
19170 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19171 dlpath=$dir/\$dldll~
19173 shlibpath_overrides_runpath=yes
19177 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19178 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19179 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19182 # MinGW DLLs use traditional 'lib' prefix
19183 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19185 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19186 # It is most probably a Windows format PATH printed by
19187 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19188 # path with ; separators, and with drive letters. We can handle the
19189 # drive letters (cygwin fileutils understands them), so leave them,
19190 # especially as we might pass files found there to a mingw objdump,
19191 # which wouldn't understand a cygwinified path. Ahh.
19192 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19194 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19198 # pw32 DLLs use 'pw' prefix rather than 'lib'
19199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19205 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19208 dynamic_linker='Win32 ld.exe'
19209 # FIXME: first we should search . and the directory the executable is in
19213 darwin* | rhapsody*)
19214 dynamic_linker="$host_os dyld"
19215 version_type=darwin
19218 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19219 soname_spec='${libname}${release}${major}$shared_ext'
19220 shlibpath_overrides_runpath=yes
19221 shlibpath_var=DYLD_LIBRARY_PATH
19222 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19223 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19224 if test "$GCC" = yes; then
19225 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"`
19227 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19237 soname_spec='${libname}${release}${shared_ext}$major'
19238 shlibpath_var=LD_LIBRARY_PATH
19245 freebsd* | dragonfly*)
19246 # DragonFly does not have aout. When/if they implement a new
19247 # versioning mechanism, adjust this.
19248 if test -x /usr/bin/objformat; then
19249 objformat=`/usr/bin/objformat`
19252 freebsd[123]*) objformat=aout ;;
19253 *) objformat=elf ;;
19256 version_type=freebsd-$objformat
19257 case $version_type in
19259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19268 shlibpath_var=LD_LIBRARY_PATH
19271 shlibpath_overrides_runpath=yes
19273 freebsd3.[01]* | freebsdelf3.[01]*)
19274 shlibpath_overrides_runpath=yes
19275 hardcode_into_libs=yes
19277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19279 shlibpath_overrides_runpath=no
19280 hardcode_into_libs=yes
19282 freebsd*) # from 4.6 on
19283 shlibpath_overrides_runpath=yes
19284 hardcode_into_libs=yes
19293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19294 soname_spec='${libname}${release}${shared_ext}$major'
19295 shlibpath_var=LD_LIBRARY_PATH
19296 hardcode_into_libs=yes
19299 hpux9* | hpux10* | hpux11*)
19300 # Give a soname corresponding to the major version so that dld.sl refuses to
19301 # link against other versions.
19308 hardcode_into_libs=yes
19309 dynamic_linker="$host_os dld.so"
19310 shlibpath_var=LD_LIBRARY_PATH
19311 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19313 soname_spec='${libname}${release}${shared_ext}$major'
19314 if test "X$HPUX_IA64_MODE" = X32; then
19315 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19317 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19323 hardcode_into_libs=yes
19324 dynamic_linker="$host_os dld.sl"
19325 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19326 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19328 soname_spec='${libname}${release}${shared_ext}$major'
19329 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19334 dynamic_linker="$host_os dld.sl"
19335 shlibpath_var=SHLIB_PATH
19336 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338 soname_spec='${libname}${release}${shared_ext}$major'
19341 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19342 postinstall_cmds='chmod 555 $lib'
19349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19350 soname_spec='${libname}${release}${shared_ext}$major'
19351 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19352 shlibpath_var=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath=no
19354 hardcode_into_libs=yes
19357 irix5* | irix6* | nonstopux*)
19359 nonstopux*) version_type=nonstopux ;;
19361 if test "$lt_cv_prog_gnu_ld" = yes; then
19369 soname_spec='${libname}${release}${shared_ext}$major'
19370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19372 irix5* | nonstopux*)
19373 libsuff= shlibsuff=
19376 case $LD in # libtool.m4 will add one of these switches to LD
19377 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19378 libsuff= shlibsuff= libmagic=32-bit;;
19379 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19380 libsuff=32 shlibsuff=N32 libmagic=N32;;
19381 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19382 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19383 *) libsuff= shlibsuff= libmagic=never-match;;
19387 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19388 shlibpath_overrides_runpath=no
19389 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19390 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19391 hardcode_into_libs=yes
19394 # No shared lib support for Linux oldld, aout, or coff.
19395 linux*oldld* | linux*aout* | linux*coff*)
19399 # This must be Linux ELF.
19400 linux* | k*bsd*-gnu)
19404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19405 soname_spec='${libname}${release}${shared_ext}$major'
19406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19407 shlibpath_var=LD_LIBRARY_PATH
19408 shlibpath_overrides_runpath=no
19409 # This implies no fast_install, which is unacceptable.
19410 # Some rework will be needed to allow for fast_install
19411 # before this can be enabled.
19412 hardcode_into_libs=yes
19414 # Append ld.so.conf contents to the search path
19415 if test -f /etc/ld.so.conf; then
19416 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' ' '`
19417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19420 # We used to test for /lib/ld.so.1 and disable shared libraries on
19421 # powerpc, because MkLinux only supported shared libraries with the
19422 # GNU dynamic linker. Since this was broken with cross compilers,
19423 # most powerpc-linux boxes support dynamic linking these days and
19424 # people can always --disable-shared, the test was removed, and we
19425 # assume the GNU/Linux dynamic linker is in use.
19426 dynamic_linker='GNU/Linux ld.so'
19433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19434 soname_spec='${libname}${release}${shared_ext}$major'
19435 shlibpath_var=LD_LIBRARY_PATH
19436 shlibpath_overrides_runpath=no
19437 hardcode_into_libs=yes
19438 dynamic_linker='NetBSD ld.elf_so'
19445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19448 dynamic_linker='NetBSD (a.out) ld.so'
19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19451 soname_spec='${libname}${release}${shared_ext}$major'
19452 dynamic_linker='NetBSD ld.elf_so'
19454 shlibpath_var=LD_LIBRARY_PATH
19455 shlibpath_overrides_runpath=yes
19456 hardcode_into_libs=yes
19461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19462 shlibpath_var=LD_LIBRARY_PATH
19463 shlibpath_overrides_runpath=yes
19470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19471 soname_spec='${libname}${release}${shared_ext}$major'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 shlibpath_overrides_runpath=yes
19478 sys_lib_dlsearch_path_spec="/usr/lib"
19480 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19482 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19483 *) need_version=no ;;
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19487 shlibpath_var=LD_LIBRARY_PATH
19488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19490 openbsd2.[89] | openbsd2.[89].*)
19491 shlibpath_overrides_runpath=no
19494 shlibpath_overrides_runpath=yes
19498 shlibpath_overrides_runpath=yes
19503 libname_spec='$name'
19506 library_names_spec='$libname${shared_ext} $libname.a'
19507 dynamic_linker='OS/2 ld.exe'
19508 shlibpath_var=LIBPATH
19511 osf3* | osf4* | osf5*)
19515 soname_spec='${libname}${release}${shared_ext}$major'
19516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19517 shlibpath_var=LD_LIBRARY_PATH
19518 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19519 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19527 soname_spec='${libname}${release}${shared_ext}$major'
19528 shlibpath_var=LD_LIBRARY_PATH
19529 shlibpath_overrides_runpath=yes
19530 hardcode_into_libs=yes
19531 # ldd complains unless libraries are executable
19532 postinstall_cmds='chmod +x $lib'
19537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19538 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19539 shlibpath_var=LD_LIBRARY_PATH
19540 shlibpath_overrides_runpath=yes
19541 if test "$with_gnu_ld" = yes; then
19549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19550 soname_spec='${libname}${release}${shared_ext}$major'
19551 shlibpath_var=LD_LIBRARY_PATH
19552 case $host_vendor in
19554 shlibpath_overrides_runpath=no
19556 export_dynamic_flag_spec='${wl}-Blargedynsym'
19557 runpath_var=LD_RUN_PATH
19565 shlibpath_overrides_runpath=no
19566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19572 if test -d /usr/nec ;then
19574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19575 soname_spec='$libname${shared_ext}.$major'
19576 shlibpath_var=LD_LIBRARY_PATH
19580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19581 version_type=freebsd-elf
19584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19585 soname_spec='${libname}${release}${shared_ext}$major'
19586 shlibpath_var=LD_LIBRARY_PATH
19587 hardcode_into_libs=yes
19588 if test "$with_gnu_ld" = yes; then
19589 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19590 shlibpath_overrides_runpath=no
19592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19593 shlibpath_overrides_runpath=yes
19596 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19600 sys_lib_dlsearch_path_spec='/usr/lib'
19605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19606 soname_spec='${libname}${release}${shared_ext}$major'
19607 shlibpath_var=LD_LIBRARY_PATH
19614 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19615 echo "${ECHO_T}$dynamic_linker" >&6; }
19616 test "$dynamic_linker" = no && can_build_shared=no
19618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19619 if test "$GCC" = yes; then
19620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19623 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19624 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19625 hardcode_action_GCJ=
19626 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19627 test -n "$runpath_var_GCJ" || \
19628 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19630 # We can hardcode non-existant directories.
19631 if test "$hardcode_direct_GCJ" != no &&
19632 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19633 # have to relink, otherwise we might link with an installed library
19634 # when we should be linking with a yet-to-be-installed one
19635 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19636 test "$hardcode_minus_L_GCJ" != no; then
19637 # Linking always hardcodes the temporary library directory.
19638 hardcode_action_GCJ=relink
19640 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19641 hardcode_action_GCJ=immediate
19644 # We cannot hardcode anything, or else we can only hardcode existing
19646 hardcode_action_GCJ=unsupported
19648 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19649 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19651 if test "$hardcode_action_GCJ" = relink; then
19652 # Fast installation is not supported
19653 enable_fast_install=no
19654 elif test "$shlibpath_overrides_runpath" = yes ||
19655 test "$enable_shared" = no; then
19656 # Fast installation is not necessary
19657 enable_fast_install=needless
19661 # The else clause should only fire when bootstrapping the
19662 # libtool distribution, otherwise you forgot to ship ltmain.sh
19663 # with your package, and you will get complaints that there are
19664 # no rules to generate ltmain.sh.
19665 if test -f "$ltmain"; then
19666 # See if we are running on zsh, and set the options which allow our commands through
19667 # without removal of \ escapes.
19668 if test -n "${ZSH_VERSION+set}" ; then
19669 setopt NO_GLOB_SUBST
19671 # Now quote all the things that may contain metacharacters while being
19672 # careful not to overquote the AC_SUBSTed values. We take copies of the
19673 # variables and quote the copies for generation of the libtool script.
19674 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19676 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19677 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19678 deplibs_check_method reload_flag reload_cmds need_locks \
19679 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19680 lt_cv_sys_global_symbol_to_c_name_address \
19681 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19682 old_postinstall_cmds old_postuninstall_cmds \
19686 lt_prog_compiler_wl_GCJ \
19687 lt_prog_compiler_pic_GCJ \
19688 lt_prog_compiler_static_GCJ \
19689 lt_prog_compiler_no_builtin_flag_GCJ \
19690 export_dynamic_flag_spec_GCJ \
19691 thread_safe_flag_spec_GCJ \
19692 whole_archive_flag_spec_GCJ \
19693 enable_shared_with_static_runtimes_GCJ \
19694 old_archive_cmds_GCJ \
19695 old_archive_from_new_cmds_GCJ \
19696 predep_objects_GCJ \
19697 postdep_objects_GCJ \
19700 compiler_lib_search_path_GCJ \
19702 archive_expsym_cmds_GCJ \
19703 postinstall_cmds_GCJ \
19704 postuninstall_cmds_GCJ \
19705 old_archive_from_expsyms_cmds_GCJ \
19706 allow_undefined_flag_GCJ \
19707 no_undefined_flag_GCJ \
19708 export_symbols_cmds_GCJ \
19709 hardcode_libdir_flag_spec_GCJ \
19710 hardcode_libdir_flag_spec_ld_GCJ \
19711 hardcode_libdir_separator_GCJ \
19712 hardcode_automatic_GCJ \
19714 module_expsym_cmds_GCJ \
19715 lt_cv_prog_compiler_c_o_GCJ \
19716 exclude_expsyms_GCJ \
19717 include_expsyms_GCJ; do
19720 old_archive_cmds_GCJ | \
19721 old_archive_from_new_cmds_GCJ | \
19722 archive_cmds_GCJ | \
19723 archive_expsym_cmds_GCJ | \
19724 module_cmds_GCJ | \
19725 module_expsym_cmds_GCJ | \
19726 old_archive_from_expsyms_cmds_GCJ | \
19727 export_symbols_cmds_GCJ | \
19728 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19729 postinstall_cmds | postuninstall_cmds | \
19730 old_postinstall_cmds | old_postuninstall_cmds | \
19731 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19732 # Double-quote double-evaled strings.
19733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19742 *'\$0 --fallback-echo"')
19743 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19749 cat <<__EOF__ >> "$cfgfile"
19750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19754 # Shell to use when invoking shell scripts.
19757 # Whether or not to build shared libraries.
19758 build_libtool_libs=$enable_shared
19760 # Whether or not to build static libraries.
19761 build_old_libs=$enable_static
19763 # Whether or not to add -lc for building shared libraries.
19764 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19766 # Whether or not to disallow shared libs when runtime libs are static
19767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19769 # Whether or not to optimize for fast installation.
19770 fast_install=$enable_fast_install
19773 host_alias=$host_alias
19777 # The build system.
19778 build_alias=$build_alias
19782 # An echo program that does not interpret backslashes.
19787 AR_FLAGS=$lt_AR_FLAGS
19792 # LTCC compiler flags.
19793 LTCFLAGS=$lt_LTCFLAGS
19795 # A language-specific compiler.
19796 CC=$lt_compiler_GCJ
19798 # Is the compiler the GNU C compiler?
19804 # The linker used to build libraries.
19807 # Whether we need hard or soft links.
19810 # A BSD-compatible nm program.
19813 # A symbol stripping program
19816 # Used to examine libraries when file_magic_cmd begins "file"
19817 MAGIC_CMD=$MAGIC_CMD
19819 # Used on cygwin: DLL creation program.
19822 # Used on cygwin: object dumper.
19825 # Used on cygwin: assembler.
19828 # The name of the directory that contains temporary libtool files.
19831 # How to create reloadable object files.
19832 reload_flag=$lt_reload_flag
19833 reload_cmds=$lt_reload_cmds
19835 # How to pass a linker flag through the compiler.
19836 wl=$lt_lt_prog_compiler_wl_GCJ
19838 # Object file suffix (normally "o").
19839 objext="$ac_objext"
19841 # Old archive suffix (normally "a").
19844 # Shared library suffix (normally ".so").
19845 shrext_cmds='$shrext_cmds'
19847 # Executable file suffix (normally "").
19850 # Additional compiler flags for building library objects.
19851 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19854 # What is the maximum length of a command?
19855 max_cmd_len=$lt_cv_sys_max_cmd_len
19857 # Does compiler simultaneously support -c and -o options?
19858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19860 # Must we lock files when doing compilation?
19861 need_locks=$lt_need_locks
19863 # Do we need the lib prefix for modules?
19864 need_lib_prefix=$need_lib_prefix
19866 # Do we need a version for libraries?
19867 need_version=$need_version
19869 # Whether dlopen is supported.
19870 dlopen_support=$enable_dlopen
19872 # Whether dlopen of programs is supported.
19873 dlopen_self=$enable_dlopen_self
19875 # Whether dlopen of statically linked programs is supported.
19876 dlopen_self_static=$enable_dlopen_self_static
19878 # Compiler flag to prevent dynamic linking.
19879 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19881 # Compiler flag to turn off builtin functions.
19882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19884 # Compiler flag to allow reflexive dlopens.
19885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19887 # Compiler flag to generate shared objects directly from archives.
19888 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19890 # Compiler flag to generate thread-safe objects.
19891 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19893 # Library versioning type.
19894 version_type=$version_type
19896 # Format of library name prefix.
19897 libname_spec=$lt_libname_spec
19899 # List of archive names. First name is the real one, the rest are links.
19900 # The last name is the one that the linker finds with -lNAME.
19901 library_names_spec=$lt_library_names_spec
19903 # The coded name of the library, if different from the real name.
19904 soname_spec=$lt_soname_spec
19906 # Commands used to build and install an old-style archive.
19908 old_archive_cmds=$lt_old_archive_cmds_GCJ
19909 old_postinstall_cmds=$lt_old_postinstall_cmds
19910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19912 # Create an old-style archive from a shared archive.
19913 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19915 # Create a temporary old-style archive to link instead of a shared archive.
19916 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19918 # Commands used to build and install a shared archive.
19919 archive_cmds=$lt_archive_cmds_GCJ
19920 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19921 postinstall_cmds=$lt_postinstall_cmds
19922 postuninstall_cmds=$lt_postuninstall_cmds
19924 # Commands used to build a loadable module (assumed same as above if empty)
19925 module_cmds=$lt_module_cmds_GCJ
19926 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19928 # Commands to strip libraries.
19929 old_striplib=$lt_old_striplib
19930 striplib=$lt_striplib
19932 # Dependencies to place before the objects being linked to create a
19934 predep_objects=$lt_predep_objects_GCJ
19936 # Dependencies to place after the objects being linked to create a
19938 postdep_objects=$lt_postdep_objects_GCJ
19940 # Dependencies to place before the objects being linked to create a
19942 predeps=$lt_predeps_GCJ
19944 # Dependencies to place after the objects being linked to create a
19946 postdeps=$lt_postdeps_GCJ
19948 # The library search path used internally by the compiler when linking
19949 # a shared library.
19950 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19952 # Method to check whether dependent libraries are shared objects.
19953 deplibs_check_method=$lt_deplibs_check_method
19955 # Command to use when deplibs_check_method == file_magic.
19956 file_magic_cmd=$lt_file_magic_cmd
19958 # Flag that allows shared libraries with undefined symbols to be built.
19959 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19961 # Flag that forces no undefined symbols.
19962 no_undefined_flag=$lt_no_undefined_flag_GCJ
19964 # Commands used to finish a libtool library installation in a directory.
19965 finish_cmds=$lt_finish_cmds
19967 # Same as above, but a single script fragment to be evaled but not shown.
19968 finish_eval=$lt_finish_eval
19970 # Take the output of nm and produce a listing of raw symbols and C names.
19971 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19973 # Transform the output of nm in a proper C declaration
19974 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19976 # Transform the output of nm in a C name address pair
19977 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19979 # This is the shared library runtime path variable.
19980 runpath_var=$runpath_var
19982 # This is the shared library path variable.
19983 shlibpath_var=$shlibpath_var
19985 # Is shlibpath searched before the hard-coded library search path?
19986 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19988 # How to hardcode a shared library path into an executable.
19989 hardcode_action=$hardcode_action_GCJ
19991 # Whether we should hardcode library paths into libraries.
19992 hardcode_into_libs=$hardcode_into_libs
19994 # Flag to hardcode \$libdir into a binary during linking.
19995 # This must work even if \$libdir does not exist.
19996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19998 # If ld is used when linking, flag to hardcode \$libdir into
19999 # a binary during linking. This must work even if \$libdir does
20001 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20003 # Whether we need a single -rpath flag with a separated argument.
20004 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20006 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20007 # resulting binary.
20008 hardcode_direct=$hardcode_direct_GCJ
20010 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20011 # resulting binary.
20012 hardcode_minus_L=$hardcode_minus_L_GCJ
20014 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20015 # the resulting binary.
20016 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20018 # Set to yes if building a shared library automatically hardcodes DIR into the library
20019 # and all subsequent libraries and executables linked against it.
20020 hardcode_automatic=$hardcode_automatic_GCJ
20022 # Variables whose values should be saved in libtool wrapper scripts and
20023 # restored at relink time.
20024 variables_saved_for_relink="$variables_saved_for_relink"
20026 # Whether libtool must link a program against all its dependency libraries.
20027 link_all_deplibs=$link_all_deplibs_GCJ
20029 # Compile-time system search path for libraries
20030 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20032 # Run-time system search path for libraries
20033 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20035 # Fix the shell variable \$srcfile for the compiler.
20036 fix_srcfile_path="$fix_srcfile_path_GCJ"
20038 # Set to yes if exported symbols are required.
20039 always_export_symbols=$always_export_symbols_GCJ
20041 # The commands to list exported symbols.
20042 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20044 # The commands to extract the exported symbol list from a shared archive.
20045 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20047 # Symbols that should not be listed in the preloaded symbols.
20048 exclude_expsyms=$lt_exclude_expsyms_GCJ
20050 # Symbols that must always be exported.
20051 include_expsyms=$lt_include_expsyms_GCJ
20053 # ### END LIBTOOL TAG CONFIG: $tagname
20059 # If there is no Makefile yet, we rely on a make rule to execute
20060 # `config.status --recheck' to rerun these tests and create the
20061 # libtool script then.
20062 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20063 if test -f "$ltmain_in"; then
20064 test -f Makefile && make "$ltmain"
20070 ac_cpp='$CPP $CPPFLAGS'
20071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20085 # Source file extension for RC test sources.
20088 # Object file extension for compiled RC test sources.
20092 # Code to be used in simple compile tests
20093 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20095 # Code to be used in simple link tests
20096 lt_simple_link_test_code="$lt_simple_compile_test_code"
20098 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20100 # If no C compiler was specified, use CC.
20103 # If no C compiler flags were specified, use CFLAGS.
20104 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20106 # Allow CC to be a program name with arguments.
20110 # save warnings/boilerplate of simple test code
20111 ac_outfile=conftest.$ac_objext
20112 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20113 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20114 _lt_compiler_boilerplate=`cat conftest.err`
20117 ac_outfile=conftest.$ac_objext
20118 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20119 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20120 _lt_linker_boilerplate=`cat conftest.err`
20124 # Allow CC to be a program name with arguments.
20129 for cc_temp in $compiler""; do
20131 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20132 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20137 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20139 lt_cv_prog_compiler_c_o_RC=yes
20141 # The else clause should only fire when bootstrapping the
20142 # libtool distribution, otherwise you forgot to ship ltmain.sh
20143 # with your package, and you will get complaints that there are
20144 # no rules to generate ltmain.sh.
20145 if test -f "$ltmain"; then
20146 # See if we are running on zsh, and set the options which allow our commands through
20147 # without removal of \ escapes.
20148 if test -n "${ZSH_VERSION+set}" ; then
20149 setopt NO_GLOB_SUBST
20151 # Now quote all the things that may contain metacharacters while being
20152 # careful not to overquote the AC_SUBSTed values. We take copies of the
20153 # variables and quote the copies for generation of the libtool script.
20154 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20156 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20157 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20158 deplibs_check_method reload_flag reload_cmds need_locks \
20159 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20160 lt_cv_sys_global_symbol_to_c_name_address \
20161 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20162 old_postinstall_cmds old_postuninstall_cmds \
20166 lt_prog_compiler_wl_RC \
20167 lt_prog_compiler_pic_RC \
20168 lt_prog_compiler_static_RC \
20169 lt_prog_compiler_no_builtin_flag_RC \
20170 export_dynamic_flag_spec_RC \
20171 thread_safe_flag_spec_RC \
20172 whole_archive_flag_spec_RC \
20173 enable_shared_with_static_runtimes_RC \
20174 old_archive_cmds_RC \
20175 old_archive_from_new_cmds_RC \
20176 predep_objects_RC \
20177 postdep_objects_RC \
20180 compiler_lib_search_path_RC \
20182 archive_expsym_cmds_RC \
20183 postinstall_cmds_RC \
20184 postuninstall_cmds_RC \
20185 old_archive_from_expsyms_cmds_RC \
20186 allow_undefined_flag_RC \
20187 no_undefined_flag_RC \
20188 export_symbols_cmds_RC \
20189 hardcode_libdir_flag_spec_RC \
20190 hardcode_libdir_flag_spec_ld_RC \
20191 hardcode_libdir_separator_RC \
20192 hardcode_automatic_RC \
20194 module_expsym_cmds_RC \
20195 lt_cv_prog_compiler_c_o_RC \
20196 exclude_expsyms_RC \
20197 include_expsyms_RC; do
20200 old_archive_cmds_RC | \
20201 old_archive_from_new_cmds_RC | \
20202 archive_cmds_RC | \
20203 archive_expsym_cmds_RC | \
20205 module_expsym_cmds_RC | \
20206 old_archive_from_expsyms_cmds_RC | \
20207 export_symbols_cmds_RC | \
20208 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20209 postinstall_cmds | postuninstall_cmds | \
20210 old_postinstall_cmds | old_postuninstall_cmds | \
20211 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20212 # Double-quote double-evaled strings.
20213 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20222 *'\$0 --fallback-echo"')
20223 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20229 cat <<__EOF__ >> "$cfgfile"
20230 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20232 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20234 # Shell to use when invoking shell scripts.
20237 # Whether or not to build shared libraries.
20238 build_libtool_libs=$enable_shared
20240 # Whether or not to build static libraries.
20241 build_old_libs=$enable_static
20243 # Whether or not to add -lc for building shared libraries.
20244 build_libtool_need_lc=$archive_cmds_need_lc_RC
20246 # Whether or not to disallow shared libs when runtime libs are static
20247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20249 # Whether or not to optimize for fast installation.
20250 fast_install=$enable_fast_install
20253 host_alias=$host_alias
20257 # The build system.
20258 build_alias=$build_alias
20262 # An echo program that does not interpret backslashes.
20267 AR_FLAGS=$lt_AR_FLAGS
20272 # LTCC compiler flags.
20273 LTCFLAGS=$lt_LTCFLAGS
20275 # A language-specific compiler.
20278 # Is the compiler the GNU C compiler?
20284 # The linker used to build libraries.
20287 # Whether we need hard or soft links.
20290 # A BSD-compatible nm program.
20293 # A symbol stripping program
20296 # Used to examine libraries when file_magic_cmd begins "file"
20297 MAGIC_CMD=$MAGIC_CMD
20299 # Used on cygwin: DLL creation program.
20302 # Used on cygwin: object dumper.
20305 # Used on cygwin: assembler.
20308 # The name of the directory that contains temporary libtool files.
20311 # How to create reloadable object files.
20312 reload_flag=$lt_reload_flag
20313 reload_cmds=$lt_reload_cmds
20315 # How to pass a linker flag through the compiler.
20316 wl=$lt_lt_prog_compiler_wl_RC
20318 # Object file suffix (normally "o").
20319 objext="$ac_objext"
20321 # Old archive suffix (normally "a").
20324 # Shared library suffix (normally ".so").
20325 shrext_cmds='$shrext_cmds'
20327 # Executable file suffix (normally "").
20330 # Additional compiler flags for building library objects.
20331 pic_flag=$lt_lt_prog_compiler_pic_RC
20334 # What is the maximum length of a command?
20335 max_cmd_len=$lt_cv_sys_max_cmd_len
20337 # Does compiler simultaneously support -c and -o options?
20338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20340 # Must we lock files when doing compilation?
20341 need_locks=$lt_need_locks
20343 # Do we need the lib prefix for modules?
20344 need_lib_prefix=$need_lib_prefix
20346 # Do we need a version for libraries?
20347 need_version=$need_version
20349 # Whether dlopen is supported.
20350 dlopen_support=$enable_dlopen
20352 # Whether dlopen of programs is supported.
20353 dlopen_self=$enable_dlopen_self
20355 # Whether dlopen of statically linked programs is supported.
20356 dlopen_self_static=$enable_dlopen_self_static
20358 # Compiler flag to prevent dynamic linking.
20359 link_static_flag=$lt_lt_prog_compiler_static_RC
20361 # Compiler flag to turn off builtin functions.
20362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20364 # Compiler flag to allow reflexive dlopens.
20365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20367 # Compiler flag to generate shared objects directly from archives.
20368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20370 # Compiler flag to generate thread-safe objects.
20371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20373 # Library versioning type.
20374 version_type=$version_type
20376 # Format of library name prefix.
20377 libname_spec=$lt_libname_spec
20379 # List of archive names. First name is the real one, the rest are links.
20380 # The last name is the one that the linker finds with -lNAME.
20381 library_names_spec=$lt_library_names_spec
20383 # The coded name of the library, if different from the real name.
20384 soname_spec=$lt_soname_spec
20386 # Commands used to build and install an old-style archive.
20388 old_archive_cmds=$lt_old_archive_cmds_RC
20389 old_postinstall_cmds=$lt_old_postinstall_cmds
20390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20392 # Create an old-style archive from a shared archive.
20393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20395 # Create a temporary old-style archive to link instead of a shared archive.
20396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20398 # Commands used to build and install a shared archive.
20399 archive_cmds=$lt_archive_cmds_RC
20400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20401 postinstall_cmds=$lt_postinstall_cmds
20402 postuninstall_cmds=$lt_postuninstall_cmds
20404 # Commands used to build a loadable module (assumed same as above if empty)
20405 module_cmds=$lt_module_cmds_RC
20406 module_expsym_cmds=$lt_module_expsym_cmds_RC
20408 # Commands to strip libraries.
20409 old_striplib=$lt_old_striplib
20410 striplib=$lt_striplib
20412 # Dependencies to place before the objects being linked to create a
20414 predep_objects=$lt_predep_objects_RC
20416 # Dependencies to place after the objects being linked to create a
20418 postdep_objects=$lt_postdep_objects_RC
20420 # Dependencies to place before the objects being linked to create a
20422 predeps=$lt_predeps_RC
20424 # Dependencies to place after the objects being linked to create a
20426 postdeps=$lt_postdeps_RC
20428 # The library search path used internally by the compiler when linking
20429 # a shared library.
20430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20432 # Method to check whether dependent libraries are shared objects.
20433 deplibs_check_method=$lt_deplibs_check_method
20435 # Command to use when deplibs_check_method == file_magic.
20436 file_magic_cmd=$lt_file_magic_cmd
20438 # Flag that allows shared libraries with undefined symbols to be built.
20439 allow_undefined_flag=$lt_allow_undefined_flag_RC
20441 # Flag that forces no undefined symbols.
20442 no_undefined_flag=$lt_no_undefined_flag_RC
20444 # Commands used to finish a libtool library installation in a directory.
20445 finish_cmds=$lt_finish_cmds
20447 # Same as above, but a single script fragment to be evaled but not shown.
20448 finish_eval=$lt_finish_eval
20450 # Take the output of nm and produce a listing of raw symbols and C names.
20451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20453 # Transform the output of nm in a proper C declaration
20454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20456 # Transform the output of nm in a C name address pair
20457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20459 # This is the shared library runtime path variable.
20460 runpath_var=$runpath_var
20462 # This is the shared library path variable.
20463 shlibpath_var=$shlibpath_var
20465 # Is shlibpath searched before the hard-coded library search path?
20466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20468 # How to hardcode a shared library path into an executable.
20469 hardcode_action=$hardcode_action_RC
20471 # Whether we should hardcode library paths into libraries.
20472 hardcode_into_libs=$hardcode_into_libs
20474 # Flag to hardcode \$libdir into a binary during linking.
20475 # This must work even if \$libdir does not exist.
20476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20478 # If ld is used when linking, flag to hardcode \$libdir into
20479 # a binary during linking. This must work even if \$libdir does
20481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20483 # Whether we need a single -rpath flag with a separated argument.
20484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20487 # resulting binary.
20488 hardcode_direct=$hardcode_direct_RC
20490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20491 # resulting binary.
20492 hardcode_minus_L=$hardcode_minus_L_RC
20494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20495 # the resulting binary.
20496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20498 # Set to yes if building a shared library automatically hardcodes DIR into the library
20499 # and all subsequent libraries and executables linked against it.
20500 hardcode_automatic=$hardcode_automatic_RC
20502 # Variables whose values should be saved in libtool wrapper scripts and
20503 # restored at relink time.
20504 variables_saved_for_relink="$variables_saved_for_relink"
20506 # Whether libtool must link a program against all its dependency libraries.
20507 link_all_deplibs=$link_all_deplibs_RC
20509 # Compile-time system search path for libraries
20510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20512 # Run-time system search path for libraries
20513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20515 # Fix the shell variable \$srcfile for the compiler.
20516 fix_srcfile_path="$fix_srcfile_path_RC"
20518 # Set to yes if exported symbols are required.
20519 always_export_symbols=$always_export_symbols_RC
20521 # The commands to list exported symbols.
20522 export_symbols_cmds=$lt_export_symbols_cmds_RC
20524 # The commands to extract the exported symbol list from a shared archive.
20525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20527 # Symbols that should not be listed in the preloaded symbols.
20528 exclude_expsyms=$lt_exclude_expsyms_RC
20530 # Symbols that must always be exported.
20531 include_expsyms=$lt_include_expsyms_RC
20533 # ### END LIBTOOL TAG CONFIG: $tagname
20539 # If there is no Makefile yet, we rely on a make rule to execute
20540 # `config.status --recheck' to rerun these tests and create the
20541 # libtool script then.
20542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20543 if test -f "$ltmain_in"; then
20544 test -f Makefile && make "$ltmain"
20550 ac_cpp='$CPP $CPPFLAGS'
20551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20560 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20562 { (exit 1); exit 1; }; }
20566 # Append the new tag name to the list of available tags.
20567 if test -n "$tagname" ; then
20568 available_tags="$available_tags $tagname"
20574 # Now substitute the updated list of available tags.
20575 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20576 mv "${ofile}T" "$ofile"
20580 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20582 { (exit 1); exit 1; }; }
20588 # This can be used to rebuild libtool when needed
20589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20591 # Always use our own libtool.
20592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20594 # Prevent multiple expansion
20616 # Check whether --enable-fortran was given.
20617 if test "${enable_fortran+set}" = set; then
20618 enableval=$enable_fortran;
20625 if test "x$enable_fortran" = xyes; then
20626 ENABLE_FORTRAN_TRUE=
20627 ENABLE_FORTRAN_FALSE='#'
20629 ENABLE_FORTRAN_TRUE='#'
20630 ENABLE_FORTRAN_FALSE=
20634 if test "x$enable_fortran" = xyes
20637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20640 if test -n "$ac_tool_prefix"; then
20641 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
20643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20647 if test "${ac_cv_prog_F77+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20650 if test -n "$F77"; then
20651 ac_cv_prog_F77="$F77" # Let the user override the test.
20653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20654 for as_dir in $PATH
20657 test -z "$as_dir" && as_dir=.
20658 for ac_exec_ext in '' $ac_executable_extensions; do
20659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20660 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
20661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20670 F77=$ac_cv_prog_F77
20671 if test -n "$F77"; then
20672 { echo "$as_me:$LINENO: result: $F77" >&5
20673 echo "${ECHO_T}$F77" >&6; }
20675 { echo "$as_me:$LINENO: result: no" >&5
20676 echo "${ECHO_T}no" >&6; }
20680 test -n "$F77" && break
20683 if test -z "$F77"; then
20685 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
20687 # Extract the first word of "$ac_prog", so it can be a program name with args.
20688 set dummy $ac_prog; ac_word=$2
20689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20691 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 if test -n "$ac_ct_F77"; then
20695 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20698 for as_dir in $PATH
20701 test -z "$as_dir" && as_dir=.
20702 for ac_exec_ext in '' $ac_executable_extensions; do
20703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20704 ac_cv_prog_ac_ct_F77="$ac_prog"
20705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20714 ac_ct_F77=$ac_cv_prog_ac_ct_F77
20715 if test -n "$ac_ct_F77"; then
20716 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20717 echo "${ECHO_T}$ac_ct_F77" >&6; }
20719 { echo "$as_me:$LINENO: result: no" >&5
20720 echo "${ECHO_T}no" >&6; }
20724 test -n "$ac_ct_F77" && break
20727 if test "x$ac_ct_F77" = x; then
20730 case $cross_compiling:$ac_tool_warned in
20732 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20733 whose name does not start with the host triplet. If you think this
20734 configuration is useful to you, please write to autoconf@gnu.org." >&5
20735 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20736 whose name does not start with the host triplet. If you think this
20737 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20738 ac_tool_warned=yes ;;
20745 # Provide some information about the compiler.
20746 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
20747 ac_compiler=`set X $ac_compile; echo $2`
20748 { (ac_try="$ac_compiler --version >&5"
20749 case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_compiler --version >&5") 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }
20758 { (ac_try="$ac_compiler -v >&5"
20759 case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_compiler -v >&5") 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }
20768 { (ac_try="$ac_compiler -V >&5"
20769 case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_compiler -V >&5") 2>&5
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }
20780 # If we don't use `.F' as extension, the preprocessor is not run on the
20781 # input file. (Note that this only needs to work for GNU compilers.)
20782 ac_save_ext=$ac_ext
20784 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20785 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
20786 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 cat >conftest.$ac_ext <<_ACEOF
20797 rm -f conftest.$ac_objext
20798 if { (ac_try="$ac_compile"
20799 case "(($ac_try" in
20800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801 *) ac_try_echo=$ac_try;;
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804 (eval "$ac_compile") 2>conftest.er1
20806 grep -v '^ *+' conftest.er1 >conftest.err
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } && {
20811 test -z "$ac_f77_werror_flag" ||
20812 test ! -s conftest.err
20813 } && test -s conftest.$ac_objext; then
20814 ac_compiler_gnu=yes
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20823 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20826 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20827 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
20828 ac_ext=$ac_save_ext
20829 ac_test_FFLAGS=${FFLAGS+set}
20830 ac_save_FFLAGS=$FFLAGS
20832 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20833 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
20834 if test "${ac_cv_prog_f77_g+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 cat >conftest.$ac_ext <<_ACEOF
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847 *) ac_try_echo=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_compile") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1 >conftest.err
20854 cat conftest.err >&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_f77_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest.$ac_objext; then
20860 ac_cv_prog_f77_g=yes
20862 echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_cv_prog_f77_g=no
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20871 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20872 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
20873 if test "$ac_test_FFLAGS" = set; then
20874 FFLAGS=$ac_save_FFLAGS
20875 elif test $ac_cv_prog_f77_g = yes; then
20876 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20882 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20889 G77=`test $ac_compiler_gnu = yes && echo yes`
20891 ac_cpp='$CPP $CPPFLAGS'
20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20897 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20898 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20899 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20900 { echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
20901 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6; }
20902 if test "${ac_cv_prog_f77_v+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20905 cat >conftest.$ac_ext <<_ACEOF
20910 rm -f conftest.$ac_objext
20911 if { (ac_try="$ac_compile"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_compile") 2>conftest.er1
20919 grep -v '^ *+' conftest.er1 >conftest.err
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } && {
20924 test -z "$ac_f77_werror_flag" ||
20925 test ! -s conftest.err
20926 } && test -s conftest.$ac_objext; then
20928 # Try some options frequently used verbose output
20929 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20930 cat >conftest.$ac_ext <<_ACEOF
20936 # Compile and link our simple test program by passing a flag (argument
20937 # 1 to this macro) to the Fortran compiler in order to get
20938 # "verbose" output that we can then parse for the Fortran linker
20940 ac_save_FFLAGS=$FFLAGS
20941 FFLAGS="$FFLAGS $ac_verb"
20942 eval "set x $ac_link"
20944 echo "$as_me:$LINENO: $*" >&5
20945 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20946 echo "$ac_f77_v_output" >&5
20947 FFLAGS=$ac_save_FFLAGS
20951 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20952 # /foo, /bar, and /baz are search directories for the Fortran linker.
20953 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20954 ac_f77_v_output="`echo $ac_f77_v_output |
20956 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20958 # FIXME: we keep getting bitten by quoted arguments; a more general fix
20959 # that detects unbalanced quotes in FLIBS should be implemented
20960 # and (ugh) tested at some point.
20961 case $ac_f77_v_output in
20962 # If we are using xlf then replace all the commas with spaces.
20964 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20966 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20967 # $LIBS confuse us, and the libraries appear later in the output anyway).
20968 *mGLOB_options_string*)
20969 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20971 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20972 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20973 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20974 *-cmdline\ * | *-ignore\ * | *-def\ *)
20975 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20976 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
20977 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
20978 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
20980 # If we are using Cray Fortran then delete quotes.
20982 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20986 # look for -l* and *.a constructs in the output
20987 for ac_arg in $ac_f77_v_output; do
20989 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20990 ac_cv_prog_f77_v=$ac_verb
20995 if test -z "$ac_cv_prog_f77_v"; then
20996 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
20997 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
21004 echo "$as_me: WARNING: compilation failed" >&2;}
21007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
21011 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6; }
21012 { echo "$as_me:$LINENO: checking for Fortran 77 libraries of $F77" >&5
21013 echo $ECHO_N "checking for Fortran 77 libraries of $F77... $ECHO_C" >&6; }
21014 if test "${ac_cv_f77_libs+set}" = set; then
21015 echo $ECHO_N "(cached) $ECHO_C" >&6
21017 if test "x$FLIBS" != "x"; then
21018 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
21021 cat >conftest.$ac_ext <<_ACEOF
21027 # Compile and link our simple test program by passing a flag (argument
21028 # 1 to this macro) to the Fortran compiler in order to get
21029 # "verbose" output that we can then parse for the Fortran linker
21031 ac_save_FFLAGS=$FFLAGS
21032 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
21033 eval "set x $ac_link"
21035 echo "$as_me:$LINENO: $*" >&5
21036 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
21037 echo "$ac_f77_v_output" >&5
21038 FFLAGS=$ac_save_FFLAGS
21042 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
21043 # /foo, /bar, and /baz are search directories for the Fortran linker.
21044 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
21045 ac_f77_v_output="`echo $ac_f77_v_output |
21047 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
21049 # FIXME: we keep getting bitten by quoted arguments; a more general fix
21050 # that detects unbalanced quotes in FLIBS should be implemented
21051 # and (ugh) tested at some point.
21052 case $ac_f77_v_output in
21053 # If we are using xlf then replace all the commas with spaces.
21055 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
21057 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
21058 # $LIBS confuse us, and the libraries appear later in the output anyway).
21059 *mGLOB_options_string*)
21060 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
21062 # Portland Group compiler has singly- or doubly-quoted -cmdline argument
21063 # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
21064 # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
21065 *-cmdline\ * | *-ignore\ * | *-def\ *)
21066 ac_f77_v_output=`echo $ac_f77_v_output | sed "\
21067 s/-cmdline *'[^']*'/ /g; s/-cmdline *\"[^\"]*\"/ /g
21068 s/-ignore *'[^']*'/ /g; s/-ignore *\"[^\"]*\"/ /g
21069 s/-def *'[^']*'/ /g; s/-def *\"[^\"]*\"/ /g"` ;;
21071 # If we are using Cray Fortran then delete quotes.
21073 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
21080 # Save positional arguments (if any)
21081 ac_save_positional="$@"
21083 set X $ac_f77_v_output
21084 while test $# != 1; do
21088 [\\/]*.a | ?:[\\/]*.a)
21090 for ac_i in $ac_cv_f77_libs; do
21091 if test x"$ac_arg" = x"$ac_i"; then
21097 if test x"$ac_exists" = xtrue; then
21100 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21106 for ac_i in $ac_cv_f77_libs; do
21107 if test x"$ac_arg" = x"$ac_i"; then
21113 if test x"$ac_exists" = xtrue; then
21116 if test "$ac_compiler_gnu" = yes; then
21117 for ac_link_opt in $ac_arg; do
21118 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21121 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21126 # Ignore these flags.
21127 -lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
21130 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21133 # These flags, when seen by themselves, take an argument.
21134 # We remove the space between option and argument and re-iterate
21135 # unless we find an empty arg or a new option (starting with -)
21146 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
21148 for ac_i in $ac_cv_f77_libs; do
21149 if test x"$ac_j" = x"$ac_i"; then
21155 if test x"$ac_exists" = xtrue; then
21158 ac_arg="$ac_arg $ac_j"
21159 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
21166 for ac_i in $ac_cv_f77_libs; do
21167 if test x"$ac_arg" = x"$ac_i"; then
21173 if test x"$ac_exists" = xtrue; then
21176 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21180 -zallextract*| -zdefaultextract)
21181 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
21183 # Ignore everything else.
21186 # restore positional arguments
21187 set X $ac_save_positional; shift
21189 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
21190 # then we insist that the "run path" must be an absolute path (i.e. it
21191 # must begin with a "/").
21192 case `(uname -sr) 2>/dev/null` in
21194 ac_ld_run_path=`echo $ac_f77_v_output |
21195 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21196 test "x$ac_ld_run_path" != x &&
21197 if test "$ac_compiler_gnu" = yes; then
21198 for ac_link_opt in $ac_ld_run_path; do
21199 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21202 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21206 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21209 { echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
21210 echo "${ECHO_T}$ac_cv_f77_libs" >&6; }
21211 FLIBS="$ac_cv_f77_libs"
21215 ac_cpp='$CPP $CPPFLAGS'
21216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21226 case "${host_os}" in
21227 *mingw* | *cygwin*)
21229 # on MinGW/Cygwin extra LDFLAGS are required
21230 no_undefined="-no-undefined"
21233 NO_UNDEFINED=$no_undefined
21239 # Find any Python interpreter.
21240 if test -z "$PYTHON"; then
21241 for ac_prog in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
21243 # Extract the first word of "$ac_prog", so it can be a program name with args.
21244 set dummy $ac_prog; ac_word=$2
21245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21247 if test "${ac_cv_path_PYTHON+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21252 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21256 for as_dir in $PATH
21259 test -z "$as_dir" && as_dir=.
21260 for ac_exec_ext in '' $ac_executable_extensions; do
21261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21262 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21273 PYTHON=$ac_cv_path_PYTHON
21274 if test -n "$PYTHON"; then
21275 { echo "$as_me:$LINENO: result: $PYTHON" >&5
21276 echo "${ECHO_T}$PYTHON" >&6; }
21278 { echo "$as_me:$LINENO: result: no" >&5
21279 echo "${ECHO_T}no" >&6; }
21283 test -n "$PYTHON" && break
21285 test -n "$PYTHON" || PYTHON=":"
21288 am_display_PYTHON=python
21291 if test "$PYTHON" = :; then
21292 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21293 echo "$as_me: error: no suitable Python interpreter found" >&2;}
21294 { (exit 1); exit 1; }; }
21298 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21299 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21300 if test "${am_cv_python_version+set}" = set; then
21301 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21305 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21306 echo "${ECHO_T}$am_cv_python_version" >&6; }
21307 PYTHON_VERSION=$am_cv_python_version
21311 PYTHON_PREFIX='${prefix}'
21313 PYTHON_EXEC_PREFIX='${exec_prefix}'
21317 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
21318 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
21319 if test "${am_cv_python_platform+set}" = set; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
21324 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
21325 echo "${ECHO_T}$am_cv_python_platform" >&6; }
21326 PYTHON_PLATFORM=$am_cv_python_platform
21331 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
21332 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
21333 if test "${am_cv_python_pythondir+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
21337 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21339 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
21340 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
21341 pythondir=$am_cv_python_pythondir
21345 pkgpythondir=\${pythondir}/$PACKAGE
21348 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
21349 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
21350 if test "${am_cv_python_pyexecdir+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21353 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
21354 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
21356 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
21357 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
21358 pyexecdir=$am_cv_python_pyexecdir
21362 pkgpyexecdir=\${pyexecdir}/$PACKAGE
21373 # For Fedora Core 5 and 6, see ticket:39 in Trac
21374 if test -f '/etc/redhat-release'; then
21375 if (echo $pyexecdir | grep -q lib64); then
21376 pythondir="$pyexecdir"
21380 # Check for Python include path
21381 { echo "$as_me:$LINENO: checking for Python include path" >&5
21382 echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
21383 if test -z "$PYTHON" ; then
21384 { { echo "$as_me:$LINENO: error: cannot find Python path" >&5
21385 echo "$as_me: error: cannot find Python path" >&2;}
21386 { (exit 1); exit 1; }; }
21389 # ask distutils which include path we should use
21391 import distutils.sysconfig
21393 path = distutils.sysconfig.get_python_inc(plat_specific=False)
21395 path = path.replace("\\", "/")
21398 python_path=`$PYTHON -c "$python_cmd"`
21399 { echo "$as_me:$LINENO: result: $python_path" >&5
21400 echo "${ECHO_T}$python_path" >&6; }
21401 if test -z "$python_path" ; then
21402 { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
21403 echo "$as_me: error: cannot find Python include path" >&2;}
21404 { (exit 1); exit 1; }; }
21407 PYTHON_CPPFLAGS=-I$python_path
21410 # Check for Python headers usability
21411 python_save_CPPFLAGS=$CPPFLAGS
21412 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
21414 for ac_header in Python.h
21416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21421 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 ac_res=`eval echo '${'$as_ac_Header'}'`
21424 { echo "$as_me:$LINENO: result: $ac_res" >&5
21425 echo "${ECHO_T}$ac_res" >&6; }
21427 # Is the header compilable?
21428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21430 cat >conftest.$ac_ext <<_ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h. */
21436 $ac_includes_default
21437 #include <$ac_header>
21439 rm -f conftest.$ac_objext
21440 if { (ac_try="$ac_compile"
21441 case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_compile") 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } && {
21453 test -z "$ac_c_werror_flag" ||
21454 test ! -s conftest.err
21455 } && test -s conftest.$ac_objext; then
21456 ac_header_compiler=yes
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 ac_header_compiler=no
21464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21466 echo "${ECHO_T}$ac_header_compiler" >&6; }
21468 # Is the header present?
21469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21471 cat >conftest.$ac_ext <<_ACEOF
21474 cat confdefs.h >>conftest.$ac_ext
21475 cat >>conftest.$ac_ext <<_ACEOF
21476 /* end confdefs.h. */
21477 #include <$ac_header>
21479 if { (ac_try="$ac_cpp conftest.$ac_ext"
21480 case "(($ac_try" in
21481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21482 *) ac_try_echo=$ac_try;;
21484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21487 grep -v '^ *+' conftest.er1 >conftest.err
21489 cat conftest.err >&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } >/dev/null && {
21492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21493 test ! -s conftest.err
21495 ac_header_preproc=yes
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21500 ac_header_preproc=no
21503 rm -f conftest.err conftest.$ac_ext
21504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21505 echo "${ECHO_T}$ac_header_preproc" >&6; }
21507 # So? What about this header?
21508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21514 ac_header_preproc=yes
21517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21537 eval "$as_ac_Header=\$ac_header_preproc"
21539 ac_res=`eval echo '${'$as_ac_Header'}'`
21540 { echo "$as_me:$LINENO: result: $ac_res" >&5
21541 echo "${ECHO_T}$ac_res" >&6; }
21544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21545 cat >>confdefs.h <<_ACEOF
21546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21550 { { echo "$as_me:$LINENO: error: cannot find usable Python headers" >&5
21551 echo "$as_me: error: cannot find usable Python headers" >&2;}
21552 { (exit 1); exit 1; }; }
21557 CPPFLAGS="$python_save_CPPFLAGS"
21559 # Only set this on mingw and cygwin hosts, (only implemented
21560 # for mingw host, for crosscompiling you need to trick this)
21564 *mingw* | *cygwin* )
21565 { echo "$as_me:$LINENO: checking for Python LDFLAGS" >&5
21566 echo $ECHO_N "checking for Python LDFLAGS... $ECHO_C" >&6; }
21569 import distutils.sysconfig
21571 path = distutils.sysconfig.get_config_var("LIBPL")
21573 path = distutils.sysconfig.PREFIX + "/libs"
21575 path = path.replace("\\", "/")
21578 python_stdlib_path=`$PYTHON -c "$python_cmd"`
21580 python_version_nodot=`echo $PYTHON_VERSION | sed "s,\.,,"`
21581 libpython_name="python$PYTHON_VERSION"
21583 # Standard install of python for win32 has libpython24.a
21584 # instead of libpython2.4.a so we check for the library
21585 # without the dot in the version number.
21587 python_stdlib_filename=`find $python_stdlib_path -type f -name libpython$python_version_nodot.* -print | sed "1q"`
21588 if test -n "$python_stdlib_filename" ; then
21589 libpython_name="python$python_version_nodot"
21592 PYTHON_LDFLAGS="-L$python_stdlib_path -l$libpython_name"
21593 { echo "$as_me:$LINENO: result: $PYTHON_LDFLAGS" >&5
21594 echo "${ECHO_T}$PYTHON_LDFLAGS" >&6; }
21595 # Replace all backslashes in PYTHON Paths with forward slashes
21596 pythondir=`echo $pythondir |sed 's,\\\\,/,g'`
21597 pkgpythondir=`echo $pkgpythondir |sed 's,\\\\,/,g'`
21598 pyexecdir=`echo $pyexecdir |sed 's,\\\\,/,g'`
21599 pkgpyexecdir=`echo $pkgpyexecdir |sed 's,\\\\,/,g'`
21612 # Extract the first word of "swig", so it can be a program name with args.
21613 set dummy swig; ac_word=$2
21614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21616 if test "${ac_cv_prog_SWIG+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 if test -n "$SWIG"; then
21620 ac_cv_prog_SWIG="$SWIG" # Let the user override the test.
21622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21623 for as_dir in $PATH
21626 test -z "$as_dir" && as_dir=.
21627 for ac_exec_ext in '' $ac_executable_extensions; do
21628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21629 ac_cv_prog_SWIG="`which swig`"
21630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21639 SWIG=$ac_cv_prog_SWIG
21640 if test -n "$SWIG"; then
21641 { echo "$as_me:$LINENO: result: $SWIG" >&5
21642 echo "${ECHO_T}$SWIG" >&6; }
21644 { echo "$as_me:$LINENO: result: no" >&5
21645 echo "${ECHO_T}no" >&6; }
21649 if test -z "$SWIG" ; then
21650 { { echo "$as_me:$LINENO: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&5
21651 echo "$as_me: error: Cannot find 'swig' program. SWIG version >= 1.3.23 required" >&2;}
21652 { (exit 1); exit 1; }; }
21654 elif test -n "1.3.23" ; then
21655 { echo "$as_me:$LINENO: checking for SWIG version" >&5
21656 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
21657 swig_version=`$SWIG -version 2>&1 | \
21658 awk '/^SWIG Version [0-9]+\.[0-9]+\.[0-9]+.*$/ { split($3,a,"[^.0-9]"); print a[1] }'`
21659 { echo "$as_me:$LINENO: result: $swig_version" >&5
21660 echo "${ECHO_T}$swig_version" >&6; }
21661 if test -n "$swig_version" ; then
21662 swig_version=`echo $swig_version | \
21663 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
21664 swig_required_version=`echo 1.3.23 | \
21665 awk '{ split($1,a,"\."); print a[1]*1000000+a[2]*1000+a[3] }' 2>/dev/null`
21666 if test $swig_required_version -gt $swig_version ; then
21667 { { echo "$as_me:$LINENO: error: SWIG version >= 1.3.23 required" >&5
21668 echo "$as_me: error: SWIG version >= 1.3.23 required" >&2;}
21669 { (exit 1); exit 1; }; }
21672 { { echo "$as_me:$LINENO: error: cannot determine SWIG version" >&5
21673 echo "$as_me: error: cannot determine SWIG version" >&2;}
21674 { (exit 1); exit 1; }; }
21681 if test "$SWIG" != "false" ; then
21688 if test "$SWIG" != "false" ; then
21689 SWIG_PYTHON_LIB=-lswigpy
21691 SWIG_PYTHON_OPT=-python
21694 SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
21699 # Extract the first word of "xmlto", so it can be a program name with args.
21700 set dummy xmlto; ac_word=$2
21701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21703 if test "${ac_cv_prog_XMLTO+set}" = set; then
21704 echo $ECHO_N "(cached) $ECHO_C" >&6
21706 if test -n "$XMLTO"; then
21707 ac_cv_prog_XMLTO="$XMLTO" # Let the user override the test.
21709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21710 for as_dir in $PATH
21713 test -z "$as_dir" && as_dir=.
21714 for ac_exec_ext in '' $ac_executable_extensions; do
21715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21716 ac_cv_prog_XMLTO="yes"
21717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21726 XMLTO=$ac_cv_prog_XMLTO
21727 if test -n "$XMLTO"; then
21728 { echo "$as_me:$LINENO: result: $XMLTO" >&5
21729 echo "${ECHO_T}$XMLTO" >&6; }
21731 { echo "$as_me:$LINENO: result: no" >&5
21732 echo "${ECHO_T}no" >&6; }
21738 if test x$XMLTO = xyes; then
21740 HAS_XMLTO_FALSE='#'
21748 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
21749 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
21750 if test "${ac_cv_lib_socket_socket+set}" = set; then
21751 echo $ECHO_N "(cached) $ECHO_C" >&6
21753 ac_check_lib_save_LIBS=$LIBS
21754 LIBS="-lsocket $LIBS"
21755 cat >conftest.$ac_ext <<_ACEOF
21758 cat confdefs.h >>conftest.$ac_ext
21759 cat >>conftest.$ac_ext <<_ACEOF
21760 /* end confdefs.h. */
21762 /* Override any GCC internal prototype to avoid an error.
21763 Use char because int might match the return type of a GCC
21764 builtin and then its argument prototype would still apply. */
21777 rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781 *) ac_try_echo=$ac_try;;
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784 (eval "$ac_link") 2>conftest.er1
21786 grep -v '^ *+' conftest.er1 >conftest.err
21788 cat conftest.err >&5
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); } && {
21791 test -z "$ac_c_werror_flag" ||
21792 test ! -s conftest.err
21793 } && test -s conftest$ac_exeext &&
21794 $as_test_x conftest$ac_exeext; then
21795 ac_cv_lib_socket_socket=yes
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 ac_cv_lib_socket_socket=no
21803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21804 conftest$ac_exeext conftest.$ac_ext
21805 LIBS=$ac_check_lib_save_LIBS
21807 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
21808 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
21809 if test $ac_cv_lib_socket_socket = yes; then
21810 cat >>confdefs.h <<_ACEOF
21811 #define HAVE_LIBSOCKET 1
21814 LIBS="-lsocket $LIBS"
21820 # Check first for POSIX
21825 ac_cpp='$CPP $CPPFLAGS'
21826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21832 # We used to check for pthread.h first, but this fails if pthread.h
21833 # requires special compiler flags (e.g. on True64 or Sequent).
21834 # It gets checked for in the link test anyway.
21836 # First of all, check if the user has set any of the PTHREAD_LIBS,
21837 # etcetera environment variables, and if threads linking works using
21839 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21840 save_CFLAGS="$CFLAGS"
21841 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21843 LIBS="$PTHREAD_LIBS $LIBS"
21844 { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21845 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21853 /* Override any GCC internal prototype to avoid an error.
21854 Use char because int might match the return type of a GCC
21855 builtin and then its argument prototype would still apply. */
21859 char pthread_join ();
21863 return pthread_join ();
21868 rm -f conftest.$ac_objext conftest$ac_exeext
21869 if { (ac_try="$ac_link"
21870 case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_link") 2>conftest.er1
21877 grep -v '^ *+' conftest.er1 >conftest.err
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } && {
21882 test -z "$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 } && test -s conftest$ac_exeext &&
21885 $as_test_x conftest$ac_exeext; then
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21895 conftest$ac_exeext conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21897 echo "${ECHO_T}$acx_pthread_ok" >&6; }
21898 if test x"$acx_pthread_ok" = xno; then
21903 CFLAGS="$save_CFLAGS"
21906 # We must check for the threads library under a number of different
21907 # names; the ordering is very important because some systems
21908 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21909 # libraries is broken (non-POSIX).
21911 # Create a list of thread flags to try. Items starting with a "-" are
21912 # C compiler flags, and other items are library names, except for "none"
21913 # which indicates that we try without any flags at all.
21915 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
21917 # The ordering *is* (sometimes) important. Some notes on the
21918 # individual items follow:
21920 # pthreads: AIX (must check this before -lpthread)
21921 # none: in case threads are in libc; should be tried before -Kthread and
21922 # other compiler flags to prevent continual compiler warnings
21923 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21924 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21925 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21926 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21927 # -pthreads: Solaris/gcc
21928 # -mthreads: Mingw32/gcc, Lynx/gcc
21929 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21930 # doesn't hurt to check since this sometimes defines pthreads too;
21931 # also defines -D_REENTRANT)
21932 # pthread: Linux, etcetera
21933 # --thread-safe: KAI C++
21935 case "${host_cpu}-${host_os}" in
21938 # On Solaris (at least, for some versions), libc contains stubbed
21939 # (non-functional) versions of the pthreads routines, so link-based
21940 # tests will erroneously succeed. (We need to link with -pthread or
21941 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21942 # a function called by this macro, so we could check for that, but
21943 # who knows whether they'll stub that too in a future libc.) So,
21944 # we'll just look for -pthreads and -lpthread first:
21946 acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
21950 if test x"$acx_pthread_ok" = xno; then
21951 for flag in $acx_pthread_flags; do
21955 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21956 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
21960 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21961 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
21962 PTHREAD_CFLAGS="$flag"
21966 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21967 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
21968 PTHREAD_LIBS="-l$flag"
21973 save_CFLAGS="$CFLAGS"
21974 LIBS="$PTHREAD_LIBS $LIBS"
21975 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21977 # Check for various functions. We must include pthread.h,
21978 # since some functions may be macros. (On the Sequent, we
21979 # need a special flag -Kthread to make this header compile.)
21980 # We check for pthread_join because it is in -lpthread on IRIX
21981 # while pthread_create is in libc. We check for pthread_attr_init
21982 # due to DEC craziness with -lpthreads. We check for
21983 # pthread_cleanup_push because it is one of the few pthread
21984 # functions on Solaris that doesn't have a non-functional libc stub.
21985 # We try pthread_create on general principles.
21986 cat >conftest.$ac_ext <<_ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h. */
21992 #include <pthread.h>
21996 pthread_t th; pthread_join(th, 0);
21997 pthread_attr_init(0); pthread_cleanup_push(0, 0);
21998 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22003 rm -f conftest.$ac_objext conftest$ac_exeext
22004 if { (ac_try="$ac_link"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_link") 2>conftest.er1
22012 grep -v '^ *+' conftest.er1 >conftest.err
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } && {
22017 test -z "$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22019 } && test -s conftest$ac_exeext &&
22020 $as_test_x conftest$ac_exeext; then
22023 echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22030 conftest$ac_exeext conftest.$ac_ext
22033 CFLAGS="$save_CFLAGS"
22035 { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22036 echo "${ECHO_T}$acx_pthread_ok" >&6; }
22037 if test "x$acx_pthread_ok" = xyes; then
22046 # Various other checks:
22047 if test "x$acx_pthread_ok" = xyes; then
22049 LIBS="$PTHREAD_LIBS $LIBS"
22050 save_CFLAGS="$CFLAGS"
22051 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22053 # Detect AIX lossage: threads are created detached by default
22054 # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
22055 { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22056 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
22057 cat >conftest.$ac_ext <<_ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22063 #include <pthread.h>
22067 int attr=PTHREAD_CREATE_JOINABLE;
22072 rm -f conftest.$ac_objext conftest$ac_exeext
22073 if { (ac_try="$ac_link"
22074 case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_link") 2>conftest.er1
22081 grep -v '^ *+' conftest.er1 >conftest.err
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); } && {
22086 test -z "$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 } && test -s conftest$ac_exeext &&
22089 $as_test_x conftest$ac_exeext; then
22090 ok=PTHREAD_CREATE_JOINABLE
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22099 conftest$ac_exeext conftest.$ac_ext
22100 if test x"$ok" = xunknown; then
22101 cat >conftest.$ac_ext <<_ACEOF
22104 cat confdefs.h >>conftest.$ac_ext
22105 cat >>conftest.$ac_ext <<_ACEOF
22106 /* end confdefs.h. */
22107 #include <pthread.h>
22111 int attr=PTHREAD_CREATE_UNDETACHED;
22116 rm -f conftest.$ac_objext conftest$ac_exeext
22117 if { (ac_try="$ac_link"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_link") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } && {
22130 test -z "$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 } && test -s conftest$ac_exeext &&
22133 $as_test_x conftest$ac_exeext; then
22134 ok=PTHREAD_CREATE_UNDETACHED
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22143 conftest$ac_exeext conftest.$ac_ext
22145 if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
22147 cat >>confdefs.h <<\_ACEOF
22148 #define PTHREAD_CREATE_JOINABLE $ok
22152 { echo "$as_me:$LINENO: result: ${ok}" >&5
22153 echo "${ECHO_T}${ok}" >&6; }
22154 if test x"$ok" = xunknown; then
22155 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
22156 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
22159 { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22160 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
22162 case "${host_cpu}-${host_os}" in
22163 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22164 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
22166 { echo "$as_me:$LINENO: result: ${flag}" >&5
22167 echo "${ECHO_T}${flag}" >&6; }
22168 if test "x$flag" != xno; then
22169 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22173 CFLAGS="$save_CFLAGS"
22175 # More AIX lossage: must compile with cc_r
22176 # Extract the first word of "cc_r", so it can be a program name with args.
22177 set dummy cc_r; ac_word=$2
22178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22180 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22181 echo $ECHO_N "(cached) $ECHO_C" >&6
22183 if test -n "$PTHREAD_CC"; then
22184 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187 for as_dir in $PATH
22190 test -z "$as_dir" && as_dir=.
22191 for ac_exec_ext in '' $ac_executable_extensions; do
22192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22193 ac_cv_prog_PTHREAD_CC="cc_r"
22194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22201 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
22204 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22205 if test -n "$PTHREAD_CC"; then
22206 { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22207 echo "${ECHO_T}$PTHREAD_CC" >&6; }
22209 { echo "$as_me:$LINENO: result: no" >&5
22210 echo "${ECHO_T}no" >&6; }
22222 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22223 if test x"$acx_pthread_ok" = xyes; then
22226 cat >>confdefs.h <<\_ACEOF
22227 #define OMNITHREAD_POSIX 1
22235 # If no POSIX support found, then check for NT threads
22236 { echo "$as_me:$LINENO: checking for NT threads" >&5
22237 echo $ECHO_N "checking for NT threads... $ECHO_C" >&6; }
22239 cat >conftest.$ac_ext <<_ACEOF
22241 #include <windows.h>
22242 #include <winbase.h>
22243 int main() { InitializeCriticalSection(NULL); return 0; }
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (ac_try="$ac_link"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_link") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } && {
22260 test -z "$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 } && test -s conftest$ac_exeext &&
22263 $as_test_x conftest$ac_exeext; then
22267 cat >>confdefs.h <<\_ACEOF
22268 #define OMNITHREAD_NT 1
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 { { echo "$as_me:$LINENO: error: GNU Radio requires POSIX threads. pthreads not found.
22277 See \`config.log' for more details." >&5
22278 echo "$as_me: error: GNU Radio requires POSIX threads. pthreads not found.
22279 See \`config.log' for more details." >&2;}
22280 { (exit 1); exit 1; }; }
22284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22285 conftest$ac_exeext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: result: yes" >&5
22287 echo "${ECHO_T}yes" >&6; }
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22299 if test "x$ot_posix" = xyes; then
22300 OMNITHREAD_POSIX_TRUE=
22301 OMNITHREAD_POSIX_FALSE='#'
22303 OMNITHREAD_POSIX_TRUE='#'
22304 OMNITHREAD_POSIX_FALSE=
22309 if test "x$ot_nt" = xyes; then
22310 OMNITHREAD_NT_TRUE=
22311 OMNITHREAD_NT_FALSE='#'
22313 OMNITHREAD_NT_TRUE='#'
22314 OMNITHREAD_NT_FALSE=
22319 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
22320 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
22321 if test "${ac_cv_search_clock_gettime+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 ac_func_search_save_LIBS=$LIBS
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22332 /* Override any GCC internal prototype to avoid an error.
22333 Use char because int might match the return type of a GCC
22334 builtin and then its argument prototype would still apply. */
22338 char clock_gettime ();
22342 return clock_gettime ();
22347 for ac_lib in '' rt; do
22348 if test -z "$ac_lib"; then
22349 ac_res="none required"
22352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_link") 2>conftest.er1
22363 grep -v '^ *+' conftest.er1 >conftest.err
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } && {
22368 test -z "$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 } && test -s conftest$ac_exeext &&
22371 $as_test_x conftest$ac_exeext; then
22372 ac_cv_search_clock_gettime=$ac_res
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22382 if test "${ac_cv_search_clock_gettime+set}" = set; then
22386 if test "${ac_cv_search_clock_gettime+set}" = set; then
22389 ac_cv_search_clock_gettime=no
22391 rm conftest.$ac_ext
22392 LIBS=$ac_func_search_save_LIBS
22394 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
22395 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
22396 ac_res=$ac_cv_search_clock_gettime
22397 if test "$ac_res" != no; then
22398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22399 PTHREAD_LIBS="$PTHREAD_LIBS $LIBS"
22405 for ac_func in clock_gettime gettimeofday nanosleep
22407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22413 cat >conftest.$ac_ext <<_ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h. */
22419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22421 #define $ac_func innocuous_$ac_func
22423 /* System header to define __stub macros and hopefully few prototypes,
22424 which can conflict with char $ac_func (); below.
22425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22426 <limits.h> exists even on freestanding compilers. */
22429 # include <limits.h>
22431 # include <assert.h>
22436 /* Override any GCC internal prototype to avoid an error.
22437 Use char because int might match the return type of a GCC
22438 builtin and then its argument prototype would still apply. */
22443 /* The GNU C library defines this for functions which it implements
22444 to always fail with ENOSYS. Some functions are actually named
22445 something starting with __ and the normal name is an alias. */
22446 #if defined __stub_$ac_func || defined __stub___$ac_func
22453 return $ac_func ();
22458 rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_link") 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } && {
22472 test -z "$ac_c_werror_flag" ||
22473 test ! -s conftest.err
22474 } && test -s conftest$ac_exeext &&
22475 $as_test_x conftest$ac_exeext; then
22476 eval "$as_ac_var=yes"
22478 echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 eval "$as_ac_var=no"
22484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22485 conftest$ac_exeext conftest.$ac_ext
22487 ac_res=`eval echo '${'$as_ac_var'}'`
22488 { echo "$as_me:$LINENO: result: $ac_res" >&5
22489 echo "${ECHO_T}$ac_res" >&6; }
22490 if test `eval echo '${'$as_ac_var'}'` = yes; then
22491 cat >>confdefs.h <<_ACEOF
22492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22500 #AC_SUBST(PTHREAD_CFLAGS)
22501 CFLAGS="${CFLAGS} $PTHREAD_CFLAGS"
22502 CXXFLAGS="${CXXFLAGS} $PTHREAD_CFLAGS"
22504 if test "x$CXX_FOR_BUILD" = x
22506 CXX_FOR_BUILD=${CXX}
22513 ac_cpp='$CPP $CPPFLAGS'
22514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22521 for ac_header in sys/ipc.h sys/shm.h
22523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22528 echo $ECHO_N "(cached) $ECHO_C" >&6
22530 ac_res=`eval echo '${'$as_ac_Header'}'`
22531 { echo "$as_me:$LINENO: result: $ac_res" >&5
22532 echo "${ECHO_T}$ac_res" >&6; }
22534 # Is the header compilable?
22535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22537 cat >conftest.$ac_ext <<_ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 $ac_includes_default
22544 #include <$ac_header>
22546 rm -f conftest.$ac_objext
22547 if { (ac_try="$ac_compile"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_compile") 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); } && {
22560 test -z "$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 } && test -s conftest.$ac_objext; then
22563 ac_header_compiler=yes
22565 echo "$as_me: failed program was:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 ac_header_compiler=no
22571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22573 echo "${ECHO_T}$ac_header_compiler" >&6; }
22575 # Is the header present?
22576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 #include <$ac_header>
22586 if { (ac_try="$ac_cpp conftest.$ac_ext"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } >/dev/null && {
22599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22602 ac_header_preproc=yes
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 ac_header_preproc=no
22610 rm -f conftest.err conftest.$ac_ext
22611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22612 echo "${ECHO_T}$ac_header_preproc" >&6; }
22614 # So? What about this header?
22615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22621 ac_header_preproc=yes
22624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22642 echo $ECHO_N "(cached) $ECHO_C" >&6
22644 eval "$as_ac_Header=\$ac_header_preproc"
22646 ac_res=`eval echo '${'$as_ac_Header'}'`
22647 { echo "$as_me:$LINENO: result: $ac_res" >&5
22648 echo "${ECHO_T}$ac_res" >&6; }
22651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22652 cat >>confdefs.h <<_ACEOF
22653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22662 { echo "$as_me:$LINENO: checking for library containing shmat" >&5
22663 echo $ECHO_N "checking for library containing shmat... $ECHO_C" >&6; }
22664 if test "${ac_cv_search_shmat+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 ac_func_search_save_LIBS=$LIBS
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22675 /* Override any GCC internal prototype to avoid an error.
22676 Use char because int might match the return type of a GCC
22677 builtin and then its argument prototype would still apply. */
22690 for ac_lib in '' cygipc ipc; do
22691 if test -z "$ac_lib"; then
22692 ac_res="none required"
22695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (ac_try="$ac_link"
22699 case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_link") 2>conftest.er1
22706 grep -v '^ *+' conftest.er1 >conftest.err
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest$ac_exeext &&
22714 $as_test_x conftest$ac_exeext; then
22715 ac_cv_search_shmat=$ac_res
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22725 if test "${ac_cv_search_shmat+set}" = set; then
22729 if test "${ac_cv_search_shmat+set}" = set; then
22732 ac_cv_search_shmat=no
22734 rm conftest.$ac_ext
22735 LIBS=$ac_func_search_save_LIBS
22737 { echo "$as_me:$LINENO: result: $ac_cv_search_shmat" >&5
22738 echo "${ECHO_T}$ac_cv_search_shmat" >&6; }
22739 ac_res=$ac_cv_search_shmat
22740 if test "$ac_res" != no; then
22741 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22744 { echo "$as_me:$LINENO: WARNING: SystemV IPC support not found. " >&5
22745 echo "$as_me: WARNING: SystemV IPC support not found. " >&2;}
22752 ac_cpp='$CPP $CPPFLAGS'
22753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22760 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22761 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
22762 if test "${ac_cv_header_stdc+set}" = set; then
22763 echo $ECHO_N "(cached) $ECHO_C" >&6
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #include <stdlib.h>
22772 #include <stdarg.h>
22773 #include <string.h>
22784 rm -f conftest.$ac_objext
22785 if { (ac_try="$ac_compile"
22786 case "(($ac_try" in
22787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22788 *) ac_try_echo=$ac_try;;
22790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22791 (eval "$ac_compile") 2>conftest.er1
22793 grep -v '^ *+' conftest.er1 >conftest.err
22795 cat conftest.err >&5
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); } && {
22798 test -z "$ac_c_werror_flag" ||
22799 test ! -s conftest.err
22800 } && test -s conftest.$ac_objext; then
22801 ac_cv_header_stdc=yes
22803 echo "$as_me: failed program was:" >&5
22804 sed 's/^/| /' conftest.$ac_ext >&5
22806 ac_cv_header_stdc=no
22809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 if test $ac_cv_header_stdc = yes; then
22812 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <string.h>
22822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22823 $EGREP "memchr" >/dev/null 2>&1; then
22826 ac_cv_header_stdc=no
22832 if test $ac_cv_header_stdc = yes; then
22833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22834 cat >conftest.$ac_ext <<_ACEOF
22837 cat confdefs.h >>conftest.$ac_ext
22838 cat >>conftest.$ac_ext <<_ACEOF
22839 /* end confdefs.h. */
22840 #include <stdlib.h>
22843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22844 $EGREP "free" >/dev/null 2>&1; then
22847 ac_cv_header_stdc=no
22853 if test $ac_cv_header_stdc = yes; then
22854 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22855 if test "$cross_compiling" = yes; then
22858 cat >conftest.$ac_ext <<_ACEOF
22861 cat confdefs.h >>conftest.$ac_ext
22862 cat >>conftest.$ac_ext <<_ACEOF
22863 /* end confdefs.h. */
22865 #include <stdlib.h>
22866 #if ((' ' & 0x0FF) == 0x020)
22867 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22868 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22870 # define ISLOWER(c) \
22871 (('a' <= (c) && (c) <= 'i') \
22872 || ('j' <= (c) && (c) <= 'r') \
22873 || ('s' <= (c) && (c) <= 'z'))
22874 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22877 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22882 for (i = 0; i < 256; i++)
22883 if (XOR (islower (i), ISLOWER (i))
22884 || toupper (i) != TOUPPER (i))
22889 rm -f conftest$ac_exeext
22890 if { (ac_try="$ac_link"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896 (eval "$ac_link") 2>&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22900 { (case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_try") 2>&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22911 echo "$as_me: program exited with status $ac_status" >&5
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22915 ( exit $ac_status )
22916 ac_cv_header_stdc=no
22918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22924 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22925 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
22926 if test $ac_cv_header_stdc = yes; then
22928 cat >>confdefs.h <<\_ACEOF
22929 #define STDC_HEADERS 1
22934 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22935 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22936 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22939 cat >conftest.$ac_ext <<_ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22945 #include <sys/types.h>
22946 #include <sys/wait.h>
22947 #ifndef WEXITSTATUS
22948 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22951 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22959 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22964 rm -f conftest.$ac_objext
22965 if { (ac_try="$ac_compile"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_compile") 2>conftest.er1
22973 grep -v '^ *+' conftest.er1 >conftest.err
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } && {
22978 test -z "$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 } && test -s conftest.$ac_objext; then
22981 ac_cv_header_sys_wait_h=yes
22983 echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_cv_header_sys_wait_h=no
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22992 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22993 if test $ac_cv_header_sys_wait_h = yes; then
22995 cat >>confdefs.h <<\_ACEOF
22996 #define HAVE_SYS_WAIT_H 1
23008 for ac_header in fcntl.h limits.h strings.h time.h sys/ioctl.h sys/time.h unistd.h
23010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23017 ac_res=`eval echo '${'$as_ac_Header'}'`
23018 { echo "$as_me:$LINENO: result: $ac_res" >&5
23019 echo "${ECHO_T}$ac_res" >&6; }
23021 # Is the header compilable?
23022 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23023 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23024 cat >conftest.$ac_ext <<_ACEOF
23027 cat confdefs.h >>conftest.$ac_ext
23028 cat >>conftest.$ac_ext <<_ACEOF
23029 /* end confdefs.h. */
23030 $ac_includes_default
23031 #include <$ac_header>
23033 rm -f conftest.$ac_objext
23034 if { (ac_try="$ac_compile"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040 (eval "$ac_compile") 2>conftest.er1
23042 grep -v '^ *+' conftest.er1 >conftest.err
23044 cat conftest.err >&5
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); } && {
23047 test -z "$ac_c_werror_flag" ||
23048 test ! -s conftest.err
23049 } && test -s conftest.$ac_objext; then
23050 ac_header_compiler=yes
23052 echo "$as_me: failed program was:" >&5
23053 sed 's/^/| /' conftest.$ac_ext >&5
23055 ac_header_compiler=no
23058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23060 echo "${ECHO_T}$ac_header_compiler" >&6; }
23062 # Is the header present?
23063 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23064 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23065 cat >conftest.$ac_ext <<_ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 #include <$ac_header>
23073 if { (ac_try="$ac_cpp conftest.$ac_ext"
23074 case "(($ac_try" in
23075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23076 *) ac_try_echo=$ac_try;;
23078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23081 grep -v '^ *+' conftest.er1 >conftest.err
23083 cat conftest.err >&5
23084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23085 (exit $ac_status); } >/dev/null && {
23086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23087 test ! -s conftest.err
23089 ac_header_preproc=yes
23091 echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23094 ac_header_preproc=no
23097 rm -f conftest.err conftest.$ac_ext
23098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23099 echo "${ECHO_T}$ac_header_preproc" >&6; }
23101 # So? What about this header?
23102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23104 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23105 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23107 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23108 ac_header_preproc=yes
23111 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23112 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23113 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23114 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23115 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23116 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23117 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23118 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23120 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23121 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23122 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23126 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 eval "$as_ac_Header=\$ac_header_preproc"
23133 ac_res=`eval echo '${'$as_ac_Header'}'`
23134 { echo "$as_me:$LINENO: result: $ac_res" >&5
23135 echo "${ECHO_T}$ac_res" >&6; }
23138 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23139 cat >>confdefs.h <<_ACEOF
23140 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23151 for ac_header in linux/ppdev.h sys/mman.h sys/select.h sys/types.h
23153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23160 ac_res=`eval echo '${'$as_ac_Header'}'`
23161 { echo "$as_me:$LINENO: result: $ac_res" >&5
23162 echo "${ECHO_T}$ac_res" >&6; }
23164 # Is the header compilable?
23165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23167 cat >conftest.$ac_ext <<_ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 $ac_includes_default
23174 #include <$ac_header>
23176 rm -f conftest.$ac_objext
23177 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23185 grep -v '^ *+' conftest.er1 >conftest.err
23187 cat conftest.err >&5
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); } && {
23190 test -z "$ac_c_werror_flag" ||
23191 test ! -s conftest.err
23192 } && test -s conftest.$ac_objext; then
23193 ac_header_compiler=yes
23195 echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23198 ac_header_compiler=no
23201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23203 echo "${ECHO_T}$ac_header_compiler" >&6; }
23205 # Is the header present?
23206 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23208 cat >conftest.$ac_ext <<_ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h. */
23214 #include <$ac_header>
23216 if { (ac_try="$ac_cpp conftest.$ac_ext"
23217 case "(($ac_try" in
23218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219 *) ac_try_echo=$ac_try;;
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23224 grep -v '^ *+' conftest.er1 >conftest.err
23226 cat conftest.err >&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } >/dev/null && {
23229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23230 test ! -s conftest.err
23232 ac_header_preproc=yes
23234 echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23237 ac_header_preproc=no
23240 rm -f conftest.err conftest.$ac_ext
23241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23242 echo "${ECHO_T}$ac_header_preproc" >&6; }
23244 # So? What about this header?
23245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23251 ac_header_preproc=yes
23254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23274 eval "$as_ac_Header=\$ac_header_preproc"
23276 ac_res=`eval echo '${'$as_ac_Header'}'`
23277 { echo "$as_me:$LINENO: result: $ac_res" >&5
23278 echo "${ECHO_T}$ac_res" >&6; }
23281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23282 cat >>confdefs.h <<_ACEOF
23283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23293 for ac_header in sys/resource.h stdint.h sched.h
23295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 ac_res=`eval echo '${'$as_ac_Header'}'`
23303 { echo "$as_me:$LINENO: result: $ac_res" >&5
23304 echo "${ECHO_T}$ac_res" >&6; }
23306 # Is the header compilable?
23307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23309 cat >conftest.$ac_ext <<_ACEOF
23312 cat confdefs.h >>conftest.$ac_ext
23313 cat >>conftest.$ac_ext <<_ACEOF
23314 /* end confdefs.h. */
23315 $ac_includes_default
23316 #include <$ac_header>
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322 *) ac_try_echo=$ac_try;;
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23327 grep -v '^ *+' conftest.er1 >conftest.err
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 ac_header_compiler=yes
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_header_compiler=no
23343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23345 echo "${ECHO_T}$ac_header_compiler" >&6; }
23347 # Is the header present?
23348 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23350 cat >conftest.$ac_ext <<_ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h. */
23356 #include <$ac_header>
23358 if { (ac_try="$ac_cpp conftest.$ac_ext"
23359 case "(($ac_try" in
23360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23361 *) ac_try_echo=$ac_try;;
23363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23366 grep -v '^ *+' conftest.er1 >conftest.err
23368 cat conftest.err >&5
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); } >/dev/null && {
23371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23372 test ! -s conftest.err
23374 ac_header_preproc=yes
23376 echo "$as_me: failed program was:" >&5
23377 sed 's/^/| /' conftest.$ac_ext >&5
23379 ac_header_preproc=no
23382 rm -f conftest.err conftest.$ac_ext
23383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23384 echo "${ECHO_T}$ac_header_preproc" >&6; }
23386 # So? What about this header?
23387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23393 ac_header_preproc=yes
23396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 eval "$as_ac_Header=\$ac_header_preproc"
23418 ac_res=`eval echo '${'$as_ac_Header'}'`
23419 { echo "$as_me:$LINENO: result: $ac_res" >&5
23420 echo "${ECHO_T}$ac_res" >&6; }
23423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23424 cat >>confdefs.h <<_ACEOF
23425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23433 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23434 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23435 if test "${ac_cv_c_const+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23448 /* FIXME: Include the comments suggested by Paul. */
23449 #ifndef __cplusplus
23450 /* Ultrix mips cc rejects this. */
23451 typedef int charset[2];
23453 /* SunOS 4.1.1 cc rejects this. */
23454 char const *const *pcpcc;
23456 /* NEC SVR4.0.2 mips cc rejects this. */
23457 struct point {int x, y;};
23458 static struct point const zero = {0,0};
23459 /* AIX XL C 1.02.0.0 rejects this.
23460 It does not let you subtract one const X* pointer from another in
23461 an arm of an if-expression whose if-part is not a constant
23463 const char *g = "string";
23464 pcpcc = &g + (g ? g-g : 0);
23465 /* HPUX 7.0 cc rejects these. */
23467 ppc = (char**) pcpcc;
23468 pcpcc = (char const *const *) ppc;
23469 { /* SCO 3.2v4 cc rejects this. */
23471 char const *s = 0 ? (char *) 0 : (char const *) 0;
23476 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23477 int x[] = {25, 17};
23478 const int *foo = &x[0];
23481 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23482 typedef const int *iptr;
23486 { /* AIX XL C 1.02.0.0 rejects this saying
23487 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23488 struct s { int j; const int *ap[3]; };
23489 struct s *b; b->j = 5;
23491 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23492 const int foo = 10;
23493 if (!foo) return 0;
23495 return !cs[0] && !zero.x;
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_compile") 2>conftest.er1
23511 grep -v '^ *+' conftest.er1 >conftest.err
23513 cat conftest.err >&5
23514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515 (exit $ac_status); } && {
23516 test -z "$ac_c_werror_flag" ||
23517 test ! -s conftest.err
23518 } && test -s conftest.$ac_objext; then
23521 echo "$as_me: failed program was:" >&5
23522 sed 's/^/| /' conftest.$ac_ext >&5
23527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23529 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23530 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23531 if test $ac_cv_c_const = no; then
23533 cat >>confdefs.h <<\_ACEOF
23539 { echo "$as_me:$LINENO: checking for inline" >&5
23540 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
23541 if test "${ac_cv_c_inline+set}" = set; then
23542 echo $ECHO_N "(cached) $ECHO_C" >&6
23545 for ac_kw in inline __inline__ __inline; do
23546 cat >conftest.$ac_ext <<_ACEOF
23549 cat confdefs.h >>conftest.$ac_ext
23550 cat >>conftest.$ac_ext <<_ACEOF
23551 /* end confdefs.h. */
23552 #ifndef __cplusplus
23554 static $ac_kw foo_t static_foo () {return 0; }
23555 $ac_kw foo_t foo () {return 0; }
23559 rm -f conftest.$ac_objext
23560 if { (ac_try="$ac_compile"
23561 case "(($ac_try" in
23562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563 *) ac_try_echo=$ac_try;;
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566 (eval "$ac_compile") 2>conftest.er1
23568 grep -v '^ *+' conftest.er1 >conftest.err
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } && {
23573 test -z "$ac_c_werror_flag" ||
23574 test ! -s conftest.err
23575 } && test -s conftest.$ac_objext; then
23576 ac_cv_c_inline=$ac_kw
23578 echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585 test "$ac_cv_c_inline" != no && break
23589 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23590 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
23593 case $ac_cv_c_inline in
23596 case $ac_cv_c_inline in
23598 *) ac_val=$ac_cv_c_inline;;
23600 cat >>confdefs.h <<_ACEOF
23601 #ifndef __cplusplus
23602 #define inline $ac_val
23608 { echo "$as_me:$LINENO: checking for size_t" >&5
23609 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23610 if test "${ac_cv_type_size_t+set}" = set; then
23611 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 cat >conftest.$ac_ext <<_ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 $ac_includes_default
23620 typedef size_t ac__type_new_;
23624 if ((ac__type_new_ *) 0)
23626 if (sizeof (ac__type_new_))
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636 *) ac_try_echo=$ac_try;;
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23641 grep -v '^ *+' conftest.er1 >conftest.err
23643 cat conftest.err >&5
23644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_cv_type_size_t=yes
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_cv_type_size_t=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23659 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23660 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23661 if test $ac_cv_type_size_t = yes; then
23665 cat >>confdefs.h <<_ACEOF
23666 #define size_t unsigned int
23671 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23672 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
23673 if test "${ac_cv_header_time+set}" = set; then
23674 echo $ECHO_N "(cached) $ECHO_C" >&6
23676 cat >conftest.$ac_ext <<_ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 #include <sys/types.h>
23683 #include <sys/time.h>
23689 if ((struct tm *) 0)
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23704 grep -v '^ *+' conftest.er1 >conftest.err
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 ac_cv_header_time=yes
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 ac_cv_header_time=no
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23723 echo "${ECHO_T}$ac_cv_header_time" >&6; }
23724 if test $ac_cv_header_time = yes; then
23726 cat >>confdefs.h <<\_ACEOF
23727 #define TIME_WITH_SYS_TIME 1
23732 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23733 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
23734 if test "${ac_cv_c_bigendian+set}" = set; then
23735 echo $ECHO_N "(cached) $ECHO_C" >&6
23737 # See if sys/param.h defines the BYTE_ORDER macro.
23738 cat >conftest.$ac_ext <<_ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h. */
23744 #include <sys/types.h>
23745 #include <sys/param.h>
23750 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
23751 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
23752 bogus endian macros
23759 rm -f conftest.$ac_objext
23760 if { (ac_try="$ac_compile"
23761 case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23766 (eval "$ac_compile") 2>conftest.er1
23768 grep -v '^ *+' conftest.er1 >conftest.err
23770 cat conftest.err >&5
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && {
23773 test -z "$ac_c_werror_flag" ||
23774 test ! -s conftest.err
23775 } && test -s conftest.$ac_objext; then
23776 # It does; now see whether it defined to BIG_ENDIAN or not.
23777 cat >conftest.$ac_ext <<_ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h. */
23783 #include <sys/types.h>
23784 #include <sys/param.h>
23789 #if BYTE_ORDER != BIG_ENDIAN
23797 rm -f conftest.$ac_objext
23798 if { (ac_try="$ac_compile"
23799 case "(($ac_try" in
23800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23801 *) ac_try_echo=$ac_try;;
23803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23804 (eval "$ac_compile") 2>conftest.er1
23806 grep -v '^ *+' conftest.er1 >conftest.err
23808 cat conftest.err >&5
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); } && {
23811 test -z "$ac_c_werror_flag" ||
23812 test ! -s conftest.err
23813 } && test -s conftest.$ac_objext; then
23814 ac_cv_c_bigendian=yes
23816 echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23819 ac_cv_c_bigendian=no
23822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23827 # It does not; compile a test program.
23828 if test "$cross_compiling" = yes; then
23829 # try to guess the endianness by grepping values into an object file
23830 ac_cv_c_bigendian=unknown
23831 cat >conftest.$ac_ext <<_ACEOF
23834 cat confdefs.h >>conftest.$ac_ext
23835 cat >>conftest.$ac_ext <<_ACEOF
23836 /* end confdefs.h. */
23837 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23838 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23839 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
23840 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23841 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23842 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
23846 _ascii (); _ebcdic ();
23851 rm -f conftest.$ac_objext
23852 if { (ac_try="$ac_compile"
23853 case "(($ac_try" in
23854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23855 *) ac_try_echo=$ac_try;;
23857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23858 (eval "$ac_compile") 2>conftest.er1
23860 grep -v '^ *+' conftest.er1 >conftest.err
23862 cat conftest.err >&5
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); } && {
23865 test -z "$ac_c_werror_flag" ||
23866 test ! -s conftest.err
23867 } && test -s conftest.$ac_objext; then
23868 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
23869 ac_cv_c_bigendian=yes
23871 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23872 if test "$ac_cv_c_bigendian" = unknown; then
23873 ac_cv_c_bigendian=no
23875 # finding both strings is unlikely to happen, but who knows?
23876 ac_cv_c_bigendian=unknown
23880 echo "$as_me: failed program was:" >&5
23881 sed 's/^/| /' conftest.$ac_ext >&5
23886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888 cat >conftest.$ac_ext <<_ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h. */
23894 $ac_includes_default
23899 /* Are we little or big endian? From Harbison&Steele. */
23903 char c[sizeof (long int)];
23906 return u.c[sizeof (long int) - 1] == 1;
23912 rm -f conftest$ac_exeext
23913 if { (ac_try="$ac_link"
23914 case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_link") 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23923 { (case "(($ac_try" in
23924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925 *) ac_try_echo=$ac_try;;
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928 (eval "$ac_try") 2>&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; }; then
23932 ac_cv_c_bigendian=no
23934 echo "$as_me: program exited with status $ac_status" >&5
23935 echo "$as_me: failed program was:" >&5
23936 sed 's/^/| /' conftest.$ac_ext >&5
23938 ( exit $ac_status )
23939 ac_cv_c_bigendian=yes
23941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23949 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23950 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
23951 case $ac_cv_c_bigendian in
23954 cat >>confdefs.h <<\_ACEOF
23955 #define WORDS_BIGENDIAN 1
23961 { { echo "$as_me:$LINENO: error: unknown endianness
23962 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23963 echo "$as_me: error: unknown endianness
23964 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23965 { (exit 1); exit 1; }; } ;;
23968 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23969 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23970 if test "${ac_cv_struct_tm+set}" = set; then
23971 echo $ECHO_N "(cached) $ECHO_C" >&6
23973 cat >conftest.$ac_ext <<_ACEOF
23976 cat confdefs.h >>conftest.$ac_ext
23977 cat >>conftest.$ac_ext <<_ACEOF
23978 /* end confdefs.h. */
23979 #include <sys/types.h>
23986 int *p = &tm.tm_sec;
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24001 grep -v '^ *+' conftest.er1 >conftest.err
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.$ac_objext; then
24009 ac_cv_struct_tm=time.h
24011 echo "$as_me: failed program was:" >&5
24012 sed 's/^/| /' conftest.$ac_ext >&5
24014 ac_cv_struct_tm=sys/time.h
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24020 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
24021 if test $ac_cv_struct_tm = sys/time.h; then
24023 cat >>confdefs.h <<\_ACEOF
24024 #define TM_IN_SYS_TIME 1
24030 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24031 # for constant arguments. Useless!
24032 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
24033 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
24034 if test "${ac_cv_working_alloca_h+set}" = set; then
24035 echo $ECHO_N "(cached) $ECHO_C" >&6
24037 cat >conftest.$ac_ext <<_ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */
24043 #include <alloca.h>
24047 char *p = (char *) alloca (2 * sizeof (int));
24053 rm -f conftest.$ac_objext conftest$ac_exeext
24054 if { (ac_try="$ac_link"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_link") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1 >conftest.err
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest$ac_exeext &&
24070 $as_test_x conftest$ac_exeext; then
24071 ac_cv_working_alloca_h=yes
24073 echo "$as_me: failed program was:" >&5
24074 sed 's/^/| /' conftest.$ac_ext >&5
24076 ac_cv_working_alloca_h=no
24079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24080 conftest$ac_exeext conftest.$ac_ext
24082 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24083 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
24084 if test $ac_cv_working_alloca_h = yes; then
24086 cat >>confdefs.h <<\_ACEOF
24087 #define HAVE_ALLOCA_H 1
24092 { echo "$as_me:$LINENO: checking for alloca" >&5
24093 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
24094 if test "${ac_cv_func_alloca_works+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24104 # define alloca __builtin_alloca
24107 # include <malloc.h>
24108 # define alloca _alloca
24110 # ifdef HAVE_ALLOCA_H
24111 # include <alloca.h>
24116 # ifndef alloca /* predefined by HP cc +Olibcalls */
24127 char *p = (char *) alloca (1);
24133 rm -f conftest.$ac_objext conftest$ac_exeext
24134 if { (ac_try="$ac_link"
24135 case "(($ac_try" in
24136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137 *) ac_try_echo=$ac_try;;
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140 (eval "$ac_link") 2>conftest.er1
24142 grep -v '^ *+' conftest.er1 >conftest.err
24144 cat conftest.err >&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); } && {
24147 test -z "$ac_c_werror_flag" ||
24148 test ! -s conftest.err
24149 } && test -s conftest$ac_exeext &&
24150 $as_test_x conftest$ac_exeext; then
24151 ac_cv_func_alloca_works=yes
24153 echo "$as_me: failed program was:" >&5
24154 sed 's/^/| /' conftest.$ac_ext >&5
24156 ac_cv_func_alloca_works=no
24159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24160 conftest$ac_exeext conftest.$ac_ext
24162 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24163 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
24165 if test $ac_cv_func_alloca_works = yes; then
24167 cat >>confdefs.h <<\_ACEOF
24168 #define HAVE_ALLOCA 1
24172 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24173 # that cause trouble. Some versions do not even contain alloca or
24174 # contain a buggy version. If you still want to use their alloca,
24175 # use ar to extract alloca.o from them instead of compiling alloca.c.
24177 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
24179 cat >>confdefs.h <<\_ACEOF
24184 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24185 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
24186 if test "${ac_cv_os_cray+set}" = set; then
24187 echo $ECHO_N "(cached) $ECHO_C" >&6
24189 cat >conftest.$ac_ext <<_ACEOF
24192 cat confdefs.h >>conftest.$ac_ext
24193 cat >>conftest.$ac_ext <<_ACEOF
24194 /* end confdefs.h. */
24195 #if defined CRAY && ! defined CRAY2
24202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24203 $EGREP "webecray" >/dev/null 2>&1; then
24211 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24212 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
24213 if test $ac_cv_os_cray = yes; then
24214 for ac_func in _getb67 GETB67 getb67; do
24215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24219 echo $ECHO_N "(cached) $ECHO_C" >&6
24221 cat >conftest.$ac_ext <<_ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h. */
24227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24229 #define $ac_func innocuous_$ac_func
24231 /* System header to define __stub macros and hopefully few prototypes,
24232 which can conflict with char $ac_func (); below.
24233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24234 <limits.h> exists even on freestanding compilers. */
24237 # include <limits.h>
24239 # include <assert.h>
24244 /* Override any GCC internal prototype to avoid an error.
24245 Use char because int might match the return type of a GCC
24246 builtin and then its argument prototype would still apply. */
24251 /* The GNU C library defines this for functions which it implements
24252 to always fail with ENOSYS. Some functions are actually named
24253 something starting with __ and the normal name is an alias. */
24254 #if defined __stub_$ac_func || defined __stub___$ac_func
24261 return $ac_func ();
24266 rm -f conftest.$ac_objext conftest$ac_exeext
24267 if { (ac_try="$ac_link"
24268 case "(($ac_try" in
24269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24270 *) ac_try_echo=$ac_try;;
24272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24273 (eval "$ac_link") 2>conftest.er1
24275 grep -v '^ *+' conftest.er1 >conftest.err
24277 cat conftest.err >&5
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); } && {
24280 test -z "$ac_c_werror_flag" ||
24281 test ! -s conftest.err
24282 } && test -s conftest$ac_exeext &&
24283 $as_test_x conftest$ac_exeext; then
24284 eval "$as_ac_var=yes"
24286 echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24289 eval "$as_ac_var=no"
24292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24293 conftest$ac_exeext conftest.$ac_ext
24295 ac_res=`eval echo '${'$as_ac_var'}'`
24296 { echo "$as_me:$LINENO: result: $ac_res" >&5
24297 echo "${ECHO_T}$ac_res" >&6; }
24298 if test `eval echo '${'$as_ac_var'}'` = yes; then
24300 cat >>confdefs.h <<_ACEOF
24301 #define CRAY_STACKSEG_END $ac_func
24310 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
24311 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
24312 if test "${ac_cv_c_stack_direction+set}" = set; then
24313 echo $ECHO_N "(cached) $ECHO_C" >&6
24315 if test "$cross_compiling" = yes; then
24316 ac_cv_c_stack_direction=0
24318 cat >conftest.$ac_ext <<_ACEOF
24321 cat confdefs.h >>conftest.$ac_ext
24322 cat >>conftest.$ac_ext <<_ACEOF
24323 /* end confdefs.h. */
24324 $ac_includes_default
24326 find_stack_direction ()
24328 static char *addr = 0;
24333 return find_stack_direction ();
24336 return (&dummy > addr) ? 1 : -1;
24342 return find_stack_direction () < 0;
24345 rm -f conftest$ac_exeext
24346 if { (ac_try="$ac_link"
24347 case "(($ac_try" in
24348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349 *) ac_try_echo=$ac_try;;
24351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24352 (eval "$ac_link") 2>&5
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24356 { (case "(($ac_try" in
24357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24358 *) ac_try_echo=$ac_try;;
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361 (eval "$ac_try") 2>&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; }; then
24365 ac_cv_c_stack_direction=1
24367 echo "$as_me: program exited with status $ac_status" >&5
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24371 ( exit $ac_status )
24372 ac_cv_c_stack_direction=-1
24374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24379 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
24380 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
24382 cat >>confdefs.h <<_ACEOF
24383 #define STACK_DIRECTION $ac_cv_c_stack_direction
24389 { echo "$as_me:$LINENO: checking for function prototypes" >&5
24390 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
24391 if test "$ac_cv_prog_cc_c89" != no; then
24392 { echo "$as_me:$LINENO: result: yes" >&5
24393 echo "${ECHO_T}yes" >&6; }
24395 cat >>confdefs.h <<\_ACEOF
24396 #define PROTOTYPES 1
24400 cat >>confdefs.h <<\_ACEOF
24401 #define __PROTOTYPES 1
24405 { echo "$as_me:$LINENO: result: no" >&5
24406 echo "${ECHO_T}no" >&6; }
24409 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
24410 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
24411 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
24412 echo $ECHO_N "(cached) $ECHO_C" >&6
24414 ac_cv_func_setvbuf_reversed=no
24415 cat >conftest.$ac_ext <<_ACEOF
24418 cat confdefs.h >>conftest.$ac_ext
24419 cat >>conftest.$ac_ext <<_ACEOF
24420 /* end confdefs.h. */
24423 int (setvbuf) (FILE *, int, char *, size_t);
24428 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
24433 rm -f conftest.$ac_objext conftest$ac_exeext
24434 if { (ac_try="$ac_link"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24440 (eval "$ac_link") 2>conftest.er1
24442 grep -v '^ *+' conftest.er1 >conftest.err
24444 cat conftest.err >&5
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); } && {
24447 test -z "$ac_c_werror_flag" ||
24448 test ! -s conftest.err
24449 } && test -s conftest$ac_exeext &&
24450 $as_test_x conftest$ac_exeext; then
24451 cat >conftest.$ac_ext <<_ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24459 int (setvbuf) (FILE *, int, char *, size_t);
24464 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
24469 rm -f conftest.$ac_objext conftest$ac_exeext
24470 if { (ac_try="$ac_link"
24471 case "(($ac_try" in
24472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24473 *) ac_try_echo=$ac_try;;
24475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24476 (eval "$ac_link") 2>conftest.er1
24478 grep -v '^ *+' conftest.er1 >conftest.err
24480 cat conftest.err >&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); } && {
24483 test -z "$ac_c_werror_flag" ||
24484 test ! -s conftest.err
24485 } && test -s conftest$ac_exeext &&
24486 $as_test_x conftest$ac_exeext; then
24487 # It compiles and links either way, so it must not be declared
24488 # with a prototype and most likely this is a K&R C compiler.
24490 if test "$cross_compiling" = yes; then
24491 : # Assume setvbuf is not reversed when cross-compiling.
24493 cat >conftest.$ac_ext <<_ACEOF
24496 cat confdefs.h >>conftest.$ac_ext
24497 cat >>conftest.$ac_ext <<_ACEOF
24498 /* end confdefs.h. */
24499 $ac_includes_default
24503 /* This call has the arguments reversed.
24504 A reversed system may check and see that the address of buf
24505 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
24507 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
24510 return 0; /* Non-reversed systems SEGV here. */
24515 rm -f conftest$ac_exeext
24516 if { (ac_try="$ac_link"
24517 case "(($ac_try" in
24518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519 *) ac_try_echo=$ac_try;;
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522 (eval "$ac_link") 2>&5
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24526 { (case "(($ac_try" in
24527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24528 *) ac_try_echo=$ac_try;;
24530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24531 (eval "$ac_try") 2>&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); }; }; then
24535 ac_cv_func_setvbuf_reversed=yes
24537 echo "$as_me: program exited with status $ac_status" >&5
24538 echo "$as_me: failed program was:" >&5
24539 sed 's/^/| /' conftest.$ac_ext >&5
24542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24546 ac_cv_func_setvbuf_reversed=yes
24548 echo "$as_me: failed program was:" >&5
24549 sed 's/^/| /' conftest.$ac_ext >&5
24554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24555 conftest$ac_exeext conftest.$ac_ext
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24564 conftest$ac_exeext conftest.$ac_ext
24566 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
24567 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
24568 if test $ac_cv_func_setvbuf_reversed = yes; then
24570 cat >>confdefs.h <<\_ACEOF
24571 #define SETVBUF_REVERSED 1
24577 for ac_func in vprintf
24579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24585 cat >conftest.$ac_ext <<_ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24593 #define $ac_func innocuous_$ac_func
24595 /* System header to define __stub macros and hopefully few prototypes,
24596 which can conflict with char $ac_func (); below.
24597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24598 <limits.h> exists even on freestanding compilers. */
24601 # include <limits.h>
24603 # include <assert.h>
24608 /* Override any GCC internal prototype to avoid an error.
24609 Use char because int might match the return type of a GCC
24610 builtin and then its argument prototype would still apply. */
24615 /* The GNU C library defines this for functions which it implements
24616 to always fail with ENOSYS. Some functions are actually named
24617 something starting with __ and the normal name is an alias. */
24618 #if defined __stub_$ac_func || defined __stub___$ac_func
24625 return $ac_func ();
24630 rm -f conftest.$ac_objext conftest$ac_exeext
24631 if { (ac_try="$ac_link"
24632 case "(($ac_try" in
24633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24634 *) ac_try_echo=$ac_try;;
24636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24637 (eval "$ac_link") 2>conftest.er1
24639 grep -v '^ *+' conftest.er1 >conftest.err
24641 cat conftest.err >&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); } && {
24644 test -z "$ac_c_werror_flag" ||
24645 test ! -s conftest.err
24646 } && test -s conftest$ac_exeext &&
24647 $as_test_x conftest$ac_exeext; then
24648 eval "$as_ac_var=yes"
24650 echo "$as_me: failed program was:" >&5
24651 sed 's/^/| /' conftest.$ac_ext >&5
24653 eval "$as_ac_var=no"
24656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24657 conftest$ac_exeext conftest.$ac_ext
24659 ac_res=`eval echo '${'$as_ac_var'}'`
24660 { echo "$as_me:$LINENO: result: $ac_res" >&5
24661 echo "${ECHO_T}$ac_res" >&6; }
24662 if test `eval echo '${'$as_ac_var'}'` = yes; then
24663 cat >>confdefs.h <<_ACEOF
24664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24667 { echo "$as_me:$LINENO: checking for _doprnt" >&5
24668 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
24669 if test "${ac_cv_func__doprnt+set}" = set; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 cat >conftest.$ac_ext <<_ACEOF
24675 cat confdefs.h >>conftest.$ac_ext
24676 cat >>conftest.$ac_ext <<_ACEOF
24677 /* end confdefs.h. */
24678 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
24679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24680 #define _doprnt innocuous__doprnt
24682 /* System header to define __stub macros and hopefully few prototypes,
24683 which can conflict with char _doprnt (); below.
24684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24685 <limits.h> exists even on freestanding compilers. */
24688 # include <limits.h>
24690 # include <assert.h>
24695 /* Override any GCC internal prototype to avoid an error.
24696 Use char because int might match the return type of a GCC
24697 builtin and then its argument prototype would still apply. */
24702 /* The GNU C library defines this for functions which it implements
24703 to always fail with ENOSYS. Some functions are actually named
24704 something starting with __ and the normal name is an alias. */
24705 #if defined __stub__doprnt || defined __stub____doprnt
24717 rm -f conftest.$ac_objext conftest$ac_exeext
24718 if { (ac_try="$ac_link"
24719 case "(($ac_try" in
24720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721 *) ac_try_echo=$ac_try;;
24723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24724 (eval "$ac_link") 2>conftest.er1
24726 grep -v '^ *+' conftest.er1 >conftest.err
24728 cat conftest.err >&5
24729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24730 (exit $ac_status); } && {
24731 test -z "$ac_c_werror_flag" ||
24732 test ! -s conftest.err
24733 } && test -s conftest$ac_exeext &&
24734 $as_test_x conftest$ac_exeext; then
24735 ac_cv_func__doprnt=yes
24737 echo "$as_me: failed program was:" >&5
24738 sed 's/^/| /' conftest.$ac_ext >&5
24740 ac_cv_func__doprnt=no
24743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24744 conftest$ac_exeext conftest.$ac_ext
24746 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
24747 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
24748 if test $ac_cv_func__doprnt = yes; then
24750 cat >>confdefs.h <<\_ACEOF
24751 #define HAVE_DOPRNT 1
24768 for ac_func in mmap select socket strcspn strerror strspn getpagesize sysconf
24770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24776 cat >conftest.$ac_ext <<_ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h. */
24782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24784 #define $ac_func innocuous_$ac_func
24786 /* System header to define __stub macros and hopefully few prototypes,
24787 which can conflict with char $ac_func (); below.
24788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24789 <limits.h> exists even on freestanding compilers. */
24792 # include <limits.h>
24794 # include <assert.h>
24799 /* Override any GCC internal prototype to avoid an error.
24800 Use char because int might match the return type of a GCC
24801 builtin and then its argument prototype would still apply. */
24806 /* The GNU C library defines this for functions which it implements
24807 to always fail with ENOSYS. Some functions are actually named
24808 something starting with __ and the normal name is an alias. */
24809 #if defined __stub_$ac_func || defined __stub___$ac_func
24816 return $ac_func ();
24821 rm -f conftest.$ac_objext conftest$ac_exeext
24822 if { (ac_try="$ac_link"
24823 case "(($ac_try" in
24824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24825 *) ac_try_echo=$ac_try;;
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828 (eval "$ac_link") 2>conftest.er1
24830 grep -v '^ *+' conftest.er1 >conftest.err
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest$ac_exeext &&
24838 $as_test_x conftest$ac_exeext; then
24839 eval "$as_ac_var=yes"
24841 echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24844 eval "$as_ac_var=no"
24847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24848 conftest$ac_exeext conftest.$ac_ext
24850 ac_res=`eval echo '${'$as_ac_var'}'`
24851 { echo "$as_me:$LINENO: result: $ac_res" >&5
24852 echo "${ECHO_T}$ac_res" >&6; }
24853 if test `eval echo '${'$as_ac_var'}'` = yes; then
24854 cat >>confdefs.h <<_ACEOF
24855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24865 for ac_func in snprintf gettimeofday nanosleep sched_setscheduler
24867 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24868 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24869 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24870 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24871 echo $ECHO_N "(cached) $ECHO_C" >&6
24873 cat >conftest.$ac_ext <<_ACEOF
24876 cat confdefs.h >>conftest.$ac_ext
24877 cat >>conftest.$ac_ext <<_ACEOF
24878 /* end confdefs.h. */
24879 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24881 #define $ac_func innocuous_$ac_func
24883 /* System header to define __stub macros and hopefully few prototypes,
24884 which can conflict with char $ac_func (); below.
24885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24886 <limits.h> exists even on freestanding compilers. */
24889 # include <limits.h>
24891 # include <assert.h>
24896 /* Override any GCC internal prototype to avoid an error.
24897 Use char because int might match the return type of a GCC
24898 builtin and then its argument prototype would still apply. */
24903 /* The GNU C library defines this for functions which it implements
24904 to always fail with ENOSYS. Some functions are actually named
24905 something starting with __ and the normal name is an alias. */
24906 #if defined __stub_$ac_func || defined __stub___$ac_func
24913 return $ac_func ();
24918 rm -f conftest.$ac_objext conftest$ac_exeext
24919 if { (ac_try="$ac_link"
24920 case "(($ac_try" in
24921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922 *) ac_try_echo=$ac_try;;
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925 (eval "$ac_link") 2>conftest.er1
24927 grep -v '^ *+' conftest.er1 >conftest.err
24929 cat conftest.err >&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } && {
24932 test -z "$ac_c_werror_flag" ||
24933 test ! -s conftest.err
24934 } && test -s conftest$ac_exeext &&
24935 $as_test_x conftest$ac_exeext; then
24936 eval "$as_ac_var=yes"
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24941 eval "$as_ac_var=no"
24944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24945 conftest$ac_exeext conftest.$ac_ext
24947 ac_res=`eval echo '${'$as_ac_var'}'`
24948 { echo "$as_me:$LINENO: result: $ac_res" >&5
24949 echo "${ECHO_T}$ac_res" >&6; }
24950 if test `eval echo '${'$as_ac_var'}'` = yes; then
24951 cat >>confdefs.h <<_ACEOF
24952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24960 for ac_func in modf sqrt
24962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24963 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24966 echo $ECHO_N "(cached) $ECHO_C" >&6
24968 cat >conftest.$ac_ext <<_ACEOF
24971 cat confdefs.h >>conftest.$ac_ext
24972 cat >>conftest.$ac_ext <<_ACEOF
24973 /* end confdefs.h. */
24974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24976 #define $ac_func innocuous_$ac_func
24978 /* System header to define __stub macros and hopefully few prototypes,
24979 which can conflict with char $ac_func (); below.
24980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24981 <limits.h> exists even on freestanding compilers. */
24984 # include <limits.h>
24986 # include <assert.h>
24991 /* Override any GCC internal prototype to avoid an error.
24992 Use char because int might match the return type of a GCC
24993 builtin and then its argument prototype would still apply. */
24998 /* The GNU C library defines this for functions which it implements
24999 to always fail with ENOSYS. Some functions are actually named
25000 something starting with __ and the normal name is an alias. */
25001 #if defined __stub_$ac_func || defined __stub___$ac_func
25008 return $ac_func ();
25013 rm -f conftest.$ac_objext conftest$ac_exeext
25014 if { (ac_try="$ac_link"
25015 case "(($ac_try" in
25016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25017 *) ac_try_echo=$ac_try;;
25019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25020 (eval "$ac_link") 2>conftest.er1
25022 grep -v '^ *+' conftest.er1 >conftest.err
25024 cat conftest.err >&5
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); } && {
25027 test -z "$ac_c_werror_flag" ||
25028 test ! -s conftest.err
25029 } && test -s conftest$ac_exeext &&
25030 $as_test_x conftest$ac_exeext; then
25031 eval "$as_ac_var=yes"
25033 echo "$as_me: failed program was:" >&5
25034 sed 's/^/| /' conftest.$ac_ext >&5
25036 eval "$as_ac_var=no"
25039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25040 conftest$ac_exeext conftest.$ac_ext
25042 ac_res=`eval echo '${'$as_ac_var'}'`
25043 { echo "$as_me:$LINENO: result: $ac_res" >&5
25044 echo "${ECHO_T}$ac_res" >&6; }
25045 if test `eval echo '${'$as_ac_var'}'` = yes; then
25046 cat >>confdefs.h <<_ACEOF
25047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25054 { echo "$as_me:$LINENO: checking for sincos in -lm" >&5
25055 echo $ECHO_N "checking for sincos in -lm... $ECHO_C" >&6; }
25056 if test "${ac_cv_lib_m_sincos+set}" = set; then
25057 echo $ECHO_N "(cached) $ECHO_C" >&6
25059 ac_check_lib_save_LIBS=$LIBS
25061 cat >conftest.$ac_ext <<_ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h. */
25068 /* Override any GCC internal prototype to avoid an error.
25069 Use char because int might match the return type of a GCC
25070 builtin and then its argument prototype would still apply. */
25083 rm -f conftest.$ac_objext conftest$ac_exeext
25084 if { (ac_try="$ac_link"
25085 case "(($ac_try" in
25086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087 *) ac_try_echo=$ac_try;;
25089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090 (eval "$ac_link") 2>conftest.er1
25092 grep -v '^ *+' conftest.er1 >conftest.err
25094 cat conftest.err >&5
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); } && {
25097 test -z "$ac_c_werror_flag" ||
25098 test ! -s conftest.err
25099 } && test -s conftest$ac_exeext &&
25100 $as_test_x conftest$ac_exeext; then
25101 ac_cv_lib_m_sincos=yes
25103 echo "$as_me: failed program was:" >&5
25104 sed 's/^/| /' conftest.$ac_ext >&5
25106 ac_cv_lib_m_sincos=no
25109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25110 conftest$ac_exeext conftest.$ac_ext
25111 LIBS=$ac_check_lib_save_LIBS
25113 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincos" >&5
25114 echo "${ECHO_T}$ac_cv_lib_m_sincos" >&6; }
25115 if test $ac_cv_lib_m_sincos = yes; then
25117 cat >>confdefs.h <<\_ACEOF
25118 #define HAVE_SINCOS 1
25123 { echo "$as_me:$LINENO: checking for sincosf in -lm" >&5
25124 echo $ECHO_N "checking for sincosf in -lm... $ECHO_C" >&6; }
25125 if test "${ac_cv_lib_m_sincosf+set}" = set; then
25126 echo $ECHO_N "(cached) $ECHO_C" >&6
25128 ac_check_lib_save_LIBS=$LIBS
25130 cat >conftest.$ac_ext <<_ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h. */
25137 /* Override any GCC internal prototype to avoid an error.
25138 Use char because int might match the return type of a GCC
25139 builtin and then its argument prototype would still apply. */
25152 rm -f conftest.$ac_objext conftest$ac_exeext
25153 if { (ac_try="$ac_link"
25154 case "(($ac_try" in
25155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25156 *) ac_try_echo=$ac_try;;
25158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25159 (eval "$ac_link") 2>conftest.er1
25161 grep -v '^ *+' conftest.er1 >conftest.err
25163 cat conftest.err >&5
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } && {
25166 test -z "$ac_c_werror_flag" ||
25167 test ! -s conftest.err
25168 } && test -s conftest$ac_exeext &&
25169 $as_test_x conftest$ac_exeext; then
25170 ac_cv_lib_m_sincosf=yes
25172 echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25175 ac_cv_lib_m_sincosf=no
25178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25179 conftest$ac_exeext conftest.$ac_ext
25180 LIBS=$ac_check_lib_save_LIBS
25182 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sincosf" >&5
25183 echo "${ECHO_T}$ac_cv_lib_m_sincosf" >&6; }
25184 if test $ac_cv_lib_m_sincosf = yes; then
25186 cat >>confdefs.h <<\_ACEOF
25187 #define HAVE_SINCOSF 1
25192 { echo "$as_me:$LINENO: checking for sinf in -lm" >&5
25193 echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6; }
25194 if test "${ac_cv_lib_m_sinf+set}" = set; then
25195 echo $ECHO_N "(cached) $ECHO_C" >&6
25197 ac_check_lib_save_LIBS=$LIBS
25199 cat >conftest.$ac_ext <<_ACEOF
25202 cat confdefs.h >>conftest.$ac_ext
25203 cat >>conftest.$ac_ext <<_ACEOF
25204 /* end confdefs.h. */
25206 /* Override any GCC internal prototype to avoid an error.
25207 Use char because int might match the return type of a GCC
25208 builtin and then its argument prototype would still apply. */
25221 rm -f conftest.$ac_objext conftest$ac_exeext
25222 if { (ac_try="$ac_link"
25223 case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228 (eval "$ac_link") 2>conftest.er1
25230 grep -v '^ *+' conftest.er1 >conftest.err
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } && {
25235 test -z "$ac_c_werror_flag" ||
25236 test ! -s conftest.err
25237 } && test -s conftest$ac_exeext &&
25238 $as_test_x conftest$ac_exeext; then
25239 ac_cv_lib_m_sinf=yes
25241 echo "$as_me: failed program was:" >&5
25242 sed 's/^/| /' conftest.$ac_ext >&5
25244 ac_cv_lib_m_sinf=no
25247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25248 conftest$ac_exeext conftest.$ac_ext
25249 LIBS=$ac_check_lib_save_LIBS
25251 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5
25252 echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6; }
25253 if test $ac_cv_lib_m_sinf = yes; then
25255 cat >>confdefs.h <<\_ACEOF
25256 #define HAVE_SINF 1
25261 { echo "$as_me:$LINENO: checking for cosf in -lm" >&5
25262 echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6; }
25263 if test "${ac_cv_lib_m_cosf+set}" = set; then
25264 echo $ECHO_N "(cached) $ECHO_C" >&6
25266 ac_check_lib_save_LIBS=$LIBS
25268 cat >conftest.$ac_ext <<_ACEOF
25271 cat confdefs.h >>conftest.$ac_ext
25272 cat >>conftest.$ac_ext <<_ACEOF
25273 /* end confdefs.h. */
25275 /* Override any GCC internal prototype to avoid an error.
25276 Use char because int might match the return type of a GCC
25277 builtin and then its argument prototype would still apply. */
25290 rm -f conftest.$ac_objext conftest$ac_exeext
25291 if { (ac_try="$ac_link"
25292 case "(($ac_try" in
25293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294 *) ac_try_echo=$ac_try;;
25296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297 (eval "$ac_link") 2>conftest.er1
25299 grep -v '^ *+' conftest.er1 >conftest.err
25301 cat conftest.err >&5
25302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303 (exit $ac_status); } && {
25304 test -z "$ac_c_werror_flag" ||
25305 test ! -s conftest.err
25306 } && test -s conftest$ac_exeext &&
25307 $as_test_x conftest$ac_exeext; then
25308 ac_cv_lib_m_cosf=yes
25310 echo "$as_me: failed program was:" >&5
25311 sed 's/^/| /' conftest.$ac_ext >&5
25313 ac_cv_lib_m_cosf=no
25316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25317 conftest$ac_exeext conftest.$ac_ext
25318 LIBS=$ac_check_lib_save_LIBS
25320 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5
25321 echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6; }
25322 if test $ac_cv_lib_m_cosf = yes; then
25324 cat >>confdefs.h <<\_ACEOF
25325 #define HAVE_COSF 1
25330 { echo "$as_me:$LINENO: checking for trunc in -lm" >&5
25331 echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6; }
25332 if test "${ac_cv_lib_m_trunc+set}" = set; then
25333 echo $ECHO_N "(cached) $ECHO_C" >&6
25335 ac_check_lib_save_LIBS=$LIBS
25337 cat >conftest.$ac_ext <<_ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25344 /* Override any GCC internal prototype to avoid an error.
25345 Use char because int might match the return type of a GCC
25346 builtin and then its argument prototype would still apply. */
25359 rm -f conftest.$ac_objext conftest$ac_exeext
25360 if { (ac_try="$ac_link"
25361 case "(($ac_try" in
25362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25363 *) ac_try_echo=$ac_try;;
25365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25366 (eval "$ac_link") 2>conftest.er1
25368 grep -v '^ *+' conftest.er1 >conftest.err
25370 cat conftest.err >&5
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); } && {
25373 test -z "$ac_c_werror_flag" ||
25374 test ! -s conftest.err
25375 } && test -s conftest$ac_exeext &&
25376 $as_test_x conftest$ac_exeext; then
25377 ac_cv_lib_m_trunc=yes
25379 echo "$as_me: failed program was:" >&5
25380 sed 's/^/| /' conftest.$ac_ext >&5
25382 ac_cv_lib_m_trunc=no
25385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25386 conftest$ac_exeext conftest.$ac_ext
25387 LIBS=$ac_check_lib_save_LIBS
25389 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5
25390 echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6; }
25391 if test $ac_cv_lib_m_trunc = yes; then
25393 cat >>confdefs.h <<\_ACEOF
25394 #define HAVE_TRUNC 1
25399 { echo "$as_me:$LINENO: checking for exp10 in -lm" >&5
25400 echo $ECHO_N "checking for exp10 in -lm... $ECHO_C" >&6; }
25401 if test "${ac_cv_lib_m_exp10+set}" = set; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25404 ac_check_lib_save_LIBS=$LIBS
25406 cat >conftest.$ac_ext <<_ACEOF
25409 cat confdefs.h >>conftest.$ac_ext
25410 cat >>conftest.$ac_ext <<_ACEOF
25411 /* end confdefs.h. */
25413 /* Override any GCC internal prototype to avoid an error.
25414 Use char because int might match the return type of a GCC
25415 builtin and then its argument prototype would still apply. */
25428 rm -f conftest.$ac_objext conftest$ac_exeext
25429 if { (ac_try="$ac_link"
25430 case "(($ac_try" in
25431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432 *) ac_try_echo=$ac_try;;
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435 (eval "$ac_link") 2>conftest.er1
25437 grep -v '^ *+' conftest.er1 >conftest.err
25439 cat conftest.err >&5
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); } && {
25442 test -z "$ac_c_werror_flag" ||
25443 test ! -s conftest.err
25444 } && test -s conftest$ac_exeext &&
25445 $as_test_x conftest$ac_exeext; then
25446 ac_cv_lib_m_exp10=yes
25448 echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_cv_lib_m_exp10=no
25454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25455 conftest$ac_exeext conftest.$ac_ext
25456 LIBS=$ac_check_lib_save_LIBS
25458 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp10" >&5
25459 echo "${ECHO_T}$ac_cv_lib_m_exp10" >&6; }
25460 if test $ac_cv_lib_m_exp10 = yes; then
25462 cat >>confdefs.h <<\_ACEOF
25463 #define HAVE_EXP10 1
25476 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
25477 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
25478 if test "${ac_cv_search_shm_open+set}" = set; then
25479 echo $ECHO_N "(cached) $ECHO_C" >&6
25481 ac_func_search_save_LIBS=$LIBS
25482 cat >conftest.$ac_ext <<_ACEOF
25485 cat confdefs.h >>conftest.$ac_ext
25486 cat >>conftest.$ac_ext <<_ACEOF
25487 /* end confdefs.h. */
25489 /* Override any GCC internal prototype to avoid an error.
25490 Use char because int might match the return type of a GCC
25491 builtin and then its argument prototype would still apply. */
25499 return shm_open ();
25504 for ac_lib in '' rt; do
25505 if test -z "$ac_lib"; then
25506 ac_res="none required"
25509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25511 rm -f conftest.$ac_objext conftest$ac_exeext
25512 if { (ac_try="$ac_link"
25513 case "(($ac_try" in
25514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25515 *) ac_try_echo=$ac_try;;
25517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25518 (eval "$ac_link") 2>conftest.er1
25520 grep -v '^ *+' conftest.er1 >conftest.err
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } && {
25525 test -z "$ac_c_werror_flag" ||
25526 test ! -s conftest.err
25527 } && test -s conftest$ac_exeext &&
25528 $as_test_x conftest$ac_exeext; then
25529 ac_cv_search_shm_open=$ac_res
25531 echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25539 if test "${ac_cv_search_shm_open+set}" = set; then
25543 if test "${ac_cv_search_shm_open+set}" = set; then
25546 ac_cv_search_shm_open=no
25548 rm conftest.$ac_ext
25549 LIBS=$ac_func_search_save_LIBS
25551 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
25552 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
25553 ac_res=$ac_cv_search_shm_open
25554 if test "$ac_res" != no; then
25555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25556 SHM_OPEN_LIBS="$LIBS"
25560 for ac_func in shm_open
25562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25566 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 cat >conftest.$ac_ext <<_ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25576 #define $ac_func innocuous_$ac_func
25578 /* System header to define __stub macros and hopefully few prototypes,
25579 which can conflict with char $ac_func (); below.
25580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25581 <limits.h> exists even on freestanding compilers. */
25584 # include <limits.h>
25586 # include <assert.h>
25591 /* Override any GCC internal prototype to avoid an error.
25592 Use char because int might match the return type of a GCC
25593 builtin and then its argument prototype would still apply. */
25598 /* The GNU C library defines this for functions which it implements
25599 to always fail with ENOSYS. Some functions are actually named
25600 something starting with __ and the normal name is an alias. */
25601 #if defined __stub_$ac_func || defined __stub___$ac_func
25608 return $ac_func ();
25613 rm -f conftest.$ac_objext conftest$ac_exeext
25614 if { (ac_try="$ac_link"
25615 case "(($ac_try" in
25616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617 *) ac_try_echo=$ac_try;;
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620 (eval "$ac_link") 2>conftest.er1
25622 grep -v '^ *+' conftest.er1 >conftest.err
25624 cat conftest.err >&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); } && {
25627 test -z "$ac_c_werror_flag" ||
25628 test ! -s conftest.err
25629 } && test -s conftest$ac_exeext &&
25630 $as_test_x conftest$ac_exeext; then
25631 eval "$as_ac_var=yes"
25633 echo "$as_me: failed program was:" >&5
25634 sed 's/^/| /' conftest.$ac_ext >&5
25636 eval "$as_ac_var=no"
25639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25640 conftest$ac_exeext conftest.$ac_ext
25642 ac_res=`eval echo '${'$as_ac_var'}'`
25643 { echo "$as_me:$LINENO: result: $ac_res" >&5
25644 echo "${ECHO_T}$ac_res" >&6; }
25645 if test `eval echo '${'$as_ac_var'}'` = yes; then
25646 cat >>confdefs.h <<_ACEOF
25647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25658 # on Mingw32 extra LDFLAGS are required to ease global variable linking
25659 LIBGNURADIO_CORE_EXTRA_LDFLAGS=""
25661 { echo "$as_me:$LINENO: checking whether $LD accepts --enable-runtime-pseudo-reloc" >&5
25662 echo $ECHO_N "checking whether $LD accepts --enable-runtime-pseudo-reloc... $ECHO_C" >&6; }
25663 if ${LD} --enable-runtime-pseudo-reloc --version >/dev/null 2>&1
25665 # libtool requires the quotes
25666 LIBGNURADIO_CORE_EXTRA_LDFLAGS="\"-Wl,--enable-runtime-pseudo-reloc\""
25667 { echo "$as_me:$LINENO: result: yes" >&5
25668 echo "${ECHO_T}yes" >&6; }
25670 { echo "$as_me:$LINENO: result: no" >&5
25671 echo "${ECHO_T}no" >&6; }
25678 { echo "$as_me:$LINENO: checking for CreateFileMapping function" >&5
25679 echo $ECHO_N "checking for CreateFileMapping function... $ECHO_C" >&6; }
25680 cat >conftest.$ac_ext <<_ACEOF
25682 #include <windows.h>
25683 int main (int argc, char **argv)
25687 char seg_name[1024];
25688 handle = CreateFileMapping(
25689 INVALID_HANDLE_VALUE, // use paging file
25690 NULL, // default security
25691 PAGE_READWRITE, // read/write access
25692 0, // max. object size
25693 size, // buffer size
25694 seg_name); // name of mapping object
25699 rm -f conftest.$ac_objext
25700 if { (ac_try="$ac_compile"
25701 case "(($ac_try" in
25702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703 *) ac_try_echo=$ac_try;;
25705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25706 (eval "$ac_compile") 2>conftest.er1
25708 grep -v '^ *+' conftest.er1 >conftest.err
25710 cat conftest.err >&5
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); } && {
25713 test -z "$ac_c_werror_flag" ||
25714 test ! -s conftest.err
25715 } && test -s conftest.$ac_objext; then
25716 HAVE_CREATEFILEMAPPING=yes
25718 cat >>confdefs.h <<\_ACEOF
25719 #define HAVE_CREATEFILEMAPPING 1
25723 echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25726 HAVE_CREATEFILEMAPPING=no
25729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 { echo "$as_me:$LINENO: result: $HAVE_CREATEFILEMAPPING" >&5
25732 echo "${ECHO_T}$HAVE_CREATEFILEMAPPING" >&6; }
25735 if test x$HAVE_CREATEFILEMAPPING = xyes; then
25736 HAVE_CREATEFILEMAPPING_TRUE=
25737 HAVE_CREATEFILEMAPPING_FALSE='#'
25739 HAVE_CREATEFILEMAPPING_TRUE='#'
25740 HAVE_CREATEFILEMAPPING_FALSE=
25750 for ac_header in sys/types.h fcntl.h io.h
25752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25757 echo $ECHO_N "(cached) $ECHO_C" >&6
25759 ac_res=`eval echo '${'$as_ac_Header'}'`
25760 { echo "$as_me:$LINENO: result: $ac_res" >&5
25761 echo "${ECHO_T}$ac_res" >&6; }
25763 # Is the header compilable?
25764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25766 cat >conftest.$ac_ext <<_ACEOF
25769 cat confdefs.h >>conftest.$ac_ext
25770 cat >>conftest.$ac_ext <<_ACEOF
25771 /* end confdefs.h. */
25772 $ac_includes_default
25773 #include <$ac_header>
25775 rm -f conftest.$ac_objext
25776 if { (ac_try="$ac_compile"
25777 case "(($ac_try" in
25778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25779 *) ac_try_echo=$ac_try;;
25781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25782 (eval "$ac_compile") 2>conftest.er1
25784 grep -v '^ *+' conftest.er1 >conftest.err
25786 cat conftest.err >&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } && {
25789 test -z "$ac_c_werror_flag" ||
25790 test ! -s conftest.err
25791 } && test -s conftest.$ac_objext; then
25792 ac_header_compiler=yes
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25797 ac_header_compiler=no
25800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25802 echo "${ECHO_T}$ac_header_compiler" >&6; }
25804 # Is the header present?
25805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25807 cat >conftest.$ac_ext <<_ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25813 #include <$ac_header>
25815 if { (ac_try="$ac_cpp conftest.$ac_ext"
25816 case "(($ac_try" in
25817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25818 *) ac_try_echo=$ac_try;;
25820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25823 grep -v '^ *+' conftest.er1 >conftest.err
25825 cat conftest.err >&5
25826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25827 (exit $ac_status); } >/dev/null && {
25828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25829 test ! -s conftest.err
25831 ac_header_preproc=yes
25833 echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25836 ac_header_preproc=no
25839 rm -f conftest.err conftest.$ac_ext
25840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25841 echo "${ECHO_T}$ac_header_preproc" >&6; }
25843 # So? What about this header?
25844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25850 ac_header_preproc=yes
25853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25873 eval "$as_ac_Header=\$ac_header_preproc"
25875 ac_res=`eval echo '${'$as_ac_Header'}'`
25876 { echo "$as_me:$LINENO: result: $ac_res" >&5
25877 echo "${ECHO_T}$ac_res" >&6; }
25880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25881 cat >>confdefs.h <<_ACEOF
25882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25890 for ac_header in windows.h
25892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25897 echo $ECHO_N "(cached) $ECHO_C" >&6
25899 ac_res=`eval echo '${'$as_ac_Header'}'`
25900 { echo "$as_me:$LINENO: result: $ac_res" >&5
25901 echo "${ECHO_T}$ac_res" >&6; }
25903 # Is the header compilable?
25904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25906 cat >conftest.$ac_ext <<_ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h. */
25912 $ac_includes_default
25913 #include <$ac_header>
25915 rm -f conftest.$ac_objext
25916 if { (ac_try="$ac_compile"
25917 case "(($ac_try" in
25918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25919 *) ac_try_echo=$ac_try;;
25921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25922 (eval "$ac_compile") 2>conftest.er1
25924 grep -v '^ *+' conftest.er1 >conftest.err
25926 cat conftest.err >&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } && {
25929 test -z "$ac_c_werror_flag" ||
25930 test ! -s conftest.err
25931 } && test -s conftest.$ac_objext; then
25932 ac_header_compiler=yes
25934 echo "$as_me: failed program was:" >&5
25935 sed 's/^/| /' conftest.$ac_ext >&5
25937 ac_header_compiler=no
25940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25942 echo "${ECHO_T}$ac_header_compiler" >&6; }
25944 # Is the header present?
25945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25947 cat >conftest.$ac_ext <<_ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h. */
25953 #include <$ac_header>
25955 if { (ac_try="$ac_cpp conftest.$ac_ext"
25956 case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25963 grep -v '^ *+' conftest.er1 >conftest.err
25965 cat conftest.err >&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } >/dev/null && {
25968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25969 test ! -s conftest.err
25971 ac_header_preproc=yes
25973 echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25976 ac_header_preproc=no
25979 rm -f conftest.err conftest.$ac_ext
25980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25981 echo "${ECHO_T}$ac_header_preproc" >&6; }
25983 # So? What about this header?
25984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25990 ac_header_preproc=yes
25993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26011 echo $ECHO_N "(cached) $ECHO_C" >&6
26013 eval "$as_ac_Header=\$ac_header_preproc"
26015 ac_res=`eval echo '${'$as_ac_Header'}'`
26016 { echo "$as_me:$LINENO: result: $ac_res" >&5
26017 echo "${ECHO_T}$ac_res" >&6; }
26020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26021 cat >>confdefs.h <<_ACEOF
26022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26031 for ac_header in winioctl.h winbase.h
26033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26037 echo $ECHO_N "(cached) $ECHO_C" >&6
26039 cat >conftest.$ac_ext <<_ACEOF
26042 cat confdefs.h >>conftest.$ac_ext
26043 cat >>conftest.$ac_ext <<_ACEOF
26044 /* end confdefs.h. */
26047 #include <windows.h>
26051 #include <$ac_header>
26053 rm -f conftest.$ac_objext
26054 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest.$ac_objext; then
26070 eval "$as_ac_Header=yes"
26072 echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26075 eval "$as_ac_Header=no"
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 ac_res=`eval echo '${'$as_ac_Header'}'`
26081 { echo "$as_me:$LINENO: result: $ac_res" >&5
26082 echo "${ECHO_T}$ac_res" >&6; }
26083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26084 cat >>confdefs.h <<_ACEOF
26085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26103 for ac_func in getopt usleep gettimeofday nanosleep rand srand random srandom sleep sigaction
26105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 cat >conftest.$ac_ext <<_ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h. */
26117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26119 #define $ac_func innocuous_$ac_func
26121 /* System header to define __stub macros and hopefully few prototypes,
26122 which can conflict with char $ac_func (); below.
26123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26124 <limits.h> exists even on freestanding compilers. */
26127 # include <limits.h>
26129 # include <assert.h>
26134 /* Override any GCC internal prototype to avoid an error.
26135 Use char because int might match the return type of a GCC
26136 builtin and then its argument prototype would still apply. */
26141 /* The GNU C library defines this for functions which it implements
26142 to always fail with ENOSYS. Some functions are actually named
26143 something starting with __ and the normal name is an alias. */
26144 #if defined __stub_$ac_func || defined __stub___$ac_func
26151 return $ac_func ();
26156 rm -f conftest.$ac_objext conftest$ac_exeext
26157 if { (ac_try="$ac_link"
26158 case "(($ac_try" in
26159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26160 *) ac_try_echo=$ac_try;;
26162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26163 (eval "$ac_link") 2>conftest.er1
26165 grep -v '^ *+' conftest.er1 >conftest.err
26167 cat conftest.err >&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } && {
26170 test -z "$ac_c_werror_flag" ||
26171 test ! -s conftest.err
26172 } && test -s conftest$ac_exeext &&
26173 $as_test_x conftest$ac_exeext; then
26174 eval "$as_ac_var=yes"
26176 echo "$as_me: failed program was:" >&5
26177 sed 's/^/| /' conftest.$ac_ext >&5
26179 eval "$as_ac_var=no"
26182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26183 conftest$ac_exeext conftest.$ac_ext
26185 ac_res=`eval echo '${'$as_ac_var'}'`
26186 { echo "$as_me:$LINENO: result: $ac_res" >&5
26187 echo "${ECHO_T}$ac_res" >&6; }
26188 if test `eval echo '${'$as_ac_var'}'` = yes; then
26189 cat >>confdefs.h <<_ACEOF
26190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26196 { echo "$as_me:$LINENO: checking for struct timezone" >&5
26197 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
26198 if test "${ac_cv_type_struct_timezone+set}" = set; then
26199 echo $ECHO_N "(cached) $ECHO_C" >&6
26201 cat >conftest.$ac_ext <<_ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26208 #if HAVE_SYS_TYPES_H
26209 # include <sys/types.h>
26211 #if TIME_WITH_SYS_TIME
26212 # include <sys/time.h>
26215 # if HAVE_SYS_TIME_H
26216 # include <sys/time.h>
26223 typedef struct timezone ac__type_new_;
26227 if ((ac__type_new_ *) 0)
26229 if (sizeof (ac__type_new_))
26235 rm -f conftest.$ac_objext
26236 if { (ac_try="$ac_compile"
26237 case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_compile") 2>conftest.er1
26244 grep -v '^ *+' conftest.er1 >conftest.err
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest.$ac_objext; then
26252 ac_cv_type_struct_timezone=yes
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26257 ac_cv_type_struct_timezone=no
26260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26262 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timezone" >&5
26263 echo "${ECHO_T}$ac_cv_type_struct_timezone" >&6; }
26264 if test $ac_cv_type_struct_timezone = yes; then
26266 cat >>confdefs.h <<_ACEOF
26267 #define HAVE_STRUCT_TIMEZONE 1
26272 { echo "$as_me:$LINENO: checking for struct timespec" >&5
26273 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
26274 if test "${ac_cv_type_struct_timespec+set}" = set; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 cat >conftest.$ac_ext <<_ACEOF
26280 cat confdefs.h >>conftest.$ac_ext
26281 cat >>conftest.$ac_ext <<_ACEOF
26282 /* end confdefs.h. */
26284 #if HAVE_SYS_TYPES_H
26285 # include <sys/types.h>
26287 #if TIME_WITH_SYS_TIME
26288 # include <sys/time.h>
26291 # if HAVE_SYS_TIME_H
26292 # include <sys/time.h>
26299 typedef struct timespec ac__type_new_;
26303 if ((ac__type_new_ *) 0)
26305 if (sizeof (ac__type_new_))
26311 rm -f conftest.$ac_objext
26312 if { (ac_try="$ac_compile"
26313 case "(($ac_try" in
26314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26315 *) ac_try_echo=$ac_try;;
26317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26318 (eval "$ac_compile") 2>conftest.er1
26320 grep -v '^ *+' conftest.er1 >conftest.err
26322 cat conftest.err >&5
26323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324 (exit $ac_status); } && {
26325 test -z "$ac_c_werror_flag" ||
26326 test ! -s conftest.err
26327 } && test -s conftest.$ac_objext; then
26328 ac_cv_type_struct_timespec=yes
26330 echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26333 ac_cv_type_struct_timespec=no
26336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26338 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
26339 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
26340 if test $ac_cv_type_struct_timespec = yes; then
26342 cat >>confdefs.h <<_ACEOF
26343 #define HAVE_STRUCT_TIMESPEC 1
26348 { echo "$as_me:$LINENO: checking for ssize_t" >&5
26349 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
26350 if test "${ac_cv_type_ssize_t+set}" = set; then
26351 echo $ECHO_N "(cached) $ECHO_C" >&6
26353 cat >conftest.$ac_ext <<_ACEOF
26356 cat confdefs.h >>conftest.$ac_ext
26357 cat >>conftest.$ac_ext <<_ACEOF
26358 /* end confdefs.h. */
26360 #if HAVE_SYS_TYPES_H
26361 # include <sys/types.h>
26363 #if TIME_WITH_SYS_TIME
26364 # include <sys/time.h>
26367 # if HAVE_SYS_TIME_H
26368 # include <sys/time.h>
26375 typedef ssize_t ac__type_new_;
26379 if ((ac__type_new_ *) 0)
26381 if (sizeof (ac__type_new_))
26387 rm -f conftest.$ac_objext
26388 if { (ac_try="$ac_compile"
26389 case "(($ac_try" in
26390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391 *) ac_try_echo=$ac_try;;
26393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26394 (eval "$ac_compile") 2>conftest.er1
26396 grep -v '^ *+' conftest.er1 >conftest.err
26398 cat conftest.err >&5
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); } && {
26401 test -z "$ac_c_werror_flag" ||
26402 test ! -s conftest.err
26403 } && test -s conftest.$ac_objext; then
26404 ac_cv_type_ssize_t=yes
26406 echo "$as_me: failed program was:" >&5
26407 sed 's/^/| /' conftest.$ac_ext >&5
26409 ac_cv_type_ssize_t=no
26412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26414 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26415 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
26416 if test $ac_cv_type_ssize_t = yes; then
26418 cat >>confdefs.h <<_ACEOF
26419 #define HAVE_SSIZE_T 1
26429 for ac_func in getopt usleep gettimeofday
26431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26435 echo $ECHO_N "(cached) $ECHO_C" >&6
26437 cat >conftest.$ac_ext <<_ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h. */
26443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26445 #define $ac_func innocuous_$ac_func
26447 /* System header to define __stub macros and hopefully few prototypes,
26448 which can conflict with char $ac_func (); below.
26449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26450 <limits.h> exists even on freestanding compilers. */
26453 # include <limits.h>
26455 # include <assert.h>
26460 /* Override any GCC internal prototype to avoid an error.
26461 Use char because int might match the return type of a GCC
26462 builtin and then its argument prototype would still apply. */
26467 /* The GNU C library defines this for functions which it implements
26468 to always fail with ENOSYS. Some functions are actually named
26469 something starting with __ and the normal name is an alias. */
26470 #if defined __stub_$ac_func || defined __stub___$ac_func
26477 return $ac_func ();
26482 rm -f conftest.$ac_objext conftest$ac_exeext
26483 if { (ac_try="$ac_link"
26484 case "(($ac_try" in
26485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486 *) ac_try_echo=$ac_try;;
26488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26489 (eval "$ac_link") 2>conftest.er1
26491 grep -v '^ *+' conftest.er1 >conftest.err
26493 cat conftest.err >&5
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); } && {
26496 test -z "$ac_c_werror_flag" ||
26497 test ! -s conftest.err
26498 } && test -s conftest$ac_exeext &&
26499 $as_test_x conftest$ac_exeext; then
26500 eval "$as_ac_var=yes"
26502 echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26505 eval "$as_ac_var=no"
26508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26509 conftest$ac_exeext conftest.$ac_ext
26511 ac_res=`eval echo '${'$as_ac_var'}'`
26512 { echo "$as_me:$LINENO: result: $ac_res" >&5
26513 echo "${ECHO_T}$ac_res" >&6; }
26514 if test `eval echo '${'$as_ac_var'}'` = yes; then
26515 cat >>confdefs.h <<_ACEOF
26516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26520 case " $LIBOBJS " in
26521 *" $ac_func.$ac_objext "* ) ;;
26522 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
26532 { echo "$as_me:$LINENO: checking for Sleep" >&5
26533 echo $ECHO_N "checking for Sleep... $ECHO_C" >&6; }
26534 cat >conftest.$ac_ext <<_ACEOF
26537 cat confdefs.h >>conftest.$ac_ext
26538 cat >>conftest.$ac_ext <<_ACEOF
26539 /* end confdefs.h. */
26540 #include <windows.h>
26541 #include <winbase.h>
26551 rm -f conftest.$ac_objext conftest$ac_exeext
26552 if { (ac_try="$ac_link"
26553 case "(($ac_try" in
26554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555 *) ac_try_echo=$ac_try;;
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558 (eval "$ac_link") 2>conftest.er1
26560 grep -v '^ *+' conftest.er1 >conftest.err
26562 cat conftest.err >&5
26563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564 (exit $ac_status); } && {
26565 test -z "$ac_c_werror_flag" ||
26566 test ! -s conftest.err
26567 } && test -s conftest$ac_exeext &&
26568 $as_test_x conftest$ac_exeext; then
26570 cat >>confdefs.h <<\_ACEOF
26571 #define HAVE_SSLEEP 1
26574 { echo "$as_me:$LINENO: result: yes" >&5
26575 echo "${ECHO_T}yes" >&6; }
26577 echo "$as_me: failed program was:" >&5
26578 sed 's/^/| /' conftest.$ac_ext >&5
26580 { echo "$as_me:$LINENO: result: no" >&5
26581 echo "${ECHO_T}no" >&6; }
26585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26586 conftest$ac_exeext conftest.$ac_ext
26588 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
26589 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
26590 cat >conftest.$ac_ext <<_ACEOF
26593 cat confdefs.h >>conftest.$ac_ext
26594 cat >>conftest.$ac_ext <<_ACEOF
26595 /* end confdefs.h. */
26596 #include <sys/types.h>
26597 #include <sys/stat.h>
26609 rm -f conftest.$ac_objext
26610 if { (ac_try="$ac_compile"
26611 case "(($ac_try" in
26612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26613 *) ac_try_echo=$ac_try;;
26615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26616 (eval "$ac_compile") 2>conftest.er1
26618 grep -v '^ *+' conftest.er1 >conftest.err
26620 cat conftest.err >&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } && {
26623 test -z "$ac_c_werror_flag" ||
26624 test ! -s conftest.err
26625 } && test -s conftest.$ac_objext; then
26626 { echo "$as_me:$LINENO: result: yes" >&5
26627 echo "${ECHO_T}yes" >&6; }
26629 cat >>confdefs.h <<\_ACEOF
26630 #define MKDIR_TAKES_ONE_ARG
26634 echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26637 { echo "$as_me:$LINENO: result: no" >&5
26638 echo "${ECHO_T}no" >&6; }
26642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26650 # Extract the first word of "dot", so it can be a program name with args.
26651 set dummy dot; ac_word=$2
26652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26654 if test "${ac_cv_prog_HAVE_DOT+set}" = set; then
26655 echo $ECHO_N "(cached) $ECHO_C" >&6
26657 if test -n "$HAVE_DOT"; then
26658 ac_cv_prog_HAVE_DOT="$HAVE_DOT" # Let the user override the test.
26660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26661 for as_dir in $PATH
26664 test -z "$as_dir" && as_dir=.
26665 for ac_exec_ext in '' $ac_executable_extensions; do
26666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26667 ac_cv_prog_HAVE_DOT="YES"
26668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26675 test -z "$ac_cv_prog_HAVE_DOT" && ac_cv_prog_HAVE_DOT="NO"
26678 HAVE_DOT=$ac_cv_prog_HAVE_DOT
26679 if test -n "$HAVE_DOT"; then
26680 { echo "$as_me:$LINENO: result: $HAVE_DOT" >&5
26681 echo "${ECHO_T}$HAVE_DOT" >&6; }
26683 { echo "$as_me:$LINENO: result: no" >&5
26684 echo "${ECHO_T}no" >&6; }
26692 if test -z "$PKG_CONFIG"; then
26693 # Extract the first word of "pkg-config", so it can be a program name with args.
26694 set dummy pkg-config; ac_word=$2
26695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26697 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26700 case $PKG_CONFIG in
26702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26706 for as_dir in $PATH
26709 test -z "$as_dir" && as_dir=.
26710 for ac_exec_ext in '' $ac_executable_extensions; do
26711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26720 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26724 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26725 if test -n "$PKG_CONFIG"; then
26726 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26727 echo "${ECHO_T}$PKG_CONFIG" >&6; }
26729 { echo "$as_me:$LINENO: result: no" >&5
26730 echo "${ECHO_T}no" >&6; }
26736 if test "$PKG_CONFIG" = "no" ; then
26737 echo "*** The pkg-config script could not be found. Make sure it is"
26738 echo "*** in your path, or set the PKG_CONFIG environment variable"
26739 echo "*** to the full path to pkg-config."
26740 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26742 if test -z "$PKG_CONFIG_PATH"; then
26743 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
26746 PKG_CONFIG_MIN_VERSION=0.9.0
26747 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26748 { echo "$as_me:$LINENO: checking for fftw3f >= 3.0" >&5
26749 echo $ECHO_N "checking for fftw3f >= 3.0... $ECHO_C" >&6; }
26751 if $PKG_CONFIG --exists "fftw3f >= 3.0" ; then
26752 { echo "$as_me:$LINENO: result: yes" >&5
26753 echo "${ECHO_T}yes" >&6; }
26756 { echo "$as_me:$LINENO: checking FFTW3F_CFLAGS" >&5
26757 echo $ECHO_N "checking FFTW3F_CFLAGS... $ECHO_C" >&6; }
26758 FFTW3F_CFLAGS=`$PKG_CONFIG --cflags "fftw3f >= 3.0"`
26759 { echo "$as_me:$LINENO: result: $FFTW3F_CFLAGS" >&5
26760 echo "${ECHO_T}$FFTW3F_CFLAGS" >&6; }
26762 { echo "$as_me:$LINENO: checking FFTW3F_LIBS" >&5
26763 echo $ECHO_N "checking FFTW3F_LIBS... $ECHO_C" >&6; }
26764 FFTW3F_LIBS=`$PKG_CONFIG --libs "fftw3f >= 3.0"`
26765 { echo "$as_me:$LINENO: result: $FFTW3F_LIBS" >&5
26766 echo "${ECHO_T}$FFTW3F_LIBS" >&6; }
26768 { echo "$as_me:$LINENO: checking FFTW3F_INCLUDEDIR" >&5
26769 echo $ECHO_N "checking FFTW3F_INCLUDEDIR... $ECHO_C" >&6; }
26770 FFTW3F_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "fftw3f >= 3.0"`
26771 { echo "$as_me:$LINENO: result: $FFTW3F_INCLUDEDIR" >&5
26772 echo "${ECHO_T}$FFTW3F_INCLUDEDIR" >&6; }
26776 ## If we have a custom action on failure, don't print errors, but
26777 ## do set a variable so people can do so.
26778 FFTW3F_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fftw3f >= 3.0"`
26779 echo $FFTW3F_PKG_ERRORS
26786 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26787 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26791 if test $succeeded = yes; then
26794 { { 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
26795 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;}
26796 { (exit 1); exit 1; }; }
26802 # Check whether --enable-doxygen was given.
26803 if test "${enable_doxygen+set}" = set; then
26804 enableval=$enable_doxygen;
26807 # Check whether --enable-dot was given.
26808 if test "${enable_dot+set}" = set; then
26809 enableval=$enable_dot;
26812 # Check whether --enable-html-docs was given.
26813 if test "${enable_html_docs+set}" = set; then
26814 enableval=$enable_html_docs;
26816 enable_html_docs=yes
26819 # Check whether --enable-latex-docs was given.
26820 if test "${enable_latex_docs+set}" = set; then
26821 enableval=$enable_latex_docs;
26823 enable_latex_docs=no
26827 if test "x$enable_doxygen" = xyes; then
26828 # Extract the first word of "doxygen", so it can be a program name with args.
26829 set dummy doxygen; ac_word=$2
26830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26832 if test "${ac_cv_path_DOXYGEN+set}" = set; then
26833 echo $ECHO_N "(cached) $ECHO_C" >&6
26837 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
26840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26841 for as_dir in $PATH
26844 test -z "$as_dir" && as_dir=.
26845 for ac_exec_ext in '' $ac_executable_extensions; do
26846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26847 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
26848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26858 DOXYGEN=$ac_cv_path_DOXYGEN
26859 if test -n "$DOXYGEN"; then
26860 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
26861 echo "${ECHO_T}$DOXYGEN" >&6; }
26863 { echo "$as_me:$LINENO: result: no" >&5
26864 echo "${ECHO_T}no" >&6; }
26868 if test x$DOXYGEN = x; then
26869 if test "x$enable_doxygen" = xyes; then
26870 { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
26871 echo "$as_me: error: could not find doxygen" >&2;}
26872 { (exit 1); exit 1; }; }
26879 # Extract the first word of "dot", so it can be a program name with args.
26880 set dummy dot; ac_word=$2
26881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26883 if test "${ac_cv_path_DOT+set}" = set; then
26884 echo $ECHO_N "(cached) $ECHO_C" >&6
26888 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
26891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26892 for as_dir in $PATH
26895 test -z "$as_dir" && as_dir=.
26896 for ac_exec_ext in '' $ac_executable_extensions; do
26897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26898 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
26899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26909 DOT=$ac_cv_path_DOT
26910 if test -n "$DOT"; then
26911 { echo "$as_me:$LINENO: result: $DOT" >&5
26912 echo "${ECHO_T}$DOT" >&6; }
26914 { echo "$as_me:$LINENO: result: no" >&5
26915 echo "${ECHO_T}no" >&6; }
26926 if test x$enable_doc = xyes; then
26935 if test x$DOT = x; then
26936 if test "x$enable_dot" = xyes; then
26937 { { echo "$as_me:$LINENO: error: could not find dot" >&5
26938 echo "$as_me: error: could not find dot" >&2;}
26939 { (exit 1); exit 1; }; }
26953 # Check whether --with-md-cpu was given.
26954 if test "${with_md_cpu+set}" = set; then
26955 withval=$with_md_cpu; cf_with_md_cpu="$withval"
26957 cf_with_md_cpu="$host_cpu"
26961 { echo "$as_me:$LINENO: checking for machine dependent speedups" >&5
26962 echo $ECHO_N "checking for machine dependent speedups... $ECHO_C" >&6; }
26963 case "$cf_with_md_cpu" in
26964 x86 | i[3-7]86) MD_CPU=x86 MD_SUBCPU=x86 ;;
26965 x86_64) MD_CPU=x86 MD_SUBCPU=x86_64 ;;
26966 # sparc) MD_CPU=sparc ;;
26967 *) MD_CPU=generic ;;
26969 { echo "$as_me:$LINENO: result: $MD_CPU" >&5
26970 echo "${ECHO_T}$MD_CPU" >&6; }
26976 if test "$MD_CPU" = "x86"; then
26978 MD_CPU_x86_FALSE='#'
26980 MD_CPU_x86_TRUE='#'
26986 if test "$MD_SUBCPU" = "x86_64"; then
26987 MD_SUBCPU_x86_64_TRUE=
26988 MD_SUBCPU_x86_64_FALSE='#'
26990 MD_SUBCPU_x86_64_TRUE='#'
26991 MD_SUBCPU_x86_64_FALSE=
26996 if test "$MD_CPU" = "generic"; then
26997 MD_CPU_generic_TRUE=
26998 MD_CPU_generic_FALSE='#'
27000 MD_CPU_generic_TRUE='#'
27001 MD_CPU_generic_FALSE=
27009 # Check whether --with-cppunit-prefix was given.
27010 if test "${with_cppunit_prefix+set}" = set; then
27011 withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
27013 cppunit_config_prefix=""
27017 # Check whether --with-cppunit-exec-prefix was given.
27018 if test "${with_cppunit_exec_prefix+set}" = set; then
27019 withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
27021 cppunit_config_exec_prefix=""
27025 if test x$cppunit_config_exec_prefix != x ; then
27026 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
27027 if test x${CPPUNIT_CONFIG+set} != xset ; then
27028 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
27031 if test x$cppunit_config_prefix != x ; then
27032 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
27033 if test x${CPPUNIT_CONFIG+set} != xset ; then
27034 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
27038 # Extract the first word of "cppunit-config", so it can be a program name with args.
27039 set dummy cppunit-config; ac_word=$2
27040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27042 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
27043 echo $ECHO_N "(cached) $ECHO_C" >&6
27045 case $CPPUNIT_CONFIG in
27047 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
27050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27051 for as_dir in $PATH
27054 test -z "$as_dir" && as_dir=.
27055 for ac_exec_ext in '' $ac_executable_extensions; do
27056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27057 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27065 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
27069 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
27070 if test -n "$CPPUNIT_CONFIG"; then
27071 { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
27072 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
27074 { echo "$as_me:$LINENO: result: no" >&5
27075 echo "${ECHO_T}no" >&6; }
27079 cppunit_version_min=1.9.14
27081 { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
27082 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
27084 if test "$CPPUNIT_CONFIG" = "no" ; then
27087 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
27088 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
27089 cppunit_version=`$CPPUNIT_CONFIG --version`
27091 cppunit_major_version=`echo $cppunit_version | \
27092 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27093 cppunit_minor_version=`echo $cppunit_version | \
27094 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27095 cppunit_micro_version=`echo $cppunit_version | \
27096 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27098 cppunit_major_min=`echo $cppunit_version_min | \
27099 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27100 cppunit_minor_min=`echo $cppunit_version_min | \
27101 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27102 cppunit_micro_min=`echo $cppunit_version_min | \
27103 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27105 cppunit_version_proper=`expr \
27106 $cppunit_major_version \> $cppunit_major_min \| \
27107 $cppunit_major_version \= $cppunit_major_min \& \
27108 $cppunit_minor_version \> $cppunit_minor_min \| \
27109 $cppunit_major_version \= $cppunit_major_min \& \
27110 $cppunit_minor_version \= $cppunit_minor_min \& \
27111 $cppunit_micro_version \>= $cppunit_micro_min `
27113 if test "$cppunit_version_proper" = "1" ; then
27114 { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
27115 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
27117 { echo "$as_me:$LINENO: result: no" >&5
27118 echo "${ECHO_T}no" >&6; }
27123 if test "x$no_cppunit" = x ; then
27128 { { echo "$as_me:$LINENO: error: GNU Radio requires cppunit. Stop" >&5
27129 echo "$as_me: error: GNU Radio requires cppunit. Stop" >&2;}
27130 { (exit 1); exit 1; }; }
27137 CPPUNIT_INCLUDES=$CPPUNIT_CFLAGS
27143 ac_cpp='$CXXCPP $CPPFLAGS'
27144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27148 gr_boost_include_dir=
27150 # Check whether --with-boost-include-dir was given.
27151 if test "${with_boost_include_dir+set}" = set; then
27152 withval=$with_boost_include_dir;
27153 # "yes" and "no" are bogus answers
27154 if test x"$with_boost_include_dir" = xyes ||
27155 test x"$with_boost_include_dir" = xno; then
27156 gr_boost_include_dir=
27158 gr_boost_include_dir=$with_boost_include_dir
27163 echo "gr_boost_include_dir = $gr_boost_include_dir"
27164 if test x$gr_boost_include_dir != x; then
27166 # If the user specified a directory, then we use it
27168 OLD_CPPFLAGS=$CPPFLAGS
27169 CPPFLAGS="$CPPFLAGS -I$gr_boost_include_dir"
27170 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27171 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27172 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27173 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27176 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27177 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27179 # Is the header compilable?
27180 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
27181 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
27182 cat >conftest.$ac_ext <<_ACEOF
27185 cat confdefs.h >>conftest.$ac_ext
27186 cat >>conftest.$ac_ext <<_ACEOF
27187 /* end confdefs.h. */
27188 $ac_includes_default
27189 #include <boost/shared_ptr.hpp>
27191 rm -f conftest.$ac_objext
27192 if { (ac_try="$ac_compile"
27193 case "(($ac_try" in
27194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27195 *) ac_try_echo=$ac_try;;
27197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27198 (eval "$ac_compile") 2>conftest.er1
27200 grep -v '^ *+' conftest.er1 >conftest.err
27202 cat conftest.err >&5
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } && {
27205 test -z "$ac_cxx_werror_flag" ||
27206 test ! -s conftest.err
27207 } && test -s conftest.$ac_objext; then
27208 ac_header_compiler=yes
27210 echo "$as_me: failed program was:" >&5
27211 sed 's/^/| /' conftest.$ac_ext >&5
27213 ac_header_compiler=no
27216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27218 echo "${ECHO_T}$ac_header_compiler" >&6; }
27220 # Is the header present?
27221 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
27222 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
27223 cat >conftest.$ac_ext <<_ACEOF
27226 cat confdefs.h >>conftest.$ac_ext
27227 cat >>conftest.$ac_ext <<_ACEOF
27228 /* end confdefs.h. */
27229 #include <boost/shared_ptr.hpp>
27231 if { (ac_try="$ac_cpp conftest.$ac_ext"
27232 case "(($ac_try" in
27233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234 *) ac_try_echo=$ac_try;;
27236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27239 grep -v '^ *+' conftest.er1 >conftest.err
27241 cat conftest.err >&5
27242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243 (exit $ac_status); } >/dev/null && {
27244 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27245 test ! -s conftest.err
27247 ac_header_preproc=yes
27249 echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27252 ac_header_preproc=no
27255 rm -f conftest.err conftest.$ac_ext
27256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27257 echo "${ECHO_T}$ac_header_preproc" >&6; }
27259 # So? What about this header?
27260 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27262 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
27263 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
27264 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
27265 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
27266 ac_header_preproc=yes
27269 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
27270 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
27271 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
27272 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
27273 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
27274 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
27275 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
27276 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
27277 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
27278 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
27280 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
27284 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27285 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27286 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27287 echo $ECHO_N "(cached) $ECHO_C" >&6
27289 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
27291 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27292 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27295 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
27296 BOOST_CFLAGS="-I$gr_boost_include_dir"
27298 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
27299 Try using --with-boost-include-dir=<path>,
27300 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
27301 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
27302 Try using --with-boost-include-dir=<path>,
27303 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
27304 { (exit 1); exit 1; }; }
27308 CPPFLAGS=$OLD_CPPFLAGS
27311 # Otherwise we check in the default places
27313 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27314 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27315 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27316 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27317 echo $ECHO_N "(cached) $ECHO_C" >&6
27319 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27320 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27322 # Is the header compilable?
27323 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
27324 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
27325 cat >conftest.$ac_ext <<_ACEOF
27328 cat confdefs.h >>conftest.$ac_ext
27329 cat >>conftest.$ac_ext <<_ACEOF
27330 /* end confdefs.h. */
27331 $ac_includes_default
27332 #include <boost/shared_ptr.hpp>
27334 rm -f conftest.$ac_objext
27335 if { (ac_try="$ac_compile"
27336 case "(($ac_try" in
27337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338 *) ac_try_echo=$ac_try;;
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341 (eval "$ac_compile") 2>conftest.er1
27343 grep -v '^ *+' conftest.er1 >conftest.err
27345 cat conftest.err >&5
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } && {
27348 test -z "$ac_cxx_werror_flag" ||
27349 test ! -s conftest.err
27350 } && test -s conftest.$ac_objext; then
27351 ac_header_compiler=yes
27353 echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27356 ac_header_compiler=no
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27361 echo "${ECHO_T}$ac_header_compiler" >&6; }
27363 # Is the header present?
27364 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
27365 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
27366 cat >conftest.$ac_ext <<_ACEOF
27369 cat confdefs.h >>conftest.$ac_ext
27370 cat >>conftest.$ac_ext <<_ACEOF
27371 /* end confdefs.h. */
27372 #include <boost/shared_ptr.hpp>
27374 if { (ac_try="$ac_cpp conftest.$ac_ext"
27375 case "(($ac_try" in
27376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377 *) ac_try_echo=$ac_try;;
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27382 grep -v '^ *+' conftest.er1 >conftest.err
27384 cat conftest.err >&5
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } >/dev/null && {
27387 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27388 test ! -s conftest.err
27390 ac_header_preproc=yes
27392 echo "$as_me: failed program was:" >&5
27393 sed 's/^/| /' conftest.$ac_ext >&5
27395 ac_header_preproc=no
27398 rm -f conftest.err conftest.$ac_ext
27399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27400 echo "${ECHO_T}$ac_header_preproc" >&6; }
27402 # So? What about this header?
27403 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27405 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
27406 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
27407 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
27408 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
27409 ac_header_preproc=yes
27412 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
27413 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
27414 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
27415 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
27416 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
27417 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
27418 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
27419 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
27420 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
27421 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
27422 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
27423 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
27427 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27428 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27429 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27430 echo $ECHO_N "(cached) $ECHO_C" >&6
27432 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
27434 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27435 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27438 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
27441 # Nope, look for latest version if any in $prefix/include/boost-*
27443 # Wipe out cached value. KLUDGE: AC should have API for this
27444 unset ac_cv_header_boost_shared_ptr_hpp
27446 boost_last_match(){
27447 #echo "boost_last_match: [$]*"
27450 if test "$pattern" = "$1"
27454 shift `expr $# - 1`
27457 #echo "LM(1)='[$]LM'"
27460 pattern="/usr/local/include/boost-*"
27461 boost_last_match "$pattern" $pattern
27462 #echo "LM(2)='$LM'"
27464 OLD_CPPFLAGS=$CPP_FLAGS
27465 CPPFLAGS="$CPPFLAGS -I$LM"
27466 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27467 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27468 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27469 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27473 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27475 # Is the header compilable?
27476 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
27477 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6; }
27478 cat >conftest.$ac_ext <<_ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h. */
27484 $ac_includes_default
27485 #include <boost/shared_ptr.hpp>
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_compile") 2>conftest.er1
27496 grep -v '^ *+' conftest.er1 >conftest.err
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } && {
27501 test -z "$ac_cxx_werror_flag" ||
27502 test ! -s conftest.err
27503 } && test -s conftest.$ac_objext; then
27504 ac_header_compiler=yes
27506 echo "$as_me: failed program was:" >&5
27507 sed 's/^/| /' conftest.$ac_ext >&5
27509 ac_header_compiler=no
27512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27514 echo "${ECHO_T}$ac_header_compiler" >&6; }
27516 # Is the header present?
27517 { echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
27518 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6; }
27519 cat >conftest.$ac_ext <<_ACEOF
27522 cat confdefs.h >>conftest.$ac_ext
27523 cat >>conftest.$ac_ext <<_ACEOF
27524 /* end confdefs.h. */
27525 #include <boost/shared_ptr.hpp>
27527 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
27540 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
27541 test ! -s conftest.err
27543 ac_header_preproc=yes
27545 echo "$as_me: failed program was:" >&5
27546 sed 's/^/| /' conftest.$ac_ext >&5
27548 ac_header_preproc=no
27551 rm -f conftest.err conftest.$ac_ext
27552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27553 echo "${ECHO_T}$ac_header_preproc" >&6; }
27555 # So? What about this header?
27556 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27558 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
27559 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
27560 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
27561 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
27562 ac_header_preproc=yes
27565 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
27566 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
27568 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
27570 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
27571 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
27572 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
27574 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
27575 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
27576 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
27580 { echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
27581 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6; }
27582 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27585 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
27587 { echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
27588 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6; }
27591 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
27592 BOOST_CFLAGS="-I$LM"
27594 { { echo "$as_me:$LINENO: error: Failed to locate boost/shared_ptr.hpp.
27595 Try using --with-boost-include-dir=<path>,
27596 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&5
27597 echo "$as_me: error: Failed to locate boost/shared_ptr.hpp.
27598 Try using --with-boost-include-dir=<path>,
27599 E.g., --with-boost-include-dir=/usr/local/include/boost-1_33_1" >&2;}
27600 { (exit 1); exit 1; }; }
27604 CPPFLAGS=$OLD_CPPFLAGS
27611 unset boost_last_match LM
27613 ac_cpp='$CPP $CPPFLAGS'
27614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27624 # Check whether --enable-all-components was given.
27625 if test "${enable_all_components+set}" = set; then
27626 enableval=$enable_all_components;
27630 build_dirs="config"
27633 # Check whether --enable-gnuradio-core was given.
27634 if test "${enable_gnuradio_core+set}" = set; then
27635 enableval=$enable_gnuradio_core;
27637 enable_gnuradio_core=$enable_all_components
27642 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"
27647 if test x$passed = xno; then
27648 skipped_dirs="$skipped_dirs gnuradio-core"
27649 if test x$enable_gnuradio_core = xyes; then
27650 { { echo "$as_me:$LINENO: error: Component gnuradio-core has errors, stopping." >&5
27651 echo "$as_me: error: Component gnuradio-core has errors, stopping." >&2;}
27652 { (exit 1); exit 1; }; }
27654 { echo "$as_me:$LINENO: result: Not building component gnuradio-core." >&5
27655 echo "${ECHO_T}Not building component gnuradio-core." >&6; }
27658 if test x$enable_gnuradio_core != xno; then
27660 ac_config_commands="$ac_config_commands run_tests_core"
27663 ac_config_commands="$ac_config_commands swig_deps"
27666 build_dirs="$build_dirs gnuradio-core"
27667 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, building." >&5
27668 echo "${ECHO_T}Component gnuradio-core passed configuration checks, building." >&6; }
27670 skipped_dirs="$skipped_dirs gnuradio-core"
27671 { echo "$as_me:$LINENO: result: Component gnuradio-core passed configuration checks, but not building." >&5
27672 echo "${ECHO_T}Component gnuradio-core passed configuration checks, but not building." >&6; }
27679 # Check whether --enable-gnuradio-examples was given.
27680 if test "${enable_gnuradio_examples+set}" = set; then
27681 enableval=$enable_gnuradio_examples;
27683 enable_gnuradio_examples=$enable_all_components
27688 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"
27693 if test x$passed = xno; then
27694 skipped_dirs="$skipped_dirs gnuradio-examples"
27695 if test x$enable_gnuradio_examples = xyes; then
27696 { { echo "$as_me:$LINENO: error: Component gnuradio-examples has errors, stopping." >&5
27697 echo "$as_me: error: Component gnuradio-examples has errors, stopping." >&2;}
27698 { (exit 1); exit 1; }; }
27700 { echo "$as_me:$LINENO: result: Not building component gnuradio-examples." >&5
27701 echo "${ECHO_T}Not building component gnuradio-examples." >&6; }
27704 if test x$enable_gnuradio_examples != xno; then
27706 build_dirs="$build_dirs gnuradio-examples"
27707 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, building." >&5
27708 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, building." >&6; }
27710 skipped_dirs="$skipped_dirs gnuradio-examples"
27711 { echo "$as_me:$LINENO: result: Component gnuradio-examples passed configuration checks, but not building." >&5
27712 echo "${ECHO_T}Component gnuradio-examples passed configuration checks, but not building." >&6; }
27717 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27718 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27719 if test "${ac_cv_header_stat_broken+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27722 cat >conftest.$ac_ext <<_ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27728 #include <sys/types.h>
27729 #include <sys/stat.h>
27731 #if defined S_ISBLK && defined S_IFDIR
27732 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27735 #if defined S_ISBLK && defined S_IFCHR
27736 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27739 #if defined S_ISLNK && defined S_IFREG
27740 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27743 #if defined S_ISSOCK && defined S_IFREG
27744 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27748 rm -f conftest.$ac_objext
27749 if { (ac_try="$ac_compile"
27750 case "(($ac_try" in
27751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752 *) ac_try_echo=$ac_try;;
27754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755 (eval "$ac_compile") 2>conftest.er1
27757 grep -v '^ *+' conftest.er1 >conftest.err
27759 cat conftest.err >&5
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); } && {
27762 test -z "$ac_c_werror_flag" ||
27763 test ! -s conftest.err
27764 } && test -s conftest.$ac_objext; then
27765 ac_cv_header_stat_broken=no
27767 echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27770 ac_cv_header_stat_broken=yes
27773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27775 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27776 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27777 if test $ac_cv_header_stat_broken = yes; then
27779 cat >>confdefs.h <<\_ACEOF
27780 #define STAT_MACROS_BROKEN 1
27787 for ac_header in fcntl.h
27789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27796 ac_res=`eval echo '${'$as_ac_Header'}'`
27797 { echo "$as_me:$LINENO: result: $ac_res" >&5
27798 echo "${ECHO_T}$ac_res" >&6; }
27800 # Is the header compilable?
27801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27803 cat >conftest.$ac_ext <<_ACEOF
27806 cat confdefs.h >>conftest.$ac_ext
27807 cat >>conftest.$ac_ext <<_ACEOF
27808 /* end confdefs.h. */
27809 $ac_includes_default
27810 #include <$ac_header>
27812 rm -f conftest.$ac_objext
27813 if { (ac_try="$ac_compile"
27814 case "(($ac_try" in
27815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27816 *) ac_try_echo=$ac_try;;
27818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27819 (eval "$ac_compile") 2>conftest.er1
27821 grep -v '^ *+' conftest.er1 >conftest.err
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } && {
27826 test -z "$ac_c_werror_flag" ||
27827 test ! -s conftest.err
27828 } && test -s conftest.$ac_objext; then
27829 ac_header_compiler=yes
27831 echo "$as_me: failed program was:" >&5
27832 sed 's/^/| /' conftest.$ac_ext >&5
27834 ac_header_compiler=no
27837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27839 echo "${ECHO_T}$ac_header_compiler" >&6; }
27841 # Is the header present?
27842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27844 cat >conftest.$ac_ext <<_ACEOF
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h. */
27850 #include <$ac_header>
27852 if { (ac_try="$ac_cpp conftest.$ac_ext"
27853 case "(($ac_try" in
27854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855 *) ac_try_echo=$ac_try;;
27857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27860 grep -v '^ *+' conftest.er1 >conftest.err
27862 cat conftest.err >&5
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); } >/dev/null && {
27865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27866 test ! -s conftest.err
27868 ac_header_preproc=yes
27870 echo "$as_me: failed program was:" >&5
27871 sed 's/^/| /' conftest.$ac_ext >&5
27873 ac_header_preproc=no
27876 rm -f conftest.err conftest.$ac_ext
27877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27878 echo "${ECHO_T}$ac_header_preproc" >&6; }
27880 # So? What about this header?
27881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27887 ac_header_preproc=yes
27890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27908 echo $ECHO_N "(cached) $ECHO_C" >&6
27910 eval "$as_ac_Header=\$ac_header_preproc"
27912 ac_res=`eval echo '${'$as_ac_Header'}'`
27913 { echo "$as_me:$LINENO: result: $ac_res" >&5
27914 echo "${ECHO_T}$ac_res" >&6; }
27917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27918 cat >>confdefs.h <<_ACEOF
27919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27929 for ac_header in sys/time.h
27931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27938 ac_res=`eval echo '${'$as_ac_Header'}'`
27939 { echo "$as_me:$LINENO: result: $ac_res" >&5
27940 echo "${ECHO_T}$ac_res" >&6; }
27942 # Is the header compilable?
27943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27945 cat >conftest.$ac_ext <<_ACEOF
27948 cat confdefs.h >>conftest.$ac_ext
27949 cat >>conftest.$ac_ext <<_ACEOF
27950 /* end confdefs.h. */
27951 $ac_includes_default
27952 #include <$ac_header>
27954 rm -f conftest.$ac_objext
27955 if { (ac_try="$ac_compile"
27956 case "(($ac_try" in
27957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27958 *) ac_try_echo=$ac_try;;
27960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27961 (eval "$ac_compile") 2>conftest.er1
27963 grep -v '^ *+' conftest.er1 >conftest.err
27965 cat conftest.err >&5
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); } && {
27968 test -z "$ac_c_werror_flag" ||
27969 test ! -s conftest.err
27970 } && test -s conftest.$ac_objext; then
27971 ac_header_compiler=yes
27973 echo "$as_me: failed program was:" >&5
27974 sed 's/^/| /' conftest.$ac_ext >&5
27976 ac_header_compiler=no
27979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27981 echo "${ECHO_T}$ac_header_compiler" >&6; }
27983 # Is the header present?
27984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27986 cat >conftest.$ac_ext <<_ACEOF
27989 cat confdefs.h >>conftest.$ac_ext
27990 cat >>conftest.$ac_ext <<_ACEOF
27991 /* end confdefs.h. */
27992 #include <$ac_header>
27994 if { (ac_try="$ac_cpp conftest.$ac_ext"
27995 case "(($ac_try" in
27996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997 *) ac_try_echo=$ac_try;;
27999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28002 grep -v '^ *+' conftest.er1 >conftest.err
28004 cat conftest.err >&5
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); } >/dev/null && {
28007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28008 test ! -s conftest.err
28010 ac_header_preproc=yes
28012 echo "$as_me: failed program was:" >&5
28013 sed 's/^/| /' conftest.$ac_ext >&5
28015 ac_header_preproc=no
28018 rm -f conftest.err conftest.$ac_ext
28019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28020 echo "${ECHO_T}$ac_header_preproc" >&6; }
28022 # So? What about this header?
28023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28029 ac_header_preproc=yes
28032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 eval "$as_ac_Header=\$ac_header_preproc"
28054 ac_res=`eval echo '${'$as_ac_Header'}'`
28055 { echo "$as_me:$LINENO: result: $ac_res" >&5
28056 echo "${ECHO_T}$ac_res" >&6; }
28059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28060 cat >>confdefs.h <<_ACEOF
28061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28071 for ac_header in unistd.h
28073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28078 echo $ECHO_N "(cached) $ECHO_C" >&6
28080 ac_res=`eval echo '${'$as_ac_Header'}'`
28081 { echo "$as_me:$LINENO: result: $ac_res" >&5
28082 echo "${ECHO_T}$ac_res" >&6; }
28084 # Is the header compilable?
28085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28087 cat >conftest.$ac_ext <<_ACEOF
28090 cat confdefs.h >>conftest.$ac_ext
28091 cat >>conftest.$ac_ext <<_ACEOF
28092 /* end confdefs.h. */
28093 $ac_includes_default
28094 #include <$ac_header>
28096 rm -f conftest.$ac_objext
28097 if { (ac_try="$ac_compile"
28098 case "(($ac_try" in
28099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28100 *) ac_try_echo=$ac_try;;
28102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28103 (eval "$ac_compile") 2>conftest.er1
28105 grep -v '^ *+' conftest.er1 >conftest.err
28107 cat conftest.err >&5
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); } && {
28110 test -z "$ac_c_werror_flag" ||
28111 test ! -s conftest.err
28112 } && test -s conftest.$ac_objext; then
28113 ac_header_compiler=yes
28115 echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28118 ac_header_compiler=no
28121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28123 echo "${ECHO_T}$ac_header_compiler" >&6; }
28125 # Is the header present?
28126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28128 cat >conftest.$ac_ext <<_ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h. */
28134 #include <$ac_header>
28136 if { (ac_try="$ac_cpp conftest.$ac_ext"
28137 case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28144 grep -v '^ *+' conftest.er1 >conftest.err
28146 cat conftest.err >&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } >/dev/null && {
28149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28150 test ! -s conftest.err
28152 ac_header_preproc=yes
28154 echo "$as_me: failed program was:" >&5
28155 sed 's/^/| /' conftest.$ac_ext >&5
28157 ac_header_preproc=no
28160 rm -f conftest.err conftest.$ac_ext
28161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28162 echo "${ECHO_T}$ac_header_preproc" >&6; }
28164 # So? What about this header?
28165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28171 ac_header_preproc=yes
28174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28192 echo $ECHO_N "(cached) $ECHO_C" >&6
28194 eval "$as_ac_Header=\$ac_header_preproc"
28196 ac_res=`eval echo '${'$as_ac_Header'}'`
28197 { echo "$as_me:$LINENO: result: $ac_res" >&5
28198 echo "${ECHO_T}$ac_res" >&6; }
28201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28202 cat >>confdefs.h <<_ACEOF
28203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28212 { echo "$as_me:$LINENO: checking whether getenv is declared" >&5
28213 echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6; }
28214 if test "${ac_cv_have_decl_getenv+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28217 cat >conftest.$ac_ext <<_ACEOF
28220 cat confdefs.h >>conftest.$ac_ext
28221 cat >>conftest.$ac_ext <<_ACEOF
28222 /* end confdefs.h. */
28223 $ac_includes_default
28235 rm -f conftest.$ac_objext
28236 if { (ac_try="$ac_compile"
28237 case "(($ac_try" in
28238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239 *) ac_try_echo=$ac_try;;
28241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242 (eval "$ac_compile") 2>conftest.er1
28244 grep -v '^ *+' conftest.er1 >conftest.err
28246 cat conftest.err >&5
28247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248 (exit $ac_status); } && {
28249 test -z "$ac_c_werror_flag" ||
28250 test ! -s conftest.err
28251 } && test -s conftest.$ac_objext; then
28252 ac_cv_have_decl_getenv=yes
28254 echo "$as_me: failed program was:" >&5
28255 sed 's/^/| /' conftest.$ac_ext >&5
28257 ac_cv_have_decl_getenv=no
28260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28262 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
28263 echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6; }
28264 if test $ac_cv_have_decl_getenv = yes; then
28266 cat >>confdefs.h <<_ACEOF
28267 #define HAVE_DECL_GETENV 1
28272 cat >>confdefs.h <<_ACEOF
28273 #define HAVE_DECL_GETENV 0
28283 # Check whether --enable-usrp was given.
28284 if test "${enable_usrp+set}" = set; then
28285 enableval=$enable_usrp;
28287 enable_usrp=$enable_all_components
28292 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"
28296 # FIXME: this needs to fail gracefully and continue, not implemented yet
28298 for ac_func in mkstemp
28300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28304 echo $ECHO_N "(cached) $ECHO_C" >&6
28306 cat >conftest.$ac_ext <<_ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h. */
28312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28314 #define $ac_func innocuous_$ac_func
28316 /* System header to define __stub macros and hopefully few prototypes,
28317 which can conflict with char $ac_func (); below.
28318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28319 <limits.h> exists even on freestanding compilers. */
28322 # include <limits.h>
28324 # include <assert.h>
28329 /* Override any GCC internal prototype to avoid an error.
28330 Use char because int might match the return type of a GCC
28331 builtin and then its argument prototype would still apply. */
28336 /* The GNU C library defines this for functions which it implements
28337 to always fail with ENOSYS. Some functions are actually named
28338 something starting with __ and the normal name is an alias. */
28339 #if defined __stub_$ac_func || defined __stub___$ac_func
28346 return $ac_func ();
28351 rm -f conftest.$ac_objext conftest$ac_exeext
28352 if { (ac_try="$ac_link"
28353 case "(($ac_try" in
28354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355 *) ac_try_echo=$ac_try;;
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358 (eval "$ac_link") 2>conftest.er1
28360 grep -v '^ *+' conftest.er1 >conftest.err
28362 cat conftest.err >&5
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); } && {
28365 test -z "$ac_c_werror_flag" ||
28366 test ! -s conftest.err
28367 } && test -s conftest$ac_exeext &&
28368 $as_test_x conftest$ac_exeext; then
28369 eval "$as_ac_var=yes"
28371 echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28374 eval "$as_ac_var=no"
28377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28378 conftest$ac_exeext conftest.$ac_ext
28380 ac_res=`eval echo '${'$as_ac_var'}'`
28381 { echo "$as_me:$LINENO: result: $ac_res" >&5
28382 echo "${ECHO_T}$ac_res" >&6; }
28383 if test `eval echo '${'$as_ac_var'}'` = yes; then
28384 cat >>confdefs.h <<_ACEOF
28385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28389 case " $LIBOBJS " in
28390 *" $ac_func.$ac_objext "* ) ;;
28391 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
28399 if test $ac_cv_func_mkstemp = no; then
28400 utils_cv_func_mkstemp_limitations=yes
28402 { echo "$as_me:$LINENO: checking for mkstemp limitations" >&5
28403 echo $ECHO_N "checking for mkstemp limitations... $ECHO_C" >&6; }
28404 if test "${utils_cv_func_mkstemp_limitations+set}" = set; then
28405 echo $ECHO_N "(cached) $ECHO_C" >&6
28408 if test "$cross_compiling" = yes; then
28409 utils_cv_func_mkstemp_limitations=yes
28412 cat >conftest.$ac_ext <<_ACEOF
28415 cat confdefs.h >>conftest.$ac_ext
28416 cat >>conftest.$ac_ext <<_ACEOF
28417 /* end confdefs.h. */
28419 # include <stdlib.h>
28423 for (i = 0; i < 70; i++)
28425 char template[] = "conftestXXXXXX";
28426 int fd = mkstemp (template);
28435 rm -f conftest$ac_exeext
28436 if { (ac_try="$ac_link"
28437 case "(($ac_try" in
28438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28439 *) ac_try_echo=$ac_try;;
28441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28442 (eval "$ac_link") 2>&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28446 { (case "(($ac_try" in
28447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28448 *) ac_try_echo=$ac_try;;
28450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28451 (eval "$ac_try") 2>&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; }; then
28455 utils_cv_func_mkstemp_limitations=no
28457 echo "$as_me: program exited with status $ac_status" >&5
28458 echo "$as_me: failed program was:" >&5
28459 sed 's/^/| /' conftest.$ac_ext >&5
28461 ( exit $ac_status )
28462 utils_cv_func_mkstemp_limitations=yes
28464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28471 { echo "$as_me:$LINENO: result: $utils_cv_func_mkstemp_limitations" >&5
28472 echo "${ECHO_T}$utils_cv_func_mkstemp_limitations" >&6; }
28475 if test $utils_cv_func_mkstemp_limitations = yes; then
28476 case " $LIBOBJS " in
28477 *" mkstemp.$ac_objext "* ) ;;
28478 *) LIBOBJS="$LIBOBJS mkstemp.$ac_objext"
28482 case " $LIBOBJS " in
28483 *" tempname.$ac_objext "* ) ;;
28484 *) LIBOBJS="$LIBOBJS tempname.$ac_objext"
28489 cat >>confdefs.h <<\_ACEOF
28490 #define mkstemp rpl_mkstemp
28513 for ac_header in stdint.h
28515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28520 echo $ECHO_N "(cached) $ECHO_C" >&6
28522 ac_res=`eval echo '${'$as_ac_Header'}'`
28523 { echo "$as_me:$LINENO: result: $ac_res" >&5
28524 echo "${ECHO_T}$ac_res" >&6; }
28526 # Is the header compilable?
28527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28529 cat >conftest.$ac_ext <<_ACEOF
28532 cat confdefs.h >>conftest.$ac_ext
28533 cat >>conftest.$ac_ext <<_ACEOF
28534 /* end confdefs.h. */
28535 $ac_includes_default
28536 #include <$ac_header>
28538 rm -f conftest.$ac_objext
28539 if { (ac_try="$ac_compile"
28540 case "(($ac_try" in
28541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28542 *) ac_try_echo=$ac_try;;
28544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28545 (eval "$ac_compile") 2>conftest.er1
28547 grep -v '^ *+' conftest.er1 >conftest.err
28549 cat conftest.err >&5
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } && {
28552 test -z "$ac_c_werror_flag" ||
28553 test ! -s conftest.err
28554 } && test -s conftest.$ac_objext; then
28555 ac_header_compiler=yes
28557 echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28560 ac_header_compiler=no
28563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28565 echo "${ECHO_T}$ac_header_compiler" >&6; }
28567 # Is the header present?
28568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28570 cat >conftest.$ac_ext <<_ACEOF
28573 cat confdefs.h >>conftest.$ac_ext
28574 cat >>conftest.$ac_ext <<_ACEOF
28575 /* end confdefs.h. */
28576 #include <$ac_header>
28578 if { (ac_try="$ac_cpp conftest.$ac_ext"
28579 case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28586 grep -v '^ *+' conftest.er1 >conftest.err
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } >/dev/null && {
28591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28592 test ! -s conftest.err
28594 ac_header_preproc=yes
28596 echo "$as_me: failed program was:" >&5
28597 sed 's/^/| /' conftest.$ac_ext >&5
28599 ac_header_preproc=no
28602 rm -f conftest.err conftest.$ac_ext
28603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28604 echo "${ECHO_T}$ac_header_preproc" >&6; }
28606 # So? What about this header?
28607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28613 ac_header_preproc=yes
28616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28634 echo $ECHO_N "(cached) $ECHO_C" >&6
28636 eval "$as_ac_Header=\$ac_header_preproc"
28638 ac_res=`eval echo '${'$as_ac_Header'}'`
28639 { echo "$as_me:$LINENO: result: $ac_res" >&5
28640 echo "${ECHO_T}$ac_res" >&6; }
28643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28644 cat >>confdefs.h <<_ACEOF
28645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28655 for ac_func in __secure_getenv gettimeofday lstat
28657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28661 echo $ECHO_N "(cached) $ECHO_C" >&6
28663 cat >conftest.$ac_ext <<_ACEOF
28666 cat confdefs.h >>conftest.$ac_ext
28667 cat >>conftest.$ac_ext <<_ACEOF
28668 /* end confdefs.h. */
28669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28671 #define $ac_func innocuous_$ac_func
28673 /* System header to define __stub macros and hopefully few prototypes,
28674 which can conflict with char $ac_func (); below.
28675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28676 <limits.h> exists even on freestanding compilers. */
28679 # include <limits.h>
28681 # include <assert.h>
28686 /* Override any GCC internal prototype to avoid an error.
28687 Use char because int might match the return type of a GCC
28688 builtin and then its argument prototype would still apply. */
28693 /* The GNU C library defines this for functions which it implements
28694 to always fail with ENOSYS. Some functions are actually named
28695 something starting with __ and the normal name is an alias. */
28696 #if defined __stub_$ac_func || defined __stub___$ac_func
28703 return $ac_func ();
28708 rm -f conftest.$ac_objext conftest$ac_exeext
28709 if { (ac_try="$ac_link"
28710 case "(($ac_try" in
28711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28712 *) ac_try_echo=$ac_try;;
28714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28715 (eval "$ac_link") 2>conftest.er1
28717 grep -v '^ *+' conftest.er1 >conftest.err
28719 cat conftest.err >&5
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); } && {
28722 test -z "$ac_c_werror_flag" ||
28723 test ! -s conftest.err
28724 } && test -s conftest$ac_exeext &&
28725 $as_test_x conftest$ac_exeext; then
28726 eval "$as_ac_var=yes"
28728 echo "$as_me: failed program was:" >&5
28729 sed 's/^/| /' conftest.$ac_ext >&5
28731 eval "$as_ac_var=no"
28734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28735 conftest$ac_exeext conftest.$ac_ext
28737 ac_res=`eval echo '${'$as_ac_var'}'`
28738 { echo "$as_me:$LINENO: result: $ac_res" >&5
28739 echo "${ECHO_T}$ac_res" >&6; }
28740 if test `eval echo '${'$as_ac_var'}'` = yes; then
28741 cat >>confdefs.h <<_ACEOF
28742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28755 # AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])
28757 { echo "$as_me:$LINENO: checking whether mkdir accepts only one arg" >&5
28758 echo $ECHO_N "checking whether mkdir accepts only one arg... $ECHO_C" >&6; }
28759 cat >conftest.$ac_ext <<_ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h. */
28765 #include <sys/types.h>
28766 #include <sys/stat.h>
28778 rm -f conftest.$ac_objext
28779 if { (ac_try="$ac_compile"
28780 case "(($ac_try" in
28781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28782 *) ac_try_echo=$ac_try;;
28784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785 (eval "$ac_compile") 2>conftest.er1
28787 grep -v '^ *+' conftest.er1 >conftest.err
28789 cat conftest.err >&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } && {
28792 test -z "$ac_c_werror_flag" ||
28793 test ! -s conftest.err
28794 } && test -s conftest.$ac_objext; then
28795 { echo "$as_me:$LINENO: result: yes" >&5
28796 echo "${ECHO_T}yes" >&6; }
28798 cat >>confdefs.h <<\_ACEOF
28799 #define MKDIR_TAKES_ONE_ARG
28803 echo "$as_me: failed program was:" >&5
28804 sed 's/^/| /' conftest.$ac_ext >&5
28806 { echo "$as_me:$LINENO: result: no" >&5
28807 echo "${ECHO_T}no" >&6; }
28811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28816 # These checks don't fail
28817 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28818 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
28819 if test "${ac_cv_c_bigendian+set}" = set; then
28820 echo $ECHO_N "(cached) $ECHO_C" >&6
28822 # See if sys/param.h defines the BYTE_ORDER macro.
28823 cat >conftest.$ac_ext <<_ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h. */
28829 #include <sys/types.h>
28830 #include <sys/param.h>
28835 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
28836 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
28837 bogus endian macros
28844 rm -f conftest.$ac_objext
28845 if { (ac_try="$ac_compile"
28846 case "(($ac_try" in
28847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28848 *) ac_try_echo=$ac_try;;
28850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28851 (eval "$ac_compile") 2>conftest.er1
28853 grep -v '^ *+' conftest.er1 >conftest.err
28855 cat conftest.err >&5
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } && {
28858 test -z "$ac_c_werror_flag" ||
28859 test ! -s conftest.err
28860 } && test -s conftest.$ac_objext; then
28861 # It does; now see whether it defined to BIG_ENDIAN or not.
28862 cat >conftest.$ac_ext <<_ACEOF
28865 cat confdefs.h >>conftest.$ac_ext
28866 cat >>conftest.$ac_ext <<_ACEOF
28867 /* end confdefs.h. */
28868 #include <sys/types.h>
28869 #include <sys/param.h>
28874 #if BYTE_ORDER != BIG_ENDIAN
28882 rm -f conftest.$ac_objext
28883 if { (ac_try="$ac_compile"
28884 case "(($ac_try" in
28885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886 *) ac_try_echo=$ac_try;;
28888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889 (eval "$ac_compile") 2>conftest.er1
28891 grep -v '^ *+' conftest.er1 >conftest.err
28893 cat conftest.err >&5
28894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895 (exit $ac_status); } && {
28896 test -z "$ac_c_werror_flag" ||
28897 test ! -s conftest.err
28898 } && test -s conftest.$ac_objext; then
28899 ac_cv_c_bigendian=yes
28901 echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28904 ac_cv_c_bigendian=no
28907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28909 echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28912 # It does not; compile a test program.
28913 if test "$cross_compiling" = yes; then
28914 # try to guess the endianness by grepping values into an object file
28915 ac_cv_c_bigendian=unknown
28916 cat >conftest.$ac_ext <<_ACEOF
28919 cat confdefs.h >>conftest.$ac_ext
28920 cat >>conftest.$ac_ext <<_ACEOF
28921 /* end confdefs.h. */
28922 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28923 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28924 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28925 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28926 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28927 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28931 _ascii (); _ebcdic ();
28936 rm -f conftest.$ac_objext
28937 if { (ac_try="$ac_compile"
28938 case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943 (eval "$ac_compile") 2>conftest.er1
28945 grep -v '^ *+' conftest.er1 >conftest.err
28947 cat conftest.err >&5
28948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28949 (exit $ac_status); } && {
28950 test -z "$ac_c_werror_flag" ||
28951 test ! -s conftest.err
28952 } && test -s conftest.$ac_objext; then
28953 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28954 ac_cv_c_bigendian=yes
28956 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28957 if test "$ac_cv_c_bigendian" = unknown; then
28958 ac_cv_c_bigendian=no
28960 # finding both strings is unlikely to happen, but who knows?
28961 ac_cv_c_bigendian=unknown
28965 echo "$as_me: failed program was:" >&5
28966 sed 's/^/| /' conftest.$ac_ext >&5
28971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28973 cat >conftest.$ac_ext <<_ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h. */
28979 $ac_includes_default
28984 /* Are we little or big endian? From Harbison&Steele. */
28988 char c[sizeof (long int)];
28991 return u.c[sizeof (long int) - 1] == 1;
28997 rm -f conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_link") 2>&5
29006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29008 { (case "(($ac_try" in
29009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29010 *) ac_try_echo=$ac_try;;
29012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29013 (eval "$ac_try") 2>&5
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; }; then
29017 ac_cv_c_bigendian=no
29019 echo "$as_me: program exited with status $ac_status" >&5
29020 echo "$as_me: failed program was:" >&5
29021 sed 's/^/| /' conftest.$ac_ext >&5
29023 ( exit $ac_status )
29024 ac_cv_c_bigendian=yes
29026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
29035 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
29036 case $ac_cv_c_bigendian in
29039 cat >>confdefs.h <<\_ACEOF
29040 #define WORDS_BIGENDIAN 1
29046 { { echo "$as_me:$LINENO: error: unknown endianness
29047 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
29048 echo "$as_me: error: unknown endianness
29049 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
29050 { (exit 1); exit 1; }; } ;;
29055 for ac_header in byteswap.h linux/compiler.h
29057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29062 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 ac_res=`eval echo '${'$as_ac_Header'}'`
29065 { echo "$as_me:$LINENO: result: $ac_res" >&5
29066 echo "${ECHO_T}$ac_res" >&6; }
29068 # Is the header compilable?
29069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29071 cat >conftest.$ac_ext <<_ACEOF
29074 cat confdefs.h >>conftest.$ac_ext
29075 cat >>conftest.$ac_ext <<_ACEOF
29076 /* end confdefs.h. */
29077 $ac_includes_default
29078 #include <$ac_header>
29080 rm -f conftest.$ac_objext
29081 if { (ac_try="$ac_compile"
29082 case "(($ac_try" in
29083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084 *) ac_try_echo=$ac_try;;
29086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087 (eval "$ac_compile") 2>conftest.er1
29089 grep -v '^ *+' conftest.er1 >conftest.err
29091 cat conftest.err >&5
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } && {
29094 test -z "$ac_c_werror_flag" ||
29095 test ! -s conftest.err
29096 } && test -s conftest.$ac_objext; then
29097 ac_header_compiler=yes
29099 echo "$as_me: failed program was:" >&5
29100 sed 's/^/| /' conftest.$ac_ext >&5
29102 ac_header_compiler=no
29105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29106 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29107 echo "${ECHO_T}$ac_header_compiler" >&6; }
29109 # Is the header present?
29110 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29112 cat >conftest.$ac_ext <<_ACEOF
29115 cat confdefs.h >>conftest.$ac_ext
29116 cat >>conftest.$ac_ext <<_ACEOF
29117 /* end confdefs.h. */
29118 #include <$ac_header>
29120 if { (ac_try="$ac_cpp conftest.$ac_ext"
29121 case "(($ac_try" in
29122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29123 *) ac_try_echo=$ac_try;;
29125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29126 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29128 grep -v '^ *+' conftest.er1 >conftest.err
29130 cat conftest.err >&5
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); } >/dev/null && {
29133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29134 test ! -s conftest.err
29136 ac_header_preproc=yes
29138 echo "$as_me: failed program was:" >&5
29139 sed 's/^/| /' conftest.$ac_ext >&5
29141 ac_header_preproc=no
29144 rm -f conftest.err conftest.$ac_ext
29145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29146 echo "${ECHO_T}$ac_header_preproc" >&6; }
29148 # So? What about this header?
29149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29155 ac_header_preproc=yes
29158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29178 eval "$as_ac_Header=\$ac_header_preproc"
29180 ac_res=`eval echo '${'$as_ac_Header'}'`
29181 { echo "$as_me:$LINENO: result: $ac_res" >&5
29182 echo "${ECHO_T}$ac_res" >&6; }
29185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29186 cat >>confdefs.h <<_ACEOF
29187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29196 for ac_func in getrusage sched_setscheduler
29198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29202 echo $ECHO_N "(cached) $ECHO_C" >&6
29204 cat >conftest.$ac_ext <<_ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29212 #define $ac_func innocuous_$ac_func
29214 /* System header to define __stub macros and hopefully few prototypes,
29215 which can conflict with char $ac_func (); below.
29216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29217 <limits.h> exists even on freestanding compilers. */
29220 # include <limits.h>
29222 # include <assert.h>
29227 /* Override any GCC internal prototype to avoid an error.
29228 Use char because int might match the return type of a GCC
29229 builtin and then its argument prototype would still apply. */
29234 /* The GNU C library defines this for functions which it implements
29235 to always fail with ENOSYS. Some functions are actually named
29236 something starting with __ and the normal name is an alias. */
29237 #if defined __stub_$ac_func || defined __stub___$ac_func
29244 return $ac_func ();
29249 rm -f conftest.$ac_objext conftest$ac_exeext
29250 if { (ac_try="$ac_link"
29251 case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_link") 2>conftest.er1
29258 grep -v '^ *+' conftest.er1 >conftest.err
29260 cat conftest.err >&5
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); } && {
29263 test -z "$ac_c_werror_flag" ||
29264 test ! -s conftest.err
29265 } && test -s conftest$ac_exeext &&
29266 $as_test_x conftest$ac_exeext; then
29267 eval "$as_ac_var=yes"
29269 echo "$as_me: failed program was:" >&5
29270 sed 's/^/| /' conftest.$ac_ext >&5
29272 eval "$as_ac_var=no"
29275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29276 conftest$ac_exeext conftest.$ac_ext
29278 ac_res=`eval echo '${'$as_ac_var'}'`
29279 { echo "$as_me:$LINENO: result: $ac_res" >&5
29280 echo "${ECHO_T}$ac_res" >&6; }
29281 if test `eval echo '${'$as_ac_var'}'` = yes; then
29282 cat >>confdefs.h <<_ACEOF
29283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29291 for ac_func in sigaction snprintf
29293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29297 echo $ECHO_N "(cached) $ECHO_C" >&6
29299 cat >conftest.$ac_ext <<_ACEOF
29302 cat confdefs.h >>conftest.$ac_ext
29303 cat >>conftest.$ac_ext <<_ACEOF
29304 /* end confdefs.h. */
29305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29307 #define $ac_func innocuous_$ac_func
29309 /* System header to define __stub macros and hopefully few prototypes,
29310 which can conflict with char $ac_func (); below.
29311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29312 <limits.h> exists even on freestanding compilers. */
29315 # include <limits.h>
29317 # include <assert.h>
29322 /* Override any GCC internal prototype to avoid an error.
29323 Use char because int might match the return type of a GCC
29324 builtin and then its argument prototype would still apply. */
29329 /* The GNU C library defines this for functions which it implements
29330 to always fail with ENOSYS. Some functions are actually named
29331 something starting with __ and the normal name is an alias. */
29332 #if defined __stub_$ac_func || defined __stub___$ac_func
29339 return $ac_func ();
29344 rm -f conftest.$ac_objext conftest$ac_exeext
29345 if { (ac_try="$ac_link"
29346 case "(($ac_try" in
29347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348 *) ac_try_echo=$ac_try;;
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351 (eval "$ac_link") 2>conftest.er1
29353 grep -v '^ *+' conftest.er1 >conftest.err
29355 cat conftest.err >&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } && {
29358 test -z "$ac_c_werror_flag" ||
29359 test ! -s conftest.err
29360 } && test -s conftest$ac_exeext &&
29361 $as_test_x conftest$ac_exeext; then
29362 eval "$as_ac_var=yes"
29364 echo "$as_me: failed program was:" >&5
29365 sed 's/^/| /' conftest.$ac_ext >&5
29367 eval "$as_ac_var=no"
29370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29371 conftest$ac_exeext conftest.$ac_ext
29373 ac_res=`eval echo '${'$as_ac_var'}'`
29374 { echo "$as_me:$LINENO: result: $ac_res" >&5
29375 echo "${ECHO_T}$ac_res" >&6; }
29376 if test `eval echo '${'$as_ac_var'}'` = yes; then
29377 cat >>confdefs.h <<_ACEOF
29378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29388 ac_cpp='$CPP $CPPFLAGS'
29389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29396 for ac_header in usb.h
29398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29400 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29405 ac_res=`eval echo '${'$as_ac_Header'}'`
29406 { echo "$as_me:$LINENO: result: $ac_res" >&5
29407 echo "${ECHO_T}$ac_res" >&6; }
29409 # Is the header compilable?
29410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29412 cat >conftest.$ac_ext <<_ACEOF
29415 cat confdefs.h >>conftest.$ac_ext
29416 cat >>conftest.$ac_ext <<_ACEOF
29417 /* end confdefs.h. */
29418 $ac_includes_default
29419 #include <$ac_header>
29421 rm -f conftest.$ac_objext
29422 if { (ac_try="$ac_compile"
29423 case "(($ac_try" in
29424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29425 *) ac_try_echo=$ac_try;;
29427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29428 (eval "$ac_compile") 2>conftest.er1
29430 grep -v '^ *+' conftest.er1 >conftest.err
29432 cat conftest.err >&5
29433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434 (exit $ac_status); } && {
29435 test -z "$ac_c_werror_flag" ||
29436 test ! -s conftest.err
29437 } && test -s conftest.$ac_objext; then
29438 ac_header_compiler=yes
29440 echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29443 ac_header_compiler=no
29446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29448 echo "${ECHO_T}$ac_header_compiler" >&6; }
29450 # Is the header present?
29451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29453 cat >conftest.$ac_ext <<_ACEOF
29456 cat confdefs.h >>conftest.$ac_ext
29457 cat >>conftest.$ac_ext <<_ACEOF
29458 /* end confdefs.h. */
29459 #include <$ac_header>
29461 if { (ac_try="$ac_cpp conftest.$ac_ext"
29462 case "(($ac_try" in
29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464 *) ac_try_echo=$ac_try;;
29466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29469 grep -v '^ *+' conftest.er1 >conftest.err
29471 cat conftest.err >&5
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); } >/dev/null && {
29474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29475 test ! -s conftest.err
29477 ac_header_preproc=yes
29479 echo "$as_me: failed program was:" >&5
29480 sed 's/^/| /' conftest.$ac_ext >&5
29482 ac_header_preproc=no
29485 rm -f conftest.err conftest.$ac_ext
29486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29487 echo "${ECHO_T}$ac_header_preproc" >&6; }
29489 # So? What about this header?
29490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29496 ac_header_preproc=yes
29499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29517 echo $ECHO_N "(cached) $ECHO_C" >&6
29519 eval "$as_ac_Header=\$ac_header_preproc"
29521 ac_res=`eval echo '${'$as_ac_Header'}'`
29522 { echo "$as_me:$LINENO: result: $ac_res" >&5
29523 echo "${ECHO_T}$ac_res" >&6; }
29526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29527 cat >>confdefs.h <<_ACEOF
29528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29533 { echo "$as_me:$LINENO: result: USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&5
29534 echo "${ECHO_T}USRP requires libusb. usb.h not found. See http://libusb.sf.net" >&6; }
29543 darwin*) LIBS="$LIBS -lIOKit" ;;
29546 { echo "$as_me:$LINENO: checking for library containing usb_bulk_write" >&5
29547 echo $ECHO_N "checking for library containing usb_bulk_write... $ECHO_C" >&6; }
29548 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29551 ac_func_search_save_LIBS=$LIBS
29552 cat >conftest.$ac_ext <<_ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h. */
29559 /* Override any GCC internal prototype to avoid an error.
29560 Use char because int might match the return type of a GCC
29561 builtin and then its argument prototype would still apply. */
29565 char usb_bulk_write ();
29569 return usb_bulk_write ();
29574 for ac_lib in '' usb; do
29575 if test -z "$ac_lib"; then
29576 ac_res="none required"
29579 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29581 rm -f conftest.$ac_objext conftest$ac_exeext
29582 if { (ac_try="$ac_link"
29583 case "(($ac_try" in
29584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29585 *) ac_try_echo=$ac_try;;
29587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29588 (eval "$ac_link") 2>conftest.er1
29590 grep -v '^ *+' conftest.er1 >conftest.err
29592 cat conftest.err >&5
29593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29594 (exit $ac_status); } && {
29595 test -z "$ac_c_werror_flag" ||
29596 test ! -s conftest.err
29597 } && test -s conftest$ac_exeext &&
29598 $as_test_x conftest$ac_exeext; then
29599 ac_cv_search_usb_bulk_write=$ac_res
29601 echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29609 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
29613 if test "${ac_cv_search_usb_bulk_write+set}" = set; then
29616 ac_cv_search_usb_bulk_write=no
29618 rm conftest.$ac_ext
29619 LIBS=$ac_func_search_save_LIBS
29621 { echo "$as_me:$LINENO: result: $ac_cv_search_usb_bulk_write" >&5
29622 echo "${ECHO_T}$ac_cv_search_usb_bulk_write" >&6; }
29623 ac_res=$ac_cv_search_usb_bulk_write
29624 if test "$ac_res" != no; then
29625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29629 { echo "$as_me:$LINENO: result: USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&5
29630 echo "${ECHO_T}USRP requires libusb. usb_bulk_write not found. See http://libusb.sf.net" >&6; }
29637 ac_cpp='$CPP $CPPFLAGS'
29638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29643 if test $libusbok = yes; then
29647 passed=no;{ echo "$as_me:$LINENO: result: Unable to configure USB dependency." >&5
29648 echo "${ECHO_T}Unable to configure USB dependency." >&6; }
29653 # Check whether --with-fusb-tech was given.
29654 if test "${with_fusb_tech+set}" = set; then
29655 withval=$with_fusb_tech; cf_with_fusb_tech="$withval"
29657 cf_with_fusb_tech="$host_os"
29662 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
29663 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
29664 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
29665 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
29666 echo $ECHO_N "(cached) $ECHO_C" >&6
29668 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
29669 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
29671 # Is the header compilable?
29672 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h usability" >&5
29673 echo $ECHO_N "checking linux/usbdevice_fs.h usability... $ECHO_C" >&6; }
29674 cat >conftest.$ac_ext <<_ACEOF
29677 cat confdefs.h >>conftest.$ac_ext
29678 cat >>conftest.$ac_ext <<_ACEOF
29679 /* end confdefs.h. */
29680 $ac_includes_default
29681 #include <linux/usbdevice_fs.h>
29683 rm -f conftest.$ac_objext
29684 if { (ac_try="$ac_compile"
29685 case "(($ac_try" in
29686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29687 *) ac_try_echo=$ac_try;;
29689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29690 (eval "$ac_compile") 2>conftest.er1
29692 grep -v '^ *+' conftest.er1 >conftest.err
29694 cat conftest.err >&5
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); } && {
29697 test -z "$ac_c_werror_flag" ||
29698 test ! -s conftest.err
29699 } && test -s conftest.$ac_objext; then
29700 ac_header_compiler=yes
29702 echo "$as_me: failed program was:" >&5
29703 sed 's/^/| /' conftest.$ac_ext >&5
29705 ac_header_compiler=no
29708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29710 echo "${ECHO_T}$ac_header_compiler" >&6; }
29712 # Is the header present?
29713 { echo "$as_me:$LINENO: checking linux/usbdevice_fs.h presence" >&5
29714 echo $ECHO_N "checking linux/usbdevice_fs.h presence... $ECHO_C" >&6; }
29715 cat >conftest.$ac_ext <<_ACEOF
29718 cat confdefs.h >>conftest.$ac_ext
29719 cat >>conftest.$ac_ext <<_ACEOF
29720 /* end confdefs.h. */
29721 #include <linux/usbdevice_fs.h>
29723 if { (ac_try="$ac_cpp conftest.$ac_ext"
29724 case "(($ac_try" in
29725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29726 *) ac_try_echo=$ac_try;;
29728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29731 grep -v '^ *+' conftest.er1 >conftest.err
29733 cat conftest.err >&5
29734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735 (exit $ac_status); } >/dev/null && {
29736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29737 test ! -s conftest.err
29739 ac_header_preproc=yes
29741 echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29744 ac_header_preproc=no
29747 rm -f conftest.err conftest.$ac_ext
29748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29749 echo "${ECHO_T}$ac_header_preproc" >&6; }
29751 # So? What about this header?
29752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29754 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
29755 echo "$as_me: WARNING: linux/usbdevice_fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&5
29757 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the compiler's result" >&2;}
29758 ac_header_preproc=yes
29761 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&5
29762 echo "$as_me: WARNING: linux/usbdevice_fs.h: present but cannot be compiled" >&2;}
29763 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&5
29764 echo "$as_me: WARNING: linux/usbdevice_fs.h: check for missing prerequisite headers?" >&2;}
29765 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&5
29766 echo "$as_me: WARNING: linux/usbdevice_fs.h: see the Autoconf documentation" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&5
29768 echo "$as_me: WARNING: linux/usbdevice_fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
29769 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&5
29770 echo "$as_me: WARNING: linux/usbdevice_fs.h: proceeding with the preprocessor's result" >&2;}
29771 { echo "$as_me:$LINENO: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&5
29772 echo "$as_me: WARNING: linux/usbdevice_fs.h: in the future, the compiler will take precedence" >&2;}
29776 { echo "$as_me:$LINENO: checking for linux/usbdevice_fs.h" >&5
29777 echo $ECHO_N "checking for linux/usbdevice_fs.h... $ECHO_C" >&6; }
29778 if test "${ac_cv_header_linux_usbdevice_fs_h+set}" = set; then
29779 echo $ECHO_N "(cached) $ECHO_C" >&6
29781 ac_cv_header_linux_usbdevice_fs_h=$ac_header_preproc
29783 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_usbdevice_fs_h" >&5
29784 echo "${ECHO_T}$ac_cv_header_linux_usbdevice_fs_h" >&6; }
29787 if test $ac_cv_header_linux_usbdevice_fs_h = yes; then
29788 x_have_usbdevice_fs_h=yes
29790 x_have_usbdevice_fs_h=no
29795 { echo "$as_me:$LINENO: checking for fast usb technique to use" >&5
29796 echo $ECHO_N "checking for fast usb technique to use... $ECHO_C" >&6; }
29797 case "$cf_with_fusb_tech" in
29798 linux*) if test x${x_have_usbdevice_fs_h} = xyes;
29805 darwin*) FUSB_TECH=darwin ;;
29806 cygwin*|win*|mingw*) FUSB_TECH=win32 ;;
29808 { echo "$as_me:$LINENO: checking for RA/WB" >&5
29809 echo $ECHO_N "checking for RA/WB... $ECHO_C" >&6; }
29810 cat >conftest.$ac_ext <<_ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h. */
29816 #include <dev/usb/usb.h>
29820 struct usb_bulk_ra_wb_opt o;
29821 ioctl(0, USB_SET_BULK_RA, &o);
29826 rm -f conftest.$ac_objext
29827 if { (ac_try="$ac_compile"
29828 case "(($ac_try" in
29829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29830 *) ac_try_echo=$ac_try;;
29832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29833 (eval "$ac_compile") 2>conftest.er1
29835 grep -v '^ *+' conftest.er1 >conftest.err
29837 cat conftest.err >&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); } && {
29840 test -z "$ac_c_werror_flag" ||
29841 test ! -s conftest.err
29842 } && test -s conftest.$ac_objext; then
29845 echo "$as_me: failed program was:" >&5
29846 sed 's/^/| /' conftest.$ac_ext >&5
29851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
29852 *) FUSB_TECH=generic ;;
29855 { echo "$as_me:$LINENO: result: $FUSB_TECH" >&5
29856 echo "${ECHO_T}$FUSB_TECH" >&6; }
29861 if test $FUSB_TECH = darwin; then
29862 FUSB_TECH_darwin_TRUE=
29863 FUSB_TECH_darwin_FALSE='#'
29865 FUSB_TECH_darwin_TRUE='#'
29866 FUSB_TECH_darwin_FALSE=
29871 if test $FUSB_TECH = win32; then
29872 FUSB_TECH_win32_TRUE=
29873 FUSB_TECH_win32_FALSE='#'
29875 FUSB_TECH_win32_TRUE='#'
29876 FUSB_TECH_win32_FALSE=
29881 if test $FUSB_TECH = generic; then
29882 FUSB_TECH_generic_TRUE=
29883 FUSB_TECH_generic_FALSE='#'
29885 FUSB_TECH_generic_TRUE='#'
29886 FUSB_TECH_generic_FALSE=
29891 if test $FUSB_TECH = linux; then
29892 FUSB_TECH_linux_TRUE=
29893 FUSB_TECH_linux_FALSE='#'
29895 FUSB_TECH_linux_TRUE='#'
29896 FUSB_TECH_linux_FALSE=
29901 if test $FUSB_TECH = ra_wb; then
29902 FUSB_TECH_ra_wb_TRUE=
29903 FUSB_TECH_ra_wb_FALSE='#'
29905 FUSB_TECH_ra_wb_TRUE='#'
29906 FUSB_TECH_ra_wb_FALSE=
29912 # Extract the first word of "sdcc", so it can be a program name with args.
29913 set dummy sdcc; ac_word=$2
29914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29916 if test "${ac_cv_prog_XCC+set}" = set; then
29917 echo $ECHO_N "(cached) $ECHO_C" >&6
29919 if test -n "$XCC"; then
29920 ac_cv_prog_XCC="$XCC" # Let the user override the test.
29922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29923 for as_dir in $PATH
29926 test -z "$as_dir" && as_dir=.
29927 for ac_exec_ext in '' $ac_executable_extensions; do
29928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29929 ac_cv_prog_XCC="sdcc -mmcs51 --no-xinit-opt"
29930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29937 test -z "$ac_cv_prog_XCC" && ac_cv_prog_XCC="no"
29940 XCC=$ac_cv_prog_XCC
29941 if test -n "$XCC"; then
29942 { echo "$as_me:$LINENO: result: $XCC" >&5
29943 echo "${ECHO_T}$XCC" >&6; }
29945 { echo "$as_me:$LINENO: result: no" >&5
29946 echo "${ECHO_T}no" >&6; }
29950 # Extract the first word of "asx8051", so it can be a program name with args.
29951 set dummy asx8051; ac_word=$2
29952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29954 if test "${ac_cv_prog_XAS+set}" = set; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29957 if test -n "$XAS"; then
29958 ac_cv_prog_XAS="$XAS" # Let the user override the test.
29960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29961 for as_dir in $PATH
29964 test -z "$as_dir" && as_dir=.
29965 for ac_exec_ext in '' $ac_executable_extensions; do
29966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29967 ac_cv_prog_XAS="asx8051 -plosgff"
29968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29975 test -z "$ac_cv_prog_XAS" && ac_cv_prog_XAS="no"
29978 XAS=$ac_cv_prog_XAS
29979 if test -n "$XAS"; then
29980 { echo "$as_me:$LINENO: result: $XAS" >&5
29981 echo "${ECHO_T}$XAS" >&6; }
29983 { echo "$as_me:$LINENO: result: no" >&5
29984 echo "${ECHO_T}no" >&6; }
29989 if test "$XCC" = "no" -o "$XAS" = "no" ; then
29990 { echo "$as_me:$LINENO: result: USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&5
29991 echo "${ECHO_T}USRP requires sdcc. sdcc not found. See http://sdcc.sf.net" >&6; }
29994 sdcc_version_min=2.4.0
29996 sdcc_version=`sdcc --version 2>&1 | \
29997 sed 's/\(SDCC.* \)\([0-9]*\.[0-9]*\.[0-9]*\)\( .*$\)/\2/'`
29999 { echo "$as_me:$LINENO: checking sdcc_version \"$sdcc_version\"" >&5
30000 echo $ECHO_N "checking sdcc_version \"$sdcc_version\"... $ECHO_C" >&6; }
30002 sdcc_major_version=`echo $sdcc_version | \
30003 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30004 sdcc_minor_version=`echo $sdcc_version | \
30005 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30006 sdcc_micro_version=`echo $sdcc_version | \
30007 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30009 sdcc_major_min=`echo $sdcc_version_min | \
30010 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30011 sdcc_minor_min=`echo $sdcc_version_min | \
30012 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30013 sdcc_micro_min=`echo $sdcc_version_min | \
30014 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30016 sdcc_version_proper=`expr \
30017 "$sdcc_major_version" \> "$sdcc_major_min" \| \
30018 "$sdcc_major_version" \= "$sdcc_major_min" \& \
30019 "$sdcc_minor_version" \> "$sdcc_minor_min" \| \
30020 "$sdcc_major_version" \= "$sdcc_major_min" \& \
30021 "$sdcc_minor_version" \= "$sdcc_minor_min" \& \
30022 "$sdcc_micro_version" \>= "$sdcc_micro_min" `
30024 if test "$sdcc_version_proper" = "1" ; then
30025 { echo "$as_me:$LINENO: result: $sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&5
30026 echo "${ECHO_T}$sdcc_major_version.$sdcc_minor_version.$sdcc_micro_version" >&6; }
30029 { echo "$as_me:$LINENO: result: USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&5
30030 echo "${ECHO_T}USRP requires sdcc >= $sdcc_version_min. sdcc not found. See http://sdcc.sf.net\"" >&6; }
30037 if test $sdccok = yes; then
30040 passed=no;{ echo "$as_me:$LINENO: result: Unable to find firmware compiler." >&5
30041 echo "${ECHO_T}Unable to find firmware compiler." >&6; }
30046 if test x$passed = xno; then
30047 skipped_dirs="$skipped_dirs usrp"
30048 if test x$enable_usrp = xyes; then
30049 { { echo "$as_me:$LINENO: error: Component usrp has errors, stopping." >&5
30050 echo "$as_me: error: Component usrp has errors, stopping." >&2;}
30051 { (exit 1); exit 1; }; }
30053 { echo "$as_me:$LINENO: result: Not building component usrp." >&5
30054 echo "${ECHO_T}Not building component usrp." >&6; }
30057 if test x$enable_usrp != xno; then
30059 build_dirs="$build_dirs usrp"
30060 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, building." >&5
30061 echo "${ECHO_T}Component usrp passed configuration checks, building." >&6; }
30063 skipped_dirs="$skipped_dirs usrp"
30064 { echo "$as_me:$LINENO: result: Component usrp passed configuration checks, but not building." >&5
30065 echo "${ECHO_T}Component usrp passed configuration checks, but not building." >&6; }
30072 # Check whether --enable-gr-usrp was given.
30073 if test "${enable_gr_usrp+set}" = set; then
30074 enableval=$enable_gr_usrp;
30076 enable_gr_usrp=$enable_all_components
30081 ac_config_files="$ac_config_files gr-usrp/Makefile gr-usrp/src/Makefile gr-usrp/src/run_tests"
30085 # Don't do gr-usrp if usrp skipped
30086 # There *has* to be a better way to check if a value is in a string
30087 for dir in $skipped_dirs
30089 if test x$dir = xusrp; then
30090 { echo "$as_me:$LINENO: result: Component gr-usrp requires usrp, which is not being built." >&5
30091 echo "${ECHO_T}Component gr-usrp requires usrp, which is not being built." >&6; }
30097 if test x$passed = xno; then
30098 skipped_dirs="$skipped_dirs gr-usrp"
30099 if test x$enable_gr_usrp = xyes; then
30100 { { echo "$as_me:$LINENO: error: Component gr-usrp has errors, stopping." >&5
30101 echo "$as_me: error: Component gr-usrp has errors, stopping." >&2;}
30102 { (exit 1); exit 1; }; }
30104 { echo "$as_me:$LINENO: result: Not building component gr-usrp." >&5
30105 echo "${ECHO_T}Not building component gr-usrp." >&6; }
30108 if test x$enable_gr_usrp != xno; then
30110 ac_config_commands="$ac_config_commands run_tests_usrp"
30113 build_dirs="$build_dirs gr-usrp"
30114 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, building." >&5
30115 echo "${ECHO_T}Component gr-usrp passed configuration checks, building." >&6; }
30117 skipped_dirs="$skipped_dirs gr-usrp"
30118 { echo "$as_me:$LINENO: result: Component gr-usrp passed configuration checks, but not building." >&5
30119 echo "${ECHO_T}Component gr-usrp passed configuration checks, but not building." >&6; }
30125 # Check whether --enable-gr-audio-alsa was given.
30126 if test "${enable_gr_audio_alsa+set}" = set; then
30127 enableval=$enable_gr_audio_alsa;
30129 enable_gr_audio_alsa=$enable_all_components
30134 ac_config_files="$ac_config_files gr-audio-alsa/Makefile gr-audio-alsa/src/Makefile gr-audio-alsa/src/run_tests"
30141 if test -z "$PKG_CONFIG"; then
30142 # Extract the first word of "pkg-config", so it can be a program name with args.
30143 set dummy pkg-config; ac_word=$2
30144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30146 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30147 echo $ECHO_N "(cached) $ECHO_C" >&6
30149 case $PKG_CONFIG in
30151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30155 for as_dir in $PATH
30158 test -z "$as_dir" && as_dir=.
30159 for ac_exec_ext in '' $ac_executable_extensions; do
30160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30169 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30173 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30174 if test -n "$PKG_CONFIG"; then
30175 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30176 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30178 { echo "$as_me:$LINENO: result: no" >&5
30179 echo "${ECHO_T}no" >&6; }
30185 if test "$PKG_CONFIG" = "no" ; then
30186 echo "*** The pkg-config script could not be found. Make sure it is"
30187 echo "*** in your path, or set the PKG_CONFIG environment variable"
30188 echo "*** to the full path to pkg-config."
30189 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30191 if test -z "$PKG_CONFIG_PATH"; then
30192 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
30195 PKG_CONFIG_MIN_VERSION=0.9.0
30196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30197 { echo "$as_me:$LINENO: checking for alsa >= 0.9" >&5
30198 echo $ECHO_N "checking for alsa >= 0.9... $ECHO_C" >&6; }
30200 if $PKG_CONFIG --exists "alsa >= 0.9" ; then
30201 { echo "$as_me:$LINENO: result: yes" >&5
30202 echo "${ECHO_T}yes" >&6; }
30205 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
30206 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
30207 ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa >= 0.9"`
30208 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
30209 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
30211 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
30212 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
30213 ALSA_LIBS=`$PKG_CONFIG --libs "alsa >= 0.9"`
30214 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
30215 echo "${ECHO_T}$ALSA_LIBS" >&6; }
30217 { echo "$as_me:$LINENO: checking ALSA_INCLUDEDIR" >&5
30218 echo $ECHO_N "checking ALSA_INCLUDEDIR... $ECHO_C" >&6; }
30219 ALSA_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "alsa >= 0.9"`
30220 { echo "$as_me:$LINENO: result: $ALSA_INCLUDEDIR" >&5
30221 echo "${ECHO_T}$ALSA_INCLUDEDIR" >&6; }
30225 ## If we have a custom action on failure, don't print errors, but
30226 ## do set a variable so people can do so.
30227 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa >= 0.9"`
30235 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30236 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30240 if test $succeeded = yes; then
30243 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-alsa requires package alsa, not found." >&5
30244 echo "${ECHO_T}gr-audio-alsa requires package alsa, not found." >&6; }
30249 if test x$passed = xno; then
30250 skipped_dirs="$skipped_dirs gr-audio-alsa"
30251 if test x$enable_gr_audio_alsa = xyes; then
30252 { { echo "$as_me:$LINENO: error: Component gr-audio-alsa has errors, stopping." >&5
30253 echo "$as_me: error: Component gr-audio-alsa has errors, stopping." >&2;}
30254 { (exit 1); exit 1; }; }
30256 { echo "$as_me:$LINENO: result: Not building component gr-audio-alsa." >&5
30257 echo "${ECHO_T}Not building component gr-audio-alsa." >&6; }
30260 if test x$enable_gr_audio_alsa != xno; then
30263 ac_config_commands="$ac_config_commands run_tests_alsa"
30266 build_dirs="$build_dirs gr-audio-alsa"
30267 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, building." >&5
30268 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, building." >&6; }
30270 skipped_dirs="$skipped_dirs gr-audio-alsa"
30271 { echo "$as_me:$LINENO: result: Component gr-audio-alsa passed configuration checks, but not building." >&5
30272 echo "${ECHO_T}Component gr-audio-alsa passed configuration checks, but not building." >&6; }
30279 # Check whether --enable-gr-audio-jack was given.
30280 if test "${enable_gr_audio_jack+set}" = set; then
30281 enableval=$enable_gr_audio_jack;
30283 enable_gr_audio_jack=$enable_all_components
30288 ac_config_files="$ac_config_files gr-audio-jack/Makefile gr-audio-jack/src/Makefile gr-audio-jack/src/run_tests"
30295 if test -z "$PKG_CONFIG"; then
30296 # Extract the first word of "pkg-config", so it can be a program name with args.
30297 set dummy pkg-config; ac_word=$2
30298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 case $PKG_CONFIG in
30305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30309 for as_dir in $PATH
30312 test -z "$as_dir" && as_dir=.
30313 for ac_exec_ext in '' $ac_executable_extensions; do
30314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30328 if test -n "$PKG_CONFIG"; then
30329 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30330 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30332 { echo "$as_me:$LINENO: result: no" >&5
30333 echo "${ECHO_T}no" >&6; }
30339 if test "$PKG_CONFIG" = "no" ; then
30340 echo "*** The pkg-config script could not be found. Make sure it is"
30341 echo "*** in your path, or set the PKG_CONFIG environment variable"
30342 echo "*** to the full path to pkg-config."
30343 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30345 if test -z "$PKG_CONFIG_PATH"; then
30346 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
30349 PKG_CONFIG_MIN_VERSION=0.9.0
30350 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30351 { echo "$as_me:$LINENO: checking for jack >= 0.8" >&5
30352 echo $ECHO_N "checking for jack >= 0.8... $ECHO_C" >&6; }
30354 if $PKG_CONFIG --exists "jack >= 0.8" ; then
30355 { echo "$as_me:$LINENO: result: yes" >&5
30356 echo "${ECHO_T}yes" >&6; }
30359 { echo "$as_me:$LINENO: checking JACK_CFLAGS" >&5
30360 echo $ECHO_N "checking JACK_CFLAGS... $ECHO_C" >&6; }
30361 JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.8"`
30362 { echo "$as_me:$LINENO: result: $JACK_CFLAGS" >&5
30363 echo "${ECHO_T}$JACK_CFLAGS" >&6; }
30365 { echo "$as_me:$LINENO: checking JACK_LIBS" >&5
30366 echo $ECHO_N "checking JACK_LIBS... $ECHO_C" >&6; }
30367 JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.8"`
30368 { echo "$as_me:$LINENO: result: $JACK_LIBS" >&5
30369 echo "${ECHO_T}$JACK_LIBS" >&6; }
30371 { echo "$as_me:$LINENO: checking JACK_INCLUDEDIR" >&5
30372 echo $ECHO_N "checking JACK_INCLUDEDIR... $ECHO_C" >&6; }
30373 JACK_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "jack >= 0.8"`
30374 { echo "$as_me:$LINENO: result: $JACK_INCLUDEDIR" >&5
30375 echo "${ECHO_T}$JACK_INCLUDEDIR" >&6; }
30379 ## If we have a custom action on failure, don't print errors, but
30380 ## do set a variable so people can do so.
30381 JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.8"`
30389 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30390 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30394 if test $succeeded = yes; then
30397 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-jack requires package jack, not found." >&5
30398 echo "${ECHO_T}gr-audio-jack requires package jack, not found." >&6; }
30403 if test x$passed = xno; then
30404 skipped_dirs="$skipped_dirs gr-audio-jack"
30405 if test x$enable_gr_audio_jack = xyes; then
30406 { { echo "$as_me:$LINENO: error: Component gr-audio-jack has errors, stopping." >&5
30407 echo "$as_me: error: Component gr-audio-jack has errors, stopping." >&2;}
30408 { (exit 1); exit 1; }; }
30410 { echo "$as_me:$LINENO: result: Not building component gr-audio-jack." >&5
30411 echo "${ECHO_T}Not building component gr-audio-jack." >&6; }
30414 if test x$enable_gr_audio_jack != xno; then
30417 ac_config_commands="$ac_config_commands run_tests_jack"
30420 build_dirs="$build_dirs gr-audio-jack"
30421 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, building." >&5
30422 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, building." >&6; }
30424 skipped_dirs="$skipped_dirs gr-audio-jack"
30425 { echo "$as_me:$LINENO: result: Component gr-audio-jack passed configuration checks, but not building." >&5
30426 echo "${ECHO_T}Component gr-audio-jack passed configuration checks, but not building." >&6; }
30433 # Check whether --enable-gr-audio-oss was given.
30434 if test "${enable_gr_audio_oss+set}" = set; then
30435 enableval=$enable_gr_audio_oss;
30437 enable_gr_audio_oss=$enable_all_components
30442 ac_config_files="$ac_config_files gr-audio-oss/Makefile gr-audio-oss/src/Makefile gr-audio-oss/src/run_tests"
30449 { echo "$as_me:$LINENO: checking for main in -lossaudio" >&5
30450 echo $ECHO_N "checking for main in -lossaudio... $ECHO_C" >&6; }
30451 if test "${ac_cv_lib_ossaudio_main+set}" = set; then
30452 echo $ECHO_N "(cached) $ECHO_C" >&6
30454 ac_check_lib_save_LIBS=$LIBS
30455 LIBS="-lossaudio $LIBS"
30456 cat >conftest.$ac_ext <<_ACEOF
30459 cat confdefs.h >>conftest.$ac_ext
30460 cat >>conftest.$ac_ext <<_ACEOF
30461 /* end confdefs.h. */
30472 rm -f conftest.$ac_objext conftest$ac_exeext
30473 if { (ac_try="$ac_link"
30474 case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_link") 2>conftest.er1
30481 grep -v '^ *+' conftest.er1 >conftest.err
30483 cat conftest.err >&5
30484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30485 (exit $ac_status); } && {
30486 test -z "$ac_c_werror_flag" ||
30487 test ! -s conftest.err
30488 } && test -s conftest$ac_exeext &&
30489 $as_test_x conftest$ac_exeext; then
30490 ac_cv_lib_ossaudio_main=yes
30492 echo "$as_me: failed program was:" >&5
30493 sed 's/^/| /' conftest.$ac_ext >&5
30495 ac_cv_lib_ossaudio_main=no
30498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30499 conftest$ac_exeext conftest.$ac_ext
30500 LIBS=$ac_check_lib_save_LIBS
30502 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_main" >&5
30503 echo "${ECHO_T}$ac_cv_lib_ossaudio_main" >&6; }
30504 if test $ac_cv_lib_ossaudio_main = yes; then
30505 cat >>confdefs.h <<_ACEOF
30506 #define HAVE_LIBOSSAUDIO 1
30509 LIBS="-lossaudio $LIBS"
30512 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires library ossaudio, not found." >&5
30513 echo "${ECHO_T}gr-audio-oss requires library ossaudio, not found." >&6; }
30515 ac_cv_lib_ossaudio=ac_cv_lib_ossaudio_main
30517 if test x$passed != xno; then
30518 OSS_LIBS=-lossaudio
30519 { echo "$as_me:$LINENO: result: Using OSS library $OSS_LIBS" >&5
30520 echo "${ECHO_T}Using OSS library $OSS_LIBS" >&6; }
30524 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
30525 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
30526 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
30527 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
30528 echo $ECHO_N "(cached) $ECHO_C" >&6
30530 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
30531 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
30533 # Is the header compilable?
30534 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
30535 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
30536 cat >conftest.$ac_ext <<_ACEOF
30539 cat confdefs.h >>conftest.$ac_ext
30540 cat >>conftest.$ac_ext <<_ACEOF
30541 /* end confdefs.h. */
30542 $ac_includes_default
30543 #include <sys/soundcard.h>
30545 rm -f conftest.$ac_objext
30546 if { (ac_try="$ac_compile"
30547 case "(($ac_try" in
30548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549 *) ac_try_echo=$ac_try;;
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_compile") 2>conftest.er1
30554 grep -v '^ *+' conftest.er1 >conftest.err
30556 cat conftest.err >&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); } && {
30559 test -z "$ac_c_werror_flag" ||
30560 test ! -s conftest.err
30561 } && test -s conftest.$ac_objext; then
30562 ac_header_compiler=yes
30564 echo "$as_me: failed program was:" >&5
30565 sed 's/^/| /' conftest.$ac_ext >&5
30567 ac_header_compiler=no
30570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30572 echo "${ECHO_T}$ac_header_compiler" >&6; }
30574 # Is the header present?
30575 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
30576 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
30577 cat >conftest.$ac_ext <<_ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h. */
30583 #include <sys/soundcard.h>
30585 if { (ac_try="$ac_cpp conftest.$ac_ext"
30586 case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30593 grep -v '^ *+' conftest.er1 >conftest.err
30595 cat conftest.err >&5
30596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30597 (exit $ac_status); } >/dev/null && {
30598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30599 test ! -s conftest.err
30601 ac_header_preproc=yes
30603 echo "$as_me: failed program was:" >&5
30604 sed 's/^/| /' conftest.$ac_ext >&5
30606 ac_header_preproc=no
30609 rm -f conftest.err conftest.$ac_ext
30610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30611 echo "${ECHO_T}$ac_header_preproc" >&6; }
30613 # So? What about this header?
30614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30616 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
30617 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
30618 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
30619 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
30620 ac_header_preproc=yes
30623 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
30624 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
30625 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
30626 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
30627 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
30628 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
30629 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
30630 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
30632 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
30633 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
30634 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
30638 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
30639 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
30640 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
30641 echo $ECHO_N "(cached) $ECHO_C" >&6
30643 ac_cv_header_sys_soundcard_h=$ac_header_preproc
30645 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
30646 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
30649 if test $ac_cv_header_sys_soundcard_h = yes; then
30652 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-oss requires sys/soundcard.h, not found." >&5
30653 echo "${ECHO_T}gr-audio-oss requires sys/soundcard.h, not found." >&6; }
30660 if test x$passed = xno; then
30661 skipped_dirs="$skipped_dirs gr-audio-oss"
30662 if test x$enable_gr_audio_oss = xyes; then
30663 { { echo "$as_me:$LINENO: error: Component gr-audio-oss has errors, stopping." >&5
30664 echo "$as_me: error: Component gr-audio-oss has errors, stopping." >&2;}
30665 { (exit 1); exit 1; }; }
30667 { echo "$as_me:$LINENO: result: Not building component gr-audio-oss." >&5
30668 echo "${ECHO_T}Not building component gr-audio-oss." >&6; }
30671 if test x$enable_gr_audio_oss != xno; then
30674 ac_config_commands="$ac_config_commands run_tests_oss"
30677 build_dirs="$build_dirs gr-audio-oss"
30678 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, building." >&5
30679 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, building." >&6; }
30681 skipped_dirs="$skipped_dirs gr-audio-oss"
30682 { echo "$as_me:$LINENO: result: Component gr-audio-oss passed configuration checks, but not building." >&5
30683 echo "${ECHO_T}Component gr-audio-oss passed configuration checks, but not building." >&6; }
30690 # Check whether --enable-gr-audio-osx was given.
30691 if test "${enable_gr_audio_osx+set}" = set; then
30692 enableval=$enable_gr_audio_osx;
30694 enable_gr_audio_osx=$enable_all_components
30699 ac_config_files="$ac_config_files gr-audio-osx/Makefile gr-audio-osx/src/Makefile gr-audio-osx/src/run_tests"
30709 { echo "$as_me:$LINENO: result: gr-audio-osx requires darwin or MacOS X." >&5
30710 echo "${ECHO_T}gr-audio-osx requires darwin or MacOS X." >&6; }
30714 for ac_header in AudioUnit/AudioUnit.h
30716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30721 echo $ECHO_N "(cached) $ECHO_C" >&6
30723 ac_res=`eval echo '${'$as_ac_Header'}'`
30724 { echo "$as_me:$LINENO: result: $ac_res" >&5
30725 echo "${ECHO_T}$ac_res" >&6; }
30727 # Is the header compilable?
30728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30730 cat >conftest.$ac_ext <<_ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h. */
30736 $ac_includes_default
30737 #include <$ac_header>
30739 rm -f conftest.$ac_objext
30740 if { (ac_try="$ac_compile"
30741 case "(($ac_try" in
30742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30743 *) ac_try_echo=$ac_try;;
30745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30746 (eval "$ac_compile") 2>conftest.er1
30748 grep -v '^ *+' conftest.er1 >conftest.err
30750 cat conftest.err >&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); } && {
30753 test -z "$ac_c_werror_flag" ||
30754 test ! -s conftest.err
30755 } && test -s conftest.$ac_objext; then
30756 ac_header_compiler=yes
30758 echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30761 ac_header_compiler=no
30764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30766 echo "${ECHO_T}$ac_header_compiler" >&6; }
30768 # Is the header present?
30769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30771 cat >conftest.$ac_ext <<_ACEOF
30774 cat confdefs.h >>conftest.$ac_ext
30775 cat >>conftest.$ac_ext <<_ACEOF
30776 /* end confdefs.h. */
30777 #include <$ac_header>
30779 if { (ac_try="$ac_cpp conftest.$ac_ext"
30780 case "(($ac_try" in
30781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30782 *) ac_try_echo=$ac_try;;
30784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30787 grep -v '^ *+' conftest.er1 >conftest.err
30789 cat conftest.err >&5
30790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30791 (exit $ac_status); } >/dev/null && {
30792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30793 test ! -s conftest.err
30795 ac_header_preproc=yes
30797 echo "$as_me: failed program was:" >&5
30798 sed 's/^/| /' conftest.$ac_ext >&5
30800 ac_header_preproc=no
30803 rm -f conftest.err conftest.$ac_ext
30804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30805 echo "${ECHO_T}$ac_header_preproc" >&6; }
30807 # So? What about this header?
30808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30814 ac_header_preproc=yes
30817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30835 echo $ECHO_N "(cached) $ECHO_C" >&6
30837 eval "$as_ac_Header=\$ac_header_preproc"
30839 ac_res=`eval echo '${'$as_ac_Header'}'`
30840 { echo "$as_me:$LINENO: result: $ac_res" >&5
30841 echo "${ECHO_T}$ac_res" >&6; }
30844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30845 cat >>confdefs.h <<_ACEOF
30846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30850 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&5
30851 echo "${ECHO_T}gr-audio-osx requires AudioUnit/AudioUnit.h, which is available on MacOS X." >&6; }
30858 for ac_header in AudioToolbox/AudioToolbox.h
30860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30865 echo $ECHO_N "(cached) $ECHO_C" >&6
30867 ac_res=`eval echo '${'$as_ac_Header'}'`
30868 { echo "$as_me:$LINENO: result: $ac_res" >&5
30869 echo "${ECHO_T}$ac_res" >&6; }
30871 # Is the header compilable?
30872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30874 cat >conftest.$ac_ext <<_ACEOF
30877 cat confdefs.h >>conftest.$ac_ext
30878 cat >>conftest.$ac_ext <<_ACEOF
30879 /* end confdefs.h. */
30880 $ac_includes_default
30881 #include <$ac_header>
30883 rm -f conftest.$ac_objext
30884 if { (ac_try="$ac_compile"
30885 case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_compile") 2>conftest.er1
30892 grep -v '^ *+' conftest.er1 >conftest.err
30894 cat conftest.err >&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } && {
30897 test -z "$ac_c_werror_flag" ||
30898 test ! -s conftest.err
30899 } && test -s conftest.$ac_objext; then
30900 ac_header_compiler=yes
30902 echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30905 ac_header_compiler=no
30908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30910 echo "${ECHO_T}$ac_header_compiler" >&6; }
30912 # Is the header present?
30913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30915 cat >conftest.$ac_ext <<_ACEOF
30918 cat confdefs.h >>conftest.$ac_ext
30919 cat >>conftest.$ac_ext <<_ACEOF
30920 /* end confdefs.h. */
30921 #include <$ac_header>
30923 if { (ac_try="$ac_cpp conftest.$ac_ext"
30924 case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30931 grep -v '^ *+' conftest.er1 >conftest.err
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30935 (exit $ac_status); } >/dev/null && {
30936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30937 test ! -s conftest.err
30939 ac_header_preproc=yes
30941 echo "$as_me: failed program was:" >&5
30942 sed 's/^/| /' conftest.$ac_ext >&5
30944 ac_header_preproc=no
30947 rm -f conftest.err conftest.$ac_ext
30948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30949 echo "${ECHO_T}$ac_header_preproc" >&6; }
30951 # So? What about this header?
30952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30958 ac_header_preproc=yes
30961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30979 echo $ECHO_N "(cached) $ECHO_C" >&6
30981 eval "$as_ac_Header=\$ac_header_preproc"
30983 ac_res=`eval echo '${'$as_ac_Header'}'`
30984 { echo "$as_me:$LINENO: result: $ac_res" >&5
30985 echo "${ECHO_T}$ac_res" >&6; }
30988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30989 cat >>confdefs.h <<_ACEOF
30990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30994 audiounitok=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&5
30995 echo "${ECHO_T}gr-audio-osx requires AudioToolbox/AudioToolbox.h, which is available on MacOS X." >&6; }
31001 if test $audiounitok = yes; then
31004 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-osx requires AudioUnit, not found." >&5
31005 echo "${ECHO_T}gr-audio-osx requires AudioUnit, not found." >&6; }
31010 if test x$passed = xno; then
31011 skipped_dirs="$skipped_dirs gr-audio-osx"
31012 if test x$enable_gr_audio_osx = xyes; then
31013 { { echo "$as_me:$LINENO: error: Component gr-audio-osx has errors, stopping." >&5
31014 echo "$as_me: error: Component gr-audio-osx has errors, stopping." >&2;}
31015 { (exit 1); exit 1; }; }
31017 { echo "$as_me:$LINENO: result: Not building component gr-audio-osx." >&5
31018 echo "${ECHO_T}Not building component gr-audio-osx." >&6; }
31021 if test x$enable_gr_audio_osx != xno; then
31023 ac_config_commands="$ac_config_commands run_tests_osx"
31026 build_dirs="$build_dirs gr-audio-osx"
31027 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, building." >&5
31028 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, building." >&6; }
31030 skipped_dirs="$skipped_dirs gr-audio-osx"
31031 { echo "$as_me:$LINENO: result: Component gr-audio-osx passed configuration checks, but not building." >&5
31032 echo "${ECHO_T}Component gr-audio-osx passed configuration checks, but not building." >&6; }
31039 # Check whether --enable-gr-audio-portaudio was given.
31040 if test "${enable_gr_audio_portaudio+set}" = set; then
31041 enableval=$enable_gr_audio_portaudio;
31043 enable_gr_audio_portaudio=$enable_all_components
31048 ac_config_files="$ac_config_files gr-audio-portaudio/Makefile gr-audio-portaudio/src/Makefile gr-audio-portaudio/src/run_tests"
31055 if test -z "$PKG_CONFIG"; then
31056 # Extract the first word of "pkg-config", so it can be a program name with args.
31057 set dummy pkg-config; ac_word=$2
31058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
31061 echo $ECHO_N "(cached) $ECHO_C" >&6
31063 case $PKG_CONFIG in
31065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
31068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31069 for as_dir in $PATH
31072 test -z "$as_dir" && as_dir=.
31073 for ac_exec_ext in '' $ac_executable_extensions; do
31074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31075 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31083 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
31087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
31088 if test -n "$PKG_CONFIG"; then
31089 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
31090 echo "${ECHO_T}$PKG_CONFIG" >&6; }
31092 { echo "$as_me:$LINENO: result: no" >&5
31093 echo "${ECHO_T}no" >&6; }
31099 if test "$PKG_CONFIG" = "no" ; then
31100 echo "*** The pkg-config script could not be found. Make sure it is"
31101 echo "*** in your path, or set the PKG_CONFIG environment variable"
31102 echo "*** to the full path to pkg-config."
31103 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
31105 if test -z "$PKG_CONFIG_PATH"; then
31106 export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
31109 PKG_CONFIG_MIN_VERSION=0.9.0
31110 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
31111 { echo "$as_me:$LINENO: checking for portaudio-2.0 >= 19" >&5
31112 echo $ECHO_N "checking for portaudio-2.0 >= 19... $ECHO_C" >&6; }
31114 if $PKG_CONFIG --exists "portaudio-2.0 >= 19" ; then
31115 { echo "$as_me:$LINENO: result: yes" >&5
31116 echo "${ECHO_T}yes" >&6; }
31119 { echo "$as_me:$LINENO: checking PORTAUDIO_CFLAGS" >&5
31120 echo $ECHO_N "checking PORTAUDIO_CFLAGS... $ECHO_C" >&6; }
31121 PORTAUDIO_CFLAGS=`$PKG_CONFIG --cflags "portaudio-2.0 >= 19"`
31122 { echo "$as_me:$LINENO: result: $PORTAUDIO_CFLAGS" >&5
31123 echo "${ECHO_T}$PORTAUDIO_CFLAGS" >&6; }
31125 { echo "$as_me:$LINENO: checking PORTAUDIO_LIBS" >&5
31126 echo $ECHO_N "checking PORTAUDIO_LIBS... $ECHO_C" >&6; }
31127 PORTAUDIO_LIBS=`$PKG_CONFIG --libs "portaudio-2.0 >= 19"`
31128 { echo "$as_me:$LINENO: result: $PORTAUDIO_LIBS" >&5
31129 echo "${ECHO_T}$PORTAUDIO_LIBS" >&6; }
31131 { echo "$as_me:$LINENO: checking PORTAUDIO_INCLUDEDIR" >&5
31132 echo $ECHO_N "checking PORTAUDIO_INCLUDEDIR... $ECHO_C" >&6; }
31133 PORTAUDIO_INCLUDEDIR=`$PKG_CONFIG --variable=includedir "portaudio-2.0 >= 19"`
31134 { echo "$as_me:$LINENO: result: $PORTAUDIO_INCLUDEDIR" >&5
31135 echo "${ECHO_T}$PORTAUDIO_INCLUDEDIR" >&6; }
31137 PORTAUDIO_CFLAGS=""
31139 ## If we have a custom action on failure, don't print errors, but
31140 ## do set a variable so people can do so.
31141 PORTAUDIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "portaudio-2.0 >= 19"`
31149 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
31150 echo "*** See http://www.freedesktop.org/software/pkgconfig"
31154 if test $succeeded = yes; then
31157 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-portaudio requires package portaudio, not found." >&5
31158 echo "${ECHO_T}gr-audio-portaudio requires package portaudio, not found." >&6; }
31163 if test x$passed = xno; then
31164 skipped_dirs="$skipped_dirs gr-audio-portaudio"
31165 if test x$enable_gr_audio_portaudio = xyes; then
31166 { { echo "$as_me:$LINENO: error: Component gr-audio-portaudio has errors, stopping." >&5
31167 echo "$as_me: error: Component gr-audio-portaudio has errors, stopping." >&2;}
31168 { (exit 1); exit 1; }; }
31170 { echo "$as_me:$LINENO: result: Not building component gr-audio-portaudio." >&5
31171 echo "${ECHO_T}Not building component gr-audio-portaudio." >&6; }
31174 if test x$enable_gr_audio_portaudio != xno; then
31177 ac_config_commands="$ac_config_commands run_tests_portaudio"
31180 build_dirs="$build_dirs gr-audio-portaudio"
31181 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, building." >&5
31182 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, building." >&6; }
31184 skipped_dirs="$skipped_dirs gr-audio-portaudio"
31185 { echo "$as_me:$LINENO: result: Component gr-audio-portaudio passed configuration checks, but not building." >&5
31186 echo "${ECHO_T}Component gr-audio-portaudio passed configuration checks, but not building." >&6; }
31193 # Check whether --enable-gr-audio-windows was given.
31194 if test "${enable_gr_audio_windows+set}" = set; then
31195 enableval=$enable_gr_audio_windows;
31197 enable_gr_audio_windows=$enable_all_components
31202 ac_config_files="$ac_config_files gr-audio-windows/Makefile gr-audio-windows/src/Makefile gr-audio-windows/src/run_tests"
31207 { echo "$as_me:$LINENO: checking for main in -lwinmm" >&5
31208 echo $ECHO_N "checking for main in -lwinmm... $ECHO_C" >&6; }
31209 if test "${ac_cv_lib_winmm_main+set}" = set; then
31210 echo $ECHO_N "(cached) $ECHO_C" >&6
31212 ac_check_lib_save_LIBS=$LIBS
31213 LIBS="-lwinmm $LIBS"
31214 cat >conftest.$ac_ext <<_ACEOF
31217 cat confdefs.h >>conftest.$ac_ext
31218 cat >>conftest.$ac_ext <<_ACEOF
31219 /* end confdefs.h. */
31230 rm -f conftest.$ac_objext conftest$ac_exeext
31231 if { (ac_try="$ac_link"
31232 case "(($ac_try" in
31233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31234 *) ac_try_echo=$ac_try;;
31236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31237 (eval "$ac_link") 2>conftest.er1
31239 grep -v '^ *+' conftest.er1 >conftest.err
31241 cat conftest.err >&5
31242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31243 (exit $ac_status); } && {
31244 test -z "$ac_c_werror_flag" ||
31245 test ! -s conftest.err
31246 } && test -s conftest$ac_exeext &&
31247 $as_test_x conftest$ac_exeext; then
31248 ac_cv_lib_winmm_main=yes
31250 echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31253 ac_cv_lib_winmm_main=no
31256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31257 conftest$ac_exeext conftest.$ac_ext
31258 LIBS=$ac_check_lib_save_LIBS
31260 { echo "$as_me:$LINENO: result: $ac_cv_lib_winmm_main" >&5
31261 echo "${ECHO_T}$ac_cv_lib_winmm_main" >&6; }
31262 if test $ac_cv_lib_winmm_main = yes; then
31263 cat >>confdefs.h <<_ACEOF
31264 #define HAVE_LIBWINMM 1
31267 LIBS="-lwinmm $LIBS"
31270 passed=no;{ echo "$as_me:$LINENO: result: gr-audio-windows requires library winmm, not found." >&5
31271 echo "${ECHO_T}gr-audio-windows requires library winmm, not found." >&6; }
31273 ac_cv_lib_winmm=ac_cv_lib_winmm_main
31277 if test x$passed = xno; then
31278 skipped_dirs="$skipped_dirs gr-audio-windows"
31279 if test x$enable_gr_audio_windows = xyes; then
31280 { { echo "$as_me:$LINENO: error: Component gr-audio-windows has errors, stopping." >&5
31281 echo "$as_me: error: Component gr-audio-windows has errors, stopping." >&2;}
31282 { (exit 1); exit 1; }; }
31284 { echo "$as_me:$LINENO: result: Not building component gr-audio-windows." >&5
31285 echo "${ECHO_T}Not building component gr-audio-windows." >&6; }
31288 if test x$enable_gr_audio_windows != xno; then
31290 WINAUDIO_LIBS=-lwinmm
31292 ac_config_commands="$ac_config_commands run_tests_audio_windows"
31295 build_dirs="$build_dirs gr-audio-windows"
31296 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, building." >&5
31297 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, building." >&6; }
31299 skipped_dirs="$skipped_dirs gr-audio-windows"
31300 { echo "$as_me:$LINENO: result: Component gr-audio-windows passed configuration checks, but not building." >&5
31301 echo "${ECHO_T}Component gr-audio-windows passed configuration checks, but not building." >&6; }
31308 # Check whether --enable-gr-gsm-fr-vocoder was given.
31309 if test "${enable_gr_gsm_fr_vocoder+set}" = set; then
31310 enableval=$enable_gr_gsm_fr_vocoder;
31312 enable_gr_gsm_fr_vocoder=$enable_all_components
31317 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"
31322 if test x$passed = xno; then
31323 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
31324 if test x$enable_gr_gsm_fr_vocoder = xyes; then
31325 { { echo "$as_me:$LINENO: error: Component gr-gsm-fr-vocoder has errors, stopping." >&5
31326 echo "$as_me: error: Component gr-gsm-fr-vocoder has errors, stopping." >&2;}
31327 { (exit 1); exit 1; }; }
31329 { echo "$as_me:$LINENO: result: Not building component gr-gsm-fr-vocoder." >&5
31330 echo "${ECHO_T}Not building component gr-gsm-fr-vocoder." >&6; }
31333 if test x$enable_gr_gsm_fr_vocoder != xno; then
31335 ac_config_commands="$ac_config_commands run_tests_gsm"
31338 build_dirs="$build_dirs gr-gsm-fr-vocoder"
31339 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, building." >&5
31340 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, building." >&6; }
31342 skipped_dirs="$skipped_dirs gr-gsm-fr-vocoder"
31343 { echo "$as_me:$LINENO: result: Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&5
31344 echo "${ECHO_T}Component gr-gsm-fr-vocoder passed configuration checks, but not building." >&6; }
31351 # Check whether --enable-gr-radio-astronomy was given.
31352 if test "${enable_gr_radio_astronomy+set}" = set; then
31353 enableval=$enable_gr_radio_astronomy;
31355 enable_gr_radio_astronomy=$enable_all_components
31360 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"
31365 if test x$passed = xno; then
31366 skipped_dirs="$skipped_dirs gr-radio-astronomy"
31367 if test x$enable_gr_radio_astronomy = xyes; then
31368 { { echo "$as_me:$LINENO: error: Component gr-radio-astronomy has errors, stopping." >&5
31369 echo "$as_me: error: Component gr-radio-astronomy has errors, stopping." >&2;}
31370 { (exit 1); exit 1; }; }
31372 { echo "$as_me:$LINENO: result: Not building component gr-radio-astronomy." >&5
31373 echo "${ECHO_T}Not building component gr-radio-astronomy." >&6; }
31376 if test x$enable_gr_radio_astronomy != xno; then
31378 ac_config_commands="$ac_config_commands run_tests_astronomy"
31381 build_dirs="$build_dirs gr-radio-astronomy"
31382 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, building." >&5
31383 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, building." >&6; }
31385 skipped_dirs="$skipped_dirs gr-radio-astronomy"
31386 { echo "$as_me:$LINENO: result: Component gr-radio-astronomy passed configuration checks, but not building." >&5
31387 echo "${ECHO_T}Component gr-radio-astronomy passed configuration checks, but not building." >&6; }
31394 # Check whether --enable-gr-trellis was given.
31395 if test "${enable_gr_trellis+set}" = set; then
31396 enableval=$enable_gr_trellis;
31398 enable_gr_trellis=$enable_all_components
31403 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"
31408 if test x$passed = xno; then
31409 skipped_dirs="$skipped_dirs gr-trellis"
31410 if test x$enable_gr_trellis = xyes; then
31411 { { echo "$as_me:$LINENO: error: Component gr-trellis has errors, stopping." >&5
31412 echo "$as_me: error: Component gr-trellis has errors, stopping." >&2;}
31413 { (exit 1); exit 1; }; }
31415 { echo "$as_me:$LINENO: result: Not building component gr-trellis." >&5
31416 echo "${ECHO_T}Not building component gr-trellis." >&6; }
31419 if test x$enable_gr_trellis != xno; then
31421 ac_config_commands="$ac_config_commands run_tests_gr_trellis"
31424 build_dirs="$build_dirs gr-trellis"
31425 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, building." >&5
31426 echo "${ECHO_T}Component gr-trellis passed configuration checks, building." >&6; }
31428 skipped_dirs="$skipped_dirs gr-trellis"
31429 { echo "$as_me:$LINENO: result: Component gr-trellis passed configuration checks, but not building." >&5
31430 echo "${ECHO_T}Component gr-trellis passed configuration checks, but not building." >&6; }
31437 # Check whether --enable-gr-video-sdl was given.
31438 if test "${enable_gr_video_sdl+set}" = set; then
31439 enableval=$enable_gr_video_sdl;
31441 enable_gr_video_sdl=$enable_all_components
31446 ac_config_files="$ac_config_files gr-video-sdl/Makefile gr-video-sdl/src/Makefile gr-video-sdl/src/run_tests"
31452 # Check whether --with-sdl-prefix was given.
31453 if test "${with_sdl_prefix+set}" = set; then
31454 withval=$with_sdl_prefix; sdl_prefix="$withval"
31460 # Check whether --with-sdl-exec-prefix was given.
31461 if test "${with_sdl_exec_prefix+set}" = set; then
31462 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
31467 # Check whether --enable-sdltest was given.
31468 if test "${enable_sdltest+set}" = set; then
31469 enableval=$enable_sdltest;
31475 if test x$sdl_exec_prefix != x ; then
31476 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31477 if test x${SDL_CONFIG+set} != xset ; then
31478 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31481 if test x$sdl_prefix != x ; then
31482 sdl_args="$sdl_args --prefix=$sdl_prefix"
31483 if test x${SDL_CONFIG+set} != xset ; then
31484 SDL_CONFIG=$sdl_prefix/bin/sdl-config
31489 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31490 # Extract the first word of "sdl-config", so it can be a program name with args.
31491 set dummy sdl-config; ac_word=$2
31492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31494 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
31495 echo $ECHO_N "(cached) $ECHO_C" >&6
31497 case $SDL_CONFIG in
31499 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31503 for as_dir in $PATH
31506 test -z "$as_dir" && as_dir=.
31507 for ac_exec_ext in '' $ac_executable_extensions; do
31508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31509 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31517 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31521 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31522 if test -n "$SDL_CONFIG"; then
31523 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
31524 echo "${ECHO_T}$SDL_CONFIG" >&6; }
31526 { echo "$as_me:$LINENO: result: no" >&5
31527 echo "${ECHO_T}no" >&6; }
31531 min_sdl_version=$SDL_VERSION
31532 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
31533 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
31535 if test "$SDL_CONFIG" = "no" ; then
31538 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31539 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31541 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31542 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31543 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31545 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31547 if test "x$enable_sdltest" = "xyes" ; then
31548 ac_save_CFLAGS="$CFLAGS"
31549 ac_save_LIBS="$LIBS"
31550 CFLAGS="$CFLAGS $SDL_CFLAGS"
31551 LIBS="$LIBS $SDL_LIBS"
31553 if test "$cross_compiling" = yes; then
31554 echo $ac_n "cross compiling; assumed OK... $ac_c"
31556 cat >conftest.$ac_ext <<_ACEOF
31559 cat confdefs.h >>conftest.$ac_ext
31560 cat >>conftest.$ac_ext <<_ACEOF
31561 /* end confdefs.h. */
31564 #include <stdlib.h>
31565 #include <string.h>
31569 my_strdup (char *str)
31575 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31576 strcpy (new_str, str);
31584 int main (int argc, char *argv[])
31586 int major, minor, micro;
31589 /* This hangs on some systems (?)
31590 system ("touch conf.sdltest");
31592 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31594 /* HP/UX 9 (%@#!) writes to sscanf strings */
31595 tmp_version = my_strdup("$min_sdl_version");
31596 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
31597 printf("%s, bad version string\n", "$min_sdl_version");
31601 if (($sdl_major_version > major) ||
31602 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31603 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31609 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31610 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31611 printf("*** best to upgrade to the required version.\n");
31612 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31613 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31614 printf("*** config.cache before re-running configure\n");
31621 rm -f conftest$ac_exeext
31622 if { (ac_try="$ac_link"
31623 case "(($ac_try" in
31624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31625 *) ac_try_echo=$ac_try;;
31627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31628 (eval "$ac_link") 2>&5
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31632 { (case "(($ac_try" in
31633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634 *) ac_try_echo=$ac_try;;
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_try") 2>&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31643 echo "$as_me: program exited with status $ac_status" >&5
31644 echo "$as_me: failed program was:" >&5
31645 sed 's/^/| /' conftest.$ac_ext >&5
31647 ( exit $ac_status )
31650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31654 CFLAGS="$ac_save_CFLAGS"
31655 LIBS="$ac_save_LIBS"
31658 if test "x$no_sdl" = x ; then
31659 { echo "$as_me:$LINENO: result: yes" >&5
31660 echo "${ECHO_T}yes" >&6; }
31663 { echo "$as_me:$LINENO: result: no" >&5
31664 echo "${ECHO_T}no" >&6; }
31665 if test "$SDL_CONFIG" = "no" ; then
31666 echo "*** The sdl-config script installed by SDL could not be found"
31667 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31668 echo "*** your path, or set the SDL_CONFIG environment variable to the"
31669 echo "*** full path to sdl-config."
31671 if test -f conf.sdltest ; then
31674 echo "*** Could not run SDL test program, checking why..."
31675 CFLAGS="$CFLAGS $SDL_CFLAGS"
31676 LIBS="$LIBS $SDL_LIBS"
31677 cat >conftest.$ac_ext <<_ACEOF
31680 cat confdefs.h >>conftest.$ac_ext
31681 cat >>conftest.$ac_ext <<_ACEOF
31682 /* end confdefs.h. */
31687 int main(int argc, char *argv[])
31690 #define main K_and_R_C_main
31700 rm -f conftest.$ac_objext conftest$ac_exeext
31701 if { (ac_try="$ac_link"
31702 case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31707 (eval "$ac_link") 2>conftest.er1
31709 grep -v '^ *+' conftest.er1 >conftest.err
31711 cat conftest.err >&5
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); } && {
31714 test -z "$ac_c_werror_flag" ||
31715 test ! -s conftest.err
31716 } && test -s conftest$ac_exeext &&
31717 $as_test_x conftest$ac_exeext; then
31718 echo "*** The test program compiled, but did not run. This usually means"
31719 echo "*** that the run-time linker is not finding SDL or finding the wrong"
31720 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
31721 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31722 echo "*** to the installed location Also, make sure you have run ldconfig if that"
31723 echo "*** is required on your system"
31725 echo "*** If you have an old version installed, it is best to remove it, although"
31726 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31728 echo "$as_me: failed program was:" >&5
31729 sed 's/^/| /' conftest.$ac_ext >&5
31731 echo "*** The test program failed to compile or link. See the file config.log for the"
31732 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
31733 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
31734 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
31737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31738 conftest$ac_exeext conftest.$ac_ext
31739 CFLAGS="$ac_save_CFLAGS"
31740 LIBS="$ac_save_LIBS"
31745 passed=no;{ echo "$as_me:$LINENO: result: gr-video-sdl requires library sdl, not found or failed test." >&5
31746 echo "${ECHO_T}gr-video-sdl requires library sdl, not found or failed test." >&6; }
31754 if test x$passed = xno; then
31755 skipped_dirs="$skipped_dirs gr-video-sdl"
31756 if test x$enable_gr_video_sdl = xyes; then
31757 { { echo "$as_me:$LINENO: error: Component gr-video-sdl has errors, stopping." >&5
31758 echo "$as_me: error: Component gr-video-sdl has errors, stopping." >&2;}
31759 { (exit 1); exit 1; }; }
31761 { echo "$as_me:$LINENO: result: Not building component gr-video-sdl." >&5
31762 echo "${ECHO_T}Not building component gr-video-sdl." >&6; }
31765 if test x$enable_gr_video_sdl != xno; then
31769 ac_config_commands="$ac_config_commands run_tests_sdl"
31772 build_dirs="$build_dirs gr-video-sdl"
31773 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, building." >&5
31774 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, building." >&6; }
31776 skipped_dirs="$skipped_dirs gr-video-sdl"
31777 { echo "$as_me:$LINENO: result: Component gr-video-sdl passed configuration checks, but not building." >&5
31778 echo "${ECHO_T}Component gr-video-sdl passed configuration checks, but not building." >&6; }
31785 # Check whether --enable-gr-wxgui was given.
31786 if test "${enable_gr_wxgui+set}" = set; then
31787 enableval=$enable_gr_wxgui;
31789 enable_gr_wxgui=$enable_all_components
31794 ac_config_files="$ac_config_files gr-wxgui/Makefile gr-wxgui/src/Makefile gr-wxgui/src/python/Makefile"
31797 if ${PYTHON} -c 'import wx'; then
31804 if test x$passed = xno; then
31805 skipped_dirs="$skipped_dirs gr-wxgui"
31806 if test x$enable_gr_wxgui = xyes; then
31807 { { echo "$as_me:$LINENO: error: Component gr-wxgui has errors, stopping." >&5
31808 echo "$as_me: error: Component gr-wxgui has errors, stopping." >&2;}
31809 { (exit 1); exit 1; }; }
31811 { echo "$as_me:$LINENO: result: Not building component gr-wxgui." >&5
31812 echo "${ECHO_T}Not building component gr-wxgui." >&6; }
31815 if test x$enable_gr_wxgui != xno; then
31817 build_dirs="$build_dirs gr-wxgui"
31818 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, building." >&5
31819 echo "${ECHO_T}Component gr-wxgui passed configuration checks, building." >&6; }
31821 skipped_dirs="$skipped_dirs gr-wxgui"
31822 { echo "$as_me:$LINENO: result: Component gr-wxgui passed configuration checks, but not building." >&5
31823 echo "${ECHO_T}Component gr-wxgui passed configuration checks, but not building." >&6; }
31829 # Each component is now either to be built, was skipped, or failed dependencies
31830 build_dirs=$build_dirs
31832 skipped_dirs=$skipped_dirs
31835 ac_config_files="$ac_config_files Makefile run_tests.sh config/Makefile"
31838 ac_config_commands="$ac_config_commands run_tests_build"
31841 cat >confcache <<\_ACEOF
31842 # This file is a shell script that caches the results of configure
31843 # tests run on this system so they can be shared between configure
31844 # scripts and configure runs, see configure's option --config-cache.
31845 # It is not useful on other systems. If it contains results you don't
31846 # want to keep, you may remove or edit it.
31848 # config.status only pays attention to the cache file if you give it
31849 # the --recheck option to rerun configure.
31851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31853 # following values.
31857 # The following way of writing the cache mishandles newlines in values,
31858 # but we know of no workaround that is simple, portable, and efficient.
31859 # So, we kill variables containing newlines.
31860 # Ultrix sh set writes to stderr and can't be redirected directly,
31861 # and sets the high bit in the cache file unless we assign to the vars.
31863 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31864 eval ac_val=\$$ac_var
31868 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
31869 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
31872 _ | IFS | as_nl) ;; #(
31873 *) $as_unset $ac_var ;;
31879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31880 *${as_nl}ac_space=\ *)
31881 # `set' does not quote correctly, so add quotes (double-quote
31882 # substitution turns \\\\ into \\, and sed turns \\ into \).
31885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31888 # `set' quotes correctly as required by POSIX, so do not add quotes.
31889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31903 if test -w "$cache_file"; then
31904 test "x$cache_file" != "x/dev/null" &&
31905 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
31906 echo "$as_me: updating cache $cache_file" >&6;}
31907 cat confcache >$cache_file
31909 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
31910 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31916 # Let make expand exec_prefix.
31917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31919 DEFS=-DHAVE_CONFIG_H
31923 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31924 # 1. Remove the extension, and $U if already installed.
31925 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31926 ac_i=`echo "$ac_i" | sed "$ac_script"`
31927 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31928 # will be set to the directory where LIBOBJS objects are built.
31929 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31930 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
31932 LIBOBJS=$ac_libobjs
31934 LTLIBOBJS=$ac_ltlibobjs
31937 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31938 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31939 Usually this means the macro was only invoked conditionally." >&5
31940 echo "$as_me: error: conditional \"AMDEP\" was never defined.
31941 Usually this means the macro was only invoked conditionally." >&2;}
31942 { (exit 1); exit 1; }; }
31944 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31945 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31946 Usually this means the macro was only invoked conditionally." >&5
31947 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31948 Usually this means the macro was only invoked conditionally." >&2;}
31949 { (exit 1); exit 1; }; }
31951 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31952 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31953 Usually this means the macro was only invoked conditionally." >&5
31954 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31955 Usually this means the macro was only invoked conditionally." >&2;}
31956 { (exit 1); exit 1; }; }
31958 if test -z "${ENABLE_FORTRAN_TRUE}" && test -z "${ENABLE_FORTRAN_FALSE}"; then
31959 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_FORTRAN\" was never defined.
31960 Usually this means the macro was only invoked conditionally." >&5
31961 echo "$as_me: error: conditional \"ENABLE_FORTRAN\" was never defined.
31962 Usually this means the macro was only invoked conditionally." >&2;}
31963 { (exit 1); exit 1; }; }
31965 if test -z "${HAS_XMLTO_TRUE}" && test -z "${HAS_XMLTO_FALSE}"; then
31966 { { echo "$as_me:$LINENO: error: conditional \"HAS_XMLTO\" was never defined.
31967 Usually this means the macro was only invoked conditionally." >&5
31968 echo "$as_me: error: conditional \"HAS_XMLTO\" was never defined.
31969 Usually this means the macro was only invoked conditionally." >&2;}
31970 { (exit 1); exit 1; }; }
31972 if test -z "${OMNITHREAD_POSIX_TRUE}" && test -z "${OMNITHREAD_POSIX_FALSE}"; then
31973 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_POSIX\" was never defined.
31974 Usually this means the macro was only invoked conditionally." >&5
31975 echo "$as_me: error: conditional \"OMNITHREAD_POSIX\" was never defined.
31976 Usually this means the macro was only invoked conditionally." >&2;}
31977 { (exit 1); exit 1; }; }
31979 if test -z "${OMNITHREAD_NT_TRUE}" && test -z "${OMNITHREAD_NT_FALSE}"; then
31980 { { echo "$as_me:$LINENO: error: conditional \"OMNITHREAD_NT\" was never defined.
31981 Usually this means the macro was only invoked conditionally." >&5
31982 echo "$as_me: error: conditional \"OMNITHREAD_NT\" was never defined.
31983 Usually this means the macro was only invoked conditionally." >&2;}
31984 { (exit 1); exit 1; }; }
31986 if test -z "${HAVE_CREATEFILEMAPPING_TRUE}" && test -z "${HAVE_CREATEFILEMAPPING_FALSE}"; then
31987 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
31988 Usually this means the macro was only invoked conditionally." >&5
31989 echo "$as_me: error: conditional \"HAVE_CREATEFILEMAPPING\" was never defined.
31990 Usually this means the macro was only invoked conditionally." >&2;}
31991 { (exit 1); exit 1; }; }
31993 if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
31994 { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
31995 Usually this means the macro was only invoked conditionally." >&5
31996 echo "$as_me: error: conditional \"DOC\" was never defined.
31997 Usually this means the macro was only invoked conditionally." >&2;}
31998 { (exit 1); exit 1; }; }
32000 if test -z "${MD_CPU_x86_TRUE}" && test -z "${MD_CPU_x86_FALSE}"; then
32001 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_x86\" was never defined.
32002 Usually this means the macro was only invoked conditionally." >&5
32003 echo "$as_me: error: conditional \"MD_CPU_x86\" was never defined.
32004 Usually this means the macro was only invoked conditionally." >&2;}
32005 { (exit 1); exit 1; }; }
32007 if test -z "${MD_SUBCPU_x86_64_TRUE}" && test -z "${MD_SUBCPU_x86_64_FALSE}"; then
32008 { { echo "$as_me:$LINENO: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
32009 Usually this means the macro was only invoked conditionally." >&5
32010 echo "$as_me: error: conditional \"MD_SUBCPU_x86_64\" was never defined.
32011 Usually this means the macro was only invoked conditionally." >&2;}
32012 { (exit 1); exit 1; }; }
32014 if test -z "${MD_CPU_generic_TRUE}" && test -z "${MD_CPU_generic_FALSE}"; then
32015 { { echo "$as_me:$LINENO: error: conditional \"MD_CPU_generic\" was never defined.
32016 Usually this means the macro was only invoked conditionally." >&5
32017 echo "$as_me: error: conditional \"MD_CPU_generic\" was never defined.
32018 Usually this means the macro was only invoked conditionally." >&2;}
32019 { (exit 1); exit 1; }; }
32021 if test -z "${FUSB_TECH_darwin_TRUE}" && test -z "${FUSB_TECH_darwin_FALSE}"; then
32022 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_darwin\" was never defined.
32023 Usually this means the macro was only invoked conditionally." >&5
32024 echo "$as_me: error: conditional \"FUSB_TECH_darwin\" was never defined.
32025 Usually this means the macro was only invoked conditionally." >&2;}
32026 { (exit 1); exit 1; }; }
32028 if test -z "${FUSB_TECH_win32_TRUE}" && test -z "${FUSB_TECH_win32_FALSE}"; then
32029 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_win32\" was never defined.
32030 Usually this means the macro was only invoked conditionally." >&5
32031 echo "$as_me: error: conditional \"FUSB_TECH_win32\" was never defined.
32032 Usually this means the macro was only invoked conditionally." >&2;}
32033 { (exit 1); exit 1; }; }
32035 if test -z "${FUSB_TECH_generic_TRUE}" && test -z "${FUSB_TECH_generic_FALSE}"; then
32036 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_generic\" was never defined.
32037 Usually this means the macro was only invoked conditionally." >&5
32038 echo "$as_me: error: conditional \"FUSB_TECH_generic\" was never defined.
32039 Usually this means the macro was only invoked conditionally." >&2;}
32040 { (exit 1); exit 1; }; }
32042 if test -z "${FUSB_TECH_linux_TRUE}" && test -z "${FUSB_TECH_linux_FALSE}"; then
32043 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_linux\" was never defined.
32044 Usually this means the macro was only invoked conditionally." >&5
32045 echo "$as_me: error: conditional \"FUSB_TECH_linux\" was never defined.
32046 Usually this means the macro was only invoked conditionally." >&2;}
32047 { (exit 1); exit 1; }; }
32049 if test -z "${FUSB_TECH_ra_wb_TRUE}" && test -z "${FUSB_TECH_ra_wb_FALSE}"; then
32050 { { echo "$as_me:$LINENO: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
32051 Usually this means the macro was only invoked conditionally." >&5
32052 echo "$as_me: error: conditional \"FUSB_TECH_ra_wb\" was never defined.
32053 Usually this means the macro was only invoked conditionally." >&2;}
32054 { (exit 1); exit 1; }; }
32057 : ${CONFIG_STATUS=./config.status}
32058 ac_clean_files_save=$ac_clean_files
32059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32060 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32061 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32062 cat >$CONFIG_STATUS <<_ACEOF
32064 # Generated by $as_me.
32065 # Run this file to recreate the current configuration.
32066 # Compiler output produced by configure, useful for debugging
32067 # configure, is in config.log if it exists.
32070 ac_cs_recheck=false
32072 SHELL=\${CONFIG_SHELL-$SHELL}
32075 cat >>$CONFIG_STATUS <<\_ACEOF
32076 ## --------------------- ##
32077 ## M4sh Initialization. ##
32078 ## --------------------- ##
32080 # Be more Bourne compatible
32081 DUALCASE=1; export DUALCASE # for MKS sh
32082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32085 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32086 # is contrary to our usage. Disable this feature.
32087 alias -g '${1+"$@"}'='"$@"'
32088 setopt NO_GLOB_SUBST
32090 case `(set -o) 2>/dev/null` in
32091 *posix*) set -o posix ;;
32100 # Avoid depending upon Character Ranges.
32101 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32104 as_cr_digits='0123456789'
32105 as_cr_alnum=$as_cr_Letters$as_cr_digits
32107 # The user is always right.
32108 if test "${PATH_SEPARATOR+set}" != set; then
32109 echo "#! /bin/sh" >conf$$.sh
32110 echo "exit 0" >>conf$$.sh
32112 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32120 # Support unset when possible.
32121 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32129 # We need space, tab and new line, in precisely that order. Quoting is
32130 # there to prevent editors from complaining about space-tab.
32131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32132 # splitting by setting IFS to empty value.)
32137 # Find who we are. Look in the path if we contain no directory separator.
32139 *[\\/]* ) as_myself=$0 ;;
32140 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32141 for as_dir in $PATH
32144 test -z "$as_dir" && as_dir=.
32145 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32151 # We did not find ourselves, most probably we were run as `sh COMMAND'
32152 # in which case we are not to be found in the path.
32153 if test "x$as_myself" = x; then
32156 if test ! -f "$as_myself"; then
32157 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32158 { (exit 1); exit 1; }
32161 # Work around bugs in pre-3.0 UWIN ksh.
32162 for as_var in ENV MAIL MAILPATH
32163 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32171 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32172 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32173 LC_TELEPHONE LC_TIME
32175 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32176 eval $as_var=C; export $as_var
32178 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32182 # Required to use basename.
32183 if expr a : '\(a\)' >/dev/null 2>&1 &&
32184 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32190 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32191 as_basename=basename
32197 # Name of the executable.
32198 as_me=`$as_basename -- "$0" ||
32199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32200 X"$0" : 'X\(//\)$' \| \
32201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32203 sed '/^.*\/\([^/][^/]*\)\/*$/{
32222 as_lineno_1=$LINENO
32223 as_lineno_2=$LINENO
32224 test "x$as_lineno_1" != "x$as_lineno_2" &&
32225 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32228 # uniformly replaced by the line number. The first 'sed' inserts a
32229 # line-number line after each line using $LINENO; the second 'sed'
32230 # does the real work. The second script uses 'N' to pair each
32231 # line-number line with the line containing $LINENO, and appends
32232 # trailing '-' during substitution so that $LINENO is not a special
32233 # case at line end.
32234 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32235 # scripts with optimization help from Paolo Bonzini. Blame Lee
32236 # E. McMahon (1931-1989) for sed's syntax. :-)
32248 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32251 ' >$as_me.lineno &&
32252 chmod +x "$as_me.lineno" ||
32253 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32254 { (exit 1); exit 1; }; }
32256 # Don't try to exec as it changes $[0], causing all sort of problems
32257 # (the dirname of $[0] is not the place where we might find the
32258 # original and so on. Autoconf is especially sensitive to this).
32259 . "./$as_me.lineno"
32260 # Exit status is that of the last command.
32265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32271 ECHO_C= ECHO_N= ECHO_T=
32272 case `echo -n x` in
32274 case `echo 'x\c'` in
32275 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32282 if expr a : '\(a\)' >/dev/null 2>&1 &&
32283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32289 rm -f conf$$ conf$$.exe conf$$.file
32290 if test -d conf$$.dir; then
32291 rm -f conf$$.dir/conf$$.file
32297 if ln -s conf$$.file conf$$ 2>/dev/null; then
32299 # ... but there are two gotchas:
32300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32302 # In both cases, we have to default to `cp -p'.
32303 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32305 elif ln conf$$.file conf$$ 2>/dev/null; then
32310 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32311 rmdir conf$$.dir 2>/dev/null
32313 if mkdir -p . 2>/dev/null; then
32316 test -d ./-p && rmdir ./-p
32320 if test -x / >/dev/null 2>&1; then
32321 as_test_x='test -x'
32323 if ls -dL / >/dev/null 2>&1; then
32330 if test -d "$1"; then
32336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32337 ???[sx]*):;;*)false;;esac;fi
32341 as_executable_p=$as_test_x
32343 # Sed expression to map a string onto a valid CPP name.
32344 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32346 # Sed expression to map a string onto a valid variable name.
32347 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32352 # Save the log message, to keep $[0] and so on meaningful, and to
32353 # report actual input values of CONFIG_FILES etc. instead of their
32354 # values after options handling.
32356 This file was extended by $as_me, which was
32357 generated by GNU Autoconf 2.61. Invocation command line was
32359 CONFIG_FILES = $CONFIG_FILES
32360 CONFIG_HEADERS = $CONFIG_HEADERS
32361 CONFIG_LINKS = $CONFIG_LINKS
32362 CONFIG_COMMANDS = $CONFIG_COMMANDS
32365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32370 cat >>$CONFIG_STATUS <<_ACEOF
32371 # Files that config.status was made for.
32372 config_files="$ac_config_files"
32373 config_headers="$ac_config_headers"
32374 config_commands="$ac_config_commands"
32378 cat >>$CONFIG_STATUS <<\_ACEOF
32380 \`$as_me' instantiates files from templates according to the
32381 current configuration.
32383 Usage: $0 [OPTIONS] [FILE]...
32385 -h, --help print this help, then exit
32386 -V, --version print version number and configuration settings, then exit
32387 -q, --quiet do not print progress messages
32388 -d, --debug don't remove temporary files
32389 --recheck update $as_me by reconfiguring in the same conditions
32390 --file=FILE[:TEMPLATE]
32391 instantiate the configuration file FILE
32392 --header=FILE[:TEMPLATE]
32393 instantiate the configuration header FILE
32395 Configuration files:
32398 Configuration headers:
32401 Configuration commands:
32404 Report bugs to <bug-autoconf@gnu.org>."
32407 cat >>$CONFIG_STATUS <<_ACEOF
32410 configured by $0, generated by GNU Autoconf 2.61,
32411 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32413 Copyright (C) 2006 Free Software Foundation, Inc.
32414 This config.status script is free software; the Free Software Foundation
32415 gives unlimited permission to copy, distribute and modify it."
32422 cat >>$CONFIG_STATUS <<\_ACEOF
32423 # If no file are specified by the user, then we need to provide default
32424 # value. By we need to know if files were specified by the user.
32430 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32431 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32442 # Handling of the options.
32443 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32445 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32446 echo "$ac_cs_version"; exit ;;
32447 --debug | --debu | --deb | --de | --d | -d )
32449 --file | --fil | --fi | --f )
32451 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32452 ac_need_defaults=false;;
32453 --header | --heade | --head | --hea )
32455 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32456 ac_need_defaults=false;;
32458 # Conflict between --help and --header
32459 { echo "$as_me: error: ambiguous option: $1
32460 Try \`$0 --help' for more information." >&2
32461 { (exit 1); exit 1; }; };;
32462 --help | --hel | -h )
32463 echo "$ac_cs_usage"; exit ;;
32464 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32465 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32468 # This is an error.
32469 -*) { echo "$as_me: error: unrecognized option: $1
32470 Try \`$0 --help' for more information." >&2
32471 { (exit 1); exit 1; }; } ;;
32473 *) ac_config_targets="$ac_config_targets $1"
32474 ac_need_defaults=false ;;
32480 ac_configure_extra_args=
32482 if $ac_cs_silent; then
32484 ac_configure_extra_args="$ac_configure_extra_args --silent"
32488 cat >>$CONFIG_STATUS <<_ACEOF
32489 if \$ac_cs_recheck; then
32490 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32491 CONFIG_SHELL=$SHELL
32492 export CONFIG_SHELL
32493 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32497 cat >>$CONFIG_STATUS <<\_ACEOF
32501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32502 ## Running $as_me. ##
32508 cat >>$CONFIG_STATUS <<_ACEOF
32512 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32516 cat >>$CONFIG_STATUS <<\_ACEOF
32518 # Handling of arguments.
32519 for ac_config_target in $ac_config_targets
32521 case $ac_config_target in
32522 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
32523 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32524 "gnuradio-core/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/Makefile" ;;
32525 "gnuradio-core/gnuradio-core.pc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/gnuradio-core.pc" ;;
32526 "gnuradio-core/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Doxyfile" ;;
32527 "gnuradio-core/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/Makefile" ;;
32528 "gnuradio-core/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/other/Makefile" ;;
32529 "gnuradio-core/doc/xml/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/doc/xml/Makefile" ;;
32530 "gnuradio-core/src/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/Makefile" ;;
32531 "gnuradio-core/src/gen_interpolator_taps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/gen_interpolator_taps/Makefile" ;;
32532 "gnuradio-core/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/Makefile" ;;
32533 "gnuradio-core/src/lib/filter/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/filter/Makefile" ;;
32534 "gnuradio-core/src/lib/g72x/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/g72x/Makefile" ;;
32535 "gnuradio-core/src/lib/general/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/Makefile" ;;
32536 "gnuradio-core/src/lib/general/gr_prefix.cc") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/general/gr_prefix.cc" ;;
32537 "gnuradio-core/src/lib/io/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/io/Makefile" ;;
32538 "gnuradio-core/src/lib/missing/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/missing/Makefile" ;;
32539 "gnuradio-core/src/lib/omnithread/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/omnithread/Makefile" ;;
32540 "gnuradio-core/src/lib/reed-solomon/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/reed-solomon/Makefile" ;;
32541 "gnuradio-core/src/lib/runtime/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/runtime/Makefile" ;;
32542 "gnuradio-core/src/lib/swig/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/lib/swig/Makefile" ;;
32543 "gnuradio-core/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/Makefile" ;;
32544 "gnuradio-core/src/python/bin/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/bin/Makefile" ;;
32545 "gnuradio-core/src/python/gnuradio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/Makefile" ;;
32546 "gnuradio-core/src/python/gnuradio/blks/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blks/Makefile" ;;
32547 "gnuradio-core/src/python/gnuradio/blksimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/blksimpl/Makefile" ;;
32548 "gnuradio-core/src/python/gnuradio/gr/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/Makefile" ;;
32549 "gnuradio-core/src/python/gnuradio/gr/run_tests") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gr/run_tests" ;;
32550 "gnuradio-core/src/python/gnuradio/gru/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gru/Makefile" ;;
32551 "gnuradio-core/src/python/gnuradio/gruimpl/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/python/gnuradio/gruimpl/Makefile" ;;
32552 "gnuradio-core/src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/tests/Makefile" ;;
32553 "gnuradio-core/src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-core/src/utils/Makefile" ;;
32554 "run_tests_core") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_core" ;;
32555 "swig_deps") CONFIG_COMMANDS="$CONFIG_COMMANDS swig_deps" ;;
32556 "gnuradio-examples/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/Makefile" ;;
32557 "gnuradio-examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/Makefile" ;;
32558 "gnuradio-examples/python/apps/hf_explorer/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_explorer/Makefile" ;;
32559 "gnuradio-examples/python/apps/hf_radio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/hf_radio/Makefile" ;;
32560 "gnuradio-examples/python/apps/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/apps/Makefile" ;;
32561 "gnuradio-examples/python/audio/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/audio/Makefile" ;;
32562 "gnuradio-examples/python/channel-coding/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/Makefile" ;;
32563 "gnuradio-examples/python/channel-coding/fsm_files/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/channel-coding/fsm_files/Makefile" ;;
32564 "gnuradio-examples/python/digital/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital/Makefile" ;;
32565 "gnuradio-examples/python/digital_voice/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/digital_voice/Makefile" ;;
32566 "gnuradio-examples/python/multi-antenna/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi-antenna/Makefile" ;;
32567 "gnuradio-examples/python/multi_usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/multi_usrp/Makefile" ;;
32568 "gnuradio-examples/python/networking/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/networking/Makefile" ;;
32569 "gnuradio-examples/python/usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gnuradio-examples/python/usrp/Makefile" ;;
32570 "usrp/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/Makefile" ;;
32571 "usrp/usrp.pc") CONFIG_FILES="$CONFIG_FILES usrp/usrp.pc" ;;
32572 "usrp/usrp.iss") CONFIG_FILES="$CONFIG_FILES usrp/usrp.iss" ;;
32573 "usrp/doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Doxyfile" ;;
32574 "usrp/doc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/Makefile" ;;
32575 "usrp/doc/other/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/doc/other/Makefile" ;;
32576 "usrp/host/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/Makefile" ;;
32577 "usrp/host/misc/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/misc/Makefile" ;;
32578 "usrp/host/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/Makefile" ;;
32579 "usrp/host/lib/std_paths.h") CONFIG_FILES="$CONFIG_FILES usrp/host/lib/std_paths.h" ;;
32580 "usrp/host/swig/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/swig/Makefile" ;;
32581 "usrp/host/apps/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/host/apps/Makefile" ;;
32582 "usrp/firmware/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/Makefile" ;;
32583 "usrp/firmware/include/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/include/Makefile" ;;
32584 "usrp/firmware/lib/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/lib/Makefile" ;;
32585 "usrp/firmware/src/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/Makefile" ;;
32586 "usrp/firmware/src/common/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/common/Makefile" ;;
32587 "usrp/firmware/src/usrp2/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/firmware/src/usrp2/Makefile" ;;
32588 "usrp/fpga/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/Makefile" ;;
32589 "usrp/fpga/rbf/Makefile") CONFIG_FILES="$CONFIG_FILES usrp/fpga/rbf/Makefile" ;;
32590 "gr-usrp/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/Makefile" ;;
32591 "gr-usrp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/Makefile" ;;
32592 "gr-usrp/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-usrp/src/run_tests" ;;
32593 "run_tests_usrp") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_usrp" ;;
32594 "gr-audio-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/Makefile" ;;
32595 "gr-audio-alsa/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/Makefile" ;;
32596 "gr-audio-alsa/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-alsa/src/run_tests" ;;
32597 "run_tests_alsa") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_alsa" ;;
32598 "gr-audio-jack/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/Makefile" ;;
32599 "gr-audio-jack/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/Makefile" ;;
32600 "gr-audio-jack/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-jack/src/run_tests" ;;
32601 "run_tests_jack") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_jack" ;;
32602 "gr-audio-oss/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/Makefile" ;;
32603 "gr-audio-oss/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/Makefile" ;;
32604 "gr-audio-oss/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-oss/src/run_tests" ;;
32605 "run_tests_oss") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_oss" ;;
32606 "gr-audio-osx/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/Makefile" ;;
32607 "gr-audio-osx/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/Makefile" ;;
32608 "gr-audio-osx/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-osx/src/run_tests" ;;
32609 "run_tests_osx") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_osx" ;;
32610 "gr-audio-portaudio/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/Makefile" ;;
32611 "gr-audio-portaudio/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/Makefile" ;;
32612 "gr-audio-portaudio/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-portaudio/src/run_tests" ;;
32613 "run_tests_portaudio") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_portaudio" ;;
32614 "gr-audio-windows/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/Makefile" ;;
32615 "gr-audio-windows/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/Makefile" ;;
32616 "gr-audio-windows/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-audio-windows/src/run_tests" ;;
32617 "run_tests_audio_windows") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_audio_windows" ;;
32618 "gr-gsm-fr-vocoder/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/Makefile" ;;
32619 "gr-gsm-fr-vocoder/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/Makefile" ;;
32620 "gr-gsm-fr-vocoder/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/Makefile" ;;
32621 "gr-gsm-fr-vocoder/src/lib/gsm/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/lib/gsm/Makefile" ;;
32622 "gr-gsm-fr-vocoder/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/Makefile" ;;
32623 "gr-gsm-fr-vocoder/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-gsm-fr-vocoder/src/python/run_tests" ;;
32624 "run_tests_gsm") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gsm" ;;
32625 "gr-radio-astronomy/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/Makefile" ;;
32626 "gr-radio-astronomy/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/Makefile" ;;
32627 "gr-radio-astronomy/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/lib/Makefile" ;;
32628 "gr-radio-astronomy/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/Makefile" ;;
32629 "gr-radio-astronomy/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-radio-astronomy/src/python/run_tests" ;;
32630 "run_tests_astronomy") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_astronomy" ;;
32631 "gr-trellis/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/Makefile" ;;
32632 "gr-trellis/doc/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/doc/Makefile" ;;
32633 "gr-trellis/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/Makefile" ;;
32634 "gr-trellis/src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/lib/Makefile" ;;
32635 "gr-trellis/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/Makefile" ;;
32636 "gr-trellis/src/python/run_tests") CONFIG_FILES="$CONFIG_FILES gr-trellis/src/python/run_tests" ;;
32637 "run_tests_gr_trellis") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_gr_trellis" ;;
32638 "gr-video-sdl/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/Makefile" ;;
32639 "gr-video-sdl/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/Makefile" ;;
32640 "gr-video-sdl/src/run_tests") CONFIG_FILES="$CONFIG_FILES gr-video-sdl/src/run_tests" ;;
32641 "run_tests_sdl") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_sdl" ;;
32642 "gr-wxgui/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/Makefile" ;;
32643 "gr-wxgui/src/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/Makefile" ;;
32644 "gr-wxgui/src/python/Makefile") CONFIG_FILES="$CONFIG_FILES gr-wxgui/src/python/Makefile" ;;
32645 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32646 "run_tests.sh") CONFIG_FILES="$CONFIG_FILES run_tests.sh" ;;
32647 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
32648 "run_tests_build") CONFIG_COMMANDS="$CONFIG_COMMANDS run_tests_build" ;;
32650 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32651 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32652 { (exit 1); exit 1; }; };;
32657 # If the user did not use the arguments to specify the items to instantiate,
32658 # then the envvar interface is used. Set only those that are not.
32659 # We use the long form for the default assignment because of an extremely
32660 # bizarre bug on SunOS 4.1.3.
32661 if $ac_need_defaults; then
32662 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32663 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32664 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32667 # Have a temporary directory for convenience. Make it in the build tree
32668 # simply because there is no reason against having it here, and in addition,
32669 # creating and moving files from /tmp can sometimes cause problems.
32670 # Hook for its removal unless debugging.
32671 # Note that there is a small window in which the directory will not be cleaned:
32672 # after its creation but before its name has been assigned to `$tmp'.
32676 trap 'exit_status=$?
32677 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32679 trap '{ (exit 1); exit 1; }' 1 2 13 15
32681 # Create a (secure) tmp directory for tmp files.
32684 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32685 test -n "$tmp" && test -d "$tmp"
32688 tmp=./conf$$-$RANDOM
32689 (umask 077 && mkdir "$tmp")
32692 echo "$me: cannot create a temporary directory in ." >&2
32693 { (exit 1); exit 1; }
32697 # Set up the sed scripts for CONFIG_FILES section.
32700 # No need to generate the scripts if there are no CONFIG_FILES.
32701 # This happens for instance when ./config.status config.h
32702 if test -n "$CONFIG_FILES"; then
32709 for ac_last_try in false false false false false :; do
32710 cat >conf$$subs.sed <<_ACEOF
32711 SHELL!$SHELL$ac_delim
32712 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32713 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32714 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32715 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32716 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32717 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32718 exec_prefix!$exec_prefix$ac_delim
32719 prefix!$prefix$ac_delim
32720 program_transform_name!$program_transform_name$ac_delim
32721 bindir!$bindir$ac_delim
32722 sbindir!$sbindir$ac_delim
32723 libexecdir!$libexecdir$ac_delim
32724 datarootdir!$datarootdir$ac_delim
32725 datadir!$datadir$ac_delim
32726 sysconfdir!$sysconfdir$ac_delim
32727 sharedstatedir!$sharedstatedir$ac_delim
32728 localstatedir!$localstatedir$ac_delim
32729 includedir!$includedir$ac_delim
32730 oldincludedir!$oldincludedir$ac_delim
32731 docdir!$docdir$ac_delim
32732 infodir!$infodir$ac_delim
32733 htmldir!$htmldir$ac_delim
32734 dvidir!$dvidir$ac_delim
32735 pdfdir!$pdfdir$ac_delim
32736 psdir!$psdir$ac_delim
32737 libdir!$libdir$ac_delim
32738 localedir!$localedir$ac_delim
32739 mandir!$mandir$ac_delim
32740 DEFS!$DEFS$ac_delim
32741 ECHO_C!$ECHO_C$ac_delim
32742 ECHO_N!$ECHO_N$ac_delim
32743 ECHO_T!$ECHO_T$ac_delim
32744 LIBS!$LIBS$ac_delim
32745 build_alias!$build_alias$ac_delim
32746 host_alias!$host_alias$ac_delim
32747 target_alias!$target_alias$ac_delim
32748 build!$build$ac_delim
32749 build_cpu!$build_cpu$ac_delim
32750 build_vendor!$build_vendor$ac_delim
32751 build_os!$build_os$ac_delim
32752 host!$host$ac_delim
32753 host_cpu!$host_cpu$ac_delim
32754 host_vendor!$host_vendor$ac_delim
32755 host_os!$host_os$ac_delim
32756 target!$target$ac_delim
32757 target_cpu!$target_cpu$ac_delim
32758 target_vendor!$target_vendor$ac_delim
32759 target_os!$target_os$ac_delim
32760 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32761 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32762 INSTALL_DATA!$INSTALL_DATA$ac_delim
32763 CYGPATH_W!$CYGPATH_W$ac_delim
32764 PACKAGE!$PACKAGE$ac_delim
32765 VERSION!$VERSION$ac_delim
32766 ACLOCAL!$ACLOCAL$ac_delim
32767 AUTOCONF!$AUTOCONF$ac_delim
32768 AUTOMAKE!$AUTOMAKE$ac_delim
32769 AUTOHEADER!$AUTOHEADER$ac_delim
32770 MAKEINFO!$MAKEINFO$ac_delim
32771 install_sh!$install_sh$ac_delim
32772 STRIP!$STRIP$ac_delim
32773 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
32774 mkdir_p!$mkdir_p$ac_delim
32776 SET_MAKE!$SET_MAKE$ac_delim
32777 am__leading_dot!$am__leading_dot$ac_delim
32778 AMTAR!$AMTAR$ac_delim
32779 am__tar!$am__tar$ac_delim
32780 am__untar!$am__untar$ac_delim
32782 CFLAGS!$CFLAGS$ac_delim
32783 LDFLAGS!$LDFLAGS$ac_delim
32784 CPPFLAGS!$CPPFLAGS$ac_delim
32785 ac_ct_CC!$ac_ct_CC$ac_delim
32786 EXEEXT!$EXEEXT$ac_delim
32787 OBJEXT!$OBJEXT$ac_delim
32788 DEPDIR!$DEPDIR$ac_delim
32789 am__include!$am__include$ac_delim
32790 am__quote!$am__quote$ac_delim
32791 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
32792 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
32793 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
32794 CCDEPMODE!$CCDEPMODE$ac_delim
32795 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
32796 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
32798 GREP!$GREP$ac_delim
32799 EGREP!$EGREP$ac_delim
32801 CXXFLAGS!$CXXFLAGS$ac_delim
32802 ac_ct_CXX!$ac_ct_CXX$ac_delim
32803 CXXDEPMODE!$CXXDEPMODE$ac_delim
32804 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
32805 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
32806 CXXCPP!$CXXCPP$ac_delim
32807 CCAS!$CCAS$ac_delim
32810 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32812 elif $ac_last_try; then
32813 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32814 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32815 { (exit 1); exit 1; }; }
32817 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32822 if test -n "$ac_eof"; then
32823 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32824 ac_eof=`expr $ac_eof + 1`
32827 cat >>$CONFIG_STATUS <<_ACEOF
32828 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32829 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32832 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32833 s/^/s,@/; s/!/@,|#_!!_#|/
32836 s/'"$ac_delim"'$/,g/; t
32838 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32839 ' >>$CONFIG_STATUS <conf$$subs.sed
32840 rm -f conf$$subs.sed
32841 cat >>$CONFIG_STATUS <<_ACEOF
32847 for ac_last_try in false false false false false :; do
32848 cat >conf$$subs.sed <<_ACEOF
32849 CCASFLAGS!$CCASFLAGS$ac_delim
32850 LN_S!$LN_S$ac_delim
32851 RM_PROG!$RM_PROG$ac_delim
32852 ECHO!$ECHO$ac_delim
32854 RANLIB!$RANLIB$ac_delim
32855 DLLTOOL!$DLLTOOL$ac_delim
32857 OBJDUMP!$OBJDUMP$ac_delim
32859 FFLAGS!$FFLAGS$ac_delim
32860 ac_ct_F77!$ac_ct_F77$ac_delim
32861 LIBTOOL!$LIBTOOL$ac_delim
32862 ENABLE_FORTRAN_TRUE!$ENABLE_FORTRAN_TRUE$ac_delim
32863 ENABLE_FORTRAN_FALSE!$ENABLE_FORTRAN_FALSE$ac_delim
32864 FLIBS!$FLIBS$ac_delim
32865 NO_UNDEFINED!$NO_UNDEFINED$ac_delim
32866 SWIG!$SWIG$ac_delim
32867 PYTHON!$PYTHON$ac_delim
32868 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
32869 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
32870 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
32871 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
32872 pythondir!$pythondir$ac_delim
32873 pkgpythondir!$pkgpythondir$ac_delim
32874 pyexecdir!$pyexecdir$ac_delim
32875 pkgpyexecdir!$pkgpyexecdir$ac_delim
32876 PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
32877 PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
32878 SWIG_PYTHON_LIB!$SWIG_PYTHON_LIB$ac_delim
32879 SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
32880 SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
32881 XMLTO!$XMLTO$ac_delim
32882 HAS_XMLTO_TRUE!$HAS_XMLTO_TRUE$ac_delim
32883 HAS_XMLTO_FALSE!$HAS_XMLTO_FALSE$ac_delim
32884 PTHREAD_CC!$PTHREAD_CC$ac_delim
32885 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
32886 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
32887 OMNITHREAD_POSIX_TRUE!$OMNITHREAD_POSIX_TRUE$ac_delim
32888 OMNITHREAD_POSIX_FALSE!$OMNITHREAD_POSIX_FALSE$ac_delim
32889 OMNITHREAD_NT_TRUE!$OMNITHREAD_NT_TRUE$ac_delim
32890 OMNITHREAD_NT_FALSE!$OMNITHREAD_NT_FALSE$ac_delim
32891 CXX_FOR_BUILD!$CXX_FOR_BUILD$ac_delim
32892 IPC_LIBS!$IPC_LIBS$ac_delim
32893 ALLOCA!$ALLOCA$ac_delim
32894 SHM_OPEN_LIBS!$SHM_OPEN_LIBS$ac_delim
32895 LIBGNURADIO_CORE_EXTRA_LDFLAGS!$LIBGNURADIO_CORE_EXTRA_LDFLAGS$ac_delim
32896 HAVE_CREATEFILEMAPPING_TRUE!$HAVE_CREATEFILEMAPPING_TRUE$ac_delim
32897 HAVE_CREATEFILEMAPPING_FALSE!$HAVE_CREATEFILEMAPPING_FALSE$ac_delim
32898 LIBOBJS!$LIBOBJS$ac_delim
32899 HAVE_DOT!$HAVE_DOT$ac_delim
32900 PKG_CONFIG!$PKG_CONFIG$ac_delim
32901 FFTW3F_CFLAGS!$FFTW3F_CFLAGS$ac_delim
32902 FFTW3F_LIBS!$FFTW3F_LIBS$ac_delim
32903 FFTW3F_INCLUDEDIR!$FFTW3F_INCLUDEDIR$ac_delim
32904 DOXYGEN!$DOXYGEN$ac_delim
32906 DOC_TRUE!$DOC_TRUE$ac_delim
32907 DOC_FALSE!$DOC_FALSE$ac_delim
32908 enable_dot!$enable_dot$ac_delim
32909 enable_html_docs!$enable_html_docs$ac_delim
32910 enable_latex_docs!$enable_latex_docs$ac_delim
32911 generate_docs!$generate_docs$ac_delim
32912 MD_CPU!$MD_CPU$ac_delim
32913 MD_SUBCPU!$MD_SUBCPU$ac_delim
32914 MD_CPU_x86_TRUE!$MD_CPU_x86_TRUE$ac_delim
32915 MD_CPU_x86_FALSE!$MD_CPU_x86_FALSE$ac_delim
32916 MD_SUBCPU_x86_64_TRUE!$MD_SUBCPU_x86_64_TRUE$ac_delim
32917 MD_SUBCPU_x86_64_FALSE!$MD_SUBCPU_x86_64_FALSE$ac_delim
32918 MD_CPU_generic_TRUE!$MD_CPU_generic_TRUE$ac_delim
32919 MD_CPU_generic_FALSE!$MD_CPU_generic_FALSE$ac_delim
32920 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
32921 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
32922 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
32923 CPPUNIT_INCLUDES!$CPPUNIT_INCLUDES$ac_delim
32924 BOOST_CFLAGS!$BOOST_CFLAGS$ac_delim
32925 DEFINES!$DEFINES$ac_delim
32926 USB_LIBS!$USB_LIBS$ac_delim
32927 FUSB_TECH!$FUSB_TECH$ac_delim
32928 FUSB_TECH_darwin_TRUE!$FUSB_TECH_darwin_TRUE$ac_delim
32929 FUSB_TECH_darwin_FALSE!$FUSB_TECH_darwin_FALSE$ac_delim
32930 FUSB_TECH_win32_TRUE!$FUSB_TECH_win32_TRUE$ac_delim
32931 FUSB_TECH_win32_FALSE!$FUSB_TECH_win32_FALSE$ac_delim
32932 FUSB_TECH_generic_TRUE!$FUSB_TECH_generic_TRUE$ac_delim
32933 FUSB_TECH_generic_FALSE!$FUSB_TECH_generic_FALSE$ac_delim
32934 FUSB_TECH_linux_TRUE!$FUSB_TECH_linux_TRUE$ac_delim
32935 FUSB_TECH_linux_FALSE!$FUSB_TECH_linux_FALSE$ac_delim
32936 FUSB_TECH_ra_wb_TRUE!$FUSB_TECH_ra_wb_TRUE$ac_delim
32937 FUSB_TECH_ra_wb_FALSE!$FUSB_TECH_ra_wb_FALSE$ac_delim
32940 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
32941 ALSA_LIBS!$ALSA_LIBS$ac_delim
32942 ALSA_INCLUDEDIR!$ALSA_INCLUDEDIR$ac_delim
32943 JACK_CFLAGS!$JACK_CFLAGS$ac_delim
32944 JACK_LIBS!$JACK_LIBS$ac_delim
32945 JACK_INCLUDEDIR!$JACK_INCLUDEDIR$ac_delim
32948 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32950 elif $ac_last_try; then
32951 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32952 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32953 { (exit 1); exit 1; }; }
32955 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32959 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32960 if test -n "$ac_eof"; then
32961 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32962 ac_eof=`expr $ac_eof + 1`
32965 cat >>$CONFIG_STATUS <<_ACEOF
32966 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32967 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32970 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32971 s/^/s,@/; s/!/@,|#_!!_#|/
32974 s/'"$ac_delim"'$/,g/; t
32976 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32977 ' >>$CONFIG_STATUS <conf$$subs.sed
32978 rm -f conf$$subs.sed
32979 cat >>$CONFIG_STATUS <<_ACEOF
32985 for ac_last_try in false false false false false :; do
32986 cat >conf$$subs.sed <<_ACEOF
32987 OSS_LIBS!$OSS_LIBS$ac_delim
32988 PORTAUDIO_CFLAGS!$PORTAUDIO_CFLAGS$ac_delim
32989 PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
32990 PORTAUDIO_INCLUDEDIR!$PORTAUDIO_INCLUDEDIR$ac_delim
32991 WINAUDIO_LIBS!$WINAUDIO_LIBS$ac_delim
32992 SDL_CONFIG!$SDL_CONFIG$ac_delim
32993 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
32994 SDL_LIBS!$SDL_LIBS$ac_delim
32995 build_dirs!$build_dirs$ac_delim
32996 skipped_dirs!$skipped_dirs$ac_delim
32997 LTLIBOBJS!$LTLIBOBJS$ac_delim
33000 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
33002 elif $ac_last_try; then
33003 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33004 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33005 { (exit 1); exit 1; }; }
33007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33011 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33012 if test -n "$ac_eof"; then
33013 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33014 ac_eof=`expr $ac_eof + 1`
33017 cat >>$CONFIG_STATUS <<_ACEOF
33018 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
33019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33022 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33023 s/^/s,@/; s/!/@,|#_!!_#|/
33026 s/'"$ac_delim"'$/,g/; t
33028 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33029 ' >>$CONFIG_STATUS <conf$$subs.sed
33030 rm -f conf$$subs.sed
33031 cat >>$CONFIG_STATUS <<_ACEOF
33038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33040 # trailing colons and then remove the whole line if VPATH becomes empty
33041 # (actually we leave an empty line to preserve line numbers).
33042 if test "x$srcdir" = x.; then
33043 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33044 s/:*\$(srcdir):*/:/
33045 s/:*\${srcdir}:*/:/
33047 s/^\([^=]*=[ ]*\):*/\1/
33053 cat >>$CONFIG_STATUS <<\_ACEOF
33054 fi # test -n "$CONFIG_FILES"
33057 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
33060 :[FHLC]) ac_mode=$ac_tag; continue;;
33062 case $ac_mode$ac_tag in
33064 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33065 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33066 { (exit 1); exit 1; }; };;
33067 :[FH]-) ac_tag=-:-;;
33068 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33085 -) ac_f="$tmp/stdin";;
33086 *) # Look for the file first in the build tree, then in the source tree
33087 # (if the path is not absolute). The absolute path cannot be DOS-style,
33088 # because $ac_f cannot contain `:'.
33092 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33094 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33095 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33096 { (exit 1); exit 1; }; };;
33098 ac_file_inputs="$ac_file_inputs $ac_f"
33101 # Let's still pretend it is `configure' which instantiates (i.e., don't
33102 # use $as_me), people would be surprised to read:
33103 # /* config.h. Generated by config.status. */
33104 configure_input="Generated from "`IFS=:
33105 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33106 if test x"$ac_file" != x-; then
33107 configure_input="$ac_file. $configure_input"
33108 { echo "$as_me:$LINENO: creating $ac_file" >&5
33109 echo "$as_me: creating $ac_file" >&6;}
33113 *:-:* | *:-) cat >"$tmp/stdin";;
33118 ac_dir=`$as_dirname -- "$ac_file" ||
33119 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33120 X"$ac_file" : 'X\(//\)[^/]' \| \
33121 X"$ac_file" : 'X\(//\)$' \| \
33122 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33128 /^X\(\/\/\)[^/].*/{
33143 -*) as_dir=./$as_dir;;
33145 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33149 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33150 *) as_qdir=$as_dir;;
33152 as_dirs="'$as_qdir' $as_dirs"
33153 as_dir=`$as_dirname -- "$as_dir" ||
33154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33155 X"$as_dir" : 'X\(//\)[^/]' \| \
33156 X"$as_dir" : 'X\(//\)$' \| \
33157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33163 /^X\(\/\/\)[^/].*/{
33176 test -d "$as_dir" && break
33178 test -z "$as_dirs" || eval "mkdir $as_dirs"
33179 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33180 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33181 { (exit 1); exit 1; }; }; }
33185 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33187 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33188 # A ".." for each directory in $ac_dir_suffix.
33189 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33190 case $ac_top_builddir_sub in
33191 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33192 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33195 ac_abs_top_builddir=$ac_pwd
33196 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33197 # for backward compatibility:
33198 ac_top_builddir=$ac_top_build_prefix
33201 .) # We are building in place.
33203 ac_top_srcdir=$ac_top_builddir_sub
33204 ac_abs_top_srcdir=$ac_pwd ;;
33205 [\\/]* | ?:[\\/]* ) # Absolute name.
33206 ac_srcdir=$srcdir$ac_dir_suffix;
33207 ac_top_srcdir=$srcdir
33208 ac_abs_top_srcdir=$srcdir ;;
33209 *) # Relative name.
33210 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33211 ac_top_srcdir=$ac_top_build_prefix$srcdir
33212 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33214 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33224 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33225 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33229 cat >>$CONFIG_STATUS <<\_ACEOF
33230 # If the template does not know about datarootdir, expand it.
33231 # FIXME: This hack should be removed a few years after 2.60.
33232 ac_datarootdir_hack=; ac_datarootdir_seen=
33234 case `sed -n '/datarootdir/ {
33243 ' $ac_file_inputs` in
33244 *datarootdir*) ac_datarootdir_seen=yes;;
33245 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33246 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33247 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33249 cat >>$CONFIG_STATUS <<_ACEOF
33250 ac_datarootdir_hack='
33251 s&@datadir@&$datadir&g
33252 s&@docdir@&$docdir&g
33253 s&@infodir@&$infodir&g
33254 s&@localedir@&$localedir&g
33255 s&@mandir@&$mandir&g
33256 s&\\\${datarootdir}&$datarootdir&g' ;;
33260 # Neutralize VPATH when `$srcdir' = `.'.
33261 # Shell code in configure.ac might set extrasub.
33262 # FIXME: do we really want to maintain this feature?
33263 cat >>$CONFIG_STATUS <<_ACEOF
33267 cat >>$CONFIG_STATUS <<\_ACEOF
33269 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33270 s&@configure_input@&$configure_input&;t t
33271 s&@top_builddir@&$ac_top_builddir_sub&;t t
33272 s&@srcdir@&$ac_srcdir&;t t
33273 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33274 s&@top_srcdir@&$ac_top_srcdir&;t t
33275 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33276 s&@builddir@&$ac_builddir&;t t
33277 s&@abs_builddir@&$ac_abs_builddir&;t t
33278 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33279 s&@INSTALL@&$ac_INSTALL&;t t
33280 $ac_datarootdir_hack
33281 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
33283 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33284 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33285 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33286 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33287 which seems to be undefined. Please make sure it is defined." >&5
33288 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33289 which seems to be undefined. Please make sure it is defined." >&2;}
33293 -) cat "$tmp/out"; rm -f "$tmp/out";;
33294 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33303 # Transform confdefs.h into a sed script `conftest.defines', that
33304 # substitutes the proper values into config.h.in to produce config.h.
33305 rm -f conftest.defines conftest.tail
33306 # First, append a space to every undef/define line, to ease matching.
33307 echo 's/$/ /' >conftest.defines
33308 # Then, protect against being on the right side of a sed subst, or in
33309 # an unquoted here document, in config.status. If some macros were
33310 # called several times there might be several #defines for the same
33311 # symbol, which is useless. But do not sort them, since the last
33312 # AC_DEFINE must be honored.
33313 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33314 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33315 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33316 # PARAMS is the parameter list in the macro definition--in most cases, it's
33317 # just an empty string.
33318 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33319 ac_dB='\\)[ (].*,\\1define\\2'
33327 s/^[ ]*#[ ]*define[ ][ ]*//
33332 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33333 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33334 ' >>conftest.defines
33336 # Remove the space that was appended to ease matching.
33337 # Then replace #undef with comments. This is necessary, for
33338 # example, in the case of _POSIX_SOURCE, which is predefined and required
33339 # on some systems where configure will not decide to define it.
33340 # (The regexp can be short, since the line contains either #define or #undef.)
33342 s,^[ #]*u.*,/* & */,' >>conftest.defines
33344 # Break up conftest.defines:
33345 ac_max_sed_lines=50
33347 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33348 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33349 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33351 ac_in='$ac_file_inputs'
33352 ac_out='"$tmp/out1"'
33353 ac_nxt='"$tmp/out2"'
33357 # Write a here document:
33358 cat >>$CONFIG_STATUS <<_ACEOF
33359 # First, check the format of the line:
33360 cat >"\$tmp/defines.sed" <<\\CEOF
33361 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33362 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33366 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33368 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33369 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33370 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33371 grep . conftest.tail >/dev/null || break
33372 rm -f conftest.defines
33373 mv conftest.tail conftest.defines
33375 rm -f conftest.defines conftest.tail
33377 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33378 cat >>$CONFIG_STATUS <<\_ACEOF
33379 if test x"$ac_file" != x-; then
33380 echo "/* $configure_input */" >"$tmp/config.h"
33381 cat "$ac_result" >>"$tmp/config.h"
33382 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33383 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33384 echo "$as_me: $ac_file is unchanged" >&6;}
33387 mv "$tmp/config.h" $ac_file
33390 echo "/* $configure_input */"
33394 # Compute $ac_file's index in $config_headers.
33396 for _am_header in $config_headers :; do
33397 case $_am_header in
33398 $ac_file | $ac_file:* )
33401 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33404 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
33405 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33406 X$ac_file : 'X\(//\)[^/]' \| \
33407 X$ac_file : 'X\(//\)$' \| \
33408 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
33410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33414 /^X\(\/\/\)[^/].*/{
33426 s/.*/./; q'`/stamp-h$_am_stamp_count
33429 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33430 echo "$as_me: executing $ac_file commands" >&6;}
33435 case $ac_file$ac_mode in
33436 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33437 # Strip MF so we end up with the name of the file.
33438 mf=`echo "$mf" | sed -e 's/:.*$//'`
33439 # Check whether this is an Automake generated Makefile or not.
33440 # We used to match only the files named `Makefile.in', but
33441 # some people rename them; so instead we look at the file content.
33442 # Grep'ing the first line is not enough: some people post-process
33443 # each Makefile.in and add a new line on top of each file to say so.
33444 # So let's grep whole file.
33445 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33446 dirpart=`$as_dirname -- "$mf" ||
33447 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33448 X"$mf" : 'X\(//\)[^/]' \| \
33449 X"$mf" : 'X\(//\)$' \| \
33450 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33456 /^X\(\/\/\)[^/].*/{
33472 # Extract the definition of DEPDIR, am__include, and am__quote
33473 # from the Makefile without running `make'.
33474 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33475 test -z "$DEPDIR" && continue
33476 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33477 test -z "am__include" && continue
33478 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33479 # When using ansi2knr, U may be empty or an underscore; expand it
33480 U=`sed -n 's/^U = //p' < "$mf"`
33481 # Find all dependency output files, they are included files with
33482 # $(DEPDIR) in their names. We invoke sed twice because it is the
33483 # simplest approach to changing $(DEPDIR) to its actual value in the
33485 for file in `sed -n "
33486 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33487 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33488 # Make sure the directory exists.
33489 test -f "$dirpart/$file" && continue
33490 fdir=`$as_dirname -- "$file" ||
33491 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33492 X"$file" : 'X\(//\)[^/]' \| \
33493 X"$file" : 'X\(//\)$' \| \
33494 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33500 /^X\(\/\/\)[^/].*/{
33513 { as_dir=$dirpart/$fdir
33515 -*) as_dir=./$as_dir;;
33517 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33521 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33522 *) as_qdir=$as_dir;;
33524 as_dirs="'$as_qdir' $as_dirs"
33525 as_dir=`$as_dirname -- "$as_dir" ||
33526 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33527 X"$as_dir" : 'X\(//\)[^/]' \| \
33528 X"$as_dir" : 'X\(//\)$' \| \
33529 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33535 /^X\(\/\/\)[^/].*/{
33548 test -d "$as_dir" && break
33550 test -z "$as_dirs" || eval "mkdir $as_dirs"
33551 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33552 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33553 { (exit 1); exit 1; }; }; }
33554 # echo "creating $dirpart/$file"
33555 echo '# dummy' > "$dirpart/$file"
33559 "run_tests_core":C) chmod +x gnuradio-core/src/python/gnuradio/gr/run_tests ;;
33560 "swig_deps":C) touch gnuradio-core/src/lib/swig/gnuradio_swig_python.d ;;
33561 "run_tests_usrp":C) chmod +x gr-usrp/src/run_tests ;;
33562 "run_tests_alsa":C) chmod +x gr-audio-alsa/src/run_tests ;;
33563 "run_tests_jack":C) chmod +x gr-audio-jack/src/run_tests ;;
33564 "run_tests_oss":C) chmod +x gr-audio-oss/src/run_tests ;;
33565 "run_tests_osx":C) chmod +x gr-audio-osx/src/run_tests ;;
33566 "run_tests_portaudio":C) chmod +x gr-audio-portaudio/src/run_tests ;;
33567 "run_tests_audio_windows":C) chmod +x gr-audio-windows/src/run_tests ;;
33568 "run_tests_gsm":C) chmod +x gr-gsm-fr-vocoder/src/python/run_tests ;;
33569 "run_tests_astronomy":C) chmod +x gr-radio-astronomy/src/python/run_tests ;;
33570 "run_tests_gr_trellis":C) chmod +x gr-trellis/src/python/run_tests ;;
33571 "run_tests_sdl":C) chmod +x gr-video-sdl/src/run_tests ;;
33572 "run_tests_build":C) chmod +x run_tests.sh ;;
33578 { (exit 0); exit 0; }
33580 chmod +x $CONFIG_STATUS
33581 ac_clean_files=$ac_clean_files_save
33584 # configure is writing to config.log, and then calls config.status.
33585 # config.status does its own redirection, appending to config.log.
33586 # Unfortunately, on DOS this fails, as config.log is still kept open
33587 # by configure, so config.status won't be able to write to it; its
33588 # output is simply discarded. So we exec the FD to /dev/null,
33589 # effectively closing config.log, so it can be properly (re)opened and
33590 # appended to by config.status. When coming back to configure, we
33591 # need to make the FD available again.
33592 if test "$no_create" != yes; then
33594 ac_config_status_args=
33595 test "$silent" = yes &&
33596 ac_config_status_args="$ac_config_status_args --quiet"
33598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33601 # would make configure fail if this is the last instruction.
33602 $ac_cs_success || { (exit 1); exit 1; }
33607 echo "*********************************************************************"
33608 echo The following GNU Radio components have been successfully configured:
33610 for dir in $build_dirs
33615 echo You my now run the 'make' command to build these components.
33617 if test "$skipped_dirs" != ""; then
33618 echo "*********************************************************************"
33619 echo The following components were skipped either because you asked not
33620 echo to build them or they didn\'t pass configuration checks:
33622 for dir in $skipped_dirs
33627 echo These components will not be built.