2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for yaml 0.1.3.
5 # Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
747 PACKAGE_TARNAME='yaml'
748 PACKAGE_VERSION='0.1.3'
749 PACKAGE_STRING='yaml 0.1.3'
750 PACKAGE_BUGREPORT='http://pyyaml.org/newticket?component=libyaml'
752 # Factoring default headers for most tests.
753 ac_includes_default="\
755 #ifdef HAVE_SYS_TYPES_H
756 # include <sys/types.h>
758 #ifdef HAVE_SYS_STAT_H
759 # include <sys/stat.h>
765 # ifdef HAVE_STDLIB_H
770 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775 #ifdef HAVE_STRINGS_H
776 # include <strings.h>
778 #ifdef HAVE_INTTYPES_H
779 # include <inttypes.h>
788 ac_subst_vars='LTLIBOBJS
849 INSTALL_STRIP_PROGRAM
891 program_transform_name
903 enable_option_checking
904 enable_dependency_tracking
912 ac_precious_vars='build_alias
923 # Initialize some variables set by options.
925 ac_init_version=false
926 ac_unrecognized_opts=
928 # The variables have the same names as the options, with
929 # dashes changed to underlines.
937 program_transform_name=s,x,x,
945 # Installation directory options.
946 # These are left unexpanded so users can "make install exec_prefix=/foo"
947 # and all the variables that are supposed to be based on exec_prefix
948 # by default will actually change.
949 # Use braces instead of parens because sh, perl, etc. also accept them.
950 # (The list follows the same order as the GNU Coding Standards.)
951 bindir='${exec_prefix}/bin'
952 sbindir='${exec_prefix}/sbin'
953 libexecdir='${exec_prefix}/libexec'
954 datarootdir='${prefix}/share'
955 datadir='${datarootdir}'
956 sysconfdir='${prefix}/etc'
957 sharedstatedir='${prefix}/com'
958 localstatedir='${prefix}/var'
959 includedir='${prefix}/include'
960 oldincludedir='/usr/include'
961 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
962 infodir='${datarootdir}/info'
967 libdir='${exec_prefix}/lib'
968 localedir='${datarootdir}/locale'
969 mandir='${datarootdir}/man'
975 # If the previous option needs an argument, assign it.
976 if test -n "$ac_prev"; then
977 eval $ac_prev=\$ac_option
983 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 # Accept the important Cygnus configure options, so we can diagnose typos.
989 case $ac_dashdash$ac_option in
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1013 -datadir | --datadir | --datadi | --datad)
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1030 { (exit 1); exit 1; }; }
1031 ac_useropt_orig=$ac_useropt
1032 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1033 case $ac_user_opts in
1035 "enable_$ac_useropt"
1037 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1038 ac_unrecognized_sep=', ';;
1040 eval enable_$ac_useropt=no ;;
1042 -docdir | --docdir | --docdi | --doc | --do)
1044 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1045 docdir=$ac_optarg ;;
1047 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1050 dvidir=$ac_optarg ;;
1052 -enable-* | --enable-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 htmldir=$ac_optarg ;;
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1112 -libdir | --libdir | --libdi | --libd)
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1203 -psdir | --psdir | --psdi | --psd | --ps)
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1212 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 sbindir=$ac_optarg ;;
1218 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220 | --sharedst | --shareds | --shared | --share | --shar \
1222 ac_prev=sharedstatedir ;;
1223 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 sharedstatedir=$ac_optarg ;;
1229 -site | --site | --sit)
1231 -site=* | --site=* | --sit=*)
1234 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237 srcdir=$ac_optarg ;;
1239 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240 | --syscon | --sysco | --sysc | --sys | --sy)
1241 ac_prev=sysconfdir ;;
1242 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244 sysconfdir=$ac_optarg ;;
1246 -target | --target | --targe | --targ | --tar | --ta | --t)
1247 ac_prev=target_alias ;;
1248 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249 target_alias=$ac_optarg ;;
1251 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 -version | --version | --versio | --versi | --vers | -V)
1255 ac_init_version=: ;;
1258 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1262 { (exit 1); exit 1; }; }
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1272 eval with_$ac_useropt=\$ac_optarg ;;
1274 -without-* | --without-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1289 eval with_$ac_useropt=no ;;
1292 # Obsolete; use --with-x.
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1300 x_includes=$ac_optarg ;;
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1307 x_libraries=$ac_optarg ;;
1309 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1310 Try \`$0 --help' for more information." >&2
1311 { (exit 1); exit 1; }; }
1315 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1318 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1319 { (exit 1); exit 1; }; }
1320 eval $ac_envvar=\$ac_optarg
1321 export $ac_envvar ;;
1324 # FIXME: should be removed in autoconf 3.0.
1325 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1327 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1328 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1334 if test -n "$ac_prev"; then
1335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1336 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1337 { (exit 1); exit 1; }; }
1340 if test -n "$ac_unrecognized_opts"; then
1341 case $enable_option_checking in
1343 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1344 { (exit 1); exit 1; }; } ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1362 # Be sure to have absolute directory names.
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$as_myself" ||
1410 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$as_myself" : 'X\(//\)[^/]' \| \
1412 X"$as_myself" : 'X\(//\)$' \| \
1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414 $as_echo X"$as_myself" |
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures yaml 0.1.3 to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/yaml]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of yaml 0.1.3:";;
1548 --disable-option-checking ignore unrecognized --enable/--with options
1549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1551 --disable-dependency-tracking speeds up one-time build
1552 --enable-dependency-tracking do not reject slow dependency extractors
1553 --enable-shared[=PKGS] build shared libraries [default=yes]
1554 --enable-static[=PKGS] build static libraries [default=yes]
1555 --enable-fast-install[=PKGS]
1556 optimize for fast installation [default=yes]
1557 --disable-libtool-lock avoid locking (might break parallel builds)
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1562 --with-pic try to use only PIC/non-PIC objects [default=use
1564 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1579 Report bugs to <http://pyyaml.org/newticket?component=libyaml>.
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1609 .) # We are building in place.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1642 yaml configure 0.1.3
1643 generated by GNU Autoconf 2.63
1645 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1646 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by yaml $as_me 0.1.3, which was
1657 generated by GNU Autoconf 2.63. Invocation command line was
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 test -z "$as_dir" && as_dir=.
1693 $as_echo "PATH: $as_dir"
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1717 ac_must_keep_next=false
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1728 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1746 -* ) ac_must_keep_next=true ;;
1749 ac_configure_args="$ac_configure_args '$ac_arg'"
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1773 # The following way of writing the cache mishandles newlines in values,
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1780 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1781 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1784 _ | IFS | as_nl) ;; #(
1785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1786 *) $as_unset $ac_var ;;
1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1811 for ac_var in $ac_subst_vars
1813 eval ac_val=\$$ac_var
1815 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1817 $as_echo "$ac_var='\''$ac_val'\''"
1821 if test -n "$ac_subst_files"; then
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1828 for ac_var in $ac_subst_files
1830 eval ac_val=\$$ac_var
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 $as_echo "$ac_var='\''$ac_val'\''"
1839 if test -s confdefs.h; then
1849 test "$ac_signal" != 0 &&
1850 $as_echo "$as_me: caught signal $ac_signal"
1851 $as_echo "$as_me: exit $exit_status"
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857 for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1865 # Predefined preprocessor variables.
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer an explicitly selected file to automatically selected ones.
1896 if test -n "$CONFIG_SITE"; then
1897 ac_site_file1=$CONFIG_SITE
1898 elif test "x$prefix" != xNONE; then
1899 ac_site_file1=$prefix/share/config.site
1900 ac_site_file2=$prefix/etc/config.site
1902 ac_site_file1=$ac_default_prefix/share/config.site
1903 ac_site_file2=$ac_default_prefix/etc/config.site
1905 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1907 test "x$ac_site_file" = xNONE && continue
1908 if test -r "$ac_site_file"; then
1909 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1916 if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 $as_echo "$as_me: loading cache $cache_file" >&6;}
1923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
1928 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 $as_echo "$as_me: creating cache $cache_file" >&6;}
1933 # Check that the precious variables saved in the cache have kept the same
1935 ac_cache_corrupted=false
1936 for ac_var in $ac_precious_vars; do
1937 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1938 eval ac_new_set=\$ac_env_${ac_var}_set
1939 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1940 eval ac_new_val=\$ac_env_${ac_var}_value
1941 case $ac_old_set,$ac_new_set in
1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1944 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1945 ac_cache_corrupted=: ;;
1947 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1948 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1949 ac_cache_corrupted=: ;;
1952 if test "x$ac_old_val" != "x$ac_new_val"; then
1953 # differences in whitespace do not lead to failure.
1954 ac_old_val_w=`echo x $ac_old_val`
1955 ac_new_val_w=`echo x $ac_new_val`
1956 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1958 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1959 ac_cache_corrupted=:
1961 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1962 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1963 eval $ac_var=\$ac_old_val
1965 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1966 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1967 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1968 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1971 # Pass precious variables to config.status.
1972 if test "$ac_new_set" = set; then
1974 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 *) ac_arg=$ac_var=$ac_new_val ;;
1977 case " $ac_configure_args " in
1978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1979 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1983 if $ac_cache_corrupted; then
1984 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1986 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1987 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1988 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1989 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1990 { (exit 1); exit 1; }; }
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 for ac_dir in config "$srcdir"/config; do
2026 if test -f "$ac_dir/install-sh"; then
2028 ac_install_sh="$ac_aux_dir/install-sh -c"
2030 elif test -f "$ac_dir/install.sh"; then
2032 ac_install_sh="$ac_aux_dir/install.sh -c"
2034 elif test -f "$ac_dir/shtool"; then
2036 ac_install_sh="$ac_aux_dir/shtool install -c"
2040 if test -z "$ac_aux_dir"; then
2041 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2042 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2043 { (exit 1); exit 1; }; }
2046 # These three variables are undocumented and unsupported,
2047 # and are intended to be withdrawn in a future Autoconf release.
2048 # They can cause serious problems if a builder's source tree is in a directory
2049 # whose full name contains unusual characters.
2050 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2051 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2052 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2055 ac_config_headers="$ac_config_headers config.h"
2057 am__api_version='1.10'
2059 # Find a good install program. We prefer a C program (faster),
2060 # so one script is as good as another. But avoid the broken or
2061 # incompatible versions:
2062 # SysV /etc/install, /usr/sbin/install
2063 # SunOS /usr/etc/install
2064 # IRIX /sbin/install
2066 # AmigaOS /C/install, which installs bootblocks on floppy discs
2067 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2068 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2069 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2070 # OS/2's system install, which has a completely different semantic
2071 # ./install, which can be erroneously created by make from ./install.sh.
2072 # Reject install programs that cannot install multiple files.
2073 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2075 if test -z "$INSTALL"; then
2076 if test "${ac_cv_path_install+set}" = set; then
2077 $as_echo_n "(cached) " >&6
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2086 ./ | .// | /cC/* | \
2087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2097 if test $ac_prog = install &&
2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2106 rm -rf conftest.one conftest.two conftest.dir
2107 echo one > conftest.one
2108 echo two > conftest.two
2110 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2111 test -s conftest.one && test -s conftest.two &&
2112 test -s conftest.dir/conftest.one &&
2113 test -s conftest.dir/conftest.two
2115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2128 rm -rf conftest.one conftest.two conftest.dir
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL=$ac_cv_path_install
2134 # As a last resort, use the slow shell script. Don't cache a
2135 # value for INSTALL within a source directory, because that will
2136 # break other packages using the cache if that directory is
2137 # removed, or if the value is a relative name.
2138 INSTALL=$ac_install_sh
2141 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2142 $as_echo "$INSTALL" >&6; }
2144 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2145 # It thinks the first close brace ends the variable substitution.
2146 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2148 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2150 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2152 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2153 $as_echo_n "checking whether build environment is sane... " >&6; }
2156 echo timestamp > conftest.file
2157 # Do `set' in a subshell so we don't clobber the current shell's
2158 # arguments. Must try -L first in case configure is actually a
2159 # symlink; some systems play weird games with the mod time of symlinks
2160 # (eg FreeBSD returns the mod time of the symlink's containing
2163 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2164 if test "$*" = "X"; then
2166 set X `ls -t $srcdir/configure conftest.file`
2169 if test "$*" != "X $srcdir/configure conftest.file" \
2170 && test "$*" != "X conftest.file $srcdir/configure"; then
2172 # If neither matched, then we have a broken ls. This can happen
2173 # if, for instance, CONFIG_SHELL is bash and it inherits a
2174 # broken ls alias from the environment. This has actually
2175 # happened. Such a system could not be considered "sane".
2176 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2177 alias in your environment" >&5
2178 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2179 alias in your environment" >&2;}
2180 { (exit 1); exit 1; }; }
2183 test "$2" = conftest.file
2189 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2190 Check your system clock" >&5
2191 $as_echo "$as_me: error: newly created file is older than distributed files!
2192 Check your system clock" >&2;}
2193 { (exit 1); exit 1; }; }
2195 { $as_echo "$as_me:$LINENO: result: yes" >&5
2196 $as_echo "yes" >&6; }
2197 test "$program_prefix" != NONE &&
2198 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2199 # Use a double $ so make ignores it.
2200 test "$program_suffix" != NONE &&
2201 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2202 # Double any \ or $.
2203 # By default was `s,x,x', remove it if useless.
2204 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2205 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2207 # expand $ac_aux_dir to an absolute path
2208 am_aux_dir=`cd $ac_aux_dir && pwd`
2210 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2211 # Use eval to expand $SHELL
2212 if eval "$MISSING --run true"; then
2213 am_missing_run="$MISSING --run "
2216 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2217 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2220 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2221 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2222 if test -z "$MKDIR_P"; then
2223 if test "${ac_cv_path_mkdir+set}" = set; then
2224 $as_echo_n "(cached) " >&6
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2230 test -z "$as_dir" && as_dir=.
2231 for ac_prog in mkdir gmkdir; do
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2234 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2235 'mkdir (GNU coreutils) '* | \
2236 'mkdir (coreutils) '* | \
2237 'mkdir (fileutils) '4.1*)
2238 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2248 if test "${ac_cv_path_mkdir+set}" = set; then
2249 MKDIR_P="$ac_cv_path_mkdir -p"
2251 # As a last resort, use the slow shell script. Don't cache a
2252 # value for MKDIR_P within a source directory, because that will
2253 # break other packages using the cache if that directory is
2254 # removed, or if the value is a relative name.
2255 test -d ./--version && rmdir ./--version
2256 MKDIR_P="$ac_install_sh -d"
2259 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2260 $as_echo "$MKDIR_P" >&6; }
2264 [\\/$]* | ?:[\\/]*) ;;
2265 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2268 for ac_prog in gawk mawk nawk awk
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271 set dummy $ac_prog; ac_word=$2
2272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 $as_echo_n "checking for $ac_word... " >&6; }
2274 if test "${ac_cv_prog_AWK+set}" = set; then
2275 $as_echo_n "(cached) " >&6
2277 if test -n "$AWK"; then
2278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_AWK="$ac_prog"
2288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2298 if test -n "$AWK"; then
2299 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2300 $as_echo "$AWK" >&6; }
2302 { $as_echo "$as_me:$LINENO: result: no" >&5
2303 $as_echo "no" >&6; }
2307 test -n "$AWK" && break
2310 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2311 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2313 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2314 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2315 $as_echo_n "(cached) " >&6
2317 cat >conftest.make <<\_ACEOF
2320 @echo '@@@%%%=$(MAKE)=@@@%%%'
2322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2325 eval ac_cv_prog_make_${ac_make}_set=yes;;
2327 eval ac_cv_prog_make_${ac_make}_set=no;;
2331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2332 { $as_echo "$as_me:$LINENO: result: yes" >&5
2333 $as_echo "yes" >&6; }
2336 { $as_echo "$as_me:$LINENO: result: no" >&5
2337 $as_echo "no" >&6; }
2338 SET_MAKE="MAKE=${MAKE-make}"
2341 rm -rf .tst 2>/dev/null
2342 mkdir .tst 2>/dev/null
2343 if test -d .tst; then
2348 rmdir .tst 2>/dev/null
2350 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2351 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2352 # is not polluted with repeated "-I."
2353 am__isrc=' -I$(srcdir)'
2354 # test to see if srcdir already configured
2355 if test -f $srcdir/config.status; then
2356 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2357 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2358 { (exit 1); exit 1; }; }
2362 # test whether we have cygpath
2363 if test -z "$CYGPATH_W"; then
2364 if (cygpath --version) >/dev/null 2>/dev/null; then
2365 CYGPATH_W='cygpath -w'
2372 # Define the identity of the package.
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE "$PACKAGE"
2382 cat >>confdefs.h <<_ACEOF
2383 #define VERSION "$VERSION"
2386 # Some tools Automake needs.
2388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2402 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2404 # Installed binaries are usually stripped using `strip' when the user
2405 # run `make install-strip'. However `strip' might not be the right
2406 # tool to use in cross-compilation environments, therefore Automake
2407 # will honor the `STRIP' environment variable to overrule this program.
2408 if test "$cross_compiling" != no; then
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}strip; ac_word=$2
2412 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if test "${ac_cv_prog_STRIP+set}" = set; then
2415 $as_echo_n "(cached) " >&6
2417 if test -n "$STRIP"; then
2418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437 STRIP=$ac_cv_prog_STRIP
2438 if test -n "$STRIP"; then
2439 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2440 $as_echo "$STRIP" >&6; }
2442 { $as_echo "$as_me:$LINENO: result: no" >&5
2443 $as_echo "no" >&6; }
2448 if test -z "$ac_cv_prog_STRIP"; then
2450 # Extract the first word of "strip", so it can be a program name with args.
2451 set dummy strip; ac_word=$2
2452 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2455 $as_echo_n "(cached) " >&6
2457 if test -n "$ac_ct_STRIP"; then
2458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_STRIP="strip"
2468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2478 if test -n "$ac_ct_STRIP"; then
2479 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2480 $as_echo "$ac_ct_STRIP" >&6; }
2482 { $as_echo "$as_me:$LINENO: result: no" >&5
2483 $as_echo "no" >&6; }
2486 if test "x$ac_ct_STRIP" = x; then
2489 case $cross_compiling:$ac_tool_warned in
2491 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2493 ac_tool_warned=yes ;;
2498 STRIP="$ac_cv_prog_STRIP"
2502 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2504 # We need awk for the "check" target. The system "awk" is bad on
2506 # Always define AMTAR for backward compatibility.
2508 AMTAR=${AMTAR-"${am_missing_run}tar"}
2510 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2517 # Define macro variables for the package version numbers.
2519 cat >>confdefs.h <<\_ACEOF
2520 #define YAML_VERSION_MAJOR 0
2524 cat >>confdefs.h <<\_ACEOF
2525 #define YAML_VERSION_MINOR 1
2529 cat >>confdefs.h <<\_ACEOF
2530 #define YAML_VERSION_PATCH 3
2534 cat >>confdefs.h <<\_ACEOF
2535 #define YAML_VERSION_STRING "0.1.3"
2539 # Define substitutions for the libtool version numbers.
2549 # Note: in order to update checks, run `autoscan` and look through "configure.scan".
2551 # Checks for programs.
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_CC+set}" = set; then
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$CC"; then
2587 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2588 $as_echo "$CC" >&6; }
2590 { $as_echo "$as_me:$LINENO: result: no" >&5
2591 $as_echo "no" >&6; }
2596 if test -z "$ac_cv_prog_CC"; then
2598 # Extract the first word of "gcc", so it can be a program name with args.
2599 set dummy gcc; ac_word=$2
2600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="gcc"
2616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 $as_echo "$ac_ct_CC" >&6; }
2630 { $as_echo "$as_me:$LINENO: result: no" >&5
2631 $as_echo "no" >&6; }
2634 if test "x$ac_ct_CC" = x; then
2637 case $cross_compiling:$ac_tool_warned in
2639 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2649 if test -z "$CC"; then
2650 if test -n "$ac_tool_prefix"; then
2651 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}cc; ac_word=$2
2653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if test "${ac_cv_prog_CC+set}" = set; then
2656 $as_echo_n "(cached) " >&6
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2668 ac_cv_prog_CC="${ac_tool_prefix}cc"
2669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2683 { $as_echo "$as_me:$LINENO: result: no" >&5
2684 $as_echo "no" >&6; }
2690 if test -z "$CC"; then
2691 # Extract the first word of "cc", so it can be a program name with args.
2692 set dummy cc; ac_word=$2
2693 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if test "${ac_cv_prog_CC+set}" = set; then
2696 $as_echo_n "(cached) " >&6
2698 if test -n "$CC"; then
2699 ac_cv_prog_CC="$CC" # Let the user override the test.
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2710 ac_prog_rejected=yes
2714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 if test $ac_prog_rejected = yes; then
2722 # We found a bogon in the path, so make sure we never use it.
2723 set dummy $ac_cv_prog_CC
2725 if test $# != 0; then
2726 # We chose a different compiler from the bogus one.
2727 # However, it has the same basename, so the bogon will be chosen
2728 # first if we set CC to just the basename; use the full file name.
2730 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2736 if test -n "$CC"; then
2737 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2738 $as_echo "$CC" >&6; }
2740 { $as_echo "$as_me:$LINENO: result: no" >&5
2741 $as_echo "no" >&6; }
2746 if test -z "$CC"; then
2747 if test -n "$ac_tool_prefix"; then
2748 for ac_prog in cl.exe
2750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_CC+set}" = set; then
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$CC"; then
2758 ac_cv_prog_CC="$CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2780 $as_echo "$CC" >&6; }
2782 { $as_echo "$as_me:$LINENO: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$CC" && break
2790 if test -z "$CC"; then
2792 for ac_prog in cl.exe
2794 # Extract the first word of "$ac_prog", so it can be a program name with args.
2795 set dummy $ac_prog; ac_word=$2
2796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2799 $as_echo_n "(cached) " >&6
2801 if test -n "$ac_ct_CC"; then
2802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2811 ac_cv_prog_ac_ct_CC="$ac_prog"
2812 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2822 if test -n "$ac_ct_CC"; then
2823 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2824 $as_echo "$ac_ct_CC" >&6; }
2826 { $as_echo "$as_me:$LINENO: result: no" >&5
2827 $as_echo "no" >&6; }
2831 test -n "$ac_ct_CC" && break
2834 if test "x$ac_ct_CC" = x; then
2837 case $cross_compiling:$ac_tool_warned in
2839 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2850 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2853 See \`config.log' for more details." >&5
2854 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2855 See \`config.log' for more details." >&2;}
2856 { (exit 1); exit 1; }; }; }
2858 # Provide some information about the compiler.
2859 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2862 { (ac_try="$ac_compiler --version >&5"
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868 $as_echo "$ac_try_echo") >&5
2869 (eval "$ac_compiler --version >&5") 2>&5
2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873 { (ac_try="$ac_compiler -v >&5"
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compiler -v >&5") 2>&5
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884 { (ac_try="$ac_compiler -V >&5"
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2890 $as_echo "$ac_try_echo") >&5
2891 (eval "$ac_compiler -V >&5") 2>&5
2893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); }
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2911 ac_clean_files_save=$ac_clean_files
2912 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2913 # Try to create an executable without -o first, disregard a.out.
2914 # It will help us diagnose broken compilers, and finding out an intuition
2916 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2917 $as_echo_n "checking for C compiler default output file name... " >&6; }
2918 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2920 # The possible output files:
2921 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2924 for ac_file in $ac_files
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2933 if { (ac_try="$ac_link_default"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2939 $as_echo "$ac_try_echo") >&5
2940 (eval "$ac_link_default") 2>&5
2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; then
2944 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2945 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2946 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2947 # so that the user can short-circuit this test for compilers unknown to
2949 for ac_file in $ac_files ''
2951 test -f "$ac_file" || continue
2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2956 # We found the default executable, but exeext='' is most
2960 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2964 # We set ac_cv_exeext here because the later test for it is not
2965 # safe: cross compilers may not add the suffix if given an `-o'
2966 # argument, so we may need to know it at that point already.
2967 # Even if this section looks crufty: it has the advantage of
2974 test "$ac_cv_exeext" = no && ac_cv_exeext=
2980 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2981 $as_echo "$ac_file" >&6; }
2982 if test -z "$ac_file"; then
2983 $as_echo "$as_me: failed program was:" >&5
2984 sed 's/^/| /' conftest.$ac_ext >&5
2986 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2988 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2989 See \`config.log' for more details." >&5
2990 $as_echo "$as_me: error: C compiler cannot create executables
2991 See \`config.log' for more details." >&2;}
2992 { (exit 77); exit 77; }; }; }
2995 ac_exeext=$ac_cv_exeext
2997 # Check that the compiler produces executables we can run. If not, either
2998 # the compiler is broken, or we cross compile.
2999 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3000 $as_echo_n "checking whether the C compiler works... " >&6; }
3001 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3002 # If not cross compiling, check that we can run a simple program.
3003 if test "$cross_compiling" != yes; then
3004 if { ac_try='./$ac_file'
3005 { (case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010 $as_echo "$ac_try_echo") >&5
3011 (eval "$ac_try") 2>&5
3013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3017 if test "$cross_compiling" = maybe; then
3020 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3023 If you meant to cross compile, use \`--host'.
3024 See \`config.log' for more details." >&5
3025 $as_echo "$as_me: error: cannot run C compiled programs.
3026 If you meant to cross compile, use \`--host'.
3027 See \`config.log' for more details." >&2;}
3028 { (exit 1); exit 1; }; }; }
3032 { $as_echo "$as_me:$LINENO: result: yes" >&5
3033 $as_echo "yes" >&6; }
3035 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3036 ac_clean_files=$ac_clean_files_save
3037 # Check that the compiler produces executables we can run. If not, either
3038 # the compiler is broken, or we cross compile.
3039 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3040 $as_echo_n "checking whether we are cross compiling... " >&6; }
3041 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3042 $as_echo "$cross_compiling" >&6; }
3044 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3045 $as_echo_n "checking for suffix of executables... " >&6; }
3046 if { (ac_try="$ac_link"
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3052 $as_echo "$ac_try_echo") >&5
3053 (eval "$ac_link") 2>&5
3055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; then
3057 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3058 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3059 # work properly (i.e., refer to `conftest.exe'), while it won't with
3061 for ac_file in conftest.exe conftest conftest.*; do
3062 test -f "$ac_file" || continue
3064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3065 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3071 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3074 See \`config.log' for more details." >&5
3075 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details." >&2;}
3077 { (exit 1); exit 1; }; }; }
3080 rm -f conftest$ac_cv_exeext
3081 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3082 $as_echo "$ac_cv_exeext" >&6; }
3084 rm -f conftest.$ac_ext
3085 EXEEXT=$ac_cv_exeext
3087 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3088 $as_echo_n "checking for suffix of object files... " >&6; }
3089 if test "${ac_cv_objext+set}" = set; then
3090 $as_echo_n "(cached) " >&6
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3107 rm -f conftest.o conftest.obj
3108 if { (ac_try="$ac_compile"
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3114 $as_echo "$ac_try_echo") >&5
3115 (eval "$ac_compile") 2>&5
3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; then
3119 for ac_file in conftest.o conftest.obj conftest.*; do
3120 test -f "$ac_file" || continue;
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3134 See \`config.log' for more details." >&5
3135 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3136 See \`config.log' for more details." >&2;}
3137 { (exit 1); exit 1; }; }; }
3140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3142 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3143 $as_echo "$ac_cv_objext" >&6; }
3144 OBJEXT=$ac_cv_objext
3146 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3148 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3176 $as_echo "$ac_try_echo") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
3189 $as_echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3199 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3201 if test $ac_compiler_gnu = yes; then
3206 ac_test_CFLAGS=${CFLAGS+set}
3207 ac_save_CFLAGS=$CFLAGS
3208 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3210 if test "${ac_cv_prog_cc_g+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3213 ac_save_c_werror_flag=$ac_c_werror_flag
3214 ac_c_werror_flag=yes
3217 cat >conftest.$ac_ext <<_ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3232 rm -f conftest.$ac_objext
3233 if { (ac_try="$ac_compile"
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3239 $as_echo "$ac_try_echo") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3242 grep -v '^ *+' conftest.er1 >conftest.err
3244 cat conftest.err >&5
3245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3291 $as_echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3294 ac_c_werror_flag=$ac_save_c_werror_flag
3296 cat >conftest.$ac_ext <<_ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h. */
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318 $as_echo "$ac_try_echo") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } && {
3326 test -z "$ac_c_werror_flag" ||
3327 test ! -s conftest.err
3328 } && test -s conftest.$ac_objext; then
3331 $as_echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 ac_c_werror_flag=$ac_save_c_werror_flag
3346 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3347 $as_echo "$ac_cv_prog_cc_g" >&6; }
3348 if test "$ac_test_CFLAGS" = set; then
3349 CFLAGS=$ac_save_CFLAGS
3350 elif test $ac_cv_prog_cc_g = yes; then
3351 if test "$GCC" = yes; then
3357 if test "$GCC" = yes; then
3363 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3364 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3365 if test "${ac_cv_prog_cc_c89+set}" = set; then
3366 $as_echo_n "(cached) " >&6
3368 ac_cv_prog_cc_c89=no
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3394 s = g (p, va_arg (v,int));
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3400 function prototypes and stuff, but not '\xHH' hex character constants.
3401 These don't provoke an error unfortunately, instead are silently treated
3402 as 'x'. The following induces an error, until -std is added to get
3403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3404 array size at least. It's necessary to write '\x00'==0 to get something
3405 that's true only with -std. */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409 inside strings and character constants. */
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430 CC="$ac_save_CC $ac_arg"
3431 rm -f conftest.$ac_objext
3432 if { (ac_try="$ac_compile"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3438 $as_echo "$ac_try_echo") >&5
3439 (eval "$ac_compile") 2>conftest.er1
3441 grep -v '^ *+' conftest.er1 >conftest.err
3443 cat conftest.err >&5
3444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } && {
3446 test -z "$ac_c_werror_flag" ||
3447 test ! -s conftest.err
3448 } && test -s conftest.$ac_objext; then
3449 ac_cv_prog_cc_c89=$ac_arg
3451 $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3457 rm -f core conftest.err conftest.$ac_objext
3458 test "x$ac_cv_prog_cc_c89" != "xno" && break
3460 rm -f conftest.$ac_ext
3465 case "x$ac_cv_prog_cc_c89" in
3467 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3468 $as_echo "none needed" >&6; } ;;
3470 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3471 $as_echo "unsupported" >&6; } ;;
3473 CC="$CC $ac_cv_prog_cc_c89"
3474 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3475 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3484 DEPDIR="${am__leading_dot}deps"
3486 ac_config_commands="$ac_config_commands depfiles"
3489 am_make=${MAKE-make}
3490 cat > confinc << 'END'
3495 # If we don't find an include directive, just comment out the code.
3496 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3497 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3501 # First try GNU make style include.
3502 echo "include confinc" > confmf
3503 # We grep out `Entering directory' and `Leaving directory'
3504 # messages which can occur if `w' ends up in MAKEFLAGS.
3505 # In particular we don't look at `^make:' because GNU make might
3506 # be invoked under some other name (usually "gmake"), in which
3507 # case it prints its new name instead of `make'.
3508 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3513 # Now try BSD make style include.
3514 if test "$am__include" = "#"; then
3515 echo '.include "confinc"' > confmf
3516 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3517 am__include=.include
3524 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3525 $as_echo "$_am_result" >&6; }
3526 rm -f confinc confmf
3528 # Check whether --enable-dependency-tracking was given.
3529 if test "${enable_dependency_tracking+set}" = set; then
3530 enableval=$enable_dependency_tracking;
3533 if test "x$enable_dependency_tracking" != xno; then
3534 am_depcomp="$ac_aux_dir/depcomp"
3537 if test "x$enable_dependency_tracking" != xno; then
3547 depcc="$CC" am_compiler_list=
3549 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3550 $as_echo_n "checking dependency style of $depcc... " >&6; }
3551 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3552 $as_echo_n "(cached) " >&6
3554 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3555 # We make a subdir and do the tests there. Otherwise we can end up
3556 # making bogus files that we don't know about and never remove. For
3557 # instance it was reported that on HP-UX the gcc test will end up
3558 # making a dummy file named `D' -- because `-MD' means `put the output
3561 # Copy depcomp to subdir because otherwise we won't find it if we're
3562 # using a relative directory.
3563 cp "$am_depcomp" conftest.dir
3565 # We will build objects and dependencies in a subdirectory because
3566 # it helps to detect inapplicable dependency modes. For instance
3567 # both Tru64's cc and ICC support -MD to output dependencies as a
3568 # side effect of compilation, but ICC will put the dependencies in
3569 # the current directory while Tru64 will put them in the object
3573 am_cv_CC_dependencies_compiler_type=none
3574 if test "$am_compiler_list" = ""; then
3575 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3577 for depmode in $am_compiler_list; do
3578 # Setup a source with many dependencies, because some compilers
3579 # like to wrap large dependency lists on column 80 (with \), and
3580 # we should not choose a depcomp mode which is confused by this.
3582 # We need to recreate these files for each test, as the compiler may
3583 # overwrite some of them when testing with obscure command lines.
3584 # This happens at least with the AIX C compiler.
3586 for i in 1 2 3 4 5 6; do
3587 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3588 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3589 # Solaris 8's {/usr,}/bin/sh.
3590 touch sub/conftst$i.h
3592 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3596 # after this tag, mechanisms are not by side-effect, so they'll
3597 # only be used when explicitly requested
3598 if test "x$enable_dependency_tracking" = xyes; then
3606 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3607 # mode. It turns out that the SunPro C++ compiler does not properly
3608 # handle `-M -o', and we need to detect this.
3609 if depmode=$depmode \
3610 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3611 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3612 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3613 >/dev/null 2>conftest.err &&
3614 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3615 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3616 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3617 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3618 # icc doesn't choke on unknown options, it will just issue warnings
3619 # or remarks (even with -Werror). So we grep stderr for any message
3620 # that says an option was ignored or not supported.
3621 # When given -MP, icc 7.0 and 7.1 complain thusly:
3622 # icc: Command line warning: ignoring option '-M'; no argument required
3623 # The diagnosis changed in icc 8.0:
3624 # icc: Command line remark: option '-MP' not supported
3625 if (grep 'ignoring option' conftest.err ||
3626 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3627 am_cv_CC_dependencies_compiler_type=$depmode
3636 am_cv_CC_dependencies_compiler_type=none
3640 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3641 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3642 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3645 test "x$enable_dependency_tracking" != xno \
3646 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3648 am__fastdepCC_FALSE='#'
3650 am__fastdepCC_TRUE='#'
3651 am__fastdepCC_FALSE=
3656 ac_cpp='$CPP $CPPFLAGS'
3657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3661 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3662 # On Suns, sometimes $CPP names a directory.
3663 if test -n "$CPP" && test -d "$CPP"; then
3666 if test -z "$CPP"; then
3667 if test "${ac_cv_prog_CPP+set}" = set; then
3668 $as_echo_n "(cached) " >&6
3670 # Double quotes because CPP needs to be expanded
3671 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3674 for ac_c_preproc_warn_flag in '' yes
3676 # Use a header file that comes with gcc, so configuring glibc
3677 # with a fresh cross-compiler works.
3678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3679 # <limits.h> exists even on freestanding compilers.
3680 # On the NeXT, cc -E runs the code through the compiler's parser,
3681 # not just through cpp. "Syntax error" is here to catch this case.
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3689 # include <limits.h>
3691 # include <assert.h>
3695 if { (ac_try="$ac_cpp conftest.$ac_ext"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3701 $as_echo "$ac_try_echo") >&5
3702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3704 grep -v '^ *+' conftest.er1 >conftest.err
3706 cat conftest.err >&5
3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null && {
3709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3714 $as_echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3717 # Broken: fails on valid input.
3721 rm -f conftest.err conftest.$ac_ext
3723 # OK, works on sane cases. Now check whether nonexistent headers
3724 # can be detected and how.
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3731 #include <ac_nonexistent.h>
3733 if { (ac_try="$ac_cpp conftest.$ac_ext"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3739 $as_echo "$ac_try_echo") >&5
3740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3742 grep -v '^ *+' conftest.er1 >conftest.err
3744 cat conftest.err >&5
3745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } >/dev/null && {
3747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3750 # Broken: success on invalid input.
3753 $as_echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3756 # Passes both tests.
3761 rm -f conftest.err conftest.$ac_ext
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3778 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3779 $as_echo "$CPP" >&6; }
3781 for ac_c_preproc_warn_flag in '' yes
3783 # Use a header file that comes with gcc, so configuring glibc
3784 # with a fresh cross-compiler works.
3785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786 # <limits.h> exists even on freestanding compilers.
3787 # On the NeXT, cc -E runs the code through the compiler's parser,
3788 # not just through cpp. "Syntax error" is here to catch this case.
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3796 # include <limits.h>
3798 # include <assert.h>
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 # Broken: fails on valid input.
3828 rm -f conftest.err conftest.$ac_ext
3830 # OK, works on sane cases. Now check whether nonexistent headers
3831 # can be detected and how.
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3838 #include <ac_nonexistent.h>
3840 if { (ac_try="$ac_cpp conftest.$ac_ext"
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3846 $as_echo "$ac_try_echo") >&5
3847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849 grep -v '^ *+' conftest.er1 >conftest.err
3851 cat conftest.err >&5
3852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } >/dev/null && {
3854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3855 test ! -s conftest.err
3857 # Broken: success on invalid input.
3860 $as_echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3863 # Passes both tests.
3868 rm -f conftest.err conftest.$ac_ext
3871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3872 rm -f conftest.err conftest.$ac_ext
3873 if $ac_preproc_ok; then
3876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&5
3880 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3881 See \`config.log' for more details." >&2;}
3882 { (exit 1); exit 1; }; }; }
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 # Find a good install program. We prefer a C program (faster),
3892 # so one script is as good as another. But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # OS/2's system install, which has a completely different semantic
3903 # ./install, which can be erroneously created by make from ./install.sh.
3904 # Reject install programs that cannot install multiple files.
3905 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3906 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3907 if test -z "$INSTALL"; then
3908 if test "${ac_cv_path_install+set}" = set; then
3909 $as_echo_n "(cached) " >&6
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 # Account for people who put trailing slashes in PATH elements.
3918 ./ | .// | /cC/* | \
3919 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3920 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3923 # OSF1 and SCO ODT 3.0 have their own names for install.
3924 # Don't use installbsd from OSF since it installs stuff as root
3926 for ac_prog in ginstall scoinst install; do
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3929 if test $ac_prog = install &&
3930 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931 # AIX install. It has an incompatible calling convention.
3933 elif test $ac_prog = install &&
3934 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3935 # program-specific install script used by HP pwplus--don't use.
3938 rm -rf conftest.one conftest.two conftest.dir
3939 echo one > conftest.one
3940 echo two > conftest.two
3942 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3943 test -s conftest.one && test -s conftest.two &&
3944 test -s conftest.dir/conftest.one &&
3945 test -s conftest.dir/conftest.two
3947 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3960 rm -rf conftest.one conftest.two conftest.dir
3963 if test "${ac_cv_path_install+set}" = set; then
3964 INSTALL=$ac_cv_path_install
3966 # As a last resort, use the slow shell script. Don't cache a
3967 # value for INSTALL within a source directory, because that will
3968 # break other packages using the cache if that directory is
3969 # removed, or if the value is a relative name.
3970 INSTALL=$ac_install_sh
3973 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3974 $as_echo "$INSTALL" >&6; }
3976 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3977 # It thinks the first close brace ends the variable substitution.
3978 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3980 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3982 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3984 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3985 $as_echo_n "checking whether ln -s works... " >&6; }
3987 if test "$LN_S" = "ln -s"; then
3988 { $as_echo "$as_me:$LINENO: result: yes" >&5
3989 $as_echo "yes" >&6; }
3991 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3992 $as_echo "no, using $LN_S" >&6; }
3995 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3996 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3998 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3999 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4000 $as_echo_n "(cached) " >&6
4002 cat >conftest.make <<\_ACEOF
4005 @echo '@@@%%%=$(MAKE)=@@@%%%'
4007 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4008 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4010 eval ac_cv_prog_make_${ac_make}_set=yes;;
4012 eval ac_cv_prog_make_${ac_make}_set=no;;
4016 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4017 { $as_echo "$as_me:$LINENO: result: yes" >&5
4018 $as_echo "yes" >&6; }
4021 { $as_echo "$as_me:$LINENO: result: no" >&5
4022 $as_echo "no" >&6; }
4023 SET_MAKE="MAKE=${MAKE-make}"
4028 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4029 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4034 macro_version='2.2.6'
4035 macro_revision='1.3012'
4049 ltmain="$ac_aux_dir/ltmain.sh"
4051 # Make sure we can run config.sub.
4052 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4053 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4054 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4055 { (exit 1); exit 1; }; }
4057 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4058 $as_echo_n "checking build system type... " >&6; }
4059 if test "${ac_cv_build+set}" = set; then
4060 $as_echo_n "(cached) " >&6
4062 ac_build_alias=$build_alias
4063 test "x$ac_build_alias" = x &&
4064 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4065 test "x$ac_build_alias" = x &&
4066 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4067 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4068 { (exit 1); exit 1; }; }
4069 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4070 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4071 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4072 { (exit 1); exit 1; }; }
4075 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4076 $as_echo "$ac_cv_build" >&6; }
4077 case $ac_cv_build in
4079 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4080 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4081 { (exit 1); exit 1; }; };;
4084 ac_save_IFS=$IFS; IFS='-'
4090 # Remember, the first character of IFS is used to create $*,
4091 # except with old shells:
4094 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4097 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4098 $as_echo_n "checking host system type... " >&6; }
4099 if test "${ac_cv_host+set}" = set; then
4100 $as_echo_n "(cached) " >&6
4102 if test "x$host_alias" = x; then
4103 ac_cv_host=$ac_cv_build
4105 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4106 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4107 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4108 { (exit 1); exit 1; }; }
4112 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4113 $as_echo "$ac_cv_host" >&6; }
4116 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4117 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4118 { (exit 1); exit 1; }; };;
4121 ac_save_IFS=$IFS; IFS='-'
4127 # Remember, the first character of IFS is used to create $*,
4128 # except with old shells:
4131 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4134 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4135 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4136 if test "${ac_cv_path_SED+set}" = set; then
4137 $as_echo_n "(cached) " >&6
4139 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4140 for ac_i in 1 2 3 4 5 6 7; do
4141 ac_script="$ac_script$as_nl$ac_script"
4143 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4144 $as_unset ac_script || ac_script=
4145 if test -z "$SED"; then
4146 ac_path_SED_found=false
4147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_prog in sed gsed; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4156 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4157 # Check for GNU ac_path_SED and select it if it is found.
4158 # Check for GNU $ac_path_SED
4159 case `"$ac_path_SED" --version 2>&1` in
4161 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4164 $as_echo_n 0123456789 >"conftest.in"
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
4170 $as_echo '' >> "conftest.nl"
4171 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173 ac_count=`expr $ac_count + 1`
4174 if test $ac_count -gt ${ac_path_SED_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_SED="$ac_path_SED"
4177 ac_path_SED_max=$ac_count
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 $ac_path_SED_found && break 3
4190 if test -z "$ac_cv_path_SED"; then
4191 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4192 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4193 { (exit 1); exit 1; }; }
4200 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4201 $as_echo "$ac_cv_path_SED" >&6; }
4202 SED="$ac_cv_path_SED"
4205 test -z "$SED" && SED=sed
4206 Xsed="$SED -e 1s/^X//"
4218 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4219 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4220 if test "${ac_cv_path_GREP+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4223 if test -z "$GREP"; then
4224 ac_path_GREP_found=false
4225 # Loop through the user's path and test for each of PROGNAME-LIST
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4230 test -z "$as_dir" && as_dir=.
4231 for ac_prog in grep ggrep; do
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4234 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4235 # Check for GNU ac_path_GREP and select it if it is found.
4236 # Check for GNU $ac_path_GREP
4237 case `"$ac_path_GREP" --version 2>&1` in
4239 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4242 $as_echo_n 0123456789 >"conftest.in"
4245 cat "conftest.in" "conftest.in" >"conftest.tmp"
4246 mv "conftest.tmp" "conftest.in"
4247 cp "conftest.in" "conftest.nl"
4248 $as_echo 'GREP' >> "conftest.nl"
4249 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4251 ac_count=`expr $ac_count + 1`
4252 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4253 # Best one so far, save it but keep looking for a better one
4254 ac_cv_path_GREP="$ac_path_GREP"
4255 ac_path_GREP_max=$ac_count
4257 # 10*(2^10) chars as input seems more than enough
4258 test $ac_count -gt 10 && break
4260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4263 $ac_path_GREP_found && break 3
4268 if test -z "$ac_cv_path_GREP"; then
4269 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4270 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4271 { (exit 1); exit 1; }; }
4274 ac_cv_path_GREP=$GREP
4278 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4279 $as_echo "$ac_cv_path_GREP" >&6; }
4280 GREP="$ac_cv_path_GREP"
4283 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4284 $as_echo_n "checking for egrep... " >&6; }
4285 if test "${ac_cv_path_EGREP+set}" = set; then
4286 $as_echo_n "(cached) " >&6
4288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4289 then ac_cv_path_EGREP="$GREP -E"
4291 if test -z "$EGREP"; then
4292 ac_path_EGREP_found=false
4293 # Loop through the user's path and test for each of PROGNAME-LIST
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4298 test -z "$as_dir" && as_dir=.
4299 for ac_prog in egrep; do
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4303 # Check for GNU ac_path_EGREP and select it if it is found.
4304 # Check for GNU $ac_path_EGREP
4305 case `"$ac_path_EGREP" --version 2>&1` in
4307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4310 $as_echo_n 0123456789 >"conftest.in"
4313 cat "conftest.in" "conftest.in" >"conftest.tmp"
4314 mv "conftest.tmp" "conftest.in"
4315 cp "conftest.in" "conftest.nl"
4316 $as_echo 'EGREP' >> "conftest.nl"
4317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4319 ac_count=`expr $ac_count + 1`
4320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4321 # Best one so far, save it but keep looking for a better one
4322 ac_cv_path_EGREP="$ac_path_EGREP"
4323 ac_path_EGREP_max=$ac_count
4325 # 10*(2^10) chars as input seems more than enough
4326 test $ac_count -gt 10 && break
4328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4331 $ac_path_EGREP_found && break 3
4336 if test -z "$ac_cv_path_EGREP"; then
4337 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4338 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4339 { (exit 1); exit 1; }; }
4342 ac_cv_path_EGREP=$EGREP
4347 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4348 $as_echo "$ac_cv_path_EGREP" >&6; }
4349 EGREP="$ac_cv_path_EGREP"
4352 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4353 $as_echo_n "checking for fgrep... " >&6; }
4354 if test "${ac_cv_path_FGREP+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4357 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4358 then ac_cv_path_FGREP="$GREP -F"
4360 if test -z "$FGREP"; then
4361 ac_path_FGREP_found=false
4362 # Loop through the user's path and test for each of PROGNAME-LIST
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4367 test -z "$as_dir" && as_dir=.
4368 for ac_prog in fgrep; do
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4371 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4372 # Check for GNU ac_path_FGREP and select it if it is found.
4373 # Check for GNU $ac_path_FGREP
4374 case `"$ac_path_FGREP" --version 2>&1` in
4376 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4379 $as_echo_n 0123456789 >"conftest.in"
4382 cat "conftest.in" "conftest.in" >"conftest.tmp"
4383 mv "conftest.tmp" "conftest.in"
4384 cp "conftest.in" "conftest.nl"
4385 $as_echo 'FGREP' >> "conftest.nl"
4386 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4388 ac_count=`expr $ac_count + 1`
4389 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4390 # Best one so far, save it but keep looking for a better one
4391 ac_cv_path_FGREP="$ac_path_FGREP"
4392 ac_path_FGREP_max=$ac_count
4394 # 10*(2^10) chars as input seems more than enough
4395 test $ac_count -gt 10 && break
4397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 $ac_path_FGREP_found && break 3
4405 if test -z "$ac_cv_path_FGREP"; then
4406 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4407 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4408 { (exit 1); exit 1; }; }
4411 ac_cv_path_FGREP=$FGREP
4416 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4417 $as_echo "$ac_cv_path_FGREP" >&6; }
4418 FGREP="$ac_cv_path_FGREP"
4421 test -z "$GREP" && GREP=grep
4441 # Check whether --with-gnu-ld was given.
4442 if test "${with_gnu_ld+set}" = set; then
4443 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4449 if test "$GCC" = yes; then
4450 # Check if gcc -print-prog-name=ld gives a path.
4451 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4452 $as_echo_n "checking for ld used by $CC... " >&6; }
4455 # gcc leaves a trailing carriage return which upsets mingw
4456 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4458 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4461 # Accept absolute paths.
4463 re_direlt='/[^/][^/]*/\.\./'
4464 # Canonicalize the pathname of ld
4465 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4466 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4467 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4469 test -z "$LD" && LD="$ac_prog"
4472 # If it fails, then pretend we aren't using GCC.
4476 # If it is relative, then search for the first ld in PATH.
4480 elif test "$with_gnu_ld" = yes; then
4481 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4482 $as_echo_n "checking for GNU ld... " >&6; }
4484 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4485 $as_echo_n "checking for non-GNU ld... " >&6; }
4487 if test "${lt_cv_path_LD+set}" = set; then
4488 $as_echo_n "(cached) " >&6
4490 if test -z "$LD"; then
4491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4492 for ac_dir in $PATH; do
4494 test -z "$ac_dir" && ac_dir=.
4495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4496 lt_cv_path_LD="$ac_dir/$ac_prog"
4497 # Check to see if the program is GNU ld. I'd rather use --version,
4498 # but apparently some variants of GNU ld only accept -v.
4499 # Break only if it was the GNU/non-GNU ld that we prefer.
4500 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4501 *GNU* | *'with BFD'*)
4502 test "$with_gnu_ld" != no && break
4505 test "$with_gnu_ld" != yes && break
4512 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4517 if test -n "$LD"; then
4518 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4519 $as_echo "$LD" >&6; }
4521 { $as_echo "$as_me:$LINENO: result: no" >&5
4522 $as_echo "no" >&6; }
4524 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4525 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4526 { (exit 1); exit 1; }; }
4527 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4528 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4529 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4530 $as_echo_n "(cached) " >&6
4532 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4533 case `$LD -v 2>&1 </dev/null` in
4534 *GNU* | *'with BFD'*)
4535 lt_cv_prog_gnu_ld=yes
4538 lt_cv_prog_gnu_ld=no
4542 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4543 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4544 with_gnu_ld=$lt_cv_prog_gnu_ld
4554 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4555 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4556 if test "${lt_cv_path_NM+set}" = set; then
4557 $as_echo_n "(cached) " >&6
4559 if test -n "$NM"; then
4560 # Let the user override the test.
4563 lt_nm_to_check="${ac_tool_prefix}nm"
4564 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4565 lt_nm_to_check="$lt_nm_to_check nm"
4567 for lt_tmp_nm in $lt_nm_to_check; do
4568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4569 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4571 test -z "$ac_dir" && ac_dir=.
4572 tmp_nm="$ac_dir/$lt_tmp_nm"
4573 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4574 # Check to see if the nm accepts a BSD-compat flag.
4575 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4576 # nm: unknown option "B" ignored
4577 # Tru64's nm complains that /dev/null is an invalid object file
4578 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4579 */dev/null* | *'Invalid file or object type'*)
4580 lt_cv_path_NM="$tmp_nm -B"
4584 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4586 lt_cv_path_NM="$tmp_nm -p"
4590 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4591 continue # so that we can try to find one that supports BSD flags
4600 : ${lt_cv_path_NM=no}
4603 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4604 $as_echo "$lt_cv_path_NM" >&6; }
4605 if test "$lt_cv_path_NM" != "no"; then
4608 # Didn't find any BSD compatible name lister, look for dumpbin.
4609 if test -n "$ac_tool_prefix"; then
4610 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4617 $as_echo_n "(cached) " >&6
4619 if test -n "$DUMPBIN"; then
4620 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 DUMPBIN=$ac_cv_prog_DUMPBIN
4640 if test -n "$DUMPBIN"; then
4641 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4642 $as_echo "$DUMPBIN" >&6; }
4644 { $as_echo "$as_me:$LINENO: result: no" >&5
4645 $as_echo "no" >&6; }
4649 test -n "$DUMPBIN" && break
4652 if test -z "$DUMPBIN"; then
4653 ac_ct_DUMPBIN=$DUMPBIN
4654 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4656 # Extract the first word of "$ac_prog", so it can be a program name with args.
4657 set dummy $ac_prog; ac_word=$2
4658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4663 if test -n "$ac_ct_DUMPBIN"; then
4664 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4684 if test -n "$ac_ct_DUMPBIN"; then
4685 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4686 $as_echo "$ac_ct_DUMPBIN" >&6; }
4688 { $as_echo "$as_me:$LINENO: result: no" >&5
4689 $as_echo "no" >&6; }
4693 test -n "$ac_ct_DUMPBIN" && break
4696 if test "x$ac_ct_DUMPBIN" = x; then
4699 case $cross_compiling:$ac_tool_warned in
4701 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703 ac_tool_warned=yes ;;
4705 DUMPBIN=$ac_ct_DUMPBIN
4710 if test "$DUMPBIN" != ":"; then
4714 test -z "$NM" && NM=nm
4721 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4722 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4723 if test "${lt_cv_nm_interface+set}" = set; then
4724 $as_echo_n "(cached) " >&6
4726 lt_cv_nm_interface="BSD nm"
4727 echo "int some_variable = 0;" > conftest.$ac_ext
4728 (eval echo "\"\$as_me:4728: $ac_compile\"" >&5)
4729 (eval "$ac_compile" 2>conftest.err)
4730 cat conftest.err >&5
4731 (eval echo "\"\$as_me:4731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4733 cat conftest.err >&5
4734 (eval echo "\"\$as_me:4734: output\"" >&5)
4735 cat conftest.out >&5
4736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4737 lt_cv_nm_interface="MS dumpbin"
4741 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4742 $as_echo "$lt_cv_nm_interface" >&6; }
4744 # find the maximum length of command line arguments
4745 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4746 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4747 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4748 $as_echo_n "(cached) " >&6
4755 # On DJGPP, this test can blow up pretty badly due to problems in libc
4756 # (any single argument exceeding 2000 bytes causes a buffer overrun
4757 # during glob expansion). Even if it were fixed, the result of this
4758 # check would be larger than it should be.
4759 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4763 # Under GNU Hurd, this test is not required because there is
4764 # no limit to the length of command line arguments.
4765 # Libtool will interpret -1 as no limit whatsoever
4766 lt_cv_sys_max_cmd_len=-1;
4769 cygwin* | mingw* | cegcc*)
4770 # On Win9x/ME, this test blows up -- it succeeds, but takes
4771 # about 5 minutes as the teststring grows exponentially.
4772 # Worse, since 9x/ME are not pre-emptively multitasking,
4773 # you end up with a "frozen" computer, even though with patience
4774 # the test eventually succeeds (with a max line length of 256k).
4775 # Instead, let's just punt: use the minimum linelength reported by
4776 # all of the supported platforms: 8192 (on NT/2K/XP).
4777 lt_cv_sys_max_cmd_len=8192;
4781 # On AmigaOS with pdksh, this test takes hours, literally.
4782 # So we just punt and use a minimum line length of 8192.
4783 lt_cv_sys_max_cmd_len=8192;
4786 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4787 # This has been around since 386BSD, at least. Likely further.
4788 if test -x /sbin/sysctl; then
4789 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4790 elif test -x /usr/sbin/sysctl; then
4791 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4793 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4795 # And add a safety zone
4796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4801 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4802 lt_cv_sys_max_cmd_len=196608
4806 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4807 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4808 # nice to cause kernel panics so lets avoid the loop below.
4809 # First set a reasonable default.
4810 lt_cv_sys_max_cmd_len=16384
4812 if test -x /sbin/sysconfig; then
4813 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4814 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4819 lt_cv_sys_max_cmd_len=102400
4821 sysv5* | sco5v6* | sysv4.2uw2*)
4822 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4823 if test -n "$kargmax"; then
4824 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4826 lt_cv_sys_max_cmd_len=32768
4830 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4831 if test -n "$lt_cv_sys_max_cmd_len"; then
4832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4835 # Make teststring a little bigger before we do anything with it.
4836 # a 1K string should be a reasonable start.
4837 for i in 1 2 3 4 5 6 7 8 ; do
4838 teststring=$teststring$teststring
4840 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4841 # If test is not a shell built-in, we'll probably end up computing a
4842 # maximum length that is only half of the actual maximum length, but
4844 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4845 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4846 test $i != 17 # 1/2 MB should be enough
4849 teststring=$teststring$teststring
4851 # Only check the string length outside the loop.
4852 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4854 # Add a significant safety factor because C++ compilers can tack on
4855 # massive amounts of additional arguments before passing them to the
4856 # linker. It appears as though 1/2 is a usable value.
4857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4864 if test -n $lt_cv_sys_max_cmd_len ; then
4865 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4866 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4868 { $as_echo "$as_me:$LINENO: result: none" >&5
4869 $as_echo "none" >&6; }
4871 max_cmd_len=$lt_cv_sys_max_cmd_len
4882 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4883 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4884 # Try some XSI features
4887 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4889 && eval 'test $(( 1 + 1 )) -eq 2 \
4890 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4892 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4893 $as_echo "$xsi_shell" >&6; }
4896 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4897 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4899 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4901 && lt_shell_append=yes
4902 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4903 $as_echo "$lt_shell_append" >&6; }
4906 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4916 # test EBCDIC or ASCII
4917 case `echo X|tr X '\101'` in
4918 A) # ASCII based system
4919 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4920 lt_SP2NL='tr \040 \012'
4921 lt_NL2SP='tr \015\012 \040\040'
4923 *) # EBCDIC based system
4924 lt_SP2NL='tr \100 \n'
4925 lt_NL2SP='tr \r\n \100\100'
4937 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4938 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4939 if test "${lt_cv_ld_reload_flag+set}" = set; then
4940 $as_echo_n "(cached) " >&6
4942 lt_cv_ld_reload_flag='-r'
4944 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4946 reload_flag=$lt_cv_ld_reload_flag
4947 case $reload_flag in
4949 *) reload_flag=" $reload_flag" ;;
4951 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4954 if test "$GCC" = yes; then
4955 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4957 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$OBJDUMP"; then
4979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 OBJDUMP=$ac_cv_prog_OBJDUMP
4999 if test -n "$OBJDUMP"; then
5000 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5001 $as_echo "$OBJDUMP" >&6; }
5003 { $as_echo "$as_me:$LINENO: result: no" >&5
5004 $as_echo "no" >&6; }
5009 if test -z "$ac_cv_prog_OBJDUMP"; then
5010 ac_ct_OBJDUMP=$OBJDUMP
5011 # Extract the first word of "objdump", so it can be a program name with args.
5012 set dummy objdump; ac_word=$2
5013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5016 $as_echo_n "(cached) " >&6
5018 if test -n "$ac_ct_OBJDUMP"; then
5019 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5039 if test -n "$ac_ct_OBJDUMP"; then
5040 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5041 $as_echo "$ac_ct_OBJDUMP" >&6; }
5043 { $as_echo "$as_me:$LINENO: result: no" >&5
5044 $as_echo "no" >&6; }
5047 if test "x$ac_ct_OBJDUMP" = x; then
5050 case $cross_compiling:$ac_tool_warned in
5052 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054 ac_tool_warned=yes ;;
5056 OBJDUMP=$ac_ct_OBJDUMP
5059 OBJDUMP="$ac_cv_prog_OBJDUMP"
5062 test -z "$OBJDUMP" && OBJDUMP=objdump
5072 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5073 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5074 if test "${lt_cv_deplibs_check_method+set}" = set; then
5075 $as_echo_n "(cached) " >&6
5077 lt_cv_file_magic_cmd='$MAGIC_CMD'
5078 lt_cv_file_magic_test_file=
5079 lt_cv_deplibs_check_method='unknown'
5080 # Need to set the preceding variable on all platforms that support
5081 # interlibrary dependencies.
5082 # 'none' -- dependencies not supported.
5083 # `unknown' -- same as none, but documents that we really don't know.
5084 # 'pass_all' -- all dependencies passed with no checks.
5085 # 'test_compile' -- check by making test program.
5086 # 'file_magic [[regex]]' -- check by looking for files in library path
5087 # which responds to the $file_magic_cmd with a given extended regex.
5088 # If you have `file' or equivalent on your system and you're not sure
5089 # whether `pass_all' will *always* work, you probably want this one.
5093 lt_cv_deplibs_check_method=pass_all
5097 lt_cv_deplibs_check_method=pass_all
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5102 lt_cv_file_magic_cmd='/usr/bin/file -L'
5103 lt_cv_file_magic_test_file=/shlib/libc.so
5107 # func_win32_libid is a shell function defined in ltmain.sh
5108 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5109 lt_cv_file_magic_cmd='func_win32_libid'
5113 # Base MSYS/MinGW do not provide the 'file' command needed by
5114 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5115 # unless we find 'file', for example because we are cross-compiling.
5116 if ( file / ) >/dev/null 2>&1; then
5117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5118 lt_cv_file_magic_cmd='func_win32_libid'
5120 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5121 lt_cv_file_magic_cmd='$OBJDUMP -f'
5126 # use the weaker test based on 'objdump'. See mingw*.
5127 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5128 lt_cv_file_magic_cmd='$OBJDUMP -f'
5131 darwin* | rhapsody*)
5132 lt_cv_deplibs_check_method=pass_all
5135 freebsd* | dragonfly*)
5136 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5139 # Not sure whether the presence of OpenBSD here was a mistake.
5140 # Let's accept both of them until this is cleared up.
5141 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5142 lt_cv_file_magic_cmd=/usr/bin/file
5143 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5147 lt_cv_deplibs_check_method=pass_all
5152 lt_cv_deplibs_check_method=pass_all
5155 hpux10.20* | hpux11*)
5156 lt_cv_file_magic_cmd=/usr/bin/file
5159 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5160 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5163 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]'
5164 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5167 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5168 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5174 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5178 irix5* | irix6* | nonstopux*)
5180 *-32|*"-32 ") libmagic=32-bit;;
5181 *-n32|*"-n32 ") libmagic=N32;;
5182 *-64|*"-64 ") libmagic=64-bit;;
5183 *) libmagic=never-match;;
5185 lt_cv_deplibs_check_method=pass_all
5188 # This must be Linux ELF.
5189 linux* | k*bsd*-gnu)
5190 lt_cv_deplibs_check_method=pass_all
5193 netbsd* | netbsdelf*-gnu)
5194 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5203 lt_cv_file_magic_cmd=/usr/bin/file
5204 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5208 lt_cv_deplibs_check_method=pass_all
5212 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5219 osf3* | osf4* | osf5*)
5220 lt_cv_deplibs_check_method=pass_all
5224 lt_cv_deplibs_check_method=pass_all
5228 lt_cv_deplibs_check_method=pass_all
5231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5232 lt_cv_deplibs_check_method=pass_all
5236 case $host_vendor in
5238 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]'
5239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5242 lt_cv_deplibs_check_method=pass_all
5245 lt_cv_file_magic_cmd='/bin/file'
5246 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5249 lt_cv_file_magic_cmd='/bin/file'
5250 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5251 lt_cv_file_magic_test_file=/lib/libc.so
5254 lt_cv_deplibs_check_method=pass_all
5257 lt_cv_deplibs_check_method=pass_all
5263 lt_cv_deplibs_check_method=pass_all
5268 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5269 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5270 file_magic_cmd=$lt_cv_file_magic_cmd
5271 deplibs_check_method=$lt_cv_deplibs_check_method
5272 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5285 if test -n "$ac_tool_prefix"; then
5286 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5287 set dummy ${ac_tool_prefix}ar; ac_word=$2
5288 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if test "${ac_cv_prog_AR+set}" = set; then
5291 $as_echo_n "(cached) " >&6
5293 if test -n "$AR"; then
5294 ac_cv_prog_AR="$AR" # Let the user override the test.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_AR="${ac_tool_prefix}ar"
5304 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 if test -n "$AR"; then
5315 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5316 $as_echo "$AR" >&6; }
5318 { $as_echo "$as_me:$LINENO: result: no" >&5
5319 $as_echo "no" >&6; }
5324 if test -z "$ac_cv_prog_AR"; then
5326 # Extract the first word of "ar", so it can be a program name with args.
5327 set dummy ar; ac_word=$2
5328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5331 $as_echo_n "(cached) " >&6
5333 if test -n "$ac_ct_AR"; then
5334 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_prog_ac_ct_AR="ar"
5344 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5354 if test -n "$ac_ct_AR"; then
5355 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5356 $as_echo "$ac_ct_AR" >&6; }
5358 { $as_echo "$as_me:$LINENO: result: no" >&5
5359 $as_echo "no" >&6; }
5362 if test "x$ac_ct_AR" = x; then
5365 case $cross_compiling:$ac_tool_warned in
5367 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5368 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5369 ac_tool_warned=yes ;;
5377 test -z "$AR" && AR=ar
5378 test -z "$AR_FLAGS" && AR_FLAGS=cru
5390 if test -n "$ac_tool_prefix"; then
5391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5392 set dummy ${ac_tool_prefix}strip; ac_word=$2
5393 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if test "${ac_cv_prog_STRIP+set}" = set; then
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$STRIP"; then
5399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 STRIP=$ac_cv_prog_STRIP
5419 if test -n "$STRIP"; then
5420 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5421 $as_echo "$STRIP" >&6; }
5423 { $as_echo "$as_me:$LINENO: result: no" >&5
5424 $as_echo "no" >&6; }
5429 if test -z "$ac_cv_prog_STRIP"; then
5431 # Extract the first word of "strip", so it can be a program name with args.
5432 set dummy strip; ac_word=$2
5433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5436 $as_echo_n "(cached) " >&6
5438 if test -n "$ac_ct_STRIP"; then
5439 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5448 ac_cv_prog_ac_ct_STRIP="strip"
5449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5459 if test -n "$ac_ct_STRIP"; then
5460 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5461 $as_echo "$ac_ct_STRIP" >&6; }
5463 { $as_echo "$as_me:$LINENO: result: no" >&5
5464 $as_echo "no" >&6; }
5467 if test "x$ac_ct_STRIP" = x; then
5470 case $cross_compiling:$ac_tool_warned in
5472 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474 ac_tool_warned=yes ;;
5479 STRIP="$ac_cv_prog_STRIP"
5482 test -z "$STRIP" && STRIP=:
5489 if test -n "$ac_tool_prefix"; then
5490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5492 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if test "${ac_cv_prog_RANLIB+set}" = set; then
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$RANLIB"; then
5498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 RANLIB=$ac_cv_prog_RANLIB
5518 if test -n "$RANLIB"; then
5519 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5520 $as_echo "$RANLIB" >&6; }
5522 { $as_echo "$as_me:$LINENO: result: no" >&5
5523 $as_echo "no" >&6; }
5528 if test -z "$ac_cv_prog_RANLIB"; then
5529 ac_ct_RANLIB=$RANLIB
5530 # Extract the first word of "ranlib", so it can be a program name with args.
5531 set dummy ranlib; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5537 if test -n "$ac_ct_RANLIB"; then
5538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_ac_ct_RANLIB="ranlib"
5548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5558 if test -n "$ac_ct_RANLIB"; then
5559 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5560 $as_echo "$ac_ct_RANLIB" >&6; }
5562 { $as_echo "$as_me:$LINENO: result: no" >&5
5563 $as_echo "no" >&6; }
5566 if test "x$ac_ct_RANLIB" = x; then
5569 case $cross_compiling:$ac_tool_warned in
5571 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5573 ac_tool_warned=yes ;;
5575 RANLIB=$ac_ct_RANLIB
5578 RANLIB="$ac_cv_prog_RANLIB"
5581 test -z "$RANLIB" && RANLIB=:
5588 # Determine commands to create old-style static archives.
5589 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5590 old_postinstall_cmds='chmod 644 $oldlib'
5591 old_postuninstall_cmds=
5593 if test -n "$RANLIB"; then
5596 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5599 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5602 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5638 # If no C compiler was specified, use CC.
5641 # If no C compiler flags were specified, use CFLAGS.
5642 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5644 # Allow CC to be a program name with arguments.
5648 # Check for command to grab the raw symbol name followed by C symbol from nm.
5649 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5650 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5651 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5652 $as_echo_n "(cached) " >&6
5655 # These are sane defaults that work on at least a few old systems.
5656 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5658 # Character class describing NM global symbol codes.
5659 symcode='[BCDEGRST]'
5661 # Regexp to match symbols that can be accessed directly from C.
5662 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5664 # Define system-specific variables.
5669 cygwin* | mingw* | pw32* | cegcc*)
5670 symcode='[ABCDGISTW]'
5673 if test "$host_cpu" = ia64; then
5674 symcode='[ABCDEGRST]'
5678 symcode='[BCDEGRST]'
5681 symcode='[BCDEGQRST]'
5692 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5700 # If we're using GNU nm, then use its standard symbol codes.
5701 case `$NM -V 2>&1` in
5702 *GNU* | *'with BFD'*)
5703 symcode='[ABCDGIRSTW]' ;;
5706 # Transform an extracted symbol line into a proper C declaration.
5707 # Some systems (esp. on ia64) link data and code symbols differently,
5708 # so use this general approach.
5709 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5711 # Transform an extracted symbol line into symbol name and symbol address
5712 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5713 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'"
5715 # Handle CRLF in mingw tool chain
5719 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5723 # Try without a prefix underscore, then with it.
5724 for ac_symprfx in "" "_"; do
5726 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5727 symxfrm="\\1 $ac_symprfx\\2 \\2"
5729 # Write the raw and C identifiers.
5730 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5731 # Fake it for dumpbin and say T for any non-static function
5732 # and D for any global variable.
5733 # Also find C++ and __fastcall symbols from MSVC++,
5734 # which start with @ or ?.
5735 lt_cv_sys_global_symbol_pipe="$AWK '"\
5736 " {last_section=section; section=\$ 3};"\
5737 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5738 " \$ 0!~/External *\|/{next};"\
5739 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5740 " {if(hide[section]) next};"\
5741 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5742 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5743 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5744 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5745 " ' prfx=^$ac_symprfx"
5747 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5750 # Check to see that the pipe works correctly.
5754 cat > conftest.$ac_ext <<_LT_EOF
5759 void nm_test_func(void);
5760 void nm_test_func(void){}
5764 int main(){nm_test_var='a';nm_test_func();return(0);}
5767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>&5
5770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; then
5772 # Now try to grab the symbols.
5774 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5775 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); } && test -s "$nlist"; then
5779 # Try sorting and uniquifying the output.
5780 if sort "$nlist" | uniq > "$nlist"T; then
5781 mv -f "$nlist"T "$nlist"
5786 # Make sure that we snagged all the symbols we need.
5787 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5788 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5789 cat <<_LT_EOF > conftest.$ac_ext
5795 # Now generate the symbol file.
5796 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5798 cat <<_LT_EOF >> conftest.$ac_ext
5800 /* The mapping between symbol names and symbols. */
5805 lt__PROGRAM__LTX_preloaded_symbols[] =
5807 { "@PROGRAM@", (void *) 0 },
5809 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5810 cat <<\_LT_EOF >> conftest.$ac_ext
5814 /* This works around a problem in FreeBSD linker */
5815 #ifdef FREEBSD_WORKAROUND
5816 static const void *lt_preloaded_setup() {
5817 return lt__PROGRAM__LTX_preloaded_symbols;
5825 # Now try linking the two files.
5826 mv conftest.$ac_objext conftstm.$ac_objext
5827 lt_save_LIBS="$LIBS"
5828 lt_save_CFLAGS="$CFLAGS"
5829 LIBS="conftstm.$ac_objext"
5830 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832 (eval $ac_link) 2>&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5838 LIBS="$lt_save_LIBS"
5839 CFLAGS="$lt_save_CFLAGS"
5841 echo "cannot find nm_test_func in $nlist" >&5
5844 echo "cannot find nm_test_var in $nlist" >&5
5847 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5850 echo "$progname: failed program was:" >&5
5851 cat conftest.$ac_ext >&5
5853 rm -rf conftest* conftst*
5855 # Do not use the global_symbol_pipe unless it works.
5856 if test "$pipe_works" = yes; then
5859 lt_cv_sys_global_symbol_pipe=
5865 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5866 lt_cv_sys_global_symbol_to_cdecl=
5868 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5869 { $as_echo "$as_me:$LINENO: result: failed" >&5
5870 $as_echo "failed" >&6; }
5872 { $as_echo "$as_me:$LINENO: result: ok" >&5
5873 $as_echo "ok" >&6; }
5898 # Check whether --enable-libtool-lock was given.
5899 if test "${enable_libtool_lock+set}" = set; then
5900 enableval=$enable_libtool_lock;
5903 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5905 # Some flags need to be propagated to the compiler or linker for good
5909 # Find out which ABI we are using.
5910 echo 'int i;' > conftest.$ac_ext
5911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>&5
5914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; then
5916 case `/usr/bin/file conftest.$ac_objext` in
5928 # Find out which ABI we are using.
5929 echo '#line 5929 "configure"' > conftest.$ac_ext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>&5
5933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; then
5935 if test "$lt_cv_prog_gnu_ld" = yes; then
5936 case `/usr/bin/file conftest.$ac_objext` in
5938 LD="${LD-ld} -melf32bsmip"
5941 LD="${LD-ld} -melf32bmipn32"
5944 LD="${LD-ld} -melf64bmip"
5948 case `/usr/bin/file conftest.$ac_objext` in
5964 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5965 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5966 # Find out which ABI we are using.
5967 echo 'int i;' > conftest.$ac_ext
5968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5969 (eval $ac_compile) 2>&5
5971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); }; then
5973 case `/usr/bin/file conftest.o` in
5976 x86_64-*kfreebsd*-gnu)
5977 LD="${LD-ld} -m elf_i386_fbsd"
5980 LD="${LD-ld} -m elf_i386"
5982 ppc64-*linux*|powerpc64-*linux*)
5983 LD="${LD-ld} -m elf32ppclinux"
5986 LD="${LD-ld} -m elf_s390"
5989 LD="${LD-ld} -m elf32_sparc"
5995 x86_64-*kfreebsd*-gnu)
5996 LD="${LD-ld} -m elf_x86_64_fbsd"
5999 LD="${LD-ld} -m elf_x86_64"
6001 ppc*-*linux*|powerpc*-*linux*)
6002 LD="${LD-ld} -m elf64ppc"
6004 s390*-*linux*|s390*-*tpf*)
6005 LD="${LD-ld} -m elf64_s390"
6008 LD="${LD-ld} -m elf64_sparc"
6018 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6019 SAVE_CFLAGS="$CFLAGS"
6020 CFLAGS="$CFLAGS -belf"
6021 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6022 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6023 if test "${lt_cv_cc_needs_belf+set}" = set; then
6024 $as_echo_n "(cached) " >&6
6027 ac_cpp='$CPP $CPPFLAGS'
6028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032 cat >conftest.$ac_ext <<_ACEOF
6035 cat confdefs.h >>conftest.$ac_ext
6036 cat >>conftest.$ac_ext <<_ACEOF
6037 /* end confdefs.h. */
6047 rm -f conftest.$ac_objext conftest$ac_exeext
6048 if { (ac_try="$ac_link"
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6054 $as_echo "$ac_try_echo") >&5
6055 (eval "$ac_link") 2>conftest.er1
6057 grep -v '^ *+' conftest.er1 >conftest.err
6059 cat conftest.err >&5
6060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } && {
6062 test -z "$ac_c_werror_flag" ||
6063 test ! -s conftest.err
6064 } && test -s conftest$ac_exeext && {
6065 test "$cross_compiling" = yes ||
6066 $as_test_x conftest$ac_exeext
6068 lt_cv_cc_needs_belf=yes
6070 $as_echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6073 lt_cv_cc_needs_belf=no
6076 rm -rf conftest.dSYM
6077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6078 conftest$ac_exeext conftest.$ac_ext
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6087 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6088 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6089 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6090 CFLAGS="$SAVE_CFLAGS"
6094 # Find out which ABI we are using.
6095 echo 'int i;' > conftest.$ac_ext
6096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097 (eval $ac_compile) 2>&5
6099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; then
6101 case `/usr/bin/file conftest.o` in
6103 case $lt_cv_prog_gnu_ld in
6104 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6106 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6118 need_locks="$enable_libtool_lock"
6122 rhapsody* | darwin*)
6123 if test -n "$ac_tool_prefix"; then
6124 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6129 $as_echo_n "(cached) " >&6
6131 if test -n "$DSYMUTIL"; then
6132 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 test -z "$as_dir" && as_dir=.
6139 for ac_exec_ext in '' $ac_executable_extensions; do
6140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6151 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6152 if test -n "$DSYMUTIL"; then
6153 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6154 $as_echo "$DSYMUTIL" >&6; }
6156 { $as_echo "$as_me:$LINENO: result: no" >&5
6157 $as_echo "no" >&6; }
6162 if test -z "$ac_cv_prog_DSYMUTIL"; then
6163 ac_ct_DSYMUTIL=$DSYMUTIL
6164 # Extract the first word of "dsymutil", so it can be a program name with args.
6165 set dummy dsymutil; ac_word=$2
6166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6169 $as_echo_n "(cached) " >&6
6171 if test -n "$ac_ct_DSYMUTIL"; then
6172 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6191 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6192 if test -n "$ac_ct_DSYMUTIL"; then
6193 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6194 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6196 { $as_echo "$as_me:$LINENO: result: no" >&5
6197 $as_echo "no" >&6; }
6200 if test "x$ac_ct_DSYMUTIL" = x; then
6203 case $cross_compiling:$ac_tool_warned in
6205 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6209 DSYMUTIL=$ac_ct_DSYMUTIL
6212 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6215 if test -n "$ac_tool_prefix"; then
6216 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6221 $as_echo_n "(cached) " >&6
6223 if test -n "$NMEDIT"; then
6224 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 test -z "$as_dir" && as_dir=.
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6243 NMEDIT=$ac_cv_prog_NMEDIT
6244 if test -n "$NMEDIT"; then
6245 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6246 $as_echo "$NMEDIT" >&6; }
6248 { $as_echo "$as_me:$LINENO: result: no" >&5
6249 $as_echo "no" >&6; }
6254 if test -z "$ac_cv_prog_NMEDIT"; then
6255 ac_ct_NMEDIT=$NMEDIT
6256 # Extract the first word of "nmedit", so it can be a program name with args.
6257 set dummy nmedit; ac_word=$2
6258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6261 $as_echo_n "(cached) " >&6
6263 if test -n "$ac_ct_NMEDIT"; then
6264 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6284 if test -n "$ac_ct_NMEDIT"; then
6285 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6286 $as_echo "$ac_ct_NMEDIT" >&6; }
6288 { $as_echo "$as_me:$LINENO: result: no" >&5
6289 $as_echo "no" >&6; }
6292 if test "x$ac_ct_NMEDIT" = x; then
6295 case $cross_compiling:$ac_tool_warned in
6297 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6301 NMEDIT=$ac_ct_NMEDIT
6304 NMEDIT="$ac_cv_prog_NMEDIT"
6307 if test -n "$ac_tool_prefix"; then
6308 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6309 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6310 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if test "${ac_cv_prog_LIPO+set}" = set; then
6313 $as_echo_n "(cached) " >&6
6315 if test -n "$LIPO"; then
6316 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6326 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 LIPO=$ac_cv_prog_LIPO
6336 if test -n "$LIPO"; then
6337 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6338 $as_echo "$LIPO" >&6; }
6340 { $as_echo "$as_me:$LINENO: result: no" >&5
6341 $as_echo "no" >&6; }
6346 if test -z "$ac_cv_prog_LIPO"; then
6348 # Extract the first word of "lipo", so it can be a program name with args.
6349 set dummy lipo; ac_word=$2
6350 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6353 $as_echo_n "(cached) " >&6
6355 if test -n "$ac_ct_LIPO"; then
6356 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_ac_ct_LIPO="lipo"
6366 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6376 if test -n "$ac_ct_LIPO"; then
6377 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6378 $as_echo "$ac_ct_LIPO" >&6; }
6380 { $as_echo "$as_me:$LINENO: result: no" >&5
6381 $as_echo "no" >&6; }
6384 if test "x$ac_ct_LIPO" = x; then
6387 case $cross_compiling:$ac_tool_warned in
6389 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6391 ac_tool_warned=yes ;;
6396 LIPO="$ac_cv_prog_LIPO"
6399 if test -n "$ac_tool_prefix"; then
6400 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6401 set dummy ${ac_tool_prefix}otool; ac_word=$2
6402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6403 $as_echo_n "checking for $ac_word... " >&6; }
6404 if test "${ac_cv_prog_OTOOL+set}" = set; then
6405 $as_echo_n "(cached) " >&6
6407 if test -n "$OTOOL"; then
6408 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 test -z "$as_dir" && as_dir=.
6415 for ac_exec_ext in '' $ac_executable_extensions; do
6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6417 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6418 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 OTOOL=$ac_cv_prog_OTOOL
6428 if test -n "$OTOOL"; then
6429 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6430 $as_echo "$OTOOL" >&6; }
6432 { $as_echo "$as_me:$LINENO: result: no" >&5
6433 $as_echo "no" >&6; }
6438 if test -z "$ac_cv_prog_OTOOL"; then
6440 # Extract the first word of "otool", so it can be a program name with args.
6441 set dummy otool; ac_word=$2
6442 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6445 $as_echo_n "(cached) " >&6
6447 if test -n "$ac_ct_OTOOL"; then
6448 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 test -z "$as_dir" && as_dir=.
6455 for ac_exec_ext in '' $ac_executable_extensions; do
6456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457 ac_cv_prog_ac_ct_OTOOL="otool"
6458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6468 if test -n "$ac_ct_OTOOL"; then
6469 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6470 $as_echo "$ac_ct_OTOOL" >&6; }
6472 { $as_echo "$as_me:$LINENO: result: no" >&5
6473 $as_echo "no" >&6; }
6476 if test "x$ac_ct_OTOOL" = x; then
6479 case $cross_compiling:$ac_tool_warned in
6481 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6488 OTOOL="$ac_cv_prog_OTOOL"
6491 if test -n "$ac_tool_prefix"; then
6492 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 $as_echo_n "checking for $ac_word... " >&6; }
6496 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6497 $as_echo_n "(cached) " >&6
6499 if test -n "$OTOOL64"; then
6500 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
6508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6509 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 OTOOL64=$ac_cv_prog_OTOOL64
6520 if test -n "$OTOOL64"; then
6521 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6522 $as_echo "$OTOOL64" >&6; }
6524 { $as_echo "$as_me:$LINENO: result: no" >&5
6525 $as_echo "no" >&6; }
6530 if test -z "$ac_cv_prog_OTOOL64"; then
6531 ac_ct_OTOOL64=$OTOOL64
6532 # Extract the first word of "otool64", so it can be a program name with args.
6533 set dummy otool64; ac_word=$2
6534 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6537 $as_echo_n "(cached) " >&6
6539 if test -n "$ac_ct_OTOOL64"; then
6540 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_ac_ct_OTOOL64="otool64"
6550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6560 if test -n "$ac_ct_OTOOL64"; then
6561 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6562 $as_echo "$ac_ct_OTOOL64" >&6; }
6564 { $as_echo "$as_me:$LINENO: result: no" >&5
6565 $as_echo "no" >&6; }
6568 if test "x$ac_ct_OTOOL64" = x; then
6571 case $cross_compiling:$ac_tool_warned in
6573 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6574 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6575 ac_tool_warned=yes ;;
6577 OTOOL64=$ac_ct_OTOOL64
6580 OTOOL64="$ac_cv_prog_OTOOL64"
6609 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6610 $as_echo_n "checking for -single_module linker flag... " >&6; }
6611 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6612 $as_echo_n "(cached) " >&6
6614 lt_cv_apple_cc_single_mod=no
6615 if test -z "${LT_MULTI_MODULE}"; then
6616 # By default we will add the -single_module flag. You can override
6617 # by either setting the environment variable LT_MULTI_MODULE
6618 # non-empty at configure time, or by adding -multi_module to the
6620 rm -rf libconftest.dylib*
6621 echo "int foo(void){return 1;}" > conftest.c
6622 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6623 -dynamiclib -Wl,-single_module conftest.c" >&5
6624 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6625 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6627 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6628 lt_cv_apple_cc_single_mod=yes
6630 cat conftest.err >&5
6632 rm -rf libconftest.dylib*
6636 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6637 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6638 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6639 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6640 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6641 $as_echo_n "(cached) " >&6
6643 lt_cv_ld_exported_symbols_list=no
6644 save_LDFLAGS=$LDFLAGS
6645 echo "_main" > conftest.sym
6646 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6647 cat >conftest.$ac_ext <<_ACEOF
6650 cat confdefs.h >>conftest.$ac_ext
6651 cat >>conftest.$ac_ext <<_ACEOF
6652 /* end confdefs.h. */
6662 rm -f conftest.$ac_objext conftest$ac_exeext
6663 if { (ac_try="$ac_link"
6665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6666 *) ac_try_echo=$ac_try;;
6668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6669 $as_echo "$ac_try_echo") >&5
6670 (eval "$ac_link") 2>conftest.er1
6672 grep -v '^ *+' conftest.er1 >conftest.err
6674 cat conftest.err >&5
6675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && {
6677 test -z "$ac_c_werror_flag" ||
6678 test ! -s conftest.err
6679 } && test -s conftest$ac_exeext && {
6680 test "$cross_compiling" = yes ||
6681 $as_test_x conftest$ac_exeext
6683 lt_cv_ld_exported_symbols_list=yes
6685 $as_echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6688 lt_cv_ld_exported_symbols_list=no
6691 rm -rf conftest.dSYM
6692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6693 conftest$ac_exeext conftest.$ac_ext
6694 LDFLAGS="$save_LDFLAGS"
6697 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6698 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6700 rhapsody* | darwin1.[012])
6701 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6703 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6704 darwin*) # darwin 5.x on
6705 # if running on 10.5 or later, the deployment target defaults
6706 # to the OS version, if on x86, and 10.4, the deployment
6707 # target defaults to 10.4. Don't you love it?
6708 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6709 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6710 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6712 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6714 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6718 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6719 _lt_dar_single_mod='$single_module'
6721 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6722 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6724 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6726 if test "$DSYMUTIL" != ":"; then
6727 _lt_dsymutil='~$DSYMUTIL $lib || :'
6735 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6736 $as_echo_n "checking for ANSI C header files... " >&6; }
6737 if test "${ac_cv_header_stdc+set}" = set; then
6738 $as_echo_n "(cached) " >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6759 rm -f conftest.$ac_objext
6760 if { (ac_try="$ac_compile"
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6766 $as_echo "$ac_try_echo") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 ac_cv_header_stdc=yes
6779 $as_echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_cv_header_stdc=no
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 if test $ac_cv_header_stdc = yes; then
6788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6789 cat >conftest.$ac_ext <<_ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6799 $EGREP "memchr" >/dev/null 2>&1; then
6802 ac_cv_header_stdc=no
6808 if test $ac_cv_header_stdc = yes; then
6809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6820 $EGREP "free" >/dev/null 2>&1; then
6823 ac_cv_header_stdc=no
6829 if test $ac_cv_header_stdc = yes; then
6830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6831 if test "$cross_compiling" = yes; then
6834 cat >conftest.$ac_ext <<_ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h. */
6842 #if ((' ' & 0x0FF) == 0x020)
6843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6846 # define ISLOWER(c) \
6847 (('a' <= (c) && (c) <= 'i') \
6848 || ('j' <= (c) && (c) <= 'r') \
6849 || ('s' <= (c) && (c) <= 'z'))
6850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6858 for (i = 0; i < 256; i++)
6859 if (XOR (islower (i), ISLOWER (i))
6860 || toupper (i) != TOUPPER (i))
6865 rm -f conftest$ac_exeext
6866 if { (ac_try="$ac_link"
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6872 $as_echo "$ac_try_echo") >&5
6873 (eval "$ac_link") 2>&5
6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6877 { (case "(($ac_try" in
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882 $as_echo "$ac_try_echo") >&5
6883 (eval "$ac_try") 2>&5
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6889 $as_echo "$as_me: program exited with status $ac_status" >&5
6890 $as_echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_header_stdc=no
6896 rm -rf conftest.dSYM
6897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6903 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6904 $as_echo "$ac_cv_header_stdc" >&6; }
6905 if test $ac_cv_header_stdc = yes; then
6907 cat >>confdefs.h <<\_ACEOF
6908 #define STDC_HEADERS 1
6913 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6923 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6924 inttypes.h stdint.h unistd.h
6926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6927 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6928 $as_echo_n "checking for $ac_header... " >&6; }
6929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6930 $as_echo_n "(cached) " >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 $ac_includes_default
6940 #include <$ac_header>
6942 rm -f conftest.$ac_objext
6943 if { (ac_try="$ac_compile"
6945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6946 *) ac_try_echo=$ac_try;;
6948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6949 $as_echo "$ac_try_echo") >&5
6950 (eval "$ac_compile") 2>conftest.er1
6952 grep -v '^ *+' conftest.er1 >conftest.err
6954 cat conftest.err >&5
6955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } && {
6957 test -z "$ac_c_werror_flag" ||
6958 test ! -s conftest.err
6959 } && test -s conftest.$ac_objext; then
6960 eval "$as_ac_Header=yes"
6962 $as_echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6965 eval "$as_ac_Header=no"
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6970 ac_res=`eval 'as_val=${'$as_ac_Header'}
6971 $as_echo "$as_val"'`
6972 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6973 $as_echo "$ac_res" >&6; }
6974 as_val=`eval 'as_val=${'$as_ac_Header'}
6975 $as_echo "$as_val"'`
6976 if test "x$as_val" = x""yes; then
6977 cat >>confdefs.h <<_ACEOF
6978 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6987 for ac_header in dlfcn.h
6989 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6991 $as_echo_n "checking for $ac_header... " >&6; }
6992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6993 $as_echo_n "(cached) " >&6
6995 cat >conftest.$ac_ext <<_ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7003 #include <$ac_header>
7005 rm -f conftest.$ac_objext
7006 if { (ac_try="$ac_compile"
7008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009 *) ac_try_echo=$ac_try;;
7011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7012 $as_echo "$ac_try_echo") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 eval "$as_ac_Header=yes"
7025 $as_echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 eval "$as_ac_Header=no"
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 ac_res=`eval 'as_val=${'$as_ac_Header'}
7034 $as_echo "$as_val"'`
7035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7036 $as_echo "$ac_res" >&6; }
7037 as_val=`eval 'as_val=${'$as_ac_Header'}
7038 $as_echo "$as_val"'`
7039 if test "x$as_val" = x""yes; then
7040 cat >>confdefs.h <<_ACEOF
7041 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7060 # Check whether --enable-shared was given.
7061 if test "${enable_shared+set}" = set; then
7062 enableval=$enable_shared; p=${PACKAGE-default}
7064 yes) enable_shared=yes ;;
7065 no) enable_shared=no ;;
7068 # Look at the argument we got. We use all the common list separators.
7069 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7070 for pkg in $enableval; do
7072 if test "X$pkg" = "X$p"; then
7091 # Check whether --enable-static was given.
7092 if test "${enable_static+set}" = set; then
7093 enableval=$enable_static; p=${PACKAGE-default}
7095 yes) enable_static=yes ;;
7096 no) enable_static=no ;;
7099 # Look at the argument we got. We use all the common list separators.
7100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7101 for pkg in $enableval; do
7103 if test "X$pkg" = "X$p"; then
7123 # Check whether --with-pic was given.
7124 if test "${with_pic+set}" = set; then
7125 withval=$with_pic; pic_mode="$withval"
7131 test -z "$pic_mode" && pic_mode=default
7139 # Check whether --enable-fast-install was given.
7140 if test "${enable_fast_install+set}" = set; then
7141 enableval=$enable_fast_install; p=${PACKAGE-default}
7143 yes) enable_fast_install=yes ;;
7144 no) enable_fast_install=no ;;
7146 enable_fast_install=no
7147 # Look at the argument we got. We use all the common list separators.
7148 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7149 for pkg in $enableval; do
7151 if test "X$pkg" = "X$p"; then
7152 enable_fast_install=yes
7159 enable_fast_install=yes
7172 # This can be used to rebuild libtool when needed
7173 LIBTOOL_DEPS="$ltmain"
7175 # Always use our own libtool.
7176 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7202 test -z "$LN_S" && LN_S="ln -s"
7217 if test -n "${ZSH_VERSION+set}" ; then
7218 setopt NO_GLOB_SUBST
7221 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7222 $as_echo_n "checking for objdir... " >&6; }
7223 if test "${lt_cv_objdir+set}" = set; then
7224 $as_echo_n "(cached) " >&6
7226 rm -f .libs 2>/dev/null
7227 mkdir .libs 2>/dev/null
7228 if test -d .libs; then
7231 # MS-DOS does not allow filenames that begin with a dot.
7234 rmdir .libs 2>/dev/null
7236 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7237 $as_echo "$lt_cv_objdir" >&6; }
7238 objdir=$lt_cv_objdir
7244 cat >>confdefs.h <<_ACEOF
7245 #define LT_OBJDIR "$lt_cv_objdir/"
7266 # AIX sometimes has problems with the GCC collect2 program. For some
7267 # reason, if we set the COLLECT_NAMES environment variable, the problems
7268 # vanish in a puff of smoke.
7269 if test "X${COLLECT_NAMES+set}" != Xset; then
7271 export COLLECT_NAMES
7276 # Sed substitution that helps us do robust quoting. It backslashifies
7277 # metacharacters that are still active within double-quoted strings.
7278 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7280 # Same as above, but do not quote variable references.
7281 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7283 # Sed substitution to delay expansion of an escaped shell variable in a
7284 # double_quote_subst'ed string.
7285 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7287 # Sed substitution to delay expansion of an escaped single quote.
7288 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7290 # Sed substitution to avoid accidental globbing in evaled expressions
7291 no_glob_subst='s/\*/\\\*/g'
7295 can_build_shared=yes
7297 # All known linkers require a `.a' archive for static linking (except MSVC,
7298 # which needs '.lib').
7301 with_gnu_ld="$lt_cv_prog_gnu_ld"
7304 old_CFLAGS="$CFLAGS"
7306 # Set sane defaults for various variables
7307 test -z "$CC" && CC=cc
7308 test -z "$LTCC" && LTCC=$CC
7309 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7310 test -z "$LD" && LD=ld
7311 test -z "$ac_objext" && ac_objext=o
7313 for cc_temp in $compiler""; do
7315 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7316 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7321 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7324 # Only perform the check for file, if the check method requires it
7325 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7326 case $deplibs_check_method in
7328 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7329 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7330 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7331 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7336 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7339 lt_save_MAGIC_CMD="$MAGIC_CMD"
7340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7341 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7342 for ac_dir in $ac_dummy; do
7344 test -z "$ac_dir" && ac_dir=.
7345 if test -f $ac_dir/${ac_tool_prefix}file; then
7346 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7347 if test -n "$file_magic_test_file"; then
7348 case $deplibs_check_method in
7350 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7351 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7352 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7353 $EGREP "$file_magic_regex" > /dev/null; then
7358 *** Warning: the command libtool uses to detect shared libraries,
7359 *** $file_magic_cmd, produces output that libtool cannot recognize.
7360 *** The result is that libtool may fail to recognize shared libraries
7361 *** as such. This will affect the creation of libtool libraries that
7362 *** depend on shared libraries, but programs linked with such libtool
7363 *** libraries will work regardless of this problem. Nevertheless, you
7364 *** may want to report the problem to your system manager and/or to
7365 *** bug-libtool@gnu.org
7375 MAGIC_CMD="$lt_save_MAGIC_CMD"
7380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7381 if test -n "$MAGIC_CMD"; then
7382 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7383 $as_echo "$MAGIC_CMD" >&6; }
7385 { $as_echo "$as_me:$LINENO: result: no" >&5
7386 $as_echo "no" >&6; }
7393 if test -z "$lt_cv_path_MAGIC_CMD"; then
7394 if test -n "$ac_tool_prefix"; then
7395 { $as_echo "$as_me:$LINENO: checking for file" >&5
7396 $as_echo_n "checking for file... " >&6; }
7397 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7398 $as_echo_n "(cached) " >&6
7402 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7405 lt_save_MAGIC_CMD="$MAGIC_CMD"
7406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7407 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7408 for ac_dir in $ac_dummy; do
7410 test -z "$ac_dir" && ac_dir=.
7411 if test -f $ac_dir/file; then
7412 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7413 if test -n "$file_magic_test_file"; then
7414 case $deplibs_check_method in
7416 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7419 $EGREP "$file_magic_regex" > /dev/null; then
7424 *** Warning: the command libtool uses to detect shared libraries,
7425 *** $file_magic_cmd, produces output that libtool cannot recognize.
7426 *** The result is that libtool may fail to recognize shared libraries
7427 *** as such. This will affect the creation of libtool libraries that
7428 *** depend on shared libraries, but programs linked with such libtool
7429 *** libraries will work regardless of this problem. Nevertheless, you
7430 *** may want to report the problem to your system manager and/or to
7431 *** bug-libtool@gnu.org
7441 MAGIC_CMD="$lt_save_MAGIC_CMD"
7446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7447 if test -n "$MAGIC_CMD"; then
7448 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7449 $as_echo "$MAGIC_CMD" >&6; }
7451 { $as_echo "$as_me:$LINENO: result: no" >&5
7452 $as_echo "no" >&6; }
7465 # Use C for the default configuration in the libtool script
7469 ac_cpp='$CPP $CPPFLAGS'
7470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475 # Source file extension for C test sources.
7478 # Object file extension for compiled C test sources.
7482 # Code to be used in simple compile tests
7483 lt_simple_compile_test_code="int some_variable = 0;"
7485 # Code to be used in simple link tests
7486 lt_simple_link_test_code='int main(){return(0);}'
7494 # If no C compiler was specified, use CC.
7497 # If no C compiler flags were specified, use CFLAGS.
7498 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7500 # Allow CC to be a program name with arguments.
7503 # Save the default compiler, since it gets overwritten when the other
7504 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7505 compiler_DEFAULT=$CC
7507 # save warnings/boilerplate of simple test code
7508 ac_outfile=conftest.$ac_objext
7509 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7510 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7511 _lt_compiler_boilerplate=`cat conftest.err`
7514 ac_outfile=conftest.$ac_objext
7515 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7516 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7517 _lt_linker_boilerplate=`cat conftest.err`
7521 if test -n "$compiler"; then
7523 lt_prog_compiler_no_builtin_flag=
7525 if test "$GCC" = yes; then
7526 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7528 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7529 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7531 $as_echo_n "(cached) " >&6
7533 lt_cv_prog_compiler_rtti_exceptions=no
7534 ac_outfile=conftest.$ac_objext
7535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7536 lt_compiler_flag="-fno-rtti -fno-exceptions"
7537 # Insert the option either (1) after the last *FLAGS variable, or
7538 # (2) before a word containing "conftest.", or (3) at the end.
7539 # Note that $ac_compile itself does not contain backslashes and begins
7540 # with a dollar sign (not a hyphen), so the echo should work correctly.
7541 # The option is referenced via a variable to avoid confusing sed.
7542 lt_compile=`echo "$ac_compile" | $SED \
7543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7545 -e 's:$: $lt_compiler_flag:'`
7546 (eval echo "\"\$as_me:7546: $lt_compile\"" >&5)
7547 (eval "$lt_compile" 2>conftest.err)
7549 cat conftest.err >&5
7550 echo "$as_me:7550: \$? = $ac_status" >&5
7551 if (exit $ac_status) && test -s "$ac_outfile"; then
7552 # The compiler can only warn and ignore the option if not recognized
7553 # So say no if there are warnings other than the usual output.
7554 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7557 lt_cv_prog_compiler_rtti_exceptions=yes
7563 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7564 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7567 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7579 lt_prog_compiler_wl=
7580 lt_prog_compiler_pic=
7581 lt_prog_compiler_static=
7583 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7584 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7586 if test "$GCC" = yes; then
7587 lt_prog_compiler_wl='-Wl,'
7588 lt_prog_compiler_static='-static'
7592 # All AIX code is PIC.
7593 if test "$host_cpu" = ia64; then
7594 # AIX 5 now supports IA64 processor
7595 lt_prog_compiler_static='-Bstatic'
7602 # see comment about AmigaOS4 .so support
7603 lt_prog_compiler_pic='-fPIC'
7606 # FIXME: we need at least 68020 code to build shared libraries, but
7607 # adding the `-m68020' flag to GCC prevents building anything better,
7609 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7614 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7615 # PIC is the default for these OSes.
7618 mingw* | cygwin* | pw32* | os2* | cegcc*)
7619 # This hack is so that the source file can tell whether it is being
7620 # built for inclusion in a dll (and should export symbols for example).
7621 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7622 # (--disable-auto-import) libraries
7623 lt_prog_compiler_pic='-DDLL_EXPORT'
7626 darwin* | rhapsody*)
7627 # PIC is the default on this platform
7628 # Common symbols not allowed in MH_DYLIB files
7629 lt_prog_compiler_pic='-fno-common'
7633 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7634 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7635 # sets the default TLS model and affects inlining.
7641 lt_prog_compiler_pic='-fPIC'
7647 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7648 # Instead, we relocate shared libraries at runtime.
7652 # Just because we use GCC doesn't mean we suddenly get shared libraries
7653 # on systems that don't support them.
7654 lt_prog_compiler_can_build_shared=no
7659 # QNX uses GNU C++, but need to define -shared option too, otherwise
7661 lt_prog_compiler_pic='-fPIC -shared'
7665 if test -d /usr/nec; then
7666 lt_prog_compiler_pic=-Kconform_pic
7671 lt_prog_compiler_pic='-fPIC'
7675 # PORTME Check for flag to pass linker flags through the system compiler.
7678 lt_prog_compiler_wl='-Wl,'
7679 if test "$host_cpu" = ia64; then
7680 # AIX 5 now supports IA64 processor
7681 lt_prog_compiler_static='-Bstatic'
7683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7687 mingw* | cygwin* | pw32* | os2* | cegcc*)
7688 # This hack is so that the source file can tell whether it is being
7689 # built for inclusion in a dll (and should export symbols for example).
7690 lt_prog_compiler_pic='-DDLL_EXPORT'
7693 hpux9* | hpux10* | hpux11*)
7694 lt_prog_compiler_wl='-Wl,'
7695 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7702 lt_prog_compiler_pic='+Z'
7705 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7706 lt_prog_compiler_static='${wl}-a ${wl}archive'
7709 irix5* | irix6* | nonstopux*)
7710 lt_prog_compiler_wl='-Wl,'
7711 # PIC (with -KPIC) is the default.
7712 lt_prog_compiler_static='-non_shared'
7715 linux* | k*bsd*-gnu)
7716 case $cc_basename in
7717 # old Intel for x86_64 which still supported -KPIC.
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-static'
7723 # icc used to be incompatible with GCC.
7724 # ICC 10 doesn't accept -KPIC any more.
7726 lt_prog_compiler_wl='-Wl,'
7727 lt_prog_compiler_pic='-fPIC'
7728 lt_prog_compiler_static='-static'
7730 # Lahey Fortran 8.1.
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='--shared'
7734 lt_prog_compiler_static='--static'
7736 pgcc* | pgf77* | pgf90* | pgf95*)
7737 # Portland Group compilers (*not* the Pentium gcc compiler,
7738 # which looks to be a dead project)
7739 lt_prog_compiler_wl='-Wl,'
7740 lt_prog_compiler_pic='-fpic'
7741 lt_prog_compiler_static='-Bstatic'
7744 lt_prog_compiler_wl='-Wl,'
7745 # All Alpha code is PIC.
7746 lt_prog_compiler_static='-non_shared'
7749 # IBM XL C 8.0/Fortran 10.1 on PPC
7750 lt_prog_compiler_wl='-Wl,'
7751 lt_prog_compiler_pic='-qpic'
7752 lt_prog_compiler_static='-qstaticlink'
7755 case `$CC -V 2>&1 | sed 5q` in
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 lt_prog_compiler_wl='-Wl,'
7763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-Bstatic'
7766 lt_prog_compiler_wl=''
7774 lt_prog_compiler_pic='-KPIC'
7775 lt_prog_compiler_static='-Bstatic'
7779 # QNX uses GNU C++, but need to define -shared option too, otherwise
7781 lt_prog_compiler_pic='-fPIC -shared'
7784 osf3* | osf4* | osf5*)
7785 lt_prog_compiler_wl='-Wl,'
7786 # All OSF/1 code is PIC.
7787 lt_prog_compiler_static='-non_shared'
7791 lt_prog_compiler_static='-non_shared'
7795 lt_prog_compiler_pic='-KPIC'
7796 lt_prog_compiler_static='-Bstatic'
7797 case $cc_basename in
7799 lt_prog_compiler_wl='-Qoption ld ';;
7801 lt_prog_compiler_wl='-Wl,';;
7806 lt_prog_compiler_wl='-Qoption ld '
7807 lt_prog_compiler_pic='-PIC'
7808 lt_prog_compiler_static='-Bstatic'
7811 sysv4 | sysv4.2uw2* | sysv4.3*)
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7818 if test -d /usr/nec ;then
7819 lt_prog_compiler_pic='-Kconform_pic'
7820 lt_prog_compiler_static='-Bstatic'
7824 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7825 lt_prog_compiler_wl='-Wl,'
7826 lt_prog_compiler_pic='-KPIC'
7827 lt_prog_compiler_static='-Bstatic'
7831 lt_prog_compiler_wl='-Wl,'
7832 lt_prog_compiler_can_build_shared=no
7836 lt_prog_compiler_pic='-pic'
7837 lt_prog_compiler_static='-Bstatic'
7841 lt_prog_compiler_can_build_shared=no
7847 # For platforms which do not support PIC, -DPIC is meaningless:
7849 lt_prog_compiler_pic=
7852 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7855 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7856 $as_echo "$lt_prog_compiler_pic" >&6; }
7864 # Check to make sure the PIC flag actually works.
7866 if test -n "$lt_prog_compiler_pic"; then
7867 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7868 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7869 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7870 $as_echo_n "(cached) " >&6
7872 lt_cv_prog_compiler_pic_works=no
7873 ac_outfile=conftest.$ac_objext
7874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7875 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7876 # Insert the option either (1) after the last *FLAGS variable, or
7877 # (2) before a word containing "conftest.", or (3) at the end.
7878 # Note that $ac_compile itself does not contain backslashes and begins
7879 # with a dollar sign (not a hyphen), so the echo should work correctly.
7880 # The option is referenced via a variable to avoid confusing sed.
7881 lt_compile=`echo "$ac_compile" | $SED \
7882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7884 -e 's:$: $lt_compiler_flag:'`
7885 (eval echo "\"\$as_me:7885: $lt_compile\"" >&5)
7886 (eval "$lt_compile" 2>conftest.err)
7888 cat conftest.err >&5
7889 echo "$as_me:7889: \$? = $ac_status" >&5
7890 if (exit $ac_status) && test -s "$ac_outfile"; then
7891 # The compiler can only warn and ignore the option if not recognized
7892 # So say no if there are warnings other than the usual output.
7893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7896 lt_cv_prog_compiler_pic_works=yes
7902 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7903 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7905 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7906 case $lt_prog_compiler_pic in
7908 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7911 lt_prog_compiler_pic=
7912 lt_prog_compiler_can_build_shared=no
7923 # Check to make sure the static flag actually works.
7925 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7926 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7927 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7928 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7929 $as_echo_n "(cached) " >&6
7931 lt_cv_prog_compiler_static_works=no
7932 save_LDFLAGS="$LDFLAGS"
7933 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7934 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7935 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7936 # The linker can only warn and ignore the option if not recognized
7937 # So say no if there are warnings
7938 if test -s conftest.err; then
7939 # Append any errors to the config.log.
7940 cat conftest.err 1>&5
7941 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7943 if diff conftest.exp conftest.er2 >/dev/null; then
7944 lt_cv_prog_compiler_static_works=yes
7947 lt_cv_prog_compiler_static_works=yes
7951 LDFLAGS="$save_LDFLAGS"
7954 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7955 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7957 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7960 lt_prog_compiler_static=
7969 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7970 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7971 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7972 $as_echo_n "(cached) " >&6
7974 lt_cv_prog_compiler_c_o=no
7975 $RM -r conftest 2>/dev/null
7979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7981 lt_compiler_flag="-o out/conftest2.$ac_objext"
7982 # Insert the option either (1) after the last *FLAGS variable, or
7983 # (2) before a word containing "conftest.", or (3) at the end.
7984 # Note that $ac_compile itself does not contain backslashes and begins
7985 # with a dollar sign (not a hyphen), so the echo should work correctly.
7986 lt_compile=`echo "$ac_compile" | $SED \
7987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7989 -e 's:$: $lt_compiler_flag:'`
7990 (eval echo "\"\$as_me:7990: $lt_compile\"" >&5)
7991 (eval "$lt_compile" 2>out/conftest.err)
7993 cat out/conftest.err >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7997 # The compiler can only warn and ignore the option if not recognized
7998 # So say no if there are warnings
7999 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8000 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8001 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8002 lt_cv_prog_compiler_c_o=yes
8007 # SGI C++ compiler will create directory out/ii_files/ for
8008 # template instantiation
8009 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8010 $RM out/* && rmdir out
8016 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8017 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8024 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8026 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8027 $as_echo_n "(cached) " >&6
8029 lt_cv_prog_compiler_c_o=no
8030 $RM -r conftest 2>/dev/null
8034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8036 lt_compiler_flag="-o out/conftest2.$ac_objext"
8037 # Insert the option either (1) after the last *FLAGS variable, or
8038 # (2) before a word containing "conftest.", or (3) at the end.
8039 # Note that $ac_compile itself does not contain backslashes and begins
8040 # with a dollar sign (not a hyphen), so the echo should work correctly.
8041 lt_compile=`echo "$ac_compile" | $SED \
8042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8044 -e 's:$: $lt_compiler_flag:'`
8045 (eval echo "\"\$as_me:8045: $lt_compile\"" >&5)
8046 (eval "$lt_compile" 2>out/conftest.err)
8048 cat out/conftest.err >&5
8049 echo "$as_me:8049: \$? = $ac_status" >&5
8050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8052 # The compiler can only warn and ignore the option if not recognized
8053 # So say no if there are warnings
8054 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8055 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8056 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8057 lt_cv_prog_compiler_c_o=yes
8062 # SGI C++ compiler will create directory out/ii_files/ for
8063 # template instantiation
8064 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8065 $RM out/* && rmdir out
8071 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8077 hard_links="nottested"
8078 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8079 # do not overwrite the value of need_locks provided by the user
8080 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8081 $as_echo_n "checking if we can lock with hard links... " >&6; }
8084 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8086 ln conftest.a conftest.b 2>&5 || hard_links=no
8087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8088 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8089 $as_echo "$hard_links" >&6; }
8090 if test "$hard_links" = no; then
8091 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8092 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8104 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8105 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8108 allow_undefined_flag=
8109 always_export_symbols=no
8111 archive_expsym_cmds=
8112 compiler_needs_object=no
8113 enable_shared_with_static_runtimes=no
8114 export_dynamic_flag_spec=
8115 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8116 hardcode_automatic=no
8118 hardcode_direct_absolute=no
8119 hardcode_libdir_flag_spec=
8120 hardcode_libdir_flag_spec_ld=
8121 hardcode_libdir_separator=
8123 hardcode_shlibpath_var=unsupported
8125 link_all_deplibs=unknown
8128 old_archive_from_new_cmds=
8129 old_archive_from_expsyms_cmds=
8130 thread_safe_flag_spec=
8131 whole_archive_flag_spec=
8132 # include_expsyms should be a list of space-separated symbols to be *always*
8133 # included in the symbol list
8135 # exclude_expsyms can be an extended regexp of symbols to exclude
8136 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8137 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8138 # as well as any symbol that contains `d'.
8139 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8140 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8141 # platforms (ab)use it in PIC code, but their linkers get confused if
8142 # the symbol is explicitly referenced. Since portable code cannot
8143 # rely on this symbol name, it's probably fine to never include it in
8144 # preloaded symbol tables.
8145 # Exclude shared library initialization/finalization symbols.
8146 extract_expsyms_cmds=
8149 cygwin* | mingw* | pw32* | cegcc*)
8150 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8151 # When not using gcc, we currently assume that we are using
8152 # Microsoft Visual C++.
8153 if test "$GCC" != yes; then
8158 # we just hope/assume this is gcc and not c89 (= MSVC++)
8167 if test "$with_gnu_ld" = yes; then
8168 # If archive_cmds runs LD, not CC, wlarc should be empty
8171 # Set some defaults for GNU ld with shared library support. These
8172 # are reset later if shared libraries are not supported. Putting them
8173 # here allows them to be overridden if necessary.
8174 runpath_var=LD_RUN_PATH
8175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8176 export_dynamic_flag_spec='${wl}--export-dynamic'
8177 # ancient GNU ld didn't support --whole-archive et. al.
8178 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8179 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8181 whole_archive_flag_spec=
8183 supports_anon_versioning=no
8184 case `$LD -v 2>&1` in
8185 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8186 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8187 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8188 *\ 2.11.*) ;; # other 2.11 versions
8189 *) supports_anon_versioning=yes ;;
8192 # See if GNU ld supports shared libraries.
8195 # On AIX/PPC, the GNU linker is very broken
8196 if test "$host_cpu" != ia64; then
8200 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8201 *** to be unable to reliably create shared libraries on AIX.
8202 *** Therefore, libtool is disabling shared libraries support. If you
8203 *** really care for shared libraries, you may want to modify your PATH
8204 *** so that a non-GNU linker is found, and then restart.
8213 # see comment about AmigaOS4 .so support
8214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8215 archive_expsym_cmds=''
8218 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)'
8219 hardcode_libdir_flag_spec='-L$libdir'
8220 hardcode_minus_L=yes
8226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8227 allow_undefined_flag=unsupported
8228 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8229 # support --undefined. This deserves some investigation. FIXME
8230 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8236 cygwin* | mingw* | pw32* | cegcc*)
8237 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8238 # as there is no search path for DLLs.
8239 hardcode_libdir_flag_spec='-L$libdir'
8240 allow_undefined_flag=unsupported
8241 always_export_symbols=no
8242 enable_shared_with_static_runtimes=yes
8243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8245 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8247 # If the export-symbols file already is a .def file (1st line
8248 # is EXPORTS), use it as is; otherwise, prepend...
8249 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8250 cp $export_symbols $output_objdir/$soname.def;
8252 echo EXPORTS > $output_objdir/$soname.def;
8253 cat $export_symbols >> $output_objdir/$soname.def;
8255 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8263 hardcode_shlibpath_var=no
8264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8265 export_dynamic_flag_spec='${wl}-E'
8266 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8267 # Instead, shared libraries are loaded at an image base (0x10000000 by
8268 # default) and relocated if they conflict, which is a slow very memory
8269 # consuming and fragmenting process. To avoid this, we pick a random,
8270 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8271 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8272 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8273 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'
8276 gnu* | linux* | tpf* | k*bsd*-gnu)
8278 if test "$host_os" = linux-dietlibc; then
8279 case $cc_basename in
8280 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8283 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8284 && test "$tmp_diet" = no
8287 tmp_sharedflag='-shared'
8288 case $cc_basename,$host_cpu in
8289 pgcc*) # Portland Group C compiler
8290 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'
8291 tmp_addflag=' $pic_flag'
8293 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8294 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'
8295 tmp_addflag=' $pic_flag -Mnomain' ;;
8296 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8297 tmp_addflag=' -i_dynamic' ;;
8298 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8299 tmp_addflag=' -i_dynamic -nofor_main' ;;
8300 ifc* | ifort*) # Intel Fortran compiler
8301 tmp_addflag=' -nofor_main' ;;
8302 lf95*) # Lahey Fortran 8.1
8303 whole_archive_flag_spec=
8304 tmp_sharedflag='--shared' ;;
8305 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8306 tmp_sharedflag='-qmkshrobj'
8309 case `$CC -V 2>&1 | sed 5q` in
8310 *Sun\ C*) # Sun C 5.9
8311 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'
8312 compiler_needs_object=yes
8313 tmp_sharedflag='-G' ;;
8314 *Sun\ F*) # Sun Fortran 8.3
8315 tmp_sharedflag='-G' ;;
8317 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319 if test "x$supports_anon_versioning" = xyes; then
8320 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8322 echo "local: *; };" >> $output_objdir/$libname.ver~
8323 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8326 case $cc_basename in
8328 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8329 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8330 hardcode_libdir_flag_spec=
8331 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8332 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8333 if test "x$supports_anon_versioning" = xyes; then
8334 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8335 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8336 echo "local: *; };" >> $output_objdir/$libname.ver~
8337 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8346 netbsd* | netbsdelf*-gnu)
8347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8348 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8361 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362 *** create shared libraries on Solaris systems. Therefore, libtool
8363 *** is disabling shared libraries support. We urge you to upgrade GNU
8364 *** binutils to release 2.9.1 or newer. Another option is to modify
8365 *** your PATH or compiler configuration so that the native linker is
8366 *** used, and then restart.
8369 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8370 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378 case `$LD -v 2>&1` in
8379 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8383 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384 *** reliably create shared libraries on SCO systems. Therefore, libtool
8385 *** is disabling shared libraries support. We urge you to upgrade GNU
8386 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8387 *** your PATH or compiler configuration so that the native linker is
8388 *** used, and then restart.
8393 # For security reasons, it is highly recommended that you always
8394 # use absolute paths for naming shared libraries, and exclude the
8395 # DT_RUNPATH tag from executables and libraries. But doing so
8396 # requires that you compile everything twice, which is a pain.
8397 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8398 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8409 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8412 hardcode_shlibpath_var=no
8416 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8425 if test "$ld_shlibs" = no; then
8427 hardcode_libdir_flag_spec=
8428 export_dynamic_flag_spec=
8429 whole_archive_flag_spec=
8432 # PORTME fill in a description of your system's linker (not GNU ld)
8435 allow_undefined_flag=unsupported
8436 always_export_symbols=yes
8437 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'
8438 # Note: this linker hardcodes the directories in LIBPATH if there
8439 # are no directories specified by -L.
8440 hardcode_minus_L=yes
8441 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8442 # Neither direct hardcoding nor static linking is supported with a
8444 hardcode_direct=unsupported
8449 if test "$host_cpu" = ia64; then
8450 # On IA64, the linker does run time linking by default, so we don't
8451 # have to do anything special.
8452 aix_use_runtimelinking=no
8453 exp_sym_flag='-Bexport'
8456 # If we're using GNU nm, then we don't want the "-C" option.
8457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8459 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'
8461 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'
8463 aix_use_runtimelinking=no
8465 # Test if we are trying to use run time linking or normal
8466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8467 # need to do runtime linking.
8468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8469 for ld_flag in $LDFLAGS; do
8470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8471 aix_use_runtimelinking=yes
8478 exp_sym_flag='-bexport'
8479 no_entry_flag='-bnoentry'
8482 # When large executables or shared objects are built, AIX ld can
8483 # have problems creating the table of contents. If linking a library
8484 # or program results in "error TOC overflow" add -mminimal-toc to
8485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8490 hardcode_direct_absolute=yes
8491 hardcode_libdir_separator=':'
8492 link_all_deplibs=yes
8493 file_list_spec='${wl}-f,'
8495 if test "$GCC" = yes; then
8496 case $host_os in aix4.[012]|aix4.[012].*)
8497 # We only want to do this on AIX 4.2 and lower, the check
8498 # below for broken collect2 doesn't work under 4.3+
8499 collect2name=`${CC} -print-prog-name=collect2`
8500 if test -f "$collect2name" &&
8501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8503 # We have reworked collect2
8506 # We have old collect2
8507 hardcode_direct=unsupported
8508 # It fails to find uninstalled libraries when the uninstalled
8509 # path is not listed in the libpath. Setting hardcode_minus_L
8510 # to unsupported forces relinking
8511 hardcode_minus_L=yes
8512 hardcode_libdir_flag_spec='-L$libdir'
8513 hardcode_libdir_separator=
8517 shared_flag='-shared'
8518 if test "$aix_use_runtimelinking" = yes; then
8519 shared_flag="$shared_flag "'${wl}-G'
8524 if test "$host_cpu" = ia64; then
8525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8526 # chokes on -Wl,-G. The following line is correct:
8529 if test "$aix_use_runtimelinking" = yes; then
8530 shared_flag='${wl}-G'
8532 shared_flag='${wl}-bM:SRE'
8537 export_dynamic_flag_spec='${wl}-bexpall'
8538 # It seems that -bexpall does not export symbols beginning with
8539 # underscore (_), so it is better to generate a list of symbols to export.
8540 always_export_symbols=yes
8541 if test "$aix_use_runtimelinking" = yes; then
8542 # Warning - without using the other runtime loading flags (-brtl),
8543 # -berok will link without error, but may produce a broken library.
8544 allow_undefined_flag='-berok'
8545 # Determine the default libpath from the value encoded in an
8547 cat >conftest.$ac_ext <<_ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h. */
8562 rm -f conftest.$ac_objext conftest$ac_exeext
8563 if { (ac_try="$ac_link"
8565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8566 *) ac_try_echo=$ac_try;;
8568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8569 $as_echo "$ac_try_echo") >&5
8570 (eval "$ac_link") 2>conftest.er1
8572 grep -v '^ *+' conftest.er1 >conftest.err
8574 cat conftest.err >&5
8575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_c_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest$ac_exeext && {
8580 test "$cross_compiling" = yes ||
8581 $as_test_x conftest$ac_exeext
8584 lt_aix_libpath_sed='
8585 /Import File Strings/,/^$/ {
8591 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8592 # Check for a 64-bit object if we didn't find anything.
8593 if test -z "$aix_libpath"; then
8594 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8597 $as_echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8603 rm -rf conftest.dSYM
8604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8605 conftest$ac_exeext conftest.$ac_ext
8606 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8608 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8609 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"
8611 if test "$host_cpu" = ia64; then
8612 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8613 allow_undefined_flag="-z nodefs"
8614 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"
8616 # Determine the default libpath from the value encoded in an
8618 cat >conftest.$ac_ext <<_ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (ac_try="$ac_link"
8636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8637 *) ac_try_echo=$ac_try;;
8639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8640 $as_echo "$ac_try_echo") >&5
8641 (eval "$ac_link") 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } && {
8648 test -z "$ac_c_werror_flag" ||
8649 test ! -s conftest.err
8650 } && test -s conftest$ac_exeext && {
8651 test "$cross_compiling" = yes ||
8652 $as_test_x conftest$ac_exeext
8655 lt_aix_libpath_sed='
8656 /Import File Strings/,/^$/ {
8662 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8663 # Check for a 64-bit object if we didn't find anything.
8664 if test -z "$aix_libpath"; then
8665 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668 $as_echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8674 rm -rf conftest.dSYM
8675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8676 conftest$ac_exeext conftest.$ac_ext
8677 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8679 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8680 # Warning - without using the other run time loading flags,
8681 # -berok will link without error, but may produce a broken library.
8682 no_undefined_flag=' ${wl}-bernotok'
8683 allow_undefined_flag=' ${wl}-berok'
8684 # Exported symbols can be pulled into shared objects from archives
8685 whole_archive_flag_spec='$convenience'
8686 archive_cmds_need_lc=yes
8687 # This is similar to how AIX traditionally builds its shared libraries.
8688 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'
8696 # see comment about AmigaOS4 .so support
8697 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8698 archive_expsym_cmds=''
8701 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)'
8702 hardcode_libdir_flag_spec='-L$libdir'
8703 hardcode_minus_L=yes
8709 export_dynamic_flag_spec=-rdynamic
8712 cygwin* | mingw* | pw32* | cegcc*)
8713 # When not using gcc, we currently assume that we are using
8714 # Microsoft Visual C++.
8715 # hardcode_libdir_flag_spec is actually meaningless, as there is
8716 # no search path for DLLs.
8717 hardcode_libdir_flag_spec=' '
8718 allow_undefined_flag=unsupported
8719 # Tell ltmain to make .lib files, not .a files.
8721 # Tell ltmain to make .dll files, not .so files.
8723 # FIXME: Setting linknames here is a bad hack.
8724 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8725 # The linker will automatically build a .lib file if we build a DLL.
8726 old_archive_from_new_cmds='true'
8727 # FIXME: Should let the user specify the lib program.
8728 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8729 fix_srcfile_path='`cygpath -w "$srcfile"`'
8730 enable_shared_with_static_runtimes=yes
8733 darwin* | rhapsody*)
8736 archive_cmds_need_lc=no
8738 hardcode_automatic=yes
8739 hardcode_shlibpath_var=unsupported
8740 whole_archive_flag_spec=''
8741 link_all_deplibs=yes
8742 allow_undefined_flag="$_lt_dar_allow_undefined"
8743 case $cc_basename in
8744 ifort*) _lt_dar_can_shared=yes ;;
8745 *) _lt_dar_can_shared=$GCC ;;
8747 if test "$_lt_dar_can_shared" = "yes"; then
8748 output_verbose_link_cmd=echo
8749 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8750 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8751 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}"
8752 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}"
8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_libdir_flag_spec='-L$libdir'
8763 hardcode_shlibpath_var=no
8770 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8771 # support. Future versions do this automatically, but an explicit c++rt0.o
8772 # does not break anything, and helps significantly (at the cost of a little
8775 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8776 hardcode_libdir_flag_spec='-R$libdir'
8778 hardcode_shlibpath_var=no
8781 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8785 hardcode_minus_L=yes
8786 hardcode_shlibpath_var=no
8789 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8790 freebsd* | dragonfly*)
8791 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8792 hardcode_libdir_flag_spec='-R$libdir'
8794 hardcode_shlibpath_var=no
8798 if test "$GCC" = yes; then
8799 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'
8801 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'
8803 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8804 hardcode_libdir_separator=:
8807 # hardcode_minus_L: Not really in the search PATH,
8808 # but as the default location of the library.
8809 hardcode_minus_L=yes
8810 export_dynamic_flag_spec='${wl}-E'
8814 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8815 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8819 if test "$with_gnu_ld" = no; then
8820 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821 hardcode_libdir_flag_spec_ld='+b $libdir'
8822 hardcode_libdir_separator=:
8824 hardcode_direct_absolute=yes
8825 export_dynamic_flag_spec='${wl}-E'
8826 # hardcode_minus_L: Not really in the search PATH,
8827 # but as the default location of the library.
8828 hardcode_minus_L=yes
8833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8836 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8848 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8858 if test "$with_gnu_ld" = no; then
8859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8860 hardcode_libdir_separator=:
8865 hardcode_shlibpath_var=no
8869 hardcode_direct_absolute=yes
8870 export_dynamic_flag_spec='${wl}-E'
8872 # hardcode_minus_L: Not really in the search PATH,
8873 # but as the default location of the library.
8874 hardcode_minus_L=yes
8880 irix5* | irix6* | nonstopux*)
8881 if test "$GCC" = yes; then
8882 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'
8883 # Try to use the -exported_symbol ld option, if it does not
8884 # work, assume that -exports_file does not work either and
8885 # implicitly export all symbols.
8886 save_LDFLAGS="$LDFLAGS"
8887 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8888 cat >conftest.$ac_ext <<_ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (ac_try="$ac_link"
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8898 $as_echo "$ac_try_echo") >&5
8899 (eval "$ac_link") 2>conftest.er1
8901 grep -v '^ *+' conftest.er1 >conftest.err
8903 cat conftest.err >&5
8904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); } && {
8906 test -z "$ac_c_werror_flag" ||
8907 test ! -s conftest.err
8908 } && test -s conftest$ac_exeext && {
8909 test "$cross_compiling" = yes ||
8910 $as_test_x conftest$ac_exeext
8912 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'
8915 $as_echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8921 rm -rf conftest.dSYM
8922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8923 conftest$ac_exeext conftest.$ac_ext
8924 LDFLAGS="$save_LDFLAGS"
8926 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'
8927 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'
8929 archive_cmds_need_lc='no'
8930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8931 hardcode_libdir_separator=:
8933 link_all_deplibs=yes
8936 netbsd* | netbsdelf*-gnu)
8937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8940 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8942 hardcode_libdir_flag_spec='-R$libdir'
8944 hardcode_shlibpath_var=no
8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8951 hardcode_libdir_separator=:
8952 hardcode_shlibpath_var=no
8959 if test -f /usr/libexec/ld.so; then
8961 hardcode_shlibpath_var=no
8962 hardcode_direct_absolute=yes
8963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8965 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8967 export_dynamic_flag_spec='${wl}-E'
8970 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8972 hardcode_libdir_flag_spec='-R$libdir'
8975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8986 hardcode_libdir_flag_spec='-L$libdir'
8987 hardcode_minus_L=yes
8988 allow_undefined_flag=unsupported
8989 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'
8990 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8994 if test "$GCC" = yes; then
8995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8996 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'
8998 allow_undefined_flag=' -expect_unresolved \*'
8999 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'
9001 archive_cmds_need_lc='no'
9002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9003 hardcode_libdir_separator=:
9006 osf4* | osf5*) # as osf3* with the addition of -msym flag
9007 if test "$GCC" = yes; then
9008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9009 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'
9010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012 allow_undefined_flag=' -expect_unresolved \*'
9013 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'
9014 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~
9015 $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'
9017 # Both c and cxx compiler support -rpath directly
9018 hardcode_libdir_flag_spec='-rpath $libdir'
9020 archive_cmds_need_lc='no'
9021 hardcode_libdir_separator=:
9025 no_undefined_flag=' -z defs'
9026 if test "$GCC" = yes; then
9028 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9030 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9032 case `$CC -V 2>&1` in
9035 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9037 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9041 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9043 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9047 hardcode_libdir_flag_spec='-R$libdir'
9048 hardcode_shlibpath_var=no
9050 solaris2.[0-5] | solaris2.[0-5].*) ;;
9052 # The compiler driver will combine and reorder linker options,
9053 # but understands `-z linker_flag'. GCC discards it without `$wl',
9054 # but is careful enough not to reorder.
9055 # Supported since Solaris 2.6 (maybe 2.5.1?)
9056 if test "$GCC" = yes; then
9057 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9059 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9063 link_all_deplibs=yes
9067 if test "x$host_vendor" = xsequent; then
9068 # Use $CC to link under sequent, because it throws in some extra .o
9069 # files that make .init and .fini sections work.
9070 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9072 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9074 hardcode_libdir_flag_spec='-L$libdir'
9076 hardcode_minus_L=yes
9077 hardcode_shlibpath_var=no
9081 case $host_vendor in
9083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084 hardcode_direct=yes # is this really true???
9087 ## LD is ld it makes a PLAMLIB
9088 ## CC just makes a GrossModule.
9089 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9090 reload_cmds='$CC -r -o $output$reload_objs'
9094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9095 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9098 runpath_var='LD_RUN_PATH'
9099 hardcode_shlibpath_var=no
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_shlibpath_var=no
9105 export_dynamic_flag_spec='-Bexport'
9109 if test -d /usr/nec; then
9110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9111 hardcode_shlibpath_var=no
9112 runpath_var=LD_RUN_PATH
9113 hardcode_runpath_var=yes
9118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9119 no_undefined_flag='${wl}-z,text'
9120 archive_cmds_need_lc=no
9121 hardcode_shlibpath_var=no
9122 runpath_var='LD_RUN_PATH'
9124 if test "$GCC" = yes; then
9125 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9126 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9128 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9129 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9133 sysv5* | sco3.2v5* | sco5v6*)
9134 # Note: We can NOT use -z defs as we might desire, because we do not
9135 # link with -lc, and that would cause any symbols used from libc to
9136 # always be unresolved, which means just about no library would
9137 # ever link correctly. If we're not using GNU ld we use -z text
9138 # though, which does catch some bad symbols but isn't as heavy-handed
9140 no_undefined_flag='${wl}-z,text'
9141 allow_undefined_flag='${wl}-z,nodefs'
9142 archive_cmds_need_lc=no
9143 hardcode_shlibpath_var=no
9144 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9145 hardcode_libdir_separator=':'
9146 link_all_deplibs=yes
9147 export_dynamic_flag_spec='${wl}-Bexport'
9148 runpath_var='LD_RUN_PATH'
9150 if test "$GCC" = yes; then
9151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161 hardcode_libdir_flag_spec='-L$libdir'
9162 hardcode_shlibpath_var=no
9170 if test x$host_vendor = xsni; then
9172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9173 export_dynamic_flag_spec='${wl}-Blargedynsym'
9179 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9180 $as_echo "$ld_shlibs" >&6; }
9181 test "$ld_shlibs" = no && can_build_shared=no
9183 with_gnu_ld=$with_gnu_ld
9200 # Do we need to explicitly link libc?
9202 case "x$archive_cmds_need_lc" in
9204 # Assume -lc should be added
9205 archive_cmds_need_lc=yes
9207 if test "$enable_shared" = yes && test "$GCC" = yes; then
9208 case $archive_cmds in
9210 # FIXME: we may have to deal with multi-command sequences.
9213 # Test whether the compiler implicitly links with -lc since on some
9214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9215 # to ld, don't add -lc before -lgcc.
9216 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9217 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9222 (eval $ac_compile) 2>&5
9224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225 (exit $ac_status); } 2>conftest.err; then
9228 libobjs=conftest.$ac_objext
9230 wl=$lt_prog_compiler_wl
9231 pic_flag=$lt_prog_compiler_pic
9237 lt_save_allow_undefined_flag=$allow_undefined_flag
9238 allow_undefined_flag=
9239 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }
9245 archive_cmds_need_lc=no
9247 archive_cmds_need_lc=yes
9249 allow_undefined_flag=$lt_save_allow_undefined_flag
9251 cat conftest.err 1>&5
9254 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9255 $as_echo "$archive_cmds_need_lc" >&6; }
9418 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9419 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9421 if test "$GCC" = yes; then
9423 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9424 *) lt_awk_arg="/^libraries:/" ;;
9426 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9427 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9428 # if the path contains ";" then we assume it to be the separator
9429 # otherwise default to the standard path separator (i.e. ":") - it is
9430 # assumed that no part of a normal pathname contains ";" but that should
9431 # okay in the real world where ";" in dirpaths is itself problematic.
9432 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9436 # Ok, now we have the path, separated by spaces, we can step through it
9437 # and add multilib dir if necessary.
9438 lt_tmp_lt_search_path_spec=
9439 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9440 for lt_sys_path in $lt_search_path_spec; do
9441 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9442 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9444 test -d "$lt_sys_path" && \
9445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9448 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9449 BEGIN {RS=" "; FS="/|\n";} {
9452 for (lt_i = NF; lt_i > 0; lt_i--) {
9453 if ($lt_i != "" && $lt_i != ".") {
9454 if ($lt_i == "..") {
9457 if (lt_count == 0) {
9458 lt_foo="/" $lt_i lt_foo;
9465 if (lt_foo != "") { lt_freq[lt_foo]++; }
9466 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9468 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9470 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9473 libname_spec='lib$name'
9481 shlibpath_overrides_runpath=unknown
9483 dynamic_linker="$host_os ld.so"
9484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9485 need_lib_prefix=unknown
9486 hardcode_into_libs=no
9488 # when you set need_version to no, make sure it does not cause -set_version
9489 # flags to be left without arguments
9490 need_version=unknown
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9496 shlibpath_var=LIBPATH
9498 # AIX 3 has no versioning support, so we append a major version to the name.
9499 soname_spec='${libname}${release}${shared_ext}$major'
9506 hardcode_into_libs=yes
9507 if test "$host_cpu" = ia64; then
9508 # AIX 5 supports IA64
9509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9510 shlibpath_var=LD_LIBRARY_PATH
9512 # With GCC up to 2.95.x, collect2 would create an import file
9513 # for dependence libraries. The import file would start with
9514 # the line `#! .'. This would cause the generated library to
9515 # depend on `.', always an invalid library. This was fixed in
9516 # development snapshots of GCC prior to 3.0.
9518 aix4 | aix4.[01] | aix4.[01].*)
9519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9521 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9529 # soname into executable. Probably we can add versioning support to
9530 # collect2, so additional links can be useful in future.
9531 if test "$aix_use_runtimelinking" = yes; then
9532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9533 # instead of lib<name>.a to let people know that these are not
9534 # typical AIX shared libraries.
9535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 # We preserve .a as extension for shared libraries through AIX4.2
9538 # and later when we are not doing run time linking.
9539 library_names_spec='${libname}${release}.a $libname.a'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9542 shlibpath_var=LIBPATH
9549 # Since July 2007 AmigaOS4 officially supports .so libraries.
9550 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9554 library_names_spec='$libname.ixlibrary $libname.a'
9555 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9556 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'
9562 library_names_spec='${libname}${shared_ext}'
9563 dynamic_linker="$host_os ld.so"
9564 shlibpath_var=LIBRARY_PATH
9570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571 soname_spec='${libname}${release}${shared_ext}$major'
9572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9576 # the default ld.so.conf also contains /usr/contrib/lib and
9577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9578 # libtool to hard-code these into programs
9581 cygwin* | mingw* | pw32* | cegcc*)
9582 version_type=windows
9587 case $GCC,$host_os in
9588 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9589 library_names_spec='$libname.dll.a'
9590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9591 postinstall_cmds='base_file=`basename \${file}`~
9592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9593 dldir=$destdir/`dirname \$dlpath`~
9594 test -d \$dldir || mkdir -p \$dldir~
9595 $install_prog $dir/$dlname \$dldir/$dlname~
9596 chmod a+x \$dldir/$dlname~
9597 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9598 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9601 dlpath=$dir/\$dldll~
9603 shlibpath_overrides_runpath=yes
9607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9609 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9612 # MinGW DLLs use traditional 'lib' prefix
9613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9614 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9615 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9616 # It is most probably a Windows format PATH printed by
9617 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9618 # path with ; separators, and with drive letters. We can handle the
9619 # drive letters (cygwin fileutils understands them), so leave them,
9620 # especially as we might pass files found there to a mingw objdump,
9621 # which wouldn't understand a cygwinified path. Ahh.
9622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9628 # pw32 DLLs use 'pw' prefix rather than 'lib'
9629 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9638 dynamic_linker='Win32 ld.exe'
9639 # FIXME: first we should search . and the directory the executable is in
9643 darwin* | rhapsody*)
9644 dynamic_linker="$host_os dyld"
9648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9649 soname_spec='${libname}${release}${major}$shared_ext'
9650 shlibpath_overrides_runpath=yes
9651 shlibpath_var=DYLD_LIBRARY_PATH
9652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9663 soname_spec='${libname}${release}${shared_ext}$major'
9664 shlibpath_var=LD_LIBRARY_PATH
9671 freebsd* | dragonfly*)
9672 # DragonFly does not have aout. When/if they implement a new
9673 # versioning mechanism, adjust this.
9674 if test -x /usr/bin/objformat; then
9675 objformat=`/usr/bin/objformat`
9678 freebsd[123]*) objformat=aout ;;
9682 version_type=freebsd-$objformat
9683 case $version_type in
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9694 shlibpath_var=LD_LIBRARY_PATH
9697 shlibpath_overrides_runpath=yes
9699 freebsd3.[01]* | freebsdelf3.[01]*)
9700 shlibpath_overrides_runpath=yes
9701 hardcode_into_libs=yes
9703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9705 shlibpath_overrides_runpath=no
9706 hardcode_into_libs=yes
9708 *) # from 4.6 on, and DragonFly
9709 shlibpath_overrides_runpath=yes
9710 hardcode_into_libs=yes
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 hardcode_into_libs=yes
9725 hpux9* | hpux10* | hpux11*)
9726 # Give a soname corresponding to the major version so that dld.sl refuses to
9727 # link against other versions.
9734 hardcode_into_libs=yes
9735 dynamic_linker="$host_os dld.so"
9736 shlibpath_var=LD_LIBRARY_PATH
9737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 if test "X$HPUX_IA64_MODE" = X32; then
9741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9749 hardcode_into_libs=yes
9750 dynamic_linker="$host_os dld.sl"
9751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754 soname_spec='${libname}${release}${shared_ext}$major'
9755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9760 dynamic_linker="$host_os dld.sl"
9761 shlibpath_var=SHLIB_PATH
9762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9767 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9768 postinstall_cmds='chmod 555 $lib'
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 shlibpath_overrides_runpath=no
9780 hardcode_into_libs=yes
9783 irix5* | irix6* | nonstopux*)
9785 nonstopux*) version_type=nonstopux ;;
9787 if test "$lt_cv_prog_gnu_ld" = yes; then
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9798 irix5* | nonstopux*)
9802 case $LD in # libtool.m4 will add one of these switches to LD
9803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9804 libsuff= shlibsuff= libmagic=32-bit;;
9805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9806 libsuff=32 shlibsuff=N32 libmagic=N32;;
9807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9808 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9809 *) libsuff= shlibsuff= libmagic=never-match;;
9813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9814 shlibpath_overrides_runpath=no
9815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9817 hardcode_into_libs=yes
9820 # No shared lib support for Linux oldld, aout, or coff.
9821 linux*oldld* | linux*aout* | linux*coff*)
9825 # This must be Linux ELF.
9826 linux* | k*bsd*-gnu)
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 soname_spec='${libname}${release}${shared_ext}$major'
9832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 shlibpath_overrides_runpath=no
9835 # Some binutils ld are patched to set DT_RUNPATH
9836 save_LDFLAGS=$LDFLAGS
9838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9855 rm -f conftest.$ac_objext conftest$ac_exeext
9856 if { (ac_try="$ac_link"
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863 (eval "$ac_link") 2>conftest.er1
9865 grep -v '^ *+' conftest.er1 >conftest.err
9867 cat conftest.err >&5
9868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } && {
9870 test -z "$ac_c_werror_flag" ||
9871 test ! -s conftest.err
9872 } && test -s conftest$ac_exeext && {
9873 test "$cross_compiling" = yes ||
9874 $as_test_x conftest$ac_exeext
9876 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9877 shlibpath_overrides_runpath=yes
9881 $as_echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9887 rm -rf conftest.dSYM
9888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9889 conftest$ac_exeext conftest.$ac_ext
9890 LDFLAGS=$save_LDFLAGS
9893 # This implies no fast_install, which is unacceptable.
9894 # Some rework will be needed to allow for fast_install
9895 # before this can be enabled.
9896 hardcode_into_libs=yes
9898 # Append ld.so.conf contents to the search path
9899 if test -f /etc/ld.so.conf; then
9900 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' ' '`
9901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9904 # We used to test for /lib/ld.so.1 and disable shared libraries on
9905 # powerpc, because MkLinux only supported shared libraries with the
9906 # GNU dynamic linker. Since this was broken with cross compilers,
9907 # most powerpc-linux boxes support dynamic linking these days and
9908 # people can always --disable-shared, the test was removed, and we
9909 # assume the GNU/Linux dynamic linker is in use.
9910 dynamic_linker='GNU/Linux ld.so'
9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9918 soname_spec='${libname}${release}${shared_ext}$major'
9919 shlibpath_var=LD_LIBRARY_PATH
9920 shlibpath_overrides_runpath=no
9921 hardcode_into_libs=yes
9922 dynamic_linker='NetBSD ld.elf_so'
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9932 dynamic_linker='NetBSD (a.out) ld.so'
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 dynamic_linker='NetBSD ld.elf_so'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=yes
9940 hardcode_into_libs=yes
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 shlibpath_var=LD_LIBRARY_PATH
9947 shlibpath_overrides_runpath=yes
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath=no
9958 hardcode_into_libs=yes
9959 dynamic_linker='ldqnx.so'
9964 sys_lib_dlsearch_path_spec="/usr/lib"
9966 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9968 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9969 *) need_version=no ;;
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9973 shlibpath_var=LD_LIBRARY_PATH
9974 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9976 openbsd2.[89] | openbsd2.[89].*)
9977 shlibpath_overrides_runpath=no
9980 shlibpath_overrides_runpath=yes
9984 shlibpath_overrides_runpath=yes
9989 libname_spec='$name'
9992 library_names_spec='$libname${shared_ext} $libname.a'
9993 dynamic_linker='OS/2 ld.exe'
9994 shlibpath_var=LIBPATH
9997 osf3* | osf4* | osf5*)
10001 soname_spec='${libname}${release}${shared_ext}$major'
10002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 shlibpath_var=LD_LIBRARY_PATH
10004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10005 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017 soname_spec='${libname}${release}${shared_ext}$major'
10018 shlibpath_var=LD_LIBRARY_PATH
10019 shlibpath_overrides_runpath=yes
10020 hardcode_into_libs=yes
10021 # ldd complains unless libraries are executable
10022 postinstall_cmds='chmod +x $lib'
10027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=yes
10031 if test "$with_gnu_ld" = yes; then
10039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040 soname_spec='${libname}${release}${shared_ext}$major'
10041 shlibpath_var=LD_LIBRARY_PATH
10042 case $host_vendor in
10044 shlibpath_overrides_runpath=no
10046 runpath_var=LD_RUN_PATH
10054 shlibpath_overrides_runpath=no
10055 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10061 if test -d /usr/nec ;then
10063 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10064 soname_spec='$libname${shared_ext}.$major'
10065 shlibpath_var=LD_LIBRARY_PATH
10069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10070 version_type=freebsd-elf
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 shlibpath_overrides_runpath=yes
10077 hardcode_into_libs=yes
10078 if test "$with_gnu_ld" = yes; then
10079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10084 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10088 sys_lib_dlsearch_path_spec='/usr/lib'
10092 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097 shlibpath_var=LD_LIBRARY_PATH
10098 shlibpath_overrides_runpath=no
10099 hardcode_into_libs=yes
10104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 shlibpath_var=LD_LIBRARY_PATH
10113 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10114 $as_echo "$dynamic_linker" >&6; }
10115 test "$dynamic_linker" = no && can_build_shared=no
10117 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10118 if test "$GCC" = yes; then
10119 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10122 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10123 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10125 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10126 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10215 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10216 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10218 if test -n "$hardcode_libdir_flag_spec" ||
10219 test -n "$runpath_var" ||
10220 test "X$hardcode_automatic" = "Xyes" ; then
10222 # We can hardcode non-existent directories.
10223 if test "$hardcode_direct" != no &&
10224 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10225 # have to relink, otherwise we might link with an installed library
10226 # when we should be linking with a yet-to-be-installed one
10227 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10228 test "$hardcode_minus_L" != no; then
10229 # Linking always hardcodes the temporary library directory.
10230 hardcode_action=relink
10232 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10233 hardcode_action=immediate
10236 # We cannot hardcode anything, or else we can only hardcode existing
10238 hardcode_action=unsupported
10240 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10241 $as_echo "$hardcode_action" >&6; }
10243 if test "$hardcode_action" = relink ||
10244 test "$inherit_rpath" = yes; then
10245 # Fast installation is not supported
10246 enable_fast_install=no
10247 elif test "$shlibpath_overrides_runpath" = yes ||
10248 test "$enable_shared" = no; then
10249 # Fast installation is not necessary
10250 enable_fast_install=needless
10258 if test "x$enable_dlopen" != xyes; then
10259 enable_dlopen=unknown
10260 enable_dlopen_self=unknown
10261 enable_dlopen_self_static=unknown
10268 lt_cv_dlopen="load_add_on"
10270 lt_cv_dlopen_self=yes
10273 mingw* | pw32* | cegcc*)
10274 lt_cv_dlopen="LoadLibrary"
10279 lt_cv_dlopen="dlopen"
10284 # if libdl is installed we need to link against it
10285 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10286 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10287 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10288 $as_echo_n "(cached) " >&6
10290 ac_check_lib_save_LIBS=$LIBS
10292 cat >conftest.$ac_ext <<_ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10299 /* Override any GCC internal prototype to avoid an error.
10300 Use char because int might match the return type of a GCC
10301 builtin and then its argument prototype would still apply. */
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (ac_try="$ac_link"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10321 $as_echo "$ac_try_echo") >&5
10322 (eval "$ac_link") 2>conftest.er1
10324 grep -v '^ *+' conftest.er1 >conftest.err
10326 cat conftest.err >&5
10327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } && {
10329 test -z "$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 } && test -s conftest$ac_exeext && {
10332 test "$cross_compiling" = yes ||
10333 $as_test_x conftest$ac_exeext
10335 ac_cv_lib_dl_dlopen=yes
10337 $as_echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10340 ac_cv_lib_dl_dlopen=no
10343 rm -rf conftest.dSYM
10344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10349 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10350 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10351 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10354 lt_cv_dlopen="dyld"
10356 lt_cv_dlopen_self=yes
10363 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10364 $as_echo_n "checking for shl_load... " >&6; }
10365 if test "${ac_cv_func_shl_load+set}" = set; then
10366 $as_echo_n "(cached) " >&6
10368 cat >conftest.$ac_ext <<_ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h. */
10374 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10376 #define shl_load innocuous_shl_load
10378 /* System header to define __stub macros and hopefully few prototypes,
10379 which can conflict with char shl_load (); below.
10380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381 <limits.h> exists even on freestanding compilers. */
10384 # include <limits.h>
10386 # include <assert.h>
10391 /* Override any GCC internal prototype to avoid an error.
10392 Use char because int might match the return type of a GCC
10393 builtin and then its argument prototype would still apply. */
10398 /* The GNU C library defines this for functions which it implements
10399 to always fail with ENOSYS. Some functions are actually named
10400 something starting with __ and the normal name is an alias. */
10401 #if defined __stub_shl_load || defined __stub___shl_load
10408 return shl_load ();
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10420 $as_echo "$ac_try_echo") >&5
10421 (eval "$ac_link") 2>conftest.er1
10423 grep -v '^ *+' conftest.er1 >conftest.err
10425 cat conftest.err >&5
10426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && {
10428 test -z "$ac_c_werror_flag" ||
10429 test ! -s conftest.err
10430 } && test -s conftest$ac_exeext && {
10431 test "$cross_compiling" = yes ||
10432 $as_test_x conftest$ac_exeext
10434 ac_cv_func_shl_load=yes
10436 $as_echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_cv_func_shl_load=no
10442 rm -rf conftest.dSYM
10443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10444 conftest$ac_exeext conftest.$ac_ext
10446 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10447 $as_echo "$ac_cv_func_shl_load" >&6; }
10448 if test "x$ac_cv_func_shl_load" = x""yes; then
10449 lt_cv_dlopen="shl_load"
10451 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10453 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10454 $as_echo_n "(cached) " >&6
10456 ac_check_lib_save_LIBS=$LIBS
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10475 return shl_load ();
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10487 $as_echo "$ac_try_echo") >&5
10488 (eval "$ac_link") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1 >conftest.err
10492 cat conftest.err >&5
10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest$ac_exeext && {
10498 test "$cross_compiling" = yes ||
10499 $as_test_x conftest$ac_exeext
10501 ac_cv_lib_dld_shl_load=yes
10503 $as_echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 ac_cv_lib_dld_shl_load=no
10509 rm -rf conftest.dSYM
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512 LIBS=$ac_check_lib_save_LIBS
10514 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10515 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10516 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10517 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10519 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10520 $as_echo_n "checking for dlopen... " >&6; }
10521 if test "${ac_cv_func_dlopen+set}" = set; then
10522 $as_echo_n "(cached) " >&6
10524 cat >conftest.$ac_ext <<_ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10532 #define dlopen innocuous_dlopen
10534 /* System header to define __stub macros and hopefully few prototypes,
10535 which can conflict with char dlopen (); below.
10536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10537 <limits.h> exists even on freestanding compilers. */
10540 # include <limits.h>
10542 # include <assert.h>
10547 /* Override any GCC internal prototype to avoid an error.
10548 Use char because int might match the return type of a GCC
10549 builtin and then its argument prototype would still apply. */
10554 /* The GNU C library defines this for functions which it implements
10555 to always fail with ENOSYS. Some functions are actually named
10556 something starting with __ and the normal name is an alias. */
10557 #if defined __stub_dlopen || defined __stub___dlopen
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (ac_try="$ac_link"
10571 case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576 $as_echo "$ac_try_echo") >&5
10577 (eval "$ac_link") 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
10581 cat conftest.err >&5
10582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest$ac_exeext && {
10587 test "$cross_compiling" = yes ||
10588 $as_test_x conftest$ac_exeext
10590 ac_cv_func_dlopen=yes
10592 $as_echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 ac_cv_func_dlopen=no
10598 rm -rf conftest.dSYM
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10602 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10603 $as_echo "$ac_cv_func_dlopen" >&6; }
10604 if test "x$ac_cv_func_dlopen" = x""yes; then
10605 lt_cv_dlopen="dlopen"
10607 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10608 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10609 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10610 $as_echo_n "(cached) " >&6
10612 ac_check_lib_save_LIBS=$LIBS
10614 cat >conftest.$ac_ext <<_ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10621 /* Override any GCC internal prototype to avoid an error.
10622 Use char because int might match the return type of a GCC
10623 builtin and then its argument prototype would still apply. */
10636 rm -f conftest.$ac_objext conftest$ac_exeext
10637 if { (ac_try="$ac_link"
10638 case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10643 $as_echo "$ac_try_echo") >&5
10644 (eval "$ac_link") 2>conftest.er1
10646 grep -v '^ *+' conftest.er1 >conftest.err
10648 cat conftest.err >&5
10649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } && {
10651 test -z "$ac_c_werror_flag" ||
10652 test ! -s conftest.err
10653 } && test -s conftest$ac_exeext && {
10654 test "$cross_compiling" = yes ||
10655 $as_test_x conftest$ac_exeext
10657 ac_cv_lib_dl_dlopen=yes
10659 $as_echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 ac_cv_lib_dl_dlopen=no
10665 rm -rf conftest.dSYM
10666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10667 conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10670 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10672 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10675 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10676 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10677 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10678 $as_echo_n "(cached) " >&6
10680 ac_check_lib_save_LIBS=$LIBS
10681 LIBS="-lsvld $LIBS"
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (ac_try="$ac_link"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10711 $as_echo "$ac_try_echo") >&5
10712 (eval "$ac_link") 2>conftest.er1
10714 grep -v '^ *+' conftest.er1 >conftest.err
10716 cat conftest.err >&5
10717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } && {
10719 test -z "$ac_c_werror_flag" ||
10720 test ! -s conftest.err
10721 } && test -s conftest$ac_exeext && {
10722 test "$cross_compiling" = yes ||
10723 $as_test_x conftest$ac_exeext
10725 ac_cv_lib_svld_dlopen=yes
10727 $as_echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_lib_svld_dlopen=no
10733 rm -rf conftest.dSYM
10734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10739 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10740 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10741 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10743 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10744 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10745 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10746 $as_echo_n "(cached) " >&6
10748 ac_check_lib_save_LIBS=$LIBS
10750 cat >conftest.$ac_ext <<_ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10757 /* Override any GCC internal prototype to avoid an error.
10758 Use char because int might match the return type of a GCC
10759 builtin and then its argument prototype would still apply. */
10767 return dld_link ();
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779 $as_echo "$ac_try_echo") >&5
10780 (eval "$ac_link") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } && {
10787 test -z "$ac_c_werror_flag" ||
10788 test ! -s conftest.err
10789 } && test -s conftest$ac_exeext && {
10790 test "$cross_compiling" = yes ||
10791 $as_test_x conftest$ac_exeext
10793 ac_cv_lib_dld_dld_link=yes
10795 $as_echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_lib_dld_dld_link=no
10801 rm -rf conftest.dSYM
10802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10803 conftest$ac_exeext conftest.$ac_ext
10804 LIBS=$ac_check_lib_save_LIBS
10806 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10807 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10808 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10809 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10830 if test "x$lt_cv_dlopen" != xno; then
10836 case $lt_cv_dlopen in
10838 save_CPPFLAGS="$CPPFLAGS"
10839 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10841 save_LDFLAGS="$LDFLAGS"
10842 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10845 LIBS="$lt_cv_dlopen_libs $LIBS"
10847 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10848 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10849 if test "${lt_cv_dlopen_self+set}" = set; then
10850 $as_echo_n "(cached) " >&6
10852 if test "$cross_compiling" = yes; then :
10853 lt_cv_dlopen_self=cross
10855 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10856 lt_status=$lt_dlunknown
10857 cat > conftest.$ac_ext <<_LT_EOF
10858 #line 10858 "configure"
10859 #include "confdefs.h"
10868 # define LT_DLGLOBAL RTLD_GLOBAL
10871 # define LT_DLGLOBAL DL_GLOBAL
10873 # define LT_DLGLOBAL 0
10877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10878 find out it does not work in some platform. */
10879 #ifndef LT_DLLAZY_OR_NOW
10881 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10884 # define LT_DLLAZY_OR_NOW DL_LAZY
10887 # define LT_DLLAZY_OR_NOW RTLD_NOW
10890 # define LT_DLLAZY_OR_NOW DL_NOW
10892 # define LT_DLLAZY_OR_NOW 0
10899 void fnord() { int i=42;}
10902 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10903 int status = $lt_dlunknown;
10907 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10908 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10909 /* dlclose (self); */
10917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10918 (eval $ac_link) 2>&5
10920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10922 (./conftest; exit; ) >&5 2>/dev/null
10924 case x$lt_status in
10925 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10926 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10927 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10930 # compilation failed
10931 lt_cv_dlopen_self=no
10938 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10939 $as_echo "$lt_cv_dlopen_self" >&6; }
10941 if test "x$lt_cv_dlopen_self" = xyes; then
10942 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10943 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10944 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10945 if test "${lt_cv_dlopen_self_static+set}" = set; then
10946 $as_echo_n "(cached) " >&6
10948 if test "$cross_compiling" = yes; then :
10949 lt_cv_dlopen_self_static=cross
10951 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10952 lt_status=$lt_dlunknown
10953 cat > conftest.$ac_ext <<_LT_EOF
10954 #line 10954 "configure"
10955 #include "confdefs.h"
10964 # define LT_DLGLOBAL RTLD_GLOBAL
10967 # define LT_DLGLOBAL DL_GLOBAL
10969 # define LT_DLGLOBAL 0
10973 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10974 find out it does not work in some platform. */
10975 #ifndef LT_DLLAZY_OR_NOW
10977 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10980 # define LT_DLLAZY_OR_NOW DL_LAZY
10983 # define LT_DLLAZY_OR_NOW RTLD_NOW
10986 # define LT_DLLAZY_OR_NOW DL_NOW
10988 # define LT_DLLAZY_OR_NOW 0
10995 void fnord() { int i=42;}
10998 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10999 int status = $lt_dlunknown;
11003 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11004 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11005 /* dlclose (self); */
11013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11014 (eval $ac_link) 2>&5
11016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11018 (./conftest; exit; ) >&5 2>/dev/null
11020 case x$lt_status in
11021 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11022 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11023 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11026 # compilation failed
11027 lt_cv_dlopen_self_static=no
11034 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11035 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11038 CPPFLAGS="$save_CPPFLAGS"
11039 LDFLAGS="$save_LDFLAGS"
11044 case $lt_cv_dlopen_self in
11045 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11046 *) enable_dlopen_self=unknown ;;
11049 case $lt_cv_dlopen_self_static in
11050 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11051 *) enable_dlopen_self_static=unknown ;;
11073 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11074 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11075 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11076 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11077 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11078 { $as_echo "$as_me:$LINENO: result: yes" >&5
11079 $as_echo "yes" >&6; }
11081 # FIXME - insert some real tests, host_os isn't really good enough
11084 if test -n "$STRIP" ; then
11085 striplib="$STRIP -x"
11086 old_striplib="$STRIP -S"
11087 { $as_echo "$as_me:$LINENO: result: yes" >&5
11088 $as_echo "yes" >&6; }
11090 { $as_echo "$as_me:$LINENO: result: no" >&5
11091 $as_echo "no" >&6; }
11095 { $as_echo "$as_me:$LINENO: result: no" >&5
11096 $as_echo "no" >&6; }
11112 # Report which library types will actually be built
11113 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11115 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11116 $as_echo "$can_build_shared" >&6; }
11118 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11119 $as_echo_n "checking whether to build shared libraries... " >&6; }
11120 test "$can_build_shared" = "no" && enable_shared=no
11122 # On AIX, shared libraries and static libraries use the same namespace, and
11123 # are all built from PIC.
11126 test "$enable_shared" = yes && enable_static=no
11127 if test -n "$RANLIB"; then
11128 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11129 postinstall_cmds='$RANLIB $lib'
11134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11135 test "$enable_shared" = yes && enable_static=no
11139 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11140 $as_echo "$enable_shared" >&6; }
11142 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11143 $as_echo_n "checking whether to build static libraries... " >&6; }
11144 # Make sure either enable_shared or enable_static is yes.
11145 test "$enable_shared" = yes || enable_static=yes
11146 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11147 $as_echo "$enable_static" >&6; }
11154 ac_cpp='$CPP $CPPFLAGS'
11155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11173 ac_config_commands="$ac_config_commands libtool"
11178 # Only expand once:
11182 # Extract the first word of "doxygen", so it can be a program name with args.
11183 set dummy doxygen; ac_word=$2
11184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_prog_DOXYGEN+set}" = set; then
11187 $as_echo_n "(cached) " >&6
11189 if test -n "$DOXYGEN"; then
11190 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_DOXYGEN="true"
11200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11207 test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
11210 DOXYGEN=$ac_cv_prog_DOXYGEN
11211 if test -n "$DOXYGEN"; then
11212 { $as_echo "$as_me:$LINENO: result: $DOXYGEN" >&5
11213 $as_echo "$DOXYGEN" >&6; }
11215 { $as_echo "$as_me:$LINENO: result: no" >&5
11216 $as_echo "no" >&6; }
11220 if test "$DOXYGEN" = true; then
11229 # Checks for header files.
11230 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11231 $as_echo_n "checking for ANSI C header files... " >&6; }
11232 if test "${ac_cv_header_stdc+set}" = set; then
11233 $as_echo_n "(cached) " >&6
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <stdlib.h>
11242 #include <stdarg.h>
11243 #include <string.h>
11254 rm -f conftest.$ac_objext
11255 if { (ac_try="$ac_compile"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11261 $as_echo "$ac_try_echo") >&5
11262 (eval "$ac_compile") 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest.$ac_objext; then
11272 ac_cv_header_stdc=yes
11274 $as_echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_cv_header_stdc=no
11280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282 if test $ac_cv_header_stdc = yes; then
11283 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 #include <string.h>
11293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11294 $EGREP "memchr" >/dev/null 2>&1; then
11297 ac_cv_header_stdc=no
11303 if test $ac_cv_header_stdc = yes; then
11304 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11305 cat >conftest.$ac_ext <<_ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11311 #include <stdlib.h>
11314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11315 $EGREP "free" >/dev/null 2>&1; then
11318 ac_cv_header_stdc=no
11324 if test $ac_cv_header_stdc = yes; then
11325 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11326 if test "$cross_compiling" = yes; then
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11336 #include <stdlib.h>
11337 #if ((' ' & 0x0FF) == 0x020)
11338 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11339 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11341 # define ISLOWER(c) \
11342 (('a' <= (c) && (c) <= 'i') \
11343 || ('j' <= (c) && (c) <= 'r') \
11344 || ('s' <= (c) && (c) <= 'z'))
11345 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11353 for (i = 0; i < 256; i++)
11354 if (XOR (islower (i), ISLOWER (i))
11355 || toupper (i) != TOUPPER (i))
11360 rm -f conftest$ac_exeext
11361 if { (ac_try="$ac_link"
11362 case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11367 $as_echo "$ac_try_echo") >&5
11368 (eval "$ac_link") 2>&5
11370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11372 { (case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11377 $as_echo "$ac_try_echo") >&5
11378 (eval "$ac_try") 2>&5
11380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11384 $as_echo "$as_me: program exited with status $ac_status" >&5
11385 $as_echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11388 ( exit $ac_status )
11389 ac_cv_header_stdc=no
11391 rm -rf conftest.dSYM
11392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11398 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11399 $as_echo "$ac_cv_header_stdc" >&6; }
11400 if test $ac_cv_header_stdc = yes; then
11402 cat >>confdefs.h <<\_ACEOF
11403 #define STDC_HEADERS 1
11409 for ac_header in stdlib.h
11411 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11414 $as_echo_n "checking for $ac_header... " >&6; }
11415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11416 $as_echo_n "(cached) " >&6
11418 ac_res=`eval 'as_val=${'$as_ac_Header'}
11419 $as_echo "$as_val"'`
11420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11421 $as_echo "$ac_res" >&6; }
11423 # Is the header compilable?
11424 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11425 $as_echo_n "checking $ac_header usability... " >&6; }
11426 cat >conftest.$ac_ext <<_ACEOF
11429 cat confdefs.h >>conftest.$ac_ext
11430 cat >>conftest.$ac_ext <<_ACEOF
11431 /* end confdefs.h. */
11432 $ac_includes_default
11433 #include <$ac_header>
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442 $as_echo "$ac_try_echo") >&5
11443 (eval "$ac_compile") 2>conftest.er1
11445 grep -v '^ *+' conftest.er1 >conftest.err
11447 cat conftest.err >&5
11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest.$ac_objext; then
11453 ac_header_compiler=yes
11455 $as_echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11458 ac_header_compiler=no
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463 $as_echo "$ac_header_compiler" >&6; }
11465 # Is the header present?
11466 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467 $as_echo_n "checking $ac_header presence... " >&6; }
11468 cat >conftest.$ac_ext <<_ACEOF
11471 cat confdefs.h >>conftest.$ac_ext
11472 cat >>conftest.$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11474 #include <$ac_header>
11476 if { (ac_try="$ac_cpp conftest.$ac_ext"
11477 case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11482 $as_echo "$ac_try_echo") >&5
11483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1 >conftest.err
11487 cat conftest.err >&5
11488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } >/dev/null && {
11490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11493 ac_header_preproc=yes
11495 $as_echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 ac_header_preproc=no
11501 rm -f conftest.err conftest.$ac_ext
11502 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11503 $as_echo "$ac_header_preproc" >&6; }
11505 # So? What about this header?
11506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11509 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11511 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11512 ac_header_preproc=yes
11515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11516 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11518 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11520 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11522 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11526 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11528 ## ------------------------------------------------------------ ##
11529 ## Report this to http://pyyaml.org/newticket?component=libyaml ##
11530 ## ------------------------------------------------------------ ##
11532 ) | sed "s/^/$as_me: WARNING: /" >&2
11535 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11536 $as_echo_n "checking for $ac_header... " >&6; }
11537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11538 $as_echo_n "(cached) " >&6
11540 eval "$as_ac_Header=\$ac_header_preproc"
11542 ac_res=`eval 'as_val=${'$as_ac_Header'}
11543 $as_echo "$as_val"'`
11544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11545 $as_echo "$ac_res" >&6; }
11548 as_val=`eval 'as_val=${'$as_ac_Header'}
11549 $as_echo "$as_val"'`
11550 if test "x$as_val" = x""yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11560 # Checks for typedefs, structures, and compiler characteristics.
11561 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11562 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11563 if test "${ac_cv_c_const+set}" = set; then
11564 $as_echo_n "(cached) " >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11576 /* FIXME: Include the comments suggested by Paul. */
11577 #ifndef __cplusplus
11578 /* Ultrix mips cc rejects this. */
11579 typedef int charset[2];
11581 /* SunOS 4.1.1 cc rejects this. */
11582 char const *const *pcpcc;
11584 /* NEC SVR4.0.2 mips cc rejects this. */
11585 struct point {int x, y;};
11586 static struct point const zero = {0,0};
11587 /* AIX XL C 1.02.0.0 rejects this.
11588 It does not let you subtract one const X* pointer from another in
11589 an arm of an if-expression whose if-part is not a constant
11591 const char *g = "string";
11592 pcpcc = &g + (g ? g-g : 0);
11593 /* HPUX 7.0 cc rejects these. */
11595 ppc = (char**) pcpcc;
11596 pcpcc = (char const *const *) ppc;
11597 { /* SCO 3.2v4 cc rejects this. */
11599 char const *s = 0 ? (char *) 0 : (char const *) 0;
11604 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11605 int x[] = {25, 17};
11606 const int *foo = &x[0];
11609 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11610 typedef const int *iptr;
11614 { /* AIX XL C 1.02.0.0 rejects this saying
11615 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11616 struct s { int j; const int *ap[3]; };
11617 struct s *b; b->j = 5;
11619 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11620 const int foo = 10;
11621 if (!foo) return 0;
11623 return !cs[0] && !zero.x;
11630 rm -f conftest.$ac_objext
11631 if { (ac_try="$ac_compile"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637 $as_echo "$ac_try_echo") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11650 $as_echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11659 $as_echo "$ac_cv_c_const" >&6; }
11660 if test $ac_cv_c_const = no; then
11662 cat >>confdefs.h <<\_ACEOF
11668 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
11669 $as_echo_n "checking for size_t... " >&6; }
11670 if test "${ac_cv_type_size_t+set}" = set; then
11671 $as_echo_n "(cached) " >&6
11673 ac_cv_type_size_t=no
11674 cat >conftest.$ac_ext <<_ACEOF
11677 cat confdefs.h >>conftest.$ac_ext
11678 cat >>conftest.$ac_ext <<_ACEOF
11679 /* end confdefs.h. */
11680 $ac_includes_default
11684 if (sizeof (size_t))
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11697 $as_echo "$ac_try_echo") >&5
11698 (eval "$ac_compile") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } && {
11705 test -z "$ac_c_werror_flag" ||
11706 test ! -s conftest.err
11707 } && test -s conftest.$ac_objext; then
11708 cat >conftest.$ac_ext <<_ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 $ac_includes_default
11718 if (sizeof ((size_t)))
11724 rm -f conftest.$ac_objext
11725 if { (ac_try="$ac_compile"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11731 $as_echo "$ac_try_echo") >&5
11732 (eval "$ac_compile") 2>conftest.er1
11734 grep -v '^ *+' conftest.er1 >conftest.err
11736 cat conftest.err >&5
11737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); } && {
11739 test -z "$ac_c_werror_flag" ||
11740 test ! -s conftest.err
11741 } && test -s conftest.$ac_objext; then
11744 $as_echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11747 ac_cv_type_size_t=yes
11750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11752 $as_echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11761 $as_echo "$ac_cv_type_size_t" >&6; }
11762 if test "x$ac_cv_type_size_t" = x""yes; then
11766 cat >>confdefs.h <<_ACEOF
11767 #define size_t unsigned int
11773 # Define Makefiles.
11774 ac_config_files="$ac_config_files include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile"
11777 # Generate the "configure" script.
11778 cat >confcache <<\_ACEOF
11779 # This file is a shell script that caches the results of configure
11780 # tests run on this system so they can be shared between configure
11781 # scripts and configure runs, see configure's option --config-cache.
11782 # It is not useful on other systems. If it contains results you don't
11783 # want to keep, you may remove or edit it.
11785 # config.status only pays attention to the cache file if you give it
11786 # the --recheck option to rerun configure.
11788 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11789 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11790 # following values.
11794 # The following way of writing the cache mishandles newlines in values,
11795 # but we know of no workaround that is simple, portable, and efficient.
11796 # So, we kill variables containing newlines.
11797 # Ultrix sh set writes to stderr and can't be redirected directly,
11798 # and sets the high bit in the cache file unless we assign to the vars.
11800 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11801 eval ac_val=\$$ac_var
11805 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11806 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11809 _ | IFS | as_nl) ;; #(
11810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11811 *) $as_unset $ac_var ;;
11817 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11818 *${as_nl}ac_space=\ *)
11819 # `set' does not quote correctly, so add quotes (double-quote
11820 # substitution turns \\\\ into \\, and sed turns \\ into \).
11823 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11826 # `set' quotes correctly as required by POSIX, so do not add quotes.
11827 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11836 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11838 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11840 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11841 if test -w "$cache_file"; then
11842 test "x$cache_file" != "x/dev/null" &&
11843 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11844 $as_echo "$as_me: updating cache $cache_file" >&6;}
11845 cat confcache >$cache_file
11847 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11848 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11853 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11854 # Let make expand exec_prefix.
11855 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11857 DEFS=-DHAVE_CONFIG_H
11861 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11862 # 1. Remove the extension, and $U if already installed.
11863 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11864 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11865 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11866 # will be set to the directory where LIBOBJS objects are built.
11867 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11868 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11870 LIBOBJS=$ac_libobjs
11872 LTLIBOBJS=$ac_ltlibobjs
11875 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11876 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11877 Usually this means the macro was only invoked conditionally." >&5
11878 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11879 Usually this means the macro was only invoked conditionally." >&2;}
11880 { (exit 1); exit 1; }; }
11882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11883 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11884 Usually this means the macro was only invoked conditionally." >&5
11885 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11886 Usually this means the macro was only invoked conditionally." >&2;}
11887 { (exit 1); exit 1; }; }
11889 if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
11890 { { $as_echo "$as_me:$LINENO: error: conditional \"DOXYGEN\" was never defined.
11891 Usually this means the macro was only invoked conditionally." >&5
11892 $as_echo "$as_me: error: conditional \"DOXYGEN\" was never defined.
11893 Usually this means the macro was only invoked conditionally." >&2;}
11894 { (exit 1); exit 1; }; }
11897 : ${CONFIG_STATUS=./config.status}
11899 ac_clean_files_save=$ac_clean_files
11900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11901 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11903 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11905 # Generated by $as_me.
11906 # Run this file to recreate the current configuration.
11907 # Compiler output produced by configure, useful for debugging
11908 # configure, is in config.log if it exists.
11911 ac_cs_recheck=false
11913 SHELL=\${CONFIG_SHELL-$SHELL}
11916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11917 ## --------------------- ##
11918 ## M4sh Initialization. ##
11919 ## --------------------- ##
11921 # Be more Bourne compatible
11922 DUALCASE=1; export DUALCASE # for MKS sh
11923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11927 # is contrary to our usage. Disable this feature.
11928 alias -g '${1+"$@"}'='"$@"'
11929 setopt NO_GLOB_SUBST
11931 case `(set -o) 2>/dev/null` in
11932 *posix*) set -o posix ;;
11941 # Avoid depending upon Character Ranges.
11942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11945 as_cr_digits='0123456789'
11946 as_cr_alnum=$as_cr_Letters$as_cr_digits
11951 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11952 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11954 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11955 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11956 as_echo='printf %s\n'
11957 as_echo_n='printf %s'
11959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11961 as_echo_n='/usr/ucb/echo -n'
11963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11964 as_echo_n_body='eval
11968 expr "X$arg" : "X\\(.*\\)$as_nl";
11969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11973 export as_echo_n_body
11974 as_echo_n='sh -c $as_echo_n_body as_echo'
11976 export as_echo_body
11977 as_echo='sh -c $as_echo_body as_echo'
11980 # The user is always right.
11981 if test "${PATH_SEPARATOR+set}" != set; then
11983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11989 # Support unset when possible.
11990 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11998 # We need space, tab and new line, in precisely that order. Quoting is
11999 # there to prevent editors from complaining about space-tab.
12000 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12001 # splitting by setting IFS to empty value.)
12004 # Find who we are. Look in the path if we contain no directory separator.
12006 *[\\/]* ) as_myself=$0 ;;
12007 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12011 test -z "$as_dir" && as_dir=.
12012 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12018 # We did not find ourselves, most probably we were run as `sh COMMAND'
12019 # in which case we are not to be found in the path.
12020 if test "x$as_myself" = x; then
12023 if test ! -f "$as_myself"; then
12024 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12025 { (exit 1); exit 1; }
12028 # Work around bugs in pre-3.0 UWIN ksh.
12029 for as_var in ENV MAIL MAILPATH
12030 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12042 # Required to use basename.
12043 if expr a : '\(a\)' >/dev/null 2>&1 &&
12044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12050 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12051 as_basename=basename
12057 # Name of the executable.
12058 as_me=`$as_basename -- "$0" ||
12059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12060 X"$0" : 'X\(//\)$' \| \
12061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12063 sed '/^.*\/\([^/][^/]*\)\/*$/{
12082 as_lineno_1=$LINENO
12083 as_lineno_2=$LINENO
12084 test "x$as_lineno_1" != "x$as_lineno_2" &&
12085 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12088 # uniformly replaced by the line number. The first 'sed' inserts a
12089 # line-number line after each line using $LINENO; the second 'sed'
12090 # does the real work. The second script uses 'N' to pair each
12091 # line-number line with the line containing $LINENO, and appends
12092 # trailing '-' during substitution so that $LINENO is not a special
12093 # case at line end.
12094 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12095 # scripts with optimization help from Paolo Bonzini. Blame Lee
12096 # E. McMahon (1931-1989) for sed's syntax. :-)
12108 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12111 ' >$as_me.lineno &&
12112 chmod +x "$as_me.lineno" ||
12113 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12114 { (exit 1); exit 1; }; }
12116 # Don't try to exec as it changes $[0], causing all sort of problems
12117 # (the dirname of $[0] is not the place where we might find the
12118 # original and so on. Autoconf is especially sensitive to this).
12119 . "./$as_me.lineno"
12120 # Exit status is that of the last command.
12125 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12131 ECHO_C= ECHO_N= ECHO_T=
12132 case `echo -n x` in
12134 case `echo 'x\c'` in
12135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12141 if expr a : '\(a\)' >/dev/null 2>&1 &&
12142 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12148 rm -f conf$$ conf$$.exe conf$$.file
12149 if test -d conf$$.dir; then
12150 rm -f conf$$.dir/conf$$.file
12153 mkdir conf$$.dir 2>/dev/null
12155 if (echo >conf$$.file) 2>/dev/null; then
12156 if ln -s conf$$.file conf$$ 2>/dev/null; then
12158 # ... but there are two gotchas:
12159 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12160 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12161 # In both cases, we have to default to `cp -p'.
12162 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12164 elif ln conf$$.file conf$$ 2>/dev/null; then
12172 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12173 rmdir conf$$.dir 2>/dev/null
12175 if mkdir -p . 2>/dev/null; then
12178 test -d ./-p && rmdir ./-p
12182 if test -x / >/dev/null 2>&1; then
12183 as_test_x='test -x'
12185 if ls -dL / >/dev/null 2>&1; then
12192 if test -d "$1"; then
12198 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12199 ???[sx]*):;;*)false;;esac;fi
12203 as_executable_p=$as_test_x
12205 # Sed expression to map a string onto a valid CPP name.
12206 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12208 # Sed expression to map a string onto a valid variable name.
12209 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12214 # Save the log message, to keep $[0] and so on meaningful, and to
12215 # report actual input values of CONFIG_FILES etc. instead of their
12216 # values after options handling.
12218 This file was extended by yaml $as_me 0.1.3, which was
12219 generated by GNU Autoconf 2.63. Invocation command line was
12221 CONFIG_FILES = $CONFIG_FILES
12222 CONFIG_HEADERS = $CONFIG_HEADERS
12223 CONFIG_LINKS = $CONFIG_LINKS
12224 CONFIG_COMMANDS = $CONFIG_COMMANDS
12227 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12232 case $ac_config_files in *"
12233 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12236 case $ac_config_headers in *"
12237 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12242 # Files that config.status was made for.
12243 config_files="$ac_config_files"
12244 config_headers="$ac_config_headers"
12245 config_commands="$ac_config_commands"
12249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251 \`$as_me' instantiates files from templates according to the
12252 current configuration.
12254 Usage: $0 [OPTION]... [FILE]...
12256 -h, --help print this help, then exit
12257 -V, --version print version number and configuration settings, then exit
12258 -q, --quiet, --silent
12259 do not print progress messages
12260 -d, --debug don't remove temporary files
12261 --recheck update $as_me by reconfiguring in the same conditions
12262 --file=FILE[:TEMPLATE]
12263 instantiate the configuration file FILE
12264 --header=FILE[:TEMPLATE]
12265 instantiate the configuration header FILE
12267 Configuration files:
12270 Configuration headers:
12273 Configuration commands:
12276 Report bugs to <bug-autoconf@gnu.org>."
12279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12281 yaml config.status 0.1.3
12282 configured by $0, generated by GNU Autoconf 2.63,
12283 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12285 Copyright (C) 2008 Free Software Foundation, Inc.
12286 This config.status script is free software; the Free Software Foundation
12287 gives unlimited permission to copy, distribute and modify it."
12294 test -n "\$AWK" || AWK=awk
12297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298 # The default lists apply if the user does not specify any file.
12304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12305 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12316 # Handling of the options.
12317 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12319 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12320 $as_echo "$ac_cs_version"; exit ;;
12321 --debug | --debu | --deb | --de | --d | -d )
12323 --file | --fil | --fi | --f )
12326 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12328 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12329 ac_need_defaults=false;;
12330 --header | --heade | --head | --hea )
12333 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12335 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12336 ac_need_defaults=false;;
12338 # Conflict between --help and --header
12339 { $as_echo "$as_me: error: ambiguous option: $1
12340 Try \`$0 --help' for more information." >&2
12341 { (exit 1); exit 1; }; };;
12342 --help | --hel | -h )
12343 $as_echo "$ac_cs_usage"; exit ;;
12344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12345 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12348 # This is an error.
12349 -*) { $as_echo "$as_me: error: unrecognized option: $1
12350 Try \`$0 --help' for more information." >&2
12351 { (exit 1); exit 1; }; } ;;
12353 *) ac_config_targets="$ac_config_targets $1"
12354 ac_need_defaults=false ;;
12360 ac_configure_extra_args=
12362 if $ac_cs_silent; then
12364 ac_configure_extra_args="$ac_configure_extra_args --silent"
12368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12369 if \$ac_cs_recheck; then
12370 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12373 CONFIG_SHELL='$SHELL'
12374 export CONFIG_SHELL
12379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12384 ## Running $as_me. ##
12390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12394 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12397 # The HP-UX ksh and POSIX shell print the target directory to stdout
12398 # if CDPATH is set.
12399 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12401 sed_quote_subst='$sed_quote_subst'
12402 double_quote_subst='$double_quote_subst'
12403 delay_variable_subst='$delay_variable_subst'
12404 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12405 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12406 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12407 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12408 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12409 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12410 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12411 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12412 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12413 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12414 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12415 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12416 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12417 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12418 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12419 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12420 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12421 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12422 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12423 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12424 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12425 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12426 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12427 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12428 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12429 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12430 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12431 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12432 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12433 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12434 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12435 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12436 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12437 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12438 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12439 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12440 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12441 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12442 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12443 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12444 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12445 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12446 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12447 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12448 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"`'
12449 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"`'
12450 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12451 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12452 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12453 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12454 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12455 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12456 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12457 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12458 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12459 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12460 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12461 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12462 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12463 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12464 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12465 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12466 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12467 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12468 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12469 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12470 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12471 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12472 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12473 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12474 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12475 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12476 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12477 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12478 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12479 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12480 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12481 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12482 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12483 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12484 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12485 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12486 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12487 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12488 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12489 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12490 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12491 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12492 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12493 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12494 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12495 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12496 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12497 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12498 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12499 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12500 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12501 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12502 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12503 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12504 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12505 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12506 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12507 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12508 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12509 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12510 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12511 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12512 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12513 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12514 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12515 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12516 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12517 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12518 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12519 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12520 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12521 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12524 LTCFLAGS='$LTCFLAGS'
12525 compiler='$compiler_DEFAULT'
12527 # Quote evaled strings.
12539 deplibs_check_method \
12548 lt_cv_sys_global_symbol_pipe \
12549 lt_cv_sys_global_symbol_to_cdecl \
12550 lt_cv_sys_global_symbol_to_c_name_address \
12551 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12554 lt_prog_compiler_no_builtin_flag \
12555 lt_prog_compiler_wl \
12556 lt_prog_compiler_pic \
12557 lt_prog_compiler_static \
12558 lt_cv_prog_compiler_c_o \
12566 export_dynamic_flag_spec \
12567 whole_archive_flag_spec \
12568 compiler_needs_object \
12570 allow_undefined_flag \
12571 no_undefined_flag \
12572 hardcode_libdir_flag_spec \
12573 hardcode_libdir_flag_spec_ld \
12574 hardcode_libdir_separator \
12579 variables_saved_for_relink \
12581 library_names_spec \
12586 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12587 *[\\\\\\\`\\"\\\$]*)
12588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12596 # Double-quote double-evaled strings.
12597 for var in reload_cmds \
12598 old_postinstall_cmds \
12599 old_postuninstall_cmds \
12601 extract_expsyms_cmds \
12602 old_archive_from_new_cmds \
12603 old_archive_from_expsyms_cmds \
12605 archive_expsym_cmds \
12607 module_expsym_cmds \
12608 export_symbols_cmds \
12611 postuninstall_cmds \
12613 sys_lib_search_path_spec \
12614 sys_lib_dlsearch_path_spec; do
12615 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12616 *[\\\\\\\`\\"\\\$]*)
12617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12625 # Fix-up fallback echo if it was mangled by the above quoting rules.
12627 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12631 ac_aux_dir='$ac_aux_dir'
12632 xsi_shell='$xsi_shell'
12633 lt_shell_append='$lt_shell_append'
12635 # See if we are running on zsh, and set the options which allow our
12636 # commands through without removal of \ escapes INIT.
12637 if test -n "\${ZSH_VERSION+set}" ; then
12638 setopt NO_GLOB_SUBST
12644 TIMESTAMP='$TIMESTAMP'
12653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12655 # Handling of arguments.
12656 for ac_config_target in $ac_config_targets
12658 case $ac_config_target in
12659 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12660 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12661 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12662 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12663 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12664 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12665 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12666 "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
12668 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12669 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12670 { (exit 1); exit 1; }; };;
12675 # If the user did not use the arguments to specify the items to instantiate,
12676 # then the envvar interface is used. Set only those that are not.
12677 # We use the long form for the default assignment because of an extremely
12678 # bizarre bug on SunOS 4.1.3.
12679 if $ac_need_defaults; then
12680 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12681 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12682 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12685 # Have a temporary directory for convenience. Make it in the build tree
12686 # simply because there is no reason against having it here, and in addition,
12687 # creating and moving files from /tmp can sometimes cause problems.
12688 # Hook for its removal unless debugging.
12689 # Note that there is a small window in which the directory will not be cleaned:
12690 # after its creation but before its name has been assigned to `$tmp'.
12694 trap 'exit_status=$?
12695 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12697 trap '{ (exit 1); exit 1; }' 1 2 13 15
12699 # Create a (secure) tmp directory for tmp files.
12702 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12703 test -n "$tmp" && test -d "$tmp"
12706 tmp=./conf$$-$RANDOM
12707 (umask 077 && mkdir "$tmp")
12710 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12711 { (exit 1); exit 1; }
12714 # Set up the scripts for CONFIG_FILES section.
12715 # No need to generate them if there are no CONFIG_FILES.
12716 # This happens for instance with `./config.status config.h'.
12717 if test -n "$CONFIG_FILES"; then
12721 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12722 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12725 ac_cs_awk_cr=$ac_cr
12728 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12733 echo "cat >conf$$subs.awk <<_ACEOF" &&
12734 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12736 } >conf$$subs.sh ||
12737 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12738 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12739 { (exit 1); exit 1; }; }
12740 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12742 for ac_last_try in false false false false false :; do
12743 . ./conf$$subs.sh ||
12744 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12745 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12746 { (exit 1); exit 1; }; }
12748 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12749 if test $ac_delim_n = $ac_delim_num; then
12751 elif $ac_last_try; then
12752 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12753 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12754 { (exit 1); exit 1; }; }
12756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12759 rm -f conf$$subs.sh
12761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12762 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12766 s/^/S["/; s/!.*/"]=/
12776 s/\(.\{148\}\).*/\1/
12778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12790 s/\(.\{148\}\).*/\1/
12792 s/["\\]/\\&/g; s/^/"/; s/$/"/
12796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12801 ' <conf$$subs.awk | sed '
12806 ' >>$CONFIG_STATUS || ac_write_fail=1
12807 rm -f conf$$subs.awk
12808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12810 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12811 for (key in S) S_is_set[key] = 1
12817 nfields = split(line, field, "@")
12819 len = length(field[1])
12820 for (i = 2; i < nfields; i++) {
12822 keylen = length(key)
12823 if (S_is_set[key]) {
12825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12826 len += length(value) + length(field[++i])
12837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12842 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12843 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12844 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12845 { (exit 1); exit 1; }; }
12848 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12849 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12850 # trailing colons and then remove the whole line if VPATH becomes empty
12851 # (actually we leave an empty line to preserve line numbers).
12852 if test "x$srcdir" = x.; then
12853 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12854 s/:*\$(srcdir):*/:/
12855 s/:*\${srcdir}:*/:/
12857 s/^\([^=]*=[ ]*\):*/\1/
12863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12864 fi # test -n "$CONFIG_FILES"
12866 # Set up the scripts for CONFIG_HEADERS section.
12867 # No need to generate them if there are no CONFIG_HEADERS.
12868 # This happens for instance with `./config.status Makefile'.
12869 if test -n "$CONFIG_HEADERS"; then
12870 cat >"$tmp/defines.awk" <<\_ACAWK ||
12874 # Transform confdefs.h into an awk script `defines.awk', embedded as
12875 # here-document in config.status, that substitutes the proper values into
12876 # config.h.in to produce config.h.
12878 # Create a delimiter string that does not exist in confdefs.h, to ease
12879 # handling of long lines.
12881 for ac_last_try in false false :; do
12882 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12883 if test -z "$ac_t"; then
12885 elif $ac_last_try; then
12886 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12887 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12888 { (exit 1); exit 1; }; }
12890 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12894 # For the awk script, D is an array of macro values keyed by name,
12895 # likewise P contains macro parameters if any. Preserve backslash
12896 # newline sequences.
12898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12900 s/.\{148\}/&'"$ac_delim"'/g
12903 s/^[ ]*#[ ]*define[ ][ ]*/ /
12910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12916 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12917 D["\1"]=" \3\\\\\\n"\\/p
12919 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12924 s/.\{148\}/&'"$ac_delim"'/g
12929 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12932 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12934 ' <confdefs.h | sed '
12935 s/'"$ac_delim"'/"\\\
12936 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12939 for (key in D) D_is_set[key] = 1
12942 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12944 split(line, arg, " ")
12945 if (arg[1] == "#") {
12949 defundef = substr(arg[1], 2)
12952 split(mac1, mac2, "(") #)
12954 prefix = substr(line, 1, index(line, defundef) - 1)
12955 if (D_is_set[macro]) {
12956 # Preserve the white space surrounding the "#".
12957 print prefix "define", macro P[macro] D[macro]
12960 # Replace #undef with comments. This is necessary, for example,
12961 # in the case of _POSIX_SOURCE, which is predefined and required
12962 # on some systems where configure will not decide to define it.
12963 if (defundef == "undef") {
12964 print "/*", prefix defundef, macro, "*/"
12972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12973 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12974 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12975 { (exit 1); exit 1; }; }
12976 fi # test -n "$CONFIG_HEADERS"
12979 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12984 :[FHLC]) ac_mode=$ac_tag; continue;;
12986 case $ac_mode$ac_tag in
12988 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12989 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12990 { (exit 1); exit 1; }; };;
12991 :[FH]-) ac_tag=-:-;;
12992 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13009 -) ac_f="$tmp/stdin";;
13010 *) # Look for the file first in the build tree, then in the source tree
13011 # (if the path is not absolute). The absolute path cannot be DOS-style,
13012 # because $ac_f cannot contain `:'.
13016 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13018 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13019 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13020 { (exit 1); exit 1; }; };;
13022 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13023 ac_file_inputs="$ac_file_inputs '$ac_f'"
13026 # Let's still pretend it is `configure' which instantiates (i.e., don't
13027 # use $as_me), people would be surprised to read:
13028 # /* config.h. Generated by config.status. */
13029 configure_input='Generated from '`
13030 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13032 if test x"$ac_file" != x-; then
13033 configure_input="$ac_file. $configure_input"
13034 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13035 $as_echo "$as_me: creating $ac_file" >&6;}
13037 # Neutralize special characters interpreted by sed in replacement strings.
13038 case $configure_input in #(
13039 *\&* | *\|* | *\\* )
13040 ac_sed_conf_input=`$as_echo "$configure_input" |
13041 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13042 *) ac_sed_conf_input=$configure_input;;
13046 *:-:* | *:-) cat >"$tmp/stdin" \
13047 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13048 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13049 { (exit 1); exit 1; }; } ;;
13054 ac_dir=`$as_dirname -- "$ac_file" ||
13055 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13056 X"$ac_file" : 'X\(//\)[^/]' \| \
13057 X"$ac_file" : 'X\(//\)$' \| \
13058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13059 $as_echo X"$ac_file" |
13060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13064 /^X\(\/\/\)[^/].*/{
13079 -*) as_dir=./$as_dir;;
13081 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13085 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13086 *) as_qdir=$as_dir;;
13088 as_dirs="'$as_qdir' $as_dirs"
13089 as_dir=`$as_dirname -- "$as_dir" ||
13090 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13091 X"$as_dir" : 'X\(//\)[^/]' \| \
13092 X"$as_dir" : 'X\(//\)$' \| \
13093 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13094 $as_echo X"$as_dir" |
13095 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13099 /^X\(\/\/\)[^/].*/{
13112 test -d "$as_dir" && break
13114 test -z "$as_dirs" || eval "mkdir $as_dirs"
13115 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13116 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13117 { (exit 1); exit 1; }; }; }
13121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13124 # A ".." for each directory in $ac_dir_suffix.
13125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13126 case $ac_top_builddir_sub in
13127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13131 ac_abs_top_builddir=$ac_pwd
13132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13133 # for backward compatibility:
13134 ac_top_builddir=$ac_top_build_prefix
13137 .) # We are building in place.
13139 ac_top_srcdir=$ac_top_builddir_sub
13140 ac_abs_top_srcdir=$ac_pwd ;;
13141 [\\/]* | ?:[\\/]* ) # Absolute name.
13142 ac_srcdir=$srcdir$ac_dir_suffix;
13143 ac_top_srcdir=$srcdir
13144 ac_abs_top_srcdir=$srcdir ;;
13145 *) # Relative name.
13146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13147 ac_top_srcdir=$ac_top_build_prefix$srcdir
13148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13160 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13161 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13163 ac_MKDIR_P=$MKDIR_P
13165 [\\/$]* | ?:[\\/]* ) ;;
13166 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13171 # If the template does not know about datarootdir, expand it.
13172 # FIXME: This hack should be removed a few years after 2.60.
13173 ac_datarootdir_hack=; ac_datarootdir_seen=
13186 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13187 *datarootdir*) ac_datarootdir_seen=yes;;
13188 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13189 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13190 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13193 ac_datarootdir_hack='
13194 s&@datadir@&$datadir&g
13195 s&@docdir@&$docdir&g
13196 s&@infodir@&$infodir&g
13197 s&@localedir@&$localedir&g
13198 s&@mandir@&$mandir&g
13199 s&\\\${datarootdir}&$datarootdir&g' ;;
13203 # Neutralize VPATH when `$srcdir' = `.'.
13204 # Shell code in configure.ac might set extrasub.
13205 # FIXME: do we really want to maintain this feature?
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13207 ac_sed_extra="$ac_vpsub
13210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13213 s|@configure_input@|$ac_sed_conf_input|;t t
13214 s&@top_builddir@&$ac_top_builddir_sub&;t t
13215 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13216 s&@srcdir@&$ac_srcdir&;t t
13217 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13218 s&@top_srcdir@&$ac_top_srcdir&;t t
13219 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13220 s&@builddir@&$ac_builddir&;t t
13221 s&@abs_builddir@&$ac_abs_builddir&;t t
13222 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13223 s&@INSTALL@&$ac_INSTALL&;t t
13224 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13225 $ac_datarootdir_hack
13227 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13228 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13229 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13230 { (exit 1); exit 1; }; }
13232 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13233 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13235 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13236 which seems to be undefined. Please make sure it is defined." >&5
13237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13238 which seems to be undefined. Please make sure it is defined." >&2;}
13242 -) cat "$tmp/out" && rm -f "$tmp/out";;
13243 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13245 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13246 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13247 { (exit 1); exit 1; }; }
13253 if test x"$ac_file" != x-; then
13255 $as_echo "/* $configure_input */" \
13256 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13257 } >"$tmp/config.h" \
13258 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13259 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13260 { (exit 1); exit 1; }; }
13261 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13262 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13263 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13266 mv "$tmp/config.h" "$ac_file" \
13267 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13268 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13269 { (exit 1); exit 1; }; }
13272 $as_echo "/* $configure_input */" \
13273 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13274 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13275 $as_echo "$as_me: error: could not create -" >&2;}
13276 { (exit 1); exit 1; }; }
13278 # Compute "$ac_file"'s index in $config_headers.
13281 for _am_header in $config_headers :; do
13282 case $_am_header in
13283 $_am_arg | $_am_arg:* )
13286 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13289 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13290 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13291 X"$_am_arg" : 'X\(//\)[^/]' \| \
13292 X"$_am_arg" : 'X\(//\)$' \| \
13293 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13294 $as_echo X"$_am_arg" |
13295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13299 /^X\(\/\/\)[^/].*/{
13311 s/.*/./; q'`/stamp-h$_am_stamp_count
13314 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13315 $as_echo "$as_me: executing $ac_file commands" >&6;}
13320 case $ac_file$ac_mode in
13321 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13322 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13323 # are listed without --file. Let's play safe and only enable the eval
13324 # if we detect the quoting.
13325 case $CONFIG_FILES in
13326 *\'*) eval set x "$CONFIG_FILES" ;;
13327 *) set x $CONFIG_FILES ;;
13332 # Strip MF so we end up with the name of the file.
13333 mf=`echo "$mf" | sed -e 's/:.*$//'`
13334 # Check whether this is an Automake generated Makefile or not.
13335 # We used to match only the files named `Makefile.in', but
13336 # some people rename them; so instead we look at the file content.
13337 # Grep'ing the first line is not enough: some people post-process
13338 # each Makefile.in and add a new line on top of each file to say so.
13339 # Grep'ing the whole file is not good either: AIX grep has a line
13340 # limit of 2048, but all sed's we know have understand at least 4000.
13341 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13342 dirpart=`$as_dirname -- "$mf" ||
13343 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13344 X"$mf" : 'X\(//\)[^/]' \| \
13345 X"$mf" : 'X\(//\)$' \| \
13346 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13352 /^X\(\/\/\)[^/].*/{
13368 # Extract the definition of DEPDIR, am__include, and am__quote
13369 # from the Makefile without running `make'.
13370 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13371 test -z "$DEPDIR" && continue
13372 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13373 test -z "am__include" && continue
13374 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13375 # When using ansi2knr, U may be empty or an underscore; expand it
13376 U=`sed -n 's/^U = //p' < "$mf"`
13377 # Find all dependency output files, they are included files with
13378 # $(DEPDIR) in their names. We invoke sed twice because it is the
13379 # simplest approach to changing $(DEPDIR) to its actual value in the
13381 for file in `sed -n "
13382 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13383 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13384 # Make sure the directory exists.
13385 test -f "$dirpart/$file" && continue
13386 fdir=`$as_dirname -- "$file" ||
13387 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13388 X"$file" : 'X\(//\)[^/]' \| \
13389 X"$file" : 'X\(//\)$' \| \
13390 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13391 $as_echo X"$file" |
13392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13396 /^X\(\/\/\)[^/].*/{
13409 { as_dir=$dirpart/$fdir
13411 -*) as_dir=./$as_dir;;
13413 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13417 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13418 *) as_qdir=$as_dir;;
13420 as_dirs="'$as_qdir' $as_dirs"
13421 as_dir=`$as_dirname -- "$as_dir" ||
13422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13423 X"$as_dir" : 'X\(//\)[^/]' \| \
13424 X"$as_dir" : 'X\(//\)$' \| \
13425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13426 $as_echo X"$as_dir" |
13427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13431 /^X\(\/\/\)[^/].*/{
13444 test -d "$as_dir" && break
13446 test -z "$as_dirs" || eval "mkdir $as_dirs"
13447 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13448 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13449 { (exit 1); exit 1; }; }; }
13450 # echo "creating $dirpart/$file"
13451 echo '# dummy' > "$dirpart/$file"
13458 # See if we are running on zsh, and set the options which allow our
13459 # commands through without removal of \ escapes.
13460 if test -n "${ZSH_VERSION+set}" ; then
13461 setopt NO_GLOB_SUBST
13464 cfgfile="${ofile}T"
13465 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13468 cat <<_LT_EOF >> "$cfgfile"
13471 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13472 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13473 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13474 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13476 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13477 # 2006, 2007, 2008 Free Software Foundation, Inc.
13478 # Written by Gordon Matzigkeit, 1996
13480 # This file is part of GNU Libtool.
13482 # GNU Libtool is free software; you can redistribute it and/or
13483 # modify it under the terms of the GNU General Public License as
13484 # published by the Free Software Foundation; either version 2 of
13485 # the License, or (at your option) any later version.
13487 # As a special exception to the GNU General Public License,
13488 # if you distribute this file as part of a program or library that
13489 # is built using GNU Libtool, you may include this file under the
13490 # same distribution terms that you use for the rest of that program.
13492 # GNU Libtool is distributed in the hope that it will be useful,
13493 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13495 # GNU General Public License for more details.
13497 # You should have received a copy of the GNU General Public License
13498 # along with GNU Libtool; see the file COPYING. If not, a copy
13499 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13500 # obtained by writing to the Free Software Foundation, Inc.,
13501 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13504 # The names of the tagged configurations supported by this script.
13507 # ### BEGIN LIBTOOL CONFIG
13509 # Which release of libtool.m4 was used?
13510 macro_version=$macro_version
13511 macro_revision=$macro_revision
13513 # Whether or not to build shared libraries.
13514 build_libtool_libs=$enable_shared
13516 # Whether or not to build static libraries.
13517 build_old_libs=$enable_static
13519 # What type of objects to build.
13522 # Whether or not to optimize for fast installation.
13523 fast_install=$enable_fast_install
13526 host_alias=$host_alias
13530 # The build system.
13531 build_alias=$build_alias
13535 # A sed program that does not truncate output.
13538 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13539 Xsed="\$SED -e 1s/^X//"
13541 # A grep program that handles long lines.
13547 # A literal string matcher.
13550 # A BSD- or MS-compatible name lister.
13553 # Whether we need soft or hard links.
13556 # What is the maximum length of a command?
13557 max_cmd_len=$max_cmd_len
13559 # Object file suffix (normally "o").
13562 # Executable file suffix (normally "").
13565 # whether the shell understands "unset".
13568 # turn spaces into newlines.
13571 # turn newlines into spaces.
13574 # How to create reloadable object files.
13575 reload_flag=$lt_reload_flag
13576 reload_cmds=$lt_reload_cmds
13578 # An object symbol dumper.
13579 OBJDUMP=$lt_OBJDUMP
13581 # Method to check whether dependent libraries are shared objects.
13582 deplibs_check_method=$lt_deplibs_check_method
13584 # Command to use when deplibs_check_method == "file_magic".
13585 file_magic_cmd=$lt_file_magic_cmd
13589 AR_FLAGS=$lt_AR_FLAGS
13591 # A symbol stripping program.
13594 # Commands used to install an old-style archive.
13596 old_postinstall_cmds=$lt_old_postinstall_cmds
13597 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13602 # LTCC compiler flags.
13603 LTCFLAGS=$lt_CFLAGS
13605 # Take the output of nm and produce a listing of raw symbols and C names.
13606 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13608 # Transform the output of nm in a proper C declaration.
13609 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13611 # Transform the output of nm in a C name address pair.
13612 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13614 # Transform the output of nm in a C name address pair when lib prefix is needed.
13615 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13617 # The name of the directory that contains temporary libtool files.
13620 # Shell to use when invoking shell scripts.
13623 # An echo program that does not interpret backslashes.
13626 # Used to examine libraries when file_magic_cmd begins with "file".
13627 MAGIC_CMD=$MAGIC_CMD
13629 # Must we lock files when doing compilation?
13630 need_locks=$lt_need_locks
13632 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13633 DSYMUTIL=$lt_DSYMUTIL
13635 # Tool to change global to local symbols on Mac OS X.
13638 # Tool to manipulate fat objects and archives on Mac OS X.
13641 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13644 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13645 OTOOL64=$lt_OTOOL64
13647 # Old archive suffix (normally "a").
13650 # Shared library suffix (normally ".so").
13651 shrext_cmds=$lt_shrext_cmds
13653 # The commands to extract the exported symbol list from a shared archive.
13654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13656 # Variables whose values should be saved in libtool wrapper scripts and
13657 # restored at link time.
13658 variables_saved_for_relink=$lt_variables_saved_for_relink
13660 # Do we need the "lib" prefix for modules?
13661 need_lib_prefix=$need_lib_prefix
13663 # Do we need a version for libraries?
13664 need_version=$need_version
13666 # Library versioning type.
13667 version_type=$version_type
13669 # Shared library runtime path variable.
13670 runpath_var=$runpath_var
13672 # Shared library path variable.
13673 shlibpath_var=$shlibpath_var
13675 # Is shlibpath searched before the hard-coded library search path?
13676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13678 # Format of library name prefix.
13679 libname_spec=$lt_libname_spec
13681 # List of archive names. First name is the real one, the rest are links.
13682 # The last name is the one that the linker finds with -lNAME
13683 library_names_spec=$lt_library_names_spec
13685 # The coded name of the library, if different from the real name.
13686 soname_spec=$lt_soname_spec
13688 # Command to use after installation of a shared archive.
13689 postinstall_cmds=$lt_postinstall_cmds
13691 # Command to use after uninstallation of a shared archive.
13692 postuninstall_cmds=$lt_postuninstall_cmds
13694 # Commands used to finish a libtool library installation in a directory.
13695 finish_cmds=$lt_finish_cmds
13697 # As "finish_cmds", except a single script fragment to be evaled but
13699 finish_eval=$lt_finish_eval
13701 # Whether we should hardcode library paths into libraries.
13702 hardcode_into_libs=$hardcode_into_libs
13704 # Compile-time system search path for libraries.
13705 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13707 # Run-time system search path for libraries.
13708 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13710 # Whether dlopen is supported.
13711 dlopen_support=$enable_dlopen
13713 # Whether dlopen of programs is supported.
13714 dlopen_self=$enable_dlopen_self
13716 # Whether dlopen of statically linked programs is supported.
13717 dlopen_self_static=$enable_dlopen_self_static
13719 # Commands to strip libraries.
13720 old_striplib=$lt_old_striplib
13721 striplib=$lt_striplib
13724 # The linker used to build libraries.
13727 # Commands used to build an old-style archive.
13728 old_archive_cmds=$lt_old_archive_cmds
13730 # A language specific compiler.
13733 # Is the compiler the GNU compiler?
13736 # Compiler flag to turn off builtin functions.
13737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13739 # How to pass a linker flag through the compiler.
13740 wl=$lt_lt_prog_compiler_wl
13742 # Additional compiler flags for building library objects.
13743 pic_flag=$lt_lt_prog_compiler_pic
13745 # Compiler flag to prevent dynamic linking.
13746 link_static_flag=$lt_lt_prog_compiler_static
13748 # Does compiler simultaneously support -c and -o options?
13749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13751 # Whether or not to add -lc for building shared libraries.
13752 build_libtool_need_lc=$archive_cmds_need_lc
13754 # Whether or not to disallow shared libs when runtime libs are static.
13755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13757 # Compiler flag to allow reflexive dlopens.
13758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13760 # Compiler flag to generate shared objects directly from archives.
13761 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13763 # Whether the compiler copes with passing no objects directly.
13764 compiler_needs_object=$lt_compiler_needs_object
13766 # Create an old-style archive from a shared archive.
13767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13769 # Create a temporary old-style archive to link instead of a shared archive.
13770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13772 # Commands used to build a shared archive.
13773 archive_cmds=$lt_archive_cmds
13774 archive_expsym_cmds=$lt_archive_expsym_cmds
13776 # Commands used to build a loadable module if different from building
13777 # a shared archive.
13778 module_cmds=$lt_module_cmds
13779 module_expsym_cmds=$lt_module_expsym_cmds
13781 # Whether we are building with GNU ld or not.
13782 with_gnu_ld=$lt_with_gnu_ld
13784 # Flag that allows shared libraries with undefined symbols to be built.
13785 allow_undefined_flag=$lt_allow_undefined_flag
13787 # Flag that enforces no undefined symbols.
13788 no_undefined_flag=$lt_no_undefined_flag
13790 # Flag to hardcode \$libdir into a binary during linking.
13791 # This must work even if \$libdir does not exist
13792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13794 # If ld is used when linking, flag to hardcode \$libdir into a binary
13795 # during linking. This must work even if \$libdir does not exist.
13796 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13798 # Whether we need a single "-rpath" flag with a separated argument.
13799 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13801 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13802 # DIR into the resulting binary.
13803 hardcode_direct=$hardcode_direct
13805 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13806 # DIR into the resulting binary and the resulting library dependency is
13807 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13808 # library is relocated.
13809 hardcode_direct_absolute=$hardcode_direct_absolute
13811 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13812 # into the resulting binary.
13813 hardcode_minus_L=$hardcode_minus_L
13815 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13816 # into the resulting binary.
13817 hardcode_shlibpath_var=$hardcode_shlibpath_var
13819 # Set to "yes" if building a shared library automatically hardcodes DIR
13820 # into the library and all subsequent libraries and executables linked
13822 hardcode_automatic=$hardcode_automatic
13824 # Set to yes if linker adds runtime paths of dependent libraries
13825 # to runtime path list.
13826 inherit_rpath=$inherit_rpath
13828 # Whether libtool must link a program against all its dependency libraries.
13829 link_all_deplibs=$link_all_deplibs
13831 # Fix the shell variable \$srcfile for the compiler.
13832 fix_srcfile_path=$lt_fix_srcfile_path
13834 # Set to "yes" if exported symbols are required.
13835 always_export_symbols=$always_export_symbols
13837 # The commands to list exported symbols.
13838 export_symbols_cmds=$lt_export_symbols_cmds
13840 # Symbols that should not be listed in the preloaded symbols.
13841 exclude_expsyms=$lt_exclude_expsyms
13843 # Symbols that must always be exported.
13844 include_expsyms=$lt_include_expsyms
13846 # Commands necessary for linking programs (against libraries) with templates.
13847 prelink_cmds=$lt_prelink_cmds
13849 # Specify filename containing input files.
13850 file_list_spec=$lt_file_list_spec
13852 # How to hardcode a shared library path into an executable.
13853 hardcode_action=$hardcode_action
13855 # ### END LIBTOOL CONFIG
13861 cat <<\_LT_EOF >> "$cfgfile"
13862 # AIX sometimes has problems with the GCC collect2 program. For some
13863 # reason, if we set the COLLECT_NAMES environment variable, the problems
13864 # vanish in a puff of smoke.
13865 if test "X${COLLECT_NAMES+set}" != Xset; then
13867 export COLLECT_NAMES
13874 ltmain="$ac_aux_dir/ltmain.sh"
13877 # We use sed instead of cat because bash on DJGPP gets confused if
13878 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13879 # text mode, it properly converts lines to CR/LF. This bash problem
13880 # is reportedly fixed, but why not run on old versions too?
13881 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13882 || (rm -f "$cfgfile"; exit 1)
13886 cat << \_LT_EOF >> "$cfgfile"
13888 # func_dirname file append nondir_replacement
13889 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13890 # otherwise set result to NONDIR_REPLACEMENT.
13894 */*) func_dirname_result="${1%/*}${2}" ;;
13895 * ) func_dirname_result="${3}" ;;
13899 # func_basename file
13902 func_basename_result="${1##*/}"
13905 # func_dirname_and_basename file append nondir_replacement
13906 # perform func_basename and func_dirname in a single function
13908 # dirname: Compute the dirname of FILE. If nonempty,
13909 # add APPEND to the result, otherwise set result
13910 # to NONDIR_REPLACEMENT.
13911 # value returned in "$func_dirname_result"
13912 # basename: Compute filename of FILE.
13913 # value retuned in "$func_basename_result"
13914 # Implementation must be kept synchronized with func_dirname
13915 # and func_basename. For efficiency, we do not delegate to
13916 # those functions but instead duplicate the functionality here.
13917 func_dirname_and_basename ()
13920 */*) func_dirname_result="${1%/*}${2}" ;;
13921 * ) func_dirname_result="${3}" ;;
13923 func_basename_result="${1##*/}"
13926 # func_stripname prefix suffix name
13927 # strip PREFIX and SUFFIX off of NAME.
13928 # PREFIX and SUFFIX must not contain globbing or regex special
13929 # characters, hashes, percent signs, but SUFFIX may contain a leading
13930 # dot (in which case that matches only a dot).
13933 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13934 # positional parameters, so assign one to ordinary parameter first.
13935 func_stripname_result=${3}
13936 func_stripname_result=${func_stripname_result#"${1}"}
13937 func_stripname_result=${func_stripname_result%"${2}"}
13943 func_opt_split_opt=${1%%=*}
13944 func_opt_split_arg=${1#*=}
13951 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13952 *) func_lo2o_result=${1} ;;
13956 # func_xform libobj-or-source
13959 func_xform_result=${1%.*}.lo
13962 # func_arith arithmetic-term...
13965 func_arith_result=$(( $* ))
13969 # STRING may not start with a hyphen.
13972 func_len_result=${#1}
13977 *) # Bourne compatible functions.
13978 cat << \_LT_EOF >> "$cfgfile"
13980 # func_dirname file append nondir_replacement
13981 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13982 # otherwise set result to NONDIR_REPLACEMENT.
13985 # Extract subdirectory from the argument.
13986 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13987 if test "X$func_dirname_result" = "X${1}"; then
13988 func_dirname_result="${3}"
13990 func_dirname_result="$func_dirname_result${2}"
13994 # func_basename file
13997 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14001 # func_stripname prefix suffix name
14002 # strip PREFIX and SUFFIX off of NAME.
14003 # PREFIX and SUFFIX must not contain globbing or regex special
14004 # characters, hashes, percent signs, but SUFFIX may contain a leading
14005 # dot (in which case that matches only a dot).
14006 # func_strip_suffix prefix name
14010 .*) func_stripname_result=`$ECHO "X${3}" \
14011 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14012 *) func_stripname_result=`$ECHO "X${3}" \
14013 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14018 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14019 my_sed_long_arg='1s/^-[^=]*=//'
14024 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14025 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14031 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14034 # func_xform libobj-or-source
14037 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14040 # func_arith arithmetic-term...
14043 func_arith_result=`expr "$@"`
14047 # STRING may not start with a hyphen.
14050 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14056 case $lt_shell_append in
14058 cat << \_LT_EOF >> "$cfgfile"
14060 # func_append var value
14061 # Append VALUE to the end of shell variable VAR.
14069 cat << \_LT_EOF >> "$cfgfile"
14071 # func_append var value
14072 # Append VALUE to the end of shell variable VAR.
14083 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14084 || (rm -f "$cfgfile"; exit 1)
14086 mv -f "$cfgfile" "$ofile" ||
14087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14096 { (exit 0); exit 0; }
14098 chmod +x $CONFIG_STATUS
14099 ac_clean_files=$ac_clean_files_save
14101 test $ac_write_fail = 0 ||
14102 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14103 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14104 { (exit 1); exit 1; }; }
14107 # configure is writing to config.log, and then calls config.status.
14108 # config.status does its own redirection, appending to config.log.
14109 # Unfortunately, on DOS this fails, as config.log is still kept open
14110 # by configure, so config.status won't be able to write to it; its
14111 # output is simply discarded. So we exec the FD to /dev/null,
14112 # effectively closing config.log, so it can be properly (re)opened and
14113 # appended to by config.status. When coming back to configure, we
14114 # need to make the FD available again.
14115 if test "$no_create" != yes; then
14117 ac_config_status_args=
14118 test "$silent" = yes &&
14119 ac_config_status_args="$ac_config_status_args --quiet"
14121 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14123 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14124 # would make configure fail if this is the last instruction.
14125 $ac_cs_success || { (exit 1); exit 1; }
14127 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14128 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14129 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}