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="README"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 ac_subst_vars='am__EXEEXT_FALSE
819 INSTALL_STRIP_PROGRAM
907 program_transform_name
919 enable_option_checking
926 enable_dependency_tracking
946 ac_precious_vars='build_alias
962 # Initialize some variables set by options.
964 ac_init_version=false
965 ac_unrecognized_opts=
967 # The variables have the same names as the options, with
968 # dashes changed to underlines.
976 program_transform_name=s,x,x,
984 # Installation directory options.
985 # These are left unexpanded so users can "make install exec_prefix=/foo"
986 # and all the variables that are supposed to be based on exec_prefix
987 # by default will actually change.
988 # Use braces instead of parens because sh, perl, etc. also accept them.
989 # (The list follows the same order as the GNU Coding Standards.)
990 bindir='${exec_prefix}/bin'
991 sbindir='${exec_prefix}/sbin'
992 libexecdir='${exec_prefix}/libexec'
993 datarootdir='${prefix}/share'
994 datadir='${datarootdir}'
995 sysconfdir='${prefix}/etc'
996 sharedstatedir='${prefix}/com'
997 localstatedir='${prefix}/var'
998 includedir='${prefix}/include'
999 oldincludedir='/usr/include'
1000 docdir='${datarootdir}/doc/${PACKAGE}'
1001 infodir='${datarootdir}/info'
1006 libdir='${exec_prefix}/lib'
1007 localedir='${datarootdir}/locale'
1008 mandir='${datarootdir}/man'
1014 # If the previous option needs an argument, assign it.
1015 if test -n "$ac_prev"; then
1016 eval $ac_prev=\$ac_option
1022 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 # Accept the important Cygnus configure options, so we can diagnose typos.
1028 case $ac_dashdash$ac_option in
1032 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1035 bindir=$ac_optarg ;;
1037 -build | --build | --buil | --bui | --bu)
1038 ac_prev=build_alias ;;
1039 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1040 build_alias=$ac_optarg ;;
1042 -cache-file | --cache-file | --cache-fil | --cache-fi \
1043 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1044 ac_prev=cache_file ;;
1045 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1046 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1047 cache_file=$ac_optarg ;;
1049 --config-cache | -C)
1050 cache_file=config.cache ;;
1052 -datadir | --datadir | --datadi | --datad)
1054 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1055 datadir=$ac_optarg ;;
1057 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1058 | --dataroo | --dataro | --datar)
1059 ac_prev=datarootdir ;;
1060 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1061 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1062 datarootdir=$ac_optarg ;;
1064 -disable-* | --disable-*)
1065 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1068 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_$ac_useropt"
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1106 eval enable_$ac_useropt=\$ac_optarg ;;
1108 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1109 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1110 | --exec | --exe | --ex)
1111 ac_prev=exec_prefix ;;
1112 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1113 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1114 | --exec=* | --exe=* | --ex=*)
1115 exec_prefix=$ac_optarg ;;
1117 -gas | --gas | --ga | --g)
1118 # Obsolete; use --with-gas.
1121 -help | --help | --hel | --he | -h)
1122 ac_init_help=long ;;
1123 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1124 ac_init_help=recursive ;;
1125 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1126 ac_init_help=short ;;
1128 -host | --host | --hos | --ho)
1129 ac_prev=host_alias ;;
1130 -host=* | --host=* | --hos=* | --ho=*)
1131 host_alias=$ac_optarg ;;
1133 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 htmldir=$ac_optarg ;;
1139 -includedir | --includedir | --includedi | --included | --include \
1140 | --includ | --inclu | --incl | --inc)
1141 ac_prev=includedir ;;
1142 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1143 | --includ=* | --inclu=* | --incl=* | --inc=*)
1144 includedir=$ac_optarg ;;
1146 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1149 infodir=$ac_optarg ;;
1151 -libdir | --libdir | --libdi | --libd)
1153 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1154 libdir=$ac_optarg ;;
1156 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1157 | --libexe | --libex | --libe)
1158 ac_prev=libexecdir ;;
1159 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1160 | --libexe=* | --libex=* | --libe=*)
1161 libexecdir=$ac_optarg ;;
1163 -localedir | --localedir | --localedi | --localed | --locale)
1164 ac_prev=localedir ;;
1165 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1166 localedir=$ac_optarg ;;
1168 -localstatedir | --localstatedir | --localstatedi | --localstated \
1169 | --localstate | --localstat | --localsta | --localst | --locals)
1170 ac_prev=localstatedir ;;
1171 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1172 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1173 localstatedir=$ac_optarg ;;
1175 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1178 mandir=$ac_optarg ;;
1180 -nfp | --nfp | --nf)
1181 # Obsolete; use --without-fp.
1184 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1185 | --no-cr | --no-c | -n)
1188 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1189 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1192 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1193 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1194 | --oldin | --oldi | --old | --ol | --o)
1195 ac_prev=oldincludedir ;;
1196 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1197 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1198 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1199 oldincludedir=$ac_optarg ;;
1201 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1204 prefix=$ac_optarg ;;
1206 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1207 | --program-pre | --program-pr | --program-p)
1208 ac_prev=program_prefix ;;
1209 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1210 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1211 program_prefix=$ac_optarg ;;
1213 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1214 | --program-suf | --program-su | --program-s)
1215 ac_prev=program_suffix ;;
1216 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1217 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1218 program_suffix=$ac_optarg ;;
1220 -program-transform-name | --program-transform-name \
1221 | --program-transform-nam | --program-transform-na \
1222 | --program-transform-n | --program-transform- \
1223 | --program-transform | --program-transfor \
1224 | --program-transfo | --program-transf \
1225 | --program-trans | --program-tran \
1226 | --progr-tra | --program-tr | --program-t)
1227 ac_prev=program_transform_name ;;
1228 -program-transform-name=* | --program-transform-name=* \
1229 | --program-transform-nam=* | --program-transform-na=* \
1230 | --program-transform-n=* | --program-transform-=* \
1231 | --program-transform=* | --program-transfor=* \
1232 | --program-transfo=* | --program-transf=* \
1233 | --program-trans=* | --program-tran=* \
1234 | --progr-tra=* | --program-tr=* | --program-t=*)
1235 program_transform_name=$ac_optarg ;;
1237 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1240 pdfdir=$ac_optarg ;;
1242 -psdir | --psdir | --psdi | --psd | --ps)
1244 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1251 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1253 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1255 sbindir=$ac_optarg ;;
1257 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1258 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1259 | --sharedst | --shareds | --shared | --share | --shar \
1261 ac_prev=sharedstatedir ;;
1262 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1263 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1264 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1266 sharedstatedir=$ac_optarg ;;
1268 -site | --site | --sit)
1270 -site=* | --site=* | --sit=*)
1273 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1275 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1276 srcdir=$ac_optarg ;;
1278 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1279 | --syscon | --sysco | --sysc | --sys | --sy)
1280 ac_prev=sysconfdir ;;
1281 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1282 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1283 sysconfdir=$ac_optarg ;;
1285 -target | --target | --targe | --targ | --tar | --ta | --t)
1286 ac_prev=target_alias ;;
1287 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1288 target_alias=$ac_optarg ;;
1290 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1293 -version | --version | --versio | --versi | --vers | -V)
1294 ac_init_version=: ;;
1297 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_useropt_orig=$ac_useropt
1303 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1304 case $ac_user_opts in
1308 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1309 ac_unrecognized_sep=', ';;
1311 eval with_$ac_useropt=\$ac_optarg ;;
1313 -without-* | --without-*)
1314 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1315 # Reject names that are not valid shell variable names.
1316 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1317 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1318 { (exit 1); exit 1; }; }
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1328 eval with_$ac_useropt=no ;;
1331 # Obsolete; use --with-x.
1334 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1335 | --x-incl | --x-inc | --x-in | --x-i)
1336 ac_prev=x_includes ;;
1337 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1338 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1339 x_includes=$ac_optarg ;;
1341 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1342 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1343 ac_prev=x_libraries ;;
1344 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1345 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1346 x_libraries=$ac_optarg ;;
1348 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1349 Try \`$0 --help' for more information." >&2
1350 { (exit 1); exit 1; }; }
1354 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1357 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1358 { (exit 1); exit 1; }; }
1359 eval $ac_envvar=\$ac_optarg
1360 export $ac_envvar ;;
1363 # FIXME: should be removed in autoconf 3.0.
1364 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1365 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1366 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1367 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1373 if test -n "$ac_prev"; then
1374 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1375 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1376 { (exit 1); exit 1; }; }
1379 if test -n "$ac_unrecognized_opts"; then
1380 case $enable_option_checking in
1382 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1383 { (exit 1); exit 1; }; } ;;
1384 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1388 # Check all directory arguments for consistency.
1389 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1390 datadir sysconfdir sharedstatedir localstatedir includedir \
1391 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1392 libdir localedir mandir
1394 eval ac_val=\$$ac_var
1395 # Remove trailing slashes.
1398 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1399 eval $ac_var=\$ac_val;;
1401 # Be sure to have absolute directory names.
1403 [\\/$]* | ?:[\\/]* ) continue;;
1404 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1406 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1407 { (exit 1); exit 1; }; }
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1415 target=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1422 If a cross compiler is detected then cross compile mode will be used." >&2
1423 elif test "x$build_alias" != "x$host_alias"; then
1429 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1431 test "$silent" = yes && exec 6>/dev/null
1434 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1435 ac_ls_di=`ls -di .` &&
1436 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1437 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1438 { (exit 1); exit 1; }; }
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1441 { (exit 1); exit 1; }; }
1444 # Find the source files, if location was not specified.
1445 if test -z "$srcdir"; then
1446 ac_srcdir_defaulted=yes
1447 # Try the directory containing this script, then the parent directory.
1448 ac_confdir=`$as_dirname -- "$as_myself" ||
1449 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1450 X"$as_myself" : 'X\(//\)[^/]' \| \
1451 X"$as_myself" : 'X\(//\)$' \| \
1452 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1453 $as_echo X"$as_myself" |
1454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1472 if test ! -r "$srcdir/$ac_unique_file"; then
1476 ac_srcdir_defaulted=no
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1480 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1481 { (exit 1); exit 1; }; }
1483 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1485 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1486 { (exit 1); exit 1; }; }
1488 # When building in place, set srcdir=.
1489 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 # Remove unnecessary trailing slashes from srcdir.
1493 # Double slashes in file names in object file debugging info
1494 # mess up M-x gdb in Emacs.
1496 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498 for ac_var in $ac_precious_vars; do
1499 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1500 eval ac_env_${ac_var}_value=\$${ac_var}
1501 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1506 # Report the --help message.
1508 if test "$ac_init_help" = "long"; then
1509 # Omit some internal or obsolete options to make the list less imposing.
1510 # This message is too long to be a string in the A/UX 3.1 sh.
1512 \`configure' configures this package to adapt to many kinds of systems.
1514 Usage: $0 [OPTION]... [VAR=VALUE]...
1516 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1517 VAR=VALUE. See below for descriptions of some of the useful variables.
1519 Defaults for the options are specified in brackets.
1522 -h, --help display this help and exit
1523 --help=short display options specific to this package
1524 --help=recursive display the short help of all the included packages
1525 -V, --version display version information and exit
1526 -q, --quiet, --silent do not print \`checking...' messages
1527 --cache-file=FILE cache test results in FILE [disabled]
1528 -C, --config-cache alias for \`--cache-file=config.cache'
1529 -n, --no-create do not create output files
1530 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532 Installation directories:
1533 --prefix=PREFIX install architecture-independent files in PREFIX
1534 [$ac_default_prefix]
1535 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 By default, \`make install' will install all the files in
1539 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1540 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1541 for instance \`--prefix=\$HOME'.
1543 For better control, use the options below.
1545 Fine tuning of the installation directories:
1546 --bindir=DIR user executables [EPREFIX/bin]
1547 --sbindir=DIR system admin executables [EPREFIX/sbin]
1548 --libexecdir=DIR program executables [EPREFIX/libexec]
1549 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1550 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1551 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 if test -n "$ac_init_help"; then
1585 --disable-option-checking ignore unrecognized --enable/--with options
1586 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1587 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1588 --enable-shared[=PKGS] build shared libraries [default=yes]
1589 --enable-static[=PKGS] build static libraries [default=yes]
1590 --enable-fast-install[=PKGS]
1591 optimize for fast installation [default=yes]
1592 --disable-libtool-lock avoid locking (might break parallel builds)
1593 --disable-dependency-tracking speeds up one-time build
1594 --enable-dependency-tracking do not reject slow dependency extractors
1595 --disable-sdltest Do not try to compile and run a test SDL program
1596 --enable-bmp support loading BMP/ICO/CUR images [default=yes]
1597 --enable-gif support loading GIF images [default=yes]
1598 --enable-jpg support loading JPG images [default=yes]
1599 --enable-jpg-shared dynamically load JPG support [default=yes]
1600 --enable-lbm support loading LBM images [default=yes]
1601 --enable-pcx support loading PCX images [default=yes]
1602 --enable-png support loading PNG images [default=yes]
1603 --enable-png-shared dynamically load PNG support [default=yes]
1604 --enable-pnm support loading PNM images [default=yes]
1605 --enable-tga support loading TGA images [default=yes]
1606 --enable-tif support loading TIFF images [default=yes]
1607 --enable-tif-shared dynamically load TIFF support [default=yes]
1608 --enable-xcf support loading XCF images [default=yes]
1609 --enable-xpm support loading XPM images [default=yes]
1610 --enable-xv support loading XV images [default=yes]
1613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1615 --with-pic try to use only PIC/non-PIC objects [default=use
1617 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1618 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1619 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1621 Some influential environment variables:
1622 CC C compiler command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1625 nonstandard directory <lib dir>
1626 LIBS libraries to pass to the linker, e.g. -l<library>
1627 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1628 you have headers in a nonstandard directory <include dir>
1630 PKG_CONFIG path to pkg-config utility
1631 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1632 SDL_LIBS linker flags for SDL, overriding pkg-config
1634 C compiler flags for LIBPNG, overriding pkg-config
1635 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1637 Use these variables to override the choices made by `configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1703 generated by GNU Autoconf 2.63
1705 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1706 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1707 This configure script is free software; the Free Software Foundation
1708 gives unlimited permission to copy, distribute and modify it.
1712 cat >config.log <<_ACEOF
1713 This file contains any messages produced by compilers while
1714 running configure, to aid debugging if configure makes a mistake.
1716 It was created by $as_me, which was
1717 generated by GNU Autoconf 2.63. Invocation command line was
1729 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1730 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1731 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1732 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1733 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1735 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1736 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1738 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1739 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1740 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1741 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1742 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1743 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1744 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 $as_echo "PATH: $as_dir"
1769 # Keep a trace of the command line.
1770 # Strip out --no-create and --no-recursion so they do not pile up.
1771 # Strip out --silent because we don't want to record it for future runs.
1772 # Also quote any args containing shell meta-characters.
1773 # Make two passes to allow for proper duplicate-argument suppression.
1777 ac_must_keep_next=false
1783 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1784 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1785 | -silent | --silent | --silen | --sile | --sil)
1788 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1793 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1794 if test $ac_must_keep_next = true; then
1795 ac_must_keep_next=false # Got value, back to normal.
1798 *=* | --config-cache | -C | -disable-* | --disable-* \
1799 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1800 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1801 | -with-* | --with-* | -without-* | --without-* | --x)
1802 case "$ac_configure_args0 " in
1803 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1806 -* ) ac_must_keep_next=true ;;
1809 ac_configure_args="$ac_configure_args '$ac_arg'"
1814 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1815 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1817 # When interrupted or exit'd, cleanup temporary files, and complete
1818 # config.log. We remove comments because anyway the quotes in there
1819 # would cause problems or look ugly.
1820 # WARNING: Use '\'' to represent an apostrophe within the trap.
1821 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1822 trap 'exit_status=$?
1823 # Save into config.log some information that might help in debugging.
1828 ## ---------------- ##
1829 ## Cache variables. ##
1830 ## ---------------- ##
1833 # The following way of writing the cache mishandles newlines in values,
1835 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1836 eval ac_val=\$$ac_var
1840 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1844 _ | IFS | as_nl) ;; #(
1845 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1846 *) $as_unset $ac_var ;;
1851 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1852 *${as_nl}ac_space=\ *)
1854 "s/'\''/'\''\\\\'\'''\''/g;
1855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1858 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1866 ## ----------------- ##
1867 ## Output variables. ##
1868 ## ----------------- ##
1871 for ac_var in $ac_subst_vars
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 $as_echo "$ac_var='\''$ac_val'\''"
1881 if test -n "$ac_subst_files"; then
1883 ## ------------------- ##
1884 ## File substitutions. ##
1885 ## ------------------- ##
1888 for ac_var in $ac_subst_files
1890 eval ac_val=\$$ac_var
1892 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1894 $as_echo "$ac_var='\''$ac_val'\''"
1899 if test -s confdefs.h; then
1909 test "$ac_signal" != 0 &&
1910 $as_echo "$as_me: caught signal $ac_signal"
1911 $as_echo "$as_me: exit $exit_status"
1913 rm -f core *.core core.conftest.* &&
1914 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1917 for ac_signal in 1 2 13 15; do
1918 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1922 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1923 rm -f -r conftest* confdefs.h
1925 # Predefined preprocessor variables.
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_NAME "$PACKAGE_NAME"
1932 cat >>confdefs.h <<_ACEOF
1933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_STRING "$PACKAGE_STRING"
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1952 # Let the site file select an alternate cache file if it wants to.
1953 # Prefer an explicitly selected file to automatically selected ones.
1956 if test -n "$CONFIG_SITE"; then
1957 ac_site_file1=$CONFIG_SITE
1958 elif test "x$prefix" != xNONE; then
1959 ac_site_file1=$prefix/share/config.site
1960 ac_site_file2=$prefix/etc/config.site
1962 ac_site_file1=$ac_default_prefix/share/config.site
1963 ac_site_file2=$ac_default_prefix/etc/config.site
1965 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1967 test "x$ac_site_file" = xNONE && continue
1968 if test -r "$ac_site_file"; then
1969 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1970 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1971 sed 's/^/| /' "$ac_site_file" >&5
1976 if test -r "$cache_file"; then
1977 # Some versions of bash will fail to source /dev/null (special
1978 # files actually), so we avoid doing that.
1979 if test -f "$cache_file"; then
1980 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1981 $as_echo "$as_me: loading cache $cache_file" >&6;}
1983 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1984 *) . "./$cache_file";;
1988 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1989 $as_echo "$as_me: creating cache $cache_file" >&6;}
1993 # Check that the precious variables saved in the cache have kept the same
1995 ac_cache_corrupted=false
1996 for ac_var in $ac_precious_vars; do
1997 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1998 eval ac_new_set=\$ac_env_${ac_var}_set
1999 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2000 eval ac_new_val=\$ac_env_${ac_var}_value
2001 case $ac_old_set,$ac_new_set in
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2004 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2005 ac_cache_corrupted=: ;;
2007 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2008 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2009 ac_cache_corrupted=: ;;
2012 if test "x$ac_old_val" != "x$ac_new_val"; then
2013 # differences in whitespace do not lead to failure.
2014 ac_old_val_w=`echo x $ac_old_val`
2015 ac_new_val_w=`echo x $ac_new_val`
2016 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2017 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2018 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2019 ac_cache_corrupted=:
2021 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2022 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2023 eval $ac_var=\$ac_old_val
2025 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2026 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2027 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2028 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2031 # Pass precious variables to config.status.
2032 if test "$ac_new_set" = set; then
2034 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2035 *) ac_arg=$ac_var=$ac_new_val ;;
2037 case " $ac_configure_args " in
2038 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2039 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2043 if $ac_cache_corrupted; then
2044 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2046 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2047 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2048 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2049 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2050 { (exit 1); exit 1; }; }
2070 ac_cpp='$CPP $CPPFLAGS'
2071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2079 # MICRO_VERSION += 1;
2080 # INTERFACE_AGE += 1;
2082 # if any functions have been added, set INTERFACE_AGE to 0.
2083 # if backwards compatibility has been broken,
2084 # set BINARY_AGE and INTERFACE_AGE to 0.
2091 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
2100 # libtool versioning
2103 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2104 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2109 macro_version='2.2.6'
2110 macro_revision='1.3012'
2124 ltmain="$ac_aux_dir/ltmain.sh"
2127 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2128 if test -f "$ac_dir/install-sh"; then
2130 ac_install_sh="$ac_aux_dir/install-sh -c"
2132 elif test -f "$ac_dir/install.sh"; then
2134 ac_install_sh="$ac_aux_dir/install.sh -c"
2136 elif test -f "$ac_dir/shtool"; then
2138 ac_install_sh="$ac_aux_dir/shtool install -c"
2142 if test -z "$ac_aux_dir"; then
2143 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2144 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2145 { (exit 1); exit 1; }; }
2148 # These three variables are undocumented and unsupported,
2149 # and are intended to be withdrawn in a future Autoconf release.
2150 # They can cause serious problems if a builder's source tree is in a directory
2151 # whose full name contains unusual characters.
2152 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2153 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2154 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2157 # Make sure we can run config.sub.
2158 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2159 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2160 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2161 { (exit 1); exit 1; }; }
2163 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2164 $as_echo_n "checking build system type... " >&6; }
2165 if test "${ac_cv_build+set}" = set; then
2166 $as_echo_n "(cached) " >&6
2168 ac_build_alias=$build_alias
2169 test "x$ac_build_alias" = x &&
2170 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2171 test "x$ac_build_alias" = x &&
2172 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2173 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2174 { (exit 1); exit 1; }; }
2175 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2176 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2177 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2178 { (exit 1); exit 1; }; }
2181 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2182 $as_echo "$ac_cv_build" >&6; }
2183 case $ac_cv_build in
2185 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2186 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2187 { (exit 1); exit 1; }; };;
2190 ac_save_IFS=$IFS; IFS='-'
2196 # Remember, the first character of IFS is used to create $*,
2197 # except with old shells:
2200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2203 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2204 $as_echo_n "checking host system type... " >&6; }
2205 if test "${ac_cv_host+set}" = set; then
2206 $as_echo_n "(cached) " >&6
2208 if test "x$host_alias" = x; then
2209 ac_cv_host=$ac_cv_build
2211 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2212 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2213 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2214 { (exit 1); exit 1; }; }
2218 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2219 $as_echo "$ac_cv_host" >&6; }
2222 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2223 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2224 { (exit 1); exit 1; }; };;
2227 ac_save_IFS=$IFS; IFS='-'
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2237 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245 if test -n "$ac_tool_prefix"; then
2246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2247 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2248 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2249 $as_echo_n "checking for $ac_word... " >&6; }
2250 if test "${ac_cv_prog_CC+set}" = set; then
2251 $as_echo_n "(cached) " >&6
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 test -z "$as_dir" && as_dir=.
2261 for ac_exec_ext in '' $ac_executable_extensions; do
2262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2263 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2274 if test -n "$CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2276 $as_echo "$CC" >&6; }
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2284 if test -z "$ac_cv_prog_CC"; then
2286 # Extract the first word of "gcc", so it can be a program name with args.
2287 set dummy gcc; ac_word=$2
2288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 $as_echo_n "checking for $ac_word... " >&6; }
2290 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2291 $as_echo_n "(cached) " >&6
2293 if test -n "$ac_ct_CC"; then
2294 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2303 ac_cv_prog_ac_ct_CC="gcc"
2304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2316 $as_echo "$ac_ct_CC" >&6; }
2318 { $as_echo "$as_me:$LINENO: result: no" >&5
2319 $as_echo "no" >&6; }
2322 if test "x$ac_ct_CC" = x; then
2325 case $cross_compiling:$ac_tool_warned in
2327 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2329 ac_tool_warned=yes ;;
2337 if test -z "$CC"; then
2338 if test -n "$ac_tool_prefix"; then
2339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2340 set dummy ${ac_tool_prefix}cc; ac_word=$2
2341 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 $as_echo_n "checking for $ac_word... " >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 $as_echo_n "(cached) " >&6
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CC="${ac_tool_prefix}cc"
2357 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 if test -n "$CC"; then
2368 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2369 $as_echo "$CC" >&6; }
2371 { $as_echo "$as_me:$LINENO: result: no" >&5
2372 $as_echo "no" >&6; }
2378 if test -z "$CC"; then
2379 # Extract the first word of "cc", so it can be a program name with args.
2380 set dummy cc; ac_word=$2
2381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 $as_echo_n "checking for $ac_word... " >&6; }
2383 if test "${ac_cv_prog_CC+set}" = set; then
2384 $as_echo_n "(cached) " >&6
2386 if test -n "$CC"; then
2387 ac_cv_prog_CC="$CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2398 ac_prog_rejected=yes
2402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test $ac_prog_rejected = yes; then
2410 # We found a bogon in the path, so make sure we never use it.
2411 set dummy $ac_cv_prog_CC
2413 if test $# != 0; then
2414 # We chose a different compiler from the bogus one.
2415 # However, it has the same basename, so the bogon will be chosen
2416 # first if we set CC to just the basename; use the full file name.
2418 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2424 if test -n "$CC"; then
2425 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2426 $as_echo "$CC" >&6; }
2428 { $as_echo "$as_me:$LINENO: result: no" >&5
2429 $as_echo "no" >&6; }
2434 if test -z "$CC"; then
2435 if test -n "$ac_tool_prefix"; then
2436 for ac_prog in cl.exe
2438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 $as_echo_n "checking for $ac_word... " >&6; }
2442 if test "${ac_cv_prog_CC+set}" = set; then
2443 $as_echo_n "(cached) " >&6
2445 if test -n "$CC"; then
2446 ac_cv_prog_CC="$CC" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 if test -n "$CC"; then
2467 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2468 $as_echo "$CC" >&6; }
2470 { $as_echo "$as_me:$LINENO: result: no" >&5
2471 $as_echo "no" >&6; }
2475 test -n "$CC" && break
2478 if test -z "$CC"; then
2480 for ac_prog in cl.exe
2482 # Extract the first word of "$ac_prog", so it can be a program name with args.
2483 set dummy $ac_prog; ac_word=$2
2484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2487 $as_echo_n "(cached) " >&6
2489 if test -n "$ac_ct_CC"; then
2490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_ac_ct_CC="$ac_prog"
2500 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2510 if test -n "$ac_ct_CC"; then
2511 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2512 $as_echo "$ac_ct_CC" >&6; }
2514 { $as_echo "$as_me:$LINENO: result: no" >&5
2515 $as_echo "no" >&6; }
2519 test -n "$ac_ct_CC" && break
2522 if test "x$ac_ct_CC" = x; then
2525 case $cross_compiling:$ac_tool_warned in
2527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2529 ac_tool_warned=yes ;;
2538 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2541 See \`config.log' for more details." >&5
2542 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2543 See \`config.log' for more details." >&2;}
2544 { (exit 1); exit 1; }; }; }
2546 # Provide some information about the compiler.
2547 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2550 { (ac_try="$ac_compiler --version >&5"
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2556 $as_echo "$ac_try_echo") >&5
2557 (eval "$ac_compiler --version >&5") 2>&5
2559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2561 { (ac_try="$ac_compiler -v >&5"
2563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2564 *) ac_try_echo=$ac_try;;
2566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2567 $as_echo "$ac_try_echo") >&5
2568 (eval "$ac_compiler -v >&5") 2>&5
2570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }
2572 { (ac_try="$ac_compiler -V >&5"
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2578 $as_echo "$ac_try_echo") >&5
2579 (eval "$ac_compiler -V >&5") 2>&5
2581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2584 cat >conftest.$ac_ext <<_ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h. */
2599 ac_clean_files_save=$ac_clean_files
2600 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2601 # Try to create an executable without -o first, disregard a.out.
2602 # It will help us diagnose broken compilers, and finding out an intuition
2604 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2605 $as_echo_n "checking for C compiler default output file name... " >&6; }
2606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2608 # The possible output files:
2609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2612 for ac_file in $ac_files
2615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2616 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2621 if { (ac_try="$ac_link_default"
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2627 $as_echo "$ac_try_echo") >&5
2628 (eval "$ac_link_default") 2>&5
2630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; then
2632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2634 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2635 # so that the user can short-circuit this test for compilers unknown to
2637 for ac_file in $ac_files ''
2639 test -f "$ac_file" || continue
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2644 # We found the default executable, but exeext='' is most
2648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 # We set ac_cv_exeext here because the later test for it is not
2653 # safe: cross compilers may not add the suffix if given an `-o'
2654 # argument, so we may need to know it at that point already.
2655 # Even if this section looks crufty: it has the advantage of
2662 test "$ac_cv_exeext" = no && ac_cv_exeext=
2668 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2669 $as_echo "$ac_file" >&6; }
2670 if test -z "$ac_file"; then
2671 $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2674 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2677 See \`config.log' for more details." >&5
2678 $as_echo "$as_me: error: C compiler cannot create executables
2679 See \`config.log' for more details." >&2;}
2680 { (exit 77); exit 77; }; }; }
2683 ac_exeext=$ac_cv_exeext
2685 # Check that the compiler produces executables we can run. If not, either
2686 # the compiler is broken, or we cross compile.
2687 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2688 $as_echo_n "checking whether the C compiler works... " >&6; }
2689 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2690 # If not cross compiling, check that we can run a simple program.
2691 if test "$cross_compiling" != yes; then
2692 if { ac_try='./$ac_file'
2693 { (case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2698 $as_echo "$ac_try_echo") >&5
2699 (eval "$ac_try") 2>&5
2701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2705 if test "$cross_compiling" = maybe; then
2708 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2711 If you meant to cross compile, use \`--host'.
2712 See \`config.log' for more details." >&5
2713 $as_echo "$as_me: error: cannot run C compiled programs.
2714 If you meant to cross compile, use \`--host'.
2715 See \`config.log' for more details." >&2;}
2716 { (exit 1); exit 1; }; }; }
2720 { $as_echo "$as_me:$LINENO: result: yes" >&5
2721 $as_echo "yes" >&6; }
2723 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2724 ac_clean_files=$ac_clean_files_save
2725 # Check that the compiler produces executables we can run. If not, either
2726 # the compiler is broken, or we cross compile.
2727 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2728 $as_echo_n "checking whether we are cross compiling... " >&6; }
2729 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2730 $as_echo "$cross_compiling" >&6; }
2732 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2733 $as_echo_n "checking for suffix of executables... " >&6; }
2734 if { (ac_try="$ac_link"
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2740 $as_echo "$ac_try_echo") >&5
2741 (eval "$ac_link") 2>&5
2743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
2745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2747 # work properly (i.e., refer to `conftest.exe'), while it won't with
2749 for ac_file in conftest.exe conftest conftest.*; do
2750 test -f "$ac_file" || continue
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2762 See \`config.log' for more details." >&5
2763 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2764 See \`config.log' for more details." >&2;}
2765 { (exit 1); exit 1; }; }; }
2768 rm -f conftest$ac_cv_exeext
2769 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2770 $as_echo "$ac_cv_exeext" >&6; }
2772 rm -f conftest.$ac_ext
2773 EXEEXT=$ac_cv_exeext
2775 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2776 $as_echo_n "checking for suffix of object files... " >&6; }
2777 if test "${ac_cv_objext+set}" = set; then
2778 $as_echo_n "(cached) " >&6
2780 cat >conftest.$ac_ext <<_ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2795 rm -f conftest.o conftest.obj
2796 if { (ac_try="$ac_compile"
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803 (eval "$ac_compile") 2>&5
2805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; then
2807 for ac_file in conftest.o conftest.obj conftest.*; do
2808 test -f "$ac_file" || continue;
2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2811 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2822 See \`config.log' for more details." >&5
2823 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2824 See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }; }
2828 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2830 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2831 $as_echo "$ac_cv_objext" >&6; }
2832 OBJEXT=$ac_cv_objext
2834 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2835 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2836 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2837 $as_echo_n "(cached) " >&6
2839 cat >conftest.$ac_ext <<_ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2857 rm -f conftest.$ac_objext
2858 if { (ac_try="$ac_compile"
2860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861 *) ac_try_echo=$ac_try;;
2863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2864 $as_echo "$ac_try_echo") >&5
2865 (eval "$ac_compile") 2>conftest.er1
2867 grep -v '^ *+' conftest.er1 >conftest.err
2869 cat conftest.err >&5
2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); } && {
2872 test -z "$ac_c_werror_flag" ||
2873 test ! -s conftest.err
2874 } && test -s conftest.$ac_objext; then
2877 $as_echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2887 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2888 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2889 if test $ac_compiler_gnu = yes; then
2894 ac_test_CFLAGS=${CFLAGS+set}
2895 ac_save_CFLAGS=$CFLAGS
2896 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2897 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2898 if test "${ac_cv_prog_cc_g+set}" = set; then
2899 $as_echo_n "(cached) " >&6
2901 ac_save_c_werror_flag=$ac_c_werror_flag
2902 ac_c_werror_flag=yes
2905 cat >conftest.$ac_ext <<_ACEOF
2908 cat confdefs.h >>conftest.$ac_ext
2909 cat >>conftest.$ac_ext <<_ACEOF
2910 /* end confdefs.h. */
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2927 $as_echo "$ac_try_echo") >&5
2928 (eval "$ac_compile") 2>conftest.er1
2930 grep -v '^ *+' conftest.er1 >conftest.err
2932 cat conftest.err >&5
2933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } && {
2935 test -z "$ac_c_werror_flag" ||
2936 test ! -s conftest.err
2937 } && test -s conftest.$ac_objext; then
2940 $as_echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2966 $as_echo "$ac_try_echo") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest.$ac_objext; then
2979 $as_echo "$as_me: failed program was:" >&5
2980 sed 's/^/| /' conftest.$ac_ext >&5
2982 ac_c_werror_flag=$ac_save_c_werror_flag
2984 cat >conftest.$ac_ext <<_ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2999 rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007 (eval "$ac_compile") 2>conftest.er1
3009 grep -v '^ *+' conftest.er1 >conftest.err
3011 cat conftest.err >&5
3012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); } && {
3014 test -z "$ac_c_werror_flag" ||
3015 test ! -s conftest.err
3016 } && test -s conftest.$ac_objext; then
3019 $as_echo "$as_me: failed program was:" >&5
3020 sed 's/^/| /' conftest.$ac_ext >&5
3025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_c_werror_flag=$ac_save_c_werror_flag
3034 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3035 $as_echo "$ac_cv_prog_cc_g" >&6; }
3036 if test "$ac_test_CFLAGS" = set; then
3037 CFLAGS=$ac_save_CFLAGS
3038 elif test $ac_cv_prog_cc_g = yes; then
3039 if test "$GCC" = yes; then
3045 if test "$GCC" = yes; then
3051 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3052 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3053 if test "${ac_cv_prog_cc_c89+set}" = set; then
3054 $as_echo_n "(cached) " >&6
3056 ac_cv_prog_cc_c89=no
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3066 #include <sys/types.h>
3067 #include <sys/stat.h>
3068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3069 struct buf { int x; };
3070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3071 static char *e (p, i)
3077 static char *f (char * (*g) (char **, int), char **p, ...)
3082 s = g (p, va_arg (v,int));
3087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3088 function prototypes and stuff, but not '\xHH' hex character constants.
3089 These don't provoke an error unfortunately, instead are silently treated
3090 as 'x'. The following induces an error, until -std is added to get
3091 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3092 array size at least. It's necessary to write '\x00'==0 to get something
3093 that's true only with -std. */
3094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3097 inside strings and character constants. */
3099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3101 int test (int i, double x);
3102 struct s1 {int (*f) (int a);};
3103 struct s2 {int (*f) (double a);};
3104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3110 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3116 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3118 CC="$ac_save_CC $ac_arg"
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3126 $as_echo "$ac_try_echo") >&5
3127 (eval "$ac_compile") 2>conftest.er1
3129 grep -v '^ *+' conftest.er1 >conftest.err
3131 cat conftest.err >&5
3132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); } && {
3134 test -z "$ac_c_werror_flag" ||
3135 test ! -s conftest.err
3136 } && test -s conftest.$ac_objext; then
3137 ac_cv_prog_cc_c89=$ac_arg
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3145 rm -f core conftest.err conftest.$ac_objext
3146 test "x$ac_cv_prog_cc_c89" != "xno" && break
3148 rm -f conftest.$ac_ext
3153 case "x$ac_cv_prog_cc_c89" in
3155 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3156 $as_echo "none needed" >&6; } ;;
3158 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3159 $as_echo "unsupported" >&6; } ;;
3161 CC="$CC $ac_cv_prog_cc_c89"
3162 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3163 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3174 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3175 if test "${ac_cv_path_SED+set}" = set; then
3176 $as_echo_n "(cached) " >&6
3178 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3179 for ac_i in 1 2 3 4 5 6 7; do
3180 ac_script="$ac_script$as_nl$ac_script"
3182 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3183 $as_unset ac_script || ac_script=
3184 if test -z "$SED"; then
3185 ac_path_SED_found=false
3186 # Loop through the user's path and test for each of PROGNAME-LIST
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_prog in sed gsed; do
3193 for ac_exec_ext in '' $ac_executable_extensions; do
3194 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3195 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3196 # Check for GNU ac_path_SED and select it if it is found.
3197 # Check for GNU $ac_path_SED
3198 case `"$ac_path_SED" --version 2>&1` in
3200 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3203 $as_echo_n 0123456789 >"conftest.in"
3206 cat "conftest.in" "conftest.in" >"conftest.tmp"
3207 mv "conftest.tmp" "conftest.in"
3208 cp "conftest.in" "conftest.nl"
3209 $as_echo '' >> "conftest.nl"
3210 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3212 ac_count=`expr $ac_count + 1`
3213 if test $ac_count -gt ${ac_path_SED_max-0}; then
3214 # Best one so far, save it but keep looking for a better one
3215 ac_cv_path_SED="$ac_path_SED"
3216 ac_path_SED_max=$ac_count
3218 # 10*(2^10) chars as input seems more than enough
3219 test $ac_count -gt 10 && break
3221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3224 $ac_path_SED_found && break 3
3229 if test -z "$ac_cv_path_SED"; then
3230 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3231 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3232 { (exit 1); exit 1; }; }
3239 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3240 $as_echo "$ac_cv_path_SED" >&6; }
3241 SED="$ac_cv_path_SED"
3244 test -z "$SED" && SED=sed
3245 Xsed="$SED -e 1s/^X//"
3257 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3258 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3259 if test "${ac_cv_path_GREP+set}" = set; then
3260 $as_echo_n "(cached) " >&6
3262 if test -z "$GREP"; then
3263 ac_path_GREP_found=false
3264 # Loop through the user's path and test for each of PROGNAME-LIST
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3269 test -z "$as_dir" && as_dir=.
3270 for ac_prog in grep ggrep; do
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3273 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3274 # Check for GNU ac_path_GREP and select it if it is found.
3275 # Check for GNU $ac_path_GREP
3276 case `"$ac_path_GREP" --version 2>&1` in
3278 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3281 $as_echo_n 0123456789 >"conftest.in"
3284 cat "conftest.in" "conftest.in" >"conftest.tmp"
3285 mv "conftest.tmp" "conftest.in"
3286 cp "conftest.in" "conftest.nl"
3287 $as_echo 'GREP' >> "conftest.nl"
3288 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3290 ac_count=`expr $ac_count + 1`
3291 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3292 # Best one so far, save it but keep looking for a better one
3293 ac_cv_path_GREP="$ac_path_GREP"
3294 ac_path_GREP_max=$ac_count
3296 # 10*(2^10) chars as input seems more than enough
3297 test $ac_count -gt 10 && break
3299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3302 $ac_path_GREP_found && break 3
3307 if test -z "$ac_cv_path_GREP"; then
3308 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3309 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3310 { (exit 1); exit 1; }; }
3313 ac_cv_path_GREP=$GREP
3317 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3318 $as_echo "$ac_cv_path_GREP" >&6; }
3319 GREP="$ac_cv_path_GREP"
3322 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3323 $as_echo_n "checking for egrep... " >&6; }
3324 if test "${ac_cv_path_EGREP+set}" = set; then
3325 $as_echo_n "(cached) " >&6
3327 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3328 then ac_cv_path_EGREP="$GREP -E"
3330 if test -z "$EGREP"; then
3331 ac_path_EGREP_found=false
3332 # Loop through the user's path and test for each of PROGNAME-LIST
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3337 test -z "$as_dir" && as_dir=.
3338 for ac_prog in egrep; do
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3341 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3342 # Check for GNU ac_path_EGREP and select it if it is found.
3343 # Check for GNU $ac_path_EGREP
3344 case `"$ac_path_EGREP" --version 2>&1` in
3346 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3349 $as_echo_n 0123456789 >"conftest.in"
3352 cat "conftest.in" "conftest.in" >"conftest.tmp"
3353 mv "conftest.tmp" "conftest.in"
3354 cp "conftest.in" "conftest.nl"
3355 $as_echo 'EGREP' >> "conftest.nl"
3356 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3357 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3358 ac_count=`expr $ac_count + 1`
3359 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3360 # Best one so far, save it but keep looking for a better one
3361 ac_cv_path_EGREP="$ac_path_EGREP"
3362 ac_path_EGREP_max=$ac_count
3364 # 10*(2^10) chars as input seems more than enough
3365 test $ac_count -gt 10 && break
3367 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3370 $ac_path_EGREP_found && break 3
3375 if test -z "$ac_cv_path_EGREP"; then
3376 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3377 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3378 { (exit 1); exit 1; }; }
3381 ac_cv_path_EGREP=$EGREP
3386 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3387 $as_echo "$ac_cv_path_EGREP" >&6; }
3388 EGREP="$ac_cv_path_EGREP"
3391 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3392 $as_echo_n "checking for fgrep... " >&6; }
3393 if test "${ac_cv_path_FGREP+set}" = set; then
3394 $as_echo_n "(cached) " >&6
3396 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3397 then ac_cv_path_FGREP="$GREP -F"
3399 if test -z "$FGREP"; then
3400 ac_path_FGREP_found=false
3401 # Loop through the user's path and test for each of PROGNAME-LIST
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3406 test -z "$as_dir" && as_dir=.
3407 for ac_prog in fgrep; do
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3410 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3411 # Check for GNU ac_path_FGREP and select it if it is found.
3412 # Check for GNU $ac_path_FGREP
3413 case `"$ac_path_FGREP" --version 2>&1` in
3415 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3418 $as_echo_n 0123456789 >"conftest.in"
3421 cat "conftest.in" "conftest.in" >"conftest.tmp"
3422 mv "conftest.tmp" "conftest.in"
3423 cp "conftest.in" "conftest.nl"
3424 $as_echo 'FGREP' >> "conftest.nl"
3425 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3427 ac_count=`expr $ac_count + 1`
3428 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3429 # Best one so far, save it but keep looking for a better one
3430 ac_cv_path_FGREP="$ac_path_FGREP"
3431 ac_path_FGREP_max=$ac_count
3433 # 10*(2^10) chars as input seems more than enough
3434 test $ac_count -gt 10 && break
3436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3439 $ac_path_FGREP_found && break 3
3444 if test -z "$ac_cv_path_FGREP"; then
3445 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3446 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3447 { (exit 1); exit 1; }; }
3450 ac_cv_path_FGREP=$FGREP
3455 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3456 $as_echo "$ac_cv_path_FGREP" >&6; }
3457 FGREP="$ac_cv_path_FGREP"
3460 test -z "$GREP" && GREP=grep
3480 # Check whether --with-gnu-ld was given.
3481 if test "${with_gnu_ld+set}" = set; then
3482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3488 if test "$GCC" = yes; then
3489 # Check if gcc -print-prog-name=ld gives a path.
3490 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3491 $as_echo_n "checking for ld used by $CC... " >&6; }
3494 # gcc leaves a trailing carriage return which upsets mingw
3495 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3497 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3500 # Accept absolute paths.
3502 re_direlt='/[^/][^/]*/\.\./'
3503 # Canonicalize the pathname of ld
3504 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3505 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3506 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3508 test -z "$LD" && LD="$ac_prog"
3511 # If it fails, then pretend we aren't using GCC.
3515 # If it is relative, then search for the first ld in PATH.
3519 elif test "$with_gnu_ld" = yes; then
3520 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3521 $as_echo_n "checking for GNU ld... " >&6; }
3523 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3524 $as_echo_n "checking for non-GNU ld... " >&6; }
3526 if test "${lt_cv_path_LD+set}" = set; then
3527 $as_echo_n "(cached) " >&6
3529 if test -z "$LD"; then
3530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3531 for ac_dir in $PATH; do
3533 test -z "$ac_dir" && ac_dir=.
3534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3535 lt_cv_path_LD="$ac_dir/$ac_prog"
3536 # Check to see if the program is GNU ld. I'd rather use --version,
3537 # but apparently some variants of GNU ld only accept -v.
3538 # Break only if it was the GNU/non-GNU ld that we prefer.
3539 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3540 *GNU* | *'with BFD'*)
3541 test "$with_gnu_ld" != no && break
3544 test "$with_gnu_ld" != yes && break
3551 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3556 if test -n "$LD"; then
3557 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3558 $as_echo "$LD" >&6; }
3560 { $as_echo "$as_me:$LINENO: result: no" >&5
3561 $as_echo "no" >&6; }
3563 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3564 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3565 { (exit 1); exit 1; }; }
3566 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3567 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3568 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3569 $as_echo_n "(cached) " >&6
3571 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3572 case `$LD -v 2>&1 </dev/null` in
3573 *GNU* | *'with BFD'*)
3574 lt_cv_prog_gnu_ld=yes
3577 lt_cv_prog_gnu_ld=no
3581 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3582 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3583 with_gnu_ld=$lt_cv_prog_gnu_ld
3593 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3594 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3595 if test "${lt_cv_path_NM+set}" = set; then
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$NM"; then
3599 # Let the user override the test.
3602 lt_nm_to_check="${ac_tool_prefix}nm"
3603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3604 lt_nm_to_check="$lt_nm_to_check nm"
3606 for lt_tmp_nm in $lt_nm_to_check; do
3607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3610 test -z "$ac_dir" && ac_dir=.
3611 tmp_nm="$ac_dir/$lt_tmp_nm"
3612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3613 # Check to see if the nm accepts a BSD-compat flag.
3614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3615 # nm: unknown option "B" ignored
3616 # Tru64's nm complains that /dev/null is an invalid object file
3617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3618 */dev/null* | *'Invalid file or object type'*)
3619 lt_cv_path_NM="$tmp_nm -B"
3623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3625 lt_cv_path_NM="$tmp_nm -p"
3629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3630 continue # so that we can try to find one that supports BSD flags
3639 : ${lt_cv_path_NM=no}
3642 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3643 $as_echo "$lt_cv_path_NM" >&6; }
3644 if test "$lt_cv_path_NM" != "no"; then
3647 # Didn't find any BSD compatible name lister, look for dumpbin.
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 $as_echo_n "checking for $ac_word... " >&6; }
3655 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3656 $as_echo_n "(cached) " >&6
3658 if test -n "$DUMPBIN"; then
3659 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3678 DUMPBIN=$ac_cv_prog_DUMPBIN
3679 if test -n "$DUMPBIN"; then
3680 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3681 $as_echo "$DUMPBIN" >&6; }
3683 { $as_echo "$as_me:$LINENO: result: no" >&5
3684 $as_echo "no" >&6; }
3688 test -n "$DUMPBIN" && break
3691 if test -z "$DUMPBIN"; then
3692 ac_ct_DUMPBIN=$DUMPBIN
3693 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$ac_ct_DUMPBIN"; then
3703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3723 if test -n "$ac_ct_DUMPBIN"; then
3724 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3725 $as_echo "$ac_ct_DUMPBIN" >&6; }
3727 { $as_echo "$as_me:$LINENO: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$ac_ct_DUMPBIN" && break
3735 if test "x$ac_ct_DUMPBIN" = x; then
3738 case $cross_compiling:$ac_tool_warned in
3740 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned=yes ;;
3744 DUMPBIN=$ac_ct_DUMPBIN
3749 if test "$DUMPBIN" != ":"; then
3753 test -z "$NM" && NM=nm
3760 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3761 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3762 if test "${lt_cv_nm_interface+set}" = set; then
3763 $as_echo_n "(cached) " >&6
3765 lt_cv_nm_interface="BSD nm"
3766 echo "int some_variable = 0;" > conftest.$ac_ext
3767 (eval echo "\"\$as_me:3767: $ac_compile\"" >&5)
3768 (eval "$ac_compile" 2>conftest.err)
3769 cat conftest.err >&5
3770 (eval echo "\"\$as_me:3770: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3771 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3772 cat conftest.err >&5
3773 (eval echo "\"\$as_me:3773: output\"" >&5)
3774 cat conftest.out >&5
3775 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3776 lt_cv_nm_interface="MS dumpbin"
3780 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3781 $as_echo "$lt_cv_nm_interface" >&6; }
3783 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3784 $as_echo_n "checking whether ln -s works... " >&6; }
3786 if test "$LN_S" = "ln -s"; then
3787 { $as_echo "$as_me:$LINENO: result: yes" >&5
3788 $as_echo "yes" >&6; }
3790 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3791 $as_echo "no, using $LN_S" >&6; }
3794 # find the maximum length of command line arguments
3795 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3796 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3797 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3798 $as_echo_n "(cached) " >&6
3805 # On DJGPP, this test can blow up pretty badly due to problems in libc
3806 # (any single argument exceeding 2000 bytes causes a buffer overrun
3807 # during glob expansion). Even if it were fixed, the result of this
3808 # check would be larger than it should be.
3809 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3813 # Under GNU Hurd, this test is not required because there is
3814 # no limit to the length of command line arguments.
3815 # Libtool will interpret -1 as no limit whatsoever
3816 lt_cv_sys_max_cmd_len=-1;
3819 cygwin* | mingw* | cegcc*)
3820 # On Win9x/ME, this test blows up -- it succeeds, but takes
3821 # about 5 minutes as the teststring grows exponentially.
3822 # Worse, since 9x/ME are not pre-emptively multitasking,
3823 # you end up with a "frozen" computer, even though with patience
3824 # the test eventually succeeds (with a max line length of 256k).
3825 # Instead, let's just punt: use the minimum linelength reported by
3826 # all of the supported platforms: 8192 (on NT/2K/XP).
3827 lt_cv_sys_max_cmd_len=8192;
3831 # On BeOS, this test takes a really really long time.
3832 # So we just punt and use a minimum line length of 8192.
3833 lt_cv_sys_max_cmd_len=8192;
3837 # On AmigaOS with pdksh, this test takes hours, literally.
3838 # So we just punt and use a minimum line length of 8192.
3839 lt_cv_sys_max_cmd_len=8192;
3842 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3843 # This has been around since 386BSD, at least. Likely further.
3844 if test -x /sbin/sysctl; then
3845 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3846 elif test -x /usr/sbin/sysctl; then
3847 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3849 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3851 # And add a safety zone
3852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3857 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3858 lt_cv_sys_max_cmd_len=196608
3862 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3863 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3864 # nice to cause kernel panics so lets avoid the loop below.
3865 # First set a reasonable default.
3866 lt_cv_sys_max_cmd_len=16384
3868 if test -x /sbin/sysconfig; then
3869 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3870 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3875 lt_cv_sys_max_cmd_len=102400
3877 sysv5* | sco5v6* | sysv4.2uw2*)
3878 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3879 if test -n "$kargmax"; then
3880 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3882 lt_cv_sys_max_cmd_len=32768
3886 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3887 if test -n "$lt_cv_sys_max_cmd_len"; then
3888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3891 # Make teststring a little bigger before we do anything with it.
3892 # a 1K string should be a reasonable start.
3893 for i in 1 2 3 4 5 6 7 8 ; do
3894 teststring=$teststring$teststring
3896 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3897 # If test is not a shell built-in, we'll probably end up computing a
3898 # maximum length that is only half of the actual maximum length, but
3900 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3901 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3902 test $i != 17 # 1/2 MB should be enough
3905 teststring=$teststring$teststring
3907 # Only check the string length outside the loop.
3908 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3910 # Add a significant safety factor because C++ compilers can tack on
3911 # massive amounts of additional arguments before passing them to the
3912 # linker. It appears as though 1/2 is a usable value.
3913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3920 if test -n $lt_cv_sys_max_cmd_len ; then
3921 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3922 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3924 { $as_echo "$as_me:$LINENO: result: none" >&5
3925 $as_echo "none" >&6; }
3927 max_cmd_len=$lt_cv_sys_max_cmd_len
3938 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3939 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3940 # Try some XSI features
3943 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3945 && eval 'test $(( 1 + 1 )) -eq 2 \
3946 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3948 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3949 $as_echo "$xsi_shell" >&6; }
3952 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3953 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3955 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3957 && lt_shell_append=yes
3958 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3959 $as_echo "$lt_shell_append" >&6; }
3962 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3972 # test EBCDIC or ASCII
3973 case `echo X|tr X '\101'` in
3974 A) # ASCII based system
3975 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3976 lt_SP2NL='tr \040 \012'
3977 lt_NL2SP='tr \015\012 \040\040'
3979 *) # EBCDIC based system
3980 lt_SP2NL='tr \100 \n'
3981 lt_NL2SP='tr \r\n \100\100'
3993 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3994 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3995 if test "${lt_cv_ld_reload_flag+set}" = set; then
3996 $as_echo_n "(cached) " >&6
3998 lt_cv_ld_reload_flag='-r'
4000 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4001 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4002 reload_flag=$lt_cv_ld_reload_flag
4003 case $reload_flag in
4005 *) reload_flag=" $reload_flag" ;;
4007 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4010 if test "$GCC" = yes; then
4011 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4026 if test -n "$ac_tool_prefix"; then
4027 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4028 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4032 $as_echo_n "(cached) " >&6
4034 if test -n "$OBJDUMP"; then
4035 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4044 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4045 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 OBJDUMP=$ac_cv_prog_OBJDUMP
4055 if test -n "$OBJDUMP"; then
4056 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4057 $as_echo "$OBJDUMP" >&6; }
4059 { $as_echo "$as_me:$LINENO: result: no" >&5
4060 $as_echo "no" >&6; }
4065 if test -z "$ac_cv_prog_OBJDUMP"; then
4066 ac_ct_OBJDUMP=$OBJDUMP
4067 # Extract the first word of "objdump", so it can be a program name with args.
4068 set dummy objdump; ac_word=$2
4069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4072 $as_echo_n "(cached) " >&6
4074 if test -n "$ac_ct_OBJDUMP"; then
4075 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4084 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4095 if test -n "$ac_ct_OBJDUMP"; then
4096 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4097 $as_echo "$ac_ct_OBJDUMP" >&6; }
4099 { $as_echo "$as_me:$LINENO: result: no" >&5
4100 $as_echo "no" >&6; }
4103 if test "x$ac_ct_OBJDUMP" = x; then
4106 case $cross_compiling:$ac_tool_warned in
4108 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4112 OBJDUMP=$ac_ct_OBJDUMP
4115 OBJDUMP="$ac_cv_prog_OBJDUMP"
4118 test -z "$OBJDUMP" && OBJDUMP=objdump
4125 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4126 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4127 if test "${lt_cv_deplibs_check_method+set}" = set; then
4128 $as_echo_n "(cached) " >&6
4130 lt_cv_file_magic_cmd='$MAGIC_CMD'
4131 lt_cv_file_magic_test_file=
4132 lt_cv_deplibs_check_method='unknown'
4133 # Need to set the preceding variable on all platforms that support
4134 # interlibrary dependencies.
4135 # 'none' -- dependencies not supported.
4136 # `unknown' -- same as none, but documents that we really don't know.
4137 # 'pass_all' -- all dependencies passed with no checks.
4138 # 'test_compile' -- check by making test program.
4139 # 'file_magic [[regex]]' -- check by looking for files in library path
4140 # which responds to the $file_magic_cmd with a given extended regex.
4141 # If you have `file' or equivalent on your system and you're not sure
4142 # whether `pass_all' will *always* work, you probably want this one.
4146 lt_cv_deplibs_check_method=pass_all
4150 lt_cv_deplibs_check_method=pass_all
4154 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4155 lt_cv_file_magic_cmd='/usr/bin/file -L'
4156 lt_cv_file_magic_test_file=/shlib/libc.so
4160 # func_win32_libid is a shell function defined in ltmain.sh
4161 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4162 lt_cv_deplibs_check_method=pass_all
4163 lt_cv_file_magic_cmd='func_win32_libid'
4167 # Base MSYS/MinGW do not provide the 'file' command needed by
4168 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4169 # unless we find 'file', for example because we are cross-compiling.
4170 if ( file / ) >/dev/null 2>&1; then
4171 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4172 lt_cv_file_magic_cmd='func_win32_libid'
4174 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4175 lt_cv_file_magic_cmd='$OBJDUMP -f'
4177 lt_cv_deplibs_check_method=pass_all
4181 # use the weaker test based on 'objdump'. See mingw*.
4182 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4183 lt_cv_file_magic_cmd='$OBJDUMP -f'
4186 darwin* | rhapsody*)
4187 lt_cv_deplibs_check_method=pass_all
4190 freebsd* | dragonfly*)
4191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4194 # Not sure whether the presence of OpenBSD here was a mistake.
4195 # Let's accept both of them until this is cleared up.
4196 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4197 lt_cv_file_magic_cmd=/usr/bin/file
4198 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4202 lt_cv_deplibs_check_method=pass_all
4207 lt_cv_deplibs_check_method=pass_all
4210 hpux10.20* | hpux11*)
4211 lt_cv_file_magic_cmd=/usr/bin/file
4214 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4215 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4218 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]'
4219 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4222 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4223 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4229 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4233 irix5* | irix6* | nonstopux*)
4235 *-32|*"-32 ") libmagic=32-bit;;
4236 *-n32|*"-n32 ") libmagic=N32;;
4237 *-64|*"-64 ") libmagic=64-bit;;
4238 *) libmagic=never-match;;
4240 lt_cv_deplibs_check_method=pass_all
4243 # This must be Linux ELF.
4244 linux* | k*bsd*-gnu)
4245 lt_cv_deplibs_check_method=pass_all
4249 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4252 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4258 lt_cv_file_magic_cmd=/usr/bin/file
4259 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4263 lt_cv_deplibs_check_method=pass_all
4267 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4270 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4274 osf3* | osf4* | osf5*)
4275 lt_cv_deplibs_check_method=pass_all
4279 lt_cv_deplibs_check_method=pass_all
4283 lt_cv_deplibs_check_method=pass_all
4286 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4287 lt_cv_deplibs_check_method=pass_all
4291 case $host_vendor in
4293 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]'
4294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4297 lt_cv_deplibs_check_method=pass_all
4300 lt_cv_file_magic_cmd='/bin/file'
4301 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4304 lt_cv_file_magic_cmd='/bin/file'
4305 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4306 lt_cv_file_magic_test_file=/lib/libc.so
4309 lt_cv_deplibs_check_method=pass_all
4312 lt_cv_deplibs_check_method=pass_all
4318 lt_cv_deplibs_check_method=pass_all
4323 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4324 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4325 file_magic_cmd=$lt_cv_file_magic_cmd
4326 deplibs_check_method=$lt_cv_deplibs_check_method
4327 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4340 if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342 set dummy ${ac_tool_prefix}ar; ac_word=$2
4343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if test "${ac_cv_prog_AR+set}" = set; then
4346 $as_echo_n "(cached) " >&6
4348 if test -n "$AR"; then
4349 ac_cv_prog_AR="$AR" # Let the user override the test.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_AR="${ac_tool_prefix}ar"
4359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 if test -n "$AR"; then
4370 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4371 $as_echo "$AR" >&6; }
4373 { $as_echo "$as_me:$LINENO: result: no" >&5
4374 $as_echo "no" >&6; }
4379 if test -z "$ac_cv_prog_AR"; then
4381 # Extract the first word of "ar", so it can be a program name with args.
4382 set dummy ar; ac_word=$2
4383 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4386 $as_echo_n "(cached) " >&6
4388 if test -n "$ac_ct_AR"; then
4389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 test -z "$as_dir" && as_dir=.
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4398 ac_cv_prog_ac_ct_AR="ar"
4399 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4409 if test -n "$ac_ct_AR"; then
4410 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4411 $as_echo "$ac_ct_AR" >&6; }
4413 { $as_echo "$as_me:$LINENO: result: no" >&5
4414 $as_echo "no" >&6; }
4417 if test "x$ac_ct_AR" = x; then
4420 case $cross_compiling:$ac_tool_warned in
4422 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned=yes ;;
4432 test -z "$AR" && AR=ar
4433 test -z "$AR_FLAGS" && AR_FLAGS=cru
4445 if test -n "$ac_tool_prefix"; then
4446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4447 set dummy ${ac_tool_prefix}strip; ac_word=$2
4448 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4449 $as_echo_n "checking for $ac_word... " >&6; }
4450 if test "${ac_cv_prog_STRIP+set}" = set; then
4451 $as_echo_n "(cached) " >&6
4453 if test -n "$STRIP"; then
4454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 STRIP=$ac_cv_prog_STRIP
4474 if test -n "$STRIP"; then
4475 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4476 $as_echo "$STRIP" >&6; }
4478 { $as_echo "$as_me:$LINENO: result: no" >&5
4479 $as_echo "no" >&6; }
4484 if test -z "$ac_cv_prog_STRIP"; then
4486 # Extract the first word of "strip", so it can be a program name with args.
4487 set dummy strip; ac_word=$2
4488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4491 $as_echo_n "(cached) " >&6
4493 if test -n "$ac_ct_STRIP"; then
4494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_ac_ct_STRIP="strip"
4504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4514 if test -n "$ac_ct_STRIP"; then
4515 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4516 $as_echo "$ac_ct_STRIP" >&6; }
4518 { $as_echo "$as_me:$LINENO: result: no" >&5
4519 $as_echo "no" >&6; }
4522 if test "x$ac_ct_STRIP" = x; then
4525 case $cross_compiling:$ac_tool_warned in
4527 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4529 ac_tool_warned=yes ;;
4534 STRIP="$ac_cv_prog_STRIP"
4537 test -z "$STRIP" && STRIP=:
4544 if test -n "$ac_tool_prefix"; then
4545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4546 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 $as_echo_n "checking for $ac_word... " >&6; }
4549 if test "${ac_cv_prog_RANLIB+set}" = set; then
4550 $as_echo_n "(cached) " >&6
4552 if test -n "$RANLIB"; then
4553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 RANLIB=$ac_cv_prog_RANLIB
4573 if test -n "$RANLIB"; then
4574 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4575 $as_echo "$RANLIB" >&6; }
4577 { $as_echo "$as_me:$LINENO: result: no" >&5
4578 $as_echo "no" >&6; }
4583 if test -z "$ac_cv_prog_RANLIB"; then
4584 ac_ct_RANLIB=$RANLIB
4585 # Extract the first word of "ranlib", so it can be a program name with args.
4586 set dummy ranlib; ac_word=$2
4587 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4590 $as_echo_n "(cached) " >&6
4592 if test -n "$ac_ct_RANLIB"; then
4593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_ac_ct_RANLIB="ranlib"
4603 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4613 if test -n "$ac_ct_RANLIB"; then
4614 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4615 $as_echo "$ac_ct_RANLIB" >&6; }
4617 { $as_echo "$as_me:$LINENO: result: no" >&5
4618 $as_echo "no" >&6; }
4621 if test "x$ac_ct_RANLIB" = x; then
4624 case $cross_compiling:$ac_tool_warned in
4626 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628 ac_tool_warned=yes ;;
4630 RANLIB=$ac_ct_RANLIB
4633 RANLIB="$ac_cv_prog_RANLIB"
4636 test -z "$RANLIB" && RANLIB=:
4643 # Determine commands to create old-style static archives.
4644 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4645 old_postinstall_cmds='chmod 644 $oldlib'
4646 old_postuninstall_cmds=
4648 if test -n "$RANLIB"; then
4651 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4657 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4693 # If no C compiler was specified, use CC.
4696 # If no C compiler flags were specified, use CFLAGS.
4697 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4699 # Allow CC to be a program name with arguments.
4703 # Check for command to grab the raw symbol name followed by C symbol from nm.
4704 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4705 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4706 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4707 $as_echo_n "(cached) " >&6
4710 # These are sane defaults that work on at least a few old systems.
4711 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4713 # Character class describing NM global symbol codes.
4714 symcode='[BCDEGRST]'
4716 # Regexp to match symbols that can be accessed directly from C.
4717 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4719 # Define system-specific variables.
4724 cygwin* | mingw* | pw32* | cegcc*)
4725 symcode='[ABCDGISTW]'
4728 if test "$host_cpu" = ia64; then
4729 symcode='[ABCDEGRST]'
4733 symcode='[BCDEGRST]'
4736 symcode='[BCDEGQRST]'
4747 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4755 # If we're using GNU nm, then use its standard symbol codes.
4756 case `$NM -V 2>&1` in
4757 *GNU* | *'with BFD'*)
4758 symcode='[ABCDGIRSTW]' ;;
4761 # Transform an extracted symbol line into a proper C declaration.
4762 # Some systems (esp. on ia64) link data and code symbols differently,
4763 # so use this general approach.
4764 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4766 # Transform an extracted symbol line into symbol name and symbol address
4767 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4768 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'"
4770 # Handle CRLF in mingw tool chain
4774 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4778 # Try without a prefix underscore, then with it.
4779 for ac_symprfx in "" "_"; do
4781 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4782 symxfrm="\\1 $ac_symprfx\\2 \\2"
4784 # Write the raw and C identifiers.
4785 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4786 # Fake it for dumpbin and say T for any non-static function
4787 # and D for any global variable.
4788 # Also find C++ and __fastcall symbols from MSVC++,
4789 # which start with @ or ?.
4790 lt_cv_sys_global_symbol_pipe="$AWK '"\
4791 " {last_section=section; section=\$ 3};"\
4792 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4793 " \$ 0!~/External *\|/{next};"\
4794 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4795 " {if(hide[section]) next};"\
4796 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4797 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4798 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4799 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4800 " ' prfx=^$ac_symprfx"
4802 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4805 # Check to see that the pipe works correctly.
4809 cat > conftest.$ac_ext <<_LT_EOF
4814 void nm_test_func(void);
4815 void nm_test_func(void){}
4819 int main(){nm_test_var='a';nm_test_func();return(0);}
4822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4823 (eval $ac_compile) 2>&5
4825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); }; then
4827 # Now try to grab the symbols.
4829 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4830 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && test -s "$nlist"; then
4834 # Try sorting and uniquifying the output.
4835 if sort "$nlist" | uniq > "$nlist"T; then
4836 mv -f "$nlist"T "$nlist"
4841 # Make sure that we snagged all the symbols we need.
4842 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4843 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4844 cat <<_LT_EOF > conftest.$ac_ext
4850 # Now generate the symbol file.
4851 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4853 cat <<_LT_EOF >> conftest.$ac_ext
4855 /* The mapping between symbol names and symbols. */
4860 lt__PROGRAM__LTX_preloaded_symbols[] =
4862 { "@PROGRAM@", (void *) 0 },
4864 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4865 cat <<\_LT_EOF >> conftest.$ac_ext
4869 /* This works around a problem in FreeBSD linker */
4870 #ifdef FREEBSD_WORKAROUND
4871 static const void *lt_preloaded_setup() {
4872 return lt__PROGRAM__LTX_preloaded_symbols;
4880 # Now try linking the two files.
4881 mv conftest.$ac_objext conftstm.$ac_objext
4882 lt_save_LIBS="$LIBS"
4883 lt_save_CFLAGS="$CFLAGS"
4884 LIBS="conftstm.$ac_objext"
4885 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4887 (eval $ac_link) 2>&5
4889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4893 LIBS="$lt_save_LIBS"
4894 CFLAGS="$lt_save_CFLAGS"
4896 echo "cannot find nm_test_func in $nlist" >&5
4899 echo "cannot find nm_test_var in $nlist" >&5
4902 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4905 echo "$progname: failed program was:" >&5
4906 cat conftest.$ac_ext >&5
4908 rm -rf conftest* conftst*
4910 # Do not use the global_symbol_pipe unless it works.
4911 if test "$pipe_works" = yes; then
4914 lt_cv_sys_global_symbol_pipe=
4920 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4921 lt_cv_sys_global_symbol_to_cdecl=
4923 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4924 { $as_echo "$as_me:$LINENO: result: failed" >&5
4925 $as_echo "failed" >&6; }
4927 { $as_echo "$as_me:$LINENO: result: ok" >&5
4928 $as_echo "ok" >&6; }
4953 # Check whether --enable-libtool-lock was given.
4954 if test "${enable_libtool_lock+set}" = set; then
4955 enableval=$enable_libtool_lock;
4958 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4960 # Some flags need to be propagated to the compiler or linker for good
4964 # Find out which ABI we are using.
4965 echo 'int i;' > conftest.$ac_ext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4967 (eval $ac_compile) 2>&5
4969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); }; then
4971 case `/usr/bin/file conftest.$ac_objext` in
4983 # Find out which ABI we are using.
4984 echo '#line 4984 "configure"' > conftest.$ac_ext
4985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986 (eval $ac_compile) 2>&5
4988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; then
4990 if test "$lt_cv_prog_gnu_ld" = yes; then
4991 case `/usr/bin/file conftest.$ac_objext` in
4993 LD="${LD-ld} -melf32bsmip"
4996 LD="${LD-ld} -melf32bmipn32"
4999 LD="${LD-ld} -melf64bmip"
5003 case `/usr/bin/file conftest.$ac_objext` in
5019 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5020 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5021 # Find out which ABI we are using.
5022 echo 'int i;' > conftest.$ac_ext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
5026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); }; then
5028 case `/usr/bin/file conftest.o` in
5031 x86_64-*kfreebsd*-gnu)
5032 LD="${LD-ld} -m elf_i386_fbsd"
5035 LD="${LD-ld} -m elf_i386"
5037 ppc64-*linux*|powerpc64-*linux*)
5038 LD="${LD-ld} -m elf32ppclinux"
5041 LD="${LD-ld} -m elf_s390"
5044 LD="${LD-ld} -m elf32_sparc"
5050 x86_64-*kfreebsd*-gnu)
5051 LD="${LD-ld} -m elf_x86_64_fbsd"
5054 LD="${LD-ld} -m elf_x86_64"
5056 ppc*-*linux*|powerpc*-*linux*)
5057 LD="${LD-ld} -m elf64ppc"
5059 s390*-*linux*|s390*-*tpf*)
5060 LD="${LD-ld} -m elf64_s390"
5063 LD="${LD-ld} -m elf64_sparc"
5073 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5074 SAVE_CFLAGS="$CFLAGS"
5075 CFLAGS="$CFLAGS -belf"
5076 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5077 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5078 if test "${lt_cv_cc_needs_belf+set}" = set; then
5079 $as_echo_n "(cached) " >&6
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087 cat >conftest.$ac_ext <<_ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5102 rm -f conftest.$ac_objext conftest$ac_exeext
5103 if { (ac_try="$ac_link"
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5109 $as_echo "$ac_try_echo") >&5
5110 (eval "$ac_link") 2>conftest.er1
5112 grep -v '^ *+' conftest.er1 >conftest.err
5114 cat conftest.err >&5
5115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } && {
5117 test -z "$ac_c_werror_flag" ||
5118 test ! -s conftest.err
5119 } && test -s conftest$ac_exeext && {
5120 test "$cross_compiling" = yes ||
5121 $as_test_x conftest$ac_exeext
5123 lt_cv_cc_needs_belf=yes
5125 $as_echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 lt_cv_cc_needs_belf=no
5131 rm -rf conftest.dSYM
5132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5133 conftest$ac_exeext conftest.$ac_ext
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5141 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5142 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5143 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5144 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5145 CFLAGS="$SAVE_CFLAGS"
5149 # Find out which ABI we are using.
5150 echo 'int i;' > conftest.$ac_ext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152 (eval $ac_compile) 2>&5
5154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); }; then
5156 case `/usr/bin/file conftest.o` in
5158 case $lt_cv_prog_gnu_ld in
5159 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5161 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5173 need_locks="$enable_libtool_lock"
5177 rhapsody* | darwin*)
5178 if test -n "$ac_tool_prefix"; then
5179 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5180 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5181 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5184 $as_echo_n "(cached) " >&6
5186 if test -n "$DSYMUTIL"; then
5187 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5197 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5207 if test -n "$DSYMUTIL"; then
5208 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5209 $as_echo "$DSYMUTIL" >&6; }
5211 { $as_echo "$as_me:$LINENO: result: no" >&5
5212 $as_echo "no" >&6; }
5217 if test -z "$ac_cv_prog_DSYMUTIL"; then
5218 ac_ct_DSYMUTIL=$DSYMUTIL
5219 # Extract the first word of "dsymutil", so it can be a program name with args.
5220 set dummy dsymutil; ac_word=$2
5221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5224 $as_echo_n "(cached) " >&6
5226 if test -n "$ac_ct_DSYMUTIL"; then
5227 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5247 if test -n "$ac_ct_DSYMUTIL"; then
5248 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5249 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5251 { $as_echo "$as_me:$LINENO: result: no" >&5
5252 $as_echo "no" >&6; }
5255 if test "x$ac_ct_DSYMUTIL" = x; then
5258 case $cross_compiling:$ac_tool_warned in
5260 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5262 ac_tool_warned=yes ;;
5264 DSYMUTIL=$ac_ct_DSYMUTIL
5267 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5270 if test -n "$ac_tool_prefix"; then
5271 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5272 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5273 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 $as_echo_n "checking for $ac_word... " >&6; }
5275 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5276 $as_echo_n "(cached) " >&6
5278 if test -n "$NMEDIT"; then
5279 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir=.
5286 for ac_exec_ext in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 NMEDIT=$ac_cv_prog_NMEDIT
5299 if test -n "$NMEDIT"; then
5300 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5301 $as_echo "$NMEDIT" >&6; }
5303 { $as_echo "$as_me:$LINENO: result: no" >&5
5304 $as_echo "no" >&6; }
5309 if test -z "$ac_cv_prog_NMEDIT"; then
5310 ac_ct_NMEDIT=$NMEDIT
5311 # Extract the first word of "nmedit", so it can be a program name with args.
5312 set dummy nmedit; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5318 if test -n "$ac_ct_NMEDIT"; then
5319 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5329 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5339 if test -n "$ac_ct_NMEDIT"; then
5340 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5341 $as_echo "$ac_ct_NMEDIT" >&6; }
5343 { $as_echo "$as_me:$LINENO: result: no" >&5
5344 $as_echo "no" >&6; }
5347 if test "x$ac_ct_NMEDIT" = x; then
5350 case $cross_compiling:$ac_tool_warned in
5352 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5356 NMEDIT=$ac_ct_NMEDIT
5359 NMEDIT="$ac_cv_prog_NMEDIT"
5362 if test -n "$ac_tool_prefix"; then
5363 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5364 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_LIPO+set}" = set; then
5368 $as_echo_n "(cached) " >&6
5370 if test -n "$LIPO"; then
5371 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 LIPO=$ac_cv_prog_LIPO
5391 if test -n "$LIPO"; then
5392 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5393 $as_echo "$LIPO" >&6; }
5395 { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5401 if test -z "$ac_cv_prog_LIPO"; then
5403 # Extract the first word of "lipo", so it can be a program name with args.
5404 set dummy lipo; ac_word=$2
5405 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5408 $as_echo_n "(cached) " >&6
5410 if test -n "$ac_ct_LIPO"; then
5411 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_prog_ac_ct_LIPO="lipo"
5421 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5431 if test -n "$ac_ct_LIPO"; then
5432 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5433 $as_echo "$ac_ct_LIPO" >&6; }
5435 { $as_echo "$as_me:$LINENO: result: no" >&5
5436 $as_echo "no" >&6; }
5439 if test "x$ac_ct_LIPO" = x; then
5442 case $cross_compiling:$ac_tool_warned in
5444 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446 ac_tool_warned=yes ;;
5451 LIPO="$ac_cv_prog_LIPO"
5454 if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5456 set dummy ${ac_tool_prefix}otool; ac_word=$2
5457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if test "${ac_cv_prog_OTOOL+set}" = set; then
5460 $as_echo_n "(cached) " >&6
5462 if test -n "$OTOOL"; then
5463 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 OTOOL=$ac_cv_prog_OTOOL
5483 if test -n "$OTOOL"; then
5484 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5485 $as_echo "$OTOOL" >&6; }
5487 { $as_echo "$as_me:$LINENO: result: no" >&5
5488 $as_echo "no" >&6; }
5493 if test -z "$ac_cv_prog_OTOOL"; then
5495 # Extract the first word of "otool", so it can be a program name with args.
5496 set dummy otool; ac_word=$2
5497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5500 $as_echo_n "(cached) " >&6
5502 if test -n "$ac_ct_OTOOL"; then
5503 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_ac_ct_OTOOL="otool"
5513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5522 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5523 if test -n "$ac_ct_OTOOL"; then
5524 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5525 $as_echo "$ac_ct_OTOOL" >&6; }
5527 { $as_echo "$as_me:$LINENO: result: no" >&5
5528 $as_echo "no" >&6; }
5531 if test "x$ac_ct_OTOOL" = x; then
5534 case $cross_compiling:$ac_tool_warned in
5536 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538 ac_tool_warned=yes ;;
5543 OTOOL="$ac_cv_prog_OTOOL"
5546 if test -n "$ac_tool_prefix"; then
5547 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5548 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5552 $as_echo_n "(cached) " >&6
5554 if test -n "$OTOOL64"; then
5555 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561 test -z "$as_dir" && as_dir=.
5562 for ac_exec_ext in '' $ac_executable_extensions; do
5563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 OTOOL64=$ac_cv_prog_OTOOL64
5575 if test -n "$OTOOL64"; then
5576 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5577 $as_echo "$OTOOL64" >&6; }
5579 { $as_echo "$as_me:$LINENO: result: no" >&5
5580 $as_echo "no" >&6; }
5585 if test -z "$ac_cv_prog_OTOOL64"; then
5586 ac_ct_OTOOL64=$OTOOL64
5587 # Extract the first word of "otool64", so it can be a program name with args.
5588 set dummy otool64; ac_word=$2
5589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5592 $as_echo_n "(cached) " >&6
5594 if test -n "$ac_ct_OTOOL64"; then
5595 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_ac_ct_OTOOL64="otool64"
5605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5614 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5615 if test -n "$ac_ct_OTOOL64"; then
5616 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5617 $as_echo "$ac_ct_OTOOL64" >&6; }
5619 { $as_echo "$as_me:$LINENO: result: no" >&5
5620 $as_echo "no" >&6; }
5623 if test "x$ac_ct_OTOOL64" = x; then
5626 case $cross_compiling:$ac_tool_warned in
5628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5630 ac_tool_warned=yes ;;
5632 OTOOL64=$ac_ct_OTOOL64
5635 OTOOL64="$ac_cv_prog_OTOOL64"
5664 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5665 $as_echo_n "checking for -single_module linker flag... " >&6; }
5666 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5667 $as_echo_n "(cached) " >&6
5669 lt_cv_apple_cc_single_mod=no
5670 if test -z "${LT_MULTI_MODULE}"; then
5671 # By default we will add the -single_module flag. You can override
5672 # by either setting the environment variable LT_MULTI_MODULE
5673 # non-empty at configure time, or by adding -multi_module to the
5675 rm -rf libconftest.dylib*
5676 echo "int foo(void){return 1;}" > conftest.c
5677 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5678 -dynamiclib -Wl,-single_module conftest.c" >&5
5679 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5680 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5682 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5683 lt_cv_apple_cc_single_mod=yes
5685 cat conftest.err >&5
5687 rm -rf libconftest.dylib*
5691 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5692 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5693 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5694 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5695 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5696 $as_echo_n "(cached) " >&6
5698 lt_cv_ld_exported_symbols_list=no
5699 save_LDFLAGS=$LDFLAGS
5700 echo "_main" > conftest.sym
5701 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5702 cat >conftest.$ac_ext <<_ACEOF
5705 cat confdefs.h >>conftest.$ac_ext
5706 cat >>conftest.$ac_ext <<_ACEOF
5707 /* end confdefs.h. */
5717 rm -f conftest.$ac_objext conftest$ac_exeext
5718 if { (ac_try="$ac_link"
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5724 $as_echo "$ac_try_echo") >&5
5725 (eval "$ac_link") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1 >conftest.err
5729 cat conftest.err >&5
5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest$ac_exeext && {
5735 test "$cross_compiling" = yes ||
5736 $as_test_x conftest$ac_exeext
5738 lt_cv_ld_exported_symbols_list=yes
5740 $as_echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 lt_cv_ld_exported_symbols_list=no
5746 rm -rf conftest.dSYM
5747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5748 conftest$ac_exeext conftest.$ac_ext
5749 LDFLAGS="$save_LDFLAGS"
5752 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5753 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5755 rhapsody* | darwin1.[012])
5756 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5758 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5759 darwin*) # darwin 5.x on
5760 # if running on 10.5 or later, the deployment target defaults
5761 # to the OS version, if on x86, and 10.4, the deployment
5762 # target defaults to 10.4. Don't you love it?
5763 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5764 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5765 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5767 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5773 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5774 _lt_dar_single_mod='$single_module'
5776 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5777 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5779 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5781 if test "$DSYMUTIL" != ":"; then
5782 _lt_dsymutil='~$DSYMUTIL $lib || :'
5790 ac_cpp='$CPP $CPPFLAGS'
5791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5794 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5795 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5796 # On Suns, sometimes $CPP names a directory.
5797 if test -n "$CPP" && test -d "$CPP"; then
5800 if test -z "$CPP"; then
5801 if test "${ac_cv_prog_CPP+set}" = set; then
5802 $as_echo_n "(cached) " >&6
5804 # Double quotes because CPP needs to be expanded
5805 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5808 for ac_c_preproc_warn_flag in '' yes
5810 # Use a header file that comes with gcc, so configuring glibc
5811 # with a fresh cross-compiler works.
5812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 # <limits.h> exists even on freestanding compilers.
5814 # On the NeXT, cc -E runs the code through the compiler's parser,
5815 # not just through cpp. "Syntax error" is here to catch this case.
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5823 # include <limits.h>
5825 # include <assert.h>
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5835 $as_echo "$ac_try_echo") >&5
5836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5838 grep -v '^ *+' conftest.er1 >conftest.err
5840 cat conftest.err >&5
5841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } >/dev/null && {
5843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5844 test ! -s conftest.err
5848 $as_echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 # Broken: fails on valid input.
5855 rm -f conftest.err conftest.$ac_ext
5857 # OK, works on sane cases. Now check whether nonexistent headers
5858 # can be detected and how.
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5865 #include <ac_nonexistent.h>
5867 if { (ac_try="$ac_cpp conftest.$ac_ext"
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5873 $as_echo "$ac_try_echo") >&5
5874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5876 grep -v '^ *+' conftest.er1 >conftest.err
5878 cat conftest.err >&5
5879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } >/dev/null && {
5881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5884 # Broken: success on invalid input.
5887 $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 # Passes both tests.
5895 rm -f conftest.err conftest.$ac_ext
5898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5899 rm -f conftest.err conftest.$ac_ext
5900 if $ac_preproc_ok; then
5912 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5913 $as_echo "$CPP" >&6; }
5915 for ac_c_preproc_warn_flag in '' yes
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
5923 cat >conftest.$ac_ext <<_ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5930 # include <limits.h>
5932 # include <assert.h>
5936 if { (ac_try="$ac_cpp conftest.$ac_ext"
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942 $as_echo "$ac_try_echo") >&5
5943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5945 grep -v '^ *+' conftest.er1 >conftest.err
5947 cat conftest.err >&5
5948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } >/dev/null && {
5950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5955 $as_echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5958 # Broken: fails on valid input.
5962 rm -f conftest.err conftest.$ac_ext
5964 # OK, works on sane cases. Now check whether nonexistent headers
5965 # can be detected and how.
5966 cat >conftest.$ac_ext <<_ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <ac_nonexistent.h>
5974 if { (ac_try="$ac_cpp conftest.$ac_ext"
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980 $as_echo "$ac_try_echo") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983 grep -v '^ *+' conftest.er1 >conftest.err
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5991 # Broken: success on invalid input.
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5997 # Passes both tests.
6002 rm -f conftest.err conftest.$ac_ext
6005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6006 rm -f conftest.err conftest.$ac_ext
6007 if $ac_preproc_ok; then
6010 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6013 See \`config.log' for more details." >&5
6014 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6015 See \`config.log' for more details." >&2;}
6016 { (exit 1); exit 1; }; }; }
6020 ac_cpp='$CPP $CPPFLAGS'
6021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6026 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6027 $as_echo_n "checking for ANSI C header files... " >&6; }
6028 if test "${ac_cv_header_stdc+set}" = set; then
6029 $as_echo_n "(cached) " >&6
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6050 rm -f conftest.$ac_objext
6051 if { (ac_try="$ac_compile"
6053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054 *) ac_try_echo=$ac_try;;
6056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6057 $as_echo "$ac_try_echo") >&5
6058 (eval "$ac_compile") 2>conftest.er1
6060 grep -v '^ *+' conftest.er1 >conftest.err
6062 cat conftest.err >&5
6063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } && {
6065 test -z "$ac_c_werror_flag" ||
6066 test ! -s conftest.err
6067 } && test -s conftest.$ac_objext; then
6068 ac_cv_header_stdc=yes
6070 $as_echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 ac_cv_header_stdc=no
6076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6078 if test $ac_cv_header_stdc = yes; then
6079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6080 cat >conftest.$ac_ext <<_ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h. */
6089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6090 $EGREP "memchr" >/dev/null 2>&1; then
6093 ac_cv_header_stdc=no
6099 if test $ac_cv_header_stdc = yes; then
6100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 $EGREP "free" >/dev/null 2>&1; then
6114 ac_cv_header_stdc=no
6120 if test $ac_cv_header_stdc = yes; then
6121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6122 if test "$cross_compiling" = yes; then
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6133 #if ((' ' & 0x0FF) == 0x020)
6134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6137 # define ISLOWER(c) \
6138 (('a' <= (c) && (c) <= 'i') \
6139 || ('j' <= (c) && (c) <= 'r') \
6140 || ('s' <= (c) && (c) <= 'z'))
6141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6149 for (i = 0; i < 256; i++)
6150 if (XOR (islower (i), ISLOWER (i))
6151 || toupper (i) != TOUPPER (i))
6156 rm -f conftest$ac_exeext
6157 if { (ac_try="$ac_link"
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163 $as_echo "$ac_try_echo") >&5
6164 (eval "$ac_link") 2>&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6168 { (case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6173 $as_echo "$ac_try_echo") >&5
6174 (eval "$ac_try") 2>&5
6176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
6180 $as_echo "$as_me: program exited with status $ac_status" >&5
6181 $as_echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6185 ac_cv_header_stdc=no
6187 rm -rf conftest.dSYM
6188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6194 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6195 $as_echo "$ac_cv_header_stdc" >&6; }
6196 if test $ac_cv_header_stdc = yes; then
6198 cat >>confdefs.h <<\_ACEOF
6199 #define STDC_HEADERS 1
6204 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6214 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6215 inttypes.h stdint.h unistd.h
6217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6219 $as_echo_n "checking for $ac_header... " >&6; }
6220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6221 $as_echo_n "(cached) " >&6
6223 cat >conftest.$ac_ext <<_ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 $ac_includes_default
6231 #include <$ac_header>
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6240 $as_echo "$ac_try_echo") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
6251 eval "$as_ac_Header=yes"
6253 $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 eval "$as_ac_Header=no"
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 ac_res=`eval 'as_val=${'$as_ac_Header'}
6262 $as_echo "$as_val"'`
6263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6264 $as_echo "$ac_res" >&6; }
6265 as_val=`eval 'as_val=${'$as_ac_Header'}
6266 $as_echo "$as_val"'`
6267 if test "x$as_val" = x""yes; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6278 for ac_header in dlfcn.h
6280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6282 $as_echo_n "checking for $ac_header... " >&6; }
6283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6284 $as_echo_n "(cached) " >&6
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6294 #include <$ac_header>
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303 $as_echo "$ac_try_echo") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6306 grep -v '^ *+' conftest.er1 >conftest.err
6308 cat conftest.err >&5
6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 eval "$as_ac_Header=yes"
6316 $as_echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6319 eval "$as_ac_Header=no"
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6324 ac_res=`eval 'as_val=${'$as_ac_Header'}
6325 $as_echo "$as_val"'`
6326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6327 $as_echo "$ac_res" >&6; }
6328 as_val=`eval 'as_val=${'$as_ac_Header'}
6329 $as_echo "$as_val"'`
6330 if test "x$as_val" = x""yes; then
6331 cat >>confdefs.h <<_ACEOF
6332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6342 enable_win32_dll=yes
6345 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6346 if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6348 set dummy ${ac_tool_prefix}as; ac_word=$2
6349 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if test "${ac_cv_prog_AS+set}" = set; then
6352 $as_echo_n "(cached) " >&6
6354 if test -n "$AS"; then
6355 ac_cv_prog_AS="$AS" # Let the user override the test.
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6364 ac_cv_prog_AS="${ac_tool_prefix}as"
6365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 if test -n "$AS"; then
6376 { $as_echo "$as_me:$LINENO: result: $AS" >&5
6377 $as_echo "$AS" >&6; }
6379 { $as_echo "$as_me:$LINENO: result: no" >&5
6380 $as_echo "no" >&6; }
6385 if test -z "$ac_cv_prog_AS"; then
6387 # Extract the first word of "as", so it can be a program name with args.
6388 set dummy as; ac_word=$2
6389 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6394 if test -n "$ac_ct_AS"; then
6395 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_prog_ac_ct_AS="as"
6405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6415 if test -n "$ac_ct_AS"; then
6416 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6417 $as_echo "$ac_ct_AS" >&6; }
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420 $as_echo "no" >&6; }
6423 if test "x$ac_ct_AS" = x; then
6426 case $cross_compiling:$ac_tool_warned in
6428 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6430 ac_tool_warned=yes ;;
6438 if test -n "$ac_tool_prefix"; then
6439 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6441 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$DLLTOOL"; then
6447 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 DLLTOOL=$ac_cv_prog_DLLTOOL
6467 if test -n "$DLLTOOL"; then
6468 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6469 $as_echo "$DLLTOOL" >&6; }
6471 { $as_echo "$as_me:$LINENO: result: no" >&5
6472 $as_echo "no" >&6; }
6477 if test -z "$ac_cv_prog_DLLTOOL"; then
6478 ac_ct_DLLTOOL=$DLLTOOL
6479 # Extract the first word of "dlltool", so it can be a program name with args.
6480 set dummy dlltool; ac_word=$2
6481 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6484 $as_echo_n "(cached) " >&6
6486 if test -n "$ac_ct_DLLTOOL"; then
6487 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6507 if test -n "$ac_ct_DLLTOOL"; then
6508 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6509 $as_echo "$ac_ct_DLLTOOL" >&6; }
6511 { $as_echo "$as_me:$LINENO: result: no" >&5
6512 $as_echo "no" >&6; }
6515 if test "x$ac_ct_DLLTOOL" = x; then
6518 case $cross_compiling:$ac_tool_warned in
6520 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6524 DLLTOOL=$ac_ct_DLLTOOL
6527 DLLTOOL="$ac_cv_prog_DLLTOOL"
6530 if test -n "$ac_tool_prefix"; then
6531 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6532 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6533 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6536 $as_echo_n "(cached) " >&6
6538 if test -n "$OBJDUMP"; then
6539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 OBJDUMP=$ac_cv_prog_OBJDUMP
6559 if test -n "$OBJDUMP"; then
6560 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6561 $as_echo "$OBJDUMP" >&6; }
6563 { $as_echo "$as_me:$LINENO: result: no" >&5
6564 $as_echo "no" >&6; }
6569 if test -z "$ac_cv_prog_OBJDUMP"; then
6570 ac_ct_OBJDUMP=$OBJDUMP
6571 # Extract the first word of "objdump", so it can be a program name with args.
6572 set dummy objdump; ac_word=$2
6573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$ac_ct_OBJDUMP"; then
6579 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6599 if test -n "$ac_ct_OBJDUMP"; then
6600 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6601 $as_echo "$ac_ct_OBJDUMP" >&6; }
6603 { $as_echo "$as_me:$LINENO: result: no" >&5
6604 $as_echo "no" >&6; }
6607 if test "x$ac_ct_OBJDUMP" = x; then
6610 case $cross_compiling:$ac_tool_warned in
6612 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6614 ac_tool_warned=yes ;;
6616 OBJDUMP=$ac_ct_OBJDUMP
6619 OBJDUMP="$ac_cv_prog_OBJDUMP"
6625 test -z "$AS" && AS=as
6631 test -z "$DLLTOOL" && DLLTOOL=dlltool
6637 test -z "$OBJDUMP" && OBJDUMP=objdump
6649 # Check whether --enable-shared was given.
6650 if test "${enable_shared+set}" = set; then
6651 enableval=$enable_shared; p=${PACKAGE-default}
6653 yes) enable_shared=yes ;;
6654 no) enable_shared=no ;;
6657 # Look at the argument we got. We use all the common list separators.
6658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6659 for pkg in $enableval; do
6661 if test "X$pkg" = "X$p"; then
6680 # Check whether --enable-static was given.
6681 if test "${enable_static+set}" = set; then
6682 enableval=$enable_static; p=${PACKAGE-default}
6684 yes) enable_static=yes ;;
6685 no) enable_static=no ;;
6688 # Look at the argument we got. We use all the common list separators.
6689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6690 for pkg in $enableval; do
6692 if test "X$pkg" = "X$p"; then
6712 # Check whether --with-pic was given.
6713 if test "${with_pic+set}" = set; then
6714 withval=$with_pic; pic_mode="$withval"
6720 test -z "$pic_mode" && pic_mode=default
6728 # Check whether --enable-fast-install was given.
6729 if test "${enable_fast_install+set}" = set; then
6730 enableval=$enable_fast_install; p=${PACKAGE-default}
6732 yes) enable_fast_install=yes ;;
6733 no) enable_fast_install=no ;;
6735 enable_fast_install=no
6736 # Look at the argument we got. We use all the common list separators.
6737 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6738 for pkg in $enableval; do
6740 if test "X$pkg" = "X$p"; then
6741 enable_fast_install=yes
6748 enable_fast_install=yes
6761 # This can be used to rebuild libtool when needed
6762 LIBTOOL_DEPS="$ltmain"
6764 # Always use our own libtool.
6765 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6791 test -z "$LN_S" && LN_S="ln -s"
6806 if test -n "${ZSH_VERSION+set}" ; then
6807 setopt NO_GLOB_SUBST
6810 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6811 $as_echo_n "checking for objdir... " >&6; }
6812 if test "${lt_cv_objdir+set}" = set; then
6813 $as_echo_n "(cached) " >&6
6815 rm -f .libs 2>/dev/null
6816 mkdir .libs 2>/dev/null
6817 if test -d .libs; then
6820 # MS-DOS does not allow filenames that begin with a dot.
6823 rmdir .libs 2>/dev/null
6825 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6826 $as_echo "$lt_cv_objdir" >&6; }
6827 objdir=$lt_cv_objdir
6833 cat >>confdefs.h <<_ACEOF
6834 #define LT_OBJDIR "$lt_cv_objdir/"
6855 # AIX sometimes has problems with the GCC collect2 program. For some
6856 # reason, if we set the COLLECT_NAMES environment variable, the problems
6857 # vanish in a puff of smoke.
6858 if test "X${COLLECT_NAMES+set}" != Xset; then
6860 export COLLECT_NAMES
6865 # Sed substitution that helps us do robust quoting. It backslashifies
6866 # metacharacters that are still active within double-quoted strings.
6867 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6869 # Same as above, but do not quote variable references.
6870 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6872 # Sed substitution to delay expansion of an escaped shell variable in a
6873 # double_quote_subst'ed string.
6874 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6876 # Sed substitution to delay expansion of an escaped single quote.
6877 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6879 # Sed substitution to avoid accidental globbing in evaled expressions
6880 no_glob_subst='s/\*/\\\*/g'
6884 can_build_shared=yes
6886 # All known linkers require a `.a' archive for static linking (except MSVC,
6887 # which needs '.lib').
6890 with_gnu_ld="$lt_cv_prog_gnu_ld"
6893 old_CFLAGS="$CFLAGS"
6895 # Set sane defaults for various variables
6896 test -z "$CC" && CC=cc
6897 test -z "$LTCC" && LTCC=$CC
6898 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6899 test -z "$LD" && LD=ld
6900 test -z "$ac_objext" && ac_objext=o
6902 for cc_temp in $compiler""; do
6904 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6905 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6910 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6913 # Only perform the check for file, if the check method requires it
6914 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6915 case $deplibs_check_method in
6917 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6918 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6919 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6920 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6921 $as_echo_n "(cached) " >&6
6925 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6928 lt_save_MAGIC_CMD="$MAGIC_CMD"
6929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6930 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6931 for ac_dir in $ac_dummy; do
6933 test -z "$ac_dir" && ac_dir=.
6934 if test -f $ac_dir/${ac_tool_prefix}file; then
6935 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6936 if test -n "$file_magic_test_file"; then
6937 case $deplibs_check_method in
6939 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6940 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6941 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6942 $EGREP "$file_magic_regex" > /dev/null; then
6947 *** Warning: the command libtool uses to detect shared libraries,
6948 *** $file_magic_cmd, produces output that libtool cannot recognize.
6949 *** The result is that libtool may fail to recognize shared libraries
6950 *** as such. This will affect the creation of libtool libraries that
6951 *** depend on shared libraries, but programs linked with such libtool
6952 *** libraries will work regardless of this problem. Nevertheless, you
6953 *** may want to report the problem to your system manager and/or to
6954 *** bug-libtool@gnu.org
6964 MAGIC_CMD="$lt_save_MAGIC_CMD"
6969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6970 if test -n "$MAGIC_CMD"; then
6971 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6972 $as_echo "$MAGIC_CMD" >&6; }
6974 { $as_echo "$as_me:$LINENO: result: no" >&5
6975 $as_echo "no" >&6; }
6982 if test -z "$lt_cv_path_MAGIC_CMD"; then
6983 if test -n "$ac_tool_prefix"; then
6984 { $as_echo "$as_me:$LINENO: checking for file" >&5
6985 $as_echo_n "checking for file... " >&6; }
6986 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6987 $as_echo_n "(cached) " >&6
6991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6994 lt_save_MAGIC_CMD="$MAGIC_CMD"
6995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6997 for ac_dir in $ac_dummy; do
6999 test -z "$ac_dir" && ac_dir=.
7000 if test -f $ac_dir/file; then
7001 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7002 if test -n "$file_magic_test_file"; then
7003 case $deplibs_check_method in
7005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7008 $EGREP "$file_magic_regex" > /dev/null; then
7013 *** Warning: the command libtool uses to detect shared libraries,
7014 *** $file_magic_cmd, produces output that libtool cannot recognize.
7015 *** The result is that libtool may fail to recognize shared libraries
7016 *** as such. This will affect the creation of libtool libraries that
7017 *** depend on shared libraries, but programs linked with such libtool
7018 *** libraries will work regardless of this problem. Nevertheless, you
7019 *** may want to report the problem to your system manager and/or to
7020 *** bug-libtool@gnu.org
7030 MAGIC_CMD="$lt_save_MAGIC_CMD"
7035 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7036 if test -n "$MAGIC_CMD"; then
7037 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7038 $as_echo "$MAGIC_CMD" >&6; }
7040 { $as_echo "$as_me:$LINENO: result: no" >&5
7041 $as_echo "no" >&6; }
7054 # Use C for the default configuration in the libtool script
7058 ac_cpp='$CPP $CPPFLAGS'
7059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7064 # Source file extension for C test sources.
7067 # Object file extension for compiled C test sources.
7071 # Code to be used in simple compile tests
7072 lt_simple_compile_test_code="int some_variable = 0;"
7074 # Code to be used in simple link tests
7075 lt_simple_link_test_code='int main(){return(0);}'
7083 # If no C compiler was specified, use CC.
7086 # If no C compiler flags were specified, use CFLAGS.
7087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7089 # Allow CC to be a program name with arguments.
7092 # Save the default compiler, since it gets overwritten when the other
7093 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7094 compiler_DEFAULT=$CC
7096 # save warnings/boilerplate of simple test code
7097 ac_outfile=conftest.$ac_objext
7098 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7099 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7100 _lt_compiler_boilerplate=`cat conftest.err`
7103 ac_outfile=conftest.$ac_objext
7104 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7105 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7106 _lt_linker_boilerplate=`cat conftest.err`
7111 ## There is no encapsulation within the following macros, do not change
7112 ## the running order or otherwise move them around unless you know exactly
7113 ## what you are doing...
7114 if test -n "$compiler"; then
7116 lt_prog_compiler_no_builtin_flag=
7118 if test "$GCC" = yes; then
7119 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7121 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7122 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7123 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7124 $as_echo_n "(cached) " >&6
7126 lt_cv_prog_compiler_rtti_exceptions=no
7127 ac_outfile=conftest.$ac_objext
7128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7129 lt_compiler_flag="-fno-rtti -fno-exceptions"
7130 # Insert the option either (1) after the last *FLAGS variable, or
7131 # (2) before a word containing "conftest.", or (3) at the end.
7132 # Note that $ac_compile itself does not contain backslashes and begins
7133 # with a dollar sign (not a hyphen), so the echo should work correctly.
7134 # The option is referenced via a variable to avoid confusing sed.
7135 lt_compile=`echo "$ac_compile" | $SED \
7136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138 -e 's:$: $lt_compiler_flag:'`
7139 (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
7140 (eval "$lt_compile" 2>conftest.err)
7142 cat conftest.err >&5
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 if (exit $ac_status) && test -s "$ac_outfile"; then
7145 # The compiler can only warn and ignore the option if not recognized
7146 # So say no if there are warnings other than the usual output.
7147 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7149 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7150 lt_cv_prog_compiler_rtti_exceptions=yes
7156 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7157 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7159 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7160 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7172 lt_prog_compiler_wl=
7173 lt_prog_compiler_pic=
7174 lt_prog_compiler_static=
7176 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7177 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7179 if test "$GCC" = yes; then
7180 lt_prog_compiler_wl='-Wl,'
7181 lt_prog_compiler_static='-static'
7185 # All AIX code is PIC.
7186 if test "$host_cpu" = ia64; then
7187 # AIX 5 now supports IA64 processor
7188 lt_prog_compiler_static='-Bstatic'
7195 # see comment about AmigaOS4 .so support
7196 lt_prog_compiler_pic='-fPIC'
7199 # FIXME: we need at least 68020 code to build shared libraries, but
7200 # adding the `-m68020' flag to GCC prevents building anything better,
7202 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7207 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7208 # PIC is the default for these OSes.
7211 mingw* | cygwin* | pw32* | os2* | cegcc*)
7212 # This hack is so that the source file can tell whether it is being
7213 # built for inclusion in a dll (and should export symbols for example).
7214 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7215 # (--disable-auto-import) libraries
7216 lt_prog_compiler_pic='-DDLL_EXPORT'
7219 darwin* | rhapsody*)
7220 # PIC is the default on this platform
7221 # Common symbols not allowed in MH_DYLIB files
7222 lt_prog_compiler_pic='-fno-common'
7226 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7227 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7228 # sets the default TLS model and affects inlining.
7234 lt_prog_compiler_pic='-fPIC'
7240 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7241 # Instead, we relocate shared libraries at runtime.
7245 # Just because we use GCC doesn't mean we suddenly get shared libraries
7246 # on systems that don't support them.
7247 lt_prog_compiler_can_build_shared=no
7252 # QNX uses GNU C++, but need to define -shared option too, otherwise
7254 lt_prog_compiler_pic='-fPIC -shared'
7258 if test -d /usr/nec; then
7259 lt_prog_compiler_pic=-Kconform_pic
7264 lt_prog_compiler_pic='-fPIC'
7268 # PORTME Check for flag to pass linker flags through the system compiler.
7271 lt_prog_compiler_wl='-Wl,'
7272 if test "$host_cpu" = ia64; then
7273 # AIX 5 now supports IA64 processor
7274 lt_prog_compiler_static='-Bstatic'
7276 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7280 mingw* | cygwin* | pw32* | os2* | cegcc*)
7281 # This hack is so that the source file can tell whether it is being
7282 # built for inclusion in a dll (and should export symbols for example).
7283 lt_prog_compiler_pic='-DDLL_EXPORT'
7286 hpux9* | hpux10* | hpux11*)
7287 lt_prog_compiler_wl='-Wl,'
7288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7295 lt_prog_compiler_pic='+Z'
7298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7299 lt_prog_compiler_static='${wl}-a ${wl}archive'
7302 irix5* | irix6* | nonstopux*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # PIC (with -KPIC) is the default.
7305 lt_prog_compiler_static='-non_shared'
7308 linux* | k*bsd*-gnu)
7309 case $cc_basename in
7310 # old Intel for x86_64 which still supported -KPIC.
7312 lt_prog_compiler_wl='-Wl,'
7313 lt_prog_compiler_pic='-KPIC'
7314 lt_prog_compiler_static='-static'
7316 # icc used to be incompatible with GCC.
7317 # ICC 10 doesn't accept -KPIC any more.
7319 lt_prog_compiler_wl='-Wl,'
7320 lt_prog_compiler_pic='-fPIC'
7321 lt_prog_compiler_static='-static'
7323 # Lahey Fortran 8.1.
7325 lt_prog_compiler_wl='-Wl,'
7326 lt_prog_compiler_pic='--shared'
7327 lt_prog_compiler_static='--static'
7329 pgcc* | pgf77* | pgf90* | pgf95*)
7330 # Portland Group compilers (*not* the Pentium gcc compiler,
7331 # which looks to be a dead project)
7332 lt_prog_compiler_wl='-Wl,'
7333 lt_prog_compiler_pic='-fpic'
7334 lt_prog_compiler_static='-Bstatic'
7337 lt_prog_compiler_wl='-Wl,'
7338 # All Alpha code is PIC.
7339 lt_prog_compiler_static='-non_shared'
7342 # IBM XL C 8.0/Fortran 10.1 on PPC
7343 lt_prog_compiler_wl='-Wl,'
7344 lt_prog_compiler_pic='-qpic'
7345 lt_prog_compiler_static='-qstaticlink'
7348 case `$CC -V 2>&1 | sed 5q` in
7351 lt_prog_compiler_pic='-KPIC'
7352 lt_prog_compiler_static='-Bstatic'
7353 lt_prog_compiler_wl='-Wl,'
7356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7357 lt_prog_compiler_pic='-KPIC'
7358 lt_prog_compiler_static='-Bstatic'
7359 lt_prog_compiler_wl=''
7367 lt_prog_compiler_pic='-KPIC'
7368 lt_prog_compiler_static='-Bstatic'
7372 # QNX uses GNU C++, but need to define -shared option too, otherwise
7374 lt_prog_compiler_pic='-fPIC -shared'
7377 osf3* | osf4* | osf5*)
7378 lt_prog_compiler_wl='-Wl,'
7379 # All OSF/1 code is PIC.
7380 lt_prog_compiler_static='-non_shared'
7384 lt_prog_compiler_static='-non_shared'
7388 lt_prog_compiler_pic='-KPIC'
7389 lt_prog_compiler_static='-Bstatic'
7390 case $cc_basename in
7392 lt_prog_compiler_wl='-Qoption ld ';;
7394 lt_prog_compiler_wl='-Wl,';;
7399 lt_prog_compiler_wl='-Qoption ld '
7400 lt_prog_compiler_pic='-PIC'
7401 lt_prog_compiler_static='-Bstatic'
7404 sysv4 | sysv4.2uw2* | sysv4.3*)
7405 lt_prog_compiler_wl='-Wl,'
7406 lt_prog_compiler_pic='-KPIC'
7407 lt_prog_compiler_static='-Bstatic'
7411 if test -d /usr/nec ;then
7412 lt_prog_compiler_pic='-Kconform_pic'
7413 lt_prog_compiler_static='-Bstatic'
7417 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7418 lt_prog_compiler_wl='-Wl,'
7419 lt_prog_compiler_pic='-KPIC'
7420 lt_prog_compiler_static='-Bstatic'
7424 lt_prog_compiler_wl='-Wl,'
7425 lt_prog_compiler_can_build_shared=no
7429 lt_prog_compiler_pic='-pic'
7430 lt_prog_compiler_static='-Bstatic'
7434 lt_prog_compiler_can_build_shared=no
7440 # For platforms which do not support PIC, -DPIC is meaningless:
7442 lt_prog_compiler_pic=
7445 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7448 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7449 $as_echo "$lt_prog_compiler_pic" >&6; }
7457 # Check to make sure the PIC flag actually works.
7459 if test -n "$lt_prog_compiler_pic"; then
7460 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7461 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7462 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7463 $as_echo_n "(cached) " >&6
7465 lt_cv_prog_compiler_pic_works=no
7466 ac_outfile=conftest.$ac_objext
7467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7468 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7469 # Insert the option either (1) after the last *FLAGS variable, or
7470 # (2) before a word containing "conftest.", or (3) at the end.
7471 # Note that $ac_compile itself does not contain backslashes and begins
7472 # with a dollar sign (not a hyphen), so the echo should work correctly.
7473 # The option is referenced via a variable to avoid confusing sed.
7474 lt_compile=`echo "$ac_compile" | $SED \
7475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7477 -e 's:$: $lt_compiler_flag:'`
7478 (eval echo "\"\$as_me:7478: $lt_compile\"" >&5)
7479 (eval "$lt_compile" 2>conftest.err)
7481 cat conftest.err >&5
7482 echo "$as_me:7482: \$? = $ac_status" >&5
7483 if (exit $ac_status) && test -s "$ac_outfile"; then
7484 # The compiler can only warn and ignore the option if not recognized
7485 # So say no if there are warnings other than the usual output.
7486 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7489 lt_cv_prog_compiler_pic_works=yes
7495 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7496 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7498 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7499 case $lt_prog_compiler_pic in
7501 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7504 lt_prog_compiler_pic=
7505 lt_prog_compiler_can_build_shared=no
7516 # Check to make sure the static flag actually works.
7518 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7519 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7521 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7522 $as_echo_n "(cached) " >&6
7524 lt_cv_prog_compiler_static_works=no
7525 save_LDFLAGS="$LDFLAGS"
7526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7527 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7529 # The linker can only warn and ignore the option if not recognized
7530 # So say no if there are warnings
7531 if test -s conftest.err; then
7532 # Append any errors to the config.log.
7533 cat conftest.err 1>&5
7534 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7536 if diff conftest.exp conftest.er2 >/dev/null; then
7537 lt_cv_prog_compiler_static_works=yes
7540 lt_cv_prog_compiler_static_works=yes
7544 LDFLAGS="$save_LDFLAGS"
7547 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7548 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7550 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7553 lt_prog_compiler_static=
7562 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7564 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7565 $as_echo_n "(cached) " >&6
7567 lt_cv_prog_compiler_c_o=no
7568 $RM -r conftest 2>/dev/null
7572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7574 lt_compiler_flag="-o out/conftest2.$ac_objext"
7575 # Insert the option either (1) after the last *FLAGS variable, or
7576 # (2) before a word containing "conftest.", or (3) at the end.
7577 # Note that $ac_compile itself does not contain backslashes and begins
7578 # with a dollar sign (not a hyphen), so the echo should work correctly.
7579 lt_compile=`echo "$ac_compile" | $SED \
7580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7582 -e 's:$: $lt_compiler_flag:'`
7583 (eval echo "\"\$as_me:7583: $lt_compile\"" >&5)
7584 (eval "$lt_compile" 2>out/conftest.err)
7586 cat out/conftest.err >&5
7587 echo "$as_me:7587: \$? = $ac_status" >&5
7588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7590 # The compiler can only warn and ignore the option if not recognized
7591 # So say no if there are warnings
7592 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7595 lt_cv_prog_compiler_c_o=yes
7600 # SGI C++ compiler will create directory out/ii_files/ for
7601 # template instantiation
7602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7603 $RM out/* && rmdir out
7609 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7610 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7617 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7618 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7619 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7620 $as_echo_n "(cached) " >&6
7622 lt_cv_prog_compiler_c_o=no
7623 $RM -r conftest 2>/dev/null
7627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7629 lt_compiler_flag="-o out/conftest2.$ac_objext"
7630 # Insert the option either (1) after the last *FLAGS variable, or
7631 # (2) before a word containing "conftest.", or (3) at the end.
7632 # Note that $ac_compile itself does not contain backslashes and begins
7633 # with a dollar sign (not a hyphen), so the echo should work correctly.
7634 lt_compile=`echo "$ac_compile" | $SED \
7635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7637 -e 's:$: $lt_compiler_flag:'`
7638 (eval echo "\"\$as_me:7638: $lt_compile\"" >&5)
7639 (eval "$lt_compile" 2>out/conftest.err)
7641 cat out/conftest.err >&5
7642 echo "$as_me:7642: \$? = $ac_status" >&5
7643 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7645 # The compiler can only warn and ignore the option if not recognized
7646 # So say no if there are warnings
7647 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7648 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7649 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7650 lt_cv_prog_compiler_c_o=yes
7655 # SGI C++ compiler will create directory out/ii_files/ for
7656 # template instantiation
7657 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7658 $RM out/* && rmdir out
7664 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7665 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7670 hard_links="nottested"
7671 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7672 # do not overwrite the value of need_locks provided by the user
7673 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7674 $as_echo_n "checking if we can lock with hard links... " >&6; }
7677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7679 ln conftest.a conftest.b 2>&5 || hard_links=no
7680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7681 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7682 $as_echo "$hard_links" >&6; }
7683 if test "$hard_links" = no; then
7684 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7685 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7697 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7698 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7701 allow_undefined_flag=
7702 always_export_symbols=no
7704 archive_expsym_cmds=
7705 compiler_needs_object=no
7706 enable_shared_with_static_runtimes=no
7707 export_dynamic_flag_spec=
7708 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7709 hardcode_automatic=no
7711 hardcode_direct_absolute=no
7712 hardcode_libdir_flag_spec=
7713 hardcode_libdir_flag_spec_ld=
7714 hardcode_libdir_separator=
7716 hardcode_shlibpath_var=unsupported
7718 link_all_deplibs=unknown
7721 old_archive_from_new_cmds=
7722 old_archive_from_expsyms_cmds=
7723 thread_safe_flag_spec=
7724 whole_archive_flag_spec=
7725 # include_expsyms should be a list of space-separated symbols to be *always*
7726 # included in the symbol list
7728 # exclude_expsyms can be an extended regexp of symbols to exclude
7729 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7730 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7731 # as well as any symbol that contains `d'.
7732 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7733 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7734 # platforms (ab)use it in PIC code, but their linkers get confused if
7735 # the symbol is explicitly referenced. Since portable code cannot
7736 # rely on this symbol name, it's probably fine to never include it in
7737 # preloaded symbol tables.
7738 # Exclude shared library initialization/finalization symbols.
7739 extract_expsyms_cmds=
7742 cygwin* | mingw* | pw32* | cegcc*)
7743 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7744 # When not using gcc, we currently assume that we are using
7745 # Microsoft Visual C++.
7746 if test "$GCC" != yes; then
7751 # we just hope/assume this is gcc and not c89 (= MSVC++)
7760 if test "$with_gnu_ld" = yes; then
7761 # If archive_cmds runs LD, not CC, wlarc should be empty
7764 # Set some defaults for GNU ld with shared library support. These
7765 # are reset later if shared libraries are not supported. Putting them
7766 # here allows them to be overridden if necessary.
7767 runpath_var=LD_RUN_PATH
7768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7769 export_dynamic_flag_spec='${wl}--export-dynamic'
7770 # ancient GNU ld didn't support --whole-archive et. al.
7771 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7772 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7774 whole_archive_flag_spec=
7776 supports_anon_versioning=no
7777 case `$LD -v 2>&1` in
7778 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7779 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7780 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7781 *\ 2.11.*) ;; # other 2.11 versions
7782 *) supports_anon_versioning=yes ;;
7785 # See if GNU ld supports shared libraries.
7788 # On AIX/PPC, the GNU linker is very broken
7789 if test "$host_cpu" != ia64; then
7793 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7794 *** to be unable to reliably create shared libraries on AIX.
7795 *** Therefore, libtool is disabling shared libraries support. If you
7796 *** really care for shared libraries, you may want to modify your PATH
7797 *** so that a non-GNU linker is found, and then restart.
7806 # see comment about AmigaOS4 .so support
7807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808 archive_expsym_cmds=''
7811 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)'
7812 hardcode_libdir_flag_spec='-L$libdir'
7813 hardcode_minus_L=yes
7819 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7820 allow_undefined_flag=unsupported
7821 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7822 # support --undefined. This deserves some investigation. FIXME
7823 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7829 cygwin* | mingw* | pw32* | cegcc*)
7830 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7831 # as there is no search path for DLLs.
7832 hardcode_libdir_flag_spec='-L$libdir'
7833 allow_undefined_flag=unsupported
7834 always_export_symbols=no
7835 enable_shared_with_static_runtimes=yes
7836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7838 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7840 # If the export-symbols file already is a .def file (1st line
7841 # is EXPORTS), use it as is; otherwise, prepend...
7842 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7843 cp $export_symbols $output_objdir/$soname.def;
7845 echo EXPORTS > $output_objdir/$soname.def;
7846 cat $export_symbols >> $output_objdir/$soname.def;
7848 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7856 hardcode_shlibpath_var=no
7857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7858 export_dynamic_flag_spec='${wl}-E'
7859 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7860 # Instead, shared libraries are loaded at an image base (0x10000000 by
7861 # default) and relocated if they conflict, which is a slow very memory
7862 # consuming and fragmenting process. To avoid this, we pick a random,
7863 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7864 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7865 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7866 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'
7869 gnu* | linux* | tpf* | k*bsd*-gnu)
7871 if test "$host_os" = linux-dietlibc; then
7872 case $cc_basename in
7873 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7876 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7877 && test "$tmp_diet" = no
7880 tmp_sharedflag='-shared'
7881 case $cc_basename,$host_cpu in
7882 pgcc*) # Portland Group C compiler
7883 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'
7884 tmp_addflag=' $pic_flag'
7886 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7887 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'
7888 tmp_addflag=' $pic_flag -Mnomain' ;;
7889 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7890 tmp_addflag=' -i_dynamic' ;;
7891 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7892 tmp_addflag=' -i_dynamic -nofor_main' ;;
7893 ifc* | ifort*) # Intel Fortran compiler
7894 tmp_addflag=' -nofor_main' ;;
7895 lf95*) # Lahey Fortran 8.1
7896 whole_archive_flag_spec=
7897 tmp_sharedflag='--shared' ;;
7898 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7899 tmp_sharedflag='-qmkshrobj'
7902 case `$CC -V 2>&1 | sed 5q` in
7903 *Sun\ C*) # Sun C 5.9
7904 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'
7905 compiler_needs_object=yes
7906 tmp_sharedflag='-G' ;;
7907 *Sun\ F*) # Sun Fortran 8.3
7908 tmp_sharedflag='-G' ;;
7910 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7912 if test "x$supports_anon_versioning" = xyes; then
7913 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7914 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7915 echo "local: *; };" >> $output_objdir/$libname.ver~
7916 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7919 case $cc_basename in
7921 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7922 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7923 hardcode_libdir_flag_spec=
7924 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7925 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7926 if test "x$supports_anon_versioning" = xyes; then
7927 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7928 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7929 echo "local: *; };" >> $output_objdir/$libname.ver~
7930 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7941 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7944 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7950 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7954 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7955 *** create shared libraries on Solaris systems. Therefore, libtool
7956 *** is disabling shared libraries support. We urge you to upgrade GNU
7957 *** binutils to release 2.9.1 or newer. Another option is to modify
7958 *** your PATH or compiler configuration so that the native linker is
7959 *** used, and then restart.
7962 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7970 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7971 case `$LD -v 2>&1` in
7972 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7976 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7977 *** reliably create shared libraries on SCO systems. Therefore, libtool
7978 *** is disabling shared libraries support. We urge you to upgrade GNU
7979 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7980 *** your PATH or compiler configuration so that the native linker is
7981 *** used, and then restart.
7986 # For security reasons, it is highly recommended that you always
7987 # use absolute paths for naming shared libraries, and exclude the
7988 # DT_RUNPATH tag from executables and libraries. But doing so
7989 # requires that you compile everything twice, which is a pain.
7990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7993 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8002 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8005 hardcode_shlibpath_var=no
8009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8018 if test "$ld_shlibs" = no; then
8020 hardcode_libdir_flag_spec=
8021 export_dynamic_flag_spec=
8022 whole_archive_flag_spec=
8025 # PORTME fill in a description of your system's linker (not GNU ld)
8028 allow_undefined_flag=unsupported
8029 always_export_symbols=yes
8030 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'
8031 # Note: this linker hardcodes the directories in LIBPATH if there
8032 # are no directories specified by -L.
8033 hardcode_minus_L=yes
8034 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8035 # Neither direct hardcoding nor static linking is supported with a
8037 hardcode_direct=unsupported
8042 if test "$host_cpu" = ia64; then
8043 # On IA64, the linker does run time linking by default, so we don't
8044 # have to do anything special.
8045 aix_use_runtimelinking=no
8046 exp_sym_flag='-Bexport'
8049 # If we're using GNU nm, then we don't want the "-C" option.
8050 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8051 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8052 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'
8054 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'
8056 aix_use_runtimelinking=no
8058 # Test if we are trying to use run time linking or normal
8059 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8060 # need to do runtime linking.
8061 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8062 for ld_flag in $LDFLAGS; do
8063 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8064 aix_use_runtimelinking=yes
8071 exp_sym_flag='-bexport'
8072 no_entry_flag='-bnoentry'
8075 # When large executables or shared objects are built, AIX ld can
8076 # have problems creating the table of contents. If linking a library
8077 # or program results in "error TOC overflow" add -mminimal-toc to
8078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8083 hardcode_direct_absolute=yes
8084 hardcode_libdir_separator=':'
8085 link_all_deplibs=yes
8086 file_list_spec='${wl}-f,'
8088 if test "$GCC" = yes; then
8089 case $host_os in aix4.[012]|aix4.[012].*)
8090 # We only want to do this on AIX 4.2 and lower, the check
8091 # below for broken collect2 doesn't work under 4.3+
8092 collect2name=`${CC} -print-prog-name=collect2`
8093 if test -f "$collect2name" &&
8094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8096 # We have reworked collect2
8099 # We have old collect2
8100 hardcode_direct=unsupported
8101 # It fails to find uninstalled libraries when the uninstalled
8102 # path is not listed in the libpath. Setting hardcode_minus_L
8103 # to unsupported forces relinking
8104 hardcode_minus_L=yes
8105 hardcode_libdir_flag_spec='-L$libdir'
8106 hardcode_libdir_separator=
8110 shared_flag='-shared'
8111 if test "$aix_use_runtimelinking" = yes; then
8112 shared_flag="$shared_flag "'${wl}-G'
8116 if test "$host_cpu" = ia64; then
8117 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8118 # chokes on -Wl,-G. The following line is correct:
8121 if test "$aix_use_runtimelinking" = yes; then
8122 shared_flag='${wl}-G'
8124 shared_flag='${wl}-bM:SRE'
8129 export_dynamic_flag_spec='${wl}-bexpall'
8130 # It seems that -bexpall does not export symbols beginning with
8131 # underscore (_), so it is better to generate a list of symbols to export.
8132 always_export_symbols=yes
8133 if test "$aix_use_runtimelinking" = yes; then
8134 # Warning - without using the other runtime loading flags (-brtl),
8135 # -berok will link without error, but may produce a broken library.
8136 allow_undefined_flag='-berok'
8137 # Determine the default libpath from the value encoded in an
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
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_link") 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_exeext && {
8172 test "$cross_compiling" = yes ||
8173 $as_test_x conftest$ac_exeext
8176 lt_aix_libpath_sed='
8177 /Import File Strings/,/^$/ {
8183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8184 # Check for a 64-bit object if we didn't find anything.
8185 if test -z "$aix_libpath"; then
8186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8189 $as_echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8195 rm -rf conftest.dSYM
8196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8197 conftest$ac_exeext conftest.$ac_ext
8198 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8200 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8201 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"
8203 if test "$host_cpu" = ia64; then
8204 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8205 allow_undefined_flag="-z nodefs"
8206 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"
8208 # Determine the default libpath from the value encoded in an
8210 cat >conftest.$ac_ext <<_ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8225 rm -f conftest.$ac_objext conftest$ac_exeext
8226 if { (ac_try="$ac_link"
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8232 $as_echo "$ac_try_echo") >&5
8233 (eval "$ac_link") 2>conftest.er1
8235 grep -v '^ *+' conftest.er1 >conftest.err
8237 cat conftest.err >&5
8238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest$ac_exeext && {
8243 test "$cross_compiling" = yes ||
8244 $as_test_x conftest$ac_exeext
8247 lt_aix_libpath_sed='
8248 /Import File Strings/,/^$/ {
8254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8255 # Check for a 64-bit object if we didn't find anything.
8256 if test -z "$aix_libpath"; then
8257 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8260 $as_echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8266 rm -rf conftest.dSYM
8267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8268 conftest$ac_exeext conftest.$ac_ext
8269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8272 # Warning - without using the other run time loading flags,
8273 # -berok will link without error, but may produce a broken library.
8274 no_undefined_flag=' ${wl}-bernotok'
8275 allow_undefined_flag=' ${wl}-berok'
8276 # Exported symbols can be pulled into shared objects from archives
8277 whole_archive_flag_spec='$convenience'
8278 archive_cmds_need_lc=yes
8279 # This is similar to how AIX traditionally builds its shared libraries.
8280 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'
8288 # see comment about AmigaOS4 .so support
8289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290 archive_expsym_cmds=''
8293 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)'
8294 hardcode_libdir_flag_spec='-L$libdir'
8295 hardcode_minus_L=yes
8301 export_dynamic_flag_spec=-rdynamic
8304 cygwin* | mingw* | pw32* | cegcc*)
8305 # When not using gcc, we currently assume that we are using
8306 # Microsoft Visual C++.
8307 # hardcode_libdir_flag_spec is actually meaningless, as there is
8308 # no search path for DLLs.
8309 hardcode_libdir_flag_spec=' '
8310 allow_undefined_flag=unsupported
8311 # Tell ltmain to make .lib files, not .a files.
8313 # Tell ltmain to make .dll files, not .so files.
8315 # FIXME: Setting linknames here is a bad hack.
8316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8317 # The linker will automatically build a .lib file if we build a DLL.
8318 old_archive_from_new_cmds='true'
8319 # FIXME: Should let the user specify the lib program.
8320 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8321 fix_srcfile_path='`cygpath -w "$srcfile"`'
8322 enable_shared_with_static_runtimes=yes
8325 darwin* | rhapsody*)
8328 archive_cmds_need_lc=no
8330 hardcode_automatic=yes
8331 hardcode_shlibpath_var=unsupported
8332 whole_archive_flag_spec=''
8333 link_all_deplibs=yes
8334 allow_undefined_flag="$_lt_dar_allow_undefined"
8335 case $cc_basename in
8336 ifort*) _lt_dar_can_shared=yes ;;
8337 *) _lt_dar_can_shared=$GCC ;;
8339 if test "$_lt_dar_can_shared" = "yes"; then
8340 output_verbose_link_cmd=echo
8341 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8342 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8343 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}"
8344 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}"
8353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8354 hardcode_libdir_flag_spec='-L$libdir'
8355 hardcode_shlibpath_var=no
8362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8363 # support. Future versions do this automatically, but an explicit c++rt0.o
8364 # does not break anything, and helps significantly (at the cost of a little
8367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8368 hardcode_libdir_flag_spec='-R$libdir'
8370 hardcode_shlibpath_var=no
8373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8377 hardcode_minus_L=yes
8378 hardcode_shlibpath_var=no
8381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8382 freebsd* | dragonfly*)
8383 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8384 hardcode_libdir_flag_spec='-R$libdir'
8386 hardcode_shlibpath_var=no
8390 if test "$GCC" = yes; then
8391 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'
8393 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'
8395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8396 hardcode_libdir_separator=:
8399 # hardcode_minus_L: Not really in the search PATH,
8400 # but as the default location of the library.
8401 hardcode_minus_L=yes
8402 export_dynamic_flag_spec='${wl}-E'
8406 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8411 if test "$with_gnu_ld" = no; then
8412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8413 hardcode_libdir_flag_spec_ld='+b $libdir'
8414 hardcode_libdir_separator=:
8416 hardcode_direct_absolute=yes
8417 export_dynamic_flag_spec='${wl}-E'
8418 # hardcode_minus_L: Not really in the search PATH,
8419 # but as the default location of the library.
8420 hardcode_minus_L=yes
8425 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8428 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8450 if test "$with_gnu_ld" = no; then
8451 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452 hardcode_libdir_separator=:
8457 hardcode_shlibpath_var=no
8461 hardcode_direct_absolute=yes
8462 export_dynamic_flag_spec='${wl}-E'
8464 # hardcode_minus_L: Not really in the search PATH,
8465 # but as the default location of the library.
8466 hardcode_minus_L=yes
8472 irix5* | irix6* | nonstopux*)
8473 if test "$GCC" = yes; then
8474 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'
8475 # Try to use the -exported_symbol ld option, if it does not
8476 # work, assume that -exports_file does not work either and
8477 # implicitly export all symbols.
8478 save_LDFLAGS="$LDFLAGS"
8479 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8480 cat >conftest.$ac_ext <<_ACEOF
8483 rm -f conftest.$ac_objext conftest$ac_exeext
8484 if { (ac_try="$ac_link"
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8490 $as_echo "$ac_try_echo") >&5
8491 (eval "$ac_link") 2>conftest.er1
8493 grep -v '^ *+' conftest.er1 >conftest.err
8495 cat conftest.err >&5
8496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497 (exit $ac_status); } && {
8498 test -z "$ac_c_werror_flag" ||
8499 test ! -s conftest.err
8500 } && test -s conftest$ac_exeext && {
8501 test "$cross_compiling" = yes ||
8502 $as_test_x conftest$ac_exeext
8504 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'
8507 $as_echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8513 rm -rf conftest.dSYM
8514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8515 conftest$ac_exeext conftest.$ac_ext
8516 LDFLAGS="$save_LDFLAGS"
8518 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'
8519 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'
8521 archive_cmds_need_lc='no'
8522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8523 hardcode_libdir_separator=:
8525 link_all_deplibs=yes
8529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8532 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8534 hardcode_libdir_flag_spec='-R$libdir'
8536 hardcode_shlibpath_var=no
8540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8543 hardcode_libdir_separator=:
8544 hardcode_shlibpath_var=no
8551 if test -f /usr/libexec/ld.so; then
8553 hardcode_shlibpath_var=no
8554 hardcode_direct_absolute=yes
8555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8559 export_dynamic_flag_spec='${wl}-E'
8562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8564 hardcode_libdir_flag_spec='-R$libdir'
8567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8578 hardcode_libdir_flag_spec='-L$libdir'
8579 hardcode_minus_L=yes
8580 allow_undefined_flag=unsupported
8581 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'
8582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8586 if test "$GCC" = yes; then
8587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8588 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'
8590 allow_undefined_flag=' -expect_unresolved \*'
8591 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'
8593 archive_cmds_need_lc='no'
8594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595 hardcode_libdir_separator=:
8598 osf4* | osf5*) # as osf3* with the addition of -msym flag
8599 if test "$GCC" = yes; then
8600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8601 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'
8602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8604 allow_undefined_flag=' -expect_unresolved \*'
8605 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'
8606 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~
8607 $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'
8609 # Both c and cxx compiler support -rpath directly
8610 hardcode_libdir_flag_spec='-rpath $libdir'
8612 archive_cmds_need_lc='no'
8613 hardcode_libdir_separator=:
8617 no_undefined_flag=' -z defs'
8618 if test "$GCC" = yes; then
8620 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8622 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8624 case `$CC -V 2>&1` in
8627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8633 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8635 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8639 hardcode_libdir_flag_spec='-R$libdir'
8640 hardcode_shlibpath_var=no
8642 solaris2.[0-5] | solaris2.[0-5].*) ;;
8644 # The compiler driver will combine and reorder linker options,
8645 # but understands `-z linker_flag'. GCC discards it without `$wl',
8646 # but is careful enough not to reorder.
8647 # Supported since Solaris 2.6 (maybe 2.5.1?)
8648 if test "$GCC" = yes; then
8649 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8655 link_all_deplibs=yes
8659 if test "x$host_vendor" = xsequent; then
8660 # Use $CC to link under sequent, because it throws in some extra .o
8661 # files that make .init and .fini sections work.
8662 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8664 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8666 hardcode_libdir_flag_spec='-L$libdir'
8668 hardcode_minus_L=yes
8669 hardcode_shlibpath_var=no
8673 case $host_vendor in
8675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8676 hardcode_direct=yes # is this really true???
8679 ## LD is ld it makes a PLAMLIB
8680 ## CC just makes a GrossModule.
8681 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8682 reload_cmds='$CC -r -o $output$reload_objs'
8686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8690 runpath_var='LD_RUN_PATH'
8691 hardcode_shlibpath_var=no
8695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_shlibpath_var=no
8697 export_dynamic_flag_spec='-Bexport'
8701 if test -d /usr/nec; then
8702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8703 hardcode_shlibpath_var=no
8704 runpath_var=LD_RUN_PATH
8705 hardcode_runpath_var=yes
8710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8711 no_undefined_flag='${wl}-z,text'
8712 archive_cmds_need_lc=no
8713 hardcode_shlibpath_var=no
8714 runpath_var='LD_RUN_PATH'
8716 if test "$GCC" = yes; then
8717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8725 sysv5* | sco3.2v5* | sco5v6*)
8726 # Note: We can NOT use -z defs as we might desire, because we do not
8727 # link with -lc, and that would cause any symbols used from libc to
8728 # always be unresolved, which means just about no library would
8729 # ever link correctly. If we're not using GNU ld we use -z text
8730 # though, which does catch some bad symbols but isn't as heavy-handed
8732 no_undefined_flag='${wl}-z,text'
8733 allow_undefined_flag='${wl}-z,nodefs'
8734 archive_cmds_need_lc=no
8735 hardcode_shlibpath_var=no
8736 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8737 hardcode_libdir_separator=':'
8738 link_all_deplibs=yes
8739 export_dynamic_flag_spec='${wl}-Bexport'
8740 runpath_var='LD_RUN_PATH'
8742 if test "$GCC" = yes; then
8743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8753 hardcode_libdir_flag_spec='-L$libdir'
8754 hardcode_shlibpath_var=no
8762 if test x$host_vendor = xsni; then
8764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8765 export_dynamic_flag_spec='${wl}-Blargedynsym'
8771 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8772 $as_echo "$ld_shlibs" >&6; }
8773 test "$ld_shlibs" = no && can_build_shared=no
8775 with_gnu_ld=$with_gnu_ld
8792 # Do we need to explicitly link libc?
8794 case "x$archive_cmds_need_lc" in
8796 # Assume -lc should be added
8797 archive_cmds_need_lc=yes
8799 if test "$enable_shared" = yes && test "$GCC" = yes; then
8800 case $archive_cmds in
8802 # FIXME: we may have to deal with multi-command sequences.
8805 # Test whether the compiler implicitly links with -lc since on some
8806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8807 # to ld, don't add -lc before -lgcc.
8808 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8809 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8814 (eval $ac_compile) 2>&5
8816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } 2>conftest.err; then
8820 libobjs=conftest.$ac_objext
8822 wl=$lt_prog_compiler_wl
8823 pic_flag=$lt_prog_compiler_pic
8829 lt_save_allow_undefined_flag=$allow_undefined_flag
8830 allow_undefined_flag=
8831 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8832 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }
8837 archive_cmds_need_lc=no
8839 archive_cmds_need_lc=yes
8841 allow_undefined_flag=$lt_save_allow_undefined_flag
8843 cat conftest.err 1>&5
8846 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8847 $as_echo "$archive_cmds_need_lc" >&6; }
9010 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9013 if test "$GCC" = yes; then
9015 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9016 *) lt_awk_arg="/^libraries:/" ;;
9018 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9019 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9020 # if the path contains ";" then we assume it to be the separator
9021 # otherwise default to the standard path separator (i.e. ":") - it is
9022 # assumed that no part of a normal pathname contains ";" but that should
9023 # okay in the real world where ";" in dirpaths is itself problematic.
9024 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9028 # Ok, now we have the path, separated by spaces, we can step through it
9029 # and add multilib dir if necessary.
9030 lt_tmp_lt_search_path_spec=
9031 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9032 for lt_sys_path in $lt_search_path_spec; do
9033 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9034 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9036 test -d "$lt_sys_path" && \
9037 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9040 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9041 BEGIN {RS=" "; FS="/|\n";} {
9044 for (lt_i = NF; lt_i > 0; lt_i--) {
9045 if ($lt_i != "" && $lt_i != ".") {
9046 if ($lt_i == "..") {
9049 if (lt_count == 0) {
9050 lt_foo="/" $lt_i lt_foo;
9057 if (lt_foo != "") { lt_freq[lt_foo]++; }
9058 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9060 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9062 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9065 libname_spec='lib$name'
9073 shlibpath_overrides_runpath=unknown
9075 dynamic_linker="$host_os ld.so"
9076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9077 need_lib_prefix=unknown
9078 hardcode_into_libs=no
9080 # when you set need_version to no, make sure it does not cause -set_version
9081 # flags to be left without arguments
9082 need_version=unknown
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9088 shlibpath_var=LIBPATH
9090 # AIX 3 has no versioning support, so we append a major version to the name.
9091 soname_spec='${libname}${release}${shared_ext}$major'
9098 hardcode_into_libs=yes
9099 if test "$host_cpu" = ia64; then
9100 # AIX 5 supports IA64
9101 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9102 shlibpath_var=LD_LIBRARY_PATH
9104 # With GCC up to 2.95.x, collect2 would create an import file
9105 # for dependence libraries. The import file would start with
9106 # the line `#! .'. This would cause the generated library to
9107 # depend on `.', always an invalid library. This was fixed in
9108 # development snapshots of GCC prior to 3.0.
9110 aix4 | aix4.[01] | aix4.[01].*)
9111 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9113 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9120 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9121 # soname into executable. Probably we can add versioning support to
9122 # collect2, so additional links can be useful in future.
9123 if test "$aix_use_runtimelinking" = yes; then
9124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9125 # instead of lib<name>.a to let people know that these are not
9126 # typical AIX shared libraries.
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9129 # We preserve .a as extension for shared libraries through AIX4.2
9130 # and later when we are not doing run time linking.
9131 library_names_spec='${libname}${release}.a $libname.a'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LIBPATH
9141 # Since July 2007 AmigaOS4 officially supports .so libraries.
9142 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146 library_names_spec='$libname.ixlibrary $libname.a'
9147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9148 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'
9154 library_names_spec='${libname}${shared_ext}'
9155 dynamic_linker="$host_os ld.so"
9156 shlibpath_var=LIBRARY_PATH
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9165 shlibpath_var=LD_LIBRARY_PATH
9166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9168 # the default ld.so.conf also contains /usr/contrib/lib and
9169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9170 # libtool to hard-code these into programs
9173 cygwin* | mingw* | pw32* | cegcc*)
9174 version_type=windows
9179 case $GCC,$host_os in
9180 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9181 library_names_spec='$libname.dll.a'
9182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9183 postinstall_cmds='base_file=`basename \${file}`~
9184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9185 dldir=$destdir/`dirname \$dlpath`~
9186 test -d \$dldir || mkdir -p \$dldir~
9187 $install_prog $dir/$dlname \$dldir/$dlname~
9188 chmod a+x \$dldir/$dlname~
9189 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9190 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9192 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9193 dlpath=$dir/\$dldll~
9195 shlibpath_overrides_runpath=yes
9199 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9200 #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9201 soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
9202 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9205 # MinGW DLLs use traditional 'lib' prefix
9206 #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
9207 soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
9208 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9210 # It is most probably a Windows format PATH printed by
9211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9212 # path with ; separators, and with drive letters. We can handle the
9213 # drive letters (cygwin fileutils understands them), so leave them,
9214 # especially as we might pass files found there to a mingw objdump,
9215 # which wouldn't understand a cygwinified path. Ahh.
9216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9218 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9222 # pw32 DLLs use 'pw' prefix rather than 'lib'
9223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9232 dynamic_linker='Win32 ld.exe'
9233 # FIXME: first we should search . and the directory the executable is in
9237 darwin* | rhapsody*)
9238 dynamic_linker="$host_os dyld"
9242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9243 soname_spec='${libname}${release}${major}$shared_ext'
9244 shlibpath_overrides_runpath=yes
9245 shlibpath_var=DYLD_LIBRARY_PATH
9246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 shlibpath_var=LD_LIBRARY_PATH
9265 freebsd* | dragonfly*)
9266 # DragonFly does not have aout. When/if they implement a new
9267 # versioning mechanism, adjust this.
9268 if test -x /usr/bin/objformat; then
9269 objformat=`/usr/bin/objformat`
9272 freebsd[123]*) objformat=aout ;;
9276 version_type=freebsd-$objformat
9277 case $version_type in
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9288 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=yes
9293 freebsd3.[01]* | freebsdelf3.[01]*)
9294 shlibpath_overrides_runpath=yes
9295 hardcode_into_libs=yes
9297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9299 shlibpath_overrides_runpath=no
9300 hardcode_into_libs=yes
9302 *) # from 4.6 on, and DragonFly
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9314 soname_spec='${libname}${release}${shared_ext}$major'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 hardcode_into_libs=yes
9319 hpux9* | hpux10* | hpux11*)
9320 # Give a soname corresponding to the major version so that dld.sl refuses to
9321 # link against other versions.
9328 hardcode_into_libs=yes
9329 dynamic_linker="$host_os dld.so"
9330 shlibpath_var=LD_LIBRARY_PATH
9331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9333 soname_spec='${libname}${release}${shared_ext}$major'
9334 if test "X$HPUX_IA64_MODE" = X32; then
9335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9343 hardcode_into_libs=yes
9344 dynamic_linker="$host_os dld.sl"
9345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9354 dynamic_linker="$host_os dld.sl"
9355 shlibpath_var=SHLIB_PATH
9356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9362 postinstall_cmds='chmod 555 $lib'
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9372 shlibpath_var=LD_LIBRARY_PATH
9373 shlibpath_overrides_runpath=no
9374 hardcode_into_libs=yes
9377 irix5* | irix6* | nonstopux*)
9379 nonstopux*) version_type=nonstopux ;;
9381 if test "$lt_cv_prog_gnu_ld" = yes; then
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9392 irix5* | nonstopux*)
9396 case $LD in # libtool.m4 will add one of these switches to LD
9397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9398 libsuff= shlibsuff= libmagic=32-bit;;
9399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9400 libsuff=32 shlibsuff=N32 libmagic=N32;;
9401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9403 *) libsuff= shlibsuff= libmagic=never-match;;
9407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9408 shlibpath_overrides_runpath=no
9409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9411 hardcode_into_libs=yes
9414 # No shared lib support for Linux oldld, aout, or coff.
9415 linux*oldld* | linux*aout* | linux*coff*)
9419 # This must be Linux ELF.
9420 linux* | k*bsd*-gnu)
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9425 soname_spec='${libname}${release}${shared_ext}$major'
9426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=no
9429 # Some binutils ld are patched to set DT_RUNPATH
9430 save_LDFLAGS=$LDFLAGS
9432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9434 cat >conftest.$ac_ext <<_ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9449 rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9456 $as_echo "$ac_try_echo") >&5
9457 (eval "$ac_link") 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } && {
9464 test -z "$ac_c_werror_flag" ||
9465 test ! -s conftest.err
9466 } && test -s conftest$ac_exeext && {
9467 test "$cross_compiling" = yes ||
9468 $as_test_x conftest$ac_exeext
9470 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9471 shlibpath_overrides_runpath=yes
9475 $as_echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9481 rm -rf conftest.dSYM
9482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9483 conftest$ac_exeext conftest.$ac_ext
9484 LDFLAGS=$save_LDFLAGS
9487 # This implies no fast_install, which is unacceptable.
9488 # Some rework will be needed to allow for fast_install
9489 # before this can be enabled.
9490 hardcode_into_libs=yes
9492 # Append ld.so.conf contents to the search path
9493 if test -f /etc/ld.so.conf; then
9494 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' ' '`
9495 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9498 # We used to test for /lib/ld.so.1 and disable shared libraries on
9499 # powerpc, because MkLinux only supported shared libraries with the
9500 # GNU dynamic linker. Since this was broken with cross compilers,
9501 # most powerpc-linux boxes support dynamic linking these days and
9502 # people can always --disable-shared, the test was removed, and we
9503 # assume the GNU/Linux dynamic linker is in use.
9504 dynamic_linker='GNU/Linux ld.so'
9511 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9514 dynamic_linker='NetBSD (a.out) ld.so'
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9517 soname_spec='${libname}${release}${shared_ext}$major'
9518 dynamic_linker='NetBSD ld.elf_so'
9520 shlibpath_var=LD_LIBRARY_PATH
9521 shlibpath_overrides_runpath=yes
9522 hardcode_into_libs=yes
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 shlibpath_overrides_runpath=yes
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 shlibpath_overrides_runpath=no
9540 hardcode_into_libs=yes
9541 dynamic_linker='ldqnx.so'
9546 sys_lib_dlsearch_path_spec="/usr/lib"
9548 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9550 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9551 *) need_version=no ;;
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9558 openbsd2.[89] | openbsd2.[89].*)
9559 shlibpath_overrides_runpath=no
9562 shlibpath_overrides_runpath=yes
9566 shlibpath_overrides_runpath=yes
9571 libname_spec='$name'
9574 library_names_spec='$libname${shared_ext} $libname.a'
9575 dynamic_linker='OS/2 ld.exe'
9576 shlibpath_var=LIBPATH
9579 osf3* | osf4* | osf5*)
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 shlibpath_var=LD_LIBRARY_PATH
9586 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9587 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9599 soname_spec='${libname}${release}${shared_ext}$major'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 shlibpath_overrides_runpath=yes
9602 hardcode_into_libs=yes
9603 # ldd complains unless libraries are executable
9604 postinstall_cmds='chmod +x $lib'
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 shlibpath_overrides_runpath=yes
9613 if test "$with_gnu_ld" = yes; then
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 case $host_vendor in
9626 shlibpath_overrides_runpath=no
9628 runpath_var=LD_RUN_PATH
9636 shlibpath_overrides_runpath=no
9637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9643 if test -d /usr/nec ;then
9645 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9646 soname_spec='$libname${shared_ext}.$major'
9647 shlibpath_var=LD_LIBRARY_PATH
9651 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9652 version_type=freebsd-elf
9655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9656 soname_spec='${libname}${release}${shared_ext}$major'
9657 shlibpath_var=LD_LIBRARY_PATH
9658 shlibpath_overrides_runpath=yes
9659 hardcode_into_libs=yes
9660 if test "$with_gnu_ld" = yes; then
9661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9666 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9670 sys_lib_dlsearch_path_spec='/usr/lib'
9674 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 shlibpath_var=LD_LIBRARY_PATH
9680 shlibpath_overrides_runpath=no
9681 hardcode_into_libs=yes
9686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9687 soname_spec='${libname}${release}${shared_ext}$major'
9688 shlibpath_var=LD_LIBRARY_PATH
9695 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9696 $as_echo "$dynamic_linker" >&6; }
9697 test "$dynamic_linker" = no && can_build_shared=no
9699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9700 if test "$GCC" = yes; then
9701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9704 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9705 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9707 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9708 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9797 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9798 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9800 if test -n "$hardcode_libdir_flag_spec" ||
9801 test -n "$runpath_var" ||
9802 test "X$hardcode_automatic" = "Xyes" ; then
9804 # We can hardcode non-existent directories.
9805 if test "$hardcode_direct" != no &&
9806 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9807 # have to relink, otherwise we might link with an installed library
9808 # when we should be linking with a yet-to-be-installed one
9809 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9810 test "$hardcode_minus_L" != no; then
9811 # Linking always hardcodes the temporary library directory.
9812 hardcode_action=relink
9814 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9815 hardcode_action=immediate
9818 # We cannot hardcode anything, or else we can only hardcode existing
9820 hardcode_action=unsupported
9822 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9823 $as_echo "$hardcode_action" >&6; }
9825 if test "$hardcode_action" = relink ||
9826 test "$inherit_rpath" = yes; then
9827 # Fast installation is not supported
9828 enable_fast_install=no
9829 elif test "$shlibpath_overrides_runpath" = yes ||
9830 test "$enable_shared" = no; then
9831 # Fast installation is not necessary
9832 enable_fast_install=needless
9840 if test "x$enable_dlopen" != xyes; then
9841 enable_dlopen=unknown
9842 enable_dlopen_self=unknown
9843 enable_dlopen_self_static=unknown
9850 lt_cv_dlopen="load_add_on"
9852 lt_cv_dlopen_self=yes
9855 mingw* | pw32* | cegcc*)
9856 lt_cv_dlopen="LoadLibrary"
9861 lt_cv_dlopen="dlopen"
9866 # if libdl is installed we need to link against it
9867 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9868 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9870 $as_echo_n "(cached) " >&6
9872 ac_check_lib_save_LIBS=$LIBS
9874 cat >conftest.$ac_ext <<_ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9903 $as_echo "$ac_try_echo") >&5
9904 (eval "$ac_link") 2>conftest.er1
9906 grep -v '^ *+' conftest.er1 >conftest.err
9908 cat conftest.err >&5
9909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } && {
9911 test -z "$ac_c_werror_flag" ||
9912 test ! -s conftest.err
9913 } && test -s conftest$ac_exeext && {
9914 test "$cross_compiling" = yes ||
9915 $as_test_x conftest$ac_exeext
9917 ac_cv_lib_dl_dlopen=yes
9919 $as_echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_cv_lib_dl_dlopen=no
9925 rm -rf conftest.dSYM
9926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9927 conftest$ac_exeext conftest.$ac_ext
9928 LIBS=$ac_check_lib_save_LIBS
9930 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9931 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9932 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9938 lt_cv_dlopen_self=yes
9945 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9946 $as_echo_n "checking for shl_load... " >&6; }
9947 if test "${ac_cv_func_shl_load+set}" = set; then
9948 $as_echo_n "(cached) " >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9958 #define shl_load innocuous_shl_load
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char shl_load (); below.
9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963 <limits.h> exists even on freestanding compilers. */
9966 # include <limits.h>
9968 # include <assert.h>
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9980 /* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983 #if defined __stub_shl_load || defined __stub___shl_load
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10002 $as_echo "$ac_try_echo") >&5
10003 (eval "$ac_link") 2>conftest.er1
10005 grep -v '^ *+' conftest.er1 >conftest.err
10007 cat conftest.err >&5
10008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest$ac_exeext && {
10013 test "$cross_compiling" = yes ||
10014 $as_test_x conftest$ac_exeext
10016 ac_cv_func_shl_load=yes
10018 $as_echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10021 ac_cv_func_shl_load=no
10024 rm -rf conftest.dSYM
10025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10026 conftest$ac_exeext conftest.$ac_ext
10028 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10029 $as_echo "$ac_cv_func_shl_load" >&6; }
10030 if test "x$ac_cv_func_shl_load" = x""yes; then
10031 lt_cv_dlopen="shl_load"
10033 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10034 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10035 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10036 $as_echo_n "(cached) " >&6
10038 ac_check_lib_save_LIBS=$LIBS
10040 cat >conftest.$ac_ext <<_ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h. */
10047 /* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
10057 return shl_load ();
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (ac_try="$ac_link"
10064 case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070 (eval "$ac_link") 2>conftest.er1
10072 grep -v '^ *+' conftest.er1 >conftest.err
10074 cat conftest.err >&5
10075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && {
10077 test -z "$ac_c_werror_flag" ||
10078 test ! -s conftest.err
10079 } && test -s conftest$ac_exeext && {
10080 test "$cross_compiling" = yes ||
10081 $as_test_x conftest$ac_exeext
10083 ac_cv_lib_dld_shl_load=yes
10085 $as_echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_lib_dld_shl_load=no
10091 rm -rf conftest.dSYM
10092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10093 conftest$ac_exeext conftest.$ac_ext
10094 LIBS=$ac_check_lib_save_LIBS
10096 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10097 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10098 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10099 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10101 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10102 $as_echo_n "checking for dlopen... " >&6; }
10103 if test "${ac_cv_func_dlopen+set}" = set; then
10104 $as_echo_n "(cached) " >&6
10106 cat >conftest.$ac_ext <<_ACEOF
10109 cat confdefs.h >>conftest.$ac_ext
10110 cat >>conftest.$ac_ext <<_ACEOF
10111 /* end confdefs.h. */
10112 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114 #define dlopen innocuous_dlopen
10116 /* System header to define __stub macros and hopefully few prototypes,
10117 which can conflict with char dlopen (); below.
10118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119 <limits.h> exists even on freestanding compilers. */
10122 # include <limits.h>
10124 # include <assert.h>
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10136 /* The GNU C library defines this for functions which it implements
10137 to always fail with ENOSYS. Some functions are actually named
10138 something starting with __ and the normal name is an alias. */
10139 #if defined __stub_dlopen || defined __stub___dlopen
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (ac_try="$ac_link"
10153 case "(($ac_try" in
10154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10158 $as_echo "$ac_try_echo") >&5
10159 (eval "$ac_link") 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10163 cat conftest.err >&5
10164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } && {
10166 test -z "$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10168 } && test -s conftest$ac_exeext && {
10169 test "$cross_compiling" = yes ||
10170 $as_test_x conftest$ac_exeext
10172 ac_cv_func_dlopen=yes
10174 $as_echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 ac_cv_func_dlopen=no
10180 rm -rf conftest.dSYM
10181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10182 conftest$ac_exeext conftest.$ac_ext
10184 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10185 $as_echo "$ac_cv_func_dlopen" >&6; }
10186 if test "x$ac_cv_func_dlopen" = x""yes; then
10187 lt_cv_dlopen="dlopen"
10189 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10190 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10192 $as_echo_n "(cached) " >&6
10194 ac_check_lib_save_LIBS=$LIBS
10196 cat >conftest.$ac_ext <<_ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10203 /* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
10218 rm -f conftest.$ac_objext conftest$ac_exeext
10219 if { (ac_try="$ac_link"
10220 case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225 $as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10228 grep -v '^ *+' conftest.er1 >conftest.err
10230 cat conftest.err >&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest$ac_exeext
10239 ac_cv_lib_dl_dlopen=yes
10241 $as_echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10244 ac_cv_lib_dl_dlopen=no
10247 rm -rf conftest.dSYM
10248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10254 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10255 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10257 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10259 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10260 $as_echo_n "(cached) " >&6
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lsvld $LIBS"
10264 cat >conftest.$ac_ext <<_ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10271 /* Override any GCC internal prototype to avoid an error.
10272 Use char because int might match the return type of a GCC
10273 builtin and then its argument prototype would still apply. */
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_link") 2>conftest.er1
10296 grep -v '^ *+' conftest.er1 >conftest.err
10298 cat conftest.err >&5
10299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest$ac_exeext && {
10304 test "$cross_compiling" = yes ||
10305 $as_test_x conftest$ac_exeext
10307 ac_cv_lib_svld_dlopen=yes
10309 $as_echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_lib_svld_dlopen=no
10315 rm -rf conftest.dSYM
10316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10317 conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10321 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10322 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10325 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10326 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10327 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10328 $as_echo_n "(cached) " >&6
10330 ac_check_lib_save_LIBS=$LIBS
10332 cat >conftest.$ac_ext <<_ACEOF
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10339 /* Override any GCC internal prototype to avoid an error.
10340 Use char because int might match the return type of a GCC
10341 builtin and then its argument prototype would still apply. */
10349 return dld_link ();
10354 rm -f conftest.$ac_objext conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358 *) ac_try_echo=$ac_try;;
10360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10361 $as_echo "$ac_try_echo") >&5
10362 (eval "$ac_link") 2>conftest.er1
10364 grep -v '^ *+' conftest.er1 >conftest.err
10366 cat conftest.err >&5
10367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && {
10369 test -z "$ac_c_werror_flag" ||
10370 test ! -s conftest.err
10371 } && test -s conftest$ac_exeext && {
10372 test "$cross_compiling" = yes ||
10373 $as_test_x conftest$ac_exeext
10375 ac_cv_lib_dld_dld_link=yes
10377 $as_echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10380 ac_cv_lib_dld_dld_link=no
10383 rm -rf conftest.dSYM
10384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10385 conftest$ac_exeext conftest.$ac_ext
10386 LIBS=$ac_check_lib_save_LIBS
10388 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10389 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10390 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10391 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10412 if test "x$lt_cv_dlopen" != xno; then
10418 case $lt_cv_dlopen in
10420 save_CPPFLAGS="$CPPFLAGS"
10421 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10423 save_LDFLAGS="$LDFLAGS"
10424 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10427 LIBS="$lt_cv_dlopen_libs $LIBS"
10429 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10430 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10431 if test "${lt_cv_dlopen_self+set}" = set; then
10432 $as_echo_n "(cached) " >&6
10434 if test "$cross_compiling" = yes; then :
10435 lt_cv_dlopen_self=cross
10437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10438 lt_status=$lt_dlunknown
10439 cat > conftest.$ac_ext <<_LT_EOF
10440 #line 10440 "configure"
10441 #include "confdefs.h"
10450 # define LT_DLGLOBAL RTLD_GLOBAL
10453 # define LT_DLGLOBAL DL_GLOBAL
10455 # define LT_DLGLOBAL 0
10459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10460 find out it does not work in some platform. */
10461 #ifndef LT_DLLAZY_OR_NOW
10463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10466 # define LT_DLLAZY_OR_NOW DL_LAZY
10469 # define LT_DLLAZY_OR_NOW RTLD_NOW
10472 # define LT_DLLAZY_OR_NOW DL_NOW
10474 # define LT_DLLAZY_OR_NOW 0
10481 void fnord() { int i=42;}
10484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10485 int status = $lt_dlunknown;
10489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10490 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10491 /* dlclose (self); */
10499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10500 (eval $ac_link) 2>&5
10502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10504 (./conftest; exit; ) >&5 2>/dev/null
10506 case x$lt_status in
10507 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10508 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10509 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10512 # compilation failed
10513 lt_cv_dlopen_self=no
10520 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10521 $as_echo "$lt_cv_dlopen_self" >&6; }
10523 if test "x$lt_cv_dlopen_self" = xyes; then
10524 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10525 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10526 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10527 if test "${lt_cv_dlopen_self_static+set}" = set; then
10528 $as_echo_n "(cached) " >&6
10530 if test "$cross_compiling" = yes; then :
10531 lt_cv_dlopen_self_static=cross
10533 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10534 lt_status=$lt_dlunknown
10535 cat > conftest.$ac_ext <<_LT_EOF
10536 #line 10536 "configure"
10537 #include "confdefs.h"
10546 # define LT_DLGLOBAL RTLD_GLOBAL
10549 # define LT_DLGLOBAL DL_GLOBAL
10551 # define LT_DLGLOBAL 0
10555 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10556 find out it does not work in some platform. */
10557 #ifndef LT_DLLAZY_OR_NOW
10559 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10562 # define LT_DLLAZY_OR_NOW DL_LAZY
10565 # define LT_DLLAZY_OR_NOW RTLD_NOW
10568 # define LT_DLLAZY_OR_NOW DL_NOW
10570 # define LT_DLLAZY_OR_NOW 0
10577 void fnord() { int i=42;}
10580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10581 int status = $lt_dlunknown;
10585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10586 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10587 /* dlclose (self); */
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>&5
10598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10600 (./conftest; exit; ) >&5 2>/dev/null
10602 case x$lt_status in
10603 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10604 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10605 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10608 # compilation failed
10609 lt_cv_dlopen_self_static=no
10616 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10617 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10620 CPPFLAGS="$save_CPPFLAGS"
10621 LDFLAGS="$save_LDFLAGS"
10626 case $lt_cv_dlopen_self in
10627 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10628 *) enable_dlopen_self=unknown ;;
10631 case $lt_cv_dlopen_self_static in
10632 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10633 *) enable_dlopen_self_static=unknown ;;
10655 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10656 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10657 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10658 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10659 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10660 { $as_echo "$as_me:$LINENO: result: yes" >&5
10661 $as_echo "yes" >&6; }
10663 # FIXME - insert some real tests, host_os isn't really good enough
10666 if test -n "$STRIP" ; then
10667 striplib="$STRIP -x"
10668 old_striplib="$STRIP -S"
10669 { $as_echo "$as_me:$LINENO: result: yes" >&5
10670 $as_echo "yes" >&6; }
10672 { $as_echo "$as_me:$LINENO: result: no" >&5
10673 $as_echo "no" >&6; }
10677 { $as_echo "$as_me:$LINENO: result: no" >&5
10678 $as_echo "no" >&6; }
10694 # Report which library types will actually be built
10695 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10696 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10697 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10698 $as_echo "$can_build_shared" >&6; }
10700 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10701 $as_echo_n "checking whether to build shared libraries... " >&6; }
10702 test "$can_build_shared" = "no" && enable_shared=no
10704 # On AIX, shared libraries and static libraries use the same namespace, and
10705 # are all built from PIC.
10708 test "$enable_shared" = yes && enable_static=no
10709 if test -n "$RANLIB"; then
10710 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10711 postinstall_cmds='$RANLIB $lib'
10716 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10717 test "$enable_shared" = yes && enable_static=no
10721 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10722 $as_echo "$enable_shared" >&6; }
10724 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10725 $as_echo_n "checking whether to build static libraries... " >&6; }
10726 # Make sure either enable_shared or enable_static is yes.
10727 test "$enable_shared" = yes || enable_static=yes
10728 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10729 $as_echo "$enable_static" >&6; }
10736 ac_cpp='$CPP $CPPFLAGS'
10737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10755 ac_config_commands="$ac_config_commands libtool"
10760 # Only expand once:
10764 LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
10765 LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
10766 LT_REVISION=$INTERFACE_AGE
10767 LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
10774 { $as_echo "$as_me:$LINENO: checking host system type" >&5
10775 $as_echo_n "checking host system type... " >&6; }
10776 if test "${ac_cv_host+set}" = set; then
10777 $as_echo_n "(cached) " >&6
10779 if test "x$host_alias" = x; then
10780 ac_cv_host=$ac_cv_build
10782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10783 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10784 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10785 { (exit 1); exit 1; }; }
10789 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10790 $as_echo "$ac_cv_host" >&6; }
10791 case $ac_cv_host in
10793 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10794 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
10795 { (exit 1); exit 1; }; };;
10798 ac_save_IFS=$IFS; IFS='-'
10804 # Remember, the first character of IFS is used to create $*,
10805 # except with old shells:
10808 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10812 am__api_version='1.11'
10814 # Find a good install program. We prefer a C program (faster),
10815 # so one script is as good as another. But avoid the broken or
10816 # incompatible versions:
10817 # SysV /etc/install, /usr/sbin/install
10818 # SunOS /usr/etc/install
10819 # IRIX /sbin/install
10821 # AmigaOS /C/install, which installs bootblocks on floppy discs
10822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10825 # OS/2's system install, which has a completely different semantic
10826 # ./install, which can be erroneously created by make from ./install.sh.
10827 # Reject install programs that cannot install multiple files.
10828 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10830 if test -z "$INSTALL"; then
10831 if test "${ac_cv_path_install+set}" = set; then
10832 $as_echo_n "(cached) " >&6
10834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835 for as_dir in $PATH
10838 test -z "$as_dir" && as_dir=.
10839 # Account for people who put trailing slashes in PATH elements.
10841 ./ | .// | /cC/* | \
10842 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10843 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10846 # OSF1 and SCO ODT 3.0 have their own names for install.
10847 # Don't use installbsd from OSF since it installs stuff as root
10849 for ac_prog in ginstall scoinst install; do
10850 for ac_exec_ext in '' $ac_executable_extensions; do
10851 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10852 if test $ac_prog = install &&
10853 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10854 # AIX install. It has an incompatible calling convention.
10856 elif test $ac_prog = install &&
10857 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10858 # program-specific install script used by HP pwplus--don't use.
10861 rm -rf conftest.one conftest.two conftest.dir
10862 echo one > conftest.one
10863 echo two > conftest.two
10865 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10866 test -s conftest.one && test -s conftest.two &&
10867 test -s conftest.dir/conftest.one &&
10868 test -s conftest.dir/conftest.two
10870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10883 rm -rf conftest.one conftest.two conftest.dir
10886 if test "${ac_cv_path_install+set}" = set; then
10887 INSTALL=$ac_cv_path_install
10889 # As a last resort, use the slow shell script. Don't cache a
10890 # value for INSTALL within a source directory, because that will
10891 # break other packages using the cache if that directory is
10892 # removed, or if the value is a relative name.
10893 INSTALL=$ac_install_sh
10896 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10897 $as_echo "$INSTALL" >&6; }
10899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10900 # It thinks the first close brace ends the variable substitution.
10901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10907 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
10908 $as_echo_n "checking whether build environment is sane... " >&6; }
10911 echo timestamp > conftest.file
10912 # Reject unsafe characters in $srcdir or the absolute working directory
10913 # name. Accept space and tab only in the latter.
10917 *[\\\"\#\$\&\'\`$am_lf]*)
10918 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
10919 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
10920 { (exit 1); exit 1; }; };;
10923 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
10924 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
10925 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
10926 { (exit 1); exit 1; }; };;
10929 # Do `set' in a subshell so we don't clobber the current shell's
10930 # arguments. Must try -L first in case configure is actually a
10931 # symlink; some systems play weird games with the mod time of symlinks
10932 # (eg FreeBSD returns the mod time of the symlink's containing
10935 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10936 if test "$*" = "X"; then
10938 set X `ls -t "$srcdir/configure" conftest.file`
10940 rm -f conftest.file
10941 if test "$*" != "X $srcdir/configure conftest.file" \
10942 && test "$*" != "X conftest.file $srcdir/configure"; then
10944 # If neither matched, then we have a broken ls. This can happen
10945 # if, for instance, CONFIG_SHELL is bash and it inherits a
10946 # broken ls alias from the environment. This has actually
10947 # happened. Such a system could not be considered "sane".
10948 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
10949 alias in your environment" >&5
10950 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
10951 alias in your environment" >&2;}
10952 { (exit 1); exit 1; }; }
10955 test "$2" = conftest.file
10961 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
10962 Check your system clock" >&5
10963 $as_echo "$as_me: error: newly created file is older than distributed files!
10964 Check your system clock" >&2;}
10965 { (exit 1); exit 1; }; }
10967 { $as_echo "$as_me:$LINENO: result: yes" >&5
10968 $as_echo "yes" >&6; }
10969 test "$program_prefix" != NONE &&
10970 program_transform_name="s&^&$program_prefix&;$program_transform_name"
10971 # Use a double $ so make ignores it.
10972 test "$program_suffix" != NONE &&
10973 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10974 # Double any \ or $.
10975 # By default was `s,x,x', remove it if useless.
10976 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10977 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
10979 # expand $ac_aux_dir to an absolute path
10980 am_aux_dir=`cd $ac_aux_dir && pwd`
10982 if test x"${MISSING+set}" != xset; then
10983 case $am_aux_dir in
10985 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
10987 MISSING="\${SHELL} $am_aux_dir/missing" ;;
10990 # Use eval to expand $SHELL
10991 if eval "$MISSING --run true"; then
10992 am_missing_run="$MISSING --run "
10995 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
10996 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
10999 if test x"${install_sh}" != xset; then
11000 case $am_aux_dir in
11002 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11004 install_sh="\${SHELL} $am_aux_dir/install-sh"
11008 # Installed binaries are usually stripped using `strip' when the user
11009 # run `make install-strip'. However `strip' might not be the right
11010 # tool to use in cross-compilation environments, therefore Automake
11011 # will honor the `STRIP' environment variable to overrule this program.
11012 if test "$cross_compiling" != no; then
11013 if test -n "$ac_tool_prefix"; then
11014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11015 set dummy ${ac_tool_prefix}strip; ac_word=$2
11016 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11017 $as_echo_n "checking for $ac_word... " >&6; }
11018 if test "${ac_cv_prog_STRIP+set}" = set; then
11019 $as_echo_n "(cached) " >&6
11021 if test -n "$STRIP"; then
11022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025 for as_dir in $PATH
11028 test -z "$as_dir" && as_dir=.
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11031 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11032 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11041 STRIP=$ac_cv_prog_STRIP
11042 if test -n "$STRIP"; then
11043 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
11044 $as_echo "$STRIP" >&6; }
11046 { $as_echo "$as_me:$LINENO: result: no" >&5
11047 $as_echo "no" >&6; }
11052 if test -z "$ac_cv_prog_STRIP"; then
11054 # Extract the first word of "strip", so it can be a program name with args.
11055 set dummy strip; ac_word=$2
11056 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11057 $as_echo_n "checking for $ac_word... " >&6; }
11058 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11059 $as_echo_n "(cached) " >&6
11061 if test -n "$ac_ct_STRIP"; then
11062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11065 for as_dir in $PATH
11068 test -z "$as_dir" && as_dir=.
11069 for ac_exec_ext in '' $ac_executable_extensions; do
11070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11071 ac_cv_prog_ac_ct_STRIP="strip"
11072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11082 if test -n "$ac_ct_STRIP"; then
11083 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11084 $as_echo "$ac_ct_STRIP" >&6; }
11086 { $as_echo "$as_me:$LINENO: result: no" >&5
11087 $as_echo "no" >&6; }
11090 if test "x$ac_ct_STRIP" = x; then
11093 case $cross_compiling:$ac_tool_warned in
11095 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11097 ac_tool_warned=yes ;;
11102 STRIP="$ac_cv_prog_STRIP"
11106 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11108 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
11109 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11110 if test -z "$MKDIR_P"; then
11111 if test "${ac_cv_path_mkdir+set}" = set; then
11112 $as_echo_n "(cached) " >&6
11114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11115 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11118 test -z "$as_dir" && as_dir=.
11119 for ac_prog in mkdir gmkdir; do
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11122 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11123 'mkdir (GNU coreutils) '* | \
11124 'mkdir (coreutils) '* | \
11125 'mkdir (fileutils) '4.1*)
11126 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11136 if test "${ac_cv_path_mkdir+set}" = set; then
11137 MKDIR_P="$ac_cv_path_mkdir -p"
11139 # As a last resort, use the slow shell script. Don't cache a
11140 # value for MKDIR_P within a source directory, because that will
11141 # break other packages using the cache if that directory is
11142 # removed, or if the value is a relative name.
11143 test -d ./--version && rmdir ./--version
11144 MKDIR_P="$ac_install_sh -d"
11147 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
11148 $as_echo "$MKDIR_P" >&6; }
11152 [\\/$]* | ?:[\\/]*) ;;
11153 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11156 for ac_prog in gawk mawk nawk awk
11158 # Extract the first word of "$ac_prog", so it can be a program name with args.
11159 set dummy $ac_prog; ac_word=$2
11160 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11161 $as_echo_n "checking for $ac_word... " >&6; }
11162 if test "${ac_cv_prog_AWK+set}" = set; then
11163 $as_echo_n "(cached) " >&6
11165 if test -n "$AWK"; then
11166 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_prog_AWK="$ac_prog"
11176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 AWK=$ac_cv_prog_AWK
11186 if test -n "$AWK"; then
11187 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11188 $as_echo "$AWK" >&6; }
11190 { $as_echo "$as_me:$LINENO: result: no" >&5
11191 $as_echo "no" >&6; }
11195 test -n "$AWK" && break
11198 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11199 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11201 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11202 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11203 $as_echo_n "(cached) " >&6
11205 cat >conftest.make <<\_ACEOF
11208 @echo '@@@%%%=$(MAKE)=@@@%%%'
11210 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11211 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11212 *@@@%%%=?*=@@@%%%*)
11213 eval ac_cv_prog_make_${ac_make}_set=yes;;
11215 eval ac_cv_prog_make_${ac_make}_set=no;;
11217 rm -f conftest.make
11219 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11220 { $as_echo "$as_me:$LINENO: result: yes" >&5
11221 $as_echo "yes" >&6; }
11224 { $as_echo "$as_me:$LINENO: result: no" >&5
11225 $as_echo "no" >&6; }
11226 SET_MAKE="MAKE=${MAKE-make}"
11229 rm -rf .tst 2>/dev/null
11230 mkdir .tst 2>/dev/null
11231 if test -d .tst; then
11236 rmdir .tst 2>/dev/null
11238 DEPDIR="${am__leading_dot}deps"
11240 ac_config_commands="$ac_config_commands depfiles"
11243 am_make=${MAKE-make}
11244 cat > confinc << 'END'
11246 @echo this is the am__doit target
11249 # If we don't find an include directive, just comment out the code.
11250 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
11251 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11255 # First try GNU make style include.
11256 echo "include confinc" > confmf
11257 # Ignore all kinds of additional output from `make'.
11258 case `$am_make -s -f confmf 2> /dev/null` in #(
11259 *the\ am__doit\ target*)
11260 am__include=include
11265 # Now try BSD make style include.
11266 if test "$am__include" = "#"; then
11267 echo '.include "confinc"' > confmf
11268 case `$am_make -s -f confmf 2> /dev/null` in #(
11269 *the\ am__doit\ target*)
11270 am__include=.include
11278 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
11279 $as_echo "$_am_result" >&6; }
11280 rm -f confinc confmf
11282 # Check whether --enable-dependency-tracking was given.
11283 if test "${enable_dependency_tracking+set}" = set; then
11284 enableval=$enable_dependency_tracking;
11287 if test "x$enable_dependency_tracking" != xno; then
11288 am_depcomp="$ac_aux_dir/depcomp"
11291 if test "x$enable_dependency_tracking" != xno; then
11300 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11301 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11302 # is not polluted with repeated "-I."
11303 am__isrc=' -I$(srcdir)'
11304 # test to see if srcdir already configured
11305 if test -f $srcdir/config.status; then
11306 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
11307 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
11308 { (exit 1); exit 1; }; }
11312 # test whether we have cygpath
11313 if test -z "$CYGPATH_W"; then
11314 if (cygpath --version) >/dev/null 2>/dev/null; then
11315 CYGPATH_W='cygpath -w'
11322 # Define the identity of the package.
11327 cat >>confdefs.h <<_ACEOF
11328 #define PACKAGE "$PACKAGE"
11332 cat >>confdefs.h <<_ACEOF
11333 #define VERSION "$VERSION"
11336 # Some tools Automake needs.
11338 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11341 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11344 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11347 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11350 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11352 # We need awk for the "check" target. The system "awk" is bad on
11354 # Always define AMTAR for backward compatibility.
11356 AMTAR=${AMTAR-"${am_missing_run}tar"}
11358 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11363 depcc="$CC" am_compiler_list=
11365 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11366 $as_echo_n "checking dependency style of $depcc... " >&6; }
11367 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11368 $as_echo_n "(cached) " >&6
11370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11371 # We make a subdir and do the tests there. Otherwise we can end up
11372 # making bogus files that we don't know about and never remove. For
11373 # instance it was reported that on HP-UX the gcc test will end up
11374 # making a dummy file named `D' -- because `-MD' means `put the output
11377 # Copy depcomp to subdir because otherwise we won't find it if we're
11378 # using a relative directory.
11379 cp "$am_depcomp" conftest.dir
11381 # We will build objects and dependencies in a subdirectory because
11382 # it helps to detect inapplicable dependency modes. For instance
11383 # both Tru64's cc and ICC support -MD to output dependencies as a
11384 # side effect of compilation, but ICC will put the dependencies in
11385 # the current directory while Tru64 will put them in the object
11389 am_cv_CC_dependencies_compiler_type=none
11390 if test "$am_compiler_list" = ""; then
11391 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11393 am__universal=false
11394 case " $depcc " in #(
11395 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11398 for depmode in $am_compiler_list; do
11399 # Setup a source with many dependencies, because some compilers
11400 # like to wrap large dependency lists on column 80 (with \), and
11401 # we should not choose a depcomp mode which is confused by this.
11403 # We need to recreate these files for each test, as the compiler may
11404 # overwrite some of them when testing with obscure command lines.
11405 # This happens at least with the AIX C compiler.
11407 for i in 1 2 3 4 5 6; do
11408 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11409 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11410 # Solaris 8's {/usr,}/bin/sh.
11411 touch sub/conftst$i.h
11413 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11415 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11416 # mode. It turns out that the SunPro C++ compiler does not properly
11417 # handle `-M -o', and we need to detect this. Also, some Intel
11418 # versions had trouble with output in subdirs
11419 am__obj=sub/conftest.${OBJEXT-o}
11420 am__minus_obj="-o $am__obj"
11423 # This depmode causes a compiler race in universal mode.
11424 test "$am__universal" = false || continue
11427 # after this tag, mechanisms are not by side-effect, so they'll
11428 # only be used when explicitly requested
11429 if test "x$enable_dependency_tracking" = xyes; then
11435 msvisualcpp | msvcmsys)
11436 # This compiler won't grok `-c -o', but also, the minuso test has
11437 # not run yet. These depmodes are late enough in the game, and
11438 # so weak that their functioning should not be impacted.
11439 am__obj=conftest.${OBJEXT-o}
11444 if depmode=$depmode \
11445 source=sub/conftest.c object=$am__obj \
11446 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11447 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11448 >/dev/null 2>conftest.err &&
11449 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11450 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11451 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11452 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11453 # icc doesn't choke on unknown options, it will just issue warnings
11454 # or remarks (even with -Werror). So we grep stderr for any message
11455 # that says an option was ignored or not supported.
11456 # When given -MP, icc 7.0 and 7.1 complain thusly:
11457 # icc: Command line warning: ignoring option '-M'; no argument required
11458 # The diagnosis changed in icc 8.0:
11459 # icc: Command line remark: option '-MP' not supported
11460 if (grep 'ignoring option' conftest.err ||
11461 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11462 am_cv_CC_dependencies_compiler_type=$depmode
11469 rm -rf conftest.dir
11471 am_cv_CC_dependencies_compiler_type=none
11475 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11476 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11477 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11480 test "x$enable_dependency_tracking" != xno \
11481 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11482 am__fastdepCC_TRUE=
11483 am__fastdepCC_FALSE='#'
11485 am__fastdepCC_TRUE='#'
11486 am__fastdepCC_FALSE=
11494 ac_cpp='$CPP $CPPFLAGS'
11495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11498 if test -n "$ac_tool_prefix"; then
11499 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11500 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if test "${ac_cv_prog_CC+set}" = set; then
11504 $as_echo_n "(cached) " >&6
11506 if test -n "$CC"; then
11507 ac_cv_prog_CC="$CC" # Let the user override the test.
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11513 test -z "$as_dir" && as_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11527 if test -n "$CC"; then
11528 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11529 $as_echo "$CC" >&6; }
11531 { $as_echo "$as_me:$LINENO: result: no" >&5
11532 $as_echo "no" >&6; }
11537 if test -z "$ac_cv_prog_CC"; then
11539 # Extract the first word of "gcc", so it can be a program name with args.
11540 set dummy gcc; ac_word=$2
11541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; }
11543 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11544 $as_echo_n "(cached) " >&6
11546 if test -n "$ac_ct_CC"; then
11547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11556 ac_cv_prog_ac_ct_CC="gcc"
11557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11566 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11567 if test -n "$ac_ct_CC"; then
11568 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11569 $as_echo "$ac_ct_CC" >&6; }
11571 { $as_echo "$as_me:$LINENO: result: no" >&5
11572 $as_echo "no" >&6; }
11575 if test "x$ac_ct_CC" = x; then
11578 case $cross_compiling:$ac_tool_warned in
11580 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11582 ac_tool_warned=yes ;;
11587 CC="$ac_cv_prog_CC"
11590 if test -z "$CC"; then
11591 if test -n "$ac_tool_prefix"; then
11592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11593 set dummy ${ac_tool_prefix}cc; ac_word=$2
11594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if test "${ac_cv_prog_CC+set}" = set; then
11597 $as_echo_n "(cached) " >&6
11599 if test -n "$CC"; then
11600 ac_cv_prog_CC="$CC" # Let the user override the test.
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609 ac_cv_prog_CC="${ac_tool_prefix}cc"
11610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11620 if test -n "$CC"; then
11621 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11622 $as_echo "$CC" >&6; }
11624 { $as_echo "$as_me:$LINENO: result: no" >&5
11625 $as_echo "no" >&6; }
11631 if test -z "$CC"; then
11632 # Extract the first word of "cc", so it can be a program name with args.
11633 set dummy cc; ac_word=$2
11634 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11635 $as_echo_n "checking for $ac_word... " >&6; }
11636 if test "${ac_cv_prog_CC+set}" = set; then
11637 $as_echo_n "(cached) " >&6
11639 if test -n "$CC"; then
11640 ac_cv_prog_CC="$CC" # Let the user override the test.
11642 ac_prog_rejected=no
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11650 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11651 ac_prog_rejected=yes
11655 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 if test $ac_prog_rejected = yes; then
11663 # We found a bogon in the path, so make sure we never use it.
11664 set dummy $ac_cv_prog_CC
11666 if test $# != 0; then
11667 # We chose a different compiler from the bogus one.
11668 # However, it has the same basename, so the bogon will be chosen
11669 # first if we set CC to just the basename; use the full file name.
11671 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11677 if test -n "$CC"; then
11678 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11679 $as_echo "$CC" >&6; }
11681 { $as_echo "$as_me:$LINENO: result: no" >&5
11682 $as_echo "no" >&6; }
11687 if test -z "$CC"; then
11688 if test -n "$ac_tool_prefix"; then
11689 for ac_prog in cl.exe
11691 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11692 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11694 $as_echo_n "checking for $ac_word... " >&6; }
11695 if test "${ac_cv_prog_CC+set}" = set; then
11696 $as_echo_n "(cached) " >&6
11698 if test -n "$CC"; then
11699 ac_cv_prog_CC="$CC" # Let the user override the test.
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH
11705 test -z "$as_dir" && as_dir=.
11706 for ac_exec_ext in '' $ac_executable_extensions; do
11707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11708 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11709 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11719 if test -n "$CC"; then
11720 { $as_echo "$as_me:$LINENO: result: $CC" >&5
11721 $as_echo "$CC" >&6; }
11723 { $as_echo "$as_me:$LINENO: result: no" >&5
11724 $as_echo "no" >&6; }
11728 test -n "$CC" && break
11731 if test -z "$CC"; then
11733 for ac_prog in cl.exe
11735 # Extract the first word of "$ac_prog", so it can be a program name with args.
11736 set dummy $ac_prog; ac_word=$2
11737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11740 $as_echo_n "(cached) " >&6
11742 if test -n "$ac_ct_CC"; then
11743 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11746 for as_dir in $PATH
11749 test -z "$as_dir" && as_dir=.
11750 for ac_exec_ext in '' $ac_executable_extensions; do
11751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11752 ac_cv_prog_ac_ct_CC="$ac_prog"
11753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11763 if test -n "$ac_ct_CC"; then
11764 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11765 $as_echo "$ac_ct_CC" >&6; }
11767 { $as_echo "$as_me:$LINENO: result: no" >&5
11768 $as_echo "no" >&6; }
11772 test -n "$ac_ct_CC" && break
11775 if test "x$ac_ct_CC" = x; then
11778 case $cross_compiling:$ac_tool_warned in
11780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11782 ac_tool_warned=yes ;;
11791 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11793 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11794 See \`config.log' for more details." >&5
11795 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
11796 See \`config.log' for more details." >&2;}
11797 { (exit 1); exit 1; }; }; }
11799 # Provide some information about the compiler.
11800 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
11803 { (ac_try="$ac_compiler --version >&5"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11809 $as_echo "$ac_try_echo") >&5
11810 (eval "$ac_compiler --version >&5") 2>&5
11812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }
11814 { (ac_try="$ac_compiler -v >&5"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11820 $as_echo "$ac_try_echo") >&5
11821 (eval "$ac_compiler -v >&5") 2>&5
11823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }
11825 { (ac_try="$ac_compiler -V >&5"
11826 case "(($ac_try" in
11827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828 *) ac_try_echo=$ac_try;;
11830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11831 $as_echo "$ac_try_echo") >&5
11832 (eval "$ac_compiler -V >&5") 2>&5
11834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }
11837 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11838 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11839 if test "${ac_cv_c_compiler_gnu+set}" = set; then
11840 $as_echo_n "(cached) " >&6
11842 cat >conftest.$ac_ext <<_ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11867 $as_echo "$ac_try_echo") >&5
11868 (eval "$ac_compile") 2>conftest.er1
11870 grep -v '^ *+' conftest.er1 >conftest.err
11872 cat conftest.err >&5
11873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); } && {
11875 test -z "$ac_c_werror_flag" ||
11876 test ! -s conftest.err
11877 } && test -s conftest.$ac_objext; then
11878 ac_compiler_gnu=yes
11880 $as_echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11890 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11891 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11892 if test $ac_compiler_gnu = yes; then
11897 ac_test_CFLAGS=${CFLAGS+set}
11898 ac_save_CFLAGS=$CFLAGS
11899 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11900 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11901 if test "${ac_cv_prog_cc_g+set}" = set; then
11902 $as_echo_n "(cached) " >&6
11904 ac_save_c_werror_flag=$ac_c_werror_flag
11905 ac_c_werror_flag=yes
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11923 rm -f conftest.$ac_objext
11924 if { (ac_try="$ac_compile"
11925 case "(($ac_try" in
11926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927 *) ac_try_echo=$ac_try;;
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931 (eval "$ac_compile") 2>conftest.er1
11933 grep -v '^ *+' conftest.er1 >conftest.err
11935 cat conftest.err >&5
11936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } && {
11938 test -z "$ac_c_werror_flag" ||
11939 test ! -s conftest.err
11940 } && test -s conftest.$ac_objext; then
11941 ac_cv_prog_cc_g=yes
11943 $as_echo "$as_me: failed program was:" >&5
11944 sed 's/^/| /' conftest.$ac_ext >&5
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11962 rm -f conftest.$ac_objext
11963 if { (ac_try="$ac_compile"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11969 $as_echo "$ac_try_echo") >&5
11970 (eval "$ac_compile") 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest.$ac_objext; then
11982 $as_echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 ac_c_werror_flag=$ac_save_c_werror_flag
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12012 grep -v '^ *+' conftest.er1 >conftest.err
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12020 ac_cv_prog_cc_g=yes
12022 $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 ac_c_werror_flag=$ac_save_c_werror_flag
12037 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12038 $as_echo "$ac_cv_prog_cc_g" >&6; }
12039 if test "$ac_test_CFLAGS" = set; then
12040 CFLAGS=$ac_save_CFLAGS
12041 elif test $ac_cv_prog_cc_g = yes; then
12042 if test "$GCC" = yes; then
12048 if test "$GCC" = yes; then
12054 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12056 if test "${ac_cv_prog_cc_c89+set}" = set; then
12057 $as_echo_n "(cached) " >&6
12059 ac_cv_prog_cc_c89=no
12061 cat >conftest.$ac_ext <<_ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h. */
12067 #include <stdarg.h>
12069 #include <sys/types.h>
12070 #include <sys/stat.h>
12071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12072 struct buf { int x; };
12073 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12074 static char *e (p, i)
12080 static char *f (char * (*g) (char **, int), char **p, ...)
12085 s = g (p, va_arg (v,int));
12090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12091 function prototypes and stuff, but not '\xHH' hex character constants.
12092 These don't provoke an error unfortunately, instead are silently treated
12093 as 'x'. The following induces an error, until -std is added to get
12094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12095 array size at least. It's necessary to write '\x00'==0 to get something
12096 that's true only with -std. */
12097 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12100 inside strings and character constants. */
12102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12104 int test (int i, double x);
12105 struct s1 {int (*f) (int a);};
12106 struct s2 {int (*f) (double a);};
12107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12113 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12118 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12121 CC="$ac_save_CC $ac_arg"
12122 rm -f conftest.$ac_objext
12123 if { (ac_try="$ac_compile"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12129 $as_echo "$ac_try_echo") >&5
12130 (eval "$ac_compile") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1 >conftest.err
12134 cat conftest.err >&5
12135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest.$ac_objext; then
12140 ac_cv_prog_cc_c89=$ac_arg
12142 $as_echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12148 rm -f core conftest.err conftest.$ac_objext
12149 test "x$ac_cv_prog_cc_c89" != "xno" && break
12151 rm -f conftest.$ac_ext
12156 case "x$ac_cv_prog_cc_c89" in
12158 { $as_echo "$as_me:$LINENO: result: none needed" >&5
12159 $as_echo "none needed" >&6; } ;;
12161 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
12162 $as_echo "unsupported" >&6; } ;;
12164 CC="$CC $ac_cv_prog_cc_c89"
12165 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12166 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12171 ac_cpp='$CPP $CPPFLAGS'
12172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12176 { $as_echo "$as_me:$LINENO: checking for inline" >&5
12177 $as_echo_n "checking for inline... " >&6; }
12178 if test "${ac_cv_c_inline+set}" = set; then
12179 $as_echo_n "(cached) " >&6
12182 for ac_kw in inline __inline__ __inline; do
12183 cat >conftest.$ac_ext <<_ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 #ifndef __cplusplus
12191 static $ac_kw foo_t static_foo () {return 0; }
12192 $ac_kw foo_t foo () {return 0; }
12196 rm -f conftest.$ac_objext
12197 if { (ac_try="$ac_compile"
12198 case "(($ac_try" in
12199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12203 $as_echo "$ac_try_echo") >&5
12204 (eval "$ac_compile") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1 >conftest.err
12208 cat conftest.err >&5
12209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 } && test -s conftest.$ac_objext; then
12214 ac_cv_c_inline=$ac_kw
12216 $as_echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 test "$ac_cv_c_inline" != no && break
12227 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12228 $as_echo "$ac_cv_c_inline" >&6; }
12231 case $ac_cv_c_inline in
12234 case $ac_cv_c_inline in
12236 *) ac_val=$ac_cv_c_inline;;
12238 cat >>confdefs.h <<_ACEOF
12239 #ifndef __cplusplus
12240 #define inline $ac_val
12246 # Find a good install program. We prefer a C program (faster),
12247 # so one script is as good as another. But avoid the broken or
12248 # incompatible versions:
12249 # SysV /etc/install, /usr/sbin/install
12250 # SunOS /usr/etc/install
12251 # IRIX /sbin/install
12253 # AmigaOS /C/install, which installs bootblocks on floppy discs
12254 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12255 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12256 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12257 # OS/2's system install, which has a completely different semantic
12258 # ./install, which can be erroneously created by make from ./install.sh.
12259 # Reject install programs that cannot install multiple files.
12260 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12261 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12262 if test -z "$INSTALL"; then
12263 if test "${ac_cv_path_install+set}" = set; then
12264 $as_echo_n "(cached) " >&6
12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267 for as_dir in $PATH
12270 test -z "$as_dir" && as_dir=.
12271 # Account for people who put trailing slashes in PATH elements.
12273 ./ | .// | /cC/* | \
12274 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12275 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12278 # OSF1 and SCO ODT 3.0 have their own names for install.
12279 # Don't use installbsd from OSF since it installs stuff as root
12281 for ac_prog in ginstall scoinst install; do
12282 for ac_exec_ext in '' $ac_executable_extensions; do
12283 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12284 if test $ac_prog = install &&
12285 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12286 # AIX install. It has an incompatible calling convention.
12288 elif test $ac_prog = install &&
12289 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12290 # program-specific install script used by HP pwplus--don't use.
12293 rm -rf conftest.one conftest.two conftest.dir
12294 echo one > conftest.one
12295 echo two > conftest.two
12297 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12298 test -s conftest.one && test -s conftest.two &&
12299 test -s conftest.dir/conftest.one &&
12300 test -s conftest.dir/conftest.two
12302 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12315 rm -rf conftest.one conftest.two conftest.dir
12318 if test "${ac_cv_path_install+set}" = set; then
12319 INSTALL=$ac_cv_path_install
12321 # As a last resort, use the slow shell script. Don't cache a
12322 # value for INSTALL within a source directory, because that will
12323 # break other packages using the cache if that directory is
12324 # removed, or if the value is a relative name.
12325 INSTALL=$ac_install_sh
12328 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12329 $as_echo "$INSTALL" >&6; }
12331 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12332 # It thinks the first close brace ends the variable substitution.
12333 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12335 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12337 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12339 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12343 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
12344 $as_echo_n "(cached) " >&6
12346 cat >conftest.make <<\_ACEOF
12349 @echo '@@@%%%=$(MAKE)=@@@%%%'
12351 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12353 *@@@%%%=?*=@@@%%%*)
12354 eval ac_cv_prog_make_${ac_make}_set=yes;;
12356 eval ac_cv_prog_make_${ac_make}_set=no;;
12358 rm -f conftest.make
12360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12361 { $as_echo "$as_me:$LINENO: result: yes" >&5
12362 $as_echo "yes" >&6; }
12365 { $as_echo "$as_me:$LINENO: result: no" >&5
12366 $as_echo "no" >&6; }
12367 SET_MAKE="MAKE=${MAKE-make}"
12370 if test -z "$host_alias"; then
12373 hostaliaswindres="$host_alias-windres"
12375 for ac_prog in windres $hostaliaswindres $host_os-windres
12377 # Extract the first word of "$ac_prog", so it can be a program name with args.
12378 set dummy $ac_prog; ac_word=$2
12379 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12380 $as_echo_n "checking for $ac_word... " >&6; }
12381 if test "${ac_cv_prog_WINDRES+set}" = set; then
12382 $as_echo_n "(cached) " >&6
12384 if test -n "$WINDRES"; then
12385 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12388 for as_dir in $PATH
12391 test -z "$as_dir" && as_dir=.
12392 for ac_exec_ext in '' $ac_executable_extensions; do
12393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12394 ac_cv_prog_WINDRES="$ac_prog"
12395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12404 WINDRES=$ac_cv_prog_WINDRES
12405 if test -n "$WINDRES"; then
12406 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
12407 $as_echo "$WINDRES" >&6; }
12409 { $as_echo "$as_me:$LINENO: result: no" >&5
12410 $as_echo "no" >&6; }
12414 test -n "$WINDRES" && break
12420 ac_default_prefix=/boot/develop/tools/gnupro
12422 *-*-cygwin* | *-*-mingw32*)
12423 if test "$build" != "$host"; then # cross-compiling
12424 # Default cross-compile location
12425 ac_default_prefix=/usr/local/cross-tools/i386-mingw32
12427 # Look for the location of the tools and install there
12428 if test "$BUILD_PREFIX" != ""; then
12429 ac_default_prefix=$BUILD_PREFIX
12432 if test x$WINDRES != x; then
12433 use_version_rc=true
12437 if test x$use_version_rc = xtrue; then
12438 USE_VERSION_RC_TRUE=
12439 USE_VERSION_RC_FALSE='#'
12441 USE_VERSION_RC_TRUE='#'
12442 USE_VERSION_RC_FALSE=
12446 base_libdir=`echo \${libdir} | sed 's/.*\/\(.*\)/\1/; q'`
12450 gcc_bin_path=`$CC -print-search-dirs 2>/dev/null | fgrep programs: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
12451 gcc_lib_path=`$CC -print-search-dirs 2>/dev/null | fgrep libraries: | sed 's/[^=]*=\(.*\)/\1/' | sed 's/:/ /g'`
12452 env_lib_path=`echo $LIBS $LDFLAGS $* | sed 's/-L[ ]*//g'`
12453 if test "$cross_compiling" = yes; then
12456 host_lib_path="/usr/$base_libdir /usr/local/$base_libdir"
12458 for path in $gcc_bin_path $gcc_lib_path $env_lib_path $host_lib_path; do
12459 lib=`ls -- $path/$1 2>/dev/null | sort | sed 's/.*\/\(.*\)/\1/; q'`
12460 if test x$lib != x; then
12471 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12472 if test -n "$ac_tool_prefix"; then
12473 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12474 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 $as_echo_n "checking for $ac_word... " >&6; }
12477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12478 $as_echo_n "(cached) " >&6
12480 case $PKG_CONFIG in
12482 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12486 for as_dir in $PATH
12489 test -z "$as_dir" && as_dir=.
12490 for ac_exec_ext in '' $ac_executable_extensions; do
12491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12492 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12503 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12504 if test -n "$PKG_CONFIG"; then
12505 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12506 $as_echo "$PKG_CONFIG" >&6; }
12508 { $as_echo "$as_me:$LINENO: result: no" >&5
12509 $as_echo "no" >&6; }
12514 if test -z "$ac_cv_path_PKG_CONFIG"; then
12515 ac_pt_PKG_CONFIG=$PKG_CONFIG
12516 # Extract the first word of "pkg-config", so it can be a program name with args.
12517 set dummy pkg-config; ac_word=$2
12518 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12521 $as_echo_n "(cached) " >&6
12523 case $ac_pt_PKG_CONFIG in
12525 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12529 for as_dir in $PATH
12532 test -z "$as_dir" && as_dir=.
12533 for ac_exec_ext in '' $ac_executable_extensions; do
12534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12535 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12546 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12547 if test -n "$ac_pt_PKG_CONFIG"; then
12548 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12549 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12551 { $as_echo "$as_me:$LINENO: result: no" >&5
12552 $as_echo "no" >&6; }
12555 if test "x$ac_pt_PKG_CONFIG" = x; then
12558 case $cross_compiling:$ac_tool_warned in
12560 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12562 ac_tool_warned=yes ;;
12564 PKG_CONFIG=$ac_pt_PKG_CONFIG
12567 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12571 if test -n "$PKG_CONFIG"; then
12572 _pkg_min_version=0.9.0
12573 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12574 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12575 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12576 { $as_echo "$as_me:$LINENO: result: yes" >&5
12577 $as_echo "yes" >&6; }
12579 { $as_echo "$as_me:$LINENO: result: no" >&5
12580 $as_echo "no" >&6; }
12586 # Check whether --with-sdl-prefix was given.
12587 if test "${with_sdl_prefix+set}" = set; then
12588 withval=$with_sdl_prefix; sdl_prefix="$withval"
12594 # Check whether --with-sdl-exec-prefix was given.
12595 if test "${with_sdl_exec_prefix+set}" = set; then
12596 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12601 # Check whether --enable-sdltest was given.
12602 if test "${enable_sdltest+set}" = set; then
12603 enableval=$enable_sdltest;
12609 min_sdl_version=$SDL_VERSION
12611 if test "x$sdl_prefix$sdl_exec_prefix" = x ; then
12614 { $as_echo "$as_me:$LINENO: checking for SDL" >&5
12615 $as_echo_n "checking for SDL... " >&6; }
12617 if test -n "$PKG_CONFIG"; then
12618 if test -n "$SDL_CFLAGS"; then
12619 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12621 if test -n "$PKG_CONFIG" && \
12622 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12623 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; then
12627 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl >= $min_sdl_version" 2>/dev/null`
12635 if test -n "$PKG_CONFIG"; then
12636 if test -n "$SDL_LIBS"; then
12637 pkg_cv_SDL_LIBS="$SDL_LIBS"
12639 if test -n "$PKG_CONFIG" && \
12640 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl >= \$min_sdl_version\"") >&5
12641 ($PKG_CONFIG --exists --print-errors "sdl >= $min_sdl_version") 2>&5
12643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; then
12645 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl >= $min_sdl_version" 2>/dev/null`
12656 if test $pkg_failed = yes; then
12658 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12659 _pkg_short_errors_supported=yes
12661 _pkg_short_errors_supported=no
12663 if test $_pkg_short_errors_supported = yes; then
12664 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12666 SDL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sdl >= $min_sdl_version"`
12668 # Put the nasty error message in config.log where it belongs
12669 echo "$SDL_PKG_ERRORS" >&5
12671 { $as_echo "$as_me:$LINENO: result: no" >&5
12672 $as_echo "no" >&6; }
12673 { $as_echo "$as_me:$LINENO: result: no" >&5
12674 $as_echo "no" >&6; }
12677 elif test $pkg_failed = untried; then
12678 { $as_echo "$as_me:$LINENO: result: no" >&5
12679 $as_echo "no" >&6; }
12683 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12684 SDL_LIBS=$pkg_cv_SDL_LIBS
12685 { $as_echo "$as_me:$LINENO: result: yes" >&5
12686 $as_echo "yes" >&6; }
12691 if test x$sdl_exec_prefix != x ; then
12692 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
12693 if test x${SDL_CONFIG+set} != xset ; then
12694 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12697 if test x$sdl_prefix != x ; then
12698 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
12699 if test x${SDL_CONFIG+set} != xset ; then
12700 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12705 if test "x$sdl_pc" = xyes ; then
12707 SDL_CONFIG="pkg-config sdl"
12709 as_save_PATH="$PATH"
12710 if test "x$prefix" != xNONE && test "$cross_compiling" != yes; then
12711 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12713 # Extract the first word of "sdl-config", so it can be a program name with args.
12714 set dummy sdl-config; ac_word=$2
12715 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12718 $as_echo_n "(cached) " >&6
12720 case $SDL_CONFIG in
12722 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12733 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12744 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12745 if test -n "$SDL_CONFIG"; then
12746 { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12747 $as_echo "$SDL_CONFIG" >&6; }
12749 { $as_echo "$as_me:$LINENO: result: no" >&5
12750 $as_echo "no" >&6; }
12754 PATH="$as_save_PATH"
12755 { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12756 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12759 if test "$SDL_CONFIG" = "no" ; then
12762 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
12763 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
12765 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
12766 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12767 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
12768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12769 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12771 if test "x$enable_sdltest" = "xyes" ; then
12772 ac_save_CFLAGS="$CFLAGS"
12773 ac_save_CXXFLAGS="$CXXFLAGS"
12774 ac_save_LIBS="$LIBS"
12775 CFLAGS="$CFLAGS $SDL_CFLAGS"
12776 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12777 LIBS="$LIBS $SDL_LIBS"
12779 if test "$cross_compiling" = yes; then
12780 echo $ac_n "cross compiling; assumed OK... $ac_c"
12782 cat >conftest.$ac_ext <<_ACEOF
12785 cat confdefs.h >>conftest.$ac_ext
12786 cat >>conftest.$ac_ext <<_ACEOF
12787 /* end confdefs.h. */
12790 #include <stdlib.h>
12791 #include <string.h>
12795 my_strdup (char *str)
12801 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12802 strcpy (new_str, str);
12810 int main (int argc, char *argv[])
12812 int major, minor, micro;
12815 /* This hangs on some systems (?)
12816 system ("touch conf.sdltest");
12818 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12820 /* HP/UX 9 (%@#!) writes to sscanf strings */
12821 tmp_version = my_strdup("$min_sdl_version");
12822 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
12823 printf("%s, bad version string\n", "$min_sdl_version");
12827 if (($sdl_major_version > major) ||
12828 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12829 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12835 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12836 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12837 printf("*** best to upgrade to the required version.\n");
12838 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12839 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12840 printf("*** config.cache before re-running configure\n");
12847 rm -f conftest$ac_exeext
12848 if { (ac_try="$ac_link"
12849 case "(($ac_try" in
12850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12851 *) ac_try_echo=$ac_try;;
12853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12854 $as_echo "$ac_try_echo") >&5
12855 (eval "$ac_link") 2>&5
12857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12859 { (case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12864 $as_echo "$ac_try_echo") >&5
12865 (eval "$ac_try") 2>&5
12867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12871 $as_echo "$as_me: program exited with status $ac_status" >&5
12872 $as_echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ( exit $ac_status )
12878 rm -rf conftest.dSYM
12879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12883 CFLAGS="$ac_save_CFLAGS"
12884 CXXFLAGS="$ac_save_CXXFLAGS"
12885 LIBS="$ac_save_LIBS"
12888 if test "x$no_sdl" = x ; then
12889 { $as_echo "$as_me:$LINENO: result: yes" >&5
12890 $as_echo "yes" >&6; }
12892 { $as_echo "$as_me:$LINENO: result: no" >&5
12893 $as_echo "no" >&6; }
12896 if test "x$no_sdl" = x ; then
12899 if test "$SDL_CONFIG" = "no" ; then
12900 echo "*** The sdl-config script installed by SDL could not be found"
12901 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12902 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12903 echo "*** full path to sdl-config."
12905 if test -f conf.sdltest ; then
12908 echo "*** Could not run SDL test program, checking why..."
12909 CFLAGS="$CFLAGS $SDL_CFLAGS"
12910 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12911 LIBS="$LIBS $SDL_LIBS"
12912 cat >conftest.$ac_ext <<_ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h. */
12922 int main(int argc, char *argv[])
12925 #define main K_and_R_C_main
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (ac_try="$ac_link"
12937 case "(($ac_try" in
12938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12939 *) ac_try_echo=$ac_try;;
12941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12942 $as_echo "$ac_try_echo") >&5
12943 (eval "$ac_link") 2>conftest.er1
12945 grep -v '^ *+' conftest.er1 >conftest.err
12947 cat conftest.err >&5
12948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } && {
12950 test -z "$ac_c_werror_flag" ||
12951 test ! -s conftest.err
12952 } && test -s conftest$ac_exeext && {
12953 test "$cross_compiling" = yes ||
12954 $as_test_x conftest$ac_exeext
12956 echo "*** The test program compiled, but did not run. This usually means"
12957 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12958 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12959 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12960 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12961 echo "*** is required on your system"
12963 echo "*** If you have an old version installed, it is best to remove it, although"
12964 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12966 $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 echo "*** The test program failed to compile or link. See the file config.log for the"
12970 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12971 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12972 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12975 rm -rf conftest.dSYM
12976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12977 conftest$ac_exeext conftest.$ac_ext
12978 CFLAGS="$ac_save_CFLAGS"
12979 CXXFLAGS="$ac_save_CXXFLAGS"
12980 LIBS="$ac_save_LIBS"
12985 { { $as_echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
12986 $as_echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
12987 { (exit 1); exit 1; }; }
12994 CFLAGS="$CFLAGS -DSDL_IMAGE_USE_COMMON_BACKEND $SDL_CFLAGS"
12995 LIBS="$LIBS $SDL_LIBS"
12998 # Check whether --enable-bmp was given.
12999 if test "${enable_bmp+set}" = set; then
13000 enableval=$enable_bmp;
13005 # Check whether --enable-gif was given.
13006 if test "${enable_gif+set}" = set; then
13007 enableval=$enable_gif;
13012 # Check whether --enable-jpg was given.
13013 if test "${enable_jpg+set}" = set; then
13014 enableval=$enable_jpg;
13019 # Check whether --enable-jpg-shared was given.
13020 if test "${enable_jpg_shared+set}" = set; then
13021 enableval=$enable_jpg_shared;
13023 enable_jpg_shared=yes
13026 # Check whether --enable-lbm was given.
13027 if test "${enable_lbm+set}" = set; then
13028 enableval=$enable_lbm;
13033 # Check whether --enable-pcx was given.
13034 if test "${enable_pcx+set}" = set; then
13035 enableval=$enable_pcx;
13040 # Check whether --enable-png was given.
13041 if test "${enable_png+set}" = set; then
13042 enableval=$enable_png;
13047 # Check whether --enable-png-shared was given.
13048 if test "${enable_png_shared+set}" = set; then
13049 enableval=$enable_png_shared;
13051 enable_png_shared=yes
13054 # Check whether --enable-pnm was given.
13055 if test "${enable_pnm+set}" = set; then
13056 enableval=$enable_pnm;
13061 # Check whether --enable-tga was given.
13062 if test "${enable_tga+set}" = set; then
13063 enableval=$enable_tga;
13068 # Check whether --enable-tif was given.
13069 if test "${enable_tif+set}" = set; then
13070 enableval=$enable_tif;
13075 # Check whether --enable-tif-shared was given.
13076 if test "${enable_tif_shared+set}" = set; then
13077 enableval=$enable_tif_shared;
13079 enable_tif_shared=yes
13082 # Check whether --enable-xcf was given.
13083 if test "${enable_xcf+set}" = set; then
13084 enableval=$enable_xcf;
13089 # Check whether --enable-xpm was given.
13090 if test "${enable_xpm+set}" = set; then
13091 enableval=$enable_xpm;
13096 # Check whether --enable-xv was given.
13097 if test "${enable_xv+set}" = set; then
13098 enableval=$enable_xv;
13104 if test x$enable_jpg = xyes || test x$enable_tif = xyes; then
13105 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13106 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13107 $as_echo_n "checking for jpeglib.h... " >&6; }
13108 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13109 $as_echo_n "(cached) " >&6
13111 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13112 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
13114 # Is the header compilable?
13115 { $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
13116 $as_echo_n "checking jpeglib.h usability... " >&6; }
13117 cat >conftest.$ac_ext <<_ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 $ac_includes_default
13124 #include <jpeglib.h>
13126 rm -f conftest.$ac_objext
13127 if { (ac_try="$ac_compile"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13133 $as_echo "$ac_try_echo") >&5
13134 (eval "$ac_compile") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } && {
13141 test -z "$ac_c_werror_flag" ||
13142 test ! -s conftest.err
13143 } && test -s conftest.$ac_objext; then
13144 ac_header_compiler=yes
13146 $as_echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 ac_header_compiler=no
13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13154 $as_echo "$ac_header_compiler" >&6; }
13156 # Is the header present?
13157 { $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
13158 $as_echo_n "checking jpeglib.h presence... " >&6; }
13159 cat >conftest.$ac_ext <<_ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h. */
13165 #include <jpeglib.h>
13167 if { (ac_try="$ac_cpp conftest.$ac_ext"
13168 case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13173 $as_echo "$ac_try_echo") >&5
13174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } >/dev/null && {
13181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13184 ac_header_preproc=yes
13186 $as_echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13189 ac_header_preproc=no
13192 rm -f conftest.err conftest.$ac_ext
13193 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13194 $as_echo "$ac_header_preproc" >&6; }
13196 # So? What about this header?
13197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13199 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13200 $as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13201 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
13202 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
13203 ac_header_preproc=yes
13206 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
13207 $as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
13208 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
13209 $as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
13210 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
13211 $as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
13212 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
13213 $as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13214 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
13215 $as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
13216 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
13217 $as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
13221 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13222 $as_echo_n "checking for jpeglib.h... " >&6; }
13223 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13224 $as_echo_n "(cached) " >&6
13226 ac_cv_header_jpeglib_h=$ac_header_preproc
13228 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13229 $as_echo "$ac_cv_header_jpeglib_h" >&6; }
13232 if test "x$ac_cv_header_jpeglib_h" = x""yes; then
13237 { $as_echo "$as_me:$LINENO: checking for jpeg_CreateDecompress in -ljpeg" >&5
13238 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; }
13239 if test "${ac_cv_lib_jpeg_jpeg_CreateDecompress+set}" = set; then
13240 $as_echo_n "(cached) " >&6
13242 ac_check_lib_save_LIBS=$LIBS
13243 LIBS="-ljpeg $LIBS"
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13257 char jpeg_CreateDecompress ();
13261 return jpeg_CreateDecompress ();
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (ac_try="$ac_link"
13268 case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274 (eval "$ac_link") 2>conftest.er1
13276 grep -v '^ *+' conftest.er1 >conftest.err
13278 cat conftest.err >&5
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest$ac_exeext && {
13284 test "$cross_compiling" = yes ||
13285 $as_test_x conftest$ac_exeext
13287 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes
13289 $as_echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13292 ac_cv_lib_jpeg_jpeg_CreateDecompress=no
13295 rm -rf conftest.dSYM
13296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13297 conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13300 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5
13301 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; }
13302 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = x""yes; then
13306 if test x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
13307 if test x$enable_jpg = xyes; then
13308 cat >>confdefs.h <<\_ACEOF
13313 LIBS="-ljpeg $LIBS"
13317 jpg_lib=`find_lib libjpeg.dylib`
13319 *-*-cygwin* | *-*-mingw32*)
13320 jpg_lib=`find_lib "jpeg.dll"`
13323 jpg_lib=`find_lib "libjpeg.so.[0-9]"`
13324 if test x$jpg_lib = x; then
13325 jpg_lib=`find_lib "libjpeg.so.[0-9][0-9]"`
13327 if test x$jpg_lib = x; then
13328 jpg_lib=`find_lib "libjpeg.so.[0-9]*"`
13332 elif test x$enable_jpg = xyes; then
13333 { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&5
13334 $as_echo "$as_me: WARNING: *** Unable to find JPEG library (http://www.ijg.org/)" >&2;}
13335 { $as_echo "$as_me:$LINENO: WARNING: JPG image loading disabled" >&5
13336 $as_echo "$as_me: WARNING: JPG image loading disabled" >&2;}
13340 if test "x$enable_png" = xyes; then
13343 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
13344 $as_echo_n "checking for LIBPNG... " >&6; }
13346 if test -n "$PKG_CONFIG"; then
13347 if test -n "$LIBPNG_CFLAGS"; then
13348 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
13350 if test -n "$PKG_CONFIG" && \
13351 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13352 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); }; then
13356 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
13364 if test -n "$PKG_CONFIG"; then
13365 if test -n "$LIBPNG_LIBS"; then
13366 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
13368 if test -n "$PKG_CONFIG" && \
13369 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng\"") >&5
13370 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
13372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; then
13374 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
13385 if test $pkg_failed = yes; then
13387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13388 _pkg_short_errors_supported=yes
13390 _pkg_short_errors_supported=no
13392 if test $_pkg_short_errors_supported = yes; then
13393 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng"`
13395 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng"`
13397 # Put the nasty error message in config.log where it belongs
13398 echo "$LIBPNG_PKG_ERRORS" >&5
13400 { $as_echo "$as_me:$LINENO: result: no" >&5
13401 $as_echo "no" >&6; }
13402 if test "${ac_cv_header_png_h+set}" = set; then
13403 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13404 $as_echo_n "checking for png.h... " >&6; }
13405 if test "${ac_cv_header_png_h+set}" = set; then
13406 $as_echo_n "(cached) " >&6
13408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13409 $as_echo "$ac_cv_header_png_h" >&6; }
13411 # Is the header compilable?
13412 { $as_echo "$as_me:$LINENO: checking png.h usability" >&5
13413 $as_echo_n "checking png.h usability... " >&6; }
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 $ac_includes_default
13423 rm -f conftest.$ac_objext
13424 if { (ac_try="$ac_compile"
13425 case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13430 $as_echo "$ac_try_echo") >&5
13431 (eval "$ac_compile") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
13441 ac_header_compiler=yes
13443 $as_echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 ac_header_compiler=no
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13451 $as_echo "$ac_header_compiler" >&6; }
13453 # Is the header present?
13454 { $as_echo "$as_me:$LINENO: checking png.h presence" >&5
13455 $as_echo_n "checking png.h presence... " >&6; }
13456 cat >conftest.$ac_ext <<_ACEOF
13459 cat confdefs.h >>conftest.$ac_ext
13460 cat >>conftest.$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13464 if { (ac_try="$ac_cpp conftest.$ac_ext"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13470 $as_echo "$ac_try_echo") >&5
13471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } >/dev/null && {
13478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13479 test ! -s conftest.err
13481 ac_header_preproc=yes
13483 $as_echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_header_preproc=no
13489 rm -f conftest.err conftest.$ac_ext
13490 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13491 $as_echo "$ac_header_preproc" >&6; }
13493 # So? What about this header?
13494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13496 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
13497 $as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13498 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
13499 $as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
13500 ac_header_preproc=yes
13503 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
13504 $as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
13505 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
13506 $as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
13507 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
13508 $as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
13509 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
13510 $as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
13511 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
13512 $as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
13513 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
13514 $as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
13518 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13519 $as_echo_n "checking for png.h... " >&6; }
13520 if test "${ac_cv_header_png_h+set}" = set; then
13521 $as_echo_n "(cached) " >&6
13523 ac_cv_header_png_h=$ac_header_preproc
13525 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13526 $as_echo "$ac_cv_header_png_h" >&6; }
13529 if test "x$ac_cv_header_png_h" = x""yes; then
13534 { $as_echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng" >&5
13535 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
13536 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then
13537 $as_echo_n "(cached) " >&6
13539 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lpng -lz $LIBS"
13541 cat >conftest.$ac_ext <<_ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13548 /* Override any GCC internal prototype to avoid an error.
13549 Use char because int might match the return type of a GCC
13550 builtin and then its argument prototype would still apply. */
13554 char png_create_read_struct ();
13558 return png_create_read_struct ();
13563 rm -f conftest.$ac_objext conftest$ac_exeext
13564 if { (ac_try="$ac_link"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13570 $as_echo "$ac_try_echo") >&5
13571 (eval "$ac_link") 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest$ac_exeext && {
13581 test "$cross_compiling" = yes ||
13582 $as_test_x conftest$ac_exeext
13584 ac_cv_lib_png_png_create_read_struct=yes
13586 $as_echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_cv_lib_png_png_create_read_struct=no
13592 rm -rf conftest.dSYM
13593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13594 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_check_lib_save_LIBS
13597 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct" >&5
13598 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
13599 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then
13604 elif test $pkg_failed = untried; then
13605 if test "${ac_cv_header_png_h+set}" = set; then
13606 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13607 $as_echo_n "checking for png.h... " >&6; }
13608 if test "${ac_cv_header_png_h+set}" = set; then
13609 $as_echo_n "(cached) " >&6
13611 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13612 $as_echo "$ac_cv_header_png_h" >&6; }
13614 # Is the header compilable?
13615 { $as_echo "$as_me:$LINENO: checking png.h usability" >&5
13616 $as_echo_n "checking png.h usability... " >&6; }
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 $ac_includes_default
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633 $as_echo "$ac_try_echo") >&5
13634 (eval "$ac_compile") 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest.$ac_objext; then
13644 ac_header_compiler=yes
13646 $as_echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 ac_header_compiler=no
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13654 $as_echo "$ac_header_compiler" >&6; }
13656 # Is the header present?
13657 { $as_echo "$as_me:$LINENO: checking png.h presence" >&5
13658 $as_echo_n "checking png.h presence... " >&6; }
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13667 if { (ac_try="$ac_cpp conftest.$ac_ext"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13673 $as_echo "$ac_try_echo") >&5
13674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13676 grep -v '^ *+' conftest.er1 >conftest.err
13678 cat conftest.err >&5
13679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } >/dev/null && {
13681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13684 ac_header_preproc=yes
13686 $as_echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_header_preproc=no
13692 rm -f conftest.err conftest.$ac_ext
13693 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13694 $as_echo "$ac_header_preproc" >&6; }
13696 # So? What about this header?
13697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13699 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
13700 $as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13701 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
13702 $as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
13703 ac_header_preproc=yes
13706 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
13707 $as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
13708 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
13709 $as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
13710 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
13711 $as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
13712 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
13713 $as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
13714 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
13715 $as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
13716 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
13717 $as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
13721 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
13722 $as_echo_n "checking for png.h... " >&6; }
13723 if test "${ac_cv_header_png_h+set}" = set; then
13724 $as_echo_n "(cached) " >&6
13726 ac_cv_header_png_h=$ac_header_preproc
13728 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
13729 $as_echo "$ac_cv_header_png_h" >&6; }
13732 if test "x$ac_cv_header_png_h" = x""yes; then
13737 { $as_echo "$as_me:$LINENO: checking for png_create_read_struct in -lpng" >&5
13738 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
13739 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then
13740 $as_echo_n "(cached) " >&6
13742 ac_check_lib_save_LIBS=$LIBS
13743 LIBS="-lpng -lz $LIBS"
13744 cat >conftest.$ac_ext <<_ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13751 /* Override any GCC internal prototype to avoid an error.
13752 Use char because int might match the return type of a GCC
13753 builtin and then its argument prototype would still apply. */
13757 char png_create_read_struct ();
13761 return png_create_read_struct ();
13766 rm -f conftest.$ac_objext conftest$ac_exeext
13767 if { (ac_try="$ac_link"
13768 case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13773 $as_echo "$ac_try_echo") >&5
13774 (eval "$ac_link") 2>conftest.er1
13776 grep -v '^ *+' conftest.er1 >conftest.err
13778 cat conftest.err >&5
13779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); } && {
13781 test -z "$ac_c_werror_flag" ||
13782 test ! -s conftest.err
13783 } && test -s conftest$ac_exeext && {
13784 test "$cross_compiling" = yes ||
13785 $as_test_x conftest$ac_exeext
13787 ac_cv_lib_png_png_create_read_struct=yes
13789 $as_echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13792 ac_cv_lib_png_png_create_read_struct=no
13795 rm -rf conftest.dSYM
13796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13797 conftest$ac_exeext conftest.$ac_ext
13798 LIBS=$ac_check_lib_save_LIBS
13800 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_read_struct" >&5
13801 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
13802 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then
13808 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
13809 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
13810 { $as_echo "$as_me:$LINENO: result: yes" >&5
13811 $as_echo "yes" >&6; }
13813 CFLAGS="$LIBPNG_CFLAGS $CFLAGS"
13817 if test x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
13818 cat >>confdefs.h <<\_ACEOF
13825 png_lib=`find_lib libpng.dylib`
13827 *-*-cygwin* | *-*-mingw32*)
13828 png_lib=`find_lib "libpng*.dll"`
13831 png_lib=`find_lib "libpng.so.[0-9]"`
13832 if test x$png_lib = x; then
13833 png_lib=`find_lib "libpng.so.[0-9]*"`
13835 if test x$png_lib = x; then
13836 png_lib=`find_lib "libpng*.so.[0-9]"`
13838 if test x$png_lib = x; then
13839 png_lib=`find_lib "libpng*.so.[0-9]*"`
13844 { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&5
13845 $as_echo "$as_me: WARNING: *** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)" >&2;}
13846 { $as_echo "$as_me:$LINENO: WARNING: PNG image loading disabled" >&5
13847 $as_echo "$as_me: WARNING: PNG image loading disabled" >&2;}
13851 if test x$enable_tif = xyes; then
13852 if test "${ac_cv_header_tiffio_h+set}" = set; then
13853 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
13854 $as_echo_n "checking for tiffio.h... " >&6; }
13855 if test "${ac_cv_header_tiffio_h+set}" = set; then
13856 $as_echo_n "(cached) " >&6
13858 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13859 $as_echo "$ac_cv_header_tiffio_h" >&6; }
13861 # Is the header compilable?
13862 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13863 $as_echo_n "checking tiffio.h usability... " >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13871 #include <tiffio.h>
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13880 $as_echo "$ac_try_echo") >&5
13881 (eval "$ac_compile") 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest.$ac_objext; then
13891 ac_header_compiler=yes
13893 $as_echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13896 ac_header_compiler=no
13899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13900 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13901 $as_echo "$ac_header_compiler" >&6; }
13903 # Is the header present?
13904 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13905 $as_echo_n "checking tiffio.h presence... " >&6; }
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 #include <tiffio.h>
13914 if { (ac_try="$ac_cpp conftest.$ac_ext"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13920 $as_echo "$ac_try_echo") >&5
13921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } >/dev/null && {
13928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13929 test ! -s conftest.err
13931 ac_header_preproc=yes
13933 $as_echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 ac_header_preproc=no
13939 rm -f conftest.err conftest.$ac_ext
13940 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13941 $as_echo "$ac_header_preproc" >&6; }
13943 # So? What about this header?
13944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13946 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13947 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13948 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13949 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13950 ac_header_preproc=yes
13953 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13954 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13955 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13956 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13957 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13958 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13959 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13960 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13961 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13962 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13963 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13964 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13968 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
13969 $as_echo_n "checking for tiffio.h... " >&6; }
13970 if test "${ac_cv_header_tiffio_h+set}" = set; then
13971 $as_echo_n "(cached) " >&6
13973 ac_cv_header_tiffio_h=$ac_header_preproc
13975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13976 $as_echo "$ac_cv_header_tiffio_h" >&6; }
13979 if test "x$ac_cv_header_tiffio_h" = x""yes; then
13984 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
13985 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
13986 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
13987 $as_echo_n "(cached) " >&6
13989 ac_check_lib_save_LIBS=$LIBS
13990 LIBS="-ltiff -lz $LIBS"
13991 cat >conftest.$ac_ext <<_ACEOF
13994 cat confdefs.h >>conftest.$ac_ext
13995 cat >>conftest.$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13998 /* Override any GCC internal prototype to avoid an error.
13999 Use char because int might match the return type of a GCC
14000 builtin and then its argument prototype would still apply. */
14004 char TIFFClientOpen ();
14008 return TIFFClientOpen ();
14013 rm -f conftest.$ac_objext conftest$ac_exeext
14014 if { (ac_try="$ac_link"
14015 case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14020 $as_echo "$ac_try_echo") >&5
14021 (eval "$ac_link") 2>conftest.er1
14023 grep -v '^ *+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest$ac_exeext && {
14031 test "$cross_compiling" = yes ||
14032 $as_test_x conftest$ac_exeext
14034 ac_cv_lib_tiff_TIFFClientOpen=yes
14036 $as_echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_lib_tiff_TIFFClientOpen=no
14042 rm -rf conftest.dSYM
14043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14044 conftest$ac_exeext conftest.$ac_ext
14045 LIBS=$ac_check_lib_save_LIBS
14047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
14048 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
14049 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
14053 if test x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
14054 cat >>confdefs.h <<\_ACEOF
14061 tif_lib=`find_lib libtiff.dylib`
14063 *-*-cygwin* | *-*-mingw32*)
14064 tif_lib=`find_lib "libtiff-*.dll"`
14067 tif_lib=`find_lib "libtiff.so.[0-9]"`
14068 if test x$tif_lib = x; then
14069 tif_lib=`find_lib "libtiff.so.[0-9]*"`
14074 { $as_echo "$as_me:$LINENO: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&5
14075 $as_echo "$as_me: WARNING: *** Unable to find Tiff library (http://www.remotesensing.org/libtiff/)" >&2;}
14076 { $as_echo "$as_me:$LINENO: WARNING: TIF image loading disabled" >&5
14077 $as_echo "$as_me: WARNING: TIF image loading disabled" >&2;}
14081 if test x$enable_bmp = xyes; then
14082 cat >>confdefs.h <<\_ACEOF
14088 if test x$enable_gif = xyes; then
14089 cat >>confdefs.h <<\_ACEOF
14095 if test x$enable_lbm = xyes; then
14096 cat >>confdefs.h <<\_ACEOF
14102 if test x$enable_pcx = xyes; then
14103 cat >>confdefs.h <<\_ACEOF
14109 if test x$enable_pnm = xyes; then
14110 cat >>confdefs.h <<\_ACEOF
14116 if test x$enable_tga = xyes; then
14117 cat >>confdefs.h <<\_ACEOF
14123 if test x$enable_xcf = xyes; then
14124 cat >>confdefs.h <<\_ACEOF
14130 if test x$enable_xpm = xyes; then
14131 cat >>confdefs.h <<\_ACEOF
14137 if test x$enable_xv = xyes; then
14138 cat >>confdefs.h <<\_ACEOF
14144 if test x$enable_tif = xyes -a x$have_tif_hdr = xyes -a x$have_tif_lib = xyes; then
14145 if test x$enable_tif_shared = xyes && test x$tif_lib != x; then
14146 echo "-- dynamic libtiff -> $tif_lib"
14147 cat >>confdefs.h <<_ACEOF
14148 #define LOAD_TIF_DYNAMIC "$tif_lib"
14152 if test x$have_libjpeg = xyes; then
14153 # Disable dynamic jpeg since we're linking it explicitly
14156 IMG_LIBS="-ltiff -lz $IMG_LIBS"
14159 if test x$enable_jpg = xyes -a x$have_jpg_hdr = xyes -a x$have_jpg_lib = xyes; then
14160 if test x$enable_jpg_shared = xyes && test x$jpg_lib != x; then
14161 echo "-- dynamic libjpeg -> $jpg_lib"
14162 cat >>confdefs.h <<_ACEOF
14163 #define LOAD_JPG_DYNAMIC "$jpg_lib"
14167 IMG_LIBS="-ljpeg $IMG_LIBS"
14170 if test x$enable_png = xyes -a x$have_png_hdr = xyes -a x$have_png_lib = xyes; then
14171 if test x$enable_png_shared = xyes && test x$png_lib != x; then
14172 echo "-- dynamic libpng -> $png_lib"
14173 cat >>confdefs.h <<_ACEOF
14174 #define LOAD_PNG_DYNAMIC "$png_lib"
14178 IMG_LIBS="-lpng -lz $IMG_LIBS"
14187 # Finally create all the generated files
14188 ac_config_files="$ac_config_files Makefile SDL_image.spec SDL_image.pc"
14190 cat >confcache <<\_ACEOF
14191 # This file is a shell script that caches the results of configure
14192 # tests run on this system so they can be shared between configure
14193 # scripts and configure runs, see configure's option --config-cache.
14194 # It is not useful on other systems. If it contains results you don't
14195 # want to keep, you may remove or edit it.
14197 # config.status only pays attention to the cache file if you give it
14198 # the --recheck option to rerun configure.
14200 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14201 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14202 # following values.
14206 # The following way of writing the cache mishandles newlines in values,
14207 # but we know of no workaround that is simple, portable, and efficient.
14208 # So, we kill variables containing newlines.
14209 # Ultrix sh set writes to stderr and can't be redirected directly,
14210 # and sets the high bit in the cache file unless we assign to the vars.
14212 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14213 eval ac_val=\$$ac_var
14217 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
14218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14221 _ | IFS | as_nl) ;; #(
14222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14223 *) $as_unset $ac_var ;;
14229 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14230 *${as_nl}ac_space=\ *)
14231 # `set' does not quote correctly, so add quotes (double-quote
14232 # substitution turns \\\\ into \\, and sed turns \\ into \).
14235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14238 # `set' quotes correctly as required by POSIX, so do not add quotes.
14239 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14248 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14250 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14252 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14253 if test -w "$cache_file"; then
14254 test "x$cache_file" != "x/dev/null" &&
14255 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
14256 $as_echo "$as_me: updating cache $cache_file" >&6;}
14257 cat confcache >$cache_file
14259 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14260 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14265 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14266 # Let make expand exec_prefix.
14267 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14269 # Transform confdefs.h into DEFS.
14270 # Protect against shell expansion while executing Makefile rules.
14271 # Protect against Makefile macro expansion.
14273 # If the first sed substitution is executed (which looks for macros that
14274 # take arguments), then branch to the quote section. Otherwise,
14275 # look for a macro that doesn't take arguments.
14285 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14287 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14291 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14304 DEFS=`sed -n "$ac_script" confdefs.h`
14309 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14310 # 1. Remove the extension, and $U if already installed.
14311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14314 # will be set to the directory where LIBOBJS objects are built.
14315 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14316 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14318 LIBOBJS=$ac_libobjs
14320 LTLIBOBJS=$ac_ltlibobjs
14323 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14324 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14325 Usually this means the macro was only invoked conditionally." >&5
14326 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
14327 Usually this means the macro was only invoked conditionally." >&2;}
14328 { (exit 1); exit 1; }; }
14330 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14331 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14332 Usually this means the macro was only invoked conditionally." >&5
14333 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14334 Usually this means the macro was only invoked conditionally." >&2;}
14335 { (exit 1); exit 1; }; }
14337 if test -n "$EXEEXT"; then
14339 am__EXEEXT_FALSE='#'
14341 am__EXEEXT_TRUE='#'
14345 if test -z "${USE_VERSION_RC_TRUE}" && test -z "${USE_VERSION_RC_FALSE}"; then
14346 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_VERSION_RC\" was never defined.
14347 Usually this means the macro was only invoked conditionally." >&5
14348 $as_echo "$as_me: error: conditional \"USE_VERSION_RC\" was never defined.
14349 Usually this means the macro was only invoked conditionally." >&2;}
14350 { (exit 1); exit 1; }; }
14353 : ${CONFIG_STATUS=./config.status}
14355 ac_clean_files_save=$ac_clean_files
14356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14357 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14359 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14361 # Generated by $as_me.
14362 # Run this file to recreate the current configuration.
14363 # Compiler output produced by configure, useful for debugging
14364 # configure, is in config.log if it exists.
14367 ac_cs_recheck=false
14369 SHELL=\${CONFIG_SHELL-$SHELL}
14372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14373 ## --------------------- ##
14374 ## M4sh Initialization. ##
14375 ## --------------------- ##
14377 # Be more Bourne compatible
14378 DUALCASE=1; export DUALCASE # for MKS sh
14379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14382 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14383 # is contrary to our usage. Disable this feature.
14384 alias -g '${1+"$@"}'='"$@"'
14385 setopt NO_GLOB_SUBST
14387 case `(set -o) 2>/dev/null` in
14388 *posix*) set -o posix ;;
14397 # Avoid depending upon Character Ranges.
14398 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14399 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14400 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14401 as_cr_digits='0123456789'
14402 as_cr_alnum=$as_cr_Letters$as_cr_digits
14407 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14408 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14409 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14410 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14411 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14412 as_echo='printf %s\n'
14413 as_echo_n='printf %s'
14415 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14416 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14417 as_echo_n='/usr/ucb/echo -n'
14419 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14420 as_echo_n_body='eval
14424 expr "X$arg" : "X\\(.*\\)$as_nl";
14425 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14427 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14429 export as_echo_n_body
14430 as_echo_n='sh -c $as_echo_n_body as_echo'
14432 export as_echo_body
14433 as_echo='sh -c $as_echo_body as_echo'
14436 # The user is always right.
14437 if test "${PATH_SEPARATOR+set}" != set; then
14439 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14440 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14445 # Support unset when possible.
14446 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14454 # We need space, tab and new line, in precisely that order. Quoting is
14455 # there to prevent editors from complaining about space-tab.
14456 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14457 # splitting by setting IFS to empty value.)
14460 # Find who we are. Look in the path if we contain no directory separator.
14462 *[\\/]* ) as_myself=$0 ;;
14463 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14464 for as_dir in $PATH
14467 test -z "$as_dir" && as_dir=.
14468 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14474 # We did not find ourselves, most probably we were run as `sh COMMAND'
14475 # in which case we are not to be found in the path.
14476 if test "x$as_myself" = x; then
14479 if test ! -f "$as_myself"; then
14480 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14481 { (exit 1); exit 1; }
14484 # Work around bugs in pre-3.0 UWIN ksh.
14485 for as_var in ENV MAIL MAILPATH
14486 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14498 # Required to use basename.
14499 if expr a : '\(a\)' >/dev/null 2>&1 &&
14500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14507 as_basename=basename
14513 # Name of the executable.
14514 as_me=`$as_basename -- "$0" ||
14515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14516 X"$0" : 'X\(//\)$' \| \
14517 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14519 sed '/^.*\/\([^/][^/]*\)\/*$/{
14538 as_lineno_1=$LINENO
14539 as_lineno_2=$LINENO
14540 test "x$as_lineno_1" != "x$as_lineno_2" &&
14541 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14543 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14544 # uniformly replaced by the line number. The first 'sed' inserts a
14545 # line-number line after each line using $LINENO; the second 'sed'
14546 # does the real work. The second script uses 'N' to pair each
14547 # line-number line with the line containing $LINENO, and appends
14548 # trailing '-' during substitution so that $LINENO is not a special
14549 # case at line end.
14550 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14551 # scripts with optimization help from Paolo Bonzini. Blame Lee
14552 # E. McMahon (1931-1989) for sed's syntax. :-)
14564 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14567 ' >$as_me.lineno &&
14568 chmod +x "$as_me.lineno" ||
14569 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14570 { (exit 1); exit 1; }; }
14572 # Don't try to exec as it changes $[0], causing all sort of problems
14573 # (the dirname of $[0] is not the place where we might find the
14574 # original and so on. Autoconf is especially sensitive to this).
14575 . "./$as_me.lineno"
14576 # Exit status is that of the last command.
14581 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14587 ECHO_C= ECHO_N= ECHO_T=
14588 case `echo -n x` in
14590 case `echo 'x\c'` in
14591 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14597 if expr a : '\(a\)' >/dev/null 2>&1 &&
14598 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14604 rm -f conf$$ conf$$.exe conf$$.file
14605 if test -d conf$$.dir; then
14606 rm -f conf$$.dir/conf$$.file
14609 mkdir conf$$.dir 2>/dev/null
14611 if (echo >conf$$.file) 2>/dev/null; then
14612 if ln -s conf$$.file conf$$ 2>/dev/null; then
14614 # ... but there are two gotchas:
14615 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14616 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14617 # In both cases, we have to default to `cp -p'.
14618 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14620 elif ln conf$$.file conf$$ 2>/dev/null; then
14628 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14629 rmdir conf$$.dir 2>/dev/null
14631 if mkdir -p . 2>/dev/null; then
14634 test -d ./-p && rmdir ./-p
14638 if test -x / >/dev/null 2>&1; then
14639 as_test_x='test -x'
14641 if ls -dL / >/dev/null 2>&1; then
14648 if test -d "$1"; then
14654 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14655 ???[sx]*):;;*)false;;esac;fi
14659 as_executable_p=$as_test_x
14661 # Sed expression to map a string onto a valid CPP name.
14662 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14664 # Sed expression to map a string onto a valid variable name.
14665 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14670 # Save the log message, to keep $[0] and so on meaningful, and to
14671 # report actual input values of CONFIG_FILES etc. instead of their
14672 # values after options handling.
14674 This file was extended by $as_me, which was
14675 generated by GNU Autoconf 2.63. Invocation command line was
14677 CONFIG_FILES = $CONFIG_FILES
14678 CONFIG_HEADERS = $CONFIG_HEADERS
14679 CONFIG_LINKS = $CONFIG_LINKS
14680 CONFIG_COMMANDS = $CONFIG_COMMANDS
14683 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14688 case $ac_config_files in *"
14689 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14695 # Files that config.status was made for.
14696 config_files="$ac_config_files"
14697 config_commands="$ac_config_commands"
14701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14703 \`$as_me' instantiates files from templates according to the
14704 current configuration.
14706 Usage: $0 [OPTION]... [FILE]...
14708 -h, --help print this help, then exit
14709 -V, --version print version number and configuration settings, then exit
14710 -q, --quiet, --silent
14711 do not print progress messages
14712 -d, --debug don't remove temporary files
14713 --recheck update $as_me by reconfiguring in the same conditions
14714 --file=FILE[:TEMPLATE]
14715 instantiate the configuration file FILE
14717 Configuration files:
14720 Configuration commands:
14723 Report bugs to <bug-autoconf@gnu.org>."
14726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14729 configured by $0, generated by GNU Autoconf 2.63,
14730 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14732 Copyright (C) 2008 Free Software Foundation, Inc.
14733 This config.status script is free software; the Free Software Foundation
14734 gives unlimited permission to copy, distribute and modify it."
14741 test -n "\$AWK" || AWK=awk
14744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745 # The default lists apply if the user does not specify any file.
14751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14763 # Handling of the options.
14764 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14766 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14767 $as_echo "$ac_cs_version"; exit ;;
14768 --debug | --debu | --deb | --de | --d | -d )
14770 --file | --fil | --fi | --f )
14773 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14775 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14776 ac_need_defaults=false;;
14777 --he | --h | --help | --hel | -h )
14778 $as_echo "$ac_cs_usage"; exit ;;
14779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14783 # This is an error.
14784 -*) { $as_echo "$as_me: error: unrecognized option: $1
14785 Try \`$0 --help' for more information." >&2
14786 { (exit 1); exit 1; }; } ;;
14788 *) ac_config_targets="$ac_config_targets $1"
14789 ac_need_defaults=false ;;
14795 ac_configure_extra_args=
14797 if $ac_cs_silent; then
14799 ac_configure_extra_args="$ac_configure_extra_args --silent"
14803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14804 if \$ac_cs_recheck; then
14805 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14807 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14808 CONFIG_SHELL='$SHELL'
14809 export CONFIG_SHELL
14814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14819 ## Running $as_me. ##
14825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14831 # The HP-UX ksh and POSIX shell print the target directory to stdout
14832 # if CDPATH is set.
14833 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14835 sed_quote_subst='$sed_quote_subst'
14836 double_quote_subst='$double_quote_subst'
14837 delay_variable_subst='$delay_variable_subst'
14838 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14839 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14840 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
14841 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14842 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14843 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14844 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14845 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14846 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14847 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14848 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14849 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14850 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14851 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14852 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14853 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14854 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14855 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14856 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14857 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14858 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14859 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14860 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14861 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14862 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14863 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14864 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14865 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14866 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14867 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14868 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14869 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14870 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14871 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14872 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14873 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14874 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14875 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14876 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14877 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14878 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14879 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14880 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14881 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14882 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14883 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14884 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"`'
14885 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"`'
14886 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14887 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14888 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14889 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14890 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14891 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14892 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14893 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14894 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14895 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14896 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14897 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14898 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14899 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14900 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14901 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14902 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14903 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14904 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14905 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14906 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14907 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14908 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14909 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14910 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14911 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14912 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14913 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14914 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14915 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14916 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14917 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14918 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14919 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14920 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14921 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14922 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14923 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14924 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14925 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14926 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14927 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14928 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14929 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14930 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14931 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14932 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14933 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14934 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14935 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14936 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14937 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14938 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14939 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14940 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14941 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14942 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14943 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14944 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14945 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14946 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14947 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14948 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14949 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14950 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14951 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14952 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14953 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14954 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14955 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14956 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14957 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14960 LTCFLAGS='$LTCFLAGS'
14961 compiler='$compiler_DEFAULT'
14963 # Quote evaled strings.
14974 deplibs_check_method \
14983 lt_cv_sys_global_symbol_pipe \
14984 lt_cv_sys_global_symbol_to_cdecl \
14985 lt_cv_sys_global_symbol_to_c_name_address \
14986 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14989 lt_prog_compiler_no_builtin_flag \
14990 lt_prog_compiler_wl \
14991 lt_prog_compiler_pic \
14992 lt_prog_compiler_static \
14993 lt_cv_prog_compiler_c_o \
15001 export_dynamic_flag_spec \
15002 whole_archive_flag_spec \
15003 compiler_needs_object \
15005 allow_undefined_flag \
15006 no_undefined_flag \
15007 hardcode_libdir_flag_spec \
15008 hardcode_libdir_flag_spec_ld \
15009 hardcode_libdir_separator \
15014 variables_saved_for_relink \
15016 library_names_spec \
15021 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15022 *[\\\\\\\`\\"\\\$]*)
15023 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15026 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15031 # Double-quote double-evaled strings.
15032 for var in reload_cmds \
15033 old_postinstall_cmds \
15034 old_postuninstall_cmds \
15036 extract_expsyms_cmds \
15037 old_archive_from_new_cmds \
15038 old_archive_from_expsyms_cmds \
15040 archive_expsym_cmds \
15042 module_expsym_cmds \
15043 export_symbols_cmds \
15046 postuninstall_cmds \
15048 sys_lib_search_path_spec \
15049 sys_lib_dlsearch_path_spec; do
15050 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15051 *[\\\\\\\`\\"\\\$]*)
15052 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15055 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15060 # Fix-up fallback echo if it was mangled by the above quoting rules.
15062 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15066 ac_aux_dir='$ac_aux_dir'
15067 xsi_shell='$xsi_shell'
15068 lt_shell_append='$lt_shell_append'
15070 # See if we are running on zsh, and set the options which allow our
15071 # commands through without removal of \ escapes INIT.
15072 if test -n "\${ZSH_VERSION+set}" ; then
15073 setopt NO_GLOB_SUBST
15079 TIMESTAMP='$TIMESTAMP'
15085 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 # Handling of arguments.
15092 for ac_config_target in $ac_config_targets
15094 case $ac_config_target in
15095 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15096 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15097 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15098 "SDL_image.spec") CONFIG_FILES="$CONFIG_FILES SDL_image.spec" ;;
15099 "SDL_image.pc") CONFIG_FILES="$CONFIG_FILES SDL_image.pc" ;;
15101 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15102 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15103 { (exit 1); exit 1; }; };;
15108 # If the user did not use the arguments to specify the items to instantiate,
15109 # then the envvar interface is used. Set only those that are not.
15110 # We use the long form for the default assignment because of an extremely
15111 # bizarre bug on SunOS 4.1.3.
15112 if $ac_need_defaults; then
15113 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15117 # Have a temporary directory for convenience. Make it in the build tree
15118 # simply because there is no reason against having it here, and in addition,
15119 # creating and moving files from /tmp can sometimes cause problems.
15120 # Hook for its removal unless debugging.
15121 # Note that there is a small window in which the directory will not be cleaned:
15122 # after its creation but before its name has been assigned to `$tmp'.
15126 trap 'exit_status=$?
15127 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15129 trap '{ (exit 1); exit 1; }' 1 2 13 15
15131 # Create a (secure) tmp directory for tmp files.
15134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15135 test -n "$tmp" && test -d "$tmp"
15138 tmp=./conf$$-$RANDOM
15139 (umask 077 && mkdir "$tmp")
15142 $as_echo "$as_me: cannot create a temporary directory in ." >&2
15143 { (exit 1); exit 1; }
15146 # Set up the scripts for CONFIG_FILES section.
15147 # No need to generate them if there are no CONFIG_FILES.
15148 # This happens for instance with `./config.status config.h'.
15149 if test -n "$CONFIG_FILES"; then
15153 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15154 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15157 ac_cs_awk_cr=$ac_cr
15160 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15165 echo "cat >conf$$subs.awk <<_ACEOF" &&
15166 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15168 } >conf$$subs.sh ||
15169 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15170 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15171 { (exit 1); exit 1; }; }
15172 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15174 for ac_last_try in false false false false false :; do
15175 . ./conf$$subs.sh ||
15176 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15177 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15178 { (exit 1); exit 1; }; }
15180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15181 if test $ac_delim_n = $ac_delim_num; then
15183 elif $ac_last_try; then
15184 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15185 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15186 { (exit 1); exit 1; }; }
15188 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15191 rm -f conf$$subs.sh
15193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15194 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15198 s/^/S["/; s/!.*/"]=/
15208 s/\(.\{148\}\).*/\1/
15210 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15215 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15222 s/\(.\{148\}\).*/\1/
15224 s/["\\]/\\&/g; s/^/"/; s/$/"/
15228 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15233 ' <conf$$subs.awk | sed '
15238 ' >>$CONFIG_STATUS || ac_write_fail=1
15239 rm -f conf$$subs.awk
15240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15242 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15243 for (key in S) S_is_set[key] = 1
15249 nfields = split(line, field, "@")
15251 len = length(field[1])
15252 for (i = 2; i < nfields; i++) {
15254 keylen = length(key)
15255 if (S_is_set[key]) {
15257 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15258 len += length(value) + length(field[++i])
15269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15270 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15271 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15274 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15275 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
15276 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
15277 { (exit 1); exit 1; }; }
15280 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15281 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15282 # trailing colons and then remove the whole line if VPATH becomes empty
15283 # (actually we leave an empty line to preserve line numbers).
15284 if test "x$srcdir" = x.; then
15285 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15286 s/:*\$(srcdir):*/:/
15287 s/:*\${srcdir}:*/:/
15289 s/^\([^=]*=[ ]*\):*/\1/
15295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15296 fi # test -n "$CONFIG_FILES"
15299 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15304 :[FHLC]) ac_mode=$ac_tag; continue;;
15306 case $ac_mode$ac_tag in
15308 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
15309 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
15310 { (exit 1); exit 1; }; };;
15311 :[FH]-) ac_tag=-:-;;
15312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15329 -) ac_f="$tmp/stdin";;
15330 *) # Look for the file first in the build tree, then in the source tree
15331 # (if the path is not absolute). The absolute path cannot be DOS-style,
15332 # because $ac_f cannot contain `:'.
15336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15338 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15339 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15340 { (exit 1); exit 1; }; };;
15342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15343 ac_file_inputs="$ac_file_inputs '$ac_f'"
15346 # Let's still pretend it is `configure' which instantiates (i.e., don't
15347 # use $as_me), people would be surprised to read:
15348 # /* config.h. Generated by config.status. */
15349 configure_input='Generated from '`
15350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15352 if test x"$ac_file" != x-; then
15353 configure_input="$ac_file. $configure_input"
15354 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
15355 $as_echo "$as_me: creating $ac_file" >&6;}
15357 # Neutralize special characters interpreted by sed in replacement strings.
15358 case $configure_input in #(
15359 *\&* | *\|* | *\\* )
15360 ac_sed_conf_input=`$as_echo "$configure_input" |
15361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15362 *) ac_sed_conf_input=$configure_input;;
15366 *:-:* | *:-) cat >"$tmp/stdin" \
15367 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15368 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15369 { (exit 1); exit 1; }; } ;;
15374 ac_dir=`$as_dirname -- "$ac_file" ||
15375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15376 X"$ac_file" : 'X\(//\)[^/]' \| \
15377 X"$ac_file" : 'X\(//\)$' \| \
15378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15379 $as_echo X"$ac_file" |
15380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15384 /^X\(\/\/\)[^/].*/{
15399 -*) as_dir=./$as_dir;;
15401 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15406 *) as_qdir=$as_dir;;
15408 as_dirs="'$as_qdir' $as_dirs"
15409 as_dir=`$as_dirname -- "$as_dir" ||
15410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15411 X"$as_dir" : 'X\(//\)[^/]' \| \
15412 X"$as_dir" : 'X\(//\)$' \| \
15413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15414 $as_echo X"$as_dir" |
15415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15419 /^X\(\/\/\)[^/].*/{
15432 test -d "$as_dir" && break
15434 test -z "$as_dirs" || eval "mkdir $as_dirs"
15435 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15436 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15437 { (exit 1); exit 1; }; }; }
15441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15444 # A ".." for each directory in $ac_dir_suffix.
15445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15446 case $ac_top_builddir_sub in
15447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15451 ac_abs_top_builddir=$ac_pwd
15452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15453 # for backward compatibility:
15454 ac_top_builddir=$ac_top_build_prefix
15457 .) # We are building in place.
15459 ac_top_srcdir=$ac_top_builddir_sub
15460 ac_abs_top_srcdir=$ac_pwd ;;
15461 [\\/]* | ?:[\\/]* ) # Absolute name.
15462 ac_srcdir=$srcdir$ac_dir_suffix;
15463 ac_top_srcdir=$srcdir
15464 ac_abs_top_srcdir=$srcdir ;;
15465 *) # Relative name.
15466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15467 ac_top_srcdir=$ac_top_build_prefix$srcdir
15468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15481 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15483 ac_MKDIR_P=$MKDIR_P
15485 [\\/$]* | ?:[\\/]* ) ;;
15486 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15491 # If the template does not know about datarootdir, expand it.
15492 # FIXME: This hack should be removed a few years after 2.60.
15493 ac_datarootdir_hack=; ac_datarootdir_seen=
15506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15507 *datarootdir*) ac_datarootdir_seen=yes;;
15508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15509 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15513 ac_datarootdir_hack='
15514 s&@datadir@&$datadir&g
15515 s&@docdir@&$docdir&g
15516 s&@infodir@&$infodir&g
15517 s&@localedir@&$localedir&g
15518 s&@mandir@&$mandir&g
15519 s&\\\${datarootdir}&$datarootdir&g' ;;
15523 # Neutralize VPATH when `$srcdir' = `.'.
15524 # Shell code in configure.ac might set extrasub.
15525 # FIXME: do we really want to maintain this feature?
15526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15527 ac_sed_extra="$ac_vpsub
15530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15533 s|@configure_input@|$ac_sed_conf_input|;t t
15534 s&@top_builddir@&$ac_top_builddir_sub&;t t
15535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15536 s&@srcdir@&$ac_srcdir&;t t
15537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15538 s&@top_srcdir@&$ac_top_srcdir&;t t
15539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15540 s&@builddir@&$ac_builddir&;t t
15541 s&@abs_builddir@&$ac_abs_builddir&;t t
15542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15543 s&@INSTALL@&$ac_INSTALL&;t t
15544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15545 $ac_datarootdir_hack
15547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15548 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15549 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15550 { (exit 1); exit 1; }; }
15552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15553 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15555 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15556 which seems to be undefined. Please make sure it is defined." >&5
15557 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15558 which seems to be undefined. Please make sure it is defined." >&2;}
15562 -) cat "$tmp/out" && rm -f "$tmp/out";;
15563 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15565 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15566 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15567 { (exit 1); exit 1; }; }
15571 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15572 $as_echo "$as_me: executing $ac_file commands" >&6;}
15577 case $ac_file$ac_mode in
15580 # See if we are running on zsh, and set the options which allow our
15581 # commands through without removal of \ escapes.
15582 if test -n "${ZSH_VERSION+set}" ; then
15583 setopt NO_GLOB_SUBST
15586 cfgfile="${ofile}T"
15587 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15590 cat <<_LT_EOF >> "$cfgfile"
15593 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15594 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15595 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15596 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15598 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15599 # 2006, 2007, 2008 Free Software Foundation, Inc.
15600 # Written by Gordon Matzigkeit, 1996
15602 # This file is part of GNU Libtool.
15604 # GNU Libtool is free software; you can redistribute it and/or
15605 # modify it under the terms of the GNU General Public License as
15606 # published by the Free Software Foundation; either version 2 of
15607 # the License, or (at your option) any later version.
15609 # As a special exception to the GNU General Public License,
15610 # if you distribute this file as part of a program or library that
15611 # is built using GNU Libtool, you may include this file under the
15612 # same distribution terms that you use for the rest of that program.
15614 # GNU Libtool is distributed in the hope that it will be useful,
15615 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15616 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15617 # GNU General Public License for more details.
15619 # You should have received a copy of the GNU General Public License
15620 # along with GNU Libtool; see the file COPYING. If not, a copy
15621 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15622 # obtained by writing to the Free Software Foundation, Inc.,
15623 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15626 # The names of the tagged configurations supported by this script.
15629 # ### BEGIN LIBTOOL CONFIG
15631 # Which release of libtool.m4 was used?
15632 macro_version=$macro_version
15633 macro_revision=$macro_revision
15635 # Assembler program.
15638 # DLL creation program.
15641 # Object dumper program.
15644 # Whether or not to build shared libraries.
15645 build_libtool_libs=$enable_shared
15647 # Whether or not to build static libraries.
15648 build_old_libs=$enable_static
15650 # What type of objects to build.
15653 # Whether or not to optimize for fast installation.
15654 fast_install=$enable_fast_install
15657 host_alias=$host_alias
15661 # The build system.
15662 build_alias=$build_alias
15666 # A sed program that does not truncate output.
15669 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15670 Xsed="\$SED -e 1s/^X//"
15672 # A grep program that handles long lines.
15678 # A literal string matcher.
15681 # A BSD- or MS-compatible name lister.
15684 # Whether we need soft or hard links.
15687 # What is the maximum length of a command?
15688 max_cmd_len=$max_cmd_len
15690 # Object file suffix (normally "o").
15693 # Executable file suffix (normally "").
15696 # whether the shell understands "unset".
15699 # turn spaces into newlines.
15702 # turn newlines into spaces.
15705 # How to create reloadable object files.
15706 reload_flag=$lt_reload_flag
15707 reload_cmds=$lt_reload_cmds
15709 # Method to check whether dependent libraries are shared objects.
15710 deplibs_check_method=$lt_deplibs_check_method
15712 # Command to use when deplibs_check_method == "file_magic".
15713 file_magic_cmd=$lt_file_magic_cmd
15717 AR_FLAGS=$lt_AR_FLAGS
15719 # A symbol stripping program.
15722 # Commands used to install an old-style archive.
15724 old_postinstall_cmds=$lt_old_postinstall_cmds
15725 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15730 # LTCC compiler flags.
15731 LTCFLAGS=$lt_CFLAGS
15733 # Take the output of nm and produce a listing of raw symbols and C names.
15734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15736 # Transform the output of nm in a proper C declaration.
15737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15739 # Transform the output of nm in a C name address pair.
15740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15742 # Transform the output of nm in a C name address pair when lib prefix is needed.
15743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15745 # The name of the directory that contains temporary libtool files.
15748 # Shell to use when invoking shell scripts.
15751 # An echo program that does not interpret backslashes.
15754 # Used to examine libraries when file_magic_cmd begins with "file".
15755 MAGIC_CMD=$MAGIC_CMD
15757 # Must we lock files when doing compilation?
15758 need_locks=$lt_need_locks
15760 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15761 DSYMUTIL=$lt_DSYMUTIL
15763 # Tool to change global to local symbols on Mac OS X.
15766 # Tool to manipulate fat objects and archives on Mac OS X.
15769 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15772 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15773 OTOOL64=$lt_OTOOL64
15775 # Old archive suffix (normally "a").
15778 # Shared library suffix (normally ".so").
15779 shrext_cmds=$lt_shrext_cmds
15781 # The commands to extract the exported symbol list from a shared archive.
15782 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15784 # Variables whose values should be saved in libtool wrapper scripts and
15785 # restored at link time.
15786 variables_saved_for_relink=$lt_variables_saved_for_relink
15788 # Do we need the "lib" prefix for modules?
15789 need_lib_prefix=$need_lib_prefix
15791 # Do we need a version for libraries?
15792 need_version=$need_version
15794 # Library versioning type.
15795 version_type=$version_type
15797 # Shared library runtime path variable.
15798 runpath_var=$runpath_var
15800 # Shared library path variable.
15801 shlibpath_var=$shlibpath_var
15803 # Is shlibpath searched before the hard-coded library search path?
15804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15806 # Format of library name prefix.
15807 libname_spec=$lt_libname_spec
15809 # List of archive names. First name is the real one, the rest are links.
15810 # The last name is the one that the linker finds with -lNAME
15811 library_names_spec=$lt_library_names_spec
15813 # The coded name of the library, if different from the real name.
15814 soname_spec=$lt_soname_spec
15816 # Command to use after installation of a shared archive.
15817 postinstall_cmds=$lt_postinstall_cmds
15819 # Command to use after uninstallation of a shared archive.
15820 postuninstall_cmds=$lt_postuninstall_cmds
15822 # Commands used to finish a libtool library installation in a directory.
15823 finish_cmds=$lt_finish_cmds
15825 # As "finish_cmds", except a single script fragment to be evaled but
15827 finish_eval=$lt_finish_eval
15829 # Whether we should hardcode library paths into libraries.
15830 hardcode_into_libs=$hardcode_into_libs
15832 # Compile-time system search path for libraries.
15833 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15835 # Run-time system search path for libraries.
15836 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15838 # Whether dlopen is supported.
15839 dlopen_support=$enable_dlopen
15841 # Whether dlopen of programs is supported.
15842 dlopen_self=$enable_dlopen_self
15844 # Whether dlopen of statically linked programs is supported.
15845 dlopen_self_static=$enable_dlopen_self_static
15847 # Commands to strip libraries.
15848 old_striplib=$lt_old_striplib
15849 striplib=$lt_striplib
15852 # The linker used to build libraries.
15855 # Commands used to build an old-style archive.
15856 old_archive_cmds=$lt_old_archive_cmds
15858 # A language specific compiler.
15861 # Is the compiler the GNU compiler?
15864 # Compiler flag to turn off builtin functions.
15865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15867 # How to pass a linker flag through the compiler.
15868 wl=$lt_lt_prog_compiler_wl
15870 # Additional compiler flags for building library objects.
15871 pic_flag=$lt_lt_prog_compiler_pic
15873 # Compiler flag to prevent dynamic linking.
15874 link_static_flag=$lt_lt_prog_compiler_static
15876 # Does compiler simultaneously support -c and -o options?
15877 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15879 # Whether or not to add -lc for building shared libraries.
15880 build_libtool_need_lc=$archive_cmds_need_lc
15882 # Whether or not to disallow shared libs when runtime libs are static.
15883 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15885 # Compiler flag to allow reflexive dlopens.
15886 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15888 # Compiler flag to generate shared objects directly from archives.
15889 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15891 # Whether the compiler copes with passing no objects directly.
15892 compiler_needs_object=$lt_compiler_needs_object
15894 # Create an old-style archive from a shared archive.
15895 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15897 # Create a temporary old-style archive to link instead of a shared archive.
15898 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15900 # Commands used to build a shared archive.
15901 archive_cmds=$lt_archive_cmds
15902 archive_expsym_cmds=$lt_archive_expsym_cmds
15904 # Commands used to build a loadable module if different from building
15905 # a shared archive.
15906 module_cmds=$lt_module_cmds
15907 module_expsym_cmds=$lt_module_expsym_cmds
15909 # Whether we are building with GNU ld or not.
15910 with_gnu_ld=$lt_with_gnu_ld
15912 # Flag that allows shared libraries with undefined symbols to be built.
15913 allow_undefined_flag=$lt_allow_undefined_flag
15915 # Flag that enforces no undefined symbols.
15916 no_undefined_flag=$lt_no_undefined_flag
15918 # Flag to hardcode \$libdir into a binary during linking.
15919 # This must work even if \$libdir does not exist
15920 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15922 # If ld is used when linking, flag to hardcode \$libdir into a binary
15923 # during linking. This must work even if \$libdir does not exist.
15924 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15926 # Whether we need a single "-rpath" flag with a separated argument.
15927 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15929 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15930 # DIR into the resulting binary.
15931 hardcode_direct=$hardcode_direct
15933 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15934 # DIR into the resulting binary and the resulting library dependency is
15935 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15936 # library is relocated.
15937 hardcode_direct_absolute=$hardcode_direct_absolute
15939 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15940 # into the resulting binary.
15941 hardcode_minus_L=$hardcode_minus_L
15943 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15944 # into the resulting binary.
15945 hardcode_shlibpath_var=$hardcode_shlibpath_var
15947 # Set to "yes" if building a shared library automatically hardcodes DIR
15948 # into the library and all subsequent libraries and executables linked
15950 hardcode_automatic=$hardcode_automatic
15952 # Set to yes if linker adds runtime paths of dependent libraries
15953 # to runtime path list.
15954 inherit_rpath=$inherit_rpath
15956 # Whether libtool must link a program against all its dependency libraries.
15957 link_all_deplibs=$link_all_deplibs
15959 # Fix the shell variable \$srcfile for the compiler.
15960 fix_srcfile_path=$lt_fix_srcfile_path
15962 # Set to "yes" if exported symbols are required.
15963 always_export_symbols=$always_export_symbols
15965 # The commands to list exported symbols.
15966 export_symbols_cmds=$lt_export_symbols_cmds
15968 # Symbols that should not be listed in the preloaded symbols.
15969 exclude_expsyms=$lt_exclude_expsyms
15971 # Symbols that must always be exported.
15972 include_expsyms=$lt_include_expsyms
15974 # Commands necessary for linking programs (against libraries) with templates.
15975 prelink_cmds=$lt_prelink_cmds
15977 # Specify filename containing input files.
15978 file_list_spec=$lt_file_list_spec
15980 # How to hardcode a shared library path into an executable.
15981 hardcode_action=$hardcode_action
15983 # ### END LIBTOOL CONFIG
15989 cat <<\_LT_EOF >> "$cfgfile"
15990 # AIX sometimes has problems with the GCC collect2 program. For some
15991 # reason, if we set the COLLECT_NAMES environment variable, the problems
15992 # vanish in a puff of smoke.
15993 if test "X${COLLECT_NAMES+set}" != Xset; then
15995 export COLLECT_NAMES
16002 ltmain="$ac_aux_dir/ltmain.sh"
16005 # We use sed instead of cat because bash on DJGPP gets confused if
16006 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16007 # text mode, it properly converts lines to CR/LF. This bash problem
16008 # is reportedly fixed, but why not run on old versions too?
16009 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16010 || (rm -f "$cfgfile"; exit 1)
16014 cat << \_LT_EOF >> "$cfgfile"
16016 # func_dirname file append nondir_replacement
16017 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16018 # otherwise set result to NONDIR_REPLACEMENT.
16022 */*) func_dirname_result="${1%/*}${2}" ;;
16023 * ) func_dirname_result="${3}" ;;
16027 # func_basename file
16030 func_basename_result="${1##*/}"
16033 # func_dirname_and_basename file append nondir_replacement
16034 # perform func_basename and func_dirname in a single function
16036 # dirname: Compute the dirname of FILE. If nonempty,
16037 # add APPEND to the result, otherwise set result
16038 # to NONDIR_REPLACEMENT.
16039 # value returned in "$func_dirname_result"
16040 # basename: Compute filename of FILE.
16041 # value retuned in "$func_basename_result"
16042 # Implementation must be kept synchronized with func_dirname
16043 # and func_basename. For efficiency, we do not delegate to
16044 # those functions but instead duplicate the functionality here.
16045 func_dirname_and_basename ()
16048 */*) func_dirname_result="${1%/*}${2}" ;;
16049 * ) func_dirname_result="${3}" ;;
16051 func_basename_result="${1##*/}"
16054 # func_stripname prefix suffix name
16055 # strip PREFIX and SUFFIX off of NAME.
16056 # PREFIX and SUFFIX must not contain globbing or regex special
16057 # characters, hashes, percent signs, but SUFFIX may contain a leading
16058 # dot (in which case that matches only a dot).
16061 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16062 # positional parameters, so assign one to ordinary parameter first.
16063 func_stripname_result=${3}
16064 func_stripname_result=${func_stripname_result#"${1}"}
16065 func_stripname_result=${func_stripname_result%"${2}"}
16071 func_opt_split_opt=${1%%=*}
16072 func_opt_split_arg=${1#*=}
16079 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16080 *) func_lo2o_result=${1} ;;
16084 # func_xform libobj-or-source
16087 func_xform_result=${1%.*}.lo
16090 # func_arith arithmetic-term...
16093 func_arith_result=$(( $* ))
16097 # STRING may not start with a hyphen.
16100 func_len_result=${#1}
16105 *) # Bourne compatible functions.
16106 cat << \_LT_EOF >> "$cfgfile"
16108 # func_dirname file append nondir_replacement
16109 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16110 # otherwise set result to NONDIR_REPLACEMENT.
16113 # Extract subdirectory from the argument.
16114 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16115 if test "X$func_dirname_result" = "X${1}"; then
16116 func_dirname_result="${3}"
16118 func_dirname_result="$func_dirname_result${2}"
16122 # func_basename file
16125 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16129 # func_stripname prefix suffix name
16130 # strip PREFIX and SUFFIX off of NAME.
16131 # PREFIX and SUFFIX must not contain globbing or regex special
16132 # characters, hashes, percent signs, but SUFFIX may contain a leading
16133 # dot (in which case that matches only a dot).
16134 # func_strip_suffix prefix name
16138 .*) func_stripname_result=`$ECHO "X${3}" \
16139 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16140 *) func_stripname_result=`$ECHO "X${3}" \
16141 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16146 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16147 my_sed_long_arg='1s/^-[^=]*=//'
16152 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16153 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16159 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16162 # func_xform libobj-or-source
16165 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16168 # func_arith arithmetic-term...
16171 func_arith_result=`expr "$@"`
16175 # STRING may not start with a hyphen.
16178 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16184 case $lt_shell_append in
16186 cat << \_LT_EOF >> "$cfgfile"
16188 # func_append var value
16189 # Append VALUE to the end of shell variable VAR.
16197 cat << \_LT_EOF >> "$cfgfile"
16199 # func_append var value
16200 # Append VALUE to the end of shell variable VAR.
16211 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16212 || (rm -f "$cfgfile"; exit 1)
16214 mv -f "$cfgfile" "$ofile" ||
16215 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16219 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16220 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16221 # are listed without --file. Let's play safe and only enable the eval
16222 # if we detect the quoting.
16223 case $CONFIG_FILES in
16224 *\'*) eval set x "$CONFIG_FILES" ;;
16225 *) set x $CONFIG_FILES ;;
16230 # Strip MF so we end up with the name of the file.
16231 mf=`echo "$mf" | sed -e 's/:.*$//'`
16232 # Check whether this is an Automake generated Makefile or not.
16233 # We used to match only the files named `Makefile.in', but
16234 # some people rename them; so instead we look at the file content.
16235 # Grep'ing the first line is not enough: some people post-process
16236 # each Makefile.in and add a new line on top of each file to say so.
16237 # Grep'ing the whole file is not good either: AIX grep has a line
16238 # limit of 2048, but all sed's we know have understand at least 4000.
16239 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16240 dirpart=`$as_dirname -- "$mf" ||
16241 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16242 X"$mf" : 'X\(//\)[^/]' \| \
16243 X"$mf" : 'X\(//\)$' \| \
16244 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16250 /^X\(\/\/\)[^/].*/{
16266 # Extract the definition of DEPDIR, am__include, and am__quote
16267 # from the Makefile without running `make'.
16268 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16269 test -z "$DEPDIR" && continue
16270 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16271 test -z "am__include" && continue
16272 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16273 # When using ansi2knr, U may be empty or an underscore; expand it
16274 U=`sed -n 's/^U = //p' < "$mf"`
16275 # Find all dependency output files, they are included files with
16276 # $(DEPDIR) in their names. We invoke sed twice because it is the
16277 # simplest approach to changing $(DEPDIR) to its actual value in the
16279 for file in `sed -n "
16280 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16281 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16282 # Make sure the directory exists.
16283 test -f "$dirpart/$file" && continue
16284 fdir=`$as_dirname -- "$file" ||
16285 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16286 X"$file" : 'X\(//\)[^/]' \| \
16287 X"$file" : 'X\(//\)$' \| \
16288 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16289 $as_echo X"$file" |
16290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16294 /^X\(\/\/\)[^/].*/{
16307 { as_dir=$dirpart/$fdir
16309 -*) as_dir=./$as_dir;;
16311 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16315 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16316 *) as_qdir=$as_dir;;
16318 as_dirs="'$as_qdir' $as_dirs"
16319 as_dir=`$as_dirname -- "$as_dir" ||
16320 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321 X"$as_dir" : 'X\(//\)[^/]' \| \
16322 X"$as_dir" : 'X\(//\)$' \| \
16323 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16324 $as_echo X"$as_dir" |
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16329 /^X\(\/\/\)[^/].*/{
16342 test -d "$as_dir" && break
16344 test -z "$as_dirs" || eval "mkdir $as_dirs"
16345 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16346 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16347 { (exit 1); exit 1; }; }; }
16348 # echo "creating $dirpart/$file"
16349 echo '# dummy' > "$dirpart/$file"
16359 { (exit 0); exit 0; }
16361 chmod +x $CONFIG_STATUS
16362 ac_clean_files=$ac_clean_files_save
16364 test $ac_write_fail = 0 ||
16365 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
16366 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
16367 { (exit 1); exit 1; }; }
16370 # configure is writing to config.log, and then calls config.status.
16371 # config.status does its own redirection, appending to config.log.
16372 # Unfortunately, on DOS this fails, as config.log is still kept open
16373 # by configure, so config.status won't be able to write to it; its
16374 # output is simply discarded. So we exec the FD to /dev/null,
16375 # effectively closing config.log, so it can be properly (re)opened and
16376 # appended to by config.status. When coming back to configure, we
16377 # need to make the FD available again.
16378 if test "$no_create" != yes; then
16380 ac_config_status_args=
16381 test "$silent" = yes &&
16382 ac_config_status_args="$ac_config_status_args --quiet"
16384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16387 # would make configure fail if this is the last instruction.
16388 $ac_cs_success || { (exit 1); exit 1; }
16390 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16391 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16392 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}