2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
750 ac_unique_file="QRencode"
751 ac_unique_file="qrencode.c"
752 # Factoring default headers for most tests.
753 ac_includes_default="\
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
765 # ifdef HAVE_STDLIB_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
788 ac_subst_vars='LTLIBOBJS
846 INSTALL_STRIP_PROGRAM
903 program_transform_name
915 enable_option_checking
917 enable_dependency_tracking
932 ac_precious_vars='build_alias
946 # Initialize some variables set by options.
948 ac_init_version=false
949 ac_unrecognized_opts=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
960 program_transform_name=s,x,x,
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 includedir='${prefix}/include'
983 oldincludedir='/usr/include'
984 docdir='${datarootdir}/doc/${PACKAGE}'
985 infodir='${datarootdir}/info'
990 libdir='${exec_prefix}/lib'
991 localedir='${datarootdir}/locale'
992 mandir='${datarootdir}/man'
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
1000 eval $ac_prev=\$ac_option
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1012 case $ac_dashdash$ac_option in
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1036 -datadir | --datadir | --datadi | --datad)
1038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039 datadir=$ac_optarg ;;
1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1048 -disable-* | --disable-*)
1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=no ;;
1065 -docdir | --docdir | --docdi | --doc | --do)
1067 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1068 docdir=$ac_optarg ;;
1070 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1073 dvidir=$ac_optarg ;;
1075 -enable-* | --enable-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 sbindir=$ac_optarg ;;
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 sharedstatedir=$ac_optarg ;;
1252 -site | --site | --sit)
1254 -site=* | --site=* | --sit=*)
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1285 { (exit 1); exit 1; }; }
1286 ac_useropt_orig=$ac_useropt
1287 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1288 case $ac_user_opts in
1292 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1293 ac_unrecognized_sep=', ';;
1295 eval with_$ac_useropt=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=no ;;
1315 # Obsolete; use --with-x.
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1333 Try \`$0 --help' for more information." >&2
1334 { (exit 1); exit 1; }; }
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1341 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1342 { (exit 1); exit 1; }; }
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1360 { (exit 1); exit 1; }; }
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1366 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1367 { (exit 1); exit 1; }; } ;;
1368 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 # Check all directory arguments for consistency.
1373 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1374 datadir sysconfdir sharedstatedir localstatedir includedir \
1375 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1376 libdir localedir mandir
1378 eval ac_val=\$$ac_var
1379 # Remove trailing slashes.
1382 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1383 eval $ac_var=\$ac_val;;
1385 # Be sure to have absolute directory names.
1387 [\\/$]* | ?:[\\/]* ) continue;;
1388 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1391 { (exit 1); exit 1; }; }
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used." >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1422 { (exit 1); exit 1; }; }
1423 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1424 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1425 { (exit 1); exit 1; }; }
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1460 ac_srcdir_defaulted=no
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1465 { (exit 1); exit 1; }; }
1467 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1469 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1470 { (exit 1); exit 1; }; }
1472 # When building in place, set srcdir=.
1473 if test "$ac_abs_confdir" = "$ac_pwd"; then
1476 # Remove unnecessary trailing slashes from srcdir.
1477 # Double slashes in file names in object file debugging info
1478 # mess up M-x gdb in Emacs.
1480 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1482 for ac_var in $ac_precious_vars; do
1483 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_env_${ac_var}_value=\$${ac_var}
1485 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1486 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 # Report the --help message.
1492 if test "$ac_init_help" = "long"; then
1493 # Omit some internal or obsolete options to make the list less imposing.
1494 # This message is too long to be a string in the A/UX 3.1 sh.
1496 \`configure' configures this package to adapt to many kinds of systems.
1498 Usage: $0 [OPTION]... [VAR=VALUE]...
1500 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1501 VAR=VALUE. See below for descriptions of some of the useful variables.
1503 Defaults for the options are specified in brackets.
1506 -h, --help display this help and exit
1507 --help=short display options specific to this package
1508 --help=recursive display the short help of all the included packages
1509 -V, --version display version information and exit
1510 -q, --quiet, --silent do not print \`checking...' messages
1511 --cache-file=FILE cache test results in FILE [disabled]
1512 -C, --config-cache alias for \`--cache-file=config.cache'
1513 -n, --no-create do not create output files
1514 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1516 Installation directories:
1517 --prefix=PREFIX install architecture-independent files in PREFIX
1518 [$ac_default_prefix]
1519 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1522 By default, \`make install' will install all the files in
1523 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1524 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1525 for instance \`--prefix=\$HOME'.
1527 For better control, use the options below.
1529 Fine tuning of the installation directories:
1530 --bindir=DIR user executables [EPREFIX/bin]
1531 --sbindir=DIR system admin executables [EPREFIX/sbin]
1532 --libexecdir=DIR program executables [EPREFIX/libexec]
1533 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1534 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1535 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1536 --libdir=DIR object code libraries [EPREFIX/lib]
1537 --includedir=DIR C header files [PREFIX/include]
1538 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1539 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1540 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1541 --infodir=DIR info documentation [DATAROOTDIR/info]
1542 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1543 --mandir=DIR man documentation [DATAROOTDIR/man]
1544 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1545 --htmldir=DIR html documentation [DOCDIR]
1546 --dvidir=DIR dvi documentation [DOCDIR]
1547 --pdfdir=DIR pdf documentation [DOCDIR]
1548 --psdir=DIR ps documentation [DOCDIR]
1554 --program-prefix=PREFIX prepend PREFIX to installed program names
1555 --program-suffix=SUFFIX append SUFFIX to installed program names
1556 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1559 --build=BUILD configure for building on BUILD [guessed]
1560 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1561 --target=TARGET configure for building compilers for TARGET [HOST]
1565 if test -n "$ac_init_help"; then
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-static[=PKGS] build static libraries [default=no]
1574 --disable-dependency-tracking speeds up one-time build
1575 --enable-dependency-tracking do not reject slow dependency extractors
1576 --enable-shared[=PKGS] build shared libraries [default=yes]
1577 --enable-fast-install[=PKGS]
1578 optimize for fast installation [default=yes]
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1580 --disable-sdltest Do not try to compile and run a test SDL program
1581 --enable-gprof generate extra code to write profile information
1582 suitable for gprof [default=no]
1583 --enable-gcov generate extra code to write coverage information
1584 suitable for gcov [default=no]
1585 --enable-mudflap generate extra code to check memory leaks
1589 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1590 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1591 --with-pic try to use only PIC/non-PIC objects [default=use
1593 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1594 --with-tools build utility tools [default=yes]
1595 --with-tests build tests [default=no]
1596 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1597 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1599 Some influential environment variables:
1600 CC C compiler command
1601 CFLAGS C compiler flags
1602 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1603 nonstandard directory <lib dir>
1604 LIBS libraries to pass to the linker, e.g. -l<library>
1605 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1606 you have headers in a nonstandard directory <include dir>
1608 PKG_CONFIG path to pkg-config utility
1609 png_CFLAGS C compiler flags for png, overriding pkg-config
1610 png_LIBS linker flags for png, overriding pkg-config
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1619 if test "$ac_init_help" = "recursive"; then
1620 # If there are subdirs, report their specific --help.
1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1622 test -d "$ac_dir" ||
1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1631 # A ".." for each directory in $ac_dir_suffix.
1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1633 case $ac_top_builddir_sub in
1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 ac_abs_top_builddir=$ac_pwd
1639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1640 # for backward compatibility:
1641 ac_top_builddir=$ac_top_build_prefix
1644 .) # We are building in place.
1646 ac_top_srcdir=$ac_top_builddir_sub
1647 ac_abs_top_srcdir=$ac_pwd ;;
1648 [\\/]* | ?:[\\/]* ) # Absolute name.
1649 ac_srcdir=$srcdir$ac_dir_suffix;
1650 ac_top_srcdir=$srcdir
1651 ac_abs_top_srcdir=$srcdir ;;
1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1654 ac_top_srcdir=$ac_top_build_prefix$srcdir
1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659 cd "$ac_dir" || { ac_status=$?; continue; }
1660 # Check for guested configure.
1661 if test -f "$ac_srcdir/configure.gnu"; then
1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1664 elif test -f "$ac_srcdir/configure"; then
1666 $SHELL "$ac_srcdir/configure" --help=recursive
1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 cd "$ac_pwd" || { ac_status=$?; break; }
1674 test -n "$ac_init_help" && exit $ac_status
1675 if $ac_init_version; then
1678 generated by GNU Autoconf 2.63
1680 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1681 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1687 cat >config.log <<_ACEOF
1688 This file contains any messages produced by compilers while
1689 running configure, to aid debugging if configure makes a mistake.
1691 It was created by $as_me, which was
1692 generated by GNU Autoconf 2.63. Invocation command line was
1704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1713 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1714 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1717 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1718 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1719 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 $as_echo "PATH: $as_dir"
1744 # Keep a trace of the command line.
1745 # Strip out --no-create and --no-recursion so they do not pile up.
1746 # Strip out --silent because we don't want to record it for future runs.
1747 # Also quote any args containing shell meta-characters.
1748 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_must_keep_next=false
1758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760 | -silent | --silent | --silen | --sile | --sil)
1763 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1768 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1769 if test $ac_must_keep_next = true; then
1770 ac_must_keep_next=false # Got value, back to normal.
1773 *=* | --config-cache | -C | -disable-* | --disable-* \
1774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776 | -with-* | --with-* | -without-* | --without-* | --x)
1777 case "$ac_configure_args0 " in
1778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781 -* ) ac_must_keep_next=true ;;
1784 ac_configure_args="$ac_configure_args '$ac_arg'"
1789 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1790 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1792 # When interrupted or exit'd, cleanup temporary files, and complete
1793 # config.log. We remove comments because anyway the quotes in there
1794 # would cause problems or look ugly.
1795 # WARNING: Use '\'' to represent an apostrophe within the trap.
1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797 trap 'exit_status=$?
1798 # Save into config.log some information that might help in debugging.
1803 ## ---------------- ##
1804 ## Cache variables. ##
1805 ## ---------------- ##
1808 # The following way of writing the cache mishandles newlines in values,
1810 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1811 eval ac_val=\$$ac_var
1815 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1819 _ | IFS | as_nl) ;; #(
1820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1821 *) $as_unset $ac_var ;;
1826 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1827 *${as_nl}ac_space=\ *)
1829 "s/'\''/'\''\\\\'\'''\''/g;
1830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841 ## ----------------- ##
1842 ## Output variables. ##
1843 ## ----------------- ##
1846 for ac_var in $ac_subst_vars
1848 eval ac_val=\$$ac_var
1850 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852 $as_echo "$ac_var='\''$ac_val'\''"
1856 if test -n "$ac_subst_files"; then
1858 ## ------------------- ##
1859 ## File substitutions. ##
1860 ## ------------------- ##
1863 for ac_var in $ac_subst_files
1865 eval ac_val=\$$ac_var
1867 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869 $as_echo "$ac_var='\''$ac_val'\''"
1874 if test -s confdefs.h; then
1884 test "$ac_signal" != 0 &&
1885 $as_echo "$as_me: caught signal $ac_signal"
1886 $as_echo "$as_me: exit $exit_status"
1888 rm -f core *.core core.conftest.* &&
1889 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1892 for ac_signal in 1 2 13 15; do
1893 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1898 rm -f -r conftest* confdefs.h
1900 # Predefined preprocessor variables.
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_NAME "$PACKAGE_NAME"
1907 cat >>confdefs.h <<_ACEOF
1908 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1917 cat >>confdefs.h <<_ACEOF
1918 #define PACKAGE_STRING "$PACKAGE_STRING"
1922 cat >>confdefs.h <<_ACEOF
1923 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927 # Let the site file select an alternate cache file if it wants to.
1928 # Prefer an explicitly selected file to automatically selected ones.
1931 if test -n "$CONFIG_SITE"; then
1932 ac_site_file1=$CONFIG_SITE
1933 elif test "x$prefix" != xNONE; then
1934 ac_site_file1=$prefix/share/config.site
1935 ac_site_file2=$prefix/etc/config.site
1937 ac_site_file1=$ac_default_prefix/share/config.site
1938 ac_site_file2=$ac_default_prefix/etc/config.site
1940 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1942 test "x$ac_site_file" = xNONE && continue
1943 if test -r "$ac_site_file"; then
1944 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1951 if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 $as_echo "$as_me: loading cache $cache_file" >&6;}
1958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
1963 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 $as_echo "$as_me: creating cache $cache_file" >&6;}
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 # differences in whitespace do not lead to failure.
1989 ac_old_val_w=`echo x $ac_old_val`
1990 ac_new_val_w=`echo x $ac_new_val`
1991 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1992 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1993 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1994 ac_cache_corrupted=:
1996 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1997 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1998 eval $ac_var=\$ac_old_val
2000 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2001 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2002 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2003 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2006 # Pass precious variables to config.status.
2007 if test "$ac_new_set" = set; then
2009 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 *) ac_arg=$ac_var=$ac_new_val ;;
2012 case " $ac_configure_args " in
2013 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2014 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2018 if $ac_cache_corrupted; then
2019 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2021 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2022 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2023 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2024 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2025 { (exit 1); exit 1; }; }
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2062 ac_config_headers="$ac_config_headers config.h"
2065 for ac_dir in use "$srcdir"/use; 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 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in use \"$srcdir\"/use" >&5
2082 $as_echo "$as_me: error: cannot find install-sh or install.sh in use \"$srcdir\"/use" >&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.
2096 # Make sure we can run config.sub.
2097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2098 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2099 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2100 { (exit 1); exit 1; }; }
2102 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2103 $as_echo_n "checking build system type... " >&6; }
2104 if test "${ac_cv_build+set}" = set; then
2105 $as_echo_n "(cached) " >&6
2107 ac_build_alias=$build_alias
2108 test "x$ac_build_alias" = x &&
2109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2110 test "x$ac_build_alias" = x &&
2111 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2112 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2113 { (exit 1); exit 1; }; }
2114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2115 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2116 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2120 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2121 $as_echo "$ac_cv_build" >&6; }
2122 case $ac_cv_build in
2124 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2125 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2126 { (exit 1); exit 1; }; };;
2129 ac_save_IFS=$IFS; IFS='-'
2135 # Remember, the first character of IFS is used to create $*,
2136 # except with old shells:
2139 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2142 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2143 $as_echo_n "checking host system type... " >&6; }
2144 if test "${ac_cv_host+set}" = set; then
2145 $as_echo_n "(cached) " >&6
2147 if test "x$host_alias" = x; then
2148 ac_cv_host=$ac_cv_build
2150 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2151 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2152 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2153 { (exit 1); exit 1; }; }
2157 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2158 $as_echo "$ac_cv_host" >&6; }
2161 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2162 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2163 { (exit 1); exit 1; }; };;
2166 ac_save_IFS=$IFS; IFS='-'
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2176 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2179 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2180 $as_echo_n "checking target system type... " >&6; }
2181 if test "${ac_cv_target+set}" = set; then
2182 $as_echo_n "(cached) " >&6
2184 if test "x$target_alias" = x; then
2185 ac_cv_target=$ac_cv_host
2187 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2188 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2189 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2190 { (exit 1); exit 1; }; }
2194 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2195 $as_echo "$ac_cv_target" >&6; }
2196 case $ac_cv_target in
2198 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2199 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2200 { (exit 1); exit 1; }; };;
2202 target=$ac_cv_target
2203 ac_save_IFS=$IFS; IFS='-'
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2213 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2216 # The aliases save the names the user supplied, while $host etc.
2217 # will get canonicalized.
2218 test -n "$target_alias" &&
2219 test "$program_prefix$program_suffix$program_transform_name" = \
2221 program_prefix=${target_alias}-
2223 am__api_version='1.10'
2225 # Find a good install program. We prefer a C program (faster),
2226 # so one script is as good as another. But avoid the broken or
2227 # incompatible versions:
2228 # SysV /etc/install, /usr/sbin/install
2229 # SunOS /usr/etc/install
2230 # IRIX /sbin/install
2232 # AmigaOS /C/install, which installs bootblocks on floppy discs
2233 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2234 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2235 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2236 # OS/2's system install, which has a completely different semantic
2237 # ./install, which can be erroneously created by make from ./install.sh.
2238 # Reject install programs that cannot install multiple files.
2239 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2240 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2241 if test -z "$INSTALL"; then
2242 if test "${ac_cv_path_install+set}" = set; then
2243 $as_echo_n "(cached) " >&6
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 test -z "$as_dir" && as_dir=.
2250 # Account for people who put trailing slashes in PATH elements.
2252 ./ | .// | /cC/* | \
2253 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2254 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2257 # OSF1 and SCO ODT 3.0 have their own names for install.
2258 # Don't use installbsd from OSF since it installs stuff as root
2260 for ac_prog in ginstall scoinst install; do
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2263 if test $ac_prog = install &&
2264 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265 # AIX install. It has an incompatible calling convention.
2267 elif test $ac_prog = install &&
2268 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269 # program-specific install script used by HP pwplus--don't use.
2272 rm -rf conftest.one conftest.two conftest.dir
2273 echo one > conftest.one
2274 echo two > conftest.two
2276 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2277 test -s conftest.one && test -s conftest.two &&
2278 test -s conftest.dir/conftest.one &&
2279 test -s conftest.dir/conftest.two
2281 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2294 rm -rf conftest.one conftest.two conftest.dir
2297 if test "${ac_cv_path_install+set}" = set; then
2298 INSTALL=$ac_cv_path_install
2300 # As a last resort, use the slow shell script. Don't cache a
2301 # value for INSTALL within a source directory, because that will
2302 # break other packages using the cache if that directory is
2303 # removed, or if the value is a relative name.
2304 INSTALL=$ac_install_sh
2307 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2308 $as_echo "$INSTALL" >&6; }
2310 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311 # It thinks the first close brace ends the variable substitution.
2312 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2314 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2316 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2319 $as_echo_n "checking whether build environment is sane... " >&6; }
2322 echo timestamp > conftest.file
2323 # Do `set' in a subshell so we don't clobber the current shell's
2324 # arguments. Must try -L first in case configure is actually a
2325 # symlink; some systems play weird games with the mod time of symlinks
2326 # (eg FreeBSD returns the mod time of the symlink's containing
2329 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2330 if test "$*" = "X"; then
2332 set X `ls -t $srcdir/configure conftest.file`
2335 if test "$*" != "X $srcdir/configure conftest.file" \
2336 && test "$*" != "X conftest.file $srcdir/configure"; then
2338 # If neither matched, then we have a broken ls. This can happen
2339 # if, for instance, CONFIG_SHELL is bash and it inherits a
2340 # broken ls alias from the environment. This has actually
2341 # happened. Such a system could not be considered "sane".
2342 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2343 alias in your environment" >&5
2344 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2345 alias in your environment" >&2;}
2346 { (exit 1); exit 1; }; }
2349 test "$2" = conftest.file
2355 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2356 Check your system clock" >&5
2357 $as_echo "$as_me: error: newly created file is older than distributed files!
2358 Check your system clock" >&2;}
2359 { (exit 1); exit 1; }; }
2361 { $as_echo "$as_me:$LINENO: result: yes" >&5
2362 $as_echo "yes" >&6; }
2363 test "$program_prefix" != NONE &&
2364 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2365 # Use a double $ so make ignores it.
2366 test "$program_suffix" != NONE &&
2367 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2368 # Double any \ or $.
2369 # By default was `s,x,x', remove it if useless.
2370 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2371 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2373 # expand $ac_aux_dir to an absolute path
2374 am_aux_dir=`cd $ac_aux_dir && pwd`
2376 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2377 # Use eval to expand $SHELL
2378 if eval "$MISSING --run true"; then
2379 am_missing_run="$MISSING --run "
2382 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2383 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2386 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2387 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2388 if test -z "$MKDIR_P"; then
2389 if test "${ac_cv_path_mkdir+set}" = set; then
2390 $as_echo_n "(cached) " >&6
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2396 test -z "$as_dir" && as_dir=.
2397 for ac_prog in mkdir gmkdir; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2400 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2401 'mkdir (GNU coreutils) '* | \
2402 'mkdir (coreutils) '* | \
2403 'mkdir (fileutils) '4.1*)
2404 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2414 if test "${ac_cv_path_mkdir+set}" = set; then
2415 MKDIR_P="$ac_cv_path_mkdir -p"
2417 # As a last resort, use the slow shell script. Don't cache a
2418 # value for MKDIR_P within a source directory, because that will
2419 # break other packages using the cache if that directory is
2420 # removed, or if the value is a relative name.
2421 test -d ./--version && rmdir ./--version
2422 MKDIR_P="$ac_install_sh -d"
2425 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2426 $as_echo "$MKDIR_P" >&6; }
2430 [\\/$]* | ?:[\\/]*) ;;
2431 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2434 for ac_prog in gawk mawk nawk awk
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if test "${ac_cv_prog_AWK+set}" = set; then
2441 $as_echo_n "(cached) " >&6
2443 if test -n "$AWK"; then
2444 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_AWK="$ac_prog"
2454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$AWK"; then
2465 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2466 $as_echo "$AWK" >&6; }
2468 { $as_echo "$as_me:$LINENO: result: no" >&5
2469 $as_echo "no" >&6; }
2473 test -n "$AWK" && break
2476 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2477 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2479 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2480 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2481 $as_echo_n "(cached) " >&6
2483 cat >conftest.make <<\_ACEOF
2486 @echo '@@@%%%=$(MAKE)=@@@%%%'
2488 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2489 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2491 eval ac_cv_prog_make_${ac_make}_set=yes;;
2493 eval ac_cv_prog_make_${ac_make}_set=no;;
2497 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2498 { $as_echo "$as_me:$LINENO: result: yes" >&5
2499 $as_echo "yes" >&6; }
2502 { $as_echo "$as_me:$LINENO: result: no" >&5
2503 $as_echo "no" >&6; }
2504 SET_MAKE="MAKE=${MAKE-make}"
2507 rm -rf .tst 2>/dev/null
2508 mkdir .tst 2>/dev/null
2509 if test -d .tst; then
2514 rmdir .tst 2>/dev/null
2516 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2517 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2518 # is not polluted with repeated "-I."
2519 am__isrc=' -I$(srcdir)'
2520 # test to see if srcdir already configured
2521 if test -f $srcdir/config.status; then
2522 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2523 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2524 { (exit 1); exit 1; }; }
2528 # test whether we have cygpath
2529 if test -z "$CYGPATH_W"; then
2530 if (cygpath --version) >/dev/null 2>/dev/null; then
2531 CYGPATH_W='cygpath -w'
2538 # Define the identity of the package.
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE "$PACKAGE"
2548 cat >>confdefs.h <<_ACEOF
2549 #define VERSION "$VERSION"
2552 # Some tools Automake needs.
2554 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2557 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2560 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2563 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2566 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2568 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2570 # Installed binaries are usually stripped using `strip' when the user
2571 # run `make install-strip'. However `strip' might not be the right
2572 # tool to use in cross-compilation environments, therefore Automake
2573 # will honor the `STRIP' environment variable to overrule this program.
2574 if test "$cross_compiling" != no; then
2575 if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2577 set dummy ${ac_tool_prefix}strip; ac_word=$2
2578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if test "${ac_cv_prog_STRIP+set}" = set; then
2581 $as_echo_n "(cached) " >&6
2583 if test -n "$STRIP"; then
2584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 STRIP=$ac_cv_prog_STRIP
2604 if test -n "$STRIP"; then
2605 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2606 $as_echo "$STRIP" >&6; }
2608 { $as_echo "$as_me:$LINENO: result: no" >&5
2609 $as_echo "no" >&6; }
2614 if test -z "$ac_cv_prog_STRIP"; then
2616 # Extract the first word of "strip", so it can be a program name with args.
2617 set dummy strip; ac_word=$2
2618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2619 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2621 $as_echo_n "(cached) " >&6
2623 if test -n "$ac_ct_STRIP"; then
2624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2633 ac_cv_prog_ac_ct_STRIP="strip"
2634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2644 if test -n "$ac_ct_STRIP"; then
2645 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2646 $as_echo "$ac_ct_STRIP" >&6; }
2648 { $as_echo "$as_me:$LINENO: result: no" >&5
2649 $as_echo "no" >&6; }
2652 if test "x$ac_ct_STRIP" = x; then
2655 case $cross_compiling:$ac_tool_warned in
2657 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2664 STRIP="$ac_cv_prog_STRIP"
2668 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2670 # We need awk for the "check" target. The system "awk" is bad on
2672 # Always define AMTAR for backward compatibility.
2674 AMTAR=${AMTAR-"${am_missing_run}tar"}
2676 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2683 # Check whether --enable-static was given.
2684 if test "${enable_static+set}" = set; then
2685 enableval=$enable_static; p=${PACKAGE-default}
2687 yes) enable_static=yes ;;
2688 no) enable_static=no ;;
2691 # Look at the argument we got. We use all the common list separators.
2692 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2693 for pkg in $enableval; do
2695 if test "X$pkg" = "X$p"; then
2714 DEPDIR="${am__leading_dot}deps"
2716 ac_config_commands="$ac_config_commands depfiles"
2719 am_make=${MAKE-make}
2720 cat > confinc << 'END'
2725 # If we don't find an include directive, just comment out the code.
2726 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2727 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2731 # First try GNU make style include.
2732 echo "include confinc" > confmf
2733 # We grep out `Entering directory' and `Leaving directory'
2734 # messages which can occur if `w' ends up in MAKEFLAGS.
2735 # In particular we don't look at `^make:' because GNU make might
2736 # be invoked under some other name (usually "gmake"), in which
2737 # case it prints its new name instead of `make'.
2738 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2743 # Now try BSD make style include.
2744 if test "$am__include" = "#"; then
2745 echo '.include "confinc"' > confmf
2746 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2747 am__include=.include
2754 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2755 $as_echo "$_am_result" >&6; }
2756 rm -f confinc confmf
2758 # Check whether --enable-dependency-tracking was given.
2759 if test "${enable_dependency_tracking+set}" = set; then
2760 enableval=$enable_dependency_tracking;
2763 if test "x$enable_dependency_tracking" != xno; then
2764 am_depcomp="$ac_aux_dir/depcomp"
2767 if test "x$enable_dependency_tracking" != xno; then
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then
2787 $as_echo_n "(cached) " >&6
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$CC"; then
2811 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2814 { $as_echo "$as_me:$LINENO: result: no" >&5
2815 $as_echo "no" >&6; }
2820 if test -z "$ac_cv_prog_CC"; then
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CC="gcc"
2840 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2854 { $as_echo "$as_me:$LINENO: result: no" >&5
2855 $as_echo "no" >&6; }
2858 if test "x$ac_ct_CC" = x; then
2861 case $cross_compiling:$ac_tool_warned in
2863 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2873 if test -z "$CC"; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then
2880 $as_echo_n "(cached) " >&6
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CC="${ac_tool_prefix}cc"
2893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2907 { $as_echo "$as_me:$LINENO: result: no" >&5
2908 $as_echo "no" >&6; }
2914 if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920 $as_echo_n "(cached) " >&6
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected=yes
2938 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy $ac_cv_prog_CC
2949 if test $# != 0; then
2950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2960 if test -n "$CC"; then
2961 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2964 { $as_echo "$as_me:$LINENO: result: no" >&5
2965 $as_echo "no" >&6; }
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 for ac_prog in cl.exe
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then
2979 $as_echo_n "(cached) " >&6
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002 if test -n "$CC"; then
3003 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3006 { $as_echo "$as_me:$LINENO: result: no" >&5
3007 $as_echo "no" >&6; }
3011 test -n "$CC" && break
3014 if test -z "$CC"; then
3016 for ac_prog in cl.exe
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_ac_ct_CC="$ac_prog"
3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3055 test -n "$ac_ct_CC" && break
3058 if test "x$ac_ct_CC" = x; then
3061 case $cross_compiling:$ac_tool_warned in
3063 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3074 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." >&5
3078 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3079 See \`config.log' for more details." >&2;}
3080 { (exit 1); exit 1; }; }; }
3082 # Provide some information about the compiler.
3083 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3086 { (ac_try="$ac_compiler --version >&5"
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3092 $as_echo "$ac_try_echo") >&5
3093 (eval "$ac_compiler --version >&5") 2>&5
3095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }
3097 { (ac_try="$ac_compiler -v >&5"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103 $as_echo "$ac_try_echo") >&5
3104 (eval "$ac_compiler -v >&5") 2>&5
3106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }
3108 { (ac_try="$ac_compiler -V >&5"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114 $as_echo "$ac_try_echo") >&5
3115 (eval "$ac_compiler -V >&5") 2>&5
3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }
3120 cat >conftest.$ac_ext <<_ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3135 ac_clean_files_save=$ac_clean_files
3136 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3137 # Try to create an executable without -o first, disregard a.out.
3138 # It will help us diagnose broken compilers, and finding out an intuition
3140 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3141 $as_echo_n "checking for C compiler default output file name... " >&6; }
3142 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3144 # The possible output files:
3145 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3148 for ac_file in $ac_files
3151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3152 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3157 if { (ac_try="$ac_link_default"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164 (eval "$ac_link_default") 2>&5
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; then
3168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3170 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3171 # so that the user can short-circuit this test for compilers unknown to
3173 for ac_file in $ac_files ''
3175 test -f "$ac_file" || continue
3177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3180 # We found the default executable, but exeext='' is most
3184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3188 # We set ac_cv_exeext here because the later test for it is not
3189 # safe: cross compilers may not add the suffix if given an `-o'
3190 # argument, so we may need to know it at that point already.
3191 # Even if this section looks crufty: it has the advantage of
3198 test "$ac_cv_exeext" = no && ac_cv_exeext=
3204 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 if test -z "$ac_file"; then
3207 $as_echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3210 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3213 See \`config.log' for more details." >&5
3214 $as_echo "$as_me: error: C compiler cannot create executables
3215 See \`config.log' for more details." >&2;}
3216 { (exit 77); exit 77; }; }; }
3219 ac_exeext=$ac_cv_exeext
3221 # Check that the compiler produces executables we can run. If not, either
3222 # the compiler is broken, or we cross compile.
3223 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3224 $as_echo_n "checking whether the C compiler works... " >&6; }
3225 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3226 # If not cross compiling, check that we can run a simple program.
3227 if test "$cross_compiling" != yes; then
3228 if { ac_try='./$ac_file'
3229 { (case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3234 $as_echo "$ac_try_echo") >&5
3235 (eval "$ac_try") 2>&5
3237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }; }; then
3241 if test "$cross_compiling" = maybe; then
3244 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3247 If you meant to cross compile, use \`--host'.
3248 See \`config.log' for more details." >&5
3249 $as_echo "$as_me: error: cannot run C compiled programs.
3250 If you meant to cross compile, use \`--host'.
3251 See \`config.log' for more details." >&2;}
3252 { (exit 1); exit 1; }; }; }
3256 { $as_echo "$as_me:$LINENO: result: yes" >&5
3257 $as_echo "yes" >&6; }
3259 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3260 ac_clean_files=$ac_clean_files_save
3261 # Check that the compiler produces executables we can run. If not, either
3262 # the compiler is broken, or we cross compile.
3263 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3264 $as_echo_n "checking whether we are cross compiling... " >&6; }
3265 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3266 $as_echo "$cross_compiling" >&6; }
3268 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3269 $as_echo_n "checking for suffix of executables... " >&6; }
3270 if { (ac_try="$ac_link"
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3276 $as_echo "$ac_try_echo") >&5
3277 (eval "$ac_link") 2>&5
3279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; then
3281 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3282 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3283 # work properly (i.e., refer to `conftest.exe'), while it won't with
3285 for ac_file in conftest.exe conftest conftest.*; do
3286 test -f "$ac_file" || continue
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3289 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3298 See \`config.log' for more details." >&5
3299 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3300 See \`config.log' for more details." >&2;}
3301 { (exit 1); exit 1; }; }; }
3304 rm -f conftest$ac_cv_exeext
3305 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3306 $as_echo "$ac_cv_exeext" >&6; }
3308 rm -f conftest.$ac_ext
3309 EXEEXT=$ac_cv_exeext
3311 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3312 $as_echo_n "checking for suffix of object files... " >&6; }
3313 if test "${ac_cv_objext+set}" = set; then
3314 $as_echo_n "(cached) " >&6
3316 cat >conftest.$ac_ext <<_ACEOF
3319 cat confdefs.h >>conftest.$ac_ext
3320 cat >>conftest.$ac_ext <<_ACEOF
3321 /* end confdefs.h. */
3331 rm -f conftest.o conftest.obj
3332 if { (ac_try="$ac_compile"
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5
3339 (eval "$ac_compile") 2>&5
3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; then
3343 for ac_file in conftest.o conftest.obj conftest.*; do
3344 test -f "$ac_file" || continue;
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3347 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3352 $as_echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3355 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3358 See \`config.log' for more details." >&5
3359 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details." >&2;}
3361 { (exit 1); exit 1; }; }; }
3364 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3366 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3367 $as_echo "$ac_cv_objext" >&6; }
3368 OBJEXT=$ac_cv_objext
3370 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3371 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3372 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3373 $as_echo_n "(cached) " >&6
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400 $as_echo "$ac_try_echo") >&5
3401 (eval "$ac_compile") 2>conftest.er1
3403 grep -v '^ *+' conftest.er1 >conftest.err
3405 cat conftest.err >&5
3406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } && {
3408 test -z "$ac_c_werror_flag" ||
3409 test ! -s conftest.err
3410 } && test -s conftest.$ac_objext; then
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3423 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3424 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3425 if test $ac_compiler_gnu = yes; then
3430 ac_test_CFLAGS=${CFLAGS+set}
3431 ac_save_CFLAGS=$CFLAGS
3432 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3433 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3434 if test "${ac_cv_prog_cc_g+set}" = set; then
3435 $as_echo_n "(cached) " >&6
3437 ac_save_c_werror_flag=$ac_c_werror_flag
3438 ac_c_werror_flag=yes
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3463 $as_echo "$ac_try_echo") >&5
3464 (eval "$ac_compile") 2>conftest.er1
3466 grep -v '^ *+' conftest.er1 >conftest.err
3468 cat conftest.err >&5
3469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } && {
3471 test -z "$ac_c_werror_flag" ||
3472 test ! -s conftest.err
3473 } && test -s conftest.$ac_objext; then
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3495 rm -f conftest.$ac_objext
3496 if { (ac_try="$ac_compile"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3502 $as_echo "$ac_try_echo") >&5
3503 (eval "$ac_compile") 2>conftest.er1
3505 grep -v '^ *+' conftest.er1 >conftest.err
3507 cat conftest.err >&5
3508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); } && {
3510 test -z "$ac_c_werror_flag" ||
3511 test ! -s conftest.err
3512 } && test -s conftest.$ac_objext; then
3515 $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_c_werror_flag=$ac_save_c_werror_flag
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3535 rm -f conftest.$ac_objext
3536 if { (ac_try="$ac_compile"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } && {
3550 test -z "$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3552 } && test -s conftest.$ac_objext; then
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3571 $as_echo "$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3581 if test "$GCC" = yes; then
3587 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589 if test "${ac_cv_prog_cc_c89+set}" = set; then
3590 $as_echo_n "(cached) " >&6
3592 ac_cv_prog_cc_c89=no
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3602 #include <sys/types.h>
3603 #include <sys/stat.h>
3604 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3605 struct buf { int x; };
3606 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607 static char *e (p, i)
3613 static char *f (char * (*g) (char **, int), char **p, ...)
3618 s = g (p, va_arg (v,int));
3623 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3624 function prototypes and stuff, but not '\xHH' hex character constants.
3625 These don't provoke an error unfortunately, instead are silently treated
3626 as 'x'. The following induces an error, until -std is added to get
3627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3628 array size at least. It's necessary to write '\x00'==0 to get something
3629 that's true only with -std. */
3630 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3632 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633 inside strings and character constants. */
3635 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3637 int test (int i, double x);
3638 struct s1 {int (*f) (int a);};
3639 struct s2 {int (*f) (double a);};
3640 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3654 CC="$ac_save_CC $ac_arg"
3655 rm -f conftest.$ac_objext
3656 if { (ac_try="$ac_compile"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3662 $as_echo "$ac_try_echo") >&5
3663 (eval "$ac_compile") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest.$ac_objext; then
3673 ac_cv_prog_cc_c89=$ac_arg
3675 $as_echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3681 rm -f core conftest.err conftest.$ac_objext
3682 test "x$ac_cv_prog_cc_c89" != "xno" && break
3684 rm -f conftest.$ac_ext
3689 case "x$ac_cv_prog_cc_c89" in
3691 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3692 $as_echo "none needed" >&6; } ;;
3694 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3695 $as_echo "unsupported" >&6; } ;;
3697 CC="$CC $ac_cv_prog_cc_c89"
3698 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709 depcc="$CC" am_compiler_list=
3711 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3712 $as_echo_n "checking dependency style of $depcc... " >&6; }
3713 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3714 $as_echo_n "(cached) " >&6
3716 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3717 # We make a subdir and do the tests there. Otherwise we can end up
3718 # making bogus files that we don't know about and never remove. For
3719 # instance it was reported that on HP-UX the gcc test will end up
3720 # making a dummy file named `D' -- because `-MD' means `put the output
3723 # Copy depcomp to subdir because otherwise we won't find it if we're
3724 # using a relative directory.
3725 cp "$am_depcomp" conftest.dir
3727 # We will build objects and dependencies in a subdirectory because
3728 # it helps to detect inapplicable dependency modes. For instance
3729 # both Tru64's cc and ICC support -MD to output dependencies as a
3730 # side effect of compilation, but ICC will put the dependencies in
3731 # the current directory while Tru64 will put them in the object
3735 am_cv_CC_dependencies_compiler_type=none
3736 if test "$am_compiler_list" = ""; then
3737 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3739 for depmode in $am_compiler_list; do
3740 # Setup a source with many dependencies, because some compilers
3741 # like to wrap large dependency lists on column 80 (with \), and
3742 # we should not choose a depcomp mode which is confused by this.
3744 # We need to recreate these files for each test, as the compiler may
3745 # overwrite some of them when testing with obscure command lines.
3746 # This happens at least with the AIX C compiler.
3748 for i in 1 2 3 4 5 6; do
3749 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3750 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3751 # Solaris 8's {/usr,}/bin/sh.
3752 touch sub/conftst$i.h
3754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3758 # after this tag, mechanisms are not by side-effect, so they'll
3759 # only be used when explicitly requested
3760 if test "x$enable_dependency_tracking" = xyes; then
3768 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3769 # mode. It turns out that the SunPro C++ compiler does not properly
3770 # handle `-M -o', and we need to detect this.
3771 if depmode=$depmode \
3772 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3773 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3774 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3775 >/dev/null 2>conftest.err &&
3776 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3777 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3778 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3779 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3780 # icc doesn't choke on unknown options, it will just issue warnings
3781 # or remarks (even with -Werror). So we grep stderr for any message
3782 # that says an option was ignored or not supported.
3783 # When given -MP, icc 7.0 and 7.1 complain thusly:
3784 # icc: Command line warning: ignoring option '-M'; no argument required
3785 # The diagnosis changed in icc 8.0:
3786 # icc: Command line remark: option '-MP' not supported
3787 if (grep 'ignoring option' conftest.err ||
3788 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3789 am_cv_CC_dependencies_compiler_type=$depmode
3798 am_cv_CC_dependencies_compiler_type=none
3802 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3803 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807 test "x$enable_dependency_tracking" != xno \
3808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_FALSE='#'
3812 am__fastdepCC_TRUE='#'
3813 am__fastdepCC_FALSE=
3818 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3819 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
3820 if test "${ac_cv_c_const+set}" = set; then
3821 $as_echo_n "(cached) " >&6
3823 cat >conftest.$ac_ext <<_ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h. */
3833 /* FIXME: Include the comments suggested by Paul. */
3835 /* Ultrix mips cc rejects this. */
3836 typedef int charset[2];
3838 /* SunOS 4.1.1 cc rejects this. */
3839 char const *const *pcpcc;
3841 /* NEC SVR4.0.2 mips cc rejects this. */
3842 struct point {int x, y;};
3843 static struct point const zero = {0,0};
3844 /* AIX XL C 1.02.0.0 rejects this.
3845 It does not let you subtract one const X* pointer from another in
3846 an arm of an if-expression whose if-part is not a constant
3848 const char *g = "string";
3849 pcpcc = &g + (g ? g-g : 0);
3850 /* HPUX 7.0 cc rejects these. */
3852 ppc = (char**) pcpcc;
3853 pcpcc = (char const *const *) ppc;
3854 { /* SCO 3.2v4 cc rejects this. */
3856 char const *s = 0 ? (char *) 0 : (char const *) 0;
3861 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3863 const int *foo = &x[0];
3866 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3867 typedef const int *iptr;
3871 { /* AIX XL C 1.02.0.0 rejects this saying
3872 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3873 struct s { int j; const int *ap[3]; };
3874 struct s *b; b->j = 5;
3876 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3880 return !cs[0] && !zero.x;
3887 rm -f conftest.$ac_objext
3888 if { (ac_try="$ac_compile"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895 (eval "$ac_compile") 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } && {
3902 test -z "$ac_c_werror_flag" ||
3903 test ! -s conftest.err
3904 } && test -s conftest.$ac_objext; then
3907 $as_echo "$as_me: failed program was:" >&5
3908 sed 's/^/| /' conftest.$ac_ext >&5
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3916 $as_echo "$ac_cv_c_const" >&6; }
3917 if test $ac_cv_c_const = no; then
3919 cat >>confdefs.h <<\_ACEOF
3925 { $as_echo "$as_me:$LINENO: checking for inline" >&5
3926 $as_echo_n "checking for inline... " >&6; }
3927 if test "${ac_cv_c_inline+set}" = set; then
3928 $as_echo_n "(cached) " >&6
3931 for ac_kw in inline __inline__ __inline; do
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3940 static $ac_kw foo_t static_foo () {return 0; }
3941 $ac_kw foo_t foo () {return 0; }
3945 rm -f conftest.$ac_objext
3946 if { (ac_try="$ac_compile"
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3952 $as_echo "$ac_try_echo") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3955 grep -v '^ *+' conftest.er1 >conftest.err
3957 cat conftest.err >&5
3958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3963 ac_cv_c_inline=$ac_kw
3965 $as_echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 test "$ac_cv_c_inline" != no && break
3976 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3977 $as_echo "$ac_cv_c_inline" >&6; }
3980 case $ac_cv_c_inline in
3983 case $ac_cv_c_inline in
3985 *) ac_val=$ac_cv_c_inline;;
3987 cat >>confdefs.h <<_ACEOF
3989 #define inline $ac_val
3996 ac_cpp='$CPP $CPPFLAGS'
3997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4000 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4001 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4002 # On Suns, sometimes $CPP names a directory.
4003 if test -n "$CPP" && test -d "$CPP"; then
4006 if test -z "$CPP"; then
4007 if test "${ac_cv_prog_CPP+set}" = set; then
4008 $as_echo_n "(cached) " >&6
4010 # Double quotes because CPP needs to be expanded
4011 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4014 for ac_c_preproc_warn_flag in '' yes
4016 # Use a header file that comes with gcc, so configuring glibc
4017 # with a fresh cross-compiler works.
4018 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019 # <limits.h> exists even on freestanding compilers.
4020 # On the NeXT, cc -E runs the code through the compiler's parser,
4021 # not just through cpp. "Syntax error" is here to catch this case.
4022 cat >conftest.$ac_ext <<_ACEOF
4025 cat confdefs.h >>conftest.$ac_ext
4026 cat >>conftest.$ac_ext <<_ACEOF
4027 /* end confdefs.h. */
4029 # include <limits.h>
4031 # include <assert.h>
4035 if { (ac_try="$ac_cpp conftest.$ac_ext"
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4041 $as_echo "$ac_try_echo") >&5
4042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4044 grep -v '^ *+' conftest.er1 >conftest.err
4046 cat conftest.err >&5
4047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); } >/dev/null && {
4049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4050 test ! -s conftest.err
4054 $as_echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 # Broken: fails on valid input.
4061 rm -f conftest.err conftest.$ac_ext
4063 # OK, works on sane cases. Now check whether nonexistent headers
4064 # can be detected and how.
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4071 #include <ac_nonexistent.h>
4073 if { (ac_try="$ac_cpp conftest.$ac_ext"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4090 # Broken: success on invalid input.
4093 $as_echo "$as_me: failed program was:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Passes both tests.
4101 rm -f conftest.err conftest.$ac_ext
4104 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105 rm -f conftest.err conftest.$ac_ext
4106 if $ac_preproc_ok; then
4118 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4119 $as_echo "$CPP" >&6; }
4121 for ac_c_preproc_warn_flag in '' yes
4123 # Use a header file that comes with gcc, so configuring glibc
4124 # with a fresh cross-compiler works.
4125 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4126 # <limits.h> exists even on freestanding compilers.
4127 # On the NeXT, cc -E runs the code through the compiler's parser,
4128 # not just through cpp. "Syntax error" is here to catch this case.
4129 cat >conftest.$ac_ext <<_ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4136 # include <limits.h>
4138 # include <assert.h>
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4151 grep -v '^ *+' conftest.er1 >conftest.err
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4164 # Broken: fails on valid input.
4168 rm -f conftest.err conftest.$ac_ext
4170 # OK, works on sane cases. Now check whether nonexistent headers
4171 # can be detected and how.
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4178 #include <ac_nonexistent.h>
4180 if { (ac_try="$ac_cpp conftest.$ac_ext"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4189 grep -v '^ *+' conftest.er1 >conftest.err
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4197 # Broken: success on invalid input.
4200 $as_echo "$as_me: failed program was:" >&5
4201 sed 's/^/| /' conftest.$ac_ext >&5
4203 # Passes both tests.
4208 rm -f conftest.err conftest.$ac_ext
4211 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4212 rm -f conftest.err conftest.$ac_ext
4213 if $ac_preproc_ok; then
4216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4218 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4219 See \`config.log' for more details." >&5
4220 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4221 See \`config.log' for more details." >&2;}
4222 { (exit 1); exit 1; }; }; }
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4233 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4234 if test "${ac_cv_path_GREP+set}" = set; then
4235 $as_echo_n "(cached) " >&6
4237 if test -z "$GREP"; then
4238 ac_path_GREP_found=false
4239 # Loop through the user's path and test for each of PROGNAME-LIST
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4244 test -z "$as_dir" && as_dir=.
4245 for ac_prog in grep ggrep; do
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4248 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4249 # Check for GNU ac_path_GREP and select it if it is found.
4250 # Check for GNU $ac_path_GREP
4251 case `"$ac_path_GREP" --version 2>&1` in
4253 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4256 $as_echo_n 0123456789 >"conftest.in"
4259 cat "conftest.in" "conftest.in" >"conftest.tmp"
4260 mv "conftest.tmp" "conftest.in"
4261 cp "conftest.in" "conftest.nl"
4262 $as_echo 'GREP' >> "conftest.nl"
4263 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265 ac_count=`expr $ac_count + 1`
4266 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4267 # Best one so far, save it but keep looking for a better one
4268 ac_cv_path_GREP="$ac_path_GREP"
4269 ac_path_GREP_max=$ac_count
4271 # 10*(2^10) chars as input seems more than enough
4272 test $ac_count -gt 10 && break
4274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4277 $ac_path_GREP_found && break 3
4282 if test -z "$ac_cv_path_GREP"; then
4283 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4284 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4285 { (exit 1); exit 1; }; }
4288 ac_cv_path_GREP=$GREP
4292 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4293 $as_echo "$ac_cv_path_GREP" >&6; }
4294 GREP="$ac_cv_path_GREP"
4297 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4298 $as_echo_n "checking for egrep... " >&6; }
4299 if test "${ac_cv_path_EGREP+set}" = set; then
4300 $as_echo_n "(cached) " >&6
4302 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4303 then ac_cv_path_EGREP="$GREP -E"
4305 if test -z "$EGREP"; then
4306 ac_path_EGREP_found=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4312 test -z "$as_dir" && as_dir=.
4313 for ac_prog in egrep; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4317 # Check for GNU ac_path_EGREP and select it if it is found.
4318 # Check for GNU $ac_path_EGREP
4319 case `"$ac_path_EGREP" --version 2>&1` in
4321 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4324 $as_echo_n 0123456789 >"conftest.in"
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'EGREP' >> "conftest.nl"
4331 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4333 ac_count=`expr $ac_count + 1`
4334 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_EGREP="$ac_path_EGREP"
4337 ac_path_EGREP_max=$ac_count
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4345 $ac_path_EGREP_found && break 3
4350 if test -z "$ac_cv_path_EGREP"; then
4351 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4352 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4353 { (exit 1); exit 1; }; }
4356 ac_cv_path_EGREP=$EGREP
4361 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4362 $as_echo "$ac_cv_path_EGREP" >&6; }
4363 EGREP="$ac_cv_path_EGREP"
4366 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4367 $as_echo_n "checking for ANSI C header files... " >&6; }
4368 if test "${ac_cv_header_stdc+set}" = set; then
4369 $as_echo_n "(cached) " >&6
4371 cat >conftest.$ac_ext <<_ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4390 rm -f conftest.$ac_objext
4391 if { (ac_try="$ac_compile"
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4397 $as_echo "$ac_try_echo") >&5
4398 (eval "$ac_compile") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } && {
4405 test -z "$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4407 } && test -s conftest.$ac_objext; then
4408 ac_cv_header_stdc=yes
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_cv_header_stdc=no
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4418 if test $ac_cv_header_stdc = yes; then
4419 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4430 $EGREP "memchr" >/dev/null 2>&1; then
4433 ac_cv_header_stdc=no
4439 if test $ac_cv_header_stdc = yes; then
4440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4451 $EGREP "free" >/dev/null 2>&1; then
4454 ac_cv_header_stdc=no
4460 if test $ac_cv_header_stdc = yes; then
4461 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4462 if test "$cross_compiling" = yes; then
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4473 #if ((' ' & 0x0FF) == 0x020)
4474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4477 # define ISLOWER(c) \
4478 (('a' <= (c) && (c) <= 'i') \
4479 || ('j' <= (c) && (c) <= 'r') \
4480 || ('s' <= (c) && (c) <= 'z'))
4481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4489 for (i = 0; i < 256; i++)
4490 if (XOR (islower (i), ISLOWER (i))
4491 || toupper (i) != TOUPPER (i))
4496 rm -f conftest$ac_exeext
4497 if { (ac_try="$ac_link"
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4503 $as_echo "$ac_try_echo") >&5
4504 (eval "$ac_link") 2>&5
4506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4508 { (case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513 $as_echo "$ac_try_echo") >&5
4514 (eval "$ac_try") 2>&5
4516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); }; }; then
4520 $as_echo "$as_me: program exited with status $ac_status" >&5
4521 $as_echo "$as_me: failed program was:" >&5
4522 sed 's/^/| /' conftest.$ac_ext >&5
4525 ac_cv_header_stdc=no
4527 rm -rf conftest.dSYM
4528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4534 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4535 $as_echo "$ac_cv_header_stdc" >&6; }
4536 if test $ac_cv_header_stdc = yes; then
4538 cat >>confdefs.h <<\_ACEOF
4539 #define STDC_HEADERS 1
4546 ac_cpp='$CPP $CPPFLAGS'
4547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_CC+set}" = set; then
4556 $as_echo_n "(cached) " >&6
4558 if test -n "$CC"; then
4559 ac_cv_prog_CC="$CC" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 if test -n "$CC"; then
4580 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4581 $as_echo "$CC" >&6; }
4583 { $as_echo "$as_me:$LINENO: result: no" >&5
4584 $as_echo "no" >&6; }
4589 if test -z "$ac_cv_prog_CC"; then
4591 # Extract the first word of "gcc", so it can be a program name with args.
4592 set dummy gcc; ac_word=$2
4593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 $as_echo_n "checking for $ac_word... " >&6; }
4595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4596 $as_echo_n "(cached) " >&6
4598 if test -n "$ac_ct_CC"; then
4599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4608 ac_cv_prog_ac_ct_CC="gcc"
4609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4619 if test -n "$ac_ct_CC"; then
4620 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4621 $as_echo "$ac_ct_CC" >&6; }
4623 { $as_echo "$as_me:$LINENO: result: no" >&5
4624 $as_echo "no" >&6; }
4627 if test "x$ac_ct_CC" = x; then
4630 case $cross_compiling:$ac_tool_warned in
4632 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4634 ac_tool_warned=yes ;;
4642 if test -z "$CC"; then
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}cc; ac_word=$2
4646 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_CC+set}" = set; then
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$CC"; then
4652 ac_cv_prog_CC="$CC" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_CC="${ac_tool_prefix}cc"
4662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 if test -n "$CC"; then
4673 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4674 $as_echo "$CC" >&6; }
4676 { $as_echo "$as_me:$LINENO: result: no" >&5
4677 $as_echo "no" >&6; }
4683 if test -z "$CC"; then
4684 # Extract the first word of "cc", so it can be a program name with args.
4685 set dummy cc; ac_word=$2
4686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_CC+set}" = set; then
4689 $as_echo_n "(cached) " >&6
4691 if test -n "$CC"; then
4692 ac_cv_prog_CC="$CC" # Let the user override the test.
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4703 ac_prog_rejected=yes
4707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 if test $ac_prog_rejected = yes; then
4715 # We found a bogon in the path, so make sure we never use it.
4716 set dummy $ac_cv_prog_CC
4718 if test $# != 0; then
4719 # We chose a different compiler from the bogus one.
4720 # However, it has the same basename, so the bogon will be chosen
4721 # first if we set CC to just the basename; use the full file name.
4723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4729 if test -n "$CC"; then
4730 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4731 $as_echo "$CC" >&6; }
4733 { $as_echo "$as_me:$LINENO: result: no" >&5
4734 $as_echo "no" >&6; }
4739 if test -z "$CC"; then
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in cl.exe
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_CC+set}" = set; then
4748 $as_echo_n "(cached) " >&6
4750 if test -n "$CC"; then
4751 ac_cv_prog_CC="$CC" # Let the user override the test.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4761 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 if test -n "$CC"; then
4772 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4773 $as_echo "$CC" >&6; }
4775 { $as_echo "$as_me:$LINENO: result: no" >&5
4776 $as_echo "no" >&6; }
4780 test -n "$CC" && break
4783 if test -z "$CC"; then
4785 for ac_prog in cl.exe
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788 set dummy $ac_prog; ac_word=$2
4789 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4792 $as_echo_n "(cached) " >&6
4794 if test -n "$ac_ct_CC"; then
4795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_ac_ct_CC="$ac_prog"
4805 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4815 if test -n "$ac_ct_CC"; then
4816 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4817 $as_echo "$ac_ct_CC" >&6; }
4819 { $as_echo "$as_me:$LINENO: result: no" >&5
4820 $as_echo "no" >&6; }
4824 test -n "$ac_ct_CC" && break
4827 if test "x$ac_ct_CC" = x; then
4830 case $cross_compiling:$ac_tool_warned in
4832 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4843 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4845 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4846 See \`config.log' for more details." >&5
4847 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4848 See \`config.log' for more details." >&2;}
4849 { (exit 1); exit 1; }; }; }
4851 # Provide some information about the compiler.
4852 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4855 { (ac_try="$ac_compiler --version >&5"
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compiler --version >&5") 2>&5
4864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); }
4866 { (ac_try="$ac_compiler -v >&5"
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872 $as_echo "$ac_try_echo") >&5
4873 (eval "$ac_compiler -v >&5") 2>&5
4875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }
4877 { (ac_try="$ac_compiler -V >&5"
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4883 $as_echo "$ac_try_echo") >&5
4884 (eval "$ac_compiler -V >&5") 2>&5
4886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4889 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4890 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4891 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4892 $as_echo_n "(cached) " >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4912 rm -f conftest.$ac_objext
4913 if { (ac_try="$ac_compile"
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4919 $as_echo "$ac_try_echo") >&5
4920 (eval "$ac_compile") 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } && {
4927 test -z "$ac_c_werror_flag" ||
4928 test ! -s conftest.err
4929 } && test -s conftest.$ac_objext; then
4932 $as_echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4939 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4942 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4943 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4944 if test $ac_compiler_gnu = yes; then
4949 ac_test_CFLAGS=${CFLAGS+set}
4950 ac_save_CFLAGS=$CFLAGS
4951 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4952 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4953 if test "${ac_cv_prog_cc_g+set}" = set; then
4954 $as_echo_n "(cached) " >&6
4956 ac_save_c_werror_flag=$ac_c_werror_flag
4957 ac_c_werror_flag=yes
4960 cat >conftest.$ac_ext <<_ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4975 rm -f conftest.$ac_objext
4976 if { (ac_try="$ac_compile"
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982 $as_echo "$ac_try_echo") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4995 $as_echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4999 cat >conftest.$ac_ext <<_ACEOF
5002 cat confdefs.h >>conftest.$ac_ext
5003 cat >>conftest.$ac_ext <<_ACEOF
5004 /* end confdefs.h. */
5014 rm -f conftest.$ac_objext
5015 if { (ac_try="$ac_compile"
5017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5018 *) ac_try_echo=$ac_try;;
5020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5021 $as_echo "$ac_try_echo") >&5
5022 (eval "$ac_compile") 2>conftest.er1
5024 grep -v '^ *+' conftest.er1 >conftest.err
5026 cat conftest.err >&5
5027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } && {
5029 test -z "$ac_c_werror_flag" ||
5030 test ! -s conftest.err
5031 } && test -s conftest.$ac_objext; then
5034 $as_echo "$as_me: failed program was:" >&5
5035 sed 's/^/| /' conftest.$ac_ext >&5
5037 ac_c_werror_flag=$ac_save_c_werror_flag
5039 cat >conftest.$ac_ext <<_ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5054 rm -f conftest.$ac_objext
5055 if { (ac_try="$ac_compile"
5057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058 *) ac_try_echo=$ac_try;;
5060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5061 $as_echo "$ac_try_echo") >&5
5062 (eval "$ac_compile") 2>conftest.er1
5064 grep -v '^ *+' conftest.er1 >conftest.err
5066 cat conftest.err >&5
5067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); } && {
5069 test -z "$ac_c_werror_flag" ||
5070 test ! -s conftest.err
5071 } && test -s conftest.$ac_objext; then
5074 $as_echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5087 ac_c_werror_flag=$ac_save_c_werror_flag
5089 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5090 $as_echo "$ac_cv_prog_cc_g" >&6; }
5091 if test "$ac_test_CFLAGS" = set; then
5092 CFLAGS=$ac_save_CFLAGS
5093 elif test $ac_cv_prog_cc_g = yes; then
5094 if test "$GCC" = yes; then
5100 if test "$GCC" = yes; then
5106 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5107 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5108 if test "${ac_cv_prog_cc_c89+set}" = set; then
5109 $as_echo_n "(cached) " >&6
5111 ac_cv_prog_cc_c89=no
5113 cat >conftest.$ac_ext <<_ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5121 #include <sys/types.h>
5122 #include <sys/stat.h>
5123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5124 struct buf { int x; };
5125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5126 static char *e (p, i)
5132 static char *f (char * (*g) (char **, int), char **p, ...)
5137 s = g (p, va_arg (v,int));
5142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5143 function prototypes and stuff, but not '\xHH' hex character constants.
5144 These don't provoke an error unfortunately, instead are silently treated
5145 as 'x'. The following induces an error, until -std is added to get
5146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5147 array size at least. It's necessary to write '\x00'==0 to get something
5148 that's true only with -std. */
5149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5152 inside strings and character constants. */
5154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5156 int test (int i, double x);
5157 struct s1 {int (*f) (int a);};
5158 struct s2 {int (*f) (double a);};
5159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5173 CC="$ac_save_CC $ac_arg"
5174 rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5181 $as_echo "$ac_try_echo") >&5
5182 (eval "$ac_compile") 2>conftest.er1
5184 grep -v '^ *+' conftest.er1 >conftest.err
5186 cat conftest.err >&5
5187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && {
5189 test -z "$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 } && test -s conftest.$ac_objext; then
5192 ac_cv_prog_cc_c89=$ac_arg
5194 $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5200 rm -f core conftest.err conftest.$ac_objext
5201 test "x$ac_cv_prog_cc_c89" != "xno" && break
5203 rm -f conftest.$ac_ext
5208 case "x$ac_cv_prog_cc_c89" in
5210 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5211 $as_echo "none needed" >&6; } ;;
5213 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5214 $as_echo "unsupported" >&6; } ;;
5216 CC="$CC $ac_cv_prog_cc_c89"
5217 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5218 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5223 ac_cpp='$CPP $CPPFLAGS'
5224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5228 depcc="$CC" am_compiler_list=
5230 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5231 $as_echo_n "checking dependency style of $depcc... " >&6; }
5232 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5233 $as_echo_n "(cached) " >&6
5235 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5236 # We make a subdir and do the tests there. Otherwise we can end up
5237 # making bogus files that we don't know about and never remove. For
5238 # instance it was reported that on HP-UX the gcc test will end up
5239 # making a dummy file named `D' -- because `-MD' means `put the output
5242 # Copy depcomp to subdir because otherwise we won't find it if we're
5243 # using a relative directory.
5244 cp "$am_depcomp" conftest.dir
5246 # We will build objects and dependencies in a subdirectory because
5247 # it helps to detect inapplicable dependency modes. For instance
5248 # both Tru64's cc and ICC support -MD to output dependencies as a
5249 # side effect of compilation, but ICC will put the dependencies in
5250 # the current directory while Tru64 will put them in the object
5254 am_cv_CC_dependencies_compiler_type=none
5255 if test "$am_compiler_list" = ""; then
5256 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5258 for depmode in $am_compiler_list; do
5259 # Setup a source with many dependencies, because some compilers
5260 # like to wrap large dependency lists on column 80 (with \), and
5261 # we should not choose a depcomp mode which is confused by this.
5263 # We need to recreate these files for each test, as the compiler may
5264 # overwrite some of them when testing with obscure command lines.
5265 # This happens at least with the AIX C compiler.
5267 for i in 1 2 3 4 5 6; do
5268 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5269 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5270 # Solaris 8's {/usr,}/bin/sh.
5271 touch sub/conftst$i.h
5273 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5277 # after this tag, mechanisms are not by side-effect, so they'll
5278 # only be used when explicitly requested
5279 if test "x$enable_dependency_tracking" = xyes; then
5287 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5288 # mode. It turns out that the SunPro C++ compiler does not properly
5289 # handle `-M -o', and we need to detect this.
5290 if depmode=$depmode \
5291 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5293 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5294 >/dev/null 2>conftest.err &&
5295 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5296 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5297 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5298 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5299 # icc doesn't choke on unknown options, it will just issue warnings
5300 # or remarks (even with -Werror). So we grep stderr for any message
5301 # that says an option was ignored or not supported.
5302 # When given -MP, icc 7.0 and 7.1 complain thusly:
5303 # icc: Command line warning: ignoring option '-M'; no argument required
5304 # The diagnosis changed in icc 8.0:
5305 # icc: Command line remark: option '-MP' not supported
5306 if (grep 'ignoring option' conftest.err ||
5307 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5308 am_cv_CC_dependencies_compiler_type=$depmode
5317 am_cv_CC_dependencies_compiler_type=none
5321 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5322 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5326 test "x$enable_dependency_tracking" != xno \
5327 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5329 am__fastdepCC_FALSE='#'
5331 am__fastdepCC_TRUE='#'
5332 am__fastdepCC_FALSE=
5336 if test "x$CC" != xcc; then
5337 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5338 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5340 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5341 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5343 set dummy $CC; ac_cc=`$as_echo "$2" |
5344 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5345 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5346 $as_echo_n "(cached) " >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5363 # Make sure it works both with $CC and with simple cc.
5364 # We do the test twice because some compilers refuse to overwrite an
5365 # existing .o file with -o, though they will create one.
5366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5368 if { (case "(($ac_try" in
5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370 *) ac_try_echo=$ac_try;;
5372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5373 $as_echo "$ac_try_echo") >&5
5374 (eval "$ac_try") 2>&5
5376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380 *) ac_try_echo=$ac_try;;
5382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5383 $as_echo "$ac_try_echo") >&5
5384 (eval "$ac_try") 2>&5
5386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); };
5389 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5390 if test "x$CC" != xcc; then
5391 # Test first that cc exists at all.
5392 if { ac_try='cc -c conftest.$ac_ext >&5'
5393 { (case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5398 $as_echo "$ac_try_echo") >&5
5399 (eval "$ac_try") 2>&5
5401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5405 if { (case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5410 $as_echo "$ac_try_echo") >&5
5411 (eval "$ac_try") 2>&5
5413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); } &&
5415 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5420 $as_echo "$ac_try_echo") >&5
5421 (eval "$ac_try") 2>&5
5423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); };
5429 # cc exists but doesn't like -o.
5430 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5435 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5437 rm -f core conftest*
5440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5441 { $as_echo "$as_me:$LINENO: result: yes" >&5
5442 $as_echo "yes" >&6; }
5444 { $as_echo "$as_me:$LINENO: result: no" >&5
5445 $as_echo "no" >&6; }
5447 cat >>confdefs.h <<\_ACEOF
5448 #define NO_MINUS_C_MINUS_O 1
5453 # FIXME: we rely on the cache variable name because
5454 # there is no other way.
5456 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5457 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5458 if test "$am_t" != yes; then
5459 # Losing compiler, so override with the script.
5460 # FIXME: It is wrong to rewrite CC.
5461 # But if we don't then we get into trouble of one sort or another.
5462 # A longer-term fix would be to have automake use am__CC in this case,
5463 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5464 CC="$am_aux_dir/compile $CC"
5468 # Find a good install program. We prefer a C program (faster),
5469 # so one script is as good as another. But avoid the broken or
5470 # incompatible versions:
5471 # SysV /etc/install, /usr/sbin/install
5472 # SunOS /usr/etc/install
5473 # IRIX /sbin/install
5475 # AmigaOS /C/install, which installs bootblocks on floppy discs
5476 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5479 # OS/2's system install, which has a completely different semantic
5480 # ./install, which can be erroneously created by make from ./install.sh.
5481 # Reject install programs that cannot install multiple files.
5482 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5483 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5484 if test -z "$INSTALL"; then
5485 if test "${ac_cv_path_install+set}" = set; then
5486 $as_echo_n "(cached) " >&6
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 # Account for people who put trailing slashes in PATH elements.
5495 ./ | .// | /cC/* | \
5496 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5497 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5500 # OSF1 and SCO ODT 3.0 have their own names for install.
5501 # Don't use installbsd from OSF since it installs stuff as root
5503 for ac_prog in ginstall scoinst install; do
5504 for ac_exec_ext in '' $ac_executable_extensions; do
5505 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5506 if test $ac_prog = install &&
5507 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5508 # AIX install. It has an incompatible calling convention.
5510 elif test $ac_prog = install &&
5511 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5512 # program-specific install script used by HP pwplus--don't use.
5515 rm -rf conftest.one conftest.two conftest.dir
5516 echo one > conftest.one
5517 echo two > conftest.two
5519 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5520 test -s conftest.one && test -s conftest.two &&
5521 test -s conftest.dir/conftest.one &&
5522 test -s conftest.dir/conftest.two
5524 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5537 rm -rf conftest.one conftest.two conftest.dir
5540 if test "${ac_cv_path_install+set}" = set; then
5541 INSTALL=$ac_cv_path_install
5543 # As a last resort, use the slow shell script. Don't cache a
5544 # value for INSTALL within a source directory, because that will
5545 # break other packages using the cache if that directory is
5546 # removed, or if the value is a relative name.
5547 INSTALL=$ac_install_sh
5550 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5551 $as_echo "$INSTALL" >&6; }
5553 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5554 # It thinks the first close brace ends the variable substitution.
5555 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5557 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5559 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5563 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5564 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5569 macro_version='2.2.6'
5570 macro_revision='1.3012'
5584 ltmain="$ac_aux_dir/ltmain.sh"
5586 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5587 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5588 if test "${ac_cv_path_SED+set}" = set; then
5589 $as_echo_n "(cached) " >&6
5591 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5592 for ac_i in 1 2 3 4 5 6 7; do
5593 ac_script="$ac_script$as_nl$ac_script"
5595 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5596 $as_unset ac_script || ac_script=
5597 if test -z "$SED"; then
5598 ac_path_SED_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 test -z "$as_dir" && as_dir=.
5605 for ac_prog in sed gsed; do
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5608 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5609 # Check for GNU ac_path_SED and select it if it is found.
5610 # Check for GNU $ac_path_SED
5611 case `"$ac_path_SED" --version 2>&1` in
5613 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5616 $as_echo_n 0123456789 >"conftest.in"
5619 cat "conftest.in" "conftest.in" >"conftest.tmp"
5620 mv "conftest.tmp" "conftest.in"
5621 cp "conftest.in" "conftest.nl"
5622 $as_echo '' >> "conftest.nl"
5623 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5625 ac_count=`expr $ac_count + 1`
5626 if test $ac_count -gt ${ac_path_SED_max-0}; then
5627 # Best one so far, save it but keep looking for a better one
5628 ac_cv_path_SED="$ac_path_SED"
5629 ac_path_SED_max=$ac_count
5631 # 10*(2^10) chars as input seems more than enough
5632 test $ac_count -gt 10 && break
5634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5637 $ac_path_SED_found && break 3
5642 if test -z "$ac_cv_path_SED"; then
5643 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5644 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5645 { (exit 1); exit 1; }; }
5652 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5653 $as_echo "$ac_cv_path_SED" >&6; }
5654 SED="$ac_cv_path_SED"
5657 test -z "$SED" && SED=sed
5658 Xsed="$SED -e 1s/^X//"
5670 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5671 $as_echo_n "checking for fgrep... " >&6; }
5672 if test "${ac_cv_path_FGREP+set}" = set; then
5673 $as_echo_n "(cached) " >&6
5675 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5676 then ac_cv_path_FGREP="$GREP -F"
5678 if test -z "$FGREP"; then
5679 ac_path_FGREP_found=false
5680 # Loop through the user's path and test for each of PROGNAME-LIST
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5685 test -z "$as_dir" && as_dir=.
5686 for ac_prog in fgrep; do
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5689 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5690 # Check for GNU ac_path_FGREP and select it if it is found.
5691 # Check for GNU $ac_path_FGREP
5692 case `"$ac_path_FGREP" --version 2>&1` in
5694 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5697 $as_echo_n 0123456789 >"conftest.in"
5700 cat "conftest.in" "conftest.in" >"conftest.tmp"
5701 mv "conftest.tmp" "conftest.in"
5702 cp "conftest.in" "conftest.nl"
5703 $as_echo 'FGREP' >> "conftest.nl"
5704 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5706 ac_count=`expr $ac_count + 1`
5707 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5708 # Best one so far, save it but keep looking for a better one
5709 ac_cv_path_FGREP="$ac_path_FGREP"
5710 ac_path_FGREP_max=$ac_count
5712 # 10*(2^10) chars as input seems more than enough
5713 test $ac_count -gt 10 && break
5715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5718 $ac_path_FGREP_found && break 3
5723 if test -z "$ac_cv_path_FGREP"; then
5724 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5725 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5726 { (exit 1); exit 1; }; }
5729 ac_cv_path_FGREP=$FGREP
5734 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5735 $as_echo "$ac_cv_path_FGREP" >&6; }
5736 FGREP="$ac_cv_path_FGREP"
5739 test -z "$GREP" && GREP=grep
5759 # Check whether --with-gnu-ld was given.
5760 if test "${with_gnu_ld+set}" = set; then
5761 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5767 if test "$GCC" = yes; then
5768 # Check if gcc -print-prog-name=ld gives a path.
5769 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5770 $as_echo_n "checking for ld used by $CC... " >&6; }
5773 # gcc leaves a trailing carriage return which upsets mingw
5774 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5776 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5779 # Accept absolute paths.
5781 re_direlt='/[^/][^/]*/\.\./'
5782 # Canonicalize the pathname of ld
5783 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5784 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5785 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5787 test -z "$LD" && LD="$ac_prog"
5790 # If it fails, then pretend we aren't using GCC.
5794 # If it is relative, then search for the first ld in PATH.
5798 elif test "$with_gnu_ld" = yes; then
5799 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5800 $as_echo_n "checking for GNU ld... " >&6; }
5802 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5803 $as_echo_n "checking for non-GNU ld... " >&6; }
5805 if test "${lt_cv_path_LD+set}" = set; then
5806 $as_echo_n "(cached) " >&6
5808 if test -z "$LD"; then
5809 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5810 for ac_dir in $PATH; do
5812 test -z "$ac_dir" && ac_dir=.
5813 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5814 lt_cv_path_LD="$ac_dir/$ac_prog"
5815 # Check to see if the program is GNU ld. I'd rather use --version,
5816 # but apparently some variants of GNU ld only accept -v.
5817 # Break only if it was the GNU/non-GNU ld that we prefer.
5818 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5819 *GNU* | *'with BFD'*)
5820 test "$with_gnu_ld" != no && break
5823 test "$with_gnu_ld" != yes && break
5830 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5835 if test -n "$LD"; then
5836 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5837 $as_echo "$LD" >&6; }
5839 { $as_echo "$as_me:$LINENO: result: no" >&5
5840 $as_echo "no" >&6; }
5842 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5843 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5844 { (exit 1); exit 1; }; }
5845 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5846 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5847 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5848 $as_echo_n "(cached) " >&6
5850 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5851 case `$LD -v 2>&1 </dev/null` in
5852 *GNU* | *'with BFD'*)
5853 lt_cv_prog_gnu_ld=yes
5856 lt_cv_prog_gnu_ld=no
5860 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5861 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5862 with_gnu_ld=$lt_cv_prog_gnu_ld
5872 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5873 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5874 if test "${lt_cv_path_NM+set}" = set; then
5875 $as_echo_n "(cached) " >&6
5877 if test -n "$NM"; then
5878 # Let the user override the test.
5881 lt_nm_to_check="${ac_tool_prefix}nm"
5882 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5883 lt_nm_to_check="$lt_nm_to_check nm"
5885 for lt_tmp_nm in $lt_nm_to_check; do
5886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5887 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5889 test -z "$ac_dir" && ac_dir=.
5890 tmp_nm="$ac_dir/$lt_tmp_nm"
5891 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5892 # Check to see if the nm accepts a BSD-compat flag.
5893 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5894 # nm: unknown option "B" ignored
5895 # Tru64's nm complains that /dev/null is an invalid object file
5896 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5897 */dev/null* | *'Invalid file or object type'*)
5898 lt_cv_path_NM="$tmp_nm -B"
5902 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5904 lt_cv_path_NM="$tmp_nm -p"
5908 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5909 continue # so that we can try to find one that supports BSD flags
5918 : ${lt_cv_path_NM=no}
5921 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5922 $as_echo "$lt_cv_path_NM" >&6; }
5923 if test "$lt_cv_path_NM" != "no"; then
5926 # Didn't find any BSD compatible name lister, look for dumpbin.
5927 if test -n "$ac_tool_prefix"; then
5928 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5930 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5931 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5932 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5935 $as_echo_n "(cached) " >&6
5937 if test -n "$DUMPBIN"; then
5938 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5948 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 DUMPBIN=$ac_cv_prog_DUMPBIN
5958 if test -n "$DUMPBIN"; then
5959 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5960 $as_echo "$DUMPBIN" >&6; }
5962 { $as_echo "$as_me:$LINENO: result: no" >&5
5963 $as_echo "no" >&6; }
5967 test -n "$DUMPBIN" && break
5970 if test -z "$DUMPBIN"; then
5971 ac_ct_DUMPBIN=$DUMPBIN
5972 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5974 # Extract the first word of "$ac_prog", so it can be a program name with args.
5975 set dummy $ac_prog; ac_word=$2
5976 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5979 $as_echo_n "(cached) " >&6
5981 if test -n "$ac_ct_DUMPBIN"; then
5982 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5992 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6002 if test -n "$ac_ct_DUMPBIN"; then
6003 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6004 $as_echo "$ac_ct_DUMPBIN" >&6; }
6006 { $as_echo "$as_me:$LINENO: result: no" >&5
6007 $as_echo "no" >&6; }
6011 test -n "$ac_ct_DUMPBIN" && break
6014 if test "x$ac_ct_DUMPBIN" = x; then
6017 case $cross_compiling:$ac_tool_warned in
6019 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6021 ac_tool_warned=yes ;;
6023 DUMPBIN=$ac_ct_DUMPBIN
6028 if test "$DUMPBIN" != ":"; then
6032 test -z "$NM" && NM=nm
6039 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6040 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6041 if test "${lt_cv_nm_interface+set}" = set; then
6042 $as_echo_n "(cached) " >&6
6044 lt_cv_nm_interface="BSD nm"
6045 echo "int some_variable = 0;" > conftest.$ac_ext
6046 (eval echo "\"\$as_me:6046: $ac_compile\"" >&5)
6047 (eval "$ac_compile" 2>conftest.err)
6048 cat conftest.err >&5
6049 (eval echo "\"\$as_me:6049: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6050 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6051 cat conftest.err >&5
6052 (eval echo "\"\$as_me:6052: output\"" >&5)
6053 cat conftest.out >&5
6054 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6055 lt_cv_nm_interface="MS dumpbin"
6059 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6060 $as_echo "$lt_cv_nm_interface" >&6; }
6062 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6063 $as_echo_n "checking whether ln -s works... " >&6; }
6065 if test "$LN_S" = "ln -s"; then
6066 { $as_echo "$as_me:$LINENO: result: yes" >&5
6067 $as_echo "yes" >&6; }
6069 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6070 $as_echo "no, using $LN_S" >&6; }
6073 # find the maximum length of command line arguments
6074 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6075 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6076 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6077 $as_echo_n "(cached) " >&6
6084 # On DJGPP, this test can blow up pretty badly due to problems in libc
6085 # (any single argument exceeding 2000 bytes causes a buffer overrun
6086 # during glob expansion). Even if it were fixed, the result of this
6087 # check would be larger than it should be.
6088 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6092 # Under GNU Hurd, this test is not required because there is
6093 # no limit to the length of command line arguments.
6094 # Libtool will interpret -1 as no limit whatsoever
6095 lt_cv_sys_max_cmd_len=-1;
6098 cygwin* | mingw* | cegcc*)
6099 # On Win9x/ME, this test blows up -- it succeeds, but takes
6100 # about 5 minutes as the teststring grows exponentially.
6101 # Worse, since 9x/ME are not pre-emptively multitasking,
6102 # you end up with a "frozen" computer, even though with patience
6103 # the test eventually succeeds (with a max line length of 256k).
6104 # Instead, let's just punt: use the minimum linelength reported by
6105 # all of the supported platforms: 8192 (on NT/2K/XP).
6106 lt_cv_sys_max_cmd_len=8192;
6110 # On AmigaOS with pdksh, this test takes hours, literally.
6111 # So we just punt and use a minimum line length of 8192.
6112 lt_cv_sys_max_cmd_len=8192;
6115 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6116 # This has been around since 386BSD, at least. Likely further.
6117 if test -x /sbin/sysctl; then
6118 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6119 elif test -x /usr/sbin/sysctl; then
6120 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6122 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6124 # And add a safety zone
6125 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6126 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6130 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6131 lt_cv_sys_max_cmd_len=196608
6135 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6136 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6137 # nice to cause kernel panics so lets avoid the loop below.
6138 # First set a reasonable default.
6139 lt_cv_sys_max_cmd_len=16384
6141 if test -x /sbin/sysconfig; then
6142 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6143 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6148 lt_cv_sys_max_cmd_len=102400
6150 sysv5* | sco5v6* | sysv4.2uw2*)
6151 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6152 if test -n "$kargmax"; then
6153 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6155 lt_cv_sys_max_cmd_len=32768
6159 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6160 if test -n "$lt_cv_sys_max_cmd_len"; then
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6162 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6164 # Make teststring a little bigger before we do anything with it.
6165 # a 1K string should be a reasonable start.
6166 for i in 1 2 3 4 5 6 7 8 ; do
6167 teststring=$teststring$teststring
6169 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6170 # If test is not a shell built-in, we'll probably end up computing a
6171 # maximum length that is only half of the actual maximum length, but
6173 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6174 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6175 test $i != 17 # 1/2 MB should be enough
6178 teststring=$teststring$teststring
6180 # Only check the string length outside the loop.
6181 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6183 # Add a significant safety factor because C++ compilers can tack on
6184 # massive amounts of additional arguments before passing them to the
6185 # linker. It appears as though 1/2 is a usable value.
6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6193 if test -n $lt_cv_sys_max_cmd_len ; then
6194 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6195 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6197 { $as_echo "$as_me:$LINENO: result: none" >&5
6198 $as_echo "none" >&6; }
6200 max_cmd_len=$lt_cv_sys_max_cmd_len
6211 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6212 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6213 # Try some XSI features
6216 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6218 && eval 'test $(( 1 + 1 )) -eq 2 \
6219 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6221 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6222 $as_echo "$xsi_shell" >&6; }
6225 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6226 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6228 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6230 && lt_shell_append=yes
6231 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6232 $as_echo "$lt_shell_append" >&6; }
6235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6245 # test EBCDIC or ASCII
6246 case `echo X|tr X '\101'` in
6247 A) # ASCII based system
6248 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6249 lt_SP2NL='tr \040 \012'
6250 lt_NL2SP='tr \015\012 \040\040'
6252 *) # EBCDIC based system
6253 lt_SP2NL='tr \100 \n'
6254 lt_NL2SP='tr \r\n \100\100'
6266 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6268 if test "${lt_cv_ld_reload_flag+set}" = set; then
6269 $as_echo_n "(cached) " >&6
6271 lt_cv_ld_reload_flag='-r'
6273 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6275 reload_flag=$lt_cv_ld_reload_flag
6276 case $reload_flag in
6278 *) reload_flag=" $reload_flag" ;;
6280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6283 if test "$GCC" = yes; then
6284 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6286 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6305 $as_echo_n "(cached) " >&6
6307 if test -n "$OBJDUMP"; then
6308 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6327 OBJDUMP=$ac_cv_prog_OBJDUMP
6328 if test -n "$OBJDUMP"; then
6329 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6330 $as_echo "$OBJDUMP" >&6; }
6332 { $as_echo "$as_me:$LINENO: result: no" >&5
6333 $as_echo "no" >&6; }
6338 if test -z "$ac_cv_prog_OBJDUMP"; then
6339 ac_ct_OBJDUMP=$OBJDUMP
6340 # Extract the first word of "objdump", so it can be a program name with args.
6341 set dummy objdump; ac_word=$2
6342 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6345 $as_echo_n "(cached) " >&6
6347 if test -n "$ac_ct_OBJDUMP"; then
6348 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6368 if test -n "$ac_ct_OBJDUMP"; then
6369 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6370 $as_echo "$ac_ct_OBJDUMP" >&6; }
6372 { $as_echo "$as_me:$LINENO: result: no" >&5
6373 $as_echo "no" >&6; }
6376 if test "x$ac_ct_OBJDUMP" = x; then
6379 case $cross_compiling:$ac_tool_warned in
6381 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6385 OBJDUMP=$ac_ct_OBJDUMP
6388 OBJDUMP="$ac_cv_prog_OBJDUMP"
6391 test -z "$OBJDUMP" && OBJDUMP=objdump
6401 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6402 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6403 if test "${lt_cv_deplibs_check_method+set}" = set; then
6404 $as_echo_n "(cached) " >&6
6406 lt_cv_file_magic_cmd='$MAGIC_CMD'
6407 lt_cv_file_magic_test_file=
6408 lt_cv_deplibs_check_method='unknown'
6409 # Need to set the preceding variable on all platforms that support
6410 # interlibrary dependencies.
6411 # 'none' -- dependencies not supported.
6412 # `unknown' -- same as none, but documents that we really don't know.
6413 # 'pass_all' -- all dependencies passed with no checks.
6414 # 'test_compile' -- check by making test program.
6415 # 'file_magic [[regex]]' -- check by looking for files in library path
6416 # which responds to the $file_magic_cmd with a given extended regex.
6417 # If you have `file' or equivalent on your system and you're not sure
6418 # whether `pass_all' will *always* work, you probably want this one.
6422 lt_cv_deplibs_check_method=pass_all
6426 lt_cv_deplibs_check_method=pass_all
6430 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6431 lt_cv_file_magic_cmd='/usr/bin/file -L'
6432 lt_cv_file_magic_test_file=/shlib/libc.so
6436 # func_win32_libid is a shell function defined in ltmain.sh
6437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6438 lt_cv_file_magic_cmd='func_win32_libid'
6442 # Base MSYS/MinGW do not provide the 'file' command needed by
6443 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6444 # unless we find 'file', for example because we are cross-compiling.
6445 if ( file / ) >/dev/null 2>&1; then
6446 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6447 lt_cv_file_magic_cmd='func_win32_libid'
6449 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6450 lt_cv_file_magic_cmd='$OBJDUMP -f'
6455 # use the weaker test based on 'objdump'. See mingw*.
6456 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6457 lt_cv_file_magic_cmd='$OBJDUMP -f'
6460 darwin* | rhapsody*)
6461 lt_cv_deplibs_check_method=pass_all
6464 freebsd* | dragonfly*)
6465 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6468 # Not sure whether the presence of OpenBSD here was a mistake.
6469 # Let's accept both of them until this is cleared up.
6470 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6471 lt_cv_file_magic_cmd=/usr/bin/file
6472 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6476 lt_cv_deplibs_check_method=pass_all
6481 lt_cv_deplibs_check_method=pass_all
6484 hpux10.20* | hpux11*)
6485 lt_cv_file_magic_cmd=/usr/bin/file
6488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6489 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6492 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]'
6493 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6496 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6497 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6503 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6507 irix5* | irix6* | nonstopux*)
6509 *-32|*"-32 ") libmagic=32-bit;;
6510 *-n32|*"-n32 ") libmagic=N32;;
6511 *-64|*"-64 ") libmagic=64-bit;;
6512 *) libmagic=never-match;;
6514 lt_cv_deplibs_check_method=pass_all
6517 # This must be Linux ELF.
6518 linux* | k*bsd*-gnu)
6519 lt_cv_deplibs_check_method=pass_all
6522 netbsd* | netbsdelf*-gnu)
6523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6526 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6532 lt_cv_file_magic_cmd=/usr/bin/file
6533 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6537 lt_cv_deplibs_check_method=pass_all
6541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6542 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6544 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6548 osf3* | osf4* | osf5*)
6549 lt_cv_deplibs_check_method=pass_all
6553 lt_cv_deplibs_check_method=pass_all
6557 lt_cv_deplibs_check_method=pass_all
6560 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6561 lt_cv_deplibs_check_method=pass_all
6565 case $host_vendor in
6567 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]'
6568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6571 lt_cv_deplibs_check_method=pass_all
6574 lt_cv_file_magic_cmd='/bin/file'
6575 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6578 lt_cv_file_magic_cmd='/bin/file'
6579 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6580 lt_cv_file_magic_test_file=/lib/libc.so
6583 lt_cv_deplibs_check_method=pass_all
6586 lt_cv_deplibs_check_method=pass_all
6592 lt_cv_deplibs_check_method=pass_all
6597 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6598 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6599 file_magic_cmd=$lt_cv_file_magic_cmd
6600 deplibs_check_method=$lt_cv_deplibs_check_method
6601 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6614 if test -n "$ac_tool_prefix"; then
6615 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}ar; ac_word=$2
6617 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if test "${ac_cv_prog_AR+set}" = set; then
6620 $as_echo_n "(cached) " >&6
6622 if test -n "$AR"; then
6623 ac_cv_prog_AR="$AR" # Let the user override the test.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_prog_AR="${ac_tool_prefix}ar"
6633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 if test -n "$AR"; then
6644 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6645 $as_echo "$AR" >&6; }
6647 { $as_echo "$as_me:$LINENO: result: no" >&5
6648 $as_echo "no" >&6; }
6653 if test -z "$ac_cv_prog_AR"; then
6655 # Extract the first word of "ar", so it can be a program name with args.
6656 set dummy ar; ac_word=$2
6657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6660 $as_echo_n "(cached) " >&6
6662 if test -n "$ac_ct_AR"; then
6663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669 test -z "$as_dir" && as_dir=.
6670 for ac_exec_ext in '' $ac_executable_extensions; do
6671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672 ac_cv_prog_ac_ct_AR="ar"
6673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6683 if test -n "$ac_ct_AR"; then
6684 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6685 $as_echo "$ac_ct_AR" >&6; }
6687 { $as_echo "$as_me:$LINENO: result: no" >&5
6688 $as_echo "no" >&6; }
6691 if test "x$ac_ct_AR" = x; then
6694 case $cross_compiling:$ac_tool_warned in
6696 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6706 test -z "$AR" && AR=ar
6707 test -z "$AR_FLAGS" && AR_FLAGS=cru
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}strip; ac_word=$2
6722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 $as_echo_n "checking for $ac_word... " >&6; }
6724 if test "${ac_cv_prog_STRIP+set}" = set; then
6725 $as_echo_n "(cached) " >&6
6727 if test -n "$STRIP"; then
6728 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6738 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 STRIP=$ac_cv_prog_STRIP
6748 if test -n "$STRIP"; then
6749 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6750 $as_echo "$STRIP" >&6; }
6752 { $as_echo "$as_me:$LINENO: result: no" >&5
6753 $as_echo "no" >&6; }
6758 if test -z "$ac_cv_prog_STRIP"; then
6760 # Extract the first word of "strip", so it can be a program name with args.
6761 set dummy strip; ac_word=$2
6762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 $as_echo_n "checking for $ac_word... " >&6; }
6764 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6765 $as_echo_n "(cached) " >&6
6767 if test -n "$ac_ct_STRIP"; then
6768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_STRIP="strip"
6778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6788 if test -n "$ac_ct_STRIP"; then
6789 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6790 $as_echo "$ac_ct_STRIP" >&6; }
6792 { $as_echo "$as_me:$LINENO: result: no" >&5
6793 $as_echo "no" >&6; }
6796 if test "x$ac_ct_STRIP" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803 ac_tool_warned=yes ;;
6808 STRIP="$ac_cv_prog_STRIP"
6811 test -z "$STRIP" && STRIP=:
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6821 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if test "${ac_cv_prog_RANLIB+set}" = set; then
6824 $as_echo_n "(cached) " >&6
6826 if test -n "$RANLIB"; then
6827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 RANLIB=$ac_cv_prog_RANLIB
6847 if test -n "$RANLIB"; then
6848 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6849 $as_echo "$RANLIB" >&6; }
6851 { $as_echo "$as_me:$LINENO: result: no" >&5
6852 $as_echo "no" >&6; }
6857 if test -z "$ac_cv_prog_RANLIB"; then
6858 ac_ct_RANLIB=$RANLIB
6859 # Extract the first word of "ranlib", so it can be a program name with args.
6860 set dummy ranlib; ac_word=$2
6861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6864 $as_echo_n "(cached) " >&6
6866 if test -n "$ac_ct_RANLIB"; then
6867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_RANLIB="ranlib"
6877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6887 if test -n "$ac_ct_RANLIB"; then
6888 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6889 $as_echo "$ac_ct_RANLIB" >&6; }
6891 { $as_echo "$as_me:$LINENO: result: no" >&5
6892 $as_echo "no" >&6; }
6895 if test "x$ac_ct_RANLIB" = x; then
6898 case $cross_compiling:$ac_tool_warned in
6900 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6904 RANLIB=$ac_ct_RANLIB
6907 RANLIB="$ac_cv_prog_RANLIB"
6910 test -z "$RANLIB" && RANLIB=:
6917 # Determine commands to create old-style static archives.
6918 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6919 old_postinstall_cmds='chmod 644 $oldlib'
6920 old_postuninstall_cmds=
6922 if test -n "$RANLIB"; then
6925 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6928 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6931 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6967 # If no C compiler was specified, use CC.
6970 # If no C compiler flags were specified, use CFLAGS.
6971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6973 # Allow CC to be a program name with arguments.
6977 # Check for command to grab the raw symbol name followed by C symbol from nm.
6978 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6979 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6980 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6981 $as_echo_n "(cached) " >&6
6984 # These are sane defaults that work on at least a few old systems.
6985 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6987 # Character class describing NM global symbol codes.
6988 symcode='[BCDEGRST]'
6990 # Regexp to match symbols that can be accessed directly from C.
6991 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6993 # Define system-specific variables.
6998 cygwin* | mingw* | pw32* | cegcc*)
6999 symcode='[ABCDGISTW]'
7002 if test "$host_cpu" = ia64; then
7003 symcode='[ABCDEGRST]'
7007 symcode='[BCDEGRST]'
7010 symcode='[BCDEGQRST]'
7021 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7029 # If we're using GNU nm, then use its standard symbol codes.
7030 case `$NM -V 2>&1` in
7031 *GNU* | *'with BFD'*)
7032 symcode='[ABCDGIRSTW]' ;;
7035 # Transform an extracted symbol line into a proper C declaration.
7036 # Some systems (esp. on ia64) link data and code symbols differently,
7037 # so use this general approach.
7038 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7040 # Transform an extracted symbol line into symbol name and symbol address
7041 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7042 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7044 # Handle CRLF in mingw tool chain
7048 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7052 # Try without a prefix underscore, then with it.
7053 for ac_symprfx in "" "_"; do
7055 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7056 symxfrm="\\1 $ac_symprfx\\2 \\2"
7058 # Write the raw and C identifiers.
7059 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7060 # Fake it for dumpbin and say T for any non-static function
7061 # and D for any global variable.
7062 # Also find C++ and __fastcall symbols from MSVC++,
7063 # which start with @ or ?.
7064 lt_cv_sys_global_symbol_pipe="$AWK '"\
7065 " {last_section=section; section=\$ 3};"\
7066 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7067 " \$ 0!~/External *\|/{next};"\
7068 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7069 " {if(hide[section]) next};"\
7070 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7071 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7072 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7073 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7074 " ' prfx=^$ac_symprfx"
7076 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7079 # Check to see that the pipe works correctly.
7083 cat > conftest.$ac_ext <<_LT_EOF
7088 void nm_test_func(void);
7089 void nm_test_func(void){}
7093 int main(){nm_test_var='a';nm_test_func();return(0);}
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>&5
7099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); }; then
7101 # Now try to grab the symbols.
7103 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7104 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } && test -s "$nlist"; then
7108 # Try sorting and uniquifying the output.
7109 if sort "$nlist" | uniq > "$nlist"T; then
7110 mv -f "$nlist"T "$nlist"
7115 # Make sure that we snagged all the symbols we need.
7116 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7117 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7118 cat <<_LT_EOF > conftest.$ac_ext
7124 # Now generate the symbol file.
7125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7127 cat <<_LT_EOF >> conftest.$ac_ext
7129 /* The mapping between symbol names and symbols. */
7134 lt__PROGRAM__LTX_preloaded_symbols[] =
7136 { "@PROGRAM@", (void *) 0 },
7138 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7139 cat <<\_LT_EOF >> conftest.$ac_ext
7143 /* This works around a problem in FreeBSD linker */
7144 #ifdef FREEBSD_WORKAROUND
7145 static const void *lt_preloaded_setup() {
7146 return lt__PROGRAM__LTX_preloaded_symbols;
7154 # Now try linking the two files.
7155 mv conftest.$ac_objext conftstm.$ac_objext
7156 lt_save_LIBS="$LIBS"
7157 lt_save_CFLAGS="$CFLAGS"
7158 LIBS="conftstm.$ac_objext"
7159 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7161 (eval $ac_link) 2>&5
7163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7167 LIBS="$lt_save_LIBS"
7168 CFLAGS="$lt_save_CFLAGS"
7170 echo "cannot find nm_test_func in $nlist" >&5
7173 echo "cannot find nm_test_var in $nlist" >&5
7176 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7179 echo "$progname: failed program was:" >&5
7180 cat conftest.$ac_ext >&5
7182 rm -rf conftest* conftst*
7184 # Do not use the global_symbol_pipe unless it works.
7185 if test "$pipe_works" = yes; then
7188 lt_cv_sys_global_symbol_pipe=
7194 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7195 lt_cv_sys_global_symbol_to_cdecl=
7197 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7198 { $as_echo "$as_me:$LINENO: result: failed" >&5
7199 $as_echo "failed" >&6; }
7201 { $as_echo "$as_me:$LINENO: result: ok" >&5
7202 $as_echo "ok" >&6; }
7226 # Check whether --enable-libtool-lock was given.
7227 if test "${enable_libtool_lock+set}" = set; then
7228 enableval=$enable_libtool_lock;
7231 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7233 # Some flags need to be propagated to the compiler or linker for good
7237 # Find out which ABI we are using.
7238 echo 'int i;' > conftest.$ac_ext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240 (eval $ac_compile) 2>&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; then
7244 case `/usr/bin/file conftest.$ac_objext` in
7256 # Find out which ABI we are using.
7257 echo '#line 7257 "configure"' > conftest.$ac_ext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259 (eval $ac_compile) 2>&5
7261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; then
7263 if test "$lt_cv_prog_gnu_ld" = yes; then
7264 case `/usr/bin/file conftest.$ac_objext` in
7266 LD="${LD-ld} -melf32bsmip"
7269 LD="${LD-ld} -melf32bmipn32"
7272 LD="${LD-ld} -melf64bmip"
7276 case `/usr/bin/file conftest.$ac_objext` in
7292 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7293 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7294 # Find out which ABI we are using.
7295 echo 'int i;' > conftest.$ac_ext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>&5
7299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; then
7301 case `/usr/bin/file conftest.o` in
7304 x86_64-*kfreebsd*-gnu)
7305 LD="${LD-ld} -m elf_i386_fbsd"
7308 LD="${LD-ld} -m elf_i386"
7310 ppc64-*linux*|powerpc64-*linux*)
7311 LD="${LD-ld} -m elf32ppclinux"
7314 LD="${LD-ld} -m elf_s390"
7317 LD="${LD-ld} -m elf32_sparc"
7323 x86_64-*kfreebsd*-gnu)
7324 LD="${LD-ld} -m elf_x86_64_fbsd"
7327 LD="${LD-ld} -m elf_x86_64"
7329 ppc*-*linux*|powerpc*-*linux*)
7330 LD="${LD-ld} -m elf64ppc"
7332 s390*-*linux*|s390*-*tpf*)
7333 LD="${LD-ld} -m elf64_s390"
7336 LD="${LD-ld} -m elf64_sparc"
7346 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7347 SAVE_CFLAGS="$CFLAGS"
7348 CFLAGS="$CFLAGS -belf"
7349 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7350 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7351 if test "${lt_cv_cc_needs_belf+set}" = set; then
7352 $as_echo_n "(cached) " >&6
7355 ac_cpp='$CPP $CPPFLAGS'
7356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7375 rm -f conftest.$ac_objext conftest$ac_exeext
7376 if { (ac_try="$ac_link"
7378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7379 *) ac_try_echo=$ac_try;;
7381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7382 $as_echo "$ac_try_echo") >&5
7383 (eval "$ac_link") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest$ac_exeext && {
7393 test "$cross_compiling" = yes ||
7394 $as_test_x conftest$ac_exeext
7396 lt_cv_cc_needs_belf=yes
7398 $as_echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 lt_cv_cc_needs_belf=no
7404 rm -rf conftest.dSYM
7405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7406 conftest$ac_exeext conftest.$ac_ext
7408 ac_cpp='$CPP $CPPFLAGS'
7409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7414 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7415 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7416 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7417 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7418 CFLAGS="$SAVE_CFLAGS"
7422 # Find out which ABI we are using.
7423 echo 'int i;' > conftest.$ac_ext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425 (eval $ac_compile) 2>&5
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; then
7429 case `/usr/bin/file conftest.o` in
7431 case $lt_cv_prog_gnu_ld in
7432 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7434 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7446 need_locks="$enable_libtool_lock"
7450 rhapsody* | darwin*)
7451 if test -n "$ac_tool_prefix"; then
7452 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7453 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7457 $as_echo_n "(cached) " >&6
7459 if test -n "$DSYMUTIL"; then
7460 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7480 if test -n "$DSYMUTIL"; then
7481 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7482 $as_echo "$DSYMUTIL" >&6; }
7484 { $as_echo "$as_me:$LINENO: result: no" >&5
7485 $as_echo "no" >&6; }
7490 if test -z "$ac_cv_prog_DSYMUTIL"; then
7491 ac_ct_DSYMUTIL=$DSYMUTIL
7492 # Extract the first word of "dsymutil", so it can be a program name with args.
7493 set dummy dsymutil; ac_word=$2
7494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7495 $as_echo_n "checking for $ac_word... " >&6; }
7496 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7497 $as_echo_n "(cached) " >&6
7499 if test -n "$ac_ct_DSYMUTIL"; then
7500 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7520 if test -n "$ac_ct_DSYMUTIL"; then
7521 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7522 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7524 { $as_echo "$as_me:$LINENO: result: no" >&5
7525 $as_echo "no" >&6; }
7528 if test "x$ac_ct_DSYMUTIL" = x; then
7531 case $cross_compiling:$ac_tool_warned in
7533 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7535 ac_tool_warned=yes ;;
7537 DSYMUTIL=$ac_ct_DSYMUTIL
7540 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7543 if test -n "$ac_tool_prefix"; then
7544 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7545 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7546 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7549 $as_echo_n "(cached) " >&6
7551 if test -n "$NMEDIT"; then
7552 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7561 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7562 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 NMEDIT=$ac_cv_prog_NMEDIT
7572 if test -n "$NMEDIT"; then
7573 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7574 $as_echo "$NMEDIT" >&6; }
7576 { $as_echo "$as_me:$LINENO: result: no" >&5
7577 $as_echo "no" >&6; }
7582 if test -z "$ac_cv_prog_NMEDIT"; then
7583 ac_ct_NMEDIT=$NMEDIT
7584 # Extract the first word of "nmedit", so it can be a program name with args.
7585 set dummy nmedit; ac_word=$2
7586 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7587 $as_echo_n "checking for $ac_word... " >&6; }
7588 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7589 $as_echo_n "(cached) " >&6
7591 if test -n "$ac_ct_NMEDIT"; then
7592 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 test -z "$as_dir" && as_dir=.
7599 for ac_exec_ext in '' $ac_executable_extensions; do
7600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7601 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7602 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7612 if test -n "$ac_ct_NMEDIT"; then
7613 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7614 $as_echo "$ac_ct_NMEDIT" >&6; }
7616 { $as_echo "$as_me:$LINENO: result: no" >&5
7617 $as_echo "no" >&6; }
7620 if test "x$ac_ct_NMEDIT" = x; then
7623 case $cross_compiling:$ac_tool_warned in
7625 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7627 ac_tool_warned=yes ;;
7629 NMEDIT=$ac_ct_NMEDIT
7632 NMEDIT="$ac_cv_prog_NMEDIT"
7635 if test -n "$ac_tool_prefix"; then
7636 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7637 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7638 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if test "${ac_cv_prog_LIPO+set}" = set; then
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$LIPO"; then
7644 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7654 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 LIPO=$ac_cv_prog_LIPO
7664 if test -n "$LIPO"; then
7665 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7666 $as_echo "$LIPO" >&6; }
7668 { $as_echo "$as_me:$LINENO: result: no" >&5
7669 $as_echo "no" >&6; }
7674 if test -z "$ac_cv_prog_LIPO"; then
7676 # Extract the first word of "lipo", so it can be a program name with args.
7677 set dummy lipo; ac_word=$2
7678 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 $as_echo_n "checking for $ac_word... " >&6; }
7680 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7681 $as_echo_n "(cached) " >&6
7683 if test -n "$ac_ct_LIPO"; then
7684 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 test -z "$as_dir" && as_dir=.
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7693 ac_cv_prog_ac_ct_LIPO="lipo"
7694 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7704 if test -n "$ac_ct_LIPO"; then
7705 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7706 $as_echo "$ac_ct_LIPO" >&6; }
7708 { $as_echo "$as_me:$LINENO: result: no" >&5
7709 $as_echo "no" >&6; }
7712 if test "x$ac_ct_LIPO" = x; then
7715 case $cross_compiling:$ac_tool_warned in
7717 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7719 ac_tool_warned=yes ;;
7724 LIPO="$ac_cv_prog_LIPO"
7727 if test -n "$ac_tool_prefix"; then
7728 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7729 set dummy ${ac_tool_prefix}otool; ac_word=$2
7730 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if test "${ac_cv_prog_OTOOL+set}" = set; then
7733 $as_echo_n "(cached) " >&6
7735 if test -n "$OTOOL"; then
7736 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7745 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7755 OTOOL=$ac_cv_prog_OTOOL
7756 if test -n "$OTOOL"; then
7757 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7758 $as_echo "$OTOOL" >&6; }
7760 { $as_echo "$as_me:$LINENO: result: no" >&5
7761 $as_echo "no" >&6; }
7766 if test -z "$ac_cv_prog_OTOOL"; then
7768 # Extract the first word of "otool", so it can be a program name with args.
7769 set dummy otool; ac_word=$2
7770 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7771 $as_echo_n "checking for $ac_word... " >&6; }
7772 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7773 $as_echo_n "(cached) " >&6
7775 if test -n "$ac_ct_OTOOL"; then
7776 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_prog_ac_ct_OTOOL="otool"
7786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7796 if test -n "$ac_ct_OTOOL"; then
7797 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7798 $as_echo "$ac_ct_OTOOL" >&6; }
7800 { $as_echo "$as_me:$LINENO: result: no" >&5
7801 $as_echo "no" >&6; }
7804 if test "x$ac_ct_OTOOL" = x; then
7807 case $cross_compiling:$ac_tool_warned in
7809 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7811 ac_tool_warned=yes ;;
7816 OTOOL="$ac_cv_prog_OTOOL"
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7825 $as_echo_n "(cached) " >&6
7827 if test -n "$OTOOL64"; then
7828 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 OTOOL64=$ac_cv_prog_OTOOL64
7848 if test -n "$OTOOL64"; then
7849 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7850 $as_echo "$OTOOL64" >&6; }
7852 { $as_echo "$as_me:$LINENO: result: no" >&5
7853 $as_echo "no" >&6; }
7858 if test -z "$ac_cv_prog_OTOOL64"; then
7859 ac_ct_OTOOL64=$OTOOL64
7860 # Extract the first word of "otool64", so it can be a program name with args.
7861 set dummy otool64; ac_word=$2
7862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7865 $as_echo_n "(cached) " >&6
7867 if test -n "$ac_ct_OTOOL64"; then
7868 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_ac_ct_OTOOL64="otool64"
7878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7888 if test -n "$ac_ct_OTOOL64"; then
7889 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7890 $as_echo "$ac_ct_OTOOL64" >&6; }
7892 { $as_echo "$as_me:$LINENO: result: no" >&5
7893 $as_echo "no" >&6; }
7896 if test "x$ac_ct_OTOOL64" = x; then
7899 case $cross_compiling:$ac_tool_warned in
7901 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903 ac_tool_warned=yes ;;
7905 OTOOL64=$ac_ct_OTOOL64
7908 OTOOL64="$ac_cv_prog_OTOOL64"
7937 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7938 $as_echo_n "checking for -single_module linker flag... " >&6; }
7939 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7940 $as_echo_n "(cached) " >&6
7942 lt_cv_apple_cc_single_mod=no
7943 if test -z "${LT_MULTI_MODULE}"; then
7944 # By default we will add the -single_module flag. You can override
7945 # by either setting the environment variable LT_MULTI_MODULE
7946 # non-empty at configure time, or by adding -multi_module to the
7948 rm -rf libconftest.dylib*
7949 echo "int foo(void){return 1;}" > conftest.c
7950 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7951 -dynamiclib -Wl,-single_module conftest.c" >&5
7952 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7953 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7955 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7956 lt_cv_apple_cc_single_mod=yes
7958 cat conftest.err >&5
7960 rm -rf libconftest.dylib*
7964 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7965 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7966 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7967 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7968 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7969 $as_echo_n "(cached) " >&6
7971 lt_cv_ld_exported_symbols_list=no
7972 save_LDFLAGS=$LDFLAGS
7973 echo "_main" > conftest.sym
7974 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7975 cat >conftest.$ac_ext <<_ACEOF
7978 cat confdefs.h >>conftest.$ac_ext
7979 cat >>conftest.$ac_ext <<_ACEOF
7980 /* end confdefs.h. */
7990 rm -f conftest.$ac_objext conftest$ac_exeext
7991 if { (ac_try="$ac_link"
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7997 $as_echo "$ac_try_echo") >&5
7998 (eval "$ac_link") 2>conftest.er1
8000 grep -v '^ *+' conftest.er1 >conftest.err
8002 cat conftest.err >&5
8003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } && {
8005 test -z "$ac_c_werror_flag" ||
8006 test ! -s conftest.err
8007 } && test -s conftest$ac_exeext && {
8008 test "$cross_compiling" = yes ||
8009 $as_test_x conftest$ac_exeext
8011 lt_cv_ld_exported_symbols_list=yes
8013 $as_echo "$as_me: failed program was:" >&5
8014 sed 's/^/| /' conftest.$ac_ext >&5
8016 lt_cv_ld_exported_symbols_list=no
8019 rm -rf conftest.dSYM
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021 conftest$ac_exeext conftest.$ac_ext
8022 LDFLAGS="$save_LDFLAGS"
8025 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8026 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8028 rhapsody* | darwin1.[012])
8029 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8031 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8032 darwin*) # darwin 5.x on
8033 # if running on 10.5 or later, the deployment target defaults
8034 # to the OS version, if on x86, and 10.4, the deployment
8035 # target defaults to 10.4. Don't you love it?
8036 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8037 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8038 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8040 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8042 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8046 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8047 _lt_dar_single_mod='$single_module'
8049 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8050 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8052 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8054 if test "$DSYMUTIL" != ":"; then
8055 _lt_dsymutil='~$DSYMUTIL $lib || :'
8062 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8072 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8073 inttypes.h stdint.h unistd.h
8075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 $as_echo_n "checking for $ac_header... " >&6; }
8078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8079 $as_echo_n "(cached) " >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8089 #include <$ac_header>
8091 rm -f conftest.$ac_objext
8092 if { (ac_try="$ac_compile"
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8098 $as_echo "$ac_try_echo") >&5
8099 (eval "$ac_compile") 2>conftest.er1
8101 grep -v '^ *+' conftest.er1 >conftest.err
8103 cat conftest.err >&5
8104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } && {
8106 test -z "$ac_c_werror_flag" ||
8107 test ! -s conftest.err
8108 } && test -s conftest.$ac_objext; then
8109 eval "$as_ac_Header=yes"
8111 $as_echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8114 eval "$as_ac_Header=no"
8117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 ac_res=`eval 'as_val=${'$as_ac_Header'}
8120 $as_echo "$as_val"'`
8121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8122 $as_echo "$ac_res" >&6; }
8123 as_val=`eval 'as_val=${'$as_ac_Header'}
8124 $as_echo "$as_val"'`
8125 if test "x$as_val" = x""yes; then
8126 cat >>confdefs.h <<_ACEOF
8127 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8136 for ac_header in dlfcn.h
8138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8139 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8140 $as_echo_n "checking for $ac_header... " >&6; }
8141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8142 $as_echo_n "(cached) " >&6
8144 cat >conftest.$ac_ext <<_ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8152 #include <$ac_header>
8154 rm -f conftest.$ac_objext
8155 if { (ac_try="$ac_compile"
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8161 $as_echo "$ac_try_echo") >&5
8162 (eval "$ac_compile") 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } && {
8169 test -z "$ac_c_werror_flag" ||
8170 test ! -s conftest.err
8171 } && test -s conftest.$ac_objext; then
8172 eval "$as_ac_Header=yes"
8174 $as_echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 eval "$as_ac_Header=no"
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 ac_res=`eval 'as_val=${'$as_ac_Header'}
8183 $as_echo "$as_val"'`
8184 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8185 $as_echo "$ac_res" >&6; }
8186 as_val=`eval 'as_val=${'$as_ac_Header'}
8187 $as_echo "$as_val"'`
8188 if test "x$as_val" = x""yes; then
8189 cat >>confdefs.h <<_ACEOF
8190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8209 # Check whether --enable-shared was given.
8210 if test "${enable_shared+set}" = set; then
8211 enableval=$enable_shared; p=${PACKAGE-default}
8213 yes) enable_shared=yes ;;
8214 no) enable_shared=no ;;
8217 # Look at the argument we got. We use all the common list separators.
8218 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219 for pkg in $enableval; do
8221 if test "X$pkg" = "X$p"; then
8242 # Check whether --with-pic was given.
8243 if test "${with_pic+set}" = set; then
8244 withval=$with_pic; pic_mode="$withval"
8250 test -z "$pic_mode" && pic_mode=default
8258 # Check whether --enable-fast-install was given.
8259 if test "${enable_fast_install+set}" = set; then
8260 enableval=$enable_fast_install; p=${PACKAGE-default}
8262 yes) enable_fast_install=yes ;;
8263 no) enable_fast_install=no ;;
8265 enable_fast_install=no
8266 # Look at the argument we got. We use all the common list separators.
8267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8268 for pkg in $enableval; do
8270 if test "X$pkg" = "X$p"; then
8271 enable_fast_install=yes
8278 enable_fast_install=yes
8291 # This can be used to rebuild libtool when needed
8292 LIBTOOL_DEPS="$ltmain"
8294 # Always use our own libtool.
8295 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8321 test -z "$LN_S" && LN_S="ln -s"
8336 if test -n "${ZSH_VERSION+set}" ; then
8337 setopt NO_GLOB_SUBST
8340 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8341 $as_echo_n "checking for objdir... " >&6; }
8342 if test "${lt_cv_objdir+set}" = set; then
8343 $as_echo_n "(cached) " >&6
8345 rm -f .libs 2>/dev/null
8346 mkdir .libs 2>/dev/null
8347 if test -d .libs; then
8350 # MS-DOS does not allow filenames that begin with a dot.
8353 rmdir .libs 2>/dev/null
8355 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8356 $as_echo "$lt_cv_objdir" >&6; }
8357 objdir=$lt_cv_objdir
8363 cat >>confdefs.h <<_ACEOF
8364 #define LT_OBJDIR "$lt_cv_objdir/"
8385 # AIX sometimes has problems with the GCC collect2 program. For some
8386 # reason, if we set the COLLECT_NAMES environment variable, the problems
8387 # vanish in a puff of smoke.
8388 if test "X${COLLECT_NAMES+set}" != Xset; then
8390 export COLLECT_NAMES
8395 # Sed substitution that helps us do robust quoting. It backslashifies
8396 # metacharacters that are still active within double-quoted strings.
8397 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8399 # Same as above, but do not quote variable references.
8400 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8402 # Sed substitution to delay expansion of an escaped shell variable in a
8403 # double_quote_subst'ed string.
8404 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8406 # Sed substitution to delay expansion of an escaped single quote.
8407 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8409 # Sed substitution to avoid accidental globbing in evaled expressions
8410 no_glob_subst='s/\*/\\\*/g'
8414 can_build_shared=yes
8416 # All known linkers require a `.a' archive for static linking (except MSVC,
8417 # which needs '.lib').
8420 with_gnu_ld="$lt_cv_prog_gnu_ld"
8423 old_CFLAGS="$CFLAGS"
8425 # Set sane defaults for various variables
8426 test -z "$CC" && CC=cc
8427 test -z "$LTCC" && LTCC=$CC
8428 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8429 test -z "$LD" && LD=ld
8430 test -z "$ac_objext" && ac_objext=o
8432 for cc_temp in $compiler""; do
8434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8440 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8443 # Only perform the check for file, if the check method requires it
8444 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8445 case $deplibs_check_method in
8447 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8448 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8449 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8450 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8451 $as_echo_n "(cached) " >&6
8455 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8458 lt_save_MAGIC_CMD="$MAGIC_CMD"
8459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8461 for ac_dir in $ac_dummy; do
8463 test -z "$ac_dir" && ac_dir=.
8464 if test -f $ac_dir/${ac_tool_prefix}file; then
8465 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8466 if test -n "$file_magic_test_file"; then
8467 case $deplibs_check_method in
8469 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8471 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8472 $EGREP "$file_magic_regex" > /dev/null; then
8477 *** Warning: the command libtool uses to detect shared libraries,
8478 *** $file_magic_cmd, produces output that libtool cannot recognize.
8479 *** The result is that libtool may fail to recognize shared libraries
8480 *** as such. This will affect the creation of libtool libraries that
8481 *** depend on shared libraries, but programs linked with such libtool
8482 *** libraries will work regardless of this problem. Nevertheless, you
8483 *** may want to report the problem to your system manager and/or to
8484 *** bug-libtool@gnu.org
8494 MAGIC_CMD="$lt_save_MAGIC_CMD"
8499 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8500 if test -n "$MAGIC_CMD"; then
8501 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8502 $as_echo "$MAGIC_CMD" >&6; }
8504 { $as_echo "$as_me:$LINENO: result: no" >&5
8505 $as_echo "no" >&6; }
8512 if test -z "$lt_cv_path_MAGIC_CMD"; then
8513 if test -n "$ac_tool_prefix"; then
8514 { $as_echo "$as_me:$LINENO: checking for file" >&5
8515 $as_echo_n "checking for file... " >&6; }
8516 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8517 $as_echo_n "(cached) " >&6
8521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8524 lt_save_MAGIC_CMD="$MAGIC_CMD"
8525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8527 for ac_dir in $ac_dummy; do
8529 test -z "$ac_dir" && ac_dir=.
8530 if test -f $ac_dir/file; then
8531 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8532 if test -n "$file_magic_test_file"; then
8533 case $deplibs_check_method in
8535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8538 $EGREP "$file_magic_regex" > /dev/null; then
8543 *** Warning: the command libtool uses to detect shared libraries,
8544 *** $file_magic_cmd, produces output that libtool cannot recognize.
8545 *** The result is that libtool may fail to recognize shared libraries
8546 *** as such. This will affect the creation of libtool libraries that
8547 *** depend on shared libraries, but programs linked with such libtool
8548 *** libraries will work regardless of this problem. Nevertheless, you
8549 *** may want to report the problem to your system manager and/or to
8550 *** bug-libtool@gnu.org
8560 MAGIC_CMD="$lt_save_MAGIC_CMD"
8565 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8566 if test -n "$MAGIC_CMD"; then
8567 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8568 $as_echo "$MAGIC_CMD" >&6; }
8570 { $as_echo "$as_me:$LINENO: result: no" >&5
8571 $as_echo "no" >&6; }
8584 # Use C for the default configuration in the libtool script
8588 ac_cpp='$CPP $CPPFLAGS'
8589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8594 # Source file extension for C test sources.
8597 # Object file extension for compiled C test sources.
8601 # Code to be used in simple compile tests
8602 lt_simple_compile_test_code="int some_variable = 0;"
8604 # Code to be used in simple link tests
8605 lt_simple_link_test_code='int main(){return(0);}'
8613 # If no C compiler was specified, use CC.
8616 # If no C compiler flags were specified, use CFLAGS.
8617 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8619 # Allow CC to be a program name with arguments.
8622 # Save the default compiler, since it gets overwritten when the other
8623 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8624 compiler_DEFAULT=$CC
8626 # save warnings/boilerplate of simple test code
8627 ac_outfile=conftest.$ac_objext
8628 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8630 _lt_compiler_boilerplate=`cat conftest.err`
8633 ac_outfile=conftest.$ac_objext
8634 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8636 _lt_linker_boilerplate=`cat conftest.err`
8640 if test -n "$compiler"; then
8642 lt_prog_compiler_no_builtin_flag=
8644 if test "$GCC" = yes; then
8645 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8647 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8648 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8649 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8650 $as_echo_n "(cached) " >&6
8652 lt_cv_prog_compiler_rtti_exceptions=no
8653 ac_outfile=conftest.$ac_objext
8654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8655 lt_compiler_flag="-fno-rtti -fno-exceptions"
8656 # Insert the option either (1) after the last *FLAGS variable, or
8657 # (2) before a word containing "conftest.", or (3) at the end.
8658 # Note that $ac_compile itself does not contain backslashes and begins
8659 # with a dollar sign (not a hyphen), so the echo should work correctly.
8660 # The option is referenced via a variable to avoid confusing sed.
8661 lt_compile=`echo "$ac_compile" | $SED \
8662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8664 -e 's:$: $lt_compiler_flag:'`
8665 (eval echo "\"\$as_me:8665: $lt_compile\"" >&5)
8666 (eval "$lt_compile" 2>conftest.err)
8668 cat conftest.err >&5
8669 echo "$as_me:8669: \$? = $ac_status" >&5
8670 if (exit $ac_status) && test -s "$ac_outfile"; then
8671 # The compiler can only warn and ignore the option if not recognized
8672 # So say no if there are warnings other than the usual output.
8673 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8676 lt_cv_prog_compiler_rtti_exceptions=yes
8682 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8683 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8685 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8698 lt_prog_compiler_wl=
8699 lt_prog_compiler_pic=
8700 lt_prog_compiler_static=
8702 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8705 if test "$GCC" = yes; then
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_static='-static'
8711 # All AIX code is PIC.
8712 if test "$host_cpu" = ia64; then
8713 # AIX 5 now supports IA64 processor
8714 lt_prog_compiler_static='-Bstatic'
8721 # see comment about AmigaOS4 .so support
8722 lt_prog_compiler_pic='-fPIC'
8725 # FIXME: we need at least 68020 code to build shared libraries, but
8726 # adding the `-m68020' flag to GCC prevents building anything better,
8728 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8733 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8734 # PIC is the default for these OSes.
8737 mingw* | cygwin* | pw32* | os2* | cegcc*)
8738 # This hack is so that the source file can tell whether it is being
8739 # built for inclusion in a dll (and should export symbols for example).
8740 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8741 # (--disable-auto-import) libraries
8742 lt_prog_compiler_pic='-DDLL_EXPORT'
8745 darwin* | rhapsody*)
8746 # PIC is the default on this platform
8747 # Common symbols not allowed in MH_DYLIB files
8748 lt_prog_compiler_pic='-fno-common'
8752 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8753 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8754 # sets the default TLS model and affects inlining.
8760 lt_prog_compiler_pic='-fPIC'
8766 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8767 # Instead, we relocate shared libraries at runtime.
8771 # Just because we use GCC doesn't mean we suddenly get shared libraries
8772 # on systems that don't support them.
8773 lt_prog_compiler_can_build_shared=no
8778 # QNX uses GNU C++, but need to define -shared option too, otherwise
8780 lt_prog_compiler_pic='-fPIC -shared'
8784 if test -d /usr/nec; then
8785 lt_prog_compiler_pic=-Kconform_pic
8790 lt_prog_compiler_pic='-fPIC'
8794 # PORTME Check for flag to pass linker flags through the system compiler.
8797 lt_prog_compiler_wl='-Wl,'
8798 if test "$host_cpu" = ia64; then
8799 # AIX 5 now supports IA64 processor
8800 lt_prog_compiler_static='-Bstatic'
8802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8806 mingw* | cygwin* | pw32* | os2* | cegcc*)
8807 # This hack is so that the source file can tell whether it is being
8808 # built for inclusion in a dll (and should export symbols for example).
8809 lt_prog_compiler_pic='-DDLL_EXPORT'
8812 hpux9* | hpux10* | hpux11*)
8813 lt_prog_compiler_wl='-Wl,'
8814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8821 lt_prog_compiler_pic='+Z'
8824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8825 lt_prog_compiler_static='${wl}-a ${wl}archive'
8828 irix5* | irix6* | nonstopux*)
8829 lt_prog_compiler_wl='-Wl,'
8830 # PIC (with -KPIC) is the default.
8831 lt_prog_compiler_static='-non_shared'
8834 linux* | k*bsd*-gnu)
8835 case $cc_basename in
8836 # old Intel for x86_64 which still supported -KPIC.
8838 lt_prog_compiler_wl='-Wl,'
8839 lt_prog_compiler_pic='-KPIC'
8840 lt_prog_compiler_static='-static'
8842 # icc used to be incompatible with GCC.
8843 # ICC 10 doesn't accept -KPIC any more.
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_pic='-fPIC'
8847 lt_prog_compiler_static='-static'
8849 # Lahey Fortran 8.1.
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='--shared'
8853 lt_prog_compiler_static='--static'
8855 pgcc* | pgf77* | pgf90* | pgf95*)
8856 # Portland Group compilers (*not* the Pentium gcc compiler,
8857 # which looks to be a dead project)
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-fpic'
8860 lt_prog_compiler_static='-Bstatic'
8863 lt_prog_compiler_wl='-Wl,'
8864 # All Alpha code is PIC.
8865 lt_prog_compiler_static='-non_shared'
8868 # IBM XL C 8.0/Fortran 10.1 on PPC
8869 lt_prog_compiler_wl='-Wl,'
8870 lt_prog_compiler_pic='-qpic'
8871 lt_prog_compiler_static='-qstaticlink'
8874 case `$CC -V 2>&1 | sed 5q` in
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-Bstatic'
8879 lt_prog_compiler_wl='-Wl,'
8882 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8883 lt_prog_compiler_pic='-KPIC'
8884 lt_prog_compiler_static='-Bstatic'
8885 lt_prog_compiler_wl=''
8893 lt_prog_compiler_pic='-KPIC'
8894 lt_prog_compiler_static='-Bstatic'
8898 # QNX uses GNU C++, but need to define -shared option too, otherwise
8900 lt_prog_compiler_pic='-fPIC -shared'
8903 osf3* | osf4* | osf5*)
8904 lt_prog_compiler_wl='-Wl,'
8905 # All OSF/1 code is PIC.
8906 lt_prog_compiler_static='-non_shared'
8910 lt_prog_compiler_static='-non_shared'
8914 lt_prog_compiler_pic='-KPIC'
8915 lt_prog_compiler_static='-Bstatic'
8916 case $cc_basename in
8918 lt_prog_compiler_wl='-Qoption ld ';;
8920 lt_prog_compiler_wl='-Wl,';;
8925 lt_prog_compiler_wl='-Qoption ld '
8926 lt_prog_compiler_pic='-PIC'
8927 lt_prog_compiler_static='-Bstatic'
8930 sysv4 | sysv4.2uw2* | sysv4.3*)
8931 lt_prog_compiler_wl='-Wl,'
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8937 if test -d /usr/nec ;then
8938 lt_prog_compiler_pic='-Kconform_pic'
8939 lt_prog_compiler_static='-Bstatic'
8943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8944 lt_prog_compiler_wl='-Wl,'
8945 lt_prog_compiler_pic='-KPIC'
8946 lt_prog_compiler_static='-Bstatic'
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_can_build_shared=no
8955 lt_prog_compiler_pic='-pic'
8956 lt_prog_compiler_static='-Bstatic'
8960 lt_prog_compiler_can_build_shared=no
8966 # For platforms which do not support PIC, -DPIC is meaningless:
8968 lt_prog_compiler_pic=
8971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8974 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8975 $as_echo "$lt_prog_compiler_pic" >&6; }
8983 # Check to make sure the PIC flag actually works.
8985 if test -n "$lt_prog_compiler_pic"; then
8986 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8987 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8988 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8989 $as_echo_n "(cached) " >&6
8991 lt_cv_prog_compiler_pic_works=no
8992 ac_outfile=conftest.$ac_objext
8993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8995 # Insert the option either (1) after the last *FLAGS variable, or
8996 # (2) before a word containing "conftest.", or (3) at the end.
8997 # Note that $ac_compile itself does not contain backslashes and begins
8998 # with a dollar sign (not a hyphen), so the echo should work correctly.
8999 # The option is referenced via a variable to avoid confusing sed.
9000 lt_compile=`echo "$ac_compile" | $SED \
9001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003 -e 's:$: $lt_compiler_flag:'`
9004 (eval echo "\"\$as_me:9004: $lt_compile\"" >&5)
9005 (eval "$lt_compile" 2>conftest.err)
9007 cat conftest.err >&5
9008 echo "$as_me:9008: \$? = $ac_status" >&5
9009 if (exit $ac_status) && test -s "$ac_outfile"; then
9010 # The compiler can only warn and ignore the option if not recognized
9011 # So say no if there are warnings other than the usual output.
9012 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9015 lt_cv_prog_compiler_pic_works=yes
9021 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9022 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9024 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9025 case $lt_prog_compiler_pic in
9027 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9030 lt_prog_compiler_pic=
9031 lt_prog_compiler_can_build_shared=no
9042 # Check to make sure the static flag actually works.
9044 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9045 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9046 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9047 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9048 $as_echo_n "(cached) " >&6
9050 lt_cv_prog_compiler_static_works=no
9051 save_LDFLAGS="$LDFLAGS"
9052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9053 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9055 # The linker can only warn and ignore the option if not recognized
9056 # So say no if there are warnings
9057 if test -s conftest.err; then
9058 # Append any errors to the config.log.
9059 cat conftest.err 1>&5
9060 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9062 if diff conftest.exp conftest.er2 >/dev/null; then
9063 lt_cv_prog_compiler_static_works=yes
9066 lt_cv_prog_compiler_static_works=yes
9070 LDFLAGS="$save_LDFLAGS"
9073 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9074 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9076 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9079 lt_prog_compiler_static=
9088 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9090 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9091 $as_echo_n "(cached) " >&6
9093 lt_cv_prog_compiler_c_o=no
9094 $RM -r conftest 2>/dev/null
9098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9100 lt_compiler_flag="-o out/conftest2.$ac_objext"
9101 # Insert the option either (1) after the last *FLAGS variable, or
9102 # (2) before a word containing "conftest.", or (3) at the end.
9103 # Note that $ac_compile itself does not contain backslashes and begins
9104 # with a dollar sign (not a hyphen), so the echo should work correctly.
9105 lt_compile=`echo "$ac_compile" | $SED \
9106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108 -e 's:$: $lt_compiler_flag:'`
9109 (eval echo "\"\$as_me:9109: $lt_compile\"" >&5)
9110 (eval "$lt_compile" 2>out/conftest.err)
9112 cat out/conftest.err >&5
9113 echo "$as_me:9113: \$? = $ac_status" >&5
9114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9116 # The compiler can only warn and ignore the option if not recognized
9117 # So say no if there are warnings
9118 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9121 lt_cv_prog_compiler_c_o=yes
9126 # SGI C++ compiler will create directory out/ii_files/ for
9127 # template instantiation
9128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9129 $RM out/* && rmdir out
9135 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9143 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9144 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9145 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9146 $as_echo_n "(cached) " >&6
9148 lt_cv_prog_compiler_c_o=no
9149 $RM -r conftest 2>/dev/null
9153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9155 lt_compiler_flag="-o out/conftest2.$ac_objext"
9156 # Insert the option either (1) after the last *FLAGS variable, or
9157 # (2) before a word containing "conftest.", or (3) at the end.
9158 # Note that $ac_compile itself does not contain backslashes and begins
9159 # with a dollar sign (not a hyphen), so the echo should work correctly.
9160 lt_compile=`echo "$ac_compile" | $SED \
9161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163 -e 's:$: $lt_compiler_flag:'`
9164 (eval echo "\"\$as_me:9164: $lt_compile\"" >&5)
9165 (eval "$lt_compile" 2>out/conftest.err)
9167 cat out/conftest.err >&5
9168 echo "$as_me:9168: \$? = $ac_status" >&5
9169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9171 # The compiler can only warn and ignore the option if not recognized
9172 # So say no if there are warnings
9173 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9176 lt_cv_prog_compiler_c_o=yes
9181 # SGI C++ compiler will create directory out/ii_files/ for
9182 # template instantiation
9183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9184 $RM out/* && rmdir out
9190 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9191 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9196 hard_links="nottested"
9197 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9198 # do not overwrite the value of need_locks provided by the user
9199 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9200 $as_echo_n "checking if we can lock with hard links... " >&6; }
9203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9205 ln conftest.a conftest.b 2>&5 || hard_links=no
9206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9207 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9208 $as_echo "$hard_links" >&6; }
9209 if test "$hard_links" = no; then
9210 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9211 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9223 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9224 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9227 allow_undefined_flag=
9228 always_export_symbols=no
9230 archive_expsym_cmds=
9231 compiler_needs_object=no
9232 enable_shared_with_static_runtimes=no
9233 export_dynamic_flag_spec=
9234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9235 hardcode_automatic=no
9237 hardcode_direct_absolute=no
9238 hardcode_libdir_flag_spec=
9239 hardcode_libdir_flag_spec_ld=
9240 hardcode_libdir_separator=
9242 hardcode_shlibpath_var=unsupported
9244 link_all_deplibs=unknown
9247 old_archive_from_new_cmds=
9248 old_archive_from_expsyms_cmds=
9249 thread_safe_flag_spec=
9250 whole_archive_flag_spec=
9251 # include_expsyms should be a list of space-separated symbols to be *always*
9252 # included in the symbol list
9254 # exclude_expsyms can be an extended regexp of symbols to exclude
9255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9257 # as well as any symbol that contains `d'.
9258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9260 # platforms (ab)use it in PIC code, but their linkers get confused if
9261 # the symbol is explicitly referenced. Since portable code cannot
9262 # rely on this symbol name, it's probably fine to never include it in
9263 # preloaded symbol tables.
9264 # Exclude shared library initialization/finalization symbols.
9265 extract_expsyms_cmds=
9268 cygwin* | mingw* | pw32* | cegcc*)
9269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9270 # When not using gcc, we currently assume that we are using
9271 # Microsoft Visual C++.
9272 if test "$GCC" != yes; then
9277 # we just hope/assume this is gcc and not c89 (= MSVC++)
9286 if test "$with_gnu_ld" = yes; then
9287 # If archive_cmds runs LD, not CC, wlarc should be empty
9290 # Set some defaults for GNU ld with shared library support. These
9291 # are reset later if shared libraries are not supported. Putting them
9292 # here allows them to be overridden if necessary.
9293 runpath_var=LD_RUN_PATH
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 export_dynamic_flag_spec='${wl}--export-dynamic'
9296 # ancient GNU ld didn't support --whole-archive et. al.
9297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9300 whole_archive_flag_spec=
9302 supports_anon_versioning=no
9303 case `$LD -v 2>&1` in
9304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9307 *\ 2.11.*) ;; # other 2.11 versions
9308 *) supports_anon_versioning=yes ;;
9311 # See if GNU ld supports shared libraries.
9314 # On AIX/PPC, the GNU linker is very broken
9315 if test "$host_cpu" != ia64; then
9319 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9320 *** to be unable to reliably create shared libraries on AIX.
9321 *** Therefore, libtool is disabling shared libraries support. If you
9322 *** really care for shared libraries, you may want to modify your PATH
9323 *** so that a non-GNU linker is found, and then restart.
9332 # see comment about AmigaOS4 .so support
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds=''
9337 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)'
9338 hardcode_libdir_flag_spec='-L$libdir'
9339 hardcode_minus_L=yes
9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346 allow_undefined_flag=unsupported
9347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9348 # support --undefined. This deserves some investigation. FIXME
9349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355 cygwin* | mingw* | pw32* | cegcc*)
9356 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9357 # as there is no search path for DLLs.
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 allow_undefined_flag=unsupported
9360 always_export_symbols=no
9361 enable_shared_with_static_runtimes=yes
9362 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9364 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9366 # If the export-symbols file already is a .def file (1st line
9367 # is EXPORTS), use it as is; otherwise, prepend...
9368 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9369 cp $export_symbols $output_objdir/$soname.def;
9371 echo EXPORTS > $output_objdir/$soname.def;
9372 cat $export_symbols >> $output_objdir/$soname.def;
9374 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9382 hardcode_shlibpath_var=no
9383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9384 export_dynamic_flag_spec='${wl}-E'
9385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9386 # Instead, shared libraries are loaded at an image base (0x10000000 by
9387 # default) and relocated if they conflict, which is a slow very memory
9388 # consuming and fragmenting process. To avoid this, we pick a random,
9389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9392 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'
9395 gnu* | linux* | tpf* | k*bsd*-gnu)
9397 if test "$host_os" = linux-dietlibc; then
9398 case $cc_basename in
9399 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9403 && test "$tmp_diet" = no
9406 tmp_sharedflag='-shared'
9407 case $cc_basename,$host_cpu in
9408 pgcc*) # Portland Group C compiler
9409 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'
9410 tmp_addflag=' $pic_flag'
9412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9413 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'
9414 tmp_addflag=' $pic_flag -Mnomain' ;;
9415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9416 tmp_addflag=' -i_dynamic' ;;
9417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9418 tmp_addflag=' -i_dynamic -nofor_main' ;;
9419 ifc* | ifort*) # Intel Fortran compiler
9420 tmp_addflag=' -nofor_main' ;;
9421 lf95*) # Lahey Fortran 8.1
9422 whole_archive_flag_spec=
9423 tmp_sharedflag='--shared' ;;
9424 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9425 tmp_sharedflag='-qmkshrobj'
9428 case `$CC -V 2>&1 | sed 5q` in
9429 *Sun\ C*) # Sun C 5.9
9430 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9431 compiler_needs_object=yes
9432 tmp_sharedflag='-G' ;;
9433 *Sun\ F*) # Sun Fortran 8.3
9434 tmp_sharedflag='-G' ;;
9436 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9438 if test "x$supports_anon_versioning" = xyes; then
9439 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9441 echo "local: *; };" >> $output_objdir/$libname.ver~
9442 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9445 case $cc_basename in
9447 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9448 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9449 hardcode_libdir_flag_spec=
9450 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9451 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9452 if test "x$supports_anon_versioning" = xyes; then
9453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9455 echo "local: *; };" >> $output_objdir/$libname.ver~
9456 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9465 netbsd* | netbsdelf*-gnu)
9466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9467 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9476 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9481 *** create shared libraries on Solaris systems. Therefore, libtool
9482 *** is disabling shared libraries support. We urge you to upgrade GNU
9483 *** binutils to release 2.9.1 or newer. Another option is to modify
9484 *** your PATH or compiler configuration so that the native linker is
9485 *** used, and then restart.
9488 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9497 case `$LD -v 2>&1` in
9498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9503 *** reliably create shared libraries on SCO systems. Therefore, libtool
9504 *** is disabling shared libraries support. We urge you to upgrade GNU
9505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9506 *** your PATH or compiler configuration so that the native linker is
9507 *** used, and then restart.
9512 # For security reasons, it is highly recommended that you always
9513 # use absolute paths for naming shared libraries, and exclude the
9514 # DT_RUNPATH tag from executables and libraries. But doing so
9515 # requires that you compile everything twice, which is a pain.
9516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9519 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_shlibpath_var=no
9535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9544 if test "$ld_shlibs" = no; then
9546 hardcode_libdir_flag_spec=
9547 export_dynamic_flag_spec=
9548 whole_archive_flag_spec=
9551 # PORTME fill in a description of your system's linker (not GNU ld)
9554 allow_undefined_flag=unsupported
9555 always_export_symbols=yes
9556 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'
9557 # Note: this linker hardcodes the directories in LIBPATH if there
9558 # are no directories specified by -L.
9559 hardcode_minus_L=yes
9560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9561 # Neither direct hardcoding nor static linking is supported with a
9563 hardcode_direct=unsupported
9568 if test "$host_cpu" = ia64; then
9569 # On IA64, the linker does run time linking by default, so we don't
9570 # have to do anything special.
9571 aix_use_runtimelinking=no
9572 exp_sym_flag='-Bexport'
9575 # If we're using GNU nm, then we don't want the "-C" option.
9576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9577 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9578 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'
9580 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'
9582 aix_use_runtimelinking=no
9584 # Test if we are trying to use run time linking or normal
9585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9586 # need to do runtime linking.
9587 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9588 for ld_flag in $LDFLAGS; do
9589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9590 aix_use_runtimelinking=yes
9597 exp_sym_flag='-bexport'
9598 no_entry_flag='-bnoentry'
9601 # When large executables or shared objects are built, AIX ld can
9602 # have problems creating the table of contents. If linking a library
9603 # or program results in "error TOC overflow" add -mminimal-toc to
9604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9609 hardcode_direct_absolute=yes
9610 hardcode_libdir_separator=':'
9611 link_all_deplibs=yes
9612 file_list_spec='${wl}-f,'
9614 if test "$GCC" = yes; then
9615 case $host_os in aix4.[012]|aix4.[012].*)
9616 # We only want to do this on AIX 4.2 and lower, the check
9617 # below for broken collect2 doesn't work under 4.3+
9618 collect2name=`${CC} -print-prog-name=collect2`
9619 if test -f "$collect2name" &&
9620 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9622 # We have reworked collect2
9625 # We have old collect2
9626 hardcode_direct=unsupported
9627 # It fails to find uninstalled libraries when the uninstalled
9628 # path is not listed in the libpath. Setting hardcode_minus_L
9629 # to unsupported forces relinking
9630 hardcode_minus_L=yes
9631 hardcode_libdir_flag_spec='-L$libdir'
9632 hardcode_libdir_separator=
9636 shared_flag='-shared'
9637 if test "$aix_use_runtimelinking" = yes; then
9638 shared_flag="$shared_flag "'${wl}-G'
9643 if test "$host_cpu" = ia64; then
9644 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9645 # chokes on -Wl,-G. The following line is correct:
9648 if test "$aix_use_runtimelinking" = yes; then
9649 shared_flag='${wl}-G'
9651 shared_flag='${wl}-bM:SRE'
9656 export_dynamic_flag_spec='${wl}-bexpall'
9657 # It seems that -bexpall does not export symbols beginning with
9658 # underscore (_), so it is better to generate a list of symbols to export.
9659 always_export_symbols=yes
9660 if test "$aix_use_runtimelinking" = yes; then
9661 # Warning - without using the other runtime loading flags (-brtl),
9662 # -berok will link without error, but may produce a broken library.
9663 allow_undefined_flag='-berok'
9664 # Determine the default libpath from the value encoded in an
9666 cat >conftest.$ac_ext <<_ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9688 $as_echo "$ac_try_echo") >&5
9689 (eval "$ac_link") 2>conftest.er1
9691 grep -v '^ *+' conftest.er1 >conftest.err
9693 cat conftest.err >&5
9694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && {
9696 test -z "$ac_c_werror_flag" ||
9697 test ! -s conftest.err
9698 } && test -s conftest$ac_exeext && {
9699 test "$cross_compiling" = yes ||
9700 $as_test_x conftest$ac_exeext
9703 lt_aix_libpath_sed='
9704 /Import File Strings/,/^$/ {
9710 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 # Check for a 64-bit object if we didn't find anything.
9712 if test -z "$aix_libpath"; then
9713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9716 $as_echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9722 rm -rf conftest.dSYM
9723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9724 conftest$ac_exeext conftest.$ac_ext
9725 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9727 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9728 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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9730 if test "$host_cpu" = ia64; then
9731 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9732 allow_undefined_flag="-z nodefs"
9733 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"
9735 # Determine the default libpath from the value encoded in an
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (ac_try="$ac_link"
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759 $as_echo "$ac_try_echo") >&5
9760 (eval "$ac_link") 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && {
9767 test -z "$ac_c_werror_flag" ||
9768 test ! -s conftest.err
9769 } && test -s conftest$ac_exeext && {
9770 test "$cross_compiling" = yes ||
9771 $as_test_x conftest$ac_exeext
9774 lt_aix_libpath_sed='
9775 /Import File Strings/,/^$/ {
9781 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9782 # Check for a 64-bit object if we didn't find anything.
9783 if test -z "$aix_libpath"; then
9784 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9787 $as_echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9793 rm -rf conftest.dSYM
9794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795 conftest$ac_exeext conftest.$ac_ext
9796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9798 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9799 # Warning - without using the other run time loading flags,
9800 # -berok will link without error, but may produce a broken library.
9801 no_undefined_flag=' ${wl}-bernotok'
9802 allow_undefined_flag=' ${wl}-berok'
9803 # Exported symbols can be pulled into shared objects from archives
9804 whole_archive_flag_spec='$convenience'
9805 archive_cmds_need_lc=yes
9806 # This is similar to how AIX traditionally builds its shared libraries.
9807 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'
9815 # see comment about AmigaOS4 .so support
9816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9817 archive_expsym_cmds=''
9820 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)'
9821 hardcode_libdir_flag_spec='-L$libdir'
9822 hardcode_minus_L=yes
9828 export_dynamic_flag_spec=-rdynamic
9831 cygwin* | mingw* | pw32* | cegcc*)
9832 # When not using gcc, we currently assume that we are using
9833 # Microsoft Visual C++.
9834 # hardcode_libdir_flag_spec is actually meaningless, as there is
9835 # no search path for DLLs.
9836 hardcode_libdir_flag_spec=' '
9837 allow_undefined_flag=unsupported
9838 # Tell ltmain to make .lib files, not .a files.
9840 # Tell ltmain to make .dll files, not .so files.
9842 # FIXME: Setting linknames here is a bad hack.
9843 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9844 # The linker will automatically build a .lib file if we build a DLL.
9845 old_archive_from_new_cmds='true'
9846 # FIXME: Should let the user specify the lib program.
9847 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9848 fix_srcfile_path='`cygpath -w "$srcfile"`'
9849 enable_shared_with_static_runtimes=yes
9852 darwin* | rhapsody*)
9855 archive_cmds_need_lc=no
9857 hardcode_automatic=yes
9858 hardcode_shlibpath_var=unsupported
9859 whole_archive_flag_spec=''
9860 link_all_deplibs=yes
9861 allow_undefined_flag="$_lt_dar_allow_undefined"
9862 case $cc_basename in
9863 ifort*) _lt_dar_can_shared=yes ;;
9864 *) _lt_dar_can_shared=$GCC ;;
9866 if test "$_lt_dar_can_shared" = "yes"; then
9867 output_verbose_link_cmd=echo
9868 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9869 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9870 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9871 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_libdir_flag_spec='-L$libdir'
9882 hardcode_shlibpath_var=no
9889 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9890 # support. Future versions do this automatically, but an explicit c++rt0.o
9891 # does not break anything, and helps significantly (at the cost of a little
9894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9895 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_shlibpath_var=no
9900 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_minus_L=yes
9905 hardcode_shlibpath_var=no
9908 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9909 freebsd* | dragonfly*)
9910 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9911 hardcode_libdir_flag_spec='-R$libdir'
9913 hardcode_shlibpath_var=no
9917 if test "$GCC" = yes; then
9918 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'
9920 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'
9922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9923 hardcode_libdir_separator=:
9926 # hardcode_minus_L: Not really in the search PATH,
9927 # but as the default location of the library.
9928 hardcode_minus_L=yes
9929 export_dynamic_flag_spec='${wl}-E'
9933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9934 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9938 if test "$with_gnu_ld" = no; then
9939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9940 hardcode_libdir_flag_spec_ld='+b $libdir'
9941 hardcode_libdir_separator=:
9943 hardcode_direct_absolute=yes
9944 export_dynamic_flag_spec='${wl}-E'
9945 # hardcode_minus_L: Not really in the search PATH,
9946 # but as the default location of the library.
9947 hardcode_minus_L=yes
9952 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9955 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9970 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9973 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9977 if test "$with_gnu_ld" = no; then
9978 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9979 hardcode_libdir_separator=:
9984 hardcode_shlibpath_var=no
9988 hardcode_direct_absolute=yes
9989 export_dynamic_flag_spec='${wl}-E'
9991 # hardcode_minus_L: Not really in the search PATH,
9992 # but as the default location of the library.
9993 hardcode_minus_L=yes
9999 irix5* | irix6* | nonstopux*)
10000 if test "$GCC" = yes; then
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10002 # Try to use the -exported_symbol ld option, if it does not
10003 # work, assume that -exports_file does not work either and
10004 # implicitly export all symbols.
10005 save_LDFLAGS="$LDFLAGS"
10006 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10007 cat >conftest.$ac_ext <<_ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10017 $as_echo "$ac_try_echo") >&5
10018 (eval "$ac_link") 2>conftest.er1
10020 grep -v '^ *+' conftest.er1 >conftest.err
10022 cat conftest.err >&5
10023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && {
10025 test -z "$ac_c_werror_flag" ||
10026 test ! -s conftest.err
10027 } && test -s conftest$ac_exeext && {
10028 test "$cross_compiling" = yes ||
10029 $as_test_x conftest$ac_exeext
10031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10034 $as_echo "$as_me: failed program was:" >&5
10035 sed 's/^/| /' conftest.$ac_ext >&5
10040 rm -rf conftest.dSYM
10041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10042 conftest$ac_exeext conftest.$ac_ext
10043 LDFLAGS="$save_LDFLAGS"
10045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10048 archive_cmds_need_lc='no'
10049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050 hardcode_libdir_separator=:
10052 link_all_deplibs=yes
10055 netbsd* | netbsdelf*-gnu)
10056 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10057 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10059 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10061 hardcode_libdir_flag_spec='-R$libdir'
10062 hardcode_direct=yes
10063 hardcode_shlibpath_var=no
10067 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068 hardcode_direct=yes
10069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070 hardcode_libdir_separator=:
10071 hardcode_shlibpath_var=no
10078 if test -f /usr/libexec/ld.so; then
10079 hardcode_direct=yes
10080 hardcode_shlibpath_var=no
10081 hardcode_direct_absolute=yes
10082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10083 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086 export_dynamic_flag_spec='${wl}-E'
10089 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10091 hardcode_libdir_flag_spec='-R$libdir'
10094 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10095 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10105 hardcode_libdir_flag_spec='-L$libdir'
10106 hardcode_minus_L=yes
10107 allow_undefined_flag=unsupported
10108 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'
10109 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10113 if test "$GCC" = yes; then
10114 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10115 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10117 allow_undefined_flag=' -expect_unresolved \*'
10118 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10120 archive_cmds_need_lc='no'
10121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122 hardcode_libdir_separator=:
10125 osf4* | osf5*) # as osf3* with the addition of -msym flag
10126 if test "$GCC" = yes; then
10127 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10128 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10131 allow_undefined_flag=' -expect_unresolved \*'
10132 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10133 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10134 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10136 # Both c and cxx compiler support -rpath directly
10137 hardcode_libdir_flag_spec='-rpath $libdir'
10139 archive_cmds_need_lc='no'
10140 hardcode_libdir_separator=:
10144 no_undefined_flag=' -z defs'
10145 if test "$GCC" = yes; then
10147 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10148 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10151 case `$CC -V 2>&1` in
10154 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10160 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10161 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10166 hardcode_libdir_flag_spec='-R$libdir'
10167 hardcode_shlibpath_var=no
10169 solaris2.[0-5] | solaris2.[0-5].*) ;;
10171 # The compiler driver will combine and reorder linker options,
10172 # but understands `-z linker_flag'. GCC discards it without `$wl',
10173 # but is careful enough not to reorder.
10174 # Supported since Solaris 2.6 (maybe 2.5.1?)
10175 if test "$GCC" = yes; then
10176 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10178 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10182 link_all_deplibs=yes
10186 if test "x$host_vendor" = xsequent; then
10187 # Use $CC to link under sequent, because it throws in some extra .o
10188 # files that make .init and .fini sections work.
10189 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10191 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10193 hardcode_libdir_flag_spec='-L$libdir'
10194 hardcode_direct=yes
10195 hardcode_minus_L=yes
10196 hardcode_shlibpath_var=no
10200 case $host_vendor in
10202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203 hardcode_direct=yes # is this really true???
10206 ## LD is ld it makes a PLAMLIB
10207 ## CC just makes a GrossModule.
10208 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10209 reload_cmds='$CC -r -o $output$reload_objs'
10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10217 runpath_var='LD_RUN_PATH'
10218 hardcode_shlibpath_var=no
10222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223 hardcode_shlibpath_var=no
10224 export_dynamic_flag_spec='-Bexport'
10228 if test -d /usr/nec; then
10229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230 hardcode_shlibpath_var=no
10231 runpath_var=LD_RUN_PATH
10232 hardcode_runpath_var=yes
10237 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10238 no_undefined_flag='${wl}-z,text'
10239 archive_cmds_need_lc=no
10240 hardcode_shlibpath_var=no
10241 runpath_var='LD_RUN_PATH'
10243 if test "$GCC" = yes; then
10244 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252 sysv5* | sco3.2v5* | sco5v6*)
10253 # Note: We can NOT use -z defs as we might desire, because we do not
10254 # link with -lc, and that would cause any symbols used from libc to
10255 # always be unresolved, which means just about no library would
10256 # ever link correctly. If we're not using GNU ld we use -z text
10257 # though, which does catch some bad symbols but isn't as heavy-handed
10259 no_undefined_flag='${wl}-z,text'
10260 allow_undefined_flag='${wl}-z,nodefs'
10261 archive_cmds_need_lc=no
10262 hardcode_shlibpath_var=no
10263 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10264 hardcode_libdir_separator=':'
10265 link_all_deplibs=yes
10266 export_dynamic_flag_spec='${wl}-Bexport'
10267 runpath_var='LD_RUN_PATH'
10269 if test "$GCC" = yes; then
10270 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280 hardcode_libdir_flag_spec='-L$libdir'
10281 hardcode_shlibpath_var=no
10289 if test x$host_vendor = xsni; then
10291 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10292 export_dynamic_flag_spec='${wl}-Blargedynsym'
10298 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10299 $as_echo "$ld_shlibs" >&6; }
10300 test "$ld_shlibs" = no && can_build_shared=no
10302 with_gnu_ld=$with_gnu_ld
10319 # Do we need to explicitly link libc?
10321 case "x$archive_cmds_need_lc" in
10323 # Assume -lc should be added
10324 archive_cmds_need_lc=yes
10326 if test "$enable_shared" = yes && test "$GCC" = yes; then
10327 case $archive_cmds in
10329 # FIXME: we may have to deal with multi-command sequences.
10332 # Test whether the compiler implicitly links with -lc since on some
10333 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10334 # to ld, don't add -lc before -lgcc.
10335 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10336 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10341 (eval $ac_compile) 2>&5
10343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); } 2>conftest.err; then
10347 libobjs=conftest.$ac_objext
10349 wl=$lt_prog_compiler_wl
10350 pic_flag=$lt_prog_compiler_pic
10356 lt_save_allow_undefined_flag=$allow_undefined_flag
10357 allow_undefined_flag=
10358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10359 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }
10364 archive_cmds_need_lc=no
10366 archive_cmds_need_lc=yes
10368 allow_undefined_flag=$lt_save_allow_undefined_flag
10370 cat conftest.err 1>&5
10373 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10374 $as_echo "$archive_cmds_need_lc" >&6; }
10537 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10538 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10540 if test "$GCC" = yes; then
10542 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10543 *) lt_awk_arg="/^libraries:/" ;;
10545 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10546 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10547 # if the path contains ";" then we assume it to be the separator
10548 # otherwise default to the standard path separator (i.e. ":") - it is
10549 # assumed that no part of a normal pathname contains ";" but that should
10550 # okay in the real world where ";" in dirpaths is itself problematic.
10551 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10553 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10555 # Ok, now we have the path, separated by spaces, we can step through it
10556 # and add multilib dir if necessary.
10557 lt_tmp_lt_search_path_spec=
10558 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10559 for lt_sys_path in $lt_search_path_spec; do
10560 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10561 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10563 test -d "$lt_sys_path" && \
10564 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10567 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10568 BEGIN {RS=" "; FS="/|\n";} {
10571 for (lt_i = NF; lt_i > 0; lt_i--) {
10572 if ($lt_i != "" && $lt_i != ".") {
10573 if ($lt_i == "..") {
10576 if (lt_count == 0) {
10577 lt_foo="/" $lt_i lt_foo;
10584 if (lt_foo != "") { lt_freq[lt_foo]++; }
10585 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10587 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10589 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10591 library_names_spec=
10592 libname_spec='lib$name'
10596 postuninstall_cmds=
10600 shlibpath_overrides_runpath=unknown
10602 dynamic_linker="$host_os ld.so"
10603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10604 need_lib_prefix=unknown
10605 hardcode_into_libs=no
10607 # when you set need_version to no, make sure it does not cause -set_version
10608 # flags to be left without arguments
10609 need_version=unknown
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10615 shlibpath_var=LIBPATH
10617 # AIX 3 has no versioning support, so we append a major version to the name.
10618 soname_spec='${libname}${release}${shared_ext}$major'
10625 hardcode_into_libs=yes
10626 if test "$host_cpu" = ia64; then
10627 # AIX 5 supports IA64
10628 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10629 shlibpath_var=LD_LIBRARY_PATH
10631 # With GCC up to 2.95.x, collect2 would create an import file
10632 # for dependence libraries. The import file would start with
10633 # the line `#! .'. This would cause the generated library to
10634 # depend on `.', always an invalid library. This was fixed in
10635 # development snapshots of GCC prior to 3.0.
10637 aix4 | aix4.[01] | aix4.[01].*)
10638 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10640 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10643 can_build_shared=no
10647 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10648 # soname into executable. Probably we can add versioning support to
10649 # collect2, so additional links can be useful in future.
10650 if test "$aix_use_runtimelinking" = yes; then
10651 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10652 # instead of lib<name>.a to let people know that these are not
10653 # typical AIX shared libraries.
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 # We preserve .a as extension for shared libraries through AIX4.2
10657 # and later when we are not doing run time linking.
10658 library_names_spec='${libname}${release}.a $libname.a'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10661 shlibpath_var=LIBPATH
10668 # Since July 2007 AmigaOS4 officially supports .so libraries.
10669 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 library_names_spec='$libname.ixlibrary $libname.a'
10674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10675 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'
10681 library_names_spec='${libname}${shared_ext}'
10682 dynamic_linker="$host_os ld.so"
10683 shlibpath_var=LIBRARY_PATH
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10694 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10695 # the default ld.so.conf also contains /usr/contrib/lib and
10696 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10697 # libtool to hard-code these into programs
10700 cygwin* | mingw* | pw32* | cegcc*)
10701 version_type=windows
10706 case $GCC,$host_os in
10707 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10708 library_names_spec='$libname.dll.a'
10709 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10710 postinstall_cmds='base_file=`basename \${file}`~
10711 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10712 dldir=$destdir/`dirname \$dlpath`~
10713 test -d \$dldir || mkdir -p \$dldir~
10714 $install_prog $dir/$dlname \$dldir/$dlname~
10715 chmod a+x \$dldir/$dlname~
10716 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10717 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10719 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10720 dlpath=$dir/\$dldll~
10722 shlibpath_overrides_runpath=yes
10726 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10727 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10731 # MinGW DLLs use traditional 'lib' prefix
10732 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10733 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10734 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10735 # It is most probably a Windows format PATH printed by
10736 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10737 # path with ; separators, and with drive letters. We can handle the
10738 # drive letters (cygwin fileutils understands them), so leave them,
10739 # especially as we might pass files found there to a mingw objdump,
10740 # which wouldn't understand a cygwinified path. Ahh.
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10747 # pw32 DLLs use 'pw' prefix rather than 'lib'
10748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10754 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10757 dynamic_linker='Win32 ld.exe'
10758 # FIXME: first we should search . and the directory the executable is in
10762 darwin* | rhapsody*)
10763 dynamic_linker="$host_os dyld"
10764 version_type=darwin
10767 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10768 soname_spec='${libname}${release}${major}$shared_ext'
10769 shlibpath_overrides_runpath=yes
10770 shlibpath_var=DYLD_LIBRARY_PATH
10771 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10790 freebsd* | dragonfly*)
10791 # DragonFly does not have aout. When/if they implement a new
10792 # versioning mechanism, adjust this.
10793 if test -x /usr/bin/objformat; then
10794 objformat=`/usr/bin/objformat`
10797 freebsd[123]*) objformat=aout ;;
10798 *) objformat=elf ;;
10801 version_type=freebsd-$objformat
10802 case $version_type in
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10809 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10813 shlibpath_var=LD_LIBRARY_PATH
10816 shlibpath_overrides_runpath=yes
10818 freebsd3.[01]* | freebsdelf3.[01]*)
10819 shlibpath_overrides_runpath=yes
10820 hardcode_into_libs=yes
10822 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10823 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10824 shlibpath_overrides_runpath=no
10825 hardcode_into_libs=yes
10827 *) # from 4.6 on, and DragonFly
10828 shlibpath_overrides_runpath=yes
10829 hardcode_into_libs=yes
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 hardcode_into_libs=yes
10844 hpux9* | hpux10* | hpux11*)
10845 # Give a soname corresponding to the major version so that dld.sl refuses to
10846 # link against other versions.
10853 hardcode_into_libs=yes
10854 dynamic_linker="$host_os dld.so"
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 if test "X$HPUX_IA64_MODE" = X32; then
10860 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10868 hardcode_into_libs=yes
10869 dynamic_linker="$host_os dld.sl"
10870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10879 dynamic_linker="$host_os dld.sl"
10880 shlibpath_var=SHLIB_PATH
10881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10883 soname_spec='${libname}${release}${shared_ext}$major'
10886 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10887 postinstall_cmds='chmod 555 $lib'
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 shlibpath_overrides_runpath=no
10899 hardcode_into_libs=yes
10902 irix5* | irix6* | nonstopux*)
10904 nonstopux*) version_type=nonstopux ;;
10906 if test "$lt_cv_prog_gnu_ld" = yes; then
10914 soname_spec='${libname}${release}${shared_ext}$major'
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10917 irix5* | nonstopux*)
10918 libsuff= shlibsuff=
10921 case $LD in # libtool.m4 will add one of these switches to LD
10922 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10923 libsuff= shlibsuff= libmagic=32-bit;;
10924 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10925 libsuff=32 shlibsuff=N32 libmagic=N32;;
10926 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10927 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10928 *) libsuff= shlibsuff= libmagic=never-match;;
10932 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10933 shlibpath_overrides_runpath=no
10934 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10935 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10936 hardcode_into_libs=yes
10939 # No shared lib support for Linux oldld, aout, or coff.
10940 linux*oldld* | linux*aout* | linux*coff*)
10944 # This must be Linux ELF.
10945 linux* | k*bsd*-gnu)
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=no
10954 # Some binutils ld are patched to set DT_RUNPATH
10955 save_LDFLAGS=$LDFLAGS
10956 save_libdir=$libdir
10957 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10958 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10981 $as_echo "$ac_try_echo") >&5
10982 (eval "$ac_link") 2>conftest.er1
10984 grep -v '^ *+' conftest.er1 >conftest.err
10986 cat conftest.err >&5
10987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } && {
10989 test -z "$ac_c_werror_flag" ||
10990 test ! -s conftest.err
10991 } && test -s conftest$ac_exeext && {
10992 test "$cross_compiling" = yes ||
10993 $as_test_x conftest$ac_exeext
10995 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10996 shlibpath_overrides_runpath=yes
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11008 conftest$ac_exeext conftest.$ac_ext
11009 LDFLAGS=$save_LDFLAGS
11010 libdir=$save_libdir
11012 # This implies no fast_install, which is unacceptable.
11013 # Some rework will be needed to allow for fast_install
11014 # before this can be enabled.
11015 hardcode_into_libs=yes
11017 # Append ld.so.conf contents to the search path
11018 if test -f /etc/ld.so.conf; then
11019 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11023 # We used to test for /lib/ld.so.1 and disable shared libraries on
11024 # powerpc, because MkLinux only supported shared libraries with the
11025 # GNU dynamic linker. Since this was broken with cross compilers,
11026 # most powerpc-linux boxes support dynamic linking these days and
11027 # people can always --disable-shared, the test was removed, and we
11028 # assume the GNU/Linux dynamic linker is in use.
11029 dynamic_linker='GNU/Linux ld.so'
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 shlibpath_overrides_runpath=no
11040 hardcode_into_libs=yes
11041 dynamic_linker='NetBSD ld.elf_so'
11048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11051 dynamic_linker='NetBSD (a.out) ld.so'
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 dynamic_linker='NetBSD ld.elf_so'
11057 shlibpath_var=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath=yes
11059 hardcode_into_libs=yes
11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065 shlibpath_var=LD_LIBRARY_PATH
11066 shlibpath_overrides_runpath=yes
11073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11074 soname_spec='${libname}${release}${shared_ext}$major'
11075 shlibpath_var=LD_LIBRARY_PATH
11076 shlibpath_overrides_runpath=no
11077 hardcode_into_libs=yes
11078 dynamic_linker='ldqnx.so'
11083 sys_lib_dlsearch_path_spec="/usr/lib"
11085 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11087 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11088 *) need_version=no ;;
11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11091 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11095 openbsd2.[89] | openbsd2.[89].*)
11096 shlibpath_overrides_runpath=no
11099 shlibpath_overrides_runpath=yes
11103 shlibpath_overrides_runpath=yes
11108 libname_spec='$name'
11111 library_names_spec='$libname${shared_ext} $libname.a'
11112 dynamic_linker='OS/2 ld.exe'
11113 shlibpath_var=LIBPATH
11116 osf3* | osf4* | osf5*)
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 shlibpath_var=LD_LIBRARY_PATH
11123 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11124 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes
11139 hardcode_into_libs=yes
11140 # ldd complains unless libraries are executable
11141 postinstall_cmds='chmod +x $lib'
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11147 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 shlibpath_overrides_runpath=yes
11150 if test "$with_gnu_ld" = yes; then
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 case $host_vendor in
11163 shlibpath_overrides_runpath=no
11165 runpath_var=LD_RUN_PATH
11173 shlibpath_overrides_runpath=no
11174 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11180 if test -d /usr/nec ;then
11182 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11183 soname_spec='$libname${shared_ext}.$major'
11184 shlibpath_var=LD_LIBRARY_PATH
11188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11189 version_type=freebsd-elf
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 shlibpath_var=LD_LIBRARY_PATH
11195 shlibpath_overrides_runpath=yes
11196 hardcode_into_libs=yes
11197 if test "$with_gnu_ld" = yes; then
11198 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11200 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11203 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11207 sys_lib_dlsearch_path_spec='/usr/lib'
11211 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 shlibpath_overrides_runpath=no
11218 hardcode_into_libs=yes
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 shlibpath_var=LD_LIBRARY_PATH
11232 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11233 $as_echo "$dynamic_linker" >&6; }
11234 test "$dynamic_linker" = no && can_build_shared=no
11236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11237 if test "$GCC" = yes; then
11238 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11242 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11244 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11245 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11334 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11335 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11337 if test -n "$hardcode_libdir_flag_spec" ||
11338 test -n "$runpath_var" ||
11339 test "X$hardcode_automatic" = "Xyes" ; then
11341 # We can hardcode non-existent directories.
11342 if test "$hardcode_direct" != no &&
11343 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11344 # have to relink, otherwise we might link with an installed library
11345 # when we should be linking with a yet-to-be-installed one
11346 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11347 test "$hardcode_minus_L" != no; then
11348 # Linking always hardcodes the temporary library directory.
11349 hardcode_action=relink
11351 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11352 hardcode_action=immediate
11355 # We cannot hardcode anything, or else we can only hardcode existing
11357 hardcode_action=unsupported
11359 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11360 $as_echo "$hardcode_action" >&6; }
11362 if test "$hardcode_action" = relink ||
11363 test "$inherit_rpath" = yes; then
11364 # Fast installation is not supported
11365 enable_fast_install=no
11366 elif test "$shlibpath_overrides_runpath" = yes ||
11367 test "$enable_shared" = no; then
11368 # Fast installation is not necessary
11369 enable_fast_install=needless
11377 if test "x$enable_dlopen" != xyes; then
11378 enable_dlopen=unknown
11379 enable_dlopen_self=unknown
11380 enable_dlopen_self_static=unknown
11387 lt_cv_dlopen="load_add_on"
11389 lt_cv_dlopen_self=yes
11392 mingw* | pw32* | cegcc*)
11393 lt_cv_dlopen="LoadLibrary"
11398 lt_cv_dlopen="dlopen"
11403 # if libdl is installed we need to link against it
11404 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11405 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11406 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11407 $as_echo_n "(cached) " >&6
11409 ac_check_lib_save_LIBS=$LIBS
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434 if { (ac_try="$ac_link"
11435 case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11440 $as_echo "$ac_try_echo") >&5
11441 (eval "$ac_link") 2>conftest.er1
11443 grep -v '^ *+' conftest.er1 >conftest.err
11445 cat conftest.err >&5
11446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && {
11448 test -z "$ac_c_werror_flag" ||
11449 test ! -s conftest.err
11450 } && test -s conftest$ac_exeext && {
11451 test "$cross_compiling" = yes ||
11452 $as_test_x conftest$ac_exeext
11454 ac_cv_lib_dl_dlopen=yes
11456 $as_echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ac_cv_lib_dl_dlopen=no
11462 rm -rf conftest.dSYM
11463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11464 conftest$ac_exeext conftest.$ac_ext
11465 LIBS=$ac_check_lib_save_LIBS
11467 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11468 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11469 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11473 lt_cv_dlopen="dyld"
11475 lt_cv_dlopen_self=yes
11482 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11483 $as_echo_n "checking for shl_load... " >&6; }
11484 if test "${ac_cv_func_shl_load+set}" = set; then
11485 $as_echo_n "(cached) " >&6
11487 cat >conftest.$ac_ext <<_ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11495 #define shl_load innocuous_shl_load
11497 /* System header to define __stub macros and hopefully few prototypes,
11498 which can conflict with char shl_load (); below.
11499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11500 <limits.h> exists even on freestanding compilers. */
11503 # include <limits.h>
11505 # include <assert.h>
11510 /* Override any GCC internal prototype to avoid an error.
11511 Use char because int might match the return type of a GCC
11512 builtin and then its argument prototype would still apply. */
11517 /* The GNU C library defines this for functions which it implements
11518 to always fail with ENOSYS. Some functions are actually named
11519 something starting with __ and the normal name is an alias. */
11520 #if defined __stub_shl_load || defined __stub___shl_load
11527 return shl_load ();
11532 rm -f conftest.$ac_objext conftest$ac_exeext
11533 if { (ac_try="$ac_link"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11539 $as_echo "$ac_try_echo") >&5
11540 (eval "$ac_link") 2>conftest.er1
11542 grep -v '^ *+' conftest.er1 >conftest.err
11544 cat conftest.err >&5
11545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest$ac_exeext && {
11550 test "$cross_compiling" = yes ||
11551 $as_test_x conftest$ac_exeext
11553 ac_cv_func_shl_load=yes
11555 $as_echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11558 ac_cv_func_shl_load=no
11561 rm -rf conftest.dSYM
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563 conftest$ac_exeext conftest.$ac_ext
11565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11566 $as_echo "$ac_cv_func_shl_load" >&6; }
11567 if test "x$ac_cv_func_shl_load" = x""yes; then
11568 lt_cv_dlopen="shl_load"
11570 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11571 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11572 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11573 $as_echo_n "(cached) " >&6
11575 ac_check_lib_save_LIBS=$LIBS
11577 cat >conftest.$ac_ext <<_ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h. */
11584 /* Override any GCC internal prototype to avoid an error.
11585 Use char because int might match the return type of a GCC
11586 builtin and then its argument prototype would still apply. */
11594 return shl_load ();
11599 rm -f conftest.$ac_objext conftest$ac_exeext
11600 if { (ac_try="$ac_link"
11601 case "(($ac_try" in
11602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11603 *) ac_try_echo=$ac_try;;
11605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11606 $as_echo "$ac_try_echo") >&5
11607 (eval "$ac_link") 2>conftest.er1
11609 grep -v '^ *+' conftest.er1 >conftest.err
11611 cat conftest.err >&5
11612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest$ac_exeext && {
11617 test "$cross_compiling" = yes ||
11618 $as_test_x conftest$ac_exeext
11620 ac_cv_lib_dld_shl_load=yes
11622 $as_echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 ac_cv_lib_dld_shl_load=no
11628 rm -rf conftest.dSYM
11629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LIBS=$ac_check_lib_save_LIBS
11633 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11634 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11635 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11636 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11638 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11639 $as_echo_n "checking for dlopen... " >&6; }
11640 if test "${ac_cv_func_dlopen+set}" = set; then
11641 $as_echo_n "(cached) " >&6
11643 cat >conftest.$ac_ext <<_ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11649 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11651 #define dlopen innocuous_dlopen
11653 /* System header to define __stub macros and hopefully few prototypes,
11654 which can conflict with char dlopen (); below.
11655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656 <limits.h> exists even on freestanding compilers. */
11659 # include <limits.h>
11661 # include <assert.h>
11666 /* Override any GCC internal prototype to avoid an error.
11667 Use char because int might match the return type of a GCC
11668 builtin and then its argument prototype would still apply. */
11673 /* The GNU C library defines this for functions which it implements
11674 to always fail with ENOSYS. Some functions are actually named
11675 something starting with __ and the normal name is an alias. */
11676 #if defined __stub_dlopen || defined __stub___dlopen
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11695 $as_echo "$ac_try_echo") >&5
11696 (eval "$ac_link") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest$ac_exeext && {
11706 test "$cross_compiling" = yes ||
11707 $as_test_x conftest$ac_exeext
11709 ac_cv_func_dlopen=yes
11711 $as_echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 ac_cv_func_dlopen=no
11717 rm -rf conftest.dSYM
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719 conftest$ac_exeext conftest.$ac_ext
11721 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11722 $as_echo "$ac_cv_func_dlopen" >&6; }
11723 if test "x$ac_cv_func_dlopen" = x""yes; then
11724 lt_cv_dlopen="dlopen"
11726 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11728 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11729 $as_echo_n "(cached) " >&6
11731 ac_check_lib_save_LIBS=$LIBS
11733 cat >conftest.$ac_ext <<_ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11740 /* Override any GCC internal prototype to avoid an error.
11741 Use char because int might match the return type of a GCC
11742 builtin and then its argument prototype would still apply. */
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11762 $as_echo "$ac_try_echo") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1 >conftest.err
11767 cat conftest.err >&5
11768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest$ac_exeext && {
11773 test "$cross_compiling" = yes ||
11774 $as_test_x conftest$ac_exeext
11776 ac_cv_lib_dl_dlopen=yes
11778 $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 ac_cv_lib_dl_dlopen=no
11784 rm -rf conftest.dSYM
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11790 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11791 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11794 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11795 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11796 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11797 $as_echo_n "(cached) " >&6
11799 ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-lsvld $LIBS"
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (ac_try="$ac_link"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11830 $as_echo "$ac_try_echo") >&5
11831 (eval "$ac_link") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1 >conftest.err
11835 cat conftest.err >&5
11836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && {
11838 test -z "$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11840 } && test -s conftest$ac_exeext && {
11841 test "$cross_compiling" = yes ||
11842 $as_test_x conftest$ac_exeext
11844 ac_cv_lib_svld_dlopen=yes
11846 $as_echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_cv_lib_svld_dlopen=no
11852 rm -rf conftest.dSYM
11853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11854 conftest$ac_exeext conftest.$ac_ext
11855 LIBS=$ac_check_lib_save_LIBS
11857 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11858 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11859 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11862 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11863 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11864 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11865 $as_echo_n "(cached) " >&6
11867 ac_check_lib_save_LIBS=$LIBS
11869 cat >conftest.$ac_ext <<_ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11886 return dld_link ();
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (ac_try="$ac_link"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898 $as_echo "$ac_try_echo") >&5
11899 (eval "$ac_link") 2>conftest.er1
11901 grep -v '^ *+' conftest.er1 >conftest.err
11903 cat conftest.err >&5
11904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } && {
11906 test -z "$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11908 } && test -s conftest$ac_exeext && {
11909 test "$cross_compiling" = yes ||
11910 $as_test_x conftest$ac_exeext
11912 ac_cv_lib_dld_dld_link=yes
11914 $as_echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 ac_cv_lib_dld_dld_link=no
11920 rm -rf conftest.dSYM
11921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11925 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11926 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11927 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11928 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11949 if test "x$lt_cv_dlopen" != xno; then
11955 case $lt_cv_dlopen in
11957 save_CPPFLAGS="$CPPFLAGS"
11958 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11960 save_LDFLAGS="$LDFLAGS"
11961 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11964 LIBS="$lt_cv_dlopen_libs $LIBS"
11966 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11967 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11968 if test "${lt_cv_dlopen_self+set}" = set; then
11969 $as_echo_n "(cached) " >&6
11971 if test "$cross_compiling" = yes; then :
11972 lt_cv_dlopen_self=cross
11974 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11975 lt_status=$lt_dlunknown
11976 cat > conftest.$ac_ext <<_LT_EOF
11977 #line 11977 "configure"
11978 #include "confdefs.h"
11987 # define LT_DLGLOBAL RTLD_GLOBAL
11990 # define LT_DLGLOBAL DL_GLOBAL
11992 # define LT_DLGLOBAL 0
11996 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11997 find out it does not work in some platform. */
11998 #ifndef LT_DLLAZY_OR_NOW
12000 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12003 # define LT_DLLAZY_OR_NOW DL_LAZY
12006 # define LT_DLLAZY_OR_NOW RTLD_NOW
12009 # define LT_DLLAZY_OR_NOW DL_NOW
12011 # define LT_DLLAZY_OR_NOW 0
12018 void fnord() { int i=42;}
12021 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12022 int status = $lt_dlunknown;
12026 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12027 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12028 /* dlclose (self); */
12036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12037 (eval $ac_link) 2>&5
12039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12041 (./conftest; exit; ) >&5 2>/dev/null
12043 case x$lt_status in
12044 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12045 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12046 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12049 # compilation failed
12050 lt_cv_dlopen_self=no
12057 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12058 $as_echo "$lt_cv_dlopen_self" >&6; }
12060 if test "x$lt_cv_dlopen_self" = xyes; then
12061 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12062 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12063 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12064 if test "${lt_cv_dlopen_self_static+set}" = set; then
12065 $as_echo_n "(cached) " >&6
12067 if test "$cross_compiling" = yes; then :
12068 lt_cv_dlopen_self_static=cross
12070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12071 lt_status=$lt_dlunknown
12072 cat > conftest.$ac_ext <<_LT_EOF
12073 #line 12073 "configure"
12074 #include "confdefs.h"
12083 # define LT_DLGLOBAL RTLD_GLOBAL
12086 # define LT_DLGLOBAL DL_GLOBAL
12088 # define LT_DLGLOBAL 0
12092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12093 find out it does not work in some platform. */
12094 #ifndef LT_DLLAZY_OR_NOW
12096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12099 # define LT_DLLAZY_OR_NOW DL_LAZY
12102 # define LT_DLLAZY_OR_NOW RTLD_NOW
12105 # define LT_DLLAZY_OR_NOW DL_NOW
12107 # define LT_DLLAZY_OR_NOW 0
12114 void fnord() { int i=42;}
12117 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12118 int status = $lt_dlunknown;
12122 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12123 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12124 /* dlclose (self); */
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133 (eval $ac_link) 2>&5
12135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12137 (./conftest; exit; ) >&5 2>/dev/null
12139 case x$lt_status in
12140 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12141 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12142 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12145 # compilation failed
12146 lt_cv_dlopen_self_static=no
12153 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12154 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12157 CPPFLAGS="$save_CPPFLAGS"
12158 LDFLAGS="$save_LDFLAGS"
12163 case $lt_cv_dlopen_self in
12164 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12165 *) enable_dlopen_self=unknown ;;
12168 case $lt_cv_dlopen_self_static in
12169 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12170 *) enable_dlopen_self_static=unknown ;;
12192 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12193 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12194 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12195 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12196 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12197 { $as_echo "$as_me:$LINENO: result: yes" >&5
12198 $as_echo "yes" >&6; }
12200 # FIXME - insert some real tests, host_os isn't really good enough
12203 if test -n "$STRIP" ; then
12204 striplib="$STRIP -x"
12205 old_striplib="$STRIP -S"
12206 { $as_echo "$as_me:$LINENO: result: yes" >&5
12207 $as_echo "yes" >&6; }
12209 { $as_echo "$as_me:$LINENO: result: no" >&5
12210 $as_echo "no" >&6; }
12214 { $as_echo "$as_me:$LINENO: result: no" >&5
12215 $as_echo "no" >&6; }
12231 # Report which library types will actually be built
12232 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12233 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12234 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12235 $as_echo "$can_build_shared" >&6; }
12237 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12238 $as_echo_n "checking whether to build shared libraries... " >&6; }
12239 test "$can_build_shared" = "no" && enable_shared=no
12241 # On AIX, shared libraries and static libraries use the same namespace, and
12242 # are all built from PIC.
12245 test "$enable_shared" = yes && enable_static=no
12246 if test -n "$RANLIB"; then
12247 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12248 postinstall_cmds='$RANLIB $lib'
12253 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12254 test "$enable_shared" = yes && enable_static=no
12258 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12259 $as_echo "$enable_shared" >&6; }
12261 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12262 $as_echo_n "checking whether to build static libraries... " >&6; }
12263 # Make sure either enable_shared or enable_static is yes.
12264 test "$enable_shared" = yes || enable_static=yes
12265 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12266 $as_echo "$enable_static" >&6; }
12273 ac_cpp='$CPP $CPPFLAGS'
12274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12292 ac_config_commands="$ac_config_commands libtool"
12297 # Only expand once:
12302 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12303 if test -n "$ac_tool_prefix"; then
12304 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12305 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12306 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12307 $as_echo_n "checking for $ac_word... " >&6; }
12308 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12309 $as_echo_n "(cached) " >&6
12311 case $PKG_CONFIG in
12313 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12334 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12335 if test -n "$PKG_CONFIG"; then
12336 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12337 $as_echo "$PKG_CONFIG" >&6; }
12339 { $as_echo "$as_me:$LINENO: result: no" >&5
12340 $as_echo "no" >&6; }
12345 if test -z "$ac_cv_path_PKG_CONFIG"; then
12346 ac_pt_PKG_CONFIG=$PKG_CONFIG
12347 # Extract the first word of "pkg-config", so it can be a program name with args.
12348 set dummy pkg-config; ac_word=$2
12349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12352 $as_echo_n "(cached) " >&6
12354 case $ac_pt_PKG_CONFIG in
12356 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360 for as_dir in $PATH
12363 test -z "$as_dir" && as_dir=.
12364 for ac_exec_ext in '' $ac_executable_extensions; do
12365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12366 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12367 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12377 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12378 if test -n "$ac_pt_PKG_CONFIG"; then
12379 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12380 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12382 { $as_echo "$as_me:$LINENO: result: no" >&5
12383 $as_echo "no" >&6; }
12386 if test "x$ac_pt_PKG_CONFIG" = x; then
12389 case $cross_compiling:$ac_tool_warned in
12391 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12393 ac_tool_warned=yes ;;
12395 PKG_CONFIG=$ac_pt_PKG_CONFIG
12398 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12402 if test -n "$PKG_CONFIG"; then
12403 _pkg_min_version=0.9.0
12404 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12405 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12406 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12407 { $as_echo "$as_me:$LINENO: result: yes" >&5
12408 $as_echo "yes" >&6; }
12410 { $as_echo "$as_me:$LINENO: result: no" >&5
12411 $as_echo "no" >&6; }
12417 ac_config_files="$ac_config_files Makefile libqrencode.pc tests/Makefile qrencode.spec qrencode.1"
12421 # Check whether --with-tools was given.
12422 if test "${with_tools+set}" = set; then
12423 withval=$with_tools; build_tools=$withval
12428 if test "x$build_tools" = "xyes" ; then
12430 BUILD_TOOLS_FALSE='#'
12432 BUILD_TOOLS_TRUE='#'
12436 if test x$build_tools = xyes ; then
12439 { $as_echo "$as_me:$LINENO: checking for png" >&5
12440 $as_echo_n "checking for png... " >&6; }
12442 if test -n "$PKG_CONFIG"; then
12443 if test -n "$png_CFLAGS"; then
12444 pkg_cv_png_CFLAGS="$png_CFLAGS"
12446 if test -n "$PKG_CONFIG" && \
12447 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libpng12\"\"") >&5
12448 ($PKG_CONFIG --exists --print-errors ""libpng12"") 2>&5
12450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; then
12452 pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags ""libpng12"" 2>/dev/null`
12460 if test -n "$PKG_CONFIG"; then
12461 if test -n "$png_LIBS"; then
12462 pkg_cv_png_LIBS="$png_LIBS"
12464 if test -n "$PKG_CONFIG" && \
12465 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"libpng12\"\"") >&5
12466 ($PKG_CONFIG --exists --print-errors ""libpng12"") 2>&5
12468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; then
12470 pkg_cv_png_LIBS=`$PKG_CONFIG --libs ""libpng12"" 2>/dev/null`
12481 if test $pkg_failed = yes; then
12483 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12484 _pkg_short_errors_supported=yes
12486 _pkg_short_errors_supported=no
12488 if test $_pkg_short_errors_supported = yes; then
12489 png_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""libpng12""`
12491 png_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""libpng12""`
12493 # Put the nasty error message in config.log where it belongs
12494 echo "$png_PKG_ERRORS" >&5
12496 { { $as_echo "$as_me:$LINENO: error: Package requirements (\"libpng12\") were not met:
12500 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12501 installed software in a non-standard prefix.
12503 Alternatively, you may set the environment variables png_CFLAGS
12504 and png_LIBS to avoid the need to call pkg-config.
12505 See the pkg-config man page for more details.
12507 $as_echo "$as_me: error: Package requirements (\"libpng12\") were not met:
12511 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12512 installed software in a non-standard prefix.
12514 Alternatively, you may set the environment variables png_CFLAGS
12515 and png_LIBS to avoid the need to call pkg-config.
12516 See the pkg-config man page for more details.
12518 { (exit 1); exit 1; }; }
12519 elif test $pkg_failed = untried; then
12520 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12522 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12523 is in your PATH or set the PKG_CONFIG environment variable to the full
12524 path to pkg-config.
12526 Alternatively, you may set the environment variables png_CFLAGS
12527 and png_LIBS to avoid the need to call pkg-config.
12528 See the pkg-config man page for more details.
12530 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12531 See \`config.log' for more details." >&5
12532 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12533 is in your PATH or set the PKG_CONFIG environment variable to the full
12534 path to pkg-config.
12536 Alternatively, you may set the environment variables png_CFLAGS
12537 and png_LIBS to avoid the need to call pkg-config.
12538 See the pkg-config man page for more details.
12540 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12541 See \`config.log' for more details." >&2;}
12542 { (exit 1); exit 1; }; }; }
12544 png_CFLAGS=$pkg_cv_png_CFLAGS
12545 png_LIBS=$pkg_cv_png_LIBS
12546 { $as_echo "$as_me:$LINENO: result: yes" >&5
12547 $as_echo "yes" >&6; }
12553 # Check whether --with-tests was given.
12554 if test "${with_tests+set}" = set; then
12555 withval=$with_tests; build_tests=$withval
12560 if test "x$build_tests" = "xyes" ; then
12562 BUILD_TESTS_FALSE='#'
12564 BUILD_TESTS_TRUE='#'
12570 if test x$build_tests = xyes ; then
12571 echo "#define __STATIC" >>confdefs.h
12573 echo "#define __STATIC static" >>confdefs.h
12577 if test x$build_tests = xyes ; then
12578 SDL_REQUIRED_VERSION=1.2.0
12580 # Check whether --with-sdl-prefix was given.
12581 if test "${with_sdl_prefix+set}" = set; then
12582 withval=$with_sdl_prefix; sdl_prefix="$withval"
12588 # Check whether --with-sdl-exec-prefix was given.
12589 if test "${with_sdl_exec_prefix+set}" = set; then
12590 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12595 # Check whether --enable-sdltest was given.
12596 if test "${enable_sdltest+set}" = set; then
12597 enableval=$enable_sdltest;
12603 if test x$sdl_exec_prefix != x ; then
12604 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12605 if test x${SDL_CONFIG+set} != xset ; then
12606 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12609 if test x$sdl_prefix != x ; then
12610 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12611 if test x${SDL_CONFIG+set} != xset ; then
12612 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12616 if test "x$prefix" != xNONE; then
12617 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12619 # Extract the first word of "sdl-config", so it can be a program name with args.
12620 set dummy sdl-config; ac_word=$2
12621 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12622 $as_echo_n "checking for $ac_word... " >&6; }
12623 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12624 $as_echo_n "(cached) " >&6
12626 case $SDL_CONFIG in
12628 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12632 for as_dir in $PATH
12635 test -z "$as_dir" && as_dir=.
12636 for ac_exec_ext in '' $ac_executable_extensions; do
12637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12638 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12650 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12651 if test -n "$SDL_CONFIG"; then
12652 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12653 $as_echo "$SDL_CONFIG" >&6; }
12655 { $as_echo "$as_me:$LINENO: result: no" >&5
12656 $as_echo "no" >&6; }
12660 min_sdl_version=$SDL_REQUIRED_VERSION
12661 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12662 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12664 if test "$SDL_CONFIG" = "no" ; then
12667 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12668 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12670 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12671 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12672 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12673 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12674 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12676 if test "x$enable_sdltest" = "xyes" ; then
12677 ac_save_CFLAGS="$CFLAGS"
12678 ac_save_CXXFLAGS="$CXXFLAGS"
12679 ac_save_LIBS="$LIBS"
12680 CFLAGS="$CFLAGS $SDL_CFLAGS"
12681 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12682 LIBS="$LIBS $SDL_LIBS"
12684 if test "$cross_compiling" = yes; then
12685 echo $ac_n "cross compiling; assumed OK... $ac_c"
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12695 #include <stdlib.h>
12696 #include <string.h>
12700 my_strdup (char *str)
12706 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12707 strcpy (new_str, str);
12715 int main (int argc, char *argv[])
12717 int major, minor, micro;
12720 /* This hangs on some systems (?)
12721 system ("touch conf.sdltest");
12723 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12725 /* HP/UX 9 (%@#!) writes to sscanf strings */
12726 tmp_version = my_strdup("$min_sdl_version");
12727 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12728 printf("%s, bad version string\n", "$min_sdl_version");
12732 if (($sdl_major_version > major) ||
12733 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12734 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12740 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12741 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12742 printf("*** best to upgrade to the required version.\n");
12743 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12744 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12745 printf("*** config.cache before re-running configure\n");
12752 rm -f conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756 *) ac_try_echo=$ac_try;;
12758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12759 $as_echo "$ac_try_echo") >&5
12760 (eval "$ac_link") 2>&5
12762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12764 { (case "(($ac_try" in
12765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766 *) ac_try_echo=$ac_try;;
12768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12769 $as_echo "$ac_try_echo") >&5
12770 (eval "$ac_try") 2>&5
12772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; }; then
12776 $as_echo "$as_me: program exited with status $ac_status" >&5
12777 $as_echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12780 ( exit $ac_status )
12783 rm -rf conftest.dSYM
12784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12788 CFLAGS="$ac_save_CFLAGS"
12789 CXXFLAGS="$ac_save_CXXFLAGS"
12790 LIBS="$ac_save_LIBS"
12793 if test "x$no_sdl" = x ; then
12794 { $as_echo "$as_me:$LINENO: result: yes" >&5
12795 $as_echo "yes" >&6; }
12798 { $as_echo "$as_me:$LINENO: result: no" >&5
12799 $as_echo "no" >&6; }
12800 if test "$SDL_CONFIG" = "no" ; then
12801 echo "*** The sdl-config script installed by SDL could not be found"
12802 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12803 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12804 echo "*** full path to sdl-config."
12806 if test -f conf.sdltest ; then
12809 echo "*** Could not run SDL test program, checking why..."
12810 CFLAGS="$CFLAGS $SDL_CFLAGS"
12811 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12812 LIBS="$LIBS $SDL_LIBS"
12813 cat >conftest.$ac_ext <<_ACEOF
12816 cat confdefs.h >>conftest.$ac_ext
12817 cat >>conftest.$ac_ext <<_ACEOF
12818 /* end confdefs.h. */
12823 int main(int argc, char *argv[])
12826 #define main K_and_R_C_main
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (ac_try="$ac_link"
12838 case "(($ac_try" in
12839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12840 *) ac_try_echo=$ac_try;;
12842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12843 $as_echo "$ac_try_echo") >&5
12844 (eval "$ac_link") 2>conftest.er1
12846 grep -v '^ *+' conftest.er1 >conftest.err
12848 cat conftest.err >&5
12849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && {
12851 test -z "$ac_c_werror_flag" ||
12852 test ! -s conftest.err
12853 } && test -s conftest$ac_exeext && {
12854 test "$cross_compiling" = yes ||
12855 $as_test_x conftest$ac_exeext
12857 echo "*** The test program compiled, but did not run. This usually means"
12858 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12859 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12860 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12861 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12862 echo "*** is required on your system"
12864 echo "*** If you have an old version installed, it is best to remove it, although"
12865 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12867 $as_echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 echo "*** The test program failed to compile or link. See the file config.log for the"
12871 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12872 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12873 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12876 rm -rf conftest.dSYM
12877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12878 conftest$ac_exeext conftest.$ac_ext
12879 CFLAGS="$ac_save_CFLAGS"
12880 CXXFLAGS="$ac_save_CXXFLAGS"
12881 LIBS="$ac_save_LIBS"
12886 { $as_echo "$as_me:$LINENO: WARNING: *** SDL $SDL_REQUIRED_VERSION or better is required." >&5
12887 $as_echo "$as_me: WARNING: *** SDL $SDL_REQUIRED_VERSION or better is required." >&2;}
12894 if test "x$SDL_CFLAGS" != "x" ; then
12904 # Check whether --enable-gprof was given.
12905 if test "${enable_gprof+set}" = set; then
12906 enableval=$enable_gprof;
12912 # Check whether --enable-gcov was given.
12913 if test "${enable_gcov+set}" = set; then
12914 enableval=$enable_gcov;
12920 # Check whether --enable-mudflap was given.
12921 if test "${enable_mudflap+set}" = set; then
12922 enableval=$enable_mudflap;
12928 CFLAGS="-Wall $CFLAGS"
12930 if test $enable_gprof = yes; then
12931 CFLAGS="$CFLAGS -g -pg"
12934 if test $enable_gcov = yes; then
12935 CFLAGS="$CFLAGS --coverage"
12938 if test $enable_mudflap = yes; then
12939 CFLAGS="$CFLAGS -fmudflap"
12940 LDFLAGS="$LDFLAGS -lmudflap"
12943 cat >confcache <<\_ACEOF
12944 # This file is a shell script that caches the results of configure
12945 # tests run on this system so they can be shared between configure
12946 # scripts and configure runs, see configure's option --config-cache.
12947 # It is not useful on other systems. If it contains results you don't
12948 # want to keep, you may remove or edit it.
12950 # config.status only pays attention to the cache file if you give it
12951 # the --recheck option to rerun configure.
12953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12955 # following values.
12959 # The following way of writing the cache mishandles newlines in values,
12960 # but we know of no workaround that is simple, portable, and efficient.
12961 # So, we kill variables containing newlines.
12962 # Ultrix sh set writes to stderr and can't be redirected directly,
12963 # and sets the high bit in the cache file unless we assign to the vars.
12965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12966 eval ac_val=\$$ac_var
12970 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12974 _ | IFS | as_nl) ;; #(
12975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12976 *) $as_unset $ac_var ;;
12982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12983 *${as_nl}ac_space=\ *)
12984 # `set' does not quote correctly, so add quotes (double-quote
12985 # substitution turns \\\\ into \\, and sed turns \\ into \).
12988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12991 # `set' quotes correctly as required by POSIX, so do not add quotes.
12992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13006 if test -w "$cache_file"; then
13007 test "x$cache_file" != "x/dev/null" &&
13008 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13009 $as_echo "$as_me: updating cache $cache_file" >&6;}
13010 cat confcache >$cache_file
13012 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13019 # Let make expand exec_prefix.
13020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13022 DEFS=-DHAVE_CONFIG_H
13026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13027 # 1. Remove the extension, and $U if already installed.
13028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13029 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13031 # will be set to the directory where LIBOBJS objects are built.
13032 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13033 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13035 LIBOBJS=$ac_libobjs
13037 LTLIBOBJS=$ac_ltlibobjs
13040 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13041 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13042 Usually this means the macro was only invoked conditionally." >&5
13043 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13044 Usually this means the macro was only invoked conditionally." >&2;}
13045 { (exit 1); exit 1; }; }
13047 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13048 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13049 Usually this means the macro was only invoked conditionally." >&5
13050 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13051 Usually this means the macro was only invoked conditionally." >&2;}
13052 { (exit 1); exit 1; }; }
13054 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13055 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13056 Usually this means the macro was only invoked conditionally." >&5
13057 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13058 Usually this means the macro was only invoked conditionally." >&2;}
13059 { (exit 1); exit 1; }; }
13061 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
13062 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TOOLS\" was never defined.
13063 Usually this means the macro was only invoked conditionally." >&5
13064 $as_echo "$as_me: error: conditional \"BUILD_TOOLS\" was never defined.
13065 Usually this means the macro was only invoked conditionally." >&2;}
13066 { (exit 1); exit 1; }; }
13068 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
13069 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_TESTS\" was never defined.
13070 Usually this means the macro was only invoked conditionally." >&5
13071 $as_echo "$as_me: error: conditional \"BUILD_TESTS\" was never defined.
13072 Usually this means the macro was only invoked conditionally." >&2;}
13073 { (exit 1); exit 1; }; }
13075 if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
13076 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SDL\" was never defined.
13077 Usually this means the macro was only invoked conditionally." >&5
13078 $as_echo "$as_me: error: conditional \"HAVE_SDL\" was never defined.
13079 Usually this means the macro was only invoked conditionally." >&2;}
13080 { (exit 1); exit 1; }; }
13083 : ${CONFIG_STATUS=./config.status}
13085 ac_clean_files_save=$ac_clean_files
13086 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13087 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13088 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13089 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13091 # Generated by $as_me.
13092 # Run this file to recreate the current configuration.
13093 # Compiler output produced by configure, useful for debugging
13094 # configure, is in config.log if it exists.
13097 ac_cs_recheck=false
13099 SHELL=\${CONFIG_SHELL-$SHELL}
13102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13103 ## --------------------- ##
13104 ## M4sh Initialization. ##
13105 ## --------------------- ##
13107 # Be more Bourne compatible
13108 DUALCASE=1; export DUALCASE # for MKS sh
13109 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13113 # is contrary to our usage. Disable this feature.
13114 alias -g '${1+"$@"}'='"$@"'
13115 setopt NO_GLOB_SUBST
13117 case `(set -o) 2>/dev/null` in
13118 *posix*) set -o posix ;;
13127 # Avoid depending upon Character Ranges.
13128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13131 as_cr_digits='0123456789'
13132 as_cr_alnum=$as_cr_Letters$as_cr_digits
13137 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13138 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13139 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13141 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13142 as_echo='printf %s\n'
13143 as_echo_n='printf %s'
13145 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13146 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13147 as_echo_n='/usr/ucb/echo -n'
13149 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13150 as_echo_n_body='eval
13154 expr "X$arg" : "X\\(.*\\)$as_nl";
13155 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13157 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13159 export as_echo_n_body
13160 as_echo_n='sh -c $as_echo_n_body as_echo'
13162 export as_echo_body
13163 as_echo='sh -c $as_echo_body as_echo'
13166 # The user is always right.
13167 if test "${PATH_SEPARATOR+set}" != set; then
13169 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13170 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13175 # Support unset when possible.
13176 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13184 # We need space, tab and new line, in precisely that order. Quoting is
13185 # there to prevent editors from complaining about space-tab.
13186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13187 # splitting by setting IFS to empty value.)
13190 # Find who we are. Look in the path if we contain no directory separator.
13192 *[\\/]* ) as_myself=$0 ;;
13193 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13197 test -z "$as_dir" && as_dir=.
13198 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13204 # We did not find ourselves, most probably we were run as `sh COMMAND'
13205 # in which case we are not to be found in the path.
13206 if test "x$as_myself" = x; then
13209 if test ! -f "$as_myself"; then
13210 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13211 { (exit 1); exit 1; }
13214 # Work around bugs in pre-3.0 UWIN ksh.
13215 for as_var in ENV MAIL MAILPATH
13216 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13228 # Required to use basename.
13229 if expr a : '\(a\)' >/dev/null 2>&1 &&
13230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13237 as_basename=basename
13243 # Name of the executable.
13244 as_me=`$as_basename -- "$0" ||
13245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13246 X"$0" : 'X\(//\)$' \| \
13247 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13249 sed '/^.*\/\([^/][^/]*\)\/*$/{
13268 as_lineno_1=$LINENO
13269 as_lineno_2=$LINENO
13270 test "x$as_lineno_1" != "x$as_lineno_2" &&
13271 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13273 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13274 # uniformly replaced by the line number. The first 'sed' inserts a
13275 # line-number line after each line using $LINENO; the second 'sed'
13276 # does the real work. The second script uses 'N' to pair each
13277 # line-number line with the line containing $LINENO, and appends
13278 # trailing '-' during substitution so that $LINENO is not a special
13279 # case at line end.
13280 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13281 # scripts with optimization help from Paolo Bonzini. Blame Lee
13282 # E. McMahon (1931-1989) for sed's syntax. :-)
13294 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13297 ' >$as_me.lineno &&
13298 chmod +x "$as_me.lineno" ||
13299 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13300 { (exit 1); exit 1; }; }
13302 # Don't try to exec as it changes $[0], causing all sort of problems
13303 # (the dirname of $[0] is not the place where we might find the
13304 # original and so on. Autoconf is especially sensitive to this).
13305 . "./$as_me.lineno"
13306 # Exit status is that of the last command.
13311 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13317 ECHO_C= ECHO_N= ECHO_T=
13318 case `echo -n x` in
13320 case `echo 'x\c'` in
13321 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13327 if expr a : '\(a\)' >/dev/null 2>&1 &&
13328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13334 rm -f conf$$ conf$$.exe conf$$.file
13335 if test -d conf$$.dir; then
13336 rm -f conf$$.dir/conf$$.file
13339 mkdir conf$$.dir 2>/dev/null
13341 if (echo >conf$$.file) 2>/dev/null; then
13342 if ln -s conf$$.file conf$$ 2>/dev/null; then
13344 # ... but there are two gotchas:
13345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13347 # In both cases, we have to default to `cp -p'.
13348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13350 elif ln conf$$.file conf$$ 2>/dev/null; then
13358 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13359 rmdir conf$$.dir 2>/dev/null
13361 if mkdir -p . 2>/dev/null; then
13364 test -d ./-p && rmdir ./-p
13368 if test -x / >/dev/null 2>&1; then
13369 as_test_x='test -x'
13371 if ls -dL / >/dev/null 2>&1; then
13378 if test -d "$1"; then
13384 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13385 ???[sx]*):;;*)false;;esac;fi
13389 as_executable_p=$as_test_x
13391 # Sed expression to map a string onto a valid CPP name.
13392 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13394 # Sed expression to map a string onto a valid variable name.
13395 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13400 # Save the log message, to keep $[0] and so on meaningful, and to
13401 # report actual input values of CONFIG_FILES etc. instead of their
13402 # values after options handling.
13404 This file was extended by $as_me, which was
13405 generated by GNU Autoconf 2.63. Invocation command line was
13407 CONFIG_FILES = $CONFIG_FILES
13408 CONFIG_HEADERS = $CONFIG_HEADERS
13409 CONFIG_LINKS = $CONFIG_LINKS
13410 CONFIG_COMMANDS = $CONFIG_COMMANDS
13413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13418 case $ac_config_files in *"
13419 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13422 case $ac_config_headers in *"
13423 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13428 # Files that config.status was made for.
13429 config_files="$ac_config_files"
13430 config_headers="$ac_config_headers"
13431 config_commands="$ac_config_commands"
13435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13437 \`$as_me' instantiates files from templates according to the
13438 current configuration.
13440 Usage: $0 [OPTION]... [FILE]...
13442 -h, --help print this help, then exit
13443 -V, --version print version number and configuration settings, then exit
13444 -q, --quiet, --silent
13445 do not print progress messages
13446 -d, --debug don't remove temporary files
13447 --recheck update $as_me by reconfiguring in the same conditions
13448 --file=FILE[:TEMPLATE]
13449 instantiate the configuration file FILE
13450 --header=FILE[:TEMPLATE]
13451 instantiate the configuration header FILE
13453 Configuration files:
13456 Configuration headers:
13459 Configuration commands:
13462 Report bugs to <bug-autoconf@gnu.org>."
13465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13468 configured by $0, generated by GNU Autoconf 2.63,
13469 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13471 Copyright (C) 2008 Free Software Foundation, Inc.
13472 This config.status script is free software; the Free Software Foundation
13473 gives unlimited permission to copy, distribute and modify it."
13480 test -n "\$AWK" || AWK=awk
13483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13484 # The default lists apply if the user does not specify any file.
13490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13491 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13502 # Handling of the options.
13503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13506 $as_echo "$ac_cs_version"; exit ;;
13507 --debug | --debu | --deb | --de | --d | -d )
13509 --file | --fil | --fi | --f )
13512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13514 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13515 ac_need_defaults=false;;
13516 --header | --heade | --head | --hea )
13519 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13521 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13522 ac_need_defaults=false;;
13524 # Conflict between --help and --header
13525 { $as_echo "$as_me: error: ambiguous option: $1
13526 Try \`$0 --help' for more information." >&2
13527 { (exit 1); exit 1; }; };;
13528 --help | --hel | -h )
13529 $as_echo "$ac_cs_usage"; exit ;;
13530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13531 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13534 # This is an error.
13535 -*) { $as_echo "$as_me: error: unrecognized option: $1
13536 Try \`$0 --help' for more information." >&2
13537 { (exit 1); exit 1; }; } ;;
13539 *) ac_config_targets="$ac_config_targets $1"
13540 ac_need_defaults=false ;;
13546 ac_configure_extra_args=
13548 if $ac_cs_silent; then
13550 ac_configure_extra_args="$ac_configure_extra_args --silent"
13554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13555 if \$ac_cs_recheck; then
13556 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13559 CONFIG_SHELL='$SHELL'
13560 export CONFIG_SHELL
13565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13570 ## Running $as_me. ##
13576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13583 # The HP-UX ksh and POSIX shell print the target directory to stdout
13584 # if CDPATH is set.
13585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13587 sed_quote_subst='$sed_quote_subst'
13588 double_quote_subst='$double_quote_subst'
13589 delay_variable_subst='$delay_variable_subst'
13590 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13591 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13592 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13593 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13594 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13595 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13596 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13597 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13598 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13599 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13600 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13601 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13602 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13603 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13604 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13605 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13606 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13607 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13608 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13609 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13610 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13611 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13612 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13613 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13614 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13615 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13616 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13617 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13618 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13619 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13620 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13621 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13622 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13623 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13624 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13625 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13626 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13627 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13628 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13629 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13630 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13631 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13632 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13633 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13634 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13635 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13636 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13637 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13638 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13639 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13640 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13641 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13642 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13643 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13644 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13645 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13646 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13647 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13648 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13649 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13650 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13651 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13652 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13653 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13654 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13655 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13656 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13657 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13658 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13659 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13660 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13661 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13662 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13663 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13664 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13665 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13666 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13667 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13668 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13669 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13670 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13671 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13672 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13673 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13674 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13675 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13676 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13677 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13678 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13679 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13680 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13681 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13682 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13683 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13684 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13685 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13686 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13687 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13688 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13689 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13690 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13691 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13692 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13693 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13694 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13695 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13696 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13697 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13698 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13699 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13700 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13701 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13702 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13703 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13704 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13705 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13706 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13707 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13710 LTCFLAGS='$LTCFLAGS'
13711 compiler='$compiler_DEFAULT'
13713 # Quote evaled strings.
13725 deplibs_check_method \
13734 lt_cv_sys_global_symbol_pipe \
13735 lt_cv_sys_global_symbol_to_cdecl \
13736 lt_cv_sys_global_symbol_to_c_name_address \
13737 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13740 lt_prog_compiler_no_builtin_flag \
13741 lt_prog_compiler_wl \
13742 lt_prog_compiler_pic \
13743 lt_prog_compiler_static \
13744 lt_cv_prog_compiler_c_o \
13752 export_dynamic_flag_spec \
13753 whole_archive_flag_spec \
13754 compiler_needs_object \
13756 allow_undefined_flag \
13757 no_undefined_flag \
13758 hardcode_libdir_flag_spec \
13759 hardcode_libdir_flag_spec_ld \
13760 hardcode_libdir_separator \
13765 variables_saved_for_relink \
13767 library_names_spec \
13772 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13773 *[\\\\\\\`\\"\\\$]*)
13774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13782 # Double-quote double-evaled strings.
13783 for var in reload_cmds \
13784 old_postinstall_cmds \
13785 old_postuninstall_cmds \
13787 extract_expsyms_cmds \
13788 old_archive_from_new_cmds \
13789 old_archive_from_expsyms_cmds \
13791 archive_expsym_cmds \
13793 module_expsym_cmds \
13794 export_symbols_cmds \
13797 postuninstall_cmds \
13799 sys_lib_search_path_spec \
13800 sys_lib_dlsearch_path_spec; do
13801 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13802 *[\\\\\\\`\\"\\\$]*)
13803 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13806 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13811 # Fix-up fallback echo if it was mangled by the above quoting rules.
13813 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13817 ac_aux_dir='$ac_aux_dir'
13818 xsi_shell='$xsi_shell'
13819 lt_shell_append='$lt_shell_append'
13821 # See if we are running on zsh, and set the options which allow our
13822 # commands through without removal of \ escapes INIT.
13823 if test -n "\${ZSH_VERSION+set}" ; then
13824 setopt NO_GLOB_SUBST
13830 TIMESTAMP='$TIMESTAMP'
13839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13841 # Handling of arguments.
13842 for ac_config_target in $ac_config_targets
13844 case $ac_config_target in
13845 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13846 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13847 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13849 "libqrencode.pc") CONFIG_FILES="$CONFIG_FILES libqrencode.pc" ;;
13850 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13851 "qrencode.spec") CONFIG_FILES="$CONFIG_FILES qrencode.spec" ;;
13852 "qrencode.1") CONFIG_FILES="$CONFIG_FILES qrencode.1" ;;
13854 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13855 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13856 { (exit 1); exit 1; }; };;
13861 # If the user did not use the arguments to specify the items to instantiate,
13862 # then the envvar interface is used. Set only those that are not.
13863 # We use the long form for the default assignment because of an extremely
13864 # bizarre bug on SunOS 4.1.3.
13865 if $ac_need_defaults; then
13866 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13867 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13868 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13871 # Have a temporary directory for convenience. Make it in the build tree
13872 # simply because there is no reason against having it here, and in addition,
13873 # creating and moving files from /tmp can sometimes cause problems.
13874 # Hook for its removal unless debugging.
13875 # Note that there is a small window in which the directory will not be cleaned:
13876 # after its creation but before its name has been assigned to `$tmp'.
13880 trap 'exit_status=$?
13881 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13883 trap '{ (exit 1); exit 1; }' 1 2 13 15
13885 # Create a (secure) tmp directory for tmp files.
13888 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13889 test -n "$tmp" && test -d "$tmp"
13892 tmp=./conf$$-$RANDOM
13893 (umask 077 && mkdir "$tmp")
13896 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13897 { (exit 1); exit 1; }
13900 # Set up the scripts for CONFIG_FILES section.
13901 # No need to generate them if there are no CONFIG_FILES.
13902 # This happens for instance with `./config.status config.h'.
13903 if test -n "$CONFIG_FILES"; then
13907 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13908 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13911 ac_cs_awk_cr=$ac_cr
13914 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13919 echo "cat >conf$$subs.awk <<_ACEOF" &&
13920 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13922 } >conf$$subs.sh ||
13923 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13924 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13925 { (exit 1); exit 1; }; }
13926 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13928 for ac_last_try in false false false false false :; do
13929 . ./conf$$subs.sh ||
13930 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13931 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13932 { (exit 1); exit 1; }; }
13934 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13935 if test $ac_delim_n = $ac_delim_num; then
13937 elif $ac_last_try; then
13938 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13939 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13940 { (exit 1); exit 1; }; }
13942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13945 rm -f conf$$subs.sh
13947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13948 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13952 s/^/S["/; s/!.*/"]=/
13962 s/\(.\{148\}\).*/\1/
13964 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13976 s/\(.\{148\}\).*/\1/
13978 s/["\\]/\\&/g; s/^/"/; s/$/"/
13982 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13987 ' <conf$$subs.awk | sed '
13992 ' >>$CONFIG_STATUS || ac_write_fail=1
13993 rm -f conf$$subs.awk
13994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13996 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13997 for (key in S) S_is_set[key] = 1
14003 nfields = split(line, field, "@")
14005 len = length(field[1])
14006 for (i = 2; i < nfields; i++) {
14008 keylen = length(key)
14009 if (S_is_set[key]) {
14011 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14012 len += length(value) + length(field[++i])
14023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14024 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14025 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14028 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14029 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14030 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14031 { (exit 1); exit 1; }; }
14034 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14035 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14036 # trailing colons and then remove the whole line if VPATH becomes empty
14037 # (actually we leave an empty line to preserve line numbers).
14038 if test "x$srcdir" = x.; then
14039 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14040 s/:*\$(srcdir):*/:/
14041 s/:*\${srcdir}:*/:/
14043 s/^\([^=]*=[ ]*\):*/\1/
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14050 fi # test -n "$CONFIG_FILES"
14052 # Set up the scripts for CONFIG_HEADERS section.
14053 # No need to generate them if there are no CONFIG_HEADERS.
14054 # This happens for instance with `./config.status Makefile'.
14055 if test -n "$CONFIG_HEADERS"; then
14056 cat >"$tmp/defines.awk" <<\_ACAWK ||
14060 # Transform confdefs.h into an awk script `defines.awk', embedded as
14061 # here-document in config.status, that substitutes the proper values into
14062 # config.h.in to produce config.h.
14064 # Create a delimiter string that does not exist in confdefs.h, to ease
14065 # handling of long lines.
14067 for ac_last_try in false false :; do
14068 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14069 if test -z "$ac_t"; then
14071 elif $ac_last_try; then
14072 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14073 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14074 { (exit 1); exit 1; }; }
14076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14080 # For the awk script, D is an array of macro values keyed by name,
14081 # likewise P contains macro parameters if any. Preserve backslash
14082 # newline sequences.
14084 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14086 s/.\{148\}/&'"$ac_delim"'/g
14089 s/^[ ]*#[ ]*define[ ][ ]*/ /
14096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14098 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14103 D["\1"]=" \3\\\\\\n"\\/p
14105 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14110 s/.\{148\}/&'"$ac_delim"'/g
14115 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14118 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14120 ' <confdefs.h | sed '
14121 s/'"$ac_delim"'/"\\\
14122 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14125 for (key in D) D_is_set[key] = 1
14128 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14130 split(line, arg, " ")
14131 if (arg[1] == "#") {
14135 defundef = substr(arg[1], 2)
14138 split(mac1, mac2, "(") #)
14140 prefix = substr(line, 1, index(line, defundef) - 1)
14141 if (D_is_set[macro]) {
14142 # Preserve the white space surrounding the "#".
14143 print prefix "define", macro P[macro] D[macro]
14146 # Replace #undef with comments. This is necessary, for example,
14147 # in the case of _POSIX_SOURCE, which is predefined and required
14148 # on some systems where configure will not decide to define it.
14149 if (defundef == "undef") {
14150 print "/*", prefix defundef, macro, "*/"
14158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14160 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14161 { (exit 1); exit 1; }; }
14162 fi # test -n "$CONFIG_HEADERS"
14165 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14170 :[FHLC]) ac_mode=$ac_tag; continue;;
14172 case $ac_mode$ac_tag in
14174 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14175 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14176 { (exit 1); exit 1; }; };;
14177 :[FH]-) ac_tag=-:-;;
14178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14195 -) ac_f="$tmp/stdin";;
14196 *) # Look for the file first in the build tree, then in the source tree
14197 # (if the path is not absolute). The absolute path cannot be DOS-style,
14198 # because $ac_f cannot contain `:'.
14202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14204 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14205 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14206 { (exit 1); exit 1; }; };;
14208 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14209 ac_file_inputs="$ac_file_inputs '$ac_f'"
14212 # Let's still pretend it is `configure' which instantiates (i.e., don't
14213 # use $as_me), people would be surprised to read:
14214 # /* config.h. Generated by config.status. */
14215 configure_input='Generated from '`
14216 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14218 if test x"$ac_file" != x-; then
14219 configure_input="$ac_file. $configure_input"
14220 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14221 $as_echo "$as_me: creating $ac_file" >&6;}
14223 # Neutralize special characters interpreted by sed in replacement strings.
14224 case $configure_input in #(
14225 *\&* | *\|* | *\\* )
14226 ac_sed_conf_input=`$as_echo "$configure_input" |
14227 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14228 *) ac_sed_conf_input=$configure_input;;
14232 *:-:* | *:-) cat >"$tmp/stdin" \
14233 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14234 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14235 { (exit 1); exit 1; }; } ;;
14240 ac_dir=`$as_dirname -- "$ac_file" ||
14241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14242 X"$ac_file" : 'X\(//\)[^/]' \| \
14243 X"$ac_file" : 'X\(//\)$' \| \
14244 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14245 $as_echo X"$ac_file" |
14246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14250 /^X\(\/\/\)[^/].*/{
14265 -*) as_dir=./$as_dir;;
14267 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14271 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14272 *) as_qdir=$as_dir;;
14274 as_dirs="'$as_qdir' $as_dirs"
14275 as_dir=`$as_dirname -- "$as_dir" ||
14276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14277 X"$as_dir" : 'X\(//\)[^/]' \| \
14278 X"$as_dir" : 'X\(//\)$' \| \
14279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14280 $as_echo X"$as_dir" |
14281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14285 /^X\(\/\/\)[^/].*/{
14298 test -d "$as_dir" && break
14300 test -z "$as_dirs" || eval "mkdir $as_dirs"
14301 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14302 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14303 { (exit 1); exit 1; }; }; }
14307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14309 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14310 # A ".." for each directory in $ac_dir_suffix.
14311 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14312 case $ac_top_builddir_sub in
14313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14317 ac_abs_top_builddir=$ac_pwd
14318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14319 # for backward compatibility:
14320 ac_top_builddir=$ac_top_build_prefix
14323 .) # We are building in place.
14325 ac_top_srcdir=$ac_top_builddir_sub
14326 ac_abs_top_srcdir=$ac_pwd ;;
14327 [\\/]* | ?:[\\/]* ) # Absolute name.
14328 ac_srcdir=$srcdir$ac_dir_suffix;
14329 ac_top_srcdir=$srcdir
14330 ac_abs_top_srcdir=$srcdir ;;
14331 *) # Relative name.
14332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14333 ac_top_srcdir=$ac_top_build_prefix$srcdir
14334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14347 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14349 ac_MKDIR_P=$MKDIR_P
14351 [\\/$]* | ?:[\\/]* ) ;;
14352 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14357 # If the template does not know about datarootdir, expand it.
14358 # FIXME: This hack should be removed a few years after 2.60.
14359 ac_datarootdir_hack=; ac_datarootdir_seen=
14372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14373 *datarootdir*) ac_datarootdir_seen=yes;;
14374 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14375 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14379 ac_datarootdir_hack='
14380 s&@datadir@&$datadir&g
14381 s&@docdir@&$docdir&g
14382 s&@infodir@&$infodir&g
14383 s&@localedir@&$localedir&g
14384 s&@mandir@&$mandir&g
14385 s&\\\${datarootdir}&$datarootdir&g' ;;
14389 # Neutralize VPATH when `$srcdir' = `.'.
14390 # Shell code in configure.ac might set extrasub.
14391 # FIXME: do we really want to maintain this feature?
14392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14393 ac_sed_extra="$ac_vpsub
14396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14399 s|@configure_input@|$ac_sed_conf_input|;t t
14400 s&@top_builddir@&$ac_top_builddir_sub&;t t
14401 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14402 s&@srcdir@&$ac_srcdir&;t t
14403 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14404 s&@top_srcdir@&$ac_top_srcdir&;t t
14405 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14406 s&@builddir@&$ac_builddir&;t t
14407 s&@abs_builddir@&$ac_abs_builddir&;t t
14408 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14409 s&@INSTALL@&$ac_INSTALL&;t t
14410 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14411 $ac_datarootdir_hack
14413 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14414 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14415 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14416 { (exit 1); exit 1; }; }
14418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14419 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14421 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14422 which seems to be undefined. Please make sure it is defined." >&5
14423 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14424 which seems to be undefined. Please make sure it is defined." >&2;}
14428 -) cat "$tmp/out" && rm -f "$tmp/out";;
14429 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14431 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14432 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14433 { (exit 1); exit 1; }; }
14439 if test x"$ac_file" != x-; then
14441 $as_echo "/* $configure_input */" \
14442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14443 } >"$tmp/config.h" \
14444 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14445 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14446 { (exit 1); exit 1; }; }
14447 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14448 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14449 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14452 mv "$tmp/config.h" "$ac_file" \
14453 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14454 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14455 { (exit 1); exit 1; }; }
14458 $as_echo "/* $configure_input */" \
14459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14460 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14461 $as_echo "$as_me: error: could not create -" >&2;}
14462 { (exit 1); exit 1; }; }
14464 # Compute "$ac_file"'s index in $config_headers.
14467 for _am_header in $config_headers :; do
14468 case $_am_header in
14469 $_am_arg | $_am_arg:* )
14472 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14475 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14476 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14477 X"$_am_arg" : 'X\(//\)[^/]' \| \
14478 X"$_am_arg" : 'X\(//\)$' \| \
14479 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14480 $as_echo X"$_am_arg" |
14481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14485 /^X\(\/\/\)[^/].*/{
14497 s/.*/./; q'`/stamp-h$_am_stamp_count
14500 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14501 $as_echo "$as_me: executing $ac_file commands" >&6;}
14506 case $ac_file$ac_mode in
14507 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14508 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14509 # are listed without --file. Let's play safe and only enable the eval
14510 # if we detect the quoting.
14511 case $CONFIG_FILES in
14512 *\'*) eval set x "$CONFIG_FILES" ;;
14513 *) set x $CONFIG_FILES ;;
14518 # Strip MF so we end up with the name of the file.
14519 mf=`echo "$mf" | sed -e 's/:.*$//'`
14520 # Check whether this is an Automake generated Makefile or not.
14521 # We used to match only the files named `Makefile.in', but
14522 # some people rename them; so instead we look at the file content.
14523 # Grep'ing the first line is not enough: some people post-process
14524 # each Makefile.in and add a new line on top of each file to say so.
14525 # Grep'ing the whole file is not good either: AIX grep has a line
14526 # limit of 2048, but all sed's we know have understand at least 4000.
14527 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14528 dirpart=`$as_dirname -- "$mf" ||
14529 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14530 X"$mf" : 'X\(//\)[^/]' \| \
14531 X"$mf" : 'X\(//\)$' \| \
14532 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14538 /^X\(\/\/\)[^/].*/{
14554 # Extract the definition of DEPDIR, am__include, and am__quote
14555 # from the Makefile without running `make'.
14556 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14557 test -z "$DEPDIR" && continue
14558 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14559 test -z "am__include" && continue
14560 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14561 # When using ansi2knr, U may be empty or an underscore; expand it
14562 U=`sed -n 's/^U = //p' < "$mf"`
14563 # Find all dependency output files, they are included files with
14564 # $(DEPDIR) in their names. We invoke sed twice because it is the
14565 # simplest approach to changing $(DEPDIR) to its actual value in the
14567 for file in `sed -n "
14568 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14569 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14570 # Make sure the directory exists.
14571 test -f "$dirpart/$file" && continue
14572 fdir=`$as_dirname -- "$file" ||
14573 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14574 X"$file" : 'X\(//\)[^/]' \| \
14575 X"$file" : 'X\(//\)$' \| \
14576 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14577 $as_echo X"$file" |
14578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14582 /^X\(\/\/\)[^/].*/{
14595 { as_dir=$dirpart/$fdir
14597 -*) as_dir=./$as_dir;;
14599 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14603 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14604 *) as_qdir=$as_dir;;
14606 as_dirs="'$as_qdir' $as_dirs"
14607 as_dir=`$as_dirname -- "$as_dir" ||
14608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14609 X"$as_dir" : 'X\(//\)[^/]' \| \
14610 X"$as_dir" : 'X\(//\)$' \| \
14611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14612 $as_echo X"$as_dir" |
14613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14617 /^X\(\/\/\)[^/].*/{
14630 test -d "$as_dir" && break
14632 test -z "$as_dirs" || eval "mkdir $as_dirs"
14633 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14634 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14635 { (exit 1); exit 1; }; }; }
14636 # echo "creating $dirpart/$file"
14637 echo '# dummy' > "$dirpart/$file"
14644 # See if we are running on zsh, and set the options which allow our
14645 # commands through without removal of \ escapes.
14646 if test -n "${ZSH_VERSION+set}" ; then
14647 setopt NO_GLOB_SUBST
14650 cfgfile="${ofile}T"
14651 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14654 cat <<_LT_EOF >> "$cfgfile"
14657 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14658 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14659 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14660 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14662 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14663 # 2006, 2007, 2008 Free Software Foundation, Inc.
14664 # Written by Gordon Matzigkeit, 1996
14666 # This file is part of GNU Libtool.
14668 # GNU Libtool is free software; you can redistribute it and/or
14669 # modify it under the terms of the GNU General Public License as
14670 # published by the Free Software Foundation; either version 2 of
14671 # the License, or (at your option) any later version.
14673 # As a special exception to the GNU General Public License,
14674 # if you distribute this file as part of a program or library that
14675 # is built using GNU Libtool, you may include this file under the
14676 # same distribution terms that you use for the rest of that program.
14678 # GNU Libtool is distributed in the hope that it will be useful,
14679 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14680 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14681 # GNU General Public License for more details.
14683 # You should have received a copy of the GNU General Public License
14684 # along with GNU Libtool; see the file COPYING. If not, a copy
14685 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14686 # obtained by writing to the Free Software Foundation, Inc.,
14687 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14690 # The names of the tagged configurations supported by this script.
14693 # ### BEGIN LIBTOOL CONFIG
14695 # Whether or not to build static libraries.
14696 build_old_libs=$enable_static
14698 # Which release of libtool.m4 was used?
14699 macro_version=$macro_version
14700 macro_revision=$macro_revision
14702 # Whether or not to build shared libraries.
14703 build_libtool_libs=$enable_shared
14705 # What type of objects to build.
14708 # Whether or not to optimize for fast installation.
14709 fast_install=$enable_fast_install
14712 host_alias=$host_alias
14716 # The build system.
14717 build_alias=$build_alias
14721 # A sed program that does not truncate output.
14724 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14725 Xsed="\$SED -e 1s/^X//"
14727 # A grep program that handles long lines.
14733 # A literal string matcher.
14736 # A BSD- or MS-compatible name lister.
14739 # Whether we need soft or hard links.
14742 # What is the maximum length of a command?
14743 max_cmd_len=$max_cmd_len
14745 # Object file suffix (normally "o").
14748 # Executable file suffix (normally "").
14751 # whether the shell understands "unset".
14754 # turn spaces into newlines.
14757 # turn newlines into spaces.
14760 # How to create reloadable object files.
14761 reload_flag=$lt_reload_flag
14762 reload_cmds=$lt_reload_cmds
14764 # An object symbol dumper.
14765 OBJDUMP=$lt_OBJDUMP
14767 # Method to check whether dependent libraries are shared objects.
14768 deplibs_check_method=$lt_deplibs_check_method
14770 # Command to use when deplibs_check_method == "file_magic".
14771 file_magic_cmd=$lt_file_magic_cmd
14775 AR_FLAGS=$lt_AR_FLAGS
14777 # A symbol stripping program.
14780 # Commands used to install an old-style archive.
14782 old_postinstall_cmds=$lt_old_postinstall_cmds
14783 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14788 # LTCC compiler flags.
14789 LTCFLAGS=$lt_CFLAGS
14791 # Take the output of nm and produce a listing of raw symbols and C names.
14792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14794 # Transform the output of nm in a proper C declaration.
14795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14797 # Transform the output of nm in a C name address pair.
14798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14800 # Transform the output of nm in a C name address pair when lib prefix is needed.
14801 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14803 # The name of the directory that contains temporary libtool files.
14806 # Shell to use when invoking shell scripts.
14809 # An echo program that does not interpret backslashes.
14812 # Used to examine libraries when file_magic_cmd begins with "file".
14813 MAGIC_CMD=$MAGIC_CMD
14815 # Must we lock files when doing compilation?
14816 need_locks=$lt_need_locks
14818 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14819 DSYMUTIL=$lt_DSYMUTIL
14821 # Tool to change global to local symbols on Mac OS X.
14824 # Tool to manipulate fat objects and archives on Mac OS X.
14827 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14830 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14831 OTOOL64=$lt_OTOOL64
14833 # Old archive suffix (normally "a").
14836 # Shared library suffix (normally ".so").
14837 shrext_cmds=$lt_shrext_cmds
14839 # The commands to extract the exported symbol list from a shared archive.
14840 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14842 # Variables whose values should be saved in libtool wrapper scripts and
14843 # restored at link time.
14844 variables_saved_for_relink=$lt_variables_saved_for_relink
14846 # Do we need the "lib" prefix for modules?
14847 need_lib_prefix=$need_lib_prefix
14849 # Do we need a version for libraries?
14850 need_version=$need_version
14852 # Library versioning type.
14853 version_type=$version_type
14855 # Shared library runtime path variable.
14856 runpath_var=$runpath_var
14858 # Shared library path variable.
14859 shlibpath_var=$shlibpath_var
14861 # Is shlibpath searched before the hard-coded library search path?
14862 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14864 # Format of library name prefix.
14865 libname_spec=$lt_libname_spec
14867 # List of archive names. First name is the real one, the rest are links.
14868 # The last name is the one that the linker finds with -lNAME
14869 library_names_spec=$lt_library_names_spec
14871 # The coded name of the library, if different from the real name.
14872 soname_spec=$lt_soname_spec
14874 # Command to use after installation of a shared archive.
14875 postinstall_cmds=$lt_postinstall_cmds
14877 # Command to use after uninstallation of a shared archive.
14878 postuninstall_cmds=$lt_postuninstall_cmds
14880 # Commands used to finish a libtool library installation in a directory.
14881 finish_cmds=$lt_finish_cmds
14883 # As "finish_cmds", except a single script fragment to be evaled but
14885 finish_eval=$lt_finish_eval
14887 # Whether we should hardcode library paths into libraries.
14888 hardcode_into_libs=$hardcode_into_libs
14890 # Compile-time system search path for libraries.
14891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14893 # Run-time system search path for libraries.
14894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14896 # Whether dlopen is supported.
14897 dlopen_support=$enable_dlopen
14899 # Whether dlopen of programs is supported.
14900 dlopen_self=$enable_dlopen_self
14902 # Whether dlopen of statically linked programs is supported.
14903 dlopen_self_static=$enable_dlopen_self_static
14905 # Commands to strip libraries.
14906 old_striplib=$lt_old_striplib
14907 striplib=$lt_striplib
14910 # The linker used to build libraries.
14913 # Commands used to build an old-style archive.
14914 old_archive_cmds=$lt_old_archive_cmds
14916 # A language specific compiler.
14919 # Is the compiler the GNU compiler?
14922 # Compiler flag to turn off builtin functions.
14923 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14925 # How to pass a linker flag through the compiler.
14926 wl=$lt_lt_prog_compiler_wl
14928 # Additional compiler flags for building library objects.
14929 pic_flag=$lt_lt_prog_compiler_pic
14931 # Compiler flag to prevent dynamic linking.
14932 link_static_flag=$lt_lt_prog_compiler_static
14934 # Does compiler simultaneously support -c and -o options?
14935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14937 # Whether or not to add -lc for building shared libraries.
14938 build_libtool_need_lc=$archive_cmds_need_lc
14940 # Whether or not to disallow shared libs when runtime libs are static.
14941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14943 # Compiler flag to allow reflexive dlopens.
14944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14946 # Compiler flag to generate shared objects directly from archives.
14947 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14949 # Whether the compiler copes with passing no objects directly.
14950 compiler_needs_object=$lt_compiler_needs_object
14952 # Create an old-style archive from a shared archive.
14953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14955 # Create a temporary old-style archive to link instead of a shared archive.
14956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14958 # Commands used to build a shared archive.
14959 archive_cmds=$lt_archive_cmds
14960 archive_expsym_cmds=$lt_archive_expsym_cmds
14962 # Commands used to build a loadable module if different from building
14963 # a shared archive.
14964 module_cmds=$lt_module_cmds
14965 module_expsym_cmds=$lt_module_expsym_cmds
14967 # Whether we are building with GNU ld or not.
14968 with_gnu_ld=$lt_with_gnu_ld
14970 # Flag that allows shared libraries with undefined symbols to be built.
14971 allow_undefined_flag=$lt_allow_undefined_flag
14973 # Flag that enforces no undefined symbols.
14974 no_undefined_flag=$lt_no_undefined_flag
14976 # Flag to hardcode \$libdir into a binary during linking.
14977 # This must work even if \$libdir does not exist
14978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14980 # If ld is used when linking, flag to hardcode \$libdir into a binary
14981 # during linking. This must work even if \$libdir does not exist.
14982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14984 # Whether we need a single "-rpath" flag with a separated argument.
14985 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14987 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14988 # DIR into the resulting binary.
14989 hardcode_direct=$hardcode_direct
14991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14992 # DIR into the resulting binary and the resulting library dependency is
14993 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14994 # library is relocated.
14995 hardcode_direct_absolute=$hardcode_direct_absolute
14997 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14998 # into the resulting binary.
14999 hardcode_minus_L=$hardcode_minus_L
15001 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15002 # into the resulting binary.
15003 hardcode_shlibpath_var=$hardcode_shlibpath_var
15005 # Set to "yes" if building a shared library automatically hardcodes DIR
15006 # into the library and all subsequent libraries and executables linked
15008 hardcode_automatic=$hardcode_automatic
15010 # Set to yes if linker adds runtime paths of dependent libraries
15011 # to runtime path list.
15012 inherit_rpath=$inherit_rpath
15014 # Whether libtool must link a program against all its dependency libraries.
15015 link_all_deplibs=$link_all_deplibs
15017 # Fix the shell variable \$srcfile for the compiler.
15018 fix_srcfile_path=$lt_fix_srcfile_path
15020 # Set to "yes" if exported symbols are required.
15021 always_export_symbols=$always_export_symbols
15023 # The commands to list exported symbols.
15024 export_symbols_cmds=$lt_export_symbols_cmds
15026 # Symbols that should not be listed in the preloaded symbols.
15027 exclude_expsyms=$lt_exclude_expsyms
15029 # Symbols that must always be exported.
15030 include_expsyms=$lt_include_expsyms
15032 # Commands necessary for linking programs (against libraries) with templates.
15033 prelink_cmds=$lt_prelink_cmds
15035 # Specify filename containing input files.
15036 file_list_spec=$lt_file_list_spec
15038 # How to hardcode a shared library path into an executable.
15039 hardcode_action=$hardcode_action
15041 # ### END LIBTOOL CONFIG
15047 cat <<\_LT_EOF >> "$cfgfile"
15048 # AIX sometimes has problems with the GCC collect2 program. For some
15049 # reason, if we set the COLLECT_NAMES environment variable, the problems
15050 # vanish in a puff of smoke.
15051 if test "X${COLLECT_NAMES+set}" != Xset; then
15053 export COLLECT_NAMES
15060 ltmain="$ac_aux_dir/ltmain.sh"
15063 # We use sed instead of cat because bash on DJGPP gets confused if
15064 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15065 # text mode, it properly converts lines to CR/LF. This bash problem
15066 # is reportedly fixed, but why not run on old versions too?
15067 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15068 || (rm -f "$cfgfile"; exit 1)
15072 cat << \_LT_EOF >> "$cfgfile"
15074 # func_dirname file append nondir_replacement
15075 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15076 # otherwise set result to NONDIR_REPLACEMENT.
15080 */*) func_dirname_result="${1%/*}${2}" ;;
15081 * ) func_dirname_result="${3}" ;;
15085 # func_basename file
15088 func_basename_result="${1##*/}"
15091 # func_dirname_and_basename file append nondir_replacement
15092 # perform func_basename and func_dirname in a single function
15094 # dirname: Compute the dirname of FILE. If nonempty,
15095 # add APPEND to the result, otherwise set result
15096 # to NONDIR_REPLACEMENT.
15097 # value returned in "$func_dirname_result"
15098 # basename: Compute filename of FILE.
15099 # value retuned in "$func_basename_result"
15100 # Implementation must be kept synchronized with func_dirname
15101 # and func_basename. For efficiency, we do not delegate to
15102 # those functions but instead duplicate the functionality here.
15103 func_dirname_and_basename ()
15106 */*) func_dirname_result="${1%/*}${2}" ;;
15107 * ) func_dirname_result="${3}" ;;
15109 func_basename_result="${1##*/}"
15112 # func_stripname prefix suffix name
15113 # strip PREFIX and SUFFIX off of NAME.
15114 # PREFIX and SUFFIX must not contain globbing or regex special
15115 # characters, hashes, percent signs, but SUFFIX may contain a leading
15116 # dot (in which case that matches only a dot).
15119 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15120 # positional parameters, so assign one to ordinary parameter first.
15121 func_stripname_result=${3}
15122 func_stripname_result=${func_stripname_result#"${1}"}
15123 func_stripname_result=${func_stripname_result%"${2}"}
15129 func_opt_split_opt=${1%%=*}
15130 func_opt_split_arg=${1#*=}
15137 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15138 *) func_lo2o_result=${1} ;;
15142 # func_xform libobj-or-source
15145 func_xform_result=${1%.*}.lo
15148 # func_arith arithmetic-term...
15151 func_arith_result=$(( $* ))
15155 # STRING may not start with a hyphen.
15158 func_len_result=${#1}
15163 *) # Bourne compatible functions.
15164 cat << \_LT_EOF >> "$cfgfile"
15166 # func_dirname file append nondir_replacement
15167 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15168 # otherwise set result to NONDIR_REPLACEMENT.
15171 # Extract subdirectory from the argument.
15172 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15173 if test "X$func_dirname_result" = "X${1}"; then
15174 func_dirname_result="${3}"
15176 func_dirname_result="$func_dirname_result${2}"
15180 # func_basename file
15183 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15187 # func_stripname prefix suffix name
15188 # strip PREFIX and SUFFIX off of NAME.
15189 # PREFIX and SUFFIX must not contain globbing or regex special
15190 # characters, hashes, percent signs, but SUFFIX may contain a leading
15191 # dot (in which case that matches only a dot).
15192 # func_strip_suffix prefix name
15196 .*) func_stripname_result=`$ECHO "X${3}" \
15197 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15198 *) func_stripname_result=`$ECHO "X${3}" \
15199 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15204 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15205 my_sed_long_arg='1s/^-[^=]*=//'
15210 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15211 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15217 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15220 # func_xform libobj-or-source
15223 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15226 # func_arith arithmetic-term...
15229 func_arith_result=`expr "$@"`
15233 # STRING may not start with a hyphen.
15236 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15242 case $lt_shell_append in
15244 cat << \_LT_EOF >> "$cfgfile"
15246 # func_append var value
15247 # Append VALUE to the end of shell variable VAR.
15255 cat << \_LT_EOF >> "$cfgfile"
15257 # func_append var value
15258 # Append VALUE to the end of shell variable VAR.
15269 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15270 || (rm -f "$cfgfile"; exit 1)
15272 mv -f "$cfgfile" "$ofile" ||
15273 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15282 { (exit 0); exit 0; }
15284 chmod +x $CONFIG_STATUS
15285 ac_clean_files=$ac_clean_files_save
15287 test $ac_write_fail = 0 ||
15288 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15289 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15290 { (exit 1); exit 1; }; }
15293 # configure is writing to config.log, and then calls config.status.
15294 # config.status does its own redirection, appending to config.log.
15295 # Unfortunately, on DOS this fails, as config.log is still kept open
15296 # by configure, so config.status won't be able to write to it; its
15297 # output is simply discarded. So we exec the FD to /dev/null,
15298 # effectively closing config.log, so it can be properly (re)opened and
15299 # appended to by config.status. When coming back to configure, we
15300 # need to make the FD available again.
15301 if test "$no_create" != yes; then
15303 ac_config_status_args=
15304 test "$silent" = yes &&
15305 ac_config_status_args="$ac_config_status_args --quiet"
15307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15310 # would make configure fail if this is the last instruction.
15311 $ac_cs_success || { (exit 1); exit 1; }
15313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15314 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15320 echo "Options used to compile and link:"
15322 echo " CFLAGS = $CFLAGS"
15323 echo " CPPFLAGS = $CPPFLAGS"
15325 echo " CXXFLAGS = $CXXFLAGS"
15326 echo " LDFLAGS = $LDFLAGS"